/* Fonts served from this site (variable fonts from @fontsource-variable 5.3.0, SIL Open Font Licence: see /fonts/OFL-*.txt).
   Same families and axes the Google Fonts link used (Fraunces with optical size and weight, Nunito with weight). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/fraunces-latin-opsz-normal.woff2) format('woff2-variations'), url(/fonts/fraunces-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2-variations'), url(/fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/nunito-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pine: #14261c;
  --pine-2: #1d3628;
  --pine-3: #28493a;
  --cream: #fffaf0;
  --cream-dim: #d9d2c0;
  --gold: #e2b04a;
  --gold-soft: #f1d48e;
  --berry: #c0303b;
  --berry-deep: #8f1d27;
  --ok: #4fbf7a;
  --bad: #e0565f;
  --opt-0: #c0303b;
  --opt-1: #2f7fc1;
  --opt-2: #d99a1e;
  --opt-3: #3f9b5e;
  --radius: 18px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--pine); }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body);
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(226, 176, 74, 0.12), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(192, 48, 59, 0.18), transparent 60%),
    var(--pine);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--cream-dim); }
.gold { color: var(--gold); }

/* Snow */
.snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.snow i {
  position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7); animation: fall linear infinite;
}
@keyframes fall { to { transform: translate3d(var(--drift, 30px), 110vh, 0); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--pine-2); border: 2px solid var(--pine-3); font-weight: 800;
}
.chip.done { border-color: var(--gold); background: rgba(226, 176, 74, 0.15); }
.chip.off { opacity: 0.45; }
.chip .e { font-size: 1.3em; }

.card {
  background: linear-gradient(180deg, var(--pine-2), #182e22);
  border: 2px solid var(--pine-3); border-radius: var(--radius); padding: 20px;
}

.pop { animation: pop 0.45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: rise .5s ease both; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.timer { height: 12px; background: var(--pine-3); border-radius: 999px; overflow: hidden; }
.timer > div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--berry)); transform-origin: left; }

/* Player icons: sized in em so they scale like the emojis they replaced. */
.av { display: inline-block; width: 1.25em; height: 1.25em; border-radius: 50%; vertical-align: -0.3em; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.35); }

/* The Festive Wheel puzzle board */
.pboard { display: grid; gap: .35em; justify-items: center; }
.pline { display: flex; gap: .35em; }
.tile { width: 1.9em; height: 2.3em; border-radius: .3em; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1em; }
.tile.on { background: var(--cream); color: var(--pine); }
.tile.punct { background: transparent; color: var(--cream); width: 1em; }
.tile.gap { width: .9em; }
.tile.hid { background: linear-gradient(180deg, #2f7a4e, #1f5c3a); border: 2px solid rgba(226,176,74,.45); }
.tile.flip { animation: tileflip .7s ease both; background: var(--gold); }
@keyframes tileflip { 0% { transform: rotateY(90deg); } 100% { transform: none; } }
.keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.keys button { font: inherit; font-weight: 800; font-size: 1.25em; padding: 10px 0; border-radius: 10px; border: 0; background: var(--cream); color: var(--pine); }
.keys button.v { background: var(--gold); }
.keys button:disabled { opacity: .18; }
.golden { display: inline-block; padding: .35em 1em; border-radius: 999px; background: linear-gradient(90deg, #f1d48e, #e2b04a); color: var(--pine); font-weight: 800; box-shadow: 0 0 24px rgba(241,212,142,.55); animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 40px rgba(241,212,142,.9); } }

/* Icons cut from the Gemini icon sheet: sized in em so they scale with the text around them. */
.ic { display: inline-block; width: 1.35em; height: 1.35em; border-radius: 50%; vertical-align: -0.32em; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.big-emoji .ic { width: 1.25em; height: 1.25em; }
.golden .ic { width: 1.5em; height: 1.5em; margin-right: .35em; }
