/* app/look/72-coach.css — the coach, the Locker, the shop and the boards (lane UI-B; SPEC_COACH §15, APP_LOOK Look A).
   Linked by app.html on its own (SPEC_BETA FE-01 item 1), like 70-h2h.css. Every colour is a token: app.html's :root, or
   the two below. Square corners everywhere, no pills, no shadows; green only for a plus Rep amount (.cz-plus); no red.
   Reduce Motion: the two coach moves (the reveal, the shop wipe) are Web Animations in the JS with their own fades, and
   every transition here is off under prefers-reduced-motion and html.rm. */
:root{
  --cz-steel:#DCE3EC;              /* the stadium-light steel, used by the initials tile's edge */
  --cz-row:#3B3F47;                /* the lifted small tile (KT-08), the ground behind a sprite while it decodes */
}

/* ---------------------------------------------------------------------------------------------- the page layer */
html.cz-open{overflow:hidden}
.cz-page{position:fixed;left:0;right:0;top:0;bottom:var(--tb-h,calc(var(--sb,0px) + 56px));z-index:29;background:var(--bg);
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;color:var(--tx)}
.cz-page[hidden]{display:none}
/* installed app: rows scroll under an opaque strip the height of the status bar, never under the clock */
.cz-page::before{content:'';position:sticky;top:0;z-index:6;display:block;height:var(--st,0px);margin-bottom:calc(-1 * var(--st,0px));background:var(--bg)}
.cz-in{position:relative;max-width:520px;margin:0 auto;padding:calc(var(--st,0px) + 6px) var(--gut,16px) 40px;box-sizing:border-box}
.cz-in *,.cz-sheet *{box-sizing:border-box}
.cz-top{display:flex;align-items:center;gap:8px;min-height:56px}
.cz-h1{flex:1 1 auto;min-width:0;margin:0;font-size:44px;line-height:.9;color:var(--tx);overflow-wrap:break-word}
.cz-h1:focus{outline:none}
.cz-topr{flex:none;display:flex;align-items:center}
.cz-x{flex:none;margin-right:-10px}
.cz-top.cz-back .cz-x{margin:0 2px 0 -10px}
.cz-bal{display:inline-flex;align-items:center;min-height:44px}
.cz-body{position:relative}
.cz-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the hub's icons (Play · Board · Locker), one lit: drawn as the hub draws them (70-h2h.css .h2h-top / .h2h-ib) */
.cz-hub{display:flex;align-items:center;gap:2px;margin:0 0 12px}
.cz-hub .cz-bal{margin-left:auto;padding-left:10px}
.cz-hub .cz-bal .cz-rep{font-size:15px}
/* a phone 320 wide: the Locker's one white button keeps its label on one line */
@media (max-width:359px){#czToShop{gap:10px;padding-left:12px;padding-right:12px;letter-spacing:.05em}}
.cz-hb,.cz-pbtn,.cz-ib{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;min-width:44px;
  padding:6px 4px;border:0;border-radius:0;background:var(--surface);color:var(--tx2);cursor:pointer;font:inherit}
.cz-hb svg,.cz-pbtn svg,.cz-ib svg{width:22px;height:22px;flex:none}
.cz-hb .cap,.cz-pbtn .cap,.cz-ib .cap{font-size:11px;line-height:1.1;letter-spacing:.09em;color:inherit;white-space:nowrap}
.cz-hb{flex:none;min-width:56px;gap:3px;background:none;color:var(--tx)}
.cz-hb svg{width:24px;height:24px}
.cz-hb .cap{letter-spacing:.11em}
.cz-hb.on{box-shadow:inset 0 -3px 0 var(--tx)}
.cz-hb:focus-visible,.cz-pbtn:focus-visible,.cz-ib:focus-visible,.cz-row:focus-visible,.cz-pc:focus-visible,.cz-sw:focus-visible,
.cz-card2:focus-visible,.cz-btile:focus-visible,.cz-own:focus-visible{outline:2px solid var(--tx);outline-offset:-2px}
.cz-ib{background:transparent;color:var(--tx);min-width:64px}
.cz-ib[disabled]{color:var(--tx2);cursor:default}
.cz-dot{position:absolute;top:6px;right:10px;width:8px;height:8px;background:var(--tx)}
.cz-dot[hidden]{display:none}
.lk-btn .cz-dot{position:static;flex:none;margin-left:auto;margin-right:-6px;background:var(--on-paper)}

/* strips, loading, lines */
.cz-strips:empty{display:none}
.cz-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px;padding:10px 12px;background:var(--black);color:var(--tx);
  font:600 13px/1.35 var(--f-body)}
.cz-strip > span{flex:1 1 200px;min-width:0}
.cz-strip .cz-sub2{color:var(--tx2);font-weight:500}
.cz-retry{min-height:44px;padding:8px 14px}
.cz-skel{display:flex;flex-direction:column;gap:2px}
.cz-skel i{display:block;background:var(--surface)}
.cz-still{margin:10px 0 0;color:var(--tx2)}
.cz-line{margin:12px 0;color:var(--tx);font-size:15px}
.cz-sub{margin:6px 0 14px;color:var(--tx2);font-size:14px}
.cz-one{margin:22px 0 0;color:var(--tx2)}
.cz-page.cz-offline .cz-act{opacity:.6}

/* the Rep mark (RP-10): the number + REP in the label face; a plus amount green; never red */
.cz-rep{font-family:var(--f-disp);font-variation-settings:'wdth' 112;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  font-size:13px;line-height:1.2;color:var(--tx);white-space:nowrap;font-variant-numeric:tabular-nums}
.cz-plus{color:var(--green)}
.cz-tag{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;margin-right:4px;background:var(--black);color:var(--tx);
  box-shadow:inset 0 0 0 1px var(--edge-hi);font-size:11px;line-height:1.2;white-space:nowrap}
.cz-tag.w{background:var(--paper);color:var(--on-paper);box-shadow:none}
.cz-tags{display:flex;flex-wrap:wrap;gap:4px 0;margin:0}

/* ---------------------------------------------------------------------------------------------- tiles (KT-15) */
.cz-tile,.cz-itile{position:relative;display:inline-grid;place-items:center;flex:none;overflow:hidden;vertical-align:middle;background:var(--graphite);border-radius:0}
.cz-tile.cz-s{background:var(--cz-row)}
.cz-tile.cz-s:not([data-cz-done]),.cz-tile.cz-l:not(.cz-has){background:var(--graphite)}
.cz-tile img,.cz-itile img{display:block;width:100%;height:100%;object-fit:cover}
.cz-ini{display:grid;place-items:center;width:100%;height:100%;font-family:var(--f-disp);font-variation-settings:'wdth' 100;font-weight:800;
  line-height:1;letter-spacing:.02em;color:var(--tx);text-transform:uppercase}
.cz-itile.cz-s{background:var(--graphite)}
.cz-noart{display:grid;place-items:center;width:100%;height:100%;min-height:48px;color:var(--tx2)}
.cz-noart svg{width:40%;height:40%;max-width:44px;max-height:44px}

/* ---------------------------------------------------------------------------------------------- CUI-01/03/04 the editor (kit5) */
.cz-stagew{position:relative;margin:0 0 14px}
.cz-stage{display:block;width:100%;height:auto;aspect-ratio:358/252;overflow:hidden;background:var(--graphite-deep)}
.cz-stage img{display:block;width:100%;height:100%;object-fit:cover}
.cz-stage0{display:block;width:100%;height:100%;background:var(--graphite)}
.cz-shufl{position:absolute;right:0;bottom:0;background:var(--black);min-height:56px}
.cz-pk{margin:0 0 12px}
.cz-pk[hidden]{display:none}
.cz-pkh{display:block;margin:0 0 6px;color:var(--tx2)}
.cz-pks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
@media (max-width:359px){#czRow_facial_hair{grid-template-columns:repeat(5,minmax(0,1fr))}}   /* MOUSTACHE and CHINSTRAP need 51 px */
@media (min-width:412px){#czRow_hair_colour{grid-template-columns:repeat(8,minmax(0,1fr))}}
.cz-sw{display:grid;place-items:center;align-content:start;gap:3px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;color:var(--tx2)}
.cz-sw-thumb{width:auto;min-width:0}
.cz-thumb{display:block;width:100%;max-width:64px;height:auto;aspect-ratio:1/1;overflow:hidden;background:var(--graphite)}
.cz-thumb img{display:block;width:100%;height:100%}
.cz-th0{display:block;width:100%;height:100%;background:var(--graphite)}
.cz-sw .cap{font-size:12px;line-height:1.1;letter-spacing:.02em;font-variation-settings:'wdth' 62;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:clip}
.cz-sw[aria-pressed="true"]{color:var(--tx)}
.cz-sw[aria-pressed="true"] .cz-thumb{box-shadow:inset 0 0 0 2px var(--tx);outline:2px solid var(--tx);outline-offset:-2px}
.cz-namebox{margin:0 0 16px}
.cz-page[data-screen='create'] #czGo{position:sticky;bottom:8px;z-index:3;margin-top:4px;box-shadow:0 0 0 8px var(--bg)}
.cz-nl{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px}
.cz-nl label{color:var(--tx)}
.cz-count{color:var(--tx2);font-variant-numeric:tabular-nums}
.cz-nf{display:flex;align-items:stretch;gap:6px}
.cz-field{flex:1 1 auto;min-width:0;display:flex;align-items:center;min-height:52px;background:var(--surface-2);box-shadow:inset 0 0 0 1.5px var(--outline)}
.cz-field:focus-within{outline:2px solid var(--tx);outline-offset:2px}
.cz-pre{flex:none;padding:0 6px 0 14px;color:var(--tx2);font:600 17px/1 var(--f-body)}
.cz-inp{flex:1 1 auto;min-width:0;width:100%;height:52px;padding:0 12px 0 0;border:0;border-radius:0;background:transparent;color:var(--tx);
  font:600 17px/1 var(--f-body);outline:none}
.cz-inp:disabled{color:var(--tx2)}
.cz-nf .cz-ib{background:var(--surface);min-width:72px}
.cz-check{display:flex;align-items:center;gap:6px;min-height:22px;margin:8px 0 0;color:var(--tx);font-size:14px}
.cz-check .cz-ok{display:inline-grid;place-items:center;width:18px;height:18px}
.cz-check .cz-ok svg{width:18px;height:18px;stroke-width:2.4}
.cz-pulse{animation:czPulse .5s var(--e-snap,ease) 1}
@keyframes czPulse{0%{transform:scale(1)}40%{transform:scale(1.08)}100%{transform:scale(1)}}

/* ---------------------------------------------------------------------------------------------- the sheet */
.cz-sheet .panel{padding-top:18px}
.cz-sh2{margin:0 52px 10px 0;font-size:32px;line-height:.92;color:var(--tx)}
.cz-sbody{margin:0 0 16px;color:var(--tx);font-size:15px;line-height:1.45}
.cz-tilerow{margin:0 0 12px}
.cz-cardart,.cz-revart,.cz-tilerow,.cz-lart,.cz-itemstage{display:block;width:100%}
.cz-cardart .cz-tile,.cz-revart .cz-tile,.cz-tilerow .cz-tile,.cz-lart .cz-tile,.cz-itemstage .cz-tile{display:grid;width:100% !important;height:auto !important;aspect-ratio:358/252}
.cz-intro{margin:0 0 18px;padding:0;list-style:none;counter-reset:czi}
.cz-intro li{position:relative;margin:0 0 8px;padding:6px 0 6px 34px;color:var(--tx);font-size:16px;font-weight:600;counter-increment:czi}
.cz-intro li::before{content:counter(czi);position:absolute;left:0;top:4px;display:grid;place-items:center;width:24px;height:24px;
  background:var(--paper);color:var(--on-paper);font:900 13px/1 var(--f-disp)}

/* CUI-09 the coach card */
#czCard{display:flex;flex-direction:column;align-items:flex-start}
.cz-cardload i{display:block;width:100%;height:auto;aspect-ratio:358/252;margin:0 0 2px;background:var(--surface-2)}
.cz-cardload i + i{height:28px;aspect-ratio:auto}
.cz-cardart{margin:0 0 12px}
.cz-cardnm{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 52px 8px 0;font-size:30px;line-height:.92;color:var(--tx);overflow-wrap:anywhere}
.cz-cardl{margin:0 0 4px;color:var(--tx);font-size:14px}
.cz-vs{margin:8px 0 0;color:var(--tx);font-size:15px;font-weight:650}
.cz-mk{display:inline-flex;align-items:center;gap:2px;color:var(--tx);flex:none}
.cz-mk svg{width:16px;height:16px}
.cz-mk b{font-size:11px;color:var(--tx)}
.cz-cardnm .cz-mk svg{width:22px;height:22px}
.cz-mkf{color:var(--tx)}
.cz-streak{display:inline-flex;align-items:center;gap:5px;color:var(--tx);white-space:nowrap}
.cz-streak i{display:block;width:7px;height:7px;background:var(--tx)}
.cz-tro{display:flex;flex-wrap:wrap;gap:2px;margin:12px 0 4px}
.cz-trob{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:72px;min-height:56px;padding:6px 8px;background:var(--surface-2);color:var(--tx)}
.cz-trob svg{width:22px;height:22px}
.cz-trob .cap{font-size:11px;color:var(--tx)}
.cz-x2{font-weight:800}
.cz-dated{margin:6px 0 0;padding:0;list-style:none}
.cz-dated li{margin:0 0 2px;color:var(--tx2)}
.cz-acts{display:flex;flex-wrap:wrap;gap:4px;margin:12px 0 0}
#czCard #czChallenge{margin:16px 0 0}
#czBlockedLine{margin:14px 0 0}

/* AW-08 the reveal */
.cz-revart{margin:0 0 14px}
.cz-revline{margin:0 0 16px;color:var(--tx);font-size:16px;font-weight:650}

/* ---------------------------------------------------------------------------------------------- CUI-08 the board */
.cz-per{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin:0 0 14px}
.cz-pbtn[aria-pressed="true"]{background:var(--paper);color:var(--on-paper)}
.cz-l3{margin:0 0 6px}
.cz-bsub{margin:0 0 6px;color:var(--tx2)}
.cz-you{margin:6px 0 4px;color:var(--tx);font-size:15px;font-weight:650}
.cz-late{margin:8px 0;padding:10px 12px;background:var(--black);color:var(--tx);font-size:13px}
.cz-rows{display:flex;flex-direction:column;gap:2px;margin:10px 0 0}
.cz-row{display:grid;grid-template-columns:26px auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 12px 8px 8px;
  border:0;border-radius:0;background:var(--surface);color:var(--tx);text-align:left;cursor:pointer;font:inherit}
.cz-row.you{box-shadow:inset 0 0 0 2px var(--tx)}
.cz-pl{font-size:15px;text-align:center;color:var(--tx)}
.cz-rm{display:flex;flex-direction:column;gap:3px;min-width:0}
.cz-nm{font-size:20px;line-height:.95;color:var(--tx)}
.cz-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0}
.cz-rec{font-size:13px;color:var(--tx2)}
.cz-net{font-size:20px;color:var(--tx);text-align:right;min-width:30px}
.cz-lv{font-size:11px}
.cz-meta .cz-tag{margin:0}
.cz-pod{display:grid;grid-template-columns:1fr 1.18fr 1fr;align-items:end;gap:2px;margin:12px 0 0}
.cz-pc{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px 4px 10px;border:0;border-radius:0;
  background:var(--surface);color:var(--tx);cursor:pointer;font:inherit;text-align:center}
.cz-pc.p1{padding-top:12px;padding-bottom:16px}
.cz-pc.you{box-shadow:inset 0 0 0 2px var(--tx)}
.cz-pc.empty{visibility:hidden;cursor:default}
.cz-pcart{display:block;max-width:100%}
.cz-pcart .cz-tile{max-width:100%;height:auto !important;aspect-ratio:1/1}
.cz-pcn{font-size:30px;color:var(--tx)}
.cz-pc.p1 .cz-pcn{font-size:36px}
.cz-pcnm{max-width:100%;font-size:17px;line-height:.95;color:var(--tx)}
.cz-pcwl{font-size:13px;color:var(--tx2)}
.cz-pcls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 8px;min-height:16px}
.cz-prev{margin:6px 0 0}
.cz-empty{margin:16px 0 0;padding:18px var(--gut,16px);background:var(--surface)}
.cz-emh{margin:0 0 14px;font-size:28px;line-height:.92;color:var(--tx)}
.cz-pin{position:sticky;bottom:0;z-index:2;margin:12px calc(-1 * var(--gut,16px)) -40px;padding:8px var(--gut,16px) 10px;background:var(--black)}
.cz-pinh{display:block;margin:0 0 6px;color:var(--tx2)}

/* ---------------------------------------------------------------------------------------------- CUI-05 the Locker */
.cz-lhead{display:block;margin:0 0 14px}
.cz-lside{display:flex;align-items:center;gap:8px;margin:8px 0 0}
.cz-lname{flex:1 1 auto;min-width:0;margin:0;font-size:26px;line-height:.95;color:var(--tx);overflow-wrap:anywhere}
.cz-lside .cz-acts{flex:none;margin:0}
.cz-lside .cz-ib{background:var(--surface)}
.cz-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;align-items:start}
.cz-slot{min-width:0}
.cz-slot.wide{grid-column:1/-1}
@media (max-width:359px){.cz-slots{grid-template-columns:minmax(0,1fr)}}
.cz-owns{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
.cz-ownw{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:72px}
.cz-own{position:relative;display:block;width:72px;height:auto;min-height:72px;padding:4px;border:0;border-radius:0;background:var(--surface);cursor:pointer}
.cz-own.worn{box-shadow:inset 0 0 0 2px var(--tx)}
.cz-otag{position:static;display:block;margin:2px 0 0;text-align:left;line-height:0}
.cz-otag .cz-tag{margin:0}
.cz-undo{width:72px;min-height:44px;padding:4px 2px;font-size:11px;line-height:1.15;justify-content:center;text-align:center;white-space:normal}
.cz-undo span{white-space:normal}
.cz-earn{display:flex;flex-direction:column;gap:2px}
.cz-er{display:flex;align-items:center;gap:12px;min-height:72px;padding:8px 12px 8px 8px;background:var(--surface)}
.cz-outl{display:grid;place-items:center;flex:none;width:56px;height:56px;background:var(--graphite-deep)}
.cz-outl svg{width:40px;height:40px}
.cz-ert{display:flex;flex-direction:column;gap:4px;min-width:0}
.cz-ern{font-size:18px;line-height:.95;color:var(--tx)}
.cz-task{color:var(--tx2)}
.cz-prog{display:flex;gap:3px}
.cz-prog i{display:block;width:18px;height:8px;box-shadow:inset 0 0 0 1.5px var(--outline)}
.cz-prog i.on{background:var(--tx);box-shadow:none}
.cz-pn{color:var(--tx2)}
.cz-trl{margin:0;padding:0;list-style:none}
.cz-trl li{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;margin:0 0 2px;background:var(--surface);color:var(--tx)}

/* ---------------------------------------------------------------------------------------------- CUI-06/07 the shop */
.cz-cd{margin:8px 0 2px;color:var(--tx)}
.cz-dim{color:var(--tx2)}
.cz-leaves{margin:0 0 10px;color:var(--tx2)}
.cz-featw{position:relative;overflow:hidden;margin:10px 0 2px}
.cz-wipe{position:absolute;inset:0;z-index:2;display:block;background:var(--bg);transform-origin:right center;pointer-events:none}
.cz-card2{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-width:0;padding:10px;border:0;border-radius:0;
  background:var(--surface);color:var(--tx);text-align:left;cursor:pointer;font:inherit}
.cz-card2 .cz-itile{width:100% !important;height:auto !important;aspect-ratio:1/1;margin:4px 0}
.cz-feat .cz-itile{max-width:none;aspect-ratio:358/252}
.cz-cn{font-size:20px;line-height:.95;color:var(--tx);max-width:100%}
.cz-feat .cz-cn{font-size:26px}
.cz-cw{color:var(--tx2)}
.cz-pr{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.cz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.cz-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.cz-btile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:8px;border:0;border-radius:0;background:var(--surface);
  color:var(--tx);text-align:left;cursor:pointer;font:inherit}
.cz-btile .cz-itile{width:100% !important;height:auto !important;aspect-ratio:1/1}
.cz-bn{font-size:17px;line-height:.95;color:var(--tx);max-width:100%;overflow-wrap:anywhere}
.cz-item{display:flex;flex-direction:column;align-items:flex-start}
.cz-itemstage{margin:0 0 12px}
.cz-itemnm{margin:8px 0 2px;font-size:32px;line-height:.92;color:var(--tx)}
.cz-price{margin:8px 0 0}
.cz-price .cz-rep{font-size:15px}
.cz-msg{min-height:20px;margin:8px 0;color:var(--tx);font-size:14px}
.cz-msg:empty{min-height:0;margin:4px 0}
.cz-itemacts{display:flex;flex-direction:column;gap:8px;width:100%}
.cz-owned{margin:0}
#czNeed{margin:0}

/* the fallback toast (only when app.html's toast() is missing) */
.cz-toast{position:fixed;left:50%;bottom:calc(var(--tb-h,64px) + 16px);z-index:90;transform:translateX(-50%);max-width:min(430px,calc(100% - 30px));
  padding:10px 14px;background:var(--paper);color:var(--on-paper);font:600 14px/1.35 var(--f-body)}
.cz-toast[hidden]{display:none}

/* ---------------------------------------------------------------------------------------------- wide screens */
@media (min-width:768px){
  .cz-in{max-width:520px}
}

/* ---------------------------------------------------------------------------------------------- Reduce Motion */
@media (prefers-reduced-motion:reduce){
  .cz-page *,.cz-sheet *{transition:none !important;animation:none !important}
  .cz-wipe{display:none}
}
html.rm .cz-page *,html.rm .cz-sheet *{transition:none !important;animation:none !important}
html.rm .cz-wipe{display:none}
