/* The reading pages (D139): the front door, How to play, the terms and the
   privacy page, on the design system's paper whatever the phone's setting,
   since paper is its reading surface. The game itself is game.css. Phone
   first; the board's desktop layout from 760px. */
:root {
  --orange: #ff5a00; --on-orange: #0b0b0f;
  --paper: #f3efe6; --paper-raised: #ffffff; --paper-deep: #d9d5cc;
  --ink: #0b0b0f; --ink-secondary: #3a3834; --ink-muted: #6b6862; --line: #d9d5cc;
  /* Orange as text on paper reads only in this darker value (D138, part 2). */
  --accent-text: #b83f00;
  --ledger: #0b0b0f; --ledger-raised: #15151b; --ledger-ink: #f3efe6; --ledger-ink-2: #b8b4aa;
  --ledger-muted: #8a877f; --ledger-line: #2a2a32; --live: #3ddc84;
  --font-display: Unbounded, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
/* Traditional Chinese and Korean (D170): the brand's faces have no Chinese
   or Korean characters, so those pages read in the phone's own face, by
   design, until a chosen face is added. Words and headings take it first;
   the number voice keeps JetBrains Mono, and the big figures Instrument
   Serif, with the phone's face behind them for any word in their place.
   Korean breaks a line between words, never inside one. Scoped to the
   language lang.js puts on <html>: English and French are untouched.
   In the mono face a digit waiting for JetBrains Mono falls to another
   monospace face before the phone's Chinese or Korean one, whose digits
   are not all one width. */
html[lang="zh-Hant"] {
  --font-display: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  --font-serif: 'Instrument Serif', "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", monospace;
}
html[lang="ko"] {
  --font-display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-serif: 'Instrument Serif', "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", monospace;
  word-break: keep-all; overflow-wrap: break-word;
}
/* The small mono labels space their letters out for the brand's capitals;
   Chinese and Korean have no capitals, and spaced out they read as loose
   characters, so on those pages they set close again (D170). */
html[lang="zh-Hant"] :is(.eyebrow, .cap, .pill, .beta-box, .round-caps, .draft),
html[lang="ko"] :is(.eyebrow, .cap, .pill, .beta-box, .round-caps, .draft) { letter-spacing: normal; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font-display); }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The shared pieces */
.inner { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.eyebrow.muted { color: var(--ink-muted); }
.cap { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ledger-muted); }
.lead { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-secondary); }
.serif { margin: 22px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.15; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; }
h2 { margin: 12px 0 0; font-size: 30px; line-height: 1.05; font-weight: 800; }
h3 { margin: 12px 0 0; font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
       border-radius: 6px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.btn-dark { background: var(--ledger); color: var(--ledger-ink); }
.btn-line { border: 1px solid var(--on-orange); color: var(--on-orange); }
.btn-orange { background: var(--orange); color: var(--on-orange); }

/* The hero: the one orange ground (board 20) */
.hero { background: var(--orange); color: var(--on-orange); }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.hero-bar img { height: 40px; width: auto; }
.hero-bar nav { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 600; }
.hero-bar nav a { text-decoration: none; padding: 10px 2px; }
/* The language switch (D170), the last of the links and in their voice; its
   list opens under it on paper, each language in its own words. Below 384px
   the bar has no room for it (the links would wrap onto two lines), so there
   it is at the foot of the page instead, on a line of its own under the
   footer's links, which already fill a 360px phone, its list opening upwards.
   A 44px target either way: the padding reaches into the space beside it,
   so the bar's links keep their places. */
.lang { position: relative; }
@media (max-width: 383px) { .hero-bar .lang { display: none; } }
@media (min-width: 384px) { .foot .lang { display: none; } }
.lang-toggle { font: inherit; font-family: var(--font-mono); color: inherit; background: transparent;
               border: 0; min-width: 44px; min-height: 44px; padding: 10px 14px; margin: 0 -14px; cursor: pointer; }
.lang-menu { position: absolute; top: 100%; right: 0; z-index: 10; min-width: 168px; padding: 4px;
             display: flex; flex-direction: column; background: var(--paper-raised); color: var(--ink);
             border: 1px solid var(--line); border-radius: 10px; }
.lang-item { font: inherit; text-align: left; color: var(--ink); background: transparent; border: 0; border-radius: 6px;
             min-height: 44px; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.lang-item[aria-current="true"] { color: var(--accent-text); }
/* Each language's own name in its own face, on every page: an English page
   would otherwise draw 繁體中文 in whatever face the phone picks for English
   (lang.js marks each item with its language, D170). */
.lang-item[lang="zh-Hant"] { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
.lang-item[lang="ko"] { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
.foot .lang-menu { top: auto; bottom: 100%; right: auto; left: 0; }
.hero-body { padding: 48px 0 56px; max-width: 760px; }
.hero h1 { margin: 16px 0 0; font-size: 44px; line-height: .95; font-weight: 800; letter-spacing: -.03em; }
/* A Chinese title on a phone: its longest line, nine characters (贏得比特幣獎金池。), fits the width, so
   no character stands alone on the last line (D170). Chinese reads well smaller than Unbounded's capitals. */
@media (max-width: 759px) { html[lang="zh-Hant"] .hero h1 { font-size: min(44px, calc((100vw - 32px) / 9.5)); } }
/* Hangul fills its square as Unbounded's capitals do not: a Korean title needs room between its lines (D170). */
html[lang="ko"] .hero h1 { line-height: 1.12; }
.hero .lead { color: var(--on-orange); max-width: 560px; }
/* The owner's boxed notice under the headline (D154): the beta is test Bitcoin only. */
.beta-box { display: inline-block; margin: 24px 0 0; padding: 12px 16px; border: 2px solid var(--on-orange); border-radius: 8px;
            font-family: var(--font-mono); font-size: 13px; font-weight: 700; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; }

/* The three steps, on paper */
.paper { padding: 48px 0; }
.steps { display: grid; gap: 16px; }
.step { padding: 22px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; }
.step .n { font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--accent-text); }
.step p { margin: 10px 0 0; color: var(--ink-secondary); line-height: 1.55; }

/* The ledger band: the live jackpot and the four facts */
.band { background: var(--ledger); color: var(--ledger-ink); padding: 48px 0; }
.band .eyebrow { color: var(--ledger-muted); }
.band .lead { color: var(--ledger-ink-2); }
.now { display: grid; gap: 28px; align-items: center; }
.live-card { padding: 20px 22px; background: var(--ledger-raised); border: 1px solid var(--ledger-line); border-radius: 10px; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--ledger-line);
        font-family: var(--font-mono); font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ledger-muted); }
.pill .pip { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 35%, transparent); background: color-mix(in srgb, var(--live) 12%, transparent); }
.live-label { margin-top: 14px; font-size: 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.live-sum { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.live-sum .amount { font-family: var(--font-serif); font-style: italic; font-size: 52px; line-height: .9; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.live-sum .unit { font-size: 22px; }
.live-sum .usd { font-family: var(--font-mono); font-size: 16px; font-weight: 600; }
.live-foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ledger-muted); }
.live-foot b { color: var(--ledger-ink); }
.facts { margin-top: 40px; }
.fact { padding: 20px 0; border-top: 1px solid var(--ledger-line); }
.fact h3 { margin: 0; font-size: 17px; font-weight: 600; }
.fact p { margin: 6px 0 0; color: var(--ledger-ink-2); line-height: 1.55; }

/* A reading page: How to play, the terms, the privacy page (board 19) */
.read { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.read-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.read-bar img { height: 40px; width: auto; border-radius: 4px; }
.read-bar a { font-size: 13px; font-weight: 600; text-decoration: none; }
.read h1 { margin: 24px 0 8px; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.read .serif { margin: 0; font-size: 24px; line-height: 1.2; }
.read h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.read h2 .n { display: inline-block; min-width: 32px; font-family: var(--font-serif); font-style: italic; font-size: 30px; font-weight: 400; color: var(--accent-text); }
.read ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--ink-secondary); }
.read li { margin: 6px 0; }
.read li b { color: var(--ink); }
.read p { font-size: 15px; line-height: 1.6; color: var(--ink-secondary); }
.read .tip { margin: 8px 0 0; font-size: 14px; }
/* The line on the terms and privacy pages saying, in French, that they are English for now (D170) */
.read .lang-note { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
/* The Korean line on an English page breaks between words, as a Korean page does (D170). */
.read .lang-note[lang="ko"] { word-break: keep-all; }
.round-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; margin: 4px 0 10px; }
.round-bar .b-open { flex: 113; background: var(--orange); }
.round-bar .b-locked { flex: 30; background: var(--ink); }
.round-bar .b-break { flex: 23; background: var(--line); }
.round-caps { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.ladder { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 8px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 6px; }
.ladder td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.ladder tr:last-child td { border-bottom: 0; }
.ladder td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.btn-block { display: flex; width: 100%; margin-top: 36px; }
.draft { display: inline-block; margin: 24px 0 0; padding: 4px 10px; border: 1px solid var(--ink-muted); border-radius: 999px;
         font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.read .draft + h1 { margin-top: 16px; }
.draft-note { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

/* The beta prizes (D154): three prize cards, on paper. */
.prizes-sec { border-top: 1px solid var(--line); }
.prizes { margin-top: 28px; display: grid; gap: 16px; }
.prize { padding: 22px; background: var(--paper-raised); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 10px; }
.prize-amt { font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: 1; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.prize-amt span { font-size: 20px; }
.prize p { margin: 10px 0 0; color: var(--ink-secondary); line-height: 1.55; }
.prizes-sec .tip { margin: 20px 0 0; font-size: 14px; color: var(--ink-muted); }

/* The footer */
.foot { border-top: 1px solid var(--line); padding: 24px 0; font-size: 13px; color: var(--ink-muted); }
.foot .inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (min-width: 760px) {
  .inner { padding: 0 24px; }
  .hero-bar { height: 72px; }
  .hero-bar img { height: 52px; }
  .hero-bar nav { gap: 28px; font-size: 14px; }
  .hero-body { padding: 88px 0 80px; }
  .hero h1 { font-size: 72px; }
  .serif { font-size: 30px; }
  .lead { font-size: 17px; }
  h2 { font-size: 40px; }
  .paper, .band { padding: 72px 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .now { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  .facts { margin-top: 56px; }
}
