/* SİMOLİ — mobil öncelikli, renkli ve oyunlaştırılmış arayüz */
:root {
  --bg: #f4f1ff;
  --ink: #1f1640;
  --ink-2: #5b5480;
  --muted: #8b85a8;
  --line: #e6e0fa;
  --card: #ffffff;
  --brand: #7c3aed;
  --brand-2: #4c1d95;
  --brand-soft: #ede7ff;
  --amber: #f59e0b;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --girl: #ec4899;
  --boy: #0ea5e9;
  --r: 20px;
  --shadow: 0 6px 24px rgba(76, 29, 149, .08), 0 1px 3px rgba(76, 29, 149, .06);
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 10% 0%, #e9e1ff 0, transparent 40%), radial-gradient(circle at 100% 30%, #fff1d6 0, transparent 35%);
  background-attachment: fixed; min-height: 100vh;
}
h1, h2, h3, .brand-name, .page-title { font-family: 'Baloo 2', 'Nunito', sans-serif; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--brand); text-decoration: none; }
p { margin: .4em 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .right { text-align: right; }
.d-block { display: block; } .grow { flex: 1; min-width: 0; } .ok-text { color: var(--ok); font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(120deg, var(--brand-2), var(--brand) 60%, #a855f7); color: #fff;
  box-shadow: 0 4px 18px rgba(76, 29, 149, .25);
}
.brand { display: flex; align-items: center; gap: 6px; color: #fff; }
.brand-star { font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); animation: spin 8s linear infinite; display: inline-block; }
.brand-name { font-size: 1.45rem; margin: 0; letter-spacing: .5px; }
.admin-tag { font-size: .7rem; background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 99px; margin-left: 4px; }
.top-stats { display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.18); color: #fff; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.chip-star { background: rgba(245, 158, 11, .9); }
.icon-btn { position: relative; font-size: 1.25rem; padding: 4px 6px; color: #fff; }
.badge { position: absolute; top: -2px; right: -4px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 800; border-radius: 99px; padding: 1px 5px; border: 2px solid var(--brand); }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ---------- Yerleşim ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 28px + var(--safe-b)); }
.wrap.wide { max-width: 1180px; padding-bottom: 40px; }
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; display: block; color: inherit; }
a.card { transition: transform .15s; } a.card:active { transform: scale(.98); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-h h2 { margin: 0; }
.page-title { font-size: 1.7rem; margin-top: 4px; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 700; color: var(--ink-2); }

/* ---------- Alt menü ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b)); box-shadow: 0 -4px 20px rgba(76,29,149,.08);
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; border-radius: 14px; color: var(--muted); font-weight: 800; font-size: .72rem; max-width: 110px; }
.bottomnav .ni { font-size: 1.45rem; line-height: 1.1; transition: transform .2s; }
.bottomnav a.on { color: var(--brand); background: var(--brand-soft); }
.bottomnav a.on .ni { transform: translateY(-2px) scale(1.12); }
@media (min-width: 800px) {
  .bottomnav { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; border-radius: 24px; border: 1px solid var(--line); width: 560px; padding: 6px; }
}

/* ---------- Butonlar ve formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer;
  transition: transform .1s, box-shadow .15s; text-align: center;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #a855f7); color: #fff; border-color: transparent; box-shadow: 0 4px 0 var(--brand-2); }
.btn-primary:active { box-shadow: 0 1px 0 var(--brand-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 11px; }
.btn-lg { padding: 14px 22px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; margin-top: 8px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 800; font-size: .85rem; margin-bottom: 4px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--line); border-radius: 13px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 120px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; }
.form-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.form-grid .btn { margin-bottom: 12px; }
.flash { padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; font-weight: 700; }
.flash-error { background: var(--bad-soft); color: #991b1b; }
.flash-ok { background: var(--ok-soft); color: #166534; }
.flash-info { background: var(--brand-soft); color: var(--brand-2); }

/* ---------- Ufak bileşenler ---------- */
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-2); font-size: .78rem; font-weight: 800; margin: 2px 2px 2px 0; }
.tag-girl { background: #fce7f3; color: #9d174d; } .tag-boy { background: #e0f2fe; color: #075985; } .tag-fire { background: #ffedd5; color: #9a3412; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; font-size: .8rem; }
.bar { height: 10px; background: #eee9fb; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #c084fc); border-radius: 99px; transition: width .6s; }
.subj-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: .8rem; background: color-mix(in srgb, var(--c) 15%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); }
.note { background: #fffbeb; border-left: 4px solid var(--amber); padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-size: .92rem; }
.tabs { display: flex; gap: 6px; background: #fff; padding: 5px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.tabs a.on { background: var(--brand); color: #fff; }
.small-tabs a { font-size: .85rem; padding: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.tbl-wrap { overflow-x: auto; }
.chev { font-size: 1.6rem; color: var(--muted); }

/* ---------- Giriş ---------- */
.login-page { background: linear-gradient(160deg, #4c1d95, #7c3aed 55%, #f59e0b); min-height: 100vh; overflow-x: hidden; overflow-y: auto; }
.login-bg span { position: fixed; font-size: 2.6rem; opacity: .22; animation: float 9s ease-in-out infinite; }
.login-bg span:nth-child(1) { top: 8%; left: 8%; } .login-bg span:nth-child(2) { top: 18%; right: 10%; animation-delay: -2s; }
.login-bg span:nth-child(3) { top: 70%; left: 6%; animation-delay: -4s; } .login-bg span:nth-child(4) { bottom: 8%; right: 12%; animation-delay: -1s; }
.login-bg span:nth-child(5) { top: 45%; left: 85%; animation-delay: -3s; } .login-bg span:nth-child(6) { top: 88%; left: 45%; animation-delay: -5s; }
.login-bg span:nth-child(7) { top: 4%; left: 50%; animation-delay: -6s; } .login-bg span:nth-child(8) { top: 55%; left: 2%; animation-delay: -7s; }
.login-bg span:nth-child(9) { top: 30%; left: 30%; animation-delay: -2.5s; } .login-bg span:nth-child(10) { top: 80%; right: 30%; animation-delay: -4.5s; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; position: relative; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 28px; padding: 26px 22px; box-shadow: 0 20px 60px rgba(30, 10, 80, .35); }
.login-logo { text-align: center; margin-bottom: 16px; }
.logo-star { font-size: 3.4rem; animation: bounce 2s ease-in-out infinite; }
.login-logo h1 { font-size: 2.6rem; margin: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1px; }
.login-logo p { margin: 0; color: var(--ink-2); font-weight: 700; }

/* ---------- Ana sayfa ---------- */
.hero { background: linear-gradient(135deg, #fff, #f6f0ff); }
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-avatar { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, #fde68a, #fbcfe8); box-shadow: inset 0 -4px 0 rgba(0,0,0,.06); flex: none; }
.hero-avatar.big { width: 96px; height: 96px; font-size: 3.6rem; border-radius: 30px; margin: 0 auto 8px; }
.hero-info h1 { margin: 0; font-size: 1.45rem; }
.lvl { margin-top: 12px; } .lvl-row { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.stars-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 8px; }
.star-slot { text-align: center; padding: 8px 4px; border-radius: 16px; background: #f7f5ff; border: 2px dashed var(--line); }
.star-slot.got { background: #fff7e0; border: 2px solid #fcd34d; }
.big-star { font-size: 2rem; line-height: 1.2; color: #d6d0ee; }
.star-slot.got .big-star { animation: pop .5s; }
.emoji-slot:not(.got) .big-star { filter: grayscale(1); opacity: .45; }
.exam-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exam-card h3 { margin: 0; }
.exam-card.live { background: linear-gradient(135deg, #fff1f2, #fff); border: 2px solid #fda4af; }
.exam-icon { font-size: 2.2rem; } .exam-icon.big { font-size: 3rem; text-align: center; }
.countdown { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 12px; }
.countdown.big { font-size: 2.2rem; display: inline-block; margin: 6px 0; }
.war-bar { display: flex; height: 30px; border-radius: 99px; overflow: hidden; margin: 8px 0; background: #eee; }
.war-bar.big { height: 22px; } .war-bar.thin { height: 10px; margin: 0; flex: 1; }
.war-girls, .war-boys { display: flex; align-items: center; color: #fff; font-weight: 800; font-size: .85rem; transition: width .8s; min-width: 0; white-space: nowrap; }
.war-girls { background: linear-gradient(90deg, #f472b6, var(--girl)); justify-content: flex-start; padding-left: 10px; }
.war-boys { background: linear-gradient(90deg, var(--boy), #38bdf8); justify-content: flex-end; padding-right: 10px; }
.war-bar.thin .war-girls, .war-bar.thin .war-boys { padding: 0; }
.alert-card { background: linear-gradient(135deg, #fef3c7, #fff); border: 2px solid #fcd34d; display: flex; align-items: center; gap: 8px; justify-content: space-between; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 800; font-size: .85rem; text-align: center; border-bottom: 4px solid var(--c); transition: transform .15s; }
.quick span { font-size: 1.9rem; }
.quick:active { transform: scale(.95); }
.suggest { display: flex; align-items: center; gap: 12px; border-left: 6px solid var(--c); }
.suggest-ic { font-size: 2rem; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 14px; }
.lb li:nth-child(odd) { background: #faf8ff; }
.lb li.me { background: var(--brand-soft); outline: 2px solid #c4b5fd; }
.lb-rank { width: 30px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.lb-av { font-size: 1.5rem; }
.lb-name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--brand); font-size: 1.1rem; }
.lb-stars { color: var(--amber); font-weight: 700; }

/* ---------- Dersler ---------- */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.subject-card { background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); color: var(--ink); border-top: 6px solid var(--c); position: relative; overflow: hidden; }
.subject-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, transparent); }
.sc-icon { font-size: 2.2rem; } .sc-name { font-weight: 800; line-height: 1.25; margin: 4px 0 2px; } .sc-meta { font-size: .78rem; color: var(--muted); }
.subject-card .bar span { background: var(--c) !important; }
.mixed-test { text-align: center; font-size: 1.05rem; }
.subject-head { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000)); color: #fff; padding: 18px; border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--shadow); }
.subject-head h1 { margin: 0; }
.sh-icon { font-size: 2.8rem; background: rgba(255,255,255,.2); border-radius: 18px; width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.topic { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow); color: var(--ink); }
.topic-no { width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--c) 15%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); display: grid; place-items: center; font-weight: 800; flex: none; }
.topic-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.pct { font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 99px; }
.pct.good { background: var(--ok-soft); color: var(--ok); } .pct.mid { background: #fef3c7; color: #b45309; } .pct.low { background: var(--bad-soft); color: var(--bad); }
.lesson { border-top: 6px solid var(--c); }
.lesson-head h1 { margin-top: 8px; }
.lesson-body h3 { color: color-mix(in srgb, var(--c) 75%, #000); margin-top: 1.1em; padding-bottom: 4px; border-bottom: 2px dashed var(--line); }
.lesson-body ul { padding-left: 20px; margin: .4em 0 .8em; } .lesson-body li { margin: 4px 0; }
.lesson-body strong { color: color-mix(in srgb, var(--c) 70%, #000); }
.lesson-body mark { background: #fef08a; padding: 0 3px; border-radius: 4px; }
.cta-test { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.pager { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pager .btn { max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- Oyunlar ---------- */
.joker-strip { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.jk-pill { background: #faf8ff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; font-weight: 800; font-size: .85rem; }
.game-grid { display: grid; gap: 12px; }
.game-card { display: flex; gap: 14px; background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); color: var(--ink); align-items: center; border-left: 6px solid var(--c); transition: transform .15s; }
.game-card:active { transform: scale(.98); }
.gc-icon { font-size: 2.4rem; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #fff); flex: none; }
.gc-body p { margin: 2px 0; color: var(--ink-2); }
.gc-meta { color: var(--muted); font-weight: 700; } .gc-jokers { font-size: .95rem; letter-spacing: 2px; }
@media (min-width: 640px) { .game-grid { grid-template-columns: 1fr 1fr; } .subject-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Oyun ekranı ---------- */
.g-intro { text-align: center; border-top: 6px solid var(--c); }
.gi-icon { font-size: 3.6rem; animation: bounce 2s ease-in-out infinite; }
.g-intro .field { text-align: left; }
.rules { text-align: left; background: #faf8ff; border-radius: 14px; padding: 10px 12px 10px 30px; margin: 10px 0; }
.rules li { margin: 3px 0; }
.duel-vs { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0; font-family: 'Baloo 2'; font-size: 1.6rem; color: var(--bad); }
.dv-av { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 2.3rem; }
.dv-av.sm { width: 42px; height: 42px; font-size: 1.5rem; flex: none; }
.hud { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 8px 12px; box-shadow: var(--shadow); margin-bottom: 8px; font-weight: 800; }
.hud > span { white-space: nowrap; }
.hud-score b { color: var(--brand); font-size: 1.15rem; }
.hud-timer { margin-left: auto; background: var(--brand-soft); padding: 2px 10px; border-radius: 99px; }
.hud-timer.hurry { background: var(--bad-soft); color: var(--bad); animation: pulse .6s infinite; }
.hud-double { background: #ffedd5; color: #c2410c; padding: 2px 8px; border-radius: 99px; }
.timebar { height: 8px; background: #eee9fb; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.timebar span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444); background-size: 300% 100%; transition: width .2s linear; }
.q-card { border-top: 6px solid var(--c); }
.q-subj { font-size: .8rem; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.q-text { font-size: 1.12rem; font-weight: 700; margin-bottom: 14px; white-space: normal; }
.q-text sup { font-size: .7em; }
.opts { display: grid; gap: 9px; }
.opts-2 { grid-template-columns: 1fr 1fr; }
.opts-2 .opt { justify-content: center; font-size: 1.15rem; padding: 18px 10px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform .1s, background .15s, border-color .15s; box-shadow: 0 3px 0 var(--line); }
.opt:hover:not(:disabled) { border-color: #c4b5fd; }
.opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.opt:disabled { cursor: default; }
.opt-l { width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 3px 0 #86efac; }
.opt.right .opt-l { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); box-shadow: 0 3px 0 #fca5a5; }
.opt.wrong .opt-l { background: var(--bad); color: #fff; }
.opt.gone { opacity: .25; pointer-events: none; text-decoration: line-through; }
.q-fb { margin-top: 12px; }
.fb-ok, .fb-bad { font-weight: 800; padding: 8px 12px; border-radius: 12px; }
.fb-ok { background: var(--ok-soft); color: var(--ok); } .fb-bad { background: var(--bad-soft); color: var(--bad); }
.jk-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.jk { position: relative; width: 56px; height: 56px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font-size: 1.6rem; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.jk small { position: absolute; right: -4px; bottom: -4px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 99px; padding: 1px 6px; }
.jk:disabled { filter: grayscale(1); opacity: .45; }
.jk-inline { display: inline-flex; gap: 6px; } .jk-inline .jk { width: 42px; height: 42px; font-size: 1.2rem; border-radius: 12px; }
.shake { animation: shake .4s; } .pop { animation: pop .4s; }
.res { text-align: center; }
.res-emoji { font-size: 4rem; animation: bounce 1.6s ease-in-out infinite; }
.res-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.res-stats span { background: #faf8ff; padding: 5px 12px; border-radius: 99px; font-weight: 800; }
.res-stats .ok { background: var(--ok-soft); color: var(--ok); } .res-stats .bad { background: var(--bad-soft); color: var(--bad); }
.res-points { font-family: 'Baloo 2'; font-size: 2.6rem; font-weight: 800; color: var(--brand); line-height: 1; margin: 8px 0; }
.res-points small { font-size: 1rem; }
.reward { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #78350f; padding: 10px 12px; border-radius: 14px; font-weight: 800; margin: 8px 0; }
.res-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.duel-score { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 10px 0; }
.duel-score > div { display: flex; flex-direction: column; align-items: center; }
.duel-score b { font-family: 'Baloo 2'; font-size: 2.4rem; line-height: 1; color: var(--brand); }
.duel-score .vs { font-size: 2rem; color: var(--muted); }
.float-pts { position: absolute; z-index: 90; transform: translateX(-50%); font-family: 'Baloo 2'; font-weight: 800; font-size: 1.6rem; color: var(--ok); pointer-events: none; animation: floatUp 1s ease-out forwards; text-shadow: 0 2px 0 #fff; }

/* Kelime hafıza */
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem-card { position: relative; aspect-ratio: 3 / 4; border: none; border-radius: 16px; background: transparent; padding: 0; cursor: pointer; perspective: 600px; font: inherit; }
.mem-card span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; backface-visibility: hidden; transition: transform .4s; padding: 4px; text-align: center; font-weight: 800; font-size: .82rem; line-height: 1.15; word-break: break-word; }
.mc-back { background: linear-gradient(135deg, var(--brand), #a855f7); color: #fff; font-size: 1.8rem !important; box-shadow: 0 4px 0 var(--brand-2); }
.mc-front { transform: rotateY(180deg); background: #fff; border: 3px solid var(--line); color: var(--ink); }
.mc-front.en { border-color: #c4b5fd; color: var(--brand-2); } .mc-front.tr { border-color: #fcd34d; color: #92400e; }
.mem-card.open .mc-back, .mem-card.done .mc-back { transform: rotateY(180deg); }
.mem-card.open .mc-front, .mem-card.done .mc-front { transform: rotateY(360deg); }
.mem-card.done .mc-front { background: var(--ok-soft); border-color: var(--ok); }
@media (min-width: 560px) { .mem-card span { font-size: .95rem; } }

/* Kavram avı */
.hm-card { text-align: center; border-top: 6px solid var(--c); position: relative; overflow: hidden; }
.hm-hint { font-weight: 700; font-size: 1.05rem; background: #fffbeb; border-radius: 14px; padding: 10px; margin-bottom: 14px; }
.hm-word { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 10px; }
.hm-l { width: 30px; height: 40px; border-bottom: 4px solid var(--brand); display: grid; place-items: center; font-family: 'Baloo 2'; font-weight: 800; font-size: 1.4rem; color: var(--brand-2); }
.hm-l.on { animation: pop .3s; }
.hm-gap { width: 16px; }
.hm-tries { font-size: 1.1rem; letter-spacing: 2px; }
.kbd { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 10px 0; }
.key { padding: 10px 0; border-radius: 10px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 var(--line); color: var(--ink); }
.key.hit { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.key.miss { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }
.hm-flash { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Baloo 2'; font-size: 1.6rem; font-weight: 800; animation: fadeOut 1.6s forwards; }
.hm-flash.ok { background: rgba(220, 252, 231, .96); color: var(--ok); } .hm-flash.bad { background: rgba(254, 226, 226, .96); color: var(--bad); }

/* ---------- Savaş ---------- */
.war-teams { display: flex; align-items: center; gap: 8px; }
.team { flex: 1; text-align: center; border-radius: 18px; padding: 12px 6px; }
.team.girls { background: #fdf2f8; } .team.boys { background: #f0f9ff; }
.team.lead { outline: 3px solid #fcd34d; position: relative; }
.team.lead::before { content: '👑'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 1.4rem; }
.team-ic { font-size: 2.4rem; }
.team-score { font-family: 'Baloo 2'; font-weight: 800; font-size: 2rem; line-height: 1.1; }
.girls .team-score { color: var(--girl); } .boys .team-score { color: var(--boy); }
.war-vs { font-family: 'Baloo 2'; font-weight: 800; font-size: 1.5rem; color: var(--bad); }
.sw-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: .88rem; }
.sw-name { width: 100px; font-weight: 700; flex: none; }
.sw-k, .sw-e { width: 38px; font-weight: 800; text-align: center; flex: none; }
.sw-k { color: var(--girl); } .sw-e { color: var(--boy); }
.mvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mvp.girls { border-top: 5px solid var(--girl); } .mvp.boys { border-top: 5px solid var(--boy); }
.mvp-row { display: flex; gap: 6px; align-items: center; font-size: .88rem; margin: 4px 0; }
.mvp-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: end; }
.duel-form .btn { grid-column: 1 / -1; }
.duel-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #faf8ff; margin-bottom: 8px; }
.duel-row.incoming { background: #fff7ed; border: 2px solid #fed7aa; }
.duel-row.res-win { background: #f0fdf4; } .duel-row.res-lose { background: #fef2f2; }
.score-pill { font-family: 'Baloo 2'; font-weight: 800; background: #fff; padding: 2px 10px; border-radius: 10px; }
.res-tag { font-size: .8rem; font-weight: 800; white-space: nowrap; }
.hist-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hist-row:last-child { border: 0; }

/* ---------- Sınav ---------- */
.exam-row { display: flex; align-items: center; gap: 10px; }
.exam-bar { position: sticky; top: 62px; z-index: 20; display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 12px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.exam-timer { font-family: 'Baloo 2'; font-weight: 800; font-size: 1.15rem; background: var(--brand-soft); padding: 2px 10px; border-radius: 10px; }
.exam-timer.hurry { background: var(--bad-soft); color: var(--bad); }
.ex-grid { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ex-dot { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; }
.ex-dot.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.ex-dot.cur { outline: 3px solid var(--amber); }
.ex-qh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ex-nav { display: flex; justify-content: space-between; gap: 6px; margin-top: 14px; }
.exam-head { text-align: center; }
.subj-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; align-items: center; }
.big-emoji { font-size: 3.5rem; }
.result-card { text-align: center; background: linear-gradient(135deg, #fff, #f5f0ff); }
.res-rank { font-size: 3.4rem; }
.res-score { font-family: 'Baloo 2'; font-size: 3rem; font-weight: 800; color: var(--brand); line-height: 1; }
.review { border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; margin-bottom: 6px; }
.review.ok { border-color: #bbf7d0; } .review.bad { border-color: #fecaca; }
.review summary { cursor: pointer; font-size: .9rem; font-weight: 700; display: flex; gap: 6px; align-items: center; list-style: none; }
.review summary::-webkit-details-marker { display: none; }
.rv-no { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; font-size: .78rem; flex: none; }
.rv-tag { margin-left: auto; white-space: nowrap; font-size: .8rem; }
.review .q-text { margin: 10px 0 6px; font-size: 1rem; }
.rv-opts { list-style: none; padding: 0; margin: 0; }
.rv-opts li { padding: 6px 10px; border-radius: 10px; margin: 3px 0; }
.rv-opts li.right { background: var(--ok-soft); } .rv-opts li.wrong { background: var(--bad-soft); }

/* ---------- Market ---------- */
.wallet { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #fef3c7, #fff7e6); }
.wallet-stars { font-family: 'Baloo 2'; font-size: 2.2rem; font-weight: 800; color: #b45309; white-space: nowrap; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.shop-grid.avatars, .shop-grid.collect { grid-template-columns: repeat(3, 1fr); }
.shop-item { background: #fff; border-radius: 18px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shop-item p { margin: 0; color: var(--ink-2); }
.si-emoji { font-size: 2.4rem; line-height: 1.2; }
.shop-item.owned { outline: 2px solid #86efac; }
.shop-item.locked .si-emoji { filter: grayscale(1); opacity: .45; }
.shop-item.today { outline: 3px solid #fcd34d; }
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } .shop-grid.avatars, .shop-grid.collect { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Sıralama ---------- */
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin: 18px 0 14px; }
.pod { text-align: center; }
.pod-av { font-size: 2.4rem; }
.pod-name { font-weight: 800; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-pts { font-family: 'Baloo 2'; font-weight: 800; color: var(--brand); }
.pod-block { border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-size: 2rem; color: #fff; }
.pod-1 .pod-block { height: 110px; background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.pod-2 .pod-block { height: 80px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); }
.pod-3 .pod-block { height: 60px; background: linear-gradient(180deg, #fdba74, #c2410c); }
.pod-1 .pod-av { font-size: 3rem; animation: bounce 2s infinite; }

/* ---------- Profil ---------- */
.profile-head { text-align: center; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.stat-row div { background: #faf8ff; border-radius: 14px; padding: 8px 2px; }
.stat-row b { display: block; font-family: 'Baloo 2'; font-size: 1.2rem; color: var(--brand); }
.stat-row span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.wc-col { text-align: center; }
.wc-stars { font-size: .6rem; min-height: 14px; color: var(--muted); }
.wc-bar { height: 90px; background: #f3f0ff; border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.wc-bar span { width: 100%; background: linear-gradient(180deg, #a855f7, var(--brand)); border-radius: 10px; min-height: 3px; }
.wc-val { font-size: .72rem; font-weight: 800; } .wc-day { font-size: .72rem; color: var(--muted); }
.sstat { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.sstat-name { width: 110px; font-weight: 700; font-size: .9rem; flex: none; }
.sstat-val { width: 80px; text-align: right; font-weight: 800; font-size: .88rem; flex: none; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.av-opt { width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 1.8rem; cursor: pointer; }
.av-opt.on { border-color: var(--brand); background: var(--brand-soft); transform: scale(1.06); }
.inv { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-item { position: relative; font-size: 1.8rem; background: #faf8ff; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.inv-item small { position: absolute; right: -4px; bottom: -4px; font-size: .68rem; background: var(--brand); color: #fff; border-radius: 99px; padding: 0 5px; font-weight: 800; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.notif.unread { background: var(--brand-soft); }
.n-ic { font-size: 1.5rem; }

/* ---------- Toast ve efektler ---------- */
#toasts { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 16px; font-weight: 800; background: #1f1640; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; transform: translateY(-10px); transition: all .25s; }
.toast.in { opacity: 1; transform: none; }
.toast-ok { background: var(--ok); } .toast-err { background: var(--bad); }
.burst { position: fixed; z-index: 95; pointer-events: none; font-size: 1.4rem; transform: translate(-50%, -50%); animation: burst 1s ease-out forwards; }
.confetti { position: fixed; top: -40px; z-index: 95; pointer-events: none; animation: fall 3s linear forwards; }

@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.6); opacity: 0; } }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes floatUp { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -60px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-24px) rotate(8deg); } }
@keyframes spin { 0%, 90% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes fadeOut { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Yönetim paneli ---------- */
body.admin { background: #f6f5fb; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; background: #fff; padding: 6px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 58px; z-index: 25; }
.admin-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 800; color: var(--ink-2); white-space: nowrap; font-size: .9rem; }
.admin-nav a.on { background: var(--brand); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.kpi b { display: block; font-family: 'Baloo 2'; font-size: 1.8rem; color: var(--brand); line-height: 1.1; }
.kpi span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.admin-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } .admin-grid.wide-left { grid-template-columns: 2fr 1fr; } }
.actions { display: flex; gap: 4px; flex-wrap: wrap; }
.actions form { display: inline; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 140px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.status-dot.off { background: #d1d5db; }
.q-preview { font-size: .88rem; max-width: 520px; }
.hint-box { background: #faf8ff; border: 1px dashed #c4b5fd; border-radius: 12px; padding: 10px 12px; font-size: .85rem; white-space: pre-wrap; font-family: ui-monospace, monospace; }

/* ---------- v2: seri, çevrimiçi, soru araçları, karalama, rapor, çalışma grubu ---------- */
.chip-online { background: rgba(34, 197, 94, .28); }
@media (max-width: 420px) { .chip-pts { display: none; } .top-stats { gap: 4px; } .chip { padding: 4px 8px; } }
.streak-card { background: linear-gradient(135deg, #fff7ed, #fff); border: 2px solid #fed7aa; }
.streak-card.risk { border-color: #fca5a5; background: linear-gradient(135deg, #fff1f2, #fff); }
.streak-top { display: flex; gap: 12px; align-items: center; }
.streak-top h2 { margin: 0; }
.streak-flame { position: relative; font-size: 3rem; line-height: 1; animation: bounce 2.2s ease-in-out infinite; }
.streak-flame b { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); font-family: 'Baloo 2'; font-size: 1rem; color: #fff; background: #ea580c; border-radius: 99px; padding: 0 8px; }
.streak-cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 12px; }
.sc-day { display: flex; flex-direction: column; align-items: center; background: #f5f3ff; border-radius: 8px; padding: 3px 0; font-size: .9rem; color: var(--muted); }
.sc-day small { font-size: .58rem; }
.sc-day.on { background: #ffedd5; } .sc-day.shield { background: #e0f2fe; } .sc-day.today { outline: 2px solid var(--brand); }
.online-list { display: flex; gap: 10px; flex-wrap: wrap; }
.on-user { display: flex; flex-direction: column; align-items: center; font-weight: 700; }
.on-av { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--brand-soft); }
.on-user.girl .on-av { background: #fce7f3; } .on-user.boy .on-av { background: #e0f2fe; }
.on-av::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.on-user small { font-size: .72rem; }
.review-alert { background: linear-gradient(135deg, #ede9fe, #fff); border-color: #c4b5fd; }
.hud-tg { display: inline-flex; gap: 2px; }
.hud-tg button, .pref { border: 2px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font: inherit; }
.hud-tg button { padding: 1px 5px; font-size: .95rem; }
.hud-tg button.off, .pref.off { opacity: .4; filter: grayscale(1); text-decoration: line-through; }
.pref-list { display: grid; gap: 8px; } .pref { padding: 10px 12px; text-align: left; font-weight: 800; }
.q-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tool { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.tool.on { background: var(--brand-soft); border-color: #c4b5fd; }
.q-friends, .q-likers { display: inline-flex; align-items: center; gap: 1px; font-size: 1.05rem; background: #faf8ff; border-radius: 99px; padding: 2px 8px; }
.q-friends { margin-left: auto; }
.q-friends small, .q-likers small { font-size: .7rem; color: var(--muted); margin-left: 3px; font-weight: 700; }
.opt-row { display: grid; gap: 4px; text-align: left; margin-bottom: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .92rem; }
.scratch { position: fixed; inset: 0; z-index: 80; background: rgba(255, 254, 247, var(--sc-op, .72)); display: flex; flex-direction: column; backdrop-filter: blur(.5px); }
.sc-op { width: 90px; accent-color: var(--brand); }
.scratch-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: #fff; border-bottom: 1px solid var(--line); }
.scratch-bar b { margin-right: auto; }
.sc-colors { display: inline-flex; gap: 4px; }
.sc-colors button { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sc-colors button.on, [data-eraser].on { box-shadow: 0 0 0 3px var(--amber); }
.scratch-q { display: none; }
.sc-area { position: relative; flex: 1; }
.sc-layer { position: absolute; inset: 0; pointer-events: none; }
.sc-text { position: absolute; min-width: 40px; max-width: 70%; padding: 2px 6px; font: 700 1.05rem 'Nunito', sans-serif; outline: none; border-radius: 8px; pointer-events: auto; white-space: pre-wrap; }
.sc-text:focus { background: rgba(124, 58, 237, .08); box-shadow: 0 0 0 2px #c4b5fd; }
.sc-hint { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(31, 22, 64, .8); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
.scratch.drawing .sc-hint { opacity: 0; }
.scratch canvas { position: absolute; inset: 0; height: 100%; width: 100%; touch-action: none; cursor: crosshair; background-image: linear-gradient(rgba(147, 164, 214, .25) 1px, transparent 1px); background-size: 100% 28px; }
.rep-topics { display: grid; gap: 8px; margin-bottom: 10px; }
.rep-topic { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #fef2f2; color: var(--ink); }
.rep-topic b { flex: 1; }
.rv-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.review-hero { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.review-hero.has { background: linear-gradient(135deg, #ede9fe, #fff); border: 2px solid #c4b5fd; }
.rh-ic { font-size: 2.6rem; }
.review-hero h2 { margin: 0; }
.group-grid { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 640px) { .group-grid { grid-template-columns: 1fr 1fr; } }
.group { border-left: 6px solid var(--c); margin: 0; }
.group h3 { margin: 6px 0 2px; }
.group-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.flag-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }

.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 6px; }
.test-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); text-align: center; }
.test-tile.new { border-style: dashed; }
.test-tile.good { background: var(--ok-soft); border-color: #86efac; } .test-tile.mid { background: #fef3c7; border-color: #fcd34d; } .test-tile.low { background: var(--bad-soft); border-color: #fca5a5; }
.tt-res { font-family: 'Baloo 2'; font-weight: 800; color: var(--brand); }
.hist-test { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.hist-test:last-child { border-bottom: 0; }
.ht-pct { width: 52px; text-align: center; font-family: 'Baloo 2'; font-weight: 800; border-radius: 12px; padding: 6px 0; flex: none; }
.ht-pct.good { background: var(--ok-soft); color: var(--ok); } .ht-pct.mid { background: #fef3c7; color: #b45309; } .ht-pct.low { background: var(--bad-soft); color: var(--bad); }
.heat-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.hl { padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.heat-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; margin-bottom: 10px; align-items: start; }
.heat-subj { display: flex; flex-direction: column; border-left: 5px solid var(--c); padding-left: 6px; font-size: .85rem; }
.heat-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; }
.heat { display: flex; flex-direction: column; justify-content: space-between; min-height: 58px; padding: 6px; border-radius: 10px; color: var(--ink); font-size: .72rem; font-weight: 700; line-height: 1.2; }
.heat-v { font-family: 'Baloo 2'; font-size: 1rem; font-weight: 800; }
.none { background: #f3f4f6; color: #9ca3af; } .h1 { background: #fecaca; } .h2 { background: #fed7aa; } .h3 { background: #fef08a; } .h4 { background: #bbf7d0; }
.line-chart { width: 100%; height: auto; }
.lc-grid { stroke: #e9e5f8; stroke-width: 1; } .lc-ax { font-size: 11px; fill: #8b85a8; font-family: Nunito, sans-serif; }
.lc-line { fill: none; stroke: #7c3aed; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; } .lc-dot { fill: #fff; stroke: #7c3aed; stroke-width: 2.5; }
@media (max-width: 480px) { .heat-row { grid-template-columns: 1fr; } .heat-subj { flex-direction: row; gap: 6px; align-items: center; } }
.level-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .level-pick { grid-template-columns: repeat(4, 1fr); } }
.lv { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: inherit; cursor: pointer; text-align: left; }
.lv span { font-size: .82rem; color: var(--ink-2); } .lv small { color: var(--muted); font-weight: 700; }
.lv.on { border-color: var(--brand); background: var(--brand-soft); }
.prog-big { font-family: 'Baloo 2'; font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.today-prog.done, .prog-mini.done { border: 2px solid #86efac; background: linear-gradient(135deg, #f0fdf4, #fff); }
.prog-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.pr-name { width: 104px; font-weight: 700; font-size: .9rem; flex: none; }
.pr-val { width: 64px; text-align: right; font-weight: 800; font-size: .88rem; flex: none; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.day-tile { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-size: .8rem; text-align: center; }
.day-tile b { font-family: 'Baloo 2'; font-size: 1.1rem; }
.dt-day { font-weight: 800; } .dt-wd { color: var(--muted); font-size: .72rem; } .dt-st { font-size: .7rem; font-weight: 700; }
.day-tile.full { background: var(--ok-soft); border-color: #86efac; } .day-tile.makeup { background: #e0f2fe; border-color: #7dd3fc; }
.day-tile.part { background: #fef3c7; border-color: #fcd34d; } .day-tile.empty { background: var(--bad-soft); border-color: #fca5a5; }
.day-tile.today { border-color: var(--brand); background: var(--brand-soft); }
.day-tile.future { opacity: .5; background: #f3f4f6; cursor: not-allowed; }
.day-tile.sel { outline: 3px solid var(--amber); }
.telafi-card { border: 2px solid #c4b5fd; }

/* ===== Fetih Arenası (lacivert + altın, yalnızca .fetih altında) ===== */
.fetih { --fx-bg: #0b1433; --fx-card: #121f4a; --fx-line: #24346e; --fx-ink: #eef2ff; --fx-mute: #9aa6d4; --fx-gold: #f5c542; --fx-gold-2: #d99a1b;
  color: var(--fx-ink); background: radial-gradient(circle at 20% 0%, #1b2d6b 0, transparent 55%), var(--fx-bg);
  margin: -8px -14px 0; padding: 14px 14px 24px; min-height: calc(100vh - 140px); border-radius: 0 0 22px 22px; }
.fetih h1, .fetih h2, .fetih h3 { color: var(--fx-ink); }
.fetih .small { color: var(--fx-mute); }
.fx-hero { text-align: center; padding: 6px 0 10px; }
.fx-hero h1 { font-size: 2rem; margin: 0; background: linear-gradient(180deg, #ffe7a0, var(--fx-gold) 60%, var(--fx-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .5px; }
.fx-hero p { color: var(--fx-mute); margin: .2em 0 0; }
.fx-crest { font-size: 3rem; filter: drop-shadow(0 4px 14px rgba(245, 197, 66, .45)); animation: fxFloat 3s ease-in-out infinite; }
.fx-crest.big { font-size: 4.2rem; }
@keyframes fxFloat { 50% { transform: translateY(-5px); } }
.fx-league { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.fx-league div { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 14px; padding: 8px 4px; text-align: center; }
.fx-league b { display: block; color: var(--fx-gold); font-size: 1.1rem; }
.fx-league span { font-size: .72rem; color: var(--fx-mute); }
.fx-card { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: 18px; padding: 14px; margin: 10px 0; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); }
.fx-card.center { text-align: center; }
.fx-lbl { display: block; font-size: .8rem; font-weight: 800; color: var(--fx-mute); margin: 4px 0 6px; text-transform: uppercase; letter-spacing: .5px; }
.fx-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fx-seg button { background: #0d1838; color: var(--fx-ink); border: 1px solid var(--fx-line); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .85rem; cursor: pointer; }
.fx-seg button.on { background: linear-gradient(180deg, var(--fx-gold), var(--fx-gold-2)); color: #2a1a00; border-color: transparent; font-weight: 800; }
.fx-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.fx-btn { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--fx-line);
  background: #1a2a5e; color: var(--fx-ink); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .12s; }
.fx-btn:active { transform: scale(.97); }
.fx-btn.gold { background: linear-gradient(180deg, #ffd766, var(--fx-gold-2)); color: #2a1a00; border-color: #ffd766; box-shadow: 0 6px 18px rgba(245, 197, 66, .35); }
.fx-btn.ghost { background: transparent; }
.fx-btn.sm { flex: 0 0 auto; min-height: 36px; font-size: .85rem; }
.fx-join { display: flex; gap: 8px; margin-top: 10px; }
.fx-join input { flex: 1; min-width: 0; background: #0d1838; border: 1px solid var(--fx-line); color: var(--fx-gold); border-radius: 14px; padding: 0 12px; font: inherit; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; text-align: center; min-height: 46px; }
.fx-join .fx-btn { flex: 0 0 96px; }
.fx-rules summary { cursor: pointer; font-weight: 800; }
.fx-rules ol { padding-left: 18px; margin: 8px 0; } .fx-rules li { margin: 4px 0; color: #d6dcf7; }
.fx-recent { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--fx-line); }
.fx-code { font-size: 2.4rem; font-weight: 900; letter-spacing: 8px; color: var(--fx-gold); margin: 4px 0; }
.fx-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.fx-seat { border: 2px solid var(--pc, var(--fx-line)); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0d1838; }
.fx-seat span { font-size: 1.8rem; } .fx-seat.empty { opacity: .5; border-style: dashed; }
.fx-hint { text-align: center; color: #d6dcf7; min-height: 1.5em; margin: 6px 0; }
.fx-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.fx-pl { background: var(--fx-card); border: 1px solid var(--fx-line); border-top: 4px solid var(--pc); border-radius: 12px; padding: 6px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 6px; font-size: .85rem; }
.fx-pl .av { font-size: 1.3rem; grid-row: span 2; } .fx-pl .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pl b { color: var(--fx-gold); font-size: 1.05rem; } .fx-pl small { grid-column: 2 / 4; color: var(--fx-mute); font-size: .7rem; }
.fx-pl.me { box-shadow: 0 0 0 2px var(--fx-gold) inset; } .fx-pl.out { opacity: .4; filter: grayscale(1); }
.fx-pl.act { animation: fxAct 1.2s ease-in-out infinite; }
@keyframes fxAct { 50% { box-shadow: 0 0 16px var(--pc); } }
.fx-phase { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px; font-weight: 800; }
.fx-timer { color: var(--fx-gold); font-variant-numeric: tabular-nums; }
.fx-timer.big { font-size: 1.4rem; } .fx-timer.low { color: #ff6b6b; animation: fxBlink .5s steps(2) infinite; }
@keyframes fxBlink { 50% { opacity: .4; } }
.fx-mapwrap { background: #081028; border: 1px solid var(--fx-line); border-radius: 18px; padding: 6px; }
#fxMap { width: 100%; height: auto; display: block; touch-action: manipulation; }
.fx-cell polygon { fill: #1c2a57; stroke: #3a4c8f; stroke-width: 1.5; transition: fill .5s, stroke .3s; }
.fx-cell.t-kale polygon { stroke: var(--fx-gold); stroke-width: 2.5; }
.fx-cell.t-onemli polygon { stroke: #b9a3ff; stroke-width: 2; }
.fx-cell.owned polygon { fill-opacity: .82; }
.fx-cell.mine polygon { stroke: #fff; }
.fx-cell text { pointer-events: none; text-anchor: middle; fill: #f3f5ff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 2.5px; }
.fx-cell .fx-ic { font-size: 13px; stroke-width: 0; } .fx-cell .fx-lb { font-size: 7.4px; font-weight: 700; }
.fx-cell.can { cursor: pointer; } .fx-cell.can polygon { stroke: var(--fx-gold); stroke-width: 3; animation: fxCan 1s ease-in-out infinite; }
@keyframes fxCan { 50% { stroke-opacity: .35; } }
.fx-cell.target polygon { stroke: #ff5577; stroke-width: 3.5; stroke-dasharray: 5 3; animation: fxDash 1s linear infinite; }
@keyframes fxDash { to { stroke-dashoffset: -16; } }
.fx-cell.pulse { animation: fxPulse .9s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes fxPulse { 0% { transform: scale(1); } 35% { transform: scale(1.14); filter: brightness(1.6); } 100% { transform: scale(1); } }
.fx-cell.shield polygon { animation: fxShield .9s ease-out; }
.fx-own { display: none; pointer-events: none; }
.fx-cell.owned .fx-own { display: inline; }
.fx-own path { fill: #fff; stroke: currentColor; stroke-width: 1.6; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.fx-own .fx-hp { display: none; }
.fx-own .fx-hp circle { fill: #3a4c8f; stroke: #0b1433; stroke-width: .8; }
.fx-own .fx-hp circle.on { fill: var(--fx-gold); }
.fx-cell.main .fx-own { transform-box: fill-box; }
.fx-cell.main .fx-own path { fill: var(--fx-gold); stroke: #fff; stroke-width: 1.4; }
.fx-cell.main .fx-own .fx-hp { display: inline; }
.fx-cell.boom { animation: fxBoom .8s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes fxBoom { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3px,1px); filter: brightness(1.8) saturate(1.5); } 40% { transform: translate(3px,-1px); } 60% { transform: translate(-2px,0); } 80% { transform: translate(2px,1px); } }
@keyframes fxShield { 30% { stroke: #9fe3ff; stroke-width: 5; } }
.fx-log { margin-top: 8px; font-size: .8rem; color: var(--fx-mute); max-height: 118px; overflow: auto; }
.fx-log div { padding: 3px 0; border-bottom: 1px dashed var(--fx-line); } .fx-log div:first-child { color: #e6eaff; }
#fxQuit { display: block; margin: 12px auto 0; }
.fx-modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 9, 26, .78); display: flex; align-items: flex-end; justify-content: center; padding: 10px; backdrop-filter: blur(3px); }
.fx-modal[hidden] { display: none; }
.fx-qbox { width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; background: var(--fx-card); color: var(--fx-ink); border: 1px solid var(--fx-gold-2); border-radius: 22px; padding: 14px; animation: fxUp .25s ease-out; }
@keyframes fxUp { from { transform: translateY(30px); opacity: 0; } }
.fx-qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; }
.fx-qbar { height: 6px; background: #0d1838; border-radius: 9px; overflow: hidden; margin: 8px 0 10px; }
.fx-qbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6b6b, var(--fx-gold)); transition: width .25s linear; }
.fx-qtext { font-size: 1rem; line-height: 1.55; margin-bottom: 10px; white-space: pre-line; }
.fx-opts { display: grid; gap: 8px; }
.fx-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #0d1838; color: var(--fx-ink); border: 1px solid var(--fx-line); border-radius: 14px; padding: 11px 12px; font: inherit; cursor: pointer; min-height: 48px; }
.fx-opt b { color: var(--fx-gold); } .fx-opt.picked { border-color: var(--fx-gold); background: #2a3a10; }
.fx-opt:disabled { cursor: default; } .fx-opt:disabled:not(.picked) { opacity: .55; }
.fx-qwait { text-align: center; margin-top: 8px; min-height: 1.3em; }
.fx-rank { list-style: none; padding: 0; margin: 10px 0; text-align: left; }
.fx-rank li { display: grid; grid-template-columns: 1fr auto; border-left: 5px solid var(--pc); background: #0d1838; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.fx-rank li b { color: var(--fx-gold); } .fx-rank li small { color: var(--fx-mute); grid-column: 1 / 3; }
@media (min-width: 700px) { .fx-modal { align-items: center; } .fetih { margin: 0; border-radius: 22px; } }

/* Fetih: saldırı oku, konu seçimi, açık odalar, site geneli oda kutucuğu */
.fx-arrow { pointer-events: none; }
.fx-arrow line { stroke-linecap: round; }
.fx-arrow-bg { stroke: rgba(0, 0, 0, .55); stroke-width: 7; }
.fx-arrow-fg { stroke-width: 4; stroke-dasharray: 8 5; animation: fxDash .6s linear infinite; }
.fx-arrow-ic { font-size: 12px; text-anchor: middle; animation: fxSwing .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes fxSwing { from { transform: rotate(-18deg) scale(1); } to { transform: rotate(18deg) scale(1.25); } }
.fx-select { width: 100%; background: #0d1838; color: var(--fx-ink); border: 1px solid var(--fx-line); border-radius: 12px; padding: 6px; font: inherit; font-size: .9rem; }
.fx-select option { padding: 6px 8px; border-radius: 8px; }
.fx-select option:checked { background: linear-gradient(180deg, var(--fx-gold), var(--fx-gold-2)); color: #2a1a00; }
.fx-topic-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.fx-rooms-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fx-rooms-h h3 { margin: 0; }
.fx-room { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--fx-line); }
.fx-room .av { font-size: 1.6rem; }
.fx-room small { display: block; color: var(--fx-mute); }
.fx-room .grow { flex: 1; min-width: 0; }
.fetih-home .fh-room { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.fetih-home .fh-room .av { font-size: 1.6rem; }
.fetih-home .fh-room .grow { flex: 1; min-width: 0; }
.fetih-home .fh-room small { display: block; color: var(--muted); }
.fx-dock { position: fixed; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 70; display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 24px); padding: 8px 12px; border-radius: 16px; background: #0b1433; color: #eef2ff; text-decoration: none;
  border: 2px solid #d99a1b; box-shadow: 0 8px 24px rgba(11, 20, 51, .35); }
.fx-dock[hidden] { display: none; }
.fx-dock-ic { font-size: 1.5rem; }
.fx-dock-tx b { display: block; color: #f5c542; font-size: .85rem; }
.fx-dock-tx small { display: block; font-size: .78rem; color: #c9d1f2; }
.fx-dock.turn { animation: fxDockBlink .8s ease-in-out infinite; border-color: #ff5577; }
.fx-dock.turn small { color: #fff; font-weight: 800; }
@keyframes fxDockBlink { 0%, 100% { background: #0b1433; transform: scale(1); } 50% { background: #b3123b; transform: scale(1.06); } }

/* Fetih: Didim haritası kara parçası, sahip etiketi, renk açıklaması */
.fx-land { fill: #20305f; stroke: #c9a24a; stroke-width: 2; stroke-linejoin: round; opacity: .9; }
.fx-sea { fill: #7f93cf; font-size: 11px; font-style: italic; font-weight: 700; pointer-events: none; }
.fx-cell .fx-lb { font-size: 10px; }
.fx-cell .fx-ic { font-size: 15px; }
.fx-cell .fx-who { font-size: 9px; font-weight: 800; fill: #fff; }
.fx-pl { background: linear-gradient(180deg, var(--pc), transparent 70%), var(--fx-card); background-size: 100% 6px, auto; background-repeat: no-repeat; }
.fx-pl .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.fx-pl .nm em { font-style: normal; font-size: .62rem; background: var(--fx-gold); color: #2a1a00; border-radius: 6px; padding: 0 4px; margin-left: 2px; vertical-align: middle; }
.fx-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin: 8px 0 2px; font-size: .85rem; font-weight: 700; }
.fx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fx-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--pc); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }

/* Fetih: madalya töreni */
.fx-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 14px 0 6px; min-height: 210px; }
.fx-pod { flex: 1 1 0; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: fxRise .7s cubic-bezier(.2,1.3,.4,1) both; }
.fx-pod .md { font-size: 2rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.fx-pod .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--pc); box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.fx-pod b { font-size: .95rem; } .fx-pod small { color: var(--fx-mute); font-size: .72rem; text-align: center; }
.fx-pod .st { width: 100%; margin-top: 4px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, var(--fx-gold), var(--fx-gold-2)); color: #2a1a00; font-weight: 900; font-size: 1.6rem; display: grid; place-items: center; }
.fx-pod.p1 .st { height: 96px; } .fx-pod.p2 .st { height: 66px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); } .fx-pod.p3 .st { height: 46px; background: linear-gradient(180deg, #f0b27a, #b9773e); }
.fx-pod.me b { color: var(--fx-gold); }
@keyframes fxRise { from { transform: translateY(60px); opacity: 0; } }
.fx-rank-rest { list-style: none; padding: 0; margin: 6px 0; font-size: .9rem; color: var(--fx-mute); }
.fx-fireworks { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.fx-sad { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.fx-sad span { position: absolute; top: -50px; animation: fxFall 3.8s ease-in forwards; }
@keyframes fxFall { to { transform: translateY(110vh) rotate(25deg); opacity: .2; } }

/* Kimlik kartı (sol üst), yönetim sayfaları, emoji gönderme */
.who-chip { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 46vw; text-decoration: none; color: inherit; margin-right: auto; margin-left: 8px; }
.who-chip .who-av { font-size: 1.3rem; }
.who-chip .who-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.who-chip .who-tx b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-chip .who-tx small { font-size: .7rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.class-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--brand-soft); font-size: .85rem; }
.class-chip a { color: inherit; text-decoration: none; }
.class-chip form { display: inline; margin: 0; } .class-chip button { border: 0; background: none; cursor: pointer; color: var(--bad); }
.scope-pick { display: grid; gap: 8px; margin: 8px 0 12px; }
.scope-school { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.scope-classes { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 6px 0; }
.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .chk.sm { font-size: .88rem; }
.stu-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stu-av { font-size: 3rem; }
.day-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 6px; }
.day-bars .db { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.day-bars .db-bar { width: 100%; max-width: 26px; background: var(--brand-soft); border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.day-bars .db-bar i { display: block; width: 100%; background: var(--ok); }
.day-bars small { font-size: .7rem; color: var(--muted); }
.feed-row { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.feed-row .fi { font-size: 1.3rem; } .feed-row small { display: block; color: var(--muted); }
.fx-seat small { font-size: .7rem; color: var(--fx-mute); }
.fx-emobar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 8px 0; }
.fx-emobar button { font-size: 1.25rem; background: #0d1838; border: 1px solid var(--fx-line); border-radius: 10px; padding: 3px 7px; cursor: pointer; }
.fx-emobar button:disabled { opacity: .4; }
.fx-pl { position: relative; }
.fx-emo-pop { position: absolute; top: -14px; right: 4px; font-size: 1.8rem; animation: fxEmo 2.6s ease-out forwards; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
@keyframes fxEmo { 0% { transform: scale(.2) translateY(10px); opacity: 0; } 15% { transform: scale(1.3); opacity: 1; } 70% { transform: scale(1) translateY(-14px); opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }

/* Fetih öne çıkarma: oyunlar sayfasında ilk ve geniş kart, ana sayfada vurgulu düğme */
.game-card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, #0b1433, #1b2d6b); color: #eef2ff; border: 2px solid #d99a1b; }
.game-card.featured .small, .game-card.featured .gc-meta { color: #c9d1f2; }
.game-card.featured .pill { background: #f5c542; color: #2a1a00; font-size: .7rem; vertical-align: middle; }
.quick.quick-fetih { grid-column: span 2; background: linear-gradient(135deg, #0b1433, #1b2d6b); color: #f5c542; border: 2px solid #d99a1b; font-weight: 900; }

/* Fetih: tur sonucu, herkesin cevabı ve süresi */
.fx-res-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.fx-res { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #0d1838; border: 2px solid var(--pc); }
.fx-res.ok { background: rgba(22, 163, 74, .25); } .fx-res.no { background: rgba(220, 38, 38, .18); opacity: .9; }

/* Yönetim: okul arama (otomatik tamamlama) */
.ac-box { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; margin-top: 4px; }
.ac-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; cursor: pointer; font: inherit; border-bottom: 1px solid var(--line); }
.ac-item:hover, .ac-item.on { background: var(--brand-soft); }
.ac-item small { display: block; color: var(--muted); }
.ac-empty { padding: 10px 12px; color: var(--muted); }
.class-chip.on { background: var(--brand); color: #fff; }
.class-chip.on a, a.class-chip.on { color: #fff; }
a.class-chip { text-decoration: none; color: inherit; }

/* Soru görselleri (SVG) */
.q-fig { margin: 12px auto 4px; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.q-fig svg { display: block; width: 100%; height: auto; max-height: 360px; }
.q-fig svg text { font-family: 'Nunito', system-ui, sans-serif; }
.fetih .q-fig { background: #fff; color: #111; }

/* ---- Yönetim: öğrenci ödül / gün düzenleme / sıfırlama ---- */
.qchip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.qchip { border: 1px solid var(--line, #e5e7eb); background: var(--card, #fff); color: inherit; border-radius: 99px; padding: 4px 10px; font-size: .8rem; cursor: pointer; }
.qchip:hover { border-color: var(--brand, #6366f1); }
.cal-edit { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0; }
.ce-day { position: relative; }
.ce-day > summary { list-style: none; cursor: pointer; text-align: center; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; line-height: 1.15; }
.ce-day > summary::-webkit-details-marker { display: none; }
.ce-day.on-star > summary { background: #fef3c7; border-color: #f59e0b; }
.ce-day.on-shield > summary { background: #dbeafe; border-color: #3b82f6; }
.ce-day[open] > summary { outline: 2px solid var(--brand, #6366f1); }
.ce-pop { position: absolute; z-index: 20; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; margin-top: 4px; background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ce-day:nth-child(7n+1) .ce-pop { left: 0; transform: none; }
.ce-day:nth-child(7n) .ce-pop { left: auto; right: 0; transform: none; }
.danger-zone { border: 2px dashed var(--bad, #ef4444); }
.reset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0; }
.reset-grid .chk { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 8px; }

/* ---- Düello: VS girişi, hayalet yarış, bahis, seri ---- */
.vs-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: radial-gradient(circle at 50% 50%, #312e81, #0f172a 75%); color: #fff; padding: 16px; animation: vsIn .35s ease-out; transition: opacity .3s; }
.vs-overlay.out { opacity: 0; }
.vs-side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.vs-me { animation: vsL .6s cubic-bezier(.2,1.4,.4,1); }
.vs-opp { animation: vsR .6s cubic-bezier(.2,1.4,.4,1); }
.vs-av { font-size: clamp(3rem, 14vw, 6rem); filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.vs-side b { font-size: clamp(.95rem, 4vw, 1.4rem); max-width: 40vw; overflow-wrap: anywhere; }
.vs-side small { color: #fbbf24; font-weight: 800; }
.vs-mid { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 8px; }
.vs-word { font-family: 'Baloo 2', sans-serif; font-weight: 900; font-size: clamp(2.6rem, 12vw, 5rem); color: #f43f5e; text-shadow: 0 0 24px rgba(244,63,94,.8); animation: vsPulse 1s infinite; }
.vs-stake { background: #f59e0b; color: #111; border-radius: 99px; padding: 4px 12px; font-weight: 900; font-size: .9rem; white-space: nowrap; }
.vs-count { font-family: 'Baloo 2', sans-serif; font-size: clamp(2.4rem, 10vw, 4.5rem); font-weight: 900; min-height: 1.2em; }
.vs-count.pulse { animation: vsNum .7s ease-out; }
.vs-count.go { color: #22c55e; font-size: clamp(1.8rem, 8vw, 3rem); }
@keyframes vsIn { from { opacity: 0; } }
@keyframes vsL { from { transform: translateX(-60vw); } }
@keyframes vsR { from { transform: translateX(60vw); } }
@keyframes vsPulse { 50% { transform: scale(1.12); } }
@keyframes vsNum { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ghost-bar { margin: 6px 0; }
.gh-row { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 6px 10px; font-size: .9rem; flex-wrap: wrap; }
.gh-row.lead { border-color: var(--ok); }
.gh-row.behind { border-color: var(--bad); }
.gh-me b, .gh-opp b { font-size: 1.2rem; }
.gh-info { color: var(--muted); font-size: .82rem; flex: 1; min-width: 160px; }
.gh-cells { display: flex; gap: 4px; flex: 1; justify-content: center; }
.gh-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 34px; padding: 2px 4px; border-radius: 8px; background: rgba(148,163,184,.15); line-height: 1.1; }
.gh-cell small { font-size: .68rem; color: var(--muted); }
.gh-cell.ok { background: var(--ok-soft); }
.gh-cell.bad { background: var(--bad-soft); }
.gh-cell.beat { outline: 2px solid #f59e0b; }
.gh-cell.now { outline: 2px dashed var(--brand); }
.duel-score.win b { color: var(--ok); }
.duel-score.lose b { color: var(--bad); }
.duel-cmp { max-width: 360px; margin: 8px auto; font-size: .9rem; }
.duel-cmp .dc-h, .duel-cmp .dc-r { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 6px; padding: 3px 6px; text-align: center; }
.duel-cmp .dc-h { font-weight: 800; color: var(--muted); }
.duel-cmp .dc-r:nth-child(even) { background: rgba(148,163,184,.1); border-radius: 8px; }
.duel-cmp .w { font-weight: 900; color: var(--ok); }
.stake-tag { display: inline-block; background: #fef3c7; color: #92400e; border-radius: 99px; padding: 2px 10px; font-weight: 800; }
.duel-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.duel-streak-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: rgba(148,163,184,.1); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
.duel-streak-bar b { font-size: 1.25rem; }
.ds-fire.hot b { color: #f97316; animation: vsPulse 1.2s infinite; display: inline-block; }
#rematch-btn { margin: 10px auto; display: block; animation: vsPulse 1.6s infinite; }
.fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9998; }
.sad-drop { position: fixed; top: -40px; font-size: 2rem; z-index: 9998; pointer-events: none; animation: sadFall 3s ease-in forwards; }
@keyframes sadFall { to { transform: translateY(110vh) rotate(25deg); opacity: .4; } }

/* ---- Ön kayıt ---- */
.reg-card { max-width: 560px; }
.reg-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.seg { display: flex; gap: 8px; margin-bottom: 10px; }
.seg label { flex: 1; text-align: center; border: 2px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; font-weight: 800; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.seg input { display: none; }
.reg-status { margin-top: 12px; }
.reg-status summary { cursor: pointer; font-weight: 700; }
.login-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.reg-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.reg-row .reg-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.nav-badge { background: var(--bad); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; font-weight: 900; margin-left: 4px; }
.pending-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fef3c7; border: 2px solid #f59e0b; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }

/* ---- Fetih: anlık cevap geri bildirimi, büyük ✓/✗ şeridi, spiker, izleyici modu ---- */
.fx-opt.ok-blink { border-color: #22c55e; background: #14532d; animation: fxOkBlink .45s ease-in-out 5; }
.fx-opt.bad { border-color: #ef4444; background: #5b1515; animation: fxShake .4s; }
.fx-opt.bad b, .fx-opt.ok-blink b { color: #fff; }
@keyframes fxOkBlink { 50% { background: #22c55e; box-shadow: 0 0 18px #22c55e; } }
@keyframes fxShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#fxQ.watch .fx-opt { cursor: not-allowed; }
#fxQ.watch .fx-qhead #fxQVs { color: #fbbf24; }
.fx-comm { margin: 6px 0; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #7c2d12, #b45309); color: #fff; font-weight: 800; text-align: center; font-size: clamp(.92rem, 3.6vw, 1.1rem); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.fx-comm::before { content: '🎙️ '; }
.fx-comm.pop { animation: fxCommPop .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes fxCommPop { from { transform: scale(.85); opacity: 0; } }
.fx-verdict { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0; }
.fx-vd { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: 8px 10px 6px; border-radius: 16px; background: #0d1838; border: 3px solid var(--pc); color: #fff; animation: fxCommPop .45s; }
.fx-vd .mk { font-size: 2.4rem; line-height: 1; font-weight: 900; }
.fx-vd.ok .mk { color: #22c55e; text-shadow: 0 0 14px rgba(34,197,94,.7); }
.fx-vd.no .mk { color: #ef4444; text-shadow: 0 0 14px rgba(239,68,68,.6); }
.fx-vd.no { opacity: .85; }
.fx-vd.me { box-shadow: 0 0 0 3px #fbbf24; }
.fx-vd .av { font-size: 1.4rem; }
.fx-vd b { font-size: .95rem; }
.fx-vd small { font-size: .72rem; opacity: .85; }
.fx-vd em { font-style: normal; font-size: .72rem; font-weight: 900; background: #fbbf24; color: #111; border-radius: 99px; padding: 1px 7px; margin-top: 3px; }
.fx-vd em.dim { background: #475569; color: #e2e8f0; }
.fx-vd-ans { align-self: center; color: #fff; background: #1e293b; border-radius: 12px; padding: 6px 10px; }
.fx-vd-ans b { color: #fbbf24; font-size: 1.3rem; }
/* Fetih sonuç anı: doğru şık yanar, kim neyi seçti görünür */
#fxQ.reveal .fx-opt { position: relative; opacity: 1; }
#fxQ.reveal .fx-opt.right { border: 3px solid #22c55e; background: #14532d; animation: fxOkBlink .5s ease-in-out 4; }
#fxQ.reveal .fx-opt.right b { color: #fff; }
#fxQ.reveal .fx-opt.wrongpick { border: 3px solid #ef4444; background: #5b1515; }
#fxQ.reveal .fx-opt.dim { opacity: .45; }
.fx-right-mk { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 1.8rem; color: #22c55e; text-shadow: 0 0 10px #22c55e; }
.fx-pickers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fx-pick { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; border: 2px solid var(--pc); background: rgba(0,0,0,.35); font-weight: 900; font-size: .85rem; }
.fx-pick.ok { color: #86efac; } .fx-pick.no { color: #fca5a5; }
.fx-pick small { font-weight: 600; opacity: .8; }
.ok-t { color: #22c55e; font-weight: 900; } .no-t { color: #f87171; font-weight: 900; }
/* Fetih: canlı rakip seçimleri, AFK, cevap anahtarı */
.fx-pick.live { color: #fde68a; animation: fxCommPop .4s; }
.fx-pl em.idle { background: #7c2d12; color: #fed7aa; font-style: normal; border-radius: 99px; padding: 0 5px; font-size: .7rem; animation: vsPulse 1s infinite; display: inline-block; }
.fx-keybox { max-width: 760px; max-height: 88vh; overflow: auto; text-align: left; }
.fx-keybox .fx-qhead { position: sticky; top: 0; background: inherit; z-index: 2; gap: 10px; }
.fk-item { border: 2px solid #334155; border-radius: 14px; margin: 8px 0; padding: 8px 10px; }
.fk-item.ok { border-color: #16a34a; } .fk-item.no { border-color: #dc2626; }
.fk-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fk-mk { font-size: 1.4rem; font-weight: 900; } .fk-item.ok .fk-mk { color: #22c55e; } .fk-item.no .fk-mk { color: #ef4444; }
.fk-ans { margin-left: auto; background: #14532d; color: #bbf7d0; border-radius: 99px; padding: 1px 9px; font-weight: 800; }
.fk-body { margin-top: 8px; }
.fk-opt { padding: 6px 8px; border-radius: 10px; margin: 4px 0; border: 1px solid #334155; }
.fk-opt.right { border: 2px solid #22c55e; background: rgba(34,197,94,.15); }
.fk-opt.wrongpick { border: 2px solid #ef4444; background: rgba(239,68,68,.12); }

/* ---- Görevler, haftalık program, raporlar ---- */
.chip-admin { background: #fbbf24 !important; color: #111 !important; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; margin: 6px 0; color: inherit; text-decoration: none; }
.task-row.done { opacity: .7; }
.task-row small { display: block; color: var(--muted); }
.tk-ic { font-size: 1.5rem; }
.tk-bar { display: block; height: 8px; background: rgba(148,163,184,.25); border-radius: 99px; overflow: hidden; margin: 4px 0; }
.tk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #22c55e); border-radius: 99px; }
.tk-bar.big { height: 14px; }
.task-card .tk-head { display: flex; gap: 10px; align-items: center; }
.task-card.done { border: 2px solid var(--ok); }
.task-card.late { opacity: .75; }
.tk-note { background: rgba(148,163,184,.12); border-radius: 10px; padding: 8px 10px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 700px) { .week-grid { grid-template-columns: repeat(2, 1fr); } }
.wk-day { border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-height: 90px; }
.wk-day.today { border: 2px solid var(--brand); background: var(--brand-soft); }
.wk-item { font-size: .8rem; color: inherit; text-decoration: none; background: rgba(148,163,184,.12); border-radius: 8px; padding: 3px 6px; }
.wk-item.done { background: var(--ok-soft); }
.wk-item small { float: right; font-weight: 800; }
.stu-list { max-height: 260px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.class-chip input { margin-right: 4px; }
.row-ok td { background: rgba(34,197,94,.08); }
.row-sel td { background: var(--brand-soft); }
.goal-tbl td.gc { text-align: center; font-weight: 800; }
.goal-tbl td.ok { background: rgba(34,197,94,.15); } .goal-tbl td.no { background: rgba(239,68,68,.12); } .goal-tbl td.wip { background: rgba(245,158,11,.12); } .goal-tbl td.na { color: var(--muted); }
.goal-tbl th { font-size: .75rem; }
.week-form select { max-width: 160px; }

/* ---- Optik form (cevap kâğıdı) ---- */
.opt-sheet-wrap { margin: 10px 0; }
.opt-sheet { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.os-cell { width: 42px; display: flex; flex-direction: column; align-items: center; padding: 3px 0; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: inherit; cursor: pointer; line-height: 1.1; font: inherit; }
.os-cell small { font-size: .65rem; color: var(--muted); }
.os-cell b { font-size: 1rem; }
.os-cell.filled { background: #1e293b; color: #fff; border-color: #1e293b; }
.os-cell.filled small { color: #cbd5e1; }
.os-cell.cur { outline: 3px solid var(--brand); outline-offset: 1px; }
.os-cell.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.os-cell.no { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.os-cell.empty { opacity: .7; }
.os-cell:disabled { cursor: default; }
.sheet-nav { display: flex; gap: 8px; justify-content: space-between; margin: 8px 0; }
.sheet-nav .btn { flex: 1; }
.opt.marked { box-shadow: 0 0 0 3px #1e293b inset; }

/* ---- Konum çubuğu (breadcrumb) ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.crumbs a { color: var(--brand); text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs b { color: var(--ink); }
.crumb-sep { color: var(--muted); }
.crumbs .crumb-back { background: var(--brand); color: #fff; border-radius: 99px; padding: 3px 12px; margin-right: 4px; }
.crumbs .crumb-back:hover { text-decoration: none; filter: brightness(1.1); }
.staff-crumbs { background: #fef3c7; border-color: #f59e0b; }

/* ---- Okul / sınıf / başarı tabloları ---- */
.board-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.board-row.me, .ach-row.me { background: var(--brand-soft); border-radius: 12px; }
.board-num { text-align: right; min-width: 96px; }
.board-num b { display: block; font-size: 1.15rem; color: var(--brand); }
.board-num small { color: var(--muted); font-size: .72rem; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ach-card h3 { margin: 0 0 6px; }
.ach-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; }
.ach-v { white-space: nowrap; color: var(--brand); }
.home-boards { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.home-boards a { display: block; padding: 7px 10px; border-radius: 10px; background: var(--brand-soft); color: inherit; text-decoration: none; font-size: .88rem; }

/* ---- Giriş / ön kayıt geçişi ---- */
.auth-switch { display: flex; gap: 4px; background: rgba(148,163,184,.18); border-radius: 14px; padding: 4px; margin: 6px 0 14px; }
.auth-switch a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 11px; font-weight: 800; color: inherit; text-decoration: none; }
.auth-switch a.on { background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.12); color: var(--brand); }
.reg-cta { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 12px; border-radius: 14px; border: 2px dashed var(--brand); background: var(--brand-soft); color: inherit; text-decoration: none; }
.reg-cta > span:first-child { font-size: 1.8rem; }
.reg-cta small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.reg-cta .chev { margin-left: auto; font-size: 1.4rem; color: var(--brand); }
.prov-fields { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.prov-fields legend { font-weight: 800; padding: 0 6px; }
.test-row td { background: rgba(148,163,184,.06); padding-top: 2px; }
.test-row .inline-form input { max-width: 220px; }
/* Ön kayıt formu uzun: sayfa kaydırılabilir, kart üstten başlar */
.login-page .login-wrap:has(.reg-card) { place-items: start center; padding-top: 24px; padding-bottom: 40px; }
html:has(body.login-page) { overflow-y: auto; height: auto; }

/* ---- Mesajlar ve destek ---- */
.chat-av { font-size: 1.6rem; width: 42px; height: 42px; display: inline-grid; place-items: center; background: var(--brand-soft); border-radius: 50%; flex: none; }
.teacher-row, .conv-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; flex-wrap: wrap; }
.conv-row.unread { background: var(--brand-soft); border-radius: 12px; }
.conv-row.unread b { color: var(--brand); }
.badge-n { background: var(--bad); color: #fff; border-radius: 99px; padding: 0 8px; font-size: .75rem; font-weight: 900; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat-body { max-height: 55vh; overflow-y: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 6px; }
.chat-day { align-self: center; font-size: .72rem; color: var(--muted); background: rgba(148,163,184,.15); border-radius: 99px; padding: 1px 10px; margin: 4px 0; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 16px; line-height: 1.4; word-wrap: break-word; }
.bubble small { display: block; text-align: right; font-size: .68rem; opacity: .7; margin-top: 2px; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: rgba(148,163,184,.18); border-bottom-left-radius: 4px; }
.bubble.sup { border: 2px solid #f59e0b; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 8px; }
.chat-form textarea { flex: 1; resize: vertical; }
.sup-strip { margin: 6px 0; padding: 7px 10px; border-radius: 10px; background: #fef3c7; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sup-strip.resolved { background: var(--ok-soft); }
.sup-strip .inline-form { margin: 0 0 0 auto; }
.perf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 8px 0; }
.perf-grid > div { background: rgba(148,163,184,.1); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.perf-grid b { font-size: 1.25rem; color: var(--brand); }
.perf-grid span { font-size: .8rem; }
.perf-grid small { color: var(--muted); font-size: .72rem; }
a.stu-pick { display: block; color: inherit; text-decoration: none; padding: 4px 6px; border-radius: 8px; }
a.stu-pick:hover { background: var(--brand-soft); }

/* ---- Fetih: bilemediklerim ---- */
.fx-missed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--fx-line, #334155); margin-bottom: 12px; }
.fx-missed.has { border: 2px solid #f59e0b; background: rgba(245,158,11,.12); }
.fx-missed .ic { font-size: 1.6rem; }
.fx-missed small { display: block; opacity: .8; font-size: .78rem; }
.fm-list summary { cursor: pointer; }

/* ---- Fetih jokerleri ve joker puanı ---- */
.fx-qjk, .fx-ajk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 2px; }
.fx-ajk { background: rgba(255,255,255,.06); border-radius: 14px; padding: 6px 8px; }
.fx-jk { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 12px; border: 2px solid #f59e0b; background: rgba(245,158,11,.15); color: inherit; font: inherit; cursor: pointer; }
.fx-jk span { font-size: 1.2rem; } .fx-jk b { font-size: .8rem; } .fx-jk small { font-size: .68rem; opacity: .8; }
.fx-jk.off { opacity: .4; border-color: #475569; background: transparent; }
.fx-jk:not(.off):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.4); }
.fx-opt.gone { opacity: .22; text-decoration: line-through; pointer-events: none; }
.fx-jp { border: 2px solid #f59e0b; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; background: rgba(245,158,11,.08); }
.fx-jp-h b { font-size: 1.05rem; } .fx-jp-h small { display: block; opacity: .8; font-size: .78rem; }
.fx-jp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin-top: 8px; }
.fx-jp-item { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; }
.fx-jp-item span { font-size: 1.4rem; } .fx-jp-item b { font-size: .78rem; } .fx-jp-item small { font-size: .68rem; opacity: .8; }
.fx-jp-item:hover { border-color: #f59e0b; }
/* Fetih soru ekranı: küçült / çık */
.fx-qtools { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin: -4px 0 6px; }
.fx-qtools .fx-btn { font-size: .78rem; padding: 4px 10px; }
.fx-qrestore { position: fixed; z-index: 60; right: 16px; bottom: 84px; padding: 10px 16px; border-radius: 99px; border: 0; background: #f59e0b; color: #111; font-weight: 900; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer; animation: vsPulse 1.2s infinite; }

/* ---- Otomatik kayıt onayı anahtarı ---- */
.auto-switch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px solid var(--line); }
.auto-switch.on { border-color: var(--ok); background: var(--ok-soft); }
.auto-switch small { display: block; color: var(--muted); margin-top: 2px; }
.switch-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font: inherit; }
.switch-btn span { width: 56px; height: 30px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .2s; }
.switch-btn span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: left .2s; }
.switch-btn.on span { background: var(--ok); }
.switch-btn.on span::after { left: 29px; }
.switch-btn b { min-width: 60px; }
.sec-h{margin:22px 0 4px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Uygulama kurulumu ve bildirim izni */
.pwa-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 18px rgba(76,29,149,.25); }
.pwa-bar b { display: block; }
.pwa-bar small { display: block; opacity: .9; font-size: 12.5px; line-height: 1.3; }
.pwa-bar .btn-primary { background: #facc15; color: #1f1640; border-color: #facc15; white-space: nowrap; }
.pwa-ic { font-size: 26px; line-height: 1; }
.pwa-x { background: transparent; border: 0; color: #fff; font-size: 18px; opacity: .8; cursor: pointer; padding: 4px; }
.pwa-rows { display: grid; gap: 10px; margin: 8px 0; }
.pwa-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.pwa-row b, .pwa-row small { display: block; }
.pwa-row small { color: var(--ink-2); }
.pwa-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(15,10,40,.55); display: grid; place-items: center; padding: 16px; }
.pwa-box { max-width: 420px; width: 100%; }
.pwa-steps { padding-left: 20px; line-height: 1.6; }

/* Yeni logo (Canva) */
.brand-logo { width: 34px; height: 34px; border-radius: 10px; display: inline-block; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.login-logo-img { width: 170px; height: 170px; border-radius: 28px; display: block; margin: 0 auto 6px; box-shadow: 0 10px 30px rgba(76,29,149,.35); }
.login-logo-img.small { width: 120px; height: 120px; border-radius: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
