:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #fff6de;
  background: #0a1728;
  --shared: #0b2132;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { display: grid; place-items: center; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
p, h1, ul { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #ffe398; outline-offset: 3px; }
button:disabled { cursor: wait; }
[hidden] { display: none !important; }
.phone {
  position: relative; isolation: isolate; width: min(100%, 430px); height: 100%;
  height: 100dvh; overflow: hidden; background-color: var(--shared);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  container-type: size; user-select: none; -webkit-user-select: none;
}
@media (min-width: 431px) {
  body { background: #081322 url("art/shared/desktop-night.webp") center / cover no-repeat; }
  .phone { box-shadow: 0 0 0 1px #96836175, 0 10px 48px #030811a8; }
}
.brand {
  background: white; border-radius: 9px; padding: 3px 8px;
  flex-shrink: 0; width: clamp(67px, 9.4cqh, 82px);
}
.brand img { width: 100%; height: auto; }
.hub {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-image: url("art/shared/village.webp");
  padding: max(10px, env(safe-area-inset-top)) max(13px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(13px, env(safe-area-inset-left));
}
.hub-title { width: min(83%, 39cqh); margin: clamp(4px, 1.25cqh, 13px) 0; }
.choose, .hub-foot, .eyeline, .play-hint {
  font-weight: 750; text-shadow: 0 1px 4px #060c17, 0 1px 9px #060c17;
}
.choose {
  display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.4;
  letter-spacing: .15em; text-transform: uppercase; color: #fff1c8;
}
.choose img { width: 12px; height: 12px; object-fit: contain; }
.cards { display: grid; width: min(96%, 43cqh); gap: clamp(6px, 1.25cqh, 14px); margin: 1.7cqh 0; }
.game-card, .art-button { min-height: 48px; cursor: pointer; transition: transform .13s ease; }
.game-card { display: block; border-radius: 20px; }
.game-card img { width: 100%; }
.hub-foot { font-size: 13px; letter-spacing: .04em; }
@media (hover:hover) {
  .game-card:hover, .art-button:hover { transform: translateY(-2px); }
}
.game-card:active, .art-button:active { transform: scale(.97); }
.reindeer { background-image: url("art/reindeer/scene.webp"); }
.slice { background-image: url("art/slice/scene.webp"); }
.bowling { background-image: url("art/bowling/scene.webp"); }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: max(13px, env(safe-area-inset-top)) max(15px, env(safe-area-inset-right)) max(13px, env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
}
.title-screen, .result-screen { gap: clamp(8px, 1.9cqh, 21px); }
.wordmark { width: min(95%, 44cqh); }
.wordmark img, .result-title img { width: 100%; }
.hero { position: relative; width: min(84%, 39cqh); height: min(22cqh, 49cqw); flex-shrink: 1; }
.hero img { position: absolute; object-fit: contain; height: 100%; }
.hero .lead { width: 81%; left: 8%; z-index: 1; }
.hero .glint { height: 36%; top: 43%; left: 4%; }
.hero .small-glint { height: 25%; right: 1%; top: 10%; }
.slice .hero .lead { width: 49%; left: 18%; transform: rotate(-15deg); }
.hero .gift { width: 42%; height: 65%; right: 5%; top: 30%; transform: rotate(11deg); z-index: 2; }
.hero .snow { width: 27%; height: 40%; left: 1%; top: 5%; }
.hero .pin-a { left: 32%; top: 9%; height: 85%; transform: rotate(-11deg); }
.hero .pin-b { left: 51%; height: 92%; transform: rotate(5deg); }
.hero .pin-c { left: 65%; height: 75%; top: 18%; transform: rotate(13deg); }
.hero .ball { left: 13%; height: 55%; bottom: 0; }
.instruction { text-align: center; text-shadow: 0 1px 4px #10172c, 0 1px 9px #10172c; }
.instruction p { font-size: clamp(14px, 4cqw, 17px); font-weight: 700; }
.guide { display: flex; justify-content: center; gap: clamp(12px, 4.5cqw, 22px); list-style: none; padding: 0; margin: 1.25cqh 0 0; }
.guide li { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; }
.guide img { width: 29px; height: 29px; object-fit: contain; }
.actions { display: flex; align-items: center; flex-direction: column; gap: clamp(3px, .8cqh, 8px); }
.art-button { background: transparent; border: 0; padding: 0; display: grid; place-items: center; border-radius: 999px; }
.art-button img { width: 100%; height: auto; }
.play, .play-again { width: clamp(142px, 22cqh, 186px); }
.back-to-games { width: clamp(130px, 17cqh, 150px); }
.loading { position: absolute; bottom: 1cqh; font-weight: 700; }
.countdown-screen { gap: 12px; }
.eyeline { font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.countdown { display: grid; place-items: center; width: 128px; height: 128px; background: url("art/shared/countdown.webp") center / contain no-repeat; font: 800 70px/1 Georgia,serif; }
.play-screen { padding: 0; touch-action: none; }
.arena { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.hud {
  position: absolute; z-index: 4; top: max(13px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right));
  display: flex; justify-content: space-between; pointer-events: none;
}
.readout { width: 94px; height: 54px; background: url("art/shared/hud.webp") center / 100% 100% no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.readout span, .score-label { text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.readout strong { font-size: 22px; line-height: 1.04; font-variant-numeric: tabular-nums; }
.play-hint { position: absolute; bottom: max(4.8%, env(safe-area-inset-bottom)); pointer-events: none; text-align: center; font-size: 15px; }
.sprite, .target, .point-pop, .strike-burst { position: absolute; top: 0; left: 0; transform-origin: center; pointer-events: none; }
.sprite, .target { will-change: transform; }
.target { background: transparent; border: 0; padding: 0; height: auto; cursor: pointer; pointer-events: auto; touch-action: none; }
.target img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.point-pop { z-index: 4; font-weight: 900; font-size: 25px; color: #fff4bb; text-shadow: 0 2px 3px #271622, 0 0 5px #301729; }
.fx-burst { position: absolute; width: 77px; height: 77px; object-fit: contain; pointer-events: none; }
.trail { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bowling .arena { cursor: grab; }
.bowling .arena:active { cursor: grabbing; }
.roll-status { position: absolute; top: max(13%, calc(env(safe-area-inset-top) + 70px)); width: 100%; text-align: center; pointer-events: none; font-size: 17px; font-weight: 800; text-shadow: 0 1px 5px #0d1521, 0 1px 8px #0d1521; }
.strike-burst { width: 45%; left: 27.5%; top: 22%; }
.result-title { width: min(78%, 37cqh); }
.result-card {
  width: min(93%, 46cqh); min-height: min(32cqh, 75cqw);
  background: url("art/shared/result-frame.webp") center / 100% 100% no-repeat;
  padding: 2.8cqh 8%; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #40271b;
}
.result-star { width: clamp(25px, 4.8cqh, 44px); margin: 0 0 .7cqh; }
.score-label { font-size: 11px; }
#final-score { font: bold clamp(42px, 8cqh, 70px)/1 Georgia,serif; color: #8e231d; }
.prize { margin: .7cqh 0; }
#prize-tier { font: 700 clamp(21px, 3.5cqh, 29px)/1.2 Georgia,serif; color: #175039; }
.prize-detail { display: block; font-size: 14px; margin: 4px 0; }
.result-card small { font-size: 11px; }
@media (max-height: 580px) {
  .title-screen, .result-screen { gap: 5px; }
  .title-screen .brand, .result-screen .brand { width: 55px; }
  .hero { height: 15cqh; }
  .result-star { display: none; }
  .actions { flex-direction: row; gap: 8px; }
  .actions .art-button { width: min(36cqw, 128px); }
  .guide { margin: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.effects { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
