﻿:root {
  --bg: #07090f;
  --bg-2: #0d111d;
  --panel: rgba(17, 23, 38, 0.86);
  --panel-strong: #121827;
  --text: #f7fbff;
  --muted: #9ca8bd;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #22d3ee;
  --green: #a3e635;
  --red: #fb425f;
  --yellow: #facc15;
  --blue: #60a5fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Saira, Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #07090f 0%, #111827 48%, #09111a 100%);
  background-size: 42px 42px, 42px 42px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(251, 66, 95, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(163, 230, 53, 0.07), transparent 58%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px);
  mix-blend-mode: overlay;
  opacity: 0.22;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hero-icon,
.mini-thumb,
.detail-poster img,
.download-icon,
.recommended-card,
.similar-game-card img,
.guide-card img {
  background-color: var(--panel-strong);
  background-image: url("assets/whiteplay-logo-gray.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 42%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 36px);
  background: rgba(7, 9, 15, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 14px;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.3));
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-copy strong {
  font-family: Rajdhani, Saira, sans-serif;
  font-size: 1.35rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.menu-toggle {
  position: absolute;
  top: 11px;
  right: 12px;
  z-index: 90;
  display: inline-grid !important;
  align-content: center;
  justify-items: center;
  gap: 5px;
  width: 46px;
  min-height: 46px;
  padding: 10px;
  visibility: visible !important;
  opacity: 1 !important;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(17, 23, 38, 0.94);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle::before {
  content: "";
  display: none;
}

body.menu-open .menu-toggle::before {
  content: "";
}

@media (min-width: 1181px) {
  .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
  }
}

.icon-button {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

body[data-page="topgames"] main {
  width: 100%;
  max-width: none;
}

body[data-page="topgames"] .site-header,
body[data-page="topgames"] .toolbar {
  display: none;
}

body[data-page="topgames"] .topgames-wall {
  padding: 0;
}

.hero {
  height: 552px;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(315px, 0.66fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  padding: 30px 0 28px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 310px;
  padding: 58px 0 28px;
}

.page-hero.compact {
  min-height: 260px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Rajdhani, Saira, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.86;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2.85rem, 4.45vw, 4.9rem);
  line-height: 0.92;
}

.hero-highlight {
  color: var(--green);
  text-shadow: 0 0 28px rgba(163, 230, 53, 0.34);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.95;
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 720px;
  color: #c7d2e6;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-lead {
  max-width: 640px;
  font-size: clamp(0.94rem, 1.15vw, 1rem);
  line-height: 1.38;
}

.hero-lead p {
  margin-bottom: 6px;
}

.hero-lead p:last-child {
  margin-bottom: 0;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero .button {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #081018;
  background: var(--cyan);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.18);
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.game-tile:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.button.compact {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.9rem;
}

.text-link {
  color: var(--cyan);
  font-weight: 900;
}

.featured-cta {
  border-color: rgba(163, 230, 53, 0.7);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.22), 0 0 24px rgba(163, 230, 53, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 12px;
}

.hero-metrics span {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 10px 40px;
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 12px;
  color: #53657a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 245, 240, 0.72)),
    var(--panel);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-metrics span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22d3ee, #65a30d);
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.18);
  transform: translateY(-50%);
}

.hero-metrics span::after {
  position: absolute;
  left: 16px;
  top: 50%;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 1000;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-metrics span:nth-child(1)::after {
  content: "▶";
}

.hero-metrics span:nth-child(2)::after {
  content: "#";
}

.hero-metrics span:nth-child(3)::after {
  content: "✓";
}

.hero-metrics strong {
  color: #102033;
  font-family: Rajdhani, Saira, sans-serif;
  font-size: 1.28rem;
  line-height: 1;
}

.hero-stage {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 30px 8px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 18px;
  transform: skewY(-3deg);
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(8, 145, 178, 0.12) 46% 54%, transparent 54%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(226, 245, 240, 0.46));
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.12);
}

.hero-picks-card {
  position: relative;
  z-index: 1;
  width: min(344px, 100%);
  display: grid;
  gap: 11px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 245, 240, 0.9)),
    var(--panel);
  box-shadow: 0 26px 74px rgba(8, 145, 178, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.68);
  animation: floatCard 5s ease-in-out infinite;
}

.hero-picks-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, 0.56) 46%, transparent 58%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 42%);
  pointer-events: none;
}

.hero-picks-head,
.hero-picks-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-picks-head strong {
  font-family: Rajdhani, Saira, sans-serif;
  font-size: 1.35rem;
}

.hero-picks-chips {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.hero-picks-chips span {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #3f7c0b;
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-icon-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.hero-icon {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  display: grid;
  align-items: end;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-icon:hover,
.hero-icon.active {
  transform: translateY(-3px);
  border-color: rgba(8, 145, 178, 0.52);
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.18);
}

.hero-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-icon span {
  position: relative;
  z-index: 1;
  padding: 26px 8px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-picks-footer {
  color: #53657a;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-picks-footer .button {
  min-height: 38px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.quick-panel,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.instant-game-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

[hidden] {
  display: none !important;
}

.instant-game-copy {
  display: grid;
  gap: 12px;
}

.instant-game-copy h2 {
  max-width: 720px;
  font-size: clamp(2.15rem, 4.6vw, 4.5rem);
  line-height: 0.9;
}

.instant-game-copy p {
  max-width: 620px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.instant-game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instant-game-stats span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 900;
}

.instant-game-stats strong {
  color: var(--text);
  font-size: 1.2rem;
}

.tap-download-button {
  width: min(230px, 100%);
}

.tap-game-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(163, 230, 53, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.tap-game-preview span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.tap-game-preview span:nth-child(5)::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.46), 0 0 34px rgba(163, 230, 53, 0.28);
}

.tap-game-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(14px);
}

.tap-modal-open {
  overflow: hidden;
}

.tap-game-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(101, 163, 13, 0.06)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.tap-game-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.5rem;
}

.tap-popup-content,
.tap-game-play {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 8px;
}

.tap-popup-content h2 {
  padding-right: 42px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 0.92;
}

.tap-popup-content p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.tap-game-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tap-game-hud span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.tap-game-hud strong {
  color: var(--text);
  font-size: 1.35rem;
}

.tap-game-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(163, 230, 53, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.tap-game-board button {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.02)),
    rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.tap-game-board button::after {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
  transition: inset 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tap-game-board button.active::after {
  inset: 16%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.55), 0 0 34px rgba(163, 230, 53, 0.34);
  animation: targetPulse 0.68s ease-in-out infinite alternate;
}

.tap-popup-ad {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(8, 145, 178, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(101, 163, 13, 0.06)),
    rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

.tap-popup-ad span {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tap-popup-ad strong {
  color: var(--text);
}

.instant-game-panel.game-won .tap-game-board {
  border-color: rgba(101, 163, 13, 0.48);
  box-shadow: 0 20px 44px rgba(101, 163, 13, 0.16);
}

@keyframes targetPulse {
  to {
    transform: scale(1.08);
  }
}

.quest-card,
.mini-board,
.arena-panel,
.watchlist-panel,
.tips-panel,
.challenge-list,
.toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quest-card,
.mini-board,
.arena-panel,
.watchlist-panel,
.tips-panel,
.challenge-list {
  padding: 20px;
}

.quest-progress {
  height: 12px;
  overflow: hidden;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.quest-progress span {
  display: block;
  width: 32%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
  transition: width 0.35s ease;
}

.mini-board [data-hot-zones],
.challenge-list,
.tips-panel {
  display: grid;
  gap: 10px;
}

.hot-zone,
.tip-row,
.challenge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.hot-zone strong,
.tip-row strong,
.challenge-row strong {
  font-family: Rajdhani, Saira, sans-serif;
  font-size: 1.25rem;
}

.section {
  padding: 58px 0;
}

body[data-page="download"] .screenshot-section {
  padding-top: 14px;
  padding-bottom: 8px;
}

body[data-page="download"] .recommended-section {
  padding-top: 8px;
}

body[data-page="game"] .split-section {
  padding-bottom: 12px;
}

body[data-page="game"] .split-section + .section {
  padding-top: 10px;
}

.no-top-padding {
  padding-top: 20px;
}

.legal-page {
  display: grid;
  gap: 22px;
  padding-bottom: 24px;
}

.legal-header {
  position: sticky;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legal-meta span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7d2e6;
}

.legal-meta strong,
.contact-card .eyebrow {
  color: var(--green);
}

.legal-content {
  display: grid;
  gap: 12px;
}

.legal-content h2 {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li,
.contact-card p {
  color: #c7d2e6;
  line-height: 1.65;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-content li::marker {
  color: var(--green);
}

.legal-content a,
.legal-meta a,
.contact-card a {
  color: var(--cyan);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-link {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.mini-game-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mini-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.6);
}

.mini-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.mini-game-card:hover .mini-thumb img {
  transform: scale(1.04);
}

.mini-game-copy {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 10px 10px 12px;
}

.mini-meta {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-game-card h3 {
  font-size: 1.05rem;
  line-height: 1.05;
  display: -webkit-box;
  min-height: 2.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-page="game"] .similar-games-list {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 8px;
}

.similar-game-card {
  min-height: 68px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(163, 230, 53, 0.05)),
    rgba(255, 255, 255, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.similar-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.62);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(163, 230, 53, 0.1)),
    rgba(255, 255, 255, 0.07);
}

.similar-game-card img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
}

.similar-game-card span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.similar-game-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-game-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-games-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 0 22px;
  overflow: hidden;
}

.popular-games-section + .section {
  padding-top: 12px;
}

body[data-page="download"] .download-popular-section {
  padding: 0;
}

.popular-games-head {
  margin-bottom: 10px;
}

.popular-games-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.popular-games-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(74px, 8vw, 104px);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.popular-games-grid::-webkit-scrollbar {
  display: none;
}

.popular-games-grid:active {
  cursor: grabbing;
}

.popular-games-grid.is-dragging {
  cursor: grabbing;
}

.popular-game-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.popular-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.48);
}

.popular-game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.popular-game-card span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 5px 5px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-games-section {
  padding: 24px 0 18px;
}

.related-games-head {
  margin-bottom: 12px;
}

.related-games-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.related-game-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.related-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.48);
}

.related-game-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.related-game-card span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 5px 5px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.split-section .arena-panel p,
.split-section .watchlist-panel p {
  color: #c7d2e6;
  line-height: 1.65;
}

.split-section .watchlist-panel h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
}

.split-section .watchlist-panel h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.split-section .loop-grid span {
  border-color: rgba(34, 211, 238, 0.34);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(163, 230, 53, 0.14)),
    rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(34, 211, 238, 0.08);
}

.split-section .loop-grid span:nth-child(even) {
  border-color: rgba(163, 230, 53, 0.34);
  background:
    linear-gradient(135deg, rgba(163, 230, 53, 0.18), rgba(34, 211, 238, 0.13)),
    rgba(255, 255, 255, 0.08);
}

.loop-grid span,
.tag,
.game-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: #c7d2e6;
  font-size: 0.86rem;
  font-weight: 800;
}

.watchlist-panel [data-watchlist] {
  display: grid;
  gap: 10px;
}

.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.watch-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.watch-row img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-card {
  min-height: 300px;
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card div {
  padding: 16px;
}

.guide-card p {
  color: var(--muted);
  line-height: 1.55;
}

.rank-pulse {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(34, 211, 238, 0.18) 0 12deg, rgba(255, 255, 255, 0.04) 12deg 24deg);
}

.rank-pulse strong {
  font-family: Rajdhani, Saira, sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}

.rank-pulse span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.toolbar {
  position: sticky;
  top: 76px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr minmax(170px, auto);
  align-items: end;
  gap: 12px;
  padding: 14px;
  backdrop-filter: blur(18px);
}

body[data-page="topgames"] .toolbar {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

body[data-page="topgames"] .section {
  padding: 0;
}

body[data-page="topgames"] .grid-status {
  padding: 0 12px;
}

.search-field {
  display: grid;
  gap: 6px;
}

.search-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
  padding: 10px 12px;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-weight: 900;
}

.filter-row button.active {
  color: #081018;
  background: var(--green);
  border-color: transparent;
}

.grid-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.top-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  --top-cell: 104px;
  grid-auto-rows: var(--top-cell);
  grid-auto-flow: dense;
  gap: 6px;
}

.game-tile {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
  background-color: var(--panel-strong);
  background-image:
    url("assets/whiteplay-logo-gray.svg"),
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(163, 230, 53, 0.06));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 46%, cover;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  transform: translateY(10px);
  opacity: 0;
  animation: tileIn 0.55s ease forwards;
  transition: transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.game-tile.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.game-tile:hover {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 20px 55px rgba(34, 211, 238, 0.14);
}

@keyframes tileIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.game-tile.image-loaded img {
  opacity: 1;
}

.game-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.16) contrast(1.05);
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 46%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-tile:hover::before,
.game-tile:focus-within::before {
  opacity: 1;
}

.game-tile::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-16deg);
  transition: left 0.45s ease;
}

.game-tile:hover::after {
  left: 112%;
}

.tile-content {
  display: grid;
  gap: 3px;
  padding: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.game-tile:hover .tile-content,
.game-tile:focus-within .tile-content {
  opacity: 1;
  transform: translateY(0);
}

.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tile-content h3 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 0.95;
}

.tile-content > span {
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-tile.tile-large .tile-content {
  gap: 5px;
  padding: 14px;
}

.game-tile.tile-large .tile-content h3 {
  font-size: 1.35rem;
}

.game-tile.tile-large .tile-content > span {
  font-size: 0.78rem;
}

.tile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.save-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.save-button.active {
  color: #081018;
  background: var(--yellow);
  border-color: transparent;
}

.game-detail {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  justify-content: stretch;
  align-items: stretch;
  gap: 16px;
  padding: 34px 0 16px;
}

.detail-poster,
.detail-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-poster {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 8px;
  overflow: visible;
  align-self: stretch;
  height: 100%;
  padding: 16px;
}

.detail-poster img {
  display: block;
  width: 100%;
  height: auto;
  justify-self: center;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-poster .actions {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px;
  margin: 0;
}

.detail-copy {
  padding: clamp(18px, 2.5vw, 26px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.poster-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  min-height: 0;
}

.poster-stats .stat-card {
  min-height: 42px;
  padding: 7px 5px;
}

.poster-stats .stat-card strong {
  font-size: clamp(0.84rem, 1vw, 1rem);
  line-height: 0.98;
}

.mobile-stat-grid {
  display: none;
}

.stat-card {
  display: grid;
  gap: 3px;
  min-height: 0;
  align-content: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  font-family: Rajdhani, Saira, sans-serif;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.stat-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--cyan);
}

.mode-separator {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.55;
}

.download-cta {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 2px 0 0;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.22), 0 0 28px rgba(163, 230, 53, 0.2);
}

.download-cta::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%);
  filter: blur(1px);
  opacity: 0;
  transform: translateX(0) skewX(-18deg);
  animation: downloadCtaShine 5s ease-in-out infinite;
}

.download-cta svg,
.download-cta span {
  position: relative;
  z-index: 1;
}

.download-popup-host {
  width: 100%;
  display: grid;
}

.download-cta svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes downloadCtaShine {
  0%,
  68% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }
  72% {
    opacity: 0.95;
  }
  88% {
    opacity: 0.95;
    transform: translateX(420%) skewX(-18deg);
  }
  92%,
  100% {
    opacity: 0;
    transform: translateX(420%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-cta::after {
    animation: none;
  }
}

.download-cta.is-loading {
  pointer-events: none;
  filter: saturate(0.9);
  opacity: 0.86;
}

.reward-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.download-detail {
  display: grid;
  gap: 14px;
  padding: 34px 0 16px;
}

.download-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta";
  align-items: center;
  gap: 14px 20px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-icon {
  grid-area: icon;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.download-poster {
  display: grid;
  grid-template-rows: 202px 1fr;
  gap: 8px;
  height: 335px;
}

.download-poster > img {
  display: block;
  width: 202px;
  height: 202px;
  justify-self: center;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-meta-grid {
  grid-area: meta;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
}

.download-meta-grid .stat-card strong {
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1;
}

.download-title {
  grid-area: title;
  display: grid;
  gap: 8px;
}

.download-title h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 0.9;
}

.download-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.download-rating-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(163, 230, 53, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dce7f7;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.store-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(163, 230, 53, 0.05)), var(--panel);
  box-shadow: var(--shadow);
}

.store-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.store-button {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(163, 230, 53, 0.12)),
    rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(34, 211, 238, 0.12);
  isolation: isolate;
}

.store-button::after {
  content: "";
  position: absolute;
  inset: -42% auto -42% -55%;
  z-index: 0;
  width: 36%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.68) 48%, transparent 100%);
  filter: blur(1px);
  opacity: 0;
  transform: translateX(0) skewX(-18deg);
  animation: downloadCtaShine 5s ease-in-out infinite;
}

.store-button.app-store::after {
  animation-delay: 0.35s;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(163, 230, 53, 0.58);
}

.store-button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-button .store-icon {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.18));
}

.store-button span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  line-height: 1;
}

.store-button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-button strong {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

@media (prefers-reduced-motion: reduce) {
  .store-button::after {
    animation: none;
  }
}

.mobile-floating-cta {
  display: none;
}

.gift-popup-open {
  overflow: hidden;
}

.gift-spinner-popup[hidden] {
  display: none;
}

.gift-spinner-popup {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(8, 145, 178, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.28), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(132, 204, 22, 0.2), transparent 34%),
    rgba(238, 248, 246, 0.76);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.gift-spinner-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.premium-gift-ready-popup[hidden] {
  display: none;
}

.premium-gift-ready-popup {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 41, 55, 0.32);
  backdrop-filter: blur(13px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.premium-gift-ready-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.premium-gift-ready-card {
  position: relative;
  width: min(100%, 352px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 20px 26px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.72);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.premium-gift-ready-popup.is-open .premium-gift-ready-card {
  transform: translateY(0) scale(1);
}

.premium-gift-close-count,
.premium-gift-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: transparent;
  color: #93a2b8;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.premium-gift-close {
  color: #64748b;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.42rem;
  font-weight: 300;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.premium-gift-close.is-visible {
  opacity: 1;
  transform: scale(1);
}

.premium-gift-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.premium-gift-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 78%, rgba(251, 191, 36, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(132, 204, 22, 0.08)),
    #f8fbff;
  color: #2563eb;
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.1);
}

.premium-gift-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-gift-ready-card h2 {
  max-width: 270px;
  margin: 2px 0 0;
  color: #111827;
  font-size: clamp(1.45rem, 6vw, 1.72rem);
  line-height: 1.12;
}

.premium-gift-ready-card p {
  max-width: 286px;
  margin: 0;
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.45;
}

.premium-gift-unlock {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff2a8, #facc15 42%, #ff5f7e);
  color: #0f2033;
  box-shadow: 0 16px 34px rgba(250, 204, 21, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 1000;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.premium-gift-unlock:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(255, 95, 126, 0.24);
}

.premium-gift-unlock:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.premium-gift-unlock:disabled {
  cursor: wait;
  opacity: 0.76;
}

.premium-gift-status {
  min-height: 14px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.premium-gift-unlocked-popup[hidden] {
  display: none;
}

.premium-gift-unlocked-popup {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(8, 145, 178, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.08) 1px, transparent 1px),
    rgba(226, 240, 247, 0.72);
  background-size: 34px 34px, 34px 34px, auto;
  backdrop-filter: blur(16px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.premium-gift-unlocked-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.premium-unlocked-card {
  position: relative;
  width: min(100%, 360px);
  min-height: 514px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;
  padding: 30px 24px 30px;
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 12%, rgba(132, 204, 22, 0.18), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(34, 211, 238, 0.2), transparent 32%),
    radial-gradient(circle at 24% 78%, rgba(250, 204, 21, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(226, 245, 240, 0.94));
  box-shadow: 0 28px 78px rgba(8, 145, 178, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.76);
  color: #102033;
  text-align: center;
  transform: translateY(18px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.premium-gift-unlocked-popup.is-open .premium-unlocked-card {
  transform: translateY(0) scale(1);
}

.premium-unlocked-card::before {
  content: "";
  position: absolute;
  inset: 58px 28px 52px;
  border: 2px solid rgba(8, 145, 178, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(224, 245, 240, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.premium-unlocked-card > * {
  position: relative;
  z-index: 1;
}

.premium-unlocked-close-count,
.premium-unlocked-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.12);
  backdrop-filter: blur(8px);
}

.premium-unlocked-close {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #526274;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.premium-unlocked-close.is-visible {
  opacity: 1;
}

.premium-unlocked-close:hover {
  color: #102033;
  transform: scale(1.06);
}

.premium-unlocked-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
  color: #facc15;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(250, 204, 21, 0.26);
}

.premium-unlocked-stars span:nth-child(2) {
  font-size: 2.65rem;
}

.premium-unlocked-badge {
  min-width: 132px;
  padding: 8px 14px;
  border: 1px solid rgba(132, 204, 22, 0.46);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(34, 211, 238, 0.14));
  color: #3f7c0b;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.premium-unlocked-badge strong {
  display: block;
  color: #102033;
  font-size: 0.9rem;
}

.premium-unlocked-card h2 {
  margin: 0;
  color: #102033;
  font-size: clamp(1.9rem, 8vw, 2.2rem);
  line-height: 1;
  text-shadow: 0 8px 18px rgba(8, 145, 178, 0.08);
}

.premium-unlocked-card p {
  max-width: 254px;
  margin: 0;
  color: #53657a;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.premium-unlocked-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 134px;
  height: 134px;
  margin: 4px 0 8px;
}

.premium-unlocked-rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(250, 204, 21, 0.95) 0 8deg, transparent 8deg 18deg),
    radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 66%);
  filter: drop-shadow(0 12px 20px rgba(250, 204, 21, 0.22));
  animation: premium-rays-spin 4.8s linear infinite;
}

.premium-unlocked-icon {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.22), 0 0 0 4px rgba(132, 204, 22, 0.12);
}

.premium-unlocked-claim {
  width: min(100%, 232px);
  min-height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff2a8, #facc15 38%, #ff5f7e);
  color: #0f2033;
  box-shadow: 0 18px 36px rgba(250, 204, 21, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 1000;
  text-transform: uppercase;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.premium-unlocked-claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(255, 95, 126, 0.24);
}

.premium-unlocked-claim:active {
  transform: translateY(1px) scale(0.98);
}

@keyframes premium-rays-spin {
  to {
    transform: rotate(360deg);
  }
}

.gift-spinner-card {
  position: relative;
  width: min(100%, 386px);
  display: grid;
  gap: 16px;
  padding: 18px 14px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(225, 245, 240, 0.86)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.72);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.gift-spinner-popup.is-open .gift-spinner-card {
  transform: translateY(0) scale(1);
}

.popup-close-countdown[hidden],
.popup-close-button[hidden] {
  display: none;
}

.gift-popup-countdown,
.gift-popup-close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 220;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: none;
  font: inherit;
  font-weight: 900;
  line-height: 1;
}

.gift-popup-countdown {
  color: #64748b;
  font-size: 0.95rem;
}

.gift-popup-close {
  color: rgba(16, 32, 51, 0.72);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 300;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gift-popup-close.is-visible {
  opacity: 1;
  transform: scale(1);
}

.gift-popup-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.gift-wheel-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 348px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(8, 145, 178, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 245, 249, 0.8));
}

.gift-wheel-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 6px;
}

.gift-wheel-pin {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 7;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 18px solid transparent;
  border-left: 18px solid transparent;
  border-top: 42px solid #fbbf24;
  filter: drop-shadow(0 9px 10px rgba(124, 58, 237, 0.28));
  transition: transform 0.18s ease;
}

.gift-wheel-pin.is-bouncing {
  animation: gift-pointer-bounce 0.52s ease;
}

.gift-wheel-wrap {
  position: relative;
  width: min(79vw, 292px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.gift-wheel {
  --prize-radius: clamp(78px, 26vw, 102px);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 10px solid #9d27cf;
  border-radius: 50%;
  background: #ffffff;
  transform: rotate(0deg);
  will-change: transform;
  box-shadow:
    inset 0 0 0 8px rgba(255, 91, 157, 0.62),
    0 0 0 6px rgba(139, 92, 246, 0.42),
    0 24px 48px rgba(217, 70, 239, 0.26);
}

.gift-wheel-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 12%, transparent 12.4%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.95) 0 2deg, transparent 2deg 45deg),
    conic-gradient(from 0deg, var(--gift-segment-colors));
  box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0.22);
}

.gift-wheel::after {
  content: "";
  position: absolute;
  inset: 25%;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
  box-shadow:
    inset 0 0 0 8px rgba(34, 211, 238, 0.18),
    inset 0 0 0 18px rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.gift-prize {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--prize-radius) * -1)) rotate(calc(var(--angle) * -1));
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.85rem;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(139, 92, 246, 0.28), 0 5px 10px rgba(15, 23, 42, 0.24);
}

.gift-spin-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #a78bfa, #7c3aed 72%);
  color: #ffffff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.58), 0 14px 28px rgba(124, 58, 237, 0.24);
  font-size: 0.86rem;
  font-weight: 900;
}

.gift-spin-actions {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 247, 242, 0.9)),
    rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.08);
  text-align: center;
}

.gift-spin-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #84cc16);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(8, 145, 178, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.gift-spin-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(8, 145, 178, 0.3);
  filter: saturate(1.08);
}

.gift-spin-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.gift-spin-button:disabled {
  cursor: wait;
  opacity: 0.72;
  filter: grayscale(0.18);
}

.gift-spin-actions p {
  max-width: 270px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.gift-result {
  min-height: 24px;
}

.gift-result.show {
  color: var(--text);
  animation: gift-result-pop 0.52s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.gift-result span {
  display: inline-block;
  margin-right: 4px;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.16));
}

.gift-prize.winner {
  animation: gift-winner-glow 1.1s ease-in-out infinite;
}

.gift-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 180;
  overflow: hidden;
  pointer-events: none;
}

.gift-confetti {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  background: var(--confetti-color);
  animation: gift-confetti-fall var(--fall-time) linear forwards;
}

@keyframes gift-pointer-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  35% {
    transform: translateX(-50%) translateY(12px);
  }

  65% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes gift-winner-glow {
  0%,
  100% {
    filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.16));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 22px rgba(251, 191, 36, 0.9));
  }
}

@keyframes gift-result-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gift-confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 110vh, 0) rotate(760deg);
  }
}

.store-note,
.section-count {
  color: var(--muted);
}

.screenshot-heading-line {
  max-width: 100%;
  color: #f8fbff;
  font-size: clamp(1.55rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.store-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .recommended-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

.recommended-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.recommended-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommended-card span {
  display: none;
  position: absolute;
  inset: auto 0 0;
  padding: 22px 8px 8px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.88);
}

.game-description {
  display: grid;
  gap: 10px;
}

.game-description h2 {
  margin-bottom: 2px;
}

.game-review-block {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.game-review-block:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.game-review-block h3 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.game-description p {
  max-width: 980px;
  color: #c7d2e6;
  line-height: 1.65;
}

.game-description ul {
  display: grid;
  gap: 7px;
  max-width: 920px;
  margin: 0;
  padding-left: 20px;
  color: #c7d2e6;
  line-height: 1.55;
}

.game-description li::marker {
  color: var(--green);
}

.game-disclaimer {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(163, 230, 53, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.11), rgba(34, 211, 238, 0.08));
}

.game-disclaimer strong {
  color: var(--green);
}

.legal-disclaimer {
  display: grid;
  gap: 10px;
}

.legal-disclaimer h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.legal-disclaimer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #c7d2e6;
  line-height: 1.55;
}

.legal-disclaimer li::marker {
  color: var(--green);
}

.footer-disclaimer {
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.07), rgba(163, 230, 53, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.screenshot-frame {
  position: relative;
}

.screenshot-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  min-height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--text);
  background: rgba(7, 9, 15, 0.82);
  box-shadow: var(--shadow);
  font-family: Rajdhani, Saira, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.screenshot-prev {
  left: 10px;
}

.screenshot-next {
  right: 10px;
}

.screenshot-nav:hover {
  border-color: rgba(163, 230, 53, 0.72);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.88), rgba(163, 230, 53, 0.88));
  color: #081018;
}

.accordion {
  display: grid;
  gap: 8px;
}

.accordion button {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.accordion div {
  display: none;
  padding: 0 14px 12px;
  color: var(--muted);
  line-height: 1.6;
}

.accordion button.active + div {
  display: block;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  align-items: start;
  gap: 18px;
  margin: 28px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 4px;
}

.site-footer a {
  color: #c7d2e6;
  font-weight: 800;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .top-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .featured-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .legal-meta,
  .contact-grid,
  .download-detail {
    grid-template-columns: 1fr;
  }

  .download-poster {
    grid-template-rows: auto auto;
    height: auto;
  }

  .download-poster > img {
    width: min(220px, 60vw);
    height: min(220px, 60vw);
  }

  .download-card {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "meta meta";
    min-height: 0;
    align-items: start;
  }

  .download-title h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .store-section {
    grid-template-columns: 1fr;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero,
  .quick-panel,
  .instant-game-panel,
  .split-section,
  .game-detail,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-stage {
    min-height: 380px;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .guide-grid,
  .guide-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    position: static;
  }
}

@media (max-width: 620px) {
  body[data-page="topgames"],
  body[data-page="game"],
  body[data-page="download"] {
    padding-bottom: 92px;
  }

  main,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .store-buttons {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "meta meta";
    gap: 10px;
    padding: 10px;
  }

  .download-title {
    gap: 6px;
    align-self: center;
  }

  .download-title h1 {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
    line-height: 0.9;
  }

  .store-section {
    padding: 12px;
  }

  .download-meta-grid,
  .recommended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommended-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .recommended-card span {
    padding: 18px 5px 5px;
    font-size: 0.58rem;
    line-height: 0.98;
  }

  .download-meta-grid {
    gap: 6px;
  }

  .download-meta-grid .stat-card {
    padding: 6px;
  }

  .download-meta-grid .stat-card span {
    font-size: 0.54rem;
  }

  .download-meta-grid .stat-card strong {
    font-size: 0.78rem;
    line-height: 1;
  }

  .store-button {
    min-height: 52px;
    justify-content: flex-start;
    padding: 9px 10px;
  }

  .store-button svg {
    width: 24px;
    height: 24px;
  }

  .store-button .store-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .mobile-floating-cta {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: min(100% - 24px, 420px);
    margin: 0 auto;
    padding: 9px 9px 9px 12px;
    border: 1px solid rgba(8, 145, 178, 0.24);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(225, 245, 240, 0.94)),
      var(--panel);
    box-shadow: 0 16px 38px rgba(8, 145, 178, 0.16), 0 0 0 3px rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px)) scale(0.98);
    transition: opacity 0.38s ease, transform 0.45s cubic-bezier(0.2, 0.85, 0.2, 1);
  }

  .mobile-floating-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-floating-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 1px;
    color: var(--text);
    line-height: 1;
  }

  .mobile-floating-gift {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(8, 145, 178, 0.24));
    animation: gift-bounce 1.45s ease-in-out infinite;
  }

  .mobile-floating-copy span {
    width: max-content;
    max-width: 100%;
    padding: 4px 9px;
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.11), rgba(132, 204, 22, 0.11));
    color: #3f7c0b;
    font-size: 0.58rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-floating-copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-floating-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-floating-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2, #65a30d);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.22);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
    transform-origin: center;
    animation: unlock-gift-shake 4.8s ease-in-out infinite;
  }

  .mobile-floating-button:active {
    animation: none;
    transform: scale(0.97);
  }

  @keyframes gift-bounce {
    0%,
    100% {
      transform: translateY(0) rotate(-3deg) scale(1);
    }

    50% {
      transform: translateY(-5px) rotate(4deg) scale(1.07);
    }
  }

  @keyframes unlock-gift-shake {
    0%,
    72%,
    100% {
      transform: translateX(0) rotate(0deg);
    }

    76% {
      transform: translateX(-2px) rotate(-1.5deg);
    }

    80% {
      transform: translateX(2px) rotate(1.5deg);
    }

    84% {
      transform: translateX(-1px) rotate(-0.8deg);
    }

    88% {
      transform: translateX(1px) rotate(0.8deg);
    }

    92% {
      transform: translateX(0) rotate(0deg);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-floating-gift,
    .mobile-floating-button {
      animation: none;
    }
  }

  .popular-games-section {
    padding: 8px 0 18px;
  }

  .popular-games-head {
    margin-bottom: 8px;
  }

  .popular-games-head h2 {
    font-size: 1.45rem;
  }

  .popular-games-grid {
    grid-auto-columns: 66px;
    gap: 6px;
  }

  .popular-game-card span {
    padding: 15px 4px 4px;
    font-size: 0.52rem;
  }

  .related-games-section {
    padding: 12px 0 18px;
  }

  .related-games-head {
    margin-bottom: 10px;
  }

  .related-games-head h2 {
    font-size: 1.75rem;
  }

  .related-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .related-game-card span {
    padding: 15px 4px 4px;
    font-size: 0.52rem;
  }

  body[data-page="topgames"] main {
    width: 100%;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 12px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-copy strong {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 3rem;
    line-height: 0.92;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
  }

  .hero .button {
    min-width: 0;
    padding-inline: 12px;
    text-align: center;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-metrics span {
    min-height: 50px;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 6px 8px 31px;
    font-size: 0.64rem;
  }

  .hero-metrics span::before {
    left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 7px;
  }

  .hero-metrics span::after {
    left: 11px;
    font-size: 0.72rem;
  }

  .hero-metrics strong {
    font-size: 1.08rem;
  }

  .hero-stage {
    min-height: 330px;
  }

  .hero-picks-card {
    width: min(320px, 100%);
    padding: 12px;
  }

  .hero-icon-grid {
    gap: 7px;
  }

  .hero-icon {
    min-height: 82px;
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .featured-strip,
  .guide-grid,
  .guide-grid.wide,
  .top-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-games-grid {
    gap: 4px;
  }

  .game-tile,
  .game-tile:nth-child(7n + 1),
  .game-tile:nth-child(11n + 4),
  .game-tile:nth-child(9n + 3) {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 210px;
  }

  .tile-content {
    padding: 7px;
  }

  .tile-content h3 {
    font-size: 0.76rem;
  }

  .tile-meta {
    font-size: 0.68rem;
  }

  .loop-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-rows: 130px 1fr;
    min-height: 260px;
  }

  body[data-page="game"] .site-header {
    display: none;
  }

  body[data-page="game"] main {
    width: min(100% - 16px, var(--max));
  }

  body[data-page="game"] .game-detail {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  body[data-page="game"] .detail-poster,
  body[data-page="game"] .detail-copy {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="game"] .detail-poster {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    display: block;
    height: auto;
    overflow: visible;
  }

  body[data-page="game"] .detail-poster img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  body[data-page="game"] .poster-stats {
    display: none;
  }

  body[data-page="game"] .detail-poster .actions {
    display: none;
  }

  body[data-page="game"] .detail-copy {
    display: contents;
    padding: 0;
  }

  body[data-page="game"] .detail-copy > .eyebrow,
  body[data-page="game"] .detail-copy > h1,
  body[data-page="game"] .detail-copy > .lead {
    grid-column: 2;
    margin: 0;
  }

  body[data-page="game"] .detail-copy > .eyebrow {
    align-self: end;
    font-size: 0.64rem;
  }

  body[data-page="game"] .detail-copy h1 {
    max-width: none;
    font-size: clamp(1.45rem, 8vw, 2.05rem);
    line-height: 0.98;
  }

  body[data-page="game"] .detail-copy > .lead {
    display: -webkit-box;
    overflow: hidden;
    color: #c7d2e6;
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  body[data-page="game"] .detail-copy > .stat-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 0;
  }

  body[data-page="game"] .detail-copy > .download-popup-host,
  body[data-page="game"] .detail-copy > .download-cta,
  body[data-page="game"] .detail-copy > .reward-note {
    grid-column: 1 / -1;
    margin: 8px 0 0;
  }

  body[data-page="game"] .detail-copy > .reward-note {
    margin-top: 3px;
  }

  body[data-page="game"] .detail-copy .download-cta,
  body[data-page="game"] .detail-copy > .download-cta {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
  }

  body[data-page="game"] .stat-card {
    gap: 2px;
    padding: 7px 5px;
    text-align: center;
  }

  body[data-page="game"] .stat-card span {
    font-size: 0.56rem;
  }

  body[data-page="game"] .stat-card strong {
    font-size: 0.95rem;
  }

  body[data-page="game"] .detail-copy > .loop-grid {
    display: none;
  }

  body[data-page="game"] .game-detail + .section {
    padding: 12px 0 26px;
  }

  body[data-page="game"] .game-detail + .section .section-head {
    gap: 8px;
    margin-bottom: 10px;
  }

  body[data-page="game"] .game-detail + .section h2 {
    font-size: 1.65rem;
  }

  body[data-page="game"] .popular-games-section {
    padding: 10px 0 12px;
  }

  body[data-page="game"] .popular-games-section + .section {
    padding-top: 10px;
  }

  body[data-page="game"] .game-description-section {
    padding: 0 0 24px;
  }

  body[data-page="game"] .game-description {
    padding: 14px;
  }

  body[data-page="game"] .game-description h2 {
    font-size: 1.8rem;
  }

  body[data-page="game"] .game-description p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  body[data-page="game"] .game-disclaimer {
    padding: 12px;
  }

  body[data-page="game"] .similar-games-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body[data-page="game"] .similar-game-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 58px;
    gap: 7px;
    padding: 7px;
  }

  body[data-page="game"] .similar-game-card img {
    width: 44px;
    height: 44px;
  }

  body[data-page="game"] .similar-game-card strong {
    font-size: 0.78rem;
  }

  body[data-page="game"] .similar-game-card small {
    font-size: 0.62rem;
  }

  body[data-page="game"] .footer-disclaimer {
    padding: 14px;
  }

  body[data-page="game"] .legal-disclaimer h2 {
    font-size: 1.75rem;
  }

  body[data-page="game"] .legal-disclaimer ul {
    gap: 7px;
    padding-left: 18px;
    font-size: 0.88rem;
  }

  body[data-page="game"] .screenshot-nav {
    width: 38px;
    min-height: 38px;
    font-size: 1.25rem;
  }

  body[data-page="game"] .screenshot-prev {
    left: 6px;
  }

  body[data-page="game"] .screenshot-next {
    right: 6px;
  }
}

body[data-page="topgames"] .top-games-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  --top-cell: clamp(82px, 8vw, 112px);
  grid-auto-rows: var(--top-cell);
  grid-auto-flow: dense;
  gap: 6px;
  padding: 6px;
}

body[data-page="topgames"] .game-tile,
body[data-page="topgames"] .game-tile:nth-child(7n + 1),
body[data-page="topgames"] .game-tile:nth-child(11n + 4),
body[data-page="topgames"] .game-tile:nth-child(9n + 3) {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 0;
  aspect-ratio: auto;
}

body[data-page="topgames"] .game-tile.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 620px) {
  body[data-page="topgames"] .top-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --top-cell: calc((100vw - 32px) / 3);
    grid-auto-rows: var(--top-cell);
    gap: 8px;
    padding: 8px;
  }

  body[data-page="topgames"] .game-tile.tile-large {
    grid-column: span 2;
    grid-row: span 2;
  }

}

/* Reference-style screenshot rail: portrait stays narrow, landscape stays wide, no crop. */
body[data-page="game"] .screenshot-rail,
body[data-page="download"] .screenshot-rail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-page="game"] .screenshot-rail::-webkit-scrollbar,
body[data-page="download"] .screenshot-rail::-webkit-scrollbar {
  display: none;
}

body[data-page="game"] .screenshot,
body[data-page="download"] .screenshot,
body[data-page="game"] .screenshot.shot-portrait,
body[data-page="game"] .screenshot.shot-landscape,
body[data-page="download"] .screenshot.shot-portrait,
body[data-page="download"] .screenshot.shot-landscape {
  flex: 0 0 auto !important;
  width: auto;
  max-width: none;
  border: 0;
  background: transparent;
}

body[data-page="game"] .screenshot img,
body[data-page="download"] .screenshot img,
body[data-page="game"] .screenshot.shot-portrait img,
body[data-page="game"] .screenshot.shot-landscape img,
body[data-page="download"] .screenshot.shot-portrait img,
body[data-page="download"] .screenshot.shot-landscape img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 250px;
  max-width: none;
  object-fit: contain !important;
  object-position: center;
  border-radius: 8px;
}

@media (max-width: 767px) {
  body[data-page="game"] .screenshot-rail,
  body[data-page="download"] .screenshot-rail {
    gap: 10px;
  }

  body[data-page="game"] .screenshot img,
  body[data-page="download"] .screenshot img,
  body[data-page="game"] .screenshot.shot-portrait img,
  body[data-page="game"] .screenshot.shot-landscape img,
  body[data-page="download"] .screenshot.shot-portrait img,
  body[data-page="download"] .screenshot.shot-landscape img {
    max-height: 250px;
    max-width: calc(100vw - 48px);
  }
}

@media (max-width: 1180px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    align-items: center;
  }

  .menu-toggle {
    position: absolute;
    top: 11px;
    right: 12px;
    z-index: 90;
    display: inline-grid !important;
    gap: 5px;
    width: 46px;
    min-height: 46px;
    padding: 10px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    width: min(82vw, 320px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 88px 16px 20px;
    border-left: 1px solid rgba(34, 211, 238, 0.24);
    background:
      linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(163, 230, 53, 0.05)),
      rgba(7, 9, 15, 0.97);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: clip-path 0.22s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  body.menu-open .nav {
    clip-path: inset(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 11px 12px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.045);
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 620px) {
  body[data-page="home"] .featured-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 6px;
  }

  body[data-page="home"] .mini-game-card {
    align-self: start;
  }

  body[data-page="home"] .mini-game-copy {
    gap: 3px;
    min-height: 0;
    padding: 7px 7px 8px;
  }

  body[data-page="home"] .mini-meta {
    font-size: 0.58rem;
    line-height: 1.1;
  }

  body[data-page="home"] .mini-game-card h3 {
    min-height: 0;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.05;
  }

  body[data-page="home"] .featured-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    min-height: 52px;
    padding-right: 0;
    width: 100%;
  }

  body[data-page="home"] .featured-head > div {
    min-width: 0;
  }

  body[data-page="home"] .featured-head h2 {
    max-width: none;
    overflow: hidden;
    font-size: clamp(0.86rem, 4.4vw, 1.28rem);
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
  }

  body[data-page="home"] .featured-cta {
    position: absolute;
    top: 0;
    right: 0;
    width: 105px;
    min-height: 44px;
    padding: 7px 6px;
    font-size: 1rem;
    justify-content: center;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }
}

/* gamezone-light theme overrides */
:root {
  --bg: #f5f9ff;
  --bg-2: #eaf3ff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #102033;
  --muted: #5d6b7c;
  --line: rgba(15, 23, 42, 0.14);
  --cyan: #0891b2;
  --green: #65a30d;
  --red: #e11d48;
  --yellow: #ca8a04;
  --blue: #2563eb;
  --shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
}

body {
  color: var(--text);
  background:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 45%, #fef8ee 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

body::before {
  background:
    linear-gradient(120deg, rgba(8, 145, 178, 0.16), transparent 30%),
    linear-gradient(300deg, rgba(225, 29, 72, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(101, 163, 13, 0.12), transparent 62%);
}

body::after {
  background: repeating-linear-gradient(180deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 6px);
  mix-blend-mode: multiply;
  opacity: 0.38;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
}

.brand-copy small,
.panel-label,
.mini-meta,
.tile-meta,
.store-button small,
.stat-card span,
.section-count,
.store-note,
.footer-copy,
.site-footer {
  color: var(--muted);
}

.nav a,
.site-footer a,
.legal-content a,
.legal-meta a {
  color: #334155;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(8, 145, 178, 0.08);
  border-color: rgba(8, 145, 178, 0.18);
}

.menu-toggle,
.icon-button,
.button:not(.primary),
.toolbar input,
.toolbar select,
.toolbar button,
.accordion button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.menu-toggle span {
  background: var(--text);
}

.hero,
.page-hero {
  color: var(--text);
}

.hero-lead p,
.lead,
.legal-content p,
.legal-content li,
.game-description p,
.game-description ul,
.game-description li,
.split-section .arena-panel p,
.split-section .watchlist-panel p,
.accordion div,
.legal-disclaimer ul {
  color: #475569;
}

h1,
h2,
h3,
.detail-copy h1,
.download-title h1,
.screenshot-heading-line,
.game-review-block h3,
.legal-disclaimer h2,
.site-footer strong {
  color: var(--text);
}

.game-tile .tile-content h3 {
  color: #ffffff;
}

.game-tile .tile-content {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.quick-panel,
.instant-game-panel,
.quest-card,
.arena-panel,
.watchlist-panel,
.tips-panel,
.toolbar,
.mini-game-card,
.guide-card,
.detail-poster,
.detail-copy,
.download-card,
.store-section,
.game-description,
.footer-disclaimer,
.legal-meta,
.legal-content,
.hero-picks-card {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.06), rgba(101, 163, 13, 0.04)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-stage::before {
  border-color: rgba(8, 145, 178, 0.18);
  background:
    linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.14), transparent),
    rgba(255, 255, 255, 0.38);
}

.hero-icon,
.mini-thumb,
.detail-poster img,
.download-icon,
.recommended-card,
.similar-game-card img,
.guide-card img,
.game-tile {
  background-color: #eef4fb;
  background-image:
    url("assets/whiteplay-logo-gray.svg"),
    linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(101, 163, 13, 0.06));
}

.hero-icon,
.stat-card,
.download-rating-row span,
.loop-grid span,
.instant-game-stats span,
.tap-game-board,
.tap-game-board button,
.hot-zone,
.watch-row,
.challenge-row,
.similar-game-card {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(101, 163, 13, 0.05)),
    rgba(255, 255, 255, 0.74);
}

.hero-icon:hover,
.hero-icon.active,
.similar-game-card:hover {
  border-color: rgba(8, 145, 178, 0.44);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(101, 163, 13, 0.1)),
    rgba(255, 255, 255, 0.9);
}

.quest-progress {
  background: rgba(15, 23, 42, 0.08);
}

.game-disclaimer {
  color: #3f4f63;
  border-color: rgba(101, 163, 13, 0.18);
  background: linear-gradient(135deg, rgba(101, 163, 13, 0.12), rgba(8, 145, 178, 0.08));
}

.store-button {
  color: var(--text);
  border-color: rgba(8, 145, 178, 0.26);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.13), rgba(101, 163, 13, 0.12)),
    rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(8, 145, 178, 0.1);
}

.download-rating-row span {
  color: var(--text);
}

.download-cta,
.button.primary {
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(8, 145, 178, 0.18);
}

.screenshot-nav {
  color: var(--text);
  border-color: rgba(8, 145, 178, 0.32);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

body[data-page="game"] .screenshot,
body[data-page="download"] .screenshot,
body[data-page="game"] .screenshot.shot-portrait,
body[data-page="game"] .screenshot.shot-landscape,
body[data-page="download"] .screenshot.shot-portrait,
body[data-page="download"] .screenshot.shot-landscape {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.1);
}

body[data-page="game"] .screenshot-rail::-webkit-scrollbar-thumb,
body[data-page="download"] .screenshot-rail::-webkit-scrollbar-thumb {
  background: rgba(8, 145, 178, 0.34);
}

.game-description li::marker,
.legal-disclaimer li::marker,
.legal-content li::marker {
  color: var(--green);
}

@media (max-width: 1180px) {
  .nav {
    background:
      linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(101, 163, 13, 0.06)),
      rgba(255, 255, 255, 0.98);
    border-left-color: rgba(8, 145, 178, 0.22);
    box-shadow: -24px 0 60px rgba(31, 41, 55, 0.16);
  }

  .nav a {
    background: rgba(255, 255, 255, 0.68);
    border-color: var(--line);
  }
}

@media (max-width: 620px) {
  body[data-page="game"] .game-detail {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  body[data-page="game"] .detail-poster {
    padding: 0;
  }

  body[data-page="game"] .detail-poster img {
    width: 100%;
  }

  body[data-page="game"] .detail-copy > .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 0;
  }

  body[data-page="game"] .stat-card {
    min-height: 0;
    padding: 7px 5px;
    text-align: center;
  }

  body[data-page="game"] .detail-copy > .lead {
    color: #475569;
  }
}

@media (min-width: 621px) {
  body[data-page="game"] .game-detail {
    grid-template-columns: 242px minmax(0, 1fr);
    gap: 16px;
    padding: 34px 0 16px;
  }
}

@media (max-width: 620px) {
  .instant-game-panel {
    gap: 14px;
    padding: 14px;
  }

  .instant-game-copy h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .instant-game-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .instant-game-stats span {
    justify-content: center;
    padding: 7px 5px;
    text-align: center;
  }

  .tap-download-button {
    width: 100%;
  }

  .tap-game-preview {
    width: min(260px, 100%);
    justify-self: center;
  }

  .tap-game-modal {
    padding: 0;
  }

  .tap-game-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 14px;
  }

  .tap-popup-content,
  .tap-game-play {
    align-content: center;
    padding: 44px 4px 4px;
  }

  .tap-popup-content h2 {
    padding-right: 0;
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .tap-game-hud {
    gap: 6px;
  }

  .tap-game-hud span {
    min-height: 38px;
    padding: 6px 4px;
    font-size: 0.78rem;
  }

  .tap-game-board {
    width: min(100%, 360px);
    justify-self: center;
  }

.tap-popup-ad {
    min-height: 86px;
  }
}

/* Light theme hero launcher refresh */
.hero-stage::before {
  inset: 24px -2px 22px 26px;
  border-color: rgba(8, 145, 178, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(101, 163, 13, 0.08) 52%, rgba(225, 29, 72, 0.06)),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 76px rgba(8, 145, 178, 0.16);
}

.hero-picks-card {
  gap: 10px;
  padding: 13px;
  border-color: rgba(8, 145, 178, 0.28);
  background:
    linear-gradient(180deg, #102033 0 60px, rgba(255, 255, 255, 0) 60px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(226, 245, 240, 0.92));
  box-shadow:
    0 26px 70px rgba(8, 145, 178, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-picks-card::before {
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.46) 46%, transparent 58%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.12), transparent 48%);
}

.hero-picks-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 9px;
  left: 14px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0891b2, #65a30d, #facc15);
  opacity: 0.72;
  pointer-events: none;
}

.hero-picks-head {
  min-height: 32px;
  padding: 0 2px 2px;
}

.hero-picks-card .panel-label {
  color: #a3e635;
}

.hero-picks-head strong {
  color: #ffffff;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.hero-picks-chips span {
  border-color: rgba(8, 145, 178, 0.2);
  color: #2f760b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 250, 246, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(15, 23, 42, 0.06);
}

.hero-icon-grid {
  gap: 8px;
}

.hero-icon {
  border-color: rgba(8, 145, 178, 0.24);
  border-radius: 12px;
  background-color: #102033;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.hero-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(16, 32, 51, 0.9));
  pointer-events: none;
}

.hero-icon:hover,
.hero-icon.active {
  border-color: rgba(8, 145, 178, 0.62);
  box-shadow: 0 18px 34px rgba(8, 145, 178, 0.24);
}

.hero-icon span {
  color: #ffffff;
  background: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-picks-footer {
  padding: 8px 9px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 14px;
  color: #334155;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.09), rgba(101, 163, 13, 0.07));
}

.hero-picks-footer span {
  max-width: 178px;
}

.hero-picks-footer .button {
  min-height: 40px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #65a30d);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.18);
}

body[data-page="home"] .featured-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 1100px) and (min-width: 621px) {
  body[data-page="home"] .featured-strip {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }
}

@media (max-width: 620px) {
  body[data-page="home"] .featured-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: calc((100vw - 44px) / 3);
    grid-auto-flow: dense;
    gap: 8px;
  }

  body[data-page="home"] .mini-game-card {
    width: 100%;
    height: 100%;
    display: block;
    align-self: stretch;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  }

  body[data-page="home"] .mini-game-card:nth-child(1),
  body[data-page="home"] .mini-game-card:nth-child(8),
  body[data-page="home"] .mini-game-card:nth-child(14) {
    grid-column: span 2;
    grid-row: span 2;
  }

  body[data-page="home"] .mini-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  body[data-page="home"] .mini-thumb img {
    height: 100%;
    object-fit: cover;
  }

  body[data-page="home"] .mini-game-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    gap: 2px;
    min-height: 0;
    padding: 22px 6px 6px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(15, 32, 51, 0.88));
  }

  body[data-page="home"] .mini-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.48rem, 1.75vw, 0.58rem);
    line-height: 1;
    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
  }

  body[data-page="home"] .mini-game-card h3 {
    min-height: 0;
    margin: 0;
    color: #ffffff;
    font-size: clamp(0.58rem, 2.35vw, 0.78rem);
    line-height: 1.02;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  }

  body[data-page="home"] .mini-game-card:nth-child(1) .mini-game-copy,
  body[data-page="home"] .mini-game-card:nth-child(8) .mini-game-copy,
  body[data-page="home"] .mini-game-card:nth-child(14) .mini-game-copy {
    padding: 42px 10px 10px;
  }

  body[data-page="home"] .mini-game-card:nth-child(1) .mini-meta,
  body[data-page="home"] .mini-game-card:nth-child(8) .mini-meta,
  body[data-page="home"] .mini-game-card:nth-child(14) .mini-meta {
    font-size: clamp(0.6rem, 2vw, 0.72rem);
  }

  body[data-page="home"] .mini-game-card:nth-child(1) h3,
  body[data-page="home"] .mini-game-card:nth-child(8) h3,
  body[data-page="home"] .mini-game-card:nth-child(14) h3 {
    font-size: clamp(0.95rem, 4vw, 1.25rem);
  }
}
