/* The CST Portfolio Challenge — phone-first, single-player.
   Look and feel from the workshop slides: Poppins, white cards with coral /
   steel-teal / gold top rules, a dark brown timer and a dark "golden rule" screen. */

:root {
  --red: #d8433f;
  --teal: #4f8fa6;
  --gold: #e3a21a;
  --brown: #3f3532;
  --ink: #2b2725;
  --text: #46403d;
  --muted: #7a7470;
  --line: #e7e4e0;
  --card: #f4f3f1;
  --bg: #fbfaf9;
  --pos: #1f8a5b;
  --neg: #c4362f;
  --yellow: #f5c518;
  --ice: #dcecf5;
  --radius: 12px;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #ebe8e4; line-height: 1.45; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.sm { font-size: 0.85rem; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.zero { color: var(--muted); }
.star { color: var(--gold); font-weight: 800; margin-left: 1px; }
.loading { min-height: 70vh; display: grid; place-items: center; font-size: 2rem; color: var(--muted); }
.fatal { max-width: 480px; margin: 15vh auto; padding: 24px; background: #fff; border-left: 6px solid var(--red); }

/* Asset and topic colours: each sets --c for bars, dots, sliders and rules. */
.a-equities { --c: var(--red); }
.a-bonds { --c: var(--teal); }
.a-realAssets { --c: var(--gold); }
.a-cash { --c: var(--brown); }
.c-red { --c: var(--red); }
.c-teal { --c: var(--teal); }
.c-gold { --c: var(--gold); }
.dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--c); margin-right: 0.5em; flex: none; }

/* ---- App shell -------------------------------------------------------- */
.app { max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, 0.06); }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.bar-fill { flex: 1; }
.bar-status { flex: 1; min-width: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { display: block; height: 36px; width: auto; flex: none; }
.logo.sm { height: 28px; }
.iconbtn { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--card); color: var(--muted); font-size: 1rem; font-weight: 700; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { border: 0; background: transparent; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.lang button.on { background: var(--ink); color: #fff; }

.timer { background: var(--brown); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 7px; font-size: 1.05rem; flex: none; transition: background 0.3s; }
.timer.urgent { background: #8c2a26; }
.timer.done { background: var(--red); }
.tbar { position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 9; height: 4px; background: var(--line); }
.tbar i { display: block; height: 100%; background: var(--teal); transition: width 0.25s linear; }
.tbar.urgent i { background: var(--red); }

.main { flex: 1; padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.foot { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 18px; font-size: 0.72rem; color: var(--muted); }
.foot .est { color: #8a5d00; font-weight: 600; }

/* ---- Common pieces ---------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:active:not(:disabled) { background: #b93632; }
.btn.ghost { border-color: var(--line); }
.btn:disabled { opacity: 0.4; }
.btn.block { width: 100%; }
.actionbar .btn.primary:not(.block) { flex: 1; }
.linkbtn { border: 0; background: none; color: var(--teal); font-weight: 600; font-size: 0.88rem; padding: 10px 0 4px; }

.kicker { color: var(--red); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card h2 { font-size: 1.08rem; margin-bottom: 8px; }

.abar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--line); width: 100%; }
.abar span { background: var(--c); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; min-width: 0; white-space: nowrap; overflow: hidden; transition: flex 0.2s; }
.abar span + span { border-left: 2px solid #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: var(--muted); margin: 10px 0 2px; }
.legend span { display: inline-flex; align-items: center; }

.badge-year { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fdf1d6; color: #8a5d00; font-weight: 700; font-size: 0.88rem; }
.badge-year.new { background: var(--gold); color: #fff; animation: pop 0.6s ease-out; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Home ------------------------------------------------------------- */
.lockup-h { display: block; height: 40px; width: auto; flex: none; }
.hero { padding: 8px 2px 4px; }
.badge { width: min(220px, 60vw); margin: 4px auto 18px; padding: 10px; background: #fff; border: 2px solid #c9a24a; border-radius: 18px; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #e8d6a6, 0 10px 30px rgba(0, 0, 0, 0.08); animation: pop 0.7s ease-out; }
.badge svg { display: block; width: 100%; height: auto; }
.hero-text .btn { margin-top: 16px; }
.badge-sm { display: block; width: 56px; height: auto; border-radius: 8px; }
.hero h1 { font-size: 1.75rem; font-weight: 800; margin: 8px 0 10px; }
.hero p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps b { font-size: 1.3rem; font-weight: 800; line-height: 1.2; min-width: 1.6em; }
.steps .s1 b { color: var(--red); }
.steps .s2 b { color: var(--teal); }
.steps .s3 b { color: var(--gold); }
.steps .s4 b { color: var(--brown); }
.how { border-top: 4px solid var(--red); }
.settings { display: flex; flex-direction: column; gap: 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 4px 0 10px; }
.set-label { font-weight: 600; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: #fff; width: 40px; height: 38px; font-weight: 700; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 12px 0; }
.toggle:disabled { opacity: 0.5; }
.tg-text { display: flex; flex-direction: column; }
.tg-text b { font-weight: 600; color: var(--ink); }
.tg-text small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #d6d2cd; position: relative; transition: background 0.2s; flex: none; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.toggle.on .switch { background: var(--teal); }
.toggle.on .switch::after { transform: translateX(20px); }
.best-line { text-align: center; font-weight: 700; color: #8a5d00; }

/* ---- Headlines & allocation ------------------------------------------ */
.round-intro .title { font-size: 1.5rem; font-weight: 800; margin: 6px 0 6px; }
.round-intro .sub { font-size: 0.85rem; color: var(--muted); }
.round-intro .sub b { color: var(--red); }
.hcards { display: flex; flex-direction: column; gap: 10px; }
.hcard { background: var(--card); border-top: 4px solid var(--c); padding: 10px 14px 12px; animation: rise 0.4s ease-out both; }
.hcard:nth-child(2) { animation-delay: 0.05s; }
.hcard:nth-child(3) { animation-delay: 0.1s; }
.hcard:nth-child(4) { animation-delay: 0.15s; }
.hcard:nth-child(5) { animation-delay: 0.2s; }
.hcard:nth-child(6) { animation-delay: 0.25s; }
.hcard h3 { color: var(--c); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.hcard p { font-size: 1rem; color: var(--text); }

.alloc { border-top: 4px solid var(--teal); scroll-margin-top: 80px; }
.alloc .abar { margin: 12px 0 4px; }
.arow { padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.ar-top { display: flex; align-items: center; margin-bottom: 4px; }
.ar-name { flex: 1; font-weight: 700; color: var(--ink); line-height: 1.25; font-size: 0.95rem; }
.ar-name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.ar-val { font-size: 1.45rem; font-weight: 800; color: var(--c); min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }
.ar-ctl { display: flex; align-items: center; gap: 10px; }
.ar-ctl input[type='range'] { flex: 1; min-width: 0; accent-color: var(--c); height: 36px; margin: 0; }
.step { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--c); background: #fff; color: var(--c); font-size: 1.5rem; font-weight: 700; line-height: 1; display: grid; place-items: center; padding: 0; }
.step:active { background: var(--c); color: #fff; }
.guess { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.guess small { color: var(--muted); font-weight: 500; }
.guess input { width: 6.2em; padding: 10px; border: 2px solid var(--line); border-radius: 9px; font-size: 1.2rem; text-align: center; letter-spacing: 0.12em; font-weight: 700; background: #fff; }
.guess input:focus { outline: none; border-color: var(--gold); }
.total-pill { flex: none; max-width: 48%; padding: 8px 12px; border-radius: 9px; font-weight: 700; font-size: 0.85rem; line-height: 1.2; text-align: center; }
.total-pill.ok { background: #e7f4ed; color: var(--pos); }
.total-pill.bad { background: #fbe9e7; color: var(--neg); }

/* ---- Results ---------------------------------------------------------- */
.notice { background: var(--brown); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; }
.result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 5px solid var(--red); }
.result .abar { margin-top: 6px; }
.bigret, .bigval { font-size: 3.2rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; animation: pop 0.6s ease-out; }
.bigval { color: var(--ink); font-size: 2.8rem; }
.note { font-size: 0.85rem; color: #8a5d00; background: #fdf1d6; padding: 6px 10px; border-radius: 6px; }
.vs { font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; }
.vs.win { background: #e7f4ed; color: var(--pos); }
.vs.lose { background: #fbe9e7; color: var(--neg); }
.vs.level { background: var(--card); color: var(--muted); }

.vs.twist { background: #fdf1d6; color: #8a5d00; }

/* Strategies comparison */
.strat { display: flex; flex-direction: column; gap: 10px; }
.srank { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.sr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name val' 'bar bar'; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); --b: #bdb6af; }
.sr:last-child { border-bottom: 0; }
.sr-name { grid-area: name; display: flex; flex-direction: column; min-width: 0; }
.sr-name b { color: var(--ink); font-size: 0.95rem; }
.sr-name small { color: var(--muted); font-size: 0.74rem; line-height: 1.3; }
.sr-val { grid-area: val; display: flex; flex-direction: column; align-items: flex-end; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.sr-val b { font-size: 1rem; color: var(--ink); }
.sr-bar { grid-area: bar; height: 12px; }
.sr-bar i { display: block; height: 100%; background: var(--b); border-radius: 0 4px 4px 0; animation: grow 0.8s ease-out both; transform-origin: left; }
.sr.s-you { --b: var(--red); background: #fdf3f2; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.sr.s-balanced { --b: var(--teal); }
.sr.s-equal { --b: var(--gold); }
.sr.s-hindsight .sr-bar i { background: repeating-linear-gradient(135deg, #cfc9c3 0 6px, #e9e5e0 6px 10px); }
.sr.s-hindsight .sr-name b { color: var(--muted); }
.spark-tag { display: inline-block; vertical-align: 1px; padding: 0 6px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.spark-note { font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.rank-line { font-weight: 700; color: var(--ink); text-align: center; }
.strat .vs { align-self: center; text-align: center; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--text); margin-bottom: 4px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg svg { width: 28px; height: 12px; }
.lg line { stroke-width: 3; stroke-linecap: round; }
.lg-you line { stroke: #d8433f; }
.lg-balanced line { stroke: #4f8fa6; }
.lg-equal line { stroke: #e3a21a; stroke-dasharray: 6 5; }
.lchart { display: block; width: 100%; height: auto; overflow: visible; }
.lchart .grid { stroke: #ece8e4; stroke-width: 1; }
.lchart text { font-family: inherit; font-size: 11px; fill: var(--muted); }
.lchart .ylab { text-anchor: end; font-variant-numeric: tabular-nums; }
.lchart .xlab { text-anchor: middle; }
.lchart .elab { fill: var(--ink); font-weight: 600; font-size: 12px; }
.lchart circle, .lchart rect, .lchart path { cursor: default; }

/* Insights review */
.icard { display: flex; flex-direction: column; }
.insight { margin-top: 10px; border-top: 1px dashed #d9d4ce; padding-top: 8px; }
.insight summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 700; font-size: 0.85rem; color: var(--c); padding: 4px 12px; border: 1.5px solid var(--c); border-radius: 999px; background: #fff; user-select: none; }
.insight summary::-webkit-details-marker { display: none; }
.insight summary::after { content: '▾'; font-size: 0.8em; transition: transform 0.2s; }
.insight[open] summary { background: var(--c); color: #fff; }
.insight[open] summary::after { transform: rotate(180deg); }
.ins-body { margin-top: 10px; animation: rise 0.3s ease-out both; }
.ins-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ins-body p { font-size: 0.9rem; margin-top: 8px; }
.tilts { display: flex; flex-wrap: wrap; gap: 6px; }
.tilt { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.76rem; font-weight: 600; color: var(--ink); }
.tilt .dot { width: 0.6em; height: 0.6em; margin-right: 0.4em; }
.tilt b { margin-left: 4px; }
.tilt.up b { color: var(--pos); }
.tilt.down b { color: var(--neg); }
.tilt.flat b { color: var(--muted); }
.reality { border-top: 4px solid var(--gold); display: flex; flex-direction: column; gap: 10px; }
.rtab { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.rtab th { text-align: left; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px; border-bottom: 2px solid var(--ink); }
.rtab td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rtab td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.rtab tr.win td { background: #fdf6e3; font-weight: 700; }
.sig { letter-spacing: 1px; font-size: 0.8rem; }
.sig.up { color: var(--pos); }
.sig.down { color: var(--neg); }
.sig.flat { color: var(--muted); }
@media (min-width: 1000px) and (min-height: 760px) {
  .play-split .reality { position: sticky; top: 84px; }
}

.mlist { list-style: none; padding: 0; margin: 0; }
.mlist li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mlist li:last-child { border-bottom: 0; }
.ml-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.ml-top span { display: flex; align-items: center; }
.ml-top b { font-variant-numeric: tabular-nums; }
.mbar { display: grid; grid-template-columns: 1fr 1fr; height: 10px; margin-top: 6px; }
.mbar span { display: flex; }
.mbar .neg-side { justify-content: flex-end; border-right: 2px solid var(--ink); }
.mbar i { display: block; height: 100%; background: var(--c); animation: grow 0.7s ease-out both; }
.mbar .neg-side i { border-radius: 4px 0 0 4px; opacity: 0.55; transform-origin: right; }
.mbar .pos-side i { border-radius: 0 4px 4px 0; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ml-split { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.mlist .cad p { margin-top: 2px; }

.yearcard { background: var(--brown); border: 0; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; }
.yearcard .kicker { color: var(--gold); }
.yearbig { font-size: 4.4rem; font-weight: 800; line-height: 1; animation: pop 0.7s ease-out; }
.guess-miss { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.trap { border-left: 5px solid var(--yellow); background: #fffbea; }
.trap b { color: #8a5d00; }
.trap p { font-size: 0.9rem; margin-top: 4px; }
.lesson { background: #fdf6e3; border-color: #f2e3b8; border-left: 5px solid var(--gold); }
.lesson .kicker { color: #a87400; }
.lesson p { font-weight: 700; color: var(--ink); font-size: 1.08rem; margin-top: 4px; }
.why { padding: 10px 0; border-bottom: 1px solid var(--line); }
.why:last-child { border-bottom: 0; }
.why-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.why-head span { display: flex; align-items: center; }
.why p { font-size: 0.92rem; }

.duel { width: 100%; display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.du { display: grid; grid-template-columns: 5.2em 1fr auto; align-items: center; gap: 10px; text-align: left; font-size: 0.85rem; }
.du span { font-weight: 600; color: var(--muted); }
.du b { color: var(--ink); font-variant-numeric: tabular-nums; }
.du-bar { height: 14px; background: var(--card); border-radius: 7px; overflow: hidden; }
.du-bar i { display: block; height: 100%; border-radius: 7px; animation: grow 0.8s ease-out both; transform-origin: left; }
.du.you i { background: var(--red); }
.du.bench i { background: var(--teal); }
.guessed { font-weight: 600; color: #8a5d00; font-size: 0.9rem; }

.hist { width: 100%; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.hist th { text-align: left; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 4px 6px; border-bottom: 2px solid var(--ink); }
.hist td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.hist th:last-child, .hist td.val { text-align: right; }
.hist td.val { font-weight: 700; color: var(--ink); }

.bm { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bm:last-child { border-bottom: 0; }
.bm-head { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.bm-head b { color: var(--ink); }
.bm-line { display: grid; grid-template-columns: 4.6em 1fr 4.4em; align-items: center; gap: 8px; font-size: 0.82rem; margin-top: 5px; }
.bm-line b { text-align: right; }
.bm-line .abar { height: 22px; }
.bm-line.best span:first-child { color: #a87400; font-weight: 700; }

.lcard { border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 8px; animation: rise 0.45s ease-out both; }
.lcard.l1 { --c: var(--red); }
.lcard.l2 { --c: var(--teal); animation-delay: 0.1s; }
.lcard.l3 { --c: var(--gold); animation-delay: 0.2s; }
.lcard.l4 { --c: var(--brown); animation-delay: 0.3s; }
.l-top { display: flex; align-items: center; gap: 12px; }
.l-num { font-size: 2rem; font-weight: 800; color: var(--c); line-height: 1; }
.l-top h3 { color: var(--c); font-size: 1.05rem; }
.lcard p { font-size: 0.92rem; }
.l-ex { display: flex; gap: 10px; align-items: baseline; background: var(--card); border-left: 4px solid var(--c); padding: 8px 12px; font-size: 0.85rem; }
.l-ex b { color: var(--c); white-space: nowrap; }

/* ---- Golden rule ------------------------------------------------------ */
.app.golden { background: #4a4a4e; color: #fff; position: relative; overflow: hidden; }
.bar.dark { background: transparent; border-bottom: 0; position: relative; z-index: 2; }
.bar.dark .lang { border-color: rgba(255, 255, 255, 0.3); }
.bar.dark .lang button { color: rgba(255, 255, 255, 0.7); }
.bar.dark .lang button.on { background: #fff; color: var(--ink); }
.bar.dark .iconbtn { background: rgba(255, 255, 255, 0.12); color: #fff; }
.g-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #ff5a5f; }
.g-ring { position: absolute; top: -50px; right: -30px; width: 190px; height: 190px; border-radius: 50%; border: 40px solid var(--yellow); border-left-color: transparent; transform: rotate(-30deg); opacity: 0.95; }
.g-tri { position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 150px 170px; border-color: transparent transparent #7fc4ea transparent; }
.g-content { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 28px 40px; }
.g-kicker { color: var(--yellow); font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.9rem; }
.g-line { width: 60px; height: 4px; background: #ff5a5f; margin: 14px 0 22px; }
.g-1 { font-size: 1.85rem; font-weight: 800; line-height: 1.2; color: var(--ice); }
.g-2 { font-size: 1.85rem; font-weight: 800; line-height: 1.2; color: var(--yellow); font-style: italic; margin-top: 10px; animation: rise 0.9s 0.4s ease-out both; }
.actionbar.dark { background: transparent; border-top: 0; position: relative; z-index: 1; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app.golden .foot { color: rgba(255, 255, 255, 0.7); position: relative; z-index: 1; }

/* ---- Layout: phone first, then tablet, then computer ------------------ */
.split, .col, .lgrid { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

@media (hover: hover) {
  .btn:hover:not(:disabled) { border-color: var(--ink); }
  .btn.primary:hover:not(:disabled) { background: #c23a36; border-color: #c23a36; }
  .step:hover { background: var(--c); color: #fff; }
  .seg button:hover:not(.on) { background: var(--card); }
  .iconbtn:hover { color: var(--ink); }
  .linkbtn:hover { text-decoration: underline; }
}

/* Tablet */
@media (min-width: 700px) {
  .app { max-width: 980px; }
  .main { padding: 24px 24px 32px; gap: 18px; }
  .hero { display: flex; align-items: center; gap: 28px; padding: 8px 0; }
  .badge { width: 200px; margin: 0; flex: none; }
  .hero h1 { font-size: 2.1rem; }
  .hero-text { display: flex; flex-direction: column; gap: 4px; }
  .hero-text .btn { margin-top: 14px; align-self: flex-start; width: auto; min-width: 300px; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .split.play-split { display: flex; align-items: stretch; }
  .hcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .bm-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .bm-grid .bm:last-child { border-bottom: 1px solid var(--line); }
  .round-intro .title { font-size: 1.9rem; }
  .bigret { font-size: 3.8rem; }
  .bigval { font-size: 3.2rem; }
  .yearbig { font-size: 5.5rem; }
  .actionbar { justify-content: center; padding-left: 24px; padding-right: 24px; }
  .actionbar .btn.block { width: auto; min-width: 340px; }
  .actionbar .btn.primary:not(.block) { flex: 0 1 340px; }
  .foot { flex-direction: row; flex-wrap: wrap; gap: 2px 18px; padding-left: 24px; padding-right: 24px; }
  .g-content { padding: 40px 60px 60px; max-width: 820px; }
  .g-1, .g-2 { font-size: 2.6rem; }
  .g-ring { width: 260px; height: 260px; border-width: 54px; top: -70px; right: 20px; }
  .g-tri { border-width: 0 0 220px 250px; }
}

/* Computer: headlines beside a sticky portfolio panel */
@media (min-width: 1000px) {
  html { font-size: 17px; }
  .app { max-width: 1240px; }
  .main { padding: 28px 36px 40px; }
  .split.play-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); gap: 24px; }
  .bm-grid { grid-template-columns: repeat(3, 1fr); }
  .hcard p { font-size: 1.05rem; }
  .g-1, .g-2 { font-size: 3rem; }
  .g-content { max-width: 960px; }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .play-split .alloc { position: sticky; top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
