/* =========================================================
   yakantop.net — Ana stil dosyası
   Gece/gündüz modu: <html data-tema="gunduz|gece"> (oyunlarla ortak, localStorage yt-tema)
   ========================================================= */

:root {
  --bg: #f5f3ee;
  --bg-2: #ece8df;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --text: #23272d;
  --muted: #6c717a;
  --line: #e7e2d7;

  --primary: #2e7d74;
  --primary-2: #23625b;
  --primary-soft: #e1efec;
  --accent: #d2714d;
  --accent-soft: #f8e7df;
  --gold: #c98f22;
  --gold-soft: #f7edd6;
  --blue: #4a6fa5;
  --blue-soft: #e4ebf5;
  --plum: #86577f;
  --plum-soft: #f1e6ef;
  --green: #3c9f4b;
  --red: #cf5050;

  --shadow-sm: 0 1px 2px rgba(35, 39, 45, .05);
  --shadow: 0 1px 2px rgba(35, 39, 45, .04), 0 10px 28px rgba(35, 39, 45, .07);
  --shadow-lg: 0 20px 50px rgba(35, 39, 45, .14);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
  --bottom-h: 72px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="gunduz"]) {
    --bg: #14181d; --bg-2: #1a1f25; --surface: #1e242b; --surface-2: #242b33;
    --text: #ebe8e1; --muted: #9ba1a9; --line: #2d343d;
    --primary: #5cb3a8; --primary-2: #7fc8be; --primary-soft: #1d3532;
    --accent: #e8916f; --accent-soft: #3a2a24; --gold: #e3b24f; --gold-soft: #39301f;
    --blue: #81a1d2; --blue-soft: #222d3c; --plum: #c391bb; --plum-soft: #342733;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px rgba(0,0,0,.25);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-tema="gece"] {
  --bg: #14181d; --bg-2: #1a1f25; --surface: #1e242b; --surface-2: #242b33;
  --text: #ebe8e1; --muted: #9ba1a9; --line: #2d343d;
  --primary: #5cb3a8; --primary-2: #7fc8be; --primary-soft: #1d3532;
  --accent: #e8916f; --accent-soft: #3a2a24; --gold: #e3b24f; --gold-soft: #39301f;
  --blue: #81a1d2; --blue-soft: #222d3c; --plum: #c391bb; --plum-soft: #342733;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 14px; white-space: nowrap;
  transition: transform .15s ease, background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: var(--primary-2); }
:root[data-tema="gece"] .btn-primary { color: #0f1a19; }
.btn-light { background: rgba(255,255,255,.95); color: #1f2a2a; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface-2); }

/* Tema ikonları */
.i-sun, .i-moon { display: none; }
:root:not([data-tema="gece"]) .i-moon { display: block; }
:root[data-tema="gece"] .i-sun { display: block; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  padding-top: env(safe-area-inset-top);
}
.topbar.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.topbar-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo-text em { font-style: normal; color: var(--primary); font-weight: 600; }

.mainnav { display: flex; gap: 4px; margin-left: 12px; }
.mainnav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted);
  transition: color .2s, background-color .2s; white-space: nowrap;
}
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a.active { color: var(--primary); background: var(--primary-soft); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.online-pill, .coin-pill {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}
.online-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.coin-pill { color: var(--gold); background: var(--gold-soft); border-color: transparent; }
.coin-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green);
  animation: pulse 1.8s ease-out infinite; opacity: 0;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

/* Kullanıcı menüsü */
.user-menu { position: relative; }
.avatar-btn {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 3px 12px 3px 3px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s;
}
.avatar-btn:hover { border-color: var(--primary); }
.avatar-wrap { position: relative; }
.avatar {
  --av: var(--primary);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--av); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.status-dot {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid var(--surface); background: var(--green);
}
.status-dot.busy { background: var(--accent); }
.status-dot.invisible { background: var(--muted); }
.user-meta { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-meta b { font-size: 13.5px; }
.user-meta small { font-size: 11.5px; color: var(--green); font-weight: 700; }
.user-meta small.busy { color: var(--accent); }
.user-meta small.invisible { color: var(--muted); }
.avatar-btn .chev { color: var(--muted); width: 16px; height: 16px; }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease; z-index: 60;
}
.dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.dropdown button, .dropdown a {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-align: left;
}
.dropdown button:hover, .dropdown a:hover { background: var(--surface-2); }
.dropdown .s-dot { width: 10px; height: 10px; border-radius: 50%; }
.dropdown .check { margin-left: auto; color: var(--primary); opacity: 0; }
.dropdown .selected .check { opacity: 1; }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown .danger { color: var(--red); }

/* ---------- Bölümler ---------- */
main { padding-top: 12px; padding-bottom: 48px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title .s-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.section-title .s-icon.gold { background: var(--gold-soft); color: var(--gold); }
.section-title .s-icon.accent { background: var(--accent-soft); color: var(--accent); }
.section-title .s-icon.blue { background: var(--blue-soft); color: var(--blue); }
.section-title h2 { font-size: 26px; font-weight: 700; }
.section-title p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--primary); }
.link-more:hover { gap: 9px; }
.link-more .i { width: 16px; height: 16px; transition: transform .2s; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Slayt ---------- */
.slider { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.22,.8,.24,1); }
.slider.dragging .slider-track { transition: none; }
.slide {
  position: relative; min-width: 100%; min-height: 380px; padding: 52px 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px;
  color: #fff; overflow: hidden;
}
.slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0, transparent 40%),
    radial-gradient(circle at 10% 110%, rgba(0,0,0,.18) 0, transparent 45%);
}
.slide--teal { background: linear-gradient(135deg, #2f8077 0%, #1e5853 100%); }
.slide--blue { background: linear-gradient(135deg, #4d72a7 0%, #31497a 100%); }
.slide--clay { background: linear-gradient(135deg, #b8694c 0%, #8c4a36 100%); }
.slide--plum { background: linear-gradient(135deg, #7f5d89 0%, #553f62 100%); }
.slide-content { position: relative; z-index: 2; max-width: 520px; }
.slide-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.slide-badge .i { width: 14px; height: 14px; }
.slide h1, .slide h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin: 16px 0 12px; letter-spacing: -.02em; }
.slide h1 mark, .slide h2 mark { background: none; color: #ffe2a6; }
.slide p { font-size: 16.5px; opacity: .9; max-width: 440px; }
.slide-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.slide-art { position: relative; z-index: 1; height: 100%; min-height: 260px; }

/* Slayt 1 sanat: kelime kartları */
.word-card {
  position: absolute; width: 190px; padding: 18px; border-radius: 18px;
  background: #fffaf2; color: #2b2b2b; box-shadow: 0 20px 40px rgba(0,0,0,.22);
  font-family: var(--font-head);
}
.word-card .wc-top { font-size: 22px; font-weight: 800; color: #1e5853; padding-bottom: 10px; border-bottom: 2px dashed #e4ddcf; margin-bottom: 10px; }
.word-card ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 14px; color: #b0533a; }
.word-card ul li { padding: 3px 0; text-decoration: line-through; text-decoration-color: rgba(176,83,58,.5); }
.word-card.c1 { right: 34%; top: 14%; transform: rotate(-9deg); }
.word-card.c2 { right: 6%; top: 4%; transform: rotate(6deg); }
.word-card.c3 { right: 18%; bottom: 0; transform: rotate(-2deg); }
.big-count {
  position: absolute; left: 4%; bottom: 6%; padding: 14px 20px; border-radius: 18px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25);
  font-family: var(--font-head);
}
.big-count b { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.big-count span { font-size: 13px; opacity: .85; }

/* Diğer slayt sanatları */
.art-orb {
  position: absolute; inset: 0; margin: auto; width: 230px; height: 230px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.art-orb::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-orb .i { width: 100px; height: 100px; stroke-width: 1.4; }
.art-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: #fffaf2; color: #2b2b2b; font-weight: 800; font-size: 13.5px; box-shadow: 0 14px 30px rgba(0,0,0,.2);
  animation: float 5s ease-in-out infinite;
}
.art-chip .i { width: 16px; height: 16px; }
.art-chip.a { top: 10%; right: 8%; }
.art-chip.b { bottom: 12%; left: 6%; animation-delay: -2.5s; }
.art-chip.c { bottom: 30%; right: 2%; animation-delay: -1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.slider-ui {
  position: absolute; left: 56px; bottom: 26px; z-index: 5; display: flex; align-items: center; gap: 14px;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  position: relative; width: 28px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35); overflow: hidden;
  transition: width .3s;
}
.slider-dots button.active { width: 52px; }
.slider-dots button.active::after {
  content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill var(--slide-ms, 6000ms) linear forwards;
}
.slider.paused .slider-dots button.active::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-arrows { position: absolute; right: 26px; bottom: 20px; z-index: 5; display: flex; gap: 8px; }
.slider-arrows button {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); transition: background-color .2s;
}
.slider-arrows button:hover { background: rgba(255,255,255,.3); }

/* ---------- Kaldığın yerden ---------- */
.resume {
  margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
}
.resume-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.resume-text { flex: 1; min-width: 0; }
.resume-text small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.resume-text b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-progress { width: 140px; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.resume-progress span { display: block; height: 100%; width: 64%; background: var(--accent); border-radius: inherit; }

/* ---------- Filtre çipleri ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px;
  font-weight: 800; font-size: 13.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap; transition: .2s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-size: 11.5px; opacity: .7; }

/* ---------- Oyun kartları ---------- */
.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.game-card {
  --c: var(--primary); --cs: var(--primary-soft);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.game-card.hide { display: none; }
.game-art {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--c) 22%, transparent) 0, transparent 50%),
    var(--cs);
}
.game-art::after {
  content: ""; position: absolute; width: 150%; height: 70%; bottom: -40%; left: -25%; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.game-art .g-icon {
  position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  background: var(--c); color: #fff; box-shadow: 0 12px 24px color-mix(in srgb, var(--c) 35%, transparent);
  transform: rotate(-6deg); transition: transform .3s ease;
}
:root[data-tema="gece"] .game-art .g-icon { color: #111; }
.game-card:hover .g-icon { transform: rotate(0) scale(1.06); }
.g-icon .i { width: 34px; height: 34px; stroke-width: 1.8; }
.game-tags { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; background: var(--surface); color: var(--text); white-space: nowrap;
}
.tag.new { background: var(--accent); color: #fff; }
.tag .i { width: 12px; height: 12px; }
.game-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.game-body h3 { font-size: 17px; font-weight: 700; }
.game-body p { font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.players { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.players .p-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.play-btn {
  height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: var(--cs); color: var(--c); display: inline-flex; align-items: center; gap: 4px; transition: .2s;
}
.play-btn .i { width: 14px; height: 14px; }
.game-card:hover .play-btn { background: var(--c); color: #fff; }
:root[data-tema="gece"] .game-card:hover .play-btn { color: #111; }

.c-teal { --c: var(--primary); --cs: var(--primary-soft); }
.c-accent { --c: var(--accent); --cs: var(--accent-soft); }
.c-gold { --c: var(--gold); --cs: var(--gold-soft); }
.c-blue { --c: var(--blue); --cs: var(--blue-soft); }
.c-plum { --c: var(--plum); --cs: var(--plum-soft); }

/* Öne çıkan oyun (Dilim Varmaz) */
.game-card.featured { grid-column: span 2; grid-row: span 2; }
.game-card.featured .game-art { aspect-ratio: auto; flex: 1; min-height: 240px; }
.game-card.featured .g-icon { width: 110px; height: 110px; border-radius: 32px; }
.game-card.featured .g-icon .i { width: 54px; height: 54px; }
.game-card.featured .game-body h3 { font-size: 22px; }
.game-card.featured .game-body p { font-size: 14px; flex: none; }
.feat-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.feat-stats span { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.feat-stats span b { color: var(--text); }

/* ---------- Liderler ---------- */
.leaders-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; }
.king-card {
  position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius); color: #3b2a05;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.55) 0, transparent 45%),
    linear-gradient(150deg, #f6d995 0%, #e8b65a 100%);
  border: 1px solid rgba(0,0,0,.04);
}
:root[data-tema="gece"] .king-card { background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.12) 0, transparent 45%), linear-gradient(150deg, #5a4520 0%, #3c2e16 100%); color: #f6e3b8; }
.king-card .k-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.45); }
:root[data-tema="gece"] .king-card .k-label { background: rgba(255,255,255,.1); }
.king-card .k-label .i { width: 14px; height: 14px; }
.k-player { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.k-player .avatar { width: 64px; height: 64px; font-size: 22px; border: 3px solid rgba(255,255,255,.75); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.k-player .crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-8deg); color: #b77d10; }
:root[data-tema="gece"] .k-player .crown { color: #e3b24f; }
.k-player .crown .i { width: 24px; height: 24px; fill: currentColor; }
.k-player h3 { font-size: 20px; }
.k-player small { font-weight: 700; opacity: .75; }
.k-amount { margin-top: 20px; font-family: var(--font-head); }
.k-amount b { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.k-amount span { font-weight: 700; opacity: .75; margin-left: 6px; }
.k-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; font-weight: 700; opacity: .85; flex-wrap: wrap; }
.k-meta span { display: inline-flex; align-items: center; gap: 5px; }
.k-meta .i { width: 15px; height: 15px; }
.king-coins { position: absolute; right: -18px; bottom: -18px; width: 150px; opacity: .25; }

.best-card { padding: 24px; display: flex; flex-direction: column; }
.best-card .b-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.best-card .b-label .i { width: 14px; height: 14px; }
.best-top { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.best-top .avatar { width: 60px; height: 60px; font-size: 20px; }
.best-top h3 { font-size: 19px; }
.level { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); margin-top: 4px; }
.best-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.best-stats div { padding: 12px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.best-stats b { display: block; font-family: var(--font-head); font-size: 19px; }
.best-stats small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.best-card .btn { margin-top: auto; }
.best-card .best-stats { margin-bottom: 18px; }

.board { padding: 20px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.board-head h3 { font-size: 18px; }
.seg { display: flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); transition: .2s; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-tema="gece"] .seg button.active { background: var(--bg-2); }
.board-list { list-style: none; padding: 0; margin: 0; display: none; }
.board-list.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.board-list li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px dashed var(--line); }
.board-list li:last-child { border-bottom: 0; }
.rank { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.rank.r1 { background: var(--gold-soft); color: var(--gold); }
.rank.r2 { background: var(--blue-soft); color: var(--blue); }
.rank.r3 { background: var(--accent-soft); color: var(--accent); }
.board-list .avatar { width: 34px; height: 34px; font-size: 12.5px; }
.board-list .who { flex: 1; min-width: 0; }
.board-list .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-list .who small { color: var(--muted); font-size: 12px; font-weight: 700; }
.board-list .score { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 4px; color: var(--gold); }
.board-list .score .i { width: 14px; height: 14px; }
.board-list .me { background: var(--primary-soft); border-radius: 12px; border-bottom-color: transparent; }

/* Kategori enleri şeridi */
.mini-leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 14px; }
.mini .m-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cs); color: var(--c); flex-shrink: 0; }
.mini small { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mini b { font-size: 14.5px; }
.mini .m-val { margin-left: auto; font-family: var(--font-head); font-weight: 700; color: var(--c); font-size: 14px; white-space: nowrap; }

/* ---------- Haberler ---------- */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.news-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.news-cover {
  position: relative; min-height: 230px; padding: 24px; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #2f8077 0%, #1e5853 100%); color: #fff; overflow: hidden;
}
.news-cover .nc-number { position: absolute; right: 18px; top: 4px; font-family: var(--font-head); font-weight: 800; font-size: clamp(70px, 10vw, 120px); line-height: 1; opacity: .16; letter-spacing: -.04em; }
.news-cover .nc-words { position: absolute; right: 24px; bottom: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 55%; }
.news-cover .nc-words span { padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.16); font-weight: 800; font-size: 12.5px; }
.news-cover .tag { background: #fffaf2; color: #1e5853; }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 700; flex-wrap: wrap; }
.news-meta .i { width: 14px; height: 14px; }
.news-meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-body h3 { font-size: 24px; font-weight: 700; }
.news-body p { color: var(--muted); }
.news-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.news-facts div { padding: 12px; border-radius: 14px; background: var(--primary-soft); }
.news-facts b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--primary); }
.news-facts small { font-size: 12px; font-weight: 700; color: var(--muted); }
.news-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; gap: 14px; padding: 14px; transition: border-color .2s, transform .2s; }
.news-item:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); transform: translateX(3px); }
.news-thumb { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--cs); color: var(--c); flex-shrink: 0; }
.news-thumb .i { width: 26px; height: 26px; }
.news-item h4 { font-size: 15.5px; font-weight: 700; margin: 3px 0 4px; }
.news-item p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .n-tag { font-size: 11.5px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .04em; }
.news-item .n-date { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 8px; text-transform: none; letter-spacing: 0; }

/* ---------- Yorumlar ---------- */
.reviews-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.rating-card { padding: 24px; text-align: center; position: sticky; top: calc(var(--header-h) + 16px); }
.rating-card .big { font-family: var(--font-head); font-size: 56px; font-weight: 800; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .i { width: 16px; height: 16px; fill: currentColor; }
.stars .off { color: var(--line); }
.rating-card .stars { margin: 10px 0 4px; }
.rating-card .stars .i { width: 20px; height: 20px; }
.rating-card small { display: block; color: var(--muted); font-weight: 700; }
.bars { margin: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.bars div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.bars i { flex: 1; height: 7px; border-radius: 99px; background: var(--bg-2); overflow: hidden; font-style: normal; }
.bars i span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.reviews-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review.new-review { animation: fadeUp .4s ease; border-color: var(--primary); }
.review-top { display: flex; align-items: center; gap: 12px; }
.review-top .avatar { width: 42px; height: 42px; }
.review-top b { display: block; font-size: 14.5px; }
.review-top small { color: var(--muted); font-size: 12px; font-weight: 700; }
.review-top .stars { margin-left: auto; }
.review p { font-size: 14.5px; }
.review .r-game { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 18, 22, .45); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: .2s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: 100%; max-width: 480px; background: var(--surface); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: .25s ease;
}
.modal.open .modal-box { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 800; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface-2);
  border: 1.5px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.star-input { display: flex; gap: 4px; }
.star-input button { color: var(--line); transition: transform .15s, color .15s; }
.star-input button:hover { transform: scale(1.12); }
.star-input button.on { color: var(--gold); }
.star-input .i { width: 30px; height: 30px; fill: currentColor; }
.field-hint { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .25s ease; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 24px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer h4 { font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Mobil alt menü ---------- */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  font-size: 11px; font-weight: 800; color: var(--muted); transition: color .2s;
}
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a:active { transform: scale(.94); }
.bottom-nav .play-fab { margin-top: -26px; }
.bottom-nav .play-fab span.fab {
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 40%, transparent);
  border: 4px solid var(--bg); transform: rotate(-6deg);
}
:root[data-tema="gece"] .bottom-nav .play-fab span.fab { color: #0f1a19; }
.bottom-nav .play-fab span.fab .i { width: 26px; height: 26px; transform: rotate(6deg); }

/* =========================================================
   PROFİL SAYFASI
   ========================================================= */
.profile-hero { overflow: hidden; }
.cover {
  --cover: linear-gradient(135deg, #2f8077 0%, #1e5853 100%);
  position: relative; height: 200px; background: var(--cover);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px; mask-image: linear-gradient(to left, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}
.cover-teal { --cover: linear-gradient(135deg, #2f8077 0%, #1e5853 100%); }
.cover-blue { --cover: linear-gradient(135deg, #4d72a7 0%, #31497a 100%); }
.cover-clay { --cover: linear-gradient(135deg, #b8694c 0%, #8c4a36 100%); }
.cover-plum { --cover: linear-gradient(135deg, #7f5d89 0%, #553f62 100%); }
.cover-gold { --cover: linear-gradient(135deg, #d5a443 0%, #a5741c 100%); }
.cover-edit { position: absolute; right: 16px; top: 16px; z-index: 2; }

.profile-main { padding: 0 28px 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; margin-top: -54px; position: relative; z-index: 2; }
.profile-avatar { position: relative; }
.profile-avatar .avatar { width: 124px; height: 124px; font-size: 42px; border: 5px solid var(--surface); box-shadow: var(--shadow); }
.profile-avatar .status-dot { width: 24px; height: 24px; border-width: 4px; right: 8px; bottom: 8px; }
.profile-info { padding-bottom: 6px; min-width: 0; }
.profile-info h1 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verified { color: var(--primary); }
.verified .i { width: 22px; height: 22px; }
.profile-handle { color: var(--muted); font-weight: 700; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.profile-handle span { display: inline-flex; align-items: center; gap: 5px; }
.profile-handle .i { width: 14px; height: 14px; }
.profile-bio { margin-top: 10px; max-width: 620px; }
.profile-actions { display: flex; gap: 10px; padding-bottom: 8px; }

.xp { padding: 0 28px 24px; }
.xp-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.xp-top b { color: var(--text); }
.xp-bar { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--gold))); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { padding: 18px; display: flex; align-items: center; gap: 14px; }
.stat .st-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cs); color: var(--c); flex-shrink: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 22px; line-height: 1.1; }
.stat small { color: var(--muted); font-weight: 700; font-size: 12.5px; }

.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.panel { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.panel-head h3 { font-size: 18px; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.recent-list li:last-child { border-bottom: 0; }
.recent-list .r-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--cs); color: var(--c); flex-shrink: 0; }
.recent-list .r-main { flex: 1; min-width: 0; }
.recent-list .r-main b { display: block; font-size: 14.5px; }
.recent-list .r-main small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.result { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.result.win { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.result.lose { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.r-coin { font-family: var(--font-head); font-weight: 700; font-size: 14px; min-width: 70px; text-align: right; }
.r-coin.plus { color: var(--green); }
.r-coin.minus { color: var(--muted); }

.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { text-align: center; padding: 14px 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.badge .bd-icon { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.badge small { font-size: 11.5px; font-weight: 800; display: block; line-height: 1.3; }
.badge.locked { opacity: .45; filter: grayscale(1); }
.fav-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-list span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--cs); color: var(--c); font-weight: 800; font-size: 13px; }
.fav-list .i { width: 15px; height: 15px; }

/* Düzenleme paneli */
.edit-panel { display: none; margin-top: 18px; padding: 24px; animation: fadeUp .3s ease; }
.edit-panel.open { display: block; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.edit-grid .full { grid-column: 1 / -1; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sw); border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--line); transition: transform .15s, box-shadow .15s;
}
.swatch.wide { width: 70px; border-radius: 14px; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--primary); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.toggle-row b { font-size: 14px; display: block; }
.toggle-row small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* =========================================================
   DUYARLI TASARIM
   ========================================================= */
@media (max-width: 1180px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .leaders-grid { grid-template-columns: 1fr 1fr; }
  .leaders-grid .board { grid-column: 1 / -1; }
  .mini-leaders { grid-template-columns: repeat(2, 1fr); }
  .online-pill .txt { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .mainnav { display: none; }
  .user-meta, .avatar-btn .chev { display: none; }
  .avatar-btn { padding: 2px; border-radius: 50%; height: auto; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(var(--bottom-h) + 20px + env(safe-area-inset-bottom)); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .reviews-wrap { grid-template-columns: 1fr; }
  .rating-card { position: static; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; text-align: left; align-items: center; }
  .rating-card .bars { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .rating-card .btn { grid-column: 1 / -1; margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  main { padding-top: 6px; }
  .section { margin-top: 34px; }
  .section-head { margin-bottom: 14px; }
  .section-title h2 { font-size: 21px; }
  .section-title .s-icon { width: 36px; height: 36px; border-radius: 11px; }
  .section-title p { font-size: 13px; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; }
  .top-actions { gap: 6px; }
  .topbar-inner { gap: 10px; }
  .topbar .logo-text em { display: none; }
  .online-pill, .coin-pill { height: 36px; padding: 0 11px; font-size: 12.5px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 11px; }
  .topbar .notif { display: none; }
  .avatar { width: 34px; height: 34px; }

  .slider { border-radius: 22px; }
  .slide { grid-template-columns: 1fr; min-height: 0; padding: 26px 22px 64px; gap: 0; }
  .slide-art { position: absolute; inset: 0; min-height: 0; opacity: .35; pointer-events: none; }
  .slide-art .word-card, .slide-art .big-count, .slide-art .art-chip { display: none; }
  .art-orb { left: auto; right: -50px; top: -30px; bottom: auto; margin: 0; width: 180px; height: 180px; }
  .slide h1, .slide h2 { font-size: 26px; margin: 12px 0 8px; }
  .slide p { font-size: 14.5px; }
  .slide-actions { margin-top: 18px; }
  .slide-actions .btn { height: 40px; }
  .slider-ui { left: 22px; bottom: 22px; }
  .slider-arrows { display: none; }

  .resume-progress { display: none; }

  .chips { margin: 0 -16px; padding: 2px 16px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card.featured { grid-column: 1 / -1; grid-row: auto; }
  .game-card.featured .game-art { flex: none; aspect-ratio: 16 / 8; min-height: 0; }
  .game-card.featured .g-icon { width: 72px; height: 72px; border-radius: 22px; }
  .game-card.featured .g-icon .i { width: 34px; height: 34px; }
  .game-card.featured .game-body h3 { font-size: 18px; }
  .game-card.featured .game-body p { font-size: 13px; }
  .game-card.featured .feat-stats span:nth-child(3) { display: none; }
  .game-body { padding: 11px 12px 13px; }
  .game-body h3 { font-size: 15.5px; }
  .game-body p { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .game-art .g-icon { width: 58px; height: 58px; border-radius: 18px; }
  .g-icon .i { width: 28px; height: 28px; }
  .play-btn { height: 30px; padding: 0 11px; font-size: 12px; }
  .players { font-size: 11.5px; }

  .leaders-grid { grid-template-columns: 1fr; gap: 12px; }
  .k-amount b { font-size: 34px; }
  .mini-leaders { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .mini-leaders::-webkit-scrollbar { display: none; }
  .mini { flex: 0 0 78%; scroll-snap-align: start; }

  .news-cover { min-height: 180px; }
  .news-body { padding: 18px; }
  .news-body h3 { font-size: 20px; }
  .news-facts b { font-size: 17px; }

  .reviews-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; gap: 12px; scrollbar-width: none; }
  .reviews-track::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 86%; scroll-snap-align: start; }
  .rating-card { grid-template-columns: 1fr; text-align: center; }
  .rating-card .bars { grid-column: auto; grid-row: auto; margin: 12px 0 0; }

  .modal { align-items: end; padding: 0; }
  .modal-box { max-width: none; border-radius: 26px 26px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .modal-box::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: -6px auto 14px; }

  .footer { padding: 28px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* Profil */
  .cover { height: 140px; }
  .profile-main { grid-template-columns: 1fr; text-align: center; justify-items: center; margin-top: -60px; padding: 0 18px 20px; gap: 12px; }
  .profile-avatar .avatar { width: 108px; height: 108px; font-size: 36px; }
  .profile-info h1 { font-size: 23px; justify-content: center; }
  .profile-handle { justify-content: center; }
  .profile-actions { width: 100%; }
  .profile-actions .btn { flex: 1; }
  .xp { padding: 0 18px 20px; }
  .stats-grid { gap: 10px; }
  .stat { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat b { font-size: 19px; }
  .panel { padding: 18px; }
  .edit-panel { padding: 18px; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-actions .btn { flex: 1; }
}

@media (max-width: 400px) {
  .coin-pill .i { display: none; }
  .online-pill { padding: 0 9px; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .news-facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .news-facts div { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 720px) {
  .r-coin { min-width: 52px; font-size: 13px; }
  .recent-list li { gap: 10px; }
}

/* =========================================================
   yakantop.net — site bileşenleri (tema üzerine)
   ========================================================= */
.atla { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.atla:focus { left: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.container--dar { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.bold { font-weight: 800; }
.mt { margin-top: 18px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plus { color: var(--green); }
.minus { color: var(--red); }
.hidden { display: none !important; }

/* Logo: eski yakantop topu */
.logo .logo-mark { width: 38px; height: 38px; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-mark { transform: rotate(-25deg) scale(1.06); }
.logo-text em { color: #ff6b57; }
:root[data-tema="gece"] .logo-text em { color: #ff8a78; }

/* Avatar resimleri */
.avatar-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.avatar { overflow: hidden; background: var(--bg-2); color: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar--gizli { display: grid; place-items: center; }
.status-dot.oyunda { background: var(--blue); }
.status-dot.mesgul { background: var(--accent); }
.status-dot.gorunmez { background: var(--muted); }
.user-meta small.mesgul { color: var(--accent); }
.user-meta small.oyunda { color: var(--blue); }
.user-meta small.gorunmez { color: var(--muted); }
a.coin-pill { transition: transform .15s; }
a.coin-pill:hover { transform: translateY(-1px); }
.dropdown form { margin: 0; }
.menu-sayi { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; }
.icon-btn .dot { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { transform: scale(1.3); } }

/* Duyuru / flash */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-top: 14px; border-radius: 14px; font-weight: 700; border: 1px solid; }
.flash--basari { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 35%, transparent); color: color-mix(in srgb, var(--green) 70%, var(--text)); }
.flash--hata { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-color: color-mix(in srgb, var(--red) 35%, transparent); color: color-mix(in srgb, var(--red) 75%, var(--text)); }
.flash--bilgi { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 30%, transparent); color: color-mix(in srgb, var(--blue) 70%, var(--text)); }

/* Butonlar (ek) */
.btn-danger { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled], .btn.is-pasif { opacity: .55; pointer-events: none; }
button.chip, a.chip { cursor: pointer; }

/* Sayfa başı */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 20px; }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.eyebrow .i { width: 14px; height: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; font-weight: 800; font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--primary); }
.back-link + .page-head { margin-top: 10px; }

/* Boş durum */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 34px 20px; color: var(--muted); font-weight: 700; }
.empty .i { width: 40px; height: 40px; stroke-width: 1.6; color: color-mix(in srgb, var(--muted) 70%, transparent); }

/* Formlar */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field small, .hint { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.input[type="color"] { height: 46px; padding: 4px; }
.honey { position: absolute; left: -9999px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; }
.av-sec { position: relative; cursor: pointer; }
.av-sec input { position: absolute; opacity: 0; pointer-events: none; }
.av-sec img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--bg-2); border: 3px solid transparent; transition: transform .15s, border-color .15s; }
.av-sec:hover img { transform: scale(1.06); }
.av-sec input:checked + img { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.av-sec input:focus-visible + img { outline: 3px solid var(--primary); outline-offset: 2px; }
.av-onizleme { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.av-onizleme img { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-2); box-shadow: var(--shadow); }

/* Giriş / kayıt */
.auth-wrap { display: grid; place-items: center; padding: 34px 0 10px; }
.auth-card { width: 100%; max-width: 480px; padding: 28px; }
.auth-card h1 { font-size: 26px; margin: 18px 0 4px; }
.auth-card > p { color: var(--muted); margin-bottom: 18px; }
.seg-link { display: flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.seg-link a { flex: 1; text-align: center; height: 38px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg-link a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-tema="gece"] .seg-link a.active { background: var(--bg-2); }
.auth-note { margin-top: 16px; font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); }

/* Sekme bağlantıları */
.seg a { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; transition: .2s; white-space: nowrap; }
.seg a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-tema="gece"] .seg a.active { background: var(--bg-2); }
.seg { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.chips a.chip { text-decoration: none; }

/* Slayt renkleri ve görseller */
.slide--deniz { background: linear-gradient(135deg, #2f8077 0%, #1e5853 100%); }
.slide--gece { background: linear-gradient(135deg, #4d72a7 0%, #31497a 100%); }
.slide--kiremit { background: linear-gradient(135deg, #b8694c 0%, #8c4a36 100%); }
.slide--erik { background: linear-gradient(135deg, #7f5d89 0%, #553f62 100%); }
.slide--altin { background: linear-gradient(135deg, #d5a443 0%, #a5741c 100%); }
.slide--mercan { background: linear-gradient(135deg, #f0735f 0%, #c24b3a 100%); }
.art-orb .emoji { font-size: 104px; line-height: 1; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.art-top { position: absolute; inset: 0; margin: auto; width: 210px; height: 210px; animation: top-zipla 2.6s cubic-bezier(.45,.05,.55,.95) infinite; filter: drop-shadow(0 26px 30px rgba(0,0,0,.25)); }
.art-golge { position: absolute; left: 50%; bottom: 6%; width: 150px; height: 18px; margin-left: -75px; border-radius: 50%; background: rgba(0,0,0,.22); animation: golge 2.6s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes top-zipla { 0%,100% { transform: translateY(-26px) rotate(-8deg); } 50% { transform: translateY(18px) rotate(10deg); } }
@keyframes golge { 0%,100% { transform: scaleX(.7); opacity: .5; } 50% { transform: scaleX(1); opacity: .9; } }
.slide .big-count { z-index: 2; }

/* Oyun kartları (emoji simgeler) */
.g-icon { font-size: 36px; line-height: 1; }
.game-card.featured .g-icon { font-size: 58px; }
.game-card.is-yakinda { opacity: .72; }
.game-card.is-yakinda:hover { transform: none; box-shadow: none; }
.tag.soon { background: var(--surface-2); color: var(--muted); }
.players .i { width: 13px; height: 13px; }
.feat-stats span { display: inline-flex; align-items: center; gap: 4px; }
.feat-stats .i { width: 13px; height: 13px; }
.games-grid .bos-mesaj { grid-column: 1 / -1; }
.resume-icon.emoji { font-size: 24px; }

/* Liderler (gerçek veri) */
.king-card .k-player .avatar { border: 3px solid rgba(255,255,255,.75); }
.king-card a:hover h3, .best-card a:hover h3 { text-decoration: underline; }
.board-list li a.who:hover b { color: var(--primary); }
.score.minus { color: var(--muted) !important; }
.mini .m-icon.emoji { font-size: 20px; }
.board-empty { padding: 26px 10px; text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; }

/* Haberler */
.news-cover.c-teal { background: linear-gradient(135deg, #2f8077 0%, #1e5853 100%); }
.news-cover.c-blue { background: linear-gradient(135deg, #4d72a7 0%, #31497a 100%); }
.news-cover.c-accent { background: linear-gradient(135deg, #b8694c 0%, #8c4a36 100%); }
.news-cover.c-plum { background: linear-gradient(135deg, #7f5d89 0%, #553f62 100%); }
.news-cover.c-gold { background: linear-gradient(135deg, #d5a443 0%, #a5741c 100%); }
.news-cover .nc-icon { position: absolute; right: 26px; top: 22px; opacity: .2; }
.news-cover .nc-icon .i { width: 120px; height: 120px; stroke-width: 1.2; }
.news-cover .tag { position: relative; z-index: 2; }
.news-cover .tag .i { width: 12px; height: 12px; }
.news-list-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, border-color .2s; }
.news-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.news-card .news-cover { min-height: 150px; padding: 18px; }
.news-card .nc-icon .i { width: 84px; height: 84px; }
.news-card .news-body { padding: 16px 18px 18px; gap: 8px; flex: 1; }
.news-card h3 { font-size: 18px; }
.news-card p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { overflow: hidden; }
.article .news-cover { min-height: 260px; }
.article-body { padding: 28px 32px 32px; max-width: 760px; }
.article-body h1 { font-size: 32px; font-weight: 800; margin: 10px 0 12px; }
.article-body .lead { font-size: 18px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }

/* Yorumlar */
.review .yanit { margin-top: 2px; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); font-size: 13.5px; }
.review .yanit b { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary); margin-bottom: 2px; }
.review .yanit .i { width: 13px; height: 13px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); }
.stars .i.dolu { fill: currentColor; }
.stars .i.off { color: var(--line); fill: currentColor; }

/* Tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; white-space: nowrap; }
.table tr.me td { background: var(--primary-soft); }
.table tr.me td:first-child { border-radius: 12px 0 0 12px; }
.table tr.me td:last-child { border-radius: 0 12px 12px 0; }
.who-cell { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; }
.who-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Oyun ayrıntı */
.detail-hero { display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }
.detail-art { position: relative; display: grid; place-items: center; min-height: 280px; background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--c) 25%, transparent) 0, transparent 55%), var(--cs); }
.detail-art .g-icon { position: relative; width: 140px; height: 140px; border-radius: 40px; display: grid; place-items: center; background: var(--c); font-size: 76px; box-shadow: 0 18px 34px color-mix(in srgb, var(--c) 35%, transparent); transform: rotate(-6deg); }
.detail-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.detail-body h1 { font-size: 34px; font-weight: 800; }
.detail-body .lead { font-size: 16.5px; color: var(--muted); }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tags .tag { background: var(--cs); color: var(--c); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.facts div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.facts .i { color: var(--c); width: 20px; height: 20px; }
.facts small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.facts b { font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-family: var(--font-head); font-weight: 800; font-size: 13px; }
.mobile-play { display: none; }

/* Mesajlar */
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-item { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px dashed var(--line); }
.thread-list li:last-child .thread-item { border-bottom: 0; }
.thread-item .t-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cs); color: var(--c); flex-shrink: 0; }
.thread-item .t-main { flex: 1; min-width: 0; }
.thread-item .t-main b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item .t-main small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item.is-new .t-main b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.acik { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.pill.yanitlandi { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); border-color: transparent; }
.pill.kapali { background: var(--surface-2); color: var(--muted); }
.pill.bekliyor { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.pill.onayli { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); border-color: transparent; }
.pill.reddedildi { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); border-color: transparent; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-picker label { position: relative; cursor: pointer; }
.type-picker input { position: absolute; opacity: 0; }
.type-picker span { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 800; font-size: 13.5px; transition: .15s; }
.type-picker span .i { color: var(--c); }
.type-picker input:checked + span { border-color: var(--c); background: var(--cs); }
.type-picker input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.msg .msg-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.msg p { white-space: pre-wrap; word-break: break-word; }
.msg--me { align-self: flex-end; background: var(--primary-soft); border-color: transparent; border-bottom-right-radius: 6px; }
.msg--them { align-self: flex-start; border-bottom-left-radius: 6px; }
.msg--them .msg-meta { color: var(--primary); }

/* Profil (gerçek veri) */
.cover-deniz { --cover: linear-gradient(135deg, #2f8077 0%, #1e5853 100%); }
.cover-gece { --cover: linear-gradient(135deg, #4d72a7 0%, #31497a 100%); }
.cover-kiremit { --cover: linear-gradient(135deg, #b8694c 0%, #8c4a36 100%); }
.cover-erik { --cover: linear-gradient(135deg, #7f5d89 0%, #553f62 100%); }
.cover-altin { --cover: linear-gradient(135deg, #d5a443 0%, #a5741c 100%); }
.cover-mercan { --cover: linear-gradient(135deg, #f0735f 0%, #c24b3a 100%); }
.profile-avatar .avatar { width: 124px !important; height: 124px !important; border: 5px solid var(--surface); box-shadow: var(--shadow); }
.profile-avatar .status-dot { width: 24px; height: 24px; border-width: 4px; right: 8px; bottom: 8px; }
.profile-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--green); }
.profile-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.profile-status.oyunda { color: var(--blue); }
.profile-status.mesgul { color: var(--accent); }
.profile-status.cevrimdisi, .profile-status.gorunmez { color: var(--muted); }
.role-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }
.role-chip .i { width: 13px; height: 13px; }
.badge { position: relative; }
.badge .bd-alt { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.badge[title] { cursor: help; }
.xp-bar span { width: var(--xp, 0%); }
.recent-list .r-icon.emoji { font-size: 20px; }
.result.neutral { background: var(--surface-2); color: var(--muted); }
.toggle-row + .toggle-row { margin-top: 0; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
label.swatch { position: relative; cursor: pointer; display: inline-block; }
label.swatch:has(input:checked) { box-shadow: 0 0 0 2.5px var(--primary); }
.private-note { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 700; }

/* Cüzdan defteri */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger .l-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cs, var(--surface-2)); color: var(--c, var(--muted)); flex-shrink: 0; font-size: 19px; }
.ledger .l-main { flex: 1; min-width: 0; }
.ledger .l-main b { display: block; font-size: 14.5px; }
.ledger .l-main small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ledger .l-amt { text-align: right; font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.ledger .l-amt small { display: block; font-family: var(--font-body); font-size: 11.5px; color: var(--muted); font-weight: 700; }

/* Sayfalama */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.pager .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Metin sayfaları */
.text-page { padding: 28px 32px; }
.text-page p { margin: 0 0 14px; line-height: 1.7; }

/* 404 */
.notfound { text-align: center; padding: 60px 16px; }
.notfound .art-top { position: static; margin: 0 auto 10px; width: 120px; height: 120px; }
.notfound h1 { font-size: 30px; margin-bottom: 8px; }
.notfound p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Bildirim slaytı (sağ alt / mobilde en alt) ---------- */
.bildirimler { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 370px; max-width: calc(100% - 32px); pointer-events: none; }
.bildirim {
  --c: var(--primary); --cs: var(--primary-soft);
  position: relative; pointer-events: auto; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start;
  padding: 14px 40px 16px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: translateX(calc(100% + 40px)); opacity: 0; transition: transform .5s cubic-bezier(.22,.8,.24,1), opacity .4s;
}
.bildirim.gir { transform: none; opacity: 1; }
.bildirim.cik { transform: translateY(20px); opacity: 0; }
.bildirim .b-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.bildirim .b-etiket { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.bildirim b { display: block; font-family: var(--font-head); font-size: 15.5px; line-height: 1.3; margin: 1px 0 3px; }
.bildirim p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bildirim .b-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 800; font-size: 13px; color: var(--c); }
.bildirim .b-link .i { width: 14px; height: 14px; transition: transform .2s; }
.bildirim .b-link:hover .i { transform: translateX(3px); }
.bildirim .b-kapat { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.bildirim .b-kapat:hover { background: var(--surface-2); color: var(--text); }
.bildirim .b-ilerleme { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--c) 15%, transparent); }
.bildirim .b-ilerleme span { display: block; height: 100%; background: var(--c); transform-origin: left; animation: fill var(--b-ms, 9000ms) linear forwards; }
.bildirim:hover .b-ilerleme span { animation-play-state: paused; }
.bildirim .b-sira { position: absolute; right: 12px; bottom: 9px; font-size: 11px; font-weight: 800; color: var(--muted); }
.bildirim.t-yeni { --c: var(--green); --cs: color-mix(in srgb, var(--green) 14%, transparent); }
.bildirim.t-uyari { --c: var(--accent); --cs: var(--accent-soft); }
.bildirim.t-odul { --c: var(--gold); --cs: var(--gold-soft); }
.bildirim.t-haber { --c: var(--blue); --cs: var(--blue-soft); }

/* =========================================================
   DUYARLI (ek)
   ========================================================= */
@media (max-width: 1180px) {
  .news-list-page, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .bildirimler { left: 10px; right: 10px; width: auto; max-width: none; bottom: calc(var(--bottom-h) + 10px + env(safe-area-inset-bottom)); }
  .bildirim { transform: translateY(calc(100% + 120px)); }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-art { min-height: 200px; }
  .detail-grid { grid-template-columns: 1fr; }
  .mobile-play { display: block; position: fixed; left: 10px; right: 10px; bottom: calc(var(--bottom-h) + 10px + env(safe-area-inset-bottom)); z-index: 60; transform: translateY(160%); transition: transform .3s; }
  .mobile-play.on { transform: none; }
  .mobile-play .btn { width: 100%; height: 50px; box-shadow: var(--shadow-lg); }
  body.has-mobile-play .bildirimler { bottom: calc(var(--bottom-h) + 70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  .gizle-dar { display: none !important; }
  .page-head { margin: 18px 0 14px; }
  .page-head h1 { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-wrap { padding-top: 18px; }
  .auth-card { padding: 20px 18px; border-radius: 22px; }
  .news-list-page, .reviews-grid { grid-template-columns: 1fr; }
  .article .news-cover { min-height: 170px; }
  .article-body { padding: 20px 18px 22px; }
  .article-body h1 { font-size: 24px; }
  .article-body .lead { font-size: 16px; }
  .detail-body { padding: 20px 18px; }
  .detail-body h1 { font-size: 26px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .facts div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; }
  .type-picker { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 92%; }
  .text-page { padding: 20px 18px; }
  .table th, .table td { padding: 9px 8px; }
  .table .gizle-mobil { display: none; }
  .bildirim { padding: 12px 38px 14px 12px; grid-template-columns: 40px 1fr; gap: 10px; border-radius: 18px; }
  .bildirim .b-icon { width: 40px; height: 40px; border-radius: 12px; }
  .topbar .btn-sm { padding: 0 12px; }
  .profile-avatar .avatar { width: 108px !important; height: 108px !important; }
  .flash { font-size: 14px; }
}
.board-ic { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.game-card.featured .game-body { flex: none; }
.profile-grid > *, .detail-grid > *, .news-grid > *, .reviews-wrap > *, .leaders-grid > * { min-width: 0; }
@media (min-width: 721px) {
  .profile-main { align-items: start; }
  .profile-info, .profile-actions { padding-top: 64px; }
}
