/* VENTURED website. Built on the game's design system: the desk, the paper, the stamp and the plinth.
   Display: Anton (headlines, stamps). Text: Nunito. Figures: IBM Plex Mono. */

@font-face { font-family: Anton; src: url(/assets/fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(/assets/fonts/nunito-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; src: url(/assets/fonts/nunito-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; src: url(/assets/fonts/nunito-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; src: url(/assets/fonts/nunito-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; src: url(/assets/fonts/nunito-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; src: url(/assets/fonts/nunito-latin-ext-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --desk: #EDEAE5; --surface: #F4F2EC; --paper: #F8F4EA; --paper-shade: #ECE5D5; --rule: #D6CDBA; --line: #DCD7CC;
  --ink: #1E1A33; --ink-soft: #4A4658; --ink-faint: #5F5A6C;
  --violet: #5B45E8; --violet-strong: #4A36CC; --violet-soft: #E3DEFB;
  --gold: #FFB23E; --amber: #A15708; --profit: #077348; --loss: #BF2E35;
  --key: #1E1A33; --key-deep: #06040F;
  --navy: #2B2754; --navy-deep: #221E45; --soil: #9A7655; --soil-edge: #B09174; --plinth-ink: #D6CEBD;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --text: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --page: min(1180px, calc(100% - 40px));
  --shadow-paper: 0 4px 7px rgba(30, 26, 51, .16), 0 1px 0 rgba(30, 26, 51, .05);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.wrap { width: var(--page); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Display type: Anton capitals, ink with the second line in violet, as on the App Store */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .96; text-wrap: balance; }
.display > span { display: block; }
.display .v { color: var(--violet); }
.fig, .r-line b, .fig-n { font-family: var(--mono); font-feature-settings: "tnum"; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(237, 234, 229, .0); transition: background .2s, box-shadow .2s; }
.top.scrolled { background: rgba(237, 234, 229, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: auto; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 25px; letter-spacing: .05em; line-height: 1; color: var(--ink); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { font-weight: 700; font-size: 15px; color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(30, 26, 51, .06); }

/* The key: the one primary action. A face on a lip; pressing travels down. */
.key { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 var(--text); letter-spacing: .01em; color: #FBF8F1; background: var(--key); text-decoration: none; border-radius: 14px; padding: 15px 22px; box-shadow: 0 5px 0 var(--key-deep), 0 9px 16px rgba(30, 26, 51, .2); transition: transform .12s cubic-bezier(.3, 1.6, .5, 1), box-shadow .12s; }
.key:hover { background: #2A2545; }
.key:active, .key.is-pressed { transform: translateY(5px); box-shadow: 0 0 0 var(--key-deep), 0 2px 4px rgba(30, 26, 51, .2); }
.key-sm { font-size: 14px; padding: 11px 16px; border-radius: 12px; }

/* App Store badge (kept to Apple's black badge) */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border-radius: 12px; padding: 9px 18px 9px 14px; min-height: 54px; box-shadow: 0 8px 16px rgba(30, 26, 51, .18); }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; font: 600 21px/1.05 -apple-system, "SF Pro Display", var(--text); letter-spacing: -.01em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.store:hover { background: #1b1b1f; }

/* Paper: only documents are paper */
.paper { background: var(--paper); color: var(--ink); border-radius: 4px; box-shadow: var(--shadow-paper); }
.receipt { position: relative; padding: 20px 22px 18px; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: linear-gradient(-45deg, transparent 4.9px, var(--paper) 5px) 0 0 / 10px 7px repeat-x, linear-gradient(45deg, transparent 4.9px, var(--paper) 5px) 0 0 / 10px 7px repeat-x; }
.receipt { border-radius: 4px 4px 0 0; }
.r-head { font: 600 12.5px/1 var(--mono); letter-spacing: .2em; text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed var(--rule); margin-bottom: 8px; }
.r-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; font-size: 15.5px; color: var(--ink-soft); }
.r-line b { font-weight: 500; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.r-total span { font: 600 14px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.r-total b { font-weight: 600; }
.r-rule { border: 0; border-top: 1.5px dashed var(--rule); margin: 8px 0; }
.r-note { font-size: 14.5px; color: var(--ink-soft); padding-top: 10px; margin-top: 6px; border-top: 1.5px dashed var(--rule); }
.is-profit { color: var(--profit) !important; }
.is-loss { color: var(--loss) !important; }

/* The stamp: a verdict, never decoration */
.stamp { display: inline-block; transform: rotate(-6deg); border: 3px solid currentColor; border-radius: 5px; padding: 3px; opacity: .92; }
.stamp > span { display: block; border: 1.4px solid currentColor; border-radius: 2px; padding: 2px 12px 0; font: 400 30px/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.stamp-profit { color: #17895A; } .stamp-loss { color: #C8333A; } .stamp-ink { color: var(--ink); } .stamp-brand { color: var(--violet); }

/* The plinth: the board stands on it, and every page ends on it */
.plinth { position: relative; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--plinth-ink); }
.plinth::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; background: linear-gradient(180deg, var(--soil-edge) 0 2px, var(--soil) 2px 100%); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .12); }

/* ---------- Home ---------- */
.hero { text-align: center; padding: 56px 0 0; }
.hero h1 { font-size: clamp(64px, 11.5vw, 148px); }
.hero .lead { max-width: 33em; margin: 26px auto 0; font-size: clamp(18px, 2vw, 21px); font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.cta-note { font-size: 15px; font-weight: 600; color: var(--ink-faint); }
.street { margin: 38px auto 0; width: min(1240px, 100%); overflow: hidden; }
.street img { width: 100%; }
.facts { text-align: center; padding: 30px 20px 34px; margin-top: 18px; }
.facts p { font: 600 clamp(13px, 1.6vw, 18px)/1.5 var(--mono); letter-spacing: .26em; text-transform: uppercase; }
.facts p span { white-space: nowrap; }

.section { padding: clamp(72px, 10vw, 120px) 0 0; }
.section h2.display { font-size: clamp(46px, 6.4vw, 84px); }
.section .intro { font-size: 19px; font-weight: 600; color: var(--ink-soft); max-width: 30em; margin-top: 18px; }

/* How it plays */
.play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 90px); align-items: center; }
.steps { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 10px; counter-reset: step; }
.steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; border-radius: 14px; padding: 14px 16px; transition: background .15s; }
.steps button:hover { background: rgba(30, 26, 51, .045); }
.steps .n { font: 600 18px/44px var(--mono); text-align: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.steps b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; margin-top: 2px; }
.steps small { display: block; font-size: 16px; color: var(--ink-soft); margin-top: 3px; line-height: 1.45; }
.steps [aria-selected="true"] { background: var(--paper); box-shadow: var(--shadow-paper); }
.steps [aria-selected="true"] .n { background: var(--violet); color: #fff; box-shadow: 0 3px 0 #3424A6; }
.stage { position: relative; aspect-ratio: 720 / 1259; }
.stage img { position: absolute; inset: 0; width: 100%; opacity: 0; transition: opacity .35s ease; }
.stage img.on { opacity: 1; }

/* Profit isn't cash: the month receipt you can run */
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 90px); align-items: center; }
.lesson .key { margin-top: 30px; }
.vee { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; max-width: 26em; font-size: 16px; font-weight: 600; color: var(--ink-soft); min-height: 3.2em; }
.vee svg { flex: none; width: 34px; margin-top: 2px; }
.month { padding: 24px 26px 22px; }
.month .r-line, .month .r-line b { font-size: 17px; }
.month .r-total b { font-size: 21px; }
.month .r-head { text-align: left; }
.month .stamp { position: absolute; right: 16px; top: -20px; }
.month .cashline { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed var(--rule); }
.month.printing .r-line, .month.printing .cashline { animation: print .28s ease-out both; }
.month.printing .stamp { animation: stamp .16s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: .38s; }
@keyframes print { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.25); } to { opacity: .92; transform: rotate(-6deg) scale(1); } }

/* 19 trades */
.trades { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { font-size: 15px; font-weight: 700; padding: 6px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-soft); }
.trades-art { max-height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 76%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 76%, transparent); mask-composite: intersect; }

/* Inside the game: three plain columns, no card kit */
.inside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px; border-top: 2px solid var(--ink); }
.inside > div { padding: 24px 28px 8px 0; }
.inside > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.inside h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.inside p { margin-top: 10px; color: var(--ink-soft); }
.inside blockquote { margin: 12px 0 0; font-size: 16px; color: var(--ink-soft); }
.inside cite { display: block; font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--ink); margin-top: 8px; }
.langs { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 4px; font-weight: 700; }

/* Post cards (home and blog index) */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.post { text-decoration: none; display: block; }
.post img { border-radius: 10px; aspect-ratio: 1200 / 630; object-fit: cover; box-shadow: 0 1px 0 rgba(30,26,51,.06), 0 10px 22px rgba(30, 26, 51, .1); transition: transform .2s; }
.post:hover img { transform: translateY(-3px); }
.post .cat { display: block; margin-top: 16px; font-size: 14.5px; font-weight: 800; color: var(--violet); }
.post h3 { font-size: 20px; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.post p { font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; }
.post:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more { margin-top: 34px; }
.more a { font-weight: 800; color: var(--violet); }

/* Final call and footer, on the plinth */
.end { margin-top: clamp(90px, 12vw, 140px); padding: 72px 0 0; }
.end-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid rgba(214, 206, 189, .18); }
.end h2 { font-size: clamp(40px, 5.6vw, 72px); color: #F8F4EA; }
.end h2 .v { color: #A99CFF; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0 34px; font-size: 14.5px; }
.foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot a { color: var(--plinth-ink); text-decoration: none; font-weight: 700; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand b { color: #F8F4EA; font-size: 21px; }
.foot .brand svg { width: 30px; }
.foot small { display: block; color: rgba(214, 206, 189, .75); font-size: 13.5px; margin-top: 6px; }

/* Mobile dock: one key, appears after the hero */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: none; }
.dock .key { width: 100%; }

/* ---------- Blog index ---------- */
.ledger-head { padding: 48px 0 0; }
.ledger-head h1 { font-size: clamp(64px, 10vw, 128px); }
.ledger-head p { font-size: 20px; font-weight: 600; color: var(--ink-soft); max-width: 32em; margin-top: 18px; }
.lead-post { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 50px; text-decoration: none; }
.lead-post img { border-radius: 12px; box-shadow: 0 12px 28px rgba(30, 26, 51, .14); }
.lead-post .cat { font-size: 15px; font-weight: 800; color: var(--violet); }
.lead-post h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.15; margin-top: 8px; }
.lead-post p { font-size: 17.5px; color: var(--ink-soft); margin-top: 12px; }
.lead-post:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.posts-all { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; row-gap: 48px; }
.hub { margin-top: 84px; }
.hub h2.display { font-size: clamp(38px, 4.8vw, 60px); padding-top: 26px; border-top: 2px solid var(--ink); }
.doc-paper { max-width: 520px !important; }
.doc-paper .d-h { font: 600 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 4px; }
.doc-paper .d-list { list-style: none; padding: 0; margin: 0; }
.doc-paper .d-list li { font-size: 15.5px; line-height: 1.45; padding: 3px 0; margin: 0; color: var(--ink); }
.a-body .note-box { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); padding: 14px 18px; margin: -1.2em 0 2.2em; }
.sources { margin-top: 2.8em; }
.sources h2 { font-size: clamp(24px, 2.6vw, 28px); font-weight: 800; margin-bottom: .5em; }
.sources ul { padding-left: 1.2em; }
.sources li { font-size: 15.5px; line-height: 1.5; margin-bottom: .5em; color: var(--ink-soft); }

/* ---------- Article ---------- */
.a-head { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: end; }
.a-head.wide { grid-template-columns: 1fr; }
.a-art img { width: 100%; }
.a-art.trades-art { max-height: 430px; }
.a-head + .a-street { width: min(1080px, calc(100% - 40px)); margin: 30px auto 0; }
.a-street img { width: 100%; }
.a-head + .plinth.thin, .a-street + .plinth.thin { height: 22px; margin-top: 18px; }
.a-text { padding-bottom: 30px; }
.crumbs { font-size: 15px; font-weight: 700; color: var(--ink-faint); }
.crumbs a { color: var(--violet); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.a-head h1 { font-size: clamp(44px, 6.4vw, 78px); margin-top: 16px; }
.byline { margin-top: 20px; font-size: 16px; color: var(--ink-soft); }
.byline a { font-weight: 800; color: var(--ink); }
.a-grid { width: var(--page); margin: 64px auto 0; display: grid; grid-template-columns: 230px minmax(0, 700px); gap: 60px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.toc p { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; text-decoration: none; color: var(--ink-faint); font-weight: 600; line-height: 1.35; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--violet); border-left-color: var(--violet); }
.a-body { font-size: 18.5px; line-height: 1.7; min-width: 0; }
.a-body > p, .a-body > ul, .a-body > ol { margin: 0 0 1.05em; color: #2E2A42; }
.a-body > ul, .a-body > ol { padding-left: 1.2em; }
.a-body li { margin-bottom: .55em; }
.a-body li::marker { color: var(--violet); }
.a-body strong { color: var(--ink); font-weight: 800; }
.a-body > h2 { font-size: clamp(27px, 3vw, 33px); font-weight: 800; line-height: 1.2; margin: 1.9em 0 .55em; letter-spacing: -.01em; }
.a-body > h3 { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 1.5em 0 .4em; }
.a-body a { color: var(--violet-strong); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.a-body a.store { color: #fff; text-decoration: none; }
.answer { padding: 24px 26px; margin-bottom: 2.2em; border-left: 0; }
.answer h2 { font-size: 15px; font-weight: 800; color: var(--violet); margin-bottom: 8px; }
.answer p { font-size: 19px; line-height: 1.6; color: var(--ink); }
.viz { margin: 2em 0 2.3em; }
.viz.paper { padding: 22px 22px 18px; }
.viz svg.ch { width: 100%; height: auto; }
.ch text { font-family: var(--text); }
.ch text.n { font-family: var(--mono); }
.viz figcaption { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 14px; }
.viz.paper figcaption { padding-top: 12px; border-top: 1.5px dashed var(--rule); }
.viz-plain .receipt { max-width: 440px; margin: 0 auto; }
.viz-plain figcaption { text-align: center; max-width: 30em; margin: 22px auto 0; }
.ledger .l-cols, .ledger .l-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 7px 0; font-size: 15.5px; }
.ledger .l-cols { font: 600 12.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.ledger .l-row + .l-row { border-top: 1.5px dashed var(--rule); }
.ledger .l-row span:last-child { color: var(--profit); font-weight: 700; }
.in-game { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: center; margin: 2.6em 0; padding: 26px 26px 0; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.in-game img { align-self: end; }
.in-game.wide { grid-template-columns: 1fr; padding-bottom: 0; }
.in-game h2 { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 0; }
.in-game p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 8px 0 18px; }
.in-game .copy { padding-bottom: 26px; }
.faq { margin-top: 3em; }
.faq > h2 { font-size: clamp(27px, 3vw, 33px); font-weight: 800; margin-bottom: .6em; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 800; line-height: 1.35; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 24px/1 var(--mono); color: var(--violet); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; font-size: 18px; color: #2E2A42; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2.6em; padding-top: 22px; border-top: 2px solid var(--ink); font-size: 15px; }
.share > span { font-weight: 800; margin-right: 6px; }
.share a, .share button { font: 700 14.5px/1 var(--text); color: var(--ink); background: var(--surface); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 10px 14px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.related { width: var(--page); margin: 90px auto 0; }
.related h2 { font-size: clamp(40px, 5vw, 60px); }

/* Google Auto ads: keep injected ads inside the page width */
.google-auto-placed { max-width: 100%; margin: 2em auto; }

/* ---------- Plain pages (support, privacy, press) ---------- */
.doc { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 0; }
.doc h1 { font-size: clamp(54px, 8vw, 96px); }
.doc .intro { font-size: 20px; font-weight: 600; color: var(--ink-soft); margin-top: 18px; }
.doc h2 { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 1.8em 0 .5em; }
.doc h3 { font-size: 20px; font-weight: 800; margin: 1.4em 0 .3em; }
.doc p, .doc li { font-size: 17.5px; color: #2E2A42; }
.doc p { margin-bottom: .9em; }
.doc ul { padding-left: 1.2em; margin-bottom: 1em; }
.doc a { color: var(--violet-strong); font-weight: 700; text-underline-offset: 3px; }
.doc code { font-family: var(--mono); font-size: 15px; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.doc .notice { background: var(--paper); box-shadow: var(--shadow-paper); border-radius: 4px; padding: 18px 20px; margin: 1.4em 0; }
.doc .mail { font: 600 22px/1.3 var(--mono); }
.facts-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 16.5px; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1.5px dashed var(--rule); }
.facts-table th { width: 34%; font-weight: 800; padding-right: 16px; }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 1em 0 2em; }
.kit a { display: grid; gap: 10px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 800; }
.kit .tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.kit .tile.dark { background: var(--ink); }
.kit .tile img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.lost { text-align: center; padding: 90px 20px 0; }
.lost .stamp { color: var(--loss); }
.lost .stamp > span { font-size: 64px; }
.lost p { font-size: 20px; font-weight: 600; color: var(--ink-soft); margin: 34px auto 30px; max-width: 26em; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .a-grid { grid-template-columns: minmax(0, 700px); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top .key-sm { margin-left: auto; }
  .play, .lesson, .trades, .lead-post { grid-template-columns: 1fr; }
  .stage { width: min(330px, 100%); margin: 0 auto; }
  .a-head { grid-template-columns: 1fr; gap: 26px; }
  .a-art { width: min(240px, 70%); margin: 0 auto; }
  .a-art.trades-art { width: 100%; max-height: 300px; }
  .a-text { padding-bottom: 0; }
  .lesson .month { max-width: 460px; }
  .inside { grid-template-columns: 1fr; }
  .inside > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .posts, .posts-all { grid-template-columns: 1fr 1fr; }
  .street img { width: 175%; max-width: none; margin-left: -60%; }
  .dock.show { display: block; }
  body { padding-bottom: 0; }
  .kit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .posts, .posts-all { grid-template-columns: 1fr; }
  .a-body { font-size: 17.5px; }
  .answer { padding: 20px 18px; }
  .answer p { font-size: 17.5px; }
  .in-game { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 18px 0; }
  .in-game p { font-size: 15.5px; }
  .viz.paper { padding: 14px 12px 14px; margin-inline: -8px; }
  .month { padding: 20px 18px 18px; }
  .month .stamp { top: -18px; right: 8px; }
  .month .stamp > span { font-size: 24px; }
  .facts p { letter-spacing: .14em; }
  .brand b { font-size: 22px; }
  .kit { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .dock, .share, .toc, .related, .end, .google-auto-placed { display: none !important; }
  body { background: #fff; }
}

/* ---------- Interactive lessons (/learn/) ---------- */
.tool { margin: 34px 0 0; }
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 36px; align-items: start; }
.t-col { min-width: 0; }
.t-left { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 22px 24px 18px; }
.t-title { font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.t-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.t-row label { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.t-row output { font-size: 15.5px; font-weight: 600; color: var(--violet); }
.t-row input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--violet); height: 28px; margin: 2px 0 0; cursor: pointer; }
.t-vee { margin-top: 16px; min-height: 0; }
.t-result { position: sticky; top: 92px; }
.t-receipt .r-head { text-align: left; }
.t-receipt .stamp { position: absolute; right: 14px; top: -18px; }
.t-receipt .stamp > span { font-size: 26px; }
.stamp.land { animation: stamp .18s cubic-bezier(.2, .9, .3, 1.2) both; }
.stamp-ink { color: var(--ink); }
.t-chart { margin: 24px 0 0; padding: 22px; }
.t-chart svg { width: 100%; height: auto; }
.t-chart figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--rule); }
.t-chart-h { font-weight: 800; margin-bottom: 10px; }
.t-bar { display: flex; height: 54px; border-radius: 6px; overflow: hidden; font-weight: 800; font-size: 15px; }
.t-bar span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; transition: width .25s; }
.t-cost { background: var(--violet-soft); color: var(--ink); }
.t-prof { background: var(--profit); color: #fff; }
.t-prof.neg { background: var(--loss); }
.t-queue { display: flex; align-items: center; gap: 18px; padding: 8px 0 22px; margin-bottom: 18px; border-bottom: 1.5px dashed var(--rule); min-height: 70px; }
.t-staff { display: flex; gap: 6px; padding: 10px; background: var(--ink); border-radius: 10px; }
.t-staff b { width: 18px; height: 30px; border-radius: 9px 9px 4px 4px; background: var(--violet); display: block; }
.t-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.t-line i { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); display: block; animation: bob 1.6s ease-in-out infinite; }
.t-line em { font-style: normal; font-weight: 700; color: var(--ink-faint); font-size: 14px; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.tool-embed { margin-top: 3em; }
.tool-embed > h2 { font-size: clamp(27px, 3vw, 33px); font-weight: 800; }
.tool-embed > p { margin-top: .4em; color: var(--ink-soft); }
.a-body .tool .t-grid { grid-template-columns: 1fr; gap: 24px; }
.a-body .tool .t-result { position: static; }
.a-body .tool .t-col { display: contents; }
.a-body .tool .t-left { order: 1; } .a-body .tool .t-result { order: 2; } .a-body .tool .t-chart { order: 3; margin-top: 0; }
.learn-wide { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.learn-wide .doc-intro { font-size: 20px; font-weight: 600; color: var(--ink-soft); max-width: 34em; margin-top: 18px; }
.how { width: min(760px, calc(100% - 40px)); margin: 70px auto 0; }
.how h2 { font-size: clamp(27px, 3vw, 33px); font-weight: 800; margin: 1.4em 0 .5em; }
.how p, .how li { font-size: 18px; color: #2E2A42; line-height: 1.65; }
.how p { margin-bottom: 1em; }
.how .formula { font: 600 17px/1.5 var(--mono); background: var(--paper); box-shadow: var(--shadow-paper); border-radius: 4px; padding: 16px 18px; margin: 1em 0 1.4em; }
.how a { color: var(--violet-strong); font-weight: 700; }
.lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
@media (max-width: 860px) {
  .t-grid { grid-template-columns: 1fr; gap: 24px; }
  .t-result { position: static; }
  .t-col { display: contents; }
  .t-left { order: 1; } .t-result { order: 2; } .t-chart { order: 3; margin-top: 0; }
  .lessons { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lessons { grid-template-columns: 1fr; }
  .t-left { padding: 18px 16px 14px; }
  .t-chart { padding: 14px 12px; }
}

/* ---------- Compact scale (Oct 2026): smaller type and tighter spacing for easier reading ---------- */
body { font-size: 16px; line-height: 1.6; }
.top-in { height: 62px; }
.brand svg { width: 32px; } .brand b { font-size: 21px; }
.nav a { font-size: 14.5px; padding: 7px 11px; }
.key { font-size: 15px; padding: 13px 20px; border-radius: 12px; }
.key-sm { font-size: 13.5px; padding: 9px 14px; }
.store { min-height: 48px; padding: 7px 16px 7px 12px; } .store span { font-size: 19px; } .store svg { width: 21px; height: 21px; }
/* home */
.hero { padding-top: 40px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 100px); }
.hero .lead { font-size: clamp(16.5px, 1.5vw, 18.5px); margin-top: 18px; }
.cta-row { margin-top: 22px; }
.street { width: min(1060px, 100%); margin-top: 28px; }
.facts { padding: 22px 20px 26px; } .facts p { font-size: clamp(12px, 1.2vw, 15px); }
.section { padding-top: clamp(56px, 7vw, 92px); }
.section h2.display { font-size: clamp(34px, 4.4vw, 56px); }
.section .intro { font-size: 16.5px; margin-top: 12px; }
.play, .lesson { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.steps { margin-top: 24px; gap: 6px; }
.steps button { grid-template-columns: 36px 1fr; gap: 12px; padding: 11px 14px; }
.steps .n { width: 36px; height: 36px; font-size: 15px; line-height: 36px; border-radius: 10px; }
.steps b { font-size: 17px; } .steps small { font-size: 14.5px; }
.month { padding: 20px 22px 18px; } .month .r-line, .month .r-line b { font-size: 15.5px; } .month .r-total b { font-size: 18px; }
.lesson .key { margin-top: 22px; }
.vee { font-size: 14.5px; margin-top: 18px; }
.vee svg { width: 28px; }
.trades-art { max-height: 520px; }
.chips li { font-size: 13.5px; padding: 5px 11px; }
.inside { margin-top: 34px; } .inside h3 { font-size: 18.5px; } .inside p, .inside blockquote { font-size: 15px; }
.posts { gap: 24px; margin-top: 28px; }
.post .cat { font-size: 13px; margin-top: 12px; } .post h3, .post h2 { font-size: 17px !important; } .post p { font-size: 14.5px; }
.end { margin-top: clamp(70px, 9vw, 110px); padding-top: 54px; }
.end-in { padding-bottom: 44px; }
.end h2 { font-size: clamp(32px, 4.2vw, 52px); }
.foot { font-size: 13.5px; }
/* blog index */
.ledger-head { padding-top: 36px; }
.ledger-head h1 { font-size: clamp(48px, 7vw, 88px); }
.ledger-head p { font-size: 17px; margin-top: 12px; }
.lead-post { margin-top: 36px; gap: 32px; }
.lead-post h2 { font-size: clamp(22px, 2.4vw, 28px); } .lead-post p { font-size: 15.5px; } .lead-post .cat { font-size: 13.5px; }
.hub { margin-top: 64px; } .hub h2.display { font-size: clamp(28px, 3.2vw, 40px); padding-top: 20px; }
.posts-all { row-gap: 36px; }
/* article */
.a-head { padding-top: 32px; grid-template-columns: minmax(0, 1fr) 210px; gap: 44px; width: min(1000px, calc(100% - 40px)); }
.crumbs { font-size: 13.5px; }
.a-head h1 { font-size: clamp(32px, 4.2vw, 52px); margin-top: 12px; line-height: 1; }
.byline { font-size: 14.5px; margin-top: 14px; }
.a-text { padding-bottom: 22px; }
.a-head + .a-street, .a-street { width: min(900px, calc(100% - 40px)); }
.a-grid { grid-template-columns: 200px minmax(0, 680px); gap: 48px; margin-top: 44px; }
.toc { font-size: 13.5px; top: 84px; } .toc a { padding: 5px 0 5px 12px; }
.a-body { font-size: 16.5px; line-height: 1.68; }
.a-body > h2 { font-size: clamp(22px, 2.2vw, 26px); margin: 1.8em 0 .5em; }
.a-body > h3 { font-size: 18px; margin: 1.4em 0 .35em; }
.answer { padding: 18px 20px; margin-bottom: 1.8em; } .answer h2 { font-size: 13.5px; margin-bottom: 6px; } .answer p { font-size: 16.5px; line-height: 1.6; }
.viz { margin: 1.6em 0 1.9em; }
.viz.paper { padding: 18px 18px 14px; }
.viz svg.ch, .t-chart svg { max-width: 540px; margin: 0 auto; }
.viz figcaption, .t-chart figcaption { font-size: 14px; margin-top: 10px; }
.receipt .r-line, .r-line b { font-size: 14.5px; }
.r-head { font-size: 11.5px; padding-bottom: 11px; }
.doc-paper .d-list li { font-size: 14.5px; }
.in-game { grid-template-columns: 130px minmax(0, 1fr); gap: 22px; padding: 20px 20px 0; margin: 2em 0; }
.in-game h2 { font-size: 18.5px; } .in-game p { font-size: 15px; margin: 6px 0 14px; } .in-game .copy { padding-bottom: 20px; }
.faq > h2, .tool-embed > h2, .sources h2 { font-size: clamp(22px, 2.2vw, 26px); }
.faq summary { font-size: 16.5px; padding: 14px 0; } .faq details p { font-size: 15.5px; padding-bottom: 16px; }
.share { font-size: 14px; } .share a, .share button { font-size: 13.5px; padding: 8px 12px; }
.related { margin-top: 70px; } .related h2 { font-size: clamp(30px, 3.6vw, 44px); }
.a-body .note-box { font-size: 14.5px; }
.sources li { font-size: 14.5px; }
/* plain pages */
.doc { padding-top: 36px; } .doc h1 { font-size: clamp(42px, 6vw, 68px); } .doc .intro { font-size: 17px; }
.doc h2 { font-size: 23px; } .doc h3 { font-size: 18px; } .doc p, .doc li { font-size: 16px; }
.facts-table { font-size: 15px; } .doc .mail { font-size: 18px; }
/* learn */
.learn-wide { width: min(1040px, calc(100% - 40px)); }
.learn-h1 { font-size: clamp(38px, 5.4vw, 66px); margin-top: 10px; }
.learn-wide .doc-intro { font-size: 16.5px; margin-top: 12px; }
.tool { margin-top: 24px; }
.t-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 28px; }
.t-left { padding: 16px 18px 12px; border-radius: 14px; }
.t-title { font-size: 15.5px; margin-bottom: 4px; }
.t-row { padding: 7px 0; }
.t-row label, .t-row output { font-size: 14px; }
.t-row input[type=range] { height: 22px; }
.t-vee { margin-top: 10px; }
.t-receipt .stamp > span { font-size: 22px; }
.t-chart { padding: 16px; margin-top: 18px; }
.t-chart-h { font-size: 15px; }
.t-bar { height: 44px; font-size: 14px; }
.how { margin-top: 54px; } .how h2 { font-size: clamp(22px, 2.2vw, 26px); } .how p, .how li { font-size: 16px; } .how .formula { font-size: 15px; }
.lessons { gap: 24px; margin-top: 30px; }
@media (max-width: 1020px) { .a-grid { grid-template-columns: minmax(0, 680px); } }
@media (max-width: 860px) {
  .a-head { grid-template-columns: 1fr; gap: 20px; }
  .a-art { width: min(180px, 55%); }
  .play, .lesson { grid-template-columns: 1fr; }
  .stage { width: min(290px, 100%); }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: 46px; }
  .a-head h1 { font-size: 30px; }
  .a-body { font-size: 16px; }
  .answer p { font-size: 15.5px; }
  .in-game { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 16px 0; }
  .t-row label, .t-row output { font-size: 13.5px; }
}
@media (min-width: 1000px) {
  .learn-wide .t-controls { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .learn-wide .t-row label { font-size: 13.5px; }
}
