/* gamedschool — tasarım sistemi */
:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #f8f6f3;
  --surface-3: #f1eeea;
  --border: #ebe7e1;
  --border-2: #e2ddd6;
  --text: #1c1416;
  --text-2: #3d3436;
  --muted: #8b8382;
  --muted-2: #b4adaa;
  --side: #1b1315;
  --side-2: #261c1f;
  --side-3: #31262a;
  --side-text: #ece6e4;
  --side-muted: #918689;
  --accent: #ef3e3a;
  --accent-2: #ff8a1f;
  --grad: linear-gradient(90deg, #ef3b3b 0%, #ff8a1f 100%);
  --grad-d: linear-gradient(135deg, #ef3b3b 0%, #ff8a1f 100%);
  --green: #18b26f;
  --green-2: #4fcf8d;
  --green-soft: #e5f6ed;
  --green-text: #13985d;
  --red: #e5383b;
  --red-soft: #fde9e8;
  --gray-soft: #efece8;
  --purple: #8b5cf6;
  --purple-soft: #efe8fe;
  --amber: #e3a008;
  --amber-soft: #fdf3dc;
  --blue: #3b82f6;
  --blue-soft: #e5effe;
  --lime: #d4f04a;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(40, 24, 20, .04);
  --shadow: 0 1px 2px rgba(40, 24, 20, .04), 0 6px 20px rgba(40, 24, 20, .045);
  --shadow-lg: 0 20px 60px rgba(40, 24, 20, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Press Start 2P', monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120d0e; --surface: #1c1517; --surface-2: #231b1d; --surface-3: #2b2124; --border: #2f2528; --border-2: #3a2e32;
    --text: #f3eeec; --text-2: #d8d0ce; --muted: #9b9092; --muted-2: #6f6567;
    --side: #0b0708; --side-2: #1a1214; --side-3: #241a1d;
    --green-soft: #12301f; --green-text: #4fd690; --red-soft: #3a1717; --gray-soft: #2a2124; --purple-soft: #2a1f45; --amber-soft: #3a2c0e; --blue-soft: #15243e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120d0e; --surface: #1c1517; --surface-2: #231b1d; --surface-3: #2b2124; --border: #2f2528; --border-2: #3a2e32;
  --text: #f3eeec; --text-2: #d8d0ce; --muted: #9b9092; --muted-2: #6f6567;
  --side: #0b0708; --side-2: #1a1214; --side-3: #241a1d;
  --green-soft: #12301f; --green-text: #4fd690; --red-soft: #3a1717; --gray-soft: #2a2124; --purple-soft: #2a1f45; --amber-soft: #3a2c0e; --blue-soft: #15243e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(239, 62, 58, .2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- uygulama iskeleti ---------- */
.app { display: flex; min-height: 100vh; --side-w: 232px; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; width: var(--side-w); flex-shrink: 0;
  background: var(--side); color: var(--side-text); border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; padding: 16px 12px 12px; z-index: 40;
  transition: width .3s var(--ease), transform .35s var(--ease);
}
.side-noanim .sidebar { transition: none; }
.side-logo { display: flex; align-items: center; gap: 8px; padding: 2px 6px 16px 10px; min-height: 52px; }
.side-logo > a { display: flex; overflow: hidden; }
.side-logo img { height: 32px; width: auto; max-width: none; }
.side-logo .logo-mini { display: none; width: 36px; height: 36px; border-radius: 10px; }
.side-logo .ver { font-size: 10px; color: var(--side-muted); font-weight: 500; margin-left: auto; }
.side-logo .admin-chip {
  display: inline-flex; align-items: center; gap: 4px; background: #f7c948; color: #4a3500; font-size: 9px; font-weight: 800;
  letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; margin-left: auto; white-space: nowrap;
}
.side-toggle {
  width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px;
  color: var(--side-muted); transition: background .2s, color .2s, transform .3s var(--ease);
}
.side-toggle:hover { background: var(--side-2); color: #fff; }
.side-toggle svg { width: 16px; height: 16px; }
.side-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--side-muted); padding: 4px 12px 8px; white-space: nowrap; }
.nav {
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; flex: 1; margin: 0 -6px; padding: 4px 6px 12px;
  scrollbar-width: thin; scrollbar-color: transparent transparent; overscroll-behavior: contain;
  mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 22px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 22px), transparent);
}
.nav:hover { scrollbar-color: var(--side-3) transparent; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 9px; }
.nav:hover::-webkit-scrollbar-thumb { background: var(--side-3); }
.nav-label {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--side-muted); padding: 14px 12px 6px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.nav-label::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.06); }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; min-height: 38px;
  font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--side-text) 78%, transparent);
  transition: background .2s, color .2s;
}
.nav a > span:not(.badge):not(.pix) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; transition: transform .25s var(--ease), opacity .2s; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a:hover svg { opacity: 1; transform: translateX(1px); }
.nav a:active { background: var(--side-3); }
.nav a.active { background: rgba(239, 62, 58, .14); color: #fff; font-weight: 600; }
.nav a.active svg { color: var(--accent-2); opacity: 1; }
.nav a.active::before {
  content: ''; position: absolute; left: -6px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad);
}
.nav .badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.nav a.nav-world svg { color: var(--lime); opacity: 1; }
.nav .nav-world .pix {
  font-family: var(--pixel); font-size: 6px; line-height: 1; color: #1b1315; background: var(--lime); padding: 3px 4px 2px; border-radius: 4px; flex-shrink: 0;
}
.nav a.nav-logout { color: #fca5a5; }
.nav a.nav-logout:hover { background: rgba(239,68,68,.15); }
.side-user {
  margin: 8px -12px -12px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.06);
}
.side-user .meta { min-width: 0; flex: 1; }
.side-user .name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .role { font-size: 11px; color: var(--side-muted); white-space: nowrap; }
.side-user button { color: var(--side-muted); padding: 6px; border-radius: 8px; transition: color .2s, background .2s; }
.side-user button:hover { color: #fff; background: var(--side-3); }
.side-user button svg { width: 18px; height: 18px; display: block; }
/* daraltılmış menü: yalnızca simgeler (masaüstü) */
@media (min-width: 901px) {
  .app.side-mini { --side-w: 76px; }
  .side-mini .side-logo { flex-direction: column; padding: 2px 0 12px; gap: 10px; }
  .side-mini .side-logo .logo-full { display: none; }
  .side-mini .side-logo .logo-mini { display: block; }
  .side-mini .side-logo .ver, .side-mini .side-logo .admin-chip, .side-mini .side-label { display: none; }
  .side-mini .side-toggle svg path:last-child { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
  .side-mini .nav-label { padding: 10px 0 6px; font-size: 0; }
  .side-mini .nav a { justify-content: center; padding: 8px; gap: 0; }
  .side-mini .nav a > span { display: none; }
  .side-mini .nav a .badge { display: grid; position: absolute; top: 3px; right: 6px; min-width: 15px; height: 15px; font-size: 9px; padding: 0 4px; }
  .side-mini .side-user { flex-direction: column; padding: 12px 0; gap: 6px; }
  .side-mini .side-user .meta { display: none; }
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 24px 30px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 0 12px; position: sticky; top: 0; z-index: 30; padding-top: 0; }
.topbar::before { content: ''; position: absolute; inset: -14px -24px 0 -24px; background: linear-gradient(var(--bg) 70%, transparent); z-index: -1; }
.welcome {
  display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 6px 7px 6px 6px; border-radius: 99px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.welcome .small { font-size: 10px; color: var(--muted); line-height: 1.1; }
.welcome .big { font-size: 13px; font-weight: 700; line-height: 1.2; }
.lvl {
  background: var(--lime); color: #2b3300; font-size: 11px; font-weight: 800; height: 28px; min-width: 28px; padding: 0 7px;
  border-radius: 99px; display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.topbar .spacer { flex: 1; }
.search {
  position: relative; width: min(350px, 40vw);
}
.search input {
  width: 100%; height: 42px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); padding: 0 16px 0 40px;
  font-size: 14px; outline: none; transition: border .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,62,58,.1); }
.search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; max-height: 420px; overflow: auto; animation: pop .2s var(--ease);
}
.search-results.open { display: block; }
.search-results .grp { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .06em; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.search-results a:hover { background: var(--surface-2); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border);
  position: relative; transition: transform .2s var(--spring), background .2s; flex-shrink: 0;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot {
  position: absolute; top: -3px; right: -3px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px;
  border-radius: 99px; display: grid; place-items: center; border: 2px solid var(--bg); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.streak-btn { background: var(--grad-d); border: 0; color: #fff; box-shadow: 0 6px 16px rgba(255,120,30,.35); }
.streak-btn svg { animation: flame 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.menu-btn { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 10px; display: none; z-index: 50; animation: pop .22s var(--ease);
}
.dropdown.open { display: block; }
.dropdown h4 { font-size: 15px; padding: 6px 8px 10px; display: flex; justify-content: space-between; align-items: center; }
.dropdown h4 button { font-size: 12px; color: var(--accent); font-weight: 600; }
.notif { display: flex; gap: 10px; padding: 10px; border-radius: 12px; font-size: 13px; align-items: flex-start; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--red-soft); }
.notif .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex-shrink: 0; }
.notif .ic svg { width: 16px; }
.notif .t { color: var(--muted); font-size: 11px; margin-top: 2px; }
.streak-pop { text-align: center; padding: 14px; }
.streak-pop .num { font-size: 44px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.week-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.week-dots span { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.week-dots span.on { background: var(--grad-d); color: #fff; }

.view { animation: view-in .45s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .28s ease-out both; }
.stagger > *:nth-child(1) { animation-delay: 0s; } .stagger > *:nth-child(2) { animation-delay: .02s; }
.stagger > *:nth-child(3) { animation-delay: .04s; } .stagger > *:nth-child(4) { animation-delay: .06s; }
.stagger > *:nth-child(5) { animation-delay: .08s; } .stagger > *:nth-child(6) { animation-delay: .1s; }
.stagger > *:nth-child(7) { animation-delay: .12s; } .stagger > *:nth-child(8) { animation-delay: .14s; }
.stagger > *:nth-child(n+9) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- ortak bileşenler ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.page-head h1 svg { color: var(--accent-2); width: 24px; height: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-title svg { width: 17px; color: var(--purple); }
.card-title .more { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }
.hover-lift { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 99px;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .2s var(--spring), box-shadow .2s, background .2s, opacity .2s;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(239,62,58,.3); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(239,62,58,.4); }
.btn-dark { background: var(--text); color: var(--bg); border: 0; }
.btn-green { background: var(--green); color: #fff; border: 0; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-soft-red { background: var(--red-soft); color: var(--red); border: 0; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px;
  background: var(--gray-soft); color: var(--muted); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.green { background: var(--green-soft); color: var(--green-text); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.purple { background: var(--purple-soft); color: var(--purple); }
.chip.amber { background: var(--amber-soft); color: #b77d00; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 0 14px; height: 46px; outline: none;
  transition: border-color .2s, box-shadow .2s; font-size: 14px;
}
.textarea { padding: 12px 14px; height: auto; min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,62,58,.1); }
.label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; color: var(--text-2); }
.field { margin-bottom: 14px; }

.avatar {
  border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; line-height: 1; user-select: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}
.avatar.sq { border-radius: 12px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 8px; animation: float 3s ease-in-out infinite; display: inline-block; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .8s var(--ease); }
.progress.green > i { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); padding: 4px; border-radius: 99px; gap: 2px; }
.tabs button { padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .25s var(--ease); }
.tabs button.on { background: var(--text); color: var(--bg); }

/* toast */
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast {
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; animation: toast-in .4s var(--spring); max-width: 360px;
}
.toast.err { background: var(--red); color: #fff; }
.toast.ok { background: var(--green); color: #fff; }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(20, 10, 12, .45); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 200;
  animation: fade .25s; padding: 16px;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: 24px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px;
  box-shadow: var(--shadow-lg); animation: modal-in .4s var(--spring);
}
.modal.wide { width: min(860px, 100%); }
.modal h3 { font-size: 20px; margin-bottom: 4px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }

/* XP pop */
.xp-pop {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 400; pointer-events: none;
  font-weight: 900; font-size: 42px; color: var(--lime); text-shadow: 0 4px 0 #6b7d00, 0 10px 30px rgba(0,0,0,.3); font-family: var(--pixel);
  animation: xp-up 1.6s var(--ease) forwards;
}
@keyframes xp-up { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(.9); } }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 350; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); } }

/* ---------- ana sayfa ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 28px 30px; color: #fff; background: var(--grad-d);
  display: flex; align-items: center; gap: 24px; min-height: 200px;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.hero::before { width: 320px; height: 320px; right: -80px; top: -140px; animation: float 6s ease-in-out infinite; }
.hero::after { width: 180px; height: 180px; right: 220px; bottom: -110px; animation: float 7s ease-in-out infinite reverse; }
.hero h2 { font-size: 30px; font-weight: 800; position: relative; }
.hero p { opacity: .92; position: relative; margin-top: 6px; max-width: 520px; }
.hero .xpbar { margin-top: 18px; max-width: 420px; position: relative; }
.hero .xpbar .progress { background: rgba(255,255,255,.25); height: 10px; }
.hero .xpbar .progress > i { background: var(--lime); }
.hero .xpbar .row { justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; opacity: .95; }
.hero .art { margin-left: auto; position: relative; z-index: 1; }
.pixel-scene { width: 230px; height: 150px; image-rendering: pixelated; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 12px; align-items: center;
}
.stat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.stat .ic svg { width: 21px; height: 21px; }
.stat .v { font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat .l { font-size: 12px; color: var(--muted); }
.quest { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); transition: background .2s, transform .2s; }
.quest:hover { transform: translateX(3px); }
.quest .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.quest .ic svg { width: 18px; color: var(--accent-2); }
.quest.done .ic { background: var(--green); color: #fff; }
.quest.done .ic svg { color: #fff; }
.quest .meta { flex: 1; min-width: 0; }
.quest .progress { margin-top: 6px; height: 6px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--grad-d); min-height: 4px; transform-origin: bottom; animation: grow .9s var(--ease) both; position: relative; }
.bars .b i.zero { background: var(--surface-3); }
.bars .b span { font-size: 11px; color: var(--muted); }
.bars .b i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; font-style: normal; }
@keyframes grow { from { transform: scaleY(0); } }
.lb-mini { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 12px; }
.lb-mini .rk { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.lb-mini.me { background: var(--red-soft); }

/* ---------- ders/test kartları ---------- */
.subject-card { position: relative; overflow: hidden; cursor: pointer; }
.subject-card .emoji { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; transition: transform .35s var(--spring); }
.subject-card:hover .emoji { transform: rotate(-8deg) scale(1.1); }
.subject-card h3 { font-size: 18px; }
.subject-card .glow { position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px; opacity: .12; transition: transform .5s var(--ease); }
.subject-card:hover .glow { transform: scale(1.4); }
.test-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.test-card h3 { font-size: 16px; }
.test-card .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }
.test-card .foot svg { width: 13px; flex: 0 0 auto; }
.test-card .foot > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.diff-kolay { background: var(--green-soft); color: var(--green-text); }
.diff-orta { background: var(--amber-soft); color: #b77d00; }
.diff-zor { background: var(--red-soft); color: var(--red); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar button { padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: all .2s; }
.filter-bar button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- test çözme ---------- */
.solve-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.subj-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--red-soft); color: var(--accent); margin-bottom: 6px; }
.solve-head h1 { font-size: 22px; font-weight: 700; }
.timer {
  background: var(--side); color: #fff; height: 44px; padding: 0 18px; border-radius: 12px; display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; box-shadow: var(--shadow);
}
.timer .tico { font-size: 16px; display: inline-block; animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { transform: rotate(12deg); } }
.timer.warn { background: var(--red); animation: warn 1s infinite; }
@keyframes warn { 50% { box-shadow: 0 0 0 8px rgba(229,56,59,.18); } }
.solve-progress { height: 6px; background: var(--border); border-radius: 99px; margin-bottom: 18px; overflow: hidden; }
.solve-progress i { display: block; height: 100%; background: var(--grad); transition: width .5s var(--ease); }
.solve { display: grid; grid-template-columns: 1fr 232px; gap: 18px; align-items: start; }
.qcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px 24px; }
.qnum { display: inline-block; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 99px; margin-bottom: 14px; }
.qtext { font-size: 18px; font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
.qtext.anim { animation: q-in .4s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateX(16px); } }
.opts { display: flex; flex-direction: column; gap: 9px; }
.opt {
  display: flex; align-items: center; gap: 14px; padding: 9px 14px; min-height: 56px; border-radius: 12px; border: 1.5px solid var(--border-2);
  background: var(--surface); text-align: left; font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s, transform .2s var(--spring);
  width: 100%;
}
.opt:hover { border-color: #f3a39f; transform: translateX(3px); }
.opt .letter {
  width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.opt.sel { border-color: var(--accent); background: var(--red-soft); }
.opt.sel .letter { background: var(--grad); color: #fff; transform: scale(1.1); }
.opt.pick { animation: pick .35s var(--spring); }
@keyframes pick { 40% { transform: scale(.98); } }
.solve-nav { display: flex; justify-content: space-between; margin-top: 24px; }
.qmap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 70px; }
.qmap .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.qmap .head span { color: var(--muted); font-size: 12px; font-weight: 500; }
.qmap .cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.qmap .cells button {
  aspect-ratio: 1; border-radius: 9px; background: var(--surface-3); font-weight: 700; font-size: 13px; transition: all .2s var(--spring); border: 2px solid transparent;
}
.qmap .cells button:hover { transform: scale(1.08); }
.qmap .cells button.cur { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(239,62,58,.12); }
.qmap .cells button.ans { background: var(--grad-d); color: #fff; }
.qmap .cells button.ans.cur { border-color: var(--text); }

/* ---------- sonuç ---------- */
.result-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 34px 26px; display: flex; align-items: center; gap: 26px; color: #fff;
  background: linear-gradient(110deg, #14b571 0%, #22c07c 50%, #5ad597 100%);
}
.result-hero.mid { background: linear-gradient(110deg, #f08c1c 0%, #f5a524 55%, #f8c14f 100%); }
.result-hero.low { background: linear-gradient(110deg, #e5383b 0%, #ef5c4f 55%, #f68a6b 100%); }
.result-hero .sparkles i { position: absolute; color: rgba(255,255,255,.7); font-style: normal; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
.ring { position: relative; width: 168px; height: 168px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg { fill: #fff; }
.ring .track { fill: none; stroke: rgba(24,178,111,.15); stroke-width: 11; }
.ring .val { fill: none; stroke: currentColor; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--green); }
.ring .center b { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ring .center small { font-size: 10px; font-weight: 600; color: #6b7f74; letter-spacing: .08em; }
.ring-outer { padding: 6px; border-radius: 50%; background: rgba(255,255,255,.35); }
.result-hero .info { flex: 1; position: relative; z-index: 1; }
.result-hero .tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); padding: 4px 9px; border-radius: 7px; }
.result-hero h1 { font-size: 30px; font-weight: 800; margin: 8px 0 4px; }
.result-hero .sub { font-size: 14px; font-weight: 500; }
.rstats { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rstat { background: #fff; color: var(--text); border-radius: 14px; padding: 12px 14px; min-width: 78px; animation: rise .5s var(--spring) both; }
.rstat svg { width: 16px; height: 16px; }
.rstat b { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; margin-top: 4px; }
.rstat span { font-size: 11px; color: #6b6365; }
.trophy { position: relative; z-index: 1; text-align: center; margin-right: 20px; }
.trophy .cup { font-size: 96px; line-height: 1; display: inline-block; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.trophy .cup-label {
  display: inline-block; margin-top: 10px; background: rgba(0,0,0,.18); font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 6px 14px; border-radius: 99px;
}
.result-actions { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 18px; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.review-head h3 { font-size: 16px; display: flex; gap: 6px; align-items: center; }
.review-head h3 svg { width: 16px; color: var(--purple); }
.review-filters { display: flex; gap: 6px; }
.review-filters button { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; transition: opacity .2s, box-shadow .2s; }
.review-filters button.off { opacity: .4; }
.rq { border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; animation: rise .45s var(--ease) both; }
.rq .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rq .top b { font-size: 15px; }
.rq .text { font-weight: 600; margin-bottom: 12px; }
.rq .opt { cursor: default; min-height: 46px; margin-bottom: 8px; }
.rq .opt:hover { transform: none; border-color: var(--border-2); }
.rq .opt.correct { border-color: var(--green); background: var(--green-soft); }
.rq .opt.correct .letter { background: var(--green); color: #fff; }
.rq .opt.wrong { border-color: var(--red); background: var(--red-soft); }
.rq .opt.wrong .letter { background: var(--red); color: #fff; }
.rq .opt .note { margin-left: auto; }

/* ---------- liste satırları ---------- */
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.list-row + .list-row { margin-top: 10px; }
.score-pill { min-width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.score-hi { background: var(--green-soft); color: var(--green-text); }
.score-mid { background: var(--amber-soft); color: #b77d00; }
.score-lo { background: var(--red-soft); color: var(--red); }

/* liderlik */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin: 10px 0 26px; }
.podium .p { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise .6s var(--spring) both; }
.podium .p .stand { width: 120px; border-radius: 18px 18px 6px 6px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 30px; font-family: var(--pixel); }
.podium .p1 .stand { height: 140px; background: linear-gradient(#f7c948, #e3a008); }
.podium .p2 .stand { height: 105px; background: linear-gradient(#cbd5e1, #94a3b8); }
.podium .p3 .stand { height: 80px; background: linear-gradient(#f0a46c, #c26a2d); }
.podium .p1 { animation-delay: .25s; } .podium .p2 { animation-delay: .1s; } .podium .p3 { animation-delay: .4s; }
.podium .crown { font-size: 26px; animation: float 2.4s ease-in-out infinite; }
.lb-table .list-row .rk { width: 32px; font-weight: 800; color: var(--muted); font-size: 15px; text-align: center; }
.lb-table .list-row.me { border-color: var(--accent); background: var(--red-soft); }

/* topluluk */
.composer textarea { border: 0; outline: none; width: 100%; resize: none; background: transparent; font-size: 15px; min-height: 60px; }
.post { animation: rise .45s var(--ease) both; }
.post .head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post .body { white-space: pre-wrap; word-wrap: break-word; }
.post .actions { display: flex; gap: 6px; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.post .actions button { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .2s; }
.post .actions button:hover { background: var(--surface-2); color: var(--text); }
.post .actions button.liked { color: var(--accent); }
.post .actions button.liked svg { fill: currentColor; animation: heart .5s var(--spring); }
@keyframes heart { 30% { transform: scale(1.4); } }
.post .actions svg { width: 16px; }
.shared-res { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(110deg, var(--green-soft), transparent); border: 1px solid var(--border); }
.comments { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.comment { display: flex; gap: 8px; font-size: 14px; }
.comment .bubble { background: var(--surface-2); padding: 8px 12px; border-radius: 14px; }

/* mesajlar */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 160px); min-height: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; padding: 10px; }
.chat-list a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; transition: background .2s; }
.chat-list a:hover, .chat-list a.on { background: var(--surface-2); }
.chat-list .unread { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; margin-left: auto; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.msg { max-width: 70%; padding: 9px 13px; border-radius: 18px; font-size: 14px; background: var(--surface); border: 1px solid var(--border); align-self: flex-start; animation: rise .3s var(--ease); white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--grad-d); color: #fff; border: 0; }
.msg .t { font-size: 10px; opacity: .65; margin-top: 2px; text-align: right; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }

/* profil */
.profile-hero { border-radius: var(--radius-xl); background: var(--side); color: #fff; padding: 26px; display: flex; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.profile-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,138,31,.35), transparent 45%), radial-gradient(circle at 60% 120%, rgba(239,62,58,.35), transparent 45%); }
.profile-hero > * { position: relative; z-index: 1; }
.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatar-pick button { border-radius: 14px; padding: 6px; border: 2px solid transparent; transition: transform .2s var(--spring); display: grid; place-items: center; }
.avatar-pick button:hover { transform: scale(1.08); }
.avatar-pick button.on { border-color: var(--accent); }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); transition: transform .2s var(--spring); }
.color-pick button.on { box-shadow: 0 0 0 2px var(--text); transform: scale(1.1); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.badge-item { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); font-size: 12px; font-weight: 600; }
.badge-item .e { font-size: 30px; display: block; margin-bottom: 4px; }
.badge-item.locked { opacity: .35; filter: grayscale(1); }

/* ---------- Pixel Dünyası ---------- */
.world-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: calc(100vh - 90px); min-height: 480px; background: #2b8a3e; border: 4px solid var(--side); box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; }
.world-wrap canvas.w-main { display: block; width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; cursor: pointer; }
.world-wrap:fullscreen, .world-wrap.is-fs { border-radius: 0; border: 0; width: 100vw; height: 100vh; min-height: 0; }
.world-wrap.pseudo-fs { position: fixed; inset: 0; z-index: 150; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
.world-wrap:fullscreen .toasts { z-index: 600; }
.w-hud { position: absolute; font-family: var(--pixel); color: #fff; pointer-events: none; z-index: 5; }
.w-panel { background: rgba(24, 16, 18, .9); border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1), 4px 4px 0 rgba(0,0,0,.35); border-radius: 8px; padding: 10px 12px; pointer-events: auto; }
.w-title { font-size: 10px; color: var(--lime); margin-bottom: 6px; letter-spacing: .04em; }
.w-top { top: 14px; left: 14px; }
/* sol üst durum kartı */
.w-status { font-size: 8px; line-height: 1.6; width: 244px; display: flex; flex-direction: column; gap: 7px; padding: 10px 11px 9px; }
.w-status .w-title { margin: 0; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 2px 2px 0 #000; }
.w-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.w-chip { display: inline-flex; align-items: center; gap: 4px; background: #2e2326; border: 2px solid #000; border-radius: 5px; padding: 3px 6px; font-size: 8px; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); }
.w-chip b { font-weight: normal; }
.w-chip.gold { color: #fcd34d; }
.w-lvl { display: flex; align-items: center; gap: 6px; }
.w-lvl b { font-weight: normal; background: var(--lime); color: #000; padding: 2px 5px 1px; border-radius: 3px; font-size: 8px; box-shadow: 2px 2px 0 #000; }
.w-xp { flex: 1; height: 10px; background: #3a2e30; border: 2px solid #000; border-radius: 3px; overflow: hidden; }
.w-xp i { display: block; height: 100%; background: linear-gradient(#e4ff6b 0 40%, var(--lime) 40%); transition: width .5s; }
.w-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 7px; color: #d8cfcc; }
.w-meta i { font-style: normal; }
.w-srv { font-size: 7px; color: var(--lime); margin-top: 0; opacity: .85; }
/* sağ üst araç çubuğu */
.w-right { top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.w-tools { display: flex; gap: 6px; pointer-events: auto; flex-wrap: wrap; justify-content: flex-end; }
.w-tgroup { display: flex; gap: 2px; padding: 3px; background: rgba(24,16,18,.9); border: 3px solid #000; border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 3px 3px 0 rgba(0,0,0,.35); }
.w-btn {
  position: relative; min-width: 36px; height: 36px; padding: 0 6px; display: inline-grid; place-items: center; background: rgba(24,16,18,.9); color: #fff; border: 3px solid #000; border-radius: 7px;
  font-family: var(--pixel); font-size: 12px; box-shadow: inset 0 -3px 0 rgba(255,255,255,.08), 3px 3px 0 rgba(0,0,0,.35); pointer-events: auto; cursor: pointer;
  transition: transform .1s steps(2), background .15s, color .15s;
}
.w-btn:hover { background: var(--accent); }
.w-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0,0,0,.35); }
.w-btn.wide { width: 100%; margin-top: 10px; font-size: 9px; background: var(--accent); }
.w-ico { width: 22px; height: 22px; display: block; image-rendering: pixelated; }
.w-btn.w-tb { width: 36px; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 6px; color: #e9e1de; }
.w-btn.w-tb:hover { background: rgba(255,255,255,.1); color: var(--lime); }
.w-btn.w-tb:active { transform: translateY(2px); background: rgba(255,255,255,.16); }
.w-btn.w-tb.on { background: var(--lime); color: #000; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.w-btn.w-tb[data-off] { color: #6f6360; }
.w-btn.w-tb[data-off]::before { content: ''; position: absolute; left: 7px; right: 7px; top: 50%; height: 3px; background: #ef4444; transform: rotate(-35deg); box-shadow: 0 0 0 1px #000; }
/* ipucu baloncukları */
.w-btn[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 9px); transform: translate(-50%, -4px); background: #000; color: #fff; font: 7px var(--pixel); padding: 5px 7px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; z-index: 30; }
.w-btn[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
.w-tools .w-tgroup:last-child .w-btn:last-child::after { left: auto; right: 0; transform: translate(0, -4px); }
.w-tools .w-tgroup:last-child .w-btn:last-child:hover::after { transform: none; }
.w-bottom .w-btn[data-tip]::after { top: auto; bottom: calc(100% + 9px); transform: translate(-50%, 4px); }
.w-bottom .w-btn[data-tip]:hover::after { transform: translate(-50%, 0); }
@media (hover: none) { .w-btn[data-tip]::after { display: none; } }
.w-minimap { padding: 4px; cursor: crosshair; border-radius: 9px; }
.w-minimap canvas { width: 192px; height: 129px; display: block; image-rendering: pixelated; border: 2px solid #000; border-radius: 4px; }
.w-online { width: 220px; max-height: 260px; overflow: auto; font-size: 8px; }
.w-orow { display: flex; justify-content: space-between; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed rgba(255,255,255,.12); cursor: pointer; }
.w-orow:hover { color: var(--lime); }
.w-orow.me { color: var(--lime); cursor: default; }
.w-prompt { left: 50%; bottom: 128px; transform: translateX(-50%); font-size: 10px; display: none; animation: bob 1s ease-in-out infinite; pointer-events: auto; cursor: pointer; white-space: nowrap; }
.w-prompt.show { display: block; }
@keyframes bob { 50% { transform: translate(-50%, -5px); } }
.w-prompt kbd { background: var(--lime); color: #000; padding: 3px 6px; border-radius: 3px; margin-right: 8px; font-family: var(--pixel); }
.w-log { left: 14px; bottom: 16px; width: min(320px, 40%); display: flex; flex-direction: column; gap: 3px; font-family: var(--font); }
.w-line { background: rgba(20,12,14,.7); padding: 5px 9px; border-radius: 4px; font-size: 12px; animation: rise .3s var(--ease); word-break: break-word; }
.w-line b { color: var(--lime); font-weight: 700; }
.w-bottom { left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(460px, calc(100% - 28px)); pointer-events: none; }
/* alt dok: emojiler + hareketler */
.w-emotes { display: flex; align-items: center; gap: 2px; padding: 3px; background: rgba(24,16,18,.9); border: 3px solid #000; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 3px 3px 0 rgba(0,0,0,.35); pointer-events: auto; }
.w-emotes .w-btn { font-family: sans-serif; font-size: 18px; }
.w-btn.w-emo { width: 36px; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 6px; transition: transform .12s, background .12s; }
.w-btn.w-emo:hover { background: rgba(255,255,255,.1); transform: translateY(-3px) scale(1.12); }
.w-btn.w-emo:active { transform: scale(.92); }
.w-sep { width: 2px; align-self: stretch; margin: 5px 4px; background: rgba(255,255,255,.14); border-radius: 2px; }
/* sohbet çubuğu */
.w-chat { display: flex; align-items: center; gap: 6px; width: 100%; pointer-events: auto; background: rgba(24,16,18,.9); border: 3px solid #000; border-radius: 10px; padding: 4px 4px 4px 8px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 3px 3px 0 rgba(0,0,0,.35); transition: box-shadow .15s; }
.w-chat:focus-within { box-shadow: inset 0 0 0 2px var(--lime), 3px 3px 0 rgba(0,0,0,.35); }
.w-chat kbd { font: 8px var(--pixel); background: #3a2e30; color: #d8cfcc; border: 2px solid #000; border-radius: 4px; padding: 4px 5px 3px; }
.w-chat:focus-within kbd { background: var(--lime); color: #000; }
.w-chat input { flex: 1; min-width: 0; font-family: var(--pixel); font-size: 9px; background: transparent; color: #fff; border: 0; padding: 9px 4px; outline: none; }
.w-chat input::placeholder { color: #8d807c; }
.w-chat button { display: grid; place-items: center; width: 40px; height: 34px; background: var(--accent); color: #fff; border: 3px solid #000; border-radius: 7px; padding: 0; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.w-chat button:hover { filter: brightness(1.12); }
.w-chat button .w-ico { width: 18px; height: 18px; }
/* park etmiş arabanın sağ tık menüsü */
.w-ctx { position: absolute; z-index: 25; width: 210px; padding: 6px; display: flex; flex-direction: column; gap: 3px; font-family: var(--pixel); animation: modal-in .18s var(--spring); }
.w-ctx-head { font-size: 8px; color: var(--lime); padding: 5px 6px 7px; border-bottom: 2px solid rgba(255,255,255,.1); margin-bottom: 2px; display: flex; flex-direction: column; gap: 5px; }
.w-ctx-head small { font-size: 6px; color: #b2a6a3; }
.w-ctx button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; color: #fff; border: 0; border-radius: 5px; padding: 8px 7px; font: 8px var(--pixel); cursor: pointer; }
.w-ctx button span { flex: 1; }
.w-ctx button:hover { background: rgba(255,255,255,.1); color: var(--lime); }
.w-ctx button.warn:hover { background: rgba(239,68,68,.22); color: #fecaca; }
.w-ctx button.ghost { color: #9b8f8c; }
.w-ctx kbd { font: 7px var(--pixel); background: #3a2e30; border: 2px solid #000; border-radius: 3px; padding: 2px 4px; color: #d8cfcc; }
.w-help { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 9px; line-height: 2.2; width: min(360px, calc(100% - 32px)); text-align: center; z-index: 8; animation: modal-in .4s var(--spring); }
.w-help .w-title { font-size: 12px; margin-bottom: 10px; }
.w-dpad { position: absolute; right: 14px; bottom: 124px; display: none; grid-template-columns: repeat(3, 50px); grid-template-rows: repeat(3, 50px); gap: 4px; z-index: 6; }
.w-dpad button { background: rgba(20,12,14,.78); border: 3px solid #000; border-radius: 8px; color: #fff; font-size: 18px; touch-action: none; user-select: none; }
.w-dpad button[data-d=act] { background: var(--accent); font-family: var(--pixel); font-size: 12px; }
.w-dpad button:active { background: var(--lime); color: #000; }
.w-toast { top: 84px; left: 50%; transform: translateX(-50%); font-size: 10px; animation: wt 2.2s var(--ease) forwards; z-index: 9; }
@keyframes wt { 0% { opacity: 0; transform: translate(-50%, 10px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.w-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #1b1315; color: var(--lime); font-family: var(--pixel); font-size: 14px; z-index: 30; transition: opacity .5s; }
.w-loading .bar { width: 220px; height: 16px; border: 3px solid #fff; margin: 16px auto 0; }
.w-loading .bar i { display: block; height: 100%; background: var(--lime); width: 0; animation: load .7s steps(10) forwards; }
.w-load-tip { color: #d8cfcc; font-size: 8px; margin-top: 16px; }
@keyframes load { to { width: 100%; } }

/* bina içi paneller */
.px-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.px-layer > * { pointer-events: auto; }
.px-dim { position: absolute; inset: 0; background: rgba(10, 6, 8, .55); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.px-panel {
  --pc: #ef3e3a;
  width: min(780px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #221a1c; color: #f3ece4;
  border: 4px solid #0d0909; border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.06), 8px 8px 0 rgba(0,0,0,.4);
  animation: px-in .32s steps(5) both; overflow: hidden;
}
@keyframes px-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.px-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--pc); color: #fff; font-family: var(--pixel); font-size: 11px; border-bottom: 4px solid #0d0909; text-shadow: 2px 2px 0 rgba(0,0,0,.35); flex-shrink: 0; }
.px-ico { font-size: 20px; text-shadow: none; }
.px-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-sub { margin-left: auto; font-size: 8px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.px-hbtn { width: 32px; height: 32px; flex-shrink: 0; background: rgba(0,0,0,.28); border: 3px solid #0d0909; color: #fff; font-family: var(--pixel); font-size: 10px; border-radius: 4px; }
.px-hbtn:hover { background: rgba(0,0,0,.5); }
.px-body { padding: 16px; overflow: auto; flex: 1; font-size: 14px; scrollbar-width: thin; scrollbar-color: #4a3b3f transparent; }
.px-body b { font-weight: 700; }
.px-h { font-family: var(--pixel); font-size: 14px; color: var(--lime); line-height: 1.5; margin: 6px 0; }
.px-h4 { font-family: var(--pixel); font-size: 9px; color: #b9aeab; margin: 18px 0 10px; letter-spacing: .05em; }
.px-p { margin: 8px 0; color: #e6ddd8; line-height: 1.5; }
.px-p.muted, .px-mini { color: #b2a6a3; }
.px-mini { display: block; font-size: 12px; margin-top: 2px; }
.px-mini.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-center { text-align: center; padding: 6px 0; }
.px-big-ico { font-size: 56px; display: inline-block; animation: float 2.6s ease-in-out infinite; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.35)); }
.px-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.px-row.between { justify-content: space-between; }
.px-row.center { justify-content: center; }
.px-row.wrap { flex-wrap: wrap; }
.px-body .grow, .px-dialog .grow { flex: 1; min-width: 0; }
.px-loading { font-family: var(--pixel); font-size: 11px; text-align: center; padding: 50px 0; color: var(--lime); }
.px-loading span { animation: blink 1s steps(2) infinite; }
.px-loading span:nth-child(2) { animation-delay: .2s; } .px-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 0; } }
.px-empty { text-align: center; padding: 36px 10px; color: #b2a6a3; font-size: 14px; line-height: 2; }
.px-empty:first-line { font-size: 36px; }
.px-empty.sm { padding: 14px; }
.px-btn {
  font-family: var(--pixel); font-size: 10px; padding: 12px 14px; background: var(--pc, #ef3e3a); color: #fff; border: 3px solid #0d0909; border-radius: 4px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 3px 3px 0 #000; transition: transform .08s, box-shadow .08s, filter .15s; white-space: nowrap; line-height: 1.2;
}
.px-btn:hover { filter: brightness(1.12); }
.px-btn:active { transform: translate(2px, 2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 1px 1px 0 #000; }
.px-btn:disabled { opacity: .4; pointer-events: none; }
.px-btn.ghost { background: #3a2e31; }
.px-btn.green { background: #18b26f; }
.px-btn.sm { font-size: 8px; padding: 8px 10px; }
.px-btn.big { font-size: 14px; padding: 16px 28px; margin-top: 12px; }
.px-btn.block { width: 100%; margin-top: 12px; }
.px-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.px-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 12px; background: #2c2326; border: 3px solid #0d0909; border-left: 7px solid var(--cc, var(--pc)); border-radius: 4px; color: inherit; transition: transform .12s steps(2), background .15s; animation: rise .35s both; }
.px-card:hover { transform: translateY(-3px); background: #382d31; }
.px-emoji { font-size: 28px; line-height: 1; }
.px-emoji.sm { font-size: 22px; }
.px-bar { display: block; width: 100%; height: 10px; background: #3a2e31; border: 2px solid #0d0909; margin-top: 4px; }
.px-bar i { display: block; height: 100%; background: var(--lime); transition: width .3s linear; }
.px-bar.wide { width: 100%; }
.px-bar.big { height: 14px; margin: 10px 0; }
.px-list { display: flex; flex-direction: column; gap: 8px; }
.px-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; color: inherit; transition: background .15s, transform .12s; animation: rise .3s both; }
button.px-item:hover { background: #382d31; transform: translateX(3px); }
.px-item.me { border-color: var(--lime); }
.px-item .rk, .px-banner .rk { font-family: var(--pixel); font-size: 10px; width: 26px; text-align: center; color: #b2a6a3; }
.px-tag { font-family: var(--pixel); font-size: 8px; padding: 5px 7px; background: #3a2e31; border: 2px solid #0d0909; border-radius: 3px; white-space: nowrap; color: #fff; }
.px-tag.good, .px-tag.diff-kolay { background: #13804f; } .px-tag.mid, .px-tag.diff-orta { background: #a16207; } .px-tag.bad, .px-tag.diff-zor { background: #b42323; }
.px-badge { background: var(--accent); color: #fff; font-family: var(--pixel); font-size: 8px; padding: 4px 6px; border: 2px solid #000; }
.px-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.px-tabs button { font-family: var(--pixel); font-size: 8px; padding: 8px 10px; background: #2c2326; color: #d8cfcc; border: 3px solid #0d0909; border-radius: 4px; }
.px-tabs button.on { background: var(--lime); color: #1b1315; }
.px-banner { display: flex; align-items: center; gap: 12px; padding: 12px; background: #2c2326; border: 3px solid #0d0909; margin-bottom: 12px; flex-wrap: wrap; }
.px-banner > span:first-child { font-size: 28px; }
.px-banner.me { background: var(--lime); color: #1b1315; font-family: var(--pixel); font-size: 9px; }
.px-banner.me b { font-size: 14px; }
.px-banner.me .px-mini { color: #3d4a00; font-family: var(--font); }
.px-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 14px 0; }
.px-stats > div { background: #2c2326; border: 3px solid #0d0909; padding: 10px 6px; font-family: var(--pixel); font-size: 7px; color: #b2a6a3; text-align: center; }
.px-stats b { display: block; font-size: 16px; color: #fff; margin-bottom: 6px; font-family: var(--pixel); }
.px-stats.sm b { font-size: 12px; }
.px-stats .g b { color: #4fd690; } .px-stats .r b { color: #ff7a7a; } .px-stats .p b { color: #c4b5fd; } .px-stats .a b { color: #fcd34d; }
.px-solve .px-q { font-size: 19px; font-weight: 700; line-height: 1.45; margin: 16px 0; min-height: 56px; }
.px-q.in { animation: q-in .3s steps(4); }
.px-opts { display: flex; flex-direction: column; gap: 8px; }
.px-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; color: inherit; font-size: 15px; animation: rise .3s both; transition: transform .1s, background .15s; }
.px-opt:hover { background: #382d31; transform: translateX(4px); }
.px-opt .k { width: 30px; height: 30px; display: grid; place-items: center; background: #3a2e31; border: 2px solid #0d0909; font-family: var(--pixel); font-size: 10px; flex-shrink: 0; }
.px-opt.sel { border-color: var(--lime); background: #33391b; }
.px-opt.sel .k { background: var(--lime); color: #1b1315; }
.px-dots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.px-dots button { width: 30px; height: 30px; font-family: var(--pixel); font-size: 8px; background: #2c2326; color: #d8cfcc; border: 3px solid #0d0909; border-radius: 3px; }
.px-dots button.ans { background: var(--pc); color: #fff; }
.px-dots button.cur { border-color: var(--lime); }
.px-timer { font-family: var(--pixel); font-size: 12px; background: #0d0909; padding: 8px 10px; border-radius: 4px; }
.px-timer.warn { background: #b42323; animation: blink 1s steps(2) infinite; }
.px-result { display: flex; align-items: center; gap: 16px; padding: 16px; border: 3px solid #0d0909; background: linear-gradient(110deg, #13804f, #1fb877); flex-wrap: wrap; }
.px-result.mid { background: linear-gradient(110deg, #a16207, #e3a008); }
.px-result.bad { background: linear-gradient(110deg, #9b1c1c, #e5383b); }
.px-result .px-h { color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.3); }
.px-result .px-p { color: #fff; }
.px-result .px-stats > div { background: rgba(0,0,0,.25); color: #f3ece4; }
.px-score { width: 110px; height: 110px; background: #fff; color: #13804f; border: 4px solid #0d0909; display: grid; place-content: center; text-align: center; font-family: var(--pixel); box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.px-result.mid .px-score { color: #a16207; } .px-result.bad .px-score { color: #b42323; }
.px-score b { font-size: 30px; display: block; }
.px-score span { font-size: 7px; color: #6b6365; margin-top: 6px; }
.px-cup { text-align: center; }
.px-cup span { font-size: 64px; display: block; animation: float 2.6s ease-in-out infinite; }
.px-cup em { font-style: normal; font-family: var(--pixel); font-size: 8px; background: rgba(0,0,0,.3); padding: 5px 8px; display: inline-block; margin-top: 6px; }
.px-rev { padding: 10px 12px; background: #2c2326; border: 3px solid #0d0909; border-left: 7px solid #6b6365; }
.px-rev.good { border-left-color: #18b26f; } .px-rev.bad { border-left-color: #e5383b; }
.px-rev p { margin: 6px 0; }
.px-note { padding: 12px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; animation: rise .3s both; }
.px-note p { margin: 8px 0; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; }
.px-note.pin { border-color: #e3a008; }
.px-note.done { opacity: .7; }
.px-note.late { border-color: #7f1d1d; }
.px-shared { background: #13804f; padding: 8px 10px; border: 2px solid #0d0909; margin: 6px 0; font-size: 13px; }
.px-chip { font-size: 13px; padding: 5px 10px; background: #3a2e31; border: 2px solid #0d0909; color: #fff; border-radius: 3px; }
.px-chip.on { background: var(--accent); }
.px-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.px-input { width: 100%; background: #140f10; color: #fff; border: 3px solid #0d0909; border-radius: 4px; padding: 10px; font-size: 14px; outline: none; resize: vertical; font-family: var(--font); }
.px-input:focus { border-color: var(--lime); }
.px-input.auto { width: auto; }
.px-input.big { font-family: var(--pixel); font-size: 22px; text-align: center; width: 180px; }
.px-label { display: block; font-family: var(--pixel); font-size: 8px; color: #b2a6a3; margin: 12px 0 6px; }
.px-chat { height: min(360px, 50vh); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #140f10; border: 3px solid #0d0909; }
.px-msg { max-width: 75%; padding: 8px 11px; background: #2c2326; border: 2px solid #0d0909; align-self: flex-start; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; animation: rise .25s both; }
.px-msg.me { align-self: flex-end; background: var(--pc); }
.px-msg i { display: block; font-style: normal; font-size: 10px; opacity: .6; text-align: right; margin-top: 2px; }
.px-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 6px 0 16px; }
.px-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: rise .5s var(--spring) both; font-size: 13px; }
.px-pod .stand { width: 90px; display: grid; place-items: center; font-family: var(--pixel); font-size: 18px; color: #fff; border: 3px solid #0d0909; margin-top: 4px; text-shadow: 2px 2px 0 rgba(0,0,0,.3); }
.px-pod.p1 .stand { height: 92px; background: #e3a008; } .px-pod.p2 .stand { height: 66px; background: #94a3b8; } .px-pod.p3 .stand { height: 48px; background: #c26a2d; }
.px-pod.p1 { animation-delay: .2s; } .px-pod .crown { font-size: 22px; animation: float 2s ease-in-out infinite; }
.px-boutique { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.px-mirror { background: repeating-conic-gradient(#2c2326 0 25%, #261e21 0 50%) 0 0 / 16px 16px; border: 4px solid #0d0909; padding: 10px; text-align: center; }
.px-mirror canvas { width: 180px; height: 252px; image-rendering: pixelated; display: block; }
.px-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.px-swatches .dot { width: 32px; height: 32px; border: 3px solid #0d0909; border-radius: 4px; transition: transform .1s; }
.px-swatches .dot.on { outline: 3px solid var(--lime); transform: scale(1.08); }
.px-swatches.hats button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 78px; padding: 6px 4px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; color: #d8cfcc; font-family: var(--pixel); font-size: 6px; line-height: 1.4; }
.px-swatches.hats button.on { border-color: var(--lime); background: #33391b; }
.px-swatches.hats button.locked { opacity: .45; }
.px-swatches.hats canvas { width: 40px; height: 40px; image-rendering: pixelated; }
.px-arcade { text-align: center; padding: 10px 0; }
.px-count { font-family: var(--pixel); font-size: 54px; color: var(--lime); padding: 60px 0; text-shadow: 5px 5px 0 #000; }
.px-count.pop { animation: count-pop .7s steps(6); }
@keyframes count-pop { from { transform: scale(2); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); } }
.px-eq { font-family: var(--pixel); font-size: 34px; padding: 26px 0 18px; text-shadow: 4px 4px 0 #000; }
.px-eq.in { animation: q-in .2s steps(3); }
.px-eq.good { color: #4fd690; } .px-eq.bad { color: #ff7a7a; animation: shake .3s; }
.px-keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; justify-content: center; margin-top: 12px; }
.px-keypad button { height: 48px; font-family: var(--pixel); font-size: 14px; background: #2c2326; color: #fff; border: 3px solid #0d0909; border-radius: 4px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.px-keypad button:active { background: var(--lime); color: #000; }
.px-dialog-wrap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); }
.px-dialog { display: flex; gap: 14px; align-items: flex-start; background: #fff8e6; color: #1b1315; border: 4px solid #0d0909; border-radius: 6px; padding: 14px; box-shadow: inset 0 0 0 3px #e9d9b4, 8px 8px 0 rgba(0,0,0,.4); animation: px-in .3s steps(5) both; }
.px-portrait { width: 72px; height: 72px; image-rendering: pixelated; background: #ffe7a8; border: 3px solid #0d0909; flex-shrink: 0; }
.px-dname { font-family: var(--pixel); font-size: 10px; color: #c2410c; margin-bottom: 8px; }
.px-dtext { font-size: 16px; line-height: 1.5; min-height: 48px; cursor: pointer; font-weight: 500; }
.px-dopts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.px-dialog .px-btn.ghost { background: #6b5a4f; }
.px-dialog .px-hbtn { background: #e9d9b4; color: #1b1315; }
.px-levelup { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,6,8,.6); padding: 16px; z-index: 3; }
.px-levelup .px-panel { width: min(420px, 100%); padding: 20px; }

/* ---------- landing / giriş ---------- */
.landing { min-height: 100vh; overflow-x: hidden; }
.l-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 5vw; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 78%, transparent); }
.l-nav img { height: 40px; }
.l-nav .links { display: flex; gap: 8px; align-items: center; }
.l-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 40px 5vw 70px; max-width: 1300px; margin: 0 auto; }
.l-hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.l-hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-hero p { font-size: 18px; color: var(--muted); margin: 18px 0 28px; max-width: 520px; }
.l-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.l-badges { display: flex; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.l-badges div { font-size: 13px; color: var(--muted); }
.l-badges b { display: block; font-size: 26px; color: var(--text); }
.l-art { position: relative; aspect-ratio: 1.1; }
.l-art .world { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; border: 5px solid var(--side); box-shadow: var(--shadow-lg); transform: rotate(2deg); animation: tilt 8s ease-in-out infinite; }
.l-art .world canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
@keyframes tilt { 50% { transform: rotate(-1deg) translateY(-8px); } }
.l-art .float-card { position: absolute; background: var(--surface); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-size: 13px; animation: float 4s ease-in-out infinite; z-index: 2; }
.l-art .fc1 { left: -24px; top: 12%; }
.l-art .fc2 { right: -14px; bottom: 14%; animation-delay: -2s; }
.l-art .fc3 { left: 8%; bottom: -16px; animation-delay: -1s; }
.l-features { max-width: 1200px; margin: 0 auto; padding: 30px 5vw 80px; }
.l-features h2 { font-size: 38px; text-align: center; font-weight: 800; }
.l-features .sub { text-align: center; color: var(--muted); margin: 10px 0 36px; }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }
.l-footer { text-align: center; color: var(--muted); padding: 30px; font-size: 13px; border-top: 1px solid var(--border); }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease-out, transform .45s ease-out; }
.reveal.in { opacity: 1; transform: none; }

.auth-bg { position: fixed; inset: 0; background: rgba(20,10,12,.5); backdrop-filter: blur(8px); z-index: 100; display: none; place-items: center; padding: 16px; animation: fade .25s; }
.auth-bg.open { display: grid; }
.auth { width: min(920px, 100%); background: var(--surface); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); animation: modal-in .45s var(--spring); max-height: calc(100vh - 32px); }
.auth-side { background: var(--side); color: #fff; padding: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-side::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--grad-d); filter: blur(60px); opacity: .45; right: -140px; bottom: -140px; animation: float 6s ease-in-out infinite; }
.auth-side > * { position: relative; }
.auth-side img { height: 42px; width: auto; align-self: flex-start; }
.auth-side h2 { font-size: 28px; margin-top: auto; line-height: 1.15; }
.auth-side p { color: #c9bfc1; margin-top: 10px; font-size: 14px; }
.auth-form { padding: 32px; overflow-y: auto; }
.auth-form h3 { font-size: 24px; }
.auth-form .switch { color: var(--muted); font-size: 14px; margin: 4px 0 20px; }
.auth-form .switch button { color: var(--accent); font-weight: 600; }
.role-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.role-pick label { border: 1.5px solid var(--border-2); border-radius: 14px; padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; transition: all .2s; }
.role-pick input { display: none; }
.role-pick label:has(input:checked) { border-color: var(--accent); background: var(--red-soft); }
.form-msg { font-size: 13px; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; display: none; }
.form-msg.err { display: block; background: var(--red-soft); color: var(--red); animation: shake .4s; }
.form-msg.ok { display: block; background: var(--green-soft); color: var(--green-text); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.demo-box { margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.demo-box button { color: var(--accent); font-weight: 600; font-size: 12px; }

/* admin */
.pend-card { width: 262px; }
.pend-card .who { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pend-card .ini { width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pend-card .actions { display: flex; justify-content: space-between; margin-top: 16px; }
.pend-card.leaving { animation: leave .45s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: scale(.85) translateY(10px); } }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr { animation: rise .35s var(--ease) both; }

/* ---------- duyarlı ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trophy { display: none; }
}
@media (max-width: 900px) {
  .app { --side-w: 260px; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-102%); box-shadow: var(--shadow-lg); }
  .side-toggle { display: none; }
  .topbar::before { inset: -12px -16px 0; }
  .sidebar.open { transform: none; }
  .main { padding: 12px 16px 30px; }
  .menu-btn { display: grid; }
  .welcome .big, .welcome .small { display: none; }
  .search { width: auto; flex: 1; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .solve { grid-template-columns: 1fr; }
  .qmap { position: static; }
  .result-hero { flex-direction: column; text-align: center; padding: 24px 18px; }
  .rstats { justify-content: center; }
  .chat { grid-template-columns: 1fr; height: auto; }
  .chat-list { border-right: 0; border-bottom: 1px solid var(--border); max-height: 220px; }
  .chat-msgs { min-height: 340px; }
  .l-hero { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero .art { margin: 0 auto; }
  .w-dpad { display: grid; }
  .w-minimap, .w-log { display: none; }
  .w-emotes .w-btn { min-width: 30px; width: 30px; height: 30px; font-size: 14px; }
  .w-status { font-size: 7px; width: 158px; gap: 5px; padding: 8px; }
  .w-srv { display: none; }
  .w-tgroup { padding: 2px; }
  .w-chip { font-size: 7px; padding: 2px 4px; }
  .w-tools { max-width: calc(100vw - 190px); gap: 4px; }
  .w-tools .w-btn { min-width: 28px; width: 28px; height: 28px; }
  .w-ico { width: 18px; height: 18px; }
  .w-chat button { width: 36px; height: 30px; }
  .w-prompt { bottom: 120px; font-size: 8px; }
  .world-wrap { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
  .px-dim { padding: 8px; }
  .px-body { padding: 12px; }
  .px-result { justify-content: center; text-align: center; }
  .px-dialog { padding: 10px; gap: 10px; }
  .px-portrait { width: 52px; height: 52px; }
  .px-dtext { font-size: 14px; }
  .dropdown { position: fixed; left: 16px; right: 16px; width: auto; top: 70px; }
  .side-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; display: none; }
  .side-backdrop.open { display: block; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 22px; }
  .qcard { padding: 18px; }
  .podium .p .stand { width: 88px; }
  .topbar { gap: 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .streak-btn.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- tanıtım sayfası v2 ---------- */
.landing { overflow-x: hidden; position: relative; }
.l-blobs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.l-blobs i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .22; animation: blob 18s ease-in-out infinite; }
.l-blobs i:nth-child(1) { background: #ef3b3b; left: -160px; top: -120px; }
.l-blobs i:nth-child(2) { background: #ff8a1f; right: -180px; top: 30vh; animation-delay: -6s; }
.l-blobs i:nth-child(3) { background: #8b5cf6; left: 30vw; bottom: -260px; animation-delay: -12s; opacity: .14; }
@keyframes blob { 33% { transform: translate(60px, 40px) scale(1.1); } 66% { transform: translate(-40px, 30px) scale(.95); } }
.l-nav { transition: box-shadow .3s, background .3s; gap: 16px; }
.l-nav.scrolled { box-shadow: 0 6px 24px rgba(40, 24, 20, .08); }
.l-brand img { height: 40px; width: auto; }
.l-links { display: flex; gap: 4px; }
.l-links a { padding: 8px 12px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--text-2); transition: background .2s, color .2s; }
.l-links a:hover { background: var(--surface); color: var(--accent); }
.l-menu { display: none; }
.l-pill { margin-bottom: 18px; }
.l-rot { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.l-rot.out { opacity: 0; transform: translateY(-18px); }
.l-live { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; margin-top: 34px; justify-content: start; }
.l-live b { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.l-live span { font-size: 13px; color: var(--muted); }
.l-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(24,178,111,.6); animation: live 1.8s infinite; display: inline-block; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(24,178,111,0); } 100% { box-shadow: 0 0 0 0 rgba(24,178,111,0); } }
.l-marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.l-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.l-track span { font-weight: 700; font-size: 16px; white-space: nowrap; color: var(--text-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.l-section { max-width: 1240px; margin: 0 auto; padding: 80px 5vw 20px; scroll-margin-top: 70px; }
.l-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.l-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.l-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.l-demo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: stretch; }
.l-demo-world.world-wrap { height: min(640px, 72vh); min-height: 420px; }
.l-demo-side { background: var(--side); color: var(--side-text); border-radius: var(--radius-xl); padding: 16px; display: flex; flex-direction: column; }
.l-demo-title { font-family: var(--pixel); font-size: 10px; color: var(--lime); margin: 4px 4px 12px; }
#demoList { display: flex; flex-direction: column; gap: 4px; overflow: auto; flex: 1; }
.l-bld { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--side-text); font-size: 14px; font-weight: 600; text-align: left; transition: background .2s, transform .2s var(--ease); }
.l-bld span { font-size: 18px; width: 24px; text-align: center; }
.l-bld i { margin-left: auto; font-style: normal; opacity: 0; transition: opacity .2s, transform .2s; }
.l-bld:hover { background: var(--side-2); transform: translateX(3px); }
.l-bld:hover i { opacity: 1; transform: translateX(3px); }
.tilt { transition: transform .2s var(--ease), box-shadow .25s; will-change: transform; }
.tilt:hover { box-shadow: var(--shadow); }
.l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.l-steps::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; height: 3px; background: repeating-linear-gradient(90deg, var(--accent-2) 0 10px, transparent 10px 20px); opacity: .5; }
.l-step { text-align: center; padding: 0 12px; position: relative; }
.l-step .n { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--grad-d); color: #fff; font-family: var(--pixel); font-size: 22px; box-shadow: 0 10px 24px rgba(239,62,58,.3), inset 0 -5px 0 rgba(0,0,0,.15); }
.l-step h3 { font-size: 20px; margin-bottom: 6px; }
.l-step p { color: var(--muted); font-size: 15px; }
.l-roles { text-align: center; }
.l-role-body { display: flex; gap: 26px; align-items: center; text-align: left; margin-top: 18px; padding: 30px; }
.l-role-ico { font-size: 80px; animation: float 3s ease-in-out infinite; flex-shrink: 0; }
.l-role-body h3 { font-size: 24px; margin-bottom: 10px; }
.l-role-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.l-role-body li { padding-left: 28px; position: relative; animation: rise .4s both; }
.l-role-body li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--green-soft); color: var(--green-text); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.l-top { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.l-top-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; animation: rise .5s both; }
.l-top-row .rk { width: 30px; text-align: center; font-weight: 800; font-size: 20px; color: var(--muted); }
.l-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.l-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 20px; transition: box-shadow .2s; }
.l-faq details[open] { box-shadow: var(--shadow); }
.l-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: '+'; font-size: 22px; color: var(--accent); transition: transform .25s var(--ease); }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq p { color: var(--muted); padding-bottom: 18px; line-height: 1.6; }
.l-cta { position: relative; overflow: hidden; max-width: 1180px; margin: 80px auto 40px; border-radius: 30px; min-height: 280px; display: grid; place-items: center; text-align: center; color: #fff; border: 5px solid var(--side); }
.l-cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.l-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(239,59,59,.85), rgba(255,138,31,.75)); }
.l-cta > div { position: relative; z-index: 1; padding: 40px 20px; }
.l-cta h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; text-shadow: 0 4px 0 rgba(0,0,0,.15); }
.l-cta p { margin: 8px 0 22px; font-size: 18px; opacity: .95; }
.l-footer2 { border-top: 1px solid var(--border); padding: 40px 5vw 24px; max-width: 1240px; margin: 0 auto; }
.l-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.l-foot-grid b { display: block; margin-bottom: 8px; }
.l-foot-grid a { display: block; color: var(--muted); padding: 3px 0; font-size: 14px; }
.l-foot-grid a:hover { color: var(--accent); }
.l-copy { color: var(--muted); font-size: 13px; margin-top: 30px; text-align: center; }
@media (max-width: 1000px) {
  .l-links { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); }
  .l-links.open { display: flex; animation: pop .2s var(--ease); }
  .l-menu { display: grid; }
  .l-demo { grid-template-columns: 1fr; }
  .l-demo-side { display: none; }
}
@media (max-width: 700px) {
  .l-live { grid-template-columns: repeat(2, auto); gap: 16px 28px; }
  .l-steps { grid-template-columns: 1fr; gap: 30px; }
  .l-steps::before { display: none; }
  .l-role-body { flex-direction: column; text-align: left; padding: 22px; }
  .l-role-ico { font-size: 56px; }
  .l-foot-grid { grid-template-columns: 1fr 1fr; }
  .l-foot-grid > div:first-child { grid-column: 1 / -1; }
  .l-nav .hide-sm { display: none; }
  .l-art .fc1 { left: -6px; } .l-art .fc2 { right: -4px; }
  .l-section { padding-top: 60px; }
  .l-demo-world.world-wrap { height: 70vh; }
}
.l-live b span { font-size: inherit; color: inherit; }

/* ---------- Pixel Dünyası v3 ---------- */
.w-place { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); z-index: 15; pointer-events: none; font-family: var(--pixel); color: #fff; font-size: 18px; text-shadow: 4px 4px 0 #000; opacity: 0; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.w-place span { font-size: 30px; text-shadow: none; }
.w-place.show { animation: place-in 2.6s var(--ease) forwards; }
@keyframes place-in { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 25%, 75% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -16px); } }
.w-flash::after { content: ''; position: absolute; inset: 0; background: #fff; z-index: 40; animation: flash .35s ease-out forwards; pointer-events: none; }
@keyframes flash { to { opacity: 0; } }
.w-settings { width: 220px; font-size: 8px; }
.w-settings .w-orow, .w-online .w-orow { width: 100%; background: none; border: 0; color: #fff; font-family: var(--pixel); font-size: 8px; text-align: left; }
.w-mini-line { font-size: 8px; margin-bottom: 6px; color: #d8cfcc; line-height: 1.8; }
.w-bigmap { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(10,6,8,.62); padding: 14px; animation: fade .15s; }
.w-map { width: 100%; height: 100%; max-width: 1280px; display: flex; flex-direction: column; gap: 8px; padding: 10px; font-family: var(--pixel); color: #fff; }
.w-map-head { display: flex; align-items: center; gap: 12px; }
.w-map-head .w-title { margin: 0; font-size: 11px; }
.w-map-hint { flex: 1; font-size: 7px; color: #a99d9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-map-head .w-btn { font-size: 12px; color: #fff; }
.w-map-body { flex: 1; min-height: 0; display: flex; gap: 8px; }
.w-map-view { position: relative; flex: 1; min-width: 0; border: 3px solid #000; border-radius: 6px; overflow: hidden; background: #122016; }
.w-map-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; image-rendering: pixelated; }
.w-map-view canvas:active { cursor: grabbing; }
.w-map-ctrl { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 2px; padding: 3px; background: rgba(24,16,18,.92); border: 3px solid #000; border-radius: 8px; }
.w-map-ctrl button { width: 32px; height: 32px; background: transparent; color: #fff; border: 0; border-radius: 5px; font: 14px var(--pixel); cursor: pointer; }
.w-map-ctrl button:hover { background: rgba(255,255,255,.12); color: var(--lime); }
.w-map-sidebtn { display: none; font-family: sans-serif !important; }
.w-map-coord { position: absolute; left: 8px; top: 8px; font-size: 8px; background: rgba(0,0,0,.8); padding: 6px 8px; border-radius: 4px; pointer-events: none; }
.w-map-coord:empty { display: none; }
.w-map-side { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.w-map-sec { font-size: 7px; color: var(--lime); margin-top: 4px; display: flex; justify-content: space-between; }
.w-map-sec b { font-weight: normal; background: var(--lime); color: #000; padding: 1px 5px; border-radius: 3px; }
.w-map-lay { display: flex; align-items: center; gap: 8px; font-size: 8px; padding: 4px 2px; cursor: pointer; color: #e6dedb; }
.w-map-lay input { accent-color: var(--lime); width: 14px; height: 14px; margin: 0; }
.w-map-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 3px; padding-right: 2px; }
.w-map-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: #2a2024; border: 2px solid #000; border-radius: 5px; cursor: pointer; }
.w-map-row:hover { border-color: #6b5d59; }
.w-map-row.sel { border-color: #fff; }
.w-map-row.me { border-color: var(--lime); }
.w-map-row > i { width: 10px; height: 10px; flex-shrink: 0; border: 2px solid #000; box-sizing: content-box; }
.w-map-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.w-map-row b { font-weight: normal; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-map-row b small { font-size: 6px; color: var(--lime); }
.w-map-row span { font-size: 6px; color: #b2a6a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-map-row button { background: var(--accent); border: 2px solid #000; border-radius: 4px; width: 28px; height: 26px; cursor: pointer; font-size: 13px; }
@media (max-width: 760px) {
  .w-bigmap { padding: 6px; }
  .w-map { padding: 6px; }
  .w-map-hint { display: none; }
  .w-map-head { justify-content: space-between; }
  .w-map-sidebtn { display: block; }
  .w-map-side { position: absolute; right: 52px; top: 8px; bottom: 8px; width: min(250px, calc(100% - 70px)); background: rgba(24,16,18,.96); border: 3px solid #000; border-radius: 8px; padding: 8px; display: none; z-index: 2; }
  .w-map-body { position: relative; }
  .w-map.side-open .w-map-side { display: flex; }
}
.world-wrap.in-room .w-emotes { opacity: .9; }
.px-coins { font-family: var(--pixel); font-size: 9px; background: rgba(0,0,0,.28); border: 3px solid #0d0909; padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.px-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.px-keys span { background: #33391b; border: 2px solid var(--lime); color: #ecfccb; padding: 6px 10px; font-size: 13px; border-radius: 4px; }
.px-explain { margin-top: 8px; padding: 8px 10px; background: #1e293b; border-left: 4px solid #38bdf8; font-size: 13px; color: #e0f2fe; }
.px-lesson .px-note b { color: var(--lime); }
.px-rate { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 12px 0 4px; }
.px-rate button { font-size: 22px; color: #4a3b3f; background: none; border: 0; transition: transform .1s, color .1s; }
.px-rate button.on { color: #fde047; }
.px-rate button:hover { transform: scale(1.25); color: #fde68a; }
.px-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.px-badge-i { text-align: center; padding: 10px 6px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; animation: rise .3s both; }
.px-badge-i span { font-size: 30px; display: block; }
.px-badge-i b { display: block; font-size: 12px; margin-top: 4px; }
.px-badge-i em { display: block; font-style: normal; font-size: 10px; color: #b2a6a3; margin-top: 2px; }
.px-badge-i.locked { opacity: .4; filter: grayscale(1); }
.px-cal { width: 46px; text-align: center; font-family: var(--pixel); font-size: 7px; background: #fff; color: #1b1315; border: 3px solid #0d0909; padding: 4px 0; flex-shrink: 0; }
.px-cal b { display: block; font-size: 14px; color: var(--accent); }
.px-pomo { width: 190px; height: 190px; margin: 6px auto 12px; border: 6px solid var(--lime); border-radius: 50%; display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 6px #0d0909, inset 0 0 30px rgba(212,240,74,.2); animation: pulse-ring 2s ease-in-out infinite; }
.px-pomo b { font-family: var(--pixel); font-size: 28px; color: #fff; }
.px-pomo span { font-family: var(--pixel); font-size: 8px; color: var(--lime); margin-top: 8px; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 6px #0d0909, 0 0 0 14px rgba(212,240,74,.12), inset 0 0 30px rgba(212,240,74,.3); } }
.px-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.px-shop-i { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 8px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; animation: rise .3s both; }
.px-shop-i .e { font-size: 34px; }
.px-shop-i canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.px-shop-i b { font-size: 13px; }
.px-shop-i.have { border-color: #13804f; }
.px-quest { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; }
.px-quest .e { font-size: 24px; }
.px-quest b { display: block; font-size: 14px; margin-bottom: 4px; }
.px-quest.done { border-color: var(--lime); animation: glow 1.4s ease-in-out infinite; }
.px-quest.claimed { opacity: .55; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px rgba(212,240,74,.25); } }
.px-reward { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.px-reward div { text-align: center; padding: 8px 2px; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; }
.px-reward em { display: block; font-style: normal; font-family: var(--pixel); font-size: 6px; color: #b2a6a3; }
.px-reward b { display: block; font-size: 12px; margin-top: 4px; }
.px-reward .got { background: #13804f; }
.px-reward .today { border-color: var(--lime); animation: glow 1.2s infinite; }
.px-poll { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.px-poll button { position: relative; overflow: hidden; text-align: left; padding: 9px 12px; background: #140f10; border: 2px solid #0d0909; color: #fff; border-radius: 3px; display: flex; justify-content: space-between; }
.px-poll button i { position: absolute; inset: 0 auto 0 0; background: rgba(212,240,74,.25); transition: width .6s var(--ease); }
.px-poll button span, .px-poll button b { position: relative; }
.px-poll button.on { border-color: var(--lime); }
.px-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.px-choices button { padding: 14px 10px; font-size: 15px; font-weight: 700; background: #2c2326; border: 3px solid #0d0909; color: #fff; border-radius: 4px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.3); transition: transform .08s; }
.px-choices button:hover { background: #382d31; }
.px-choices button:active { transform: translateY(2px); }
.px-eq.sm { font-family: var(--font); font-size: 22px; font-weight: 800; padding: 18px 6px 10px; text-shadow: none; line-height: 1.35; }
.px-memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.px-memory button { position: relative; height: 78px; perspective: 400px; background: none; border: 0; padding: 0; }
.px-memory span { position: absolute; inset: 0; display: grid; place-items: center; border: 3px solid #0d0909; border-radius: 4px; backface-visibility: hidden; transition: transform .35s var(--ease); font-weight: 700; font-size: 13px; padding: 4px; color: #fff; }
.px-memory .back { background: repeating-linear-gradient(45deg, #4338ca 0 8px, #3730a3 8px 16px); font-family: var(--pixel); font-size: 18px; }
.px-memory .front { background: #2c2326; transform: rotateY(180deg); }
.px-memory button.flip .back { transform: rotateY(180deg); }
.px-memory button.flip .front { transform: rotateY(360deg); }
.px-memory button.ok .front { background: #13804f; }
.px-opt.tf .k { font-size: 12px; }
.px-dots button.flag { box-shadow: inset 0 -4px 0 #ef4444; }
.px-qmeta { margin-top: 10px; }
.px-chip.on { background: var(--accent); }
@media (max-width: 900px) {
  .px-reward { grid-template-columns: repeat(4, 1fr); }
  .px-memory button { height: 64px; }
  .w-place { font-size: 12px; }
  .px-coins { display: none; }
}
/* ---------- site v2 ---------- */
:root[data-font="s"] body { font-size: 14px; }
:root[data-font="l"] body { font-size: 17px; }
:root[data-font="l"] .small { font-size: 14.5px; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.reduce-motion .confetti, .reduce-motion .xp-pop { display: none !important; }
.avatar.photo { background: var(--surface-3); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome { cursor: pointer; text-align: left; transition: box-shadow .2s, transform .2s var(--ease); }
.welcome:hover { box-shadow: var(--shadow); }
.welcome .caret { font-size: 11px; color: var(--muted); padding: 0 4px; }
.acct-menu { left: 0; right: auto; width: 290px; padding: 8px; }
.acct-menu .acct-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: left; transition: background .15s; }
.acct-menu a svg, .acct-menu button svg { width: 17px; height: 17px; color: var(--muted); }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }
.acct-menu .danger { color: var(--red); }
.acct-menu .danger svg { color: var(--red); }
.acct-sep { height: 1px; background: var(--border); margin: 6px 0; }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 99px; background: var(--amber-soft); color: #92400e; font-weight: 700; font-size: 14px; border: 1px solid rgba(227,160,8,.25); transition: transform .2s var(--spring); }
.coin-chip:hover { transform: translateY(-2px); }
:root[data-theme="dark"] .coin-chip { color: #fcd34d; }
.site-banner { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; animation: pop .3s var(--ease); }
.site-banner.info { background: var(--blue-soft); color: var(--blue); }
.site-banner.success { background: var(--green-soft); color: var(--green-text); }
.site-banner.warning { background: var(--amber-soft); color: #92400e; }
.site-banner.danger { background: var(--red-soft); color: var(--red); }
.badge-pop { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 450; display: flex; gap: 14px; align-items: center; background: var(--side); color: #fff; padding: 14px 20px; border-radius: 18px; box-shadow: var(--shadow-lg); border: 2px solid var(--lime); animation: bp-in .5s var(--spring); max-width: calc(100vw - 32px); }
.badge-pop .e { font-size: 38px; animation: float 2s ease-in-out infinite; }
.badge-pop.out { animation: bp-out .4s var(--ease) forwards; }
@keyframes bp-in { from { opacity: 0; transform: translate(-50%, -30px) scale(.8); } }
@keyframes bp-out { to { opacity: 0; transform: translate(-50%, -30px); } }
.kbd-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.kbd-grid kbd { font-family: var(--pixel); font-size: 10px; background: var(--surface-3); border: 1px solid var(--border-2); border-bottom-width: 3px; padding: 6px 8px; border-radius: 6px; text-align: center; }
.reward-card { background: linear-gradient(110deg, var(--amber-soft), var(--surface)); }
.reward-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.reward-days span { text-align: center; padding: 6px 2px; border-radius: 10px; background: var(--surface-3); font-size: 11px; color: var(--muted); font-weight: 700; }
.reward-days span b { display: block; font-size: 13px; color: var(--text); }
.reward-days .got { background: var(--green-soft); color: var(--green-text); }
.reward-days .today { background: var(--grad-d); color: #fff; animation: pulse-dot 1.5s infinite; }
.reward-days .today b { color: #fff; }
.explain { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--text-2); font-size: 14px; border-left: 4px solid var(--blue); }
.rate-box { display: inline-flex; align-items: center; gap: 2px; padding: 0 12px; height: 42px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.rate-box span { margin-right: 6px; }
.rate-box button { font-size: 20px; color: var(--border-2); transition: transform .15s var(--spring), color .15s; }
.rate-box button.on { color: #f59e0b; }
.rate-box button:hover { transform: scale(1.25); }
.btn.saved { background: var(--amber-soft); }
.subject-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; text-align: left; border-left: 4px solid var(--cc); }
.subject-mini.on { box-shadow: 0 0 0 2px var(--cc); }
.subject-mini .progress { width: 100%; }
.lesson-card { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--cc); }
.lesson-card h3 { font-size: 17px; }
.lesson-card .foot { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }
.lesson-card .foot svg { width: 13px; }
.lesson-read { padding: 28px; }
.ls-sec { margin-top: 22px; animation: rise .5s var(--ease) both; }
.ls-sec h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ls-sec h2 span { width: 28px; height: 28px; border-radius: 9px; background: var(--grad-d); color: #fff; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.ls-sec p { line-height: 1.75; color: var(--text-2); font-size: 1.04em; }
.ls-keys { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--green-soft); }
.ls-keys ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; }
.ls-example { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: var(--amber-soft); }
.ls-example p { margin: 6px 0; }
.ls-example summary { cursor: pointer; font-weight: 700; color: #b45309; }
.iq .opt.sel { border-color: var(--accent); background: var(--red-soft); }
.iq .opt.sel .letter { background: var(--grad); color: #fff; }
.qcard-mini .opt { cursor: default; }
.qcard-mini .opt:hover { transform: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.cal-d { min-height: 82px; background: var(--surface-2); border-radius: 10px; padding: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-d.empty { background: transparent; }
.cal-d > span { font-weight: 700; color: var(--muted); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-d.today > span { color: var(--accent); }
.cal-d i { font-style: normal; font-size: 10.5px; padding: 2px 5px; border-radius: 6px; background: var(--amber-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-d i.sinav { background: var(--red-soft); color: var(--red); }
.cal-badge { width: 46px; text-align: center; border-radius: 12px; padding: 4px 0; font-size: 10px; background: var(--amber-soft); color: #92400e; flex-shrink: 0; }
.cal-badge b { display: block; font-size: 18px; line-height: 1.1; }
.cal-badge.sinav { background: var(--red-soft); color: var(--red); }
.pomo-card { min-height: 360px; display: grid; place-items: center; }
.pomo-ring { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.pomo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-ring .tr { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.pomo-ring .vl { fill: none; stroke: url(#none) var(--accent); stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.pomo-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pomo-ring b { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pomo-ring span { font-size: 13px; color: var(--muted); }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 3px var(--green-soft); }
.duel-head { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 22px; background: var(--side); color: #fff; border-radius: var(--radius-xl); margin-bottom: 16px; }
.duel-head > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duel-head .vs { font-family: var(--pixel); font-size: 22px; color: var(--lime); animation: pulse-dot 1.2s infinite; }
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bw { text-align: center; padding: 18px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); filter: grayscale(1); opacity: .5; transition: transform .25s var(--spring); }
.bw.on { filter: none; opacity: 1; background: linear-gradient(160deg, var(--amber-soft), var(--surface)); border-color: rgba(227,160,8,.35); }
.bw:hover { transform: translateY(-4px) rotate(-1deg); }
.bw span { font-size: 40px; display: block; }
.bw b { display: block; margin-top: 6px; }
.bw em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 4px; }
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.set-nav { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 8px; }
.set-nav a { padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.set-nav a:hover { background: var(--surface-2); }
.set-nav a.on { background: var(--red-soft); color: var(--accent); }
.settings section { scroll-margin-top: 80px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.set-row:last-child { border-bottom: 0; }
.danger-zone b { color: var(--red); }
.toggle { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 99px; transition: background .2s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--spring); }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(24,178,111,.3); }
.pw-meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .3s var(--ease), background .3s; }
.pw-meter[data-s="1"] i { width: 25%; background: var(--red); }
.pw-meter[data-s="2"] i { width: 50%; background: var(--amber); }
.pw-meter[data-s="3"] i { width: 75%; background: #84cc16; }
.pw-meter[data-s="4"] i { width: 100%; background: var(--green); }
.pw-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.crop-wrap { display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0 / 20px 20px; border-radius: 16px; padding: 16px; }
.crop-wrap canvas { width: 280px; height: 280px; border-radius: 50%; cursor: grab; touch-action: none; box-shadow: 0 0 0 4px #fff, var(--shadow); }
.crop-zoom { width: 100%; margin-top: 14px; accent-color: var(--accent); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.feat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feat-list li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.45; }
.feat-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 5px; background: var(--green-soft); color: var(--green-text); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.poll { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; }
.poll-o { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); text-align: left; font-weight: 600; font-size: 14px; }
.poll-o i { position: absolute; inset: 0 auto 0 0; background: var(--red-soft); transition: width .6s var(--ease); }
.poll-o span, .poll-o b { position: relative; }
.poll-o.on { border-color: var(--accent); }
.post.pinned { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.league-card { background: linear-gradient(110deg, var(--purple-soft), var(--surface)); }
.note-item { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.hw-review { padding: 10px 12px; border-radius: 12px; background: var(--green-soft); border-left: 3px solid var(--green); }
.hw-review svg { width: 14px; height: 14px; vertical-align: -2px; }
.subj-bar { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.subj-bar .nm { width: 130px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subj-bar .progress { flex: 1; height: 8px; }
.subj-bar b { width: 34px; text-align: right; }
.praise-ic { border-radius: 12px; padding: 4px 8px; transition: transform .2s var(--spring); }
.praise-ic.on { background: var(--amber-soft); transform: scale(1.15); }
.an-test { padding: 8px 0; border-bottom: 1px solid var(--border); }
.an-test summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
/* kayıt sihirbazı */
.wiz-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.wiz-steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); transition: background .3s; }
.wiz-steps span.on { background: var(--grad); }
.wiz-step { animation: wiz-in .35s var(--ease); }
@keyframes wiz-in { from { opacity: 0; transform: translateX(16px); } }
.pw-field { position: relative; }
.pw-field .eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 18px; padding: 4px 6px; border-radius: 8px; }
.pw-field .eye:hover { background: var(--surface-2); }
.field-hint { font-size: 12px; margin-top: 5px; min-height: 16px; }
.field-hint.ok { color: var(--green-text); }
.field-hint.bad { color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 6px 0 14px; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--accent); font-weight: 600; }
.char-make { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.char-make canvas { width: 120px; height: 126px; image-rendering: pixelated; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0 / 16px 16px; border-radius: 16px; }
.mini-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-sw button { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.mini-sw button.on { box-shadow: 0 0 0 2px var(--text); transform: scale(1.1); }
.remember { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: -4px 0 14px; }
.remember label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.remember button { color: var(--accent); font-weight: 600; font-size: 13px; }
@media (max-width: 900px) {
  .settings { grid-template-columns: 1fr; }
  .set-nav { position: static; flex-direction: row; overflow-x: auto; }
  .set-nav a { white-space: nowrap; }
  .cal-d { min-height: 54px; }
  .cal-d i { display: none; }
  .cal-d:has(i)::after { content: '•'; color: var(--accent); font-size: 18px; line-height: 0; }
  .coin-chip { padding: 0 10px; height: 38px; }
  .duel-head { gap: 14px; }
  .lesson-read { padding: 18px; }
}
/* ---------- özel açılır menü ---------- */
.fx-select { position: relative; display: block; min-width: 0; }
.fx-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; }
.fx-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; font-weight: 500; }
.fx-btn.select { padding: 0 12px 0 14px; }
.fx-btn .fx-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-btn.placeholder .fx-label { color: var(--muted); }
.fx-btn .fx-chev { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-3); color: var(--muted); flex-shrink: 0; transition: transform .25s var(--spring), background .2s, color .2s; }
.fx-btn .fx-chev svg { width: 14px; height: 14px; }
.fx-btn:hover .fx-chev { color: var(--text); }
.fx-select.open .fx-btn { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,62,58,.1); }
.fx-select.open .fx-chev { transform: rotate(180deg); background: var(--red-soft); color: var(--accent); }
.fx-btn:disabled { opacity: .55; cursor: not-allowed; }
.fx-pop { position: fixed; z-index: 700; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 6px; box-shadow: var(--shadow-lg); animation: fx-in .16s var(--ease); scrollbar-width: thin; }
.fx-pop.up { animation-name: fx-in-up; }
.fx-pop.closing { animation: fx-out .14s ease forwards; }
@keyframes fx-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes fx-in-up { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes fx-out { to { opacity: 0; transform: scale(.98); } }
.fx-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text); transition: background .12s; }
.fx-opt.act { background: var(--surface-2); }
.fx-opt.sel { background: var(--red-soft); color: var(--accent); font-weight: 700; }
.fx-opt.sel b { color: var(--accent); }
.fx-opt.ph { color: var(--muted); }
.fx-opt.dis { opacity: .4; cursor: not-allowed; }
/* piksel sürüm (Pixel Dünyası panelleri) */
.fx-select.px .fx-btn { font-family: var(--font); }
.fx-select.px .fx-chev { background: #3a2e31; color: #fff; border-radius: 3px; }
.fx-select.px.open .fx-btn { border-color: var(--lime); box-shadow: none; }
.fx-select.px.open .fx-chev { background: var(--lime); color: #1b1315; }
.fx-pop.px { background: #221a1c; border: 3px solid #0d0909; border-radius: 4px; box-shadow: 6px 6px 0 rgba(0,0,0,.45); padding: 4px; }
.fx-pop.px .fx-opt { color: #f3ece4; border-radius: 2px; }
.fx-pop.px .fx-opt.act { background: #382d31; }
.fx-pop.px .fx-opt.sel { background: #33391b; color: var(--lime); }
.fx-pop.px .fx-opt.sel b { color: var(--lime); }
/* ---------- Pixel Dünyası v4: yarış HUD'u, mini oyun ekranları ---------- */
.w-race { top: 84px; left: 50%; transform: translateX(-50%); z-index: 12; pointer-events: auto; text-align: center; min-width: 200px; font-size: 9px; line-height: 1.9; }
.w-race-time { font-size: 20px; color: #d4f04a; text-shadow: 3px 3px 0 #000; margin: 4px 0; }
.w-race-big { font-size: 46px; color: #ffd23f; text-shadow: 5px 5px 0 #000; padding: 10px 26px; animation: race-pop .8s var(--ease); }
@keyframes race-pop { from { transform: scale(2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pg-grid { display: grid; gap: 8px; }
.pg-tiles { display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; justify-content: center; }
.pg-tile { width: 46px; height: 46px; border: 3px solid #3a2e30; display: grid; place-items: center; font: 18px var(--pixel); color: #fff; background: #1b1315; text-transform: uppercase; }
.pg-tile.m2 { background: #16a34a; border-color: #15803d; }
.pg-tile.m1 { background: #ca8a04; border-color: #a16207; }
.pg-tile.m0 { background: #4b4446; border-color: #3a3335; }
.pg-tile.cur { border-color: #d4f04a; animation: tile-pop .15s var(--ease); }
.pg-tile.flip { animation: tile-flip .5s var(--ease) both; }
@keyframes tile-pop { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes tile-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.pg-kb { display: grid; gap: 4px; margin-top: 10px; }
.pg-kb div { display: flex; gap: 4px; justify-content: center; }
.pg-kb button { min-width: 26px; height: 34px; padding: 0 6px; border: 2px solid #3a2e30; background: #f3ece2; color: #1b1315; font: 10px var(--pixel); cursor: pointer; }
.pg-kb button.wide { min-width: 52px; }
.pg-kb button.m2 { background: #16a34a; color: #fff; } .pg-kb button.m1 { background: #ca8a04; color: #fff; } .pg-kb button.m0 { background: #6b6466; color: #fff; }
.pg-kb button:active { transform: translateY(2px); }
.pg-snake { display: block; margin: 0 auto; image-rendering: pixelated; background: #0f172a; border: 3px solid #312e81; max-width: 100%; touch-action: none; }
.pg-fishbar { position: relative; height: 26px; border: 3px solid #1b1315; background: linear-gradient(90deg, #ef4444 0 30%, #eab308 30% 42%, #22c55e 42% 58%, #eab308 58% 70%, #ef4444 70%); margin: 12px 0; }
.pg-fishbar i { position: absolute; top: -6px; width: 6px; height: 32px; background: #fff; border: 2px solid #1b1315; transform: translateX(-50%); }
.pg-book { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pg-book div { border: 2px solid #3a2e30; padding: 6px 4px; text-align: center; font-size: 8px; background: rgba(255,255,255,.04); line-height: 1.6; }
.pg-book div.no { opacity: .35; filter: grayscale(1); }
.pg-book b { display: block; font-size: 20px; }
.pg-plots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-plot { border: 3px solid #5e3719; background: #7a4a26; padding: 8px 6px; text-align: center; color: #fff; font-size: 8px; line-height: 1.7; min-height: 110px; display: flex; flex-direction: column; gap: 4px; justify-content: space-between; }
.pg-plot b { font-size: 26px; display: block; }
.pg-plot .bar { height: 6px; background: rgba(0,0,0,.4); } .pg-plot .bar i { display: block; height: 100%; background: #4ade80; }
.pg-seeds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pg-seeds button.sel { outline: 3px solid #d4f04a; }
.pg-order { display: flex; flex-direction: column; gap: 4px; }
.pg-order div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid #3a2e30; background: rgba(255,255,255,.05); font-size: 10px; }
.pg-order div.ok { border-color: #16a34a; background: rgba(22,163,74,.2); } .pg-order div.no { border-color: #ef4444; background: rgba(239,68,68,.15); }
.pg-order span { flex: 1; } .pg-order button { width: 28px; height: 26px; }
.pg-planet { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,.4); }
.pg-mol { border: 2px solid #3a2e30; padding: 8px; margin-bottom: 6px; display: grid; gap: 6px; }
.pg-mol.ok { border-color: #16a34a; } .pg-mol.no { border-color: #ef4444; }
.pg-atoms { display: flex; flex-wrap: wrap; gap: 4px; }
.pg-atoms label { display: flex; align-items: center; gap: 2px; font-size: 9px; border: 2px solid #3a2e30; padding: 2px 4px; background: rgba(255,255,255,.04); }
.pg-atoms input { width: 34px; padding: 2px; font: 10px var(--pixel); text-align: center; }
.pg-canvas { display: grid; grid-template-columns: repeat(16, 1fr); width: min(336px, 100%); aspect-ratio: 1; border: 3px solid #1b1315; margin: 0 auto; touch-action: none; cursor: crosshair; background-image: linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%), linear-gradient(45deg, #ddd 25%, #fff 25%, #fff 75%, #ddd 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.pg-canvas i { display: block; border-right: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); }
.pg-pal { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 10px 0; }
.pg-pal button { width: 26px; height: 26px; border: 2px solid #1b1315; cursor: pointer; }
.pg-pal button.sel { outline: 3px solid #d4f04a; outline-offset: 1px; }
.pg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pg-art { border: 3px solid #3a2e30; background: rgba(255,255,255,.04); padding: 6px; font-size: 8px; line-height: 1.7; }
.pg-art canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; display: block; background: #fff; margin-bottom: 4px; }
.pg-art .row2 { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.pg-art button { font-size: 10px; padding: 2px 6px; }
.pg-art button.on { color: #f472b6; }
.pg-stamps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.pg-stamps span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px dashed #a8a29e; font-size: 16px; opacity: .35; }
.pg-stamps span.on { border-style: solid; border-color: #b45309; background: rgba(180,83,9,.2); opacity: 1; }.px-choices button.ok { background: #15803d; border-color: #14532d; }
.px-choices button.no { background: #b91c1c; border-color: #7f1d1d; }
.px-choices button:disabled { cursor: default; }

/* ---------- yönetim: altın ---------- */
.coin-v { color: var(--amber); white-space: nowrap; }
.btn-coin { background: var(--amber-soft); color: var(--amber); border: 0; }
.btn-coin:hover { filter: brightness(1.1); }
.coin-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2, rgba(127,127,127,.12)); border-radius: 12px; }
.seg button { flex: 1; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.link-btn { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; margin-left: 6px; padding: 0; }
.coin-search { position: relative; }
.coin-results { display: grid; gap: 4px; margin-top: 8px; }
.coin-results button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.coin-results button:hover { border-color: var(--amber); }
.coin-log { max-height: 420px; overflow: auto; }

/* ---------- Pixel Dünyası v5: hareket çarkı, hızlı mesaj, sinema modu ---------- */
.w-bottom { position: absolute; }
.w-wheel, .w-quick { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); pointer-events: auto; z-index: 14; animation: wheel-in .18s var(--ease); }
.w-wheel { display: grid; grid-template-columns: repeat(6, 64px); gap: 6px; padding: 10px; }
.w-wheel button { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; background: #2c2326; border: 2px solid #0d0909; color: #fff; font: 7px var(--pixel); cursor: pointer; border-radius: 4px; }
.w-wheel button b { font-size: 20px; font-family: initial; }
.w-wheel button:hover, .w-wheel button:focus-visible { background: #d4f04a; color: #1b1315; transform: translateY(-2px); }
.w-quick { display: grid; gap: 4px; padding: 8px; min-width: 260px; }
.w-quick button { text-align: left; padding: 8px 10px; background: #2c2326; border: 2px solid #0d0909; color: #fff; font: 600 13px var(--font, inherit); cursor: pointer; border-radius: 4px; }
.w-quick button:hover { background: #3b82f6; }
@keyframes wheel-in { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.w-zone-tag { right: 14px; top: 270px; font-size: 8px; color: #fff; text-shadow: 2px 2px 0 #000; text-align: right; width: 188px; }
.world-wrap.in-room .w-zone-tag { display: none; }
.world-wrap.cinema .w-hud, .world-wrap.cinema .w-dpad, .world-wrap.cinema .w-bigmap { opacity: 0; pointer-events: none; transition: opacity .3s; }
.world-wrap.cinema::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4; box-shadow: inset 0 60px 0 #000, inset 0 -60px 0 #000; animation: bars-in .5s var(--ease); }
@keyframes bars-in { from { box-shadow: inset 0 0 0 #000, inset 0 0 0 #000; } }
@media (max-width: 760px) { .w-wheel { grid-template-columns: repeat(4, 58px); } .w-zone-tag { display: none; } }

/* ---------- Pixel Dünyası içindeyken pencereler, bildirimler, rozet mesajları piksel stilinde ---------- */
.modal-bg.px { background: rgba(13, 9, 9, .7); backdrop-filter: none; animation: px-fade .2s steps(3); }
.modal-bg.px .modal {
  background: #1f1719; color: #f3ece2; border: 4px solid #0d0909; border-radius: 0; padding: 22px 22px 20px;
  box-shadow: 0 0 0 4px #d4f04a, 10px 10px 0 4px rgba(0, 0, 0, .5); animation: px-pop .28s steps(4); image-rendering: pixelated;
}
.modal-bg.px .modal h3 { font-family: var(--pixel); font-size: 13px; line-height: 1.6; color: var(--lime); text-shadow: 3px 3px 0 #000; margin-bottom: 10px; }
.modal-bg.px .modal .sub, .modal-bg.px .modal p, .modal-bg.px .modal .small, .modal-bg.px .modal .label { font-family: var(--pixel); font-size: 9px; line-height: 2; color: #d8cfcc; }
.modal-bg.px .modal .muted { color: #a89c99; }
.modal-bg.px .modal .actions { gap: 12px; margin-top: 20px; }
.modal-bg.px .btn {
  font-family: var(--pixel); font-size: 10px; height: auto; padding: 12px 16px; border-radius: 0; border: 3px solid #0d0909;
  background: #3a2e31; color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 4px 4px 0 #000; transition: none;
}
.modal-bg.px .btn:hover { filter: brightness(1.15); transform: none; }
.modal-bg.px .btn:active { transform: translate(3px, 3px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3), 1px 1px 0 #000; }
.modal-bg.px .btn-primary { background: var(--accent); background-image: none; }
.modal-bg.px .btn-soft-red { background: #b91c1c; color: #fff; }
.modal-bg.px .btn-green { background: #18b26f; color: #fff; }
.modal-bg.px .input, .modal-bg.px .textarea, .modal-bg.px .select {
  font-family: var(--pixel); font-size: 10px; background: #120d0e; color: #fff; border: 3px solid #0d0909; border-radius: 0; box-shadow: inset 3px 3px 0 rgba(0, 0, 0, .4);
}
.modal-bg.px .input:focus, .modal-bg.px .textarea:focus { border-color: var(--lime); outline: none; }
@keyframes px-pop { 0% { opacity: 0; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
@keyframes px-fade { from { opacity: 0; } }

.toast.px {
  font-family: var(--pixel); font-size: 9px; line-height: 1.8; font-weight: 400; background: #1f1719; color: #fff;
  border: 3px solid #0d0909; border-radius: 0; box-shadow: 0 0 0 2px #d4f04a, 5px 5px 0 2px rgba(0, 0, 0, .45); animation: px-slide .3s steps(4);
}
.toast.px.ok { background: #15803d; box-shadow: 0 0 0 2px #86efac, 5px 5px 0 2px rgba(0, 0, 0, .45); }
.toast.px.err { background: #b91c1c; box-shadow: 0 0 0 2px #fca5a5, 5px 5px 0 2px rgba(0, 0, 0, .45); }
.toast.px.out { animation: toast-out .25s steps(3) forwards; }
@keyframes px-slide { from { opacity: 0; transform: translateX(40px); } }

.badge-pop.px {
  border-radius: 0; border: 4px solid #0d0909; background: #1f1719; padding: 14px 18px;
  box-shadow: 0 0 0 4px var(--lime), 8px 8px 0 4px rgba(0, 0, 0, .45); animation: px-drop .4s steps(5);
}
.badge-pop.px b { font-family: var(--pixel); font-size: 10px; line-height: 1.6; color: var(--lime); text-shadow: 2px 2px 0 #000; }
.badge-pop.px .small { font-family: var(--pixel); font-size: 8px; line-height: 1.9; color: #d8cfcc; margin-top: 4px; }
.badge-pop.px.out { animation: bp-out .3s steps(3) forwards; }
@keyframes px-drop { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
.xp-pop.px { text-shadow: 4px 4px 0 #000, 0 0 0 #000; }

/* ---------- sohbet ---------- */
.chat-app { display: grid; grid-template-columns: 290px 1fr; gap: 16px; height: calc(100vh - 120px); min-height: 520px; }
.chat-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; overflow: auto; }
.chat-glabel { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin: 10px 8px 6px; }
.chat-ch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
.chat-ch:hover { background: var(--surface-2); }
.chat-ch.on { background: var(--accent); color: #fff; }
.chat-ch.on .muted { color: rgba(255,255,255,.8); }
.chat-ch .ci { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; flex-shrink: 0; }
.chat-ch.on .ci { background: rgba(255,255,255,.2); }
.chat-ch .cm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-ch .cm b { font-size: 14px; } .chat-ch .cm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-ch .cr { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.chat-on { font-size: 10px; font-weight: 800; background: var(--green); color: #fff; padding: 1px 6px; border-radius: 99px; }
.chat-mode-dot { font-size: 12px; opacity: .8; }
.chat-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chat-head h2 { font-size: 18px; }
.ci.big { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); font-size: 24px; }
.chat-mode { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: var(--purple-soft); color: var(--purple); white-space: nowrap; }
.chat-here { display: flex; align-items: center; gap: 2px; }
.chat-here > span:not(.tiny) { margin-left: -6px; border: 2px solid var(--surface); border-radius: 50%; display: inline-flex; }
.chat-here .tiny { margin-left: 8px; }
.chat-rule { font-size: 13px; padding: 9px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--text-2); }
.chat-quiz { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; background: var(--amber-soft); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chat-qbtns { display: flex; gap: 6px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 10px 4px; scroll-behavior: auto; }
.chat-loading, .chat-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.chat-empty .big { font-size: 48px; }
.chat-day { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 800; color: var(--muted); margin: 14px 10px 8px; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; border-top: 1px solid var(--border); }

.chat-msg { display: flex; gap: 10px; padding: 6px 10px; border-radius: 12px; position: relative; animation: chat-in .25s var(--ease); }
.chat-msg.grouped { padding-top: 1px; }
.chat-msg:hover { background: var(--surface-2); }
.chat-msg.flash { background: var(--amber-soft); transition: background .3s; }
.chat-msg.question { background: var(--blue-soft); margin: 6px 0; }
.chat-msg.best { background: var(--green-soft); }
.chat-msg.bot .chat-text { font-family: var(--font); background: var(--surface-2); border: 1px dashed var(--border-2); padding: 10px 12px; border-radius: 12px; margin-top: 4px; display: inline-block; }
.chat-av { width: 36px; flex-shrink: 0; }
.chat-bot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); font-size: 20px; }
.chat-body { flex: 1; min-width: 0; }
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.chat-meta a { color: inherit; } .chat-meta b { font-size: 14px; } .botname { color: var(--purple); font-size: 14px; }
.tiny-chip { font-size: 10px; padding: 2px 7px; }
.chat-text { font-size: 15px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-text.jumbo { font-size: 34px; line-height: 1.2; }
.chat-quote { font-size: 12px; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 8px; margin: 2px 0 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-qbadge { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: var(--blue); color: #fff; margin: 2px 6px 4px 0; }
.chat-qbadge.ok { background: var(--green); }
.chat-ans { margin-top: 6px; border: 0; background: var(--surface); color: var(--blue); font: inherit; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.chat-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chat-reacts button { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 2px 8px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.chat-reacts button.mine { border-color: var(--accent); background: var(--red-soft); }
.chat-act { position: absolute; right: 10px; top: -12px; display: none; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px; box-shadow: var(--shadow-sm); }
.chat-msg:hover .chat-act, .chat-msg:focus-within .chat-act { display: flex; }
.chat-act button { border: 0; background: none; width: 30px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 14px; color: inherit; }
.chat-act button:hover { background: var(--surface-2); }
.chat-picker { position: absolute; right: 10px; top: 20px; z-index: 5; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 4px; box-shadow: var(--shadow); animation: chat-in .15s; }
.chat-picker button { border: 0; background: none; font-size: 20px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: transform .1s; }
.chat-picker button:hover { transform: scale(1.25); background: var(--surface-2); }
.chat-typing { min-height: 20px; font-size: 12px; color: var(--muted); padding: 0 20px; font-style: italic; }
.chat-input { border-top: 1px solid var(--border); padding: 10px 14px 8px; position: relative; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row textarea { flex: 1; resize: none; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 15px; max-height: 140px; outline: none; }
.chat-row textarea:focus { border-color: var(--accent); }
.chat-ib { width: 42px; height: 42px; border: 0; background: var(--surface-2); border-radius: 12px; font-size: 20px; cursor: pointer; }
.chat-send { height: 42px; width: 46px; padding: 0; justify-content: center; }
.chat-send:disabled { opacity: .5; }
.chat-qt { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 0 6px; height: 42px; cursor: pointer; }
.chat-hint { margin-top: 4px; padding-left: 50px; }
.chat-reply { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; background: var(--surface-2); border-radius: 10px; margin-bottom: 8px; border-left: 3px solid var(--accent); }
.chat-reply span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reply button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 14px; }
.chat-emoji { position: absolute; bottom: calc(100% - 4px); left: 14px; display: grid; grid-template-columns: repeat(8, 38px); gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 6; }
.chat-emoji button { border: 0; background: none; font-size: 22px; height: 38px; border-radius: 8px; cursor: pointer; }
.chat-emoji button:hover { background: var(--surface-2); }
.chat-ro { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); background: var(--surface-2); }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 860px) {
  .chat-app { grid-template-columns: 1fr; height: calc(100vh - 110px); }
  .chat-side { display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .chat-glabel { display: none; }
  .chat-ch { flex-shrink: 0; padding: 6px 10px; }
  .chat-ch .cm .muted, .chat-ch .cr { display: none; }
  .chat-hint { display: none; }
  .chat-emoji { grid-template-columns: repeat(6, 38px); }
}

/* ---------- Pixel Dünyası giriş ekranı (lobi) ---------- */
.lobby { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: calc(100vh - 90px); min-height: 560px; border: 4px solid var(--side); background: #1b1315; color: #fff; font-family: var(--pixel); }
.lobby-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.lobby-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,9,9,.92) 0%, rgba(13,9,9,.78) 46%, rgba(13,9,9,.25) 100%); }
.lobby-ui { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; max-width: 760px; }
.lobby-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lobby-logo { font-size: 30px; line-height: 1.25; color: var(--lime); text-shadow: 4px 4px 0 #000, 0 0 24px rgba(212,240,74,.35); animation: logo-bob 3s ease-in-out infinite; }
@keyframes logo-bob { 50% { transform: translateY(-4px); } }
.lobby-sub { font-size: 8px; color: #d8cfcc; margin-top: 10px; letter-spacing: .08em; }
.lobby-me { display: flex; align-items: center; gap: 10px; background: rgba(20,12,14,.85); border: 3px solid #0d0909; box-shadow: 4px 4px 0 rgba(0,0,0,.4); padding: 8px 14px 8px 6px; }
.lobby-me canvas { image-rendering: pixelated; }
.lobby-me b { display: block; font-size: 11px; color: #fff; margin-bottom: 6px; }
.lobby-me span { display: block; font-size: 7px; color: #b9aeab; line-height: 1.9; }
.lobby-continue { align-self: flex-start; font: 11px var(--pixel); background: var(--lime); color: #1b1315; border: 3px solid #0d0909; padding: 13px 18px; box-shadow: 5px 5px 0 #000; cursor: pointer; animation: pulse-glow 2s infinite; }
.lobby-continue:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
@keyframes pulse-glow { 50% { box-shadow: 5px 5px 0 #000, 0 0 22px rgba(212,240,74,.6); } }
.lobby-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lobby-tabs button { font: 9px var(--pixel); padding: 10px 12px; background: #2c2326; color: #d8cfcc; border: 3px solid #0d0909; cursor: pointer; }
.lobby-tabs button.on { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 2px 0 #000; }
.lobby-body { flex: 1; overflow: auto; padding: 4px 6px 10px 0; }
.lb-worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lb-world { position: relative; text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: rgba(28,20,22,.92); border: 3px solid #0d0909; box-shadow: inset 0 4px 0 var(--wc), 4px 4px 0 rgba(0,0,0,.5); color: #fff; cursor: pointer; transition: transform .1s; font-family: var(--pixel); }
.lb-world:hover, .lb-world:focus-visible { transform: translate(-2px, -2px); box-shadow: inset 0 4px 0 var(--wc), 6px 6px 0 rgba(0,0,0,.5), 0 0 0 3px var(--wc); }
.lb-wi { font-size: 34px; font-family: initial; }
.lb-world b { font-size: 11px; color: var(--wc); text-shadow: 2px 2px 0 #000; }
.lb-wd { font: 12px var(--font); line-height: 1.45; color: #d8cfcc; }
.lb-wo { font-size: 7px; color: #86efac; }
.lb-go { position: absolute; right: 12px; top: 14px; font-size: 8px; background: var(--wc); color: #1b1315; padding: 5px 7px; border: 2px solid #0d0909; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-srv { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(28,20,22,.92); border: 3px solid #0d0909; box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.lb-srv[hidden] { display: none; }
.lb-ic { width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px; border: 3px solid #0d0909; flex-shrink: 0; font-family: initial; }
.lb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-info b { font-size: 10px; } .lb-info span { font: 12px var(--font); color: #b9aeab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-info code { color: var(--lime); font-family: var(--pixel); font-size: 9px; }
.lb-count { font-size: 9px; color: #86efac; white-space: nowrap; }
.lb-count.full { color: #fca5a5; }
.lb-search { display: flex; gap: 8px; margin-bottom: 4px; }
.lb-search .px-input { flex: 1; }
.lb-form { display: flex; flex-direction: column; max-width: 520px; background: rgba(28,20,22,.92); border: 3px solid #0d0909; padding: 16px; box-shadow: 4px 4px 0 rgba(0,0,0,.45); }
.lb-themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lb-theme { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; background: #2c2326; border: 3px solid #0d0909; cursor: pointer; text-align: center; }
.lb-theme input { position: absolute; opacity: 0; pointer-events: none; }
.lb-theme span { font-size: 24px; font-family: initial; } .lb-theme b { font-size: 6px; line-height: 1.5; }
.lb-theme:has(input:checked) { border-color: var(--wc); box-shadow: 0 0 0 2px var(--wc); background: #3a2e31; }
.lb-range { width: 100%; accent-color: var(--lime); }
.lb-check { display: flex; align-items: center; gap: 8px; font-size: 8px; line-height: 1.8; margin: 12px 0 0; cursor: pointer; }
.lb-code { width: 100%; letter-spacing: .3em; text-transform: uppercase; }
.w-srv { font-size: 7px; color: var(--lime); margin-top: 2px; }
@media (max-width: 760px) {
  .lobby-ui { padding: 16px; } .lobby-logo { font-size: 20px; } .lobby-shade { background: rgba(13,9,9,.82); }
  .lb-themes { grid-template-columns: repeat(3, 1fr); }
}
.chat-app .chat-input { display: block; gap: 0; }
.lb-form .px-mini { font-size: 7px; line-height: 1.8; color: #b9aeab; margin-top: 10px; }

/* lobi: sayfanın içinde açılır, pencereyi yalnızca tam ekran düğmesiyle kaplar */
.lobby:fullscreen { height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
.lobby-ui { max-width: 980px; padding: 34px 40px 24px; }
.lobby-logo { font-size: 38px; }
.lobby-corner { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 8px; }
.lobby-cb { font: 9px var(--pixel); color: #fff; background: rgba(20,12,14,.88); border: 3px solid #0d0909; padding: 10px 12px; box-shadow: 3px 3px 0 #000; cursor: pointer; text-decoration: none; }
.lobby-cb:hover { background: var(--accent); }
.lobby-cb:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.lobby .lb-worlds { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lobby-body { scrollbar-width: thin; scrollbar-color: var(--lime) rgba(0,0,0,.4); }
.lobby-body::-webkit-scrollbar { width: 12px; }
.lobby-body::-webkit-scrollbar-track { background: rgba(0,0,0,.45); border: 3px solid #0d0909; }
.lobby-body::-webkit-scrollbar-thumb { background: var(--lime); border: 3px solid #0d0909; }
@media (max-width: 760px) { .lobby-ui { padding: 64px 16px 16px; } .lobby-logo { font-size: 22px; } .lobby-corner { top: 10px; right: 10px; } }
.lobby-ui { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .lobby .lb-worlds { grid-template-columns: 1fr; }
  .lobby-cb { font-size: 7px; padding: 8px 9px; }
  .lobby-me { max-width: 100%; box-sizing: border-box; }
  .lobby-tabs button { font-size: 8px; padding: 9px 10px; }
}
/* telefonda üst bar sayfayı yana taşırmasın */
@media (max-width: 560px) {
  .topbar { min-width: 0; }
  .topbar .search { min-width: 0; flex: 1 1 0; padding-left: 10px; padding-right: 8px; }
  .topbar .search input { min-width: 0; width: 100%; }
  .topbar .spacer { display: none; }
  .coin-chip { padding: 0 8px; gap: 4px; font-size: 13px; flex-shrink: 0; }
  .topbar > * { flex-shrink: 0; }
  .topbar > .search { flex-shrink: 1; }
}
@media (max-width: 480px) { .topbar > .search { display: none; } .topbar > .spacer { display: block; flex: 1; } }

/* ---------- okul paneli: hızlı bağlantılar ---------- */
.sc-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sc-quick .card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; }
.sc-quick .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.sc-quick .ic svg { width: 20px; height: 20px; }

/* ---------- okul dünyası düzenleyicisi ---------- */
.sw-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sw-prev { position: sticky; top: 70px; }
.sw-canvas { border-radius: 14px; overflow: hidden; border: 3px solid var(--side); background: #5cae4b; }
.sw-canvas canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.sw-col { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.sw-col.on { box-shadow: 0 0 0 2px var(--text); transform: scale(1.08); }
#swColor { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.sw-range { width: 100%; accent-color: var(--accent); }
.sw-logo canvas { display: block; width: 48px; height: 48px; image-rendering: pixelated; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); }
.sw-grid label.btn { cursor: pointer; }
@media (max-width: 1000px) { .sw-grid { grid-template-columns: 1fr; } .sw-prev { position: static; } }

/* ---------- lobi: okulumun dünyası ---------- */
.lb-school { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 14px 16px; text-align: left; font-family: var(--pixel); color: #fff; cursor: pointer;
  background: linear-gradient(90deg, rgba(30,58,138,.95), rgba(28,20,22,.92)); border: 3px solid #0d0909; box-shadow: inset 0 4px 0 #f2c94c, 4px 4px 0 rgba(0,0,0,.5); transition: transform .1s; }
.lb-school:hover, .lb-school:focus-visible { transform: translate(-2px, -2px); box-shadow: inset 0 4px 0 #f2c94c, 6px 6px 0 rgba(0,0,0,.5), 0 0 0 3px #f2c94c; }
.lb-school img { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 50%; flex-shrink: 0; }
.lb-school .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-school b { font-size: 11px; color: #f2c94c; text-shadow: 2px 2px 0 #000; }
.lb-school .lb-go { position: static; background: #f2c94c; }
.invite-box { padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--text); border-left: 3px solid var(--green); font-size: 14px; margin-bottom: 14px; }
.w-otag { font-size: 6px; color: #fff; padding: 2px 3px; margin-left: 4px; vertical-align: 1px; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.w-orow[data-oid]:not([data-oid=""]) { cursor: pointer; }
.px-roletag { display: inline-block; font: 7px var(--pixel); letter-spacing: .04em; padding: 5px 7px 4px; margin: 2px 0 4px; box-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.role-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; vertical-align: middle; }
.tag-prev { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #4a8f3c; min-width: 140px; }
.tag-prev .tag-name { font: 8px var(--pixel); color: #fff; background: rgba(20,12,14,.78); padding: 5px 7px; }

/* ---------- marka: gamedschool logosu (arka karesiz; düz ve piksel sürüm) ---------- */
.gs-logo { --gs: 34px; display: inline-flex; align-items: center; gap: calc(var(--gs) * .22); line-height: 1; vertical-align: middle; white-space: nowrap; user-select: none; }
.gs-mark { width: var(--gs); height: var(--gs); flex-shrink: 0; }
/* yatay logoda G halkası yazının mürekkep yüksekliğine oturur (üstten "d", alttan "g" kuyruğu); kep yazının üstüne taşar */
.gs-logo:not(.gs-mark):not(.gs-hero) > .gs-mark { width: calc(var(--gs) * .86); height: calc(var(--gs) * .86); }
.gs-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gs-pixel .gs-mark svg { image-rendering: pixelated; }
/* yeni simge renkleri: açık zeminde lacivert kep, koyu zeminde beyaz kep */
.gs-logo { --gs-c1: #ef3b3b; --gs-c2: #ff9a1f; --gs-cb: #1a1330; --gs-ct: #2b2145; --gs-ch: .14; --gs-tas: #f5b70a; }
.gs-g1 { stop-color: var(--gs-c1); } .gs-g2 { stop-color: var(--gs-c2); }
.gs-cb { fill: var(--gs-cb); } .gs-ct { fill: var(--gs-ct); } .gs-ch { opacity: var(--gs-ch); } .gs-tl { stroke: var(--gs-tas); } .gs-tf { fill: var(--gs-tas); }
.gs-white, :root[data-theme="dark"] .gs-logo { --gs-c1: #ff5a45; --gs-c2: #ffb02e; --gs-cb: #d8d2e8; --gs-ct: #fff; --gs-ch: 0; --gs-tas: #ffc21a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-logo { --gs-c1: #ff5a45; --gs-c2: #ffb02e; --gs-cb: #d8d2e8; --gs-ct: #fff; --gs-ch: 0; --gs-tas: #ffc21a; } }
/* tek hareket: üstüne gelince kep hafifçe zıplar */
.gs-cap { transform-box: view-box; transform-origin: 50% 30%; }
.gs-logo:hover .gs-cap, a:hover > .gs-logo .gs-cap { animation: gs-hop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes gs-hop { 40% { transform: translateY(-6%) rotate(-6deg); } 100% { transform: none; } }
/* yazı: "gamed" koyu, "school" geçişli renk (sabit) */
.gs-word { font-family: var(--font); font-weight: 800; font-size: calc(var(--gs) * .74); letter-spacing: -.045em; display: inline-flex; align-items: baseline; }
.gs-g { color: var(--text); }
.gs-s { background: linear-gradient(90deg, #ef3b3b, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gs-white .gs-g { color: #fff; }
.gs-white .gs-s { background-image: linear-gradient(90deg, #ff5a45, #ffb02e); }
.gs-mark-only .gs-word, .gs-mark .gs-word { display: none; }
/* büyük logo: bir kez, sade bir beliriş */
.gs-hero { --gs: 72px; animation: gs-in .6s var(--ease) both; }
@keyframes gs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* büyük logoda simge yazıyla aynı görsel ağırlıkta; slogan yazının tam genişliğine yayılır, sayfa hizalamasından etkilenmez */
.gs-hero .gs-mark { width: calc(var(--gs) * 1.12); height: calc(var(--gs) * 1.12); }
.gs-wrap { display: inline-flex; flex-direction: column; align-items: stretch; gap: calc(var(--gs) * .12); text-align: left; }
.gs-tag { display: flex; justify-content: space-between; align-items: center; padding: 0 .06em 0 .12em; font: 800 calc(var(--gs) * .2) / 1 var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.gs-tag i { width: calc(var(--gs) * .06); height: calc(var(--gs) * .06); border-radius: 50%; background: #ff8a1f; opacity: .8; }
.gs-white .gs-tag { color: rgba(255,255,255,.65); }
.reduce-motion .gs-logo, .reduce-motion .gs-logo * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .gs-logo, .gs-logo * { animation: none !important; } }
/* yerleşimler */
.side-logo .gs-logo { --gs: 32px; }
.side-logo > a { overflow: visible; }
.side-mini .side-logo .gs-word { display: none; }
.l-brand .gs-logo { --gs: 38px; }
.auth-side .gs-logo { --gs: 40px; align-self: flex-start; }
.legal-brand .gs-logo { --gs: 34px; }
.lobby-brand { display: inline-flex; align-items: center; gap: 8px; font: 9px var(--pixel); color: #ffd9a8; letter-spacing: .1em; margin-bottom: 10px; text-shadow: 2px 2px 0 #000; }
.lobby-brand img { width: 24px; height: 24px; image-rendering: pixelated; }
.l-hero-brand { margin-bottom: 18px; }
@media (max-width: 560px) { .l-hero-brand .gs-logo { --gs: 46px; } }

/* ---------- tanıtım sayfası v3: harita, Butik vitrini, sekmeli demo ---------- */
.l-new { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; max-width: 100%; }
.l-new b { font: 8px var(--pixel); background: #1b1315; color: var(--lime); padding: 6px 8px; border-radius: 99px; flex-shrink: 0; }
.l-new span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-new i { font-style: normal; color: var(--accent); transition: transform .2s var(--ease); }
.l-new:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.l-new:hover i { transform: translateX(3px); }
/* demo: yan panel dünyayla aynı boyda, liste kendi içinde kayar */
.l-demo { align-items: start; }
.l-demo-side { height: min(640px, 72vh); min-height: 420px; gap: 12px; overflow: hidden; }
.l-demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--side-2); border-radius: 14px; }
.l-demo-tabs button { padding: 8px 4px; border-radius: 10px; color: var(--side-muted); font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.l-demo-tabs button.on { background: var(--side-3); color: #fff; }
.l-demo-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: var(--side-3) transparent; }
.l-bld em { font: 6px var(--pixel); font-style: normal; background: var(--lime); color: #1b1315; padding: 3px 5px; border-radius: 4px; margin-left: 6px; }
.l-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.l-keys span { display: inline-flex; align-items: center; gap: 4px; }
.l-keys kbd { font: 8px var(--pixel); min-width: 22px; padding: 5px 6px; text-align: center; background: var(--surface); border: 1px solid var(--border-2); border-bottom-width: 3px; border-radius: 6px; color: var(--text); }
/* harita */
.l-map { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.l-map-view { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 5px solid var(--side); box-shadow: var(--shadow-lg); background: var(--side); }
.l-map-view canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.l-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.l-zone { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.l-zone:hover, .l-zone.on { transform: translateY(-2px); border-color: var(--accent-2); box-shadow: var(--shadow); }
.l-zone-ic { font-size: 22px; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--surface-3); }
.l-zone b { display: block; font-size: 14px; line-height: 1.2; }
.l-zone b i { font: 6px var(--pixel); font-style: normal; background: var(--lime); color: #1b1315; padding: 3px 4px; border-radius: 4px; vertical-align: 2px; }
.l-zone small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.3; }
/* Butik vitrini */
.l-shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.l-mirror { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-xl); background: repeating-conic-gradient(#2c2326 0 25%, #261e21 0 50%) 0 0 / 20px 20px; border: 5px solid var(--side); box-shadow: var(--shadow-lg); }
.l-mirror canvas { width: 100%; aspect-ratio: 160 / 224; image-rendering: pixelated; display: block; }
.l-mirror-name { display: flex; flex-wrap: wrap; gap: 4px; min-height: 52px; align-content: flex-start; }
.l-mirror-name span { font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); padding: 3px 7px; border-radius: 99px; }
.l-shop-side { display: flex; flex-direction: column; gap: 14px; }
.l-cats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.l-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.l-cat span { font-size: 22px; }
.l-cat b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.l-cat small { font-size: 11px; color: var(--muted); font-weight: 600; }
.l-fits { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.l-fit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; background: var(--side); border-radius: 18px; text-align: center; }
.l-fit canvas { width: 96px; height: 120px; image-rendering: pixelated; }
.l-fit small { color: var(--side-text); font-size: 12px; font-weight: 600; }
.l-cta-mark { display: flex; justify-content: center; margin-bottom: 14px; }
.l-cta-mark .gs-logo { --gs: 56px; }
.l-foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 1100px) {
  .l-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .l-map { grid-template-columns: 1fr; }
  .l-zones { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; }
}
@media (max-width: 1000px) {
  .l-demo-side { display: flex; height: auto; min-height: 0; }
  .l-demo-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .l-demo-list .l-bld { flex-shrink: 0; background: var(--side-2); }
  .l-demo-list .l-bld i { display: none; }
}
@media (max-width: 760px) {
  .l-shop { grid-template-columns: 1fr; }
  .l-mirror { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .l-mirror canvas { width: 120px; }
  .l-mirror-name { flex: 1; min-width: 150px; }
  .l-fits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-zones { grid-template-columns: 1fr 1fr; }
  .l-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) { .l-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .l-zones { grid-template-columns: 1fr; } .l-new span { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .l-zone, .l-new, .l-new i { transition: none; } }

/* ---------- Butik v6: mağaza filtreleri, uzun önizlemeler, büyük harita ---------- */
.px-shop-i canvas.tall { height: 80px; }
.px-tabs button small { opacity: .6; font-size: 7px; }
.px-tabs.px-filter { margin-top: -6px; }
.px-tabs.px-filter button { font-size: 7px; padding: 6px 8px; background: #241b1e; }
.px-tabs.px-filter button.on { background: var(--accent); color: #fff; }

/* ---------- yönetim: Yakında sayfası kartı ---------- */
.soon-card { border: 2px solid var(--border); transition: border-color .3s, box-shadow .3s; }
.soon-card.on { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255, 138, 31, .12), var(--shadow); }
.soon-wait { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.toggle.big { transform: scale(1.25); transform-origin: right top; }
/* yönetim kenar çubuğu: logo + ADMİN rozeti 232px'e sığsın */
.side-logo:has(.admin-chip) .gs-logo { --gs: 27px; }
.side-logo .admin-chip { flex-shrink: 0; }

/* ---------- satranç ---------- */
.ch-steps { display: flex; gap: 6px; margin-bottom: 8px; }
.ch-steps i { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); }
.ch-steps i.done { background: var(--green); } .ch-steps i.on { background: var(--accent-2); }
.ch-text p { font-size: 16px; line-height: 1.65; }
.ch-fb { min-height: 24px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: 14.5px; }
.ch-fb:empty { display: none; }
.ch-fb.ok { background: var(--green-soft); color: var(--green-text); }
.ch-fb.err { background: var(--red-soft); color: var(--red); }
.chess-hero { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.ch-left { display: flex; gap: 18px; align-items: center; flex: 1; min-width: 280px; }
.ch-left h2 { font-size: 22px; }
.ch-prog { height: 10px; border-radius: 99px; background: var(--surface-3); margin: 10px 0 6px; overflow: hidden; }
.ch-prog i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.ch-stats { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 8px; }
.ch-stats div { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.ch-stats b { display: block; font-size: 24px; font-weight: 800; }
.ch-stats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ch-lessons { display: flex; flex-direction: column; gap: 8px; }
.ch-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: transform .15s var(--ease), border-color .2s; }
.ch-lesson:hover { transform: translateX(3px); border-color: var(--accent-2); }
.ch-lesson b { display: block; } .ch-lesson small { color: var(--muted); font-size: 12.5px; }
.ch-n { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font-weight: 800; font-size: 13px; }
.ch-lesson.done .ch-n { background: var(--green); color: #fff; }
.ch-ic { font-size: 24px; width: 32px; text-align: center; }
.chess-cols { align-items: start; }
@media (max-width: 900px) { .ch-play { grid-template-columns: 1fr; } .ch-stats { grid-template-columns: repeat(2, 1fr); width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cb-star { animation: none; } .cb-p { transition: none; } }

/* okul bilgileri özeti */
.sc-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; font-size: 13px; }
.sc-details div { display: flex; flex-direction: column; min-width: 0; }
.sc-details span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.sc-details b { overflow-wrap: anywhere; }
.field-hint.ok { color: var(--green-text); }
.field-hint.err { color: var(--red); }

/* ---------- satranç tahtası (chess-ui.js → ChessBoard) ---------- */
.cb { --cb-l: #eae9d2; --cb-d: #4b7399; position: relative; width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 0 14px 40px -18px rgba(20, 24, 40, .55); container-type: inline-size; cursor: pointer; }
.cb.dragging { cursor: grabbing; }
.cb-sqs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); z-index: 0; }
.cb-sq { position: relative; }
.cb-sq.l { background: var(--cb-l); } .cb-sq.d { background: var(--cb-d); }
.cb-sq.last::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 51, .4); }
.cb-sq.sel::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 51, .55); }
.cb-sq.umark::before { content: ''; position: absolute; inset: 0; background: rgba(235, 97, 80, .82); }
.cb-sq.chk::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 0, 0, 1) 0%, rgba(231, 0, 0, .55) 38%, rgba(169, 0, 0, 0) 74%); }
.cb-sq.mark::after { content: ''; position: absolute; inset: 7%; border-radius: 50%; border: .9cqw solid rgba(239, 62, 58, .8); }
.cb-sq.tg::after { content: ''; position: absolute; left: 50%; top: 50%; width: 32%; height: 32%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .16); }
.cb-sq.tgc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1cqw rgba(0, 0, 0, .17); }
.cb-sq.hov::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 .6cqw rgba(255, 255, 255, .8); background: none; }
.cb-sq.mated::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #ff5252 0%, #e02424 55%, #a30f0f 100%); animation: cb-mate 1s ease-in-out infinite alternate; }
.cb-sq.won::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(155, 225, 93, .95), rgba(129, 182, 76, .4)); }
.cb-sq i { position: absolute; z-index: 1; font: 700 2.4cqw/1 var(--font); font-style: normal; pointer-events: none; }
.cb-sq.l i { color: var(--cb-d); } .cb-sq.d i { color: var(--cb-l); }
.cb-sq .cf { right: 4%; bottom: 4%; } .cb-sq .cr { left: 5%; top: 5%; }
.cb.no-coords .cb-sq i { display: none; }
.cb-star { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6.4cqw; animation: float 2.4s ease-in-out infinite; pointer-events: none; z-index: 1; }
.cb-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.cb-pcs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cb-pc { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; transition: transform .2s cubic-bezier(.25, .8, .35, 1); will-change: transform; }
.cb.pixel .cb-pc, .cb-caps img[src^="data:"], .cp-sets img[src^="data:"] { image-rendering: pixelated; }
.cb-pc.drag { z-index: 10; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .35)); }
.cb-pc.gone { animation: cb-gone .22s ease forwards; }
.cb-pc.pop { animation: cb-pop .25s ease both; }
.cb-pc.lost { filter: drop-shadow(0 0 .7cqw rgba(239, 35, 35, 1)) drop-shadow(0 0 .3cqw rgba(239, 35, 35, 1)); }
.cb.reviewing { box-shadow: 0 14px 40px -18px rgba(20, 24, 40, .55), 0 0 0 3px #f59e0b; }
.cb-badge { position: absolute; z-index: 4; width: 4.8cqw; height: 4.8cqw; min-width: 18px; min-height: 18px; transform: translate(-75%, -25%); border-radius: 50%; display: grid; place-items: center; font: 800 2.8cqw/1 var(--font); color: #fff; border: .4cqw solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); animation: cb-badge .45s var(--spring) .45s both; }
.cb-badge.win { background: #81b64c; } .cb-badge.lose { background: #e02828; } .cb-badge.draw { background: #8b8987; }
.cb-ovl { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: grid; place-items: center; }
.cb-result { pointer-events: auto; position: relative; min-width: 58%; max-width: 88%; padding: 4.5cqw 5cqw 4cqw; border-radius: 18px; text-align: center; background: rgba(22, 21, 18, .88); color: #fff; backdrop-filter: blur(4px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: cb-res .45s var(--spring) both; cursor: default; }
.cb-rt { font: 900 10.5cqw/1 var(--font); letter-spacing: .04em; color: #ff4d4d; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); white-space: nowrap; }
.cb-result.good .cb-rt { color: #9be15d; } .cb-result.draw .cb-rt { color: #e5e7eb; } .cb-result.resign:not(.good) .cb-rt { color: #fbbf24; }
.cb-rt span { display: inline-block; animation: cb-letter .5s var(--spring) both; animation-delay: calc(var(--i) * 55ms + .1s); }
.cb-rt .sp { width: .3em; }
.cb-rs { margin-top: 2cqw; font-size: max(13px, 2.9cqw); opacity: .92; font-weight: 600; }
.cb-ra { margin-top: 3.2cqw; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cb-rx { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #fff; opacity: .7; font-size: 16px; cursor: pointer; }
.cb-rx:hover { opacity: 1; }
.cb-promo-wrap { position: absolute; inset: 0; z-index: 6; background: rgba(0, 0, 0, .35); cursor: default; }
.cb-promo { position: absolute; top: 0; width: 12.5%; display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); overflow: hidden; animation: fade .15s; }
.cb-promo.up { top: auto; bottom: 0; flex-direction: column-reverse; }
.cb-promo button { aspect-ratio: 1; border: 0; background: #fff; padding: 6%; cursor: pointer; display: grid; place-items: center; }
.cb-promo button:hover { background: #f0b25a; }
.cb-promo button img { width: 100%; height: 100%; }
.cb-promo .x { aspect-ratio: auto; padding: 1.4cqw 0; background: #f1f1f1; color: #666; font-weight: 700; }
@keyframes cb-gone { to { opacity: 0; } }
@keyframes cb-pop { from { opacity: 0; } }
@keyframes cb-mate { from { filter: brightness(1); } to { filter: brightness(1.3); } }
@keyframes cb-badge { from { opacity: 0; transform: translate(-75%, -25%) scale(0); } }
@keyframes cb-res { from { opacity: 0; transform: scale(.7); } }
@keyframes cb-letter { from { opacity: 0; transform: translateY(-60%) scale(1.6) rotate(-8deg); } }
@keyframes cb-turn { 50% { transform: scale(1.25); } }

/* oyun düzeni: oyuncu satırları, yan panel, hamle listesi */
.ch-play { display: grid; grid-template-columns: minmax(0, 640px) minmax(270px, 360px); gap: 22px; align-items: start; justify-content: center; }
.ch-play.lesson { grid-template-columns: minmax(0, 580px) minmax(270px, 400px); }
.ch-board-col { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: max(300px, calc(100vh - 220px)); min-width: 0; justify-self: center; }
.ch-player { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 8px; border-radius: 12px; transition: background .2s; }
.ch-player.turn { background: var(--surface-2); }
.pl-av { display: inline-flex; flex-shrink: 0; }
.pl-bot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); font-size: 20px; }
.pl-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pl-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name small { color: var(--muted); font-size: 12px; font-weight: 600; }
.cb-caps { display: inline-flex; align-items: center; flex-wrap: wrap; margin-left: 4px; min-width: 0; }
.cb-caps img { width: 20px; height: 20px; margin-right: -7px; }
.cb-caps em { font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--muted); margin-left: 12px; }
.pl-turn { margin-left: auto; opacity: .2; font-size: 14px; transition: opacity .2s; }
.ch-player.turn .pl-turn { opacity: 1; animation: cb-turn 1.4s ease-in-out infinite; }
.ch-side { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.ch-side .field { margin: 0; }
.ch-side-head { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.ch-ib { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-size: 16px; color: inherit; display: grid; place-items: center; }
.ch-ib:hover { background: var(--surface-3); }
.ch-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-acts:empty { display: none; }
.ch-nav { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.nv-list { max-height: 250px; overflow-y: auto; padding: 4px 0; font-variant-numeric: tabular-nums; position: relative; }
.nv-row { display: grid; grid-template-columns: 40px 1fr 1fr; align-items: center; padding: 1px 8px; }
.nv-row.alt { background: rgba(0, 0, 0, .03); }
.nv-row .mn { color: var(--muted); font-size: 13px; font-weight: 600; }
.nv-row button { text-align: left; border: 0; background: none; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 14px; color: inherit; cursor: pointer; }
.nv-row button:hover { background: var(--surface-3); }
.nv-row button.on { background: #4b7399; color: #fff; }
.nv-empty { padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.nv-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.nv-bar button { border: 0; background: transparent; padding: 9px 0; font-size: 14px; cursor: pointer; color: inherit; }
.nv-bar button:hover:not(:disabled) { background: var(--surface-3); }
.nv-bar button:disabled { opacity: .3; cursor: default; }
.nv-review { font-size: 12.5px; padding: 6px 10px; background: rgba(245, 158, 11, .16); }
.ch-mini { width: 132px; flex-shrink: 0; }
.ch-mini .cb { border-radius: 10px; cursor: default; }
.ch-mini .cb-sq i { display: none; }
@media (max-width: 900px) {
  .ch-play, .ch-play.lesson { grid-template-columns: 1fr; }
  .ch-board-col { max-width: 100%; }
}

/* satranç ayarları penceresi */
.cp-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; }
.cp-prev .cb { max-width: 270px; }
.cp-sets, .cp-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-sets button, .cp-themes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); cursor: pointer; color: inherit; transition: border-color .15s, transform .12s; }
.cp-sets button:hover, .cp-themes button:hover { transform: translateY(-2px); }
.cp-sets button.on, .cp-themes button.on { border-color: var(--accent); background: var(--surface); }
.cp-sets span { display: flex; } .cp-sets img { width: 34px; height: 34px; }
.cp-sets small, .cp-themes small { font-size: 11.5px; font-weight: 700; }
.cp-themes i { width: 42px; height: 42px; border-radius: 8px; display: block; }
.cp-toggles { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.cp-tg { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.cp-tg input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 700px) { .cp-wrap { grid-template-columns: 1fr; } .cp-prev .cb { margin: 0 auto; max-width: 230px; } .cp-sets, .cp-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Pixel Dünyası satranç paneli */
.px-panel.px-chess { width: min(1060px, 100%); }
.px-chess-host { --surface: #2c2326; --surface-2: #2f2629; --surface-3: #42353a; --border: rgba(255, 255, 255, .12); --muted: #b8aaa0; color: #f3ece4; font-family: var(--font); }
.px-chess-host .ch-play, .px-chess-host .ch-play.lesson { grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; }
.px-chess-host .ch-board-col { max-width: min(100%, calc(100vh - 345px)); min-width: 260px; }
.px-chess-host .ch-side { background: #261e21; border: 3px solid #0d0909; border-radius: 6px; padding: 12px; }
.px-chess-host .cb { border-radius: 2px; box-shadow: 0 0 0 4px #0d0909, 6px 6px 0 4px rgba(0, 0, 0, .35); }
.px-chess-host .btn:not(.btn-primary) { background: #3a2e31; color: #fff; border-color: #0d0909; }
.px-chess-host .ch-fb.ok { background: rgba(24, 178, 111, .2); color: #86efac; }
.px-chess-host .ch-fb.err { background: rgba(239, 62, 58, .2); color: #fca5a5; }
@media (max-width: 760px) { .px-chess-host .ch-play, .px-chess-host .ch-play.lesson { grid-template-columns: 1fr; } }
.px-chess-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 540px; margin: 0 auto 6px; }
.px-ccard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; background: #2c2326; border: 3px solid #0d0909; border-radius: 6px; color: #fff; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3); transition: transform .12s, background .15s; }
.px-ccard:hover { transform: translateY(-2px); background: #352a2e; }
.px-ccard span { font-size: 34px; } .px-ccard b { font-family: var(--pixel); font-size: 10px; } .px-ccard small { color: #b8aaa0; font-size: 12px; }
.px-chess-note { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #221a1c; color: #fff; border: 3px solid #0d0909; border-radius: 6px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .4); animation: fade .3s; max-width: calc(100% - 24px); font-size: 14px; }

/* Sanat Atölyesi: büyük tuval, araçlar, palet (pixel-ui.js → artEditor) */
.px-panel.px-art { width: min(1060px, 100%); }
.ar-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) 236px; grid-template-areas: "tools main side" "tools save side"; grid-template-rows: auto 1fr; gap: 10px 12px; align-items: start; }
.ar-tools { grid-area: tools; display: flex; flex-direction: column; gap: 4px; }
.ar-tl { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; color: #fff; font-size: 17px; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.ar-tl:hover { background: #3a2e31; }
.ar-tl.on { background: var(--pc, #db2777); }
.ar-tl:disabled { opacity: .35; pointer-events: none; }
.ar-tl small { position: absolute; right: 3px; bottom: 1px; font: 8px var(--pixel); }
.ar-sep { height: 6px; width: 6px; }
.ar-main { grid-area: main; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ar-stage { position: relative; width: min(100%, max(280px, calc(100vh - 370px))); max-width: 600px; touch-action: none; border: 3px solid #0d0909; background-color: #fff; background-image: conic-gradient(#e7e7e7 25%, #fff 0 50%, #e7e7e7 0 75%, #fff 0); background-size: 16px 16px; }
.ar-cv, .ar-ov { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.ar-ov { opacity: .75; pointer-events: none; }
.ar-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, rgba(0,0,0,.13) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,.13) 1px, transparent 1px); }
.ar-info { display: flex; gap: 14px; font-size: 12px; color: #b8aaa0; font-variant-numeric: tabular-nums; }
.ar-info .bad { color: #f87171; font-weight: 700; }
.ar-side { grid-area: side; min-width: 0; }
.ar-sizes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.ar-sizes button { padding: 7px 0; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; color: #fff; font: 9px var(--pixel); cursor: pointer; }
.ar-sizes button.on { background: var(--pc, #db2777); }
.ar-cur { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 9px var(--pixel); }
.ar-cur span { width: 34px; height: 34px; border: 3px solid #0d0909; border-radius: 4px; }
.ar-pick { position: relative; width: 34px; height: 34px; display: grid; place-items: center; background: #2c2326; border: 3px solid #0d0909; border-radius: 4px; cursor: pointer; font-size: 16px; }
.ar-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ar-pal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.ar-sw { aspect-ratio: 1; padding: 0; border: 2px solid #0d0909; border-radius: 2px; cursor: pointer; }
.ar-sw:hover { transform: scale(1.12); }
.ar-sw.sel { outline: 2px solid #d4f04a; outline-offset: 1px; position: relative; z-index: 1; }
.ar-sub { font: 7px var(--pixel); color: #b8aaa0; margin: 9px 0 4px; }
.ar-prev { width: 96px; image-rendering: pixelated; border: 3px solid #0d0909; background-color: #fff; background-image: conic-gradient(#e7e7e7 25%, #fff 0 50%, #e7e7e7 0 75%, #fff 0); background-size: 8px 8px; }
.ar-save { grid-area: save; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ar-save .px-input { max-width: 260px; }
.pg-view { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pg-art img { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; display: block; background: #fff; margin-bottom: 4px; }
.pg-big { display: grid; place-items: center; padding: 14px; border-radius: 12px; background-color: #fff; background-image: conic-gradient(#ececec 25%, #fff 0 50%, #ececec 0 75%, #fff 0); background-size: 20px 20px; }
.pg-big img, .pg-big canvas { width: min(480px, 100%); aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
@media (max-width: 780px) {
  .ar-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tools" "main" "side" "save"; }
  .ar-tools { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ar-stage { width: 100%; }
}

/* ---------- yapay zekâ (Bilge), etkinlik akışı, ünite listesi ---------- */
.btn-soft-purple { background: var(--purple-soft); color: var(--purple); border: 0; }
.chip.pulse { animation: gsPulse 2s ease-in-out infinite; }
@keyframes gsPulse { 50% { opacity: .65; } }
.md p { margin: 0 0 8px; line-height: 1.6; }
.md h4 { margin: 14px 0 6px; font-size: 15px; }
.md ul { margin: 0 0 8px 18px; padding: 0; line-height: 1.55; }
.md code { background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.ai-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.ai-log { min-height: 300px; max-height: 58vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; }
.ai-msg.me { justify-content: flex-end; }
.ai-msg .bubble { max-width: min(680px, 86%); padding: 10px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.ai-msg.me .bubble { background: var(--purple-soft); border-color: transparent; white-space: pre-wrap; }
.ai-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); font-size: 18px; }
.ai-welcome { text-align: center; margin: auto; padding: 30px 10px; max-width: 420px; }
.ai-starters { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-starters .chip { cursor: pointer; border: 0; }
.ai-input { display: flex; gap: 8px; align-items: flex-end; }
.ai-input .textarea { flex: 1; min-height: 46px; resize: vertical; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: gsDot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gsDot { 50% { transform: translateY(-4px); opacity: .5; } }
.ai-report .ai-rep-body { line-height: 1.55; }
.insight { padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; font-size: 13.5px; background: var(--surface-2); }
.insight.good { background: var(--green-soft); } .insight.warn { background: var(--amber-soft); } .insight.info { background: var(--blue-soft); }
.act-list { display: flex; flex-direction: column; }
.act-day { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.act-item { border-bottom: 1px solid var(--border); }
.act-item > summary, div.act-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; list-style: none; cursor: default; }
details.act-item > summary { cursor: pointer; }
details.act-item > summary::-webkit-details-marker { display: none; }
details.act-item[open] .act-more { color: var(--purple); }
.act-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 16px; }
.act-main { flex: 1; min-width: 0; }
.act-s { font-size: 14px; }
.act-s .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.act-s .dot.ok { background: var(--green); } .act-s .dot.no { background: var(--red); }
.act-more { font-weight: 700; }
.act-qs { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px 40px; }
.act-q { padding: 8px 10px; border-radius: 10px; border-left: 4px solid var(--border-2); background: var(--surface-2); }
.act-q.ok { border-left-color: var(--green); } .act-q.no { border-left-color: var(--red); }
.act-ai { margin: 0 0 10px 40px; padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.unit-block { margin-bottom: 12px; padding: 0; overflow: hidden; }
.unit-block > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.unit-block > summary::-webkit-details-marker { display: none; }
.unit-block > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.unit-block[open] > summary .chev { transform: rotate(90deg); }
.unit-block .unit-lessons { border-top: 1px solid var(--border); }
.unit-lesson { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.unit-lesson:last-child { border-bottom: 0; }
.unit-lesson:hover { background: var(--surface-2); }
.unit-lesson .st { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.unit-lesson .st.done { background: var(--green-soft); color: var(--green); }
.grade-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.grade-pills .stage { font-size: 11px; font-weight: 800; color: var(--muted); margin: 0 2px 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.grade-pills button { min-width: 38px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--text); }
.grade-pills button.on { background: var(--text); color: var(--surface); border-color: var(--text); }
h2 > svg, h3 > svg { width: 22px; height: 22px; vertical-align: -4px; flex: none; }
/* ---------- müdür: sınıf yönetimi ---------- */
.cl-card { display: flex; flex-direction: column; gap: 2px; }
.cl-card.muted { opacity: .65; }
.cl-badge { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); }
/* ---------- simgeler (Lucide) ve Lordicon tarzı hareketler ---------- */
.gi { width: 1.15em; height: 1.15em; flex: none; overflow: visible; transform-origin: 50% 50%; }
.gi-e { display: inline-flex; align-items: center; justify-content: center; vertical-align: -.16em; line-height: 1; }
.gi-e > .gi { width: 1.12em; height: 1.12em; }
/* simgeler sabittir: üzerine gelince ya da sayfa açılınca hareket etmez (dikkat dağıtıyordu) */
@keyframes gi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gi-bounce { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22%) scale(1.08, .94); } 60% { transform: translateY(0) scale(.96, 1.05); } 80% { transform: translateY(-6%); } 100% { transform: none; } }
@keyframes gi-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes gi-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes gi-pulse { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.22); } 55% { transform: scale(.94); } 75% { transform: scale(1.08); } }
/* ---------- rozetler (badges.js) ---------- */
.bdg-art { display: block; overflow: visible; flex: none; }
.bdg-art .bdg-shine { animation: bdg-shine 3.6s ease-in-out infinite; }
.bdg-art.t1 .bdg-shine { animation-duration: 5s; }
.bdg-art .bdg-halo { transform-origin: 50px 50px; animation: bdg-spin 10s linear infinite; }
.bdg-art .bdg-twinkle { transform-box: fill-box; transform-origin: center; animation: bdg-tw 2s ease-in-out infinite; }
.bdg-art .bdg-twinkle.d2 { animation-delay: 1s; }
@keyframes bdg-shine { 0%, 55% { transform: translateX(0) rotate(20deg); } 100% { transform: translateX(180px) rotate(20deg); } }
@keyframes bdg-spin { to { transform: rotate(360deg); } }
@keyframes bdg-tw { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.1); opacity: 1; } }
html.reduce-motion .bdg-art * { animation: none !important; }
.tier-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; font-style: normal; color: #fff; }
.tier-chip.t1 { background: linear-gradient(90deg, #c47a3f, #8a4b1f); }
.tier-chip.t2 { background: linear-gradient(90deg, #a9b6c8, #5f6b7d); }
.tier-chip.t3 { background: linear-gradient(90deg, #f5b818, #b37400); }
.tier-chip.t4 { background: linear-gradient(90deg, #36b7ff, #5a3ee6); }
.tier-chip.t5 { background: linear-gradient(90deg, #ff4f9a, #8b5cf6, #ffb020); background-size: 200% 100%; animation: tier-flow 3s linear infinite; }
@keyframes tier-flow { to { background-position: 200% 0; } }
.bdg-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, var(--purple-soft), var(--surface) 60%); }
.bdg-hero-l { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; flex: 1; min-width: 260px; }
.bdg-stat b { font-size: 34px; font-weight: 900; line-height: 1; } .bdg-stat span { display: block; font-size: 12px; color: var(--muted); }
.bdg-col { flex: 1; min-width: 220px; }
.bdg-tiers { display: flex; gap: 10px; flex-wrap: wrap; }
.bdg-tier-c { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; min-width: 56px; }
.bdg-tier-c b { font-size: 14px; } .bdg-tier-c span { color: var(--muted); font-size: 11px; }
.bdg-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bdg-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; border-radius: 16px; border: 2px dashed var(--border-2); background: var(--surface-2); text-align: center; padding: 10px; font: inherit; color: inherit; }
.bdg-slot > span:first-child { font-size: 28px; color: var(--muted); }
.bdg-slot.on { border-style: solid; border-color: transparent; background: radial-gradient(circle at 50% 35%, var(--purple-soft), var(--surface-2) 70%); cursor: pointer; }
.bdg-slot b { font-size: 13px; }
.bdg-near { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--border); background: none; color: inherit; font: inherit; cursor: pointer; }
.bdg-recent, .bdg-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bdg-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: var(--surface-2); border: 0; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.bdg-mini b { font-size: 11.5px; line-height: 1.25; } .bdg-mini span { font-size: 10.5px; color: var(--muted); }
.bdg-mini.show { background: radial-gradient(circle at 50% 30%, var(--amber-soft), var(--surface-2) 75%); }
.bdg-tracks { display: grid; gap: 12px; }
.bdg-track { padding: 14px 16px; }
.bdg-track-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.bdg-steps { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.bdg-arrow { align-self: center; color: var(--muted-2); font-size: 22px; margin-top: -30px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 104px; max-width: 130px; padding: 8px 6px; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; border-radius: 16px; transition: transform .2s var(--spring), background .2s; }
.bdg:hover { transform: translateY(-4px); background: var(--surface-2); }
.bdg:hover .bdg-art:not(.locked) .bdg-medal { animation: bdg-pop .6s var(--spring); }
@keyframes bdg-pop { 40% { transform: scale(1.08) rotate(-4deg); } 70% { transform: scale(.98) rotate(2deg); } }
.bdg-art .bdg-medal { transform-origin: 50px 50px; }
.bdg b { font-size: 13px; line-height: 1.25; } .bdg > span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bdg-grid .bdg { max-width: none; padding: 14px 8px; }
.bdg-modal { text-align: center; }
.bdg-modal-art { display: grid; place-items: center; margin: 4px auto 10px; }
.bdg-modal.t5 .bdg-modal-art { background: radial-gradient(circle, rgba(255, 79, 154, .25), transparent 65%); }
.bdg-modal.t4 .bdg-modal-art { background: radial-gradient(circle, rgba(88, 200, 255, .22), transparent 65%); }
.bdg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.bdg-facts div { background: var(--surface-2); border-radius: 12px; padding: 8px; } .bdg-facts b { display: block; font-size: 16px; } .bdg-facts span { font-size: 11px; color: var(--muted); }
.badge-pop.bdg-pop { align-items: center; padding: 12px 20px 12px 12px; border-width: 2px; }
.badge-pop.bdg-pop.t3 { border-color: #f5b818; } .badge-pop.bdg-pop.t4 { border-color: #58c8ff; } .badge-pop.bdg-pop.t5 { border-color: #ff4f9a; box-shadow: 0 0 0 4px rgba(255, 79, 154, .2), var(--shadow-lg); }
.badge-pop .bdg-pop-art { animation: float 2s ease-in-out infinite; display: block; }
.badge-pop.bdg-pop b { display: block; font-size: 16px; margin-top: 4px; }
.px-badge-i.t4 { box-shadow: 0 0 0 2px #58c8ff inset; } .px-badge-i.t5 { box-shadow: 0 0 0 2px #ff4f9a inset; }
@media (max-width: 640px) { .bdg-show { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bdg-slot { min-height: 110px; } }

/* ---------- ekonomi: Emlakçı, ev, Sanat Galerisi, Altın Kazan ---------- */
.house-card { display: flex; flex-direction: column; }
.house-card > a:first-child { display: block; }
.house-cv { width: 100%; aspect-ratio: 4 / 3; image-rendering: pixelated; border-radius: var(--radius); display: block; background: var(--surface-3); }
.house-cv.big { border-radius: var(--radius-lg); }
.house-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.house-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.rent-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--amber-soft); border-radius: var(--radius); padding: 10px 12px; }
.rules-list { padding-left: 18px; margin: 0; line-height: 1.9; }
.house-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.house-hero h1 { font-size: 28px; font-weight: 800; }
.house-wall { background: var(--wall, #f8fafc); border-radius: var(--radius-lg); padding: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; border: 1px solid var(--border); box-shadow: inset 0 -14px 0 rgba(0,0,0,.06); }
.house-wall.empty { display: block; text-align: center; padding: 36px 16px; }
.house-wall.empty .muted { color: #6b6264; }
.house-frame { margin: 0; background: #fff; padding: 8px; border: 6px solid #7a4a26; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.house-frame img, .house-frame canvas { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; display: block; }
.house-frame figcaption { font-size: 12px; font-weight: 600; color: #1c1416; margin-top: 6px; text-align: center; }
.house-frame figcaption span { display: block; font-weight: 400; color: #6b6264; font-size: 11px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-2); cursor: pointer; transition: transform .2s var(--spring); }
.swatch:hover { transform: scale(1.08); }
.swatch.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.art-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.art-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; }
.art-opt:has(input:checked) { border-color: var(--accent); background: var(--red-soft); }
.art-opt input { position: absolute; top: 8px; left: 8px; }
.art-opt img, .art-opt canvas { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; background: #fff; border-radius: 6px; }
.art-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.art-card { padding: 12px; }
.art-view { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.art-view img, .art-view canvas, .art-big img, .art-big canvas { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; display: block; }
.art-price { position: absolute; right: 8px; bottom: 8px; background: rgba(28,20,22,.85); color: #fde68a; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.art-card .btn.on { color: #ec4899; }
.art-big { max-width: 420px; margin: 0 auto; background: #fff; border-radius: var(--radius); overflow: hidden; }
.pg-view { position: relative; }
.pg-price { position: absolute; right: 4px; bottom: 8px; background: #1b1315; color: #ffd23f; font: 7px var(--pixel); padding: 3px 4px; }
.earn-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.wheel-card { text-align: center; }
.wheel-wrap { position: relative; width: min(300px, 100%); margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: auto; display: block; }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--accent); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.job-row { align-items: flex-start; }
.job-row.active { border-color: var(--green); background: var(--green-soft); }
.job-ic { font-size: 26px; line-height: 1; width: 36px; text-align: center; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-toc { position: sticky; top: 84px; padding: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.guide-toc nav { display: flex; flex-direction: column; gap: 2px; }
.guide-toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); transition: background .15s; }
.guide-toc a:hover, .guide-toc a.on { background: var(--surface-3); color: var(--text); }
.guide-toc a.dim { opacity: .35; }
.guide-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.guide-sec { scroll-margin-top: 84px; line-height: 1.7; }
.guide-sec h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.guide-sec h4 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.guide-sec p { margin: 8px 0; }
.guide-sec a { color: var(--accent); font-weight: 600; }
.guide-sec kbd { font: 600 12px var(--font); background: var(--surface-3); border: 1px solid var(--border-2); border-bottom-width: 3px; padding: 1px 7px; border-radius: 6px; }
.guide-steps, .guide-list { padding-left: 22px; margin: 6px 0; }
.guide-steps li, .guide-list li { margin: 6px 0; }
.guide-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--blue-soft); font-size: 14px; }
.guide-note.warn { background: var(--amber-soft); }
.guide-faq { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0; }
.guide-faq summary { cursor: pointer; font-weight: 700; }
.guide-faq p { color: var(--text-2); }
@media (max-width: 900px) {
  .house-hero, .earn-grid, .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; max-height: none; }
  .guide-toc nav { flex-direction: row; flex-wrap: wrap; }
  .guide-toc a { padding: 6px 10px; background: var(--surface-2); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .swatch { transition: none; } }

/* ---------- Piksel Basket (basket.js) ---------- */
.bk-page { position: relative; height: calc(100vh - 120px); height: calc(100dvh - 120px); min-height: 460px; border-radius: var(--radius-lg); overflow: hidden; background: #030008; }
.bk-root { position: absolute; inset: 0; z-index: 60; background: #030008; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--font); color: #f8fafc; }
.bk-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.bk-top { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 5; }
.bk-ib { width: 40px; height: 40px; border-radius: 10px; background: rgba(15,23,42,.8); border: 2px solid rgba(255,255,255,.18); color: #fff; font-size: 16px; cursor: pointer; }
.bk-ib:hover { border-color: #f97316; }
.bk-ib:focus-visible, .bk-btn:focus-visible, .bk-mode:focus-visible, .bk-seg button:focus-visible { outline: 3px solid #facc15; outline-offset: 2px; }
.bk-touch { position: absolute; inset: auto 0 16px 0; display: flex; justify-content: space-between; padding: 0 16px; pointer-events: none; z-index: 2; }
.bk-tb { pointer-events: auto; width: 104px; height: 104px; border-radius: 50%; border: 4px solid rgba(255,255,255,.5); background: rgba(239,68,68,.55); color: #fff; font: 11px var(--pixel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; touch-action: none; }
.bk-tb.p2 { background: rgba(59,130,246,.55); margin-left: auto; }
.bk-tb small { font: 600 10px var(--font); opacity: .8; }
.bk-tb.on { transform: scale(.94); background: rgba(250,204,21,.7); }
.bk-ui { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; z-index: 4; background: rgba(3,7,18,.5); }
.bk-ui.show { display: flex; }
.bk-ui.menu { background: linear-gradient(90deg, rgba(3,7,18,.75), rgba(3,7,18,.35)); }
.bk-panel { width: min(660px, 100%); max-height: 100%; overflow: auto; background: rgba(15,23,42,.94); border: 3px solid #f97316; border-radius: 16px; padding: 22px; box-shadow: 0 6px 0 #9a3412, 0 30px 60px rgba(0,0,0,.5); }
.bk-panel h2 { font: 16px var(--pixel); color: #fdba74; margin: 0 0 14px; line-height: 1.5; }
.bk-panel h3 { font: 11px var(--pixel); color: #fdba74; margin: 18px 0 10px; }
.bk-title { font: 24px var(--pixel); color: #f97316; text-shadow: 3px 3px 0 #7c2d12; line-height: 1.4; text-align: center; }
.bk-sub { color: #cbd5e1; text-align: center; margin: 6px 0 12px; font-size: 14px; }
.bk-stats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; min-height: 26px; }
.bk-stats span { background: rgba(255,255,255,.08); border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.bk-modes { display: grid; gap: 10px; }
.bk-mode { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; transition: transform .15s var(--ease), border-color .15s; }
.bk-mode b { font: 12px var(--pixel); line-height: 1.5; }
.bk-mode span { font-size: 13px; color: #cbd5e1; }
.bk-mode:hover:not([disabled]) { border-color: #f97316; transform: translateY(-2px); }
.bk-mode[disabled] { opacity: .5; cursor: not-allowed; }
.bk-help { margin-top: 14px; font-size: 13px; color: #cbd5e1; }
.bk-help summary { cursor: pointer; font-weight: 700; color: #fff; }
.bk-help ul { padding-left: 18px; line-height: 1.7; margin: 8px 0 0; }
.bk-form { display: grid; gap: 6px; }
.bk-form label { font-weight: 700; font-size: 13px; margin-top: 8px; }
.bk-form label small { font-weight: 400; color: #94a3b8; margin-left: 6px; }
.bk-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-seg button { padding: 8px 12px; border-radius: 9px; border: 2px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #e2e8f0; font: 600 13px var(--font); cursor: pointer; }
.bk-seg button.on { background: #f97316; border-color: #f97316; color: #111827; }
.bk-row { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 16px; }
.bk-row.wrap { flex-wrap: wrap; justify-content: flex-start; margin-top: 0; }
.bk-col { display: flex; flex-direction: column; gap: 10px; }
.bk-btn { padding: 12px 16px; border-radius: 10px; border: 0; background: #f97316; color: #111827; font: 11px var(--pixel); cursor: pointer; box-shadow: 0 4px 0 #9a3412; line-height: 1.4; }
.bk-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a3412; }
.bk-btn.big { padding: 14px 22px; font-size: 13px; background: #facc15; box-shadow: 0 4px 0 #a16207; }
.bk-btn.ghost { background: rgba(255,255,255,.08); color: #e2e8f0; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.bk-btn.sm { padding: 7px 10px; font-size: 9px; }
.bk-note { font-size: 12px; color: #94a3b8; margin-top: 12px; text-align: center; }
.bk-reward { text-align: center; font: 13px var(--pixel); color: #facc15; margin: 12px 0 0; }
.bk-final { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0; font: 28px var(--pixel); }
.bk-final span { min-width: 72px; text-align: center; padding: 10px; border-radius: 12px; }
.bk-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.bk-tbl th { text-align: left; color: #94a3b8; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.bk-tbl td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.bk-tbl td i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bk-in { padding: 10px 12px; border-radius: 9px; border: 2px solid rgba(255,255,255,.16); background: rgba(0,0,0,.35); color: #fff; font: 600 14px var(--font); text-transform: uppercase; width: 140px; }
.bk-in.wide { width: 100%; text-transform: none; }
.bk-in:focus { outline: none; border-color: #f97316; }
.bk-list { display: grid; gap: 8px; margin-top: 12px; max-height: 220px; overflow: auto; }
.bk-li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); }
.bk-li > div { flex: 1; min-width: 0; }
.bk-li small { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }
.bk-cnt { font: 10px var(--pixel); color: #fdba74; }
.bk-empty { color: #94a3b8; text-align: center; padding: 12px; font-size: 13px; }
.bk-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; margin-bottom: 12px; }
.bk-code b { font: 16px var(--pixel); color: #facc15; letter-spacing: 2px; }
.bk-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.bk-team h3 { color: var(--tc); margin-top: 0; text-align: center; }
.bk-vs { font: 14px var(--pixel); color: #64748b; align-self: center; }
.bk-slot { border: 2px dashed rgba(255,255,255,.18); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bk-slot.full { border-style: solid; border-color: var(--tc); background: rgba(255,255,255,.04); }
.bk-slot.me { box-shadow: 0 0 0 2px #facc15 inset; }
.bk-slot small { color: #94a3b8; font-size: 12px; }
.bk-chat { margin-top: 14px; }
.bk-msgs { background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px 10px; font-size: 13px; min-height: 60px; max-height: 120px; overflow: auto; line-height: 1.6; }
.bk-chat .bk-row { margin-top: 8px; }
.bk-wait { font-size: 12px; color: #94a3b8; }
@media (max-width: 560px) {
  .bk-panel { padding: 16px; }
  .bk-title { font-size: 17px; }
  .bk-teams { grid-template-columns: 1fr; }
  .bk-vs { justify-self: center; }
  .bk-tb { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) { .bk-mode, .bk-btn { transition: none; } }

.bk-rotate { display: none; position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 3; background: rgba(15,23,42,.85); color: #fde68a; font: 600 13px var(--font); padding: 8px 14px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
@media (orientation: portrait) and (pointer: coarse) { .bk-rotate { display: block; } }

.bk-title .s { color: #e2e8f0; text-shadow: 0 3px 0 #64748b, 3px 6px 0 #0f172a; }
.bk-title .g { color: #fbbf24; text-shadow: 0 3px 0 #b45309, 3px 6px 0 #0f172a; }

/* ---------- Pixel Dünyası: Oto Galeri, garaj, benzinlik, tarla, pazar, sürüş göstergesi ---------- */
.px-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.px-car { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #2c2326; border: 3px solid #0d0909; }
.px-car.on { border-color: var(--lime); }
.px-car canvas { width: 100%; height: auto; max-height: 90px; object-fit: contain; image-rendering: pixelated; background: #1b1416; border: 2px solid #0d0909; }
.px-car b { font-family: var(--pixel); font-size: 9px; line-height: 1.5; color: #fff; }
.px-carbig { width: min(100%, 320px); height: auto; image-rendering: pixelated; background: #1b1416; border: 3px solid #0d0909; }
.px-carstat { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 6px; font: 6px var(--pixel); color: #b2a6a3; }
.px-carstat i { display: block; height: 7px; background: #3a2e31; border: 2px solid #0d0909; }
.px-carstat i b { display: block; height: 100%; }
.px-price { font: 10px var(--pixel); color: #fcd34d; }
.px-crops { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.px-crop { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px; background: #2c2326; border: 3px solid #0d0909; color: #fff; text-align: left; cursor: pointer; }
.px-crop:hover:not([disabled]) { border-color: var(--lime); }
.px-crop[disabled] { opacity: .45; cursor: not-allowed; }
.px-crop b { font: 8px var(--pixel); }
.px-mrow { display: flex; align-items: center; gap: 10px; }
.px-mrow .grow { flex: 1; min-width: 0; }
.w-car { left: 12px; bottom: 96px; z-index: 12; min-width: 168px; font-size: 8px; line-height: 1.8; }
.w-car-spd { font-size: 18px; color: #d4f04a; text-shadow: 2px 2px 0 #000; }
.w-car-spd small { font-size: 7px; color: #fff; }
.w-car-fuel { height: 8px; background: #3a2e31; border: 2px solid #0d0909; margin: 4px 0; }
.w-car-fuel i { display: block; height: 100%; }
.w-car-sub { font-size: 7px; color: #d6cfcc; }
.w-job { top: 286px; right: 12px; z-index: 12; text-align: center; min-width: 200px; max-width: 86vw; font-size: 8px; line-height: 1.9; }
@media (max-width: 700px) { .w-car { bottom: 150px; min-width: 140px; } .w-job { top: auto; bottom: 150px; right: 12px; min-width: 150px; } }

.car-card canvas, .car-mini canvas { width: 100%; height: auto; image-rendering: pixelated; background: var(--surface-3); border-radius: var(--radius); }
.car-card.on { border-color: var(--green); }
.car-cat { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.car-mini { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.chip.blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- yönetim: canlı izleme ve ayrıntılı genel bakış ---------- */
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--green-text, var(--green)); background: var(--green-soft); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(24,178,111,.6); animation: lv-pulse 1.6s infinite; }
.live-tag.off { color: var(--muted); background: var(--surface-3, var(--surface-2)); }
.live-tag.off i { background: var(--muted); animation: none; }
@keyframes lv-pulse { 0% { box-shadow: 0 0 0 0 rgba(24,178,111,.55); } 70% { box-shadow: 0 0 0 9px rgba(24,178,111,0); } 100% { box-shadow: 0 0 0 0 rgba(24,178,111,0); } }
.nav .badge.live { background: var(--green); }
.live-hero { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.3fr) minmax(220px, 1fr); gap: 22px; align-items: center; color: inherit; text-decoration: none; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(34,197,94,.14), transparent 55%), var(--surface); transition: transform .2s var(--ease), box-shadow .2s; }
.live-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, var(--shadow)); }
.lh-main { display: flex; gap: 16px; align-items: center; }
.lh-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: lv-pulse 1.6s infinite; }
.lh-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--green); }
.lh-num { font-size: 56px; font-weight: 900; line-height: 1; margin: 4px 0 6px; letter-spacing: -.02em; }
.lh-sub { font-size: 13px; color: var(--muted); }
.lh-sub b { color: var(--text); }
.lh-spark .lc { height: 90px; }
.lh-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 12px; }
.lh-side > div { display: flex; flex-direction: column; gap: 2px; }
.lh-side span { color: var(--muted); }
.lh-side b { font-size: 18px; font-weight: 800; }
.lh-side b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.lh-dev { grid-column: 1 / -1; flex-direction: row !important; align-items: center; gap: 8px !important; }
.lh-dev span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lh-dev svg { width: 14px; height: 14px; }
.lh-dev i { flex: 1; height: 8px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; }
.lh-dev i b { display: block; height: 100%; background: var(--green); font-size: 0; }
.lh-pages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.lh-pages .chip b { margin-left: 4px; }
.lh-pages .more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.lh-pages .more svg { width: 15px; }
svg.lc { width: 100%; height: 150px; display: block; overflow: visible; }
.lc-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.lc-ax { fill: var(--muted); font-size: 10px; font-family: inherit; }
.lg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg i.u { background: #3b82f6; } .lg i.g { background: #f59e0b; }
.bars .b .sb { width: 100%; max-width: 34px; display: flex; flex-direction: column; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 4px; transform-origin: bottom; animation: grow .9s var(--ease) both; position: relative; }
.bars .b .sb i { display: block; min-height: 0; }
.bars .b .sb i.u { background: #3b82f6; } .bars .b .sb i.g { background: #f59e0b; }
.bars .b .sb:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 11px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.bars .b .sb { overflow: visible; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.hb-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-top small { color: var(--muted); font-weight: 600; }
.hb-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hb-bar i { display: block; height: 100%; border-radius: 99px; animation: hb-in .8s var(--ease) both; transform-origin: left; }
@keyframes hb-in { from { transform: scaleX(0); } }
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b small { color: var(--muted); font-weight: 600; }
.sep { height: 1px; background: var(--border); margin: 14px 0; }
.mini-stat { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius, 14px); background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.mini-stat svg { width: 18px; height: 18px; color: var(--purple); }
.mini-stat b { font-size: 18px; color: var(--text); font-weight: 800; }
.lv-filter { margin-left: auto; display: flex; gap: 8px; }
.lv-filter .input, .lv-filter .select { height: 36px; padding: 0 12px; font-size: 13px; width: auto; }
.lv-filter input.input { width: 240px; }
.lv-tbl td .small svg, .lv-tbl td svg { width: 14px; height: 14px; vertical-align: -2px; }
.lv-tbl tbody tr { cursor: pointer; }
@media (max-width: 1100px) { .live-hero { grid-template-columns: 1fr 1fr; } .lh-side { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) {
  .live-hero { grid-template-columns: 1fr; gap: 14px; } .lh-side { grid-template-columns: 1fr 1fr; } .lh-num { font-size: 44px; }
  .lv-filter { margin-left: 0; width: 100%; } .lv-filter input.input { width: 100%; flex: 1; }
  .card-title { flex-wrap: wrap; }
}
.bars .b .sb.zero { background: var(--surface-3, var(--surface-2)); } .bars .b .sb.zero i { display: none; }
/* yönetim: son aktiflik */
.seen { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.seen.on { color: var(--green-text, var(--green)); }
.seen.on i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: lv-pulse 1.6s infinite; }
.seen.old { color: var(--muted); }
.seen.never { color: var(--muted-2, var(--muted)); font-weight: 600; }
.av-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.av-on { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }
.pres-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.pres-box summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.pres-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.pres-row:last-child { border-bottom: 0; }
.seg.seg-sm { flex: none; padding: 3px; }
.seg.seg-sm button { flex: none; padding: 6px 10px; font-size: 12px; }
@media (max-width: 700px) { .seg.seg-sm { margin-left: 0 !important; width: 100%; } .seg.seg-sm button { flex: 1; } }
/* yol yardımı: yakıt tankeri paneli */
.w-tank { left: 12px; bottom: 214px; z-index: 12; width: 250px; font-size: 7px; line-height: 1.9; border-color: #000; box-shadow: inset 0 0 0 2px rgba(249,115,22,.55), 4px 4px 0 rgba(0,0,0,.35); }
.w-tank .w-title { color: #fb923c; }
.w-tank .w-car-sub b { color: #fcd34d; font-weight: normal; }
.w-tank .w-car-sub small { color: #a8a29e; font-size: 6px; }
.w-tank-ph { font-size: 11px; color: #fde047; margin: 2px 0 4px; animation: tk-blink 1.2s steps(2) infinite; }
@keyframes tk-blink { 50% { opacity: .55; } }
.w-tank-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 9px 8px; background: #ea580c; color: #fff; border: 3px solid #000; border-radius: 7px; font: 8px var(--pixel); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.w-tank-btn:hover { filter: brightness(1.12); }
.w-tank-btn kbd { background: #000; color: #fde047; padding: 2px 5px; border-radius: 3px; font: 7px var(--pixel); }
@media (max-width: 700px) { .w-tank { bottom: 250px; width: 200px; } }

/* ---------- tanıtım: ekran görüntüleri, pedagojik yaklaşım, çıktılar, veliler, senaryolar, SSS sekmeleri ---------- */
.l-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.l-shot.big { grid-column: span 2; grid-row: span 2; }
.l-shot button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.l-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform .4s var(--ease); }
.l-shot button:hover img { transform: scale(1.03); }
.l-shot figcaption { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.l-shot figcaption b { font-size: 15px; }
.l-shot figcaption span { font-size: 13px; color: var(--muted); }
.l-lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10, 6, 8, .86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; animation: fade .2s; }
.l-lightbox[hidden] { display: none; }
.l-lightbox img { max-width: min(1280px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.l-lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; cursor: pointer; }
.l-ped { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-ped-card { display: flex; flex-direction: column; gap: 8px; }
.l-ped-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); }
.l-ped-card h3 { font-size: 18px; }
.l-ped-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.l-ped-on { font-size: 13px; padding-top: 10px; border-top: 1px dashed var(--border); color: var(--text-2, var(--text)); }
.l-ped-on b { color: var(--accent); }
.l-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.l-out h3 { font-size: 20px; margin-bottom: 12px; }
.l-out ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.l-out li { position: relative; padding-left: 28px; color: var(--muted); line-height: 1.55; }
.l-out li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--green); }
.l-par { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.l-par-item { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.l-par-item .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--amber-soft); }
.l-par-item h3 { font-size: 16px; margin-bottom: 4px; }
.l-par-item p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.l-par-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.l-scn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.l-scn-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.l-scn-card h3 span { font-size: 24px; }
.l-scn-card ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--border); }
.l-scn-card li { position: relative; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.l-scn-card li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.l-scn-card li b { font-size: 13px; color: var(--accent); }
.l-scn-card li span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.l-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.l-faq-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 0 auto 20px; }
.l-faq-tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.l-faq-tabs button:hover { border-color: var(--accent); }
.l-faq-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.l-faq-cat { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px 6px; }
.l-faq-cat:first-child { margin-top: 0; }
.l-faq [hidden] { display: none; }
.l-cta-login { color: #fff !important; border-color: rgba(255,255,255,.4) !important; }
@media (max-width: 960px) { .l-shots, .l-ped, .l-par, .l-scn { grid-template-columns: repeat(2, minmax(0, 1fr)); } .l-shot.big { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .l-shots, .l-ped, .l-par, .l-scn, .l-out { grid-template-columns: 1fr; } .l-shot.big { grid-column: auto; } }

/* ---------- mobil düzenlemeler ---------- */
.t-short { display: none; }
.l-links-auth { display: none; }
/* SSS: kategoriler açılır-kapanır */
.l-faq-group { padding: 0 !important; overflow: hidden; }
.l-faq-group > summary { padding: 18px 20px !important; gap: 12px; justify-content: flex-start !important; }
.l-faq-group > summary .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; flex-shrink: 0; }
.l-faq-group > summary .t { flex: 1; font-size: 17px; }
.l-faq-group > summary small { color: var(--muted); font-weight: 600; font-size: 13px; }
.l-faq-qs { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.l-faq-qs details { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; box-shadow: none !important; }
.l-faq-qs summary { font-size: 15px !important; padding: 14px 0 !important; }
.l-faq-qs p { font-size: 15px; padding-bottom: 14px !important; }
@media (max-width: 1000px) {
  .l-links-auth { display: flex; gap: 8px; padding: 10px 6px 4px; margin-top: 4px; border-top: 1px solid var(--border); }
  .l-links-auth .btn { flex: 1; justify-content: center; }
}
@media (max-width: 700px) {
  html:has(body.landing), body.landing { overflow-x: clip; }
  .l-nav { padding: 10px 14px; gap: 8px; }
  .l-nav .l-brand .gs-logo { --gs: 28px; }
  .l-nav .links { gap: 6px; flex-shrink: 0; }
  .l-nav .links .icon-btn { width: 40px; height: 40px; }
  .l-nav #navAuth .btn { height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .t-long { display: none; } .t-short { display: inline; }
  .l-hero { padding: 24px 18px 48px; gap: 28px; }
  .l-hero-brand .gs-logo { --gs: 44px !important; }
  .l-hero p { font-size: 16px; }
  .l-hero .cta .btn { flex: 1 1 100%; justify-content: center; }
  .l-section { padding-left: 16px; padding-right: 16px; }
  .l-head h2 { font-size: 28px; }
  .l-faq-group > summary { padding: 14px 14px !important; }
  .l-faq-qs { padding: 0 10px 10px; }
  .l-cta .btn { width: 100%; justify-content: center; }
  .l-par-cta .btn { width: 100%; justify-content: center; }
  .auth-bg .auth-card, .auth-card { max-width: 100%; }
  /* uygulama sayfaları */
  .profile-hero { flex-direction: column; text-align: center; padding: 22px 16px; gap: 14px; }
  .profile-hero > div[style*="flex:1"] { width: 100%; }
  .profile-hero .row { justify-content: center; }
  .profile-hero .mt[style*="max-width:360px"] { margin-left: auto; margin-right: auto; }
  .avatar-pick { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex-shrink: 0; }
  .lb-school { flex-wrap: wrap; }
  .lb-school .grow { flex: 1 1 calc(100% - 60px); }
  .lb-school .lb-wo { margin-left: 52px; }
  .lb-school .lb-go { margin-left: auto; }
}
@media (max-width: 380px) {
  .l-nav .l-brand .gs-word { font-size: calc(var(--gs) * .66); }
  .l-nav #navAuth .btn { padding: 0 11px; }
}

/* ---------- Pixel Dünyası: dokunmatik kontroller (analog çubuk + eylem düğmeleri) ---------- */
.w-touch, .w-rotate[hidden] { display: none; }
.w-tools [data-tool=more] { display: none; }
.world-wrap.cinema .w-touch { opacity: 0; pointer-events: none; transition: opacity .3s; }
.world-wrap.touch .w-touch { display: block; }
.w-joy { position: absolute; z-index: 7; left: calc(18px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 128px; height: 128px; border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0 38%, rgba(20,12,14,.55) 39%); border: 3px solid rgba(0,0,0,.65); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.25); }
.w-joy::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.14); }
.w-joy-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a3c40, #241a1c 70%); border: 3px solid #000; box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.18), 0 4px 10px rgba(0,0,0,.35); transition: transform .12s ease-out; pointer-events: none; }
.w-joy.on .w-joy-knob { transition: none; background: radial-gradient(circle at 35% 30%, #e9ff8a, #a3c41c 75%); }
.w-acts { position: absolute; z-index: 7; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 160px; height: 160px; pointer-events: none; }
.w-act { position: absolute; display: grid; place-items: center; border-radius: 50%; background: rgba(24,16,18,.84); color: #fff; border: 3px solid #000; box-shadow: inset 0 -4px 0 rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.3); touch-action: none; user-select: none; -webkit-user-select: none; pointer-events: auto; transition: transform .08s, background .15s; }
.w-act .w-ico { width: 24px; height: 24px; }
.w-act.down { transform: scale(.9); background: rgba(70,56,60,.95); }
.w-act[data-a=act] { right: 0; bottom: 0; width: 78px; height: 78px; background: var(--accent); font: 20px var(--pixel); opacity: .72; }
.w-act[data-a=act].ready { opacity: 1; animation: w-act-pulse 1.2s ease-in-out infinite; }
@keyframes w-act-pulse { 50% { box-shadow: inset 0 -4px 0 rgba(0,0,0,.3), 0 0 0 7px rgba(239,62,58,.28), 0 4px 12px rgba(0,0,0,.3); } }
.w-act[data-a=jump] { right: 90px; bottom: 6px; width: 58px; height: 58px; }
.w-act[data-a=jump][data-mode=drift] { background: #ea580c; }
.w-act-t { font: 8px var(--pixel); letter-spacing: .02em; }
.w-act[data-a=car] { right: 10px; bottom: 90px; width: 54px; height: 54px; }
.w-act[data-a=car].on { background: var(--lime); color: #000; }
.w-act[data-a=chat] { right: 82px; bottom: 82px; width: 46px; height: 46px; }
.world-wrap.chat-open .w-act[data-a=chat] { background: var(--lime); color: #000; }
/* dokunmatikte sade HUD */
.world-wrap.touch .w-tools [data-tool=more] { display: inline-grid; }
.world-wrap.touch .w-tools .w-tgroup:not(:first-child) { display: none; }
.world-wrap.touch .w-tools.open { flex-direction: column; align-items: flex-end; }
.world-wrap.touch .w-tools.open .w-tgroup { display: flex; }
.world-wrap.touch .w-tools.open [data-tool=more] { background: var(--lime); color: #000; }
.world-wrap.touch .w-status { width: auto; max-width: 62vw; gap: 5px; padding: 8px 10px; }
.world-wrap.touch .w-meta, .world-wrap.touch .w-srv, .world-wrap.touch .w-log, .world-wrap.touch .w-zone-tag { display: none; }
.world-wrap.touch .w-xp { min-width: 60px; }
.world-wrap.touch .w-bottom { display: none; bottom: calc(176px + env(safe-area-inset-bottom)); }
.world-wrap.touch.chat-open .w-bottom { display: flex; }
.world-wrap.touch .w-prompt { bottom: calc(176px + env(safe-area-inset-bottom)); font-size: 9px; max-width: calc(100% - 24px); white-space: normal; text-align: center; }
.world-wrap.touch.chat-open .w-prompt { display: none; }
.world-wrap.touch .w-car { left: 50%; right: auto; transform: translateX(-50%); bottom: auto; top: calc(8px + env(safe-area-inset-top)); min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
.world-wrap.touch .w-car[hidden] { display: none; }
.world-wrap.touch .w-car .w-title, .world-wrap.touch .w-car .w-car-sub { display: none; }
.world-wrap.touch .w-car .w-car-spd { font-size: 14px; }
.world-wrap.touch .w-car .w-car-fuel { flex: 0 0 70px; width: 70px; margin: 0; overflow: hidden; }
.world-wrap.touch .w-tank { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(56px + env(safe-area-inset-top)); width: min(280px, calc(100% - 24px)); }
.world-wrap.touch .w-help { max-height: 80%; overflow: auto; }
.w-rotate { position: absolute; z-index: 9; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(300px, calc(100% - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; font-family: var(--pixel); color: #fff; background: rgba(24,16,18,.95); border: 3px solid #000; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1), 6px 6px 0 rgba(0,0,0,.35); }
.w-rotate .w-rot-ph { width: 40px; height: 40px; display: grid; place-items: center; color: var(--lime); animation: w-rot 1.6s ease-in-out infinite; }
.w-rotate .w-rot-ph .w-ico { width: 34px; height: 34px; }
@keyframes w-rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }
.w-rotate > div { flex: 1 1 calc(100% - 56px); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.w-rotate b { font-size: 9px; color: var(--lime); }
.w-rotate small { font: 12px var(--font); color: #d8cfcc; }
.w-rotate [data-rot=go] { flex: 1; padding: 11px; font: 9px var(--pixel); background: var(--lime); color: #000; border: 3px solid #000; border-radius: 7px; cursor: pointer; }
.w-rotate [data-rot=x] { width: 40px; padding: 9px; background: transparent; color: #fff; border: 3px solid #000; border-radius: 7px; font-size: 14px; cursor: pointer; }
@media (max-width: 700px) {
  body:not(.landing) .world-wrap:not(.l-demo-world) { height: calc(100vh - 96px); height: calc(100dvh - 96px); border-width: 0; border-radius: 16px; }
  .world-wrap.touch .w-tools .w-btn { min-width: 34px; width: 34px; height: 34px; }
  .world-wrap.touch .w-ico { width: 20px; height: 20px; }
  .world-wrap.touch .w-act .w-ico { width: 24px; height: 24px; }
}
/* telefon yatay: oyun tam ekran, kontroller kenarlarda */
@media (orientation: landscape) and (max-height: 540px) {
  body:not(.landing) .world-wrap:not(.l-demo-world) { position: fixed; inset: 0; z-index: 150; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; border: 0; }
  body:has(.world-wrap.touch) { overflow: hidden; }
  .world-wrap.touch .w-top { top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); }
  .world-wrap.touch .w-right { top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); }
  .world-wrap.touch .w-status { padding: 6px 8px; gap: 4px; max-width: 40vw; }
  .world-wrap.touch .w-status .w-title { font-size: 8px; }
  .world-wrap.touch .w-chip { font-size: 7px; padding: 2px 4px; }
  .world-wrap.touch .w-lvl { display: none; }
  .world-wrap.touch .w-joy { width: 112px; height: 112px; left: calc(14px + env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .world-wrap.touch .w-joy-knob { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .world-wrap.touch .w-acts { transform: scale(.88); transform-origin: bottom right; right: calc(10px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .world-wrap.touch .w-bottom { bottom: calc(10px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 340px)); min-width: 240px; }
  .world-wrap.touch .w-prompt { bottom: calc(14px + env(safe-area-inset-bottom)); max-width: calc(100% - 320px); }
  .world-wrap.touch .w-tank { top: calc(48px + env(safe-area-inset-top)); }
  .world-wrap.touch .w-job { top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); right: calc(10px + env(safe-area-inset-right)); left: auto; transform: none; max-width: 220px; }
}
@media (max-width: 400px) {
  .l-hero-brand .gs-logo { --gs: 36px !important; }
  .l-new { max-width: 100%; }
  .l-new > span { white-space: normal; font-size: 13px; }
}

/* ---------- giriş/kayıt penceresi: kayan tanıtım ---------- */
.auth-side { gap: 18px; padding: 28px; background: radial-gradient(120% 80% at 100% 100%, rgba(239,62,58,.28), transparent 60%), radial-gradient(90% 60% at 0% 0%, rgba(255,154,31,.12), transparent 60%), var(--side); }
.auth-side::before { opacity: .25; }
.as-head h2 { font-size: 26px; line-height: 1.15; margin: 0; }
.as-head p { color: #c9bfc1; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.as-slider { margin-top: auto; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); touch-action: pan-y; }
.as-track { display: flex; transition: transform .6s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.as-slide { flex: 0 0 100%; margin: 0; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.as-shot { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 30px rgba(0,0,0,.35); aspect-ratio: 16 / 10; background: #120d0e; }
.as-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.as-slide figcaption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; min-height: 58px; }
.as-slide figcaption b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.as-slide figcaption b span { font-size: 16px; }
.as-slide figcaption > span { font-size: 13px; color: #bfb4b6; line-height: 1.45; }
.as-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; }
.as-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; line-height: 1; background: rgba(255,255,255,.08); transition: background .15s; }
.as-arrow:hover { background: rgba(255,255,255,.18); }
.as-dots { display: flex; gap: 6px; }
.as-dots button { padding: 6px 2px; }
.as-dots i { display: block; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.28); transition: width .3s, background .3s; }
.as-dots button.on i { width: 22px; background: linear-gradient(90deg, #ef3b3b, #ff9a1f); }
.as-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #c9bfc1; }
@media (prefers-reduced-motion: reduce) { .as-track { transition: none; } }
/* tıklayınca beliren odak çerçevesi yalnızca klavyeyle gezinirken görünür */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav a:focus-visible { outline-offset: -2px; }
/* tarayıcının otomatik doldurduğu alanlar tema rengini korur */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset; transition: background-color 9999s ease-out 0s;
}
.input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px rgba(239,62,58,.1); }

/* ---------- satranç: saat, Elo, hızlı eşleşme, sıralama ---------- */
.ch-fb.warn { background: var(--amber-soft, rgba(245,158,11,.16)); color: var(--amber-text, #b45309); }
.pl-elo { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: var(--surface-3, rgba(127,127,127,.2)); color: var(--muted); vertical-align: 1px; }
.elo-d { font-weight: 800; font-size: 12px; } .elo-d.up { color: var(--green-text, #16a34a); } .elo-d.down { color: var(--red, #ef4444); }
.pl-clock { margin-left: auto; min-width: 76px; text-align: center; padding: 6px 12px; border-radius: 10px; font: 800 20px/1.1 'Outfit', var(--font), monospace; font-variant-numeric: tabular-nums; background: var(--surface-3, rgba(127,127,127,.18)); color: var(--muted); transition: background .2s, color .2s; }
.pl-clock.on { background: #1d1730; color: #fff; box-shadow: 0 0 0 2px rgba(255,154,31,.55); }
.pl-clock.low { color: #ff8a1f; } .pl-clock.on.low { background: #7c2d12; color: #fff; }
.pl-clock.crit { background: #b91c1c; color: #fff; animation: clk-pulse .5s ease-in-out infinite alternate; }
@keyframes clk-pulse { to { transform: scale(1.06); } }
.ch-player.has-clock .cb-caps { margin-left: 4px; }
.ch-modeline:empty { display: none; }
.ch-mode { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 800; color: var(--muted); }
.seg-wrap { flex-wrap: wrap; } .seg-wrap button { flex: 1 1 28%; }
/* ana sayfa */
.ch-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ch-top { grid-template-columns: 1fr; } }
.ch-qh { display: flex; flex-direction: column; margin-bottom: 12px; } .ch-qh h3 { margin: 0; }
.elo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.elo-card { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.elo-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; } .elo-n { color: var(--muted); font-weight: 600; }
.elo-r { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; } .elo-r b { font-size: 30px; font-weight: 900; letter-spacing: -.02em; } .elo-r small { color: var(--muted); font-weight: 700; }
.spark { display: block; width: 100%; height: 34px; color: var(--muted); } .spark.up { color: #16a34a; } .spark.down { color: #ef4444; }
.elo-foot { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.cq-cat { margin-bottom: 10px; } .cq-cn { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.cq-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.cq-m { position: relative; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: inherit; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.cq-m:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface-2); }
.cq-m b { display: block; font-size: 20px; font-weight: 900; } .cq-m i { display: block; font-style: normal; font-size: 10.5px; color: var(--green-text, #16a34a); font-weight: 700; margin-top: 2px; }
.cq-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .cq-opts .seg { flex: 1 1 200px; }
.cq-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.cq-search { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; text-align: center; }
.cq-spin { width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--surface-3, rgba(127,127,127,.25)); border-top-color: var(--accent); display: grid; place-items: center; animation: cq-rot 1.1s linear infinite; }
.cq-spin span { font-size: 34px; animation: cq-rot 1.1s linear infinite reverse; }
@keyframes cq-rot { to { transform: rotate(360deg); } }
.cq-search b { font-size: 18px; } .cq-meta { font-size: 13px; color: var(--muted); font-weight: 600; } .cq-time { font: 900 28px 'Outfit', var(--font); font-variant-numeric: tabular-nums; }
.cq-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.lb-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; } .lb-seg button { font-size: 12.5px; padding: 7px 6px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; } .lb-row.me { background: var(--surface-2); }
.lb-row small { display: block; color: var(--muted); font-size: 11.5px; } .lb-rk { width: 26px; text-align: center; font-weight: 800; } .lb-r { font-weight: 900; font-size: 18px; }
.lb-gap { text-align: center; color: var(--muted); }
.ch-titles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .ch-titles span { padding: 5px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--muted); } .ch-titles b { display: block; color: inherit; }
.ch-acad summary { cursor: pointer; padding: 12px 4px; list-style: none; } .ch-acad summary::-webkit-details-marker { display: none; }
/* Pixel Dünyası */
.px-chess-host .pl-clock.on { background: #0d0909; } .px-chess-host .elo-card, .px-chess-host .cq-m { background: #2c2326; border-color: rgba(255,255,255,.12); }
.px-chess-host .cq-m b, .px-chess-host .cq-cn { font-family: var(--font); }
.cq-px .cq-m { border: 3px solid #0d0909; border-radius: 4px; background: #3a2e31; color: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.cq-px .cq-m:hover { background: #4a3a3f; transform: translate(-1px, -1px); }
.cq-px .seg button.on { background: #ef3e3a; }
.px-elo-line { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; } .px-elo-line span { padding: 6px 10px; background: #261e21; border: 3px solid #0d0909; border-radius: 4px; font-size: 12px; color: #f3ece4; } .px-elo-line b { color: #ffd166; }
.cq-found b { color: var(--green-text, #16a34a); font-size: 22px; } .cq-spin.done { animation: none; border-color: #16a34a; background: rgba(22,163,74,.1); } .cq-spin.done span { animation: none; }

/* ---------- v8: navigasyon paneli (iş / ev / tarla hedefi) ve traktörle sürme ilerlemesi ---------- */
.w-nav { top: 150px; left: 12px; z-index: 13; text-align: center; min-width: 210px; max-width: min(380px, 80vw); font-size: 8px; line-height: 1.8; padding: 8px 30px 8px 14px; border-color: #000; box-shadow: inset 0 0 0 2px rgba(250, 204, 21, .45), 4px 4px 0 rgba(0, 0, 0, .35); }
.w-nav .w-title { color: #facc15; margin-bottom: 2px; }
.w-nav-name { font-size: 9px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-nav-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .1); color: #fff; font: 9px var(--pixel); cursor: pointer; pointer-events: auto; }
.w-nav-x:hover { background: rgba(255, 255, 255, .22); }
.w-car-plow { position: relative; margin-top: 6px; padding: 4px 6px; border-radius: 4px; background: #3f2a1d; color: #fde68a; font-size: 7px; overflow: hidden; }
.w-car-plow i { position: absolute; left: 0; bottom: 0; height: 3px; background: #facc15; transition: width .2s linear; }
@media (max-width: 700px) { .w-nav { top: auto; bottom: 200px; left: 8px; min-width: 160px; font-size: 7px; } }

/* ---------- v8: tarım, borsa, tapu ve oyuncu mülkleri (piksel arayüz) ---------- */
.px-season { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 10px; border: 3px solid #0d0909; border-left: 7px solid var(--sc); border-radius: 4px; background: #241b1d; font-family: var(--pixel); font-size: 8px; color: #fff; }
.px-season span { color: #d6cfcc; font-size: 7px; }
.px-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 10px; padding: 0; }
.px-steps.big { grid-template-columns: 1fr; gap: 6px; }
.px-steps li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 2px solid #0d0909; border-radius: 4px; background: #2c2326; color: #8f8486; text-align: center; font-size: 11px; }
.px-steps.big li { flex-direction: row; text-align: left; gap: 10px; padding: 8px 10px; }
.px-steps li span { font-size: 18px; }
.px-steps li b { font-family: var(--pixel); font-size: 7px; }
.px-steps li small { font-size: 10px; line-height: 1.3; }
.px-steps li.on { background: #3f2a1d; color: #fde68a; border-color: #facc15; }
.px-steps li.done { color: #4fd690; }
.px-steps li.done b::after { content: ' ✓'; }
.px-crop.off { opacity: .45; filter: grayscale(.7); }
.px-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.px-chips button { font-family: var(--pixel); font-size: 7px; padding: 6px 8px; background: #2c2326; color: #d8cfcc; border: 2px solid #0d0909; border-radius: 4px; cursor: pointer; }
.px-chips button.on { background: var(--lime); color: #1b1315; }
.px-chips .px-chip { font-size: 12px; cursor: pointer; }
.px-chips .px-chip[disabled] { cursor: default; opacity: .7; }
.px-chips button.px-chip:hover:not([disabled]) { background: #4a3a3e; }
.px-edu { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; padding: 8px 10px; border: 3px solid #0d0909; border-radius: 4px; font-size: 12px; }
.px-edu b { font-family: var(--pixel); font-size: 8px; }
.px-edu.up { background: #123524; color: #bbf7d0; }
.px-edu.down { background: #3b1717; color: #fecaca; }
.px-spark { flex: none; margin: 0 6px; }
.px-why { margin-top: 2px; font-size: 11px; color: #b2a6a3; }
.px-why summary { cursor: pointer; font-size: 10px; }
.px-cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; }
.px-cal-s { padding: 8px 6px; border: 3px solid #0d0909; border-top: 6px solid var(--sc); border-radius: 4px; background: #2c2326; text-align: center; }
.px-cal-s b { display: block; font-family: var(--pixel); font-size: 7px; margin-bottom: 6px; }
.px-cal-s div { font-size: 16px; line-height: 1.4; letter-spacing: 2px; }
.px-cal-s.on { background: #3f2a1d; box-shadow: 0 0 0 2px var(--sc) inset; }
.px-note.dim { opacity: .55; }
.px-ul { margin: 6px 0 10px 18px; padding: 0; font-size: 13px; line-height: 1.6; }
.px-fcard .px-price { font-size: 9px; }
.px-assets { width: 100%; text-align: left; margin-top: 6px; }
@media (max-width: 520px) { .px-steps { grid-template-columns: repeat(2, 1fr); } .px-cal { grid-template-columns: repeat(2, 1fr); } }

/* ---------- v9: araç göstergesi, vale, araçlarım, tohum seçimi ---------- */
.w-car { min-width: 0; padding: 8px 10px; }
.w-gauge { display: flex; align-items: center; gap: 10px; }
.w-gs { width: 124px; height: 124px; flex: 0 0 124px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.45)); }
.w-g-num text { font: 6px var(--pixel); fill: #d6d3d1; text-anchor: middle; }
.w-g-spd { font: 15px var(--pixel); fill: #fff; text-anchor: middle; }
.w-g-unit { font: 5px var(--pixel); fill: #a8a29e; text-anchor: middle; }
.w-g-gear { font: 8px var(--pixel); text-anchor: middle; }
.w-gside { min-width: 150px; max-width: 210px; font-size: 7px; line-height: 1.8; }
.w-gside .w-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-g-rpm { color: #a8a29e; } .w-g-rpm b { color: #38bdf8; font-weight: normal; font-size: 9px; } .w-g-rpm small { font-size: 6px; }
.w-g-imp, .w-g-out { display: block; width: 100%; margin-top: 5px; padding: 5px 6px; background: #1f2937; color: #fff; border: 2px solid #000; border-radius: 5px; font: 7px var(--pixel); text-align: left; cursor: pointer; }
.w-g-imp b { color: #fbbf24; font-weight: normal; }
.w-g-imp kbd, .w-gr-row kbd, .w-gr-tip kbd { background: #000; color: #fde047; padding: 1px 4px; border-radius: 3px; font: 6px var(--pixel); }
.w-g-out { display: inline; width: auto; margin: 0; padding: 1px 5px; background: transparent; border-width: 1px; }
.w-g-imp:hover, .w-g-out:hover { filter: brightness(1.25); }
.w-valet { left: 12px; bottom: 96px; z-index: 13; width: 240px; font-size: 7px; line-height: 1.9; border-color: #000; box-shadow: inset 0 0 0 2px rgba(56,189,248,.5), 4px 4px 0 rgba(0,0,0,.35); }
.w-car:not([hidden]) ~ .w-valet { bottom: 250px; }
.w-valet .w-title { color: #7dd3fc; }
.w-vl-car { font-size: 9px; color: #fff; }
.w-vl-bar { height: 7px; margin-top: 5px; background: #2a2124; border: 2px solid #000; }
.w-vl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #d4f04a); transition: width .25s linear; }
.w-garage, .w-seed { left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30; width: min(400px, calc(100% - 24px)); max-height: min(80%, 560px); overflow: auto; font-size: 7px; line-height: 1.8; border-color: #000; box-shadow: inset 0 0 0 2px rgba(212,240,74,.35), 6px 6px 0 rgba(0,0,0,.4); }
.w-gr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.w-gr-x { background: #000; color: #fff; border: 0; width: 24px; height: 24px; border-radius: 5px; cursor: pointer; font: 9px var(--pixel); }
.w-gr-src { background: rgba(255,255,255,.06); border: 2px solid #000; border-radius: 6px; padding: 6px 8px; margin-bottom: 8px; color: #e7e5e4; }
.w-gr-src b { color: #d4f04a; font-weight: normal; } .w-gr-src small { display: block; color: #a8a29e; font-size: 6px; }
.w-gr-list { display: flex; flex-direction: column; gap: 6px; }
.w-gr-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #1b1416; border: 2px solid #000; border-radius: 6px; }
.w-gr-row.on { box-shadow: inset 0 0 0 2px rgba(74,222,128,.5); }
.w-gr-row canvas { width: 48px; height: 24px; image-rendering: pixelated; flex: 0 0 48px; }
.w-gr-row .grow { flex: 1; min-width: 0; } .w-gr-row b { display: block; font-weight: normal; color: #fff; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-gr-row small { color: #a8a29e; font-size: 6px; }
.w-gr-row button { flex: 0 0 auto; padding: 7px 9px; background: #16a34a; color: #fff; border: 2px solid #000; border-radius: 5px; font: 7px var(--pixel); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.w-gr-row button:hover { filter: brightness(1.12); }
.w-gr-need { color: #fca5a5 !important; }
.w-gr-sec { margin: 10px 0 6px; color: #7dd3fc; }
.w-gr-tip { margin-top: 6px; color: #a8a29e; font-size: 6px; }
.w-seed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin-top: 8px; }
.w-seed-list button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; background: #1b1416; color: #fff; border: 2px solid #000; border-radius: 6px; cursor: pointer; font: 7px var(--pixel); }
.w-seed-list button span { font-size: 16px; } .w-seed-list button small { color: #fbbf24; font-size: 6px; }
.w-seed-list button:hover { background: #14532d; }
@media (max-width: 700px) { .w-gs { width: 96px; height: 96px; flex-basis: 96px; } .w-gside { min-width: 120px; } .w-valet { bottom: 150px; width: 200px; } }
.world-wrap.touch .w-car { padding: 4px 8px; }
.world-wrap.touch .w-car .w-gs { width: 78px; height: 78px; flex-basis: 78px; }
.world-wrap.touch .w-car .w-gside { min-width: 110px; }
.world-wrap.touch .w-car .w-gside .w-car-sub { display: block; }
.world-wrap.touch .w-car .w-g-rpm { display: none; }
.world-wrap.touch .w-valet { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(110px + env(safe-area-inset-top)); }

/* ---------- Pixel Dünyası lobisi: piksel parçacıkları, büyük OYNA butonu, okullar ---------- */
/* .pxb: arkasında yükselen pikseller (.pxfx) ve dama desenli piksel ışıması olan buton */
.pxb { position: relative; }
.pxfx { position: absolute; inset: -18px -22px; z-index: -1; pointer-events: none; }
.pxfx i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--c); box-shadow: 0 0 8px var(--c); opacity: 0; animation: px-rise var(--t) steps(8) var(--d) infinite; }
.pxb:hover .pxfx i, .pxb:focus-visible .pxfx i { animation-duration: calc(var(--t) * .55); }
@keyframes px-rise { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: translateY(-28px); } }
.pxb::before { content: ''; position: absolute; inset: -8px; z-index: -1; pointer-events: none; opacity: .35;
  background: conic-gradient(var(--pa, #d4f04a) 25%, transparent 0 50%, var(--pa, #d4f04a) 0 75%, transparent 0) 0 0 / 8px 8px; animation: px-aura 1.2s steps(2) infinite; }
@keyframes px-aura { 50% { opacity: .65; background-position: 4px 4px; } }
/* panellerin içindeki butonlarda parçacıklar panelin önünde, butonun arkasında kalsın */
.lb-form, .lb-shero { position: relative; z-index: 0; }

/* lobide süzülen pikseller ve hafif tarama çizgileri */
.lobby-px { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.lobby-px::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.pxfx.drift { inset: 0; z-index: auto; }
.pxfx.drift i { animation: px-drift var(--t) linear var(--d) infinite; box-shadow: 0 0 12px var(--c); }
@keyframes px-drift { 0% { opacity: 0; transform: translateY(60px); } 12% { opacity: .85; } 50% { opacity: .3; } 88% { opacity: .85; } 100% { opacity: 0; transform: translateY(-140px); } }

.lobby-logo span { display: inline-block; }
.lobby-logo .l2 { color: #ff7a4a; text-shadow: 4px 4px 0 #000, 8px 8px 0 rgba(0,0,0,.35), 0 0 26px rgba(255,122,74,.45); }
.lobby-logo { text-shadow: 4px 4px 0 #000, 8px 8px 0 rgba(0,0,0,.35), 0 0 26px rgba(212,240,74,.4); }
.lb-live i { display: inline-block; width: 6px; height: 6px; background: #22c55e; box-shadow: 0 0 6px #22c55e; margin-right: 6px; vertical-align: 1px; animation: px-blink 1.2s steps(2) infinite; }
@keyframes px-blink { 50% { opacity: .25; } }
.lobby-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.lobby-stats span { font: 8px var(--pixel); color: #d8cfcc; background: rgba(20,12,14,.86); border: 3px solid #0d0909; padding: 7px 10px; box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.lobby-stats b { color: var(--lime); }

.lobby-cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; }
.lobby-play { --pa: #d4f04a; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-family: var(--pixel); color: #1b1315; cursor: pointer;
  background: linear-gradient(180deg, #e9ff7a 0 50%, #cbe83c 50% 100%); border: 4px solid #0d0909; padding: 14px 24px 13px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,0,0,.18), 6px 6px 0 #000; transition: transform .08s, box-shadow .08s; }
.lobby-play .lp-k { font-size: 8px; letter-spacing: .14em; opacity: .7; }
.lobby-play .lp-v { font-size: 14px; letter-spacing: .02em; }
.lobby-play:hover, .lobby-play:focus-visible { transform: translate(-2px, -2px); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,0,0,.18), 8px 8px 0 #000, 0 0 28px rgba(212,240,74,.5); }
.lobby-play:active { transform: translate(4px, 4px); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.18), 2px 2px 0 #000; }
.lobby-quick { --pa: #f2c94c; font: 10px var(--pixel); color: #1b1315; background: #f2c94c; border: 3px solid #0d0909; padding: 12px 16px; cursor: pointer;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 4px 4px 0 #000; transition: transform .08s; }
.lobby-quick:hover { transform: translate(-2px, -2px); }
.lobby-quick:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }

/* dünya kartlarında pikseller yalnızca üzerine gelince */
.lb-world.pxb::before { content: none; }
.lb-world .pxfx { opacity: 0; transition: opacity .2s; }
.lb-world:hover .pxfx, .lb-world:focus-visible .pxfx { opacity: 1; }

/* okullar sekmesi */
.lb-shero { display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 6px; background: linear-gradient(135deg, rgba(242,201,76,.18), rgba(28,20,22,.94) 55%); border: 3px solid #0d0909; box-shadow: inset 0 4px 0 #f2c94c, 5px 5px 0 rgba(0,0,0,.5); }
.lb-shero .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.lb-shero b { font-size: 13px; color: #f2c94c; text-shadow: 2px 2px 0 #000; line-height: 1.4; }
.lb-slogo { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; font-size: 38px; font-family: initial; image-rendering: pixelated; background: #2c2326; border: 3px solid #0d0909; box-shadow: 3px 3px 0 #000; }
.lb-tag { align-self: flex-start; font-size: 7px; background: #f2c94c; color: #1b1315; padding: 4px 6px; border: 2px solid #0d0909; }
.lb-shero .px-btn { --pa: #f2c94c; }
.lb-noschool { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px; background: rgba(28,20,22,.92); border: 3px dashed #5b4a4f; }
.lb-noschool span { font-size: 40px; font-family: initial; } .lb-noschool b { font-size: 10px; color: #f2c94c; }
.lb-noschool p { font: 13px var(--font); color: #d8cfcc; line-height: 1.5; max-width: 420px; margin: 0; }
.lb-schools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.lb-sch { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(28,20,22,.92); border: 3px solid #0d0909; box-shadow: inset 4px 0 0 var(--wc), 3px 3px 0 rgba(0,0,0,.45); }
.lb-sch img.lb-ic { object-fit: cover; image-rendering: pixelated; padding: 0; }
.lb-sch.locked { opacity: .78; }
.lb-lock { font-size: 7px; color: #b9aeab; white-space: nowrap; }

@media (max-width: 760px) {
  .lobby-cta { gap: 12px; } .lobby-play { width: 100%; align-items: center; } .lobby-quick { width: 100%; }
  .lb-shero { flex-wrap: wrap; } .lb-shero .px-btn { width: 100%; }
  .lb-schools { grid-template-columns: 1fr; }
  /* telefonda içerik küçük bir kutuya sıkışmasın: lobinin tamamı kayar */
  .lobby:not(:fullscreen) { height: auto; min-height: calc(100vh - 90px); }
  .lobby:not(:fullscreen) .lobby-body { flex: none; overflow: visible; }
  .lobby:fullscreen .lobby-ui { overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pxfx i, .pxb::before, .lb-live i { animation: none; }
  .pxfx i { opacity: .55; } .pxfx.drift i { opacity: .25; }
}

/* liderlik filtreleri: dönem, sınıf düzeyi, il, okul ölçütü */
.lb-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 14px; }
.lb-f { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; max-width: 240px; }
.lb-f .select { height: 40px; }
@media (max-width: 560px) { .lb-f { max-width: none; flex-basis: calc(50% - 8px); min-width: 0; } }

/* yapay zekâ çizerken: sırayla zıplayan renkli pikseller */
.px-loader { display: inline-flex; gap: 5px; align-items: flex-end; height: 22px; padding: 2px 0; }
.px-loader i { width: 10px; height: 10px; background: var(--c, #d4f04a); box-shadow: 0 0 8px var(--c, #d4f04a); image-rendering: pixelated; animation: px-hop 1.1s steps(4) infinite; }
.px-loader i:nth-child(1) { --c: #ff6b4a; } .px-loader i:nth-child(2) { --c: #ffd166; animation-delay: .12s; } .px-loader i:nth-child(3) { --c: #d4f04a; animation-delay: .24s; }
.px-loader i:nth-child(4) { --c: #7dd3fc; animation-delay: .36s; } .px-loader i:nth-child(5) { --c: #a78bfa; animation-delay: .48s; } .px-loader i:nth-child(6) { --c: #f472b6; animation-delay: .6s; }
@keyframes px-hop { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-10px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .px-loader i { animation: none; opacity: .85; } }

/* mesajlar: araçlar (yanıtla, tepki, düzenle, sil), alıntı, tepkiler, yanıt/düzenleme çubuğu, sohbet arama */
.chat-msgs .msg { position: relative; }
.msg.del { opacity: .75; } .msg.del i { font-style: italic; }
.msg-tools { position: absolute; top: -14px; display: none; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px; box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.15)); z-index: 2; }
.msg.me .msg-tools { right: 6px; } .msg:not(.me) .msg-tools { left: 6px; }
.msg-tools button { border: 0; background: none; cursor: pointer; font-size: 13px; padding: 3px 5px; border-radius: 999px; color: var(--text); }
.msg-tools button:hover { background: var(--surface-2); }
@media (hover: hover) { .msg:hover .msg-tools { display: inline-flex; } }
.msg.tools-on .msg-tools { display: inline-flex; }
.msg-reply { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--accent, #f97316); background: rgba(0,0,0,.12); color: inherit; border-radius: 8px; padding: 5px 8px; margin: 0 0 5px; cursor: pointer; font: inherit; font-size: 12px; }
.msg-reply b { font-size: 11px; } .msg-reply span { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.msg:not(.me) .msg-reply { background: var(--surface-2); }
.msg-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.msg-reacts button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; font-size: 12px; padding: 1px 7px; cursor: pointer; }
.msg-reacts button.on { border-color: var(--accent, #f97316); background: var(--red-soft); }
.msg-pick { position: absolute; bottom: -38px; z-index: 3; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 6px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.msg.me .msg-pick { right: 0; } .msg:not(.me) .msg-pick { left: 0; }
.msg-pick button { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 2px; transition: transform .12s; } .msg-pick button:hover { transform: scale(1.25); }
.msg.flash { animation: msg-flash 1.2s ease; }
@keyframes msg-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px var(--amber, #f59e0b); } }
.dm-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--surface-2); border-left: 3px solid var(--accent, #f97316); }
.dm-bar-ic { font-size: 16px; }
.chat-search { padding: 4px 4px 8px; } .chat-search .input { height: 38px; }
.chat-list a[hidden] { display: none; }
.chat-list .it { font-style: italic; }
/* topluluk: filtre çubuğu, gönderi ve yorum düzenleme */
.com-filters { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.com-filters .chip { cursor: pointer; border: 0; font: inherit; }
.post-edit { margin: 4px 0 8px; }
.cm-tools { display: inline-flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.comment:hover .cm-tools, .cm-tools:focus-within { opacity: 1; }
.cm-tools button { border: 0; background: none; cursor: pointer; padding: 2px; color: var(--muted); display: inline-grid; }
.cm-tools button svg { width: 14px; height: 14px; }
.cm-tools button:hover { color: var(--text); }

/* liderlik: haftalık ödül kartı ve kazananlar */
.lb-awards { background: linear-gradient(135deg, rgba(245,158,11,.14), var(--surface) 60%); border-color: rgba(245,158,11,.35); }
.lb-last { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.lb-wins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lb-wins > .tiny { min-width: 110px; }
.lb-win { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.lb-win:hover { background: var(--red-soft); }
.podium .lb-prize { margin-top: 4px; font-size: 11px; }
.podium .lb-psub { display: block; max-width: 140px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- açık uçlu sorular ve etkinlikler ---------- */
.etk-types { display: flex; flex-wrap: wrap; gap: 8px; }
.etk-type { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.etk-counts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.etk-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(120deg, var(--purple-soft), var(--blue-soft)); border: 1px solid var(--border); color: var(--text); }
.etk-banner > span { font-size: 28px; }
.etk-banner > div { flex: 1; min-width: 0; }
.etk-banner .etk-go { color: var(--purple); white-space: nowrap; }
.etk-banner:hover { box-shadow: var(--shadow); }
.etk-page { max-width: 920px; margin: 0 auto; }
.etk-only { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.etk-list { display: flex; flex-direction: column; gap: 14px; }
.etk-card { padding: 16px 18px; border-left: 4px solid var(--border-2); }
.etk-card.solved { border-left-color: var(--green); }
.etk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.etk-head .grow { flex: 1; }
.etk-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; flex: none; }
.etk-tag { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.etk-q { font-size: 16px; font-weight: 600; line-height: 1.5; }
.etk-claim { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--purple); background: var(--purple-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; }
.etk-hint { margin-top: 4px; }
.etk-body { margin-top: 12px; }
.etk-acts { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.etk-msg.warn { color: var(--red); }
.etk-fb { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.etk-res { padding: 9px 13px; border-radius: var(--radius-sm); font-size: 14px; }
.etk-res.ok { background: var(--green-soft); color: var(--green-text); }
.etk-res.bad { background: var(--red-soft); color: var(--red); }
.etk-res.mid { background: var(--amber-soft); color: var(--text); }
.etk-model { padding: 10px 13px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; line-height: 1.55; align-self: stretch; }
.etk-self { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* kısa cevap */
.etk-short .input { max-width: 420px; font-size: 16px; }
.etk-sym { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.etk-sym button { min-width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 15px; cursor: pointer; }
.etk-sym button:hover { background: var(--surface-3); }
.etk-locked .etk-sym { display: none; }
/* boşluk doldurma */
.etk-text { font-size: 16px; line-height: 2.3; margin: 0; }
.etk-inline { display: inline-block; width: 150px; max-width: 60vw; margin: 0 4px; padding: 3px 8px; border: 0; border-bottom: 2px solid var(--blue); background: var(--blue-soft); border-radius: 6px 6px 0 0; font: inherit; color: var(--text); }
.etk-inline:focus { outline: 2px solid var(--blue); }
.etk-slot { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 36px; margin: 0 4px; padding: 2px; vertical-align: middle; border: 2px dashed var(--border-2); border-radius: 10px; background: var(--surface-2); line-height: 1.3; transition: border-color .15s, background .15s; }
.etk-slot.wide { display: flex; min-width: 0; flex: 1; margin: 0; min-height: 42px; }
.etk-slot.etk-over, .etk-bucket.etk-over, .etk-orow.etk-over, .etk-pool.etk-over { border-color: var(--purple); background: var(--purple-soft); }
.etk-selecting .etk-slot, .etk-selecting .etk-bucket { border-color: var(--purple); cursor: pointer; }
.etk-slot.ok, .etk-orow.ok { border-color: var(--green); border-style: solid; background: var(--green-soft); }
.etk-slot.bad, .etk-orow.bad { border-color: var(--red); border-style: solid; background: var(--red-soft); }
/* kartlar */
.etk-chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; box-shadow: 0 2px 0 var(--border-2); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .12s, box-shadow .12s, background .12s; }
.etk-chip:hover { transform: translateY(-1px); }
.etk-chip.sel { background: var(--purple-soft); border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.etk-chip.in { box-shadow: none; }
.etk-chip.ok { background: var(--green-soft); border-color: var(--green); }
.etk-chip.bad { background: var(--red-soft); border-color: var(--red); }
.etk-chip.etk-dragging { opacity: .35; }
.etk-ghost { position: fixed; z-index: 9999; pointer-events: none; transform: rotate(-2deg) scale(1.04); box-shadow: var(--shadow-lg); cursor: grabbing; }
.etk-locked .etk-chip { cursor: default; transform: none; }
.etk-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 12px; min-height: 54px; border-radius: var(--radius-sm); background: var(--surface-2); border: 2px dashed transparent; }
.etk-locked .etk-pool { display: none; }
/* eşleştirme */
.etk-pairs { display: flex; flex-direction: column; gap: 8px; }
.etk-pair { display: flex; align-items: center; gap: 10px; }
.etk-left { flex: 1; min-width: 0; padding: 9px 13px; border-radius: 10px; background: var(--blue-soft); font-weight: 600; font-size: 14px; }
.etk-link { color: var(--muted); flex: none; }
.etk-pair .etk-chip { width: 100%; }
/* gruplama */
.etk-buckets { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.etk-bucket { border: 2px dashed var(--border-2); border-radius: var(--radius-sm); background: var(--surface-2); min-height: 120px; display: flex; flex-direction: column; transition: border-color .15s, background .15s; }
.etk-bh { padding: 8px 12px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); text-align: center; }
.etk-bbody { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; }
/* sıralama */
.etk-order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.etk-orow { display: flex; align-items: center; gap: 8px; padding: 4px; border: 2px solid transparent; border-radius: 12px; transition: border-color .15s, background .15s; }
.etk-on { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-weight: 700; font-size: 13px; flex: none; }
.etk-ochip { flex: 1; min-width: 0; }
.etk-arrows { display: flex; gap: 3px; flex: none; }
.etk-arrows button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 11px; }
.etk-arrows button:disabled { opacity: .35; cursor: default; }
.etk-locked .etk-arrows { display: none; }
/* açık uçlu */
.etk-verdict { display: flex; gap: 8px; margin-bottom: 10px; }
.etk-verdict button { padding: 9px 18px; border-radius: 10px; border: 2px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.etk-verdict button.on[data-v="0"] { border-color: var(--green); background: var(--green-soft); color: var(--green-text); }
.etk-verdict button.on[data-v="1"] { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.etk-ta { width: 100%; font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) {
  .etk-card { padding: 14px; }
  .etk-buckets { grid-template-columns: 1fr; }
  .etk-pair { flex-direction: column; align-items: stretch; gap: 4px; }
  .etk-link { display: none; }
  .etk-banner { flex-wrap: wrap; }
  .etk-text, .etk-short .input, .etk-inline, .etk-ta { font-size: 16px; }
}

/* ---------- yönetim paneli · detaylı analiz ---------- */
.an-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; scrollbar-width: none; }
.an-tabs::-webkit-scrollbar { display: none; }
.an-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.an-tabs button svg { width: 16px; height: 16px; }
.an-tabs button:hover { color: var(--text); background: var(--surface-2); }
.an-tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(239,59,59,.25); }
.an-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--blue-soft); font-size: 13px; line-height: 1.5; }
.an-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--blue); }
#anBody { transition: opacity .2s; }
#anBody.an-loading { opacity: .45; pointer-events: none; }
.an-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
.an-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; position: relative; overflow: hidden; }
.an-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone, var(--accent)); }
.an-kpi.tn-blue { --tone: var(--blue); --tsoft: var(--blue-soft); } .an-kpi.tn-green { --tone: var(--green); --tsoft: var(--green-soft); }
.an-kpi.tn-purple { --tone: var(--purple); --tsoft: var(--purple-soft); } .an-kpi.tn-amber { --tone: var(--amber); --tsoft: var(--amber-soft); }
.an-kpi.tn-red { --tone: var(--red); --tsoft: var(--red-soft); }
.an-kh { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.an-ki { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--tsoft, var(--surface-2)); color: var(--tone); }
.an-ki svg { width: 15px; height: 15px; }
.an-kv { font-size: 28px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -.02em; }
.an-kf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-d { font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.an-d.up { background: var(--green-soft); color: var(--green-text); }
.an-d.down { background: var(--red-soft); color: var(--red); }
.an-d.flat { background: var(--surface-2); color: var(--muted); }
.an-card .card-title .lg { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.an-card .card-title .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.an-busy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.an-busy > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.an-busy span { display: block; }
.an-busy b { font-size: 17px; display: block; margin-top: 2px; }
.an-busy b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.an-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.an-big { border-radius: 16px; padding: 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.an-big span { font-size: 12.5px; font-weight: 700; opacity: .85; }
.an-big b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.an-big small { font-size: 12px; opacity: .85; }
.an-big.tn-red { background: linear-gradient(135deg, #ef3b3b, #ff8a1f); }
.an-big.tn-purple { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.an-big.tn-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.an-big.tn-green { background: linear-gradient(135deg, #059669, #84cc16); }
/* ısı haritası */
.an-metric { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.an-metric button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.an-metric button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* ayrıntılı yoğunluk haritası: etiket + 24 saat + toplam sütunu; altta saat toplamları */
.an-hx-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.an-hx { overflow-x: auto; padding: 2px 2px 4px; }
.an-hx-r { display: grid; grid-template-columns: 74px repeat(24, minmax(26px, 1fr)) 84px; gap: 3px; margin-bottom: 3px; min-width: 880px; align-items: stretch; }
.an-hx-r > span { font-size: 11.5px; font-weight: 700; color: var(--muted); align-self: center; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-hx-r > span small { display: block; font-size: 10px; font-weight: 600; opacity: .75; }
.an-hx-h b { font-size: 10.5px; color: var(--muted); font-weight: 700; text-align: center; }
.an-hx-h b.t, .an-hx-f b.t { text-align: right; padding-right: 4px; }
.an-hx-c { height: 30px; border: 0; border-radius: 6px; padding: 0; cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text); background: color-mix(in srgb, var(--accent) calc(var(--a) * 92% + 4%), var(--surface-2)); transition: transform .12s, box-shadow .12s; }
.an-hx-c.dk { color: #fff; }
.an-hx-c:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--text); position: relative; z-index: 1; }
.an-hx-c.max { box-shadow: 0 0 0 2px var(--accent-2); }
.an-hx-c.sel { box-shadow: 0 0 0 3px var(--text), 0 0 0 5px var(--accent); position: relative; z-index: 2; }
.an-hx-c:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.an-hx-r > em.t { position: relative; display: flex; align-items: center; justify-content: flex-end; font-style: normal; font-size: 11.5px; font-weight: 800; padding-right: 4px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.an-hx-r > em.t i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--purple, #8b5cf6) 30%, transparent); }
.an-hx-r > em.t span { position: relative; }
.an-hx-f { margin-top: 4px; }
.an-hx-f > em { position: relative; height: 46px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-style: normal; }
.an-hx-f > em i { width: 70%; min-height: 0; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.an-hx-f > em span { font-size: 9.5px; font-weight: 700; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.an-hx-f b.t { align-self: end; font-size: 12px; font-weight: 900; }
.an-hx-d { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.an-hx-dh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.an-hx-dh b { font-size: 15px; }
.an-hx-dh span { color: var(--muted); font-weight: 700; }
.an-hx-dh em { font-style: normal; font-size: 22px; font-weight: 900; color: var(--accent); margin-left: auto; }
.an-hx-dh small { width: 100%; text-align: right; color: var(--muted); font-size: 12px; }
.an-hx-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.an-hx-dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; }
.an-hx-dl > div span { color: var(--muted); font-weight: 600; }
.an-hx-dl > div.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.an-hscale { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 8px; }
.an-hscale i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--accent)); }
/* saat çubukları */
.an-hbars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 150px; align-items: end; }
.an-hb { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; }
.an-hb i { display: block; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); position: relative; z-index: 1; }
.an-hb em { position: absolute; left: 20%; right: 20%; bottom: 16px; border-radius: 3px; background: rgba(239,62,58,.18); }
.an-hb.best i { background: var(--grad); }
.an-hb span { height: 16px; font-size: 10px; color: var(--muted); text-align: center; line-height: 16px; }
.an-hb:hover i { filter: brightness(1.15); }
/* listeler ve tablolar */
.an-rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.an-rank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); counter-increment: r; font-size: 13.5px; }
.an-rank li::before { content: counter(r); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 12px; flex: none; }
.an-rank li:first-child::before { background: var(--grad); color: #fff; }
.an-rank li span { flex: 1; }
.an-rank li em { font-style: normal; font-weight: 800; }
.an-tbl td, .an-tbl th { vertical-align: middle; }
.an-tbl .r { text-align: right; white-space: nowrap; }
.an-ib { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 5px; overflow: hidden; max-width: 260px; }
.an-ib i { display: block; height: 100%; border-radius: 3px; }
.an-mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.an-mini3 div { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.an-mini3 b { display: block; font-size: 22px; font-weight: 800; }
.an-mini3 span { font-size: 11.5px; color: var(--muted); }
.an-stick { margin-top: 12px; font-size: 13px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.an-stick .an-ib { grid-column: 1 / -1; max-width: none; height: 8px; }
.an-split { display: flex; height: 70px; border-radius: 14px; overflow: hidden; gap: 3px; }
.an-split > div { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; color: #fff; min-width: 70px; }
.an-split .m { background: linear-gradient(135deg, #ef3b3b, #ff8a1f); }
.an-split .d { background: linear-gradient(135deg, #2563eb, #6366f1); }
.an-split b { font-size: 22px; } .an-split span { font-size: 12px; opacity: .9; }
.an-nr .sb .g { background: var(--amber); } .an-nr .sb .u { background: var(--blue); }
.an-funnel { display: flex; flex-direction: column; gap: 11px; }
.an-ft { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.an-ft b small { color: var(--muted); font-weight: 700; }
.an-fb { height: 12px; border-radius: 6px; background: var(--surface-2); margin-top: 5px; overflow: hidden; }
.an-fb i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.an-coh th, .an-coh td { text-align: center; font-size: 12.5px; padding: 7px 6px; }
.an-coh td:first-child, .an-coh th:first-child { text-align: left; white-space: nowrap; }
.an-coh td.cv { background: color-mix(in srgb, var(--green) calc(var(--a) * 85%), transparent); font-weight: 700; border-radius: 4px; }
.an-coh td.na { background: transparent; }
@media (max-width: 900px) { .an-busy { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .an-kpis { grid-template-columns: 1fr 1fr; } .an-kv { font-size: 22px; } .an-hbars { height: 120px; } .an-big b { font-size: 21px; } }
.sec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sec-list > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.sec-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.sec-path { font-size: 12px; word-break: break-all; }
.sec-ok svg { width: 14px; height: 14px; }
/* Pixel Dünyası: ilk girişte karakter (erkek / kız) seçimi */
.w-gender { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8, 10, 24, .72); padding: 16px; }
.w-gender-card { background: #1b1430; border: 4px solid #fde047; box-shadow: 0 0 0 4px #000, 0 12px 0 #000; padding: 22px 22px 18px; max-width: 460px; width: 100%; text-align: center; color: #fff; font-family: var(--pixel); }
.w-gender-card b { display: block; font-size: 16px; color: #fde047; letter-spacing: 1px; }
.w-gender-card p { font-family: var(--font); font-size: 13px; line-height: 1.5; color: #d6d0ea; margin: 10px 0 16px; }
.w-gender-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.w-gender-opts button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 14px; background: #2a2045; border: 3px solid #4c3d78; color: #fff; font: inherit; font-size: 12px; cursor: pointer; box-shadow: 0 5px 0 #000; transition: transform .1s, border-color .1s, background .1s; }
.w-gender-opts button:hover, .w-gender-opts button:focus-visible { border-color: #fde047; background: #362a5c; transform: translateY(-2px); outline: none; }
.w-gender-opts button[data-g="f"]:hover, .w-gender-opts button[data-g="f"]:focus-visible { border-color: #f472b6; }
.w-gender-opts canvas { width: 120px; height: 140px; image-rendering: pixelated; }

/* ---------- geri bildirim (kullanıcı) ---------- */
.fb-page { max-width: 1080px; margin: 0 auto; }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fb-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.fb-cats button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.fb-cats button:hover { transform: translateY(-1px); border-color: var(--border-2); }
.fb-cats button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.fb-cats .fb-e { font-size: 20px; line-height: 1; }
.fb-cats b { font-size: 13.5px; margin-top: 4px; }
.fb-cats small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.fb-stars { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.fb-stars button { width: 38px; height: 38px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--border-2); cursor: pointer; transition: transform .12s, color .12s; padding: 0; }
.fb-stars button.on { color: #f5b301; }
.fb-stars button:hover { transform: scale(1.15); }
.fb-stars .tiny { margin-left: 8px; }
.fb-tip ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.fb-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.fb-item:last-child { border-bottom: 0; }
.fb-item p { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; }
.fb-mini-stars { color: #f5b301; font-size: 12px; letter-spacing: 1px; }
.fb-reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); }
.fb-reply b { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.fb-reply b svg { width: 14px; height: 14px; }
.fb-reply p { margin-top: 4px; }
@media (max-width: 860px) { .fb-grid { grid-template-columns: 1fr; } .fb-cats { grid-template-columns: 1fr 1fr; } }
/* ---------- geri bildirim (yönetim) ---------- */
.afb-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
.afb-bar .seg { flex: none; }
.afb-bar .select { width: auto; min-width: 180px; }
.afb-bar .input { flex: 1; min-width: 200px; }
.afb-item { margin-bottom: 12px; border-left: 4px solid transparent; }
.afb-item.is-new { border-left-color: var(--accent); }
.afb-head { display: flex; align-items: center; gap: 10px; }
.afb-star { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--border-2); font-size: 18px; cursor: pointer; }
.afb-star.on { color: #f5b301; border-color: #f5b301; }
.afb-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.afb-rate { color: #f5b301; font-size: 13px; letter-spacing: 1px; }
.afb-rate i { color: var(--border-2); font-style: normal; }
.afb-text { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.afb-reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.afb-reply p { margin: 4px 0 0; }
.afb-acts { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.afb-acts .select { width: auto; min-width: 150px; }
.afb-form { margin-top: 10px; }

/* ---------- dinleme etkinlikleri ---------- */
.etk-player { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--purple) 12%, var(--surface)), color-mix(in srgb, var(--blue) 10%, var(--surface))); border: 1px solid var(--border); flex-wrap: wrap; }
.etk-player.small { padding: 6px 10px 6px 6px; border-radius: 12px; gap: 10px; background: var(--surface-2); flex-wrap: nowrap; }
.etk-pbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 6px 16px rgba(239, 59, 59, .3); transition: transform .12s; }
.etk-pbtn:hover { transform: scale(1.06); }
.etk-pbtn svg { width: 24px; height: 24px; }
.etk-player.small .etk-pbtn { width: 36px; height: 36px; box-shadow: none; }
.etk-player.small .etk-pbtn svg { width: 17px; height: 17px; }
.etk-pbtn.on { animation: etkPulse 1.2s ease-in-out infinite; }
@keyframes etkPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 59, 59, .45); } 50% { box-shadow: 0 0 0 10px rgba(239, 59, 59, 0); } }
.etk-pmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.etk-pmid b { font-size: 15px; }
.etk-player.small .etk-pmid b { font-size: 13px; }
.etk-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.etk-dots button { width: 22px; height: 10px; border-radius: 5px; border: 0; padding: 0; cursor: pointer; background: var(--border-2); transition: background .15s, transform .15s; }
.etk-dots button.v-A { background: color-mix(in srgb, #ec4899 45%, var(--surface-2)); }
.etk-dots button.v-B { background: color-mix(in srgb, #3b82f6 45%, var(--surface-2)); }
.etk-dots button.done { opacity: .55; }
.etk-dots button.cur { transform: scaleY(1.6); background: var(--accent); }
.etk-dots button:hover { transform: scaleY(1.4); }
.etk-speed { display: flex; gap: 4px; background: var(--surface); border-radius: 10px; padding: 3px; border: 1px solid var(--border); }
.etk-speed button { border: 0; background: none; padding: 6px 9px; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.etk-speed button.on { background: var(--accent); color: #fff; }
.etk-parts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: p; }
.etk-parts > li { padding: 11px 13px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; counter-increment: p; }
.etk-parts > li.ok { border-color: var(--green); background: var(--green-soft); }
.etk-parts > li.bad { border-color: var(--red); background: var(--red-soft); }
.etk-pq { font-weight: 600; font-size: 14.5px; line-height: 1.8; }
.etk-pq::before { content: counter(p) '. '; color: var(--muted); }
.etk-opts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.etk-opts button { padding: 8px 13px; border-radius: 10px; border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
.etk-opts button:hover { border-color: var(--purple); }
.etk-opts button.on { border-color: var(--purple); background: var(--purple-soft); }
.etk-opts button.right, .etk-opts button.ok { border-color: var(--green); background: var(--green-soft); }
.etk-opts button.bad { border-color: var(--red); background: var(--red-soft); }
.etk-opts.pick { margin-top: 14px; }
.etk-opts.pick button { flex: 1 1 160px; padding: 13px 14px; font-size: 15px; text-align: center; }
.etk-locked .etk-opts button { cursor: default; }
.etk-fix { margin-top: 6px; color: var(--green-text); font-weight: 700; }
.etk-dict { display: flex; flex-direction: column; gap: 10px; }
.etk-drow { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 14px; border: 2px solid transparent; }
.etk-drow.ok { border-color: var(--green); background: var(--green-soft); }
.etk-drow.bad { border-color: var(--red); background: var(--red-soft); }
.etk-dn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-weight: 800; font-size: 13px; flex: none; }
.etk-dplay { flex: none; width: 200px; }
.etk-drow .input { flex: 1; min-width: 0; font-size: 16px; }
.etk-trans { align-self: stretch; border-radius: 12px; background: var(--surface-2); padding: 10px 14px; }
.etk-trans summary { cursor: pointer; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.etk-trans summary svg { width: 15px; height: 15px; }
.etk-trans p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; }
.etk-trans p b { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 1px; }
.etk-trans p.v-A b { color: #db2777; } .etk-trans p.v-B b { color: #2563eb; }
/* dinleme merkezi */
.dn-hero { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 22px; margin-bottom: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #7c3aed 0%, #db2777 55%, #f97316 100%); }
.dn-hero h1 { margin: 0; font-size: 28px; }
.dn-hero p { margin: 6px 0 0; opacity: .92; max-width: 720px; line-height: 1.5; }
.dn-hero .chip { background: rgba(255, 255, 255, .2); color: #fff; }
.dn-hero .btn { background: #fff; color: #7c3aed; border: 0; }
.dn-hero-ic { width: 74px; height: 74px; border-radius: 22px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.dn-hero-ic svg { width: 40px; height: 40px; }
.dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dn-card { display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--c); }
.dn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dn-wave { display: inline-flex; gap: 3px; align-items: center; height: 20px; }
.dn-wave i { width: 4px; border-radius: 2px; background: var(--c); height: 40%; animation: dnWave 1.1s ease-in-out infinite; }
.dn-wave i:nth-child(2) { animation-delay: .15s; } .dn-wave i:nth-child(3) { animation-delay: .3s; } .dn-wave i:nth-child(4) { animation-delay: .45s; } .dn-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes dnWave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.dn-counts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .etk-drow { flex-wrap: wrap; } .etk-dplay { width: auto; flex: 1; } .etk-drow .input { flex-basis: 100%; }
  .dn-hero { flex-direction: column; align-items: flex-start; padding: 18px; } .dn-hero h1 { font-size: 22px; }
  .etk-speed { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .dn-wave i, .etk-pbtn.on { animation: none; } }
.tts-vrow { display: grid; grid-template-columns: 210px 1fr auto; gap: 8px; align-items: center; } .tts-prog { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); } @media (max-width: 640px) { .tts-vrow { grid-template-columns: 1fr auto; } .tts-vrow > span { grid-column: 1 / -1; } }
.etk-trans p b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
/* “Önerileriniz var mı?” penceresi: ekranın ortasında, arkası karartılmış */
.fbn { position: fixed; inset: 0; z-index: 2147482900; display: grid; place-items: center; padding: 16px; background: rgba(12, 9, 22, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; font: 14px/1.45 var(--font, system-ui), sans-serif; }
.fbn.in { opacity: 1; }
.fbn-card { width: 440px; max-width: 100%; background: var(--surface, #fff); color: var(--text, #1d1730); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border: 1px solid var(--border, #ece6e1); transform: translateY(16px) scale(.96); transition: transform .28s cubic-bezier(.2, .9, .25, 1.05); }
.fbn.in .fbn-card { transform: none; }
.fbn-top { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: #fff; background: linear-gradient(120deg, #ef3b3b 0%, #ff6b2c 55%, #ff9a1f 100%); overflow: hidden; }
.fbn-top::after { content: ''; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .13); pointer-events: none; }
.fbn-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); flex: none; }
.fbn-ic svg { width: 24px; height: 24px; stroke: #fff; }
.fbn-top small { display: block; font-size: 12.5px; font-weight: 700; opacity: .9; letter-spacing: .02em; }
.fbn-top b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.fbn-x { position: absolute; top: 12px; right: 12px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fbn-x:hover { background: rgba(255, 255, 255, .3); }
.fbn-x svg { width: 17px; height: 17px; stroke: #fff; }
.fbn-body { padding: 18px 22px 18px; }
.fbn-body p { margin: 0 0 14px; color: var(--text-2, #4a4458); font-size: 14.5px; line-height: 1.55; }
.fbn-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.fbn-cats button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--border, #ece6e1); background: var(--surface-2, #f7f4f1); color: var(--muted, #7a7088); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .12s; }
.fbn-cats button svg { width: 20px; height: 20px; }
.fbn-cats button:hover { transform: translateY(-1px); color: var(--text, #1d1730); }
.fbn-cats button.on { border-color: var(--accent, #ef3b3b); background: color-mix(in srgb, var(--accent, #ef3b3b) 9%, var(--surface, #fff)); color: var(--accent, #ef3b3b); }
.fbn textarea { width: 100%; box-sizing: border-box; resize: none; min-height: 84px; border: 1.5px solid var(--border, #ece6e1); border-radius: 14px; padding: 11px 13px; background: var(--surface-2, #f7f4f1); color: inherit; font: inherit; font-size: 15px; line-height: 1.5; transition: border-color .15s, background .15s; }
.fbn textarea:focus { outline: none; border-color: var(--accent, #ef3b3b); background: var(--surface, #fff); }
.fbn textarea.err { animation: fbnShake .4s; border-color: var(--red, #e11d48); }
@keyframes fbnShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fbn-acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 12px; }
.fbn-acts button { height: 44px; border-radius: 13px; border: 0; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fbn-later { background: var(--surface-2, #f3efeb); color: var(--text-2, #4a4458); }
.fbn-later:hover { background: var(--surface-3, #ebe5df); }
.fbn-send { background: linear-gradient(90deg, #ef3b3b, #ff8a1f); color: #fff; box-shadow: 0 8px 20px rgba(239, 59, 59, .3); }
.fbn-send svg { width: 17px; height: 17px; stroke: #fff; }
.fbn-send:hover { filter: brightness(1.05); }
.fbn-acts button:disabled { opacity: .6; cursor: default; }
.fbn-off { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--muted, #8a8296); font: inherit; font-size: 12.5px; cursor: pointer; }
.fbn-off:hover { color: var(--text, #1d1730); text-decoration: underline; }
.fbn-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 24px 28px; }
.fbn-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #22c55e, #16a34a); margin-bottom: 6px; box-shadow: 0 10px 24px rgba(34, 197, 94, .35); }
.fbn-ok svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 3; }
.fbn-done b { font-size: 20px; }
.fbn-done small { color: var(--muted, #8a8296); font-size: 14px; }
/* Pixel Dünyası’nda piksel görünüm */
.fbn.px { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 6, 18, .6); }
.fbn.px .fbn-card { border-radius: 0; border: 4px solid #fde047; background: #1b1430; color: #fff; box-shadow: 0 0 0 4px #000, 0 12px 0 #000; }
.fbn.px .fbn-top { background: #ef3b3b; border-bottom: 4px solid #000; }
.fbn.px .fbn-top::after { display: none; }
.fbn.px .fbn-top b { font-family: var(--pixel, monospace); font-size: 12px; line-height: 1.7; text-transform: uppercase; }
.fbn.px .fbn-ic, .fbn.px .fbn-x { border-radius: 0; }
.fbn.px .fbn-body p, .fbn.px .fbn-off { color: #d6d0ea; }
.fbn.px .fbn-cats button { border-radius: 0; background: #2a2045; border-color: #4c3d78; color: #d6d0ea; }
.fbn.px .fbn-cats button.on { border-color: #fde047; background: #362a5c; color: #fde047; }
.fbn.px textarea { border-radius: 0; background: #0f0b1d; border-color: #4c3d78; color: #fff; }
.fbn.px textarea:focus { border-color: #fde047; background: #0f0b1d; }
.fbn.px .fbn-acts button { border-radius: 0; box-shadow: 0 4px 0 #000; }
.fbn.px .fbn-later { background: #2a2045; color: #fff; }
.fbn.px .fbn-send { background: #ef3b3b; }
.fbn.px .fbn-done b { font-family: var(--pixel, monospace); font-size: 13px; color: #fde047; }
.fbn.px .fbn-ok { border-radius: 0; }
@media (max-width: 480px) { .fbn { align-items: end; padding: 10px; } .fbn-card { border-radius: 22px; } .fbn-top b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .fbn, .fbn-card { transition: none; } }
/* dinleme oynatıcısı: önceki / sonraki cümle ve cümle içi ilerleme */
.etk-skip { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, transform .12s; }
.etk-skip:hover { background: var(--surface-2); transform: scale(1.06); }
.etk-skip svg { width: 16px; height: 16px; }
.etk-player .etk-pbtn + .etk-skip { margin-left: -6px; }
.etk-player .etk-skip + .etk-pbtn { margin-left: -6px; }
.etk-ptop { display: flex; align-items: baseline; gap: 10px; }
.etk-pos { font-weight: 700; }
.etk-seek { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); cursor: pointer; touch-action: none; margin-top: 2px; }
.etk-seek::before { content: ''; position: absolute; inset: -8px 0; }
.etk-seek i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--grad); }
.etk-seek.on i { box-shadow: 0 0 0 0 transparent; }
.etk-seek:not(.on) { opacity: .5; cursor: default; }
.etk-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .etk-skip { width: 34px; height: 34px; } }

/* ---------- gelişmiş dinleme oynatıcısı ---------- */
.etk-player { flex-direction: column; align-items: stretch; gap: 10px; flex-wrap: nowrap; }
.etk-prow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.etk-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.etk-ctl .etk-skip { width: 38px; height: 38px; margin: 0; }
.etk-ctl .etk-skip svg { width: 18px; height: 18px; }
.etk-ctl .etk-skip[data-act="back"] svg, .etk-ctl .etk-skip[data-act="fwd"] svg { width: 21px; height: 21px; }
.etk-pinfo { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.etk-pinfo b { font-size: 15.5px; line-height: 1.25; }
.etk-pnow { font-weight: 700; min-height: 16px; }
.etk-tl { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.etk-segs { display: flex; gap: 3px; width: 100%; height: 8px; transition: height .15s; }
.etk-tl:hover .etk-segs, .etk-tl.drag .etk-segs, .etk-tl:focus-visible .etk-segs { height: 12px; }
.etk-seg { position: relative; flex: 1 1 0; min-width: 6px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--text) 12%, transparent); }
.etk-seg.v-A { background: color-mix(in srgb, #ec4899 22%, transparent); }
.etk-seg.v-B { background: color-mix(in srgb, #3b82f6 22%, transparent); }
.etk-seg i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ef3b3b, #ff8a1f); border-radius: inherit; }
.etk-seg.v-A i { background: linear-gradient(90deg, #db2777, #f472b6); }
.etk-seg.v-B i { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.etk-seg.cur { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.etk-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; transform: scale(.85); transition: transform .12s; }
.etk-tl:hover .etk-knob, .etk-tl.drag .etk-knob, .etk-tl:focus-visible .etk-knob { transform: scale(1.1); }
.etk-tl:focus { outline: none; } .etk-tl:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 8px; }
.etk-tip { position: absolute; bottom: 100%; margin-bottom: 8px; transform: translateX(-50%); padding: 4px 8px; border-radius: 7px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; font-variant-numeric: tabular-nums; z-index: 2; }
.etk-tl.hover .etk-tip, .etk-tl.drag .etk-tip { opacity: 1; }
.etk-times { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); margin-top: -4px; }
.etk-tcur { color: var(--text); }
/* küçük oynatıcı (dikte satırı, dinle-seç değil) */
.etk-player.small { padding: 8px 10px; gap: 6px; }
.etk-player.small .etk-prow { gap: 10px; flex-wrap: nowrap; }
.etk-player.small .etk-pinfo b { font-size: 13px; }
.etk-player.small .etk-pnow { display: none; }
.etk-player.small .etk-tl { height: 14px; }
.etk-player.small .etk-segs { height: 5px; }
.etk-player.small .etk-knob { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-width: 2px; }
.etk-player.small .etk-times { font-size: 11.5px; margin-top: -3px; }
.etk-player.small .etk-times .etk-pcount { display: none; }
.etk-dplay { width: 230px; }
@media (max-width: 640px) {
  .etk-prow { gap: 10px; } .etk-pinfo { order: -1; flex-basis: 100%; }
  .etk-ctl { flex: 1; justify-content: center; } .etk-speed { width: auto; }
  .etk-ctl .etk-skip { width: 36px; height: 36px; }
  .etk-dplay { width: auto; }
}
/* menüdeki Pixel Dünyası düğmesi: arka planda canlı dünya */
.nav a.nav-world.has-bg { position: relative; overflow: hidden; isolation: isolate; min-height: 46px; margin: 2px 0 4px; border-radius: 12px; border: 1px solid rgba(190, 242, 100, .32); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); transition: border-color .2s, box-shadow .2s, transform .15s; }
.nav-world-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; image-rendering: pixelated; transform: scale(1.02); transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; filter: saturate(1.1); }
.nav-world-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 9, 16, .9) 0%, rgba(12, 9, 16, .62) 48%, rgba(12, 9, 16, .18) 100%); transition: background .3s; }
.nav a.nav-world.has-bg > span:not(.nav-world-shade):not(.nav-world-live) { text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.nav a.nav-world.has-bg svg { color: var(--lime); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.nav-world-live { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 2px; border-radius: 5px; background: rgba(12, 9, 16, .72); color: var(--lime); font: 6.5px/1 var(--pixel); letter-spacing: .5px; flex-shrink: 0; }
.nav-world-live i { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: navLive 1.6s ease-in-out infinite; }
@keyframes navLive { 50% { opacity: .35; } }
.nav a.nav-world.has-bg:hover { background: transparent; border-color: rgba(190, 242, 100, .7); box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 0 1px rgba(190, 242, 100, .25); }
.nav a.nav-world.has-bg:hover .nav-world-bg { transform: scale(1.12); }
.nav a.nav-world.has-bg:hover .nav-world-shade { background: linear-gradient(90deg, rgba(12, 9, 16, .85) 0%, rgba(12, 9, 16, .45) 55%, rgba(12, 9, 16, .05) 100%); }
.nav a.nav-world.has-bg:active { transform: scale(.98); }
.nav a.nav-world.has-bg.active { background: transparent; border-color: var(--lime); box-shadow: 0 0 0 2px rgba(190, 242, 100, .3), 0 8px 22px rgba(0, 0, 0, .35); }
.nav a.nav-world.has-bg.active::before { display: none; }
.side-mini .nav a.nav-world.has-bg { min-height: 40px; }
.side-mini .nav-world-live { display: none; }
@media (prefers-reduced-motion: reduce) { .nav-world-live i { animation: none; } .nav-world-bg { transition: none; } }
.nav a.nav-world > span.nav-world-live:not(.badge) { flex: 0 0 auto; overflow: visible; }
.nav a.nav-world .nav-world-shade { flex: none; }

/* seçmeli derslerim (pencere ve Konular şeridi) */
.el-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; max-height: 58vh; overflow: auto; padding: 2px; }
.el-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.el-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--cc) 50%, var(--border)); }
.el-card.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 9%, var(--surface)); }
.el-card input { position: absolute; opacity: 0; pointer-events: none; }
.el-card:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.el-ic { font-size: 26px; line-height: 1; flex: none; }
.el-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.el-tx small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.el-tx em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--cc); }
.el-ck { position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: var(--cc); opacity: 0; transform: scale(.6); transition: .15s; }
.el-card.on .el-ck { opacity: 1; transform: none; }
.el-bar { padding: 12px 16px; }

/* video anlatım (16:9 yatay sahne) */
.modal.va-modal { width: min(1100px, 96vw); max-width: none; padding: 14px; }
.va { outline: none; }
.va:fullscreen { background: #000; display: flex; flex-direction: column; justify-content: center; padding: 2vh 2vw; }
.va-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #6cc6f5; container-type: inline-size; user-select: none; }
.va:fullscreen .va-stage { max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; }
.va-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.va-card { position: absolute; left: 4%; top: 7%; width: 62%; bottom: 20%; padding: 2.4cqw 2.6cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .93); color: #1d1730; box-shadow: 0 1.2cqw 3cqw rgba(30, 20, 40, .22); border: .35cqw solid #2b1d2e; display: flex; flex-direction: column; gap: 1cqw; overflow: hidden; font-family: Outfit, "Segoe UI", sans-serif; }
.va-card[data-k="intro"], .va-card[data-k="end"] { width: 70%; left: 15%; text-align: center; justify-content: center; }
.va-kick { display: flex; justify-content: space-between; gap: 1cqw; font-size: 1.35cqw; font-weight: 700; color: #6b6380; }
.va-kick b { font-family: "Press Start 2P", monospace; font-size: 1.05cqw; color: var(--vc); }
.va-title { margin: 0; font-size: 3.3cqw; line-height: 1.12; font-weight: 900; color: #1d1730; }
.va-title.in { animation: vaIn .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.va-q { font-size: 1.75cqw; font-weight: 600; line-height: 1.4; padding: 1cqw 1.3cqw; border-radius: 1.2cqw; background: #fff4e5; border: .25cqw dashed #ffb58a; }
.va-body { display: flex; gap: 1.6cqw; min-height: 0; flex: 1; }
.va-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .9cqw; flex: 1; min-width: 0; overflow: hidden; }
.va-items li { position: relative; padding: .7cqw 1.1cqw .7cqw 3.1cqw; border-radius: 1cqw; background: #f6f1ea; font-size: 1.72cqw; line-height: 1.35; font-weight: 600; }
.va-items li::before { content: ""; position: absolute; left: 1.1cqw; top: 1.1cqw; width: 1cqw; height: 1cqw; background: var(--vc); box-shadow: .25cqw .25cqw 0 #2b1d2e; }
.va-items li.call { background: #fff7d6; border-left: .5cqw solid #f59e0b; }
.va-items li.in { animation: vaItem .5s cubic-bezier(.2, .9, .3, 1.1) both; }
.va-card[data-k="intro"] .va-items li, .va-card[data-k="end"] .va-items li { padding-left: 1.1cqw; background: transparent; font-size: 2cqw; }
.va-card[data-k="intro"] .va-items li::before, .va-card[data-k="end"] .va-items li::before { display: none; }
.va-fig { flex: 0 0 42%; min-width: 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 1.2cqw; border: .2cqw solid #e8dccd; padding: .6cqw; }
.va-fig svg { width: 100%; height: auto; max-height: 100%; }
.va-owl { position: absolute; right: 6%; bottom: 13%; width: 20%; display: flex; flex-direction: column; align-items: center; gap: .6cqw; }
.va-owl canvas { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(.5cqw .7cqw 0 rgba(43, 29, 46, .35)); }
.va-owl.talk canvas { animation: vaBob .32s ease-in-out infinite alternate; }
.va-owl span { font-family: "Press Start 2P", monospace; font-size: 1.1cqw; color: #fff; background: #2b1d2e; padding: .5cqw .9cqw; border-radius: .6cqw; }
.va-sub { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); max-width: 88%; padding: .7cqw 1.6cqw; border-radius: 1cqw; background: rgba(20, 14, 24, .82); color: #fff; font: 600 1.6cqw/1.4 Outfit, "Segoe UI", sans-serif; text-align: center; }
.va-sub:empty { display: none; }
.va-big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; border: 0; cursor: pointer; background: rgba(20, 14, 24, .35); color: #fff; font-family: Outfit, sans-serif; }
.va-big[hidden] { display: none; }
.va-big span { width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; font-size: 4.4cqw; padding-left: .8cqw; background: var(--vc); box-shadow: 0 .7cqw 0 rgba(0, 0, 0, .3), 0 0 0 1cqw rgba(255, 255, 255, .25); transition: transform .15s; }
.va-big:hover span { transform: scale(1.06); }
.va-big em { font-style: normal; font-weight: 900; font-size: 2.6cqw; text-shadow: 0 .3cqw 0 rgba(0, 0, 0, .35); }
.va-big small { font-size: 1.5cqw; font-weight: 700; opacity: .9; }
.va-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.va:fullscreen .va-bar { max-width: 1400px; width: 100%; margin: 10px auto 0; }
.va-bar > button { flex: none; min-width: 40px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.va-bar > button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.va-segs { flex: 1; display: flex; gap: 4px; min-width: 0; }
.va-segs button { flex: 1; height: 10px; padding: 0; border: 0; border-radius: 5px; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.va-segs button i { display: block; height: 100%; width: 0; background: var(--vc); transition: width .3s; }
.va-segs button.done i { width: 100%; }
.va-segs button.on { box-shadow: 0 0 0 2px var(--vc); }
.va-rate { height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; padding: 0 6px; }
.va-note { margin: 8px 2px 0; }
.va:fullscreen .va-note { display: none; }
@keyframes vaIn { from { opacity: 0; transform: translateY(1.5cqw) scale(.96); } }
@keyframes vaItem { from { opacity: 0; transform: translateX(-2cqw); } }
@keyframes vaBob { to { transform: translateY(-.8cqw); } }
@media (max-width: 640px) { .modal.va-modal { padding: 8px; } .va-bar { flex-wrap: wrap; } .va-segs { order: 9; flex-basis: 100%; } .va-note { display: none; } }
@media (prefers-reduced-motion: reduce) { .va-title.in, .va-items li.in, .va-owl.talk canvas { animation: none; } }

/* zengin konu anlatımı: çözümlü örnekler, kavramlar, sık yapılan hatalar, biliyor muydun */
.ls-fig { margin: 12px 0 4px; padding: 10px; border-radius: 14px; background: var(--surface-2); display: flex; justify-content: center; }
.ls-fig svg { max-width: 100%; height: auto; }
.ls-block { margin-top: 22px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.ls-block > b { display: block; font-size: 17px; margin-bottom: 10px; }
.ls-vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ls-vocab div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.ls-vocab div b { display: block; color: var(--accent); margin-bottom: 2px; }
.ls-exs details { border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; background: var(--surface-2); }
.ls-exs summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.ls-exs summary::-webkit-details-marker { display: none; }
.ls-exs summary .lv { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--blue-soft, #dbeafe); color: var(--blue, #2563eb); }
.ls-exs summary .lv.zor { background: var(--red-soft, #fee2e2); color: var(--red, #dc2626); }
.ls-exs summary .lv.orta { background: var(--amber-soft, #fef3c7); color: #b45309; }
.ls-exs .ex-sol { padding: 0 14px 14px; border-top: 1px dashed var(--border); margin-top: 2px; }
.ls-exs .ex-sol > b { display: block; margin: 10px 0 4px; color: var(--green, #16a34a); }
.ls-mist li { margin: 6px 0; }
.ls-fun { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); }
.ls-video { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0 4px; padding: 14px 16px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--cc, var(--accent)) 45%, var(--border)); background: color-mix(in srgb, var(--cc, var(--accent)) 8%, var(--surface)); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s; }
.ls-video:hover { transform: translateY(-2px); }
.ls-video .pl { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--cc, var(--accent)); padding-left: 3px; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.ls-video b { display: block; font-size: 16px; }
/* admin: kullanıcı ayrıntısı (Kullanıcılar → satıra tıkla) */
.tbl tr.u-row { cursor: pointer; }
.tbl tr.u-row:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.modal.wide:has(.ud) { width: min(980px, 100%); }
.ud-head { display: flex; align-items: flex-start; gap: 14px; }
.ud-id { flex: 1; min-width: 0; }
.ud-id h3 { margin: 0; font-size: 22px; }
.ud-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ud-warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--red-soft, rgba(239, 68, 68, .12)); color: var(--red, #ef4444); font-weight: 700; font-size: 13px; }
.ud-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.ud-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.ud-stat b { font-size: 18px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ud-stat span { font-size: 11px; color: var(--muted); font-weight: 700; }
.ud-stat.gold b { color: #d97706; }
.ud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.ud-box { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.ud-box h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 14px; }
.ud-box h4 svg { width: 16px; height: 16px; }
.ud-kv { display: flex; flex-direction: column; }
.ud-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.ud-kv > div:last-child { border-bottom: 0; }
.ud-kv span { color: var(--muted); }
.ud-kv b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ud-list, .ud-tests { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ud-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.ud-li .tiny { grid-column: 1 / -1; }
.ud-li .cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-score { font-weight: 900; padding: 1px 8px; border-radius: 8px; font-size: 12px; }
.ud-score.ok { background: rgba(34, 197, 94, .15); color: #16a34a; } .ud-score.mid { background: rgba(245, 158, 11, .15); color: #d97706; } .ud-score.low { background: rgba(239, 68, 68, .15); color: #dc2626; }
.ud-friends { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 10px; }
.ud-more { margin-top: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); }
.ud-more summary { cursor: pointer; font-weight: 700; font-size: 13px; }
@media (max-width: 720px) {
  .ud-head { flex-wrap: wrap; }
  .ud-act { width: 100%; justify-content: stretch; } .ud-act .btn { flex: 1; justify-content: center; }
  .ud-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ud-stat b { font-size: 15px; }
}
