@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&display=swap');

body {
  margin: 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ff6b6b 100%);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  height: 100vh;
}
.snow {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%23fff" cx="50" cy="50" r="2"/></svg>') repeat;
  animation: snow 12s linear infinite;
}
@keyframes snow { 0% { background-position: 0 0; } 100% { background-position: 0 1000px; } }

.container { max-width: 500px; margin: 30px auto; text-align: center; position: relative; z-index: 2; }
h1 { font-family: 'Mountains of Christmas', cursive; font-size: 4rem; color: #ff3366; text-shadow: 0 0 30px #ff3366; margin: 0; }
.subtitle { font-size: 1.4rem; color: #ffccaa; margin-bottom: 10px; }

.timer { font-size: 1.8rem; color: #ffd700; margin-bottom: 10px; text-shadow: 0 0 10px #ffd700; }
.grid-container {
  width: 100%; aspect-ratio: 1; background: rgba(255,255,255,0.15); border-radius: 20px;
  display: grid; grid-template: repeat(4,1fr)/repeat(4,1fr); gap: 12px; padding: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6); backdrop-filter: blur(10px);
}
.tile {
  border-radius: 12px; font-size: 3rem; font-weight: bold; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.3); color: #fff; text-shadow: 2px 2px 4px #000;
  transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275); position: relative;
}
.tile[data-value="2"] { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); }
.tile[data-value="4"] { background: linear-gradient(45deg, #f39c12, #feca57); }
.tile[data-value="8"] { background: linear-gradient(45deg, #27ae60, #58d68d); }
.tile[data-value="16"] { background: linear-gradient(45deg, #e74c3c, #ff6b6b); animation: santaGlow 2s infinite; }
@keyframes santaGlow { 0%,100%{ box-shadow: 0 0 20px #e74c3c; } 50%{ box-shadow: 0 0 40px #ff6b6b; } }

.score-container { font-size: 1.8rem; margin: 20px 0; color: #ffd700; }
button { padding: 15px 40px; font-size: 1.5rem; background: #ff3366; border: none; border-radius: 50px; color: white; cursor: pointer; box-shadow: 0 8px 20px rgba(255,51,102,0.4); }
.footer { margin-top: 50px; color: #ffccaa; }
.footer a { color: #ff3366; font-weight: bold; }