/* ============================================================
   GamesDaily — Static CSS (converted from TailwindCSS v4 + design tokens)
   ============================================================ */

/* ---------- CSS Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
table { border-collapse: collapse; }

/* ---------- Design Tokens ---------- */
:root {
  --radius: 0.875rem;
  --background: oklch(0.12 0.03 270);
  --foreground: oklch(0.97 0.01 260);
  --card: oklch(0.16 0.035 270);
  --card-foreground: oklch(0.97 0.01 260);
  --popover: oklch(0.14 0.04 270);
  --popover-foreground: oklch(0.97 0.01 260);
  --primary: oklch(0.78 0.18 230);
  --primary-foreground: oklch(0.12 0.03 270);
  --secondary: oklch(0.22 0.05 280);
  --secondary-foreground: oklch(0.97 0.01 260);
  --muted: oklch(0.2 0.04 275);
  --muted-foreground: oklch(0.72 0.03 265);
  --accent: oklch(0.65 0.25 305);
  --accent-foreground: oklch(0.98 0.01 260);
  --destructive: oklch(0.65 0.25 25);
  --destructive-foreground: oklch(0.98 0.01 260);
  --border: oklch(1 0 0 / 8%);
  --input: oklch(1 0 0 / 10%);
  --ring: oklch(0.78 0.18 230);
  --neon: oklch(0.78 0.2 230);
  --violet: oklch(0.6 0.28 300);
  --glass: oklch(1 0 0 / 6%);

  --shadow-glow: 0 0 40px -8px color-mix(in oklab, var(--neon) 60%, transparent);
  --shadow-violet: 0 0 50px -10px color-mix(in oklab, var(--violet) 70%, transparent);

  --gradient-hero:
    radial-gradient(1200px 600px at 20% 10%, color-mix(in oklab, var(--neon) 30%, transparent), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, color-mix(in oklab, var(--violet) 35%, transparent), transparent 60%),
    linear-gradient(180deg, oklch(0.1 0.04 275), oklch(0.12 0.03 270));
  --gradient-primary: linear-gradient(135deg, var(--neon), var(--violet));

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;

  color-scheme: dark;
}

/* ---------- Base ---------- */
html, body, #root { height: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
::selection { background: color-mix(in oklab, var(--neon) 40%, transparent); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(1 0 0 / 10%); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: oklch(1 0 0 / 18%); }

/* ---------- Utility Classes ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Component Classes ---------- */
.glass {
  background: linear-gradient(180deg, oklch(1 0 0 / 6%), oklch(1 0 0 / 2%));
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid oklch(1 0 0 / 10%);
}
.glass-strong {
  background: linear-gradient(180deg, oklch(1 0 0 / 10%), oklch(1 0 0 / 4%));
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid oklch(1 0 0 / 14%);
}
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.neon-ring {
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--neon) 35%, transparent),
    0 10px 40px -10px color-mix(in oklab, var(--neon) 50%, transparent);
}
.grid-bg {
  background-image:
    linear-gradient(oklch(1 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.shadow-glow { box-shadow: var(--shadow-glow); }

/* Card 3D hover */
.card-3d {
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 400ms;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-3d:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-4deg) scale(1.02);
  box-shadow:
    0 30px 60px -20px color-mix(in oklab, var(--violet) 50%, transparent),
    0 0 0 1px color-mix(in oklab, var(--neon) 30%, transparent);
}

/* Shine effect */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, oklch(1 0 0 / 18%) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms ease;
  pointer-events: none;
}
.shine:hover::after { transform: translateX(120%); }

/* Scroll row */
.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 180px);
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}
.scroll-row > * { scroll-snap-align: start; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, oklch(1 0 0 / 4%), oklch(1 0 0 / 10%), oklch(1 0 0 / 4%));
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ---------- Animations ---------- */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes drift { 0% { transform: translate(0,0); } 50% { transform: translate(20px,-30px); } 100% { transform: translate(0,0); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes kenburns { 0% { transform: scale(1.05) translate(0,0); } 100% { transform: scale(1.18) translate(-1.5%,-1.5%); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress { from { width: 0%; } to { width: 100%; } }
@keyframes marquee-rev { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes marquee-fwd { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes hero-progress { from { width: 0%; } to { width: 100%; } }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }

.animate-float { animation: float-y 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-drift { animation: drift 14s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-spin { animation: sk-spin 0.6s linear infinite; }

.anim-marquee-fwd { display: flex; width: max-content; animation: marquee-fwd 25s linear infinite; }
.anim-marquee-rev { display: flex; width: max-content; animation: marquee-rev 25s linear infinite; }
.anim-marquee-fwd:hover, .anim-marquee-rev:hover { animation-play-state: paused; }
.animate-hero-progress { animation: hero-progress 6.5s linear forwards; }

/* ---------- Layout ---------- */
.min-h-screen { min-height: 100vh; }
.page-layout { width: 100%; }
.page-content { min-width: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid oklch(1 0 0 / 5%);
  backdrop-filter: blur(20px);
  background: color-mix(in oklab, var(--background) 85%, transparent);
}
.has-header { padding-top: 64px; }
.header-inner {
  display: flex;
  height: 64px;
  width: 100%;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}
@media (min-width: 768px) { .header-inner { padding: 0 24px; } }
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo-icon {
  position: relative;
  display: grid;
  height: 36px;
  width: 36px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
}
.header-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Nav */
.header-nav {
  margin-left: 16px;
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .header-nav { display: flex; } }
.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 6px 12px;
  transition: background 200ms, color 200ms;
}
.header-nav a:hover { background: oklch(1 0 0 / 5%); color: var(--foreground); }
.header-nav a.active { color: var(--foreground); }

/* Search */
.search-wrap { position: relative; margin-left: auto; width: 100%; max-width: 448px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 8px 16px;
}
.search-bar input {
  width: 100%;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
  border: none;
}
.search-bar input::placeholder { color: var(--muted-foreground); }
.search-bar kbd {
  display: none;
  border-radius: 4px;
  background: oklch(1 0 0 / 10%);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .search-bar kbd { display: inline; } }
.search-results {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  margin-top: 8px;
  max-height: 60vh;
  overflow: auto;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: none;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 8px;
  transition: background 150ms;
}
.search-result-item:hover { background: oklch(1 0 0 / 10%); }
.search-result-item img { height: 40px; width: 40px; border-radius: 8px; object-fit: cover; }
.search-result-item .info { min-width: 0; flex: 1; }
.search-result-item .title { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item .genres { font-size: 0.75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item .play-link { font-size: 0.75rem; color: var(--primary); white-space: nowrap; }

/* Header buttons */
.header-btn-bell {
  display: none;
  height: 36px; width: 36px;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  transition: background 200ms;
}
.header-btn-bell:hover { background: oklch(1 0 0 / 10%); }
@media (min-width: 768px) { .header-btn-bell { display: flex; } }
.header-signin {
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 200ms;
}
.header-signin:hover { background: oklch(1 0 0 / 10%); }
@media (min-width: 768px) { .header-signin { display: flex; } }
.header-signup {
  display: none;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: opacity 200ms;
}
.header-signup:hover { opacity: 0.95; }
@media (min-width: 768px) { .header-signup { display: flex; } }

/* ---------- Mobile Menu Button ---------- */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: background 200ms;
  flex-shrink: 0;
}
.mobile-menu-btn:hover { background: oklch(1 0 0 / 8%); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* ---------- Mobile Navigation Overlay ---------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Mobile Navigation Drawer ---------- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(24px);
  border-right: 1px solid oklch(1 0 0 / 8%);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  transform: translateX(-105%);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
@media (min-width: 768px) { .mobile-nav-drawer, .mobile-nav-overlay { display: none !important; } }

/* Drawer Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid oklch(1 0 0 / 6%);
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.mobile-nav-close:hover {
  background: oklch(1 0 0 / 10%);
  color: var(--foreground);
}

/* Drawer Body */
.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

/* Navigation Links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 200ms, color 200ms;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.mobile-nav-item:hover {
  background: oklch(1 0 0 / 6%);
  color: var(--foreground);
}
.mobile-nav-item.active {
  background: linear-gradient(135deg, oklch(0.65 0.25 264 / 12%), oklch(0.7 0.2 300 / 8%));
  color: var(--foreground);
}
.mobile-nav-item.active svg {
  color: var(--primary);
}

/* Divider */
.mobile-nav-divider {
  height: 1px;
  background: oklch(1 0 0 / 6%);
  margin: 8px 4px;
}

/* Category Toggle */
.mobile-cat-toggle {
  justify-content: flex-start;
  position: relative;
}
.mobile-cat-chevron {
  margin-left: auto;
  transition: transform 300ms ease;
}
.mobile-cat-toggle.open .mobile-cat-chevron {
  transform: rotate(180deg);
}

/* Category List */
.mobile-cat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), padding 300ms ease, opacity 300ms ease;
  opacity: 0;
  padding: 0 4px;
}
.mobile-cat-list.open {
  max-height: 800px;
  opacity: 1;
  padding: 8px 4px;
}
.mobile-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 200ms, color 200ms;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-cat-item:hover {
  background: oklch(1 0 0 / 6%);
  color: var(--foreground);
}
.mobile-cat-item.active {
  background: linear-gradient(135deg, oklch(0.65 0.25 264 / 10%), oklch(0.7 0.2 300 / 6%));
  color: var(--primary);
}

/* Auth Buttons in Mobile Nav */
.mobile-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px 16px;
}
.mobile-nav-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  background: oklch(1 0 0 / 6%);
  border: 1px solid oklch(1 0 0 / 8%);
  transition: background 200ms;
}
.mobile-nav-signin:hover {
  background: oklch(1 0 0 / 10%);
}
.mobile-nav-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-foreground);
  background: linear-gradient(to right, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
  transition: opacity 200ms;
}
.mobile-nav-signup:hover { opacity: 0.92; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  display: none;
  height: calc(100vh - 64px);
  width: 230px;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 40;
  border-right: 1px solid oklch(1 0 0 / 5%);
  background: color-mix(in oklab, var(--background) 40%, transparent);
  backdrop-filter: blur(20px);
}
@media (min-width: 1024px) { .sidebar { display: block; } }
.has-sidebar { padding-left: 230px; }
@media (max-width: 1023px) { .has-sidebar { padding-left: 0; } }
.sidebar nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 200ms, color 200ms;
}
.sidebar-item:hover { background: oklch(1 0 0 / 5%); color: var(--foreground); }
.sidebar-item:hover .sidebar-icon { color: var(--primary); }
.sidebar-item.active {
  background: linear-gradient(to right, color-mix(in oklab, var(--primary) 25%, transparent), color-mix(in oklab, var(--accent) 15%, transparent));
  color: var(--foreground);
  box-shadow: inset 2px 0 0 0 var(--neon);
}
.sidebar-item.active .sidebar-icon { color: var(--primary); }
.sidebar-item.disabled { opacity: 0.5; pointer-events: none; }
.sidebar-icon { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-divider { height: 1px; background: oklch(1 0 0 / 5%); margin: 12px 0; }
.sidebar-label {
  padding: 0 12px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}

/* ---------- Footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid oklch(1 0 0 / 5%); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 16px;
  font-size: 0.875rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(5, 1fr); padding: 48px 32px; } }
.footer-brand { grid-column: span 2; }
.footer-brand-name { font-size: 1.125rem; font-weight: 800; }
.footer-brand p { margin-top: 8px; max-width: 24rem; color: var(--muted-foreground); }
.footer-col-title { margin-bottom: 12px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; color: var(--muted-foreground); }
.footer-col a { transition: color 200ms; }
.footer-col a:hover { color: var(--foreground); }
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 5%);
  padding: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Spotlight ---------- */
.spotlight { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid oklch(1 0 0 / 5%); }
.spotlight-bg {
  position: absolute; inset: 0; z-index: -1;
}
.spotlight-bg img {
  width: 100%; height: 100%;
  transform: scale(1.1);
  object-fit: cover;
  opacity: 0.4;
  filter: blur(16px);
  transition: all 1s;
}
.spotlight-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--background) 60%, transparent), color-mix(in oklab, var(--background) 80%, transparent), var(--background));
}
.spotlight-bg .grid-bg { position: absolute; inset: 0; opacity: 0.4; }
.spotlight-inner { padding: 20px 12px; }
@media (min-width: 768px) { .spotlight-inner { padding: 24px 20px; } }
.spotlight-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }

/* Hero cinema card */
.hero-cinema {
  position: relative;
  display: block;
  width: 100%;
  max-width: 448px;
  height: 252px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  flex-shrink: 0;
}
.hero-cinema img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms;
}
.hero-cinema:hover img { transform: scale(1.05); }
.hero-cinema-overlay {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 64px 20px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, var(--background), color-mix(in oklab, var(--background) 40%, transparent), transparent);
}
.hero-cinema-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 200ms;
}
.hero-cinema:hover .hero-cinema-title { color: var(--primary); }
.hero-cinema-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.btn-play-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: transform 300ms;
  flex-shrink: 0;
}
.hero-cinema:hover .btn-play-small { transform: scale(1.05); }
.hero-progress-bar { flex: 1; display: flex; gap: 4px; max-width: 150px; }
.hero-progress-track { height: 4px; flex: 1; border-radius: 9999px; background: oklch(1 0 0 / 20%); overflow: hidden; }
.hero-progress-fill { height: 100%; background: var(--primary); }
.hero-progress-fill.active { animation: hero-progress 6.5s linear forwards; }
.hero-progress-fill.done { width: 100%; }
.hero-progress-fill.pending { width: 0; }

/* Global Top 5 */
.top5-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 3%);
  padding: 12px;
  backdrop-filter: blur(20px);
  flex: 1;
  min-width: 300px;
  height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.top5-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 10px;
}
.top5-header-left { display: flex; align-items: center; gap: 8px; }
.top5-header-left span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.top5-header-right { font-size: 10px; color: var(--muted-foreground); }
.top5-list { display: flex; flex-direction: column; justify-content: space-between; flex: 1; margin-top: 4px; }
.top5-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 4px;
  transition: background 150ms;
}
.top5-item:hover { background: oklch(1 0 0 / 5%); }
.top5-rank { width: 20px; text-align: center; font-family: var(--font-display); font-size: 0.875rem; font-weight: 900; }
.top5-rank.gold { color: oklch(0.85 0.15 85); }
.top5-rank.silver { color: oklch(0.8 0.02 260); }
.top5-rank.bronze { color: oklch(0.6 0.1 55); }
.top5-rank.other { color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); }
.top5-img { height: 28px; width: 28px; border-radius: 8px; object-fit: cover; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 10%); }
.top5-info { min-width: 0; flex: 1; }
.top5-name { font-size: 0.75rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; transition: color 200ms; }
.top5-item:hover .top5-name { color: var(--primary); }
.top5-stats { font-size: 9px; color: var(--muted-foreground); line-height: 1.2; }

/* Trending marquee panel */
.trending-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 3%);
  padding: 12px;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 448px;
  height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
}
.marquee-row { position: relative; width: 100%; overflow: hidden; border-radius: 12px; }
.marquee-row .marquee-track { display: flex; gap: 8px; width: max-content; }
.marquee-thumb {
  display: block;
  flex-shrink: 0;
  transition: transform 300ms;
}
.marquee-thumb:hover { transform: scale(1.05); }
.marquee-thumb img {
  height: 64px;
  width: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid oklch(1 0 0 / 10%);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
}
.marquee-thumb:hover img { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }

/* ---------- Game Card ---------- */
.game-card { display: block; overflow: hidden; border-radius: 12px; }
.game-card-inner { position: relative; width: 100%; overflow: hidden; }
.game-card-inner.size-sm { height: 128px; }
.game-card-inner.size-md { height: 160px; }
.game-card-inner.size-lg { height: 224px; }
.game-card-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}
.game-card:hover .game-card-inner img { transform: scale(1.05); }
.game-card-rating {
  position: absolute; right: 6px; top: 6px;
  display: flex; align-items: center; gap: 4px;
  border-radius: 6px;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.game-card-rating svg { width: 10px; height: 10px; fill: var(--primary); color: var(--primary); }
.game-card-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  opacity: 0;
  transition: all 300ms;
}
.game-card:hover .game-card-play-overlay { background: rgba(0,0,0,0.3); opacity: 1; }
.game-card-play-btn {
  display: flex; height: 48px; width: 48px;
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.game-card-play-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Game Row ---------- */
.game-row { display: flex; flex-direction: column; gap: 8px; }
.game-row-header { display: flex; align-items: flex-end; justify-content: space-between; }
.game-row-title { font-size: 1.125rem; font-weight: 700; }
@media (min-width: 768px) { .game-row-title { font-size: 1.25rem; } }
.game-row-controls { display: flex; align-items: center; gap: 8px; }
.game-row-viewall { font-size: 0.75rem; color: var(--muted-foreground); transition: color 200ms; }
.game-row-viewall:hover { color: var(--foreground); }
.scroll-btn {
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  padding: 6px;
  transition: background 200ms;
}
.scroll-btn:hover { background: oklch(1 0 0 / 10%); }
.scroll-btn svg { width: 16px; height: 16px; }

/* ---------- Page Section Spacing ---------- */
.page-main { padding: 24px 12px 48px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .page-main { padding: 24px 20px 48px; } }

/* ---------- Discover Grid ---------- */
.discover-header { display: flex; align-items: flex-end; justify-content: space-between; }
.discover-title { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 700; }
.discover-count { font-size: 0.75rem; color: var(--muted-foreground); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Browse Page ---------- */
.browse-header { margin-bottom: 20px; }
.browse-title { font-size: 1.875rem; font-weight: 900; }
@media (min-width: 768px) { .browse-title { font-size: 2.25rem; } }
.browse-subtitle { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }
.browse-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.filter-btn {
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 200ms;
}
.filter-btn.active {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.filter-btn:not(.active):hover { background: oklch(1 0 0 / 10%); }
.sort-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.sort-label { color: var(--muted-foreground); }
.sort-btn {
  border-radius: 9999px;
  padding: 6px 12px;
  transition: background 200ms;
}
.sort-btn.active { background: oklch(1 0 0 / 15%); }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .browse-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .browse-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .browse-grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 1280px) { .browse-grid { grid-template-columns: repeat(8, 1fr); } }
.load-more-wrap { margin-top: 40px; display: flex; justify-content: center; }
.btn-load-more {
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 600;
  transition: background 200ms;
}
.btn-load-more:hover { background: oklch(1 0 0 / 10%); }

/* ---------- Game Page ---------- */
.game-back { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; color: var(--muted-foreground); transition: color 200ms; }
.game-back:hover { color: var(--foreground); }
.game-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) { .game-layout { grid-template-columns: 1fr 340px; } }
.game-frame-wrap {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
}
.game-frame-wrap iframe { width: 100%; height: 100%; border: 0; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.btn-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 200ms;
}
.btn-action:hover { background: oklch(1 0 0 / 10%); }
.btn-action.favorited { background: oklch(0.6 0.2 15 / 90%); color: white; }
.game-stats { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 0.75rem; color: var(--muted-foreground); }
.game-stats span { display: inline-flex; align-items: center; gap: 4px; }
.game-info-panel { margin-top: 24px; border-radius: 24px; padding: 24px; }
.game-title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.game-page-title { font-size: 1.875rem; font-weight: 900; }
@media (min-width: 768px) { .game-page-title { font-size: 2.25rem; } }
.game-genres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.genre-tag {
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 200ms;
}
.genre-tag:hover { background: oklch(1 0 0 / 10%); }
.game-rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  padding: 8px 16px;
}
.game-rating-badge .rating-value { font-size: 1.5rem; font-weight: 700; }
.game-rating-badge .rating-max { font-size: 0.75rem; color: var(--muted-foreground); }
.game-description { margin-top: 16px; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
@media (min-width: 768px) { .game-description { font-size: 1rem; } }
.how-to-play {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 3%);
  padding: 16px;
}
.how-to-play-title { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.how-to-play-text { font-size: 0.875rem; color: var(--muted-foreground); }
.game-sidebar { display: flex; flex-direction: column; gap: 16px; }
.achievement-card, .top-players-card { border-radius: 24px; padding: 20px; }
.achievement-item {
  display: flex; align-items: center; gap: 12px;
  border-radius: 12px;
  background: oklch(1 0 0 / 3%);
  padding: 12px;
}
.achievement-icon {
  display: grid; height: 36px; width: 36px;
  place-items: center;
  border-radius: 8px;
}
.achievement-icon.primary { background: linear-gradient(to bottom right, var(--primary), var(--accent)); }
.achievement-icon.muted { background: oklch(1 0 0 / 10%); }
.achievement-name { font-size: 0.875rem; font-weight: 500; }
.achievement-xp { font-size: 11px; color: var(--muted-foreground); }
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid oklch(1 0 0 / 5%);
  padding: 8px 0;
  font-size: 0.875rem;
}
.player-row:last-child { border-bottom: none; }
.player-rank { width: 20px; text-align: center; font-weight: 700; }
.player-rank.first { color: var(--primary); }
.player-rank.other { color: var(--muted-foreground); }
.player-score { font-family: monospace; color: var(--muted-foreground); }
.vip-promo {
  border-radius: 24px;
  background: linear-gradient(to bottom right, color-mix(in oklab, var(--primary) 20%, transparent), color-mix(in oklab, var(--accent) 20%, transparent));
  padding: 20px;
}
.vip-promo-title { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 700; }
.vip-promo p { margin-top: 4px; font-size: 0.75rem; color: var(--muted-foreground); }
.btn-vip {
  margin-top: 12px;
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.similar-section { margin-top: 48px; }
.similar-title { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
@media (min-width: 768px) { .similar-title { font-size: 1.5rem; } }
.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .similar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .similar-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .similar-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Leaderboard Page ---------- */
.hero-section { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-content { padding: 48px 24px 32px; }
@media (min-width: 768px) { .hero-content { padding: 48px 40px 32px; } }
.hero-label { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.hero-title { margin-top: 12px; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
.hero-subtitle { margin-top: 8px; color: var(--muted-foreground); max-width: 36rem; }
.tab-group {
  margin-top: 24px;
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: rgba(0,0,0,0.3);
  padding: 4px;
}
.tab-btn {
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 200ms;
  color: var(--muted-foreground);
}
.tab-btn:hover { color: var(--foreground); }
.tab-btn.active {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

/* Podium */
.podium-grid { display: grid; gap: 16px; padding: 0 24px 32px; }
@media (min-width: 768px) { .podium-grid { grid-template-columns: repeat(3, 1fr); padding: 0 40px 32px; } }
.podium-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  padding: 24px;
  text-align: center;
}
.podium-card.first {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--primary) 20%, transparent), var(--background));
  box-shadow: var(--shadow-glow);
}
@media (min-width: 768px) { .podium-card.first { padding: 40px 24px; } }
.podium-avatar {
  margin: 0 auto;
  display: grid;
  height: 64px; width: 64px;
  place-items: center;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-foreground);
}
.podium-rank { margin-top: 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.podium-name { margin-top: 4px; font-size: 1.125rem; font-weight: 700; }
.podium-xp { margin-top: 8px; font-size: 1.5rem; font-weight: 800; }
.podium-stats { margin-top: 4px; font-size: 0.75rem; color: var(--muted-foreground); }

/* Leaderboard table */
.lb-table-wrap { padding: 0 24px 80px; }
@media (min-width: 768px) { .lb-table-wrap { padding: 0 40px 80px; } }
.lb-table-container { overflow: hidden; border-radius: 16px; border: 1px solid oklch(1 0 0 / 10%); }
.lb-table { width: 100%; font-size: 0.875rem; }
.lb-table thead { background: oklch(1 0 0 / 5%); }
.lb-table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); font-weight: 500; }
.lb-table th.right { text-align: right; }
.lb-table td { padding: 12px 16px; }
.lb-table td.right { text-align: right; }
.lb-table tbody tr { border-top: 1px solid oklch(1 0 0 / 5%); transition: background 200ms; }
.lb-table tbody tr:hover { background: oklch(1 0 0 / 5%); }
.lb-table .rank { font-weight: 700; color: var(--muted-foreground); }
.lb-table .player-cell { display: flex; align-items: center; gap: 8px; }
.lb-table .player-avatar {
  display: grid; height: 28px; width: 28px;
  place-items: center;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, color-mix(in oklab, var(--primary) 40%, transparent), color-mix(in oklab, var(--accent) 40%, transparent));
  font-size: 10px;
  font-weight: 700;
}
.lb-table .xp { text-align: right; font-family: monospace; font-weight: 600; color: var(--primary); }
.lb-table .streak { color: oklch(0.7 0.15 55); display: inline-flex; align-items: center; gap: 4px; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: table-cell; } }

/* ---------- News Page ---------- */
.news-hero-grid {
  display: grid;
  gap: 24px;
  padding: 0 24px 32px;
}
@media (min-width: 768px) { .news-hero-grid { grid-template-columns: 1.6fr 1fr; padding: 0 40px 32px; } }
.news-featured { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid oklch(1 0 0 / 10%); }
.news-featured img { width: 100%; height: 420px; object-fit: cover; transition: transform 700ms; }
.news-featured:hover img { transform: scale(1.05); }
.news-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--background), color-mix(in oklab, var(--background) 40%, transparent), transparent);
}
.news-featured-content { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; }
.news-category-tag {
  display: inline-block;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  backdrop-filter: blur(4px);
}
.news-featured-title { margin-top: 12px; font-size: 1.5rem; font-weight: 800; max-width: 42rem; }
@media (min-width: 768px) { .news-featured-title { font-size: 1.875rem; } }
.news-meta { margin-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--muted-foreground); }
.news-meta span { display: inline-flex; align-items: center; gap: 4px; }
.news-sidebar { display: flex; flex-direction: column; gap: 12px; }
.news-sidebar-item {
  display: flex;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 10%);
  padding: 12px;
  transition: border-color 300ms, box-shadow 300ms;
}
.news-sidebar-item:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: var(--shadow-glow); }
.news-sidebar-item img { height: 80px; width: 96px; flex-shrink: 0; border-radius: 12px; object-fit: cover; }
.news-sidebar-item .info { min-width: 0; }
.news-sidebar-item .cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.news-sidebar-item .title { font-size: 0.875rem; font-weight: 600; transition: color 200ms; }
.news-sidebar-item:hover .title { color: var(--primary); }
.news-sidebar-item .time { margin-top: 4px; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted-foreground); }

/* News card grid */
.news-grid { display: grid; gap: 16px; padding: 0 24px 80px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); padding: 0 40px 80px; } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 10%);
  transition: transform 300ms, border-color 300ms, box-shadow 300ms;
}
.news-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: var(--shadow-glow); }
.news-card-image { position: relative; height: 160px; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms; }
.news-card:hover img { transform: scale(1.1); }
.news-card-image .category-badge {
  position: absolute; left: 12px; top: 12px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  backdrop-filter: blur(4px);
}
.news-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.news-card-body h3 { font-size: 0.875rem; font-weight: 700; transition: color 200ms; }
.news-card:hover h3 { color: var(--primary); }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted-foreground); }
.news-card-read { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity 200ms; }
.news-card:hover .news-card-read { opacity: 1; }

/* ---------- Tournaments Page ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border-radius: 16px; border: 1px solid oklch(1 0 0 / 10%); padding: 16px; }
.stat-value { margin-top: 8px; font-size: 1.5rem; font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); }
.tournaments-grid { display: grid; gap: 16px; padding: 0 24px 64px; }
@media (min-width: 768px) { .tournaments-grid { grid-template-columns: repeat(2, 1fr); padding: 0 40px 64px; } }
@media (min-width: 1280px) { .tournaments-grid { grid-template-columns: repeat(3, 1fr); } }
.tournament-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  transition: border-color 300ms, box-shadow 300ms;
}
.tournament-card:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: var(--shadow-glow); }
.tournament-card-image { position: relative; height: 176px; overflow: hidden; }
.tournament-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms; }
.tournament-card:hover img { transform: scale(1.1); }
.tournament-card-image .gradient-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--background), color-mix(in oklab, var(--background) 30%, transparent), transparent); }
.status-badge {
  position: absolute; left: 12px; top: 12px;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
}
.status-badge.live { background: color-mix(in oklab, var(--destructive) 80%, transparent); color: var(--destructive-foreground); animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.status-badge.default { background: oklch(1 0 0 / 15%); color: var(--foreground); }
.format-badge {
  position: absolute; right: 12px; top: 12px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.5);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.tournament-card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tournament-card-body .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.tournament-card-body h3 { font-size: 1.125rem; font-weight: 700; }
.tournament-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 0.75rem; }
.tournament-stat { border-radius: 8px; background: rgba(0,0,0,0.3); padding: 8px; }
.tournament-stat .value { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.tournament-stat .value.white { color: var(--foreground); }
.tournament-stat .label { color: var(--muted-foreground); }
.btn-join {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: opacity 200ms;
}
.btn-join:hover { opacity: 0.95; }

/* ---------- VIP Page ---------- */
.vip-hero { padding: 64px 24px 48px; text-align: center; }
@media (min-width: 768px) { .vip-hero { padding: 96px 24px 48px; } }
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}
.vip-title { margin: 20px auto 0; max-width: 48rem; font-size: 3rem; font-weight: 800; letter-spacing: -0.025em; }
@media (min-width: 768px) { .vip-title { font-size: 3.75rem; } }
.vip-subtitle { margin: 16px auto 0; max-width: 36rem; color: var(--muted-foreground); }
.pricing-grid { display: grid; gap: 24px; padding: 0 24px 64px; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); padding: 0 40px 64px; } }
.pricing-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  padding: 28px;
}
.pricing-card.featured {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--primary) 15%, transparent), color-mix(in oklab, var(--background) 60%, transparent), var(--background));
  box-shadow: var(--shadow-glow);
}
.pricing-popular {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-foreground);
  white-space: nowrap;
}
.pricing-tier { font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); }
.pricing-price { margin-top: 8px; display: flex; align-items: flex-end; gap: 4px; }
.pricing-amount { font-size: 2.25rem; font-weight: 800; }
.pricing-period { padding-bottom: 4px; font-size: 0.75rem; color: var(--muted-foreground); }
.btn-pricing {
  margin-top: 20px;
  width: 100%;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 200ms;
}
.btn-pricing.primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-pricing.primary:hover { opacity: 0.95; }
.btn-pricing.secondary:hover { background: oklch(1 0 0 / 10%); }
.pricing-perks { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; }
.pricing-perks li { display: flex; align-items: flex-start; gap: 8px; }
.pricing-perks li svg { margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.perks-grid { display: grid; gap: 16px; padding: 0 24px 80px; }
@media (min-width: 640px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .perks-grid { grid-template-columns: repeat(3, 1fr); padding: 0 40px 80px; } }
.perk-card {
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 10%);
  padding: 20px;
  transition: border-color 300ms, box-shadow 300ms;
}
.perk-card:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: var(--shadow-glow); }
.perk-icon {
  display: grid; height: 40px; width: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(to bottom right, color-mix(in oklab, var(--primary) 30%, transparent), color-mix(in oklab, var(--accent) 30%, transparent));
  color: var(--primary);
}
.perk-title { margin-top: 12px; font-size: 1rem; font-weight: 600; }
.perk-desc { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Auth Pages ---------- */
.auth-page { position: relative; min-height: calc(100vh - 4rem); overflow: hidden; }
.auth-bg { position: absolute; inset: 0; z-index: -1; }
.auth-dots {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 32px 32px;
}
.auth-grid {
  max-width: 72rem; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 24px;
}
@media (min-width: 1024px) {
  .auth-grid { grid-template-columns: 1fr 1fr; padding: 96px 24px; }
  .auth-grid.signup-grid { grid-template-columns: 1.1fr 1fr; }
}
.auth-left { display: none; flex-direction: column; justify-content: space-between; }
@media (min-width: 1024px) { .auth-left { display: flex; } }
.auth-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 5%);
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  backdrop-filter: blur(4px);
}
.auth-online-dot { height: 6px; width: 6px; border-radius: 9999px; background: var(--primary); animation: pulse 2s ease-in-out infinite; }
.auth-title { margin-top: 24px; font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.auth-subtitle { margin-top: 16px; max-width: 28rem; color: var(--muted-foreground); }
.auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-stat { border-radius: 16px; padding: 16px; }
.auth-stat .value { font-size: 1.5rem; font-weight: 700; }
.auth-stat .label { font-size: 0.75rem; color: var(--muted-foreground); }
.auth-form-card {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  border-radius: 24px;
  border: 1px solid oklch(1 0 0 / 10%);
  padding: 32px;
  box-shadow: var(--shadow-glow);
}
.auth-form-header { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.auth-form-icon {
  display: grid; height: 40px; width: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
}
.auth-form-title { font-size: 1.125rem; font-weight: 700; }
.auth-form-sub { font-size: 0.75rem; color: var(--muted-foreground); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-label { display: block; }
.form-label .label-text { display: block; font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 4px; }
.form-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: rgba(0,0,0,0.3);
  padding: 10px 12px;
  transition: border-color 200ms;
}
.form-input-wrap:focus-within { border-color: color-mix(in oklab, var(--primary) 60%, transparent); }
.form-input-wrap svg { width: 16px; height: 16px; color: var(--muted-foreground); flex-shrink: 0; }
.form-input-wrap input { width: 100%; background: transparent; font-size: 0.875rem; outline: none; border: none; }
.form-input-wrap input::placeholder { color: var(--muted-foreground); }
.form-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.form-check { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); }
.form-check input { accent-color: var(--primary); }
.form-link { color: var(--primary); }
.form-link:hover { text-decoration: underline; }
.btn-submit {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
  transition: opacity 200ms;
}
.btn-submit:hover { opacity: 0.95; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.auth-divider div { height: 1px; flex: 1; background: oklch(1 0 0 / 10%); }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 200ms;
}
.btn-social:hover { background: oklch(1 0 0 / 10%); }
.auth-footer { margin-top: 24px; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }
.auth-footer a { color: var(--primary); }
.auth-footer a:hover { text-decoration: underline; }

/* Signup perks */
.signup-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.signup-perk { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; }
.signup-perk-icon {
  display: grid; height: 24px; width: 24px;
  place-items: center;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- 404 Page ---------- */
.not-found-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 16px;
}
.not-found-content { max-width: 28rem; text-align: center; }
.not-found-code { font-size: 4.5rem; font-weight: 900; }
.not-found-title { margin-top: 16px; font-size: 1.25rem; font-weight: 600; }
.not-found-text { margin-top: 8px; font-size: 0.875rem; color: var(--muted-foreground); }
.not-found-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

/* ---------- SEO Content ---------- */
.seo-section { margin-top: 64px; border-top: 1px solid oklch(1 0 0 / 5%); padding-top: 48px; padding-left: 12px; padding-right: 12px; }
@media (min-width: 768px) { .seo-section { padding-left: 20px; padding-right: 20px; } }
.seo-inner { max-width: 1200px; margin: 0 auto; }
.seo-title { font-size: 1.5rem; font-weight: 900; }
@media (min-width: 768px) { .seo-title { font-size: 1.875rem; } }
.seo-intro { margin-top: 12px; max-width: 48rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
@media (min-width: 768px) { .seo-intro { font-size: 1rem; } }
.seo-intro a { color: var(--primary); }
.seo-intro a:hover { text-decoration: underline; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 5%);
  background: oklch(1 0 0 / 2%);
  padding: 20px;
}
.feature-icon {
  display: inline-flex; height: 40px; width: 40px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(to bottom right, color-mix(in oklab, var(--primary) 20%, transparent), color-mix(in oklab, var(--accent) 20%, transparent));
  margin-bottom: 12px;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--primary); }
.feature-card h3 { font-size: 0.875rem; font-weight: 700; }
.feature-card p { margin-top: 4px; font-size: 0.75rem; line-height: 1.5; color: var(--muted-foreground); }
.seo-categories { margin-top: 40px; }
.seo-categories h3 { font-size: 1.125rem; font-weight: 700; }
.seo-categories p { margin-top: 4px; font-size: 0.875rem; color: var(--muted-foreground); }
.category-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-tag {
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 200ms;
}
.category-tag:hover { background: oklch(1 0 0 / 10%); }
.seo-faq { margin-top: 40px; }
.seo-faq h3 { font-size: 1.125rem; font-weight: 700; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.faq-item {
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 5%);
  background: oklch(1 0 0 / 2%);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .answer { padding: 0 20px 16px; font-size: 0.75rem; line-height: 1.5; color: var(--muted-foreground); }
.seo-bottom {
  margin-top: 40px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 5%);
  background: oklch(1 0 0 / 2%);
  padding: 24px;
}
.seo-bottom h3 { font-size: 0.875rem; font-weight: 700; }
.seo-bottom p { margin-top: 8px; font-size: 0.75rem; line-height: 1.5; color: var(--muted-foreground); }
.seo-bottom a { color: var(--primary); }
.seo-bottom a:hover { text-decoration: underline; }

/* ---------- Category Page Banner ---------- */
.category-banner {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: linear-gradient(to right, color-mix(in oklab, var(--primary) 15%, transparent), var(--background), color-mix(in oklab, var(--accent) 10%, transparent));
  padding: 20px;
}
.category-banner-left { display: flex; align-items: center; gap: 12px; }
.category-icon-wrap {
  display: grid; height: 48px; width: 48px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  box-shadow: var(--shadow-glow);
}
.category-icon-wrap svg { width: 24px; height: 24px; color: var(--primary-foreground); }
.category-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.category-title { font-size: 1.875rem; font-weight: 900; }
@media (min-width: 768px) { .category-title { font-size: 2.25rem; } }
.category-stats { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Icon Sizing ---------- */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 16px; height: 16px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }
.icon-2xl { width: 28px; height: 28px; }
svg { flex-shrink: 0; }
