/* GameCornerHub — GameZone-inspired dark gaming UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #07070f;
  --bg-2: #0d0d1a;
  --surface: #141428;
  --surface-2: #1a1a32;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #7c3aed;
  --primary-2: #a855f7;
  --primary-3: #6366f1;
  --accent: #38bdf8;
  --gold: #fbbf24;
  --text: #f8fafc;
  --muted: #94a3b8;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 84px;
  --max: 1240px;
  --grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #3b82f6 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(59, 130, 246, 0.15));
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: 'Outfit', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(68vw, 280px);
  object-fit: contain;
}
@media (min-width: 768px) {
  .logo-img { height: 68px; max-width: 320px; }
}
.site-footer .logo-img {
  height: 60px;
  max-width: 280px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
}
.logo-mark svg { width: 22px; height: 22px; fill: #fff; }
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1rem;
}
.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.15);
}
.nav .has-drop { position: relative; }
.nav .has-drop > button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav .has-drop > button:hover { color: #fff; background: rgba(124, 58, 237, 0.15); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  box-shadow: var(--shadow);
  display: none;
}
.dropdown.open { display: block; }
.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.dropdown a:hover { background: rgba(124, 58, 237, 0.12); color: #fff; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.search-wrap {
  position: relative;
  display: none;
}
.search-wrap input {
  width: 210px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 1rem 0 2.4rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--muted);
  pointer-events: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(124, 58, 237, 0.5); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: var(--primary-2);
  background: rgba(124, 58, 237, 0.12);
}
.nav-toggle {
  display: grid;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(7, 7, 15, 0.97);
  padding: 1.25rem;
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav .mobile-cats summary {
  display: block;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.mobile-nav .mobile-search {
  margin-bottom: 1rem;
}
.mobile-nav .mobile-search input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  padding: 0 1rem;
  outline: none;
}

@media (min-width: 992px) {
  .nav { display: flex; }
  .search-wrap { display: block; }
  .nav-toggle { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: min(72vh, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 70% at 85% 40%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(160deg, #0a0618 0%, #07070f 45%, #0b1024 100%);
}
.hero-art {
  display: none;
  position: absolute;
  right: max(3%, calc(50% - 580px));
  top: 54%;
  width: min(28vw, 320px);
  z-index: 1;
  pointer-events: auto;
  translate: 0 -50%;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 68%);
  z-index: -1;
  filter: blur(18px);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero-art { display: block; }
}
@media (min-width: 1200px) {
  .hero-art { width: min(30vw, 360px); }
}
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 24px 60px rgba(124, 58, 237, 0.32);
  animation: floatArt 6s ease-in-out infinite;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
.hero-slide-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.hero-dot.is-active {
  width: 22px;
  background: var(--primary-2);
}
.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  right: 12%;
  top: 18%;
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
@keyframes floatArt {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  max-width: 560px;
  animation: fadeUp .7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 1.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  animation: fadeUp .7s ease both;
}
.hero-feat:nth-child(2) { animation-delay: .1s; }
.hero-feat:nth-child(3) { animation-delay: .2s; }
.hero-feat i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: grid;
  place-items: center;
  color: var(--primary-2);
  font-style: normal;
  font-size: 0.85rem;
}

/* ========== SECTIONS ========== */
.section {
  padding: 2.75rem 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.view-all {
  color: var(--primary-2);
  font-weight: 600;
  font-size: 0.92rem;
}
.view-all:hover { text-decoration: underline; }
.slider-nav {
  display: flex;
  gap: 0.4rem;
}
.slider-nav button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s, border-color .2s;
}
.slider-nav button:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.45);
}

/* ========== CATEGORIES ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(8, 1fr); }
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cat-color, var(--primary)) 50%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--cat-color, var(--primary)) 25%, transparent);
}
.cat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.7rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 18%, transparent);
  color: var(--cat-color, var(--primary));
  font-size: 1.35rem;
}
.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.cat-card p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ========== GAME CARDS ========== */
.games-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}
.games-track::-webkit-scrollbar { display: none; }
.games-track > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .games-track.cols-6 {
    display: grid;
    grid-auto-flow: unset;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
  }
}
@media (max-width: 767px) {
  .games-track { grid-auto-columns: 72%; }
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.18);
}
.game-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.game-card:hover .game-thumb img { transform: scale(1.06); }
.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  z-index: 2;
}
.game-meta {
  padding: 0.75rem 0.85rem 0.95rem;
}
.game-meta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}
.game-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}
.rating svg { width: 13px; height: 13px; fill: currentColor; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
}
.tag.action { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.tag.adventure { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.tag.puzzle { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.tag.racing { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.tag.sports { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.tag.arcade { background: rgba(236, 72, 153, 0.18); color: #f9a8d4; }
.tag.board { background: rgba(20, 184, 166, 0.18); color: #5eead4; }
.tag.casual { background: rgba(168, 85, 247, 0.18); color: #d8b4fe; }
.tag.shooting { background: rgba(249, 115, 22, 0.18); color: #fdba74; }

/* Featured larger cards */
.featured-track .game-thumb { aspect-ratio: 16 / 11; }

/* Trending list */
.trending-list {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .trending-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .trending-list { grid-template-columns: repeat(5, 1fr); }
}
.trend-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem;
  transition: transform .2s, border-color .2s;
}
.trend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.4);
}
.trend-rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-2);
  min-width: 28px;
}
.trend-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trend-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.trend-info .rating { font-size: 0.75rem; }

/* All games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .games-grid { grid-template-columns: repeat(6, 1fr); } }

/* ========== NEWSLETTER ========== */
.newsletter {
  margin: 1rem 0 2rem;
}
.newsletter-inner {
  background: var(--grad);
  border-radius: 20px;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
  overflow: hidden;
  width: 100%;
}
@media (min-width: 640px) {
  .newsletter-inner { padding: 1.5rem 1.75rem; gap: 1.25rem; }
}
.newsletter-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.newsletter-text { flex: 1 1 180px; min-width: 0; }
.newsletter-text h2 {
  font-family: var(--display);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  margin-bottom: 0.2rem;
}
.newsletter-text p { opacity: 0.9; font-size: 0.92rem; }
.newsletter-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  gap: 0.55rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.newsletter-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 1rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.newsletter-form .btn {
  background: #fff;
  color: #5b21b6;
  height: 44px;
  width: 100%;
  flex-shrink: 0;
  border-radius: 999px;
}
.newsletter-form .btn:hover { background: #f3e8ff; }
@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
    flex: 1 1 280px;
    width: auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem;
    gap: 0.5rem;
  }
  .newsletter-form input {
    height: auto;
    background: transparent;
    border-radius: 0;
    padding: 0 1rem;
  }
  .newsletter-form .btn {
    width: auto;
    height: 40px;
    padding: 0 1.15rem;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; }
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.85rem 0 1rem;
  max-width: 32ch;
}
.socials {
  display: flex;
  gap: 0.55rem;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: .2s;
}
.socials a:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.4);
}
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.28rem 0;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-connect form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.footer-connect input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  padding: 0 0.85rem;
  outline: none;
  min-width: 0;
}
.footer-connect button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
}
.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.footer-legal a:hover { color: #fff; }

/* ========== GAME PAGE ========== */
.page-main { padding: 2rem 0 3rem; }
.page-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.page-lead { color: var(--muted); margin-bottom: 1.5rem; max-width: 60ch; }

.game-play-panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(59, 130, 246, 0.18), transparent 50%),
    var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.game-play-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.35rem;
  align-items: center;
}
@media (min-width: 720px) {
  .game-play-layout {
    grid-template-columns: 280px 1fr;
    padding: 1.75rem;
    gap: 2rem;
  }
}
.game-play-cover {
  position: relative;
  margin: 0 auto;
  width: min(100%, 260px);
}
@media (min-width: 720px) {
  .game-play-cover { width: 100%; margin: 0; }
}
.game-play-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.15),
    0 18px 40px rgba(0, 0, 0, 0.45);
}
.game-play-cover::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(18px);
  pointer-events: none;
}
.game-play-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  min-width: 0;
}
@media (min-width: 720px) {
  .game-play-body { text-align: left; }
}
.game-play-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@media (min-width: 720px) {
  .game-play-kicker { align-self: flex-start; }
}
.game-play-body h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
.game-play-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
}
@media (min-width: 720px) {
  .game-play-meta { justify-content: flex-start; }
}
.game-play-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--gold);
  font-size: 0.9rem;
}
.game-play-meta .rating svg { width: 14px; height: 14px; }
.game-play-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.25rem;
}
@media (min-width: 720px) {
  .game-play-actions { justify-content: flex-start; }
}
.game-play-actions .btn {
  height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
  min-width: 150px;
}
.game-play-actions .btn-primary {
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4);
}
.game-play-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.game-play-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
@media (min-width: 720px) {
  .game-play-badges { justify-content: flex-start; }
}
.game-play-badges span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .related-grid { grid-template-columns: repeat(6, 1fr); } }

/* Game detail content */
.game-details {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin: 1.5rem auto 0;
}
.game-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
}
.game-detail-card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.game-detail-card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}
.game-detail-card p:last-child { margin-bottom: 0; }
.game-detail-card strong { color: var(--text); font-weight: 600; }
.game-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0;
}
.game-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 3rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.game-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.game-tip {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #ddd6fe;
  font-size: 0.95rem;
  line-height: 1.55;
}
.game-tip strong {
  color: #c4b5fd;
  margin-right: 0.25rem;
}
.game-info-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game-info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.game-info-list span { color: var(--muted); }
.game-info-list strong { color: var(--text); font-weight: 600; text-align: right; }

.game-detail-card a { color: var(--primary-2); text-decoration: underline; }
.game-detail-card a:hover { color: #fff; }

.seo-section { padding-top: 1rem; }
.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  max-width: 900px;
}
.seo-section .seo-card { max-width: none; }
.seo-card h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.seo-subtitle {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.75rem;
  font-weight: 600;
}
.seo-card > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.seo-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}
.seo-list li { margin-bottom: 0.45rem; }
.faq-list { display: grid; gap: 0.55rem; margin-top: 0.5rem; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary-2);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.65;
  font-size: 0.95rem;
}
.content-prose h2 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.55rem;
  font-family: var(--display);
}
.content-prose p, .content-prose li {
  color: var(--muted);
  line-height: 1.7;
}
.content-prose ul { padding-left: 1.2rem; margin-bottom: 0.85rem; list-style: disc; }
.content-prose a { color: var(--primary-2); }

/* ========== CONTENT PAGES ========== */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  max-width: 820px;
}
.content-card h2 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}
.content-card p, .content-card li {
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.content-card ul { padding-left: 1.2rem; list-style: disc; }

.contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: #fff;
  padding: 0 0.9rem;
  outline: none;
}
.contact-form textarea {
  height: auto;
  min-height: 120px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(124, 58, 237, 0.55);
}

/* search empty */
.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
.no-results.show { display: block; }

/* ========== PLAY SCREEN (mockup layout) ========== */
body.play-body {
  min-height: 100vh;
  background: #080812;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
.play-top {
  flex-shrink: 0;
  min-height: 68px;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0.75rem;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.25);
  z-index: 30;
}
.play-top-left {
  justify-self: start;
  min-width: 0;
}
.play-top-left .logo-img {
  height: 36px;
  max-width: 120px;
}
@media (min-width: 480px) {
  .play-top-left .logo-img { height: 42px; max-width: 160px; }
}
@media (min-width: 768px) {
  .play-top-left .logo-img { height: 50px; max-width: 220px; }
}
.play-top-title {
  justify-self: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.35rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  min-width: 0;
}
.play-top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.play-icon-btn {
  height: 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.play-icon-btn:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.45);
}
.play-icon-btn.is-active {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.12);
}
.play-icon-btn.exit {
  border-color: rgba(255, 255, 255, 0.22);
}
.play-icon-btn .lbl { display: none; }
@media (min-width: 900px) {
  .play-icon-btn {
    width: auto;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
  }
  .play-icon-btn .lbl { display: inline; }
}

/* Mobile: logo + actions on row 1, title full-width on row 2 */
@media (max-width: 699px) {
  .play-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "title title";
    padding: 0.5rem 0.65rem 0.65rem;
    gap: 0.45rem 0.5rem;
  }
  .play-top-left { grid-area: logo; }
  .play-top-actions { grid-area: actions; }
  .play-top-title {
    grid-area: title;
    justify-self: stretch;
    max-width: none;
    font-size: 0.95rem;
    padding: 0.15rem 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.45rem;
  }
  .play-top-left .logo-img {
    height: 34px;
    max-width: min(46vw, 150px);
  }
}

.play-main {
  width: min(100% - 1.25rem, 1280px);
  margin: 1rem auto 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .play-main {
    grid-template-columns: 72px minmax(0, 1fr) 260px;
    align-items: start;
  }
}

.play-rail {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: sticky;
  top: 0.75rem;
}
@media (min-width: 1000px) {
  .play-rail { display: flex; }
}
/* Mobile / tablet horizontal tabs */
@media (max-width: 999px) {
  .play-rail {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    position: static;
    padding: 0.35rem;
    gap: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .play-rail::-webkit-scrollbar { display: none; }
  .play-rail button {
    flex: 1 0 auto;
    min-width: 4.2rem;
    padding: 0.5rem 0.4rem;
    font-size: 0.58rem;
  }
  .play-rail button svg {
    width: 18px;
    height: 18px;
  }
}
.play-rail button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 12px;
  padding: 0.65rem 0.25rem;
  display: grid;
  gap: 0.25rem;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.play-rail button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.play-rail button svg polygon,
.play-rail button svg [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}
.play-rail button:hover,
.play-rail button.is-active {
  color: #fff;
  background: rgba(124, 58, 237, 0.22);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.25);
}

.play-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.play-viewport {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    linear-gradient(180deg, #12122a 0%, #07070f 100%);
  min-height: min(90vh, 920px);
  height: min(90vh, 920px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.play-viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.play-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}
.play-panel.is-visible { display: block; }
.play-panel h3 {
  color: #fff;
  font-family: var(--display);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.play-panel ul { padding-left: 1.1rem; margin: 0.4rem 0 0; }
.play-panel li { margin-bottom: 0.35rem; }

.play-side {
  display: grid;
  gap: 0.75rem;
}
.play-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}
.play-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
  font-weight: 700;
}
.play-card-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.play-card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.play-score-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.play-score-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
.play-rating {
  margin-top: 0.65rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.play-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}
.play-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.play-controls-row .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  display: grid;
  place-items: center;
  color: var(--primary-2);
  flex-shrink: 0;
  font-size: 1.2rem;
}
.play-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.play-share a,
.play-share button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.play-share a:hover,
.play-share button:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.45);
}

.play-like-section {
  width: min(100% - 1.25rem, 1280px);
  margin: 1.5rem auto 0;
}
.play-like-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.play-like-head h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.play-like-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 180px);
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}
.play-like-track::-webkit-scrollbar { display: none; }
.play-like-track > * { scroll-snap-align: start; }
.play-like-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.play-like-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.4);
}
.play-like-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.play-like-card .meta {
  padding: 0.65rem 0.7rem 0.8rem;
}
.play-like-card h3 {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.play-bottom {
  width: min(100% - 1.25rem, 1280px);
  margin: 1.25rem auto 1.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.play-crumbs {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.play-crumbs a { color: var(--muted); }
.play-crumbs a:hover { color: #fff; }
.play-crumbs .sep { opacity: 0.5; }
.play-engage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.play-engage button {
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.play-engage button:hover {
  border-color: rgba(124, 58, 237, 0.4);
}
.play-engage button.is-on {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.45);
}

@media (max-width: 999px) {
  .play-main {
    width: 100%;
    margin: 0.5rem 0 0;
    padding: 0 0.5rem;
    gap: 0.65rem;
    display: flex;
    flex-direction: column;
  }
  .play-center { order: 1; }
  .play-rail { order: 2; }
  .play-side { order: 3; grid-template-columns: 1fr 1fr; }
  .play-viewport {
    min-height: calc(100dvh - 118px);
    height: calc(100dvh - 118px);
    border-radius: 14px;
  }
}
@media (max-width: 640px) {
  body.play-body {
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .play-top {
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
  }
  .play-main {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
  }
  .play-viewport {
    width: 100%;
    /* Game first — almost full phone height under top bar */
    min-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .play-rail {
    margin: 0.45rem 0.5rem 0;
    border-radius: 12px;
  }
  .play-viewport iframe {
    width: 100%;
    height: 100%;
  }
  .play-side {
    grid-template-columns: 1fr;
    padding: 0 0.65rem;
    gap: 0.55rem;
  }
  .play-like-section,
  .play-bottom {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    border-radius: 0;
  }
  .play-bottom {
    margin-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 12px;
    width: calc(100% - 1.3rem);
    margin-left: 0.65rem;
    margin-right: 0.65rem;
  }
  .play-like-section {
    margin-top: 1rem;
    width: 100%;
  }
  .play-panel {
    margin: 0 0.5rem;
    border-radius: 12px;
  }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
