:root {
  color-scheme: light;
  --ink: #16171a;
  --muted: #5f6470;
  --paper: #fbfbf7;
  --line: #d8d4ca;
  --yellow: #ffd944;
  --blue: #2474ff;
  --red: #d71920;
  --green: #21a66b;
  --shadow: 0 18px 45px rgba(20, 21, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 116, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(22, 23, 26, 0.05) 1px, transparent 1px),
    #f6f3ea;
  background-size: 44px 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(251, 251, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav a,
.primary-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow) 0 50%, var(--blue) 50%);
  border: 2px solid var(--ink);
}

.nav {
  display: flex;
  gap: clamp(10px, 3vw, 28px);
  font-weight: 700;
}

.nav a {
  position: relative;
  padding-block: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 72px) 34px;
}

.hero-copy h1 {
  margin: 8px 0 16px;
  font-size: clamp(42px, 7vw, 94px);
  line-height: 0.92;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.eyebrow,
.label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  color: #8a3b11;
}

.primary-link,
.button,
.admin-actions button,
.icon-button,
.admin-toggle,
.dialog-actions button {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
}

button:hover,
.primary-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.playground {
  position: relative;
  min-height: min(65vh, 560px);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(#8fd3ff 0 58%, #8bcf73 58% 100%);
  box-shadow: var(--shadow);
}

.sun {
  position: absolute;
  top: 34px;
  right: 52px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffbd2e;
  border: 3px solid var(--ink);
}

.cloud {
  position: absolute;
  width: 120px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(22, 23, 26, 0.45);
  animation: drift 9s ease-in-out infinite alternate;
}

.cloud-one {
  top: 92px;
  left: 12%;
}

.cloud-two {
  top: 150px;
  right: 18%;
  animation-duration: 12s;
}

.arena-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 4px;
  background: rgba(22, 23, 26, 0.55);
}

.draggable-stick {
  position: absolute;
  width: 76px;
  height: 154px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  animation: idle 0.85s ease-in-out infinite alternate;
}

.draggable-stick:active {
  cursor: grabbing;
}

.stick-head,
.stick-body,
.stick-arm,
.stick-leg {
  position: absolute;
  left: 50%;
  background: currentColor;
  transform-origin: top center;
}

.stick-head {
  top: 0;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: currentColor;
}

.stick-body {
  top: 43px;
  width: 8px;
  height: 56px;
  margin-left: -4px;
}

.stick-arm,
.stick-leg {
  width: 7px;
  height: 54px;
  margin-left: -3.5px;
}

.arm-left {
  top: 54px;
  transform: rotate(48deg);
}

.arm-right {
  top: 54px;
  transform: rotate(-48deg);
}

.leg-left {
  top: 94px;
  transform: rotate(34deg);
}

.leg-right {
  top: 94px;
  transform: rotate(-34deg);
}

.yellow-stick {
  color: var(--yellow);
}

.blue-stick {
  color: var(--blue);
}

.info-band,
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 38px clamp(16px, 5vw, 72px);
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.about {
  display: block;
  max-width: none;
  border-top: 0;
}

.info-band h2,
.about h2,
.panel h2 {
  margin: 0 0 10px;
}

.info-band p,
.about p,
.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.game-shell {
  padding: clamp(30px, 5vw, 62px) clamp(16px, 5vw, 72px);
}

.podcast-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  padding: clamp(34px, 6vw, 74px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(255, 217, 68, 0.2), rgba(36, 116, 255, 0.12)),
    var(--paper);
  border-block: 1px solid var(--line);
}

.animation-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  padding: clamp(34px, 6vw, 74px) clamp(16px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.22), rgba(36, 116, 255, 0.18)),
    #16171a;
  border-bottom: 1px solid var(--line);
}

.mobile-game-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  padding: clamp(34px, 6vw, 74px) clamp(16px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-game-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
}

.mobile-game-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
}

.animation-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
}

.animation-copy .eyebrow {
  color: var(--yellow);
}

.animation-copy p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
}

.animation-video-shell {
  padding: 10px;
  border: 3px solid #050608;
  border-radius: 8px;
  background: #050608;
  box-shadow: var(--shadow);
}

.animation-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #000;
  object-fit: contain;
}

.mobile-preview-stack {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: 16px;
}

.qr-code-preview,
.qr-preview {
  display: block;
  justify-self: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.qr-code-preview {
  width: min(100%, 280px);
  padding: 14px;
}

.qr-preview {
  width: min(100%, 720px);
  padding: 10px;
}

.qr-code-preview:hover,
.qr-code-preview:focus-visible,
.qr-preview:hover,
.qr-preview:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.qr-code-preview img,
.qr-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 14px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.phone-preview {
  position: relative;
  width: min(100%, 300px);
  min-height: 520px;
  margin-inline: auto;
  padding: 18px 14px 22px;
  border: 4px solid var(--ink);
  border-radius: 32px;
  background: #16171a;
  box-shadow: var(--shadow);
}

.phone-speaker {
  width: 72px;
  height: 8px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #3b3d42;
}

.phone-screen {
  position: relative;
  min-height: 448px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background:
    linear-gradient(#8fd3ff 0 58%, #8bcf73 58% 100%);
}

.phone-sun {
  position: absolute;
  top: 28px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffbd2e;
}

.phone-stick {
  position: absolute;
  bottom: 116px;
  width: 54px;
  height: 112px;
  color: var(--yellow);
  animation: idle 0.8s ease-in-out infinite alternate;
}

.phone-stick-yellow {
  left: 18%;
}

.phone-stick-blue {
  right: 18%;
  color: var(--blue);
  animation-delay: 0.18s;
}

.phone-stick span {
  position: absolute;
  left: 50%;
  background: currentColor;
  transform-origin: top center;
}

.phone-stick span:first-child {
  top: 0;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.phone-stick span:nth-child(2) {
  top: 35px;
  width: 7px;
  height: 42px;
  margin-left: -3.5px;
}

.phone-stick span:nth-child(3),
.phone-stick span:nth-child(4),
.phone-stick span:nth-child(5),
.phone-stick span:nth-child(6) {
  width: 6px;
  height: 38px;
  margin-left: -3px;
}

.phone-stick span:nth-child(3) {
  top: 43px;
  transform: rotate(48deg);
}

.phone-stick span:nth-child(4) {
  top: 43px;
  transform: rotate(-48deg);
}

.phone-stick span:nth-child(5) {
  top: 74px;
  transform: rotate(34deg);
}

.phone-stick span:nth-child(6) {
  top: 74px;
  transform: rotate(-34deg);
}

.phone-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 4px;
  background: rgba(22, 23, 26, 0.55);
}

.podcast-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
}

.podcast-copy p {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
}

.podcast-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 16px;
}

.podcast-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 118px;
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.podcast-play:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.play-symbol {
  width: 0;
  height: 0;
  border-block: 10px solid transparent;
  border-left: 15px solid #fff;
}

.podcast-section.is-playing .play-symbol {
  width: 15px;
  height: 18px;
  border: 0;
  background:
    linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65% 100%);
}

.podcast-track {
  display: grid;
  gap: 8px;
}

.podcast-track input[type="range"] {
  accent-color: var(--blue);
  cursor: pointer;
}

.podcast-times {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.podcast-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(#90d7ff 0 58%, #82c96f 58% 100%);
  box-shadow: var(--shadow);
}

.podcast-sun {
  position: absolute;
  top: 34px;
  right: 38px;
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #ffbd2e;
}

.podcast-cloud {
  position: absolute;
  width: 118px;
  height: 40px;
  border: 2px solid rgba(22, 23, 26, 0.45);
  border-radius: 999px;
  background: #fff;
  animation: drift 10s ease-in-out infinite alternate;
}

.cloud-left {
  top: 94px;
  left: 10%;
}

.cloud-right {
  top: 142px;
  right: 22%;
  animation-duration: 13s;
}

.sound-ring {
  position: absolute;
  left: 51%;
  top: 50%;
  width: 120px;
  height: 120px;
  border: 4px solid rgba(255, 217, 68, 0.78);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.45);
  opacity: 0;
}

.ring-two {
  border-color: rgba(36, 116, 255, 0.68);
}

.podcast-section.is-playing .sound-ring {
  animation: pulse-ring 1.35s ease-out infinite;
}

.podcast-section.is-playing .ring-two {
  animation-delay: 0.45s;
}

.mic-stand {
  position: absolute;
  left: 52%;
  bottom: 105px;
  width: 72px;
  height: 170px;
  transform: translateX(-50%);
  z-index: 3;
}

.mic-head {
  position: absolute;
  left: 18px;
  top: 0;
  width: 38px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.42) 0 5px, transparent 5px 10px),
    var(--red);
}

.mic-body {
  position: absolute;
  left: 34px;
  top: 56px;
  width: 7px;
  height: 88px;
  background: var(--ink);
}

.mic-base {
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 62px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.podcast-host {
  position: absolute;
  left: 26%;
  bottom: 96px;
  width: 90px;
  height: 175px;
  color: var(--yellow);
  z-index: 4;
  animation: podcast-idle 0.95s ease-in-out infinite alternate;
}

.podcast-section.is-playing .podcast-host {
  animation-duration: 0.48s;
}

.host-head,
.host-body,
.host-arm,
.host-leg {
  position: absolute;
  left: 50%;
  background: currentColor;
  transform-origin: top center;
}

.host-head {
  top: 0;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.host-body {
  top: 48px;
  width: 8px;
  height: 62px;
  margin-left: -4px;
}

.host-arm,
.host-leg {
  width: 7px;
  height: 58px;
  margin-left: -3.5px;
}

.host-arm-left {
  top: 60px;
  transform: rotate(52deg);
}

.host-arm-right {
  top: 58px;
  transform: rotate(-62deg);
}

.host-leg-left {
  top: 104px;
  transform: rotate(34deg);
}

.host-leg-right {
  top: 104px;
  transform: rotate(-34deg);
}

.equalizer {
  position: absolute;
  right: 11%;
  bottom: 112px;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 122px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(251, 251, 247, 0.86);
  z-index: 4;
}

.equalizer span {
  width: 13px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 5px 5px;
  background: var(--blue);
  transform-origin: bottom;
}

.equalizer span:nth-child(2n) {
  background: var(--yellow);
}

.equalizer span:nth-child(3n) {
  background: var(--red);
}

.podcast-section.is-playing .equalizer span {
  animation: equalizer-bounce 0.7s ease-in-out infinite alternate;
}

.podcast-section.is-playing .equalizer span:nth-child(2) {
  animation-delay: 0.08s;
}

.podcast-section.is-playing .equalizer span:nth-child(3) {
  animation-delay: 0.16s;
}

.podcast-section.is-playing .equalizer span:nth-child(4) {
  animation-delay: 0.24s;
}

.podcast-section.is-playing .equalizer span:nth-child(5) {
  animation-delay: 0.32s;
}

.podcast-section.is-playing .equalizer span:nth-child(6) {
  animation-delay: 0.4s;
}

.podcast-section.is-playing .equalizer span:nth-child(7) {
  animation-delay: 0.48s;
}

.podcast-section.is-playing .equalizer span:nth-child(8) {
  animation-delay: 0.56s;
}

.podcast-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 4px;
  background: rgba(22, 23, 26, 0.55);
}

.panel {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(251, 251, 247, 0.94);
  box-shadow: var(--shadow);
}

.lobby-panel,
.mode-panel {
  max-width: 760px;
  margin: auto;
  padding: clamp(22px, 4vw, 36px);
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 900;
}

.profile-picker {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.profile-preview,
.hud-profile img,
.score-avatar {
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  object-fit: cover;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 28px;
  font-weight: 900;
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.color-choice {
  aspect-ratio: 1;
  min-height: 48px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.color-choice.is-selected {
  outline: 4px solid #111;
  outline-offset: 3px;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.ghost {
  background: #fff;
}

.scoreboards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 22px auto 0;
}

.scoreboard {
  padding: 18px;
}

.scoreboard ol {
  margin: 10px 0 0;
  padding-left: 0;
  line-height: 1.3;
  font-weight: 800;
  list-style: none;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.score-row:first-child {
  border-top: 0;
}

.score-avatar {
  width: 38px;
  height: 38px;
  border-width: 2px;
  font-size: 15px;
  flex: 0 0 auto;
}

.score-row strong,
.score-row span {
  display: block;
}

.score-row span {
  color: var(--muted);
  font-size: 13px;
}

.mode-panel {
  margin-top: 20px;
}

.mode-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-layout {
  position: relative;
  display: grid;
  gap: 14px;
}

.hud,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.hud > div {
  display: grid;
  gap: 2px;
}

.hud-profile {
  align-items: center;
  justify-items: center;
}

.hud-profile img {
  width: 52px;
  height: 52px;
  border-width: 2px;
  display: block;
}

.hud strong {
  white-space: nowrap;
}

canvas {
  display: block;
  width: 100%;
  max-height: 70vh;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #d9f0ff;
  box-shadow: var(--shadow);
}

.controls {
  flex-wrap: wrap;
  font-weight: 800;
}

.mobile-pad {
  position: absolute;
  left: 24px;
  bottom: 76px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  touch-action: none;
  z-index: 5;
}

.mobile-stick {
  position: absolute;
  left: 34px;
  top: 34px;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.admin-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.admin-toggle {
  background: var(--red);
  color: #fff;
}

.admin-login,
.admin-panel {
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
}

.admin-login label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.login-row {
  display: flex;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.login-message,
.admin-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-weight: 800;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: #fff;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: min(58vh, 430px);
  overflow: auto;
}

.admin-actions button {
  background: #fff;
  min-height: 46px;
  padding: 8px;
}

dialog {
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

.ban-box {
  min-width: min(360px, 80vw);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

footer {
  padding: 28px;
  text-align: center;
  font-weight: 900;
  color: #fff;
  background: var(--ink);
}

.is-hidden {
  display: none !important;
}

@keyframes idle {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes drift {
  from {
    transform: translateX(-18px);
  }
  to {
    transform: translateX(22px);
  }
}

@keyframes podcast-idle {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-9px) rotate(1deg);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.42);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.3);
  }
}

@keyframes equalizer-bounce {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1.75);
  }
}

@media (max-width: 820px) {
  .hero,
  .info-band,
  .scoreboards,
  .podcast-section,
  .animation-section,
  .mobile-game-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .playground {
    min-height: 430px;
  }

  .podcast-stage {
    min-height: 420px;
  }

  .phone-preview {
    min-height: 480px;
  }

  .phone-screen {
    min-height: 408px;
  }

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

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
  }

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

  canvas {
    min-height: 420px;
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  .mobile-preview-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .color-grid,
  .admin-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-row {
    flex-direction: column;
  }

  .profile-picker {
    grid-template-columns: 1fr;
  }

  .podcast-player {
    grid-template-columns: 1fr;
  }

  .podcast-play {
    width: 100%;
  }

  .podcast-host {
    left: 18%;
  }

  .equalizer {
    right: 6%;
    gap: 5px;
    padding: 9px;
  }

  .equalizer span {
    width: 10px;
  }
}
