.mobile-tabbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mobile-tabbar [data-mnav="event"] {
  white-space: nowrap;
}

.winter-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-left: 0.6rem;
  color: #e2f2f6;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.winter-event {
  color: #edf5f7;
  max-width: 68rem;
  margin: 0 auto 2rem;
}

#main:has(.winter-event):focus {
  outline: none;
}

.winter-event-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: clamp(1rem, 4vw, 2.6rem);
  border-radius: 1.15rem;
  border: 1px solid #426277;
  background: radial-gradient(ellipse at 100% 0%, #254c63, #10232f 70%);
}

.winter-event-title h1 {
  margin: 0 0 0.5rem;
  color: #fff1d9;
  font: bold clamp(2rem, 5vw, 3.8rem)/1.04 Georgia, serif;
}

.winter-event-title p {
  margin: 0;
  color: #cee2e9;
}

.winter-wallet {
  display: grid;
  gap: 0.3rem;
  min-width: 8.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid #6b9fb4;
  border-radius: 0.7rem;
  background: #102735d9;
  color: #b9e9f6;
}

.winter-wallet strong {
  font-size: 1.5rem;
}

.winter-wallet span,
.winter-day-note,
.winter-game-note {
  color: #bed3db;
  font-size: 0.9rem;
}

.winter-event h2,
.winter-games-title {
  color: #edf5f7;
}

.winter-missions,
.winter-shop,
.winter-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.winter-game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.winter-missions > div,
.winter-play,
.winter-game-tile,
.winter-offer {
  padding: 1rem;
  border: 1px solid #345568;
  border-radius: 0.85rem;
  background: #112630;
  color: #eaf5f7;
}

.winter-missions h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.winter-missions h2 span {
  color: #b9e9f6;
}

.winter-game-tile,
.winter-offer {
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
}

.winter-game-tile span:last-child {
  color: #bed3db;
}

.winter-game-tile:hover,
.winter-offer:not(:disabled):hover {
  border-color: #9ed2df;
  background: #193540;
  color: #fff;
}

.winter-game-icon {
  font-size: 1.7rem;
  color: #b9e9f6;
}

.winter-shop {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.winter-offer {
  justify-items: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 35%, #244558, #10212b 68%);
}

.winter-offer img {
  width: min(100%, 11rem);
  max-height: 8rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px #040e17b0);
}

.winter-offer h3,
.winter-offer p {
  margin: 0;
}

.winter-offer p {
  color: #bed3db;
  font-size: 0.85rem;
}

.winter-access,
.winter-case-drop {
  margin-block: 1rem;
  padding: 1rem;
  border: 1px solid #806e50;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #352d25, #172a34 68%);
}

.winter-access h2,
.winter-case-drop h2 {
  margin: 0 0 0.5rem;
}

.winter-case-drop {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-color: #628aa1;
  background: #132e3c;
}

.winter-case-drop img {
  width: min(30%, 9rem);
  object-fit: contain;
}

.winter-case-drop p {
  margin: 0 0 0.5rem;
}

.winter-event button:disabled {
  opacity: 0.62;
  cursor: default;
}

.winter-play {
  width: min(100%, 32rem);
  margin: 1rem auto;
  text-align: center;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-color: color-mix(in srgb, var(--game-accent) 45%, #243945);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--game-accent) 17%, #132936), #0d1b25 78%);
  box-shadow: 0 1rem 2.5rem #04101880;
}

.winter-game-pairs { --game-accent: #f0bd76; }
.winter-game-lights { --game-accent: #c6acff; }
.winter-game-snow { --game-accent: #90eaff; }

.winter-game-tile .winter-game-icon,
.winter-play .winter-game-icon {
  color: var(--game-accent);
  text-shadow: 0 0 1.2rem color-mix(in srgb, var(--game-accent) 55%, transparent);
}

.winter-status,
.winter-back {
  color: #c2e7f1;
}

.winter-back {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.winter-pairs,
.winter-lights,
.winter-catch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.winter-catch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 20rem;
  margin: auto;
}

.winter-play button:not(.holiday-cta) {
  min-height: clamp(3.8rem, 15vw, 5.8rem);
  padding: 0;
  border: 1px solid #4b7186;
  border-radius: 0.65rem;
  background: #1e4051;
  color: #eefaff;
  font: inherit;
  font-size: 1.8rem;
  cursor: pointer;
}

.winter-play button.is-target {
  background: radial-gradient(circle at center, #dcfbff, #78cfe7);
  color: #122a3b;
  box-shadow: 0 0 1.15rem #82d8ee82;
}

.winter-play .winter-pairs button {
  border-color: #bb9567;
  background: repeating-linear-gradient(135deg, #574434 0 6px, #49382d 6px 12px);
  color: #ffe0ad;
}

.winter-play .winter-pairs button.is-revealed {
  background: #f1d6ae;
  color: #35271d;
}

.winter-play .winter-pairs button.is-matched {
  border-color: #74c5a6;
  background: #224638;
  opacity: 1;
}

.winter-play button.winter-light {
  border-color: currentColor;
  color: var(--light-color);
  background: radial-gradient(ellipse at 50% 28%, color-mix(in srgb, var(--light-color) 28%, #192534), #141d2b);
  box-shadow: inset 0 0 1rem #0c1420;
}

.light-0 { --light-color: #ffd485; }
.light-1 { --light-color: #a8ebff; }
.light-2 { --light-color: #ddabff; }
.light-3 { --light-color: #99e6ba; }

.winter-play button.winter-light:active {
  background: var(--light-color);
  color: #122639;
}

.winter-score {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.25rem 0 0.75rem;
  color: #e5f6ff;
  font-variant-numeric: tabular-nums;
}

.winter-timer {
  width: min(100%, 20rem);
  margin: 0 auto 0.85rem;
  accent-color: #8de0f4;
}

#winter-pattern {
  min-height: 2.5rem;
  font-size: 1.35rem;
  white-space: pre-wrap;
}

@media (max-width: 650px) {
  .winter-game-grid {
    grid-template-columns: 1fr;
  }

  .winter-missions {
    grid-template-columns: 1fr;
  }

  .winter-shop {
    grid-template-columns: 1fr;
  }
}
.winter-event-title.winter-event-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  align-content: center;
  justify-items: start;
  min-height: clamp(20rem, 32vw, 28rem);
  background: #112336;
}

.winter-event-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.winter-event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #102235 1%, #102235ed 26%, #10223550 53%, transparent 74%);
}

.winter-event-hero > div:first-of-type {
  max-width: 22rem;
}

[data-theme="winter"] {
  --accent: #a5e5fa;
  --accent-dim: #8fe2ff33;
  --accent-glow: #8fe2ff70;
  --steam: #ecc487;
  --bg-deep: #101d38;
  --bg-panel: #15253d;
  --bg-card: #1a2e49;
  --border: #60849f66;
  --text: #f0f7ff;
  --text-muted: #bbd2e4;
  --hero-tint: radial-gradient(ellipse at top, #28537866, transparent 65%);
}

[data-theme="winter"] body .bg-map {
  background: radial-gradient(ellipse at top, #24445e, #10182c 67%);
}

[data-theme="winter"] .btn-open,
[data-theme="winter"] .btn-steam {
  color: #142039;
}

@media (max-width: 650px) {
  .winter-event-title.winter-event-hero { min-height: auto; padding-top: 0; overflow: hidden; }
  .winter-event-hero::after { display: none; }
  .winter-event-art {
    position: relative;
    width: calc(100% + 2rem);
    max-width: none;
    height: auto;
    max-height: 15rem;
    aspect-ratio: 1.6;
    object-position: right center;
    margin: 0 -1rem;
    z-index: auto;
  }
}
