/* ===== GAME SHELL ===== */
.app {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 30;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.topbar .brand img { height: 26px; width: auto; }
.scoreboard {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c-text);
}
.scoreboard .pill {
  padding: 6px 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
}
.muteBtn {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--c-text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

/* ===== WORLD (parallax sea) ===== */
.world {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}
.world::before,
.world::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.world::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(243,109,200,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 110%, rgba(3,222,254,0.18), transparent 60%);
}
.world::after {
  /* shimmering caustics */
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(65deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 11px);
  mix-blend-mode: screen;
  animation: caustics 7s linear infinite;
}
@keyframes caustics {
  from { transform: translateX(0); }
  to   { transform: translateX(-40px); }
}

/* Bubbles */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -40px;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.1) 55%, transparent 70%);
  border-radius: 50%;
  animation: rise linear infinite;
  opacity: 0.7;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)); opacity: 0; }
}

/* Seabed strip */
.seabed {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  z-index: 2;
  background:
    radial-gradient(circle at 12% 60%, #2a165f 0 14px, transparent 16px),
    radial-gradient(circle at 28% 80%, #2a165f 0 10px, transparent 12px),
    radial-gradient(circle at 60% 70%, #2a165f 0 18px, transparent 20px),
    radial-gradient(circle at 86% 60%, #2a165f 0 12px, transparent 14px),
    linear-gradient(180deg, transparent 0%, #1a0b48 40%, #0a0428 100%);
  border-top: 2px dashed rgba(255,255,255,0.06);
  filter: drop-shadow(0 -6px 14px rgba(243,109,200,0.15));
}

/* ===== STAGE / SCREENS ===== */
.stage {
  position: relative;
  z-index: 10;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 4px 18px 14px;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.screen {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
  overflow-y: auto;
  scrollbar-width: thin;
}
.screen.active { display: flex; opacity: 1; transform: translateY(0); }
.screen::-webkit-scrollbar { width: 6px; }
.screen::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* ===== TITLE SCREEN ===== */
.titleArt {
  position: relative;
  width: clamp(140px, 22vh, 220px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.titleArt img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(243,109,200,0.55));
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(1deg); }
}

h1.gameTitle {
  font-size: clamp(24px, 4.4vw, 38px);
  font-weight: 900;
  margin: 0;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(243,109,200,0.3);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%,100% { transform: rotate(-1deg) scale(1); }
  50%     { transform: rotate(1deg) scale(1.02); }
}

.subtitle {
  margin: 0;
  max-width: 460px;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.45;
}

/* Form fields */
.fields {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}
.field { display: grid; gap: 3px; text-align: left; }
.field label {
  font-size: 11px;
  color: var(--c-text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input {
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--c-text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 80ms ease;
}
.field input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(3,222,254,0.18);
}
.field .err { font-size: 12px; color: var(--c-danger); min-height: 14px; }

/* ===== BIG BUTTON ===== */
button.start {
  position: relative;
  background: var(--grad-brand);
  color: white;
  border: 0;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(243,109,200,0.45),
    inset 0 -4px 0 rgba(0,0,0,0.25);
  transition: transform 80ms ease, box-shadow 200ms ease;
}
button.start:hover { transform: translateY(-2px) scale(1.02); }
button.start:active { transform: translateY(1px) scale(0.98); }
button.start[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
button.start::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,255,255,0.55), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: shine 2.6s linear infinite;
}
@keyframes shine {
  0%,60% { transform: translateX(-100%); }
  100%   { transform: translateX(100%); }
}

button.ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.18);
  color: var(--c-text-dim);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
button.ghost:hover { color: white; border-color: rgba(255,255,255,0.4); }

/* ===== LEVEL BANNER ===== */
.levelBanner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
}
.levelBanner.show { animation: bannerIn 1.6s ease forwards; }
.levelBanner .ribbon {
  background: var(--grad-brand);
  color: white;
  padding: 18px 36px;
  border-radius: 18px;
  font-weight: 900;
  font-size: clamp(22px, 5vw, 40px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0,0,0,0.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 -6px 0 rgba(0,0,0,0.2);
  transform: scale(0.7) rotate(-3deg);
  white-space: nowrap;
  text-align: center;
}
.levelBanner .sub {
  display: block;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
@keyframes bannerIn {
  0%   { opacity: 0; transform: translateY(20px); }
  20%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* ===== LEVEL SCREEN ===== */
.levelScreen { gap: 6px; }
.levelHeader {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.levelHeader .chip {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.levelHeader .quest {
  font-size: clamp(16px, 2.6vw, 22px);
  margin: 0;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.2;
}
.levelHint {
  font-size: 12px; color: var(--c-text-dim);
  margin: 0;
}

/* Playfield: octopus glides between numbered star coins */
.playfield {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: clamp(180px, 30vh, 260px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(3,222,254,0.18), transparent 60%);
  border-radius: 24px;
  overflow: hidden;
  margin: 2px 0;
  touch-action: manipulation;
  flex-shrink: 0;
}
.playfield .ground {
  position: absolute;
  left: 6%; right: 6%; bottom: 22%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  border-radius: 999px;
}

/* Octopus player — starts hovering at top centre so all 5 coins are clearly visible */
.octo {
  position: absolute;
  bottom: 60%;
  left: 50%;
  width: clamp(70px, 11vh, 100px);
  height: clamp(70px, 11vh, 100px);
  object-fit: contain;
  transform: translate(-50%, 0);
  transition: left 700ms cubic-bezier(.22,1.2,.36,1), bottom 700ms cubic-bezier(.22,1.2,.36,1), filter 200ms ease;
  filter: drop-shadow(0 8px 18px rgba(243,109,200,0.45));
  z-index: 5;
  user-select: none; pointer-events: none;
  animation: bob 2.6s ease-in-out infinite;
}
.octo.cheer { animation: cheer 0.7s ease; }
@keyframes cheer {
  0%   { transform: translate(-50%, 0) rotate(0deg) scale(1);  }
  25%  { transform: translate(-50%, -22px) rotate(-8deg) scale(1.08); }
  50%  { transform: translate(-50%, 0) rotate(8deg) scale(1.04); }
  75%  { transform: translate(-50%, -10px) rotate(-4deg) scale(1.06); }
  100% { transform: translate(-50%, 0) rotate(0deg) scale(1); }
}

/* Mood emoji that floats above the octopus when a score is picked */
.moodEmoji {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: clamp(32px, 5.5vh, 48px);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.playfield.mood-set .moodEmoji {
  animation: moodPop 700ms cubic-bezier(.4, 1.6, .4, 1) forwards;
}
@keyframes moodPop {
  0%   { opacity: 0; transform: translate(-50%, 20px) scale(0.4); }
  50%  { opacity: 1; transform: translate(-50%, -6px) scale(1.2); }
  100% { opacity: 1; transform: translate(-50%, 0)   scale(1); }
}
.playfield.mood-1 .moodEmoji::before { content: "😭"; }
.playfield.mood-2 .moodEmoji::before { content: "😕"; }
.playfield.mood-3 .moodEmoji::before { content: "🙂"; }
.playfield.mood-4 .moodEmoji::before { content: "😄"; }
.playfield.mood-5 .moodEmoji::before { content: "🤩"; }

/* Mood-driven octopus filter + bob speed (override the base .octo) */
.playfield.mood-1 .octo {
  filter: grayscale(0.75) brightness(0.7) drop-shadow(0 0 12px rgba(80, 130, 220, 0.45));
  animation-duration: 4s;
}
.playfield.mood-2 .octo {
  filter: grayscale(0.45) brightness(0.85) drop-shadow(0 6px 16px rgba(120, 130, 200, 0.4));
  animation-duration: 3.4s;
}
.playfield.mood-3 .octo {
  filter: grayscale(0.1) brightness(1) drop-shadow(0 6px 16px rgba(243, 109, 200, 0.35));
  animation-duration: 2.8s;
}
.playfield.mood-4 .octo {
  filter: brightness(1.08) drop-shadow(0 0 16px rgba(3, 222, 254, 0.6));
  animation-duration: 2.2s;
}
.playfield.mood-5 .octo {
  filter: brightness(1.18) saturate(1.2) drop-shadow(0 0 26px rgba(243, 109, 200, 0.85));
  animation-duration: 1.6s;
}

/* Decorative particles for extreme moods (tears at 1, hearts at 5) */
.moodFx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.moodFx .tear, .moodFx .heart, .moodFx .spark {
  position: absolute;
  opacity: 0;
  font-size: clamp(16px, 2.4vh, 22px);
}
.playfield.mood-1 .moodFx .tear { animation: tearFall 1.8s ease-in infinite; }
.playfield.mood-1 .moodFx .tear:nth-child(1) { left: 45%; animation-delay: 0s; }
.playfield.mood-1 .moodFx .tear:nth-child(2) { left: 55%; animation-delay: 0.6s; }
.playfield.mood-1 .moodFx .tear:nth-child(3) { left: 50%; animation-delay: 1.2s; }
@keyframes tearFall {
  0%   { top: 32%; opacity: 0; transform: scale(0.8); }
  15%  { opacity: 1; }
  100% { top: 70%; opacity: 0; transform: scale(0.6); }
}

.playfield.mood-5 .moodFx .heart,
.playfield.mood-5 .moodFx .spark { animation: floatUp 1.9s ease-out infinite; }
.playfield.mood-5 .moodFx .heart:nth-child(1)  { left: 32%; animation-delay: 0.0s; }
.playfield.mood-5 .moodFx .heart:nth-child(2)  { left: 60%; animation-delay: 0.4s; }
.playfield.mood-5 .moodFx .heart:nth-child(3)  { left: 48%; animation-delay: 0.8s; }
.playfield.mood-5 .moodFx .spark:nth-child(4)  { left: 26%; animation-delay: 0.2s; }
.playfield.mood-5 .moodFx .spark:nth-child(5)  { left: 70%; animation-delay: 0.6s; }
@keyframes floatUp {
  0%   { top: 50%; opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; }
  100% { top: 6%;  opacity: 0; transform: translateY(-12px) scale(1.1); }
}

/* Star coins */
.coins {
  position: absolute;
  left: 6%; right: 6%; bottom: 22%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 3;
}
.coin {
  --i: 0;
  width: clamp(44px, 8vh, 60px);
  height: clamp(44px, 8vh, 60px);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  animation: coinBob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
  transition: transform 120ms ease, filter 200ms ease;
}
.coin .star {
  width: 100%; height: 100%;
  background: var(--grad-brand);
  -webkit-mask: var(--star-mask);
          mask: var(--star-mask);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  filter: drop-shadow(0 0 14px rgba(243,109,200,0.55));
}
.coin .num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: white;
  font-weight: 900;
  font-size: clamp(18px, 2.8vw, 24px);
  text-shadow: 0 2px 0 rgba(0,0,0,0.45);
}
.coin:hover, .coin:focus { transform: translateY(-6px) scale(1.08); outline: none; }
.coin:active { transform: scale(0.92); }
.coin.collected .star { animation: starPop 600ms ease forwards; }
.coin.collected .num { animation: numPop 600ms ease forwards; }
.coin.dimmed { filter: grayscale(0.65) brightness(0.6); }
@keyframes coinBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
@keyframes starPop {
  0%   { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 14px rgba(243,109,200,0.55)); }
  60%  { transform: scale(1.6); opacity: 1; filter: drop-shadow(0 0 26px rgba(255,255,255,0.9)); }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes numPop {
  0%   { transform: scale(1); opacity: 1; }
  60%  { transform: scale(1.4); opacity: 0.7; }
  100% { transform: scale(0); opacity: 0; }
}

/* Floating +N text */
.popText {
  position: absolute;
  font-weight: 900;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--c-cyan);
  text-shadow: 0 2px 0 rgba(0,0,0,0.45);
  pointer-events: none;
  animation: popUp 1s ease forwards;
  z-index: 6;
}
@keyframes popUp {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  15%  { opacity: 1; transform: translateY(-10px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-80px) scale(1); }
}

/* HUD: stars currently collected */
.hud {
  display: flex; align-items: center; gap: 6px;
  margin-top: 0;
  font-size: 12px; color: var(--c-text-dim);
}

/* Per-level optional note */
.levelNote {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.levelNote textarea {
  width: 100%;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-text);
  outline: none;
  resize: none;
  min-height: 36px;
  max-height: 80px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.levelNote textarea:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(3,222,254,0.18);
}
.levelNote textarea::placeholder {
  color: var(--c-text-dim);
  opacity: 0.7;
}
.hud .yourScore {
  font-weight: 900;
  color: var(--c-pink);
  letter-spacing: 0.06em;
}

/* Action row */
.actionRow {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  margin-top: 0;
  flex-shrink: 0;
}

/* ===== BOTTLE LEVEL (Q5) ===== */
.bottleStage {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.bottleScene {
  position: relative;
  width: clamp(180px, 26vh, 220px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}
.bottleScene .octo {
  position: absolute;
  bottom: -20px;
  left: -40px;
  width: clamp(56px, 9vh, 80px);
  height: auto;
  animation: bob 3s ease-in-out infinite;
  z-index: 2;
}
.bottleScene .bottle {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 28%, rgba(255,255,255,0.32), rgba(255,255,255,0.05) 40%, transparent 70%),
    linear-gradient(180deg, rgba(3,222,254,0.22), rgba(130,102,244,0.22));
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 36% 36% 22% 22% / 22% 22% 16% 16%;
  position: relative;
  box-shadow: inset 0 -16px 30px rgba(0,0,0,0.3), 0 18px 40px rgba(0,0,0,0.4);
}
.bottleScene .bottle::before {
  content: ""; position: absolute;
  top: -18px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px;
  background: linear-gradient(180deg, #6f5fe3, #2c2475);
  border-radius: 6px 6px 3px 3px;
}
.bottleScene .bottle textarea {
  position: absolute;
  inset: 14% 12% 10% 12%;
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}
.bottleScene .bottle textarea::placeholder { color: rgba(255,255,255,0.55); }
.charCount {
  font-size: 10px;
  color: var(--c-text-dim);
  text-align: right;
  max-width: 260px;
  margin: 2px auto 0;
}
.error-banner {
  color: var(--c-danger);
  font-size: 13px;
  min-height: 16px;
}

/* ===== WIN SCREEN ===== */
.winScreen .winArt {
  position: relative;
  width: clamp(140px, 22vh, 220px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.winScreen .winArt img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(243,109,200,0.85)) brightness(1.1);
  animation: cheer 1.4s ease-in-out infinite;
}
.winTitle {
  font-size: clamp(28px, 5.6vw, 48px);
  font-weight: 900;
  margin: 0;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -1px;
  animation: wobble 2.4s ease-in-out infinite;
}
.scoreCard {
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
  margin-top: 0;
}
.scoreCard .row { display: grid; gap: 2px; }
.scoreCard .label { font-size: 10px; color: var(--c-text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.scoreCard .val { font-size: 18px; font-weight: 900; color: var(--c-cyan); }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -20px;
  width: 8px; height: 14px;
  background: var(--c-pink);
  opacity: 0.85;
  animation: fall 2.6s linear infinite;
}
.confetti i:nth-child(2n) { background: var(--c-violet); }
.confetti i:nth-child(3n) { background: var(--c-cyan); }
.confetti i:nth-child(4n) { background: #ffd166; }
@keyframes fall {
  0%   { transform: translateY(-20vh) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Star SVG mask shared */
:root {
  --star-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.7 6.6 7.1.5-5.4 4.7 1.7 6.9L12 17l-6.1 3.7 1.7-6.9L2.2 9.1l7.1-.5L12 2z'/></svg>");
}

/* Mobile */
@media (max-width: 520px) {
  .stage { padding-bottom: 60px; }
  .playfield { height: 280px; }
  .scoreCard { grid-template-columns: repeat(2, 1fr); }
}
