/* ============================================================
   KidsGameLand — Tasarım Sistemi
   Açık, neşeli, çocuk dostu. Mobil öncelikli.
   ============================================================ */

:root {
  /* Zemin */
  --bg: #fbf7ff;
  --bg-soft: linear-gradient(180deg, #fdf2f8 0%, #f5f1ff 46%, #eef6ff 100%);
  --card: #ffffff;
  --card-2: #f8f5ff;
  --border: #ece5f8;
  --border-2: #e2d9f3;

  /* Metin */
  --text: #2c2144;
  --text-dim: #8a82a6;

  /* Marka */
  --brand: #7c3aed;
  --brand-soft: #ede4ff;
  --brand-grad: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --pink: #ff4d8d;
  --pink-grad: linear-gradient(135deg, #ff6aa2, #f43f7f);
  --yellow: #ffc53d;
  --green: #34d399;
  --blue: #38bdf8;
  --orange: #fb923c;
  --red: #f87171;

  /* Ölçüler */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 8px 26px rgba(124, 58, 237, .10);
  --shadow-lg: 0 16px 44px rgba(124, 58, 237, .16);
  --header-h: 76px;

  --font: "Nunito", "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-soft);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- HEADER (beyaz yüzen kart) ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.header-inner {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 14px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 15px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .35);
  flex-shrink: 0;
}
.logo-txt { line-height: 1.05; }
.logo-name { font-size: 19px; font-weight: 900; letter-spacing: -.4px; }
.logo-name .b { color: var(--brand); }
.logo-name .p { color: var(--pink); }
.logo-sub { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: var(--text-dim); text-transform: uppercase; }

.search-wrap { flex: 1; max-width: 520px; position: relative; }
.search-input {
  width: 100%; height: 44px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0 16px 0 42px;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: all .18s;
}
.search-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.search-input::placeholder { color: var(--text-dim); font-weight: 600; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 15px; pointer-events: none; }

.search-results {
  position: absolute; top: 52px; left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto;
  display: none; z-index: 60;
  padding: 6px;
}
.search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; transition: background .14s; }
.sr-item:hover { background: var(--card-2); }
.sr-item img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.sr-item-title { font-size: 14px; font-weight: 800; }
.sr-item-cat { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.sr-empty { padding: 16px; text-align: center; color: var(--text-dim); font-size: 14px; font-weight: 700; }

/* Dil seçici */
.lang {
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  transition: all .16s;
}
.lang:hover { border-color: var(--brand); }
.lang select {
  background: none; border: 0; outline: none;
  font-family: inherit; font-weight: 800; font-size: 13px;
  color: var(--text); cursor: pointer;
}

.nav-link {
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  transition: all .16s;
}
.nav-link:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* Kullanıcı çipi */
.chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5fa, #f3ecff);
  border: 1.5px solid var(--border-2);
  flex-shrink: 0;
  transition: all .16s;
}
.chip:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.chip-ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  display: grid; place-items: center; font-size: 18px;
}
.chip-info { display: flex; flex-direction: column; gap: 3px; min-width: 60px; }
.chip-lv { font-size: 11px; font-weight: 900; color: var(--brand); white-space: nowrap; }
.chip-bar { height: 5px; border-radius: 3px; background: #eee6f8; overflow: hidden; }
.chip-bar i { display: block; height: 100%; background: var(--pink-grad); border-radius: 3px; }

/* ---------- KATEGORİ ÇİPLERİ ---------- */
.cat-bar { padding: 4px 0 2px; }
.cat-scroll {
  display: flex; gap: 9px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px; font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(124, 58, 237, .05);
  transition: all .16s;
}
.cat-chip::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dot, var(--brand));
  flex-shrink: 0;
}
.cat-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-chip.active {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .35);
}
.cat-chip.active::before { background: #fff; }

/* ---------- HERO: HAFTANIN OYUNU ---------- */
.hero-featured {
  position: relative;
  display: flex; align-items: center;
  min-height: 300px;
  margin: 16px 0;
  padding: 32px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(120deg, #6d28d9 0%, #7c3aed 40%, #a855f7 100%);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.hero-featured::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(340px 340px at 82% 42%, rgba(56, 189, 248, .55), transparent 62%),
    radial-gradient(150px 150px at 66% 22%, rgba(255, 107, 162, .6), transparent 65%),
    radial-gradient(90px 90px at 70% 76%, rgba(163, 230, 53, .55), transparent 65%);
  pointer-events: none;
}
.hero-featured .stars-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff, transparent),
    radial-gradient(2px 2px at 30% 70%, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 48% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 22% 88%, rgba(255,255,255,.5), transparent);
  pointer-events: none;
}
.hero-txt { position: relative; z-index: 2; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--yellow);
  color: #4a3000;
  font-size: 12px; font-weight: 900;
  letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 5px 14px rgba(255, 197, 61, .45);
}
.hero-featured h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}
.hero-featured p {
  font-size: 16px; font-weight: 600;
  color: rgba(255, 255, 255, .88);
  line-height: 1.5;
  margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-play {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--pink-grad);
  color: #fff;
  font-size: 16px; font-weight: 900;
  box-shadow: 0 10px 26px rgba(244, 63, 127, .45);
  transition: transform .16s, box-shadow .16s;
}
.btn-play:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 32px rgba(244, 63, 127, .55); }
.hero-meta { font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .9); }
.hero-meta .st { color: var(--yellow); }
.hero-art {
  position: absolute; right: 3%; top: 50%;
  transform: translateY(-50%);
  width: 240px; height: 240px;
  border-radius: 32px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, .22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  z-index: 2;
  transition: transform .3s;
}
.hero-featured:hover .hero-art { transform: translateY(-50%) rotate(-2deg) scale(1.03); }

/* ---------- BÖLÜM BAŞLIĞI ---------- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 30px 0 14px; gap: 12px;
}
.section-head h2 {
  display: flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 900; letter-spacing: -.4px;
}
.section-head h2::before {
  content: "";
  width: 5px; height: 22px; border-radius: 3px;
  background: var(--pink-grad);
}
.section-head .count { color: var(--text-dim); font-size: 13px; font-weight: 700; }
.section-head a.count:hover { color: var(--brand); }

/* ---------- OYUN KARTLARI ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .07);
  aspect-ratio: 1 / 1;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover img { transform: scale(1.08); }

.card-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 30px 12px 11px;
  background: linear-gradient(transparent, rgba(30, 15, 55, .9));
}
.card-title {
  font-size: 13px; font-weight: 800; color: #fff; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-cat { font-size: 11px; color: #ffd6e8; font-weight: 800; margin-top: 3px; }
.card-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(124, 58, 237, .35);
  opacity: 0; transition: opacity .18s;
}
.card:hover .card-play { opacity: 1; }
.card-play span {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--brand);
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.fav-btn {
  position: absolute; top: 9px; right: 9px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  display: grid; place-items: center;
  font-size: 15px;
  z-index: 3;
  opacity: 0;
  transition: opacity .16s, transform .16s;
}
.card:hover .fav-btn, .fav-btn.on { opacity: 1; }
.fav-btn:hover { transform: scale(1.2); }
@media (hover: none) { .fav-btn { opacity: 1; } }

.row-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-item { flex: 0 0 158px; scroll-snap-align: start; }

/* ---------- KALDIĞIN OYUN ---------- */
.continue {
  display: flex; align-items: center; gap: 15px;
  padding: 14px;
  margin: 16px 0;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid var(--brand-soft);
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s;
}
.continue:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.continue img { width: 66px; height: 66px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.continue-txt { min-width: 0; }
.continue-label { font-size: 11px; font-weight: 900; color: var(--pink); letter-spacing: .6px; text-transform: uppercase; }
.continue-title { font-size: 17px; font-weight: 900; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-meta { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.continue-btn {
  margin-left: auto; flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff; font-weight: 900; font-size: 14px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
}

/* ---------- REKLAM ---------- */
.ad-slot {
  position: relative;
  margin: 22px 0;
  min-height: 110px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
  border: 2px dashed var(--border-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.ad-slot::before {
  content: "REKLAM";
  position: absolute; top: 10px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 9px; font-weight: 900; letter-spacing: 1.2px;
}
.ad-slot .ad-ph { color: var(--text-dim); font-size: 13px; font-weight: 800; }
.ad-slot.live { border-style: solid; border-color: var(--border); background: #fff; min-height: 0; }
.ad-slot.live::before { display: none; }
.ad-slot--sidebar { min-height: 260px; margin: 0 0 16px; }

/* ---------- OYUN SAYFASI ---------- */
.play-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin: 16px 0; align-items: start; }

.player-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1a1030; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-splash {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background-size: cover; background-position: center;
  cursor: pointer;
}
.player-splash::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(109, 40, 217, .88), rgba(244, 63, 127, .72));
  backdrop-filter: blur(4px);
}
.splash-inner { position: relative; text-align: center; padding: 18px; color: #fff; }
.splash-inner img {
  width: 112px; height: 112px;
  border-radius: 26px;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, .3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
}
.splash-inner h2 { font-size: 24px; font-weight: 900; margin-bottom: 16px; }
.splash-note { margin-top: 12px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }

.player-bar { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-top: 1px solid var(--border); }
.player-bar .pb-thumb { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.player-bar .pb-title { font-weight: 900; font-size: 15px; }
.player-bar .pb-cat { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.player-bar .spacer { margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  font-size: 16px;
  transition: all .16s;
}
.icon-btn:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.fav-btn-lg.on { border-color: var(--pink); background: #ffeef4; }

.game-info {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.game-info h3 { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.game-info p { color: var(--text-dim); font-size: 14px; font-weight: 600; line-height: 1.7; }
.game-info .divider { height: 1px; background: var(--border); margin: 16px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag {
  font-size: 12px; font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.sidebar-title { font-size: 13px; font-weight: 900; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-dim); }
.side-list { display: flex; flex-direction: column; gap: 9px; }
.side-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .16s;
}
.side-item:hover { border-color: var(--brand); transform: translateX(3px); box-shadow: var(--shadow); }
.side-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.side-item .si-title { font-size: 13px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-item .si-cat { font-size: 11px; color: var(--brand); margin-top: 2px; font-weight: 800; }

/* ---------- PUANLAMA ---------- */
.rate-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rate-meta { font-size: 13px; color: var(--text-dim); font-weight: 700; }
.rate-meta b { color: var(--orange); font-size: 15px; }
.stars { display: flex; gap: 4px; font-size: 28px; line-height: 1; }
.star { color: #e9e2f5; transition: transform .12s, color .12s; }
.star.on { color: var(--yellow); }
.stars--pick .star { cursor: pointer; }
.stars--pick:hover .star { color: var(--yellow); }
.stars--pick .star:hover ~ .star { color: #e9e2f5; }
.stars--pick .star:hover { transform: scale(1.25); }

/* ---------- YORUMLAR ---------- */
.cmt-form { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; }
.cmt-ava {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  font-size: 19px;
}
.cmt-form textarea {
  flex: 1;
  background: var(--card-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  resize: vertical;
  outline: none;
}
.cmt-form textarea:focus { border-color: var(--brand); background: #fff; }
.btn-send {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff; font-weight: 900; font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .3);
  transition: transform .14s;
}
.btn-send:hover { transform: translateY(-1px); }

.cmt-list { display: flex; flex-direction: column; gap: 14px; }
.cmt { display: flex; gap: 11px; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.cmt-head b { font-size: 13px; font-weight: 900; }
.cmt-rate { color: var(--yellow); font-size: 12px; }
.cmt-date { color: var(--text-dim); font-size: 12px; font-weight: 700; margin-left: auto; }
.cmt-del { color: var(--text-dim); font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.cmt-del:hover { color: var(--pink); background: #ffeef4; }
.cmt-body p { color: var(--text-dim); font-size: 14px; font-weight: 600; line-height: 1.6; word-break: break-word; }
.cmt-empty { color: var(--text-dim); font-size: 14px; font-weight: 700; text-align: center; padding: 14px; }

/* ---------- DURUMLAR ---------- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.empty-state .big { font-size: 46px; margin-bottom: 10px; }
.empty-state h3 { color: var(--text); font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.empty-state p { font-weight: 600; }
.empty-state code { background: var(--brand-soft); padding: 3px 9px; border-radius: 7px; color: var(--brand); font-size: 13px; font-weight: 800; }

.btn-more {
  display: block;
  margin: 26px auto 0;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--border-2);
  color: var(--brand);
  font-weight: 900; font-size: 14px;
  box-shadow: var(--shadow);
  transition: all .16s;
}
.btn-more:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- TOAST ---------- */
.toast-box { position: fixed; right: 16px; bottom: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 900;
  transform: translateY(14px); opacity: 0;
  transition: all .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast--xp { border-color: var(--brand); color: var(--brand); }
.toast--level { border-color: var(--yellow); color: #b07800; background: #fffbf0; }
.toast--badge { border-color: var(--pink); color: var(--pink); background: #fff5f9; }
.toast--streak { border-color: var(--orange); color: #c2410c; background: #fff7ed; }

/* ---------- PROFİL ---------- */
.profile-head {
  display: flex; align-items: center; gap: 20px;
  padding: 26px;
  margin: 16px 0;
  border-radius: 28px;
  background: linear-gradient(120deg, #7c3aed, #a855f7 60%, #ec4899);
  box-shadow: var(--shadow-lg);
  color: #fff;
  flex-wrap: wrap;
}
.pf-ava {
  width: 88px; height: 88px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .2);
  border: 3px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center;
  font-size: 44px;
  cursor: pointer;
  transition: transform .16s;
}
.pf-ava:hover { transform: scale(1.06) rotate(-3deg); }
.pf-main { flex: 1; min-width: 200px; }
.pf-nick {
  font-size: 24px; font-weight: 900;
  background: rgba(255, 255, 255, .12);
  border: 2px dashed rgba(255, 255, 255, .3);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  width: 100%; max-width: 280px;
  font-family: inherit;
  outline: none;
}
.pf-nick::placeholder { color: rgba(255,255,255,.6); }
.pf-nick:focus { background: rgba(255, 255, 255, .2); border-style: solid; }
.pf-lv { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pf-lv-badge { padding: 5px 13px; border-radius: 999px; background: var(--yellow); color: #4a3000; font-size: 12px; font-weight: 900; }
.pf-xpbar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .25); overflow: hidden; max-width: 300px; min-width: 120px; }
.pf-xpbar i { display: block; height: 100%; background: #fff; border-radius: 6px; }
.pf-xptxt { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .9); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat {
  padding: 18px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat .v { font-size: 20px; font-weight: 900; color: var(--brand); }
.stat .k { font-size: 12px; color: var(--text-dim); font-weight: 700; margin-top: 4px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.badge {
  padding: 16px 9px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  opacity: .45;
  filter: grayscale(1);
  transition: all .18s;
}
.badge.owned {
  opacity: 1; filter: none;
  border-color: transparent;
  background: linear-gradient(160deg, #fff6fb, #f3ecff);
  box-shadow: var(--shadow);
}
.badge.owned:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: var(--shadow-lg); }
.badge .bi { font-size: 28px; }
.badge .bn { font-size: 12px; font-weight: 900; margin-top: 6px; }
.badge .bd { font-size: 10px; color: var(--text-dim); font-weight: 700; margin-top: 3px; line-height: 1.3; }

.ava-picker {
  display: none;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ava-picker.open { display: grid; }
.ava-opt {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--card-2);
  display: grid; place-items: center;
  font-size: 21px;
  cursor: pointer;
  transition: all .14s;
}
.ava-opt:hover { background: var(--brand-soft); transform: scale(1.12) rotate(-5deg); }

.hist-list { display: flex; flex-direction: column; gap: 10px; }
.hist-row {
  display: flex; align-items: center; gap: 13px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(124, 58, 237, .05);
  transition: all .16s;
}
.hist-row:hover { border-color: var(--brand); transform: translateX(3px); }
.hist-row img { width: 50px; height: 50px; border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.hist-row .hr-t { font-size: 14px; font-weight: 900; }
.hist-row .hr-m { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.hist-row .hr-s { margin-left: auto; text-align: right; flex-shrink: 0; }
.hist-row .hr-s b { color: var(--brand); font-size: 14px; }
.hist-row .hr-s span { display: block; font-size: 11px; color: var(--text-dim); font-weight: 700; }

/* ---------- LİDERLİK ---------- */
.lb-tabs { display: flex; gap: 9px; margin: 16px 0 14px; flex-wrap: wrap; }
.lb-tab {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(124, 58, 237, .05);
  transition: all .16s;
}
.lb-tab:hover { transform: translateY(-2px); }
.lb-tab.active { background: var(--brand-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, .35); }

.lb-list { display: flex; flex-direction: column; gap: 10px; }
.lb-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(124, 58, 237, .05);
}
.lb-row.me { border-color: var(--brand); background: linear-gradient(100deg, #f6f0ff, #fff); }
.lb-rank { width: 34px; font-size: 17px; font-weight: 900; color: var(--text-dim); text-align: center; flex-shrink: 0; }
.lb-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.lb-nick { font-weight: 900; font-size: 14px; }
.lb-sub { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.lb-val { margin-left: auto; text-align: right; }
.lb-val b { color: var(--brand); font-size: 17px; }

.info-note {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: #fffbf0;
  border: 1.5px solid #ffe4a8;
  color: #92640a;
  font-size: 13px; font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Sade sayfa (gizlilik/iletişim) */
.page-box {
  max-width: 840px;
  margin: 16px auto;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.page-box h1 { font-size: 28px; font-weight: 900; margin-bottom: 14px; }
.page-box h3 { font-size: 16px; font-weight: 900; margin-bottom: 8px; }
.page-box p { color: var(--text-dim); font-size: 14px; font-weight: 600; line-height: 1.75; }
.page-box a { color: var(--brand); font-weight: 800; }
.page-box .divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------- FOOTER ---------- */
.footer { margin-top: 56px; padding: 26px 0 30px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.footer p { color: var(--text-dim); font-size: 13px; font-weight: 700; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: var(--text-dim); font-size: 13px; font-weight: 800; transition: color .16s; }
.footer nav a:hover { color: var(--brand); }

/* ---------- MOBİL ---------- */
@media (max-width: 980px) {
  .play-layout { grid-template-columns: 1fr; }
  .ad-slot--sidebar { min-height: 110px; }
  .hero-art { width: 170px; height: 170px; right: 2%; opacity: .95; }
  .hero-featured { min-height: 260px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; --radius: 18px; }
  .container { padding: 0 12px; }
  .header { padding: 8px 0; }
  .header-inner { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
  .logo-txt { display: none; }
  .search-wrap { order: 3; flex: 1 1 100%; max-width: none; }
  .nav-link span, .lang span { display: none; }
  .nav-link, .lang { padding: 0 11px; }
  .chip-info { display: none; }
  .chip { padding: 4px; }

  .hero-featured { padding: 22px 18px; min-height: 0; }
  .hero-art { display: none; }
  .hero-featured h1 { font-size: 28px; }
  .hero-featured p { font-size: 14px; }
  .btn-play { padding: 13px 26px; font-size: 15px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 11px; }
  .row-item { flex: 0 0 128px; }
  .card-title { font-size: 12px; }
  .section-head h2 { font-size: 18px; }
  .player-frame { aspect-ratio: 3 / 4; }
  .continue img { width: 56px; height: 56px; }
  .continue-btn { padding: 10px 16px; font-size: 13px; }
  .continue-title { font-size: 15px; }
  .cmt-form { flex-wrap: wrap; }
  .cmt-form textarea { flex: 1 1 100%; order: 2; }
  .btn-send { order: 3; margin-left: auto; }
  .ava-picker { grid-template-columns: repeat(5, 1fr); }
  .toast-box { left: 12px; right: 12px; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .profile-head { padding: 20px; gap: 14px; }
  .pf-ava { width: 68px; height: 68px; font-size: 34px; border-radius: 20px; }
}

/* ---------- ÇEREZ İZNİ ---------- */
.consent-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 900;
  display: flex; align-items: center; gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}
.consent-bar p { font-size: 13px; font-weight: 700; color: var(--text-dim); flex: 1; min-width: 220px; }
.consent-bar a { color: var(--brand); }
.consent-btns { display: flex; gap: 8px; margin-left: auto; }
.consent-btns button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-size: 13px; font-weight: 800;
  transition: all .16s;
}
.consent-btns button:hover { border-color: var(--brand); }
.consent-btns button.primary {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .3);
}
@media (max-width: 700px) {
  .consent-bar { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; }
  .consent-btns { margin: 0; justify-content: center; }
}
