/* ============================================================================
 * FATALSTROKE — Stylesheet
 * ----------------------------------------------------------------------------
 * Tüm tema değişkenleri :root altındaki custom property'lerde. Sitenin
 * renklerini değiştirmek için yalnızca :root bloğunu düzenle.
 * ========================================================================= */


/* ----------------------------------------------------------------------------
 * 0. TEMA DEĞİŞKENLERİ
 * ------------------------------------------------------------------------- */
:root {
  /* Yüzeyler — koyu arka plan tonları */
  --bg-deep:    #07070d;
  --bg-elev-1:  #0f0f1c;
  --bg-elev-2:  #161628;
  --bg-elev-3:  #1d1d33;
  --border:     rgba(255, 255, 255, 0.08);
  --border-2:   rgba(255, 255, 255, 0.14);

  /* Tipografi */
  --text:        #e8e8f5;
  --text-soft:   #b6b6cf;
  --text-muted:  #8a8ab0;
  --text-dim:    #5a5a78;

  /* Neon vurgu renkleri (2 ana renk) */
  --accent:        #b537f2;   /* mor */
  --accent-2:      #22d3ee;   /* cyan */
  --accent-soft:   rgba(181, 55, 242, 0.18);
  --accent-2-soft: rgba(34, 211, 238, 0.18);

  /* Glow / ışıma */
  --glow-purple: 0 0 24px rgba(181, 55, 242, 0.35),
                 0 0 60px rgba(181, 55, 242, 0.15);
  --glow-cyan:   0 0 24px rgba(34, 211, 238, 0.30),
                 0 0 60px rgba(34, 211, 238, 0.12);

  /* Tipografi aileleri */
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap:        1200px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  /* Easing */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------------------
 * Tema varyantları — [data-theme] ile değiştirilir, app.js localStorage'da tutar.
 * Yeni tema eklemek için: yeni bir [data-theme="..."] bloğu + theme-menu'ya swatch.
 * ------------------------------------------------------------------------- */
:root[data-theme="ember"] {
  --accent:        #ff7a2b;
  --accent-2:      #f5c542;
  --accent-soft:   rgba(255, 122, 43, 0.18);
  --accent-2-soft: rgba(245, 197, 66, 0.18);
  --glow-purple:   0 0 24px rgba(255, 122, 43, 0.35), 0 0 60px rgba(255, 122, 43, 0.15);
  --glow-cyan:     0 0 24px rgba(245, 197, 66, 0.30), 0 0 60px rgba(245, 197, 66, 0.12);
}
:root[data-theme="forest"] {
  --accent:        #5aff9c;
  --accent-2:      #a8ff36;
  --accent-soft:   rgba(90, 255, 156, 0.18);
  --accent-2-soft: rgba(168, 255, 54, 0.18);
  --glow-purple:   0 0 24px rgba(90, 255, 156, 0.35), 0 0 60px rgba(90, 255, 156, 0.15);
  --glow-cyan:     0 0 24px rgba(168, 255, 54, 0.30), 0 0 60px rgba(168, 255, 54, 0.12);
}
:root[data-theme="ice"] {
  --accent:        #5a8cff;
  --accent-2:      #22d3ee;
  --accent-soft:   rgba(90, 140, 255, 0.18);
  --accent-2-soft: rgba(34, 211, 238, 0.18);
  --glow-purple:   0 0 24px rgba(90, 140, 255, 0.35), 0 0 60px rgba(90, 140, 255, 0.15);
  --glow-cyan:     0 0 24px rgba(34, 211, 238, 0.30), 0 0 60px rgba(34, 211, 238, 0.12);
}
:root[data-theme="rose"] {
  --accent:        #ff3e8a;
  --accent-2:      #ff9ec4;
  --accent-soft:   rgba(255, 62, 138, 0.18);
  --accent-2-soft: rgba(255, 158, 196, 0.18);
  --glow-purple:   0 0 24px rgba(255, 62, 138, 0.35), 0 0 60px rgba(255, 62, 138, 0.15);
  --glow-cyan:     0 0 24px rgba(255, 158, 196, 0.30), 0 0 60px rgba(255, 158, 196, 0.12);
}
:root[data-theme="toxic"] {
  --accent:        #c8ff00;
  --accent-2:      #00ffd5;
  --accent-soft:   rgba(200, 255, 0, 0.18);
  --accent-2-soft: rgba(0, 255, 213, 0.18);
  --glow-purple:   0 0 24px rgba(200, 255, 0, 0.35), 0 0 60px rgba(200, 255, 0, 0.15);
  --glow-cyan:     0 0 24px rgba(0, 255, 213, 0.30), 0 0 60px rgba(0, 255, 213, 0.12);
}

/* ----------------------------------------------------------------------------
 * DAILY CHALLENGE — günün görevi
 * ------------------------------------------------------------------------- */
.section--daily { padding: 4rem 0 1rem; }

.daily-card {
  background: linear-gradient(135deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px -16px var(--accent-2);
}
.daily-card.complete {
  border-color: var(--win);
  box-shadow: 0 8px 32px -8px var(--win);
}
.daily-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(15deg);
}
.daily-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.daily-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent-2);
  text-transform: uppercase;
}
.daily-date {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
}
.daily-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.daily-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.daily-progress {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px;
}
.daily-progress-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}
.daily-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 8px var(--accent-2);
}
.daily-card.complete .daily-progress-fill {
  background: linear-gradient(90deg, var(--win), var(--gold));
  box-shadow: 0 0 8px var(--win);
}
.daily-progress-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.daily-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.daily-status {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--win);
  text-shadow: 0 0 12px var(--win);
}


/* ----------------------------------------------------------------------------
 * STATS HUB — Ana sayfada her oyundan kişisel rekorlar
 * ------------------------------------------------------------------------- */
.section--stats { padding: 4rem 0 2rem; }

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .stats-grid { grid-template-columns: 1fr 1fr 1fr; } }

.stat-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, var(--card-glow, var(--accent)) 0%, transparent 65%);
  opacity: 0.08;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-glow, var(--accent-2));
  box-shadow: 0 12px 32px -12px var(--card-glow, var(--accent-2));
}
.stat-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.stat-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card-glow, var(--text));
}
.stat-card-genre {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.stat-rows {
  display: flex; flex-direction: column; gap: 6px;
}
.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.stat-row-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stat-row-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-row-value--soft { font-size: 14px; color: var(--text-soft); }
.stat-row-empty {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}
.stat-card-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.stat-card-cta:hover {
  border-color: var(--card-glow, var(--accent-2));
  color: var(--card-glow, var(--accent-2));
  background: rgba(255,255,255,0.04);
}


/* ----------------------------------------------------------------------------
 * ACHIEVEMENTS — cross-game madalyalar
 * ------------------------------------------------------------------------- */
.section--achievements { padding: 4rem 0 2rem; }

.ach-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 32px;
}

.ach-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  opacity: 0.55;
}
.ach-card.unlocked {
  border-color: var(--ach-color, var(--gold));
  opacity: 1;
  box-shadow: 0 4px 16px -8px var(--ach-color, var(--gold));
}
.ach-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ach-card.unlocked .ach-icon {
  background: var(--ach-color, var(--gold));
  color: #0a0a14;
  border-color: var(--ach-color, var(--gold));
  box-shadow: 0 0 14px var(--ach-color, var(--gold));
}
.ach-info { min-width: 0; flex: 1; }
.ach-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}
.ach-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}


/* ----------------------------------------------------------------------------
 * SETTINGS MODAL — global tercihler
 * ------------------------------------------------------------------------- */
.modal-panel--narrow { max-width: 480px !important; }
.settings-body { padding: 32px 28px; gap: 14px; display: flex; flex-direction: column; }
.settings-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-of-type { border-bottom: 0; }
.settings-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
}
.settings-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.45;
}
.settings-row > div:first-child { flex: 1; min-width: 0; }
.settings-actions {
  margin-top: 8px;
  display: flex; justify-content: flex-end;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px; height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.switch-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.switch input:checked + .switch-track {
  background: rgba(34, 211, 238, 0.25);
  border-color: var(--accent-2);
}
.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.settings-toggle { margin-left: 0; }

/* Nav sağ aksiyon grubu — ayar + tema yan yana, kompakt */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-actions .theme-switch { margin-left: 0; }

/* Reduce-motion (kullanıcı ayarladığında veya OS tercihi) */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}


/* Theme switcher UI (nav içinde) */
.theme-switch {
  position: relative;
  margin-left: 12px;
}
.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(15, 15, 28, 0.6);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 18px; height: 18px; }

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex; gap: 8px;
  padding: 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: fade-in-pop 0.18s var(--ease);
}
.theme-menu[hidden] { display: none; }

@keyframes fade-in-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.theme-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.theme-swatch:hover, .theme-swatch:focus-visible {
  transform: scale(1.15);
  box-shadow: 0 0 14px var(--swatch-a);
}
.theme-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg-elev-1), 0 0 0 3px var(--text);
}


/* ----------------------------------------------------------------------------
 * 1. RESET + TEMEL
 * ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent-2); }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

input, button, textarea, select { font: inherit; }

ul, ol { list-style: none; padding: 0; }

/* Görsel olarak gizli ama erişilebilir */
.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;
}

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 100; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Tüm interaktif öğeler için tutarlı, görünür odak çerçevesi */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hareketten rahatsız olan kullanıcılar */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}


/* ----------------------------------------------------------------------------
 * 2. ARKA PLAN DEKORLARI
 * ------------------------------------------------------------------------- */

/* İnce grid çizgileri — sabit, GPU dostu */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Yumuşak neon "orb" ışımaları — yavaş hareket */
.bg-orb {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.bg-orb--purple {
  top: -200px; left: -150px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  animation: orb-drift-a 24s ease-in-out infinite alternate;
}
.bg-orb--cyan {
  bottom: -250px; right: -200px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
  animation: orb-drift-b 30s ease-in-out infinite alternate;
}
@keyframes orb-drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(80px, 60px); }
}
@keyframes orb-drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-100px, -40px); }
}

/* Hafif film grain (SVG noise data-uri ile, ek istek yok) */
.bg-noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Tüm içerik dekorların üstünde */
.site-nav, main, .site-footer, .modal { position: relative; z-index: 2; }


/* ----------------------------------------------------------------------------
 * 3. NAV
 * ------------------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 13, 0.65);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.brand:hover { color: var(--text); }
.brand:hover .brand-mark { color: var(--accent-2); filter: drop-shadow(0 0 8px var(--accent-2)); }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-links a {
  color: var(--text-soft);
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--text);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 540px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .brand-text { display: none; }
}


/* ----------------------------------------------------------------------------
 * 4. BUTONLAR
 * ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease),
              box-shadow 0.25s var(--ease),
              background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease);
  position: relative;
  isolation: isolate;
  user-select: none;
  white-space: nowrap;
}
.btn-icon { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7d1fb8 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(181, 55, 242, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 55, 242, 0.55),
              0 0 0 1px rgba(181, 55, 242, 0.6);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-2);
  color: var(--text-soft);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--accent-2-soft);
  box-shadow: var(--glow-cyan);
}

.btn-block { width: 100%; }


/* ----------------------------------------------------------------------------
 * 5. SECTION TEMEL
 * ------------------------------------------------------------------------- */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-eyebrow--cyan { color: var(--accent-2); }
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 640px;
}


/* ----------------------------------------------------------------------------
 * 6. HERO
 * ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 24px 0 28px;
}
.hero-title-line { display: block; }
.hero-title-line--accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  /* Hafif data-text glitch dublajı — yalnızca süslü, üstte yumuşak ışıma */
  filter: drop-shadow(0 0 24px rgba(181, 55, 242, 0.25));
}

.hero-lede {
  font-size: clamp(1rem, 1.6vw, 1.175rem);
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 440px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-stats dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text);
}

/* Asimetrik dekoratif sağ panel */
.hero-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.hero-panel-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(181,55,242,0.08), transparent 50%),
    linear-gradient(315deg, rgba(34,211,238,0.08), transparent 50%),
    rgba(15, 15, 28, 0.6);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 30px 80px -20px rgba(0,0,0,0.6);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}
.hero-panel:hover .hero-panel-frame { transform: rotate(0deg) scale(1.02); }
.hero-panel-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 40%, transparent 80%);
          mask-image: radial-gradient(circle at 60% 40%, #000 40%, transparent 80%);
}
.hero-panel-glyph {
  position: absolute; inset: 10%;
  display: grid; place-items: center;
  animation: float 8s ease-in-out infinite;
}
.hero-panel-glyph svg { width: 100%; height: 100%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-panel-tag {
  position: absolute;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  padding: 6px 10px;
  background: rgba(7, 7, 13, 0.7);
  border: 1px solid var(--border-2);
  border-radius: 4px;
}
.hero-panel-tag--tl { top: 16px; left: 16px; color: var(--accent-2); }
.hero-panel-tag--br { bottom: 16px; right: 16px; color: var(--accent); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
}

/* Hero altı kayan başlık şeridi */
.hero-marquee {
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.marquee-track {
  display: inline-flex; gap: 40px;
  white-space: nowrap;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track span:not([class]) { padding: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ----------------------------------------------------------------------------
 * 7. SCROLL FADE-IN (.reveal)
 * ------------------------------------------------------------------------- */
/* JS yüklenmese bile içerik görünür kalsın diye default'ta opacity:1.
   Fade-in animasyonu artık page-load CSS keyframe ile yapılıyor. */
.reveal {
  opacity: 1;
  animation: reveal-fade-in 0.6s var(--ease-out) backwards;
}
@keyframes reveal-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* is-visible class hala destekli (JS varsa ekleyebilir, görsel olarak no-op) */
.reveal.is-visible { opacity: 1; transform: none; }


/* ----------------------------------------------------------------------------
 * 8. GAMES GRID — Asimetrik mozaik
 * ----------------------------------------------------------------------------
 * 12 kolonluk grid. 5 oyun için yerleşim:
 *
 *   ┌───────────────┬─────────┐
 *   │   FEATURED    │  WIDE   │   (1. oyun büyük; 2. oyun yan sütun)
 *   │   (cols 1-7,  ├─────────┤
 *   │    rows 1-2)  │  WIDE   │   (3. oyun yan sütun)
 *   ├───────┬───────┴─────────┤
 *   │ HALF  │     HALF        │   (4. ve 5. oyun yarımşar genişlikte)
 *   └───────┴─────────────────┘
 *
 * Mobilde tek sütuna düşer.
 * Düzeni *:nth-child* ile kuruyoruz, JS dinamik class atamıyor.
 * ------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.game-card { grid-column: span 6; }                                /* default: yarım */
.game-card:first-child  { grid-column: span 7; grid-row: span 2; } /* featured */
.game-card:nth-child(2),
.game-card:nth-child(3) { grid-column: span 5; }                   /* featured'in yanı */

/* Tablet: 12 → 2 kolon eşit; featured tek başına bir satır */
@media (max-width: 980px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card,
  .game-card:nth-child(2),
  .game-card:nth-child(3) { grid-column: span 1; grid-row: auto; }
  .game-card:first-child  { grid-column: span 2; grid-row: auto; }
}
/* Mobil: tek sütun */
@media (max-width: 560px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-card,
  .game-card:first-child,
  .game-card:nth-child(2),
  .game-card:nth-child(3) { grid-column: span 1; }
}

.game-card {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.4s var(--ease);
  cursor: pointer;
  isolation: isolate;
  transform-style: preserve-3d;
}
.game-card:hover {
  border-color: var(--border-2);
  box-shadow:
    0 30px 60px -25px rgba(0,0,0,0.7),
    0 0 0 1px rgba(181, 55, 242, 0.35),
    0 0 40px -10px rgba(181, 55, 242, 0.35);
}

.game-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.game-card--featured .game-card-cover { aspect-ratio: 4 / 5; }

.game-card-cover::before {
  /* Üst katman: kart konusuna göre değişen neon gradient */
  content: "";
  position: absolute; inset: 0;
  background: var(--cover-bg);
  opacity: 0.85;
}
.game-card-cover::after {
  /* Hafif grain + alt yarıya gradient (metin okunabilirliği için) */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(7,7,13,0.85) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px);
}
.game-card-cover .cover-glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.05em;
  mix-blend-mode: overlay;
  transition: transform 0.6s var(--ease);
}
.game-card:hover .cover-glyph { transform: scale(1.08); }

/* Kart kapağı için palet renkleri (cover alanı) */
.cover--purple        { --cover-bg: linear-gradient(135deg, #2a1559 0%, #b537f2 100%); }
.cover--cyan          { --cover-bg: linear-gradient(135deg, #0a3b48 0%, #22d3ee 100%); }
.cover--magenta-cyan  { --cover-bg: linear-gradient(135deg, #b537f2 0%, #22d3ee 100%); }
.cover--purple-cyan   { --cover-bg: linear-gradient(135deg, #2a1559 0%, #22d3ee 100%); }

.game-card-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.game-card-genre {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.game-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.005em;
  color: var(--text);
}
.game-card--featured .game-card-title { font-size: clamp(1.4rem, 3vw, 2rem); }

.game-card-desc {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.game-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.game-card-cta {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.25s var(--ease);
}
.game-card:hover .game-card-cta { gap: 12px; }
.game-card-cta::after {
  content: "→";
  font-family: var(--font-body);
}


/* ----------------------------------------------------------------------------
 * 9. RANK TRACKER
 * ------------------------------------------------------------------------- */
.section--rank {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,211,238,0.025), transparent 50%);
}
.rank-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; margin-bottom: 48px;
}
.rank-head-badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  background: rgba(7,7,13,0.5);
  flex-shrink: 0;
}
.rank-head-badge span {
  font-size: 10px; letter-spacing: 0.3em; color: var(--text-muted);
  font-family: var(--font-display);
}
.rank-head-badge strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--accent-2);
  text-shadow: 0 0 16px rgba(34,211,238,0.4);
}
@media (max-width: 640px) {
  .rank-head { flex-direction: column; }
}

.rank-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .rank-app { grid-template-columns: 1fr; }
}

.rank-form {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.rank-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.field-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}
.field input {
  background: var(--bg-deep);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input:hover  { border-color: var(--text-dim); }
.field input:focus  {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.field input::placeholder { color: var(--text-dim); opacity: 1; }
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; }

.rank-form-actions {
  display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
  margin-top: 8px;
}
.rank-form-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.rank-form-note code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(255,255,255,0.05);
  padding: 1px 6px; border-radius: 3px;
  color: var(--accent-2);
}

/* ---- Sonuç paneli ---- */
.rank-result {
  background:
    radial-gradient(circle at 50% 0%, var(--tier-soft, rgba(255,255,255,0.04)), transparent 70%),
    var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.rank-result[data-state="filled"] {
  border-color: var(--tier-color, var(--border-2));
}

.rank-empty {
  color: var(--text-muted);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.rank-empty-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px dashed var(--border-2);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dim);
}
.rank-empty-title { color: var(--text-soft); font-weight: 500; }

.rank-badge {
  --tier: var(--accent);
  --tier-soft: rgba(255,255,255,0.04);
  width: 140px; height: 140px;
  position: relative;
  margin-bottom: 24px;
  display: grid; place-items: center;
}
.rank-badge-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--tier), transparent 60%, var(--tier));
  filter: drop-shadow(0 0 20px var(--tier));
  animation: badge-spin 12s linear infinite;
  opacity: 0.85;
}
.rank-badge-core {
  position: absolute; inset: 8px;
  background: var(--bg-deep);
  border: 2px solid var(--tier);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--tier);
  text-shadow: 0 0 12px var(--tier);
  text-transform: uppercase;
  padding: 0 8px;
  text-align: center;
  line-height: 1.1;
}
@keyframes badge-spin {
  to { transform: rotate(360deg); }
}

.rank-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tier-color, var(--text));
  text-shadow: 0 0 24px var(--tier-glow, transparent);
  margin-bottom: 8px;
}
.rank-rating {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-display);
  margin-bottom: 24px;
}
.rank-rating strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
}
.rank-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.rank-stat-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}
.rank-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rank-progress {
  width: 100%;
  max-width: 380px;
  display: flex; flex-direction: column; gap: 8px;
}
.rank-progress-info {
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-soft);
}
.rank-progress-info strong { color: var(--text); font-variant-numeric: tabular-nums; }
.rank-progress-bar {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.rank-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--tier-color), var(--tier-glow));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--tier-color);
  transition: width 0.8s var(--ease-out);
}


/* ----------------------------------------------------------------------------
 * 10. ABOUT
 * ------------------------------------------------------------------------- */
.section--about {
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-text {
  color: var(--text-soft);
  margin-bottom: 16px;
  font-size: clamp(1rem, 1.4vw, 1.075rem);
}

.about-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.about-card-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.social-list {
  display: flex; flex-direction: column; gap: 10px;
}
.social-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease),
              background 0.25s var(--ease),
              transform 0.25s var(--ease);
  color: var(--text);
}
.social-link--soon {
  opacity: 0.55;
  cursor: default;
}
.social-link--soon .social-handle {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.social-link--soon:hover {
  border-color: var(--border);
  background: none;
  transform: none;
}
.social-link:hover {
  border-color: var(--accent-2);
  background: var(--accent-2-soft);
  transform: translateX(4px);
  color: var(--text);
}
.social-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent-2);
}
.social-meta { display: flex; flex-direction: column; }
.social-name { font-weight: 600; font-size: 14px; }
.social-handle { font-size: 12px; color: var(--text-muted); }


/* ----------------------------------------------------------------------------
 * 11. FOOTER
 * ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}


/* ----------------------------------------------------------------------------
 * 12. MODAL
 * ------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.25s var(--ease);
}
.modal-panel {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  max-width: 880px; width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.7),
    0 0 60px -20px rgba(181, 55, 242, 0.3);
  animation: pop-in 0.35s var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,7,13,0.7);
  border: 1px solid var(--border-2);
  color: var(--text);
  z-index: 2;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }

.modal-body {
  overflow-y: auto;
  padding: 0;
}
.modal-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.modal-cover::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cover-bg);
}
.modal-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg-elev-1) 100%);
}
.modal-cover-glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  mix-blend-mode: overlay;
}

.modal-content {
  padding: 32px clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 24px;
}
.modal-eyebrow {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-description {
  color: var(--text-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.modal-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.modal-features {
  display: flex; flex-direction: column; gap: 10px;
}
.modal-features li {
  display: flex; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.95rem;
}
.modal-features li::before {
  content: "▸";
  color: var(--accent-2);
  flex-shrink: 0;
}
.modal-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.modal-shot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px),
    var(--bg-elev-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
}

body.modal-open { overflow: hidden; }

/* "Oyna" CTA — modal içinde */
.modal-play {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(181,55,242,0.10), rgba(34,211,238,0.06));
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 0 30px -10px var(--accent);
}
.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), #7d1fb8);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(181,55,242,0.4);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-play:hover, .btn-play:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(181,55,242,0.55);
}
.modal-play-hint {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}


/* ----------------------------------------------------------------------------
 * 14. PLAY OVERLAY (oynanabilir oyun iframe)
 * ------------------------------------------------------------------------- */
.play-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
  animation: fade-in 0.25s var(--ease);
}
.play-overlay[hidden] { display: none; }

.play-overlay-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.play-overlay-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(34,211,238,0.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-overlay-actions {
  display: flex; align-items: center; gap: 8px;
}
.play-overlay-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.play-overlay-link:hover,
.play-overlay-link:focus-visible {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.play-overlay-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}
.play-overlay-close svg { width: 16px; height: 16px; }
.play-overlay-close:hover,
.play-overlay-close:focus-visible {
  transform: rotate(90deg);
  border-color: var(--accent);
  color: var(--accent);
}

.play-overlay-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg-deep);
  display: block;
}

@media (max-width: 540px) {
  .play-overlay-bar { padding: 8px 12px; }
  .play-overlay-title { font-size: 12px; }
  .play-overlay-link span { display: none; }
}


/* ----------------------------------------------------------------------------
 * 13. PRINT GİZLEMESİ (opsiyonel)
 * ------------------------------------------------------------------------- */
@media print {
  .bg-grid, .bg-orb, .bg-noise, .hero-marquee, .modal { display: none !important; }
}
