/* ============================================================
   FILE: demo/css/demo.css
   VERSION HISTORY:
   v1.0.0 — 2026-11-13 — "Campus paper" look: warm sunset welcome, cream paper content, dark warm sidebar.
   ============================================================ */
:root { /* TOKENS: brand colors from the game and the app. */
  --cream: #FDF7EA; --paper: #FFFBF2; --ink: #3C2624; --mute: #7D6A68; --line: rgba(60,38,36,.12);
  --mag: #C4237A; --purple: #7B2A9E; --sky: #DDEAEC; --gold: #E8A838; --green: #2D6A4F; --blue: #2C4E7F; --red: #C1440E;
  --side: #140c04; --side2: #1f150b; --grad: linear-gradient(125deg, #C4237A 0%, #7B2A9E 100%);
  --sunset: linear-gradient(180deg, #1a0a03 0%, #5a2208 38%, #b5561a 72%, #e8933a 100%);
  --serif: 'EB Garamond', Georgia, serif; --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(60,38,36,.06), 0 8px 24px -12px rgba(60,38,36,.18);
}
* { box-sizing: border-box; } /* RESET */
html, body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; } /* HEADINGS: light Garamond, per brand. */
h1 { font-size: clamp(34px, 5vw, 56px); } h2 { font-size: clamp(26px, 3.2vw, 36px); } h3 { font-size: 22px; }
p { margin: 0 0 .6em; } a { color: var(--mag); } button, input, select, textarea { font: inherit; color: inherit; }
.mute { color: var(--mute); } .small { font-size: 12.5px; } .tiny { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.sr { position: absolute; left: -9999px; } .hide { display: none !important; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .btn:focus-visible, .tab:focus-visible, .nav a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; } .btn.ghost { background: transparent; } .btn.sm { padding: 6px 12px; font-size: 13px; } .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.light { background: rgba(255,251,242,.14); color: #FDF7EA; border-color: rgba(255,251,242,.3); } .btn.light:hover { background: rgba(255,251,242,.22); }

/* GATE + HERO (sunset and skyline) */
.sunset { position: relative; background: var(--sunset); color: #FDF7EA; overflow: hidden; isolation: isolate; }
.sunset::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 70%, rgba(255,190,90,.45), transparent 70%); z-index: -1; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; z-index: -1; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px 150px; }
.gate-wrap { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.gate h1 { margin: 10px 0 12px; } .gate .lede { font-size: 17px; max-width: 46ch; opacity: .92; }
.glass { position: relative; z-index: 2; background: rgba(26,10,3,.5); border: 1px solid rgba(255,251,242,.2); border-radius: 20px; padding: 26px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.glass label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin: 12px 0 5px; }
.glass input[type=text], .glass input[type=email] { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,251,242,.3); background: rgba(255,251,242,.1); color: #FDF7EA; outline: none; }
.glass input:focus { border-color: #fff; background: rgba(255,251,242,.16); } .glass input::placeholder { color: rgba(253,247,234,.5); }
.glass .btn { width: 100%; justify-content: center; margin-top: 18px; padding: 13px; } .err { color: #ffb4a0; font-size: 13px; margin-top: 8px; min-height: 18px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* HONEYPOT: hidden bot trap. */
.char { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,251,242,.14); border: 1px solid rgba(255,251,242,.25); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }

/* TOP NAV */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; padding: 10px 18px; background: rgba(253,247,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; color: var(--ink); margin-right: 12px; } .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.nav a.l { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--mute); font-weight: 600; font-size: 14px; } .nav a.l:hover { color: var(--ink); background: rgba(60,38,36,.06); } .nav a.l.on { color: #fff; background: var(--ink); }
.nav .grow { flex: 1; } .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); } .who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sky); }
.menu-btn { display: none; }

/* LAYOUT */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 18px 80px; } .ws { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 53px); }
.side { background: var(--side); color: #f5f0e8; padding: 18px 12px; position: sticky; top: 53px; height: calc(100vh - 53px); align-self: start; overflow-y: auto; }
.side h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .45; margin: 14px 10px 6px; font-weight: 600; }
.tab { display: block; width: 100%; text-align: left; background: none; border: 0; color: rgba(245,240,232,.72); padding: 9px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; text-decoration: none; }
.tab:hover { background: var(--side2); color: #fff; } .tab.on { background: var(--grad); color: #fff; font-weight: 600; }
.main { padding: 26px clamp(16px, 3vw, 36px) 80px; min-width: 0; max-width: 1060px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; } .ph p { margin: 6px 0 0; color: var(--mute); max-width: 62ch; }

/* CARDS AND GRIDS */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); } .card h3 { margin-bottom: 10px; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g12 { grid-template-columns: 1.4fr 1fr; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .stat b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.1; } .stat span { font-size: 12px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--sky); color: #25484d; }
.chip.mag { background: #f8d9ea; color: #8a1456; } .chip.gold { background: #faedcf; color: #7a5410; } .chip.green { background: #d6eadf; color: #1d4a36; } .chip.red { background: #f6dccf; color: #8a2f08; } .chip.gray { background: rgba(60,38,36,.08); color: var(--mute); }
.note { background: #faedcf; border: 1px solid #ecd49a; color: #6b4a0b; border-radius: 10px; padding: 9px 12px; font-size: 13px; } .note.info { background: var(--sky); border-color: #c3d6d9; color: #25484d; }
.bar { height: 9px; border-radius: 99px; background: rgba(60,38,36,.09); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); } .bar.gold > i { background: var(--gold); } .bar.green > i { background: var(--green); } .bar.red > i { background: var(--red); }
.row { display: flex; align-items: center; gap: 12px; } .row.sb { justify-content: space-between; } .row.wrap { flex-wrap: wrap; } .stack > * + * { margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; } th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); } td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; } .tw { overflow-x: auto; }
input[type=text], input[type=email], input[type=number], input[type=search], select, textarea { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; } textarea { min-height: 130px; resize: vertical; } input[type=range] { width: 100%; accent-color: var(--mag); }
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--mute); margin: 10px 0 4px; letter-spacing: .04em; text-transform: uppercase; }
.ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--mag) calc(var(--p) * 1%), rgba(60,38,36,.1) 0); } .ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--paper); } .ring b { position: relative; z-index: 1; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.chart svg { width: 100%; height: auto; } .chart .grid { stroke: var(--line); } .chart .axis { font-size: 10px; fill: var(--mute); } .legend { display: flex; gap: 14px; font-size: 12px; color: var(--mute); margin-top: 4px; } .lg { display: inline-flex; align-items: center; gap: 6px; } .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.stamp { display: inline-block; border: 2px solid var(--green); color: var(--green); border-radius: 6px; padding: 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; transform: rotate(-4deg); } .stamp.gold { border-color: #b57f12; color: #b57f12; }
.empty { padding: 22px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--r); }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; } .pill-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; } .pill-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; z-index: 60; box-shadow: var(--shadow); font-weight: 600; }
.celebrate { animation: pop .6s ease; } @keyframes pop { 0% { transform: scale(.9); opacity: .4; } 60% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }

/* HOME BEATS */
.hero { padding: 56px 18px 190px; min-height: 560px; } .hero-in { max-width: 1120px; margin: 0 auto; position: relative; } .hero h1 { max-width: 19ch; margin: 14px 0; } .hero .lede { max-width: 50ch; font-size: 18px; opacity: .93; }
.beat { padding: 64px 18px; } .beat-in { max-width: 1120px; margin: 0 auto; } .beat.alt { background: var(--paper); border-block: 1px solid var(--line); } .beat .kick { color: var(--mag); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.door { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; } .door:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(60,38,36,.3); } .door .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; margin-bottom: 10px; }
.tip { position: fixed; right: 18px; bottom: 18px; width: min(340px, calc(100vw - 36px)); z-index: 50; background: var(--ink); color: #FDF7EA; border-radius: 16px; padding: 16px 16px 14px 92px; box-shadow: 0 20px 50px -16px rgba(0,0,0,.5); } .tip img { position: absolute; left: 10px; bottom: 0; width: 70px; } .tip h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; font-weight: 400; } .tip p { font-size: 13px; opacity: .88; margin: 0 0 10px; }
.foot { text-align: center; padding: 26px 18px 40px; color: var(--mute); font-size: 12.5px; }
.game-card { display: flex; gap: 16px; align-items: center; } .game-card img { width: 72px; flex: none; }
.cmp td:first-child, .cmp th:first-child { width: 22%; font-weight: 600; } .cmp .us { background: rgba(196,35,122,.06); } .src { font-size: 11px; } .src a { color: var(--blue); }
.k { font-weight: 700; } .indent { padding-left: 14px; border-left: 3px solid var(--sky); }
.risk-high { color: var(--red); font-weight: 700; } .risk-moderate { color: #b57f12; font-weight: 700; } .risk-low { color: var(--green); font-weight: 700; } .risk-new { color: var(--mute); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .gate-wrap, .g12 { grid-template-columns: 1fr; } .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .ws { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px; } .side h4 { display: none; } .tab { white-space: nowrap; width: auto; }
  .nav { flex-wrap: wrap; } .nav a.l { padding: 6px 10px; font-size: 13px; } .who span { display: none; } .char.hero-char { display: none; }
}
@media (max-width: 520px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .page { padding-inline: 14px; } .hero h1 { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* LAYOUT FIXES (v1.0.1) */
.ph select { width: auto; min-width: 140px; } .ph .row { gap: 8px; } /* HEADER CONTROLS: keep the picker compact and on one line. */
.g12 > .grid { align-items: start; } /* STAT PAIRS: do not stretch to the height of the neighbor card. */
.grid > *, .ws > * { min-width: 0; } /* GRID CHILDREN: let wide tables scroll inside their card instead of stretching the page on phones. */

/* WHY LAUNCHPOINT (v1.1.0 readability redesign) */
.why { max-width: 1040px; } .why-head { padding: 8px 0 6px; } .why-head h2 { font-size: clamp(32px, 4.4vw, 48px); max-width: 20ch; margin: 6px 0 12px; } .lede-dark { font-size: 18px; color: var(--mute); max-width: 56ch; }
.kick { color: var(--mag); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.why-sec { margin-top: 56px; } .why-sec > h2 { margin: 0 0 18px; max-width: 28ch; } .fine { margin-top: 14px; max-width: 80ch; }
.big { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); } .big h3 { font-size: 24px; margin: 6px 0 8px; } .big p { color: var(--mute); margin: 0; } .bigtag { font-family: var(--serif); font-size: 15px; color: var(--mag); font-weight: 500; }
.cmprow { margin-top: 14px; } .cmptopic { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px 2px; }
.cmpcells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; } .cc.us { background: #fbe9f2; border-color: #e9b7d2; } .cc p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; } .cn { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); } .cc.us .cn { color: var(--mag); }
.ref { font-size: 10px; color: var(--blue); font-weight: 700; margin-left: 2px; }
.bignum { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; } .bignum b { display: block; font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; color: var(--ink); } .bignum span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--mute); } .bignum.sm b { font-size: 32px; } .bignum.sm { padding: 14px 16px; background: #fff; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; } .flow .step { background: var(--ink); color: #FDF7EA; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; } .flow i { font-style: normal; color: var(--mag); font-weight: 800; }
.mkt { display: flex; align-items: center; gap: 16px; } .mkt b { font-family: var(--serif); font-size: 36px; font-weight: 400; min-width: 110px; }
.price { font-family: var(--serif); font-size: 30px; margin: 6px 0 8px; } .sources { margin: 0; padding-left: 20px; font-size: 13px; } .sources li { margin: 5px 0; } .sources a { color: var(--blue); }
@media (max-width: 860px) { .cmpcells { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cmpcells { grid-template-columns: 1fr; } .mkt b { font-size: 30px; min-width: 96px; } .why-sec { margin-top: 40px; } }
