:root {
  --stage-w: 1920;
  --stage-h: 1080;
  --stage-scale: 1;
  --ink: #0e0b07;
  --paper: #d2bd91;
  --paper-light: #f4e2b8;
  --bone: #fff0cc;
  --brass: #d4b875;
  --brass-dark: #8b7145;
  --wine: #68241f;
  --olive: #4f5a43;
  --glass: rgba(18, 14, 10, 0.66);
  --line: rgba(255, 240, 204, 0.34);
  --mx: 50vw;
  --my: 50vh;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow: hidden;
  background: #080704;
  color: var(--bone);
  font-family: "Special Elite", "Courier New", monospace;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 30;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 11px 11px, 4px 4px;
  animation: grain .9s steps(2) infinite;
}

.glass {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
    var(--glass);
  box-shadow:
    0 24px 70px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.45);
  backdrop-filter: blur(18px) saturate(1.2);
}

.topbar {
  position: fixed;
  top: clamp(14px, 2vh, 28px);
  left: clamp(18px, 3vw, 54px);
  right: clamp(18px, 3vw, 54px);
  z-index: 50;
  height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr minmax(190px, 260px);
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: "Rye", Georgia, serif;
  font-size: clamp(20px, 1.45vw, 28px);
  line-height: .9;
  text-transform: uppercase;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(246,234,208,.35);
  filter: sepia(.25) contrast(1.1);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(8px, .8vw, 16px);
}

.nav button,
.primary-action,
.ghost-action,
.copy-action,
.home-socials a,
.ca-docket a,
.link-grid a,
.buy-links a,
.board-header a {
  border: 1px solid rgba(246,234,208,.32);
  color: var(--bone);
  background: rgba(12,10,7,.68);
  text-transform: uppercase;
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.nav button {
  min-width: clamp(76px, 6.2vw, 116px);
  padding: 13px 14px 11px;
  border-radius: 999px;
  font-size: clamp(11px, .72vw, 13px);
}

.nav button:hover,
.nav button.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light), var(--brass));
  box-shadow: 0 14px 32px rgba(212,184,117,.22);
}

.scrollport {
  position: relative;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.scrollport::-webkit-scrollbar { display: none; }

.track {
  display: flex;
  height: 100%;
}

.scene {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  background: #090705;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--stage-w) * 1px);
  height: calc(var(--stage-h) * 1px);
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center center;
  overflow: hidden;
}

.real-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: brightness(.76) saturate(.88) contrast(1.12);
}

.hero-bg { background-image: url("assets/hero-case-board.png"); }
.evidence-bg { background-image: url("assets/evidence-board.png"); }
.home-bg {
  background-image: url("assets/hero-home-board.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.84) saturate(.94) contrast(1.08);
}
.soft { filter: blur(.6px) saturate(.82) brightness(.74) contrast(1.08); transform: scale(1.02); }
.blur { filter: blur(2px) brightness(.5) contrast(1.1); transform: scale(1.025); }

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 40rem, rgba(0,0,0,.16) 56rem),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 44%, rgba(0,0,0,.25));
}

.wanted-poster,
.case-sheet {
  position: absolute;
  z-index: 3;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow:
    0 1px 0 rgba(255,240,204,.72),
    0 0 2px rgba(255,240,204,.56);
}

.wanted-poster {
  left: 115px;
  top: 150px;
  width: 785px;
  min-height: 640px;
  padding: 0;
  transform: rotate(-1deg);
  background: transparent;
  border: 0;
  box-shadow: none;
  clip-path: none;
}

.rubber-stamp {
  display: inline-block;
  padding: 8px 16px 5px;
  border: 4px double rgba(132,24,18,.9);
  color: rgba(146,26,20,.96);
  transform: rotate(-4deg);
  font-family: "Rye", Georgia, serif;
  font-size: 34px;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255,226,176,.72),
    0 0 8px rgba(146,26,20,.22);
}

.rubber-stamp.small {
  font-size: 22px;
  border-width: 3px;
}

.wanted-poster h1,
.case-sheet h2,
.chart-board h2 {
  margin: 20px 0 12px;
  font-family: "Rye", Georgia, serif;
  font-size: 112px;
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #060402;
  text-shadow:
    0 1px 0 rgba(255,238,196,.78),
    0 2px 2px rgba(70,37,20,.18);
}

.wanted-poster h1 {
  font-size: 104px;
}

.poster-subtitle {
  display: inline-block;
  margin: 0 0 20px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 20px;
}

.ticker-row span {
  font-family: "Rye", Georgia, serif;
  font-size: 58px;
}

.ticker-row small {
  padding: 0;
  border: 0;
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-copy,
.lead,
.case-sheet p {
  color: #100a06;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  text-shadow:
    0 1px 0 rgba(255,240,204,.58),
    0 0 1px rgba(255,240,204,.45);
}

.intro-copy {
  max-width: 550px;
  margin: 0 0 26px;
}

.hero-actions,
.buy-links {
  display: flex;
  gap: 16px;
}

.home-trade-panel {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.home-ca-field {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 150px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px dashed rgba(60,31,24,.42);
  color: #100a06;
  background: rgba(40,23,14,.14);
}

.home-ca-field > div {
  min-height: 56px;
  display: grid;
  align-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(60,31,24,.34);
  border-radius: 7px;
  background: rgba(246,234,208,.12);
}

.home-ca-field span {
  display: block;
  margin-bottom: 4px;
  color: #7c241f;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-ca-field strong {
  display: block;
  overflow: hidden;
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ca-field .copy-action {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light), var(--brass));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.home-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-socials a {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--bone);
  background: rgba(14,11,7,.82);
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
}

.home-socials a[aria-disabled="true"] {
  opacity: .58;
  pointer-events: none;
}

.primary-action,
.ghost-action,
.copy-action {
  min-height: 72px;
  padding: 0 30px;
  border-radius: 7px;
  font-size: 18px;
}

.primary-action,
.copy-action {
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light), var(--brass));
}

.primary-action:hover,
.ghost-action:hover,
.copy-action:hover,
.home-socials a:hover,
.ca-docket a:hover,
.link-grid a:hover,
.buy-links a:hover,
.board-header a:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,.35);
}

.hero-token-strip {
  position: absolute;
  z-index: 4;
  left: 785px;
  bottom: 82px;
  width: 820px;
  min-height: 130px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
}

.hero-token-strip div {
  padding: 22px 24px;
  background: rgba(14,11,7,.54);
}

.hero-token-strip small,
.stat-grid span {
  display: block;
  margin-bottom: 9px;
  color: rgba(246,234,208,.68);
  font-family: "Roboto Mono", monospace;
  text-transform: uppercase;
  font-weight: 900;
}

.hero-token-strip strong {
  display: block;
  color: var(--paper-light);
  font-family: "Rye", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.case-sheet { padding: 0; }

.token-brief {
  left: 560px;
  top: 238px;
  width: 780px;
  max-height: 510px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8a241f;
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,226,176,.58);
}

.case-sheet h2 {
  font-size: 62px;
}

.token-brief h2 {
  margin: 12px 0 10px;
  font-size: 54px;
  line-height: .88;
}

.lead {
  max-width: 730px;
  margin: 0 0 28px;
}

.token-brief .lead {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.28;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 18px;
}

.token-brief .stat-grid {
  gap: 8px;
  margin: 16px 0 10px;
}

.stat-grid section {
  min-height: 112px;
  padding: 14px 12px;
  border: 0;
  background: transparent;
}

.token-brief .stat-grid section {
  min-height: 74px;
  padding: 8px 8px 6px 0;
}

.stat-grid strong {
  display: block;
  font-family: "Rye", Georgia, serif;
  font-size: 28px;
  line-height: 1.05;
}

.token-brief .stat-grid span {
  margin-bottom: 6px;
  color: #7c241f;
  font-size: 15px;
}

.token-brief .stat-grid strong {
  font-size: 25px;
  line-height: .98;
}

.brief-list {
  display: grid;
  gap: 10px;
}

.token-brief .brief-list {
  gap: 4px;
}

.brief-list p {
  margin: 0;
  padding: 10px 0 8px 16px;
  border-left: 5px solid var(--wine);
  background: transparent;
}

.token-brief .brief-list p {
  padding: 6px 0 5px 12px;
  border-left-width: 4px;
  font-size: 19px;
  line-height: 1.22;
}

.ca-docket {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 130px 112px 132px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 2px dashed rgba(60,31,24,.42);
  background: rgba(40,23,14,.14);
}

.ca-docket > div {
  min-height: 50px;
  display: grid;
  align-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(60,31,24,.34);
  border-radius: 7px;
  background: rgba(246,234,208,.1);
}

.ca-docket span {
  display: block;
  margin-bottom: 4px;
  color: var(--wine);
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.ca-docket strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-docket .copy-action,
.ca-docket a {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light), var(--brass));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.ca-docket a {
  display: grid;
  place-items: center;
}

.ca-docket .copy-action {
  min-height: 50px;
  padding: 0 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.lore-sheet {
  left: 535px;
  top: 222px;
  width: 830px;
  min-height: 500px;
  transform: rotate(.3deg);
}

.lore-sheet h2 {
  max-width: 780px;
  font-size: 58px;
}

.lore-sheet .lead {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 20px;
  line-height: 1.32;
}

.lore-sheet p:not(.eyebrow) {
  max-width: 780px;
  margin: 0 0 17px;
  font-size: 20px;
  line-height: 1.34;
}

.roadmap-board {
  left: 550px;
  top: 185px;
  width: 780px;
  min-height: 650px;
}

.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 34px;
}

.roadmap-cards section {
  min-height: 190px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.roadmap-cards span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 4px solid rgba(20,14,9,.75);
  border-radius: 50%;
  font-family: "Rye", Georgia, serif;
  font-size: 38px;
}

.roadmap-cards h3,
.link-grid a {
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-cards h3 {
  margin: 0 0 14px;
  font-size: 23px;
}

.roadmap-cards p {
  margin: 0;
}

.chart-board {
  position: absolute;
  z-index: 4;
  left: 140px;
  top: 142px;
  width: 1640px;
  height: 830px;
  padding: 32px;
  border-radius: 12px;
}

.board-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-board h2 {
  margin: 0;
  font-size: 72px;
}

.board-header a {
  min-width: 180px;
  min-height: 62px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.chart-frame {
  position: relative;
  height: calc(100% - 120px);
  overflow: hidden;
  border: 2px solid rgba(246,234,208,.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7,7,6,.94), rgba(35,29,20,.84)),
    repeating-linear-gradient(0deg, rgba(244,226,184,.07) 0 1px, transparent 1px 22px);
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.chart-frame.is-live iframe { opacity: 1; }

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: var(--paper-light);
  text-align: center;
}

.chart-placeholder b {
  font-family: "Rye", Georgia, serif;
  font-size: 58px;
  text-transform: uppercase;
}

.chart-placeholder span { font-size: 22px; }
.chart-frame.is-live .chart-placeholder { display: none; }

.final-board {
  left: 510px;
  top: 185px;
  width: 900px;
  min-height: 690px;
  text-align: center;
}

.final-board blockquote {
  max-width: 1040px;
  margin: 38px auto 44px;
  font-size: 42px;
  line-height: 1.3;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.link-grid a {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(16,12,8,.82);
}

.game-panel {
  position: absolute;
  z-index: 4;
  left: 112px;
  top: 118px;
  width: 1696px;
  height: 862px;
  padding: 22px;
}

.arcade-panel {
  border: 1px solid rgba(246,234,208,.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02)),
    rgba(8,7,5,.72);
  box-shadow:
    0 34px 90px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 0 0 1px rgba(212,184,117,.08);
  backdrop-filter: blur(20px) saturate(1.25);
}

.game-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 4px 16px;
}

.game-header h2 {
  margin: 0;
  color: var(--paper-light);
  font-family: "Rye", Georgia, serif;
  font-size: 62px;
  line-height: .92;
  text-shadow: 0 8px 30px rgba(0,0,0,.62);
  text-transform: uppercase;
}

.game-scorebar {
  min-width: 520px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(246,234,208,.22);
  border-radius: 12px;
  background: rgba(12,10,7,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.game-scorebar div {
  min-height: 76px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-left: 1px solid rgba(246,234,208,.14);
  text-align: center;
}

.game-scorebar div:first-child {
  border-left: 0;
}

.game-scorebar span,
.game-controls span,
.game-controls i {
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
}

.game-scorebar span {
  color: rgba(246,234,208,.62);
  font-size: 12px;
}

.game-scorebar strong {
  color: var(--brass);
  font-family: "Rye", Georgia, serif;
  font-size: 34px;
  line-height: .9;
  text-shadow: 0 0 20px rgba(212,184,117,.2);
}

.game-shell {
  position: relative;
  height: calc(100% - 146px);
  overflow: hidden;
  border: 1px solid rgba(246,234,208,.24);
  border-radius: 14px;
  background: #080706;
  box-shadow:
    0 28px 70px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 80px rgba(212,184,117,.08);
}

.game-shell::before,
.game-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.game-shell::before {
  background:
    radial-gradient(circle at 52% 18%, rgba(255,232,166,.16), transparent 18rem),
    radial-gradient(circle at 22% 72%, rgba(104,36,31,.2), transparent 16rem),
    linear-gradient(180deg, transparent 65%, rgba(0,0,0,.34));
  mix-blend-mode: screen;
}

.game-shell::after {
  background:
    linear-gradient(transparent 0 50%, rgba(255,255,255,.035) 50% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(0,0,0,.4) 100%);
  background-size: 100% 4px, 100% 100%;
  opacity: .52;
}

#sackGame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: none;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 48px;
  color: var(--paper-light);
  text-align: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(212,184,117,.22), transparent 16rem),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.34), rgba(0,0,0,.78));
}

.game-overlay.is-hidden {
  display: none;
}

.game-overlay small {
  color: var(--brass);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-overlay b {
  max-width: 820px;
  font-family: "Rye", Georgia, serif;
  font-size: 62px;
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 16px 46px rgba(0,0,0,.7);
}

.game-overlay span {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(246,234,208,.82);
  font-size: 22px;
  line-height: 1.35;
}

.game-overlay button {
  min-width: 210px;
  min-height: 64px;
  justify-self: center;
  border: 1px solid rgba(246,234,208,.4);
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light), var(--brass));
  box-shadow:
    0 20px 48px rgba(0,0,0,.34),
    0 0 34px rgba(212,184,117,.18);
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
}

.game-controls {
  height: 42px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  color: rgba(246,234,208,.7);
}

.game-controls span {
  color: var(--brass);
  font-size: 11px;
}

.game-controls i {
  font-size: 12px;
  font-style: normal;
}

.game-panel {
  left: 118px;
  top: 126px;
  width: 1684px;
  height: 846px;
  padding: 20px;
}

.arcade-panel {
  border-color: rgba(246,234,208,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    rgba(12,9,5,.82);
}

.game-header {
  height: 96px;
  padding-bottom: 14px;
}

.game-header h2 {
  font-size: 56px;
}

.game-scorebar {
  min-width: 500px;
  border-color: rgba(28,22,13,.4);
  background:
    linear-gradient(180deg, rgba(196,165,104,.28), rgba(112,80,48,.24)),
    rgba(12,10,7,.58);
}

.game-scorebar div {
  min-height: 68px;
}

.game-scorebar span {
  color: rgba(246,234,208,.7);
}

.game-scorebar strong {
  color: #f0d386;
  font-family: "Roboto Mono", monospace;
  font-size: 30px;
}

.game-shell {
  height: calc(100% - 138px);
  border: 1px solid rgba(246,234,208,.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(240,211,134,.16), transparent 24rem),
    linear-gradient(180deg, rgba(22,17,12,.96), rgba(7,5,4,.98));
  box-shadow:
    0 28px 70px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(246,234,208,.12),
    inset 0 0 64px rgba(0,0,0,.34);
}

.game-shell::before {
  background:
    radial-gradient(circle at 24% 24%, rgba(104,36,31,.22), transparent 18rem),
    radial-gradient(circle at 82% 20%, rgba(212,184,117,.18), transparent 16rem),
    linear-gradient(180deg, transparent 68%, rgba(0,0,0,.38));
  mix-blend-mode: screen;
}

.game-shell::after {
  background:
    linear-gradient(transparent 0 50%, rgba(255,255,255,.035) 50% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0,0,0,.42) 100%);
  background-size: 100% 5px, 100% 100%;
  opacity: .46;
}

#sackGame {
  cursor: pointer;
}

.game-overlay {
  background:
    radial-gradient(circle at 50% 50%, rgba(212,184,117,.22), transparent 18rem),
    rgba(8,6,4,.76);
}

.game-overlay b {
  font-size: 58px;
}

.game-controls {
  height: 42px;
}

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 56;
  height: 5px;
  background: rgba(246,234,208,.1);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--brass), var(--paper-light));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  min-width: 190px;
  padding: 15px 22px 12px;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light), var(--brass));
  font-family: "Roboto Mono", monospace;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.parallax { will-change: transform; }

@keyframes grain {
  0% { transform: translate(0,0); }
  50% { transform: translate(-1%,1%); }
  100% { transform: translate(1%,-1%); }
}

@media (max-aspect-ratio: 16/10) {
  .topbar {
    height: 74px;
    grid-template-columns: 210px 1fr 210px;
  }

  .nav button { min-width: 70px; padding-inline: 10px; }
}

@media (max-width: 1180px) {
  .topbar {
    left: 14px;
    right: 14px;
    grid-template-columns: 150px 1fr 150px;
  }

  .brand-mark img { width: 44px; height: 44px; }
  .nav { gap: 5px; }
  .nav button { min-width: 58px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
