:root {
  color-scheme: dark;
  --bg: #3c1a47;
  --panel: #24102c;
  --panel-2: #32163b;
  --ink: #efe5d6;
  --muted: #c5accd;
  --line: rgba(182, 255, 0, 0.26);
  --accent: #b6ff00;
  --cyan: #42f4ff;
  --pink: #ff4fab;
  --green: #b6ff00;
  --blue: #78a7ff;
  --danger: #ff4f63;
  --shadow: 5px 5px 0 rgba(13, 3, 18, 0.96);
  --radius: 2px;
  --pixel-border: 2px solid rgba(182, 255, 0, 0.82);
  --pixel-font: "Black Han Sans", "Gowun Dodum", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(182, 255, 0, 0.055), transparent 28%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #3c1a47 0%, #2b1234 100%);
  color: var(--ink);
  font-family: "Gowun Dodum", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(60, 26, 71, 0.08), rgba(13, 3, 18, 0.5));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 54%, rgba(0, 0, 0, 0.22) 100%),
    repeating-linear-gradient(115deg, rgba(182, 255, 0, 0.018) 0 1px, transparent 1px 17px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-frame {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: var(--pixel-border);
  background: rgba(60, 26, 71, 0.94);
  box-shadow: 0 5px 0 rgba(13, 3, 18, 0.74);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: var(--pixel-border);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 25px;
  box-shadow: 5px 5px 0 #130618;
}

.brand strong {
  display: block;
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  color: var(--accent);
  text-shadow: 3px 3px 0 #130618;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topnav a,
.small-action,
.primary-action,
.secondary-action,
.ghost-action,
.choice-button,
.tile-button {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 8, 33, 0.82);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.topnav a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a[aria-current="page"],
.topnav a:hover,
.small-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.choice-button:hover,
.tile-button:hover {
  border-color: var(--accent);
  background: rgba(182, 255, 0, 0.12);
  color: var(--ink);
  box-shadow: 4px 4px 0 #130618;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: center;
  padding: 42px 0 28px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 400;
  line-height: 0.94;
  color: var(--accent);
  text-shadow:
    5px 5px 0 #130618,
    9px 9px 0 rgba(66, 244, 255, 0.35);
}

.hero-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-board {
  position: relative;
  min-height: 330px;
  border: var(--pixel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(182, 255, 0, 0.1) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, rgba(182, 255, 0, 0.08) 0 2px, transparent 2px 18px),
    #250d2e;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.hero-screen {
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(182, 255, 0, 0.78);
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.07) 0 2px, transparent 2px 6px),
    rgba(12, 3, 17, 0.88);
}

.hero-screen span {
  font-size: clamp(76px, 11vw, 130px);
  filter: drop-shadow(7px 7px 0 rgba(182, 255, 0, 0.38));
}

.hero-chip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 10px 12px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(60, 26, 71, 0.92);
  color: var(--accent);
  font-size: 14px;
  box-shadow: 4px 4px 0 #130618;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--cyan);
  background: rgba(182, 255, 0, 0.13);
  color: var(--ink);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.game-card,
.sponsor-card,
.record-row,
.game-panel,
.result-panel,
.sponsor-band,
.stat-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.game-card {
  min-height: 166px;
  padding: 14px;
  text-align: left;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-card[data-tone="cyan"] {
  border-top: 4px solid var(--cyan);
}

.game-card[data-tone="pink"] {
  border-top: 4px solid var(--pink);
}

.game-card[data-tone="gold"] {
  border-top: 4px solid var(--accent);
}

.game-card[data-tone="green"] {
  border-top: 4px solid var(--green);
}

.game-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 38px;
}

.game-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.game-card span,
.game-card small,
.sponsor-card span,
.record-row span {
  color: var(--muted);
}

.record-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 13px;
}

.sponsor-card {
  position: relative;
  display: flex;
  min-height: 166px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(182, 255, 0, 0.14), rgba(60, 26, 71, 0.62)),
    rgba(255, 255, 255, 0.06);
}

.sponsor-card::before {
  content: "AD";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
}

.sponsor-card strong {
  display: block;
  max-width: 80%;
  font-size: 18px;
}

.sponsor-card em {
  color: var(--cyan);
  font-style: normal;
}

.primary-action,
.secondary-action,
.ghost-action,
.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
}

.primary-action {
  border-color: rgba(182, 255, 0, 0.72);
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
}

.primary-action:hover {
  transform: translateY(-2px);
}

.secondary-action {
  background: rgba(182, 255, 0, 0.12);
}

.ghost-action {
  background: transparent;
}

.small-action {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 14px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 24px 0 42px;
}

.game-panel {
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.game-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.play-stage {
  min-height: 560px;
  padding: 24px;
}

.intro-stage,
.active-stage,
.result-stage {
  display: grid;
  min-height: 512px;
  place-items: center;
}

.intro-stack,
.result-panel {
  width: min(540px, 100%);
  text-align: center;
}

.intro-icon {
  margin-bottom: 12px;
  font-size: clamp(70px, 14vw, 116px);
}

.intro-stack h1,
.result-panel h1 {
  margin: 0;
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 400;
}

.intro-stack p,
.result-panel p {
  color: var(--muted);
}

.intro-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.active-stack {
  width: min(680px, 100%);
  text-align: center;
}

.active-title {
  margin: 0 0 12px;
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 400;
}

.active-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.meter {
  position: relative;
  height: 34px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ff4f63, rgba(182, 255, 0, 0.48) 45%, #b6ff00 50%, rgba(182, 255, 0, 0.48) 55%, #ff4f63);
  overflow: hidden;
}

.meter-needle {
  position: absolute;
  top: -7px;
  left: calc(var(--pos) * 1%);
  width: 6px;
  height: 48px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.75);
}

.drag-arena,
.ball-stage {
  position: relative;
  min-height: 290px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 32px 32px;
  overflow: hidden;
  touch-action: none;
}

.drag-arena {
  cursor: crosshair;
}

.target-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 3px solid var(--accent);
  border-radius: 999px;
  background: rgba(182, 255, 0, 0.08);
  color: var(--accent);
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.drag-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--cyan);
  transform-origin: left center;
  box-shadow: 0 0 14px rgba(182, 255, 0, 0.55);
}

.drag-dot {
  position: absolute;
  top: -9px;
  left: -9px;
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(182, 255, 0, 0.62);
}

.drag-arena.dragging .drag-dot {
  display: block;
}

.drag-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 8, 35, 0.7);
  color: var(--muted);
  font-size: 13px;
}

.kick-zone {
  position: absolute;
  right: 12px;
  bottom: 22px;
  left: 12px;
  padding: 10px;
  border: 1px solid rgba(122, 214, 109, 0.65);
  border-radius: var(--radius);
  background: rgba(122, 214, 109, 0.12);
  color: var(--green);
  font-size: 13px;
}

.moving-ball {
  position: absolute;
  top: 8%;
  left: 50%;
  font-size: 42px;
  transform: translateX(-50%);
}

.penalty-field {
  margin: 18px 0;
}

.penalty-goal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 8px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 50%, rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.penalty-keeper {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: rgba(182, 255, 0, 0.12);
  color: var(--accent);
  font-size: 30px;
}

.slice-arena {
  position: relative;
  min-height: 340px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 100%, rgba(122, 214, 109, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.045);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.slice-item {
  position: absolute;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 34px;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
}

.slice-item.bomb {
  background: rgba(255, 107, 95, 0.1);
}

.slice-item.sliced {
  opacity: 0.28;
  transform: translate(-50%, -50%) scale(1.28) rotate(18deg);
}

.slice-trail {
  position: absolute;
  top: -12px;
  left: -12px;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(182, 255, 0, 0.7);
  box-shadow: 0 0 22px rgba(182, 255, 0, 0.7);
  pointer-events: none;
}

.slice-arena.slicing .slice-trail {
  display: block;
}

.slot-reel {
  font-size: clamp(44px, 12vw, 78px);
  background: rgba(255, 255, 255, 0.08);
}

.big-hit-zone {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.big-hit-zone.ready {
  background: rgba(122, 214, 109, 0.18);
  border-color: rgba(122, 214, 109, 0.7);
}

.tap-count {
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(80px, 18vw, 160px);
}

.choice-grid,
.tile-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile-grid {
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.choice-button,
.tile-button {
  min-height: 58px;
  padding: 12px;
  font-size: 18px;
}

.tile-button {
  min-height: 78px;
  font-size: 28px;
}

.choice-button.correct,
.tile-button.correct {
  background: rgba(122, 214, 109, 0.18);
  border-color: var(--green);
}

.choice-button.wrong,
.tile-button.wrong {
  background: rgba(255, 107, 95, 0.18);
  border-color: var(--danger);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--line);
}

.stat-strip div {
  padding: 12px;
  background: rgba(27, 8, 35, 0.74);
}

.stat-strip strong {
  display: block;
  font-size: 20px;
}

.result-panel {
  padding: 24px;
}

.result-score {
  margin: 12px 0;
  color: var(--accent);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: clamp(42px, 10vw, 86px);
  font-weight: 400;
}

.sponsor-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.sponsor-band {
  padding: 16px;
}

.sponsor-band strong {
  display: block;
  margin-bottom: 8px;
}

.sponsor-band p {
  margin: 0 0 14px;
  color: var(--muted);
}

.record-list {
  display: grid;
  gap: 10px;
  margin-bottom: 42px;
}

.record-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.empty-state {
  padding: 36px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 44px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(182, 255, 0, 0.5);
  border-radius: var(--radius);
  background: rgba(27, 8, 35, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.noscript {
  margin: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 8-bit arcade skin */
.filter-button,
.record-badge,
.primary-action,
.secondary-action,
.ghost-action,
.small-action,
.choice-button,
.tile-button,
.game-card,
.sponsor-card,
.record-row,
.game-panel,
.result-panel,
.sponsor-band,
.stat-strip,
.empty-state,
.toast,
.noscript {
  border-radius: 0;
}

.topnav a,
.filter-button,
.primary-action,
.secondary-action,
.ghost-action,
.small-action,
.choice-button,
.tile-button {
  image-rendering: pixelated;
  box-shadow: 3px 3px 0 #130618;
  font-weight: 800;
}

.topnav a:active,
.filter-button:active,
.primary-action:active,
.secondary-action:active,
.ghost-action:active,
.small-action:active,
.choice-button:active,
.tile-button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.filter-button {
  border: 2px solid var(--line);
  background: #250d2e;
  color: var(--ink);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 4px 4px 0 #130618;
}

.game-card,
.sponsor-card,
.record-row,
.game-panel,
.result-panel,
.sponsor-band,
.stat-strip,
.empty-state {
  border: var(--pixel-border);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 7px),
    #2a1134;
  box-shadow: var(--shadow);
}

.game-card,
.sponsor-card {
  position: relative;
  overflow: hidden;
}

.game-card::before,
.sponsor-card::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-right: 4px solid rgba(182, 255, 0, 0.42);
  border-bottom: 4px solid rgba(182, 255, 0, 0.42);
  pointer-events: none;
}

.game-card:hover,
.sponsor-card:hover,
.record-row:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 #130618;
}

.game-card[data-tone="cyan"],
.game-card[data-tone="pink"],
.game-card[data-tone="gold"],
.game-card[data-tone="green"] {
  border-top: var(--pixel-border);
}

.game-card strong,
.sponsor-card strong,
.record-row strong,
.sponsor-band strong,
.active-title,
.intro-stack h1,
.result-panel h1,
.section-head h2,
.result-score,
.tap-count {
  text-shadow: 3px 3px 0 #130618;
}

.game-icon {
  width: fit-content;
  padding: 4px 8px;
  border: 2px solid rgba(182, 255, 0, 0.48);
  background: rgba(19, 6, 24, 0.72);
  box-shadow: 4px 4px 0 #130618;
}

.record-badge {
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 900;
}

.sponsor-card {
  background:
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.08) 0 4px, transparent 4px 16px),
    #351640;
}

.sponsor-card::before {
  border: 2px solid var(--accent);
  border-radius: 0;
  background: var(--bg);
  color: var(--accent);
  font-weight: 900;
}

.sponsor-card em,
.footer a {
  color: var(--accent);
}

.primary-action {
  border: 3px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 5px 5px 0 #130618;
}

.primary-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #130618;
}

.secondary-action,
.ghost-action,
.small-action {
  border: 2px solid var(--accent);
  background: #250d2e;
  color: var(--accent);
}

.game-panel {
  background:
    linear-gradient(0deg, rgba(182, 255, 0, 0.08) 0 2px, transparent 2px 12px),
    #2a1134;
}

.game-toolbar {
  border-bottom: 3px solid var(--accent);
  background: #1b0823;
}

.game-title {
  color: var(--accent);
  font-weight: 900;
}

.play-stage {
  background:
    linear-gradient(90deg, rgba(182, 255, 0, 0.045) 0 2px, transparent 2px 22px),
    linear-gradient(0deg, rgba(182, 255, 0, 0.045) 0 2px, transparent 2px 22px);
}

.intro-icon {
  filter: drop-shadow(7px 7px 0 #130618);
}

.active-title,
.intro-stack h1,
.result-panel h1,
.section-head h2 {
  color: var(--accent);
}

.meter {
  height: 38px;
  border: 3px solid #130618;
  background:
    linear-gradient(90deg, var(--danger), var(--accent) 43%, var(--accent) 57%, var(--danger)),
    var(--bg);
  box-shadow: 5px 5px 0 #130618;
}

.meter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  width: 12%;
  border-right: 2px solid #130618;
  border-left: 2px solid #130618;
  background: rgba(182, 255, 0, 0.28);
}

.meter-needle {
  z-index: 1;
  background: #fff;
  box-shadow: 4px 0 0 #130618;
}

.drag-arena,
.ball-stage,
.slice-arena,
.big-hit-zone,
.penalty-goal {
  border: 3px solid var(--accent);
  border-radius: 0;
  background:
    linear-gradient(0deg, rgba(182, 255, 0, 0.08) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, rgba(182, 255, 0, 0.08) 0 2px, transparent 2px 18px),
    #210b29;
  box-shadow: 5px 5px 0 #130618 inset;
}

.target-ring,
.penalty-keeper,
.slice-item,
.drag-hint,
.kick-zone {
  border-radius: 0;
}

.target-ring,
.penalty-keeper {
  border-color: var(--accent);
  background: rgba(182, 255, 0, 0.14);
  color: var(--accent);
}

.drag-line,
.slice-trail {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 6, 24, 0.85);
}

.drag-dot {
  border: 2px solid #130618;
  border-radius: 0;
  background: var(--accent);
}

.choice-button,
.tile-button {
  border: 3px solid rgba(182, 255, 0, 0.58);
  background: #210b29;
  color: var(--ink);
}

.choice-button:hover,
.tile-button:hover {
  border-color: var(--accent);
  background: #34143e;
}

.tile-button {
  min-height: 82px;
}

.tile-button.correct,
.choice-button.correct {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.tile-button.wrong,
.choice-button.wrong {
  border-color: var(--danger);
  background: rgba(255, 79, 99, 0.2);
}

.slot-reel {
  border: 4px solid var(--accent);
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.08) 0 3px, transparent 3px 9px),
    #16061d;
  box-shadow: 6px 6px 0 #130618 inset;
}

.stat-strip {
  border: 3px solid var(--accent);
  gap: 0;
  background: var(--accent);
}

.stat-strip div {
  border-right: 2px solid rgba(182, 255, 0, 0.36);
  background: #1b0823;
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip span {
  color: var(--muted);
}

.stat-strip strong {
  color: var(--accent);
}

.result-panel {
  background:
    linear-gradient(0deg, rgba(182, 255, 0, 0.08) 0 2px, transparent 2px 12px),
    #210b29;
}

.result-score {
  color: var(--accent);
}

.toast {
  border: 3px solid var(--accent);
  background: #1b0823;
  box-shadow: var(--shadow);
}

/* B-grade cabinet retune */
:root {
  --panel: #24102c;
  --panel-2: #32163b;
  --ink: #efe5d6;
  --muted: #c5accd;
  --line: rgba(182, 255, 0, 0.26);
  --shadow: 5px 5px 0 rgba(13, 3, 18, 0.96);
  --pixel-border: 2px solid rgba(182, 255, 0, 0.82);
}

body {
  background:
    radial-gradient(circle at 18% 4%, rgba(182, 255, 0, 0.055), transparent 28%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #3c1a47 0%, #2b1234 100%);
}

body::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, rgba(60, 26, 71, 0.08), rgba(13, 3, 18, 0.5));
}

.topbar {
  border-bottom: 2px solid rgba(182, 255, 0, 0.72);
  background: #32163b;
  box-shadow: 0 4px 0 #130618;
  backdrop-filter: none;
}

.brand-mark {
  border: 2px solid #130618;
  background: var(--accent);
  box-shadow: 3px 3px 0 #130618;
  transform: rotate(-1deg);
}

.brand strong,
.hero-copy h1 {
  color: var(--accent);
  text-shadow:
    2px 2px 0 #130618,
    3px 3px 0 rgba(0, 0, 0, 0.55);
}

.active-title,
.intro-stack h1,
.result-panel h1,
.section-head h2,
.tap-count {
  color: #efe5d6;
  text-shadow:
    3px 3px 0 #130618,
    4px 4px 0 rgba(182, 255, 0, 0.52);
}

.result-score {
  color: #d5eb55;
  text-shadow:
    3px 3px 0 #130618,
    4px 4px 0 rgba(0, 0, 0, 0.55);
}

.brand small,
.hero-copy p,
.section-head p,
.intro-stack p,
.result-panel p,
.sponsor-band p,
.game-card span,
.game-card small,
.sponsor-card span,
.record-row span {
  color: var(--muted);
}

.hero-copy h1 {
  line-height: 0.98;
}

.hero-board,
.hero-screen,
.game-panel,
.game-card,
.sponsor-card,
.record-row,
.result-panel,
.sponsor-band,
.stat-strip,
.empty-state {
  border-color: rgba(182, 255, 0, 0.72);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 38px),
    #24102c;
  box-shadow: var(--shadow);
}

.hero-board::before {
  opacity: 0.32;
}

.hero-screen {
  border-width: 2px;
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.05) 0 1px, transparent 1px 6px),
    #1b0823;
}

.hero-screen span,
.intro-icon {
  filter: drop-shadow(4px 4px 0 #130618) saturate(0.78);
}

.hero-chip,
.record-badge {
  border: 2px solid #130618;
  background: #d5eb55;
  color: #3c1a47;
  box-shadow: 3px 3px 0 #130618;
  transform: rotate(-1deg);
}

.topnav a,
.filter-button,
.primary-action,
.secondary-action,
.ghost-action,
.small-action,
.choice-button,
.tile-button {
  border-color: rgba(182, 255, 0, 0.58);
  background: #26102e;
  box-shadow: 3px 4px 0 #130618;
  transition:
    transform 0.08s steps(1),
    background-color 0.08s steps(1),
    border-color 0.08s steps(1);
}

.topnav a[aria-current="page"],
.topnav a:hover,
.filter-button[aria-pressed="true"],
.primary-action,
.small-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.choice-button:hover,
.tile-button:hover {
  border-color: #130618;
  background: #d5eb55;
  color: #3c1a47;
  box-shadow: 3px 4px 0 #130618;
}

.primary-action:hover {
  transform: translate(-1px, -1px) rotate(-0.4deg);
  box-shadow: 4px 5px 0 #130618;
}

.secondary-action,
.ghost-action,
.small-action {
  color: #d5eb55;
}

.game-card,
.sponsor-card,
.record-row {
  transform: rotate(-0.2deg);
}

.game-card:nth-child(2n),
.sponsor-card:nth-child(2n),
.record-row:nth-child(2n) {
  transform: rotate(0.25deg);
}

.game-card:hover,
.sponsor-card:hover,
.record-row:hover {
  transform: translate(-2px, -2px) rotate(-0.2deg);
  box-shadow: 7px 7px 0 #130618;
}

.game-card::before,
.sponsor-card::after {
  width: 28px;
  height: 28px;
  border-right-color: rgba(182, 255, 0, 0.28);
  border-bottom-color: rgba(182, 255, 0, 0.28);
}

.game-icon {
  border: 2px solid #130618;
  background: #efe5d6;
  color: #3c1a47;
  box-shadow: 3px 3px 0 #130618;
  transform: rotate(-2deg);
}

.sponsor-card {
  background:
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.045) 0 3px, transparent 3px 18px),
    #2d1336;
}

.sponsor-card::before {
  border-color: #130618;
  background: #d5eb55;
  color: #3c1a47;
}

.game-panel {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.04) 0 1px, transparent 1px 10px),
    #24102c;
}

.game-panel::after {
  content: "100 WON";
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 0;
  padding: 3px 7px;
  border: 2px solid #130618;
  background: #d5eb55;
  color: #3c1a47;
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
  opacity: 0.5;
  transform: rotate(-4deg);
  pointer-events: none;
}

.game-toolbar,
.play-stage {
  position: relative;
  z-index: 1;
}

.game-toolbar {
  border-bottom: 2px solid rgba(182, 255, 0, 0.72);
  background: #180820;
}

.play-stage {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 11px),
    #24102c;
}

.meter,
.slot-reel,
.drag-arena,
.ball-stage,
.slice-arena,
.big-hit-zone,
.penalty-goal {
  border: 2px solid rgba(182, 255, 0, 0.72);
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.045) 0 1px, transparent 1px 9px),
    #1b0823;
  box-shadow: 4px 4px 0 #130618 inset;
}

.meter {
  background:
    linear-gradient(90deg, #743445, #d5eb55 44%, var(--accent) 50%, #d5eb55 56%, #743445),
    #1b0823;
  box-shadow: 4px 4px 0 #130618;
}

.meter::after {
  background: rgba(182, 255, 0, 0.18);
}

.choice-button,
.tile-button {
  border-color: rgba(182, 255, 0, 0.48);
  background: #1d0a25;
}

.tile-button {
  min-height: 80px;
}

.tile-button.correct,
.choice-button.correct {
  border-color: #130618;
  background: #d5eb55;
  color: #3c1a47;
}

.stat-strip {
  background: rgba(182, 255, 0, 0.72);
}

.stat-strip strong {
  color: #d5eb55;
}

.result-panel {
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.04) 0 1px, transparent 1px 10px),
    #1f0d27;
}

.toast {
  border: 2px solid rgba(182, 255, 0, 0.72);
  background: #180820;
  box-shadow: 4px 4px 0 #130618;
}

/* 8-bit coin-op cabinet pass */
:root {
  --coin-cream: #f4e7cf;
  --coin-yellow: #d5eb55;
  --coin-black: #130618;
  --cabinet-purple: #24102c;
}

body {
  background:
    repeating-linear-gradient(0deg, rgba(19, 6, 24, 0.86) 0 4px, transparent 4px 16px),
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.035) 0 4px, transparent 4px 32px),
    #3c1a47;
}

.topbar {
  position: sticky;
  min-height: 88px;
  border: 4px solid var(--coin-black);
  border-right-color: rgba(182, 255, 0, 0.78);
  border-bottom: 6px solid var(--coin-black);
  border-left-color: rgba(182, 255, 0, 0.78);
  margin-top: 10px;
  padding: 16px 14px 12px;
  background:
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.11) 0 8px, transparent 8px 24px),
    #32163b;
  box-shadow:
    0 8px 0 rgba(19, 6, 24, 0.92),
    inset 0 -5px 0 rgba(0, 0, 0, 0.28);
}

.topbar::before {
  content: "INSERT COIN";
  position: absolute;
  top: -13px;
  left: 18px;
  padding: 2px 8px;
  border: 3px solid var(--coin-black);
  background: var(--coin-yellow);
  color: var(--bg);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
  transform: rotate(-1deg);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 4px solid var(--coin-black);
  box-shadow:
    4px 4px 0 var(--coin-black),
    inset -4px -4px 0 rgba(60, 26, 71, 0.34);
}

.brand strong {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0;
}

.topnav a,
.filter-button,
.primary-action,
.secondary-action,
.ghost-action,
.small-action,
.choice-button,
.tile-button {
  border: 4px solid var(--coin-black);
  background: #2a1134;
  color: var(--coin-yellow);
  box-shadow:
    4px 5px 0 var(--coin-black),
    inset -4px -4px 0 rgba(0, 0, 0, 0.32),
    inset 3px 3px 0 rgba(244, 231, 207, 0.12);
}

.topnav a[aria-current="page"],
.topnav a:hover,
.filter-button[aria-pressed="true"],
.primary-action,
.small-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.choice-button:hover,
.tile-button:hover {
  border-color: var(--coin-black);
  background: var(--accent);
  color: var(--bg);
  box-shadow:
    4px 5px 0 var(--coin-black),
    inset -4px -4px 0 rgba(60, 26, 71, 0.28),
    inset 3px 3px 0 rgba(255, 255, 255, 0.24);
}

.topnav a:active,
.filter-button:active,
.primary-action:active,
.secondary-action:active,
.ghost-action:active,
.small-action:active,
.choice-button:active,
.tile-button:active {
  transform: translate(4px, 5px);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.28),
    inset 3px 3px 0 rgba(255, 255, 255, 0.14);
}

.hero {
  gap: 22px;
  padding-top: 34px;
}

.hero-copy h1,
.active-title,
.intro-stack h1,
.result-panel h1,
.section-head h2,
.tap-count {
  color: var(--coin-cream);
  text-shadow:
    4px 0 0 var(--coin-black),
    0 4px 0 var(--coin-black),
    4px 4px 0 var(--coin-black),
    6px 6px 0 rgba(182, 255, 0, 0.48);
}

.hero-copy p,
.section-head p {
  max-width: 620px;
  border-left: 6px solid var(--accent);
  padding-left: 12px;
  color: var(--coin-cream);
}

.hero-board {
  min-height: 350px;
  border: 8px solid var(--coin-black);
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(182, 255, 0, 0.16) 18px 22px, transparent 22px 42px),
    #2b1234;
  box-shadow:
    10px 10px 0 var(--coin-black),
    inset 0 0 0 4px rgba(182, 255, 0, 0.7),
    inset -10px -10px 0 rgba(0, 0, 0, 0.32);
}

.hero-board::after {
  content: "PLAYER SELECT";
  position: absolute;
  top: 12px;
  left: 18px;
  z-index: 2;
  padding: 3px 8px;
  border: 3px solid var(--coin-black);
  background: var(--coin-yellow);
  color: var(--bg);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.hero-screen {
  inset: 46px 28px 28px;
  border: 5px solid var(--coin-black);
  background:
    repeating-linear-gradient(0deg, rgba(182, 255, 0, 0.08) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(90deg, rgba(244, 231, 207, 0.035) 0 2px, transparent 2px 18px),
    #180820;
  box-shadow:
    inset 8px 8px 0 rgba(0, 0, 0, 0.42),
    inset -4px -4px 0 rgba(182, 255, 0, 0.14);
}

.filter-bar {
  padding: 10px;
  border: 4px solid var(--coin-black);
  background:
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.08) 0 6px, transparent 6px 18px),
    #24102c;
  box-shadow: 5px 5px 0 var(--coin-black);
}

.game-grid {
  counter-reset: stage-card;
  gap: 18px;
}

.game-card {
  counter-increment: stage-card;
}

.game-card,
.sponsor-card,
.record-row,
.sponsor-band,
.result-panel,
.game-panel {
  border: 5px solid var(--coin-black);
  background:
    repeating-linear-gradient(0deg, rgba(244, 231, 207, 0.035) 0 2px, transparent 2px 9px),
    #24102c;
  box-shadow:
    7px 7px 0 var(--coin-black),
    inset 0 0 0 2px rgba(182, 255, 0, 0.58);
}

.game-card[data-tone="cyan"],
.game-card[data-tone="pink"],
.game-card[data-tone="gold"],
.game-card[data-tone="green"] {
  border: 5px solid var(--coin-black);
}

.game-card::after {
  content: "STAGE " counter(stage-card);
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  padding: 2px 7px;
  border: 3px solid var(--coin-black);
  background: var(--coin-yellow);
  color: var(--bg);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
}

.game-card strong,
.sponsor-card strong,
.record-row strong,
.sponsor-band strong {
  color: var(--coin-cream);
  text-shadow:
    2px 2px 0 var(--coin-black),
    3px 3px 0 rgba(182, 255, 0, 0.28);
}

.game-icon {
  min-width: 54px;
  min-height: 48px;
  border: 4px solid var(--coin-black);
  background:
    repeating-linear-gradient(0deg, rgba(19, 6, 24, 0.16) 0 2px, transparent 2px 8px),
    var(--coin-cream);
  box-shadow:
    4px 4px 0 var(--coin-black),
    inset -4px -4px 0 rgba(60, 26, 71, 0.18);
}

.record-badge,
.hero-chip {
  border: 4px solid var(--coin-black);
  background: var(--accent);
  box-shadow:
    4px 4px 0 var(--coin-black),
    inset -3px -3px 0 rgba(60, 26, 71, 0.28);
}

.game-layout {
  gap: 22px;
}

.game-panel {
  border-width: 7px;
  overflow: visible;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 3px, transparent 3px 13px),
    #24102c;
  box-shadow:
    10px 10px 0 var(--coin-black),
    inset 0 0 0 3px rgba(182, 255, 0, 0.62);
}

.game-panel::before {
  content: "8-BIT CABINET";
  position: absolute;
  top: -18px;
  left: 18px;
  z-index: 2;
  padding: 3px 8px;
  border: 4px solid var(--coin-black);
  background: var(--coin-yellow);
  color: var(--bg);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.game-toolbar {
  border-bottom: 5px solid var(--coin-black);
  background:
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.09) 0 6px, transparent 6px 18px),
    #180820;
}

.play-stage {
  border-top: 4px solid rgba(182, 255, 0, 0.72);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 3px, transparent 3px 10px),
    repeating-linear-gradient(90deg, rgba(182, 255, 0, 0.035) 0 3px, transparent 3px 26px),
    #24102c;
}

.intro-stack,
.result-panel,
.active-stack {
  position: relative;
  isolation: isolate;
}

.intro-stack::before,
.active-stack::before,
.result-panel::before {
  content: "READY?";
  position: absolute;
  top: -28px;
  left: 50%;
  z-index: -1;
  padding: 2px 8px;
  border: 3px solid var(--coin-black);
  background: rgba(182, 255, 0, 0.8);
  color: var(--bg);
  font-family: "Black Han Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
  transform: translateX(-50%) rotate(-1deg);
}

.choice-button,
.tile-button {
  border-width: 5px;
  background:
    repeating-linear-gradient(0deg, rgba(244, 231, 207, 0.035) 0 2px, transparent 2px 8px),
    #1d0a25;
}

.tile-button {
  min-height: 86px;
  font-family: "Black Han Sans", "Gowun Dodum", system-ui, sans-serif;
}

.meter,
.slot-reel,
.drag-arena,
.ball-stage,
.slice-arena,
.big-hit-zone,
.penalty-goal {
  border: 5px solid var(--coin-black);
  box-shadow:
    6px 6px 0 var(--coin-black),
    inset 0 0 0 2px rgba(182, 255, 0, 0.52);
}

.footer {
  border-top: 4px solid var(--coin-black);
  margin-top: 18px;
  color: var(--coin-cream);
}

@media (max-width: 920px) {
  .hero,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .sponsor-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-frame {
    width: min(100% - 24px, 560px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: stretch;
  }

  .topnav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1.02;
  }

  .hero-board {
    min-height: 220px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card,
  .sponsor-card {
    min-height: 150px;
    padding: 12px;
  }

  .game-card strong,
  .sponsor-card strong {
    font-size: 16px;
  }

  .game-icon {
    font-size: 34px;
  }

  .play-stage {
    padding: 16px;
  }

  .game-panel {
    min-height: auto;
  }

  .intro-stage,
  .active-stage,
  .result-stage {
    min-height: 480px;
  }

  .choice-grid,
  .sponsor-rail {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .intro-actions,
  .result-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .ghost-action {
    width: 100%;
  }
}
