/* Twenty 1 Academy — ported from the Sonrisa app (gm-hq public/course.css), recoloured to the Twenty 1 palette
   (red #C43A34 / burgundy #8A1915 for the old teal, gold #C9A961 for the old orange). Prefixes: .acx-* path page, .cx-* / #cx player. */
/* Sonrisa Academy v3: the path (.acx) and the full-screen course player (#cx). The player is deliberately one look,
   a dark cinematic stage in the Sonrisa palette, in both app themes. */

/* ---------- The path ---------- */
.acx { display: grid; gap: 1.1rem; }
.acx-hero { position: relative; overflow: hidden; display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem 1.3rem; border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(196,58,52,.35), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(201,169,97,.22), transparent 60%), #191b1c;
  color: #f4f1ea; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.acx-hero::after { content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px); }
.acx-hero-tx { flex: 1; min-width: 0; position: relative; z-index: 1; }
.acx-kicker, .cx-kicker { font: 700 .74rem/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #C9A961; }
.acx-hero h2 { margin: .35rem 0 .3rem; font: 700 clamp(1.7rem, 5vw, 2.3rem)/1.05 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.acx-hero p { margin: 0 0 1rem; color: #c9cfd1; max-width: 46ch; line-height: 1.45; }
.acx-go { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem .7rem .8rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #C43A34, #8A1915); color: #fff; text-align: left; box-shadow: 0 6px 22px rgba(196,58,52,.45); font: 700 1.05rem/1.1 'Space Grotesk', system-ui, sans-serif; }
.acx-go .cx-ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.acx-go small { display: block; font: 600 .7rem/1 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: .15rem; }
.acx-all { color: #E0C283; font-weight: 600; }
.acx-ring { position: relative; width: 110px; flex: none; z-index: 1; }
.acx-ring svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.acx-ring circle { fill: none; stroke-width: 7; }
.acx-ring .trk { stroke: rgba(255,255,255,.12); }
.acx-ring .bar { stroke: #C9A961; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.acx-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.acx-ring b { font: 700 1.6rem/1 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.acx-ring span { font-size: .72rem; color: #a9b0b3; }
@media (max-width: 520px) { .acx-hero { flex-direction: column-reverse; align-items: flex-start; } .acx-ring { width: 86px; } .acx-ring svg { width: 86px; height: 86px; } }

.acx-path { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; position: relative; }
.acx-stage { position: relative; padding: 0 0 1rem 2.6rem; }
.acx-stage::before { content: ''; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 0; width: 2px; background: linear-gradient(var(--border, rgba(196,58,52,.5)), rgba(196,58,52,.08)); }
.acx-stage:last-child::before { display: none; }
.acx-stage.locked { --line: rgba(128,128,128,.25); }
.acx-stage-head { display: flex; gap: .8rem; align-items: center; margin-left: -2.6rem; margin-bottom: .55rem; }
.acx-n { width: 2.15rem; height: 2.15rem; flex: none; display: grid; place-items: center; transform: rotate(45deg); border-radius: 6px; background: #C43A34; color: #fff; font: 700 1rem/1 'Space Grotesk', system-ui, sans-serif; box-shadow: 0 0 0 4px rgba(196,58,52,.18); }
.acx-n > span, .cx-tl-n > span { transform: rotate(-45deg); }
.acx-stage.locked .acx-n { background: #6d7477; box-shadow: none; }
.acx-stage.complete .acx-n { background: #C9A961; box-shadow: 0 0 0 4px rgba(201,169,97,.2); }
.acx-stage-head h3 { margin: 0; font: 700 1.25rem/1.1 'Space Grotesk', system-ui, sans-serif; }
.acx-stage-head p { margin: .1rem 0 0; font-size: .85rem; color: var(--text-muted, #6b7376); }
.acx-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .55rem; }
.acx-mod { display: flex; align-items: center; gap: .75rem; padding: .75rem .8rem; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0; font: inherit; }
.acx-mod:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.12); border-color: rgba(196,58,52,.6); }
.acx-mi { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(196,58,52,.14); color: #E58A82; }
.acx-mi .cx-ic { width: 1.4rem; height: 1.4rem; }
.acx-mt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.acx-mt b { font: 700 1.05rem/1.15 'Space Grotesk', system-ui, sans-serif; }
.acx-mt small { font-size: .78rem; color: var(--text-muted, #6b7376); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acx-mb { flex: none; font: 700 .68rem/1 'Inter', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #6b7376); }
.acx-mb .cx-ic { width: 1.25rem; height: 1.25rem; }
.acx-mod.next { border-color: #C43A34; box-shadow: 0 0 0 3px rgba(196,58,52,.18); }
.acx-mod.next .acx-mb { color: #fff; background: #C43A34; padding: .35rem .55rem; border-radius: 999px; }
.acx-mod.done .acx-mi { background: rgba(201,169,97,.16); color: #E0C283; }
.acx-mod.done .acx-mb { color: #2fae73; }
.acx-mod.soon { opacity: .62; cursor: default; border-style: dashed; }
.acx-mod.soon .acx-mi { background: rgba(128,128,128,.12); color: var(--text-muted, #6b7376); }
.acx-mod.locked { opacity: .5; cursor: pointer; }
.acx-foot { margin-top: -.3rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acx-mi { color: #E58A82; } }
:root[data-theme="dark"] .acx-mi { color: #E58A82; }

/* ---------- Player ---------- */
body.cx-open { overflow: hidden; }
#cx { --ink: #f4f1ea; --mut: #a9b0b3; --teal: #C43A34; --gold: #C9A961; --coral: #E0C283; --ok: #39c98a; --bad: #ef5b52; --panel: rgba(255,255,255,.06); --edge: rgba(255,255,255,.12);
  position: fixed; inset: 0; z-index: 2500; display: grid; grid-template-rows: auto 1fr auto auto; color: var(--ink); color-scheme: dark;
  background: radial-gradient(90% 70% at 15% 0%, rgba(196,58,52,.16), transparent 60%), radial-gradient(80% 60% at 100% 100%, rgba(201,169,97,.10), transparent 60%), #0f1112;
  font-family: 'Inter', system-ui, sans-serif; opacity: 0; transform: scale(1.02); transition: opacity .28s, transform .28s; }
#cx.in { opacity: 1; transform: none; }
#cx button { font: inherit; color: inherit; }
.cx-ic { width: 1.25rem; height: 1.25rem; display: block; }
.cx-top { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + .6rem) 1rem .5rem; }
.cx-x { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--edge); background: var(--panel); display: grid; place-items: center; cursor: pointer; }
.cx-title { min-width: 0; display: flex; gap: .6rem; align-items: baseline; }
.cx-title b { font: 700 1.1rem/1.1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-title span { color: var(--mut); font-size: .8rem; white-space: nowrap; }
.cx-prog { grid-column: 1 / -1; display: flex; gap: 4px; }
.cx-prog i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background .3s; }
.cx-prog i.done { background: var(--teal); }
.cx-prog i.cur { background: linear-gradient(90deg, var(--gold), rgba(201,169,97,.35)); }
.cx-prog i.q { flex: 1.6; }

.cx-stage { position: relative; overflow: auto; overscroll-behavior: contain; display: grid; padding: .4rem 1rem 1rem; }
.cx-slide { width: 100%; max-width: 1080px; margin: auto; min-height: 0; }
.cx-slide.enter-f { animation: cxInF .5s cubic-bezier(.2,.8,.2,1) both; }
.cx-slide.enter-b { animation: cxInB .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cxInF { from { opacity: 0; transform: translateX(28px); } }
@keyframes cxInB { from { opacity: 0; transform: translateX(-28px); } }
.cx-head { margin-bottom: 1.1rem; }
.cx-head h2, .cx-check h2, .cx-q h2 { margin: .4rem 0 0; font: 700 clamp(1.6rem, 4.4vw, 2.6rem)/1.05 'Space Grotesk', system-ui, sans-serif; color: #fff; text-wrap: balance; }
[data-cue] { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .6s; }
[data-cue].on { opacity: 1; transform: none; }

/* cover */
.k-cover { max-width: none; height: 100%; display: grid; }
.cx-cover { position: relative; border-radius: 22px; overflow: hidden; min-height: min(70vh, 640px); display: grid; align-items: end; }
.cx-bg { position: absolute; inset: 0; background: center / cover no-repeat; animation: cxKen 24s ease-in-out infinite alternate; }
.cx-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,18,.1) 0%, rgba(15,17,18,.55) 55%, rgba(15,17,18,.96) 100%); }
@keyframes cxKen { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -2%); } }
.cx-cover-tx { position: relative; z-index: 1; padding: clamp(1.2rem, 4vw, 3rem); display: grid; gap: .6rem; justify-items: start; }
.cx-cover h1, .cx-finale h1, .cx-result h1 { margin: 0; font: 700 clamp(2.4rem, 8vw, 5rem)/.95 'Space Grotesk', system-ui, sans-serif; color: #fff; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.cx-dia { display: flex; gap: .5rem; }
.cx-dia i { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 12px rgba(201,169,97,.7); animation: cxPulse 1.8s infinite; }
.cx-dia i:nth-child(2) { animation-delay: .2s; } .cx-dia i:nth-child(3) { animation-delay: .4s; }
@keyframes cxPulse { 50% { opacity: .35; } }
.cx-begin, .cx-resume { display: inline-flex; align-items: center; gap: .8rem; margin-top: .6rem; padding: .7rem 1.4rem .7rem .7rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--teal); color: #fff !important; font: 700 1.25rem/1 'Space Grotesk', system-ui, sans-serif !important; box-shadow: 0 0 0 0 rgba(196,58,52,.6); animation: cxRing 2.2s infinite; text-align: left; }
.cx-begin .cx-ic, .cx-resume .cx-ic { width: 2.6rem; height: 2.6rem; padding: .7rem; border-radius: 50%; background: rgba(255,255,255,.2); }
.cx-begin small { display: block; font: 600 .75rem/1.2 'Inter', system-ui, sans-serif; opacity: .85; }
.cx-resume { position: absolute; z-index: 30; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--cxz, 1)); font-size: 1.15rem !important; padding: .6rem 1.3rem .6rem .6rem; margin: 0; }
#cx:has(.cx-resume) .cx-stage { filter: blur(3px) brightness(.6); }
.cx-resume .cx-ic { width: 1.9rem; height: 1.9rem; padding: .45rem; }
@keyframes cxRing { 70% { box-shadow: 0 0 0 16px rgba(196,58,52,0); } 100% { box-shadow: 0 0 0 0 rgba(196,58,52,0); } }

/* statement */
.cx-statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 2.4rem); align-items: center; }
.cx-photo { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.cx-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(196,58,52,.25)); }
.cx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cx-points li { display: flex; gap: .9rem; align-items: flex-start; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.35; padding: .85rem 1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); }
.cx-bul { width: 10px; height: 10px; flex: none; margin-top: .5em; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
@media (max-width: 720px) { .cx-statement { grid-template-columns: 1fr; } .cx-photo { aspect-ratio: 16 / 9; } }

/* cards */
.cx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.cx-cards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-cards.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 980px) { .cx-cards.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cx-cards, .cx-cards.n4, .cx-cards.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .cx-cards, .cx-cards.n4, .cx-cards.n5 { grid-template-columns: 1fr; } }
.cx-card { position: relative; overflow: hidden; padding: 1rem 1rem .9rem; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--edge); display: grid; gap: .35rem; align-content: start; min-width: 0; }
.cx-card.on { box-shadow: 0 0 0 1px rgba(196,58,52,.35), 0 14px 36px rgba(0,0,0,.35); }
.cx-band { height: 10px; border-radius: 5px; margin-bottom: .35rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cx-card-ic { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 10px; background: rgba(196,58,52,.16); color: #E58A82; margin-bottom: .2rem; }
.cx-card-top { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.cx-card-top b { font: 700 1.3rem/1.05 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-tag { font: 700 .66rem/1 'Inter', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #1a1408; background: var(--gold); padding: .25rem .45rem; border-radius: 999px; }
.cx-card-meta { font: 600 .95rem 'Space Grotesk', system-ui, sans-serif; color: #9be7ea; font-variant-numeric: tabular-nums; }
.cx-card p { margin: 0; color: #d5d9da; line-height: 1.4; font-size: .98rem; }
.cx-card-foot { margin-top: .25rem; padding-top: .45rem; border-top: 1px dashed var(--edge); font-size: .82rem; color: var(--gold); }
.cx-note { color: var(--mut); font-size: .85rem; margin: .8rem 0 0; }

/* ring */
.cx-ring { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 0 auto; }
.cx-ring-c { position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #3a2a22, #1a1210); border: 2px solid rgba(201,169,97,.6); box-shadow: 0 0 40px rgba(201,169,97,.18), inset 0 0 30px rgba(0,0,0,.6); }
.cx-ring-c span { font: 700 clamp(1rem, 3vw, 1.4rem)/1 'Space Grotesk', system-ui, sans-serif; color: var(--gold); padding: .5rem; }
.cx-ring-i { --a: calc(var(--k) / var(--n) * 360deg - 90deg); position: absolute; left: 50%; top: 50%; width: 34%; padding: .6rem .7rem; border-radius: 14px; text-align: center;
  background: rgba(20,22,23,.92); border: 1px solid var(--edge); translate: calc(cos(var(--a)) * 120% - 50%) calc(sin(var(--a)) * 128% - 50%); }
.cx-ring-i b { display: block; font: 700 1.05rem/1.1 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-ring-i small { display: block; color: var(--mut); font-size: .78rem; line-height: 1.25; margin-top: .15rem; }
@media (max-width: 640px) { .cx-ring { aspect-ratio: auto; display: grid; gap: .5rem; } .cx-ring-c { position: static; transform: none; width: auto; aspect-ratio: auto; border-radius: 14px; padding: .4rem; } .cx-ring-i { position: static; width: auto; translate: none; text-align: left; } }
.cx-extras { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.cx-chip { padding: .4rem .75rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); font-size: .9rem; }
.cx-warn { flex-basis: 100%; display: flex; gap: .6rem; align-items: center; justify-content: center; padding: .7rem 1rem; border-radius: 12px; background: rgba(239,91,82,.12); border: 1px solid rgba(239,91,82,.4); color: #ffd0cc; }
.cx-warn .cx-ic { color: var(--bad); flex: none; }

/* steps */
.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; position: relative; }
.cx-steps li { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); }
.cx-steps li.on { border-color: rgba(196,58,52,.4); }
.cx-sn { width: 2.2rem; height: 2.2rem; flex: none; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--teal), #087980); font: 700 1.15rem 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-steps b { display: block; font: 700 clamp(1.1rem, 2.4vw, 1.35rem)/1.15 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-steps p { margin: .2rem 0 0; color: #c9cfd1; line-height: 1.4; }

/* split */
.cx-split { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .cx-split { grid-template-columns: 1fr; } }
.cx-split > div { padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--edge); }
.cx-do { background: linear-gradient(160deg, rgba(57,201,138,.14), rgba(57,201,138,.03)); border-color: rgba(57,201,138,.35) !important; }
.cx-dont { background: linear-gradient(160deg, rgba(239,91,82,.14), rgba(239,91,82,.03)); border-color: rgba(239,91,82,.35) !important; }
.cx-split h4 { display: flex; gap: .5rem; align-items: center; margin: 0 0 .6rem; font: 700 1.2rem 'Space Grotesk', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.cx-do h4 { color: var(--ok); } .cx-dont h4 { color: var(--bad); }
.cx-split ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: 1.05rem; line-height: 1.4; }

/* grid (14 allergens) */
.cx-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; }
@media (max-width: 900px) { .cx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cx-gi { padding: .85rem .7rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); font: 700 1.05rem/1.15 'Space Grotesk', system-ui, sans-serif; color: #fff; display: grid; gap: .3rem; min-height: 5.2rem; align-content: space-between; }
.cx-gi span { font-size: .8rem; color: var(--gold); letter-spacing: .1em; }

/* timeline */
.cx-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .55rem; counter-reset: tl; }
.cx-tl li { position: relative; padding: .75rem .85rem .8rem 3rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); }
.cx-tl-n { position: absolute; left: .75rem; top: .8rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; transform: rotate(45deg); border-radius: 4px; background: var(--teal); font: 700 .85rem 'Space Grotesk', system-ui, sans-serif; }
.cx-tl li b { display: block; font: 700 1.05rem/1.15 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-tl li i { display: block; color: var(--gold); font-size: .88rem; margin-top: .2rem; }

/* numbers */
.cx-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
@media (max-width: 900px) { .cx-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cx-num { padding: 1.1rem 1rem; border-radius: 18px; background: linear-gradient(160deg, rgba(196,58,52,.18), rgba(255,255,255,.03)); border: 1px solid rgba(196,58,52,.3); display: grid; gap: .4rem; }
.cx-num b { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1 'Space Grotesk', system-ui, sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.cx-num span { color: #d5d9da; line-height: 1.35; }

/* flow */
.cx-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .4rem; }
.cx-fl { padding: .7rem 1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--edge); font: 700 1.15rem 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-fl:nth-of-type(-n+3), .cx-fl:nth-of-type(4) { border-color: rgba(57,201,138,.5); }
.cx-fl.call { background: var(--gold); color: #1a1408; border-color: var(--gold); box-shadow: 0 0 24px rgba(201,169,97,.35); }
.cx-fl-ar { width: 18px; height: 2px; background: rgba(255,255,255,.3); position: relative; }
.cx-fl-ar::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: rgba(255,255,255,.3); border-right: 0; }
.cx-flow-key { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .85rem; color: var(--mut); }
.cx-flow-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.cx-flow-key .fire::before { background: var(--ok); } .cx-flow-key .hold::before { background: rgba(255,255,255,.3); } .cx-flow-key .call::before { background: var(--gold); }

/* faq flip cards */
.cx-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; perspective: 1200px; }
@media (max-width: 760px) { .cx-faq { grid-template-columns: 1fr; } }
.cx-flip { position: relative; min-height: 11rem; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .55s; }
.cx-flip.on { transform: none; } .cx-flip.flipped { transform: rotateY(180deg); }
.cx-flip > span { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 1.2rem; display: grid; place-content: center; text-align: center; border: 1px solid var(--edge); }
.cx-flip .f { background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); font: 700 1.45rem/1.15 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-flip .f small { display: block; margin-top: .6rem; font: 600 .7rem 'Inter', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.cx-flip .b { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(196,58,52,.32), rgba(196,58,52,.1)); border-color: rgba(196,58,52,.5); font-size: 1.1rem; line-height: 1.4; color: #fff; }

/* doneness */
.cx-done { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; --dc: #c42c3c; }
@media (max-width: 720px) { .cx-done { grid-template-columns: 1fr; } }
.cx-done-vis { display: grid; place-items: center; padding: 1rem; border-radius: 24px; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 65%); }
.cx-steak { width: min(100%, 440px); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.cx-st-marb { fill: none; stroke: rgba(255,236,224,.2); stroke-width: 1.8; stroke-linecap: round; }
.cx-st-shine { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3; stroke-linecap: round; }
.cx-done-name { font: 700 clamp(2rem, 6vw, 3.4rem)/1 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-done-temp { font: 700 1.5rem 'Space Grotesk', system-ui, sans-serif; color: var(--gold); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.cx-done-c { color: #d5d9da; font-size: 1.1rem; line-height: 1.4; min-height: 3em; }
.cx-range { width: 100%; margin: .6rem 0 .3rem; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #7a0d1f, #a3152a, #c42c3c, #d9707a, #d59a8c, #a07e66); outline: none; }
.cx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 2px 10px rgba(0,0,0,.5); cursor: grab; }
.cx-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); cursor: grab; }
.cx-range-lab { display: grid; grid-template-columns: repeat(6, 1fr); gap: .2rem; font-size: .72rem; color: var(--mut); text-align: center; }
.cx-range-lab span { cursor: pointer; padding: .2rem 0; border-radius: 6px; }
.cx-range-lab span.on { color: #fff; background: rgba(255,255,255,.08); }

/* in-lesson check + quiz options */
.cx-check, .cx-q { max-width: 760px; margin: auto; }
.cx-opts { display: grid; gap: .55rem; margin-top: 1.2rem; }
.cx-opt { display: flex; gap: .8rem; align-items: center; text-align: left; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--edge); background: var(--panel); cursor: pointer; font-size: 1.08rem !important; line-height: 1.35; transition: border-color .2s, background .2s, transform .15s; }
.cx-opt:not([disabled]):hover { border-color: rgba(196,58,52,.6); transform: translateX(3px); }
.cx-opt > span { width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); font: 700 1rem 'Space Grotesk', system-ui, sans-serif; }
.cx-opt.sel { border-color: var(--teal); background: rgba(196,58,52,.16); }
.cx-opt.sel > span { background: var(--teal); }
.cx-opt.right { border-color: var(--ok); background: rgba(57,201,138,.16); }
.cx-opt.right > span { background: var(--ok); }
.cx-opt.wrong { border-color: var(--bad); background: rgba(239,91,82,.14); animation: cxShake .4s; }
.cx-opt.wrong > span { background: var(--bad); }
.cx-opt[disabled] { cursor: default; }
@keyframes cxShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.cx-why { margin-top: .9rem; padding: .9rem 1rem; border-radius: 14px; line-height: 1.45; animation: cxInF .4s both; }
.cx-why.ok { background: rgba(57,201,138,.12); border: 1px solid rgba(57,201,138,.35); }
.cx-why.no { background: rgba(201,169,97,.1); border: 1px solid rgba(201,169,97,.35); }

/* finale */
.cx-finale { text-align: center; display: grid; justify-items: center; gap: .6rem; padding: 2rem 0; }
.cx-finale p { color: var(--mut); margin: 0; }
.cx-big-dia { width: 90px; height: 90px; display: grid; place-items: center; margin-bottom: .6rem; }
.cx-big-dia i { width: 64px; height: 64px; transform: rotate(45deg); border-radius: 12px; background: linear-gradient(135deg, var(--gold), #A88B4A); box-shadow: 0 0 50px rgba(201,169,97,.45); animation: cxFloat 3s ease-in-out infinite; }
@keyframes cxFloat { 50% { transform: rotate(45deg) translate(-4px, -4px); } }
.cx-start-q { display: inline-flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .85rem 1.5rem; border: 0; border-radius: 999px; background: var(--gold); color: #1a1408 !important; font: 700 1.25rem 'Space Grotesk', system-ui, sans-serif !important; cursor: pointer; box-shadow: 0 8px 28px rgba(201,169,97,.35); }

/* quiz */
.cx-qbar { display: flex; gap: 4px; margin-bottom: 1rem; }
.cx-qbar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.cx-qbar i.done { background: var(--teal); } .cx-qbar i.cur { background: var(--gold); }
.cx-qhint { color: var(--mut); font-size: .9rem; margin: 1rem 0 .4rem; }
.cx-qnav { display: flex; align-items: center; margin-top: 1.4rem; gap: .6rem; }
.cx-qnav .grow, .cx-bar .grow { flex: 1; }
.cx-qnext, .cx-qback { display: inline-flex; gap: .4rem; align-items: center; padding: .75rem 1.2rem; border-radius: 999px; border: 1px solid var(--edge); background: var(--panel); cursor: pointer; font: 700 1.1rem 'Space Grotesk', system-ui, sans-serif !important; }
.cx-qnext { background: var(--teal); border-color: var(--teal); color: #fff; }
.cx-qnext[disabled] { opacity: .35; cursor: default; }
.cx-qback[hidden] { display: none; }
.cx-match { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cx-match > div { display: grid; gap: .5rem; align-content: start; }
.cx-m { padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--edge); background: var(--panel); text-align: left; cursor: pointer; font-size: 1rem !important; line-height: 1.3; min-height: 3.2rem; transition: background .2s, border-color .2s; }
.cx-m.pick { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,169,97,.35); }
.cx-m.paired { color: #fff; }
.cx-m.p0 { background: rgba(196,58,52,.25); border-color: #C43A34; } .cx-m.p1 { background: rgba(201,169,97,.22); border-color: #C9A961; }
.cx-m.p2 { background: rgba(228,124,98,.25); border-color: #E0C283; } .cx-m.p3 { background: rgba(91,159,224,.25); border-color: #5b9fe0; }
.cx-m.p4 { background: rgba(57,201,138,.22); border-color: #39c98a; } .cx-m.p5 { background: rgba(190,120,220,.22); border-color: #be78dc; }
.cx-slots { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.cx-slots li { display: flex; gap: .7rem; align-items: center; min-height: 2.9rem; padding: .45rem .7rem; border-radius: 12px; border: 1px dashed var(--edge); color: var(--mut); }
.cx-slots li span { width: 1.8rem; height: 1.8rem; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); font: 700 .95rem 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-slots li.full { border-style: solid; border-color: rgba(196,58,52,.5); background: rgba(196,58,52,.12); color: #fff; cursor: pointer; font-size: 1.05rem; animation: cxInF .3s both; }
.cx-pool { display: flex; flex-wrap: wrap; gap: .45rem; }
.cx-chipb { padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.08); cursor: pointer; font-size: 1rem !important; }
.cx-chipb:hover { border-color: var(--gold); }

/* result */
.cx-result { max-width: 680px; margin: auto; text-align: center; display: grid; justify-items: center; gap: .5rem; padding: 1rem 0; }
.cx-score { position: relative; width: 150px; height: 150px; }
.cx-score svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.cx-score circle { fill: none; stroke-width: 9; }
.cx-score .trk { stroke: rgba(255,255,255,.1); }
.cx-score .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.cx-result.fail .cx-score .bar { stroke: var(--coral); }
.cx-score > div { position: absolute; inset: 0; display: grid; place-content: center; }
.cx-score b { font: 700 2.4rem/1 'Space Grotesk', system-ui, sans-serif; } .cx-score span { color: var(--mut); font-size: .85rem; }
.cx-result p { color: #d5d9da; font-size: 1.1rem; margin: 0; }
.cx-review { width: 100%; display: grid; gap: .45rem; margin-top: .6rem; text-align: left; }
.cx-review > div { display: flex; gap: .7rem; padding: .7rem .85rem; border-radius: 12px; background: rgba(239,91,82,.08); border: 1px solid rgba(239,91,82,.25); }
.cx-review > div > span { width: 1.7rem; height: 1.7rem; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--bad); font: 700 .9rem 'Space Grotesk', system-ui, sans-serif; }
.cx-review small { display: block; color: var(--gold); margin-top: .2rem; }
.cx-res-b { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; margin-top: .6rem; }
.cx-res-b .ghost { padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid var(--edge); background: transparent; cursor: pointer; }

/* captions + controls */
.cx-cap { position: relative; width: 100%; padding: .9rem 1.2rem .5rem; min-height: 5.2em; display: grid; place-items: end center; text-align: center; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,9,10,.55) 45%, rgba(8,9,10,.75)); font-size: clamp(1.02rem, 2.3vw, 1.3rem); line-height: 1.4; }
.cx-cap[hidden] { display: none; }
.cx-ln { grid-area: 1 / 1; max-width: 34em; margin: 0; font-weight: 600; letter-spacing: .005em; text-wrap: balance; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cx-ln.on { opacity: 1; transform: none; }
.cx-ln .w { color: rgba(244,241,234,.5); transition: color .12s; }
.cx-ln .w.said { color: #fff; }
.cx-ln .w.now { color: var(--gold); }
.cx-ln.full { max-height: 4.2em; overflow: auto; font-weight: 400; color: #e6e3dc; pointer-events: auto; scrollbar-width: none; }
.cx-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .55rem max(1rem, env(safe-area-inset-left, 0px)) calc(max(env(safe-area-inset-bottom, 0px) - 10px, 0px) + .65rem); background: rgba(8,9,10,.75); }
.cx-bl, .cx-bc, .cx-br { display: flex; align-items: center; gap: .55rem; }
.cx-bl { justify-content: flex-start; } .cx-br { justify-content: flex-end; } .cx-bc { gap: .8rem; }
.cx-b { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; border: 1px solid var(--edge); background: var(--panel); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s, box-shadow .3s; padding: 0; }
.cx-b:hover:not([disabled]) { background: rgba(255,255,255,.12); }
.cx-b[disabled] { opacity: .3; cursor: default; }
.cx-b.big { width: 3.5rem; height: 3.5rem; background: #fff; color: #0f1112 !important; border: 0; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.cx-b.big .cx-ic { width: 1.5rem; height: 1.5rem; }
.cx-b.off { opacity: .5; }
.cx-speed { width: 2.75rem; font: 700 .95rem 'Space Grotesk', system-ui, sans-serif !important; }
.cx-next.ready { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 0 rgba(196,58,52,.6); animation: cxRing 1.8s infinite; }
#cx.quiz .cx-bar { display: none; }
@media (max-width: 420px) { .cx-b { width: 2.5rem; height: 2.5rem; } .cx-speed { width: 2.5rem; } .cx-b.big { width: 3.2rem; height: 3.2rem; } .cx-bl, .cx-br { gap: .35rem; } .cx-bc { gap: .55rem; } .cx-title span { display: none; } }

/* Large screens: the slide scales up with the window (--cxz from the player, 1–1.45). */
.cx-slide, .cx-bar, .cx-top { zoom: var(--cxz, 1); }
.cx-cap { font-size: calc(clamp(1.02rem, 2.3vw, 1.3rem) * var(--cxz, 1)); }

/* sparks + confetti */
.cx-spark { position: fixed; z-index: 9500; width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); border-radius: 2px; pointer-events: none; animation: cxSpark .85s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes cxSpark { to { translate: var(--dx) var(--dy); opacity: 0; scale: .4; } }
.cx-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.cx-confetti i { position: absolute; top: -20px; width: var(--s); height: var(--s); background: var(--c); border-radius: 2px; transform: rotate(45deg); animation: cxFall var(--t) cubic-bezier(.3,.6,.5,1) var(--d) forwards; }
@keyframes cxFall { to { translate: 0 110vh; rotate: var(--r); } }

@media (prefers-reduced-motion: reduce) {
  .cx-bg, .cx-dia i, .cx-begin, .cx-next.ready, .cx-big-dia i { animation: none; }
  .cx-slide.enter-f, .cx-slide.enter-b { animation: none; }
  [data-cue] { transition: none; }
  .cx-confetti { display: none; }
}

/* The app's base button/heading styles (uppercase, orange, 44px) stay out of the Academy. */
#cx button, .acx button { text-transform: none; letter-spacing: normal; min-height: 0; filter: none; }
.acx-mod, .acx-go { font-family: inherit; }
.acx-go { font: 700 1.05rem/1.1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .04em; }
.acx-mt b { letter-spacing: .02em; }
.acx-stage-head h3 { margin: 0; color: var(--ink); font-size: 1.25rem; letter-spacing: .08em; }
.acx-stage-head h3::before { display: none; }
.acx-hero h2 { margin-bottom: .3rem; }
.cx-check h2, .cx-q h2 { text-transform: none; letter-spacing: 0; font-size: clamp(1.45rem, 3.6vw, 2.1rem); line-height: 1.15; }
#cx h2 { margin-bottom: 0; }
/* Text never sits straight on the patterned field (same fix as the Levels hero): the stage title gets its own plate. */
.acx-stage-head > div { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: .45rem .85rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.acx-foot { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .85rem; margin: 0; }
/* Laptop/desktop: the path uses the width (the view is .wide for `academy`). */
#view.wide > .acx { max-width: none; }
@media (min-width: 1024px) {
  .acx-mods { grid-template-columns: repeat(auto-fill, minmax(max(15rem, calc((100% - 3.5rem) / 6)), 1fr)); gap: .7rem; }
  .acx-mod { padding: 1rem 1rem; min-height: 5.2rem; }
  .acx-mi { width: 3rem; height: 3rem; }
  .acx-mt b { font-size: 1.15rem; }
  .acx-hero { min-height: 15rem; }
  .acx-hero h2 { font-size: clamp(2rem, 2.6vw, 3.1rem); }
  .acx-hero p { font-size: 1.1rem; }
  .acx-hero { padding: 1.8rem 2rem; }
  .acx-ring, .acx-ring svg { width: 130px; height: 130px; }
}

/* ---------- Start screen, episodes, gating (13 Oct) ---------- */
.cx-top { grid-template-columns: auto 1fr auto; }
.cx-x { padding: 0 !important; }
.cx-x .cx-ic { width: 1.15rem; height: 1.15rem; }
.cx-eps { display: inline-flex; align-items: center; gap: .45rem; height: 2.4rem; padding: 0 .9rem 0 .75rem !important; border-radius: 999px; border: 1px solid var(--edge); background: var(--panel); cursor: pointer; font: 700 .95rem 'Space Grotesk', system-ui, sans-serif !important; letter-spacing: .04em !important; }
.cx-eps .cx-ic { width: 1.1rem; height: 1.1rem; }
@media (max-width: 420px) { .cx-eps span { display: none; } .cx-eps { padding: 0 !important; width: 2.4rem; justify-content: center; } }
.cx-next.locked { opacity: .35; }
.cx-menu { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1rem; background: radial-gradient(80% 70% at 50% 40%, rgba(196,58,52,.14), transparent 70%), rgba(6,7,8,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .22s; }
.cx-menu.in { opacity: 1; }
.cx-mc { width: min(100%, 30rem); max-height: 100%; overflow: auto; padding: 1.5rem 1.4rem 1.3rem; border-radius: 22px; background: linear-gradient(165deg, rgba(36,40,42,.96), rgba(18,20,21,.96)); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(10px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); zoom: var(--cxz, 1); }
.cx-menu.in .cx-mc { transform: none; }
.cx-mc h2 { margin: .35rem 0 .2rem !important; font: 700 clamp(1.9rem, 6vw, 2.5rem)/1 'Space Grotesk', system-ui, sans-serif; color: #fff; text-transform: none !important; letter-spacing: 0 !important; }
.cx-mmeta { margin: .3rem 0; color: var(--mut); font-size: .92rem; } .cx-mmeta .ok { color: var(--ok); }
.cx-mbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: .9rem; }
.cx-mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 3px; }
.cx-mbtns { display: grid; gap: .55rem; margin-top: 1.2rem; }
.cx-mb { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .8rem 1rem !important; border-radius: 14px; border: 1px solid var(--edge); background: var(--panel); cursor: pointer; font: 700 1.1rem/1.15 'Space Grotesk', system-ui, sans-serif !important; transition: background .2s, border-color .2s; }
.cx-mb .cx-ic { width: 1.35rem; height: 1.35rem; flex: none; }
.cx-mb small { display: block; font: 600 .7rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: .15rem; }
.cx-mb small.sub { text-transform: none; letter-spacing: 0; font-size: .78rem; margin: .15rem 0 0; }
.cx-mb:hover:not([disabled]) { border-color: rgba(196,58,52,.6); background: rgba(255,255,255,.09); }
.cx-mb.pri { background: linear-gradient(135deg, var(--teal), #8A1915); border-color: transparent; color: #fff; box-shadow: 0 8px 26px rgba(196,58,52,.35); }
.cx-mb.gold:not([disabled]) { color: var(--gold); border-color: rgba(201,169,97,.45); }
.cx-mb[disabled] { opacity: .45; cursor: default; }
.cx-mc.eps { width: min(100%, 36rem); }
.cx-mhead { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.cx-mback { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; border: 1px solid var(--edge); background: var(--panel); display: grid; place-items: center; cursor: pointer; padding: 0 !important; }
.cx-eplist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cx-ep { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .65rem .8rem !important; border-radius: 12px; border: 1px solid var(--edge); background: var(--panel); cursor: pointer; }
.cx-ep:hover:not([disabled]) { border-color: rgba(196,58,52,.55); }
.cx-epn { width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); font: 700 1rem 'Space Grotesk', system-ui, sans-serif; }
.cx-epn .cx-ic { width: 1.1rem; height: 1.1rem; }
.cx-ept { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.cx-ept b { font: 700 1.05rem/1.15 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-ept small { color: var(--mut); font-size: .8rem; }
.cx-eps-st { flex: none; color: var(--mut); } .cx-eps-st .cx-ic { width: 1.15rem; height: 1.15rem; }
.cx-ep.seen .cx-epn { background: rgba(196,58,52,.22); color: #E58A82; } .cx-ep.seen .cx-eps-st { color: var(--ok); }
.cx-ep.next { border-color: rgba(196,58,52,.55); } .cx-ep.next .cx-epn { background: var(--teal); color: #fff; } .cx-ep.next .cx-eps-st { color: var(--teal); }
.cx-ep.cur { box-shadow: inset 0 0 0 1px var(--gold); }
.cx-ep.locked, .cx-ep[disabled] { opacity: .45; cursor: default; }
.cx-ep.quiz:not([disabled]) .cx-epn { background: var(--gold); color: #1a1408; }
.cx-toast { position: absolute; z-index: 45; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 4.2rem); transform: translate(-50%, -8px); padding: .6rem 1rem; border-radius: 999px; background: rgba(201,169,97,.95); color: #1a1408; font: 700 1rem 'Space Grotesk', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap; pointer-events: none; }
.cx-toast.in { opacity: 1; transform: translate(-50%, 0); }

/* Cover fills the stage exactly (never cut off), whatever the window size; not zoomed. */
.cx-slide.k-cover { zoom: 1; height: 100%; display: grid; max-width: none; }
.cx-cover { min-height: 0; height: 100%; }
.cx-stage:has(.k-cover) { overflow: hidden; }

/* ---------- Title screen, red ✕, Back to Academy, View as staff (13 Oct) ---------- */
.cx-mc { position: relative; }
.cx-mx { position: absolute; top: .8rem; right: .8rem; width: 2rem; height: 2rem; padding: 0 !important; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: #e5484d; color: #fff !important; box-shadow: 0 4px 14px rgba(229,72,77,.45); transition: transform .15s, filter .15s; }
.cx-mx:hover { transform: scale(1.08); filter: brightness(1.08); }
.cx-mx .cx-ic { width: .95rem; height: .95rem; stroke-width: 2.6; }
.cx-mc.eps .cx-mhead { padding-right: 2.4rem; }
.cx-mb.home { background: transparent; border-style: dashed; color: var(--mut); font-size: 1rem !important; }
.cx-mmeta .free { color: #E58A82; }
.cx-topts { display: grid; gap: .6rem; margin-top: .8rem; animation: cxInF .45s both; }
.cx-topts .cx-mmeta { color: rgba(255,255,255,.75); }
.cx-tbtns { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 52rem; }
.cx-tbtns .cx-mb { width: auto; flex: 0 1 auto; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(15,17,18,.55); }
.cx-tbtns .cx-mb.pri { background: linear-gradient(135deg, var(--teal), #8A1915); }
.cx-tbtns .cx-mb.home { background: rgba(15,17,18,.35); }
@media (max-width: 520px) { .cx-tbtns .cx-mb { width: 100%; } }

.acx-staff { display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 .9rem; padding: .45rem .8rem .45rem .5rem; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.acx-staff input { position: absolute; opacity: 0; pointer-events: none; }
.acx-sw { width: 2.4rem; height: 1.4rem; flex: none; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; transition: background .2s; }
.acx-sw::after { content: ''; position: absolute; left: .18rem; top: .18rem; width: 1.04rem; height: 1.04rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.acx-staff input:checked + .acx-sw { background: var(--gold); }
.acx-staff input:checked + .acx-sw::after { transform: translateX(1rem); }
.acx-staff b { display: block; font: 700 .95rem/1.1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.acx-staff small { display: block; font-size: .75rem; color: #c9cfd1; }

/* ---------- Story layout (13 Oct, round 3) ---------- */
#cx { grid-template-rows: auto 1fr auto; }
.cx-top { display: grid !important; grid-template-columns: 1fr !important; gap: .6rem; padding: calc(env(safe-area-inset-top, 0px) + .7rem) 1rem .5rem; background: linear-gradient(180deg, rgba(8,9,10,.7), rgba(8,9,10,0)); position: relative; z-index: 5; }
.cx-row { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.cx-row .cx-x { width: 2.5rem; height: 2.5rem; flex: none; }
.cx-row .cx-title { flex: 1; }
.cx-prog { margin: 0; }
.cx-top .cx-bar { padding: 0; background: none; border: 0; }
.cx-b.cx-eps { width: 2.75rem; height: 2.75rem; padding: 0 !important; display: grid; border-radius: 50%; }
.cx-b.cx-eps .cx-ic { width: 1.25rem; height: 1.25rem; }
@media (max-width: 420px) { .cx-b.cx-eps { width: 2.5rem; height: 2.5rem; } .cx-bl, .cx-br { gap: .3rem; } .cx-bc { gap: .45rem; } }
.cx-cap { padding: .6rem 1.2rem calc(env(safe-area-inset-bottom, 0px) + .9rem); min-height: 4.6em; font-size: calc(clamp(1.15rem, 3.4vw, 1.5rem) * var(--cxz, 1)); }
.cx-ln { font-weight: 600; }
.cx-stage { cursor: pointer; }
.cx-cover h1 { font-size: clamp(2.9rem, 12.5vw, 5.6rem); line-height: .95; }
.cx-tap { position: absolute; z-index: 30; top: 50%; width: 4rem; height: 4rem; margin-top: -2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; animation: cxTap .45s ease-out forwards; pointer-events: none; }
.cx-tap.l { left: 1.2rem; } .cx-tap.r { right: 1.2rem; }
.cx-tap .cx-ic { width: 1.6rem; height: 1.6rem; }
@keyframes cxTap { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.25); } }

/* Every step is visible from the start as a faint outline; the one being spoken is lit. */
[data-cue] { opacity: .16; transform: none; }
[data-cue].on { opacity: 1; }

/* Steps: a timeline of numbered diamonds; the current step glows gold, the ones already covered stay teal. */
.cx-steps { gap: .3rem; padding-left: .2rem; }
.cx-steps li { position: relative; background: transparent; border: 0; padding: .75rem .4rem .75rem 0; gap: 1.1rem; align-items: center; }
.cx-steps li:not(:last-child)::after { content: ''; position: absolute; left: 1.45rem; top: 3.2rem; bottom: -1rem; width: 2px; background: linear-gradient(rgba(196,58,52,.55), rgba(196,58,52,.08)); }
.cx-sn { width: 2.9rem; height: 2.9rem; border-radius: 9px; transform: rotate(45deg); background: rgba(196,58,52,.18); border: 1px solid rgba(196,58,52,.5); flex: none; margin-left: .05rem; transition: background .4s, box-shadow .4s, border-color .4s; }
.cx-sn i { transform: rotate(-45deg); font-style: normal; font: 700 1.25rem 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-steps li.on .cx-sn { background: linear-gradient(135deg, var(--teal), #087980); }
.cx-steps li.now .cx-sn { background: linear-gradient(135deg, var(--gold), #A88B4A); border-color: var(--gold); box-shadow: 0 0 26px rgba(201,169,97,.5); }
.cx-steps li.now .cx-sn i { color: #1a1408; }
.cx-stx { padding: .7rem 1rem; border-radius: 14px; flex: 1; min-width: 0; border: 1px solid transparent; transition: background .4s, border-color .4s; }
.cx-steps li.now .cx-stx { background: rgba(201,169,97,.08); border-color: rgba(201,169,97,.35); }
.cx-steps b { font-size: clamp(1.15rem, 3vw, 1.45rem); }
.cx-steps p { font-size: 1.02rem; }
.cx-points li.now, .cx-card.now, .cx-num.now, .cx-gi.now, .cx-tl li.now { box-shadow: 0 0 0 1px rgba(201,169,97,.6), 0 12px 34px rgba(201,169,97,.15); }

/* The three questions: a guest asks, you answer, as a short conversation. */
.cx-chat { display: grid; gap: 1.1rem; max-width: 46rem; }
.cx-qa { display: grid; gap: .45rem; }
.cx-bub { max-width: 85%; padding: .8rem 1.05rem .9rem; border-radius: 20px; position: relative; }
.cx-bub p { margin: 0; line-height: 1.38; }
.cx-bub .who { display: inline-flex; align-items: center; gap: .35rem; font: 700 .72rem 'Inter', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: .25rem; }
.cx-bub .who .cx-ic { width: .85rem; height: .85rem; }
.cx-bub.guest { justify-self: start; background: rgba(255,255,255,.08); border: 1px solid var(--edge); border-bottom-left-radius: 6px; }
.cx-bub.guest p { font: 700 clamp(1.25rem, 3.4vw, 1.6rem)/1.15 'Space Grotesk', system-ui, sans-serif; color: #fff; }
.cx-bub.you { justify-self: end; text-align: left; background: linear-gradient(135deg, rgba(196,58,52,.38), rgba(8,121,128,.3)); border: 1px solid rgba(196,58,52,.55); border-bottom-right-radius: 6px; color: #fff; font-size: 1.05rem;
  opacity: 0; transform: translateY(8px); transition: opacity .45s .7s, transform .45s .7s; }
.cx-qa.on .cx-bub.you { opacity: 1; transform: none; }
.cx-qa.now .cx-bub.guest { border-color: rgba(201,169,97,.55); }

/* ---------- Controls round 4 (13 Oct): sealed to the screen, centred play, settings, playback bar ---------- */
#cx { grid-template-rows: auto minmax(0, 1fr) auto auto; width: 100vw; max-width: 100%; overflow: hidden; }
.cx-top, .cx-stage, .cx-cap, .cx-scrub { min-width: 0; max-width: 100vw; }
.cx-row .cx-title { min-width: 0; overflow: hidden; }
.cx-top .cx-bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4rem; min-width: 0; }
.cx-bl, .cx-br { min-width: 0; gap: .4rem; }
.cx-bc { gap: .6rem; }
.cx-b { width: 2.6rem; height: 2.6rem; }
.cx-b.big { width: 3.3rem; height: 3.3rem; }
@media (max-width: 400px) { .cx-b { width: 2.35rem; height: 2.35rem; } .cx-b.big { width: 3rem; height: 3rem; } .cx-bc { gap: .4rem; } .cx-bl, .cx-br { gap: .3rem; } }
.cx-b.cx-set[aria-expanded="true"] { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.cx-setp { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; width: min(17rem, calc(100vw - 2rem)); padding: .5rem; border-radius: 16px; display: grid; gap: .2rem;
  background: rgba(24,27,28,.97); border: 1px solid var(--edge); box-shadow: 0 18px 44px rgba(0,0,0,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cx-setp[hidden] { display: none; }
.cx-setr { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .6rem; border-radius: 10px; font: 700 1rem 'Space Grotesk', system-ui, sans-serif; letter-spacing: .04em; }
.cx-tog { width: 2.7rem; height: 1.55rem; padding: 0 !important; border-radius: 999px; border: 0; background: rgba(255,255,255,.18); position: relative; cursor: pointer; flex: none; }
.cx-tog i { position: absolute; left: .2rem; top: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.cx-tog.on { background: var(--teal); } .cx-tog.on i { transform: translateX(1.15rem); }
.cx-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(255,255,255,.08); }
.cx-seg button { padding: .3rem .5rem !important; border: 0; border-radius: 8px; background: transparent; color: var(--mut); cursor: pointer; font: 700 .9rem 'Space Grotesk', system-ui, sans-serif !important; font-variant-numeric: tabular-nums; }
.cx-seg button.on { background: var(--teal); color: #fff; }

/* Episode playback bar: thin track, gold fill, a thumb; the part you may drag to is lighter. */
.cx-scrub { display: flex; align-items: center; gap: .7rem; padding: .3rem 1.1rem 0; font: 700 .8rem 'Space Grotesk', system-ui, sans-serif; color: var(--mut); font-variant-numeric: tabular-nums; }
.cx-scrub[hidden] { display: none; }
.cx-track { position: relative; flex: 1; height: 22px; display: grid; align-items: center; }
.cx-track::before, .cx-reach, .cx-fill { content: ''; position: absolute; left: 0; height: 4px; border-radius: 2px; top: 9px; pointer-events: none; }
.cx-track::before { right: 0; background: rgba(255,255,255,.14); }
.cx-reach { background: rgba(255,255,255,.28); }
.cx-fill { background: linear-gradient(90deg, var(--teal), var(--gold)); }
.cx-track input { position: relative; width: 100%; margin: 0; height: 22px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.cx-track input::-webkit-slider-runnable-track { height: 22px; background: transparent; }
.cx-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.cx-track input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.cx-track input::-moz-range-track { background: transparent; }
.cx-scrub + .cx-cap { padding-top: .3rem; }

/* Timeline line runs between the diamonds, behind them, never through the number. */
.cx-steps li { align-items: flex-start; }
.cx-sn { position: relative; z-index: 1; margin-top: .55rem; background-color: #12302f; }
.cx-steps li:not(:last-child)::after { top: 3.9rem; bottom: -.9rem; z-index: 0; }
.cx-stx { min-width: 0; }
.cx-track input, .cx-track input:focus { border: 0 !important; padding: 0 !important; background: transparent !important; outline: none; box-shadow: none; border-radius: 0; font-size: 16px; }
/* Timeline with facts rather than guest quotes: wider cards, readable body text. */
.cx-tl.plain { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .7rem; }
.cx-tl.plain li { padding: .9rem 1rem 1rem 3.2rem; }
.cx-tl.plain li b { font-size: 1.25rem; color: var(--gold); }
.cx-tl.plain li p { margin: .3rem 0 0; color: #e6e3dc; font-size: 1.02rem; line-height: 1.4; }
/* Autoplay countdown: a gold ring sweeps round the Next button before it moves on. */
.cx-next.auto { position: relative; background: var(--teal); border-color: var(--teal); animation: none; }
.cx-next.auto::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--gold) var(--p, 0%), transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cxAuto 1.8s linear forwards; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes cxAuto { to { --p: 100%; } }

/* ---------- Tracks (13 Oct): FOH · Kitchen · Management switch for managers ---------- */
.acx-tracks { display: flex; gap: .3rem; padding: .3rem; margin: 0 0 .8rem; border-radius: 999px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.12); max-width: 34rem; }
.acx .acx-tracks button { flex: 1 1 0; min-width: 0; padding: .5rem .7rem; border: 0; border-radius: 999px; background: transparent; color: #c9cfd1; cursor: pointer;
  font: 700 .9rem/1.1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx .acx-tracks button.on { background: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(196,58,52,.35); }
@media (max-width: 420px) { .acx .acx-tracks button { font-size: .8rem; padding: .5rem .4rem; letter-spacing: .03em; } }

/* ---------- Controls at the bottom (13 Oct, round 5): top = close + title; dock = control bar, episode indicator, then the
   playback bar and subtitles. Settings opens upwards. ---------- */
#cx { grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.cx-dock { display: grid; gap: .7rem; padding: .5rem 1rem .15rem; min-width: 0; max-width: 100vw; position: relative; z-index: 5;
  background: linear-gradient(0deg, rgba(8,9,10,.75), rgba(8,9,10,0)); zoom: var(--cxz, 1); }
.cx-dock .cx-bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4rem; min-width: 0; padding: 0; background: none; border: 0; zoom: 1; }
.cx-dock .cx-prog { margin: 0; }
.cx-dock .cx-setp { top: auto; bottom: calc(100% + .5rem); }
.cx-top { padding-bottom: .3rem; }
.cx-dock + .cx-scrub { padding-top: .35rem; }
#cx.quiz .cx-dock .cx-bar { display: none; }
.acx-tracks .tk-s { display: none; }
@media (max-width: 560px) { .acx-tracks .tk-l { display: none; } .acx-tracks .tk-s { display: inline; } }
@media (max-width: 560px) { .acx .acx-tracks button { padding-inline: .3rem; letter-spacing: .02em; } }

/* ---------- Twenty 1 additions (17 Oct 2026) ---------- */
#academyView { padding-bottom: 1.5rem; }
.acx-hero { background: radial-gradient(120% 140% at 0% 0%, rgba(138,25,21,.55), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(201,169,97,.2), transparent 60%), var(--bg-elevated, #15171A);
  border: 1px solid var(--t1-hairline, rgba(255,255,255,.08)); color: var(--text, #F6E8D8); }
.acx-hero::after { opacity: .045; }
.acx-go { background: linear-gradient(135deg, #C43A34, #8A1915); color: #fff; box-shadow: 0 8px 24px rgba(138,25,21,.45); }
.acx-stage-head h3 { color: var(--text, #F6E8D8); }
.acx-mod { background: var(--t1-surface, rgba(255,255,255,.038)); border-color: var(--t1-hairline, rgba(255,255,255,.08)); border-radius: var(--t1-r-card, 16px); min-height: 64px; }
.acx-mod:not([disabled]):hover { box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.cx-cover .cx-bg.brand { background: radial-gradient(70% 60% at 20% 15%, rgba(196,58,52,.55), transparent 65%), radial-gradient(60% 50% at 85% 90%, rgba(201,169,97,.28), transparent 70%), #0B0C0C; }
.cx-cover .cx-bg.brand::after { content: ''; position: absolute; right: -6vmin; top: 50%; width: 62vmin; height: 62vmin; transform: translateY(-50%); background: url('/img/logo-emblem.png') center / contain no-repeat; opacity: .13; }
.cx-ghost { min-height: 48px; padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: 600 1rem/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.cx-loading { position: fixed; inset: 0; z-index: 2550; display: grid; place-content: center; justify-items: center; gap: .8rem; background: rgba(11,12,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text-muted, #B3A899); font: 600 .8rem/1 'Inter', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.acx-loading { display: flex; gap: .55rem; justify-content: center; padding: 2.5rem 0; }
.acx-loading i { width: 12px; height: 12px; transform: rotate(45deg); background: #C9A961; opacity: .25; animation: acxDia 1.2s infinite ease-in-out; }
.acx-loading i:nth-child(2) { animation-delay: .15s; } .acx-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes acxDia { 40% { opacity: 1; } }
.acx-err { color: var(--danger, #ef5b52); padding: 1rem 0; }
.acx-foot { font-size: .8rem; color: var(--text-muted, #B3A899); line-height: 1.45; margin: .2rem 0 0; }
/* Path | Team switch (managers) */
.acx-sub { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--t1-surface, rgba(255,255,255,.038)); border: 1px solid var(--t1-hairline, rgba(255,255,255,.08)); justify-self: start; }
.acx-sub button, .acx-tf button { min-height: 40px; padding: .5rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted, #B3A899); font: 600 .85rem/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.acx-sub button.on, .acx-tf button.on { background: #8A1915; color: #fff; }
/* Team progress */
.acx-team { display: grid; gap: .9rem; }
.acx-team-head { display: grid; gap: .8rem; }
.acx-team-head h2 { margin: .35rem 0 .3rem; font: 700 1.6rem/1.05 'Space Grotesk', system-ui, sans-serif; color: var(--text, #F6E8D8); }
.acx-team-head p { margin: 0; color: var(--text-muted, #B3A899); max-width: 60ch; line-height: 1.45; font-size: .92rem; }
.acx-tf { display: flex; flex-wrap: wrap; gap: .3rem; }
.acx-tbl-wrap { overflow-x: auto; border-radius: var(--t1-r-card, 16px); border: 1px solid var(--t1-hairline, rgba(255,255,255,.08)); background: var(--t1-surface, rgba(255,255,255,.038)); }
.acx-tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .85rem; }
.acx-tbl th, .acx-tbl td { padding: .55rem .6rem; border-bottom: 1px solid var(--t1-hairline, rgba(255,255,255,.08)); text-align: center; white-space: nowrap; }
.acx-tbl thead th { font: 600 .72rem/1.2 'Inter', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #B3A899); vertical-align: bottom; }
.acx-tbl th.md { min-width: 3rem; max-width: 3rem; height: 9.5rem; padding: .4rem .2rem; }
.acx-tbl th.md span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 9rem; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--text, #F6E8D8); }
.acx-tbl .nm { text-align: left; position: sticky; left: 0; background: var(--bg, #0B0C0C); z-index: 1; min-width: 9rem; }
.acx-tbl td.nm b { display: block; color: var(--text, #F6E8D8); font-weight: 600; }
.acx-tbl td.nm small { color: var(--text-muted, #B3A899); text-transform: capitalize; }
.acx-tbl select { min-height: 40px; font-size: 16px; padding: .3rem .5rem; border-radius: 10px; background: var(--bg-elevated-2, #1D2024); color: var(--text, #F6E8D8); border: 1px solid var(--border, #2A2E34); }
.acx-tbl td.dn { font-variant-numeric: tabular-nums; color: var(--text, #F6E8D8); font-weight: 600; }
.acx-tbl td.cell { color: var(--text-muted, #B3A899); font-variant-numeric: tabular-nums; }
.acx-tbl td.cell i { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid rgba(255,255,255,.25); }
.acx-tbl td.cell.ok { color: #39c98a; } .acx-tbl td.cell.ok .cx-ic { width: 1.1rem; height: 1.1rem; }
.acx-tbl td.cell.try { color: #E0C283; }
.acx-tbl td.cell.off { background: rgba(0,0,0,.28); }
.acx-empty { color: var(--text-muted, #B3A899); padding: 1.5rem !important; }
/* Twenty 1 has no background field behind the page, so the Sonrisa "chips" behind stage titles and the footnote go. */
.acx-stage-head > div, .acx .acx-foot { background: none; border: 0; box-shadow: none; padding: 0; }
.acx-stage-head h3 { letter-spacing: .01em; }
.acx-tracks { max-width: 40rem; }
/* The player is sized in rem from the Sonrisa app (16px root). Twenty 1's root is smaller, so while the full-screen
   player is open the root goes to 16px (the page underneath is covered and restored on close). */
html:has(body.cx-open) { font-size: 16px; }
