:root {
  --paper: #fff6d8;
  --ink: #16120c;
  --pink: #ff4d8d;
  --blue: #3b6bff;
  --lime: #b8ff3c;
  --orange: #ff7a1a;
  --white: #fffdf6;
  --line: 3px solid var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Karla", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,77,141,.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(59,107,255,.16), transparent 26%),
    repeating-linear-gradient(90deg, rgba(22,18,12,.04) 0 1px, transparent 1px 28px),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  background: var(--lime);
  border-bottom: var(--line);
}
.wordmark {
  font-family: "Bungee", cursive;
  font-size: 28px; letter-spacing: .04em;
  background: var(--ink); color: var(--lime);
  padding: 4px 10px 2px; text-decoration: none;
  transform: rotate(-2deg);
}
.top-links { display: flex; flex-wrap: wrap; gap: 8px; }
.top-links a {
  text-decoration: none;
  border: var(--line);
  background: var(--white);
  padding: 6px 10px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.top-links a:hover { background: var(--pink); color: #fff; }

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--lime);
  border-bottom: var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  padding: 8px 0;
}
.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: slide 22s linear infinite;
  padding-left: 100%;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.billboard {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  padding: 28px 0 10px;
}
.billboard h1 {
  font-family: "Bungee", cursive;
  font-size: clamp(42px, 8vw, 84px);
  line-height: .92;
  letter-spacing: -0.02em;
}
.billboard p { font-size: 20px; margin: 14px 0 20px; max-width: 28ch; }
.sticker {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  transform: rotate(-3deg);
  border: var(--line);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  text-decoration: none;
  border: var(--line);
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--white);
}
.btn.hot { background: var(--orange); }
.btn.cool { background: var(--blue); color: #fff; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.booth {
  background: var(--white);
  border: var(--line);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 16px;
  transform: rotate(2deg);
}
.booth h2 { font-family: "Bungee", cursive; font-size: 22px; }
.booth .scoreboard {
  margin-top: 12px;
  background: var(--ink);
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  padding: 12px;
  min-height: 120px;
}
.booth li { list-style: none; margin: 6px 0; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px 0 18px;
}
.filters button {
  border: var(--line);
  background: var(--white);
  padding: 8px 12px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.filters button.on { background: var(--blue); color: #fff; }

.yard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 48px;
}
.cart {
  background: var(--white);
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px;
  text-decoration: none;
  display: grid;
  gap: 8px;
}
.cart:nth-child(3n) { background: #ffe9f2; }
.cart:nth-child(3n+1) { background: #e8eeff; }
.cart:nth-child(3n+2) { background: #f3ffd4; }
.cart:hover { transform: rotate(-1deg) translate(-2px, -2px); }
.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.cart h3 { font-family: "Bungee", cursive; font-size: 22px; line-height: 1.1; }
.cart p { font-size: 15px; }
.play-chip {
  justify-self: start;
  background: var(--ink);
  color: var(--lime);
  padding: 5px 8px;
  font-weight: 800;
}

.site-foot {
  border-top: var(--line);
  background: var(--blue);
  color: #fff;
  padding: 28px 0;
}
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.site-foot a { color: #fff; }
.site-foot h3 { font-family: "Bungee", cursive; font-size: 16px; margin-bottom: 8px; }
.site-foot p, .site-foot li { margin: 6px 0; list-style: none; }

.legal {
  width: min(820px, calc(100% - 32px));
  margin: 28px auto 64px;
}
.legal h1 { font-family: "Bungee", cursive; font-size: clamp(34px, 7vw, 58px); margin: 8px 0 12px; }
.legal h2 { font-family: "Bungee", cursive; font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.6; margin: 8px 0; }
.legal ul { padding-left: 18px; }
.kicker { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 700; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel {
  background: var(--white);
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px;
}
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-weight: 700; }
.form input, .form select, .form textarea {
  border: var(--line);
  background: var(--paper);
  padding: 10px;
}
.note { font-size: 13px; }
.flash {
  display: none;
  background: var(--lime);
  border: var(--line);
  padding: 10px;
  font-weight: 700;
}
.flash.on { display: block; }

.cabinet-page { padding: 22px 0 48px; }
.cabinet-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cabinet-head h1 { font-family: "Bungee", cursive; font-size: clamp(28px, 5vw, 44px); }
.screen-wrap {
  background: #0c0a08;
  border: 6px solid #2a2118;
  outline: var(--line);
  box-shadow: 12px 12px 0 var(--ink);
  padding: 12px;
}
#stage {
  display: block;
  width: 100%;
  height: min(68vh, 560px);
  background: #10131a;
  cursor: pointer;
}
.hud {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--lime);
  border: var(--line);
  border-top: 0;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}
.howto {
  margin-top: 14px;
  background: var(--white);
  border: var(--line);
  padding: 12px 14px;
  box-shadow: 5px 5px 0 var(--ink);
}

@media (max-width: 860px) {
  .billboard, .yard, .site-foot .wrap, .contact-split { grid-template-columns: 1fr; }
  .booth { transform: none; }
  .wordmark { font-size: 22px; }
}
