/* ============ $BENJAMIN — cartoon banknote edition ============ */
:root {
  --cream: #f3e9d2;
  --paper: #fbf5e4;
  --bill: #b8ceaa;
  --ink: #141414;
  --navy: #1d2440;
  --green: #1e5b3a;
  --green-dk: #154530;
  --red: #b3262e;
  --gold: #e2b33c;
  --blue: #3a6fd8;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);

  --f-display: "Abril Fatface", Georgia, serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-script: "Pinyon Script", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(120, 90, 40, .07) 1px, transparent 1px);
  background-size: 6px 6px;
  color: var(--navy);
  font: 400 19px/1.5 var(--f-type);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
section { position: relative; }
#play, #prize, #portrait { scroll-margin-top: 70px; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: .005em; }
h2 { font-size: clamp(44px, 7vw, 80px); color: var(--navy); }
.eyebrow { font: 400 16px/1 var(--f-type); color: var(--red); margin: 0 0 14px; }
.eyebrow::before { content: "~ "; }
.eyebrow::after { content: " ~"; }
.eyebrow.light { color: var(--gold); }
.red { color: var(--red); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.sec-sub { font-size: 20px; margin: 16px auto 0; max-width: 620px; color: rgba(243, 233, 210, .85); }
.sec-sub.dark { color: var(--navy); }
.sec-sub b, .lede b { color: var(--gold); font-weight: 400; }
.sec-sub.dark b { color: var(--green); }

/* ---------- buttons (the original press-down style) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px;
  font: 400 19px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--paper);
  border: var(--line); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--red);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--red); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--red); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 15px; box-shadow: 3px 3px 0 var(--red); }
.btn.foil { background: var(--gold); }
.btn.green { background: var(--green); color: var(--cream); }
.btn.ghost { background: var(--paper); }
.btn.light { box-shadow: 4px 4px 0 var(--ink); }
.btn.light:hover { box-shadow: 5px 6px 0 var(--ink); }
.btn.sm.light { box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; text-decoration: none; background: var(--paper); border: var(--line); border-radius: 4px; box-shadow: 3px 3px 0 var(--red); font-size: 18px; color: var(--ink); }
.icon-btn:hover { transform: translate(-1px, -2px); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 66px; padding: 0 var(--gutter);
  background: var(--cream);
  border-bottom: 4px double var(--red);
}
.brand { font: 400 26px/1 var(--f-display); color: var(--red); text-decoration: none; }
.bar-nav { display: flex; gap: 26px; }
.bar-nav a { font: 400 16px var(--f-type); text-decoration: none; }
.bar-nav a:hover { color: var(--red); text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 5px; }
.bar-act { display: flex; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero {
  background: var(--green);
  color: var(--cream);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 100px);
  overflow: hidden;
  display: grid; justify-items: center; gap: clamp(34px, 5vw, 56px);
  border-bottom: var(--line);
}
.hero-lines {
  position: absolute; inset: -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(243,233,210,.07) 0deg 7deg, transparent 7deg 20deg);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* the banknote, drawn like Benjamin */
.note-stage { width: min(960px, 100%); perspective: 1400px; position: relative; z-index: 1; }
.note { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2,.7,.2,1); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }
.note-face {
  position: relative;
  aspect-ratio: 1000 / 425;
  background: var(--bill);
  border-radius: 12px;
  color: #2f4a2a;
  box-shadow: 9px 9px 0 var(--ink);
  container-type: inline-size;
}
.note-face::after { content: ""; position: absolute; inset: 0; border: 7px solid var(--ink); border-radius: 12px; filter: url(#wob); pointer-events: none; z-index: 4; }
.note-engrave { position: absolute; inset: 0; width: 100%; height: 100%; }
.note-top { position: absolute; left: 0; right: 0; top: 6%; text-align: center; font: 400 3.2cqw/1 var(--f-display); letter-spacing: .1em; color: #2f4a2a; z-index: 3; }
.note-serial { position: absolute; font: 400 2.2cqw/1 var(--f-type); color: var(--red); z-index: 2; }
.note-serial.tl { left: 5%; top: 23%; }
.note-serial.br { left: 65.5%; bottom: 9%; }
.note-num { position: absolute; font: 400 6.6cqw/1 var(--f-type); color: #4d6b44; z-index: 2; }
.note-num.tl { left: 4.5%; top: 6%; }
.note-num.tr { right: 4.5%; top: 6%; }
.note-num.bl { left: 4.5%; bottom: 6%; }
.note-num.br2 { right: 4.5%; bottom: 6%; }
.note-oval {
  position: absolute; left: 40%; top: 50%;
  width: 34%; aspect-ratio: 1.12;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background: #efe2b8;
  display: grid; place-items: center;
  z-index: 2;
}
.note-oval::after { content: ""; position: absolute; inset: 0; border: .7cqw solid #6f8c63; border-radius: 50%; filter: url(#wob); }
.note-oval img { width: 86%; height: auto; transform: translateY(-3%); animation: sway 3.2s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes sway { 0%,100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.note-seal {
  position: absolute; left: 8%; top: 42%; z-index: 2;
  width: 10.5%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--red); color: var(--cream);
  font: 400 1.5cqw/1.1 var(--f-type);
  border: .45cqw solid var(--ink);
  transform: rotate(-12deg);
  box-shadow: .4cqw .4cqw 0 var(--ink);
}
.note-word { position: absolute; left: 65.5%; top: 30%; font: 400 3.4cqw/1 var(--f-display); letter-spacing: .06em; color: #2f4a2a; z-index: 2; }
.note-sign { position: absolute; left: 65.5%; top: 45%; display: grid; justify-items: start; z-index: 2; }
.sig { font: 400 3.4cqw/1.1 var(--f-script); color: var(--ink); }
.sig-line { border-top: .25cqw solid var(--ink); padding-top: .6cqw; margin-top: .3cqw; font: 400 1.35cqw/1 var(--f-type); }
.note-strip {
  position: absolute; top: 0; bottom: 0; left: 61%; width: 2.4%; z-index: 1;
  background: linear-gradient(180deg, #3a6fd8, #7fb0ff 25%, #2f5fbf 50%, #8fc0ff 75%, #3a6fd8);
  background-size: 100% 200%;
  border-left: .3cqw solid var(--ink); border-right: .3cqw solid var(--ink);
  animation: strip 3.5s linear infinite;
}
@keyframes strip { to { background-position: 0 200%; } }
/* shine: follows the pointer, plus a sweep every few seconds */
.note-sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 12px; overflow: hidden;
  background: radial-gradient(38% 65% at var(--mx) var(--my), rgba(255,255,255,.32), transparent 70%);
}
.note-sheen::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 28%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28) 40%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.28) 60%, transparent);
  transform: skewX(-18deg);
  animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -40%; } 85%, 100% { left: 120%; } }

.hero-copy { text-align: center; max-width: 820px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(42px, 7vw, 86px); color: var(--cream); text-shadow: 5px 5px 0 var(--ink); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: rgba(243,233,210,.9); margin: 22px auto 0; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 30px; }
.hero .btn { box-shadow: 4px 4px 0 var(--ink); }
.hero .btn:hover { box-shadow: 5px 6px 0 var(--ink); }
.facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts li { font-size: 15px; padding: 6px 12px; background: var(--green-dk); border: 2px solid var(--ink); border-radius: 999px; color: rgba(243,233,210,.85); }
.facts b { color: var(--gold); font-weight: 400; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; white-space: nowrap; background: var(--red); color: var(--cream); border-bottom: var(--line); font: 400 16px var(--f-type); }
.ticker-in { display: inline-block; padding: 10px 0; animation: tick 50s linear infinite; }
.ticker-in span { margin: 0 22px; }
.ticker-in span::before { content: "✦"; margin-right: 22px; color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- decree ---------- */
.decree { max-width: 860px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter); text-align: center; }
.decree blockquote {
  position: relative; margin: 0; padding: clamp(24px, 4vw, 40px);
  background: var(--paper); border-radius: 6px;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 9px var(--gold), var(--shadow);
  font-size: clamp(20px, 2.4vw, 25px); line-height: 1.45;
}
.decree blockquote::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--red); border-radius: 6px; filter: url(#wob); pointer-events: none; }
.decree blockquote p { margin: 0 0 .5em; }
.decree blockquote i { color: var(--green); font-style: normal; }
.decree .kicker { font: 400 1.3em/1.2 var(--f-display); margin: .8em 0 0; color: var(--navy); }
.decree .kicker em { font-style: normal; color: var(--green); }
.ca-row { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ca-chip {
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 10px 16px; background: var(--paper); border: var(--line); border-radius: 4px; box-shadow: var(--shadow-sm);
  font: 400 15px var(--f-type); color: var(--navy); cursor: pointer;
}
.ca-chip:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.ca-k { color: var(--red); }
.ca-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { padding: 2px 8px; background: var(--gold); border: 2px solid var(--ink); border-radius: 3px; }
.ca-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- game table ---------- */
.table-sec {
  background: var(--green);
  color: var(--cream);
  padding: clamp(70px, 9vw, 110px) 0 clamp(70px, 9vw, 100px);
  border-top: var(--line); border-bottom: var(--line);
  overflow: hidden;
}
.table-sec::before {
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(243,233,210,.05) 0deg 7deg, transparent 7deg 20deg);
}
.table-sec h2 { color: var(--cream); text-shadow: 5px 5px 0 var(--ink); }
.game { position: relative; display: grid; justify-items: center; gap: 22px; margin-top: 40px; padding: 0 var(--gutter); }
.board {
  --gap: 4px;
  position: relative;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: var(--gap);
  width: min(100%, 780px, calc(100vh - 230px)); min-width: min(100%, 520px);
  aspect-ratio: 1;
  padding: var(--gap);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 0 0 5px var(--red), 0 0 0 8px var(--gold), 10px 10px 0 8px var(--ink);
}
.sq {
  position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  padding: 6px 3px 5px;
  background: var(--paper);
  border-radius: 3px;
  color: var(--navy);
  transition: transform .12s ease, background .12s;
}
.sq .nm { font: 400 clamp(8px, 1.3vw, 13.5px)/1.05 var(--f-display); }
.sq .fx { font: 700 clamp(10px, 1.55vw, 16px)/1 var(--f-type); }
.sq.up .fx { color: var(--green); }
.sq.down .fx { color: var(--red); }
.sq.flat .fx { color: #7a6a4a; }
.sq.corner { background: #efdfb2; }
.sq.corner .nm { font-size: clamp(9px, 1.6vw, 16px); color: var(--red); }
.sq.corner.up .nm { color: var(--green); }
.sq.target { cursor: pointer; background: #fff2c2; box-shadow: inset 0 0 0 3px var(--gold); z-index: 2; }
.sq.target.hot { background: var(--gold); transform: scale(1.06); box-shadow: inset 0 0 0 3px var(--ink), 3px 3px 0 var(--ink); }
.sq.hit { animation: hit .6s ease; }
@keyframes hit { 0% { background: #ffe9a8; } }
.sq .bubble {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, 0);
  font: 400 clamp(16px, 2.8vw, 30px)/1 var(--f-display);
  pointer-events: none; z-index: 5;
  animation: rise 1.2s ease-out forwards;
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
}
.sq .bubble.up { color: #6fd39a; }
.sq .bubble.down { color: #ff6b72; }
@keyframes rise { from { opacity: 1; transform: translate(-50%, 0) scale(.9); } 30% { transform: translate(-50%, -14px) scale(1.15); } to { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.token { position: absolute; left: 50%; top: 54%; width: 82%; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.token.hop { animation: hop .2s ease-out; }
@keyframes hop { 40% { transform: translate(-50%, -78%) rotate(-6deg); } }

.center {
  grid-column: 2 / 7; grid-row: 2 / 7;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(4px, .8vw, 9px);
  padding: 14px;
  border-radius: 3px;
  background-color: var(--paper);
  background-image: repeating-conic-gradient(from 0deg at 50% 40%, rgba(201,162,39,.13) 0deg 8deg, transparent 8deg 22deg);
  color: var(--navy);
  overflow: hidden;
}
.c-eyebrow { margin: 0; font: 400 clamp(11px, 1.4vw, 16px) var(--f-type); }
.worth {
  font: 400 clamp(36px, 7.4vw, 80px)/1 var(--f-display);
  color: var(--green);
  text-shadow: 3px 3px 0 var(--ink);
  font-variant-numeric: tabular-nums;
}
.worth.up { animation: pop .5s ease; }
.worth.down { animation: shake .4s ease; color: var(--red); }
@keyframes pop { 40% { transform: scale(1.14) rotate(-2deg); } }
@keyframes shake { 20% { transform: translateX(-6px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-3px); } }
.progress { position: relative; width: min(70%, 300px); height: 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fffaf0; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.c-turns { margin: 0; font: 400 clamp(12px, 1.6vw, 17px) var(--f-type); }
.log { margin: 0; min-height: 2.7em; max-width: 92%; font-size: clamp(12px, 1.7vw, 18px); line-height: 1.35; }
.log b { font: 400 1.05em var(--f-display); color: var(--navy); }
.log .g { color: var(--green); }
.mode { margin: 0; font-size: clamp(10px, 1.2vw, 13px); opacity: .7; }

/* 3D dice, drawn with ink */
.dice { display: flex; gap: clamp(10px, 2vw, 22px); margin: clamp(4px, 1vw, 10px) 0; perspective: 600px; }
.die { width: clamp(30px, 5.4vw, 56px); aspect-ratio: 1; position: relative; transition: opacity .3s, translate .2s; }
.die.idle { opacity: .35; }
.die.used { translate: 0 -7px; }
.die.used .face { background: #fff2c2; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.75,.25,1); }
.face {
  position: absolute; inset: 0;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12%;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 18%;
  backface-visibility: hidden;
}
.face i { width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); place-self: center; }
.face.f1 i { background: var(--red); width: 88%; }

/* move choices */
.controls { width: min(100%, 780px, calc(100vh - 230px)); min-width: min(100%, 560px); text-align: center; }
.pick-label { margin: 0 0 12px; font: 400 17px var(--f-type); color: var(--gold); min-height: 1.3em; }
.opts { display: flex; justify-content: center; gap: 14px; min-height: 86px; }
.opt {
  flex: 0 1 calc((100% - 28px) / 3);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 10px; text-align: left;
  padding: 12px 14px 12px 22px;
  font: inherit; color: var(--navy);
  background: var(--paper);
  border: var(--line); border-radius: 5px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .08s, box-shadow .08s;
}
.opt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-right: 3px solid var(--ink); }
.opt.up::before { background: var(--green); }
.opt.down::before { background: var(--red); }
.opt.flat::before { background: #c9b98f; }
.opt:hover, .opt:focus-visible { transform: translate(-1px, -3px); box-shadow: 5px 7px 0 var(--ink); background: #fff2c2; outline: none; }
.opt:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.opt:disabled { opacity: .5; cursor: default; transform: none; }
.o-top { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 14px; opacity: .8; }
.o-name { font: 400 19px/1.1 var(--f-display); min-width: 0; }
.o-fx { font: 700 19px/1 var(--f-type); text-align: right; white-space: nowrap; }
.opt.up .o-fx { color: var(--green); }
.opt.down .o-fx { color: var(--red); }
.opt.flat .o-fx { color: #7a6a4a; }
.o-fx small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--navy); opacity: .75; white-space: nowrap; }
.ctrl-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.keys { font-size: 14px; color: rgba(243,233,210,.7); }
kbd { font: 400 13px var(--f-type); padding: 0 6px; margin: 0 2px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 1px 2px 0 var(--ink); }

/* seat */
.seat { position: relative; max-width: 780px; margin: 52px auto 0; padding: 0 var(--gutter); display: grid; gap: 20px; }
.seat-in { position: relative; padding: 24px; background: var(--paper); color: var(--navy); border-radius: 6px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 9px var(--gold), 6px 6px 0 var(--ink); }
.seat-in::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--red); border-radius: 6px; filter: url(#wob); pointer-events: none; }
.seat-in .eyebrow { color: var(--red); text-align: center; }
.seat-row { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.seat-row input {
  flex: 1 1 180px; min-width: 0; height: 48px; padding: 0 12px;
  font: 400 17px var(--f-type); color: var(--navy);
  background: #fffaf0; border: var(--line); border-radius: 3px;
}
.seat-row input:nth-child(2) { flex: 2 1 280px; }
.seat-row input::placeholder { color: #9a8f74; }
.seat-row input:focus { outline: none; box-shadow: 0 0 0 3px var(--gold); }
input.need { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(179,38,46,.3) !important; }
.fine { margin: 12px 0 0; font-size: 15px; opacity: .85; text-align: center; }
.how { text-align: center; color: rgba(243,233,210,.85); font-size: 17px; }
.how p { margin: 0 0 8px; }
.how b { color: var(--gold); font-weight: 400; }
.best { color: var(--cream) !important; }
.best b { color: var(--gold); font-weight: 400; }

/* ---------- live pot ---------- */
.pot-pill { display: inline-flex; align-items: center; gap: 8px; }
.pot-pill b { color: var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #7fe0a6; border: 2px solid var(--ink); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.pot { position: relative; max-width: 760px; margin: 46px auto 0; padding: 26px 22px 22px; text-align: center; background: var(--gold); border: var(--line); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); }
.pot::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(20,20,20,.5); border-radius: 3px; pointer-events: none; }
.pot-k { margin: 0; font: 400 18px var(--f-type); color: var(--ink); }
.pot-sol { margin: 6px 0 0; font: 400 clamp(54px, 10vw, 96px)/1 var(--f-display); color: var(--cream); text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); }
.pot-sol.bump { animation: pop .6s ease; }
.pot-usd { margin: 8px 0 0; font: 400 24px var(--f-display); color: var(--ink); min-height: 1.2em; }
.pot-w { margin: 12px 0 0; font-size: 14px; color: var(--ink); }
.pot-w a { color: var(--ink); }

/* ---------- prize ---------- */
.prize-sec { padding: clamp(80px, 10vw, 130px) var(--gutter); }
.prize-head { text-align: center; max-width: 820px; margin: 0 auto; }
.pct { margin: 0; font: 400 clamp(110px, 22vw, 230px)/.85 var(--f-display); color: var(--green); text-shadow: 7px 7px 0 var(--ink); }
.prize-head h2 { font-size: clamp(30px, 4.6vw, 52px); margin-top: 14px; color: var(--red); text-shadow: 3px 3px 0 var(--navy); }
.prize-art { width: min(520px, 100%); margin: 26px auto 0; }
.ledger { position: relative; max-width: 760px; margin: 50px auto 0; background: var(--paper); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink); }
.ledger::after { content: ""; position: absolute; inset: 0; border: var(--line); border-radius: 6px; filter: url(#wob); pointer-events: none; }
.ledger-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 22px; background: var(--navy); color: var(--cream); font: 400 16px var(--f-type); border-radius: 6px 6px 0 0; }
.ledger-head b { color: var(--gold); font-weight: 400; }
.ledger-head .live { color: #7fe0a6; }
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font: 400 16px var(--f-display); color: var(--red); padding: 12px 22px 8px; border-bottom: 2px solid var(--ink); }
.lb th:last-child, .lb td:last-child { text-align: right; }
.lb td { padding: 12px 22px; border-bottom: 2px dotted #c9b98f; font-size: 18px; }
.lb tr:last-child td { border-bottom: 0; }
.lb td:first-child { font: 400 22px var(--f-display); color: var(--red); width: 70px; }
.lb .w { font-size: 13px; opacity: .65; margin-left: 6px; }
.lb .t { font: 400 22px var(--f-display); color: var(--green); }
.lb .f { font-size: 13px; opacity: .7; display: block; }
.lb .me td { background: #fff3c4; }
.lb .soon td { opacity: .55; font-style: italic; }
.prev, .pool { margin: 0; padding: 0 22px 16px; font-size: 14px; opacity: .8; word-break: break-all; }
.prev:empty, .pool:empty { display: none; }
.prev { padding-top: 14px; }
.rules { position: relative; max-width: 760px; margin: 22px auto 0; background: var(--paper); border: var(--line); border-radius: 6px; box-shadow: var(--shadow-sm); }
.rules summary { cursor: pointer; padding: 16px 22px; font: 400 21px var(--f-display); list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.rules summary::after { content: "+"; font: 400 30px/1 var(--f-display); color: var(--red); transition: transform .2s; }
.rules[open] summary::after { transform: rotate(45deg); }
.rules summary::-webkit-details-marker { display: none; }
.rules ol { margin: 0; padding: 0 22px 20px 46px; font-size: 17px; }
.rules li { margin: 6px 0; }

/* ---------- portrait maker ---------- */
.portrait-sec { padding: clamp(70px, 9vw, 120px) var(--gutter); background: var(--paper); border-top: var(--line); border-bottom: var(--line); }
.maker { max-width: var(--max); margin: 46px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.preview { border: var(--line); border-radius: 4px; box-shadow: 7px 7px 0 var(--ink); overflow: hidden; transform: rotate(-1.2deg); }
.preview svg { width: 100%; height: auto; }
.ctrl label { display: block; margin: 16px 0 6px; font: 400 18px var(--f-display); color: var(--red); }
.ctrl label:first-child { margin-top: 0; }
.ctrl input[type=text] { width: 100%; height: 48px; padding: 0 12px; font: 400 20px var(--f-type); border: var(--line); border-radius: 3px; background: #fffaf0; color: var(--navy); }
.ctrl input[type=text]:focus { outline: none; box-shadow: 0 0 0 3px var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 16px var(--f-type); padding: 4px 12px; border: 2.5px solid var(--ink); border-radius: 3px; background: #fffaf0; color: var(--navy); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.chip:hover { transform: translate(-1px, -1px); }
.chip.on { background: var(--navy); color: var(--cream); }
.sw { width: 36px; height: 36px; border: 3px solid var(--ink); border-radius: 4px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.sw.on { outline: 3px solid var(--red); outline-offset: 2px; }
.maker-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- decrees ---------- */
.decrees-sec { padding: clamp(70px, 9vw, 120px) 0; }
.comic { max-width: var(--max); margin: 46px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panel { margin: 0; background: var(--paper); border: 4px solid var(--ink); border-radius: 4px; box-shadow: 5px 5px 0 var(--red); overflow: hidden; transition: transform .15s; }
.panel:nth-child(odd) { rotate: -.8deg; }
.panel:nth-child(even) { rotate: .8deg; }
.panel:hover { rotate: 0deg; translate: 0 -4px; }
.panel svg { width: 100%; height: auto; border-bottom: 4px solid var(--ink); }
.panel figcaption { padding: 12px 14px; font-size: 18px; text-align: center; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--navy); color: var(--cream); text-align: center; padding: clamp(80px, 10vw, 130px) var(--gutter) 46px; border-top: var(--line); }
.foot-rosette { display: none; }
.foot-big { position: relative; margin: 0; font: 400 clamp(46px, 8vw, 96px)/1 var(--f-display); color: var(--red); text-shadow: 5px 5px 0 var(--ink); }
.foot-big em { font-style: normal; color: var(--gold); }
.foot-links { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 36px 0 64px; }
.foot .btn { box-shadow: 4px 4px 0 var(--ink); }
.disclaimer { position: relative; max-width: 680px; margin: 0 auto; font-size: 14px; opacity: .65; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(29, 36, 64, .6); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; text-align: center; padding: 28px 22px 24px; background: var(--paper); border: 5px solid var(--red); border-radius: 6px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 9px var(--gold), 8px 8px 0 var(--ink); animation: up .3s cubic-bezier(.2,.7,.2,1); }
@keyframes up { from { transform: translateY(20px) rotate(-1deg); opacity: 0; } }
.modal .eyebrow { color: var(--green); }
.m-big { margin: 0; font: 400 clamp(42px, 9vw, 66px)/1 var(--f-display); color: var(--red); text-shadow: 4px 4px 0 var(--navy); }
.m-sub { margin: 10px 0 18px; font-size: 18px; }
.m-sub b { color: var(--green); font-weight: 400; }
.m-card { width: 100%; height: auto; border: var(--line); border-radius: 4px; box-shadow: 5px 5px 0 var(--ink); background: var(--green); }
.m-enter { margin-top: 20px; }
.m-enter .btn { margin-top: 12px; }
.m-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.x { position: absolute; right: 12px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font: 400 34px/1 var(--f-display); color: var(--navy); cursor: pointer; }

/* ---------- misc ---------- */
.rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%); opacity: 0; padding: 10px 18px; background: var(--navy); color: var(--cream); border: 3px solid var(--gold); border-radius: 4px; font: 400 16px var(--f-type); transition: transform .25s, opacity .25s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .bar-nav { display: none; }
  .maker { grid-template-columns: 1fr; }
  .comic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 44px); text-shadow: 3px 3px 0 var(--ink); }
  .facts li { font-size: 14px; }
  .note-face { box-shadow: 5px 5px 0 var(--ink); }
  .note-face::after { border-width: 4px; }
  .board { --gap: 3px; min-width: 0; width: 100%; box-shadow: 0 0 0 3px var(--red), 0 0 0 5px var(--gold), 6px 6px 0 5px var(--ink); }
  .sq { padding: 4px 1px 3px; }
  .center { padding: 6px; }
  .log { font-size: 11px; min-height: 2.6em; }
  .mode { display: none; }
  .worth { text-shadow: 2px 2px 0 var(--ink); }
  .face { border-width: 2px; }
  .opts { flex-direction: column; min-height: 0; }
  .opt { flex: none; }
  .keys { display: none; }
  .comic { grid-template-columns: 1fr; }
  .lb td, .lb th { padding-left: 14px; padding-right: 14px; }
  .lb .w { display: block; margin: 2px 0 0; }
  .facts { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
