/* Annual Percentage Rewards: the night market under the beam.
   Layout system: one container (1280 max), one left edge (--edge), spacing 8/16/24/32/48/64/96,
   one section header (pixel title + one sentence), one panel style (the slate board), one paper style (kraft). */
@font-face { font-family: "Press Start 2P"; src: url("/fonts/pressstart2p.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/worksans-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geistmono-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --night: #070B12; --night-2: #0C1424; --chalk: #F3F0E6; --chalk-dim: #C9CCD3; --beam: #5B8CFF; --beam-hi: #CFE4FF;
  --grass: #4E9A3A; --grass-dk: #1D3B1A; --slate: #1F2A26; --slate-2: #26332E; --wood: #B98A52; --kraft: #D9C3A0;
  --tag: #FFF8E1; --ink: #1F2A26; --orange: #F08A24; --amber: #F2B134; --apple: #6BA84F; --plum: #7B4FA3;
  --edge: 48px; --max: 1440px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --pix: "Press Start 2P", "Work Sans", system-ui, sans-serif; --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--chalk); font: 400 18px/1.55 var(--sans); font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.pix { font-family: var(--pix); font-weight: 700; -webkit-font-smoothing: none; font-smooth: never; letter-spacing: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--beam-hi); outline-offset: 3px; border-radius: 6px; }

/* ---- nav: one short row ----------------------------------------------------------------------------------- */
.nav { display: flex; align-items: center; gap: var(--s4); min-height: 72px; padding-top: 16px; position: relative; z-index: 5; }
.nav a { text-decoration: none; font-weight: 600; font-size: 17px; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: transparent; }
.nav a:hover::after { background: rgba(207, 228, 255, .45); }
.nav a[aria-current="page"]::after { background: var(--beam); }
.nav .links-row { display: contents; }
.nav .brand::after { content: none; }
.nav .brand { display: flex; align-items: center; gap: 10px; border: 0; margin-right: var(--s2); }
.nav .brand img { width: 36px; height: 36px; border-radius: 4px; image-rendering: auto; }
.nav .brand span { font-family: var(--pix); font-size: 32px; line-height: 1; -webkit-font-smoothing: none; }
.badge { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--beam-hi); border: 1.5px solid rgba(91, 140, 255, .8); border-radius: 999px; padding: 6px 18px 6px 16px; background: rgba(7, 11, 18, .55); cursor: help; position: relative; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--beam); box-shadow: 0 0 0 0 rgba(91, 140, 255, .7); animation: ping 2.4s ease-out infinite; }
.badge.live { color: var(--chalk); border-color: rgba(107, 168, 79, .9); }
.badge.live::before { background: var(--apple); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91, 140, 255, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(91, 140, 255, 0); } }
.menu-btn { display: none; }

/* ---- buttons ------------------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 1.3em 13px; border-radius: 12px; font-weight: 600; font-size: 18px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease-out, background .15s, border-color .15s; line-height: 1.2; text-align: center; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-main { background: var(--beam); color: #04101F; }
.btn-main:hover { background: #7AA3FF; }
.btn-ghost { background: rgba(7, 11, 18, .45); border-color: rgba(243, 240, 230, .75); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk); background: rgba(243, 240, 230, .08); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- the first screen: the stall under the beam ---------------------------------------------------------- */
.stage { position: relative; min-height: max(680px, min(100svh, 56.28vw)); overflow: hidden; }
.scene { position: absolute; right: 0; bottom: 0; aspect-ratio: 1672 / 941; width: max(100%, calc((max(680px, min(100svh, 56.28vw))) * 1.7768)); }
.scene picture { display: contents; }
.scene img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.scene .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.copy { position: relative; z-index: 4; min-height: max(680px, min(100svh, 56.28vw)); display: flex; flex-direction: column; padding: 0 var(--edge) var(--s4); max-width: calc(41vw + var(--edge)); }
.copy .lead { margin-top: auto; margin-bottom: auto; padding: var(--s3) 0 var(--s4); }
.name { font-size: 63px; line-height: 1.02; margin: 0 0 var(--s3); color: var(--chalk); }
.name span { display: block; }
.headline { font-size: 34px; line-height: 1.18; font-weight: 600; margin: 0 0 var(--s2); max-width: 560px; letter-spacing: -.01em; }
.headline em { font-style: normal; color: var(--beam); }
.sub { font-size: 18px; color: var(--chalk-dim); margin: 0 0 var(--s3); max-width: 540px; }
.sub b { color: var(--chalk); font-weight: 700; }
.acts { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }

/* the kraft card with the contract and the three links (the brief's cardboard by the scale, under the copy) */
.card { background: var(--kraft); color: var(--ink); border-radius: 10px; padding: 12px 16px 14px; max-width: 560px; box-shadow: 0 2px 0 #9C7B4D, 0 10px 30px rgba(0, 0, 0, .35); position: relative; }
.card .row1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card .lbl { font-size: 16px; font-weight: 700; white-space: nowrap; }
.card .ca { font-family: var(--mono); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; cursor: pointer; }
.card .ca.empty { font-family: var(--sans); font-style: italic; cursor: default; color: #5A4A33; }
.copybtn { min-height: 40px; padding: 0 16px 1px; border-radius: 8px; border: 2px solid var(--ink); background: var(--tag); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; }
.copybtn:hover { background: #fff; }
.copybtn[disabled] { opacity: .45; cursor: not-allowed; }
.links { display: flex; gap: 10px; margin-top: 10px; }
.links a, .links span.off { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 8px; background: var(--tag); border: 2px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; color: var(--ink); padding: 0 12px 1px; }
.links a:hover { background: #fff; }
.links img { width: 20px; height: 20px; }
.links span.off { opacity: .5; cursor: not-allowed; }

/* things on the picture (positions measured off the picture's pixels, percent of its box) */
.tagx { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); text-decoration: none; padding: 2% 3%; pointer-events: auto; }
.tagx .sym { font-weight: 700; font-size: clamp(16px, 1.05vw, 20px); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagx .fig { font-weight: 800; font-size: clamp(22px, 2.6vw, 50px); line-height: 1.02; letter-spacing: -.02em; }
.tagx .per { font-weight: 600; font-size: 16px; line-height: 1.15; white-space: nowrap; }
.tagx:hover .fig { color: #26457F; }
.tagx .fig.wipe { animation: wipe .9s steps(6) both; }
@keyframes wipe { 0% { clip-path: inset(0 0 0 0); } 45% { clip-path: inset(0 0 0 100%); } 55% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.sign { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 5%; pointer-events: auto; cursor: text; border-radius: 6px; transition: box-shadow .15s, background .15s; }
.sign:hover, .sign:focus-within { background: rgba(207, 228, 255, .08); box-shadow: inset 0 0 0 2px rgba(207, 228, 255, .55); }
.sign button { border: 0; background: var(--chalk); color: var(--ink); font-weight: 700; font-size: 16px; border-radius: 6px; padding: 6px 12px; cursor: pointer; flex: none; }
.sign button:hover { background: #fff; }
.sign input { width: 100%; background: transparent; border: 0; border-bottom: 2px dashed rgba(243, 240, 230, .55); color: var(--chalk); font-size: clamp(16px, 1.05vw, 19px); padding: 4px 2px 5px; text-align: center; outline: none; }
.sign input::placeholder { color: rgba(243, 240, 230, .78); }
.sign input:focus { border-bottom-color: var(--chalk); }
.lamp { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: help; border: 0; background: transparent; padding: 0; }
.lamp img { width: 100%; height: auto; opacity: 0; transition: opacity .4s steps(4); }
.lamp.on img { opacity: 1; }
.scale-hit { position: absolute; pointer-events: auto; cursor: help; border: 0; background: transparent; }

/* hover card: flip + shift, never covers what it explains */
.hc { position: fixed; z-index: 50; max-width: 300px; background: var(--tag); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 12px 16px; font-size: 16px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transition: opacity .12s; }
.hc.show { opacity: 1; }
.hc b { display: block; margin-bottom: 2px; }

/* ---- sections ----------------------------------------------------------------------------------------------- */
.sec { padding: var(--s7) 0 var(--s6); position: relative; }
.sec + .sec { padding-top: var(--s5); }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.sec-h h2 { font-family: var(--pix); font-size: 48px; line-height: 1; margin: 0; -webkit-font-smoothing: none; }
.sec-h p { margin: 8px 0 0; color: var(--chalk-dim); max-width: 660px; }
.sec-h .src { font-size: 16px; color: var(--chalk-dim); text-align: right; }

/* the slate board: the one panel style */
.slate { background: var(--slate); border-radius: 14px; border: 6px solid #6B4E2C; box-shadow: inset 0 0 0 2px #8A6A40, 0 18px 40px rgba(0, 0, 0, .4); padding: var(--s3) var(--s4) var(--s4); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s3); align-items: center; }
.chip { min-height: 44px; padding: 0 24px 1px; border-radius: 999px; border: 2px solid rgba(243, 240, 230, .4); background: transparent; font-weight: 600; font-size: 16px; cursor: pointer; }
.chip:hover { border-color: var(--chalk); }
.chip[aria-pressed="true"] { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.search { flex: 1; min-width: 240px; display: flex; gap: 10px; }
.search input { flex: 1; min-height: 48px; border-radius: 10px; border: 2px solid rgba(243, 240, 230, .4); background: rgba(0, 0, 0, .18); padding: 0 16px; font-size: 17px; }
.search input:focus { border-color: var(--chalk); outline: none; }

.board { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board col.c-rank { width: 56px; } .board col.c-coin { width: auto; } .board col.c-fig { width: 170px; } .board col.c-num { width: 124px; } .board col.c-rate { width: 84px; } .board col.c-chk { width: 136px; }
.board th { text-align: right; font-size: 16px; font-weight: 600; color: var(--chalk-dim); padding: 8px 20px 12px; white-space: nowrap; border-bottom: 2px solid rgba(243, 240, 230, .25); }
.board th:nth-child(1), .board th:nth-child(2) { text-align: left; }
.board td { padding: 12px 20px; text-align: right; border-bottom: 1px solid rgba(243, 240, 230, .12); white-space: nowrap; font-size: 17px; }
.board td:nth-child(1) { text-align: left; color: var(--chalk-dim); width: 48px; }
.board td:nth-child(2) { text-align: left; white-space: normal; }
.board tr.r { cursor: pointer; transition: background .15s; }
.board tr.r:hover { background: rgba(243, 240, 230, .06); }
.board .coin { display: flex; align-items: center; gap: 14px; min-width: 0; }
.board .coin img { width: 44px; height: 44px; flex: none; }
.board .coin b { display: block; font-size: 18px; }
.board .coin small { display: block; color: var(--chalk-dim); font-size: 16px; white-space: nowrap; }
.board .big { font-size: 24px; font-weight: 800; color: var(--chalk); }
.stamp { display: inline-block; font-size: 16px; font-weight: 600; padding: 4px 16px 5px; border-radius: 999px; line-height: 1.2; cursor: help; letter-spacing: .01em; }
.stamp::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: currentColor; }
.stamp.checked { color: #A9DD8E; background: rgba(107, 168, 79, .2); }
.stamp.estimate { color: var(--chalk-dim); background: rgba(243, 240, 230, .08); }
.cp { color: var(--amber); font-size: 16px; font-weight: 600; }
.note { font-size: 16px; color: var(--chalk-dim); margin: var(--s2) 0 0; }
.fail { color: var(--amber); font-size: 16px; }
.more { margin-top: var(--s3); display: flex; justify-content: center; }

/* sponsored: lanterns over the board */
.sponsored { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.lan { background: rgba(255, 248, 225, .06); border: 2px dashed rgba(243, 240, 230, .25); border-radius: 12px; padding: 12px 16px 14px; text-align: center; min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.lan img { width: 44px; height: auto; }
.lan.lit { border: 2px solid var(--amber); background: rgba(242, 177, 52, .1); }
.lan b { font-size: 17px; }
.lan small { font-size: 16px; color: var(--chalk-dim); }

/* figures strip under the fold */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.fig4 { padding: var(--s2) 0; position: relative; }
.fig4::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(243, 240, 230, .25); }
.fig4 b { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.fig4 span { color: var(--chalk-dim); font-size: 16px; }

/* inner pages: a band of the same scene */
.band { position: relative; height: 340px; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 62%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 18, .92) 0%, rgba(7, 11, 18, .7) 38%, rgba(7, 11, 18, 0) 70%), linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 18, 0) 40%); }
.band .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.band h1 { font-family: var(--pix); font-size: 63px; line-height: 1.05; margin: auto 0 8px; -webkit-font-smoothing: none; }
.band p { margin: 0 0 var(--s4); color: var(--chalk-dim); max-width: 620px; }

/* paper (kraft) and tag cards */
.paper { background: var(--tag); color: var(--ink); border-radius: 12px; padding: var(--s3) var(--s4); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px var(--s3); margin: 0; }
dl.facts dt { color: var(--chalk-dim); font-size: 16px; padding-top: 2px; }
dl.facts dd { margin: 0; text-align: right; font-weight: 600; }
.paper dl.facts dt { color: #5A4A33; }
.formula { font-family: var(--mono); font-size: 16px; background: rgba(0, 0, 0, .22); border-radius: 8px; padding: 16px 20px; margin-top: var(--s2); white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.paper .formula { background: rgba(31, 42, 38, .08); }
.addr { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
.addr code { font-family: var(--mono); font-size: 16px; white-space: nowrap; cursor: pointer; }
.addr button { min-height: 36px; padding: 0 16px 1px; border-radius: 6px; border: 1.5px solid currentColor; background: transparent; font-size: 16px; font-weight: 600; cursor: pointer; }

/* table of contents style lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: var(--s3); padding: 12px 0; position: relative; }
.list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(243, 240, 230, .12); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--tag); color: var(--ink); border: 2px solid var(--ink); padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; opacity: 0; transition: opacity .2s, transform .2s ease-out; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- the phone and the middle ------------------------------------------------------------------------------- */
@media (min-width: 1600px) { .name { font-size: 79px; } .headline { font-size: 38px; max-width: 640px; } .card { max-width: 620px; } .sub { max-width: 600px; } }
@media (max-width: 1179px) {
  :root { --edge: 32px; }
  .stage { height: auto; min-height: 0; overflow: visible; }
  .copy { max-width: none; height: auto; }
  .copy .lead { margin: 0; padding: var(--s3) 0 var(--s4); }
  .scene { position: relative; width: 100%; right: auto; bottom: auto; }
  .name span { display: inline; }
  .name span + span::before { content: " "; }
}
@media (max-width: 1023px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sponsored { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid2, .grid3 { grid-template-columns: 1fr; } .board .hide-m { display: none; } }
@media (max-width: 760px) {
  :root { --edge: 16px; }
  .nav { gap: var(--s3); height: 64px; }
  .nav .links-row { display: none; }
  .menu-btn { display: inline-flex; min-height: 44px; padding: 0 18px 1px; border-radius: 999px; border: 2px solid rgba(243, 240, 230, .6); background: transparent; font-weight: 600; font-size: 16px; align-items: center; cursor: pointer; }
  .badge { margin-left: auto; padding: 6px 18px 6px 16px; }
  .name { font-size: 48px; line-height: 1.05; }
  .name span { display: block; }
  .name span + span::before { content: none; }
  .headline { font-size: 26px; }
  .sub { font-size: 17px; }
  .acts { flex-direction: column; }
  .acts .btn { width: 100%; }
  .links { flex-direction: column; }
  .scene.tall { aspect-ratio: 982 / 1602; }
  .sec { padding: var(--s6) 0 var(--s5); }
  .sec-h h2 { font-size: 32px; }
  .slate { padding: 20px 28px 24px; border-width: 4px; }
  .sponsored { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: 1fr 1fr; }
  .fig4 b { font-size: 30px; }
  .band { height: 260px; }
  .band h1 { font-size: 32px; }
  .board th { display: none; }
  .board tr.r { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid rgba(243, 240, 230, .12); }
  .board td { border: 0; padding: 2px 0; }
  .board td:nth-child(1) { display: none; }
  .board td.m-hide { display: none; }
  .board .big { font-size: 26px; }
  .board .coin small { max-width: 180px; }
}
/* the phone drawer */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(7, 11, 18, .97); display: none; flex-direction: column; padding: 24px 16px; gap: 8px; }
.drawer.open { display: flex; }
.drawer a { font-family: var(--pix); font-size: 32px; text-decoration: none; padding: 10px 0; -webkit-font-smoothing: none; }
.drawer a[aria-current="page"] { color: var(--beam); }
.drawer .close { align-self: flex-end; min-height: 44px; padding: 0 18px 1px; border-radius: 999px; border: 2px solid rgba(243, 240, 230, .6); background: transparent; font-weight: 600; font-size: 16px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.fxcap { position: absolute; left: 41%; bottom: 3%; max-width: 56%; background: rgba(31, 42, 38, .94); border: 2px solid #8A6A40; color: var(--chalk); padding: 10px 16px 11px; border-radius: 10px; font-size: 16px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s ease-out; pointer-events: none; }
.fxcap.show { opacity: 1; transform: none; }
.fxcap span { color: var(--chalk-dim); }
.scene.tall .fxcap { left: 4%; right: 4%; max-width: none; bottom: 2.5%; }
/* the big price tag on a clothespin (coin page): blank area measured on img/tag.webp, x 1-98%, y 38-98% */
.bigtag { position: relative; width: min(100%, 460px); margin: 0 auto; cursor: pointer; transform-origin: 50% 8%; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.bigtag img { width: 100%; height: auto; }
.bigtag .face { position: absolute; left: 7%; right: 7%; top: 43%; bottom: 6%; border: 0; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: opacity .25s steps(3), transform .35s steps(5); }
.bigtag .backf { opacity: 0; transform: scaleX(0); }
.bigtag.flip .front { opacity: 0; transform: scaleX(0); }
.bigtag.flip .backf { opacity: 1; transform: none; }
.t-sym { font-weight: 700; font-size: 20px; }
.t-fig { font-weight: 800; font-size: clamp(48px, 7vw, 76px); line-height: 1; letter-spacing: -.03em; }
.t-per { font-weight: 600; font-size: 17px; }
.bigtag .stamp { margin-top: 8px; }
.bigtag .stamp.estimate { color: #6B5B44; }
.bigtag .stamp.checked { color: #3E7A2B; }
.tag-back { display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 16px; text-align: left; width: 100%; padding: 0 4%; }
.tag-back span { text-align: right; font-weight: 800; }
.tag-back b { font-weight: 600; }
/* rows of the stall */
.leagues { display: flex; flex-direction: column; gap: var(--s2); }
.league { display: grid; grid-template-columns: 88px minmax(160px, 1.1fr) minmax(120px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr); align-items: center; gap: var(--s3); background: var(--slate); border: 6px solid #6B4E2C; box-shadow: inset 0 0 0 2px #8A6A40; border-radius: 14px; padding: 12px var(--s4) 12px var(--s3); }
.league .lg-name .pix { display: block; font-size: 32px; line-height: 1.1; -webkit-font-smoothing: none; }
.league small { display: block; color: var(--chalk-dim); font-size: 16px; }
.lg-bar { height: 14px; background: rgba(243, 240, 230, .1); border-radius: 7px; overflow: hidden; }
.lg-bar i { display: block; height: 100%; background: var(--beam); border-radius: 7px; }
.lg-mean b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.lg-best a { text-decoration: none; display: block; }
.lg-best b { font-size: 19px; }
.ww h3 { font-size: 32px; margin: 0 0 var(--s2); -webkit-font-smoothing: none; }
.ww-big { margin-bottom: var(--s2); }
.ww-big b { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.02em; display: block; }
.ww-big span { color: var(--chalk-dim); font-size: 16px; }
@media (max-width: 1023px) { .league { grid-template-columns: 72px 1fr auto; } .league img { width: 72px; height: 72px; } .lg-bar { grid-column: 2 / 4; grid-row: 2; } .lg-best { grid-column: 2 / 4; } }
.fl { display: block; font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.fi { width: 100%; min-height: 50px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; color: var(--ink); padding: 0 14px; font-size: 17px; margin-bottom: var(--s3); }
.fi.mono { font-family: var(--mono); font-size: 16px; }
.fi:focus { outline: 3px solid var(--beam); outline-offset: 1px; }
.paper .btn-main[disabled] { background: #8EA4D6; color: #1F2A26; opacity: .7; }
pre.code { font-family: var(--mono); font-size: 16px; line-height: 1.55; background: #0B1220; border: 2px solid rgba(91, 140, 255, .35); border-radius: 12px; padding: var(--s3); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--beam-hi); }
.list li span.mono { font-family: var(--mono); font-size: 16px; white-space: nowrap; }
.list li span:last-child { color: var(--chalk-dim); text-align: right; font-size: 16px; }
@media (max-width: 760px) { .list li { flex-direction: column; gap: 4px; } .list li span:last-child { text-align: left; } .list li span.mono { white-space: normal; word-break: break-all; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.step { margin: 0; }
.step img { width: 100%; height: auto; border-radius: 12px; border: 4px solid #6B4E2C; }
.step figcaption { margin-top: 12px; color: var(--chalk-dim); font-size: 16px; }
.step figcaption b { display: block; color: var(--chalk); font-size: 18px; margin-bottom: 4px; }
.tiers td { padding: 8px 16px; font-size: 16px; }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin-bottom: 12px; }
ul.plain li:last-child { margin-bottom: 0; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

@media (max-width: 1365px) and (min-width: 1180px) { .tagx .sym { display: none; } }
@media (max-width: 760px) { .tagx .sym, .tagx .per { display: none; } .tagx .fig { font-size: 19px; } .sign input { font-size: 16px; } }
@media (max-width: 379px) { .name { font-size: 32px; } }
/* 404: the empty crate, its tag at 0.00 (blank tag measured on img/notfound.webp: x 54.9%, y 63.8%, 15.3% x 17.9%) */
.nf-tag { position: absolute; left: 54.9%; top: 63.8%; width: 15.3%; height: 17.9%; display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 800; font-size: clamp(18px, 2.4vw, 46px); letter-spacing: -.02em; transform: rotate(-2deg); }
.board td.fig-td { padding-left: 24px; padding-right: 24px; }
@media (max-width: 1439px) { .board .hide-l { display: none; } }
.board .coin .cpline { display: block; color: var(--amber); font-size: 16px; font-weight: 600; }
/* phone: the picture right under the name (nav, name, scene, then the words and the contract) */
@media (max-width: 760px) {
  .stage { display: flex; flex-direction: column; }
  .stage .copy, .stage .lead { display: contents; }
  .stage .nav { order: 1; padding: 0 var(--edge); }
  .stage .name { order: 2; padding: 8px var(--edge) 0; margin-bottom: var(--s2); }
  .stage .scene { order: 3; }
  .stage .headline, .stage .sub, .stage .acts, .stage .card { order: 4; margin-left: var(--edge); margin-right: var(--edge); }
  .stage .headline { margin-top: var(--s3); }
  .stage .card { margin-bottom: var(--s4); }
}
@media (max-width: 760px) {
  .stage .name { position: relative; z-index: 3; }
  .stage .scene.tall { margin-top: -41vw; z-index: 1; }
}
@media (max-width: 1023px) {
  .league { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img name mean" "img bar bar" "img best best"; row-gap: 8px; }
  .league img { grid-area: img; align-self: start; } .league .lg-name { grid-area: name; } .league .lg-bar { grid-area: bar; grid-column: auto; grid-row: auto; }
  .league .lg-mean { grid-area: mean; text-align: right; } .league .lg-best { grid-area: best; grid-column: auto; }
  .lg-mean b { font-size: 24px; }
}
.addr button { min-height: 40px; }
@media (max-width: 760px) {
  dl.facts { grid-template-columns: 1fr; gap: 4px; }
  dl.facts dt { padding-top: 10px; }
  dl.facts dd { text-align: left; }
  .addr { justify-content: flex-start; }
  .board td.fig-td { padding-left: 28px; padding-right: 28px; }
}
.formula { overflow-wrap: anywhere; }
@media (max-width: 379px) { .formula { padding: 16px 24px; } .slate { padding: 20px 20px 24px; } }
.formula, pre.code { white-space: break-spaces; }
@media (max-width: 1179px) { .board .hide-m { display: none; } }
@media (max-width: 760px) {
  .board, .board tbody { display: block; width: 100%; }
  .board thead { display: none; }
}
@media (max-width: 1023px) { .board th:nth-child(1), .board td:nth-child(1) { display: none; } }
@media (max-width: 760px) {
  .board tr.r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "coin coin" "fig stamp"; padding: 14px 24px; align-items: center; row-gap: 8px; }
  .board tr.r td:nth-child(2) { grid-area: coin; }
  .board tr.r td.fig-td { grid-area: fig; padding: 0; }
  .board tr.r td:last-child { grid-area: stamp; padding: 0; }
  .board .big { font-size: 22px; }
  .board .coin small { white-space: normal; max-width: none; }
}
.board .coin small, .board .coin b { overflow-wrap: anywhere; } .board .coin > div { min-width: 0; }

.board .coin { overflow: hidden; }
.board .coin small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.board .coin b { display: flex; align-items: center; gap: 8px; }
.cpw { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(242, 177, 52, .22); color: var(--amber); font-size: 14px; font-weight: 800; cursor: help; flex: none; }
.board tr.thin td { opacity: .78; }
.lanline { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); color: var(--chalk-dim); }
.lanline img { width: 36px; height: auto; }
.lanline b { color: var(--chalk); }
.thinbox { margin-top: var(--s4); }
.thinbox summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--chalk); }
.thinbox summary:hover { color: #fff; }
.flag-thin { display: inline-block; margin-left: 8px; font-size: 16px; color: var(--amber); }
/* tags flip like a board on a re-read */
.tagx { perspective: 400px; }
.tagx .fig.flip { animation: flipfig .5s steps(5) both; }
@keyframes flipfig { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.lamp .lt { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); background: var(--slate); color: var(--chalk); border: 2px solid #8A6A40; border-radius: 6px; padding: 2px 8px; font-size: 16px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.lamp.on.labelled .lt { opacity: 1; }
#scalefx { position: absolute; pointer-events: none; opacity: 0; }
#scalefx.on { opacity: 1; }
/* inner pages: the band shows the awning and the lanterns, never the blank tags; the words sit on a dark gradient */
.band > img { object-position: 100% 30%; }
.band::after { background: linear-gradient(90deg, rgba(7, 11, 18, .97) 0%, rgba(7, 11, 18, .9) 45%, rgba(7, 11, 18, .35) 75%, rgba(7, 11, 18, .15) 100%), linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 18, 0) 45%); }
.band .wrap > h1, .band .wrap > p { max-width: 640px; }
/* disabled actions say why, fully visible */
.paper .btn-main[disabled] { background: #C9CCD3; color: #39443F; opacity: 1; }
/* API: description under the route; long answers folded */
.list li { flex-direction: column; gap: 4px; }
.list li span:last-child { text-align: left; }
.fold { position: relative; }
.fold.closed pre.code { max-height: calc(10 * 1.55em + 48px); overflow: hidden; }
.fold.closed::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 58px; height: 64px; background: linear-gradient(0deg, #0B1220, rgba(11, 18, 32, 0)); border-radius: 0 0 12px 12px; pointer-events: none; }
.fold .btn { margin-top: 12px; }
.ranked th:nth-child(1) { width: 56px; } .ranked th:nth-child(3) { width: 170px; } .ranked th:nth-child(4), .ranked th:nth-child(5), .ranked th:nth-child(6) { width: 124px; } .ranked th:nth-child(7) { width: 84px; } .ranked th:nth-child(8) { width: 140px; }
@media (max-width: 1023px) { .ranked th:nth-child(3) { width: 150px; } }
.sign input { flex: 1 1 auto; min-width: 0; width: auto; text-align: left; }
.sign button { padding: 4px 10px; }
.nav .brand { margin-right: var(--s3); }
@media (max-width: 760px) { .nav .brand span { display: none; } }
.sign { padding: 0 12px; }
@media (max-width: 760px) { .sign button { display: none; } .sign input { text-align: center; } }
.league .lg-name .pix { font-family: var(--sans); font-weight: 800; font-size: 28px; -webkit-font-smoothing: auto; letter-spacing: -.01em; }
.band h1.sansh { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; -webkit-font-smoothing: auto; }
.cpw { width: 26px; height: 26px; font-size: 16px; }
.stamp { padding: 8px 16px; }
.sign button { padding: 8px 16px; }
.ranked th:nth-child(4) { width: 150px; } .ranked th:nth-child(5) { width: 132px; } .ranked th:nth-child(6) { width: 144px; }
.board.tiers { table-layout: auto; }
.board td:has(.big) { padding-left: 24px; padding-right: 24px; }
.ranked th:nth-child(4) { width: 164px; } .ranked th:nth-child(5) { width: 150px; } .ranked th:nth-child(6) { width: 164px; } .ranked th:nth-child(7) { width: 100px; }
.cpw { width: auto; height: auto; background: transparent; border-radius: 0; padding: 0 4px; font-size: 18px; text-decoration: underline dotted; }
.board .coin small { overflow: visible; text-overflow: clip; }
#board .wrap { max-width: 1440px; }
.ranked th:nth-child(3) { width: 150px; } .ranked th:nth-child(4) { width: 150px; } .ranked th:nth-child(5) { width: 136px; } .ranked th:nth-child(6) { width: 144px; } .ranked th:nth-child(7) { width: 88px; } .ranked th:nth-child(8) { width: 160px; }
@media (max-width: 1023px) { .ranked th:nth-child(3) { width: 140px; } }
.ranked th:nth-child(1) { width: 68px; } .ranked th:nth-child(3) { width: 172px; } .ranked th:nth-child(4) { width: 160px; }
@media (max-width: 760px) { .board .coin small { white-space: normal; } }
.board.tiers td { white-space: normal; }

/* ---- revision 3: Press Start 2P, uppercase, on its 8-px grid (sizes multiple of 8), digits never in it ---------- */
.pix, .sec-h h2, .band h1, .drawer a, .ww h3, .nav .brand span { font-family: var(--pix); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; -webkit-font-smoothing: none; font-smooth: never; }
.name { font-size: 40px; line-height: 1.3; margin: 0 0 var(--s2); }
@media (min-width: 1600px) { .name { font-size: 48px; } }
.sec-h h2 { font-size: 24px; line-height: 1.35; }
.band h1 { font-size: 32px; line-height: 1.3; }
.ww h3 { font-size: 24px; }
.nav .brand span { font-size: 24px; }
.drawer a { font-size: 24px; padding: 14px 0; }
.headline { font-size: 32px; }
.sub { margin-bottom: var(--s3); }
.copy .lead { padding: var(--s2) 0 var(--s3); }
@media (max-width: 760px) { .name { font-size: 32px; } .sec-h h2 { font-size: 24px; } .band h1 { font-size: 24px; } .headline { font-size: 26px; } }
@media (max-width: 379px) { .name { font-size: 24px; } }
/* one container for every section; the board section is not wider */
#board .wrap { max-width: var(--max); }
#board.sec { padding-top: var(--s5); }
.sec { padding-top: var(--s6); }
/* Rehearsal on a solid plate (it sits on the awning on inner pages) */
.badge { background: #070B12; }

/* lanterns: the sprite over the painted one, swaying from its string, a soft flicker inside */
.lamp { transform-origin: 50% 0; animation: sway var(--sw, 4.6s) ease-in-out var(--sd, 0s) infinite; }
.lamp { transform: translate(-50%, -50%); }
.lamp img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transition: opacity .4s steps(4); }
.lamp img.off { position: relative; opacity: 1; }
.lamp img.lit { opacity: 0; }
.lamp.on img.lit { opacity: 1; }
.lamp::after { content: ""; position: absolute; left: 50%; top: 58%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 177, 52, .35), rgba(242, 177, 52, 0) 65%); pointer-events: none; animation: flicker 2.8s steps(6) var(--sd, 0s) infinite; mix-blend-mode: screen; }
.lamp.on::after { background: radial-gradient(circle, rgba(242, 177, 52, .7), rgba(242, 177, 52, 0) 65%); }
@keyframes sway { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes flicker { 0%, 100% { opacity: .55; } 30% { opacity: .85; } 55% { opacity: .45; } 80% { opacity: .75; } }
/* the sign answers Find in chalk */
.sign .signres { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--chalk); font-weight: 700; font-size: clamp(16px, 1.15vw, 22px); background: #1F2A26; border-radius: 6px; text-align: center; padding: 0 12px; }
.sign.showres .signres { display: flex; }
/* the board: hover lifts the crate, its fruit hops; a payout runs a gold spark along the row; checked flashes */
.board tr.r td:nth-child(2) img { transition: filter .2s; }
.board tr.r:hover td:nth-child(2) img, .board tr.r:focus-visible td:nth-child(2) img { filter: drop-shadow(0 0 10px rgba(242, 177, 52, .75)); animation: hop .5s steps(4) 1; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 70% { transform: translateY(-2px); } }
.board tr.r { position: relative; }
.board tr.r.spark td:first-child { background-image: linear-gradient(90deg, rgba(242, 177, 52, 0), rgba(242, 177, 52, .9), rgba(242, 177, 52, 0)); background-size: 120px 3px; background-repeat: no-repeat; animation: sparkrun 1.1s linear 1; }
.board tr.r.spark { background: linear-gradient(90deg, rgba(242, 177, 52, 0), rgba(242, 177, 52, .22) 50%, rgba(242, 177, 52, 0)) no-repeat; background-size: 30% 100%; animation: rowspark 1.1s linear 1; }
@keyframes rowspark { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.stamp.estimate { background: transparent; box-shadow: inset 0 0 0 2px rgba(201, 204, 211, .45); }
.stamp.estimate::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.stamp.checked::before { content: "\2713"; width: auto; height: auto; background: none; border-radius: 0; font-size: 14px; font-weight: 800; vertical-align: 0; margin-right: 6px; }
.stamp.flash { animation: flash .9s steps(6) 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(169, 221, 142, .9); } 100% { box-shadow: 0 0 0 14px rgba(169, 221, 142, 0); } }
.stamp.estimate { box-shadow: none; border: 2px dashed rgba(201, 204, 211, .55); padding: 6px 14px; }
.stamp.estimate::before { box-shadow: none; background: currentColor; opacity: .6; }
/* band overlays placed on the picture's own pixels (object-fit: cover math in js/common.js) */
.band .bandsign { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--chalk); font-weight: 700; padding: 0 12px; line-height: 1.2; pointer-events: none; }
.band .bandlamp { position: absolute; z-index: 1; transform-origin: 50% 0; animation: sway var(--sw, 4.6s) ease-in-out var(--sd, 0s) infinite; pointer-events: auto; }
.band .bandlamp img { width: 100%; height: auto; display: block; transition: opacity .4s steps(4); }
.band .bandlamp img.lit { position: absolute; left: 0; top: 0; opacity: 0; }
.band .bandlamp.on img.lit { opacity: 1; }
.band .bandlamp .lt { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); background: #070B12; color: var(--chalk); border: 2px solid #8A6A40; border-radius: 6px; padding: 2px 8px; font-size: 16px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.band .bandlamp.on .lt { opacity: 1; }
.band .wrap { z-index: 3; }
@media (max-width: 760px) { .band .bandsign, .band .bandlamp { display: none; } }

.lg-bar i { transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.league.lead img { filter: drop-shadow(0 0 14px rgba(242, 177, 52, .8)); animation: glowp 2.4s ease-in-out infinite; }
@keyframes glowp { 0%, 100% { filter: drop-shadow(0 0 8px rgba(242, 177, 52, .55)); } 50% { filter: drop-shadow(0 0 18px rgba(242, 177, 52, .95)); } }
/* sponsors table: the lantern sits in the middle of its row */
#table .board td:nth-child(2) { display: table-cell; }
#table .board td:nth-child(2) img { display: inline-block !important; vertical-align: middle !important; height: 30px; width: auto !important; margin: -4px 10px 0 0 !important; }
/* the disabled sponsor button: a whole button that says why */
.paper .btn-main[disabled] { background: #E4E1D6; color: #39443F; border: 2px dashed #8E8A7C; opacity: 1; cursor: not-allowed; min-height: 52px; }

.stepfx { position: relative; overflow: hidden; border-radius: 12px; }
.stepfx img { transform-origin: 50% 90%; }
.stepcv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.steptag { position: absolute; left: 24%; top: 50%; width: 47%; height: 32%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: pre-line; color: #1F2A26; font-weight: 800; font-size: clamp(16px, 1.6vw, 26px); line-height: 1.15; pointer-events: none; }

/* lanterns (revision 3): the painted lanterns cut off the picture sway from their hook; a lit one glows warm */
.lamp, .band .bandlamp { position: absolute; transform: none; transform-origin: 50% 2px; animation: lampsway var(--sw, 4.6s) ease-in-out var(--sd, 0s) infinite; padding: 0; border: 0; background: none; }
.lamp img, .band .bandlamp img { position: static; display: block; width: 100%; height: 100%; opacity: 1; image-rendering: auto; transition: filter .4s steps(4); }
.lamp::after, .band .bandlamp::after { content: ""; position: absolute; left: 50%; top: 55%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 177, 52, .28), rgba(242, 177, 52, 0) 62%); pointer-events: none; animation: flicker 2.8s steps(6) var(--sd, 0s) infinite; mix-blend-mode: screen; }
.lamp.on img, .band .bandlamp.on img { filter: brightness(1.45) saturate(1.5) sepia(.25); }
.lamp.on::after, .band .bandlamp.on::after { background: radial-gradient(circle, rgba(242, 177, 52, .75), rgba(242, 177, 52, 0) 62%); }
@keyframes lampsway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
:root { --max: 1920px; }
.lamp .lt, .band .bandlamp .lt { padding: 8px 16px; }

.stamp.off { color: #F2C66B; background: rgba(242, 177, 52, .16); border: 2px solid rgba(242, 177, 52, .55); padding: 6px 14px; }
.stamp.off::before { content: "\2248"; width: auto; height: auto; background: none; border-radius: 0; font-weight: 800; margin-right: 6px; vertical-align: 0; }

/* ---- one header everywhere: Rehearsal right after the menu, never pushed to the far edge ------------------------ */
.badge { margin-left: var(--s3); }
@media (max-width: 760px) { .badge { margin-left: auto; } }

/* ---- the coin page (revision 4) -------------------------------------------------------------------------------- */
.coinband { height: auto; }
.coinband > img { opacity: .35; }
.coinband::after { background: linear-gradient(90deg, rgba(7, 11, 18, .96) 0%, rgba(7, 11, 18, .85) 50%, rgba(7, 11, 18, .55) 100%), linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 18, 0) 60%); }
.coinband .wrap { height: auto; padding-bottom: var(--s4); }
.backlink { display: inline-block; margin: var(--s4) 0 var(--s2); color: var(--beam-hi); font-weight: 600; text-decoration: none; padding: 6px 0; }
.backlink:hover { text-decoration: underline; }
.coinband h1 { margin: 0 0 8px; }
.coinband p#hsub { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dg { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; -webkit-font-smoothing: auto; }
.coinsec { padding-top: var(--s4); }
.coinsec .sec-h { margin-top: var(--s6); }
.coingrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4); align-items: stretch; }
.coinleft { display: flex; flex-direction: column; gap: var(--s3); }
.tagwrap { display: flex; flex-direction: column; align-items: center; }
.coinleft .bigtag { width: min(100%, 400px); margin: 0 auto; }
.bigtag { animation: none; }
.bigtag.swing { animation: tagswing 2.6s cubic-bezier(.3,.7,.4,1) 1; }
@keyframes tagswing { 0% { transform: rotate(-9deg); } 18% { transform: rotate(7deg); } 36% { transform: rotate(-4.5deg); } 54% { transform: rotate(3deg); } 72% { transform: rotate(-1.5deg); } 88% { transform: rotate(.6deg); } 100% { transform: rotate(0); } }
.tagnote { margin: 8px 0 0; color: var(--chalk-dim); font-size: 16px; text-align: center; }
.t-real { margin-top: 6px; font-size: 16px; font-weight: 700; color: #8A5A00; background: rgba(242, 177, 52, .25); border-radius: 6px; padding: 2px 8px; }
.formula.sansf { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 17px; margin: 0; }
.coinfacts { display: flex; flex-direction: column; gap: var(--s3); }
.coinfacts .facts { margin-top: auto; }
.coinfacts .facts dd, .coinfacts .facts dt { font-size: 18px; padding: 6px 0; }
.dim { color: var(--chalk-dim); font-weight: 400; }
.checkrow { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); align-items: center; padding-bottom: var(--s3); border-bottom: 1px solid rgba(243, 240, 230, .14); }
.minis { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; row-gap: 2px; }
.minis img { grid-column: 1 / 3; width: 116px; height: auto; }
.minis span { font-size: 16px; color: var(--chalk-dim); }
.checktext { margin: 10px 0 0; font-size: 17px; }
.flipdd { animation: flipfig .5s steps(5) 1; display: block; }
/* payouts: fixed columns, numbers right */
.paytable { table-layout: fixed; }
.paytable th:nth-child(1) { width: 15%; text-align: left; } .paytable th:nth-child(2) { width: 30%; } .paytable th:nth-child(3) { width: 30%; } .paytable th:nth-child(4) { width: 25%; }
.paytable td:nth-child(1) { text-align: left; color: var(--chalk); white-space: nowrap; }
.paytable td, .copytable td { font-variant-numeric: tabular-nums; }
.paytable tr.spark { background: linear-gradient(90deg, rgba(242, 177, 52, 0), rgba(242, 177, 52, .25) 50%, rgba(242, 177, 52, 0)) no-repeat; background-size: 30% 100%; animation: rowspark 1.2s linear 1, rowin .4s ease-out 1; }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* copies: one line per coin, the address with a small copy key, the marks after it */
.copytable { table-layout: fixed; }
.copytable th:nth-child(1) { width: 40%; text-align: left; } .copytable th:nth-child(2) { width: 15%; } .copytable th:nth-child(3) { width: 25%; } .copytable th:nth-child(4) { width: 20%; }
.copytable td:nth-child(1) { text-align: left; white-space: nowrap; }
.copytable tr.r { cursor: pointer; }
.copytable tr.self { background: rgba(91, 140, 255, .12); }
.pill { display: inline-block; margin-left: 10px; padding: 4px 12px 5px; border-radius: 999px; font-size: 16px; font-weight: 700; vertical-align: middle; }
.pill.first { color: #A9DD8E; background: rgba(107, 168, 79, .2); }
.pill.self { color: var(--beam-hi); background: rgba(91, 140, 255, .25); }
.addr1 { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; vertical-align: middle; }
.addr1 code { font-family: var(--mono); font-size: 16px; }
.cpi { position: relative; width: 32px; height: 32px; min-height: 32px; border-radius: 6px; border: 1.5px solid rgba(243, 240, 230, .5); background: transparent; color: inherit; cursor: pointer; padding: 0; font-size: 0; }
.cpi::before, .cpi::after { content: ""; position: absolute; width: 11px; height: 13px; border: 2px solid currentColor; border-radius: 2px; }
.cpi::before { left: 8px; top: 6px; opacity: .6; } .cpi::after { left: 12px; top: 10px; background: var(--slate); }
.cpi:hover { border-color: var(--chalk); }
.addrfacts dd { text-align: left; }
@media (max-width: 1023px) { .coingrid { grid-template-columns: 1fr; } }
/* phone: tables become one card per row */
@media (max-width: 760px) {
  .coinband p#hsub { white-space: normal; }
  .paytable thead, .copytable thead { display: none; }
  .paytable, .paytable tbody, .copytable, .copytable tbody { display: block; width: 100%; }
  .paytable tr, .copytable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid rgba(243, 240, 230, .12); }
  .paytable td, .copytable td { display: block; padding: 0; border: 0; text-align: left !important; width: auto; }
  .paytable td::before, .copytable td::before { content: attr(data-l); display: block; font-size: 16px; color: var(--chalk-dim); }
  .copytable td:nth-child(1) { grid-column: 1 / 3; white-space: normal; }
  .checkrow { grid-template-columns: 96px 1fr; }
  .minis img { width: 92px; }
}
.paytable td:nth-child(n+2), .paytable th:nth-child(n+2), .copytable td:nth-child(n+2), .copytable th:nth-child(n+2) { text-align: right; }
.minis { column-gap: 12px; }
@media (max-width: 760px) {
  .checkrow { grid-template-columns: 128px 1fr; }
  .minis img { width: 108px; }
  .coinfacts .facts { grid-template-columns: max-content 1fr; gap: 6px 16px; }
  .coinfacts .facts dt { padding-top: 6px; }
  .coinfacts .facts dd { text-align: right; }
}
.t-real { padding: 6px 16px; }
.pill { padding: 8px 16px; }
.checkrow { border-bottom: 0; position: relative; }
.checkrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(243, 240, 230, .14); }
@media (max-width: 760px) { .paytable tr, .copytable tr { padding: 14px 20px; } }
@media (max-width: 760px) { .copytable .big, .paytable .big { font-size: 18px; } }

/* ---- Docs (revision 4) ---------------------------------------------------------------------------------------- */
.steptag { flex-direction: column; white-space: nowrap; gap: 2px; }
.steptag b { font-size: clamp(18px, 2vw, 34px); font-weight: 800; line-height: 1; }
.steptag small { font-size: clamp(11px, 0.9vw, 15px); font-weight: 700; line-height: 1.1; }
.docgrid { margin-top: var(--s6); align-items: stretch; }
.docblock { display: flex; flex-direction: column; }
.docblock .slate { flex: 1; }
.docsec { margin-top: var(--s6); }
.formula.sansf { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 17px; white-space: pre-wrap; }
.tierchart { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: var(--s2) 0 var(--s3); padding: 0 4px; border-bottom: 2px solid rgba(243, 240, 230, .25); }
.tierchart span { flex: 1; background: rgba(91, 140, 255, .55); border-radius: 3px 3px 0 0; cursor: help; transition: background .15s; }
.tierchart span.lit, .tierchart span:hover { background: var(--amber); }
.ratetable { table-layout: fixed; }
.ratetable th, .ratetable td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ratetable .c-cap { text-align: right; width: 38%; } .ratetable .c-usd { text-align: right; width: 38%; } .ratetable .c-rate { text-align: right; width: 24%; }
.ratetable th.c-cap { text-align: right; }
.ratetable td:nth-child(1), .ratetable td:nth-child(2) { text-align: right; }
.ratetable tr.lit td { background: rgba(242, 177, 52, .14); }
.ratetable tr.showall td { text-align: center !important; padding: 12px; }
.ratetable .usd2 { display: none; }
.cfg { margin-top: var(--s3); }
.cfg dd { text-align: right; }
@media (max-width: 760px) {
  .ratetable .c-usd { display: none; }
  .ratetable .c-cap { width: 64%; } .ratetable .c-rate { width: 36%; }
  .ratetable .usd2 { display: block; font-size: 16px; color: var(--chalk-dim); font-weight: 400; }
  .ratetable thead { display: table-header-group; }
  .ratetable tbody { display: table-row-group; }
  .ratetable tr { display: table-row !important; }
  .ratetable td, .ratetable th { display: table-cell !important; padding: 10px 16px; }
  .ratetable td.c-usd, .ratetable th.c-usd { display: none !important; }
  .tierchart { height: 96px; gap: 2px; }
}
.steptag small { font-size: 16px; } .steptag b { font-size: clamp(24px, 2vw, 34px); }

.ratetable tr[hidden] { display: none !important; }
.ratetable th.c-cap, .ratetable td.c-cap { width: 38%; } .ratetable th.c-usd { width: 38%; } .ratetable th.c-rate { width: 24%; }
.ratetable th { text-align: right !important; } .ratetable tr.showall td { text-align: center !important; }
#table .board { table-layout: auto; }
@media (max-width: 760px) { .ratetable td.c-cap { white-space: normal; } .ratetable td, .ratetable th { padding: 10px 12px; } }
@media (max-width: 379px) { .ratetable .usd2 { font-size: 16px; } .ratetable td.c-rate b { font-size: 16px; } }
@media (max-width: 760px) { .ratetable td, .ratetable th { padding: 10px 16px; } }
@media (max-width: 379px) { .ratetable .c-cap, .ratetable th.c-cap, .ratetable td.c-cap { width: 58%; } .ratetable .c-rate, .ratetable th.c-rate { width: 42%; } .ratetable td, .ratetable th { padding: 10px 16px; } }
@media (max-width: 760px) { .ratetable { table-layout: auto; } }
@media (max-width: 760px) { .ratetable th { white-space: normal; } }
