:root {
  --bg: #f1effa;
  --card: #ffffff;
  --text: #1d1838;
  --muted: #6b6889;
  --brand: #5b2bd1;
  --brand-2: #ff7a1a;
  --line: #e2def3;
  --live: #16a34a;
  --shadow: 0 8px 22px rgba(40, 20, 110, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121026;
    --card: #1d1a38;
    --text: #f1eefe;
    --muted: #a7a2c9;
    --line: #2d2a52;
    --live: #4ade80;
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
.hidden { display: none !important; }
a { color: inherit; }

/* başlık */
.site-head { background: linear-gradient(120deg, #4b1fb8 0%, #7a3ff2 55%, #ff7a1a 130%); color: #fff; box-shadow: 0 6px 20px rgba(60, 20, 150, 0.35); position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.fox { font-size: 2.1rem; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.logo b { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1; letter-spacing: 0.3px; }
.logo i { display: block; font-style: normal; font-size: 0.7rem; letter-spacing: 5px; color: #ffd38a; }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 6px 14px; }
.search input { flex: 1; border: 0; background: transparent; color: #fff; font: inherit; outline: none; min-width: 0; }
.search input::placeholder { color: rgba(255, 255, 255, 0.75); }
.online-pill { margin-left: auto; font-size: 0.85rem; background: rgba(0, 0, 0, 0.2); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.online-pill:empty { display: none; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font: inherit; font-weight: 800; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cat:hover { background: rgba(255, 255, 255, 0.26); }
.cat.active { background: #fff; color: var(--brand); }

/* öne çıkan */
.hero { margin: 22px 0 8px; }
.hero-card { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr; gap: 0; text-decoration: none; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform 0.15s; }
.hero-card:hover { transform: translateY(-2px); }
.hero-card .thumb { aspect-ratio: 16 / 10; border-radius: 0; }
.hero-text { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hero-text h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.hero-text p { margin: 0; color: var(--muted); }
.kicker { color: var(--brand-2); text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; font-weight: 900; }
.cta { align-self: flex-start; margin-top: 8px; background: linear-gradient(#ffb057, #ff7a1a); color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 900; box-shadow: 0 6px 14px rgba(255, 122, 26, 0.4); }
@media (max-width: 720px) { .hero-card { grid-template-columns: 1fr; } .hero-text { padding: 16px; } }

/* oyun kartları */
.section-title { font-size: 1.3rem; font-weight: 900; margin: 24px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 30px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px rgba(60, 20, 150, 0.22); }
.card.soon { opacity: 0.6; filter: grayscale(0.4); cursor: default; }
.card.soon:hover { transform: none; }
.thumb { aspect-ratio: 16 / 10; background: #222; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.card:hover .thumb img { transform: scale(1.06); }
.thumb.emoji { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.thumb.emoji span { font-size: 3.2rem; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.info b { font-size: 1.02rem; }
.live { color: var(--live); font-size: 0.78rem; }
.live.big { font-size: 0.95rem; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge { font-size: 0.66rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); text-transform: uppercase; }
.badge.b-yeni { background: var(--brand-2); color: #fff; }
.badge.b-online { background: var(--live); color: #fff; }
.badge.b-soon { background: #444; color: #fff; }
.play { position: absolute; right: 10px; top: calc(10px); width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brand); display: grid; place-items: center; font-size: 0.9rem; opacity: 0; transform: scale(0.7); transition: all 0.15s; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.card:hover .play { opacity: 1; transform: none; }
.none { text-align: center; color: var(--muted); padding: 30px 0; }

.site-foot { margin-top: auto; padding: 18px 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .head-row { flex-wrap: wrap; } .search { order: 3; max-width: none; flex-basis: 100%; } }
