:root {
  color-scheme: dark;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  background: #080d1b;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #273451 0%, #11192c 42%, #080d1b 100%);
}

.app-shell {
  position: relative;
  width: min(100vw, calc(100dvh * 0.5625));
  height: min(100dvh, calc(100vw / 0.5625));
  max-height: 860px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 18px 55px #0009;
  touch-action: none;
}

canvas { display: block; width: 100%; height: 100%; }

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(#0d1528cc, #0d1528e8);
  transition: opacity 180ms ease;
}

.overlay.hidden { opacity: 0; pointer-events: none; }

.panel {
  width: 100%;
  padding: 28px 20px 24px;
  text-align: center;
  border: 1px solid #ffffff2b;
  border-radius: 26px;
  background: linear-gradient(145deg, #293755, #18223b);
  box-shadow: 0 12px 30px #0006;
}

.eyebrow { margin: 0 0 10px; color: #b9c9e7; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 0; color: #fff; font-size: clamp(34px, 10vw, 47px); line-height: 1.08; letter-spacing: .04em; }
.title-logo { font-size: clamp(28px, 7.6vw, 34px); letter-spacing: .01em; white-space: nowrap; }
.game-subtitle { color: #ffc0c6; font-size: .52em; letter-spacing: .08em; }
.holiday-list { color: #ff9aa2; font-size: .58em; line-height: 1.45; }
.intro { margin: 20px 0 7px; color: #e8eefc; font-size: 16px; font-weight: 700; line-height: 1.7; }
.rule { margin: 0 0 22px; color: #ffb6bd; font-size: 12px; line-height: 1.5; }
button { width: 100%; border: 0; border-radius: 999px; padding: 16px; background: #ff5262; color: white; font: inherit; font-size: 16px; font-weight: 800; box-shadow: inset 0 -3px #bd2e3d, 0 6px 14px #0004; }
button:active { transform: translateY(2px); box-shadow: inset 0 -1px #bd2e3d; }
.home-link { display: inline-block; margin-top: 16px; color: #c9d6ef; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hint { margin: 16px 0 0; color: #aebbd4; font-size: 11px; line-height: 1.5; }

@media (min-width: 600px) { .app-shell { border-radius: 24px; } }
