:root {
  color-scheme: dark;
  --outline: #073e38;
  --outline-dark: #032c2a;
  --mint: #55e69c;
  --mint-light: #9cffc9;
  --cream: #fffce9;
  --sky: #72d9c3;
  --red: #f05b61;
  --yellow: #ffd359;
}

* { box-sizing: border-box; }
html { margin: 0; min-height: 100%; scroll-behavior: smooth; background: #052c2c; }
body { margin: 0; min-height: 100%; background: #052c2c; }
body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--cream);
  font-family: "Courier New", ui-monospace, monospace;
  font-synthesis: none;
  background:
    linear-gradient(rgba(5, 44, 44, .92), rgba(5, 44, 44, .92)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(156, 255, 201, .08) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(156, 255, 201, .08) 23px 24px);
}
button { font: inherit; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky; z-index: 50; top: 0; height: 72px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 3px solid var(--outline-dark); color: var(--outline-dark); background: rgba(255, 252, 233, .96);
  box-shadow: 0 4px 0 rgba(3, 44, 42, .18); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-family: "Arial Black", Impact, sans-serif; font-size: 16px; letter-spacing: -.04em; }
.brand-pill { width: 17px; height: 32px; border: 3px solid var(--outline-dark); border-radius: 12px; background: linear-gradient(to bottom, var(--cream) 0 49%, var(--mint) 49%); transform: rotate(39deg); box-shadow: 2px 2px 0 rgba(3,44,42,.18); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 11px; font-weight: 900; }
.site-header nav a { border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--outline-dark); }
.nav-cta { justify-self: end; padding: 10px 15px; border: 3px solid var(--outline-dark); border-radius: 6px; background: var(--yellow); box-shadow: 0 3px 0 var(--outline-dark); font-size: 11px; font-weight: 900; }
.hero {
  position: relative; min-height: calc(100svh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
  gap: clamp(32px, 6vw, 100px); align-items: center; max-width: 1320px; margin: 0 auto; padding: 52px clamp(24px, 6vw, 84px) 64px;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: 1%; top: 13%; border: 2px solid rgba(156,255,201,.16); border-radius: 50%; box-shadow: 0 0 0 38px rgba(156,255,201,.04), 0 0 0 82px rgba(156,255,201,.03); }
.hero-copy { width: 100%; min-width: 0; max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 21px; color: var(--mint-light); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.eyebrow i, .stage-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(85,230,156,.16); }
.hero h1 { margin: 0; color: var(--cream); font-family: "Arial Black", Impact, sans-serif; font-size: clamp(66px, 8.2vw, 126px); font-weight: 900; line-height: .76; letter-spacing: -.075em; }
.hero h1 em { color: var(--mint); font-style: normal; -webkit-text-stroke: 2px var(--outline-dark); paint-order: stroke fill; text-shadow: 0 8px 0 #198262, 0 11px 0 var(--outline-dark); }
.hero-copy > p { max-width: 560px; margin: 36px 0 0; color: #d9f4e8; font-family: Arial, sans-serif; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.site-button { display: inline-flex; align-items: center; justify-content: center; min-width: 176px; padding: 14px 18px; border: 3px solid var(--outline-dark); border-radius: 6px; font-size: 12px; font-weight: 900; box-shadow: 0 5px 0 var(--outline-dark); }
.site-button:hover { transform: translateY(-2px); }
.site-button-primary { color: var(--outline-dark); background: var(--yellow); }
.site-button-ghost { color: var(--cream); background: #0b4a45; border-color: var(--mint); box-shadow: 0 5px 0 #022a28; }
.hero-stats { display: flex; gap: clamp(22px, 4vw, 48px); margin-top: 42px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { color: var(--cream); font-family: "Arial Black", Impact, sans-serif; font-size: 30px; line-height: 1; }
.hero-stats span { margin-top: 6px; color: var(--mint-light); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.game-stage { justify-self: center; width: min(100%, 390px); }
.stage-label { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: var(--cream); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.stage-label i { margin-left: auto; }
.stage-label small { color: var(--mint-light); font-size: 9px; }
.stage-caption { margin: 14px 0 0; color: var(--mint-light); font-size: 9px; font-weight: 900; letter-spacing: .15em; text-align: center; }
.game-card {
  width: min(100%, 390px);
  overflow: hidden;
  border: 5px solid var(--outline-dark);
  border-radius: 17px;
  background: var(--sky);
  box-shadow: 0 0 0 4px var(--mint), 0 22px 0 rgba(1, 24, 24, .5), 0 35px 80px rgba(0, 0, 0, .48);
}
.screen-wrap { position: relative; aspect-ratio: 420 / 740; overflow: hidden; background: var(--sky); }
#game { display: block; width: 100%; height: 100%; outline: none; touch-action: none; image-rendering: pixelated; }
.sound-toggle {
  position: absolute; z-index: 12; top: max(13px, env(safe-area-inset-top)); left: max(13px, env(safe-area-inset-left));
  width: 44px; height: 40px; border: 3px solid var(--outline-dark); border-radius: 7px;
  color: var(--outline-dark); background: var(--cream);
  box-shadow: inset -3px -3px 0 rgba(7, 62, 56, .16), 0 3px 0 var(--outline-dark);
  font-size: 10px; font-weight: 900; cursor: pointer;
}
.hud {
  position: absolute; z-index: 4; top: 16px; left: 50%;
  display: flex; flex-direction: column; align-items: center;
  transform: translateX(-50%); pointer-events: none; text-align: center;
}
.score-main {
  color: #fff; font-size: 49px; line-height: .9; letter-spacing: -.08em;
  -webkit-text-stroke: 3px var(--outline-dark); paint-order: stroke fill;
  text-shadow: 0 5px 0 rgba(3, 44, 42, .32);
}
.mc-main {
  margin-top: 7px; padding: 4px 8px; border: 2px solid var(--outline-dark); border-radius: 5px;
  color: var(--outline-dark); background: var(--yellow); box-shadow: 0 3px 0 var(--outline-dark);
  font-size: 10px; font-weight: 900;
}
.coin-hud {
  position: absolute; z-index: 4; top: max(16px, env(safe-area-inset-top)); right: max(13px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 5px; min-width: 52px; padding: 5px 8px;
  border: 3px solid var(--outline-dark); border-radius: 7px;
  color: var(--outline-dark); background: var(--yellow); box-shadow: 0 3px 0 var(--outline-dark);
  font-size: 12px; font-weight: 900; pointer-events: none;
}
.coin-hud span { font-family: sans-serif; font-size: 17px; line-height: .7; }
.bonding {
  position: absolute; z-index: 4; right: 12px; bottom: 8px; left: 12px;
  padding: 5px 9px 6px; border: 3px solid var(--outline-dark); border-radius: 7px;
  color: var(--outline-dark); background: rgba(255, 252, 233, .95);
  box-shadow: 0 2px 0 var(--outline-dark); pointer-events: none;
}
.bonding-copy { display: flex; justify-content: space-between; margin-bottom: 3px; font-size: 9px; font-weight: 900; }
.bonding-track { height: 7px; overflow: hidden; border: 2px solid var(--outline-dark); background: #d9e4cf; }
.bonding-track span { display: block; width: 0; height: 100%; background: var(--mint); transition: width .25s steps(4); }
.screen-wrap[data-graduated="true"] .bonding { background: rgba(255, 211, 89, .96); }
.screen-wrap[data-graduated="true"] .bonding-track span { background: var(--yellow); }
.screen-wrap[data-state="ready"] .hud,
.screen-wrap[data-state="ready"] .bonding,
.screen-wrap[data-state="ready"] .coin-hud,
.screen-wrap[data-state="gameover"] .hud,
.screen-wrap[data-state="gameover"] .bonding,
.screen-wrap[data-state="gameover"] .coin-hud { opacity: 0; }
.overlay {
  position: absolute; z-index: 8; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 28px; text-align: center; background: rgba(85, 230, 156, .08);
}
.overlay.visible { display: flex; }
.title-lockup { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.title-lockup span, .title-lockup strong {
  color: var(--cream); font-family: "Arial Black", Impact, sans-serif; font-weight: 900; line-height: .75; letter-spacing: -.06em;
  -webkit-text-stroke: 4px var(--outline-dark); paint-order: stroke fill;
  text-shadow: 0 7px 0 #198262, 0 10px 0 var(--outline-dark);
}
.title-lockup span { font-size: 43px; }
.title-lockup strong { margin-top: 15px; color: var(--mint-light); font-size: 76px; }
.hero-pill {
  width: 132px; height: 132px; margin: 27px 0 12px; object-fit: contain;
  filter: drop-shadow(0 7px 0 rgba(3, 44, 42, .24)); animation: bob 1.1s steps(5) infinite;
}
.tap-card {
  display: flex; align-items: center; justify-content: center; min-width: 220px;
  padding: 8px 13px; border: 3px solid var(--outline-dark); border-radius: 8px;
  color: var(--outline-dark); background: var(--cream); box-shadow: 0 4px 0 var(--outline-dark); text-align: center;
}
.tap-card strong { display: block; font-size: 14px; }
.tap-card small { display: block; margin-top: 2px; font-size: 9px; font-weight: 900; opacity: .58; }
.primary {
  min-width: 164px; margin-top: 18px; padding: 12px 20px;
  border: 4px solid var(--outline-dark); border-radius: 8px;
  color: var(--outline-dark); background: var(--yellow);
  box-shadow: inset -4px -4px 0 #e2a82e, 0 6px 0 var(--outline-dark);
  font-size: 18px; font-weight: 900; cursor: pointer;
}
.primary:hover { transform: translateY(-2px); }
.primary:active { transform: translateY(5px); box-shadow: inset -4px -4px 0 #e2a82e, 0 1px 0 var(--outline-dark); }
.controls { margin-top: 15px; color: var(--outline-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; opacity: .62; }
.graduation-banner {
  position: absolute; z-index: 10; top: max(12px, env(safe-area-inset-top)); left: 50%; width: 230px;
  display: flex; flex-direction: column; align-items: center; padding: 6px 12px 8px;
  border: 3px solid var(--outline-dark); border-radius: 8px;
  color: var(--outline-dark); background: var(--yellow);
  box-shadow: inset -3px -3px 0 #e2a82e, 0 4px 0 var(--outline-dark);
  opacity: 0; pointer-events: none; transform: translate(-50%, -8px) scale(.9);
}
.graduation-banner.visible { animation: graduate-pop 1.35s steps(7) both; }
.graduation-banner small { font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.graduation-banner strong {
  margin: 1px 0; color: var(--mint); font-family: "Arial Black", Impact, sans-serif;
  font-size: 23px; line-height: 1; letter-spacing: -.035em;
  -webkit-text-stroke: 2px var(--outline-dark); paint-order: stroke fill;
}
.graduation-banner span { font-size: 7px; font-weight: 900; }
.game-over { background: rgba(6, 64, 58, .42); }
.gameover-title {
  position: relative; z-index: 2; margin-bottom: 24px;
  color: var(--red); font-family: "Arial Black", Impact, sans-serif; font-size: 52px; font-weight: 900;
  line-height: 1; letter-spacing: -.045em;
  -webkit-text-stroke: 3px var(--outline-dark); paint-order: stroke fill;
  text-shadow: 0 5px 0 #a93742, 0 8px 0 var(--outline-dark);
}
.score-card {
  width: min(100%, 300px); display: grid; grid-template-columns: 92px 1fr;
  gap: 15px; align-items: center; padding: 17px;
  border: 4px solid var(--outline-dark); border-radius: 9px;
  color: var(--outline-dark); background: var(--cream);
  box-shadow: inset -6px -6px 0 #d7dfc7, 0 7px 0 var(--outline-dark);
}
.medal {
  width: 78px; height: 78px; display: grid; place-items: center;
  border: 4px solid var(--outline-dark); border-radius: 50%;
  background: var(--yellow); box-shadow: inset -5px -5px 0 #dea72e;
}
.medal img { width: 66px; height: 66px; object-fit: contain; transform: rotate(8deg); }
.score-lines { display: grid; gap: 5px; }
.score-lines div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px dotted rgba(7, 62, 56, .28); }
.score-lines span { font-size: 9px; font-weight: 900; }
.score-lines strong { font-size: 18px; }

.score-submit { width: min(270px, 80%); margin: 6px auto 2px; text-align: left; }
.score-submit[hidden] { display: none; }
.score-submit label { display: block; margin-bottom: 4px; color: #f5f7ef; font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.score-submit > div { display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.score-submit input { min-width: 0; border: 3px solid #061f25; border-radius: 7px; background: #f5f7ef; color: #061f25; padding: 8px 9px; font: 900 10px/1 inherit; text-transform: uppercase; outline: none; box-shadow: 0 3px 0 #061f25; }
.score-submit input:focus { border-color: #54e39a; }
.score-submit button { border: 3px solid #061f25; border-radius: 7px; background: #54e39a; color: #061f25; padding: 0 12px; font: 950 9px/1 inherit; box-shadow: 0 3px 0 #061f25; cursor: pointer; }
.score-submit button:disabled { opacity: .55; cursor: wait; }
.score-submit small { display: block; min-height: 11px; margin-top: 6px; color: #f5f7ef; font-size: 7px; font-weight: 900; letter-spacing: .06em; }

.leaderboard-section { background: #dff7e8; }
.leaderboard-shell { overflow: hidden; max-width: 920px; margin: 28px auto 0; border: 4px solid #061f25; border-radius: 18px; background: #f5f7ef; box-shadow: 10px 10px 0 #061f25; }
.leaderboard-head, .leaderboard-list li { display: grid; grid-template-columns: 72px 1fr 100px; align-items: center; }
.leaderboard-head { padding: 13px 22px; background: #061f25; color: #8fffc2; font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.leaderboard-head span:last-child { text-align: right; }
.leaderboard-list { margin: 0; padding: 0; list-style: none; }
.leaderboard-list li { min-height: 48px; padding: 0 22px; border-bottom: 2px solid rgba(6,31,37,.12); color: #061f25; }
.leaderboard-list li:nth-child(-n+3) { background: rgba(84,227,154,.2); }
.leaderboard-list strong { color: #16805f; font-size: 13px; }
.leaderboard-list span { overflow: hidden; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-list b { text-align: right; font-size: 18px; }
.leaderboard-list .leaderboard-empty { display: block; padding: 22px; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.leaderboard-note { margin: 0; padding: 12px 22px; background: #e8ede7; color: rgba(6,31,37,.7); font-size: 9px; font-weight: 800; text-align: center; }

@media (max-width: 560px) {
  .leaderboard-head, .leaderboard-list li { grid-template-columns: 48px 1fr 64px; padding-left: 14px; padding-right: 14px; }
  .leaderboard-shell { box-shadow: 6px 6px 0 #061f25; }
}
.rank {
  margin-top: 18px; padding: 6px 12px; border: 3px solid var(--outline-dark); border-radius: 6px;
  color: var(--cream); background: var(--red); box-shadow: 0 4px 0 var(--outline-dark);
  font-size: 11px; font-weight: 900;
}
.rotate-notice { display: none; }
.ticker { overflow: hidden; border-block: 4px solid var(--outline-dark); color: var(--outline-dark); background: var(--yellow); }
.ticker div { width: max-content; padding: 15px 0; font-family: "Arial Black", Impact, sans-serif; font-size: 17px; word-spacing: 16px; animation: marquee 22s linear infinite; }
.ticker span { color: #e84551; }
.content-section { padding: 110px clamp(24px, 7vw, 110px); }
.onchain-section { color: var(--outline-dark); background: var(--cream); }
.section-heading { display: flex; align-items: flex-start; gap: 20px; max-width: 1160px; margin: 0 auto 65px; }
.section-number { padding-top: 7px; color: #198262; font-size: 12px; font-weight: 900; }
.section-heading p { margin: 0 0 8px; color: #198262; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.section-heading h2 { margin: 0; font-family: "Arial Black", Impact, sans-serif; font-size: clamp(44px, 7vw, 86px); line-height: .9; letter-spacing: -.06em; }
.onchain-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 8vw, 120px); align-items: center; max-width: 1160px; margin: 0 auto; }
.chain-visual { position: relative; min-height: 430px; }
.block { position: absolute; width: 205px; height: 132px; padding: 18px; border: 4px solid var(--outline-dark); border-radius: 9px; box-shadow: 9px 10px 0 var(--outline-dark); }
.block span { display: block; font-size: 9px; font-weight: 900; }
.block strong { display: block; margin-top: 28px; font-family: "Arial Black", Impact, sans-serif; font-size: 31px; }
.block-a { z-index: 3; top: 0; left: 0; background: var(--mint); transform: rotate(-5deg); }
.block-b { z-index: 2; top: 118px; left: 27%; background: var(--yellow); transform: rotate(4deg); }
.block-c { z-index: 1; top: 244px; left: 6%; color: var(--cream); background: var(--red); transform: rotate(-2deg); }
.chain-line { position: absolute; top: 350px; right: 24px; width: 45%; height: 4px; background: var(--outline-dark); transform: rotate(-23deg); }
.solana-mark { position: absolute; right: 0; bottom: 10px; display: grid; place-items: center; width: 92px; height: 92px; border: 4px solid var(--outline-dark); border-radius: 50%; color: var(--cream); background: #826cf6; box-shadow: 6px 7px 0 var(--outline-dark); font-family: "Arial Black", Impact, sans-serif; font-size: 22px; }
.chain-copy .lead { margin: 0 0 34px; font-family: Arial, sans-serif; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.4; }
.chain-copy ol { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--outline-dark); }
.chain-copy li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 21px 0; border-bottom: 3px solid var(--outline-dark); }
.chain-copy li > span { color: #198262; font-size: 12px; font-weight: 900; }
.chain-copy li strong { font-family: "Arial Black", Impact, sans-serif; font-size: 19px; }
.chain-copy li p { margin: 6px 0 0; color: #305a55; font-family: Arial, sans-serif; font-size: 15px; line-height: 1.45; }
.proof-section { background: #093c39; }
.section-heading.light { color: var(--cream); }
.section-heading.light p, .section-heading.light .section-number { color: var(--mint-light); }
.proof-card { max-width: 960px; margin: 0 auto; border: 4px solid var(--outline-dark); border-radius: 12px; color: var(--outline-dark); background: var(--cream); box-shadow: 12px 14px 0 #022a28; overflow: hidden; }
.proof-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 4px solid var(--outline-dark); background: var(--mint); font-size: 11px; }
.proof-top div { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border: 2px solid var(--outline-dark); border-radius: 50%; background: var(--yellow); }
.network { padding: 6px 8px; border: 2px solid var(--outline-dark); border-radius: 4px; background: var(--cream); font-weight: 900; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; }
.proof-grid > div { min-width: 0; padding: 24px; border-right: 3px solid var(--outline-dark); border-bottom: 3px solid var(--outline-dark); }
.proof-grid > div:nth-child(even) { border-right: 0; }
.proof-grid span { display: block; margin-bottom: 10px; color: #4c7771; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.proof-grid strong { font-family: "Arial Black", Impact, sans-serif; font-size: 17px; }
.proof-grid strong i { font-style: normal; }
.proof-grid code { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 900; line-height: 1.6; }
.proof-grid a { display: inline-block; max-width: 100%; overflow: hidden; color: #087552; font-family: "Arial Black", Impact, sans-serif; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hash-row { grid-column: 1 / -1; border-right: 0 !important; }
.proof-note { padding: 25px; background: #f2efd9; }
.proof-note strong { font-size: 11px; }
.proof-note p { margin: 9px 0 0; color: #41635f; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.55; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.proof-actions button { font-family: inherit; cursor: pointer; }
.proof-actions button:disabled { opacity: .55; cursor: wait; }
.proof-explorer { color: var(--cream); background: #0b4a45; border-color: var(--outline-dark); }
.proof-receipt { color: var(--outline-dark); background: var(--cream); }

body.modal-open { overflow: hidden; }
.onchain-modal[hidden] { display: none; }
.onchain-modal { position: fixed; z-index: 1000; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); background: rgba(2, 20, 23, .94); backdrop-filter: blur(12px); }
.onchain-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: min(100%, 520px); margin: 0 auto; padding: 10px 12px; border: 3px solid var(--outline-dark); border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--outline-dark); background: var(--mint); }
.onchain-modal-bar div { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: .08em; }
.onchain-modal-bar button { border: 2px solid var(--outline-dark); border-radius: 5px; padding: 7px 10px; color: var(--cream); background: var(--outline-dark); font: 900 8px/1 inherit; cursor: pointer; }
.onchain-modal iframe { width: min(100%, 520px); height: 100%; margin: 0 auto; border: 3px solid var(--outline-dark); border-radius: 0 0 10px 10px; background: var(--outline-dark); }
.manifesto { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 60px); min-height: 390px; padding: 70px 24px; color: var(--outline-dark); background: var(--mint); text-align: left; }
.manifesto img { width: clamp(120px, 18vw, 230px); filter: drop-shadow(9px 11px 0 rgba(3,44,42,.2)); }
.manifesto p { margin: 0; font-family: "Arial Black", Impact, sans-serif; font-size: clamp(31px, 5.5vw, 72px); line-height: .98; letter-spacing: -.05em; }
.manifesto span { display: block; margin-top: 22px; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 5vw, 70px); border-top: 4px solid var(--outline-dark); color: var(--cream); background: #032c2a; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
footer .brand { font-size: 14px; letter-spacing: -.04em; }
footer .brand-pill { border-color: var(--cream); }
footer > a:last-child { color: var(--mint-light); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-40%); } }
@keyframes graduate-pop {
  0% { opacity: 0; transform: translate(-50%, -8px) scale(.9); }
  12%, 76% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -5px) scale(.96); }
}
@media (max-width: 1050px) {
  .site-header { height: 62px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .game-stage { margin-top: 20px; }
  .onchain-grid { grid-template-columns: 1fr; }
  .chain-visual { width: min(100%, 470px); margin: 0 auto; }
}
@media (max-width: 520px) {
  .site-header { padding-inline: 14px; }
  .nav-cta { padding: 8px 10px; font-size: 9px; }
  .brand { font-size: 13px; }
  .brand-pill { width: 14px; height: 27px; }
  .hero { display: flex; flex-direction: column; padding: 44px 14px 62px; }
  .hero h1 { font-size: clamp(50px, 15.5vw, 64px); }
  .hero-copy > p { margin-top: 30px; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 24px; }
  .game-stage { width: min(100%, 390px); margin-top: 28px; }
  .game-card {
    width: 100%; min-height: 0;
    border-width: 4px; border-radius: 14px; box-shadow: 0 0 0 3px var(--mint), 0 14px 0 rgba(1, 24, 24, .5), 0 28px 55px rgba(0, 0, 0, .4);
  }
  .screen-wrap { height: auto; aspect-ratio: 420 / 740; }
  .content-section { padding: 80px 19px; }
  .section-heading { margin-bottom: 45px; gap: 12px; }
  .section-heading h2 { font-size: 44px; }
  .chain-visual { min-height: 355px; transform: scale(.88); transform-origin: top center; margin-bottom: -35px; }
  .block { width: 178px; height: 115px; }
  .block-b { left: 30%; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid > div, .proof-grid > div:nth-child(even) { border-right: 0; }
  .hash-row { grid-column: auto; }
  .proof-top { align-items: flex-start; flex-direction: column; }
  .manifesto { flex-direction: column; text-align: center; }
  footer { flex-direction: column; text-align: center; }
}

/* Photographic arcade cabinet */
.arcade-site .arcade-page { width: min(100% - 24px, 1180px); }
.arcade-site .reward-banner { width: min(100%, 1080px); }
.arcade-zone {
  width: 100%; display: grid; grid-template-columns: minmax(600px, 760px) minmax(290px, 340px);
  align-items: center; justify-content: center; gap: clamp(16px, 3vw, 38px); margin: 0 auto;
}
.arcade-zone .arcade-machine {
  position: relative; width: 100%; aspect-ratio: 2 / 3; margin: 0; filter: drop-shadow(0 25px 28px rgba(3,44,42,.32));
}
.cabinet-art { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.arcade-zone .arcade-machine .game-stage {
  position: absolute; z-index: 2; top: 14.9%; left: 33.85%; width: 32.3%; height: 37.9%; max-width: none; margin: 0;
}
.arcade-zone .arcade-machine .game-stage > .panel-title { display: none; }
.arcade-zone .arcade-machine .game-card {
  width: 100%; height: 100%; border: 0; border-radius: 0; background: #020807;
  box-shadow: 0 0 18px rgba(85,230,156,.28), inset 0 0 18px rgba(0,0,0,.5);
}
.arcade-zone .arcade-machine .screen-wrap { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 1px; }
.arcade-zone .leaderboard-panel { align-self: center; width: 100%; min-height: 610px; max-height: 760px; }
.receipt-panel.receipt-drawer { margin-top: 28px; }
.machine-marquee, .machine-shell, .control-deck { display: none !important; }

@media (max-width: 960px) {
  .arcade-zone { grid-template-columns: minmax(520px, 680px) minmax(260px, 310px); gap: 12px; }
  .arcade-zone .leaderboard-panel { min-height: 560px; }
}
@media (max-width: 820px) {
  .arcade-zone { display: block; overflow: hidden; }
  .arcade-zone .arcade-machine { width: 900px; height: 820px; margin: 0 0 8px 50%; transform: translateX(-50%); overflow: hidden; aspect-ratio: auto; }
  .arcade-zone .cabinet-art { width: 900px; height: 1350px; max-width: none; }
  .arcade-zone .arcade-machine .game-stage { top: 201px; left: 304px; width: 291px; height: 512px; }
  .arcade-zone .leaderboard-panel { width: min(100% - 12px, 520px); min-height: 470px; margin: 0 auto; }
  .receipt-panel.receipt-drawer { margin-top: 28px; }
}
@media (max-width: 430px) {
  .arcade-site .arcade-page { width: min(100% - 12px, 1180px); }
  .arcade-zone .arcade-machine { height: 790px; }
  .arcade-zone .leaderboard-panel { width: 100%; }
}

/* Scale the in-game overlays to the physical CRT opening. */
.arcade-machine .overlay { padding: 10px; }
.arcade-machine .title-lockup span { font-size: 24px; -webkit-text-stroke-width: 2px; text-shadow: 0 4px 0 #198262, 0 6px 0 var(--outline-dark); }
.arcade-machine .title-lockup strong { margin-top: 8px; font-size: 42px; -webkit-text-stroke-width: 2px; text-shadow: 0 4px 0 #198262, 0 6px 0 var(--outline-dark); }
.arcade-machine .hero-pill { width: 72px; height: 72px; margin: 12px 0 7px; filter: drop-shadow(0 4px 0 rgba(3,44,42,.24)); }
.arcade-machine .tap-card { min-width: 148px; padding: 6px 8px; border-width: 2px; box-shadow: 0 3px 0 var(--outline-dark); }
.arcade-machine .tap-card strong { font-size: 10px; }
.arcade-machine .tap-card small { font-size: 6px; }
.arcade-machine .primary { min-width: 112px; margin-top: 9px; padding: 8px 12px; border-width: 3px; box-shadow: inset -3px -3px 0 #e2a82e, 0 4px 0 var(--outline-dark); font-size: 13px; }
.arcade-machine .controls { margin-top: 8px; font-size: 6px; }
.arcade-machine .sound-toggle { top: 8px; left: 8px; width: 34px; height: 31px; border-width: 2px; font-size: 7px; }
.arcade-machine .score-main { font-size: 34px; -webkit-text-stroke-width: 2px; }
.arcade-machine .mc-main { margin-top: 4px; padding: 3px 6px; font-size: 7px; }
.arcade-machine .coin-hud { top: 8px; right: 8px; min-width: 40px; padding: 3px 5px; border-width: 2px; font-size: 8px; }
.arcade-machine .bonding { right: 7px; bottom: 5px; left: 7px; padding: 3px 6px 4px; border-width: 2px; }
.arcade-machine .bonding-copy { font-size: 6px; }
.arcade-machine .gameover-title { margin-bottom: 8px; font-size: 30px; -webkit-text-stroke-width: 2px; text-shadow: 0 3px 0 #a93742, 0 5px 0 var(--outline-dark); }
.arcade-machine .score-card { width: min(100%, 190px); grid-template-columns: 52px 1fr; gap: 8px; padding: 8px; border-width: 3px; box-shadow: inset -3px -3px 0 #d7dfc7, 0 4px 0 var(--outline-dark); }
.arcade-machine .medal { width: 46px; height: 46px; border-width: 3px; }
.arcade-machine .medal img { width: 40px; height: 40px; }
.arcade-machine .score-lines { gap: 2px; }
.arcade-machine .score-lines span { font-size: 6px; }
.arcade-machine .score-lines strong { font-size: 10px; }
.arcade-machine .rank { margin-top: 7px; padding: 4px 8px; border-width: 2px; box-shadow: 0 3px 0 var(--outline-dark); font-size: 7px; }
.arcade-machine .score-submit { width: min(200px, 96%); margin-top: 5px; }
.arcade-machine .score-submit label { font-size: 5px; }
.arcade-machine .score-submit input { padding: 5px 6px; border-width: 2px; font-size: 7px; }
.arcade-machine .score-submit button { border-width: 2px; padding: 0 8px; font-size: 7px; }
.arcade-machine .score-submit small { margin-top: 3px; font-size: 5px; }
.arcade-machine .game-over > .primary { margin-top: 7px; padding-block: 6px; }

/* Arcade cabinet direction */
.arcade-site {
  color: var(--outline-dark);
  background:
    radial-gradient(circle at 50% 10%, rgba(85, 230, 156, .42), transparent 36%),
    linear-gradient(90deg, rgba(85, 230, 156, .08) 1px, transparent 1px),
    linear-gradient(rgba(85, 230, 156, .08) 1px, transparent 1px),
    var(--cream);
  background-size: auto, 28px 28px, 28px 28px, auto;
}
.arcade-header {
  position: relative; z-index: 20; min-height: 58px; padding: 10px clamp(16px, 4vw, 48px);
  border-bottom: 3px solid var(--outline-dark); background: rgba(255, 252, 233, .92);
  box-shadow: 0 4px 0 rgba(3, 44, 42, .12); backdrop-filter: blur(10px);
}
.arcade-page { width: min(100% - 24px, 1040px); padding: 30px 0 80px; }
.reward-banner {
  position: relative; z-index: 5; width: min(100%, 920px); min-height: 96px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 34px);
  padding: 20px 34px; border: 5px solid var(--outline-dark); border-radius: 48px;
  color: var(--outline-dark); background: var(--cream);
  box-shadow: inset 0 -8px 0 rgba(85, 230, 156, .22), 0 8px 0 var(--outline-dark), 0 18px 45px rgba(3, 44, 42, .18);
  text-align: center;
}
.reward-banner::before, .reward-banner::after { content: ""; width: 12px; height: 12px; flex: 0 0 auto; border: 3px solid var(--outline-dark); background: var(--mint); transform: rotate(45deg); }
.reward-banner span, .reward-banner strong { font-family: "Arial Black", Impact, sans-serif; font-size: clamp(23px, 3.6vw, 43px); line-height: .9; letter-spacing: -.045em; }
.reward-banner strong { color: #198262; }
.arcade-machine { position: relative; width: min(100%, 930px); margin: 0 auto; filter: drop-shadow(0 28px 30px rgba(3, 44, 42, .2)); }
.machine-marquee {
  position: relative; z-index: 3; width: 76%; margin: 0 auto -5px; padding: 21px 28px 18px;
  border: 6px solid var(--outline-dark); border-radius: 38px 38px 11px 11px;
  background: var(--cream); box-shadow: inset 0 -10px 0 #dff7e8, 0 7px 0 #16805f;
  font-family: "Arial Black", Impact, sans-serif; font-size: clamp(42px, 7vw, 72px); line-height: .8;
  letter-spacing: -.07em; text-align: center; transform: perspective(500px) rotateX(-2deg);
}
.machine-marquee span { color: var(--mint); -webkit-text-stroke: 3px var(--outline-dark); paint-order: stroke fill; text-shadow: 0 6px 0 #16805f; }
.machine-marquee strong { margin-left: .12em; color: var(--yellow); -webkit-text-stroke: 3px var(--outline-dark); paint-order: stroke fill; text-shadow: 0 6px 0 #d99f22; }
.machine-shell {
  overflow: hidden; padding: 38px 34px 0; border: 7px solid var(--outline-dark); border-radius: 36px 36px 90px 90px;
  background: linear-gradient(110deg, #6ff0ad, var(--mint) 55%, #3ccc87);
  box-shadow: inset 12px 0 0 rgba(255,255,255,.28), inset -12px 0 0 rgba(3,44,42,.15), 0 12px 0 #16805f;
}
.machine-shell::before { content: ""; position: absolute; z-index: 0; inset: 170px 18px 160px; border: 2px solid rgba(255,255,255,.26); border-radius: 24px; pointer-events: none; }
.play-layout { position: relative; z-index: 1; grid-template-columns: minmax(350px, 1.25fr) minmax(275px, .82fr); gap: 18px; margin: 0; align-items: stretch; }
.arcade-site .game-stage { width: 100%; max-width: 470px; }
.arcade-site .panel-title {
  min-height: 39px; border-width: 4px; border-radius: 8px 8px 0 0; color: var(--cream); background: var(--outline-dark);
}
.arcade-site .panel-title i { border-color: var(--cream); background: var(--yellow); }
.arcade-site .game-card {
  width: 100%; border: 8px solid var(--outline-dark); border-top-width: 5px; border-radius: 0 0 15px 15px;
  background: #061f25; box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 8px 0 #16805f;
}
.arcade-site .screen-wrap { border: 3px solid #081d1c; border-radius: 5px; }
.leaderboard-panel {
  min-height: 0; border: 6px solid var(--outline-dark); border-radius: 13px; background: #073e38;
  box-shadow: inset 0 0 25px rgba(0,0,0,.28), 0 8px 0 #16805f;
}
.leaderboard-panel .panel-title { margin: -6px -6px 0; border: 0; border-bottom: 4px solid var(--mint); border-radius: 8px 8px 0 0; background: var(--outline-dark); }
.payout-strip { padding: 14px; border-bottom: 3px solid var(--mint); color: var(--cream); background: transparent; }
.payout-strip strong { color: var(--yellow); font-size: 22px; }
.payout-strip span { color: var(--mint-light); font-size: 8px; }
.leaderboard-panel .leaderboard-head { padding: 10px 12px; color: var(--mint-light); background: rgba(2, 30, 29, .75); }
.leaderboard-panel .leaderboard-head, .leaderboard-panel .leaderboard-list li { grid-template-columns: 43px 1fr 55px; }
.leaderboard-panel .leaderboard-list li { min-height: 46px; padding: 0 12px; border-color: rgba(156,255,201,.18); color: var(--cream); background: transparent; }
.leaderboard-panel .leaderboard-list li:nth-child(1) { color: var(--outline-dark); background: var(--yellow); }
.leaderboard-panel .leaderboard-list li:nth-child(2) { color: var(--outline-dark); background: #dce8e3; }
.leaderboard-panel .leaderboard-list li:nth-child(3) { color: var(--outline-dark); background: #efb879; }
.leaderboard-panel .leaderboard-list strong { color: var(--mint); }
.leaderboard-panel .leaderboard-list b { font-size: 15px; }
.leaderboard-panel .leaderboard-note { margin-top: auto; color: #bfead5; background: rgba(2, 30, 29, .72); }
.control-deck {
  position: relative; z-index: 2; min-height: 170px; display: flex; align-items: center; justify-content: center; gap: clamp(34px, 8vw, 95px);
  margin: 20px -34px 0; padding: 24px 65px 34px; border-top: 7px solid var(--outline-dark);
  background: linear-gradient(175deg, var(--cream) 0 68%, #d9e4cf 69% 100%);
  box-shadow: inset 0 -8px 0 rgba(3,44,42,.13);
}
.pill-stick { position: relative; width: 78px; height: 94px; display: grid; place-items: end center; }
.pill-stick::after { content: ""; position: absolute; bottom: 0; width: 73px; height: 22px; border: 5px solid var(--outline-dark); border-radius: 50%; background: #16805f; }
.pill-stick span { position: relative; z-index: 1; width: 48px; height: 78px; border: 5px solid var(--outline-dark); border-radius: 24px; background: linear-gradient(var(--mint) 0 49%, var(--cream) 50%); box-shadow: inset -6px -4px 0 rgba(3,44,42,.13), 0 6px 0 rgba(3,44,42,.2); }
.jump-button { width: 118px; height: 64px; display: grid; place-items: center; border: 6px solid var(--outline-dark); border-radius: 50%; background: #b37e18; box-shadow: 0 8px 0 var(--outline-dark); }
.jump-button span { width: 94px; height: 48px; display: grid; place-items: center; border: 3px solid var(--outline-dark); border-radius: 50%; background: var(--yellow); font-family: "Arial Black", Impact, sans-serif; font-size: 18px; }
.cabinet-speaker { display: grid; grid-template-columns: repeat(3, 7px); gap: 7px; }
.cabinet-speaker i { width: 7px; height: 7px; border-radius: 50%; background: var(--outline-dark); }
.control-deck p { margin: 0; font-size: 10px; font-weight: 950; line-height: 1.4; letter-spacing: .12em; }
.receipt-panel.receipt-drawer {
  position: relative; z-index: 4; width: min(84%, 760px); margin: -24px auto 0; border: 6px solid var(--outline-dark); border-radius: 14px 14px 24px 24px;
  background: var(--cream); box-shadow: inset 0 -10px 0 #d9e4cf, 0 13px 0 #16805f, 0 24px 35px rgba(3,44,42,.2);
}
.receipt-drawer::after { content: ""; display: block; width: 130px; height: 16px; margin: 0 auto 14px; border: 5px solid var(--outline-dark); border-radius: 10px; background: #d9e4cf; box-shadow: 0 4px 0 rgba(3,44,42,.2); }
.receipt-panel .panel-title { min-height: 46px; margin: -6px -6px 0; border: 0; border-bottom: 4px solid var(--outline-dark); color: var(--outline-dark); background: var(--mint); }
.receipt-panel .panel-title i { border-color: var(--outline-dark); }
.receipt-grid > div { padding: 14px 16px; }
.receipt-panel > p { font-size: 12px; text-align: center; }
.receipt-panel .proof-actions { justify-content: center; }
.receipt-panel .site-button { box-shadow: 0 4px 0 var(--outline-dark); }

@media (max-width: 760px) {
  .arcade-page { width: min(100% - 16px, 1040px); padding-top: 18px; }
  .reward-banner { min-height: 80px; margin-bottom: 18px; padding: 16px 18px; border-width: 4px; border-radius: 28px; box-shadow: inset 0 -6px 0 rgba(85,230,156,.22), 0 6px 0 var(--outline-dark); }
  .reward-banner::before, .reward-banner::after { display: none; }
  .reward-banner span, .reward-banner strong { font-size: clamp(19px, 7vw, 31px); }
  .machine-marquee { width: 92%; padding: 17px 12px 14px; border-width: 5px; font-size: clamp(37px, 13vw, 58px); }
  .machine-shell { padding: 24px 10px 0; border-width: 5px; border-radius: 24px 24px 52px 52px; }
  .play-layout { grid-template-columns: 1fr; gap: 24px; }
  .arcade-site .game-stage { width: min(100%, 430px); }
  .leaderboard-panel { min-height: 470px; }
  .control-deck { min-height: 130px; gap: 28px; margin: 20px -10px 0; padding: 18px 20px 25px; border-top-width: 5px; }
  .cabinet-speaker { display: none; }
  .pill-stick { transform: scale(.78); }
  .jump-button { transform: scale(.8); }
  .control-deck p { font-size: 8px; }
  .receipt-panel.receipt-drawer { width: 92%; margin-top: -15px; border-width: 5px; }
}
@media (max-width: 430px) {
  .arcade-header .brand { font-size: 12px; }
  .header-proof { max-width: 145px; }
  .reward-banner { flex-direction: column; gap: 4px; }
  .reward-banner span, .reward-banner strong { font-size: 24px; }
  .machine-marquee { font-size: 43px; }
  .control-deck { gap: 12px; }
  .control-deck p { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .rotate-notice {
    position: absolute; z-index: 30; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; padding: 24px;
    color: var(--cream); background: rgba(3, 44, 42, .96); text-align: center;
  }
  .rotate-notice strong { font-family: "Arial Black", Impact, sans-serif; font-size: 24px; }
  .rotate-notice span { max-width: 260px; font-size: 10px; font-weight: 900; opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .graduation-banner.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Hosted arcade shell — the inscribed build in /onchain remains byte-identical. */
.arcade-site {
  background:
    linear-gradient(rgba(5, 44, 44, .94), rgba(5, 44, 44, .94)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(156, 255, 201, .1) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(156, 255, 201, .1) 23px 24px);
}
.arcade-header {
  min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px); border-bottom: 4px solid var(--outline-dark);
  color: var(--outline-dark); background: var(--cream); box-shadow: 0 5px 0 rgba(3, 44, 42, .28);
}
.header-proof {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 3px solid var(--outline-dark); border-radius: 6px; background: var(--mint);
  box-shadow: 0 3px 0 var(--outline-dark); font-size: 9px; font-weight: 950; letter-spacing: .06em;
}
.header-proof .status-dot { background: var(--yellow); }
.arcade-page { width: min(100% - 28px, 1120px); margin: 0 auto; padding: 28px 0 58px; }
.reward-banner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(18px, 2.5vw, 28px); border: 5px solid var(--outline-dark); border-radius: 12px;
  color: var(--outline-dark); background: var(--yellow);
  box-shadow: inset -6px -6px 0 #e2a82e, 9px 10px 0 var(--outline-dark);
}
.reward-banner span { font-size: clamp(13px, 1.8vw, 21px); font-weight: 950; letter-spacing: .05em; }
.reward-banner strong {
  font-family: "Arial Black", Impact, sans-serif; font-size: clamp(26px, 4.2vw, 52px);
  line-height: .9; letter-spacing: -.055em; text-align: center;
}
.reward-banner small { max-width: 145px; font-size: 9px; font-weight: 950; line-height: 1.5; letter-spacing: .08em; text-align: right; }
.play-layout { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 40px; }
.arcade-site .game-stage { justify-self: stretch; width: 100%; }
.panel-title {
  min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 4px solid var(--outline-dark); border-bottom: 0; border-radius: 9px 9px 0 0;
  color: var(--outline-dark); background: var(--mint); font-size: 10px; font-weight: 950; letter-spacing: .1em;
}
.panel-title i { width: 8px; height: 8px; margin-left: auto; border: 2px solid var(--outline-dark); border-radius: 50%; background: var(--yellow); }
.panel-title small { font-size: 8px; }
.arcade-site .game-card {
  width: 100%; border-top-left-radius: 0; border-top-right-radius: 0;
  box-shadow: 0 0 0 3px var(--mint), 0 14px 0 rgba(1, 24, 24, .5), 0 25px 55px rgba(0, 0, 0, .32);
}
.leaderboard-panel {
  overflow: hidden; display: flex; flex-direction: column; min-height: 500px;
  border: 4px solid var(--outline-dark); border-radius: 10px; background: var(--cream);
  box-shadow: 10px 11px 0 var(--outline-dark);
}
.leaderboard-panel .panel-title { margin: -4px -4px 0; border-radius: 10px 10px 0 0; }
.payout-strip { display: flex; align-items: center; gap: 15px; padding: 17px 18px; border-bottom: 4px solid var(--outline-dark); color: var(--outline-dark); background: var(--yellow); }
.payout-strip strong { font-family: "Arial Black", Impact, sans-serif; font-size: 27px; line-height: 1; }
.payout-strip span { font-size: 10px; font-weight: 950; letter-spacing: .07em; }
.leaderboard-panel .leaderboard-list { flex: 1; }
.leaderboard-panel .leaderboard-head, .leaderboard-panel .leaderboard-list li { grid-template-columns: 70px 1fr 84px; }
.leaderboard-panel .leaderboard-list li { min-height: 51px; }
.leaderboard-panel .leaderboard-list li:nth-child(1) { background: #ffd359; }
.leaderboard-panel .leaderboard-list li:nth-child(2) { background: #d9e4df; }
.leaderboard-panel .leaderboard-list li:nth-child(3) { background: #efb879; }
.leaderboard-panel .leaderboard-list li:nth-child(-n+3) strong { color: var(--outline-dark); font-size: 17px; }
.receipt-panel {
  overflow: hidden; margin-top: 50px; border: 4px solid var(--outline-dark); border-radius: 10px;
  color: var(--outline-dark); background: var(--cream); box-shadow: 10px 11px 0 var(--outline-dark);
}
.receipt-panel .panel-title { margin: -4px -4px 0; border-radius: 10px 10px 0 0; }
.receipt-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.receipt-grid > div { min-width: 0; padding: 17px 18px; border-right: 3px solid var(--outline-dark); border-bottom: 3px solid var(--outline-dark); }
.receipt-grid > div:nth-child(4) { border-right: 0; }
.receipt-grid span { display: block; margin-bottom: 7px; color: #47736d; font-size: 8px; font-weight: 950; letter-spacing: .09em; }
.receipt-grid strong { font-family: "Arial Black", Impact, sans-serif; font-size: 14px; }
.receipt-grid strong i { font-style: normal; }
.receipt-grid .receipt-hash { grid-column: 1 / -1; border-right: 0; }
.receipt-hash code { overflow-wrap: anywhere; font-size: 11px; font-weight: 900; line-height: 1.5; }
.receipt-panel > p { margin: 0; padding: 16px 18px 0; color: #41635f; font: 700 13px/1.45 Arial, sans-serif; }
.receipt-panel .proof-actions { padding: 0 18px 20px; }
.score-submit { width: min(300px, 92%); }
.score-submit .score-fields { display: grid; grid-template-columns: 1fr 76px; gap: 5px; }
.score-submit .score-fields input:first-child { grid-column: 1; }
.score-submit .score-fields input:nth-child(2) { grid-column: 1; }
.score-submit .score-fields button { grid-column: 2; grid-row: 1 / 3; }
.score-submit input { text-transform: none; }
.score-submit #playerName { text-transform: uppercase; }
.arcade-site .game-over { padding: 18px 20px; }
.arcade-site .gameover-title { margin-bottom: 15px; font-size: 44px; }
.arcade-site .score-card { padding: 12px 15px; }
.arcade-site .rank { margin-top: 12px; }
.arcade-site .game-over > .primary { margin-top: 10px; padding-block: 9px; }

@media (max-width: 820px) {
  .reward-banner { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .reward-banner small { max-width: none; text-align: center; }
  .play-layout { grid-template-columns: 1fr; }
  .arcade-site .game-stage { width: min(100%, 420px); margin: 0 auto; }
  .leaderboard-panel { min-height: 470px; }
  .receipt-grid { grid-template-columns: 1fr 1fr; }
  .receipt-grid > div:nth-child(2) { border-right: 0; }
  .receipt-grid > div:nth-child(4) { border-right: 0; }
}
@media (max-width: 520px) {
  .arcade-header { min-height: 56px; padding-inline: 12px; }
  .header-proof { max-width: 160px; font-size: 7px; }
  .arcade-page { width: min(100% - 20px, 1120px); padding-top: 18px; }
  .reward-banner { border-width: 4px; box-shadow: inset -4px -4px 0 #e2a82e, 6px 7px 0 var(--outline-dark); }
  .reward-banner strong { font-size: 31px; }
  .play-layout { gap: 30px; margin-top: 28px; }
  .leaderboard-panel, .receipt-panel { box-shadow: 6px 7px 0 var(--outline-dark); }
  .leaderboard-panel .leaderboard-head, .leaderboard-panel .leaderboard-list li { grid-template-columns: 52px 1fr 64px; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-grid > div, .receipt-grid > div:nth-child(2), .receipt-grid > div:nth-child(4) { border-right: 0; }
  .receipt-grid .receipt-hash { grid-column: auto; }
  .receipt-panel .proof-actions { display: grid; }
  .receipt-panel .site-button { width: 100%; }
}

/* Final cabinet precedence */
.arcade-site .arcade-page { width: min(100% - 24px, 1040px); padding: 30px 0 80px; }
.arcade-site .reward-banner {
  width: min(100%, 920px); min-height: 96px; margin: 0 auto 22px;
  display: flex; grid-template-columns: none; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 34px);
  padding: 20px 34px; border: 5px solid var(--outline-dark); border-radius: 48px;
  background: var(--cream); box-shadow: inset 0 -8px 0 rgba(85,230,156,.22), 0 8px 0 var(--outline-dark), 0 18px 45px rgba(3,44,42,.18);
}
.arcade-site .reward-banner span, .arcade-site .reward-banner strong { font-size: clamp(23px, 3.6vw, 43px); }
.arcade-site .reward-banner b { color: var(--outline-dark); font-family: "Arial Black", Impact, sans-serif; font-size: clamp(24px, 4vw, 46px); line-height: 1; }
.arcade-site .play-layout { grid-template-columns: minmax(350px, 1.25fr) minmax(275px, .82fr); gap: 18px; margin: 0; align-items: stretch; }
.arcade-site .game-stage { width: 100%; max-width: 470px; margin: 0; }
.arcade-site .panel-title { color: var(--cream); background: var(--outline-dark); }
.arcade-site .game-card { border: 8px solid var(--outline-dark); border-top-width: 5px; border-radius: 0 0 15px 15px; box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 8px 0 #16805f; }
.arcade-site .leaderboard-panel { min-height: 0; border: 6px solid var(--outline-dark); border-radius: 13px; background: #073e38; box-shadow: inset 0 0 25px rgba(0,0,0,.28), 0 8px 0 #16805f; }
.arcade-site .leaderboard-panel .panel-title { margin: -6px -6px 0; border: 0; border-bottom: 4px solid var(--mint); }
.arcade-site .payout-strip { padding: 14px; border-bottom: 3px solid var(--mint); color: var(--cream); background: transparent; }
.arcade-site .payout-strip strong { color: var(--yellow); font-size: 22px; }
.arcade-site .payout-strip span { color: var(--mint-light); font-size: 8px; }
.arcade-site .leaderboard-panel .leaderboard-head, .arcade-site .leaderboard-panel .leaderboard-list li { grid-template-columns: 43px 1fr 55px; }
.arcade-site .leaderboard-panel .leaderboard-list li { min-height: 46px; padding: 0 12px; color: var(--cream); background: transparent; }
.arcade-site .leaderboard-panel .leaderboard-list li:nth-child(1) { color: var(--outline-dark); background: var(--yellow); }
.arcade-site .leaderboard-panel .leaderboard-list li:nth-child(2) { color: var(--outline-dark); background: #dce8e3; }
.arcade-site .leaderboard-panel .leaderboard-list li:nth-child(3) { color: var(--outline-dark); background: #efb879; }
.arcade-site .leaderboard-panel .leaderboard-note { color: #bfead5; background: rgba(2,30,29,.72); }
.arcade-site .receipt-panel.receipt-drawer { width: min(84%, 760px); margin: -24px auto 0; border: 6px solid var(--outline-dark); border-radius: 14px 14px 24px 24px; box-shadow: inset 0 -10px 0 #d9e4cf, 0 13px 0 #16805f, 0 24px 35px rgba(3,44,42,.2); }
.arcade-site .receipt-panel .panel-title { margin: -6px -6px 0; color: var(--outline-dark); background: var(--mint); }

@media (max-width: 820px) {
  .arcade-site .play-layout { grid-template-columns: 1fr; gap: 24px; margin: 0; }
  .arcade-site .game-stage { width: min(100%, 430px); margin: 0 auto; }
  .arcade-site .leaderboard-panel { min-height: 470px; }
}
@media (max-width: 520px) {
  .arcade-site .arcade-page { width: min(100% - 16px, 1040px); padding-top: 18px; }
  .arcade-site .reward-banner { min-height: 80px; flex-direction: column; gap: 4px; padding: 16px 18px; border-width: 4px; border-radius: 28px; background: var(--cream); box-shadow: inset 0 -6px 0 rgba(85,230,156,.22), 0 6px 0 var(--outline-dark); }
  .arcade-site .reward-banner span, .arcade-site .reward-banner strong { font-size: 24px; }
  .arcade-site .reward-banner b { display: none; }
  .arcade-site .receipt-panel.receipt-drawer { width: 92%; margin-top: -15px; border-width: 5px; box-shadow: inset 0 -10px 0 #d9e4cf, 0 10px 0 #16805f, 0 18px 28px rgba(3,44,42,.18); }
}

/* Photographic cabinet wins over the earlier CSS-drawn prototype. */
.arcade-site .arcade-page { width: min(100% - 24px, 1180px); }
.arcade-site .reward-banner { width: min(100%, 1080px); }
.arcade-site .arcade-zone { width: 100%; display: grid; grid-template-columns: minmax(600px, 760px) minmax(290px, 340px); align-items: center; justify-content: center; gap: clamp(16px, 3vw, 38px); margin: 0 auto; }
.arcade-site .arcade-zone .arcade-machine { position: relative; width: 100%; aspect-ratio: 2 / 3; margin: 0; filter: drop-shadow(0 25px 28px rgba(3,44,42,.32)); }
.arcade-site .cabinet-art { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.arcade-site .arcade-zone .arcade-machine .game-stage { position: absolute; z-index: 2; top: 14.9%; left: 33.85%; width: 32.3%; height: 37.9%; max-width: none; margin: 0; }
.arcade-site .arcade-zone .arcade-machine .game-stage > .panel-title { display: none; }
.arcade-site .arcade-zone .arcade-machine .game-card { width: 100%; height: 100%; border: 0; border-radius: 0; background: #020807; box-shadow: 0 0 18px rgba(85,230,156,.28), inset 0 0 18px rgba(0,0,0,.5); }
.arcade-site .arcade-zone .arcade-machine .screen-wrap { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 1px; }
.arcade-site .arcade-zone .leaderboard-panel { align-self: center; width: 100%; min-height: 610px; max-height: 760px; }
.arcade-site .receipt-panel.receipt-drawer { margin-top: 28px; }
.arcade-site .machine-marquee, .arcade-site .machine-shell, .arcade-site .control-deck { display: none !important; }

@media (max-width: 960px) {
  .arcade-site .arcade-zone { grid-template-columns: minmax(520px, 680px) minmax(260px, 310px); gap: 12px; }
  .arcade-site .arcade-zone .leaderboard-panel { min-height: 560px; }
}
@media (max-width: 820px) {
  .arcade-site .arcade-zone { display: block; overflow: hidden; }
  .arcade-site .arcade-zone .arcade-machine { width: 900px; height: 820px; margin: 0 0 8px 50%; transform: translateX(-50%); overflow: hidden; aspect-ratio: auto; }
  .arcade-site .arcade-zone .cabinet-art { width: 900px; height: 1350px; max-width: none; }
  .arcade-site .arcade-zone .arcade-machine .game-stage { top: 201px; left: 304px; width: 291px; height: 512px; }
  .arcade-site .arcade-zone .leaderboard-panel { width: min(100% - 12px, 520px); min-height: 470px; margin: 0 auto; }
  .arcade-site .receipt-panel.receipt-drawer { margin-top: 28px; }
}
@media (max-width: 430px) {
  .arcade-site .arcade-page { width: min(100% - 12px, 1180px); }
  .arcade-site .arcade-zone .arcade-machine { height: 790px; }
  .arcade-site .arcade-zone .leaderboard-panel { width: 100%; }
}

/* One coherent vintage arcade environment */
.arcade-site {
  background-color: #071b19;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(85,230,156,.12), transparent 46%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(93deg, rgba(0,0,0,.07) 0 2px, transparent 2px 9px);
  color: var(--cream);
}
.arcade-site::before {
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, transparent 42%, rgba(0,0,0,.48) 100%);
}
.arcade-site .arcade-header {
  border-color: #020e0d; color: var(--cream); background: rgba(5,22,20,.96);
  box-shadow: inset 0 -1px 0 rgba(156,255,201,.16), 0 4px 16px rgba(0,0,0,.45);
}
.arcade-site .arcade-header .brand-pill { border-color: var(--cream); }
.arcade-site .header-proof {
  border-color: #020e0d; color: var(--outline-dark); background: var(--mint);
  box-shadow: inset -3px -3px 0 #2dbb76, 0 3px 0 #020e0d;
}
.arcade-site .reward-banner {
  position: relative; overflow: hidden; min-height: 108px; border: 8px solid #02110f; border-radius: 9px;
  color: #102d28; background:
    repeating-linear-gradient(0deg, rgba(3,44,42,.035) 0 1px, transparent 1px 4px),
    linear-gradient(#fffdeb, #eee8c9);
  box-shadow: inset 0 0 0 4px #d4cda8, inset 0 -12px 22px rgba(60,52,18,.12), 0 8px 0 #020e0d, 0 22px 45px rgba(0,0,0,.4);
  transform: rotate(-.18deg);
}
.arcade-site .reward-banner::before, .arcade-site .reward-banner::after {
  width: 13px; height: 13px; border: 3px solid #142a26; border-radius: 50%; background: #827d66;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.35); transform: none;
}
.arcade-site .reward-banner span, .arcade-site .reward-banner strong, .arcade-site .reward-banner b { text-shadow: 0 2px 0 rgba(255,255,255,.6); }
.arcade-site .arcade-zone { align-items: center; }

.arcade-site .arcade-zone .leaderboard-panel {
  position: relative; overflow: hidden; min-height: 660px; max-height: 780px;
  border: 12px solid #ece5c6; border-radius: 8px; color: #f7f1d8;
  background:
    repeating-linear-gradient(0deg, rgba(156,255,201,.035) 0 1px, transparent 1px 4px),
    #041b18;
  box-shadow:
    0 0 0 5px #183c35,
    0 0 0 9px #020e0d,
    inset 0 0 38px rgba(0,0,0,.72),
    14px 18px 28px rgba(0,0,0,.38);
  transform: rotate(.45deg);
}
.arcade-site .arcade-zone .leaderboard-panel::before,
.arcade-site .arcade-zone .leaderboard-panel::after {
  content: ""; position: absolute; z-index: 9; top: 7px; width: 9px; height: 9px;
  border: 2px solid #152b27; border-radius: 50%; background: #8c8770; box-shadow: inset 1px 1px 0 #e9e1bf;
}
.arcade-site .arcade-zone .leaderboard-panel::before { left: 7px; }
.arcade-site .arcade-zone .leaderboard-panel::after { right: 7px; }
.arcade-site .leaderboard-panel .panel-title {
  min-height: 74px; margin: 0; padding: 15px 23px; border: 0; border-bottom: 7px solid #020e0d;
  border-radius: 0; color: #11362f;
  background:
    repeating-linear-gradient(0deg, rgba(3,44,42,.035) 0 1px, transparent 1px 4px),
    linear-gradient(#fffdeb, #e9e1bf);
  box-shadow: inset 0 -5px 0 #c7bea0;
}
.arcade-site .leaderboard-panel .panel-title span {
  font-family: "Arial Black", Impact, sans-serif; font-size: 25px; letter-spacing: -.04em;
  text-shadow: 0 2px 0 white;
}
.arcade-site .leaderboard-panel .panel-title i { border-color: #173d36; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.arcade-site .leaderboard-panel .panel-title small { color: #25594e; }
.arcade-site .payout-strip {
  padding: 17px 16px; border-bottom: 5px solid #020e0d; color: #102c27;
  background: repeating-linear-gradient(0deg, rgba(90,60,0,.04) 0 1px, transparent 1px 4px), var(--yellow);
  box-shadow: inset 0 -6px 0 #d7a82f;
}
.arcade-site .payout-strip strong { color: #102c27; font-size: 27px; text-shadow: 0 2px 0 rgba(255,255,255,.5); }
.arcade-site .payout-strip span { color: #27483f; font-size: 8px; }
.arcade-site .leaderboard-panel .leaderboard-head {
  padding: 12px 14px; border-bottom: 2px solid rgba(85,230,156,.45); color: var(--mint-light); background: #02110f;
}
.arcade-site .leaderboard-panel .leaderboard-list li {
  min-height: 49px; padding: 0 14px; border-bottom: 1px solid rgba(156,255,201,.16);
  color: #dff7e8; background: rgba(3,44,42,.42); text-shadow: 0 1px 0 #000;
}
.arcade-site .leaderboard-panel .leaderboard-list li:nth-child(1) { color: #102c27; background: linear-gradient(90deg, #ffd359, #f3c044); text-shadow: none; box-shadow: inset 0 -4px 0 #d8a52c; }
.arcade-site .leaderboard-panel .leaderboard-list li:nth-child(2) { color: #102c27; background: linear-gradient(90deg, #e9ece5, #c9d3cc); text-shadow: none; box-shadow: inset 0 -4px 0 #a9b4ad; }
.arcade-site .leaderboard-panel .leaderboard-list li:nth-child(3) { color: #102c27; background: linear-gradient(90deg, #efb879, #cf8c53); text-shadow: none; box-shadow: inset 0 -4px 0 #a7683d; }
.arcade-site .leaderboard-panel .leaderboard-list strong,
.arcade-site .leaderboard-panel .leaderboard-list b { font-family: "Arial Black", Impact, sans-serif; }
.arcade-site .leaderboard-panel .leaderboard-list b { letter-spacing: .03em; }
.arcade-site .leaderboard-panel .leaderboard-note {
  padding: 15px 12px; border-top: 3px solid #020e0d; color: #8fffc2; background: #02110f;
  font-size: 8px; letter-spacing: .1em; text-shadow: 0 0 7px rgba(85,230,156,.45);
}

.arcade-site .receipt-panel.receipt-drawer {
  width: min(90%, 900px); margin-top: 42px; border: 10px solid #173d36; border-radius: 5px;
  color: #1b342f; background:
    repeating-linear-gradient(0deg, rgba(75,64,30,.04) 0 1px, transparent 1px 4px),
    #f1ebd1;
  box-shadow: 0 0 0 5px #020e0d, 12px 16px 0 rgba(0,0,0,.28), inset 0 0 24px rgba(82,63,20,.1);
  transform: rotate(-.22deg);
}
.arcade-site .receipt-panel .panel-title {
  margin: 0; border: 0; border-bottom: 5px double #294b44; border-radius: 0; color: #1e4038; background: transparent;
}
.arcade-site .receipt-panel .panel-title span { font-family: "Courier New", monospace; font-size: 15px; letter-spacing: .09em; }
.arcade-site .receipt-grid > div { border-color: #294b44; }
.arcade-site .receipt-panel .site-button { border-radius: 2px; box-shadow: 0 4px 0 #102c27; }
.arcade-site .receipt-panel .site-button-primary { background: var(--mint); }

@media (max-width: 820px) {
  .arcade-site .arcade-zone .leaderboard-panel { min-height: 530px; margin-top: 24px; transform: none; }
  .arcade-site .receipt-panel.receipt-drawer { width: calc(100% - 18px); transform: none; }
}
