/* ============================================================
   GRAND CASH DEALER — styles
   Underground 90s financial club · editorial · terminal
   ============================================================ */
:root {
  --ink: #121411;
  --char: #181b17;
  --char-2: #20241f;
  --char-3: #2a2f28;
  --paper: #ece3cc;
  --paper-2: #ddd1b2;
  --paper-3: #c9bb98;
  --paper-ink: #1d1f1a;
  --green: #2f8f57;
  --green-hi: #4cc47e;
  --green-deep: #0f2a1c;
  --felt: #17432c;
  --felt-2: #0f3020;
  --gold: #c8a24c;
  --gold-hi: #e2c374;
  --red: #c8412e;
  --red-hi: #e25a44;
  --muted: #9aa092;
  --line: rgba(236, 227, 204, .14);

  --f-head: "Anton", "Impact", "Haettenschweiler", "Arial Narrow", sans-serif;
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--char);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 860px; }

/* textures */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); opacity: .12; mix-blend-mode: overlay;
}
.paper {
  background: var(--paper); color: var(--paper-ink); position: relative; isolation: isolate;
}
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise), radial-gradient(120% 80% at 50% 0%, transparent 60%, rgba(120, 96, 50, .18));
  opacity: .5; mix-blend-mode: multiply;
}
.felt {
  --felt-a: var(--felt); --felt-b: var(--felt-2);
  background: radial-gradient(140% 90% at 50% 0%, var(--felt-a), var(--felt-b) 70%, #08180f);
  position: relative; isolation: isolate;
  transition: background .5s var(--ease);
}
.felt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); opacity: .22; mix-blend-mode: overlay;
}

/* ============ BUTTONS ============ */
.btn {
  --bg: var(--paper); --fg: var(--ink); --bd: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--radius);
  font-family: var(--f-head); font-size: 18px; letter-spacing: .06em; text-decoration: none; line-height: 1;
  cursor: pointer; user-select: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, .55); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .55); }
.btn--primary { --bg: var(--green); --fg: #f4f7ee; --bd: var(--green-hi); }
.btn--primary:hover { --bg: var(--green-hi); --fg: var(--ink); }
.btn--buy { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold-hi); }
.btn--buy:hover { --bg: var(--gold-hi); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 15px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.btn--ghost { --bg: transparent; --fg: var(--paper); --bd: var(--line); box-shadow: none; }
.btn--ghost:hover { --bd: var(--paper); box-shadow: none; transform: none; }
.btn--danger { --bg: var(--red); --fg: #fff6ee; --bd: var(--red-hi); }

/* buy button when no link exists yet */
.btn.is-soon {
  --bg: transparent; --fg: var(--gold-hi); --bd: var(--gold);
  border-style: dashed; box-shadow: none; cursor: not-allowed;
}
.btn.is-soon:hover { transform: none; box-shadow: none; }
.btn.is-soon::after {
  content: "SOON"; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  background: var(--gold); color: var(--ink); padding: 2px 5px; border-radius: 2px;
}

/* stamps */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .14em;
  color: var(--red-hi); border: 2px solid currentColor; padding: 6px 10px; border-radius: 3px;
  transform: rotate(-3deg); text-transform: uppercase; white-space: nowrap;
  background: rgba(200, 65, 46, .06);
  -webkit-mask-image: var(--noise), linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
}
.stamp::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.stamp.is-live { color: var(--green-hi); background: rgba(76, 196, 126, .08); }
.stamp--big { font-size: 15px; padding: 10px 16px; border-width: 3px; }

/* tags */
.tag {
  display: inline-block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 7px; border-radius: 2px; line-height: 1.3; white-space: nowrap;
}
.tag--live { background: var(--green-hi); color: var(--ink); }
.tag--plan { background: transparent; color: var(--gold-hi); border: 1px dashed var(--gold); }
.tag--lock { background: rgba(0, 0, 0, .35); color: var(--paper-2); border: 1px solid var(--line); }

/* ============ TOPBAR ============ */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 17, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 10px var(--gut); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__chip { width: 36px; height: 36px; flex: none; }
.brand__name { white-space: nowrap; font-family: var(--f-head); font-size: 20px; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.brand__name em { font-family: var(--f-serif); font-style: italic; font-weight: 900; text-transform: none; color: var(--gold-hi); margin-left: 6px; letter-spacing: 0; }
.brand__tick { font-size: 11px; font-weight: 700; color: var(--green-hi); border: 1px solid var(--green); padding: 1px 6px; border-radius: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--paper-2); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green-hi); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a:focus-visible { color: var(--paper); }
.nav a:hover::after { transform: scaleX(1); }
.topbar__cta { display: flex; align-items: center; gap: 10px; }
.navtoggle { display: none; width: 42px; height: 38px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 9px 10px; flex-direction: column; justify-content: space-between; }
.navtoggle span { display: block; height: 2px; background: var(--paper); transition: transform .2s, opacity .2s; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.ticker { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: var(--green-deep); font-size: 12px; overflow: hidden; }
.ticker__label { flex: none; background: var(--green); color: var(--ink); font-weight: 700; letter-spacing: .1em; padding: 5px 12px; font-size: 10.5px; white-space: nowrap; display: flex; align-items: center; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__row { display: inline-flex; gap: 34px; padding: 5px 0; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker__row span b { color: var(--paper); font-weight: 500; }
.ticker__row .up { color: var(--green-hi); }
.ticker__row .dn { color: var(--red-hi); }

/* ============ HERO ============ */
.hero { background: radial-gradient(90% 70% at 85% 30%, #1e2a20, var(--char) 65%); overflow: hidden; }
.hero__in { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--gut) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker { font-size: 12px; letter-spacing: .18em; color: var(--gold-hi); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 4px rgba(226, 90, 68, .2); animation: pulse 1.6s infinite; }
.hero__title { font-family: var(--f-head); font-size: clamp(44px, 6.6vw, 92px); line-height: .9; letter-spacing: .005em; text-transform: uppercase; }
.hero__title .line { display: block; }
.hero__title .line--green { color: var(--green-hi); }
.hero__title .line--green .nowrap { color: var(--paper); position: relative; }
.hero__title .line--green .nowrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em; background: var(--red); transform-origin: left; animation: strike 1.2s .6s var(--ease) both; }
.hero__sub { margin-top: 22px; max-width: 560px; font-family: var(--f-serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--paper-2); }
.hero__sub strong { color: var(--paper); font-style: italic; }
.tk { font-family: var(--f-mono); font-weight: 700; color: var(--gold-hi); font-size: .85em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

/* contract address card (receipt) */
.ca {
  margin-top: 30px; max-width: 580px; position: relative;
  background: var(--paper); color: var(--paper-ink); padding: 16px 18px 14px;
  border-radius: 2px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.ca::before, .ca::after { /* perforated edges */
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 5px 0, transparent 4px, var(--paper) 4.5px) repeat-x; background-size: 10px 8px;
}
.ca::before { top: -8px; transform: scaleY(-1); }
.ca::after { bottom: -8px; }
.ca__head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; border-bottom: 1px dashed rgba(29, 31, 26, .35); padding-bottom: 8px; }
.ca__chain { color: var(--green); }
.ca__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ca__addr { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: clamp(13px, 1.4vw, 16px); font-weight: 700; word-break: break-all; line-height: 1.35; padding: 8px 10px; background: rgba(29, 31, 26, .07); border-left: 3px solid var(--green); }
.ca__addr.is-unset { color: #6b6450; }
.ca__status { min-height: 1.4em; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.ca__status.is-ok { color: var(--green); }
.ca__status.is-warn { color: #9b6a12; }
.ca__status.is-err { color: var(--red); }
.ca__note { font-size: 11.5px; color: #5c5847; }
.btn--copy { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); font-size: 15px; min-height: 44px; padding: 0 14px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .25); flex: none; }
.btn--copy:hover { --bg: var(--green); --bd: var(--green); box-shadow: 4px 4px 0 rgba(0, 0, 0, .25); }
.btn--copy.is-ok { --bg: var(--green); --bd: var(--green); }
.btn--copy.is-warn { --bg: #9b6a12; --bd: #9b6a12; }
.btn--copy.is-err { --bg: var(--red); --bd: var(--red); }

.socials { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social:hover { border-color: var(--paper); background: rgba(236, 227, 204, .06); }
.social.is-soon { color: var(--muted); border-style: dashed; cursor: not-allowed; }
.social.is-soon::after { content: "SOON"; font-size: 9.5px; color: var(--gold-hi); border: 1px solid var(--gold); padding: 0 4px; border-radius: 2px; }
.social--lg { min-height: 50px; padding: 0 18px; }

/* poster */
.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; }
.poster {
  margin: 0; width: 100%; max-width: 420px; background: var(--paper); padding: 12px 12px 14px; color: var(--paper-ink);
  transform: rotate(1.6deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3);
  animation: posterIn 1s var(--ease) both;
  position: relative;
}
.poster::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.poster__top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; padding: 0 2px 8px; }
.dealer { width: 100%; height: auto; border: 2px solid var(--paper-ink); }
.poster__cap { display: block; padding: 10px 4px 0; border-top: 0; }
.poster__name { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 900; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.poster__meta { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: #4e4a3c; }

.minitable {
  position: relative; width: 112%; max-width: 480px; height: 110px; margin-top: 18px; z-index: 2;
  background: radial-gradient(120% 120% at 50% 0%, #1f5a3a, #0f3020); border: 3px solid #5a4320; border-radius: 60px 60px 12px 12px;
  box-shadow: inset 0 0 0 2px var(--gold-dim, #8f7434), inset 0 10px 30px rgba(0, 0, 0, .5), 0 20px 40px -10px rgba(0, 0, 0, .8);
  display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding-bottom: 16px;
}
.minicard {
  width: 74px; height: 92px; background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 7px 6px;
  display: flex; flex-direction: column; font-size: 9px; letter-spacing: .08em; box-shadow: 0 6px 12px rgba(0, 0, 0, .5);
  transform: rotate(var(--r)) translateY(-10px);
  animation: dealIn .7s var(--ease) both; animation-delay: calc(.6s + var(--i) * .18s);
}
.minicard b { font-family: var(--f-head); font-weight: 400; font-size: 13px; }
.minicard i { font-style: normal; color: #6a644f; }
.minicard s { white-space: nowrap; font-size: 8.5px; text-decoration: none; margin-top: auto; align-self: flex-start; font-weight: 700; border: 1.5px solid var(--green); color: var(--green); padding: 1px 3px; transform: rotate(-6deg); }
.minicard--red s { border-color: var(--red); color: var(--red); }
.chips { position: absolute; right: 26px; bottom: 18px; display: flex; flex-direction: column-reverse; }
.chips span { width: 34px; height: 9px; border-radius: 50%; background: var(--red); border: 1.5px dashed var(--paper); margin-top: -3px; animation: chipIn .4s var(--ease) both; }
.chips span:nth-child(1) { animation-delay: 1.3s; }
.chips span:nth-child(2) { animation-delay: 1.4s; background: var(--green); }
.chips span:nth-child(3) { animation-delay: 1.5s; }
.chips span:nth-child(4) { animation-delay: 1.6s; background: var(--gold); }

.mybook { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.mybook b { color: var(--gold-hi); font-weight: 700; }
.mybook__k { color: var(--green-hi); font-weight: 700; }

/* ============ SECTION HEADERS ============ */
.sechead { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sechead__no { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--green); margin-bottom: 10px; }
.sechead--light .sechead__no { color: var(--gold-hi); }
.sechead__title { font-family: var(--f-head); font-size: clamp(40px, 6vw, 76px); line-height: .95; text-transform: uppercase; }
.sechead__lede { margin-top: 14px; font-family: var(--f-serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; opacity: .88; }

/* ============ THE TABLE (GAME) ============ */
.tablesec { padding: clamp(56px, 8vw, 110px) 0; scroll-margin-top: 90px; outline: none; }
.tablesec[data-felt="oxblood"] { --felt-a: #5a1f1c; --felt-b: #3a1210; }
.tablesec[data-felt="midnight"] { --felt-a: #1d2a46; --felt-b: #111a2e; }

.game { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.game__main { min-width: 0; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(226, 195, 116, .35); background: rgba(0, 0, 0, .35); border-radius: var(--radius); }
.hud__cell { padding: 10px 14px; border-right: 1px solid rgba(226, 195, 116, .2); min-width: 0; }
.hud__cell:last-child { border-right: 0; }
.hud__cell > span { display: block; font-size: 10px; letter-spacing: .16em; color: var(--gold-hi); }
.hud__cell b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 22px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__cell--rep b { color: var(--green-hi); }
.hud__cell b.bump { animation: bump .45s var(--ease); }

.stage {
  margin-top: 14px; min-height: 460px; position: relative;
  border: 2px solid rgba(226, 195, 116, .45); border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .2), inset 0 20px 60px rgba(0, 0, 0, .35);
  padding: clamp(18px, 3vw, 32px);
}
.stage__msg { text-align: center; padding: 40px 0; }
.stage__intro { display: grid; place-items: center; text-align: center; min-height: 400px; gap: 18px; }
.stage__intro h3 { font-family: var(--f-serif); font-style: italic; font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.stage__intro p { max-width: 460px; color: var(--paper-2); }
.stage__label { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--gold-hi); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stage__label em { font-style: normal; color: var(--paper-2); font-weight: 500; }

.dealing { display: grid; place-items: center; min-height: 400px; gap: 16px; }
.dealing__deck { width: 80px; height: 110px; position: relative; }
.dealing__deck span { position: absolute; inset: 0; border-radius: 6px; background: repeating-linear-gradient(45deg, #8f2a1d 0 6px, #a3382a 6px 12px); border: 3px solid var(--paper); animation: shuffle .6s ease-in-out infinite alternate; }
.dealing__deck span:nth-child(2) { animation-delay: .15s; }
.dealing__deck span:nth-child(3) { animation-delay: .3s; }
.dealing p { font-size: 12px; letter-spacing: .2em; color: var(--gold-hi); }

/* contract cards */
.contracts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contract {
  position: relative; text-align: left; cursor: pointer; border: 0; padding: 0; background: none;
  animation: dealIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * .12s);
}
.contract__in {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 14px 14px 12px;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .15);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  position: relative; overflow: hidden;
}
.contract__in::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .28; mix-blend-mode: multiply; pointer-events: none; }
.contract:hover .contract__in, .contract:focus-visible .contract__in { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .9), inset 0 0 0 2px var(--gold); }
.contract:focus-visible { outline: none; }
.contract__no { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .14em; color: #6a644f; border-bottom: 1px dashed rgba(29, 31, 26, .3); padding-bottom: 6px; }
.contract__name { font-family: var(--f-head); font-size: 22px; line-height: 1.05; margin: 10px 0 2px; text-transform: uppercase; }
.contract__district { font-family: var(--f-serif); font-style: italic; font-size: 14px; color: #5c5847; }
.contract__rows { margin-top: 12px; display: grid; gap: 4px; font-size: 12px; }
.contract__rows div { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(29, 31, 26, .25); padding-bottom: 3px; }
.contract__rows dt { color: #6a644f; letter-spacing: .08em; }
.contract__rows dd { margin: 0; font-weight: 700; }
.contract__stamp { align-self: flex-start; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 3px 6px; border: 2px solid; border-radius: 3px; transform: rotate(8deg); opacity: .85; }
.risk-1 .contract__stamp { color: var(--green); }
.risk-2 .contract__stamp { color: #9b6a12; }
.risk-3 .contract__stamp { color: var(--red); }
.riskbar { display: inline-flex; gap: 3px; vertical-align: middle; }
.riskbar i { width: 10px; height: 10px; border: 1.5px solid currentColor; display: block; }
.riskbar i.on { background: currentColor; }
.contract__cta { margin-top: auto; padding-top: 12px; font-family: var(--f-head); font-size: 15px; letter-spacing: .08em; color: var(--green); display: flex; justify-content: space-between; align-items: center; }
.contract:hover .contract__cta { color: var(--ink); }

/* chosen contract + moves */
.dealrow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.dealrow .contract { cursor: default; animation: none; }
.dealrow .contract .contract__in { transform: rotate(-2deg); }
.tell { background: rgba(0, 0, 0, .3); border-left: 3px solid var(--gold); padding: 10px 14px; font-family: var(--f-serif); font-style: italic; font-size: 17px; margin-bottom: 14px; }
.tell b { font-family: var(--f-mono); font-style: normal; font-size: 10.5px; letter-spacing: .16em; color: var(--gold-hi); display: block; margin-bottom: 2px; }
.moves { display: grid; gap: 10px; }
.move {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; text-align: left;
  background: rgba(236, 227, 204, .06); border: 1.5px solid rgba(236, 227, 204, .25); border-radius: 6px; padding: 12px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s var(--ease);
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * .07s);
}
.move:hover, .move:focus-visible { background: rgba(236, 227, 204, .12); border-color: var(--gold-hi); transform: translateX(4px); }
.move__n { font-family: var(--f-head); font-size: 20px; letter-spacing: .04em; }
.move__d { grid-column: 1; font-size: 12.5px; color: var(--paper-2); }
.move__o { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 11px; letter-spacing: .1em; color: var(--paper-2); }
.move__o b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 22px; color: var(--paper); letter-spacing: .02em; }
.move--safe .move__o b { color: var(--green-hi); }
.move--bold .move__o b { color: var(--red-hi); }

/* timing meter */
.timing { margin-top: 6px; }
.timing__hint { font-size: 12.5px; color: var(--paper-2); margin-bottom: 12px; }
.meter { position: relative; height: 46px; border-radius: 6px; overflow: hidden; border: 2px solid var(--paper); background: linear-gradient(90deg, #4a1712 0 18%, #3d3a1c 18% 36%, #1f5a3a 36% 44%, #c8a24c 44% 56%, #1f5a3a 56% 64%, #3d3a1c 64% 82%, #4a1712 82%); }
.meter__zones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--ink); pointer-events: none; }
.meter__needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: var(--paper); box-shadow: 0 0 0 2px var(--ink), 0 0 14px rgba(255, 255, 255, .6); left: 0; }
.timing__row { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.timing__row kbd { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; color: var(--paper-2); }

/* result */
.result { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.slip {
  background: var(--paper); color: var(--paper-ink); padding: 18px 18px 16px; border-radius: 2px; position: relative;
  animation: printIn .6s var(--ease) both; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8);
}
.slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 5px 8px, transparent 4px, var(--paper) 4.5px) repeat-x; background-size: 10px 8px; }
.slip__h { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .16em; border-bottom: 1px dashed rgba(29, 31, 26, .35); padding-bottom: 8px; color: #6a644f; }
.slip__verdict { font-family: var(--f-head); font-size: clamp(34px, 5vw, 52px); line-height: 1; margin: 14px 0 4px; text-transform: uppercase; }
.slip.is-win .slip__verdict { color: var(--green); }
.slip.is-lose .slip__verdict { color: var(--red); }
.slip__story { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: #4e4a3c; }
.slip__lines { margin-top: 14px; display: grid; gap: 4px; font-size: 12.5px; }
.slip__lines div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted rgba(29, 31, 26, .25); padding-bottom: 3px; }
.slip__total { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.slip__total b { font-family: var(--f-head); font-weight: 400; font-size: 32px; }
.slip.is-win .slip__total b { color: var(--green); }
.slip.is-lose .slip__total b { color: var(--red); }
.slip__stamp { position: absolute; right: 16px; top: 36px; font-weight: 700; font-size: 13px; letter-spacing: .14em; border: 3px solid; padding: 4px 8px; border-radius: 3px; transform: rotate(-10deg); animation: stampIn .35s .35s var(--ease) both; }
.slip.is-win .slip__stamp { color: var(--green); }
.slip.is-lose .slip__stamp { color: var(--red); }
.result__side { display: grid; gap: 12px; }
.result__side .btn { width: 100%; }
.roll { font-size: 12px; color: var(--paper-2); background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 12px 14px; }
.roll b { color: var(--paper); }

/* summary */
.summary { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.summary .slip__verdict { color: var(--ink); }
.summary__tier { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 12px; letter-spacing: .16em; background: var(--ink); color: var(--gold-hi); padding: 4px 8px; }
.newbest { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--red); border: 2px solid var(--red); padding: 2px 6px; transform: rotate(-4deg); }

.game__fine { margin-top: 12px; font-size: 11.5px; color: var(--paper-2); opacity: .85; max-width: 760px; }

/* sidebar */
.game__side { display: grid; gap: 14px; }
.sidecard { background: rgba(0, 0, 0, .35); border: 1px solid rgba(226, 195, 116, .25); border-radius: var(--radius); padding: 14px; }
.sidecard--paper { background: var(--paper); color: var(--paper-ink); border-color: transparent; }
.sidecard__t { font-family: var(--f-head); font-size: 17px; letter-spacing: .06em; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sidecard__t small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--gold-hi); }
.sidecard--paper .sidecard__t small { color: var(--green); }
.tables { display: grid; gap: 8px; }
.tbl { width: 100%; display: grid; gap: 4px; text-align: left; background: rgba(236, 227, 204, .05); border: 1.5px solid rgba(236, 227, 204, .2); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.tbl:hover { border-color: var(--paper-2); }
.tbl.is-active { border-color: var(--green-hi); background: rgba(76, 196, 126, .1); }
.tbl.is-locked { opacity: .85; }
.tbl.is-locked .tbl__n::after { content: " 🔒"; font-size: 12px; }
.tbl__n { font-family: var(--f-head); font-size: 17px; letter-spacing: .04em; }
.lockmsg { font-size: 12px; color: var(--gold-hi); margin-top: 8px; min-height: 0; }
.lockmsg:empty { display: none; }
.felts { display: grid; gap: 6px; }
.felt-sw { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; background: transparent; border: 1.5px solid rgba(236, 227, 204, .18); border-radius: var(--radius); padding: 7px 10px; cursor: pointer; }
.felt-sw::before { content: ""; grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 2px solid var(--gold); }
.felt-sw span { font-size: 13px; font-weight: 700; }
.felt-sw em { font-style: normal; font-size: 9.5px; letter-spacing: .12em; color: var(--gold-hi); }
.felt-sw[aria-checked="true"] { border-color: var(--green-hi); background: rgba(76, 196, 126, .08); }
.felt-sw:hover { border-color: var(--paper-2); }
.felts__note { font-size: 11px; color: var(--paper-2); margin-top: 8px; }

.receipt { font-size: 12px; display: grid; gap: 2px; counter-reset: r; }
.receipt li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted rgba(29, 31, 26, .3); padding: 3px 0; animation: rise .3s var(--ease) both; }
.receipt li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt li b.pos { color: var(--green); }
.receipt li b.neg { color: var(--red); }
.receipt__empty, .board__empty { color: #6a644f; justify-content: flex-start !important; border: 0 !important; font-style: italic; }
.board__empty { color: var(--paper-2); }
.board { display: grid; gap: 4px; font-size: 12.5px; }
.board li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(236, 227, 204, .08); }
.board li:first-child:not(.board__empty) b { color: var(--gold-hi); }
.board li i { font-style: normal; color: var(--muted); font-size: 11px; }
.board li b { font-family: var(--f-head); font-weight: 400; font-size: 17px; }
.linkbtn { background: none; border: 0; padding: 4px 0; margin-top: 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--red-hi); }

/* ============ HOW ============ */
.how { padding: clamp(56px, 8vw, 110px) 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px double var(--paper-ink); border-bottom: 4px double var(--paper-ink); }
.step { padding: 26px clamp(16px, 2.4vw, 30px) 30px; border-right: 1px solid rgba(29, 31, 26, .35); position: relative; }
.step:last-child { border-right: 0; }
.step__n { font-family: var(--f-head); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--green); }
.step__t { font-family: var(--f-head); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; margin-top: 12px; }
.step__q { font-family: var(--f-serif); font-style: italic; font-weight: 700; font-size: 19px; line-height: 1.35; margin-top: 12px; color: var(--green-deep); }
.step__d { margin-top: 10px; font-size: 13px; color: #4e4a3c; }

/* ============ UTILITY ============ */
.utility { padding: clamp(56px, 8vw, 110px) 0; background: var(--char-2); }
.utilcols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.utilcol__h { font-family: var(--f-head); font-size: 22px; letter-spacing: .04em; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ucards { display: grid; gap: 12px; }
.ucard { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 16px; border-radius: 6px; transition: transform .2s var(--ease); }
.ucard:hover { transform: translateX(4px); }
.ucard__ico { grid-row: 1 / span 2; width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; }
.ucard h4 { font-family: var(--f-head); font-size: 20px; letter-spacing: .03em; line-height: 1.1; }
.ucard p { font-size: 13px; margin-top: 4px; }
.ucard--live { background: var(--paper); color: var(--paper-ink); }
.ucard--live .ucard__ico { background: var(--green); color: var(--paper); }
.ucard--plan { background: transparent; border: 1.5px dashed rgba(226, 195, 116, .5); }
.ucard--plan .ucard__ico { border: 1.5px dashed var(--gold); color: var(--gold-hi); }
.ucard--plan p { color: var(--paper-2); }
.ucard__stamp { position: absolute; right: 12px; top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--red-hi); border: 2px solid currentColor; padding: 2px 6px; transform: rotate(6deg); }
.utility__fine { margin-top: 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* ============ LEDGER ============ */
.ledgersec { padding: clamp(56px, 8vw, 110px) 0; }
.ledger {
  background: #f3ecd8; border: 1px solid rgba(29, 31, 26, .25); border-radius: 3px; position: relative;
  box-shadow: 0 20px 40px -24px rgba(60, 40, 10, .6);
  background-image: linear-gradient(90deg, transparent 72px, rgba(200, 65, 46, .45) 72px 74px, transparent 74px), repeating-linear-gradient(transparent 0 31px, rgba(47, 143, 87, .22) 31px 32px);
}
.ledger__head, .ledger__row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 170px; align-items: center; }
.ledger__head { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--green); border-bottom: 2px solid var(--paper-ink); }
.ledger__head span { padding: 12px 14px; }
.ledger__row { border-bottom: 1px solid rgba(29, 31, 26, .14); }
.ledger__row > * { padding: 14px; }
.ledger__no { font-family: var(--f-head); font-size: 20px; color: var(--red); text-align: center; }
.ledger__t { font-family: var(--f-serif); font-weight: 700; font-size: 19px; line-height: 1.25; display: block; }
.ledger__n { display: block; font-size: 12.5px; color: #5c5847; margin-top: 2px; }
.ledger__s { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .14em; border: 2px solid; padding: 4px 8px; border-radius: 3px; white-space: nowrap; transform: rotate(-2deg); }
.st-dev { color: var(--green); background: rgba(47, 143, 87, .08); }
.st-next { color: var(--red); }
.st-plan { color: #7a6a3e; border-style: dashed !important; }
.st-done { color: var(--paper); background: var(--green); border-color: var(--green); }

/* ============ FAQ ============ */
.faq { padding: clamp(56px, 8vw, 110px) 0; background: var(--char); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--f-head); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: .02em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 26px; color: var(--gold-hi); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--green-hi); }
.faq details p { padding: 0 0 22px; max-width: 720px; color: var(--paper-2); font-size: 15px; }
.faq details p strong { color: var(--paper); }

/* ============ FINAL ============ */
.final { padding: clamp(70px, 10vw, 140px) var(--gut); text-align: center; overflow: hidden; }
.final__in { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; position: relative; }
.final__cards { position: relative; width: 240px; height: 190px; margin-bottom: -10px; }
.bigcard {
  position: absolute; left: 50%; top: 0; width: 120px; height: 170px; margin-left: -60px;
  background: var(--paper); color: var(--ink); border-radius: 10px; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .7), inset 0 0 0 6px var(--paper), inset 0 0 0 7.5px rgba(29, 31, 26, .3);
  transform: translateX(var(--x)) rotate(var(--r)); transform-origin: 50% 120%;
  display: grid; place-items: center; font-family: var(--f-serif); font-weight: 900;
}
.bigcard span { position: absolute; left: 14px; top: 8px; font-size: 26px; }
.bigcard i { font-style: normal; font-size: 58px; }
.bigcard--red { color: var(--red); z-index: 2; }
.final.in-view .bigcard { animation: fan .9s var(--ease) both; }
.final.in-view .bigcard:nth-child(2) { animation-delay: .1s; }
.final.in-view .bigcard:nth-child(3) { animation-delay: .2s; }
.final__title { font-family: var(--f-head); font-size: clamp(54px, 11vw, 150px); line-height: .88; text-transform: uppercase; }
.final__title span { color: var(--gold-hi); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ FOOTER ============ */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot__in { display: grid; gap: 14px; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 18px; letter-spacing: .05em; }
.foot__fine { font-size: 12px; color: var(--muted); max-width: 820px; }
.foot__copy { font-size: 11px; color: #6c7166; }

/* ============ TOAST ============ */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--paper); color: var(--ink); border-left: 5px solid var(--gold); padding: 12px 16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); animation: rise .25s var(--ease) both; }
.toast.is-err { border-left-color: var(--red); }
.toast.is-ok { border-left-color: var(--green); }

/* ============ KEYFRAMES ============ */
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes posterIn { from { opacity: 0; transform: rotate(6deg) translateY(30px); } }
@keyframes dealIn { from { opacity: 0; transform: translate(60px, -80px) rotate(25deg) scale(.9); } }
@keyframes chipIn { from { opacity: 0; transform: translateY(-30px); } }
@keyframes shuffle { from { transform: translateX(-14px) rotate(-6deg); } to { transform: translateX(14px) rotate(6deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes printIn { from { clip-path: inset(0 0 100% 0); transform: translateY(-12px); } to { clip-path: inset(0 0 -10px 0); } }
@keyframes stampIn { from { opacity: 0; transform: rotate(-10deg) scale(2.2); } }
@keyframes bump { 40% { transform: scale(1.18); color: var(--gold-hi); } }
@keyframes fan { from { opacity: 0; transform: translateX(0) translateY(60px) rotate(0); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .game { grid-template-columns: 1fr; }
  .game__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 6px var(--gut) 14px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .navtoggle { display: flex; }
  .topbar__in { position: relative; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 400px; margin: 0 auto; width: 100%; }
  .poster { max-width: 320px; }
  .minitable { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid rgba(29, 31, 26, .35); }
  .step:last-child { border-bottom: 0; }
  .utilcols { grid-template-columns: 1fr; }
  .dealrow, .result, .summary { grid-template-columns: 1fr; }
  .dealrow .contract { max-width: 300px; }
}
@media (max-width: 720px) {
  .contracts { grid-template-columns: 1fr; }
  .contract { animation-name: rise; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .hud__cell:nth-child(2) { border-right: 0; }
  .hud__cell:nth-child(-n+2) { border-bottom: 1px solid rgba(226, 195, 116, .2); }
  .game__side { grid-template-columns: 1fr; }
  .ledger { background-image: repeating-linear-gradient(transparent 0 31px, rgba(47, 143, 87, .22) 31px 32px); }
  .ledger__head { display: none; }
  .ledger__row { grid-template-columns: 48px minmax(0, 1fr); }
  .ledger__row > * { padding: 12px 10px; }
  .ledger__s { grid-column: 2; justify-self: start; margin: -6px 0 12px 10px; padding: 3px 7px !important; }
  .stage { min-height: 0; }
  .stage__intro, .dealing { min-height: 320px; }
}
@media (max-width: 520px) {
  body { font-size: 14px; }
  .brand__name em { display: none; }
  .topbar .btn--buy { white-space: nowrap; }
  .topbar .btn.is-soon::after { display: none; }
  .topbar__in { gap: 10px; }
  .brand__tick { display: none; }
  .ticker__label { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .stamp { align-self: flex-start; }
  .ca__row { flex-direction: column; align-items: stretch; }
  .btn--copy { width: 100%; }
  .hud__cell b { font-size: 19px; }
  .final__actions { flex-direction: column; width: 100%; }
  .final__actions > * { width: 100%; }
  .minicard { width: 64px; height: 84px; }
  .chips { right: 12px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .ticker__row { animation: none; }
}
