/* DenoN — kareli defter + yapıştırma etiket görünümü */
/* Yazı tipi sunucudan yüklenir (Google Fonts'a istek gitmez). Baloo 2, SIL Open Font License. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/baloo-2-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/baloo-2-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/baloo-2-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/baloo-2-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/baloo-2-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/baloo-2-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/baloo-2-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/baloo-2-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1B2A4A;
  --ink2: #2E3B57;
  --muted: #5B6B8C;
  --paper: #F3F6FB;
  --grid: #DFE6F2;
  --card: #FFFFFF;
  --sun: #FFD23F;
  --sun-soft: #FFF4C7;
  --coral: #FF6B6B;
  --mint: #1FB57A;
  --sky: #2F8FD8;
  --danger: #D64545;
  --line: #C9D3E6;
  --r: 18px;
  --shadow: 0 4px 0 var(--ink);
  --font: "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.45; color: var(--ink);
  background: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--sky); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .3em; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 .6em; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- Yerleşim ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 14px 16px calc(96px + var(--safe-b)); overflow-x: clip; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--ink); color: #fff;
}
.topme { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.me-text { display: flex; flex-direction: column; min-width: 0; }
.me-nick { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; line-height: 1.2; }
.lvlbar { display: block; width: 110px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 3px; }
.lvlbar i { display: block; height: 100%; background: var(--sun); border-radius: 4px; }
.top-stats { display: flex; gap: 6px; }
.avatar {
  display: inline-grid; place-items: center; width: 42px; height: 42px; font-size: 24px; border-radius: 50%;
  background: var(--sun-soft); border: 2px solid var(--ink); flex: none; line-height: 1;
}
.topbar .avatar { border-color: var(--sun); }
.avatar.sm { width: 34px; height: 34px; font-size: 19px; }
.avatar.xl { width: 76px; height: 76px; font-size: 44px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: #EEF2FA; color: var(--ink); white-space: nowrap;
}
.topbar .pill { background: rgba(255,255,255,.12); color: #fff; }
.topbar .pill-fire { background: #FF8A3D; color: var(--ink); }
.topbar .pill-fire.off { background: rgba(255,255,255,.12); color: #fff; }
.pill-reading { background: #DDEEFB; } .pill-wish { background: var(--sun-soft); } .pill-done { background: #D9F5E9; } .pill-err { background: #FFE3E3; }
.pill-fire { background: #FFE6D3; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 2px solid var(--ink); padding: 6px 4px calc(6px + var(--safe-b));
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 3px 0; border-radius: 12px; }
.tabbar .ti { font-size: 22px; line-height: 1.1; filter: grayscale(.7); opacity: .75; }
.tabbar a.on { color: var(--ink); background: var(--sun-soft); }
.tabbar a.on .ti { filter: none; opacity: 1; }
.dot { position: absolute; top: 0; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; display: grid; place-items: center; }
.tabs .dot, .tabs b.dot { position: static; display: inline-grid; margin-left: 4px; }
body.playing .tabbar { display: none; }
.tabbar a.fam-tab .ti { filter: none; opacity: 1; background: var(--coral); border: 2px solid var(--ink); border-radius: 12px; width: 36px; height: 26px; display: grid; place-items: center; font-size: 16px; margin: 1px 0 2px; box-shadow: 0 2px 0 var(--ink); }
.tabbar a.fam-tab { color: var(--ink); }
.tabbar a.fam-tab.on { background: none; }
.tabbar a.fam-tab.on .ti { background: var(--sun); }
.topbar .pill-out { background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; padding: 3px 9px; border: 2px solid var(--sun); }
.topbar .pill-out:active { background: var(--sun); }
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 18px; padding: 12px; border-radius: 14px; border: 2px solid var(--danger); background: #FFE9E9; color: var(--danger); font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 3px 0 var(--danger); }
.logout-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--danger); }
@media (max-width: 380px) { .topbar .pill-out .po-t { display: none; } .topbar .pill-lvl { display: none; } }
.topbar .pill-admin { background: rgba(255,255,255,.12); text-decoration: none; padding: 2px 8px; }
.card.fam-hero { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 0 var(--coral); }
.card.fam-hero h2 { color: #fff; }
.card.fam-hero .muted { color: #C9D3E6; }
.fam-kids-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.fam-kid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; text-decoration: none; color: #fff; font-weight: 700; font-size: 14px; text-align: center; }
.fam-kid .avatar { border-color: var(--sun); width: 52px; height: 52px; font-size: 28px; }
.fam-kid small { color: #C9D3E6; font-weight: 600; font-size: 12px; }
.fam-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fam-actions .btn { font-size: 15px; padding: 8px 10px; }
.card.fam-hero .fam-actions .btn-ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 0 3px 0 rgba(255,255,255,.4); }
body.playing .page { padding-bottom: calc(24px + var(--safe-b)); }

/* ---------- Kartlar ---------- */
.card {
  display: block; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; margin: 0 0 18px; color: var(--ink); text-decoration: none;
}
.card.soft { background: var(--sun-soft); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.link { font-weight: 700; font-size: 15px; text-decoration: none; }
.hello { margin: 6px 2px 16px; }
.hello h1 { margin-bottom: 4px; }
.back { display: inline-block; margin-bottom: 6px; font-weight: 700; text-decoration: none; color: var(--muted); }
.sub { margin: 16px 0 6px; }
.chev { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--sun); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); border-radius: 14px; padding: 11px 20px;
  font-weight: 800; font-size: 17px; cursor: pointer; text-decoration: none; transition: transform .06s, box-shadow .06s;
  min-height: 48px; font-family: inherit;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 15px; min-height: 40px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.btn-big { font-size: 22px; min-height: 60px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--card); }
.btn-danger { background: #FFD9D9; }
.btn-x, .btn-link { background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--muted); padding: 6px; font-weight: 700; }
.btn-link { text-decoration: underline; }
.btn-link.danger { color: var(--danger); }

/* ---------- Formlar ---------- */
.form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.form small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.35; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 17px; font-family: inherit;
  background: #fff; color: var(--ink); margin-top: 4px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-40%); background: none; border: 0; font-size: 18px; cursor: pointer; padding: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.inline-form input, .inline-form select { margin: 0; flex: 1; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; max-width: 100%; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-pick label { margin: 0 !important; }
.avatar-pick label, .mood-pick label { position: relative; }
.avatar-pick input, .mood-pick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.avatar-pick span { display: grid; place-items: center; width: 46px; height: 46px; font-size: 26px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.small-pick span { width: 40px; height: 40px; font-size: 22px; }
.avatar-pick input:checked + span { border-color: var(--ink); background: var(--sun); box-shadow: 0 3px 0 var(--ink); }
.avatar-pick input:focus-visible + span { outline: 3px solid var(--sky); }
.mood-pick { display: flex; gap: 6px; justify-content: space-between; }
.mood-pick label { flex: 1; text-align: center; margin: 0 !important; cursor: pointer; }
.mood-pick span { display: block; font-size: 32px; padding: 6px 0; border-radius: 12px; border: 2px solid transparent; }
.mood-pick small { font-size: 12px; }
.mood-pick input:checked + span { border-color: var(--ink); background: var(--sun-soft); }
.danger-zone { border-top: 2px dashed #F2B8B8; padding-top: 12px; margin-top: 12px; }

/* ---------- Bildirimler ---------- */
.flash { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; font-weight: 600; background: #fff; }
.flash-ok { background: #DDF6EA; }
.flash-err { background: #FFE1E1; }
.flash-warn { background: var(--sun-soft); }

/* ---------- Misafir sayfaları ---------- */
.guest-wrap { max-width: 460px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 16px 40px; }
.brand { text-align: center; margin: 10px 0 22px; }
.logo { display: inline-block; background: var(--ink); color: var(--sun); font-weight: 800; font-size: 40px; padding: 6px 22px; border-radius: 18px; letter-spacing: .02em; transform: rotate(-2deg); box-shadow: 4px 5px 0 var(--coral); }
.tagline { margin-top: 12px; color: var(--ink2); font-weight: 600; }
.form-links { text-align: center; margin: 14px 0 0; }
.big-emoji { font-size: 56px; text-align: center; line-height: 1.1; margin-bottom: 6px; }
.foot-links { text-align: center; font-size: 14px; }
.prose h2 { font-size: 18px; margin-top: 16px; }

/* ---------- Ana sayfa ---------- */
.tasks .count { font-weight: 800; background: var(--sun-soft); border: 2px solid var(--ink); border-radius: 10px; padding: 0 10px; }
.tasks .count.done { background: #C8F2DE; }
.task-list { display: grid; gap: 10px; }
.task {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--cs); border: 2px solid var(--ink);
}
.task-icon { font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border-radius: 12px; border: 2px solid var(--ink); }
.task-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.task-body b { font-size: 18px; line-height: 1.2; }
.task-body small { color: var(--ink2); }
.task-state { font-weight: 800; background: var(--c); color: #fff; padding: 4px 12px; border-radius: 10px; }
.task.is-done { opacity: .62; }
.task.is-done .task-state { background: var(--mint); }
.bonus-note { margin: 10px 0 0; font-weight: 700; text-align: center; }
.notice { background: #E9F3FF; }
.notice h2 { margin-bottom: 8px; }
.notice-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.notice-row > span:nth-child(2) { flex: 1; line-height: 1.3; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 6px; text-align: center; text-decoration: none; color: var(--ink); }
.stat b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.habit-list { display: grid; gap: 8px; }
.habit {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; color: var(--ink); font-weight: 600;
}
.habit-i { font-size: 22px; }
.habit-t { flex: 1; }
.habit-c { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.habit.on { border-color: var(--ink); background: #DDF6EA; }
.habit.on .habit-c { background: var(--mint); color: #fff; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.mini-i { font-size: 30px; }
.mini b { line-height: 1.2; }
.mini small { color: var(--muted); }
.kid-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--ink); border-top: 1px solid #EEF2FA; }
.kid-row:first-of-type { border-top: 0; }
.kid-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.kid-t small { color: var(--muted); }
.admin-link { display: flex; align-items: center; gap: 8px; background: #EEF2FA; }

/* ---------- Oyun listesi ---------- */
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px; margin: 0 0 8px; }
.cat-jump .chip { font-size: 14px; padding: 3px 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--cs); color: var(--ink); border: 2px solid var(--c); text-decoration: none;
}
.chip-s { font-size: 13px; padding: 1px 9px; }
.cat-block { margin-bottom: 24px; scroll-margin-top: 80px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; }
.cat-head h2 { margin: 0; }
.cat-mark { background: linear-gradient(transparent 55%, var(--cs) 55%); padding: 0 4px; }
.cat-score { font-weight: 800; font-size: 20px; min-width: 44px; text-align: center; background: var(--c); color: #fff; border-radius: 12px; border: 2px solid var(--ink); }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 0 4px 0 var(--c); padding: 12px; text-decoration: none; color: var(--ink); min-height: 150px;
}
.game-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c); }
.gc-icon { font-size: 32px; line-height: 1.1; }
.gc-name { font-size: 17px; line-height: 1.15; }
.gc-desc { color: var(--muted); font-size: 13px; line-height: 1.3; flex: 1; }
.gc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.lvl-dots { display: flex; gap: 2px; }
.lvl-dots i { width: 6px; height: 10px; border-radius: 2px; background: #E3E8F2; }
.lvl-dots i.on { background: var(--c); }
.lvl-wrap { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lvl-num { font-size: 12px; font-weight: 800; white-space: nowrap; }
.lvl-bar { width: 44px; height: 7px; border-radius: 4px; background: #E3E8F2; overflow: hidden; flex: none; }
.lvl-bar i { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.tag-task { position: absolute; top: -9px; right: 10px; background: var(--sun); border: 2px solid var(--ink); border-radius: 8px; font-size: 12px; font-weight: 800; padding: 0 6px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: 1; text-align: center; white-space: nowrap; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.tabs a.on { background: var(--ink); color: var(--sun); }
.seg { display: flex; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg a { flex: 1; text-align: center; padding: 6px 4px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.seg a.on { background: var(--sun); }

/* ---------- Alışkanlık ızgarası ---------- */
.hgrid { display: grid; gap: 6px; }
.hgrid-row { display: grid; grid-template-columns: minmax(64px, 1.6fr) repeat(7, minmax(24px, 1fr)); gap: 4px; align-items: center; }
.hgrid-head span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.hgrid-head span.today { color: var(--ink); }
.hgrid-title { font-weight: 600; font-size: 14px; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; }
.hcell { width: 100%; aspect-ratio: 1; height: auto; border-radius: 9px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: #fff; font-size: 16px; padding: 0; }
.hcell.today { border-color: var(--ink); }
.hcell.on { background: var(--mint); border-color: var(--ink); }
.list-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid #EEF2FA; }
.list-row:first-of-type { border-top: 0; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 2px dashed var(--ink); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }

/* ---------- Kitaplar / Günlük ---------- */
.book-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.book-title { font-size: 18px; }
.progress { height: 12px; background: #EEF2FA; border-radius: 6px; overflow: hidden; margin: 10px 0 2px; border: 2px solid var(--ink); }
.progress i { display: block; height: 100%; background: var(--sky); }
.stars { color: #F0A500; font-size: 20px; letter-spacing: 2px; }
.book-note { background: #F7F9FD; border-radius: 10px; padding: 8px 10px; font-size: 15px; margin-top: 8px; }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 15px; padding: 4px 0; }
details.more[open] summary { margin-bottom: 8px; }
.goal-q { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.jentry { padding: 10px 0; border-top: 1px solid #EEF2FA; }
.jentry:first-of-type { border-top: 0; }
.jhead { display: flex; align-items: center; gap: 8px; }
.jhead form { margin-left: auto; }
.jmood { font-size: 24px; }

/* ---------- Yarış ---------- */
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.board li + li { border-top: 1px solid #EEF2FA; }
.board li.me { background: var(--sun-soft); border: 2px solid var(--ink); }
.rank { width: 30px; text-align: center; font-weight: 800; font-size: 18px; }
.b-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; font-weight: 700; }
.b-name small { color: var(--muted); font-weight: 500; }
.b-xp { font-weight: 800; white-space: nowrap; }
.code-card { text-align: center; }
.fcode { font-size: 38px; font-weight: 800; letter-spacing: .14em; margin: 4px 0 8px; background: var(--sun-soft); border: 2px dashed var(--ink); border-radius: 14px; padding: 4px 0; }
.friend { padding: 10px 0; border-top: 1px solid #EEF2FA; }
.friend:first-of-type { border-top: 0; }
.friend-top { display: flex; align-items: center; gap: 10px; }
.duel-top { display: flex; justify-content: space-between; align-items: baseline; }
.duel-game { font-weight: 800; }
.duel-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; margin: 10px 0; }
.duel-vs .side span { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.duel-vs .side b { font-size: 34px; line-height: 1.1; }
.vs { font-weight: 800; background: var(--ink); color: var(--sun); border-radius: 10px; padding: 2px 8px; }
.duel-actions { display: flex; gap: 10px; align-items: center; justify-content: center; }
.duel-state { text-align: center; font-weight: 800; margin: 0; }
.duel-state.win { color: var(--mint); }
.duel-state.lose { color: var(--muted); }
.duel-done { }
.react { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.react-pick { display: flex; gap: 4px; }
.react-pick button { font-size: 22px; background: #fff; border: 2px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.react-pick button.on { border-color: var(--ink); background: var(--sun); }
.their-react { font-size: 22px; }

/* ---------- Gelişim ---------- */
.chart { width: 100%; display: block; }
.legend { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; }
.lg { display: inline-block; width: 14px; height: 6px; border-radius: 3px; vertical-align: middle; }
.lg-now { background: var(--ink); }
.lg-prev { background: #B9C4DA; }
.lg-dash { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }
.insight { margin-top: 10px; border-top: 2px dashed var(--line); padding-top: 10px; }
.insight p { margin: 0 0 4px; }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat-h { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.heat-c { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: #EEF2FA; }
.heat-c.empty { background: none; }
.heat-c.l1 { background: #C8EEDC; color: var(--ink); }
.heat-c.l2 { background: #7DD8AF; color: var(--ink); }
.heat-c.l3 { background: var(--mint); color: #fff; }
.heat-c.today { outline: 2px solid var(--ink); }
.gstat { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--ink); border-top: 1px solid #EEF2FA; }
.gs-i { font-size: 24px; width: 30px; text-align: center; }
.gs-n { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.gs-n small { color: var(--muted); }
.gs-l { font-weight: 800; font-size: 14px; width: 42px; text-align: right; }
.spark { width: 80px; height: 28px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.tbl th, .tbl td { text-align: left; padding: 5px 4px; border-bottom: 1px solid #EEF2FA; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge { background: #fff; border: 2px dashed var(--line); border-radius: 16px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.badge-i { font-size: 38px; filter: grayscale(1); opacity: .35; }
.badge b { line-height: 1.2; }
.badge small { color: var(--muted); line-height: 1.25; font-size: 13px; }
.badge em { font-style: normal; font-size: 12px; color: var(--mint); font-weight: 700; }
.badge.on { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); background: var(--sun-soft); }
.badge.on .badge-i { filter: none; opacity: 1; }

/* ---------- Ailem ---------- */
.kid-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kid-stats { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.bars { display: grid; gap: 5px; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 8px; font-size: 14px; }
.bar-row b { text-align: right; }
.bar { height: 10px; background: #EEF2FA; border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.guardians { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; }
.gchip { display: inline-flex; align-items: center; gap: 4px; background: #EEF2FA; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 14px; font-weight: 700; }
.gchip em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 12px; }
.gchip .btn-x, .gchip .btn-link { padding: 2px 6px; font-size: 13px; }
.inl { display: inline; }
.invite-link { background: var(--sun-soft); border: 2px dashed var(--ink); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.invite-link input { font-size: 13px; margin: 4px 0 8px; }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head h1 { font-size: 26px; margin: 0; }
.profile-head p { margin: 0; }
.menu { padding: 4px 16px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 700; border-top: 1px solid #EEF2FA; }
.menu a:first-child { border-top: 0; }
.install-help { display: none; }
.install-help.show { display: block; }
.mono-ish { letter-spacing: .1em; }
.empty { text-align: center; padding: 20px 10px; }
.empty-i { font-size: 46px; }
.empty p { color: var(--muted); }

/* ================= OYUN ================= */
.play { --c: var(--sky); --cs: #DDEEFB; }
.play-intro { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 5px 0 var(--c); padding: 18px; text-align: center; }
.play-intro .back { display: block; text-align: left; }
.intro-icon { font-size: 64px; line-height: 1.1; }
.intro-meta { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; flex-wrap: wrap; }
.howto { background: var(--cs); border-radius: 14px; padding: 12px 14px; text-align: left; font-size: 16px; }
.duel-banner { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 15px; }
.mini-board { margin-top: 18px; text-align: left; }
.mini-board h3 { font-size: 15px; color: var(--muted); }
.mb-row { display: flex; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 8px; font-size: 15px; }
.mb-row span:nth-child(2) { flex: 1; }
.mb-row.me { background: var(--sun-soft); }
.mb-rank { width: 20px; font-weight: 800; color: var(--muted); }

.play-stage { min-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.hud { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hud-quit { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-size: 18px; cursor: pointer; flex: none; }
.hud-info { flex: 1; font-weight: 700; font-size: 16px; text-align: center; }
.hud-timer { font-weight: 800; font-size: 18px; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.timebar { height: 8px; border-radius: 4px; background: #E3E8F2; overflow: hidden; margin: -4px 0 12px; border: 2px solid var(--ink); }
.timebar i { display: block; height: 100%; background: var(--c); transition: width .25s linear; }
.game-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.g-prompt { font-size: 18px; font-weight: 700; text-align: center; margin: 4px 0 14px; }
.g-big { font-size: 46px; font-weight: 800; text-align: center; line-height: 1.1; margin: 10px 0 18px; }
.g-feedback { height: 30px; font-weight: 800; font-size: 20px; text-align: center; }
.g-feedback.ok { color: var(--mint); }
.g-feedback.bad { color: var(--danger); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 440px; }
.opt {
  background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); padding: 14px 8px; font-size: 22px; font-weight: 800;
  cursor: pointer; color: var(--ink); min-height: 64px; font-family: inherit;
}
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.opt.right { background: #C8F2DE; }
.opt.wrong { background: #FFD3D3; }
.opt.txt { font-size: 17px; font-weight: 700; line-height: 1.25; }
.flashok { animation: fok .35s; }
.flashbad { animation: fbad .35s; }
@keyframes fok { 50% { background: #C8F2DE; } }
@keyframes fbad { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Izgaralar */
.grid-board { display: grid; gap: 6px; width: 100%; max-width: 440px; aspect-ratio: 1; }
.cell {
  display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-weight: 800; cursor: pointer;
  font-size: clamp(14px, 6vw, 30px); color: var(--ink); padding: 0; font-family: inherit; min-width: 0;
}
.cell.hit { background: var(--cs); color: var(--muted); border-color: var(--line); }
.cell.wrong { background: #FFD3D3; }
.cell.lit { background: var(--c); }
.cell.flip { background: var(--ink); color: transparent; }
.cell.open { background: var(--cs); }
.cell.matched { background: #C8F2DE; border-color: var(--mint); }

/* Stroop */
.stroop-word { font-size: 56px; font-weight: 800; text-align: center; margin: 24px 0; letter-spacing: .02em; }
.color-opts .opt { font-size: 18px; }

/* Go/No-go */
.gng-zone { width: 100%; max-width: 440px; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 22px; background: #fff; display: grid; place-items: center; font-size: 120px; cursor: pointer; }
.gng-zone.flash-ok { background: #E3F8EF; }
.gng-zone.flash-bad { background: #FFE3E3; }

/* N-back */
.nb-shape { width: 170px; height: 170px; display: grid; place-items: center; font-size: 110px; margin: 10px auto 20px; border: 2px solid var(--ink); border-radius: 24px; background: #fff; }
.nb-btns { display: flex; gap: 12px; width: 100%; max-width: 440px; }
.nb-btns .opt { flex: 1; }

/* Desen */
.seq-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 22px; }
.seq-row span { min-width: 54px; padding: 8px 6px; text-align: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 22px; font-weight: 800; }
.seq-row span.q { background: var(--sun); }

/* Sudoku */
.sudoku { display: grid; width: 100%; max-width: 440px; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--ink); gap: 1px; }
.sudoku .sc { background: #fff; display: grid; place-items: center; font-weight: 800; font-size: clamp(16px, 5.4vw, 28px); cursor: pointer; border: 0; padding: 0; color: var(--sky); font-family: inherit; }
.sudoku .sc.given { color: var(--ink); background: #F5F7FB; cursor: default; }
.sudoku .sc.sel { background: var(--sun-soft); }
.sudoku .sc.err { color: var(--danger); background: #FFE3E3; }
.sudoku .sc.br { margin-right: 2px; }
.sudoku .sc.bb { margin-bottom: 2px; }
.numpad { display: grid; gap: 6px; width: 100%; max-width: 440px; margin-top: 14px; }
.numpad button { font-size: 22px; font-weight: 800; padding: 10px 0; border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink); cursor: pointer; color: var(--ink); font-family: inherit; }
.numpad button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* Hanoi */
.hanoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 460px; height: 260px; margin-top: 10px; }
.peg { position: relative; border: 2px solid var(--ink); border-radius: 14px; background: #fff; display: flex; flex-direction: column-reverse; align-items: center; padding: 8px 4px; cursor: pointer; }
.peg::before { content: ""; position: absolute; bottom: 8px; top: 30px; width: 6px; background: var(--ink); border-radius: 3px; left: calc(50% - 3px); }
.peg.sel { background: var(--sun-soft); }
.peg.target { border-style: dashed; }
.disk { position: relative; height: 20px; border-radius: 8px; border: 2px solid var(--ink); margin-top: 3px; z-index: 1; }
.peg.sel .disk:last-child { transform: translateY(-10px); }

/* Mantık */
.clues { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; width: 100%; max-width: 440px; margin-bottom: 14px; }
.clues li { margin: 0 0 6px; }
.clues ol { margin: 0; padding-left: 20px; }
.logic-q { font-weight: 800; font-size: 19px; text-align: center; margin-bottom: 12px; }

/* Matematik */
.math-q { font-size: 44px; font-weight: 800; margin: 16px 0; font-variant-numeric: tabular-nums; }
.answer-box { font-size: 36px; font-weight: 800; min-width: 160px; min-height: 58px; text-align: center; border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 4px 12px; margin-bottom: 12px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 340px; }
.keypad button { font-size: 26px; font-weight: 800; padding: 12px 0; border: 2px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--ink); cursor: pointer; color: var(--ink); font-family: inherit; }
.keypad button.k-ok { background: var(--sun); }
.keypad button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.dots-box { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 18px; background: #fff; overflow: hidden; }
.dots-box i { position: absolute; border-radius: 50%; }
.range-wrap { width: 100%; max-width: 440px; text-align: center; }
.range-wrap input[type=range] { accent-color: var(--ink); padding: 0; border: 0; }
.range-val { font-size: 44px; font-weight: 800; }

/* Okuma */
.passage { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 16px 18px; font-size: 18px; line-height: 1.6; max-width: 560px; }
.passage h3 { font-size: 20px; }

/* Anagram */
.slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0; min-height: 56px; }
.slots span { width: 44px; height: 52px; border-bottom: 4px solid var(--ink); display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.tile { width: 50px; height: 56px; border: 2px solid var(--ink); border-radius: 12px; background: var(--sun-soft); box-shadow: 0 3px 0 var(--ink); font-size: 28px; font-weight: 800; cursor: pointer; color: var(--ink); font-family: inherit; }
.tile.used { visibility: hidden; }
.hint-line { color: var(--muted); font-size: 15px; text-align: center; }
.row-btns { display: flex; gap: 10px; justify-content: center; }

/* Döndürme / simetri */
.rot-target { margin: 6px 0 16px; padding: 10px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; }
.rot-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 360px; }
.rot-opts button { background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); padding: 10px; cursor: pointer; display: grid; place-items: center; }
.rot-opts button.right { background: #C8F2DE; } .rot-opts button.wrong { background: #FFD3D3; }
.pgrid { display: grid; gap: 2px; }
.pgrid i { display: block; width: 18px; height: 18px; border-radius: 3px; background: #EEF2FA; }
.pgrid i.on { background: var(--c); }
.sym-board { display: grid; gap: 3px; width: 100%; max-width: 440px; aspect-ratio: 1; position: relative; }
.sym-board .sc2 { border-radius: 6px; background: #fff; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.sym-board .sc2.left { cursor: default; background: #E3E8F2; border-color: #E3E8F2; }
.sym-board .sc2.on { background: var(--c); border-color: var(--ink); }
.sym-board .sc2.miss { background: #FFC4C4; outline: 2px dashed var(--danger); }
.sym-board .sc2.extra { background: #FFC4C4; }
.sym-axis { position: absolute; top: -6px; bottom: -6px; left: calc(50% - 2px); width: 4px; background: var(--ink); border-radius: 2px; pointer-events: none; }

/* Labirent */
.maze-wrap { width: 100%; max-width: 440px; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 12px; background: #fff; touch-action: none; }
.maze-wrap canvas { width: 100%; height: 100%; display: block; }
.dpad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 56px); gap: 6px; margin-top: 14px; justify-content: center; }
.dpad button { border: 2px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--ink); font-size: 24px; cursor: pointer; color: var(--ink); }
.dpad .up { grid-column: 2; } .dpad .left { grid-column: 1; grid-row: 2; } .dpad .down { grid-column: 2; grid-row: 2; } .dpad .right { grid-column: 3; grid-row: 2; }

/* Geri sayım */
.countdown { font-size: 110px; font-weight: 800; text-align: center; margin-top: 60px; color: var(--c); -webkit-text-stroke: 3px var(--ink); }

/* Sonuç */
.play-result { text-align: center; }
.res-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 5px 0 var(--c); padding: 20px 16px; }
.res-perf { font-size: 84px; font-weight: 800; line-height: 1; color: var(--ink); }
.res-perf small { display: block; font-size: 15px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.res-title { font-size: 26px; font-weight: 800; margin: 8px 0 4px; }
.res-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.res-rows div { background: var(--cs); border-radius: 12px; padding: 8px 4px; }
.res-rows b { display: block; font-size: 22px; }
.res-rows span { font-size: 12px; color: var(--ink2); font-weight: 700; }
.res-note { border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; margin: 8px 0; font-weight: 700; background: var(--sun-soft); }
.res-badge { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; margin: 8px 0; background: var(--sun-soft); animation: pop .5s ease-out; }
.res-badge span { font-size: 34px; }
.res-btns { display: grid; gap: 10px; margin-top: 16px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

@media (min-width: 700px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  h1 { font-size: 26px; }
  .stat-row.four .stat b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- v11: canlı düello ---------- */
.avatar { position: relative; }
.online-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #C9D3E6; border: 2px solid #fff; }
.online-dot.on { background: var(--mint); }
.on-text { color: var(--mint); font-weight: 700; }
.duel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.duel-btns .btn { width: 100%; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.friend .inline-form { flex-wrap: wrap; }
.friend .inline-form select { flex: 1 1 100%; }
.lobby { margin: 14px 0; padding: 16px; background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); text-align: center; }
.lobby-vs { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 40px; }
.lobby-vs span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.lobby-vs small { font-size: 13px; font-weight: 700; color: var(--muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-vs b { font-size: 20px; color: var(--coral); }
.lobby-msg { margin-top: 10px; font-size: 16px; line-height: 1.4; }
.lobby-big { font-size: 64px; font-weight: 800; line-height: 1.1; min-height: 8px; color: var(--ink); }
.lobby-big:empty { min-height: 0; }
.lobby-btns { display: grid; gap: 8px; margin-top: 10px; }
.live-opp { align-self: center; margin: 0 auto 8px; padding: 4px 12px; border-radius: 999px; background: var(--sun-soft); border: 2px solid var(--ink); font-size: 14px; font-weight: 700; width: fit-content; max-width: 100%; }
.live-opp.done { background: #D9F5E9; }
.res-note.live-result { font-size: 18px; }
.res-note.live-result.win { background: #D9F5E9; }
.res-note.live-result.lose { background: #FFE3E3; }

/* ---------- v11: arkadaşını davet et ---------- */
.invite-cta { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: linear-gradient(135deg, #FFF4C7, #FFE3E3); }
.invite-cta .ic-emoji { font-size: 38px; line-height: 1; flex: none; }
.invite-cta .ic-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.invite-cta .ic-body b { font-size: 17px; }
.invite-cta .ic-body small { color: var(--ink2); line-height: 1.35; }
.invite-cta .chev { font-size: 26px; font-weight: 800; flex: none; }
.share-hero { text-align: center; background: linear-gradient(160deg, #FFF4C7, #fff 70%); }
.share-hero .sh-emoji { font-size: 56px; line-height: 1; }
.share-hero h1 { margin: 6px 0 8px; font-size: 26px; }
.share-hero p { margin: 0 0 14px; line-height: 1.45; }
.share-btns { display: grid; gap: 10px; }
.btn-wa { background: #25D366; color: #fff; }
.share-qr { text-align: center; }
.qr-box { width: min(240px, 70vw); margin: 10px auto 4px; padding: 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.steps { margin: 0 0 10px; padding-left: 22px; line-height: 1.5; }
.steps li { margin-bottom: 6px; }
.inv-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.inv-goal { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px 14px; border: 2px solid var(--line); border-radius: 14px; text-align: center; }
.inv-goal span { font-size: 28px; line-height: 1; filter: grayscale(1); opacity: .6; }
.inv-goal.done { border-color: var(--ink); background: var(--sun-soft); }
.inv-goal.done span { filter: none; opacity: 1; }
.inv-goal small { color: var(--muted); }
.inv-goal i { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--mint); }
.menu a.menu-hi { background: var(--sun-soft); font-weight: 800; margin: 0 -8px; padding: 12px 8px; border-radius: 10px; }
.card-head .count { font-weight: 800; background: var(--sun-soft); border: 2px solid var(--ink); border-radius: 10px; padding: 0 10px; }

/* ---------- v12: grup düellosu ---------- */
.fam-actions .btn:nth-child(3) { grid-column: 1 / -1; }
.group-card { border-color: var(--ink); background: linear-gradient(160deg, #EEE3FB, #fff 65%); }
.g-form [data-pick-family] { margin-bottom: 8px; }
.g-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.g-cand { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; min-width: 0; font-weight: 700; }
.g-cand input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.g-cand:has(input:checked) { border-color: var(--ink); background: var(--sun-soft); }
.g-cn { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-cn small { font-weight: 600; color: var(--muted); font-size: 12px; }
.g-players { list-style: none; margin: 12px 0 0; padding: 0; text-align: left; }
.g-players li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-top: 1px solid #EEF2FA; }
.g-players li:first-child { border-top: 0; }
.g-players li.me { background: var(--sun-soft); border-radius: 10px; }
.g-players li.st-declined, .g-players li.st-missed, .g-players li.st-left { opacity: .55; }
.gp-place { width: 26px; text-align: center; font-weight: 800; flex: none; }
.gp-av { font-size: 22px; flex: none; }
.gp-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-name small { font-weight: 600; color: var(--muted); }
.gp-lv { margin-left: 6px; font-size: 11px; }
.gp-st { flex: none; font-size: 14px; }
.gp-st b { font-size: 18px; }
.g-board { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 4px; margin: 10px 0; }
.g-hist .g-players { margin-top: 6px; }

/* ---------- v13: sade hesap açma ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.reg-choice h1 { margin-bottom: 4px; }
.choice { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 16px; border: 2.5px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.choice:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.choice .ch-i { font-size: 42px; line-height: 1; flex: none; }
.choice .ch-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.choice .ch-t b { font-size: 19px; }
.choice .ch-t small { color: var(--ink2); line-height: 1.35; font-size: 14px; }
.choice:first-of-type { background: #FFF4C7; }
details.how { margin: 12px 0 4px; border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; }
details.how summary { font-weight: 800; cursor: pointer; }
details.how ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.45; font-size: 14px; }
details.how li { margin-bottom: 6px; }
.lock-card { text-align: center; background: #FFF4C7; }
.lock-card h2 { margin: 4px 0 8px; }
.parent-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.follow-card { text-align: center; }
.follow-list { text-align: left; margin: 8px auto 14px; padding-left: 0; list-style: none; line-height: 1.6; max-width: 420px; }
.how-pick { border: 0; padding: 0; margin: 0 0 6px; }
.how-pick legend { font-weight: 800; margin-bottom: 4px; }
.how-pick .check { margin: 6px 0; }
.parent-cta { background: linear-gradient(135deg, #DDEEFB, #D9F5E9); }

/* ---------- v14: kurtarma kodu ---------- */
.recovery-card { text-align: center; }
.rec-code { margin: 14px auto; padding: 14px 10px; max-width: 320px; font-size: 36px; font-weight: 800; letter-spacing: 4px; background: var(--sun-soft); border: 3px dashed var(--ink); border-radius: 16px; font-variant-numeric: tabular-nums; user-select: all; }

/* ---------- v15: yönetici giriş kodu ---------- */
.code-input { font-size: 30px !important; letter-spacing: 10px; text-align: center; font-weight: 800; }
