/* Craft the Chart: shared styles for every /play/ page. Brand tokens from the site (brief 2.10).
   Layout: one portrait column, primary actions in the lower third, 48 px touch targets (10.4). */
@font-face{font-family:"Archivo";font-style:normal;font-weight:800;font-display:swap;src:url(/play/assets/fonts/archivo-800-latin-v25.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  /* one base system, the main site's dark stage: stage, surfaces, one border colour, three text tones, one accent.
     Other colours are cues only: --ok/--warn (right/wrong), --gold (stars, tiers, rewards), frames and world identity. */
  --stage:#1A1512;--stage-2:#141110;--card:#262019;--card-2:#211B16;--line:#3A312B;--line-2:#3A312B;--line-hi:#4A4036;
  --ink:#FBF7F1;--ink-2:#DED5CB;--muted:#B4A79C;
  --brand:#E8722B;--brand-hot:#E8722B;--brand-lite:#F0975D;--brand-soft:#3D2A1B;--gold:#D4A94E;--ok:#5CB878;--warn:#E06A6A;
  --display:"Archivo","Arial Black",system-ui,sans-serif;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,system-ui,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",monospace;
  color-scheme:dark
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{margin:0;background:var(--stage);color:var(--ink)}
body{font-family:var(--body);font-size:16px;line-height:1.5;overflow-x:hidden}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--brand-hot);outline-offset:2px}
.ctc-wrap{max-width:560px;margin:0 auto;padding:16px 16px 24px;display:flex;flex-direction:column;gap:16px}
.ctc-eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0}
.ctc-title{font-family:var(--display);font-weight:800;font-size:clamp(26px,7vw,34px);line-height:1.08;margin:2px 0 0;letter-spacing:-.01em}
.ctc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ctc-pips{display:flex;gap:6px;padding-top:6px}
.ctc-pip{width:24px;height:6px;border-radius:3px;background:var(--line)}
.ctc-pip.done{background:var(--gold)}.ctc-pip.now{background:var(--brand-hot)}
.ctc-q{font-weight:700;font-size:19px;line-height:1.35;margin:0}
.ctc-hint{color:var(--muted);margin:0}
.ctc-gold{color:var(--gold)}

/* chart */
.ctc-chart{position:relative;width:100%;border:1px solid var(--line-2);border-radius:14px;overflow:hidden;background:var(--stage-2);touch-action:none}
.ctc-canvas{display:block;width:100%}
.ctc-tag{position:absolute;top:8px;left:12px;font-family:var(--mono);font-size:12px;color:var(--muted);pointer-events:none;background:rgba(20,17,16,.7);padding:0 4px;border-radius:4px}

/* buttons and choices */
.ctc-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ctc-btn{min-height:52px;border:1px solid var(--line-2);background:var(--stage-2);border-radius:14px;padding:10px 12px;font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;gap:6px;flex-direction:row;text-align:center;line-height:1.2}
.ctc-btn:hover{border-color:var(--line-hi)}
.ctc-btn.sel{border-color:var(--brand-hot);background:var(--brand-soft)}
.ctc-btn:disabled{cursor:default;opacity:.75}
.ctc-btn.up{color:var(--ok)}.ctc-btn.down{color:var(--warn)}
.ctc-btn.stack{flex-direction:column;gap:2px}
.ctc-btn.primary{background:var(--brand);border-color:var(--brand);color:#1A1512;font-size:18px;min-height:58px;width:100%}
.ctc-btn.primary:hover{background:var(--brand-lite);border-color:var(--brand-lite)}
.ctc-btn.primary:disabled{opacity:.45}
.ctc-chip{min-height:44px;min-width:64px;border:1px solid var(--line-2);background:var(--stage-2);border-radius:999px;padding:6px 14px;font-family:var(--mono);font-weight:700;font-size:15px}
.ctc-chip.sel{border-color:var(--gold);color:var(--gold);background:rgba(212,169,78,.12)}

/* confidence: tappable stops plus a real slider underneath (keyboard and screen readers) */
.ctc-conf{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ctc-conf-lab{color:var(--muted);margin-right:2px}
.ctc-conf-stops{display:contents}
.ctc-range{flex:1 1 100%;accent-color:var(--gold);height:28px;margin:0}

/* sequence, timer, steering pad */
.ctc-seq-order{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;min-height:52px}
.ctc-timebar{height:8px;border-radius:4px;background:var(--line);overflow:hidden;margin-bottom:10px}
.ctc-timebar i{display:block;height:100%;background:var(--brand-hot);width:100%}
.ctc-pad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}

/* the reveal (screen "reveal") */
.ctc-reveal{border:1.5px solid var(--line-2);background:var(--card);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.ctc-reveal.good{border-color:var(--ok)}.ctc-reveal.bad{border-color:var(--warn)}.ctc-reveal.mid{border-color:var(--gold)}
.ctc-rv-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.ctc-verdict{font-family:var(--display);font-weight:800;font-size:24px;line-height:1.15}
.ctc-pts{font-family:var(--mono);font-weight:700;font-size:20px;color:var(--gold)}
.ctc-rv-explain{margin:0;font-size:17px}
.ctc-rv-muted{margin:0;color:var(--muted);font-size:16px}
.ctc-femi{display:flex;align-items:center;gap:12px}
.ctc-femi img{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:50% 12%;background:var(--gold);flex:0 0 auto}
.ctc-femi p{margin:0;color:var(--muted)}
.ctc-femi b{color:var(--ink)}
.ctc-unlock{margin:0;border:1.5px solid var(--gold);border-radius:14px;padding:12px 16px;background:var(--stage-2)}

/* required statement (11.1) */
.ctc-legal{font-size:13px;color:var(--muted);line-height:1.5;border-top:1px solid var(--line);padding-top:12px;margin:8px 0 0}

/* confetti (feel kit) */
.ctc-confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:50}
.ctc-confetti i{position:absolute;top:-12px;width:8px;height:14px;border-radius:2px;animation:ctc-fall 2.2s ease-in forwards}
@keyframes ctc-fall{to{transform:translateY(110vh) rotate(540deg);opacity:.9}}

/* app mode (brief 2.8): nothing that sells */
.from-app .ctc-sell{display:none!important}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (min-width:900px){.ctc-wrap{max-width:640px}}

/* ---- M2: page frame, level list, results, tiles, Protect the Account ---- */
.ctc-stack{display:flex;flex-direction:column;gap:14px}
.ctc-top{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:640px;margin:0 auto;padding:12px 16px 0}
.ctc-brand{font-family:var(--display);font-weight:800;font-size:18px;color:var(--ink);text-decoration:none}
.ctc-brand span{color:var(--brand)}
.ctc-home{color:var(--muted);font-size:14px;text-decoration:none}
a.ctc-btn{text-decoration:none;color:var(--ink)}
a.ctc-btn.primary{color:#1A1512}
.ctc-link{color:var(--brand);text-underline-offset:3px}
.ctc-link:hover{color:var(--brand-lite)}
.ctc-levels{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (min-width:520px){.ctc-levels{grid-template-columns:repeat(5,minmax(0,1fr))}}
.ctc-level{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:68px;border:1px solid var(--line-2);border-radius:12px;background:var(--stage-2);color:var(--ink);text-decoration:none}
.ctc-level .n{font-family:var(--display);font-weight:800;font-size:22px;line-height:1}
.ctc-level .s{font-size:13px;color:var(--gold);letter-spacing:.12em}
.ctc-level.done{border-color:var(--gold)}
.ctc-level.locked{opacity:.5}
.ctc-level.locked .s{color:var(--muted);letter-spacing:0;font-size:12px}
.ctc-result{border:1.5px solid var(--gold);border-radius:16px;padding:18px;background:var(--card);display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ctc-stars{font-size:46px;line-height:1.1;color:var(--gold);letter-spacing:.08em;margin:0}
.ctc-score{font-family:var(--mono);font-size:26px;font-weight:700;margin:0}
.ctc-actions{display:flex;flex-direction:column;gap:10px}
.ctc-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ctc-tiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ctc-tiles.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.ctc-tile{border:1px solid var(--line-2);border-radius:12px;padding:8px 10px;background:var(--stage-2);min-width:0;display:flex;flex-direction:column;gap:2px}
.ctc-tile .k{font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--muted);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctc-tile .v{font-family:var(--mono);font-weight:700;font-size:18px;overflow-wrap:anywhere}
.ctc-tile .v.bad{color:var(--warn)}
.ctc-tile .sub{font-size:12px;color:var(--muted);line-height:1.3}
.ctc-tiles.two .ctc-tile .v{font-size:22px}
.ctc-choices.ctc-flaws,.ctc-choices.ctc-risks{display:flex;flex-wrap:wrap;gap:8px}
.ctc-flaws .ctc-btn,.ctc-risks .ctc-btn{border-radius:999px;min-height:48px;padding:6px 14px;font-family:var(--mono);font-size:15px}
.ctc-choices.ctc-risks{gap:6px;flex-wrap:nowrap}
.ctc-risks .ctc-btn{flex:1 1 0;min-width:0;padding:6px 4px;font-size:14px}
.ctc-mono .ctc-btn{font-family:var(--mono)}
.ctc-health{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ctc-health .num{font-family:var(--mono);font-size:34px;font-weight:700}
.ctc-health .lab{color:var(--muted)}
.ctc-hbar{height:14px;border-radius:7px;background:var(--stage-2);border:1px solid var(--line-2);overflow:hidden}
.ctc-hbar i{display:block;height:100%;background:var(--ok)}
.ctc-counter{border:1px solid var(--line-2);border-radius:16px;padding:6px 14px;font-family:var(--mono);font-weight:700;white-space:nowrap}
.ctc-sum{font-family:var(--mono);font-size:16px;line-height:1.6}
.ctc-cftc{font-size:12px;border-top:0;padding-top:0}
.ctc-worlds{list-style:none;padding:0;margin:6px 0 0;display:flex;flex-direction:column;gap:14px}
.ctc-worlds li{display:flex;flex-direction:column;gap:2px}
[hidden]{display:none!important}

/* ---- M3: daily, result card, Codex, league, rank-up ---- */
/* the daily has no clock; .ctc-clock is only the boss clock chip in the Liquidity Maze header (see .ctc-chip.ctc-clock below) */
.ctc-clock{display:flex;align-items:center;gap:12px}
.ctc-daily-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ctc-daily-score{font-family:var(--display);font-weight:800;font-size:72px;line-height:1;color:var(--gold);margin:0}
.ctc-daily-top .ctc-hint{flex:1 1 140px;font-size:18px}
.ctc-skills{display:flex;flex-direction:column;gap:10px}
.ctc-skill{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 36px;gap:12px;align-items:center;font-size:17px}
.ctc-meter{height:10px;border-radius:5px;background:var(--stage-2);overflow:hidden;display:block}
.ctc-meter i{display:block;height:100%;background:var(--brand)}
.ctc-skill .n{font-family:var(--mono);text-align:right}
.ctc-share{font-family:var(--mono);font-size:15px;white-space:pre-wrap;word-break:break-word;background:var(--card);border:1px solid var(--line-2);border-radius:14px;padding:14px 16px;margin:0}
.ctc-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-counter.gold{border-color:var(--gold);color:var(--gold)}
.ctc-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ctc-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:118px;border:1px solid var(--line-2);border-radius:12px;background:var(--stage-2);padding:8px 6px;color:var(--ink);min-width:0}
.ctc-card canvas{width:100%;max-width:150px;height:auto}
.ctc-card .nm{font-size:14px;text-align:center;line-height:1.2}
.ctc-card .tag{font-size:12px;color:var(--gold);letter-spacing:.1em;text-transform:uppercase}
.ctc-card.gold{border-color:var(--gold)}
.ctc-card.locked{opacity:.6}
.ctc-card .q{font-size:26px;color:var(--muted)}
.ctc-detail-name{font-family:var(--display);font-weight:800;font-size:22px;margin:0}
.ctc-league{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ctc-lrow{display:grid;grid-template-columns:2.2em minmax(0,1fr) 3em 5em;align-items:center;gap:8px;min-height:52px;padding:0 12px;border-radius:12px;font-size:17px}
.ctc-lrow.me{border:1.5px solid var(--brand-hot);background:var(--brand-soft)}
.ctc-lrow .rk{color:var(--muted);text-align:right}
.ctc-lrow .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctc-lrow .mv{font-family:var(--mono);font-size:13px;text-align:center}
.ctc-lrow .mv.up{color:var(--ok)}.ctc-lrow .mv.down{color:var(--warn)}.ctc-lrow .mv.same{color:var(--muted)}
.ctc-lrow .pt{font-family:var(--mono);text-align:right}
.ctc-lmore{text-align:center;color:var(--muted);padding:6px 0}
.ctc-rankup{position:fixed;inset:0;z-index:60;background:rgba(20,17,16,.92);display:flex;align-items:center;justify-content:center;padding:16px}
.ctc-rankup-box{max-width:360px;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:var(--card);border:1.5px solid var(--gold);border-radius:18px;padding:22px}
.ctc-rankup-box img{width:120px;height:auto;border-radius:12px}
.ctc-filter .ctc-btn.sel{border-color:var(--gold);color:var(--gold);background:rgba(212,169,78,.12)}

/* ---- M4: sign-in sheet, prompt, tool cards, power-ups, hub, world map, profile, Trader DNA ---- */
.ctc-sheet{align-items:flex-end}
@media (min-width:560px){.ctc-sheet{align-items:center}}
.ctc-sheet-box{max-width:440px;align-items:stretch;text-align:left;border-color:var(--line-2);gap:12px;position:relative;max-height:calc(100vh - 32px);overflow-y:auto}
.ctc-sheet-box .ctc-title{padding-right:64px;font-size:26px}
.ctc-sheet-x{position:absolute;top:12px;right:12px;min-height:44px;padding:0 14px;border:1px solid var(--line-2);background:var(--stage-2);border-radius:999px;font-size:14px}
.ctc-field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.ctc-field input,.ctc-input{min-height:52px;border:1px solid var(--line-2);background:var(--stage-2);border-radius:12px;padding:10px 14px;font-size:18px;color:var(--ink);width:100%;min-width:0}
.ctc-field input:focus,.ctc-input:focus{border-color:var(--brand-hot);outline:none}
.ctc-code{font-family:var(--mono);letter-spacing:.3em;font-size:24px!important;text-align:center}
.ctc-check{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.4;min-height:48px;padding:4px 0;cursor:pointer}
.ctc-check input{width:24px;height:24px;flex:0 0 auto;margin:0;accent-color:var(--brand-hot)}
.ctc-sheet-msg{margin:0;color:var(--warn);min-height:1em}
.ctc-sheet-msg:empty{display:none}
button.ctc-link{background:none;border:0;padding:8px 0;font:inherit;font-size:15px;min-height:44px;text-align:left}
.ctc-prompt{border:1.5px solid var(--brand-hot);border-radius:16px;background:var(--brand-soft);padding:16px;display:flex;flex-direction:column;gap:10px}
.ctc-prompt-t{margin:0;font-weight:800;font-size:18px}
.ctc-locknote{border-color:var(--gold);background:var(--card)}
.ctc-lesson{margin:0;border-left:3px solid var(--gold);padding:4px 0 4px 12px;font-size:16px}
.ctc-tool{border:1px solid var(--line-2);border-radius:16px;background:var(--card);padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.ctc-tool-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ctc-tool-x{min-height:44px;padding:0 16px;border:1px solid var(--line-2);background:var(--stage-2);border-radius:999px;font-size:15px;font-weight:700}
.ctc-tool-t{margin:0;font-size:16px}
.ctc-tool-a{color:var(--brand-hot);font-weight:700;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:3px;align-self:flex-start;font-size:16px}
.ctc-power{display:flex;flex-direction:column;gap:10px}
.ctc-power-panel{border:1.5px solid var(--gold);border-radius:16px;background:var(--card);padding:12px 16px;display:flex;flex-direction:column;gap:6px}
.ctc-power-panel p{margin:0;color:var(--gold)}
.ctc-power-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.ctc-power-h b{color:var(--gold);font-size:18px}
.ctc-power-a{color:var(--brand-hot);min-height:44px;display:inline-flex;align-items:center;text-underline-offset:3px}
.ctc-powers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ctc-power-b{min-height:52px;font-size:16px}
.ctc-power-b.on{border-color:var(--brand-hot);background:var(--brand-soft)}
.ctc-power-b:disabled:not(.on){opacity:.4}
.ctc-power-note{font-size:14px}
.ctc-charges,.ctc-pure{display:inline-block;border:1.5px solid var(--gold);color:var(--gold);border-radius:999px;padding:4px 12px;font-family:var(--mono);font-weight:700;font-size:14px;white-space:nowrap;margin-top:6px}
.ctc-pure{border-color:var(--line-2);color:var(--muted);font-family:var(--body);margin-left:6px}
#headside{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.ctc-choices .ctc-btn.flag{border-color:var(--warn);color:var(--warn)}
.ctc-imgshare{grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:4px 16px}
.ctc-imgshare .ctc-hint{font-size:15px}
.ctc-tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--stage-2);border-top:1px solid var(--line);padding:0 4px env(safe-area-inset-bottom,0px)}
.ctc-tabs a{min-height:56px;display:flex;align-items:center;justify-content:center;color:var(--ink-2);text-decoration:none;font-size:15px}
.ctc-tabs a[aria-current="page"]{color:var(--ink);font-weight:700;box-shadow:inset 0 2px 0 var(--brand)}
body.has-tabs{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
.ctc-hubchips{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.ctc-chip-s,.ctc-chip-l{border:1px solid var(--line);border-radius:999px;padding:3px 12px;font-family:var(--mono);font-weight:700;font-size:15px;white-space:nowrap;color:var(--ink-2)}
/* the one focal card on the hub: today's daily */
.ctc-hubdaily{display:flex;flex-direction:column;gap:12px;border:1.5px solid var(--brand);border-radius:18px;background:linear-gradient(165deg,var(--brand-soft) 0%,var(--card) 62%);padding:18px 18px 16px;color:var(--ink);text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.ctc-hubdaily-l{display:flex;flex-direction:column;gap:4px;min-width:0}
.ctc-hubdaily-t{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(22px,6vw,28px);line-height:1.12;color:var(--ink)}
.ctc-hubdaily .ctc-hint{color:var(--ink-2)}
.ctc-hubdaily .ctc-hint:last-child{color:var(--muted);font-size:15px}
/* quiet secondary links: plain text, a chevron, no orange underline */
.ctc-quiet{align-self:flex-start;color:var(--ink-2);text-decoration:none;font-size:15px;min-height:44px;display:inline-flex;align-items:center;margin-top:-6px}
.ctc-quiet:hover{color:var(--ink)}
.ctc-more{display:flex;flex-direction:column;border-top:1px solid var(--line);margin-top:6px}
.ctc-more-a{color:var(--ink-2);text-decoration:none;font-size:15px;min-height:52px;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.ctc-more-a:hover{color:var(--ink)}
.ctc-sec{margin-top:10px}
/* worlds and modes: quiet rows; colour only for progress (gold stars) */
.ctc-worldlist{display:flex;flex-direction:column;gap:8px}
.ctc-world{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;background:var(--card-2);padding:12px 14px;color:var(--ink);text-decoration:none;min-height:68px}
a.ctc-world:hover{border-color:var(--line-hi)}
.ctc-world.locked{opacity:.55}
.ctc-world-n{flex:0 0 44px;height:44px;border-radius:10px;background:var(--stage-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:800;font-size:19px;color:var(--ink-2)}
.ctc-world-m{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.ctc-world-t{font-weight:800;font-size:17px}
.ctc-world-s{color:var(--muted);font-size:15px;overflow-wrap:anywhere}
.ctc-world-s.ctc-gold{color:var(--gold);letter-spacing:.04em}
.ctc-world-i{color:var(--muted);font-size:20px;flex:0 0 auto}
.ctc-world.locked .ctc-world-i{filter:grayscale(1);font-size:16px}
.ctc-account{border:1px solid var(--line-2);border-radius:16px;background:var(--card);padding:16px;display:flex;flex-direction:column;gap:10px}
.ctc-account p{margin:0}
.ctc-account .ctc-row{grid-template-columns:minmax(0,1fr) auto}
.ctc-account .ctc-row .ctc-btn{min-height:52px}
.ctc-pro{display:inline-block;border:1px solid var(--gold);color:var(--gold);border-radius:999px;padding:0 7px;font-size:11px;font-weight:700;letter-spacing:.06em;vertical-align:middle;line-height:1.6}
.ctc-danger{color:var(--warn);border-color:var(--warn)}
.ctc-confirm{border:1.5px solid var(--warn);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}
.ctc-radar,.ctc-chartcard{border:1px solid var(--line-2);border-radius:16px;background:var(--stage-2);display:flex;justify-content:center;padding:8px 0}
.ctc-dna{border:1px solid var(--line-2);border-radius:16px;background:var(--card);padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.ctc-dna h2{margin:0;font-size:20px}
.ctc-dna p{margin:0;font-size:17px}
.ctc-dna.good h2{color:var(--ok)}
.ctc-dna.bad{border-color:var(--warn)}
.ctc-dna.bad h2{color:var(--warn)}
.ctc-dna-a{color:var(--brand-hot);text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.ctc-skills.wide .ctc-skill{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 6.2em}
/* ---- M5: never colour alone (acceptance test 13): a mark that reads in grey too ---- */
.ctc-tile .v.bad::after{content:" ✕";font-size:.8em}
.ctc-choices .ctc-btn.flag::after{content:" ✕"}
.ctc-power-b.on::before{content:"✓ "}
/* ---------- Season 2 modes ---------- */
.ctc-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-grid4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-grid4 .ctc-cell{min-width:0}
.ctc-grid4 .ctc-eyebrow{margin:0 0 4px}
.ctc-choices.ctc-candles .ctc-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px;min-height:132px}
.ctc-choices.ctc-candles canvas{display:block;border-radius:10px;background:var(--stage-2,#141110)}
.ctc-world-x .ctc-world-t{color:var(--gold)}
@media (max-width:420px){.ctc-grid4{gap:8px}.ctc-tiles.three .ctc-tile .v{font-size:18px}}
/* ---------- Season 2: bosses and the arcade ---------- */
.ctc-grid6{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-minichart{display:block;width:100%;padding:4px;border:2px solid var(--line);border-radius:14px;background:var(--stage-2);cursor:pointer;min-height:48px}
.ctc-minichart:focus-visible{outline:3px solid var(--brand-hot);outline-offset:2px}
.ctc-minichart .ctc-chart{border:0;margin:0;background:none}
.ctc-minichart.ok{border-color:var(--ok)}
.ctc-minichart.bad{border-color:var(--warn)}
.ctc-minichart.ok::after{content:"✓ breakout";display:block;color:var(--ok);font-weight:700;font-size:13px;padding-top:2px}
.ctc-minichart.bad::after{content:"✕";display:block;color:var(--warn);font-weight:700;font-size:13px;padding-top:2px}
.ctc-timerow{display:flex;align-items:center;gap:12px}
.ctc-timerow .ctc-timebar{flex:1}
.ctc-timeleft{font-family:var(--mono);font-weight:700;color:var(--brand-hot);min-width:44px;text-align:right}
.ctc-runfoot{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ctc-runscore{font-family:var(--mono);color:var(--muted,#b3a796);font-size:15px}
.ctc-runscore.big{font-size:22px;font-weight:700;color:var(--ink)}
.ctc-hearts{color:var(--warn);letter-spacing:2px;font-size:18px}
.ctc-hearts.big{font-size:26px}
.ctc-wavemsg{margin:0;font-weight:700}
.ctc-wavemsg.good{color:var(--ok)}
.ctc-wavemsg.bad{color:var(--warn)}
.ctc-panel{border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--card-2)}
.ctc-big{font-family:Archivo,system-ui,sans-serif;font-weight:800;font-size:34px;margin:0}
.ctc-chip.ctc-wave,.ctc-chip.ctc-clock{border-color:var(--warn);color:var(--warn);font-family:var(--mono)}
.ctc-chip.ctc-combo{border-color:var(--gold);color:var(--gold);font-family:var(--mono)}
.ctc-board{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ctc-board li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:8px 10px;border-radius:10px;background:var(--card-2)}
.ctc-board li.me{border:1px solid var(--brand);background:var(--brand-soft)}
.ctc-board .n,.ctc-board .v{font-family:var(--mono)}
.ctc-board .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ---------- Season 2: duels ---------- */
.ctc-duel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ctc-duelcard{border:1px solid var(--line);border-radius:16px;padding:14px;text-align:center;background:var(--card-2);display:flex;flex-direction:column;gap:6px;min-width:0}
.ctc-duelcard.won{border-color:var(--ok)}
.ctc-duelcard .ctc-hint,.ctc-duelcard p{margin:0}
.ctc-sq{font-size:15px;letter-spacing:1px;overflow-wrap:anywhere}
/* ---------- Season 2: quests, season track, shop, frames, toasts ---------- */
.ctc-quests,.ctc-season{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--card-2)}
.ctc-quests{gap:0}.ctc-quests .ctc-eyebrow{margin-bottom:4px}
.ctc-quest{position:relative;display:flex;justify-content:space-between;gap:10px;padding:10px 0 12px;border-top:1px solid var(--line);overflow:hidden;font-size:15px;color:var(--ink-2)}
.ctc-quest-t{min-width:0}
.ctc-quest-n{font-family:var(--mono);color:var(--muted);white-space:nowrap}
.ctc-quest.done .ctc-quest-n{color:var(--gold)}
.ctc-quest-bar{position:absolute;left:0;bottom:0;height:2px;background:var(--brand);opacity:.7}
.ctc-quest.done .ctc-quest-t{color:var(--ok)}
.ctc-track{height:10px;border-radius:999px;background:var(--stage-2);overflow:hidden;border:1px solid var(--line)}
.ctc-track i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--brand))}
.ctc-toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);max-width:min(92vw,520px);background:var(--card);border:1px solid var(--gold);color:var(--ink);padding:12px 16px;border-radius:14px;z-index:60;box-shadow:0 8px 30px rgba(0,0,0,.4)}
.ctc-shopgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-shopcard{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:16px;padding:12px;background:var(--card-2);min-width:0}
.ctc-shopcard.on{border-color:var(--gold)}
.ctc-shopcard .ctc-btn{min-height:44px}
.ctc-swatch{display:block;height:52px;border-radius:10px;border:1px solid var(--line)}
.ctc-shoprow{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:12px;background:var(--card-2)}
.ctc-shop-ic{font-size:28px}
.ctc-shop-m{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.ctc-chip.ctc-cp{border-color:var(--gold);color:var(--gold);font-family:var(--mono)}
.ctc-frame{display:inline-block;padding:2px 12px;border-radius:14px;border:3px solid var(--line)}
.ctc-frame-bronze{border-color:#b07a4a}.ctc-frame-silver{border-color:#c9ced6}.ctc-frame-gold{border-color:var(--gold)}
.ctc-frame-lion{border-color:var(--brand);box-shadow:0 0 0 2px var(--gold) inset}.ctc-frame-gold-rush{border-color:#e8c35a;border-style:double;border-width:5px}
.ctc-lline{list-style:none;text-align:center;font-family:var(--mono);font-size:13px;letter-spacing:.08em;text-transform:uppercase;padding:6px;border-radius:8px}
.ctc-lline.up{color:var(--ok);background:rgba(92,184,120,.12)}
.ctc-lline.down{color:var(--warn);background:rgba(224,106,106,.12)}

/* Craft Arena, the next level (hub card) */
.ctc-arena{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--card-2);color:var(--ink);text-decoration:none}
a.ctc-arena:hover{border-color:var(--line-hi)}
.ctc-arena .ctc-eyebrow{color:var(--gold)}
.ctc-arena-t{font-family:var(--display);font-weight:800;font-size:20px;line-height:1.15;margin:0}
.ctc-arena .ctc-hint{font-size:15px}
.ctc-arena .ctc-btn{align-self:flex-start}
.ctc-btn-quiet{min-height:44px;font-size:15px;padding:8px 16px;border-color:var(--line-hi);color:var(--ink)}
/* the game gate (2026-10-12): a page you can see behind, with one way in */
.ctc-gate{position:fixed;inset:0;z-index:55;background:rgba(20,17,16,.86);display:flex;align-items:center;justify-content:center;padding:16px}
.ctc-gate-box{max-width:420px;width:100%;display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:center;background:var(--card);border:1.5px solid var(--brand);border-radius:18px;padding:24px}
.ctc-gate-box .ctc-link{align-self:center}

/* the coach column (feel kit): main.ctc-wrap.has-coach. HCFeel.coach puts its aside in main right after #stage and before the
   legal line, so on phones the normal flow is already the order: one column, the coach below the controls. From 900 px the play
   sits on the left (up to 640 px) and the coach on the right (300 px), sticky below the top bar while the page scrolls. A revealed clue can make
   the panel taller than a short screen, so it is no taller than the screen below the top bar and scrolls inside, and stays reachable. */
@media (min-width:900px){
  .ctc-wrap.has-coach{max-width:996px;display:grid;grid-template-columns:minmax(0,640px) 300px;grid-template-rows:auto 1fr auto;gap:16px 24px;align-items:start}
  .ctc-wrap.has-coach>.ctc-head{grid-column:1;grid-row:1}
  .ctc-wrap.has-coach>#stage{grid-column:1;grid-row:2}
  .ctc-wrap.has-coach>.ctc-legal{grid-column:1 / -1;grid-row:3}
  .ctc-wrap.has-coach>.hcf-coach{grid-column:2;grid-row:1 / span 2;position:sticky;top:76px;max-height:calc(100vh - 92px);max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain}
}
