/* =========================================================
   Lumocity — Stil dosyası (modern tema)
   ========================================================= */
:root {
  --bg: #090b18;
  --bg2: #0c1124;
  --card: #121834;
  --card2: #1a2146;
  --glass: rgba(16, 22, 50, .62);
  --glass-strong: rgba(18, 25, 56, .86);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f2f3fa;
  --muted: #8f98c2;
  --accent: #7dd3fc;
  --accent2: #5eead4;
  --good: #22c55e;
  --bad: #ef4444;
  --orange: #fb923c;
  --radius: 20px;
  --shadow: 0 20px 50px -12px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(125, 211, 252, .45); }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #99f6e4; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { line-height: 1.65; }
b, strong { font-weight: 700; }
kbd {
  display: inline-block; min-width: 1.5em; padding: 0 .38em; margin: 0 .2em;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  background: rgba(255, 255, 255, .05); font: inherit; font-size: .78em; font-weight: 600; text-align: center;
}
code { background: rgba(255, 255, 255, .08); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(95deg, #7dd3fc 0%, #a5b4fc 50%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* ---------- Arka plan süsleri ---------- */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 22s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; background: #1e3a8a; top: -180px; right: -120px; }
.o2 { width: 420px; height: 420px; background: #0f4c5c; top: 30%; left: -200px; animation-delay: -8s; opacity: .35; }
.o3 { width: 380px; height: 380px; background: #9a3412; bottom: -200px; right: 20%; animation-delay: -14s; opacity: .22; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.1); } }

/* ---------- Üst menü ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 10, 23, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 14px rgba(125, 211, 252, .5)); }
.nav {
  display: flex; gap: 2px; margin-left: auto; padding: 4px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px;
}
.nav a {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted); font-weight: 600; font-size: .92rem; padding: 8px 15px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--text); }
.nav a.active { color: #0b1020; background: linear-gradient(135deg, rgba(125, 211, 252, .9), rgba(129, 140, 248, .9)); box-shadow: 0 6px 18px -6px rgba(125, 211, 252, .8); }
.icon-btn {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text);
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.05rem; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 16px 56px; }
main.page-enter { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 22px 16px; border-top: 1px solid var(--line); }
.footer p { margin: 0; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: 11px 20px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-weight: 700;
  cursor: pointer; transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: var(--text); }
.btn:active { transform: scale(.96); }
.btn.primary {
  background: linear-gradient(135deg, #7dd3fc, #818cf8 55%, #c084fc); border-color: transparent; color: #0b1020;
  box-shadow: 0 10px 28px -8px rgba(125, 211, 252, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.btn.big { padding: 15px 26px; font-size: 1.02rem; border-radius: 16px; }

/* ---------- Ana sayfa ---------- */
.hero {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; align-items: stretch;
  padding: 12px 0 4px;
}
.hero-text { padding: 26px 4px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px 6px 8px; border-radius: 999px; font-weight: 600; font-size: .88rem;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #c7d2fe;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.05; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; margin: 14px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-card {
  position: relative; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(165, 180, 252, .6), transparent 40%, transparent 60%, rgba(34, 211, 238, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-card-title { align-self: stretch; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; font-weight: 600; }
.name-form { margin-top: 26px; max-width: 420px; }
.name-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--muted); }
.name-form div { display: flex; gap: 8px; }
.name-form input {
  flex: 1; min-width: 0; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit;
}
.name-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); }

.ring { position: relative; width: 180px; height: 180px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(255, 255, 255, .07); }
.ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 8px rgba(125, 211, 252, .6)); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-label span { color: var(--muted); font-size: .82rem; font-weight: 600; }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; width: 100%; }
.mini-stats > div {
  text-align: center; background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px;
}
.mini-stats b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--muted); font-size: .76rem; font-weight: 600; }

.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head .kicker { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 4px; }
.page-head { margin-bottom: 24px; }
.page-head p { max-width: 75ch; }

.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .8s var(--ease); }

/* ---------- Oyun kartları ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.game-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  padding: 20px; border-radius: var(--radius); color: var(--text);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  isolation: isolate;
}
/* Fareyi takip eden ışık */
.game-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 45%);
}
.game-card::after {
  content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 80%, transparent), transparent); opacity: .6;
}
.game-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--c) 55%, transparent); color: var(--text); }
.game-card:hover::before { opacity: 1; }
.game-card.done { opacity: .7; }
.gc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gc-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.75rem; flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 32%, transparent), color-mix(in srgb, var(--c) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--c) 60%, transparent);
}
.game-card h3 { margin: 0; font-size: 1.1rem; }
.game-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.gc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; }
.gc-best { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.gc-play { font-weight: 700; color: var(--c); display: inline-flex; align-items: center; gap: 4px; transition: gap .2s; }
.game-card:hover .gc-play { gap: 8px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  white-space: nowrap;
}
.badge-original {
  display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800;
  background: linear-gradient(135deg, #fde047, #fb923c); color: #1a1300; white-space: nowrap;
}
.badge-original.static { margin-bottom: 10px; }
.done-check {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--good); color: #fff; font-weight: 800; font-size: .9rem;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}
.gc-badges { display: flex; gap: 6px; align-items: center; }

/* ---------- Kategoriler ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); transition: transform .25s var(--ease), border-color .25s;
}
.cat-tile::before { content: ""; position: absolute; width: 90px; height: 90px; right: -30px; top: -30px; border-radius: 50%; background: var(--c); opacity: .14; filter: blur(10px); }
.cat-tile:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-3px); color: var(--text); }
.cat-icon { font-size: 1.5rem; margin-bottom: 6px; }
.cat-tile b { font-weight: 700; }
.cat-tile small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 99px; transition: width 1s var(--ease); box-shadow: 0 0 10px var(--c, var(--accent)); }
.bar.small { width: 90px; margin: 0; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search {
  position: relative; flex: 1 1 260px; max-width: 360px;
}
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; padding: 11px 14px 11px 40px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: .88rem; transition: .2s;
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--c, var(--accent)) 50%, transparent); }
.chip.active { background: var(--c, var(--accent)); color: #0b0d18; border-color: transparent; box-shadow: 0 6px 18px -6px var(--c, var(--accent)); }
.cat-desc { color: var(--muted); margin-top: -6px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.spotlight {
  position: relative; overflow: hidden;
  display: flex; gap: 28px; align-items: center; padding: 32px; border-radius: 28px;
  background:
    radial-gradient(600px circle at 0% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%),
    var(--glass);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.spot-icon {
  font-size: 3.6rem; flex-shrink: 0; width: 110px; height: 110px; border-radius: 30px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  animation: bob 4s ease-in-out infinite alternate;
}
@keyframes bob { from { transform: translateY(-4px) rotate(-4deg); } to { transform: translateY(4px) rotate(4deg); } }
.spotlight p { color: var(--muted); max-width: 70ch; }

/* ---------- Paneller & tablolar ---------- */
.panel {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 24px; margin-bottom: 16px;
}
.panel h3 { margin-bottom: 16px; }
.panel.center { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.stats-top { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.skill-bars { display: grid; gap: 16px; }
.skill-head { display: flex; justify-content: space-between; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.score-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.score-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.score-table th, .score-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.score-table tbody tr { transition: background .2s; }
.score-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.score-table td { font-variant-numeric: tabular-nums; }
.score-table td a { color: var(--text); font-weight: 700; }
.score-table td a:hover { color: var(--accent2); }
.score-table td small { display: block; font-size: .74rem; font-weight: 600; }
.score-table small.orig, .score-table b.orig { color: #fde047; }
.spark { width: 90px; height: 28px; }
.spark polyline { fill: none; stroke: var(--accent2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.settings { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.settings h3 { width: 100%; margin-bottom: 0; }
.name-form.inline { margin: 0; flex: 1; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.about-grid .panel { margin: 0; }
.about-grid h3 { margin-bottom: 8px; }
.about-grid p { color: var(--muted); margin: 0; font-size: .94rem; }
.center-page { text-align: center; padding: 60px 0; }

/* ---------- Oyun ekranı ---------- */
.game-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.game-top h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem;
  padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.back:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.hud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px; border-radius: 20px; margin-bottom: 12px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hud-item { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); transition: background .3s; }
.hud-item span { font-size: .66rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hud-item b { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hud-item.mult.hot { background: rgba(251, 191, 36, .13); }
.hud-item.mult.hot b { color: #fbbf24; }
.hud-item.time.warn { background: rgba(239, 68, 68, .14); }
.hud-item.time.warn b { color: #f87171; animation: pulse .5s infinite alternate; }
.hud-info { margin-left: auto; font-weight: 700; color: var(--muted); padding-right: 8px; display: flex; align-items: center; gap: 8px; }
.hearts i { font-style: normal; color: rgba(255, 255, 255, .16); margin-left: 2px; font-size: 1.1rem; }
.hearts i.on { color: #f43f5e; text-shadow: 0 0 10px rgba(244, 63, 94, .6); }

.stage {
  position: relative; min-height: 500px; border-radius: 28px; padding: 28px 16px;
  background:
    radial-gradient(800px circle at 50% -20%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
    var(--glass);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.stage.flash-good { animation: flashGood .4s; }
.stage.flash-bad { animation: flashBad .4s, shake .3s; }
@keyframes flashGood { 0% { box-shadow: inset 0 0 0 2px var(--good), inset 0 0 60px rgba(34, 197, 94, .25); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes flashBad { 0% { box-shadow: inset 0 0 0 2px var(--bad), inset 0 0 60px rgba(239, 68, 68, .25); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pulse { to { opacity: .45; } }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.play-area { width: 100%; display: flex; flex-direction: column; align-items: center; }
.countdown {
  position: absolute; inset: 0; display: none; place-items: center; z-index: 6;
  font-size: 8rem; font-weight: 800; color: var(--c); background: rgba(8, 9, 15, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 0 40px color-mix(in srgb, var(--c) 70%, transparent);
}
.countdown.show { display: grid; animation: popIn .5s var(--ease); }

.panel.intro, .panel.result { max-width: 580px; text-align: center; background: rgba(10, 12, 22, .6); margin: 0; border-radius: 24px; }
.big-icon {
  font-size: 3rem; width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 38%, transparent);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
}
.intro p { color: var(--muted); }
.howto { text-align: left; color: var(--muted); padding: 0; margin: 18px 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.howto li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); line-height: 1.55; }
.howto li::before {
  content: counter(step); flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c); font-weight: 800; font-size: .8rem;
}
.howto b { color: var(--text); }
.intro-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-weight: 600; margin: 0 0 22px; color: var(--muted); font-size: .88rem; }
.intro-meta span { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.result-score { font-size: 5rem; font-weight: 800; line-height: 1; margin-bottom: 18px; color: var(--c); letter-spacing: -.04em; animation: popIn .5s var(--ease); text-shadow: 0 0 40px color-mix(in srgb, var(--c) 50%, transparent); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.result-grid div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.result-grid b { display: block; font-size: 1.35rem; font-weight: 800; }
.result-grid span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.record { display: inline-block; padding: 6px 16px; border-radius: 99px; background: linear-gradient(135deg, #fde047, #fb923c); color: #1a1300; font-weight: 800; margin-bottom: 10px; animation: popIn .5s; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Ortak oyun öğeleri */
.msg { font-weight: 700; font-size: 1.08rem; color: var(--muted); margin-bottom: 16px; text-align: center; min-height: 1.5em; }
.msg b { color: var(--text); font-size: 1.3em; }
.choice-row { display: grid; gap: 10px; width: 100%; max-width: 560px; margin-top: 24px; }
.choice-row.two { grid-template-columns: 1fr 1fr; }
.choice-row.three { grid-template-columns: repeat(3, 1fr); }
.choice-row.four { grid-template-columns: repeat(4, 1fr); }
.choice { padding: 16px 8px; font-size: 1rem; border-radius: 16px; }
.grid { display: grid; gap: 8px; width: min(100%, 420px); }
.cell {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  cursor: pointer; transition: background .2s, transform .1s, box-shadow .2s; color: var(--text); font: inherit; padding: 0;
  touch-action: manipulation;
}
.cell:hover { background: rgba(255, 255, 255, .1); }
.cell:active { transform: scale(.94); }
.cell.lit { background: var(--c); box-shadow: 0 0 22px var(--c); }
.cell.ok { background: var(--good); box-shadow: 0 0 18px rgba(34, 197, 94, .6); }
.cell.bad { background: var(--bad); }
.cell.missed { background: color-mix(in srgb, var(--c) 45%, transparent); outline: 2px dashed var(--c); }

/* 1) Renk Tuzağı */
.stroop { display: flex; flex-direction: column; align-items: center; width: 100%; }
.stroop-rule { font-weight: 900; letter-spacing: .08em; padding: 8px 20px; border-radius: 99px; font-size: 1rem; }
.stroop-rule.rule-a { background: rgba(255, 255, 255, .9); color: #111; }
.stroop-rule.rule-b { background: linear-gradient(90deg, #ef4444, #eab308, #22c55e, #3b82f6); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.stroop-word { font-size: clamp(3rem, 12vw, 5.5rem); font-weight: 900; margin: 40px 0 10px; letter-spacing: .02em; }
.pop { animation: popIn .25s; }

/* 3) Aynı mı? */
.speed { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sm-card {
  width: 200px; height: 240px; border-radius: 22px; background: #f8f9ff; display: grid; place-items: center;
  box-shadow: var(--shadow); font-size: 7rem; line-height: 1;
}
.sm-card.in { animation: cardIn .25s; }
@keyframes cardIn { from { transform: translateX(60px) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* 4) Sayı Terazisi */
.scale { display: flex; flex-direction: column; align-items: center; width: 100%; }
.scale-beam {
  --tilt: 0deg; position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  width: min(100%, 560px); padding-bottom: 14px; border-bottom: 6px solid var(--c); border-radius: 4px;
  transform: rotate(var(--tilt)); transition: transform .3s;
}
.scale-beam.pop { animation: popIn .25s; }
.pan {
  width: 44%; min-height: 110px; display: grid; place-items: center; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 900; padding: 10px; text-align: center;
}
.pivot { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); color: var(--c); font-size: 1.8rem; }

/* 5) Işık Dizisi */
.simon { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 340px); aspect-ratio: 1; }
.pad {
  border: none; cursor: pointer; background: var(--pc); opacity: .35; transition: opacity .1s, transform .1s, box-shadow .1s;
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 12px; touch-action: manipulation;
}
.pad:nth-child(1) { border-radius: 100% 12px 12px 12px; }
.pad:nth-child(2) { border-radius: 12px 100% 12px 12px; justify-content: flex-end; }
.pad:nth-child(3) { border-radius: 12px 12px 12px 100%; align-items: flex-end; }
.pad:nth-child(4) { border-radius: 12px 12px 100% 12px; align-items: flex-end; justify-content: flex-end; }
.pad.lit { opacity: 1; box-shadow: 0 0 40px var(--pc); transform: scale(1.03); }
.pad kbd { color: #fff; background: rgba(0, 0, 0, .25); }
.simon-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); border: 6px solid var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
}
.simon-center b { font-size: 2rem; font-weight: 900; }
.simon-center small { color: var(--muted); font-size: .7rem; }

/* 6) Harf Karmaşası */
.anagram { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ana-slots, .ana-tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.slot {
  width: 48px; height: 56px; border-radius: 10px; border-bottom: 4px solid var(--c);
  background: rgba(255, 255, 255, .04); display: grid; place-items: center; font-size: 1.6rem; font-weight: 900;
}
.slot.full { background: rgba(255, 255, 255, .1); }
.ana-slots.win .slot { background: var(--good); border-color: var(--good); }
.ana-slots.shake { animation: shake .3s; }
.ana-tiles { margin-top: 28px; }
.ana-tiles.in .tile { animation: popIn .3s; }
.tile {
  width: 56px; height: 60px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(160deg, #fff, #dfe3ff); color: #1a1f45; font: inherit; font-size: 1.7rem; font-weight: 900;
  box-shadow: 0 4px 0 #9aa3d9; transition: transform .1s, opacity .2s; touch-action: manipulation;
}
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 #9aa3d9; }
.tile:disabled { opacity: .15; cursor: default; }

/* 7) Farklı Olanı Bul */
.odd-grid { gap: 6px; width: min(100%, 400px); }
.dot { aspect-ratio: 1; border-radius: 50%; border: none; cursor: pointer; padding: 0; transition: transform .1s; touch-action: manipulation; }
.dot:hover { transform: scale(1.06); }

/* 8) Ok Avcısı */
.flanker { display: flex; flex-direction: column; align-items: center; width: 100%; }
.flank-legend { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-weight: 800; font-size: .9rem; }
.flank-legend span { padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.flank-legend .orange { color: var(--orange); background: rgba(251, 146, 60, .12); }
.flank-box { height: 220px; width: 100%; display: grid; place-items: center; overflow: hidden; }
.flank-row { display: flex; gap: .15em; font-size: clamp(2.4rem, 9vw, 4rem); font-weight: 900; color: #fff; }
.flank-row.reverse { color: var(--orange); }
.big-arrow { font-size: 2rem; padding: 12px; }

/* 9) Hesap Damlaları */
.rain { display: flex; gap: 16px; width: 100%; align-items: stretch; }
.rain-field {
  position: relative; flex: 1; height: 440px; overflow: hidden; border-radius: 18px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .06), rgba(96, 165, 250, .02)); border: 1px solid var(--line);
}
.rain-water {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: linear-gradient(180deg, rgba(56, 189, 248, .6), rgba(37, 99, 235, .8));
  border-top: 2px solid rgba(186, 230, 253, .8);
}
.drop {
  position: absolute; top: 0; width: 104px; padding: 16px 6px 12px; text-align: center; font-weight: 900; font-size: 1.15rem;
  background: radial-gradient(circle at 35% 30%, #bae6fd, #3b82f6 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; color: #0b1437; box-shadow: 0 6px 16px rgba(59, 130, 246, .4);
  will-change: transform;
}
.drop.pop { animation: dropPop .35s forwards; }
.drop.splash { animation: dropSplash .4s forwards; }
@keyframes dropPop { to { opacity: 0; scale: 1.6; filter: brightness(2); } }
@keyframes dropSplash { to { opacity: 0; scale: 1.8 .3; } }
.rain-controls { width: 220px; display: flex; flex-direction: column; gap: 10px; }
.rain-display {
  height: 60px; border-radius: 14px; background: var(--bg); border: 2px solid var(--c);
  display: grid; place-items: center; font-size: 2rem; font-weight: 900;
}
.rain-display.shake { animation: shake .3s; border-color: var(--bad); }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { padding: 16px 0; font-size: 1.3rem; }
.key.ok { background: var(--good); }

/* 10) Sayı Takibi */
.schulte { gap: 6px; width: min(100%, 460px); }
.schulte.in { animation: popIn .3s; }
.cell.num { font-weight: 900; font-size: 1.3rem; }
.cell.num { transform: rotate(var(--r, 0deg)); }
.cell.num.ok { background: rgba(34, 197, 94, .25); color: rgba(255, 255, 255, .3) !important; box-shadow: none; transform: none; }

/* 11) Zihin Pusulası */
.compass { display: flex; flex-direction: column; align-items: center; width: 100%; }
.compass-board { position: relative; width: min(100%, 400px); }
.compass-grid { width: 100%; transition: opacity .3s; }
.compass-board.hide-grid .compass-grid { opacity: .25; }
.compass-grid .cell { cursor: pointer; }
.compass-grid .cell.start { background: var(--c); box-shadow: 0 0 22px var(--c); animation: pulse .6s infinite alternate; }
.compass-arrow { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.compass-arrow span {
  display: flex; align-items: center; gap: 6px; flex-direction: column;
  font-size: 7rem; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 6px 20px rgba(0, 0, 0, .5);
  animation: popIn .2s;
}
.compass-arrow span sub { font-size: 2rem; }
.compass-arrow span.mirror { color: var(--orange); }
.compass-arrow em { font-style: normal; font-size: 1rem; letter-spacing: .2em; background: var(--orange); color: #1a1300; padding: 2px 10px; border-radius: 99px; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .stats-top { grid-template-columns: 1fr; }
  .rain { flex-direction: column; }
  .rain-field { flex: none; height: 340px; }
  .rain-controls { width: 100%; }
  .numpad { grid-template-columns: repeat(6, 1fr); }
  .key { padding: 12px 0; }
}
@media (max-width: 900px) {
  .nav a span { display: none; }
  .nav a { padding: 9px 12px; }
}
/* Telefonda uygulama gibi alt sekme çubuğu */
@media (max-width: 640px) {
  /* backdrop-filter, sabit konumlu alt çubuğu üst menünün içine hapseder; telefonda kapat */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 9, 15, .94); }
  .icon-btn { margin-left: auto; }
  .nav {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; margin: 0;
    justify-content: space-around; padding: 6px; border-radius: 22px;
    background: rgba(16, 18, 30, .86); border: 1px solid var(--line-strong);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8);
  }
  .nav a { flex: 1; flex-direction: column; gap: 3px; padding: 8px 4px; border-radius: 16px; font-size: .68rem; }
  .nav a span { display: block; }
  .nav a svg { width: 21px; height: 21px; }
  body { padding-bottom: 88px; }
  .hero h1 { font-size: 2.2rem; }
  .spot-icon { width: 90px; height: 90px; font-size: 3rem; }
}
@media (max-width: 560px) {
  .choice-row.four { grid-template-columns: 1fr 1fr; }
  .choice-row.three .choice { font-size: .85rem; }
  .stage { padding: 18px 10px; min-height: 440px; }
  .hud-item { min-width: 64px; padding: 4px 8px; }
  .hud-info { margin-left: 0; width: 100%; justify-content: center; }
  .spotlight { flex-direction: column; text-align: center; }
  .slot { width: 38px; height: 46px; font-size: 1.3rem; }
  .tile { width: 44px; height: 50px; font-size: 1.4rem; }
  .compass-arrow span { font-size: 5rem; }
  .sm-card { width: 160px; height: 190px; font-size: 5.5rem; }
}

/* ---------- İlerleme göstergeleri ---------- */
.hud-item.qnum b { color: var(--accent2); }
.hud-trail { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.trail { display: flex; gap: 3px; flex-wrap: nowrap; }
.trail i {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-style: normal; font-size: .72rem; font-weight: 900; color: #fff;
}
.trail i.ok { background: var(--good); }
.trail i.bad { background: var(--bad); }
.trail i:last-child { outline: 2px solid #fff; outline-offset: 1px; animation: popIn .25s; }
.hud-trail small { color: var(--muted); font-weight: 700; font-size: .75rem; }

.answer-mark {
  position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; color: #fff;
  opacity: 0; pointer-events: none; z-index: 5;
}
.answer-mark.ok { background: var(--good); }
.answer-mark.bad { background: var(--bad); }
.answer-mark.show { animation: markPop .7s ease-out; }
@keyframes markPop { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

.trial-label {
  margin-top: 14px; padding: 8px 22px; font-size: 1.15rem; border-radius: 99px; background: rgba(255, 255, 255, .07);
  font-weight: 800; color: var(--muted);
}
.trial-label b { color: var(--accent2); font-size: 1.3em; }
.trial-label.pop { animation: popIn .25s; }
.flank-box { position: relative; }
.flank-row .mid { text-decoration: underline 3px rgba(255, 255, 255, .35); text-underline-offset: 10px; }
.flank-row.reverse .mid { text-decoration-color: rgba(251, 146, 60, .6); }
.flank-row.fixation { color: var(--muted); }
.flank-tag {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-weight: 900; letter-spacing: .15em; color: var(--orange); font-size: .9rem;
}

.step-info { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 26px; margin: -6px 0 14px; font-weight: 800; }
.step-info b { color: var(--text); }
.step-dots { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.step-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.step-dots i.done { background: var(--c); }
.step-dots i.now { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent); }

@media (max-width: 560px) {
  .hud-trail { width: 100%; align-items: center; }
  .trail i { width: 18px; height: 18px; }
}

/* =========================================================
   Yeni oyunlar (Lumosity karşılıkları)
   ========================================================= */
.sm-card.emoji { background: #f8f9ff; font-size: 6rem; }

/* Kart Hafızası */
.nb-row { display: flex; gap: 10px; margin-bottom: 14px; }
.nb-slot { width: 74px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); text-align: center; }
.nb-slot small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; }
.nb-slot b { font-size: 1.5rem; }
.nb-slot.target { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.nb-slot.now { background: rgba(255, 255, 255, .12); }

/* Hazine Avı */
.beach {
  display: grid; gap: 10px; width: min(100%, 520px); padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, #fde68a33, #f59e0b22); border: 1px solid rgba(253, 230, 138, .3);
}
.beach.wave { animation: wave .45s; }
@keyframes wave { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.treasure {
  aspect-ratio: 1; font-size: 2.3rem; border-radius: 16px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .08); transform: rotate(var(--r)); transition: transform .12s;
}
.treasure:hover { transform: rotate(var(--r)) scale(1.08); }
.treasure.ok { background: var(--good); }
.treasure.bad { background: var(--bad); animation: shake .3s; }

/* Otoban Kaçışı */
.road-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.road {
  position: relative; width: min(100%, 330px); height: 420px; overflow: hidden; border-radius: 18px;
  background: #2b2f45; border-left: 6px solid #e5e7eb; border-right: 6px solid #e5e7eb;
}
.lane-lines {
  position: absolute; inset: 0;
  background:
    linear-gradient(#fff 50%, transparent 50%) 33.3% 0 / 4px 80px repeat-y,
    linear-gradient(#fff 50%, transparent 50%) 66.6% 0 / 4px 80px repeat-y;
  opacity: .5;
}
.car, .road-obj { position: absolute; font-size: 2.6rem; line-height: 1; transform: translateX(-50%); }
.car { bottom: 30px; transition: left .12s; transform: translateX(-50%) rotate(-90deg); }
.car.crash { animation: crash .6s; }
@keyframes crash { 0%, 100% { opacity: 1; } 25%, 75% { opacity: .2; } 50% { opacity: 1; } }
.road-obj { top: 0; }

/* Hızlı Bavul */
.pack { display: flex; flex-direction: column; align-items: center; width: 100%; }
.suitcase {
  padding: 22px 28px; border-radius: 18px; background: linear-gradient(160deg, #92400e, #78350f);
  border: 4px solid #451a03; box-shadow: var(--shadow); position: relative; margin-top: 16px;
}
.suitcase::before {
  content: ""; position: absolute; top: -20px; left: 50%; width: 60px; height: 16px; transform: translateX(-50%);
  border: 4px solid #451a03; border-bottom: none; border-radius: 10px 10px 0 0;
}
.poly-box { --u: 22px; display: grid; gap: 2px; }
.poly-box.big { --u: 34px; }
.poly-box i { display: block; border-radius: 4px; }
.poly-box i.hole { background: #1c1917; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7); }
.poly-box i.piece { background: var(--c); }
.pack-options { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.pack-options.in .pack-opt { animation: popIn .25s; }
.pack-opt { flex-direction: column; min-width: 130px; min-height: 140px; }

/* Kahve Telaşı */
.cafe { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cup { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); font: inherit; }
.cup-body {
  position: relative; width: 84px; height: 170px; border: 4px solid #e5e7eb; border-top: none;
  border-radius: 0 0 22px 22px; overflow: hidden; background: rgba(255, 255, 255, .04);
}
.liquid { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #d6a770, #6b3f1d); }
.zone { position: absolute; left: 0; right: 0; background: rgba(34, 197, 94, .35); border-top: 2px dashed #86efac; border-bottom: 2px dashed #86efac; z-index: 1; }
.cup small { font-weight: 800; color: var(--muted); }
.cup.ok .cup-body { border-color: var(--good); box-shadow: 0 0 18px rgba(34, 197, 94, .6); }
.cup.bad .cup-body { border-color: var(--bad); animation: shake .3s; }

/* Ritim Tutucu */
.rhythm { width: min(100%, 380px); display: flex; flex-direction: column; gap: 12px; }
.rh-field { position: relative; height: 400px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.rh-lane { position: relative; border-right: 1px solid var(--line); }
.rh-lane:nth-child(3) { border-right: none; }
.rh-line { position: absolute; left: 0; right: 0; top: calc(100% - 62px); height: 4px; background: #fff; box-shadow: 0 0 12px #fff; }
.rh-note { position: absolute; left: 12%; right: 12%; top: -13px; height: 26px; border-radius: 13px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.rh-lane:nth-child(2) .rh-note { background: #60a5fa; box-shadow: 0 0 14px #60a5fa; }
.rh-lane:nth-child(3) .rh-note { background: #f472b6; box-shadow: 0 0 14px #f472b6; }
.rh-note.pop { animation: dropPop .2s forwards; }
.rh-note.miss { opacity: .25; }
.rh-judge { position: absolute; left: 0; right: 0; top: 35%; text-align: center; font-weight: 900; font-size: 1.6rem; opacity: 0; pointer-events: none; }
.rh-judge.show { animation: markPop .6s; }
.rh-judge.perfect { color: #fde047; }
.rh-judge.good { color: #86efac; }
.rh-judge.miss { color: #fca5a5; }
.rh-pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rh-pad { padding: 18px 0; font-size: 1.4rem; }
.rh-pad.hit { animation: popIn .15s; background: #3b4386; }

/* Zihin Değiştir */
.shift { display: flex; flex-direction: column; align-items: center; width: 100%; }
.shift-board { display: grid; gap: 6px; width: min(100%, 420px); }
.shift-board.two { grid-template-rows: 1fr 1fr; }
.shift-board.four { grid-template-columns: 1fr 1fr; }
.shift-cell {
  position: relative; height: 140px; border-radius: 16px; background: rgba(255, 255, 255, .04);
  border: 2px solid var(--line); display: grid; place-items: center;
}
.shift-cell small { position: absolute; top: 8px; left: 12px; color: var(--muted); font-weight: 800; font-size: .85rem; }
.shift-cell.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.shift-cell.active small { color: var(--text); }
.shift-card { padding: 10px 22px; border-radius: 12px; background: #f8f9ff; color: #1a1f45; font-size: 2.4rem; font-weight: 900; animation: popIn .2s; }

/* Kural Kaosu */
.rules { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 16px; }
.rule-badge { padding: 8px 20px; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #111; font-weight: 800; }
.rule-badge.changed { animation: ruleFlash .9s; }
@keyframes ruleFlash { 0%, 50% { background: var(--orange); transform: scale(1.15); } 100% { transform: none; } }
.rule-target { text-align: center; }
.rule-target small { display: block; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.rcard { min-width: 120px; min-height: 90px; padding: 10px; border-radius: 14px; background: #f8f9ff; display: flex; gap: 4px; justify-content: center; align-items: center; font-size: 2rem; }
.rule-options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rule-opt { flex-direction: column; padding: 10px; }

/* Kayıp Dostlar */
.pets { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pet-status { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.pet-status b { color: var(--text); }
.pet-map { width: min(100%, 470px); }
.pet-map svg { width: 100%; height: auto; display: block; }
.road-line { stroke: #4b5280; stroke-width: 14; stroke-linecap: round; }
.node { fill: #2b3268; stroke: #6b73b8; stroke-width: 2; cursor: pointer; }
.node.near { fill: color-mix(in srgb, var(--c) 45%, #2b3268); stroke: var(--c); stroke-width: 3; }
.emo { font-size: 30px; text-anchor: middle; pointer-events: none; }
.emo.small { font-size: 18px; }
.emo.dim { opacity: .35; }
.car-emo { font-size: 34px; }

/* Mozaik */
.mosaic { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mo-board { display: grid; gap: 3px; width: min(100%, 340px); padding: 6px; border-radius: 14px; background: #0b0e20; border: 4px solid #c8a96a; }
.mo-board.shake { animation: shake .3s; }
.mo-cell { aspect-ratio: 1; border-radius: 6px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.mo-cell.filled { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.mo-tray { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; min-height: 70px; }
.mo-piece { --u: 22px; display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 2px solid transparent; cursor: pointer; }
.mo-piece.sel { border-color: #fff; background: rgba(255, 255, 255, .12); }
.mo-piece i { display: block; border-radius: 4px; }
.mo-piece i.anchor { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .85); }

/* Sigorta Sırası */
.fuse { display: flex; flex-direction: column; align-items: center; width: 100%; }
.fuse-clues { width: min(100%, 520px); margin: 0 0 16px; padding: 12px 12px 12px 34px; border-radius: 14px; background: rgba(255, 255, 255, .05); line-height: 1.8; }
.fuse-clues li.bad { color: #fca5a5; text-decoration: underline wavy #ef4444; }
.fuse-slots { display: flex; gap: 8px; padding: 12px; border-radius: 14px; background: #1f2937; border: 3px solid #4b5563; }
.fuse-slots.win { box-shadow: 0 0 30px #fde047; border-color: #fde047; }
.fuse-slot { width: 76px; height: 110px; border-radius: 10px; border: 2px dashed #6b7280; background: #111827; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; }
.fuse-slot small { color: var(--muted); font-weight: 800; }
.fuse-slot.full { border-style: solid; }
.fuse-slot span, .fuse-item { font-size: .8rem; font-weight: 800; }
.fuse-slot i, .fuse-item i { display: block; width: 22px; height: 50px; border-radius: 6px; background: linear-gradient(90deg, #d1d5db 0 20%, var(--fc) 20% 80%, #d1d5db 80%); }
.fuse-tray { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; min-height: 80px; align-items: center; }
.fuse-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; font-family: inherit; }
.fuse-item.sel { border-color: #fff; background: rgba(255, 255, 255, .14); }

/* Korsan Rotası */
.pirate { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pr-grid { display: grid; gap: 3px; width: min(100%, 470px); padding: 6px; border-radius: 14px; background: #0c4a6e; }
.pr-cell {
  position: relative; aspect-ratio: 1; border: none; border-radius: 6px; background: #0369a1; cursor: pointer;
  font-size: 1.5rem; display: grid; place-items: center; padding: 0; color: #fff;
}
.pr-cell > span { grid-area: 1 / 1; }
.pr-cell.patrol { background: repeating-linear-gradient(45deg, #0369a1 0 6px, #075985 6px 12px); }
.pr-cell.island { background: #a16207; cursor: default; }
.pr-cell.path { background: #0ea5e9; }
.pr-cell.end { outline: 3px solid #fff; outline-offset: -3px; }
.pr-cell small { position: absolute; top: 1px; left: 4px; font-size: .65rem; font-weight: 900; }
.pr-cell .ghost { opacity: .35; }
.pr-cell .ship { font-size: 1.7rem; }
.choice:disabled { opacity: .4; cursor: not-allowed; }

/* Kelime Baloncuğu */
.bubbles { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 10px; }
.bb-prefix { display: flex; gap: 6px; }
.bb-prefix span { width: 60px; height: 70px; border-radius: 14px; background: var(--c); color: #1a1f45; display: grid; place-items: center; font-size: 2.2rem; font-weight: 900; }
.bb-prefix .dots { background: transparent; color: var(--muted); }
.bb-timer { width: min(100%, 360px); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bb-timer i { display: block; height: 100%; background: var(--c); transition: width .1s linear; }
.bb-form { display: flex; gap: 8px; width: min(100%, 420px); }
.bb-input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--c); background: var(--bg); color: var(--text); font: inherit; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; }
.bb-input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.bb-found { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 560px; min-height: 60px; }
.bubble { padding: .4em .9em; border-radius: 99px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), color-mix(in srgb, var(--c) 45%, transparent)); border: 1px solid rgba(255, 255, 255, .3); font-weight: 900; animation: popIn .3s; }

/* Eş Anlam Avı */
.editor { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ed-word { font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 900; padding: 16px 36px; border-radius: 16px; background: #fefce8; color: #1a1f45; box-shadow: var(--shadow); }

/* Kök Bulmaca */
.roots { display: flex; flex-direction: column; align-items: center; width: 100%; }
.root-clue { font-size: 1.15rem; font-weight: 700; padding: 10px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); text-align: center; }
.root-word { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 900; }
.root-word .root { padding: 8px 18px; border-radius: 12px; background: #16a34a; }
.root-word .plus { color: var(--muted); }
.root-word .slot { min-width: 90px; width: auto; height: auto; padding: 8px 18px; border-radius: 12px; border: 3px dashed var(--c); display: inline-block; text-align: center; }
.root-word .slot.ok { background: var(--good); border-style: solid; border-color: var(--good); }
.root-word .slot.bad { background: var(--bad); border-style: solid; border-color: var(--bad); }

/* Büyük Ödül */
.prize { display: flex; flex-direction: column; align-items: center; width: 100%; }
.prize-row { display: flex; align-items: center; gap: 14px; width: 100%; justify-content: center; }
.vs { font-weight: 900; color: var(--muted); }
.prize-pile {
  flex: 1; max-width: 280px; min-height: 230px; padding: 14px; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-content: center; justify-content: center;
}
.prize-pile:hover { border-color: var(--c); }
.prize-pile.pop { animation: popIn .25s; }
.coin {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .9rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--cc) 60%, #fff), var(--cc)); border: 3px solid color-mix(in srgb, var(--cc) 70%, #000);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* Şans Kartları */
.chance { display: flex; flex-direction: column; align-items: center; width: 100%; }
.chance-q { font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: 16px; }
.chance-row { display: flex; gap: 16px; width: 100%; justify-content: center; }
.deck { flex: 1; max-width: 260px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.deck.pop { animation: popIn .25s; }
.deck-cards { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; min-height: 120px; align-content: center; }
.deck-cards i { width: 24px; height: 34px; border-radius: 4px; border: 2px solid rgba(255, 255, 255, .7); }
.deck-count { text-align: center; margin-top: 10px; font-weight: 900; font-size: 1.1rem; }

@media (max-width: 560px) {
  .road { height: 360px; }
  .rh-field { height: 340px; }
  .cup-body { width: 64px; height: 140px; }
  .shift-cell { height: 110px; }
  .fuse-slot { width: 56px; height: 96px; }
  .prize-pile { min-height: 180px; }
  .coin { width: 36px; height: 36px; font-size: .75rem; }
  .bb-prefix span { width: 48px; height: 56px; font-size: 1.8rem; }
  .pr-cell { font-size: 1.1rem; }
  .nb-slot { width: 64px; }
}

/* İstatistik düzeltmeleri */
.rating-cell { display: flex; align-items: center; gap: 8px; }
.rating-cell b { font-size: .85rem; min-width: 3ch; }
.hud-end { padding: 8px 14px; font-size: .85rem; }

/* =========================================================
   Üyelik: üst menü, giriş/üye ol, profil, bildirimler
   ========================================================= */
.btn.sm { padding: 8px 14px; font-size: .86rem; border-radius: 12px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

.auth-area { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .9rem;
  transition: background .2s, border-color .2s;
}
.user-chip:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-strong); color: var(--text); }
.user-chip .avatar, .leaderboard .avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(125, 211, 252, .35), rgba(34, 211, 238, .25));
}
.uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ana sayfadaki üyelik daveti */
.join-cta {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; max-width: 480px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(125, 211, 252, .14), rgba(34, 211, 238, .08)); border: 1px solid rgba(125, 211, 252, .3);
}
.join-cta > div { flex: 1; display: flex; flex-direction: column; }
.join-cta small { color: var(--muted); font-size: .84rem; }
.join-icon { font-size: 1.5rem; }

/* Giriş / üye ol */
.auth-wrap {
  display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 40px; align-items: center;
  min-height: calc(100vh - 220px); padding: 10px 0;
}
.auth-side { position: relative; padding: 20px 0; }
.auth-side h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 8px; }
.auth-side .eyebrow { display: inline-flex; }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.perks li { position: relative; padding: 3px 0 3px 38px; color: var(--muted); line-height: 1.5; }
.perks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(34, 197, 94, .15); color: #4ade80; font-weight: 800; font-size: .85rem;
}
.perks b { color: var(--text); }
.float-icons { position: relative; width: 240px; height: 120px; pointer-events: none; opacity: .7; margin-bottom: 8px; }
.float-icons span { position: absolute; font-size: 1.8rem; animation: bob 4s ease-in-out infinite alternate; }
.float-icons span:nth-child(1) { top: 10px; left: 0; }
.float-icons span:nth-child(2) { top: 56px; left: 40px; animation-delay: -1s; }
.float-icons span:nth-child(3) { top: 4px; left: 84px; animation-delay: -2s; }
.float-icons span:nth-child(4) { top: 60px; left: 124px; animation-delay: -3s; }
.float-icons span:nth-child(5) { top: 12px; left: 166px; animation-delay: -1.5s; }
.float-icons span:nth-child(6) { top: 62px; left: 206px; animation-delay: -2.5s; }

.auth-card {
  position: relative; padding: 26px; border-radius: 28px;
  background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(165, 180, 252, .6), transparent 40%, transparent 60%, rgba(34, 211, 238, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.auth-card h2 { margin: 18px 0 2px; }
.auth-card > form > p.muted { margin: 0 0 16px; font-size: .92rem; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.auth-tabs a { position: relative; z-index: 1; text-align: center; padding: 10px; border-radius: 12px; color: var(--muted); font-weight: 700; transition: color .2s; }
.auth-tabs a.active, .auth-tabs a:hover { color: var(--text); }
.tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px;
  background: linear-gradient(135deg, rgba(125, 211, 252, .9), rgba(129, 140, 248, .9)); transition: transform .3s var(--ease);
}
.tab-ind.right { transform: translateX(100%); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .86rem; font-weight: 600; color: var(--muted); }
.field input:not([type=radio]), .auth-card input:not([type=radio]):not([type=checkbox]) {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); }
.field input.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }
.field-err { color: #fca5a5; font-size: .8rem; font-weight: 600; min-height: 0; }
.field-err:empty { display: none; }
.form-error { padding: 10px 14px; border-radius: 12px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px;
  border: none; background: transparent; cursor: pointer; font-size: 1rem; opacity: .55; transition: opacity .2s, background .2s;
}
.pw-toggle:hover, .pw-toggle.on { opacity: 1; background: rgba(255, 255, 255, .07); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); transition: background .3s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #84cc16; }
.pw-meter[data-s="4"] i { background: #22c55e; }
.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar-pick label { cursor: pointer; }
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick span {
  display: grid; place-items: center; aspect-ratio: 1; font-size: 1.45rem; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: transform .15s, border-color .2s, background .2s;
}
.avatar-pick label:hover span { transform: translateY(-2px); }
.avatar-pick input:checked + span { border-color: var(--accent); background: rgba(125, 211, 252, .22); box-shadow: 0 0 0 3px rgba(125, 211, 252, .25); }
.avatar-pick input:focus-visible + span { outline: 2px solid var(--accent2); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check b { color: var(--text); }
.hint { text-align: center; color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.auth-foot { text-align: center; margin-top: 16px; font-size: .9rem; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--text); }
.auth-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }

/* Profil */
.profile-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px; border-radius: 28px;
  background: radial-gradient(700px circle at 0% 0%, rgba(125, 211, 252, .28), transparent 60%), var(--glass);
  border: 1px solid var(--line);
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; font-size: 3.2rem;
  background: linear-gradient(135deg, rgba(125, 211, 252, .45), rgba(34, 211, 238, .3)); box-shadow: 0 16px 36px -12px rgba(125, 211, 252, .8);
}
.profile-id { flex: 1; min-width: 200px; }
.profile-id h1 { margin: 6px 0 2px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.profile-id p { margin: 0; }
.level-pill { display: inline-flex; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: rgba(253, 224, 71, .14); color: #fde047; border: 1px solid rgba(253, 224, 71, .3); }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 16px; }
.profile-stats > div { padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.profile-stats b { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.profile-stats span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-grid .panel { margin: 0; }
.profile-grid form .btn { margin-top: 4px; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.leaderboard li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.leaderboard li.me { border-color: rgba(125, 211, 252, .45); background: rgba(125, 211, 252, .1); }
.leaderboard .rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); }
.lb-name { flex: 1; font-weight: 700; }
.lb-name small { color: var(--muted); font-weight: 500; }
.lb-score { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-score small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.small { font-size: .85rem; }
.danger-zone { border-color: rgba(239, 68, 68, .25); }
.danger-zone p { margin-top: 0; font-size: .9rem; }
.settings-note { flex: 1; margin: 0; }

/* Bildirim balonları */
#toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; font-weight: 600; font-size: .92rem;
  background: rgba(22, 25, 42, .95); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: toastIn .35s var(--ease);
}
.toast span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--good); color: #fff; font-weight: 800; font-size: .8rem; }
.toast.err span { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .35s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .auth-side { text-align: center; }
  .auth-side .perks { display: none; }
  .float-icons { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .uname { display: none; }
  .user-chip { padding: 3px; }
  .auth-area { margin-left: auto; }
  .auth-area + .icon-btn { margin-left: 0; }
  .auth-card { padding: 20px; }
  .avatar-pick span { font-size: 1.2rem; border-radius: 12px; }
  .profile-hero { padding: 20px; }
  #toasts { top: 70px; width: calc(100% - 32px); }
}

/* =========================================================
   BEYİN HARİTASI — özgün kimlik
   Her beceri beynin bir bölgesi, her oyun o bölgede bir nöron.
   Hafif tutuldu: sürekli animasyon ve bulanıklık efekti yok.
   ========================================================= */
h1, h2, .brand span, .result-score, .ring-label b, .hero-stats b, .count-pill, .rg-head h3 {
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
}
h1 { letter-spacing: -.035em; font-weight: 700; }
h2 { letter-spacing: -.02em; font-weight: 700; }
.brand span { font-weight: 700; letter-spacing: -.02em; }
.auth-tabs a.active { color: #0b1020; }
.eyebrow { color: #c7d2fe; }
.eyebrow .dot { background: #7dd3fc; box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); }
.chip.active { color: #0b1020; }

/* ---------- Ana sayfa ---------- */
.brain-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; padding-top: 8px; }
.brain-intro h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stats div { padding: 10px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.hero-stats b { display: block; font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.hero-stats span { color: var(--muted); font-size: .74rem; font-weight: 600; }

.brain-card {
  position: relative; padding: 18px 18px 14px; border-radius: 28px; box-shadow: var(--shadow);
  background: radial-gradient(420px circle at 55% 45%, rgba(129, 140, 248, .16), transparent 70%), var(--glass);
  border: 1px solid var(--line);
}
.brain-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.legend { display: flex; align-items: center; gap: 4px; font-size: .78rem; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; border: 2px solid #64748b; }
.legend i.on { background: #7dd3fc; border-color: #7dd3fc; }

/* ---------- Beyin SVG ---------- */
.brain { display: block; width: 100%; height: auto; }
.brain .stem { fill: #1a2040; }
.brain .reg-fill { fill-opacity: var(--o); transition: fill-opacity .2s; }
.brain polygon { stroke: rgba(9, 11, 24, .6); stroke-width: 2; }
.brain .region { cursor: pointer; outline: none; }
.brain .region:hover .reg-fill, .brain .region:focus .reg-fill { fill-opacity: calc(var(--o) + .22); }
.brain .gyri path { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.brain .outline { fill: none; stroke: rgba(199, 210, 254, .45); stroke-width: 2.5; pointer-events: none; }
.brain .cerebellum { stroke: rgba(252, 211, 77, .5); stroke-width: 2; }
.brain .cer-lines { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1.6; pointer-events: none; }
.brain .synapse { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; stroke-dasharray: 3 5; pointer-events: none; }
.brain .synapse.on { stroke: rgba(125, 211, 252, .45); stroke-dasharray: none; }
.brain .dendrite { stroke-width: 1.4; stroke-opacity: .2; pointer-events: none; }
.brain .dendrite.on { stroke-width: 2.4; stroke-opacity: .85; }
.brain .neuron { fill: #0d1124; stroke: var(--nc); stroke-width: 2; stroke-opacity: .6; }
.brain .neuron.on { fill: var(--nc); stroke: #fff; stroke-opacity: .9; stroke-width: 1.5; }
.brain .halo { pointer-events: none; }
.brain .node { cursor: pointer; outline: none; }
.brain .node:hover .neuron, .brain .node:focus .neuron { stroke: #fff; stroke-opacity: 1; stroke-width: 3; }
.brain .reg-label {
  font: 700 12px 'Sora', sans-serif; letter-spacing: .08em; text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: #090b18; stroke-width: 3px; stroke-linejoin: round;
}
.brain .reg-label.small { font-size: 10px; }
.brain.mini .reg-label { font-size: 14px; }
.brain-label {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; margin-top: 4px; padding: 9px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); font-size: .86rem;
}
.brain-label b { color: var(--text); }
.brain-label small { color: #c7d2fe; }
.brain-label .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* ---------- Etiketler ve bölge kutuları ---------- */
.count-pill { padding: 6px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: rgba(125, 211, 252, .12); color: #7dd3fc; border: 1px solid rgba(125, 211, 252, .3); }
.region-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.region-tile {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 14px 18px; border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); color: var(--text); transition: transform .2s, border-color .2s;
}
.region-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.region-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--text); }
.rt-icon { font-size: 1.4rem; margin-bottom: 4px; }
.region-tile small { color: var(--c); font-size: .76rem; font-weight: 700; }
.region-tile em { margin-top: 4px; font-style: normal; color: var(--muted); font-size: .76rem; font-weight: 600; }

/* ---------- Oyunlar sayfası: bölge grupları ---------- */
.region-group { margin-bottom: 28px; }
.rg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rg-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800;
  color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.rg-head h3 { margin: 0; }
.rg-head small { color: var(--muted); font-size: .84rem; }
.rg-pct { margin-left: auto; padding: 5px 11px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }

/* ---------- Sonuç ekranı ---------- */
.result-top { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; text-align: left; }
.result-top .result-score { margin-bottom: 4px; }
.result-top p { margin: 0; }
.result-brain { width: 170px; flex-shrink: 0; }
.bld-note { color: var(--muted); font-size: .9rem; }
.bld-note b { color: #7dd3fc; }

/* ---------- Profil ---------- */
.profile-top { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 28px; align-items: center; margin-bottom: 16px; }
.profile-brain { padding: 14px; border-radius: 24px; background: radial-gradient(300px circle at 50% 45%, rgba(129, 140, 248, .16), transparent 70%), var(--glass); border: 1px solid var(--line); }
.profile-side h1 { margin: 4px 0 2px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.profile-side p { margin: 0; }
.next-title { --c: #7dd3fc; display: grid; gap: 4px; max-width: 360px; margin: 16px 0; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.next-title small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.next-title b { font-size: 1.05rem; }

.concept ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); line-height: 1.8; }
.concept b { color: var(--text); }
.concept p { color: var(--muted); margin: 0; }
.join-cta.wide { max-width: none; margin: 22px 0 0; }

@media (max-width: 900px) {
  .brain-hero, .profile-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brain-card { padding: 12px 10px 10px; border-radius: 22px; }
  .brain .reg-label { font-size: 14px; letter-spacing: .04em; }
  .brain .reg-label.small { font-size: 12px; }
  .hero-stats div { flex: 1 1 40%; }
  .rg-head small { display: none; }
  .result-top { flex-direction: column; text-align: center; gap: 6px; }
  .result-brain { width: 150px; }
}

/* =========================================================
   PERFORMANS DÜZELTMELERİ
   Bulanık cam (backdrop-filter), sürekli hareket eden bulanık ışık
   lekeleri ve şehir içindeki yüzlerce SVG animasyonu tarayıcıyı her
   karede yeniden çizime zorluyordu. Görünüm korunarak hafifletildi.
   ========================================================= */
:root {
  --glass: rgba(15, 21, 48, .92);
  --glass-strong: rgba(17, 24, 54, .97);
}
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.topbar { background: rgba(7, 10, 23, .96); }

/* Arka plan: bulanık ve hareketli ışık lekeleri yerine sabit renk geçişleri */
.orb { display: none; }
body {
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(30, 58, 138, .45), transparent 65%),
    radial-gradient(700px 480px at -10% 35%, rgba(15, 76, 92, .3), transparent 65%),
    radial-gradient(800px 400px at 60% 105%, rgba(147, 51, 234, .14), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}


/* Ağır gölge/filtre efektlerini hafiflet */
.brand svg, .logo { filter: none; }

/* Hareket azaltma tercihi olan kullanıcılar için tüm animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
