/* src/index.css */
:root {
  --paper: #fff6e8;
  --ink: #33335c;
  --ink-soft: #33335c8c;
  --white: #fffdf8;
  --coral: #ff6b6b;
  --coral-soft: #ffe3dd;
  --teal: #1fbfae;
  --teal-soft: #d7f4ef;
  --grape: #9b5de5;
  --grape-soft: #ede1fc;
  --sun: #ffc53d;
  --sky: #4cc9f0;
  --sky-soft: #dcf3fc;
  --grass: #57cc75;
  --grass-soft: #ddf5e4;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle, #33335c17 2.6px, #0000 2.6px);
  background-size: 36px 36px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px clamp(14px, 4vw, 40px) 48px;
}

.mirrored {
  transform: scaleX(-1);
}

.btn {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 999px;
  padding: 12px 24px;
  transition: transform .12s, box-shadow .12s;
  font-size: 1.05rem;
  font-weight: 600;
}

.btn:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.btn:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.btn-big {
  padding: 16px 34px;
  font-size: 1.35rem;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-grape {
  background: var(--grape);
  color: #fff;
}

.btn-sky {
  background: var(--sky);
  color: #fff;
}

.btn-grass {
  background: var(--grass);
  color: #fff;
}

.btn-ghost {
  box-shadow: none;
  background: none;
  border-color: #0000;
  font-size: 1rem;
}

.btn-ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
  background: var(--white);
  transform: none;
}

.screen-top {
  display: flex;
  align-items:  center;
  gap: 16px;
  margin-bottom: 20px;
}

.screen-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
}

.accent-coral {
  color: var(--coral);
}

.accent-teal {
  color: var(--teal);
}

.accent-grape {
  color: var(--grape);
}

.accent-sky {
  color: var(--sky);
}

.accent-grass {
  color: var(--grass);
}

.hero {
  text-align: center;
  padding: 20px 0 30px;
}

.hero-buddy {
  display: inline-block;
  animation: 2.4s ease-in-out infinite buddy-bounce;
}

@keyframes buddy-bounce {
  0%, 100% {
    transform: translateY(0)rotate(-3deg);
  }

  50% {
    transform: translateY(-10px)rotate(3deg);
  }
}

.hero-title {
  letter-spacing: -.02em;
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
}

.hero-title .tilt-l {
  display: inline-block;
  color: var(--coral);
  text-shadow: 4px 4px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink);
  transform: rotate(-3deg);
}

.hero-title .tilt-r {
  display: inline-block;
  color: var(--teal);
  text-shadow: 4px 4px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink);
  transform: rotate(2.5deg);
}

.hero-sub {
  color: var(--ink-soft);
  margin: 14px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.game-card {
  position: relative;
  display: flex;
  text-align: center;
  background: var(--white);
  border: 3px solid var(--ink);
  animation: .5s cubic-bezier(.34,1.56,.64,1) both card-in;
  border-radius: 28px;
  flex-direction: column;
  align-items:  center;
  gap: 8px;
  padding: 26px 20px 24px;
  transition: transform .15s, box-shadow .15s;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px)scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.game-card.color-coral {
  box-shadow: 7px 7px 0 var(--coral);
}

.game-card.color-teal {
  box-shadow: 7px 7px 0 var(--teal);
}

.game-card.color-grape {
  box-shadow: 7px 7px 0 var(--grape);
}

.game-card.color-sky {
  box-shadow: 7px 7px 0 var(--sky);
}

.game-card.color-grass {
  box-shadow: 7px 7px 0 var(--grass);
}

.game-card:hover {
  transform: translate(-3px, -3px)rotate(-.5deg);
}

.game-card.color-coral:hover {
  box-shadow: 11px 11px 0 var(--coral);
}

.game-card.color-teal:hover {
  box-shadow: 11px 11px 0 var(--teal);
}

.game-card.color-grape:hover {
  box-shadow: 11px 11px 0 var(--grape);
}

.game-card.color-sky:hover {
  box-shadow: 11px 11px 0 var(--sky);
}

.game-card.color-grass:hover {
  box-shadow: 11px 11px 0 var(--grass);
}

.game-diff {
  position: absolute;
  font-family: var(--font-display);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .85rem;
  font-weight: 600;
  top: -14px;
  right: 18px;
  transform: rotate(3deg);
}

.color-coral .game-diff {
  background: var(--coral-soft);
}

.color-teal .game-diff {
  background: var(--teal-soft);
}

.color-grape .game-diff {
  background: var(--grape-soft);
}

.color-sky .game-diff {
  background: var(--sky-soft);
}

.color-grass .game-diff {
  background: var(--grass-soft);
}

.game-figure {
  border-radius: 50%;
  padding: 14px;
}

.color-coral .game-figure {
  background: var(--coral-soft);
}

.color-teal .game-figure {
  background: var(--teal-soft);
}

.color-grape .game-figure {
  background: var(--grape-soft);
}

.color-sky .game-figure {
  background: var(--sky-soft);
}

.color-grass .game-figure {
  background: var(--grass-soft);
}

.game-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.game-tag {
  color: var(--ink-soft);
  min-height: 2.4em;
  margin: 0;
  font-weight: 700;
}

.game-start {
  font-family: var(--font-display);
  border: 3px solid var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 1.1rem;
  font-weight: 600;
}

.color-coral .game-start {
  background: var(--coral);
}

.color-teal .game-start {
  background: var(--teal);
}

.color-grape .game-start {
  background: var(--grape);
}

.color-sky .game-start {
  background: var(--sky);
}

.color-grass .game-start {
  background: var(--grass);
}

.privacy-note {
  text-align: center;
  color: var(--ink-soft);
  align-self:  center;
  max-width: 560px;
  margin-top: 44px;
  font-size: .85rem;
  font-weight: 700;
}

.legal-note {
  color: var(--ink-soft);
  text-align: left;
  width: min(760px, 100%);
  margin: 18px auto 0;
  font-size: .78rem;
  line-height: 1.5;
}

.legal-note details {
  border-top: 2px solid #33335c29;
  padding-top: 10px;
}

.legal-note summary {
  cursor: pointer;
  text-align: center;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

.legal-note-body {
  background: #fffdf8b8;
  border: 2px solid #33335c29;
  border-radius: 14px;
  margin-top: 10px;
  padding: 12px 16px;
}

.legal-note-body p {
  margin: 0 0 10px;
}

.legal-note-body p:last-child {
  margin-bottom: 0;
}

.legal-note a {
  color: var(--ink);
  font-weight: 800;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 1fr);
  align-items:  start;
  gap: 30px;
}

@media (max-width: 760px) {
  .setup-layout {
    grid-template-columns: 1fr;
  }
}

.cam-card {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  border-radius: 28px;
  padding: 14px;
  transition: box-shadow .3s;
}

.cam-card.cam-ok {
  box-shadow: 7px 7px 0 var(--grass);
  border-color: var(--grass);
}

.cam-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.cam-frame video, .cam-frame canvas {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  inset: 0;
}

.cam-overlay {
  pointer-events: none;
}

.cam-status {
  position: absolute;
  display: flex;
  text-align: center;
  color: var(--white);
  font-family: var(--font-display);
  z-index: 3;
  background: #33335cd9;
  justify-content: center;
  align-items:  center;
  padding: 20px;
  font-size: 1.15rem;
  inset: 0;
}

.cam-hint {
  text-align: center;
  font-family: var(--font-display);
  color: var(--ink-soft);
  min-height: 1.4em;
  margin: 12px 0 2px;
  font-size: 1.1rem;
  font-weight: 600;
}

.cam-hint.ok {
  color: var(--grass);
}

.settings-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.setting-group h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: flex;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 18px;
  flex-direction: column;
  align-items:  center;
  gap: 1px;
  padding: 9px 18px;
  transition: transform .1s;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 3px 3px #33335c40;
}

.chip small {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 700;
}

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

.chip-on {
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
}

.chip-on small {
  color: var(--ink);
}

.demo-stage {
  display: flex;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 32px;
  flex-direction: column;
  align-items:  center;
  gap: 18px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 40px 24px 34px;
}

.demo-stage.color-coral {
  box-shadow: 8px 8px 0 var(--coral);
}

.demo-stage.color-teal {
  box-shadow: 8px 8px 0 var(--teal);
}

.demo-stage.color-grape {
  box-shadow: 8px 8px 0 var(--grape);
}

.demo-stage.color-sky {
  box-shadow: 8px 8px 0 var(--sky);
}

.demo-stage.color-grass {
  box-shadow: 8px 8px 0 var(--grass);
}

.figure-pop {
  animation: .35s cubic-bezier(.34,1.8,.64,1) figure-pop;
}

@keyframes figure-pop {
  0% {
    transform: scale(.88);
  }

  100% {
    transform: scale(1);
  }
}

.figure-burst {
  animation: .5s ease-out burst;
  transform-origin: center;
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: scale(.4);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.demo-label {
  font-family: var(--font-display);
  animation: .3s cubic-bezier(.34,1.56,.64,1) label-pop;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
}

@keyframes label-pop {
  from {
    transform: scale(.85);
    opacity: .4;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.beat-dots {
  display: flex;
  gap: 14px;
}

.beat-dot {
  border: 3px solid var(--ink);
  background: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  transition: transform .1s;
}

.beat-dot.on {
  animation: .25s dot-pop;
  transform: scale(1.45);
}

@keyframes dot-pop {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.45);
  }
}

.demo-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.play-screen {
  padding-top: 14px;
  padding-bottom: 20px;
}

.play-stage {
  position: relative;
  border: 4px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
  border-radius: 32px;
  flex: 1;
  min-height: min(76vh, 720px);
  box-shadow: 9px 9px #33335c4d;
}

.play-video, .play-overlay {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  inset: 0;
}

.play-overlay {
  pointer-events: none;
}

.beat-ring {
  position: absolute;
  animation: .4s ease-out ring-pulse;
  pointer-events: none;
  z-index: 4;
  background: #fffdf840;
  border: 6px solid;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  top: 70px;
  left: 50%;
}

@keyframes ring-pulse {
  0% {
    transform: scale(1.7);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: .75;
  }
}

.hit-burst {
  position: absolute;
  color: var(--sun);
  text-shadow: 3px 3px 0 var(--ink);
  animation: .6s ease-out forwards hit-burst;
  pointer-events: none;
  z-index: 5;
  font-size: 5rem;
  top: 30%;
  left: 50%;
}

@keyframes hit-burst {
  0% {
    transform: translate(-50%, -50%)scale(.3)rotate(-20deg);
    opacity: 0;
  }

  35% {
    transform: translate(-50%, -50%)scale(1.3)rotate(8deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -80%)scale(1)rotate(0);
    opacity: 0;
  }
}

.countin {
  position: absolute;
  display: flex;
  z-index: 6;
  pointer-events: none;
  background: #33335c73;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.countin span {
  font-family: var(--font-display);
  color: var(--white);
  text-shadow: 5px 5px 0 var(--ink);
  animation: .35s cubic-bezier(.34,1.8,.64,1) figure-pop;
  font-size: 7rem;
  font-weight: 700;
}

.countin p {
  font-family: var(--font-display);
  color: var(--white);
  margin: 4px 0 0;
  font-size: 1.5rem;
}

.body-warn {
  position: absolute;
  background: var(--sun);
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  z-index: 6;
  animation: .3s label-pop;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 600;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
}

.hug-wait {
  position: absolute;
  display: flex;
  z-index: 6;
  background: #33335c73;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 14px;
  inset: 0;
}

.hug-wait-label {
  font-family: var(--font-display);
  color: var(--white);
  text-shadow: 3px 3px 0 var(--ink);
  text-align: center;
  animation: .3s label-pop;
  margin: 0;
  padding: 0 20px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
}

.hug-wait-btn {
  opacity: .85;
  padding: 8px 20px;
  font-size: .95rem;
}

.big-ui .hug-wait-label {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}

.play-hud-top {
  position: absolute;
  display: flex;
  z-index: 7;
  justify-content: space-between;
  align-items:  center;
  top: 14px;
  left: 14px;
  right: 14px;
}

.btn-quit {
  color: var(--white);
  padding: 6px 14px;
  font-size: 1.3rem;
}

.btn-quit:hover {
  color: var(--ink);
}

.play-timer, .play-hits {
  font-family: var(--font-display);
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  text-align: center;
  min-width: 60px;
  font-size: 1.3rem;
  font-weight: 700;
}

.play-hud-bottom {
  position: absolute;
  display: flex;
  z-index: 7;
  pointer-events: none;
  flex-direction: column;
  align-items:  center;
  gap: 12px;
  bottom: 26px;
  left: 0;
  right: 0;
}

.move-card {
  display: flex;
  background: var(--white);
  border: 3px solid var(--ink);
  animation: .25s label-pop;
  border-radius: 22px;
  align-items:  center;
  gap: 14px;
  padding: 10px 22px 10px 12px;
}

.move-card.color-coral {
  box-shadow: 5px 5px 0 var(--coral);
}

.move-card.color-teal {
  box-shadow: 5px 5px 0 var(--teal);
}

.move-card.color-grape {
  box-shadow: 5px 5px 0 var(--grape);
}

.move-label {
  font-family: var(--font-display);
  margin-bottom: 6px;
  font-size: 1.35rem;
  font-weight: 700;
}

.cheer {
  font-family: var(--font-display);
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  animation: .4s label-pop;
  font-size: 1.1rem;
  font-weight: 600;
}

.play-progress {
  position: absolute;
  z-index: 7;
  background: #fffdf840;
  height: 12px;
  bottom: 0;
  left: 0;
  right: 0;
}

.play-progress-fill {
  background: var(--sun);
  border-right: 3px solid var(--ink);
  height: 100%;
  transition: width .4s linear;
}

.result-screen {
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items:  center;
}

.confetti {
  position: absolute;
  border: 2px solid var(--ink);
  animation: 3.2s ease-in infinite confetti-fall;
  z-index: 1;
  border-radius: 4px;
  width: 12px;
  height: 18px;
  top: -20px;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-30px)rotate(0);
    opacity: 1;
  }

  100% {
    transform: translateY(105vh) rotate(calc(var(--spin, 1) * 540deg));
    opacity: .9;
  }
}

.result-card {
  position: relative;
  z-index: 2;
  display: flex;
  text-align: center;
  background: var(--white);
  border: 3px solid var(--ink);
  animation: .5s cubic-bezier(.34,1.56,.64,1) card-in;
  border-radius: 36px;
  flex-direction: column;
  align-items:  center;
  gap: 8px;
  width: min(620px, 100%);
  padding: 40px clamp(24px, 6vw, 64px) 36px;
}

.result-card.color-coral {
  box-shadow: 10px 10px 0 var(--coral);
}

.result-card.color-teal {
  box-shadow: 10px 10px 0 var(--teal);
}

.result-card.color-grape {
  box-shadow: 10px 10px 0 var(--grape);
}

.result-round {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-soft);
  margin: 0;
  font-size: .85rem;
  font-weight: 800;
}

.result-title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
}

.result-stars {
  display: flex;
  gap: 8px;
  font-size: 2.6rem;
}

.star {
  color: #33335c2e;
  -webkit-text-stroke: 2px var(--ink);
}

.star.on {
  color: var(--sun);
  animation: .45s cubic-bezier(.34,1.8,.64,1) both star-in;
}

@keyframes star-in {
  from {
    transform: scale(0)rotate(-40deg);
  }

  to {
    transform: scale(1)rotate(0);
  }
}

.result-note {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.result-stats {
  display: flex;
  gap: 30px;
  margin: 18px 0 6px;
}

.result-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
}

.result-stats span {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.result-card.color-sky {
  box-shadow: 10px 10px 0 var(--sky);
}

.result-card.color-grass {
  box-shadow: 10px 10px 0 var(--grass);
}

.balance-banner {
  display: flex;
  text-align: left;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--grass);
  cursor: pointer;
  animation: .5s cubic-bezier(.34,1.56,.64,1) .3s both card-in;
  border-radius: 28px;
  align-items:  center;
  gap: 22px;
  width: min(720px, 100%);
  margin: 40px auto 0;
  padding: 18px 26px;
  transition: transform .15s, box-shadow .15s;
}

.balance-banner:hover {
  box-shadow: 11px 11px 0 var(--grass);
  transform: translate(-3px, -3px)rotate(-.4deg);
}

.balance-banner-text {
  flex: 1;
}

.balance-banner-text h2 {
  margin: 2px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.balance-banner-text p {
  color: var(--ink-soft);
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.balance-banner-new {
  font-family: var(--font-display);
  background: var(--sun);
  border: 2.5px solid var(--ink);
  display: inline-block;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: .8rem;
  font-weight: 600;
  transform: rotate(-2deg);
}

.balance-banner-go {
  background: var(--grass);
  white-space: nowrap;
}

.hero-small {
  padding: 4px 0 22px;
}

.hero-title-small {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
}

.hero-title .alt-a {
  color: var(--grass);
}

.hero-title .alt-b {
  color: var(--sky);
}

.balance-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.how-list {
  text-align: left;
  max-width: 420px;
  margin: 0;
  padding-left: 24px;
  font-weight: 700;
}

.how-list li {
  margin: 5px 0;
}

.demo-copy {
  color: var(--ink-soft);
  text-align: center;
  max-width: 420px;
  margin: 0;
  font-weight: 700;
}

.chip-row-center {
  justify-content: center;
}

.safety-list {
  list-style: none;
  text-align: left;
  max-width: 430px;
  margin: 0;
  padding: 0;
  font-weight: 800;
}

.safety-list li {
  margin: 7px 0;
}

.gate-note {
  color: var(--ink-soft);
  text-align: center;
  max-width: 440px;
  margin: 4px 0 0;
  font-size: .82rem;
  font-weight: 700;
}

.big-timer {
  display: flex;
  background: var(--white);
  border: 3px solid var(--ink);
  animation: .25s label-pop;
  border-radius: 22px;
  flex-direction: column;
  align-items:  center;
  gap: 2px;
  padding: 12px 28px;
  box-shadow: 5px 5px;
}

.big-timer-num {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.big-timer-label {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
}

.side-chips {
  display: flex;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.side-chip {
  border: 2.5px solid var(--ink);
  background: #fffdf8eb;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 800;
}

.stage-done-btn, .play-hud-bottom .btn {
  pointer-events: auto;
}

.stage-card {
  background: var(--white);
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  text-align: center;
  animation: .3s label-pop;
  border-radius: 22px;
  max-width: 480px;
  padding: 14px 24px;
  font-size: 1.25rem;
  font-weight: 600;
}

.stage-card.color-grape {
  box-shadow: 5px 5px 0 var(--grape);
}

.night-countin {
  background: #1f1b4ab8;
}

.hold-bar {
  border: 3px solid var(--ink);
  overflow: hidden;
  background: #fffdf859;
  border-radius: 999px;
  width: min(420px, 80%);
  height: 26px;
}

.hold-bar-fill {
  background: var(--sky);
  border-radius: 999px;
  height: 100%;
  transition: width .15s linear;
}

.grow-demo {
  display: flex;
  align-items:  flex-end;
  gap: 16px;
}

.grow-arrow {
  color: var(--grass);
  padding-bottom: 30px;
  font-size: 2rem;
  font-weight: 800;
}

.grow-stages {
  display: flex;
  border: 3px solid var(--ink);
  background: #fffdf8eb;
  border-radius: 999px;
  align-items:  center;
  gap: 14px;
  padding: 6px 20px;
}

.grow-stage {
  display: flex;
  font-family: var(--font-display);
  opacity: .35;
  align-items:  center;
  gap: 6px;
  transition: opacity .2s, transform .2s;
  font-size: .95rem;
  font-weight: 600;
}

.grow-stage.on {
  opacity: 1;
  transform: scale(1.12);
}

.ui-size-toggle {
  position: fixed;
  z-index: 50;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  transition: transform .1s;
  font-size: .95rem;
  font-weight: 600;
  top: 14px;
  right: 14px;
  box-shadow: 3px 3px #33335c40;
}

.ui-size-toggle:hover {
  transform: translateY(-2px);
}

.ui-size-toggle.on {
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
}

.move-label-bare {
  font-family: var(--font-display);
  color: var(--white);
  text-shadow: 3px 3px 0 var(--ink);
  animation: .25s label-pop;
  font-size: 2rem;
  font-weight: 700;
}

.big-ui .move-card {
  border-width: 4px;
  border-radius: 30px;
  gap: 22px;
  padding: 18px 36px 18px 20px;
}

.big-ui .move-label {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.big-ui .move-card .beat-dot {
  width: 30px;
  height: 30px;
}

.big-ui .move-label-bare {
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.big-ui .play-timer, .big-ui .play-hits {
  text-shadow: 3px 3px 0 var(--ink);
  font-size: clamp(2rem, 6vw, 3rem);
}

.big-ui .btn-quit {
  padding: 8px 20px;
  font-size: 2rem;
}

.big-ui .cheer {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.big-ui .body-warn {
  padding: 12px 30px;
  font-size: 1.7rem;
}

.big-ui .countin span {
  font-size: clamp(9rem, 30vw, 14rem);
}

.big-ui .countin p {
  font-size: clamp(2rem, 6vw, 3rem);
}

.big-ui .hit-burst {
  font-size: 8rem;
}

.big-ui .beat-ring {
  border-width: 9px;
  width: 90px;
  height: 90px;
  margin-left: -45px;
}

.big-ui .play-progress {
  height: 20px;
}

.big-ui .cam-status {
  font-size: 2rem;
}

.big-ui .big-timer {
  border-width: 4px;
  border-radius: 30px;
  padding: 18px 44px;
}

.big-ui .big-timer-num {
  font-size: clamp(4.5rem, 14vw, 7rem);
}

.big-ui .big-timer-label {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.big-ui .hold-bar {
  border-width: 4px;
  width: min(560px, 86%);
  height: 46px;
}

.big-ui .stage-card {
  max-width: 640px;
  padding: 20px 34px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.big-ui .side-chip {
  padding: 8px 22px;
  font-size: 1.35rem;
}

.big-ui .grow-stage {
  font-size: 1.5rem;
}

.big-ui .grow-stages {
  padding: 10px 28px;
}

.big-ui .demo-label {
  font-size: clamp(2rem, 6vw, 3rem);
}
