/* onepiececardprices.com, the "Notice Board" theme of the OP Card Price app
   (lib/app/theme.dart AppPalette + PosterPalette, design/bounty/src/a.css).
   Kraft board with paper grain, every price a paper poster pinned to it.
   Every colour is a variable. Light = kraft board, dark = night blue board with
   the dimmed paper (gate-visual), system preference by default, the header
   toggle overrides through data-theme. Asset urls are rewritten to their
   hashed names by build.py. */

@font-face { font-family: "Abril Fatface"; src: url(/static/font-abril.7e9bfa2c59.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2197, U+2212; }
@font-face { font-family: "Libre Franklin"; src: url(/static/font-franklin-600.40a22adb7d.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2197, U+2212; }
@font-face { font-family: "Libre Franklin"; src: url(/static/font-franklin-800.937d37faae.woff2) format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2197, U+2212; }
@font-face { font-family: "Libre Franklin"; src: url(/static/font-franklin-900.b7a24beafa.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+2044, U+20AC, U+2122, U+2190-2193, U+2197, U+2212; }

:root {
  /* type, Japanese falls through to the phone's own face */
  --f-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, system-ui, sans-serif;
  --f-text: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, var(--f-jp);
  --f-disp: "Abril Fatface", Georgia, "Times New Roman", var(--f-jp);

  /* brand, the straw hat trio, same in both modes */
  --straw: #F2C14E;
  --straw-light: #FFE08A;
  --straw-deep: #C9962A;
  --band: #D7263D;
  --on-straw: #1F1A12;
  --hat-line: rgba(15, 17, 21, .18);

  /* board */
  --board: #CDB488;
  --board-vig: rgba(90, 60, 20, .14);
  --grain: url(/static/grain-light.578286d98e.webp);
  --text: #1F1A12;          /* 8.8:1 on the board */
  --text2: #3F3526;         /* 5.9:1 on the board */
  --link: #741020;          /* 5:1 at the board edge, 9.6:1 on a slip */
  --line-strong: rgba(31, 26, 18, .55);

  /* slips, the plain paper the tables sit on */
  --slip: #F6EBD2;
  --slip-2: #EADBB8;
  --line: rgba(31, 26, 18, .16);
  --money: #8A5A00;         /* 5.3:1 on a slip */
  --up: #167535;
  --down: #B3202E;
  --chart: #8A5A00;
  --chart-fill: rgba(242, 193, 78, .38);

  /* posters */
  --paper: url(/static/paper-light.ad2e6df75a.webp);
  --paper-avg: #E5CFA0;
  --p-ink: #1F1A12;         /* 11:1 on the paper */
  --p-ink2: #433724;        /* 5:1 on the darkest paper spots */
  --p-badge: #F6EBD2;
  --p-rule: rgba(31, 26, 18, .22);
  --focus-ring: rgba(242, 193, 78, .35);
  --pin: #C8283A;
  --pin-hi: #FFB3BA;
  --pin-lo: #6D0D18;
  --pin-shadow: rgba(0, 0, 0, .45);
  --p-shadow: rgba(40, 25, 5, .42);
  --frame-wash: rgba(255, 250, 235, .18);

  /* buttons */
  --straw-rim: #1F1A12;
  --straw-drop: #1F1A12;
  --phone-rim: #1F1A12;

  /* floating app bar */
  --float-bg: #F6EBD2;
  --float-fg: #1F1A12;
  --float-shadow: 0 -2px 14px rgba(40, 25, 5, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --board: #161B26;
    --board-vig: rgba(0, 0, 0, .3);
    --grain: url(/static/grain-dark.48c076d65a.webp);
    --text: #E6EAF2;
    --text2: #A8B2C3;
    --link: #F2C14E;
    --line-strong: rgba(230, 234, 242, .45);
    --slip: #1F2635;
    --slip-2: #283043;
    --line: rgba(230, 234, 242, .12);
    --money: #F2C14E;
    --up: #52C78E;
    --down: #FF7A85;
    --chart: #F2C14E;
    --chart-fill: rgba(242, 193, 78, .16);
    --paper: url(/static/paper-dark.bb3db5689a.webp);
    --paper-avg: #B3A587;
    --p-ink: #1A140C;
    --p-ink2: #2A2015;
    --pin: #D7263D;
    --pin-hi: #E59AA3;
    --pin-lo: #570A13;
    --pin-shadow: rgba(0, 0, 0, .55);
    --p-shadow: rgba(0, 0, 0, .6);
    --frame-wash: rgba(255, 250, 235, .12);
    --straw-rim: #F2C14E;
    --straw-drop: #8A6A1E;
    --phone-rim: #0B0E14;
    --float-bg: #1F2635;
    --float-fg: #E6EAF2;
    --float-shadow: 0 -2px 16px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --board: #161B26;
  --board-vig: rgba(0, 0, 0, .3);
  --grain: url(/static/grain-dark.48c076d65a.webp);
  --text: #E6EAF2;
  --text2: #A8B2C3;
  --link: #F2C14E;
  --line-strong: rgba(230, 234, 242, .45);
  --slip: #1F2635;
  --slip-2: #283043;
  --line: rgba(230, 234, 242, .12);
  --money: #F2C14E;
  --up: #52C78E;
  --down: #FF7A85;
  --chart: #F2C14E;
  --chart-fill: rgba(242, 193, 78, .16);
  --paper: url(/static/paper-dark.bb3db5689a.webp);
  --paper-avg: #B3A587;
  --p-ink: #1A140C;
  --p-ink2: #2A2015;
  --pin: #D7263D;
  --pin-hi: #E59AA3;
  --pin-lo: #570A13;
  --pin-shadow: rgba(0, 0, 0, .55);
  --p-shadow: rgba(0, 0, 0, .6);
  --frame-wash: rgba(255, 250, 235, .12);
  --straw-rim: #F2C14E;
  --straw-drop: #8A6A1E;
  --phone-rim: #0B0E14;
  --float-bg: #1F2635;
  --float-fg: #E6EAF2;
  --float-shadow: 0 -2px 16px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
/* the board: paper grain (the app's tile, its opacity baked per mode) and a
   soft darkening at both sides, painted on the root so it runs the full page */
html { -webkit-text-size-adjust: 100%;
  background: linear-gradient(90deg, var(--board-vig), transparent 12%, transparent 88%, var(--board-vig)),
    var(--grain) 0 0 / 128px 128px repeat, var(--board); }
body {
  margin: 0;
  color: var(--text);
  font: 600 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0 0 .5rem; }
h1, h2 { font-family: var(--f-disp); font-weight: 400; letter-spacing: .01em; line-height: 1.08; font-synthesis: none; }
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 1.95rem); margin-top: 2.2rem; }
h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
:lang(ja) h1, :lang(ja) h2 { font-weight: 700; letter-spacing: 0; }
:lang(ja) h1 { font-size: clamp(1.6rem, 1.25rem + 1.8vw, 2.4rem); line-height: 1.25; }
:lang(ja) h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); line-height: 1.3; }
p { margin: 0 0 .75rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--straw); color: var(--on-straw); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .big, .v, .bounty, .rk, .r-price { font-variant-numeric: tabular-nums lining-nums; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; }

/* ----------------------------------------------------------- buttons -- */
/* The straw button of the app ("Scan a card"), ink rim and a pressed-paper drop. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px;
  font: 800 16px/1.1 var(--f-text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .09s, box-shadow .09s; }
.btn-straw { background: var(--straw); color: var(--on-straw); border: 2px solid var(--straw-rim); box-shadow: 0 3px 0 var(--straw-drop); }
.btn-straw:hover { text-decoration: none; filter: brightness(1.04); }
.btn-straw:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--straw-drop); }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }

/* the two places the app CTAs never show on an iPhone or iPad (no iOS app yet) */
.ios .app-cta { display: none !important; }
.ios-soon { display: none; }
.ios .ios-soon { display: block; }

/* ------------------------------------------------------------ header -- */
.top { position: relative; z-index: 5; }
.top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand act" "nav nav"; align-items: center;
  column-gap: 10px; padding-top: 10px; padding-bottom: 4px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; min-width: 0;
  font: 800 16px/1.05 var(--f-text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.hat { width: 40px; height: 25px; flex: none; }
.hat .s { fill: var(--straw); } .hat .d { fill: var(--straw-deep); } .hat .l { fill: var(--straw-light); fill-opacity: .55; }
.hat .b { fill: var(--band); } .hat .o { fill: none; stroke: var(--hat-line); stroke-width: 1.2; }
.brand-n span { display: block; }
.top-act { grid-area: act; display: flex; align-items: center; gap: 8px; }
.nav { grid-area: nav; display: flex; align-items: center; gap: 18px; padding-top: 8px; }
.nav a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 800; }
.nav a:hover { color: var(--text); text-decoration: underline; }
.theme { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 8px; border-radius: 18px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); font: 800 13px/1 var(--f-text); cursor: pointer; }
.theme:hover { border-color: var(--text); }
.ti { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: none; }
.ti .fill { fill: currentColor; stroke: none; }
.ti-dark { fill: currentColor; stroke: none; }
.theme[data-mode="auto"] .ti-auto, .theme:not([data-mode]) .ti-auto, .theme[data-mode="light"] .ti-light, .theme[data-mode="dark"] .ti-dark { display: block; }
.theme-l { display: none; }
@media (min-width: 560px) {
  .brand-n span { display: inline; }
  .brand { font-size: 17px; }
}
@media (min-width: 760px) {
  .top-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav act"; padding-top: 14px; padding-bottom: 8px; column-gap: 20px; }
  .nav { justify-content: flex-end; padding-top: 0; }
  .theme-l { display: inline; }
  .btn-sm { height: 38px; font-size: 15px; }
}

main { padding-top: 10px; padding-bottom: 36px; }
section { margin-bottom: 8px; }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--text2); margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 4px; font-weight: 600; }
.crumbs a { color: var(--text2); }
.crumbs .sep { opacity: .7; }

/* intro + search */
.intro { padding: 10px 0 4px; }
.nw { white-space: nowrap; }
@media (min-width: 900px) {
  .intro-home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "h h" "hero side";
    column-gap: 36px; align-items: center; }
  .intro-home h1 { grid-area: h; }
  .intro-home .app-hero { grid-area: hero; margin-bottom: 8px; }
  .intro-home .side { grid-area: side; }
}
.lede { color: var(--text); max-width: 68ch; }
.note { color: var(--text2); font-size: 14px; margin: 0 0 14px; }
.stamp { color: var(--text2); font-size: 13px; }
.sub { display: block; color: var(--text2); font-size: 12.5px; line-height: 1.35; font-weight: 600; }
.search { position: relative; margin: 14px 0 6px; max-width: 640px; }
.search input { width: 100%; height: 52px; padding: 0 16px; font: 600 16px var(--f-text); color: var(--text); background: var(--slip);
  border: 2px solid var(--line-strong); border-radius: 12px; -webkit-appearance: none; appearance: none; }
.search input:focus { border-color: var(--straw); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.search input::placeholder { color: var(--text2); opacity: 1; }
.results { list-style: none; margin: 6px 0 0; padding: 0; background: var(--slip); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 20px var(--p-shadow); }
.results:empty { display: none; }
.results li + li { border-top: 1px solid var(--line); }
.results a, .results .none { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--text); text-decoration: none; }
.results a:hover, .results a.on { background: var(--slip-2); }
.results .r-name { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.results .r-price { font-weight: 800; white-space: nowrap; text-align: right; color: var(--money); }
.results .none { color: var(--text2); }

/* section heads, "Most Wanted" with its meta on the right like the app */
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 16px; margin-top: 2.2rem; }
.sec-h h2 { margin-top: 0; margin-bottom: .35rem; }
.sec-h .meta { font-size: 13px; font-weight: 600; color: var(--text2); }
.sec-h .note { flex-basis: 100%; }
.more { font-size: 14px; font-weight: 800; }

/* ----------------------------------------------------------- posters -- */
/* .pw carries the pin and the paper's shadow (a drop-shadow, the clip-path
   of the torn edge would cut a box-shadow off). The app tilts its posters a
   degree or so, here they hang straight: thirty rotated layers of 300KB card
   scans stalled Chrome's rasteriser in testing. */
.pw { position: relative; display: block; color: var(--p-ink); text-decoration: none; filter: drop-shadow(0 7px 8px var(--p-shadow));
  transition: transform .15s ease; }
a.pw:hover { text-decoration: none; transform: translateY(-3px); }
.pin { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, var(--pin-hi) 0 18%, var(--pin) 45%, var(--pin-lo) 100%); box-shadow: 0 3px 3px var(--pin-shadow); }
.pin.l { left: 30px; } .pin.r { left: auto; right: 23px; }
.poster { display: block; position: relative; background: var(--paper-avg) var(--paper) center / cover; color: var(--p-ink); }
.poster a { color: var(--p-ink); }
.frame { position: relative; display: block; padding: 3px; border: 1.5px solid var(--p-ink); background: var(--frame-wash); }
.frame img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 2px; }
.rule { display: block; height: 5px; border-top: 2px solid var(--p-ink); border-bottom: 1px solid var(--p-ink); opacity: .85; }

/* Most Wanted, the app's MiniWantedPoster. Sizes follow the poster width (cqi). */
.mw { list-style: none; padding: 10px 2px 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
@media (min-width: 640px) { .mw { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mw { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 20px; } }
.mw .poster { container-type: inline-size; padding: 9px 8px 11px; text-align: center; }
.mw .wanted { display: block; font: 400 17cqi/.92 var(--f-disp); letter-spacing: .04em; }
.mw .frame { width: 73%; margin: 6px auto 0; }
.mw .no { position: absolute; top: -2px; left: -2px; background: var(--p-ink); color: var(--p-badge); padding: 3px 5px 2px;
  font: 900 min(8.9cqi, 13px)/1 var(--f-text); letter-spacing: .04em; }
.mw .bounty { display: block; margin-top: 7px; font: 400 17cqi/1 var(--f-disp); letter-spacing: .01em; white-space: nowrap; }
.mw .bounty.l2 { font-size: 14cqi; } .mw .bounty.l3 { font-size: 11.5cqi; }
.mw .nm { display: block; margin-top: 4px; font: 800 min(9.8cqi, 16px)/1.15 var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw .vr { display: block; margin-top: 2px; font: 600 min(8.9cqi, 14px)/1.2 var(--f-text); color: var(--p-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------- app hero -- */
/* Home, under the H1. A torn slip like the app's "Your Bounty" with two pins. */
.app-hero { margin: 14px 0 18px; max-width: 760px; }
.app-hero .poster { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px 18px 18px 20px; }
.ah-line { font: 400 clamp(1.3rem, 1.1rem + 1.2vw, 1.9rem)/1.12 var(--f-disp); margin: 0 0 12px; letter-spacing: .005em; }
:lang(ja) .ah-line { font-family: var(--f-jp); font-weight: 800; font-size: clamp(1.1rem, 1rem + .8vw, 1.45rem); line-height: 1.4; }
.ah-badge { display: inline-block; margin: -8px 0 -8px -9px; }
.ah-badge img { width: 168px; height: auto; }
.ios-soon { margin: 0; font-size: 13px; font-weight: 800; color: var(--p-ink2); }
.phone { width: 116px; margin: -4px 0 -6px; transform: rotate(2.5deg); border: 5px solid var(--phone-rim); border-radius: 18px; overflow: hidden;
  background: var(--phone-rim); box-shadow: 0 8px 16px var(--p-shadow); }
.phone img { width: 100%; aspect-ratio: 400 / 548; }
@media (min-width: 640px) {
  .app-hero .poster { padding: 24px 30px 22px 30px; gap: 24px; }
  .phone { width: 168px; border-width: 6px; border-radius: 24px; }
  .ah-badge img { width: 190px; }
}

/* ---------------------------------------------------------- tables -- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--slip); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; font-size: 15px; box-shadow: 0 4px 12px var(--p-shadow); }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); font-weight: 900; background: var(--slip-2); }
.tbl td { overflow-wrap: anywhere; }
.tbl td a { font-weight: 800; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .strong { font-weight: 800; color: var(--money); }
.tbl td.num .sub { text-align: right; }
.tbl tbody tr:hover { background: var(--slip-2); }
.tbl.mini { box-shadow: none; font-size: 14px; margin-top: 10px; }
.tbl.mini th, .tbl.mini td { padding: 6px 8px; }
.tbl.mini tbody th { font-weight: 800; }
.set-cards .rk { width: 2.6em; color: var(--text2); font-size: 13px; white-space: nowrap; overflow-wrap: normal; padding-right: 4px; }
.set-cards .th { width: 52px; padding-right: 0; }
.set-cards .th img { width: 44px; border-radius: 4px; }
.set-cards .rar { width: 3.5em; font-size: 13px; color: var(--text2); }
@media (max-width: 420px) {
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 8px 7px; }
  .set-cards .rar { display: none; }
  .set-cards .th { width: 42px; }
  .set-cards .th img { width: 36px; }
  .prints-tbl .hi { display: none; }
}
.yyt { display: block; font-size: 12px; font-weight: 800; white-space: nowrap; }

/* stats (set pages) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.stat { background: var(--slip); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.stat .k { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); font-weight: 900; overflow-wrap: anywhere; }
.stat .v { display: block; font: 400 clamp(1.4rem, 1.15rem + 1.2vw, 2rem)/1.15 var(--f-disp); color: var(--text); }
.stat .v.sm { font-size: 1.2rem; }
.facts-line { color: var(--text2); font-size: 14px; margin-top: -2px; }
.facts-line a { color: var(--text); }

/* ------------------------------------------------- card page poster -- */
/* The main price block is a paper poster with pins: the card framed like a
   mugshot, the prices in Abril, the app line along the bottom. */
.card-hero { margin: 18px 0 14px; max-width: 860px; }
.card-hero .poster { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 14px 16px; padding: 22px 16px 16px; align-items: start; }
.card-hero .frame { padding: 4px; border-width: 2px; }
.ch-k { margin: 2px 0 6px; font: 900 11.5px/1.1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--p-ink); }
.ch-stats { margin: 0; }
.ch-stats div { padding: 6px 0 7px; }
.ch-stats div + div { border-top: 1px solid var(--p-rule); }
.ch-stats dt { font-size: 12.5px; font-weight: 800; color: var(--p-ink2); line-height: 1.25; overflow-wrap: anywhere; }
.ch-stats dd { margin: 2px 0 0; font: 400 clamp(1.55rem, 1.25rem + 1.6vw, 2.5rem)/1.05 var(--f-disp); color: var(--p-ink); overflow-wrap: anywhere; }
.ch-stats dd.sm { font: 900 1.25rem/1.15 var(--f-text); }
.ch-when { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--p-ink2); }
.ch-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: 2px solid var(--p-ink); }
.ch-cta p { flex: 1 1 210px; margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.35; color: var(--p-ink); }
.ch-cta .btn { flex: none; }
@media (max-width: 380px) { .ch-cta .btn { width: 100%; } }
@media (min-width: 760px) {
  .card-hero .poster { grid-template-columns: 290px minmax(0, 1fr); gap: 18px 28px; padding: 30px 30px 22px; }
  .ch-k { font-size: 12.5px; }
  .ch-stats dt { font-size: 13.5px; }
}

/* prints, plain slips */
.prints { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .prints { grid-template-columns: 1fr 1fr; } }
.print { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; background: var(--slip); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: 0 4px 12px var(--p-shadow); scroll-margin-top: 12px; }
.print:target { border-color: var(--straw); box-shadow: 0 0 0 3px var(--straw); }
.print-img img { border-radius: 7px; background: var(--slip-2); }
.print h3 { margin: 0 0 2px; overflow-wrap: anywhere; }
.print .big { font: 400 1.9rem/1.1 var(--f-disp); color: var(--money); margin: 8px 0 0; }
:lang(ja) .print .big { font-family: var(--f-disp); }
.print .k { color: var(--text2); font-size: 12.5px; margin: 2px 0 0; }
.print .chart, .print .tbl.mini, .print .tracking { grid-column: 1 / -1; }
.print .tbl.mini { margin-top: 0; }
.tag { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 900; letter-spacing: .04em; padding: 2px 7px; border-radius: 9px; }
.tag.prize { color: var(--down); border: 1.5px solid var(--down); }

/* chart */
.chart { margin: 4px 0 0; }
.chart-hl { font-size: 12.5px; color: var(--text2); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.chart svg { width: 100%; height: 110px; display: block; background: var(--slip-2); border-radius: 8px; }
.ch-line { fill: none; stroke: var(--chart); stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ch-area { fill: var(--chart-fill); stroke: none; }
.ch-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-top: 3px; }
.chart figcaption { font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.tracking { font-size: 12.5px; color: var(--text2); margin: 2px 0 0; }
.up { color: var(--up); font-weight: 800; }
.down { color: var(--down); font-weight: 800; }
.flat { color: var(--text2); font-weight: 800; }

/* link lists */
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; background: var(--slip);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px var(--p-shadow); }
@media (min-width: 760px) { .links { grid-template-columns: 1fr 1fr; } }
.links li { padding: 9px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.links a { font-weight: 800; overflow-wrap: anywhere; }
.set-tops { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .set-tops { grid-template-columns: repeat(3, minmax(0, 1fr)); } .set-tops .links { grid-template-columns: 1fr; } }
.set-top h3 { margin-bottom: 0; }

/* prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6rem; }

/* footer */
.foot { border-top: 1px solid var(--line-strong); padding: 20px 0 28px; color: var(--text2); font-size: 13px; }
.foot a { color: var(--text2); }
.foot-links { font-weight: 800; }
.disclaimer { max-width: 80ch; }

/* ------------------------------------------------- floating app bar -- */
/* Shows once the reader scrolls 300px, closes for 7 days, never on iOS.
   Mobile: a bar along the bottom, desktop: a small pill bottom right. */
.float { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  min-height: 60px; max-height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
  background: var(--float-bg); color: var(--float-fg); border-top: 1px solid var(--line); box-shadow: var(--float-shadow);
  transform: translateY(110%); transition: transform .22s ease; }
.float[hidden] { display: none; }
.float.on { transform: none; }
.float img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.float-t { flex: 1; margin: 0; font-size: 14px; font-weight: 800; line-height: 1.2; min-width: 0; }
.float .btn { flex: none; }
.float-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 20px; background: transparent;
  color: var(--float-fg); cursor: pointer; }
.float-x:hover { background: var(--line); }
.float-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
body.float-on { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) {
  .float { left: auto; right: 20px; bottom: 20px; max-width: 420px; min-height: 0; padding: 7px 6px 7px 8px; gap: 10px;
    border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px var(--p-shadow); transform: translateY(140%); }
  .float img { width: 36px; height: 36px; border-radius: 18px; }
  .float-t { font-size: 13.5px; white-space: nowrap; }
  .float-x { width: 34px; height: 34px; }
  body.float-on { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .pw, .btn { transition: none; }
}

/* --------------------------------------------------- torn paper edges -- */
.torn-a { clip-path: polygon(0.0% 1.0%,5.6% 1.2%,11.1% 2.0%,16.7% 1.0%,22.2% 1.1%,27.8% 1.3%,33.3% 0.4%,38.9% 1.1%,44.4% 1.4%,50.0% 1.7%,55.6% 0.2%,61.1% 0.7%,66.7% 0.2%,72.2% 1.8%,77.8% 1.5%,83.3% 0.1%,88.9% 2.2%,94.4% 2.1%,99.0% 0.0%,99.1% 5.6%,99.8% 11.1%,100.0% 16.7%,99.2% 22.2%,99.9% 27.8%,99.7% 33.3%,99.6% 38.9%,100.0% 44.4%,99.3% 50.0%,99.3% 55.6%,98.7% 61.1%,99.2% 66.7%,99.0% 72.2%,99.2% 77.8%,99.0% 83.3%,99.3% 88.9%,99.6% 94.4%,100.0% 97.8%,94.4% 97.8%,88.9% 98.2%,83.3% 98.4%,77.8% 99.3%,72.2% 99.5%,66.7% 99.4%,61.1% 99.8%,55.6% 98.3%,50.0% 99.1%,44.4% 98.1%,38.9% 99.1%,33.3% 97.9%,27.8% 98.1%,22.2% 100.0%,16.7% 99.5%,11.1% 98.0%,5.6% 99.0%,1.5% 100.0%,0.6% 94.4%,0.1% 88.9%,1.0% 83.3%,1.2% 77.8%,0.4% 72.2%,0.1% 66.7%,0.5% 61.1%,1.5% 55.6%,1.2% 50.0%,0.2% 44.4%,0.4% 38.9%,0.2% 33.3%,0.1% 27.8%,1.2% 22.2%,0.3% 16.7%,0.9% 11.1%,0.7% 5.6%); }
.torn-b { clip-path: polygon(0.0% 2.0%,5.6% 2.1%,11.1% 2.0%,16.7% 0.2%,22.2% 1.3%,27.8% 0.9%,33.3% 1.2%,38.9% 0.3%,44.4% 0.4%,50.0% 1.0%,55.6% 0.5%,61.1% 1.0%,66.7% 0.1%,72.2% 0.2%,77.8% 1.6%,83.3% 0.9%,88.9% 1.1%,94.4% 1.6%,99.4% 0.0%,99.9% 5.6%,98.8% 11.1%,99.1% 16.7%,99.0% 22.2%,99.0% 27.8%,98.5% 33.3%,99.4% 38.9%,98.8% 44.4%,99.4% 50.0%,99.1% 55.6%,99.0% 61.1%,99.5% 66.7%,99.9% 72.2%,99.3% 77.8%,98.9% 83.3%,99.1% 88.9%,99.3% 94.4%,100.0% 98.6%,94.4% 99.6%,88.9% 99.6%,83.3% 99.3%,77.8% 98.2%,72.2% 99.6%,66.7% 99.7%,61.1% 99.8%,55.6% 99.9%,50.0% 99.4%,44.4% 98.7%,38.9% 98.2%,33.3% 99.3%,27.8% 99.2%,22.2% 99.4%,16.7% 99.3%,11.1% 98.3%,5.6% 98.8%,0.4% 100.0%,0.2% 94.4%,1.2% 88.9%,1.1% 83.3%,1.3% 77.8%,0.4% 72.2%,0.8% 66.7%,1.4% 61.1%,0.9% 55.6%,1.5% 50.0%,0.3% 44.4%,1.5% 38.9%,0.1% 33.3%,0.6% 27.8%,0.0% 22.2%,1.2% 16.7%,1.1% 11.1%,1.5% 5.6%); }
.torn-c { clip-path: polygon(0.0% 1.5%,5.6% 0.2%,11.1% 1.4%,16.7% 1.9%,22.2% 1.8%,27.8% 1.1%,33.3% 1.4%,38.9% 0.8%,44.4% 1.2%,50.0% 0.2%,55.6% 1.5%,61.1% 1.3%,66.7% 0.6%,72.2% 0.8%,77.8% 1.6%,83.3% 1.0%,88.9% 2.1%,94.4% 2.1%,98.7% 0.0%,99.9% 5.6%,99.9% 11.1%,99.6% 16.7%,99.4% 22.2%,98.9% 27.8%,98.7% 33.3%,99.1% 38.9%,99.0% 44.4%,99.1% 50.0%,99.9% 55.6%,99.2% 61.1%,99.7% 66.7%,99.4% 72.2%,100.0% 77.8%,99.0% 83.3%,98.6% 88.9%,99.9% 94.4%,100.0% 98.7%,94.4% 99.9%,88.9% 99.2%,83.3% 99.6%,77.8% 98.1%,72.2% 98.4%,66.7% 98.0%,61.1% 99.5%,55.6% 98.4%,50.0% 98.5%,44.4% 98.9%,38.9% 98.0%,33.3% 98.6%,27.8% 99.4%,22.2% 98.4%,16.7% 98.9%,11.1% 99.5%,5.6% 98.6%,0.1% 100.0%,0.7% 94.4%,0.9% 88.9%,0.0% 83.3%,1.0% 77.8%,0.1% 72.2%,1.0% 66.7%,0.5% 61.1%,0.0% 55.6%,1.5% 50.0%,0.1% 44.4%,0.2% 38.9%,0.8% 33.3%,0.4% 27.8%,0.8% 22.2%,0.7% 16.7%,0.9% 11.1%,0.8% 5.6%); }
.torn-d { clip-path: polygon(0.0% 0.8%,5.6% 0.5%,11.1% 0.4%,16.7% 2.0%,22.2% 1.3%,27.8% 1.5%,33.3% 1.2%,38.9% 0.8%,44.4% 1.6%,50.0% 1.3%,55.6% 1.7%,61.1% 1.5%,66.7% 1.8%,72.2% 1.0%,77.8% 0.3%,83.3% 0.3%,88.9% 1.6%,94.4% 0.4%,99.0% 0.0%,99.0% 5.6%,99.9% 11.1%,98.8% 16.7%,99.9% 22.2%,98.7% 27.8%,98.7% 33.3%,99.7% 38.9%,98.9% 44.4%,98.9% 50.0%,99.8% 55.6%,99.0% 61.1%,99.8% 66.7%,98.6% 72.2%,98.9% 77.8%,98.5% 83.3%,99.9% 88.9%,99.5% 94.4%,100.0% 98.6%,94.4% 98.7%,88.9% 99.6%,83.3% 98.0%,77.8% 98.1%,72.2% 99.3%,66.7% 99.7%,61.1% 98.5%,55.6% 99.1%,50.0% 98.5%,44.4% 98.9%,38.9% 99.1%,33.3% 100.0%,27.8% 99.7%,22.2% 99.0%,16.7% 98.4%,11.1% 99.1%,5.6% 98.4%,0.8% 100.0%,1.4% 94.4%,1.0% 88.9%,0.5% 83.3%,0.2% 77.8%,0.1% 72.2%,0.1% 66.7%,1.3% 61.1%,1.3% 55.6%,1.2% 50.0%,0.2% 44.4%,1.0% 38.9%,0.2% 33.3%,1.4% 27.8%,1.0% 22.2%,1.2% 16.7%,0.9% 11.1%,0.6% 5.6%); }
.torn-e { clip-path: polygon(0.0% 1.4%,5.6% 2.0%,11.1% 1.0%,16.7% 1.6%,22.2% 2.1%,27.8% 1.1%,33.3% 1.6%,38.9% 1.6%,44.4% 1.9%,50.0% 0.1%,55.6% 0.4%,61.1% 2.2%,66.7% 1.6%,72.2% 0.6%,77.8% 1.6%,83.3% 0.4%,88.9% 0.8%,94.4% 1.0%,99.6% 0.0%,99.8% 5.6%,99.2% 11.1%,99.0% 16.7%,99.5% 22.2%,99.0% 27.8%,98.5% 33.3%,99.9% 38.9%,99.6% 44.4%,99.9% 50.0%,99.0% 55.6%,99.4% 61.1%,99.3% 66.7%,99.6% 72.2%,98.8% 77.8%,98.8% 83.3%,99.3% 88.9%,98.7% 94.4%,100.0% 99.5%,94.4% 99.2%,88.9% 97.9%,83.3% 99.5%,77.8% 99.7%,72.2% 99.9%,66.7% 98.5%,61.1% 98.2%,55.6% 99.9%,50.0% 98.9%,44.4% 99.1%,38.9% 99.3%,33.3% 99.5%,27.8% 99.2%,22.2% 99.7%,16.7% 98.0%,11.1% 99.6%,5.6% 98.8%,1.0% 100.0%,1.0% 94.4%,0.7% 88.9%,0.8% 83.3%,1.4% 77.8%,0.3% 72.2%,0.3% 66.7%,0.5% 61.1%,1.1% 55.6%,0.7% 50.0%,0.6% 44.4%,0.1% 38.9%,0.2% 33.3%,1.0% 27.8%,0.4% 22.2%,0.7% 16.7%,0.4% 11.1%,0.5% 5.6%); }
.torn-f { clip-path: polygon(0.0% 0.2%,5.6% 1.7%,11.1% 2.1%,16.7% 0.9%,22.2% 2.1%,27.8% 0.9%,33.3% 1.4%,38.9% 2.0%,44.4% 0.4%,50.0% 0.1%,55.6% 0.4%,61.1% 0.1%,66.7% 1.0%,72.2% 0.3%,77.8% 0.2%,83.3% 0.7%,88.9% 0.9%,94.4% 1.9%,100.0% 0.0%,99.0% 5.6%,98.6% 11.1%,98.9% 16.7%,99.8% 22.2%,99.8% 27.8%,99.4% 33.3%,100.0% 38.9%,98.5% 44.4%,98.8% 50.0%,98.8% 55.6%,99.0% 61.1%,98.5% 66.7%,99.4% 72.2%,99.9% 77.8%,99.4% 83.3%,99.3% 88.9%,98.8% 94.4%,100.0% 100.0%,94.4% 98.1%,88.9% 99.2%,83.3% 99.9%,77.8% 98.7%,72.2% 98.1%,66.7% 98.7%,61.1% 98.4%,55.6% 99.0%,50.0% 99.1%,44.4% 99.9%,38.9% 98.1%,33.3% 98.7%,27.8% 99.7%,22.2% 99.6%,16.7% 98.8%,11.1% 98.5%,5.6% 97.9%,0.7% 100.0%,0.8% 94.4%,1.1% 88.9%,0.1% 83.3%,1.5% 77.8%,0.6% 72.2%,1.5% 66.7%,1.3% 61.1%,1.3% 55.6%,0.2% 50.0%,0.7% 44.4%,0.7% 38.9%,0.5% 33.3%,0.7% 27.8%,0.5% 22.2%,0.9% 16.7%,1.1% 11.1%,1.0% 5.6%); }
.torn-l { clip-path: polygon(0.0% 0.0%,3.3% 0.2%,6.7% 0.5%,10.0% 1.0%,13.3% 0.2%,16.7% 0.2%,20.0% 0.3%,23.3% 1.1%,26.7% 0.2%,30.0% 1.0%,33.3% 0.9%,36.7% 0.2%,40.0% 0.7%,43.3% 0.6%,46.7% 0.6%,50.0% 1.4%,53.3% 0.1%,56.7% 0.0%,60.0% 1.3%,63.3% 0.6%,66.7% 0.3%,70.0% 0.5%,73.3% 0.5%,76.7% 1.3%,80.0% 0.3%,83.3% 0.3%,86.7% 0.8%,90.0% 0.8%,93.3% 1.3%,96.7% 1.2%,99.5% 0.0%,99.7% 3.3%,98.8% 6.7%,98.6% 10.0%,100.0% 13.3%,99.0% 16.7%,98.8% 20.0%,99.1% 23.3%,99.7% 26.7%,98.9% 30.0%,99.0% 33.3%,99.7% 36.7%,99.1% 40.0%,99.7% 43.3%,99.9% 46.7%,99.5% 50.0%,99.5% 53.3%,99.4% 56.7%,99.1% 60.0%,98.8% 63.3%,98.7% 66.7%,98.6% 70.0%,98.6% 73.3%,98.9% 76.7%,99.6% 80.0%,99.8% 83.3%,99.1% 86.7%,99.2% 90.0%,99.1% 93.3%,99.9% 96.7%,100.0% 99.7%,96.7% 98.7%,93.3% 99.2%,90.0% 99.0%,86.7% 99.9%,83.3% 99.4%,80.0% 98.7%,76.7% 99.1%,73.3% 98.6%,70.0% 99.7%,66.7% 99.4%,63.3% 98.9%,60.0% 99.4%,56.7% 98.9%,53.3% 99.2%,50.0% 99.8%,46.7% 99.9%,43.3% 98.6%,40.0% 99.8%,36.7% 99.7%,33.3% 99.5%,30.0% 99.0%,26.7% 98.8%,23.3% 99.3%,20.0% 99.3%,16.7% 98.9%,13.3% 99.6%,10.0% 99.5%,6.7% 99.1%,3.3% 99.1%,0.1% 100.0%,0.2% 96.7%,0.2% 93.3%,1.0% 90.0%,1.0% 86.7%,1.4% 83.3%,1.1% 80.0%,0.4% 76.7%,1.1% 73.3%,1.4% 70.0%,0.5% 66.7%,0.0% 63.3%,0.5% 60.0%,0.4% 56.7%,0.2% 53.3%,0.1% 50.0%,0.2% 46.7%,1.2% 43.3%,0.1% 40.0%,0.9% 36.7%,0.3% 33.3%,0.3% 30.0%,1.1% 26.7%,0.4% 23.3%,0.3% 20.0%,0.6% 16.7%,1.0% 13.3%,0.7% 10.0%,1.2% 6.7%,0.6% 3.3%); }
.torn-s { clip-path: polygon(0.0% 0.4%,3.3% 1.8%,6.7% 1.7%,10.0% 1.2%,13.3% 0.6%,16.7% 2.1%,20.0% 2.1%,23.3% 1.3%,26.7% 1.3%,30.0% 0.6%,33.3% 0.0%,36.7% 1.0%,40.0% 1.5%,43.3% 0.2%,46.7% 2.1%,50.0% 0.6%,53.3% 0.6%,56.7% 0.1%,60.0% 2.6%,63.3% 1.9%,66.7% 2.3%,70.0% 1.6%,73.3% 0.1%,76.7% 0.9%,80.0% 1.3%,83.3% 0.3%,86.7% 2.5%,90.0% 1.0%,93.3% 0.4%,96.7% 2.1%,99.9% 0.0%,98.9% 3.3%,99.5% 6.7%,99.4% 10.0%,99.6% 13.3%,99.4% 16.7%,99.8% 20.0%,100.0% 23.3%,99.0% 26.7%,99.7% 30.0%,99.1% 33.3%,99.8% 36.7%,98.9% 40.0%,99.0% 43.3%,99.1% 46.7%,99.1% 50.0%,99.3% 53.3%,99.1% 56.7%,99.9% 60.0%,99.4% 63.3%,99.0% 66.7%,99.8% 70.0%,98.9% 73.3%,99.0% 76.7%,99.5% 80.0%,99.6% 83.3%,99.5% 86.7%,99.5% 90.0%,98.8% 93.3%,99.5% 96.7%,100.0% 99.9%,96.7% 99.8%,93.3% 98.1%,90.0% 97.4%,86.7% 98.7%,83.3% 98.7%,80.0% 98.6%,76.7% 98.1%,73.3% 99.4%,70.0% 98.4%,66.7% 98.6%,63.3% 98.4%,60.0% 99.5%,56.7% 99.6%,53.3% 99.1%,50.0% 97.6%,46.7% 99.1%,43.3% 98.4%,40.0% 99.2%,36.7% 99.7%,33.3% 99.8%,30.0% 97.9%,26.7% 98.0%,23.3% 99.0%,20.0% 98.2%,16.7% 98.2%,13.3% 97.7%,10.0% 97.5%,6.7% 98.9%,3.3% 97.4%,1.1% 100.0%,0.7% 96.7%,1.0% 93.3%,0.6% 90.0%,0.4% 86.7%,0.3% 83.3%,1.0% 80.0%,0.2% 76.7%,0.1% 73.3%,0.9% 70.0%,0.9% 66.7%,0.6% 63.3%,1.0% 60.0%,0.1% 56.7%,0.3% 53.3%,0.3% 50.0%,0.5% 46.7%,0.2% 43.3%,0.1% 40.0%,0.4% 36.7%,1.1% 33.3%,1.2% 30.0%,0.9% 26.7%,0.6% 23.3%,0.3% 20.0%,1.1% 16.7%,0.6% 13.3%,0.9% 10.0%,0.0% 6.7%,0.2% 3.3%); }
