:root {
  --pink: #98536f;
  --yellow: #a58a45;
  --cyan: #3f7379;
  --green: #566d4e;
  --orange: #9a5b3f;
  --purple: #67547f;
  --ink: #12101a;
  --paper: #d8d0c4;
  --white: #ece8e0;
  --hot-pink: #ff42b3;
  --acid: #dfff38;
  --electric: #24dfff;
  --neon-green: #73ff58;
  --bright-violet: #b66cff;
  --shadow: 7px 7px 0 var(--ink);
  --border: 4px solid var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: var(--ink);
  background: var(--yellow);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(63, 115, 121, 0.74) 0 9%, transparent 25%),
    radial-gradient(circle at 86% 22%, rgba(152, 83, 111, 0.7) 0 10%, transparent 27%),
    radial-gradient(circle at 65% 80%, rgba(86, 109, 78, 0.72) 0 8%, transparent 28%),
    conic-gradient(from 40deg at 50% 0%, #20192c, #4f354e, #354d61, #665135, #304b46, #20192c);
  background-attachment: fixed;
  background-size: 160% 160%, 180% 180%, 170% 170%, 135% 135%;
}

body.permanent-chaos {
  animation: ambient-shift 10s ease-in-out infinite alternate;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 5px solid var(--cyan);
  outline-offset: 4px;
}

.noise,
.scanlines,
.flash,
.particle-zone {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 30;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.scanlines {
  z-index: 29;
  opacity: 0.06;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px);
}

.flash {
  z-index: 80;
  opacity: 0;
  background: var(--white);
}

.flash.active {
  animation: camera-flash 220ms ease-out;
}

.particle-zone {
  z-index: 70;
  overflow: hidden;
}

.cursor-zone,
.popup-zone {
  position: fixed;
  inset: 0;
  z-index: 68;
  pointer-events: none;
  overflow: hidden;
}

.popup-zone {
  z-index: 65;
}

.cursor-spark {
  position: absolute;
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  animation: cursor-pop 700ms ease-out forwards;
}

.chaos-popup {
  position: absolute;
  width: clamp(155px, 20vw, 285px);
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  pointer-events: auto;
  animation: popup-arrive 320ms cubic-bezier(0.2, 1.8, 0.4, 1), popup-jitter 500ms 350ms infinite alternate;
}

.chaos-popup:nth-child(4n + 1) { background: var(--yellow); transform: rotate(-3deg); }
.chaos-popup:nth-child(4n + 2) { background: var(--cyan); transform: rotate(2deg); }
.chaos-popup:nth-child(4n + 3) { background: var(--pink); transform: rotate(-1deg); }
.chaos-popup:nth-child(4n + 4) { background: var(--green); transform: rotate(4deg); }

.popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.fake-tab-strip {
  align-self: end;
  margin: -2px 0 -5px -4px;
  padding: 4px 7px 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #2e273a;
  color: var(--electric);
  transform: rotate(-2deg);
  animation: fake-tab-twitch 300ms steps(2) infinite alternate;
}

.popup-close {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 2px solid var(--paper);
  background: red;
  color: white;
  cursor: pointer;
}

.popup-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.popup-body > span {
  font-family: Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.popup-body strong {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 0.9;
}

.popup-body small {
  display: block;
  margin-top: 5px;
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
}

.popup-button {
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  padding: 6px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.64rem;
  cursor: pointer;
}

.combo-callout {
  position: fixed;
  z-index: 90;
  top: 44%;
  left: 50%;
  color: var(--yellow);
  font-size: clamp(4rem, 15vw, 12rem);
  font-style: italic;
  line-height: 0.75;
  opacity: 0;
  pointer-events: none;
  -webkit-text-stroke: clamp(2px, 0.5vw, 7px) var(--ink);
  text-shadow: 9px 9px 0 var(--pink), -7px -7px 0 var(--cyan);
  transform: translate(-50%, -50%) scale(0.2) rotate(-10deg);
}

.combo-callout.active {
  animation: combo-blast 900ms cubic-bezier(0.2, 1.6, 0.3, 1);
}

.side-rail {
  position: fixed;
  z-index: 45;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  width: 31px;
  border-inline: 3px solid var(--ink);
  background: var(--pink);
  color: var(--yellow);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  overflow: hidden;
  pointer-events: none;
}

.side-rail span {
  display: block;
  white-space: nowrap;
  writing-mode: vertical-rl;
  animation: rail-scroll 8s linear infinite;
}

.side-rail-left { left: 0; }
.side-rail-right { right: 0; background: var(--cyan); color: var(--ink); }
.side-rail-right span { animation-direction: reverse; }

.floating-stickers {
  position: fixed;
  inset: 0;
  z-index: 44;
  pointer-events: none;
}

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: Arial, sans-serif;
  font-size: 2.4rem;
  animation: sticker-dance 1.1s ease-in-out infinite alternate;
}

.sticker b {
  position: absolute;
  bottom: -12px;
  padding: 3px 6px;
  border: 2px solid var(--ink);
  background: var(--pink);
  color: white;
  font-family: Impact, sans-serif;
  font-size: 0.8rem;
  transform: rotate(-7deg);
}

.sticker-one { top: 18%; left: 2%; }
.sticker-two { top: 39%; right: 2%; animation-delay: -0.2s; }
.sticker-three { top: 69%; left: 3%; animation-delay: -0.4s; }
.sticker-four { top: 82%; right: 3%; animation-delay: -0.6s; }
.sticker-five { top: 53%; left: 1%; animation-delay: -0.8s; }
.sticker-six { top: 8%; right: 3%; animation-delay: -1s; }

.particle {
  position: absolute;
  top: -60px;
  font-family: Arial, sans-serif;
  font-size: clamp(20px, 4vw, 46px);
  animation: particle-fall var(--duration, 2s) linear forwards;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.ticker {
  position: relative;
  z-index: 40;
  width: 100%;
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker div {
  display: inline-block;
  min-width: 200%;
  padding: 8px 0;
  animation: ticker 18s linear infinite;
}

.control-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(14px, 3vw, 48px);
  border-bottom: var(--border);
  background: rgba(255, 245, 0, 0.94);
  backdrop-filter: blur(9px);
}

.mini-logo {
  color: var(--ink);
  font-size: 1.4rem;
  font-style: italic;
  text-decoration: none;
  transform: skew(-8deg);
}

.mini-logo span {
  color: var(--pink);
  -webkit-text-stroke: 1px var(--ink);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.permanent-mode {
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: red;
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(0.62rem, 2vw, 0.85rem);
  letter-spacing: 0.08em;
  animation: forbidden 0.35s infinite alternate;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.66rem;
}

.volume-control input {
  width: 92px;
  accent-color: var(--pink);
}

.utility-button {
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.66rem;
  cursor: pointer;
}

.utility-button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.calm-button {
  background: var(--paper);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 760px;
  padding: 72px 20px 100px;
  overflow: hidden;
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 5px solid var(--ink);
  box-shadow: var(--shadow);
}

.hero::before {
  top: 12%;
  left: -50px;
  width: 240px;
  height: 120px;
  background: var(--pink);
  transform: rotate(-17deg);
}

.hero::after {
  right: -40px;
  bottom: 17%;
  width: 230px;
  height: 150px;
  background: var(--cyan);
  transform: rotate(12deg);
}

.hero-kicker,
.eyebrow,
.section-tag {
  font-family: "Arial Black", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.78rem;
  transform: rotate(-1deg);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: red;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.2);
  animation: pulse 0.75s infinite alternate;
}

h1 {
  display: grid;
  margin: 24px 0 16px;
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  font-style: italic;
  letter-spacing: -0.07em;
  line-height: 0.68;
  text-transform: uppercase;
  transform: skew(-5deg);
}

h1 span {
  display: block;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.5vw, 6px) var(--ink);
  text-shadow: 7px 7px 0 var(--pink);
}

.solid-text {
  position: relative;
  z-index: 1;
  color: var(--pink);
  -webkit-text-stroke: clamp(2px, 0.5vw, 6px) var(--ink);
  text-shadow: 9px 9px 0 var(--cyan);
}

.number-text {
  color: var(--yellow);
  -webkit-text-stroke: clamp(2px, 0.5vw, 6px) var(--ink);
  text-shadow: 8px 8px 0 var(--purple);
}

.hero-copy {
  max-width: 650px;
  margin: 16px auto 30px;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  transform: rotate(1deg);
}

.mega-button {
  position: relative;
  display: grid;
  gap: 4px;
  width: min(620px, 92vw);
  padding: 23px 24px 21px;
  border: 6px solid var(--ink);
  border-radius: 22px;
  background: var(--pink);
  box-shadow: 0 10px 0 #a90089, 0 17px 0 var(--ink), 0 23px 35px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transform: rotate(-1deg);
  transition: filter 100ms ease, transform 100ms ease;
}

.mega-button::before,
.mega-button::after {
  position: absolute;
  top: 50%;
  font-size: 2.1rem;
  content: "👉";
  animation: point 0.55s infinite alternate;
}

.mega-button::before {
  left: -58px;
}

.mega-button::after {
  right: -58px;
  transform: scaleX(-1);
}

.mega-button:hover {
  filter: saturate(1.5) brightness(1.08);
  transform: rotate(1deg) scale(1.025);
}

.mega-button:active {
  transform: translateY(12px) scale(0.99);
  box-shadow: 0 2px 0 #a90089, 0 5px 0 var(--ink);
}

.button-alert,
.button-sub {
  font-family: "Arial Black", Arial, sans-serif;
}

.button-alert {
  font-size: clamp(0.66rem, 1.8vw, 0.85rem);
  letter-spacing: 0.12em;
}

.button-main {
  color: var(--yellow);
  font-size: clamp(2rem, 7vw, 4rem);
  font-style: italic;
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}

.button-sub {
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.hero-stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.hero-stamps span {
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: var(--green);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.7rem;
}

.hero-stamps span:nth-child(2) {
  background: var(--cyan);
  transform: rotate(2deg);
}

.hero-stamps span:nth-child(3) {
  background: var(--orange);
  transform: rotate(-2deg);
}

.fake-notification {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(520px, 88vw);
  margin-top: 35px;
  padding: 10px 13px;
  border: 4px solid var(--ink);
  background: var(--cyan);
  box-shadow: 6px 6px 0 var(--ink);
  text-align: left;
  transform: rotate(1deg);
  animation: notification-bounce 650ms infinite alternate;
}

.notification-icon { font-family: Arial, sans-serif; font-size: 2.2rem; }
.fake-notification span:nth-child(2) { display: grid; }
.fake-notification b { font-family: "Arial Black", Arial, sans-serif; font-size: 0.72rem; }
.fake-notification small { font-family: Arial, sans-serif; font-weight: 800; }
.fake-notification strong { padding: 7px; border: 2px solid var(--ink); background: red; color: white; }

.chaos-break {
  position: relative;
  z-index: 3;
  margin-bottom: 70px;
  border-block: 6px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
}

.chaos-marquee {
  overflow: hidden;
  background: var(--pink);
  color: var(--yellow);
  font-size: clamp(1.5rem, 4vw, 3.6rem);
  font-style: italic;
  white-space: nowrap;
}

.chaos-marquee span {
  display: inline-block;
  min-width: 200%;
  padding: 8px 0;
  animation: ticker 7s linear infinite;
}

.chaos-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 5px;
}

.chaos-panels > div {
  display: grid;
  place-items: center;
  min-height: 155px;
  padding: 13px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  text-align: center;
}

.chaos-panels b { font-size: clamp(1rem, 2vw, 1.7rem); font-style: italic; }
.slime-panel { background: var(--green) !important; }
.slime-panel span { font-size: clamp(2rem, 5vw, 4rem); text-shadow: 4px 4px 0 white; }
.wheel-panel { background: var(--cyan) !important; }
.spin-wheel { font-family: Arial, sans-serif; font-size: 4.5rem; animation: spin 0.7s linear infinite; }
.news-panel { background: var(--paper) !important; }
.news-panel small { padding: 5px 8px; background: red; color: white; letter-spacing: 0.1em; }
.meter-panel { background: var(--orange) !important; }
.meter-panel > span { color: white; font-size: 2rem; }
.meter-panel > div { width: 100%; height: 25px; border: 3px solid var(--ink); background: white; overflow: hidden; }
.meter-panel i { display: block; width: 95%; height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow), red); animation: meter-pump 0.4s infinite alternate; }

.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 95px;
  height: 95px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 1.25rem;
  animation: orbit-bob 1.8s ease-in-out infinite alternate;
}

.orbit-one {
  top: 26%;
  left: 7%;
  transform: rotate(-12deg);
}

.orbit-two {
  top: 16%;
  right: 6%;
  background: var(--green);
  transform: rotate(9deg);
  animation-delay: -0.9s;
}

.game-shell,
.sound-lab {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 80px;
  border: 6px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.game-shell {
  background: var(--paper);
}

.game-topline,
.sound-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--purple);
  font-size: 0.72rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-style: italic;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.scoreboard {
  display: flex;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.scoreboard div {
  display: grid;
  min-width: 82px;
  padding: 9px 13px;
  border-right: 2px solid var(--paper);
  text-align: center;
}

.scoreboard div:last-child {
  border: 0;
}

.scoreboard span {
  color: var(--yellow);
  font-family: Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scoreboard strong {
  font-size: 1.55rem;
}

.progress-track {
  height: 22px;
  margin-inline: clamp(20px, 4vw, 42px);
  border: 3px solid var(--ink);
  background: repeating-linear-gradient(45deg, #ddd 0 8px, var(--white) 8px 16px);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--pink) 0 30px, var(--cyan) 30px 60px, var(--yellow) 60px 90px);
  transition: width 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-stage {
  min-height: 470px;
  padding: clamp(20px, 4vw, 42px);
}

.locked-panel {
  display: grid;
  place-items: center;
  min-height: 380px;
  border: 4px dashed var(--ink);
  background:
    linear-gradient(rgba(255, 245, 0, 0.82), rgba(255, 245, 0, 0.82)),
    repeating-linear-gradient(-45deg, var(--ink) 0 15px, transparent 15px 30px);
  text-align: center;
}

.lock-icon {
  font-size: 4rem;
  filter: drop-shadow(4px 4px 0 var(--pink));
}

.locked-panel p {
  margin: 6px 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.locked-panel span {
  max-width: 480px;
  padding: 8px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.round-card {
  animation: card-enter 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.round-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.round-card h3 {
  max-width: 820px;
  margin: 6px 0 11px;
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-style: italic;
  line-height: 0.96;
}

.round-card > p {
  margin: 0 0 25px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

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

.choice-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 15px;
  border: 4px solid var(--ink);
  background: var(--choice-color, var(--cyan));
  box-shadow: 6px 6px 0 var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.choice-button:hover {
  filter: brightness(1.07) saturate(1.15);
  transform: translate(-2px, -2px) rotate(-0.5deg);
  box-shadow: 9px 9px 0 var(--ink);
}

.choice-button:active,
.choice-button.selected {
  transform: translate(5px, 5px);
  box-shadow: 1px 1px 0 var(--ink);
}

.choice-button.selected {
  outline: 6px solid var(--pink);
  outline-offset: 2px;
}

.choice-emoji {
  font-family: Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  filter: drop-shadow(3px 3px 0 rgba(255, 255, 255, 0.8));
}

.choice-copy {
  display: grid;
  gap: 3px;
}

.choice-copy strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1;
}

.choice-copy small {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.choice-arrow {
  font-size: 2rem;
}

.ad-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: 11px;
  border-top: 5px solid var(--ink);
  background: var(--green);
  text-align: center;
}

.ad-strip span {
  padding: 3px 7px;
  background: var(--pink);
  color: var(--white);
  transform: rotate(-3deg);
}

.ad-strip strong {
  font-size: clamp(1rem, 3vw, 2rem);
}

.ad-strip small {
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.finale {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 25px;
  animation: card-enter 450ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verdict-card {
  position: relative;
  padding: clamp(20px, 4vw, 35px);
  border: 5px solid var(--ink);
  background: var(--pink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.verdict-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  font-size: 9rem;
  content: "💘";
  opacity: 0.35;
  transform: rotate(-17deg);
}

.verdict-card .round-label {
  background: var(--green);
}

.verdict-card h3 {
  position: relative;
  z-index: 1;
  margin: 10px 0 18px;
  color: var(--yellow);
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  font-style: italic;
  line-height: 0.9;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}

.verdict-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin: 0;
}

.verdict-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.verdict-row span:first-child {
  color: var(--purple);
  text-transform: uppercase;
}

.details-form {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: clamp(20px, 4vw, 30px);
  border: 4px solid var(--ink);
  background: var(--cyan);
  box-shadow: 7px 7px 0 var(--ink);
}

.details-form h4 {
  margin: 0;
  font-size: 2rem;
  font-style: italic;
}

.details-form p {
  margin: -7px 0 4px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 5px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.field textarea {
  min-height: 85px;
  resize: vertical;
}

.final-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 3px;
}

.final-actions button,
.restart-button {
  padding: 13px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.final-actions button:first-child {
  background: var(--green);
}

.final-actions button:active,
.restart-button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.restart-button {
  grid-column: 1 / -1;
  background: var(--paper);
}

.sound-lab {
  position: relative;
  padding-bottom: clamp(22px, 4vw, 42px);
  background: var(--purple);
}

.section-tag {
  position: absolute;
  top: -22px;
  right: 30px;
  padding: 9px 14px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(2deg);
}

.sound-heading {
  color: var(--white);
}

.sound-heading .eyebrow {
  color: var(--yellow);
}

.sound-heading > p {
  max-width: 340px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 clamp(20px, 4vw, 42px);
}

.sound-grid button {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 12px;
  border: 4px solid var(--ink);
  background: var(--cyan);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.sound-grid button:nth-child(3n + 1) { background: var(--yellow); }
.sound-grid button:nth-child(3n + 2) { background: var(--pink); }
.sound-grid button:nth-child(3n + 3) { background: var(--green); }

.sound-grid button span {
  font-family: Arial, sans-serif;
  font-size: 2.8rem;
}

.sound-grid button:hover {
  transform: rotate(-2deg) scale(1.04);
}

.sound-grid button:active {
  transform: translate(5px, 5px) rotate(2deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.forbidden-button {
  display: block;
  width: min(720px, calc(100% - 40px));
  margin: 30px auto 0;
  padding: 18px;
  border: 5px solid var(--ink);
  background: red;
  color: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  font-size: clamp(1rem, 3vw, 1.7rem);
  letter-spacing: 0.04em;
  cursor: pointer;
  animation: forbidden 0.5s infinite alternate;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px clamp(18px, 4vw, 50px) 55px;
  border-top: 5px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.intro-gate {
  position: fixed;
  z-index: 100;
  display: grid;
  place-items: center;
  inset: 0;
  padding: 20px;
  background:
    radial-gradient(circle, rgba(255, 43, 214, 0.95) 0 20%, transparent 20.5%),
    repeating-conic-gradient(var(--yellow) 0 10deg, var(--cyan) 10deg 20deg);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.intro-gate.closed {
  visibility: hidden;
  opacity: 0;
}

.gate-card {
  width: min(560px, 100%);
  padding: 28px;
  border: 6px solid var(--ink);
  background: var(--paper);
  box-shadow: 13px 13px 0 var(--ink);
  text-align: center;
  transform: rotate(-1deg);
}

.warning-tape {
  margin: -11px -11px 18px;
  padding: 7px;
  background: var(--yellow);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.gate-emoji {
  font-family: Arial, sans-serif;
  font-size: 5rem;
  animation: heartbeat 0.7s infinite alternate;
}

.gate-card h2 {
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--cyan);
}

.gate-card > p:not(.warning-tape) {
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.gate-card button {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  border: 4px solid var(--ink);
  background: var(--green);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.gate-card .quiet-entry {
  padding: 9px;
  border-width: 2px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 15px 18px;
  border: 4px solid var(--ink);
  background: var(--green);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.8rem;
  transform: translateY(140%);
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.visible {
  transform: translateY(0);
}

.calm-mode * {
  animation: none !important;
}

.calm-mode .noise,
.calm-mode .scanlines,
.calm-mode .orbit,
.calm-mode .mega-button::before,
.calm-mode .mega-button::after {
  display: none;
}

.calm-mode body,
body.calm-mode {
  background: #f6f0ff;
}

.calm-mode .forbidden-button {
  background: #6a6a6a;
}

.screen-shake {
  animation: screen-shake 280ms linear;
}

.ultra-chaos {
  animation: hue-party 1.3s linear infinite, screen-shake 150ms linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes camera-flash {
  0% { opacity: 0; }
  18% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes pulse {
  to { transform: scale(1.3); opacity: 0.45; }
}

@keyframes point {
  to { translate: 10px 0; }
}

@keyframes orbit-bob {
  to { translate: 0 -18px; rotate: 8deg; }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(30px) scale(0.96) rotate(-1deg); }
}

@keyframes particle-fall {
  to { transform: translate3d(var(--drift, 0), 115vh, 0) rotate(var(--spin, 720deg)); }
}

@keyframes forbidden {
  to { filter: brightness(1.45); transform: scale(1.012); }
}

@keyframes heartbeat {
  to { transform: scale(1.18) rotate(4deg); }
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-5px, 3px) rotate(-0.3deg); }
  40% { transform: translate(5px, -2px) rotate(0.3deg); }
  60% { transform: translate(-3px, -4px); }
  80% { transform: translate(4px, 3px); }
}

@keyframes hue-party {
  to { filter: hue-rotate(360deg) saturate(1.4); }
}

@keyframes popup-arrive {
  from { opacity: 0; transform: scale(0.05) rotate(30deg); }
  65% { transform: scale(1.13) rotate(-4deg); }
}

@keyframes popup-jitter {
  from { margin: -2px 0 0 -2px; }
  to { margin: 2px 0 0 2px; }
}

@keyframes combo-blast {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.15) rotate(-20deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(5deg); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(0.95) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2) rotate(10deg); }
}

@keyframes cursor-pop {
  to { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.1) rotate(360deg); }
}

@keyframes rail-scroll {
  to { transform: translateY(-45%); }
}

@keyframes sticker-dance {
  from { transform: translate(-8px, -5px) rotate(-12deg) scale(0.92); }
  to { transform: translate(9px, 8px) rotate(13deg) scale(1.12); }
}

@keyframes notification-bounce {
  to { transform: translateY(-8px) rotate(-1deg) scale(1.015); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes meter-pump {
  from { width: 72%; }
  to { width: 100%; }
}

@keyframes permanent-hue {
  0% { filter: hue-rotate(0deg) saturate(1.05); }
  25% { filter: hue-rotate(18deg) saturate(1.35); }
  50% { filter: hue-rotate(-12deg) saturate(1.6); }
  75% { filter: hue-rotate(25deg) saturate(1.25); }
  100% { filter: hue-rotate(0deg) saturate(1.05); }
}

/* Dark full-spectrum motion pass */
.motion-field {
  position: fixed;
  inset: -15vh -15vw;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.motion-shape {
  position: absolute;
  color: rgba(216, 208, 196, 0.3);
  font-family: Arial, sans-serif;
  font-size: var(--shape-size);
  font-weight: 900;
  line-height: 1;
  filter: blur(0.2px);
  animation: shape-orbit var(--move-time) ease-in-out var(--move-delay) infinite alternate;
}

.motion-shape-0 { color: rgba(152, 83, 111, 0.48); }
.motion-shape-1 { color: rgba(63, 115, 121, 0.5); animation-direction: alternate-reverse; }
.motion-shape-2 { color: rgba(165, 138, 69, 0.46); }
.motion-shape-3 { color: rgba(86, 109, 78, 0.48); animation-direction: alternate-reverse; }
.motion-shape-4 { color: rgba(103, 84, 127, 0.52); }
.motion-shape-5 { color: rgba(154, 91, 63, 0.47); animation-direction: alternate-reverse; }
.motion-shape:nth-child(9n + 1) { color: var(--hot-pink); text-shadow: 0 0 18px var(--hot-pink); }
.motion-shape:nth-child(9n + 3) { color: var(--electric); text-shadow: 0 0 18px var(--electric); }
.motion-shape:nth-child(9n + 6) { color: var(--acid); text-shadow: 0 0 16px var(--acid); }
.motion-shape:nth-child(9n + 8) { color: var(--neon-green); text-shadow: 0 0 18px var(--neon-green); }

.love-signal {
  position: absolute;
  max-width: 220px;
  color: rgba(255, 191, 220, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.75rem, 1.6vw, 1.1rem);
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  white-space: nowrap;
  animation: love-drift var(--love-time) var(--love-delay) ease-in-out infinite alternate;
}

.control-bar {
  background: rgba(25, 21, 34, 0.88);
  color: var(--paper);
}

.mini-logo { color: var(--paper); }
.mini-logo span { color: #a86a82; -webkit-text-stroke-color: var(--paper); }

.permanent-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b3349;
  color: var(--paper);
  animation: signal-pulse 1.4s ease-in-out infinite alternate;
}

.permanent-mode i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a86a82;
  box-shadow: 0 0 14px #a86a82;
}

.ticker { background: #16131f; color: #bba66c; }
.side-rail { background: #604052; color: #cbbf9e; }
.side-rail-right { background: #31545a; color: #d8d0c4; }

.hero {
  background:
    linear-gradient(115deg, rgba(18, 16, 26, 0.08), rgba(103, 84, 127, 0.16)),
    radial-gradient(circle at 50% 55%, rgba(216, 208, 196, 0.12), transparent 48%);
}

.hero::before { background: #704358; animation: block-one 4s ease-in-out infinite alternate; }
.hero::after { background: #315c64; animation: block-two 5s ease-in-out infinite alternate-reverse; }
.hero h1 { animation: title-drift 2.2s ease-in-out infinite alternate; }

.outline-text { text-shadow: 7px 7px 0 #75455b; }
.solid-text { color: #9b5875; text-shadow: 9px 9px 0 #386b72; }
.number-text { color: #a58a45; text-shadow: 8px 8px 0 #5c4974; }

.hero-copy,
.hero-kicker,
.fake-notification {
  background: rgba(216, 208, 196, 0.88);
}

.mega-button {
  background: #85506a;
  box-shadow: 0 10px 0 #4f3040, 0 17px 0 var(--ink), 0 23px 35px rgba(0, 0, 0, 0.42);
  animation: button-drift 1.6s ease-in-out infinite alternate;
}

.button-main { color: #c2a95d; }
.hero-stamps span { background: #53674d; color: var(--paper); }
.hero-stamps span:nth-child(2) { background: #3b6670; }
.hero-stamps span:nth-child(3) { background: #8d563d; }

.sticker {
  border-color: rgba(216, 208, 196, 0.72);
  background: rgba(35, 29, 46, 0.72);
  color: #b69c5c;
  box-shadow: 6px 6px 0 rgba(18, 16, 26, 0.75);
  backdrop-filter: blur(8px);
}

.sticker:nth-child(2n) { color: #879b79; }
.sticker:nth-child(3n) { color: #9b647d; }
.sticker-one { color: var(--hot-pink); box-shadow: 0 0 24px rgba(255, 66, 179, 0.58), 6px 6px 0 rgba(18, 16, 26, 0.75); }
.sticker-two { color: var(--acid); }
.sticker-five { color: var(--electric); }
.sticker-six { color: var(--neon-green); }

.chaos-break { background: #17141e; }
.chaos-marquee { background: #704358; color: #d5c9b9; }
.chaos-panels > div { color: var(--paper); animation: tile-drift 2.6s ease-in-out infinite alternate; }
.chaos-panels > div:nth-child(2) { animation-delay: -0.6s; }
.chaos-panels > div:nth-child(3) { animation-delay: -1.2s; }
.chaos-panels > div:nth-child(4) { animation-delay: -1.8s; }
.slime-panel { background: #53674d !important; }
.wheel-panel { background: #3b6670 !important; }
.news-panel { background: #5d4d70 !important; }
.meter-panel { background: #87513a !important; }
.news-panel small { background: #76445a; }
.meter-panel i { background: linear-gradient(90deg, #53674d, #9b844c, #87513a); }

.game-shell,
.sound-lab {
  background: rgba(30, 26, 40, 0.9);
  color: var(--paper);
  backdrop-filter: blur(12px);
  animation: shell-drift 4.5s ease-in-out infinite alternate;
}

.game-stage { color: var(--ink); }
.locked-panel { background: rgba(165, 138, 69, 0.82); }
.scoreboard { background: #16131f; }
.scoreboard span { color: #bba66c; }
.progress-track { background: #2b2635; }
.progress-bar { background: linear-gradient(90deg, #98536f, #3f7379, #a58a45, #566d4e, #67547f, #9a5b3f); background-size: 240% 100%; animation: progress-flow 2s linear infinite; }

.choice-button {
  color: #17141e;
  animation: choice-float 2.4s ease-in-out infinite alternate;
}
.choice-button:nth-child(2) { animation-delay: -0.55s; }
.choice-button:nth-child(3) { animation-delay: -1.1s; }
.choice-button:nth-child(4) { animation-delay: -1.65s; }

.ad-strip { background: #4d6249; color: var(--paper); }
.ad-strip span { background: #704358; }

.sound-lab { background: rgba(67, 52, 82, 0.92); }
.sound-grid button {
  color: #17141e;
  animation: sound-float 1.8s ease-in-out infinite alternate;
}
.sound-grid button:nth-child(3n + 1) { background: #a58a45; }
.sound-grid button:nth-child(3n + 2) { background: #98536f; }
.sound-grid button:nth-child(3n + 3) { background: #566d4e; }
.sound-grid button:nth-child(4n) { animation-delay: -0.8s; }
.sound-grid button:nth-child(4n + 2) { animation-delay: -1.3s; }
.forbidden-button { background: #76445a; color: var(--paper); animation: amplify-drift 0.8s ease-in-out infinite alternate; }

.chaos-popup {
  border-color: #17141e;
  color: #17141e;
  box-shadow: 8px 8px 0 rgba(18, 16, 26, 0.72);
  animation:
    popup-arrive 320ms cubic-bezier(0.2, 1.8, 0.4, 1),
    popup-jitter 500ms 350ms infinite alternate,
    popup-float var(--float-time) 360ms ease-in-out infinite alternate;
  backdrop-filter: blur(9px);
}
.chaos-popup:nth-child(4n + 1) { background: rgba(165, 138, 69, 0.94); }
.chaos-popup:nth-child(4n + 2) { background: rgba(63, 115, 121, 0.94); }
.chaos-popup:nth-child(4n + 3) { background: rgba(152, 83, 111, 0.94); }
.chaos-popup:nth-child(4n + 4) { background: rgba(86, 109, 78, 0.94); }
.chaos-popup:nth-child(11n + 1) { background: color-mix(in srgb, var(--hot-pink) 65%, #4e3042); }
.chaos-popup:nth-child(11n + 5) { background: color-mix(in srgb, var(--electric) 58%, #31555b); }
.chaos-popup:nth-child(11n + 8) { background: color-mix(in srgb, var(--acid) 48%, #756c37); }
.romance-popup {
  background: rgba(91, 48, 74, 0.96) !important;
  color: #ffd6e9;
  box-shadow: 0 0 32px rgba(255, 66, 179, 0.36), 8px 8px 0 rgba(18, 16, 26, 0.72);
}
.romance-popup .popup-titlebar { color: #ffb7d8; }
.romance-popup .popup-button { background: #c987a6; color: #241722; }
.popup-titlebar { color: #c9b66f; }
.popup-close { background: #704358; }
.popup-button { background: rgba(216, 208, 196, 0.82); }

.combo-callout {
  color: #bca45c;
  text-shadow: 9px 9px 0 #744258, -7px -7px 0 #315e66;
}

.toast { background: #53674d; color: var(--paper); }

.text-jumble {
  display: inline-block;
  animation: text-slice 180ms steps(2) infinite alternate;
}

@keyframes ambient-shift {
  0% { background-position: 0% 0%, 100% 20%, 40% 100%, 30% 0%; }
  100% { background-position: 100% 80%, 0% 100%, 80% 0%, 70% 100%; }
}

@keyframes shape-orbit {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7); opacity: 0.18; }
  45% { opacity: 0.72; }
  100% { transform: translate3d(var(--move-x), var(--move-y), 0) rotate(420deg) scale(1.35); opacity: 0.28; }
}

@keyframes popup-float {
  to { translate: var(--float-x) var(--float-y); rotate: var(--float-turn); }
}

@keyframes title-drift {
  0% { translate: -8px -4px; rotate: -1deg; }
  100% { translate: 11px 7px; rotate: 1deg; }
}

@keyframes block-one { to { translate: 90px 44px; rotate: 28deg; scale: 1.25; } }
@keyframes block-two { to { translate: -100px -58px; rotate: -25deg; scale: 0.82; } }
@keyframes button-drift { to { translate: 8px -9px; rotate: 1deg; scale: 1.018; } }
@keyframes shell-drift { to { translate: 0 -9px; rotate: 0.25deg; } }
@keyframes tile-drift { to { translate: 5px -8px; rotate: 1.5deg; scale: 1.025; } }
@keyframes choice-float { to { translate: 5px -7px; rotate: 0.7deg; } }
@keyframes sound-float { to { translate: -4px -8px; rotate: -1.2deg; scale: 1.025; } }
@keyframes amplify-drift { to { translate: 7px -5px; rotate: 0.8deg; letter-spacing: 0.12em; } }
@keyframes progress-flow { to { background-position: 240% 0; } }
@keyframes signal-pulse { to { opacity: 0.7; translate: -3px 2px; } }
@keyframes text-slice {
  0% { translate: -1px 0; text-shadow: 2px 0 #98536f, -2px 0 #3f7379; }
  100% { translate: 2px -1px; text-shadow: -3px 0 #a58a45, 3px 0 #67547f; }
}

@keyframes love-drift {
  0% { opacity: 0.04; transform: translate(-10vw, 8vh) rotate(-8deg) scale(0.8); filter: blur(2px); }
  42% { opacity: 0.11; }
  50% { opacity: 0.92; transform: translate(4vw, -4vh) rotate(2deg) scale(1.12); filter: blur(0); text-shadow: 0 0 14px rgba(255, 183, 216, 0.75); }
  58% { opacity: 0.12; }
  100% { opacity: 0.03; transform: translate(18vw, 10vh) rotate(9deg) scale(0.85); filter: blur(2px); }
}

@keyframes fake-tab-twitch {
  to { translate: 2px -1px; color: var(--acid); }
}

/* Romantic finish */
.hero::before,
.hero::after {
  border-radius: 45% 55% 60% 40%;
  filter: blur(2px);
  opacity: 0.78;
}

.hero h1 {
  letter-spacing: -0.055em;
}

.solid-text {
  color: #bd6e91;
  text-shadow: 8px 8px 0 #4c7c83, 0 0 30px rgba(255, 66, 179, 0.28);
}

.number-text {
  font-size: 0.72em;
  color: #c9ad62;
}

.hero-copy,
.hero-kicker,
.fake-notification {
  border-radius: 14px;
  background: rgba(233, 222, 215, 0.9);
  box-shadow: 0 16px 45px rgba(18, 16, 26, 0.3), 4px 4px 0 var(--ink);
}

.mega-button {
  border-radius: 28px;
  background: linear-gradient(135deg, #a75d7e, #754761 48%, #4b6475);
  box-shadow: 0 10px 0 #4f3040, 0 17px 0 var(--ink), 0 24px 55px rgba(255, 66, 179, 0.2);
}

.game-shell,
.sound-lab {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 75px rgba(10, 8, 17, 0.48), 9px 9px 0 var(--ink);
}

.choice-button {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 16, 26, 0.24), 5px 5px 0 var(--ink);
}

.choice-button:hover {
  box-shadow: 0 18px 38px rgba(18, 16, 26, 0.3), 7px 7px 0 var(--ink);
}

.sound-grid button,
.forbidden-button,
.details-form,
.verdict-card {
  border-radius: 16px;
}

.forbidden-button {
  background: linear-gradient(90deg, #754761, #9d5e7b, #4f7277);
  box-shadow: 0 12px 40px rgba(255, 66, 179, 0.22), 7px 7px 0 var(--ink);
}

.chaos-popup {
  border-radius: 16px;
  overflow: hidden;
  animation:
    popup-arrive 420ms cubic-bezier(0.2, 1.4, 0.4, 1),
    popup-float var(--float-time) 420ms ease-in-out infinite alternate;
}

.fake-tab-strip {
  display: none;
}

.popup-titlebar {
  padding: 8px 10px;
  color: #f4c9dc;
}

.popup-close {
  border-radius: 50%;
  background: #754761;
}

.romance-popup,
.chaos-popup {
  background: linear-gradient(145deg, rgba(155, 88, 117, 0.97), rgba(67, 95, 105, 0.97)) !important;
  color: #f8ebf1;
  box-shadow: 0 0 36px rgba(255, 66, 179, 0.22), 8px 8px 0 rgba(18, 16, 26, 0.72);
}

.popup-button {
  border-radius: 9px;
  background: #eadadf;
}

.screen-shake {
  animation: romantic-shake 280ms ease-out;
}

@keyframes romantic-shake {
  0%, 100% { transform: translate(0); }
  35% { transform: translate(-2px, 1px) rotate(-0.08deg); }
  70% { transform: translate(2px, -1px) rotate(0.08deg); }
}

@media (max-width: 820px) {
  .control-bar,
  .game-topline,
  .sound-heading,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .control-bar {
    gap: 8px;
  }

  .control-group {
    justify-content: space-between;
  }

  .mini-logo,
  .volume-control {
    display: none;
  }

  .hero {
    min-height: 690px;
    padding-top: 55px;
  }

  .orbit {
    display: none;
  }

  .mega-button::before,
  .mega-button::after {
    display: none;
  }

  .game-topline {
    align-items: flex-start;
  }

  .scoreboard {
    width: 100%;
  }

  .scoreboard div {
    flex: 1;
    min-width: 0;
  }

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

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

  .sound-heading > p {
    max-width: none;
  }

  .chaos-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-rail {
    width: 18px;
  }

  .sticker {
    width: 64px;
    height: 64px;
    font-size: 1.8rem;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 620px;
  }

  h1 {
    margin-top: 24px;
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .hero-copy {
    margin-top: 8px;
  }

  .choice-button {
    grid-template-columns: auto 1fr;
    min-height: 96px;
  }

  .choice-arrow {
    display: none;
  }

  .ad-strip small,
  .ad-strip span:first-child {
    display: none;
  }

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

  .sound-grid button {
    min-height: 110px;
  }

  .section-tag {
    right: 12px;
  }

  .game-shell,
  .sound-lab {
    width: calc(100% - 18px);
    border-width: 4px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .game-stage,
  .game-topline,
  .sound-heading {
    padding-inline: 15px;
  }

  .progress-track,
  .sound-grid {
    margin-inline: 15px;
    padding-inline: 0;
  }

  .final-actions {
    grid-template-columns: 1fr;
  }

  .restart-button {
    grid-column: auto;
  }

  .gate-card {
    padding: 19px;
  }

  .chaos-popup {
    width: 155px;
    border-width: 3px;
  }

  .chaos-panels > div {
    min-height: 115px;
  }

  .sticker-four,
  .sticker-five,
  .sticker-six {
    display: none;
  }
}

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