/* ============================================================
   MASALİA — Tasarım Sistemi  (v3 · "oyuncak düğmeli gece masalı")
   ------------------------------------------------------------
   Kimlik: yumuşak köşeler, "oyuncak" hissi veren kalın düğmeler,
   canlı şeker renkleri, yaylanan animasyonlar, uygulama gibi
   yüzen alt sekme çubuğu ve mini oynatıcı.

   z-index katman haritası (v1.6.12 — yeni katman eklerken buraya yaz):
   skip-link: 220 | nav-progress: 210-211 | celebrate: 1200 | celebrate-backdrop: 1150
   new-banner: 1100 | mhouse (maskot evi): 170 | toast: 160 | nightmode: 140
   tabbar-sheet: 115 | tabbar: 110 | player: 100 | mascot + fab: 95
   header: 90 | toTop: 80 | kart-içi katmanlar: 1-5 (yerel yığın)


   1. Tokenlar           7. Detay sayfası + boş durumlar
   2. Temel düzen        8. Alt bilgi
   3. Uygulama kabuğu    9. Mini oynatıcı + gece ekranı
   4. Hero              10. Yardımcı bileşenler + yükleme
   5. Bölümler + kartlar 11. Ebeveyn rehberi
   6. Kütüphane araçları 12. Akordeon + belirme animasyonu
                         13. Duyarlılık / erişilebilirlik

   ÖNEMLİ: Tüm sınıf adları, ID'ler ve data- öznitelikleri v2 ile
   aynıdır; player.js / app.js / diğer PHP sayfaları (kutuphane,
   ebeveyn, favoriler) değişmeden çalışır.
   ============================================================ */

/* ---------- 0. YEREL YAZI TİPLERİ ---------- */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/fraunces-latin.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: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/fraunces-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/nunito-latin.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: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/nunito-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. TOKENLAR ---------- */
:root {
  color-scheme: dark;

  /* Gece paleti (varsayılan): derin mor-lacivert gökyüzü */
  --night-bg-0: #110e2b;
  --night-bg-1: #1c1747;
  --night-bg-2: #2b2368;
  --night-surface: rgba(255, 255, 255, .07);
  --night-surface-2: rgba(255, 255, 255, .125);
  --night-border: rgba(255, 255, 255, .14);
  --night-text: #fbf8ff;
  --night-muted: #bab2e8;

  /* Marka / şeker renkleri */
  --lav-100: #f1ebff;
  --lav-200: #dccfff;
  --lav-300: #cdbcff;
  --lav-500: #b49bff;
  --lav-600: #9a78f0;
  --lav-700: #7449d1;
  --lamp: #ffcb4d;            /* gece lambası: ana eylem rengi */
  --lamp-deep: #f59e1b;
  --lamp-edge: #c47a08;       /* düğme alt kenarı (3B etki) */
  --lamp-ink: #3b2300;
  --star: #ffe27a;
  --star-deep: #f2b640;
  --turquoise: #62d9c8;
  --turquoise-deep: #23907f;
  --coral: #ff8f78;
  --cream: #fff7e8;
  --ink: #312b58;
  --rose: #ff9fc5;
  --sky: #7cc4ff;
  --mint: #8fe3a8;

  /* Anlamsal (gece) */
  --bg-0: var(--night-bg-0);
  --bg-1: var(--night-bg-1);
  --bg-2: var(--night-bg-2);
  --surface: var(--night-surface);
  --surface-2: var(--night-surface-2);
  --border: var(--night-border);
  --text: var(--night-text);
  --muted: var(--night-muted);
  --accent: var(--lav-500);
  --accent-soft: rgba(180, 155, 255, .18);
  --accent-text: #2d1b69;
  --card-bg: rgba(48, 40, 112, .72);
  --card-border: rgba(255, 255, 255, .13);
  --card-ring: inset 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-sm: 0 3px 10px rgba(6, 5, 22, .36);
  --shadow-md: 0 14px 32px rgba(6, 5, 22, .5);
  --shadow-lg: 0 26px 64px rgba(6, 5, 22, .62);
  --shadow-glow: 0 12px 34px rgba(245, 158, 27, .34);
  --header-bg: rgba(24, 20, 60, .8);
  --header-border: rgba(255, 255, 255, .09);
  --hero-glow: rgba(255, 203, 77, .16);
  --scrim: rgba(8, 7, 24, .62);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;

  /* Başlıkta öykü kitabı serifi, gövdede yuvarlak sans */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 56px; --space-10: 72px;

  --container: 1180px;
  --header-h: 64px;
  --player-h: 92px;
  --tabbar-h: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Alt "dock": sekme çubuğu (+ varsa mini oynatıcı) için ayrılan yükseklik */
  --dock: calc(var(--tabbar-h) + var(--safe-bottom));
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}
body.has-player { --dock: calc(var(--tabbar-h) + var(--safe-bottom) + var(--player-h)); }

/* Gündüz (sıcak krem) teması */
[data-theme="day"] {
  color-scheme: light;
  --bg-0: #fff3dc;
  --bg-1: #ffe8c4;
  --bg-2: #fffdf8;
  --surface: rgba(255, 255, 255, .8);
  --surface-2: #ffffff;
  --border: rgba(84, 58, 140, .16);
  --text: #2b2557;
  --muted: #655c93;
  --accent: var(--lav-600);
  --accent-soft: rgba(138, 100, 230, .14);
  --accent-text: #fff;
  --card-bg: #ffffff;
  --card-border: rgba(84, 58, 140, .1);
  --card-ring: inset 0 0 0 1px rgba(84, 58, 140, .05);
  --shadow-sm: 0 3px 10px rgba(110, 80, 170, .1);
  --shadow-md: 0 14px 30px rgba(110, 80, 170, .16);
  --shadow-lg: 0 26px 54px rgba(110, 80, 170, .2);
  --shadow-glow: 0 12px 30px rgba(245, 158, 27, .36);
  --header-bg: rgba(255, 243, 220, .86);
  --header-border: rgba(84, 58, 140, .12);
  --hero-glow: rgba(245, 158, 27, .22);
  --scrim: rgba(40, 30, 60, .42);
}

/* ---------- 2. TEMEL DÜZEN ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 88% -8%, var(--hero-glow), transparent 62%),
    radial-gradient(700px 460px at -12% 18%, rgba(255, 159, 197, .12), transparent 64%),
    radial-gradient(760px 520px at 60% 108%, rgba(98, 217, 200, .09), transparent 64%),
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%, var(--bg-0) 100%); /* fallback: eski WebView */
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%, color-mix(in oklab, var(--bg-0), var(--lav-700) 10%) 100%);
  /* background-attachment: fixed KALDIRILDI — Android Chrome repaint bantları
     (dik çizgiler) üretiyordu; gradyan sabit .sky katmanına taşındı. */
  overflow-x: clip;
  /* v1.6.12: overscroll-behavior-y:none GLOBALDEN KALDIRILDI — tüm sayfalarda
     pull-to-refresh/iOS sarkması ölüydü. Artık yalnızca tam ekran gece
     ekranında (.nightmode__inner, zaten "contain") uygulanır. */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; }
img, svg, video { max-width: 100%; display: block; }
img { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
a, button, .chip, .tabbar__item, .cat-card, .story-card { touch-action: manipulation; }
/* Uygulama hissi: arayüz öğelerinde metin seçimi / uzun basma menüsü kapalı */
.btn, .icon-btn, .chip, .tabbar, .player, .nightmode, .story-card, .cat-card, .fav-btn, .acc__btn, .main-nav {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.012em;
  font-optical-sizing: auto;
}
h3, h4 { font-family: var(--font-body); font-weight: 900; letter-spacing: 0; }
p { margin: 0; }
.container { width: min(var(--container), calc(100% - clamp(28px, 6vw, 64px))); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: -70px; left: var(--space-4); z-index: 220;
  background: var(--lamp); color: var(--lamp-ink); padding: 10px 18px; border-radius: var(--r-pill);
  transition: top .2s var(--ease-out); box-shadow: var(--shadow-glow); font-weight: 900;
}
.skip-link:focus { top: calc(var(--space-3) + var(--safe-top)); }
/* fallback: eski WebView */ :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--accent), #fff 25%); outline-offset: 3px; border-radius: 10px; }

/* Gökyüzü dekoru: yıldızlar, parıltılar, bulut ve ay.
   Arka plan gradyanları BURADA (sabit katman) taşınır: body'de
   background-attachment:fixed Android Chrome'da kaydırmada dik çizgi
   artifact'ları üretir; sabit .sky katmanı tek boyanır, titreme olmaz. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, var(--hero-glow), transparent 62%),
    radial-gradient(700px 460px at -12% 18%, rgba(255, 159, 197, .12), transparent 64%),
    radial-gradient(760px 520px at 60% 108%, rgba(98, 217, 200, .09), transparent 64%),
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%, var(--bg-0) 100%); /* fallback: eski WebView */
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%, color-mix(in oklab, var(--bg-0), var(--lav-700) 10%) 100%);
}
.sky__star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff0c4; opacity: .4; animation: twinkle 3.4s ease-in-out infinite alternate; }
.sky__star--1 { top: 14%; left: 8%; }
.sky__star--2 { top: 30%; left: 84%; width: 3px; height: 3px; animation-delay: .7s; }
.sky__star--3 { top: 56%; left: 4%; width: 3px; height: 3px; animation-delay: 1.3s; }
.sky__star--4 { top: 22%; left: 58%; width: 2.5px; height: 2.5px; animation-delay: 2s; }
.sky__star--5 { top: 68%; left: 92%; animation-delay: 1.1s; }
.sky__star--6 { top: 8%; left: 72%; width: 2.5px; height: 2.5px; animation-delay: 2.6s; }
.sky__star--7 { top: 46%; left: 36%; width: 3px; height: 3px; animation-delay: .4s; }
.sky__star--8 { top: 80%; left: 22%; animation-delay: 1.8s; }
.sky__sparkle { position: absolute; width: 14px; height: 14px; opacity: .75; background: radial-gradient(circle, rgba(255, 233, 176, .9) 0 2px, transparent 3px); animation: drift 26s linear infinite; }
.sky__sparkle--1 { top: 42%; left: 20%; }
.sky__sparkle--2 { top: 74%; left: 66%; width: 10px; height: 10px; animation-delay: -13s; }
.sky__cloud { position: absolute; top: 78%; left: -8%; width: 340px; height: 60px; background: radial-gradient(closest-side, rgba(205, 188, 255, .12), transparent); filter: blur(4px); animation: cloudSlide 48s linear infinite; }
/* Ay: yalnızca gece temasında, sağ üstte hafif parlayan hilal */
.sky__moon { position: absolute; top: 9%; right: 7%; width: 74px; height: 74px; border-radius: 50%; box-shadow: inset -20px 6px 0 0 #ffe9a8, 0 0 46px rgba(255, 226, 122, .32); opacity: .55; animation: moonGlow 7s ease-in-out infinite alternate; }
[data-theme="day"] .sky__star { opacity: .02; }
[data-theme="day"] .sky__sparkle, [data-theme="day"] .sky__cloud { opacity: .05; }
[data-theme="day"] .sky__moon { display: none; }
@keyframes twinkle { from { opacity: .12; transform: scale(.8); } to { opacity: .85; transform: scale(1.1); } }
@keyframes drift { from { transform: translateY(-8vh); } to { transform: translateY(108vh); } }
@keyframes cloudSlide { from { transform: translateX(-15vw); } to { transform: translateX(115vw); } }
@keyframes moonGlow { from { opacity: .4; transform: translateY(0) rotate(-6deg); } to { opacity: .7; transform: translateY(8px) rotate(4deg); } }

/* ---------- 3. UYGULAMA KABUĞU ---------- */

/* Üst bar */
.site-header {
  position: sticky; top: 0; z-index: 90;
  padding-top: var(--safe-top);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--header-border);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(6, 5, 22, .25); }
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }
.site-header__inner {
  width: min(var(--container), calc(100% - clamp(20px, 5vw, 48px)));
  margin-inline: auto; min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-3); padding-block: 6px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: var(--r-pill); }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(255, 200, 90, .4)); transition: transform .35s var(--ease-spring); }
.brand:hover .brand__mark, .brand:active .brand__mark { transform: rotate(-12deg) scale(1.1); }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: .05em; color: var(--text); }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: 9px 16px; border-radius: var(--r-pill);
  font-weight: 900; color: var(--muted); font-size: 15px;
  transition: color .2s, background-color .2s, transform .2s var(--ease-spring);
}
.main-nav a:hover { color: var(--text); background: var(--surface); transform: translateY(-1px); }
.main-nav a[aria-current="page"] {
  color: var(--lamp-ink); background: linear-gradient(135deg, var(--lamp), var(--lamp-deep));
  box-shadow: 0 3px 0 var(--lamp-edge);
}
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Arama (masaüstü satır içi, mobil açılır katman) */
.search-form { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.search-form input {
  width: clamp(150px, 19vw, 240px); padding: 11px 84px 11px 42px;
  border-radius: var(--r-pill); border: 2px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 16px; font-weight: 700; /* 16px: iOS Safari < 16px inputlari otomatik zoomlar */
  transition: border-color .2s, box-shadow .2s, width .25s var(--ease-out);
}
.search-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); width: clamp(170px, 22vw, 300px); }
.search-form input::placeholder { color: var(--muted); font-weight: 700; }
.search-form__icon { position: absolute; left: 14px; pointer-events: none; color: var(--muted); display: grid; width: 18px; }
.search-form__btn { position: absolute; right: 5px; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--surface); border: 2px solid var(--border); color: var(--muted);
  transition: transform .2s var(--ease-spring), background-color .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); color: var(--text); background: var(--surface-2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ~1040px altı: "Gökyüzü" ve "Bize Yaz" linklerini gizle (hamburger/tabbar'e düşer) */
@media (max-width: 1040px) {
  .main-nav .nav-item--gokyuzu,
  .main-nav .nav-item--bizeyaz {
    display: none;
  }
  .search-form input { width: clamp(130px, 16vw, 200px); }
  .search-form input:focus { width: clamp(150px, 20vw, 250px); }
}

/* ~900px altı: arama ikona daralır, genişleme hover/focus'ta */
@media (max-width: 920px) {
  .search-form input { width: 44px; padding: 11px; text-indent: -9999px; }
  .search-form input:focus,
  .search-form input:not(:placeholder-shown) { width: clamp(160px, 30vw, 260px); text-indent: 0; padding-left: 42px; }
  .main-nav a { padding: 9px 12px; font-size: 14px; }
}
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle__sun { display: none; color: var(--lamp-deep); }
.theme-toggle__moon { color: var(--lamp); }
[data-theme="day"] .theme-toggle__sun { display: grid; }
[data-theme="day"] .theme-toggle__moon { display: none; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.site-header__search-toggle { display: none; }
.site-header__search-layer { display: none; }

/* Alt sekme çubuğu: yüzen, yuvarlak, aktif sekme "yükselen sarı kutu" */
.tabbar {
  position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px));
  bottom: calc(10px + var(--safe-bottom)); z-index: 110;
  display: none;
  grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  height: 66px; padding: 6px;
  border-radius: 28px;
  background: var(--bg-2); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-2) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--header-border);
  box-shadow: 0 14px 40px rgba(6, 5, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tabbar__item {
  position: relative; display: grid; place-items: center; align-content: center; gap: 1px;
  border-radius: 22px;
  color: var(--muted); font-weight: 900; font-size: 10.5px; letter-spacing: .01em;
  transition: color .2s, background-color .2s, transform .28s var(--ease-spring), box-shadow .25s;
}
.tabbar__item .icon { width: 23px; height: 23px; transition: transform .25s var(--ease-spring); }
.tabbar__item:active { transform: scale(.9); }
.tabbar__item[aria-current="page"] {
  color: var(--lamp-ink);
  background: linear-gradient(135deg, var(--lamp), var(--lamp-deep));
  box-shadow: 0 4px 0 var(--lamp-edge), 0 10px 20px rgba(245, 158, 27, .35);
  transform: translateY(-7px);
}
.tabbar__item[aria-current="page"] .icon { transform: scale(1.08); }
.tabbar__item--play[aria-current="page"] { color: var(--lamp-ink); }
.tabbar__badge {
  position: absolute; top: 4px; right: 50%; margin-right: -22px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--rose); color: #4a0f28; font-size: 10.5px; font-weight: 900; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg-2); animation: badgePop .4s var(--ease-spring);
}
.tabbar__badge[hidden] { display: none !important; }
/* "Bugün X dk" rozeti: sarı (lamp) ton, Uyku sekmesinde; --time varyantı.
   Mevcut .tabbar__badge (pembe favori rozeti) ile aynı konum mantığı. */
.tabbar__badge--time {
  top: 2px; right: 50%; margin-right: -20px;
  min-width: 24px; height: auto; line-height: 1; padding: 2px 5px;
  background: var(--lamp); color: var(--lamp-ink); font-size: 9px; font-weight: 900;
  animation: badgePop .3s var(--ease-spring);
}
/* Etiket güvenliği: aşırı dar ekranda kırpılsın, hücreyi kırmasın (taşma yok, kaydırma yok) */
.tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes badgePop { from { transform: scale(0); } }

/* ---------- Tabbar "Daha" butonu + alt çekmece (v1.6.12) ----------
   Tabbar 5 çekirdek öğede kalır; ikincil sayfalar burada açılır.
   Katman: tabbar 110 → çekmece 115 (tabbarın üstünde durmalı). */
.tabbar__more {
  background: transparent; border: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit;
}
.tabbar__more[aria-expanded="true"] {
  color: var(--lamp-ink);
  background: rgba(255, 203, 77, .16);
}
.tabbar__more[aria-expanded="true"] .icon { transform: rotate(90deg); }

.tabbar-sheet {
  position: fixed; inset: 0; z-index: 115;
  display: grid; align-items: end;
}
.tabbar-sheet[hidden] { display: none !important; }
.tabbar-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 5, 22, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sheetFade .25s ease both;
}
.tabbar-sheet__panel {
  position: relative;
  margin: 0 auto calc(10px + var(--safe-bottom) + var(--tabbar-h) + 8px);
  width: min(420px, calc(100vw - 20px));
  padding: 18px 16px 16px;
  border-radius: 26px;
  background: var(--bg-2); /* fallback: eski WebView (tema uyumlu) */
  background: color-mix(in oklab, var(--bg-2) 94%, transparent);
  border: 1px solid var(--header-border);
  box-shadow: 0 20px 50px rgba(6, 5, 22, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  animation: sheetUp .3s var(--ease-spring) both;
}
@keyframes sheetFade { from { opacity: 0; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* ---------- Sadece ses modu (v1.6.13) ----------
   Gece ekranı (140) üstünde tam siyah katman: ekran kapalı hissi,
   masal çalmaya devam eder. Tek dokunuş → gece ekranına dönüş. */
.screenoff {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: #000;
  color: rgba(255, 255, 255, .42);
  font-weight: 800; font-size: 13.5px;
  border: 0; cursor: pointer;
  animation: screenoffIn .6s ease both;
}
.screenoff[hidden] { display: none !important; }
@keyframes screenoffIn { from { opacity: 0; } }
.screenoff__hint { display: inline-block; padding: 10px 18px; }
.tabbar-sheet__title {
  margin: 0 0 12px; padding-left: 4px;
  font-size: 11.5px; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.tabbar-sheet__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.tabbar-sheet__link {
  display: grid; place-items: center; align-content: center; gap: 6px;
  padding: 14px 8px; border-radius: 18px;
  background: var(--bg-1);
  color: var(--ink); font-weight: 900; font-size: 12.5px; text-align: center;
  border: 1px solid transparent;
  transition: transform .25s var(--ease-spring), border-color .2s, background-color .2s;
}
.tabbar-sheet__link:active { transform: scale(.94); }
.tabbar-sheet__link .icon { width: 22px; height: 22px; color: var(--accent); }
.tabbar-sheet__link[aria-current="page"] {
  border-color: var(--lamp);
  background: rgba(255, 203, 77, .14); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--lamp) 14%, var(--bg-1));
  color: var(--lamp-ink);
}
.tabbar-sheet__link[aria-current="page"] .icon { color: var(--lamp-deep); }

/* ---------- Butonlar: kalın, oyuncak gibi basılan ---------- */
.btn {
  --btn-bg: linear-gradient(135deg, var(--lamp), var(--lamp-deep));
  --btn-edge: var(--lamp-edge);
  --btn-glow: rgba(245, 158, 27, .34);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px;
  border-radius: var(--r-pill); font-weight: 900; font-size: 15.5px; line-height: 1;
  background: var(--btn-bg); color: var(--lamp-ink); border: 0;
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 26px var(--btn-glow);
  transition: transform .18s var(--ease-spring), box-shadow .18s, filter .2s;
  position: relative; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 7px 0 var(--btn-edge), 0 18px 30px var(--btn-glow); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 4px 10px var(--btn-glow); }
.btn .icon { width: 19px; height: 19px; }
.btn--primary { background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink); }
.btn--star { --btn-edge: #b9780f; background: linear-gradient(135deg, var(--star), var(--star-deep)); color: #402c05; }
.btn--outline { background: var(--surface); color: var(--text); border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border); }
.btn--outline:hover { background: var(--surface-2); box-shadow: 0 6px 0 var(--border); }
.btn--outline:active { box-shadow: 0 1px 0 var(--border); }
.btn--ghost { background: var(--surface); color: var(--text); border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: 0 6px 0 var(--border); }
.btn--ghost:active { box-shadow: 0 1px 0 var(--border); }
.btn--sm { padding: 10px 17px; font-size: 14px; box-shadow: 0 4px 0 var(--btn-edge), 0 10px 18px var(--btn-glow); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }
.btn[aria-pressed="true"] { --btn-edge: #c24a80; --btn-glow: rgba(236, 122, 166, .36); background: linear-gradient(135deg, var(--rose), #ee7fa8); color: #4a0f28; border-color: transparent; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* ---------- 4. HERO ---------- */
.hero { position: relative; padding-block: clamp(26px, 6vw, 78px) clamp(22px, 4vw, 50px); }
.hero::before {
  content: ""; position: absolute; top: -30px; left: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 159, 197, .3), transparent 68%); filter: blur(6px); pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 5vw, 58px); align-items: center; position: relative; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: var(--r-pill); background: var(--surface); border: 2px solid var(--border);
  color: var(--text); font-weight: 900; font-size: 13.5px; margin-bottom: var(--space-5);
}
.hero__kicker .icon { width: 17px; height: 17px; color: var(--lamp); animation: spinSlow 9s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero h1 { font-size: clamp(35px, 6vw, 66px); font-weight: 800; line-height: 1.06; }
.hero h1 em {
  font-style: normal; padding-inline: .03em;
  background: linear-gradient(100deg, var(--lamp), var(--coral) 55%, var(--rose));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
[data-theme="day"] .hero h1 em { background-image: linear-gradient(100deg, #e8890c, #f0654f 55%, #d6468a); }
.hero__lede { margin-top: var(--space-4); font-size: clamp(16px, 2vw, 19.5px); color: var(--muted); max-width: 52ch; font-weight: 700; }
.hero__cta { margin-top: var(--space-6); display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { margin-top: var(--space-7); display: flex; gap: clamp(10px, 2vw, 16px); flex-wrap: wrap; }
.hero__stat {
  padding: 12px 18px; border-radius: 22px; background: var(--card-bg); border: 2px solid var(--card-border);
  box-shadow: var(--shadow-sm); min-width: 104px;
}
.hero__stat:nth-child(1) { transform: rotate(-2deg); }
.hero__stat:nth-child(2) { transform: rotate(1.5deg); }
.hero__stat:nth-child(3) { transform: rotate(-1deg); }
.hero__stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 29px; color: var(--lamp); line-height: 1.1; font-variant-numeric: tabular-nums; }
[data-theme="day"] .hero__stat strong { color: var(--lamp-deep); }
.hero__stat span { color: var(--muted); font-size: 13px; font-weight: 800; }
.hero__art { position: relative; }
.hero__art img {
  width: 100%; height: auto; box-shadow: var(--shadow-lg), 0 0 0 8px var(--surface);
  /* öykü kitabı penceresi: üstü kemerli */
  border-radius: 50% 50% var(--r-xl) var(--r-xl) / 30% 30% var(--r-xl) var(--r-xl);
  border: 3px solid var(--border);
  animation: bob 8s ease-in-out infinite;
}
.hero__art::before {
  content: ""; position: absolute; inset: -8% -2% auto auto; width: 66%; height: 66%;
  background: radial-gradient(circle at 70% 30%, var(--hero-glow), transparent 66%);
  z-index: -1; filter: blur(6px);
}
.hero__float {
  position: absolute; background: var(--card-bg); border: 2px solid var(--card-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--r-pill); padding: 10px 17px;
  display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 13.5px;
  box-shadow: var(--shadow-md); animation: floaty 6s ease-in-out infinite;
}
.hero__float .icon { width: 18px; height: 18px; color: var(--lamp); }
.hero__float--a { top: 10%; left: -4%; }
.hero__float--b { bottom: 14%; right: -3%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(1deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 5. BÖLÜMLER + MASAL KARTLARI ---------- */
.section { padding-block: clamp(28px, 5.5vw, 60px); scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 16px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: clamp(18px, 3.2vw, 32px); }
.section-head__kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent);
  font-weight: 900; font-size: 13px;
}
.section-head__kicker .icon { width: 15px; height: 15px; }
.section-head h2 { font-size: clamp(25px, 3.4vw, 37px); margin-top: 10px; font-weight: 800; }
.section-head__sub { color: var(--muted); margin-top: 8px; max-width: 62ch; font-size: 15px; font-weight: 600; }
.section-head__more {
  color: var(--accent); font-weight: 900; font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 9px 14px; border-radius: var(--r-pill); background: var(--accent-soft); transition: transform .2s var(--ease-spring), background-color .2s;
}
.section-head__more:hover { transform: translateX(3px); }
.section-head__more:active { transform: scale(.95); }
.section-head__more .icon { width: 17px; height: 17px; }

.featured-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(18px, 3vw, 28px); align-items: stretch; }

/* Masal kartları: yuvarlak "çıkartma" kartlar */
.story-grid:not(.h-scroll) { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.story-card {
  position: relative;
  background: var(--card-bg); border-radius: var(--r-lg); border: 2px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  padding: 8px; overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column;
  content-visibility: auto; contain-intrinsic-size: auto 360px;
}
/* fallback: eski WebView */ .story-card:hover { border-color: var(--accent-line); }
.story-card:hover { transform: translateY(-7px) rotate(-.6deg); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--accent) 45%, var(--card-border)); }
.story-card:active { transform: scale(.975); }
/* Tam kartı kaplayan bağlantı: iç içe etkileşimli öğe olmadan erişilebilir tıklama */
.story-card__link { display: block; }
.story-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
/* fallback: eski WebView */ .story-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.story-card:focus-within { outline: 3px solid color-mix(in oklab, var(--accent), #fff 25%); outline-offset: 3px; }

/* Kart başlığı ve açıklama: link metni için minimum dokunma hedefi (44px) */
.story-card__title a,
.story-card__desc { min-height: 44px; display: inline-flex; align-items: center; }
.story-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: block; border-radius: calc(var(--r-lg) - 8px); background: var(--surface-2); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.story-card:hover .story-card__media img { transform: scale(1.07); }
.story-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(10, 8, 30, .38)); pointer-events: none; }
.story-card__badge {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--r-pill); background: linear-gradient(135deg, #ffb3d1, #ff82ad);
  color: #5c1235; box-shadow: 0 3px 0 #c24a80, var(--shadow-sm); opacity: 0; transform: translateY(-6px) scale(.6);
  transition: opacity .2s, transform .3s var(--ease-spring); z-index: 2;
}
.story-card__badge .icon { width: 16px; height: 16px; }
.story-card[data-fav="true"] .story-card__badge { opacity: 1; transform: none; }
.story-card__ribbon {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--star), var(--star-deep)); color: #443000; font-weight: 900; font-size: 12px;
  padding: 6px 12px; border-radius: var(--r-pill); z-index: 2; box-shadow: 0 3px 0 #b9780f, var(--shadow-sm);
}
.story-card__ribbon .icon { width: 13px; height: 13px; }
/* Oynat düğmesi her zaman görünür: dokunmatik ve masaüstünde aynı, büyük "oyuncak" düğme */
.story-card__play {
  position: absolute; right: 10px; bottom: 10px; width: 54px; height: 54px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: var(--lamp-ink); z-index: 4;
  background: linear-gradient(135deg, var(--lamp), var(--lamp-deep));
  box-shadow: 0 4px 0 var(--lamp-edge), 0 12px 22px rgba(200, 130, 20, .45);
  transition: transform .2s var(--ease-spring), box-shadow .2s; cursor: pointer;
}
.story-card__play .icon { width: 22px; height: 22px; margin-left: 2px; }
.story-card__play:hover { transform: scale(1.1) rotate(-6deg); }
.story-card__play:active { transform: translateY(3px) scale(.96); box-shadow: 0 1px 0 var(--lamp-edge), 0 4px 10px rgba(200, 130, 20, .4); }
.story-card__play.is-playing .icon { margin-left: 0; }
.story-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 8px; }
.story-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 900; line-height: 1.2;
}
.tag .icon { width: 13px; height: 13px; }
/* fallback: eski WebView */ .tag--cat { color: var(--lamp-deep); }
.tag--cat { background: rgba(255, 203, 77, .2); color: color-mix(in oklab, var(--lamp-deep), var(--text) 32%); }
[data-theme="night"] .tag--cat { color: var(--lamp); }
/* Dinlenme rozeti: 10+ gerçek dinlemesi olan masallarda sosyal kanıt çipi */
.tag--plays {
  background: rgba(255, 203, 77, .16); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--lamp) 16%, transparent);
  color: var(--lamp-deep); /* fallback: eski WebView */
  color: color-mix(in oklab, var(--lamp), var(--text) 28%);
  border: 1px solid rgba(255, 203, 77, .3);
  font-variant-numeric: tabular-nums;
}
[data-theme="night"] .tag--plays { color: var(--lamp); }
.story-card--wide .tag--plays { border-color: rgba(255, 255, 255, .35); }
.tag--turq { background: rgba(98, 217, 200, .18); color: var(--turquoise-deep); }
[data-theme="night"] .tag--turq { color: var(--turquoise); }
/* fallback: eski WebView */ .tag--star { color: var(--star-deep); }
.tag--star { background: rgba(255, 226, 122, .22); color: color-mix(in oklab, var(--star-deep), var(--text) 25%); }
[data-theme="night"] .tag--star { color: var(--star); }
.story-card__title { font-size: 18.5px; color: var(--text); line-height: 1.2; }
.story-card__title a { color: inherit; }
.story-card__desc { color: var(--muted); font-size: 14px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.story-card__dur { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 800; }
.story-card__dur .icon { width: 15px; height: 15px; }
.story-card__flag { display: inline-flex; align-items: center; gap: 6px; color: var(--lamp); font-weight: 900; font-size: 13.5px; }
.story-card__flag .icon { width: 15px; height: 15px; }
.story-card__placeholder { display: grid; place-content: center; text-align: center; gap: 6px; aspect-ratio: 4 / 5; color: var(--muted); padding: 18px; }
.story-card__placeholder strong { font-family: var(--font-display); font-size: 19px; color: var(--text); }

/* Favori düğmesi */
.fav-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-pill);
  background: var(--surface); border: 2px solid var(--border); color: var(--muted);
  position: relative; z-index: 4;
  transition: transform .2s var(--ease-spring), background-color .2s, color .2s;
}
.fav-btn .icon { width: 18px; height: 18px; }
.fav-btn:hover { transform: scale(1.12); color: var(--coral); }
.fav-btn:active { transform: scale(.88); }
.fav-btn[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #ffb3d1, #ee7fa8); border-color: transparent; box-shadow: 0 3px 0 #c24a80, 0 8px 16px rgba(238, 127, 168, .45); }
.fav-btn.is-pop { animation: heartPop .5s var(--ease-spring); }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1); } }

/* Yatay şerit (parmakla kaydırma, snap) */
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 262px); gap: clamp(14px, 2vw, 20px); overflow-x: auto; padding: 6px 4px 20px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.h-scroll::-webkit-scrollbar { height: 8px; }
/* fallback: eski WebView */ .h-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
.h-scroll::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--accent), transparent 55%); border-radius: 99px; }
.h-scroll > * { scroll-snap-align: start; }

/* Geniş (editoryal) kart: tüm kart tıklanır, düğmeler bağlantının üstünde kalır */
.story-card--wide {
  background: none; border: 0; padding: 0; box-shadow: var(--shadow-lg); border-radius: var(--r-xl);
  overflow: hidden; content-visibility: visible;
  min-height: clamp(340px, 42vw, 460px);
  display: grid; align-items: end; isolation: isolate;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.story-card--wide:hover { transform: translateY(-6px); }
.story-card--wide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(12, 10, 32, .08) 30%, rgba(10, 8, 28, .9) 94%); z-index: -1; }
.story-card--wide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease-out); }
.story-card--wide:hover > img { transform: scale(1.05); }
.story-card--wide .story-card__body { position: static; padding: clamp(20px, 3vw, 32px); color: #f8f4ff; gap: 10px; background: none; }
.story-card--wide .story-card__tags, .story-card--wide .story-card__desc, .story-card--wide .story-card__foot { position: relative; z-index: 4; }
.story-card--wide .story-card__title { font-size: clamp(24px, 2.8vw, 34px); color: #fff; font-family: var(--font-display); font-weight: 800; }
.story-card--wide .story-card__title a { color: #fff; }
.story-card--wide .story-card__desc { color: rgba(248, 244, 255, .86); max-width: 46ch; }
.story-card--wide .story-card__foot { color: rgba(248, 244, 255, .88); flex-wrap: wrap; justify-content: flex-start; gap: 12px; padding-top: 6px; }
.story-card--wide .story-card__dur { color: rgba(248, 244, 255, .86); }
.story-card--wide .fav-btn { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); color: #fff; }
.story-card--wide .fav-btn:hover { background: rgba(255, 255, 255, .28); }
.story-card--wide .fav-btn[aria-pressed="true"] { background: linear-gradient(135deg, #ffb3d1, #ee7fa8); color: #4a0f28; }
.story-card--wide .tag--cat { background: linear-gradient(135deg, var(--star), var(--star-deep)); color: #443000; }
.story-card--wide .tag { background: rgba(255, 255, 255, .2); color: #fff; }
/* Kart içindeki eylem düğmeleri bağlantı katmanının (z-index:3) üstünde kalır */
.story-card .btn, .story-card [data-play], .story-card .fav-btn { position: relative; z-index: 4; }
.story-card .story-card__play { position: absolute; }

/* Kategoriler: her biri kendi rengiyle "çıkartma" */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(12px, 1.8vw, 18px); }
.cat-card {
  position: relative; display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  border-radius: var(--r-lg);
  background: var(--card-bg); /* fallback: eski WebView */
  background: linear-gradient(145deg, color-mix(in srgb, var(--cat-color, var(--accent)) 24%, var(--card-bg)), var(--card-bg) 70%);
  border: 2px solid var(--card-border); /* fallback: eski WebView */
  border: 2px solid color-mix(in srgb, var(--cat-color, var(--accent)) 28%, var(--card-border));
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease-spring), box-shadow .25s, border-color .25s;
}
.cat-card::after { content: ""; position: absolute; inset: auto -30% -70% auto; width: 130px; height: 130px; border-radius: 50%; background: var(--cat-color, var(--accent)); opacity: .14; transition: transform .4s var(--ease-spring); }
.cat-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--shadow-md); border-color: var(--cat-color, var(--accent)); }
.cat-card:hover::after { transform: scale(1.35); }
.cat-card:active { transform: scale(.96); }
.cat-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 17px; flex-shrink: 0;
  position: relative; z-index: 1;
  color: #fff; background: var(--cat-color, var(--accent));
  /* fallback: eski WebView */ box-shadow: var(--shadow-md);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cat-color, var(--accent)) 62%, #000), 0 8px 14px color-mix(in srgb, var(--cat-color, var(--accent)) 35%, transparent);
  transition: transform .3s var(--ease-spring);
}
.cat-card:hover .cat-card__icon { transform: rotate(-9deg) scale(1.08); }
.cat-card__icon .icon { width: 24px; height: 24px; }
.cat-card__txt { position: relative; z-index: 1; min-width: 0; }
.cat-card__txt b { display: block; font-weight: 900; font-size: 15.5px; color: var(--text); }
.cat-card__txt span { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ---------- 6. KÜTÜPHANE / ARAÇ ÇUBUĞU ---------- */
.page-head { padding-top: clamp(22px, 4.5vw, 48px); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.page-head__sub { color: var(--muted); margin-top: 10px; max-width: 68ch; font-weight: 600; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; font-weight: 800; margin-bottom: var(--space-3); flex-wrap: wrap; }
.crumbs .icon { width: 14px; height: 14px; opacity: .7; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Küçük ekranlarda parmakla rahat dokunma: hit alanını büyüt, görsel hizayı koru */
.crumbs a { display: inline-block; padding: 6px 8px; margin: -6px -4px; border-radius: 9px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--bg-2); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-2), transparent 8%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  margin-block: clamp(18px, 3vw, 30px);
  position: sticky; top: calc(var(--header-h) + var(--safe-top) + 8px); z-index: 40;
}
.toolbar__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar__label { color: var(--muted); font-size: 12.5px; font-weight: 900; }
.select-wrap { position: relative; }
.select {
  appearance: none; -webkit-appearance: none; padding: 10px 38px 10px 15px; border-radius: 14px; border: 2px solid var(--border);
  background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer;
}
.select-wrap::after { content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.toolbar__count { margin-left: auto; color: var(--muted); font-size: 13.5px; font-weight: 900; }
.toolbar__search { flex: 1 1 220px; min-width: 170px; position: relative; display: flex; }
.toolbar__search input { width: 100%; padding: 11px 14px 11px 42px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; }
.toolbar__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.toolbar__search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-4); align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-weight: 900; font-size: 13.5px; }
.filter-chip a { display: grid; }
.filter-chip .icon { width: 14px; height: 14px; }

/* ---------- 7. DETAY SAYFASI ---------- */
.story-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(22px, 4vw, 48px); align-items: center; padding-block: clamp(22px, 4.5vw, 52px); }
.story-hero__cover { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px var(--surface); border: 3px solid var(--border); aspect-ratio: 4 / 5; transform: rotate(-1.5deg); transition: transform .4s var(--ease-spring); }
.story-hero__cover:hover { transform: rotate(0deg) scale(1.01); }
.story-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.story-hero__cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 -90px 80px -60px rgba(13, 10, 34, .6); pointer-events: none; }
.story-hero__playfab {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 70px;
  border-radius: var(--r-pill); display: grid; place-items: center; z-index: 2;
  background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink);
  box-shadow: 0 5px 0 var(--lamp-edge), 0 14px 30px rgba(200, 130, 20, .5); border: 0; transition: transform .2s var(--ease-spring);
}
.story-hero__playfab:hover { transform: translateX(-50%) scale(1.08); }
.story-hero__playfab:active { transform: translateX(-50%) translateY(3px) scale(.96); }
.story-hero__playfab .icon { width: 28px; height: 28px; }
.story-hero__playfab.is-playing::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--lamp); animation: ringPulse 1.6s ease-out infinite; }
@keyframes ringPulse { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
/* Oynatma geri bildirimi: [data-play] düğmeleri çalarken işaretlenir (player.js).
   Etiket genişliği sabit: metin değişince düğme zıplamaz. */
/* fallback: eski WebView */ [data-play].is-playing { outline: 2px solid var(--lamp); outline-offset: 3px; }
[data-play].is-playing { outline: 2px solid color-mix(in oklab, var(--lamp), transparent 35%); outline-offset: 3px; }
.btn [data-play-text] { display: inline-block; min-width: 12ch; text-align: center; }
.story-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.story-hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; }
.story-hero__desc { margin-top: var(--space-5); color: var(--text); font-size: 17px; max-width: 62ch; font-weight: 600; }
.story-hero__actions { margin-top: var(--space-6); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.night-cta {
  display: inline-flex; gap: 10px; align-items: center; padding: 14px 24px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, #3a3585, #5b3a85); color: var(--lav-100); font-weight: 900;
  border: 2px solid rgba(205, 188, 255, .28); box-shadow: 0 5px 0 #231d55, 0 14px 24px rgba(30, 20, 70, .4);
  transition: transform .18s var(--ease-spring), box-shadow .18s;
}
.night-cta:hover { transform: translateY(-2px); }
.night-cta:active { transform: translateY(4px); box-shadow: 0 1px 0 #231d55; }
[data-theme="day"] .night-cta { background: linear-gradient(135deg, #efe9ff, #d9c8ff); color: #4c3a80; border-color: rgba(108, 68, 184, .22); box-shadow: 0 5px 0 #b9a3ee, 0 12px 20px rgba(108, 68, 184, .16); }

/* ---------- Arkaplan müziği (masal sayfası, night-cta diliyle) ---------- */
.story-hero__bgmusic { margin: 12px 0 0; }
.bgmusic-btn { min-height: 44px; padding-inline: 20px; }
.bgmusic-btn[hidden] { display: none; }
/* Açık durum: hafif yeşilimsi vurgu — duruma bakmadan anlaşılır */
.bgmusic-btn.is-on { background: linear-gradient(135deg, #2e6a58, #3a3585); box-shadow: 0 5px 0 #1d4034, 0 14px 24px rgba(30, 70, 55, .35); }
[data-theme="day"] .bgmusic-btn.is-on { background: linear-gradient(135deg, #d9f2e6, #d9c8ff); color: #2d5c4c; box-shadow: 0 5px 0 #a5cbb8, 0 12px 20px rgba(70, 130, 105, .18); }
.bgmusic-btn[disabled] { opacity: .62; cursor: default; transform: none; box-shadow: 0 5px 0 #231d55; }

/* Atıf satırı: küçük, ortalı, sakin — footer'ın mevcut --muted tonu (kontrast uyumlu) */
.music-credit {
  width: min(var(--container), calc(100% - clamp(28px, 6vw, 64px)));
  margin: 4px auto 0; padding: 0; text-align: center;
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  color: var(--muted);
}
.music-credit a { color: var(--accent, #ffd76e); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; display: inline-block; padding: 4px 6px; border-radius: 8px; }

/* Mobilde tam satır (aksiyon butonlarıyla aynı ritim) */
@media (max-width: 640px) {
  .story-hero__bgmusic { display: flex; }
  .story-hero__bgmusic .bgmusic-btn { flex: 1 1 100%; justify-content: center; }
}

.detail-card { background: var(--card-bg); border-radius: var(--r-lg); padding: 18px; border: 2px solid var(--card-border); box-shadow: var(--shadow-sm); }
.detail-card h3 { font-size: 16.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.detail-card h3 .icon { width: 17px; height: 17px; color: var(--accent); }
.detail-card p { color: var(--muted); font-size: 14.5px; }
.detail-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.detail-card dt { color: var(--muted); font-weight: 800; }
.detail-card dd { margin: 0; font-weight: 800; text-align: right; }
.detail-card--gains { background: linear-gradient(150deg, rgba(255, 203, 77, .16), var(--card-bg)); border: 2px solid rgba(255, 203, 77, .3); }
.detail-card--gains > p { color: var(--text); font-size: 15px; }
.gain-domain { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 800; margin: 0 0 4px; }
.gain-domain strong { color: var(--text); }
.gain-domain__dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 12%, transparent); }
.gain-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); }
.gain-tip .icon { width: 18px; height: 18px; color: var(--lamp); margin-top: 2px; flex-shrink: 0; }
.gain-tip span { font-size: 14.5px; }
.gain-more { margin-top: 10px; font-size: 13.5px; }
.gain-more a { color: var(--accent); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.detail-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.detail-card__list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--text); font-weight: 600; }
.detail-card__list .icon { width: 15px; height: 15px; color: var(--lamp); margin-top: 5px; flex-shrink: 0; }
.prompt-box { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--text); }
.prompt-box .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.prompt-box p { color: var(--text); font-size: 14.5px; }

/* Boş durum */
.empty { padding-block: clamp(36px, 7vw, 76px); display: grid; place-items: center; text-align: center; }
.empty__art { width: clamp(150px, 28vw, 230px); height: auto; margin-inline: auto; filter: drop-shadow(0 22px 34px rgba(90, 70, 160, .3)); animation: bob 6s ease-in-out infinite; }
.empty h2 { margin-top: var(--space-5); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.empty p { color: var(--muted); margin-top: 10px; max-width: 50ch; margin-inline: auto; font-weight: 600; }
.empty .btn { margin-top: var(--space-5); }
.empty__tips { margin-top: var(--space-5); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.empty__tips span { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); border: 2px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 800; }

/* Bilgilendirme kutusu */
.notice {
  margin-block: var(--space-5); padding: 14px 17px; border-radius: var(--r-md);
  background: rgba(255, 226, 122, .13); border: 2px solid rgba(255, 226, 122, .32);
  color: var(--text); font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; font-weight: 600;
}
.notice .icon { width: 20px; height: 20px; color: var(--star-deep); flex-shrink: 0; margin-top: 2px; }
.notice--muted { background: var(--surface); border-style: dashed; border-color: var(--border); }
.notice--muted .icon { color: var(--muted); }
[data-theme="day"] .notice { background: rgba(242, 182, 64, .14); border-color: rgba(202, 150, 54, .32); }

/* ---------- 8. ALT BİLGİ ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 88px);
  padding-top: clamp(28px, 4.5vw, 50px);
  padding-bottom: calc(var(--dock) + 30px);
  border-top: 2px dashed var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18)); /* fallback: eski WebView */
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg-0), #000 18%));
}
[data-theme="day"] .site-footer { background: linear-gradient(180deg, transparent, rgba(150, 120, 70, .09)); }
.site-footer__inner {
  width: min(var(--container), calc(100% - clamp(28px, 6vw, 64px)));
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 52px); align-items: start;
}
.brand__word--footer { display: block; font-size: 22px; }
.site-footer__brand p { color: var(--muted); margin-top: 12px; max-width: 48ch; font-size: 14.5px; line-height: 1.7; font-weight: 600; }
.site-footer__privacy { font-size: 13px !important; opacity: .86; }
/* Masaüstünde (sekme çubuğu yok) küçük bağlantı şeridi */
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.site-footer__links a { padding: 8px 15px; border-radius: var(--r-pill); background: var(--surface); border: 2px solid var(--border); color: var(--text); font-weight: 900; font-size: 13.5px; transition: transform .2s var(--ease-spring), background-color .2s; }
.site-footer__links a:hover { transform: translateY(-2px); background: var(--surface-2); }
.site-footer__copy {
  width: min(var(--container), calc(100% - clamp(28px, 6vw, 64px)));
  margin: clamp(22px, 4vw, 34px) auto 0;
  padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; text-align: center; font-weight: 800;
}

/* ---------- 9. MİNİ OYNATICI ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 100;
  padding: 0 clamp(10px, 2vw, 22px) 10px; pointer-events: none;
}
.player > * { pointer-events: auto; }
.player__bar {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 18px);
  max-width: 1000px; margin-inline: auto;
  background: var(--bg-2); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  border: 2px solid var(--border); border-radius: 30px;
  box-shadow: 0 16px 44px rgba(6, 5, 22, .55), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  padding: 9px clamp(12px, 2.4vw, 20px) 9px 10px; min-height: 76px;
  animation: dockIn .45s var(--ease-spring);
}
@keyframes dockIn { from { transform: translateY(40px); opacity: 0; } }
/* padding sıfırlanır: <button> varsayılan dolgusu kapağı kaçık gösterirdi */
.player__expand { position: relative; border-radius: 18px; flex-shrink: 0; padding: 0; line-height: 0; }
.player__cover { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.player__expand:hover .player__cover { outline: 3px solid var(--lamp); }
.player__expand-hint { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(13, 10, 40, .5); border-radius: 18px; color: #fff; transition: opacity .2s; }
.player__expand:hover .player__expand-hint { opacity: 1; }
.player__expand-hint .icon { width: 18px; height: 18px; }
/* Çalarken kapağın köşesinde dans eden ses çubukları */
.player__eq { position: absolute; left: 5px; bottom: 5px; display: none; align-items: flex-end; gap: 2px; height: 15px; padding: 3px 4px; border-radius: 8px; background: rgba(10, 8, 30, .68); }
body.is-playing .player__eq { display: flex; }
.player__eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--lamp); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.player__eq i:nth-child(2) { animation-delay: -.3s; }
.player__eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.player__meta { min-width: 0; width: clamp(110px, 18vw, 230px); display: grid; gap: 2px; align-content: center; }
.player__title { font-weight: 900; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__sub { color: var(--muted); font-size: 12.5px; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__msg { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--text); font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow-md); border: 2px solid var(--border); max-width: min(90vw, 420px); text-align: center; z-index: 5; }
.player__msg.is-error { background: linear-gradient(135deg, #5d2436, #6e2f40); color: #ffe8ea; border-color: rgba(255, 170, 180, .3); }
.player__msg.is-info { background: var(--bg-2); }
.player__controls { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.player__ctl { display: grid; place-items: center; border-radius: var(--r-pill); color: var(--text); flex-shrink: 0; transition: transform .18s var(--ease-spring), background-color .18s, color .18s; }
.player__ctl:hover { background: var(--surface); transform: scale(1.08); }
.player__ctl:active { transform: scale(.9); }
.player__ctl .icon { width: 21px; height: 21px; }
.player__ctl--sm { width: 40px; height: 40px; color: var(--muted); }
.player__ctl--sm .icon { width: 19px; height: 19px; }
.player__ctl--sm:hover { color: var(--text); }
.player__ctl--main {
  width: 54px; height: 54px; background: linear-gradient(135deg, var(--lamp), var(--lamp-deep));
  color: var(--lamp-ink); box-shadow: 0 4px 0 var(--lamp-edge), 0 10px 22px rgba(200, 130, 20, .45);
}
.player__ctl--main .icon { width: 24px; height: 24px; }
.player__ctl--main:hover { background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); transform: scale(1.08); }
.player__ctl--main:active { transform: translateY(3px) scale(.96); box-shadow: 0 1px 0 var(--lamp-edge); }
.player__ctl[aria-pressed="true"], .player__ctl.is-on { color: var(--accent); background: var(--accent-soft); }
.player__ctl--main[aria-pressed="true"] { background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink); }
.player__ctl.is-loading { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.player__seek { flex: 1; cursor: pointer; padding-block: 12px; touch-action: none; min-width: 80px; }
.player__seek-track { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: visible; }
.player__seek-buffer { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .14); border-radius: inherit; width: 0; }
.player__seek-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--lamp-deep), var(--lamp)); border-radius: inherit; width: 0; }
.player__seek-knob { position: absolute; top: 50%; transform: translate(-50%, -50%) scale(0); width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .15s; left: 0; }
.player__seek:hover .player__seek-knob, .player__seek:focus-visible .player__seek-knob, .player__seek.is-dragging .player__seek-knob { transform: translate(-50%, -50%) scale(1); }
.player__time { color: var(--muted); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__extras { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.player__rate { min-width: 48px; height: 40px; border-radius: 14px; font-weight: 900; font-size: 13.5px; color: var(--text); background: var(--surface); border: 2px solid var(--border); }
.player__rate:hover { background: var(--surface-2); }
.player__autonext { min-width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 2px solid var(--border); }
.player__autonext:hover { color: var(--text); background: var(--surface-2); }
.player__autonext .icon { width: 20px; height: 20px; }
.player__autonext[aria-pressed="true"], .player__autonext.is-on { color: var(--accent); background: var(--accent-soft); }
.player__volume { display: flex; align-items: center; gap: 4px; }
.player__volume input[type="range"] { width: 88px; accent-color: var(--lamp); height: 4px; }

/* "Sıradaki masal" öneri paneli: mini oynatıcının hemen üstünde yüzer */
.player__nextup {
  position: absolute; left: 50%; transform: translateX(-50%); width: min(1000px, calc(100% - 20px)); bottom: calc(100% + 6px);
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--card-bg); /* fallback: eski WebView */
  background: linear-gradient(150deg, var(--card-bg), color-mix(in oklab, var(--card-bg) 86%, var(--accent-soft)));
  border: 2px solid var(--border); box-shadow: var(--shadow-lg);
  z-index: 5; animation: dockIn .45s var(--ease-spring);
}
.player[hidden] .player__nextup { display: none; }
.player__nextup-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.player__nextup-ico .icon { width: 17px; height: 17px; }
.player__nextup-kicker { margin: 0; font-size: 11.5px; font-weight: 900; color: var(--muted); letter-spacing: .4px; }
.player__nextup-title { margin: 2px 0 0; font-weight: 900; font-size: 14px; }
.player__nextup-body { flex: 1 1 140px; min-width: 0; }
.player__nextup-body p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__nextup-cta { display: inline-flex; gap: 8px; align-items: center; }
.player__nextup-text { color: var(--muted); font-size: 12.5px; font-weight: 800; }

/* Oynatıcı taşma koruması: dar genişliklerde öğeler önceliklendirilir */
@media (max-width: 1120px) {
  .player__volume input[type="range"] { display: none; }
  .player__bar { gap: 10px; }
  .player__ctl--sm { width: 38px; height: 38px; }
  .player__ctl--main { width: 50px; height: 50px; }
  .player__meta { width: clamp(112px, 15vw, 190px); min-width: 112px; }
  .player__seek { min-width: 48px; }
  .player__time { flex: 0 0 auto; }
}
@media (max-width: 900px) {
  .player__time { display: none; }
  .player__rate { display: none; }
}

/* ---------- GECE DİNLEME EKRANI ---------- */
.nightmode { position: fixed; inset: 0; z-index: 140; background: radial-gradient(1100px 600px at 50% -10%, #3a2f7a, transparent 62%), radial-gradient(700px 500px at 100% 100%, rgba(255, 159, 197, .12), transparent 60%), linear-gradient(180deg, #17154a, #0d0c26 55%, #231852 100%); display: grid; place-items: center; align-items: safe center; overflow: hidden; padding-top: var(--safe-top); animation: nightFade .35s var(--ease-out); }
@keyframes nightFade { from { opacity: 0; } }
.nightmode__stars { position: absolute; inset: 0; pointer-events: none; }
.nm-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffeccb; animation: twinkle var(--tw-dur, 3.6s) ease-in-out infinite alternate, drift var(--tw-drift, 34s) linear infinite; opacity: .6; }
.nm-star:nth-child(1) { top: 12%; left: 16%; } .nm-star:nth-child(2) { top: 20%; left: 78%; --tw-dur: 4.2s; }
.nm-star:nth-child(3) { top: 34%; left: 8%; --tw-dur: 2.8s; } .nm-star:nth-child(4) { top: 42%; left: 90%; --tw-dur: 3.4s; }
.nm-star:nth-child(5) { top: 8%; left: 44%; --tw-drift: 40s; } .nm-star:nth-child(6) { top: 56%; left: 30%; --tw-dur: 4.8s; }
.nm-star:nth-child(7) { top: 64%; left: 84%; --tw-dur: 3s; } .nm-star:nth-child(8) { top: 74%; left: 14%; --tw-drift: 44s; }
.nm-star:nth-child(9) { top: 84%; left: 66%; --tw-dur: 3.8s; } .nm-star:nth-child(10) { top: 90%; left: 38%; --tw-dur: 4.4s; }
.nm-star:nth-child(11) { top: 18%; left: 60%; --tw-drift: 30s; } .nm-star:nth-child(12) { top: 48%; left: 50%; --tw-dur: 5s; }
.nightmode__close { position: absolute; top: max(14px, calc(var(--safe-top) + 12px)); right: 16px; color: #cfc6f5; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgba(255, 255, 255, .09); border: 2px solid rgba(255, 255, 255, .1); transition: background-color .2s, color .2s, transform .2s var(--ease-spring); z-index: 3; }
.nightmode__close:hover { color: #fff; background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
/* İçerik ekrana sığmazsa kaydırılabilir kalır; `vh` yedeği eski WebView'ler içindir.
   minmax(0,1fr): dar ekranlarda tek kolonun max-content'e göre büyümesini önler. */
.nightmode__inner { position: relative; z-index: 2; width: min(560px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: clamp(10px, 2.4vh, 22px); padding: 12px 0 max(20px, var(--safe-bottom)); max-height: 100vh; max-height: 100dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nightmode__art { position: relative; margin: 0; }
/* height:auto + aspect-ratio: <img> width/height nitelikleri 320×320; yalnız width
   verilirse yükseklik çakılı kalıyordu. */
.nightmode__art img { width: clamp(150px, 30vh, 310px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 36px; box-shadow: 0 30px 70px rgba(6, 4, 24, .7), 0 0 0 4px rgba(255, 255, 255, .1); }
body.is-playing .nightmode__art img { animation: coverBob 6s ease-in-out infinite; }
@keyframes coverBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.nightmode__halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 203, 77, .26), transparent 62%); z-index: -1; animation: halo 5s ease-in-out infinite alternate; }
@keyframes halo { from { transform: scale(.94); opacity: .6; } to { transform: scale(1.08); opacity: 1; } }
.nightmode__kicker { color: #aaa0ec; font-weight: 900; font-size: 13px; letter-spacing: .02em; }
.nightmode__title { color: #f7f3ff; font-size: clamp(23px, 3.6vw, 31px); padding-inline: 10px; font-weight: 800; }
.nightmode__count { color: #aca2ea; font-weight: 900; font-variant-numeric: tabular-nums; font-size: 14px; }
.nightmode__seek { width: min(420px, 78vw); cursor: pointer; touch-action: none; padding-block: 10px; }
.nightmode__seek-track { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.nightmode__seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lamp-deep), var(--lamp)); }
.nightmode__controls { display: flex; align-items: center; gap: clamp(14px, 4vw, 30px); }
.nightmode__ctl { display: grid; place-items: center; color: #d6cef8; transition: transform .18s var(--ease-spring), color .2s, background-color .2s; }
.nightmode__ctl:hover { color: #fff; transform: scale(1.1); }
.nightmode__ctl:active { transform: scale(.9); }
.nightmode__ctl .icon { width: 22px; height: 22px; }
.nightmode__ctl--sd { width: 52px; height: 52px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .08); }
.nightmode__ctl--main { width: 86px; height: 86px; border-radius: 50%; background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink); box-shadow: 0 6px 0 var(--lamp-edge), 0 18px 44px rgba(200, 130, 20, .5); }
.nightmode__ctl--main:active { transform: translateY(4px) scale(.96); box-shadow: 0 2px 0 var(--lamp-edge); }
.nightmode__ctl--main .icon { width: 34px; height: 34px; }
/* width:100% (88vw DEĞİL): iç panel 100% - 40px; 88vw ≤333px ekranlarda taşma yaratıyordu */
.nightmode__tools { display: grid; gap: 14px; width: min(430px, 100%); margin-top: clamp(2px, 1.2vh, 12px); }
.nightmode__tool { display: grid; gap: 10px; justify-items: center; }
.nightmode__tool-label { display: inline-flex; gap: 8px; align-items: center; color: #c1b8f0; font-weight: 900; font-size: 13.5px; }
.nightmode__tool-label .icon { width: 16px; height: 16px; }
.nightmode__chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 9px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); color: #d3caf6; font-weight: 900; font-size: 13.5px; border: 2px solid rgba(255, 255, 255, .1); transition: background-color .2s, color .2s, transform .18s var(--ease-spring); }
.chip:hover { transform: translateY(-1px); color: #fff; background: rgba(255, 255, 255, .13); }
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink); border-color: transparent; box-shadow: 0 3px 0 var(--lamp-edge), 0 8px 18px rgba(200, 130, 20, .4); }

/* Sezon açılır menü (kategori.php) —stil burada tek kaynak; HTML'de inline yok */
.season-select {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 11px 40px 11px 14px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 14.5px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a64d6' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  min-height: 44px; /* dokunma hedefi */
  cursor: pointer;
}
.season-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.season-select:focus { outline: none; }
@media (max-width: 480px) { .season-select { font-size: 16px; } } /* iOS form zoom önleme */
.season-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.nightmode__sleep-count { color: var(--lamp); font-weight: 900; font-size: 13.5px; }
.switch { position: relative; display: inline-grid; grid-template-columns: auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch__track { width: 56px; height: 32px; border-radius: 99px; background: rgba(255, 255, 255, .16); position: relative; transition: background-color .25s; display: block; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .28s var(--ease-spring); }
.switch input:checked + .switch__track { background: var(--lamp-deep); }
.switch input:checked + .switch__track::after { transform: translateX(24px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--lav-300); outline-offset: 3px; }
.nightmode__dim { position: fixed; inset: 0; z-index: 5; background: #060514; opacity: 0; pointer-events: none; transition: opacity .5s; }
.nightmode.dimmed .nightmode__dim { opacity: .72; }
.nightmode.dimmed .nightmode__inner { filter: brightness(.55); transition: filter .5s; }
body.night-open { overflow: hidden; }

/* ---------- 10. YARDIMCI BİLEŞENLER ---------- */
.favorites-banner { display: flex; gap: 12px; align-items: center; padding: 14px 17px; border-radius: var(--r-md); background: rgba(255, 159, 197, .14); border: 2px solid rgba(255, 159, 197, .3); color: var(--text); font-weight: 800; font-size: 14.5px; margin-bottom: var(--space-5); }
.favorites-banner .icon { width: 20px; height: 20px; color: #ee7fa8; flex-shrink: 0; }
.continue-card {
  display: flex; gap: 14px; align-items: center; padding: 13px 15px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(255, 203, 77, .18), var(--card-bg));
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-6);
  border: 2px solid rgba(255, 203, 77, .28);
}
.continue-card img { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; flex-shrink: 0; }
.continue-card__txt { min-width: 0; }
.continue-card__txt b { display: block; font-size: 15.5px; font-weight: 900; }
.continue-card__txt span { color: var(--muted); font-size: 13px; font-weight: 700; }
.continue-card .btn { margin-left: auto; flex-shrink: 0; }
/* Sayfa geçişi: kısa ve yumuşak */
.page-enter { animation: pageIn .38s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
#toTop { position: fixed; right: 16px; bottom: calc(var(--dock) + 16px); z-index: 80; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--surface-2); border: 2px solid var(--border); color: var(--muted); box-shadow: var(--shadow-md); opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .25s, transform .3s var(--ease-spring), bottom .3s var(--ease-out); }
#toTop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { color: var(--text); transform: translateY(-3px); }
#toTop .icon { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--dock) + 22px); transform: translateX(-50%) translateY(14px) scale(.94); z-index: 160; padding: 13px 24px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--text); font-weight: 900; font-size: 14px; border: 2px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease-spring); max-width: min(90vw, 480px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ---------- 10b. YÜKLEME GÖSTERGELERİ ---------- */
.nav-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 210;
  pointer-events: none; opacity: 0; transition: opacity .22s ease;
}
.nav-progress.is-active { opacity: 1; }
.nav-progress__bar {
  height: 100%; width: 0; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--rose), var(--lamp) 55%, var(--star));
  box-shadow: 0 0 12px rgba(255, 203, 77, .75), 0 0 3px rgba(255, 226, 150, .95);
  transition: width .28s var(--ease-out);
}
.nav-progress.is-done .nav-progress__bar { width: 100%; transition: width .18s var(--ease-out); }
.nav-loading {
  position: fixed; left: 50%; top: calc(var(--header-h) + var(--safe-top) + 16px);
  z-index: 211; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: var(--r-pill);
  background: var(--bg-2); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-2), transparent 4%);
  border: 2px solid var(--border); color: var(--text);
  font-weight: 900; font-size: 13.5px; letter-spacing: .1px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-8px) scale(.94);
  transition: opacity .2s ease, transform .3s var(--ease-spring);
}
.nav-loading.is-visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.spinner {
  width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%;
  border: 3px solid var(--lamp); /* fallback: eski WebView */
  border: 3px solid color-mix(in oklab, var(--lamp), transparent 68%);
  border-top-color: var(--lamp); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn[aria-busy="true"]::after,
.icon-btn[aria-busy="true"]::after,
.chip[aria-busy="true"]::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 17px; height: 17px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .65s linear infinite;
}
.btn[aria-busy="true"], .icon-btn[aria-busy="true"], .chip[aria-busy="true"] { position: relative; }
.is-pending { background-image: linear-gradient(100deg, transparent 20%, color-mix(in oklab, var(--lamp), transparent 88%) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -60% 0; } }

/* Story card skeleton for scroll performance / content flashing prevention */
.story-card-skeleton {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: shimmer 1.4s linear infinite;
}
.story-card-skeleton__media {
  aspect-ratio: 3/4;
  background: var(--card-bg);
}
.story-card-skeleton__body {
  padding: 12px;
}
.story-card-skeleton__tag {
  height: 20px;
  width: 60px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  margin-bottom: 8px;
}
.story-card-skeleton__title {
  height: 20px;
  width: 70%;
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 6px;
}
.story-card-skeleton__title:nth-child(2) {
  width: 50%;
}
.story-card-skeleton__foot {
  height: 14px;
  width: 40%;
  border-radius: 4px;
  background: var(--surface-2);
  margin-top: 10px;
}

/* Resume shelf skeleton */
.resume-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
@media (max-width: 600px) {
  .resume-skeleton { grid-template-columns: repeat(2, 1fr); }
}

/* Dinleme istatistikleri */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: var(--space-5); }
.stat-tile { padding: 15px 17px; border-radius: var(--r-lg); background: var(--card-bg); border: 2px solid var(--card-border); box-shadow: var(--shadow-sm); }
.stat-tile b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--lamp); font-variant-numeric: tabular-nums; }
[data-theme="day"] .stat-tile b { color: var(--lamp-deep); }
.stat-tile span { color: var(--muted); font-size: 13px; font-weight: 800; }

/* Gecenin masalı */
.daily-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 30px); align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl);
  background: rgba(255, 203, 77, .2); /* fallback: eski WebView */
  background: linear-gradient(140deg, rgba(255, 203, 77, .2), color-mix(in oklab, var(--bg-2), transparent 8%) 62%);
  border: 2px solid rgba(255, 203, 77, .32); box-shadow: var(--shadow-md);
}
.daily-card::before { content: ""; position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 159, 197, .26), transparent 68%); pointer-events: none; }
.daily-card > * { position: relative; }
.daily-card__cover img { width: clamp(112px, 17vw, 176px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md), 0 0 0 5px var(--surface); border: 2px solid var(--border); transform: rotate(3deg); transition: transform .4s var(--ease-spring); }
.daily-card:hover .daily-card__cover img { transform: rotate(0) scale(1.04); }
.daily-card__kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--lamp); font-weight: 900; font-size: 13.5px; }
[data-theme="day"] .daily-card__kicker { color: var(--lamp-deep); }
.daily-card__kicker .icon { width: 16px; height: 16px; }
.daily-card h3, .daily-card h2 { font-size: clamp(22px, 2.8vw, 31px); margin-top: 6px; font-weight: 800; }
.daily-card p { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 60ch; font-weight: 600; }
.daily-card__cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Güven bandı + dinleme yıldızları + yaş renkleri */
.trust-band {
  display: flex; flex-wrap: wrap; gap: 9px 26px; align-items: center; justify-content: center;
  padding: 14px 22px; margin-top: clamp(10px, 2vw, 22px);
  background: var(--card-bg); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--card-bg) 88%, transparent);
  border: 2px dashed var(--turquoise-deep); /* fallback: eski WebView */
  border: 2px dashed color-mix(in oklab, var(--turquoise-deep) 40%, transparent);
  border-radius: var(--r-pill);
  color: var(--muted); font-size: 13.5px; font-weight: 800;
}
.trust-band__item { display: inline-flex; gap: 7px; align-items: center; }
.trust-band__item .icon { width: 16px; height: 16px; color: var(--turquoise); flex-shrink: 0; }
.trust-band__item strong { color: var(--text); }
.trust-band__item--done { color: var(--turquoise-deep); }
[data-theme="night"] .trust-band__item--done { color: var(--turquoise); }
.story-card__donechip {
  display: none; gap: 5px; align-items: center;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255, 226, 122, .18); border: 2px solid rgba(255, 226, 122, .32);
  color: var(--lamp-deep); font-weight: 900; font-size: 11.5px; white-space: nowrap;
}
[data-theme="night"] .story-card__donechip { color: var(--star); }
.story-card__donechip .icon { width: 12px; height: 12px; }
.story-card.is-done .story-card__donechip { display: inline-flex; }
.tag--a0 { background: rgba(255, 167, 77, .18); color: #a05a12; }
[data-theme="night"] .tag--a0 { color: #ffb86f; }
.tag--a3 { background: rgba(98, 217, 200, .18); color: var(--turquoise-deep); }
[data-theme="night"] .tag--a3 { color: var(--turquoise); }
.tag--a6 { background: rgba(180, 155, 255, .18); color: #6a48b8; }
[data-theme="night"] .tag--a6 { color: var(--lav-200); }
.tag--a9 { background: rgba(255, 159, 197, .2); color: #b04570; }
[data-theme="night"] .tag--a9 { color: #ffa9cb; }

/* ---------- 11. EBEVEYN REHBERİ ---------- */
.guide-hero { padding-block: clamp(24px, 4.5vw, 48px) clamp(8px, 2vw, 16px); }
.guide-hero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 22ch; font-weight: 800; }
.guide-hero__sub { color: var(--muted); margin-top: 12px; max-width: 66ch; font-size: 16.5px; font-weight: 600; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: clamp(14px, 2.2vw, 20px); }
.domain-card { background: var(--card-bg); border-radius: var(--r-lg); border: 2px solid var(--card-border); box-shadow: var(--shadow-sm); padding: 20px; display: grid; gap: 10px; border-top: 5px solid var(--domain-color, var(--accent)); scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 20px); transition: transform .3s var(--ease-spring), box-shadow .25s; }
.domain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.domain-card__head { display: flex; align-items: center; gap: 12px; }
.domain-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; flex-shrink: 0; color: #fff; background: var(--domain-color, var(--accent)); box-shadow: 0 4px 0 color-mix(in srgb, var(--domain-color, var(--accent)) 60%, #000); }
.domain-card__icon .icon { width: 22px; height: 22px; }
.domain-card h3 { font-size: 18px; }
.domain-card > p { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.domain-card__why { padding: 11px 13px; border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.domain-card__why .icon { width: 16px; height: 16px; color: var(--domain-color, var(--accent)); margin-top: 4px; flex-shrink: 0; }
.domain-card__tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.domain-card__tips li { display: flex; gap: 9px; font-size: 14px; color: var(--text); align-items: flex-start; font-weight: 600; }
.domain-card__tips .icon { width: 15px; height: 15px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2.2vw, 18px); }
.age-card { background: var(--card-bg); border-radius: var(--r-lg); border: 2px solid var(--card-border); box-shadow: var(--shadow-sm); padding: 19px; display: grid; gap: 12px; }
.age-card__band { display: inline-flex; align-items: center; gap: 8px; align-self: start; padding: 7px 15px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-weight: 900; font-size: 14px; }
.age-card__band .icon { width: 15px; height: 15px; }
.age-card dl { margin: 0; display: grid; gap: 12px; }
.age-card dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 900; margin-bottom: 3px; }
.age-card dt .icon { width: 15px; height: 15px; color: var(--accent); }
.age-card dd { margin: 0; font-size: 14.5px; color: var(--text); font-weight: 600; }
.routine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.routine-step { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start; padding: 16px 18px; border-radius: var(--r-lg); background: var(--card-bg); border: 2px solid var(--card-border); box-shadow: var(--shadow-sm); }
.routine-step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink); font-family: var(--font-display); font-weight: 800; font-size: 18px; flex-shrink: 0; box-shadow: 0 3px 0 var(--lamp-edge); }
.routine-step h3 { font-size: 17px; }
.routine-step p { color: var(--muted); font-size: 14.5px; margin-top: 4px; font-weight: 600; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.prompt-chip { padding: 11px 16px; border-radius: var(--r-md); background: var(--card-bg); border: 2px solid var(--card-border); box-shadow: var(--shadow-sm); color: var(--text); font-size: 14.5px; font-weight: 700; max-width: 100%; }
.prompt-chip::before { content: "“"; color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.prompt-chip::after { content: "”"; color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); font-weight: 600; }
.sources-list .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.sources-list b { color: var(--text); font-weight: 900; }

/* ---------- 12. AKORDEON (masal sayfası — disclosure deseni) ---------- */
.detail-acc { padding-block: 6px 26px; }
.acc {
  background: var(--card-bg);
  border-radius: var(--r-lg);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.acc + .acc { margin-top: 12px; }
/* fallback: eski WebView */ .acc.is-open { border-color: var(--accent); }
.acc.is-open { box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--accent) 40%, var(--card-border)); }
.acc__h { margin: 0; }
.acc__btn {
  display: flex; align-items: center; gap: 13px;
  width: 100%; padding: 15px 18px;
  background: transparent; border: 0; border-radius: 0;
  text-align: start; cursor: pointer;
  font: inherit; color: var(--text);
  transition: background-color .2s;
}
/* fallback: eski WebView */ .acc__btn:hover { background: var(--accent-soft); }
.acc__btn:hover { background: color-mix(in oklab, var(--accent) 6%, transparent); }
/* fallback: eski WebView */ .acc__btn:active { background: var(--accent-soft); }
.acc__btn:active { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.acc__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.acc__ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  transition: background-color .25s, color .25s, transform .3s var(--ease-spring);
}
.acc__ico .icon { width: 20px; height: 20px; }
.acc.is-open .acc__ico { transform: scale(1.1) rotate(-6deg); background: var(--accent); color: var(--accent-text); }
.acc--gains .acc__ico { background: rgba(255, 203, 77, .22); color: var(--lamp); }
.acc--gains.is-open .acc__ico { background: var(--lamp); color: var(--lamp-ink); }
.acc__label { flex: 1 1 auto; font-weight: 900; font-size: 16px; letter-spacing: .1px; }
.acc__chev { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--muted); transition: transform .35s var(--ease-spring), color .2s, background-color .2s; }
.acc__chev .icon { width: 18px; height: 18px; }
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--accent); background: var(--accent-soft); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; }
.acc__text { padding: 4px 20px 20px; color: var(--text); font-size: 15px; line-height: 1.78; font-weight: 600; }
.acc__text p { margin: 0 0 12px; }
.acc__text p:last-child { margin-bottom: 0; }
.acc__text strong { font-weight: 900; }
.acc__text a { color: var(--accent); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.acc__text--prose { max-width: 70ch; }
.acc__text--prose br + br { margin: 0; }
.acc__text .detail-card__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.acc__text .gain-domain { display: flex; gap: 9px; align-items: center; font-size: 14.5px; }
.acc__text .gain-tip { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); background: rgba(98, 217, 200, .12); border: 2px solid rgba(98, 217, 200, .28); font-size: 14px; }
.acc__text .gain-tip .icon { width: 17px; height: 17px; color: var(--turquoise); flex-shrink: 0; margin-top: 2px; }
.acc__text .gain-more { font-size: 14px; }
.acc__text .accnote { color: var(--muted); font-size: 13px; margin-top: 12px; }
.acc__dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.acc__dl dt { color: var(--muted); font-weight: 800; }
.acc__dl dd { margin: 0; font-weight: 800; text-align: right; }

/* Kaydırma belirme animasyonu: görüşe giren öğeler yaylanarak belirir.
   app.js: önce .will-reveal (gizli), görüşe girince .is-in. Animasyon
   "backwards" dolgusunda: bittikten sonra normal (hover) stiller geçerli. */
.will-reveal { opacity: 0; }
.is-in { animation: popIn .6s var(--ease-spring) backwards; animation-delay: var(--reveal-delay, 0s); }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.story-grid > :nth-child(3n + 2), .h-scroll > :nth-child(3n + 2) { --reveal-delay: 70ms; }
.story-grid > :nth-child(3n + 3), .h-scroll > :nth-child(3n + 3) { --reveal-delay: 140ms; }

/* ---------- 13. DUYARLILIK ---------- */
/* ------------------------------------------------------------------
   Orta bant (861–1160px): üst menü + arama + tema düğmesi birlikte
   sığmaz (ölçüm: 885–1120px'te .site-header__actions sağdan taşar,
   scrollW 1099–1122 > clientW). ≤860'ta tabbar devreye girdiğinden ve
   ≥1160'ta yer açıldığından bu aralığa özel sıkıştırma zorunlu.
   ---------------------------------------------------------------- */
@media (min-width: 861px) and (max-width: 1160px) {
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 9px 10px; font-size: 13.5px; }
  .brand__word { font-size: 20px; letter-spacing: .03em; }
  .site-header__search .search-form input { width: clamp(120px, 14vw, 190px); }
  .site-header__search .search-form input:focus { width: clamp(140px, 18vw, 220px); }
  .site-header .search-form input { padding-right: 64px; }
}

@media (max-width: 1060px) {
  .featured-grid { grid-template-columns: 1fr; }
  .story-hero { grid-template-columns: 1fr; }
  .story-hero__cover { max-width: 420px; margin-inline: auto; }
}
/* Menü kaybolmasın: üst menü ve alt sekme çubuğu aynı eşikte değişir (≤860) */
@media (max-width: 860px) {
  :root { --tabbar-h: 84px; }
  .main-nav { display: none; }
  .tabbar { display: grid; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__float--a { left: 4%; }
  .hero__float--b { right: 4%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .story-grid:not(.h-scroll) { grid-template-columns: repeat(auto-fit, minmax(44vw, 1fr)); gap: 14px; }
  .site-footer__links { display: none; }
}
@media (max-width: 640px) {
  :root { --player-h: 82px; --header-h: 58px; }
  body { font-size: 15px; }
  .site-header__inner { gap: 8px; }
  .site-header__search-toggle { display: grid; }
  .site-header__search { position: absolute; left: 0; right: 0; top: 100%; padding: 10px 14px; background: var(--header-bg); border-bottom: 1px solid var(--header-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: none; }
  .site-header.is-search-open .site-header__search { display: block; animation: pageIn .25s var(--ease-out); }
  .site-header__search .search-form input { width: 100%; }
  .site-header__search .search-form input:focus { width: 100%; }
  .search-form__btn { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: clamp(31px, 8.6vw, 41px); }
  .hero__float { display: none; }
  .hero__stat { min-width: 0; flex: 1 1 28%; padding: 10px 12px; }
  .hero__stat strong { font-size: 24px; }
  .hero__stat span { font-size: 12px; }
  .hero__cta .btn { flex: 1 1 100%; }
  /* NOT: .h-scroll buradan muaf — repeat(2,1fr) sütun şablonu grid-auto-flow:
     column ile çarpışır ve ilk iki kartı ~18px'e sıkıştırıp dikey çizgi
     blokları üretir. Yatay kaydırıcı yalnız .h-scroll kurallarıyla akar. */
  .story-grid:not(.h-scroll) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .story-card { padding: 6px; border-radius: 24px; }
  .story-card__media { border-radius: 19px; }
  .story-card__title { font-size: 16px; }
  .story-card__desc { font-size: 13px; }
  .story-card__play { width: 46px; height: 46px; right: 8px; bottom: 8px; }
  .story-card__play .icon { width: 19px; height: 19px; }
  .story-card__body { padding: 12px 8px 6px; gap: 7px; }
  .story-card__foot { padding-top: 6px; }
  .story-card__dur { font-size: 12.5px; }
  .fav-btn { width: 40px; height: 40px; }
  .story-card--wide { min-height: 400px; border-radius: 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { padding: 13px; gap: 10px; }
  .cat-card__icon { width: 42px; height: 42px; border-radius: 15px; }
  .toolbar { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 4px); }
  .toolbar__count { margin-left: 0; width: 100%; text-align: center; }
  /* Filtre satırlarını düzgün hizala: etiket solda, seçim kutusu tam genişlik */
  .toolbar__group { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .toolbar__label { flex: 0 0 auto; min-width: 62px; font-size: 13px; }
  .toolbar__group .select-wrap { flex: 1 1 auto; display: flex; min-width: 0; }
  .toolbar__group .select { flex: 1 1 auto; width: 100%; font-size: 16px; }
  .story-hero__actions .btn, .story-hero__actions .night-cta { flex: 1 1 100%; justify-content: center; }
  /* Mini bar (dar ekran): yalnız "önceki · oynat · sonraki" kalır */
  .player { padding-inline: 8px; }
  .player__bar { gap: 8px; padding: 8px 10px 8px 8px; min-height: 68px; border-radius: 26px; }
  .player__expand { flex: 0 0 auto; }
  .player__cover { width: 48px; height: 48px; border-radius: 15px; }
  .player__expand-hint { border-radius: 15px; }
  .player__meta { flex: 1 1 auto; width: auto; min-width: 0; }
  .player__title { font-size: 13.5px; }
  .player__sub { font-size: 11.5px; }
  .player__controls { flex: 0 0 auto; gap: 6px; }
  #playerBack15, #playerFwd15 { display: none; }
  .player__ctl--sm { width: 38px; height: 38px; }
  .player__ctl--sm .icon { width: 18px; height: 18px; }
  .player__seek { display: none; }
  .player__time { display: none; }
  .player__extras { display: none; }
  .player__ctl--main { width: 48px; height: 48px; }
  .player__ctl--main .icon { width: 22px; height: 22px; }
  .player__nextup { bottom: calc(100% + 4px); width: calc(100% - 16px); gap: 9px; padding: 10px 12px; }
  .player__nextup-text { display: none; }
  .trust-band { border-radius: var(--r-lg); font-size: 12.5px; }
  .continue-card { flex-wrap: wrap; }
  .continue-card .btn { margin-left: 0; width: 100%; }
  .nightmode__controls { gap: 12px; }
  .nightmode__ctl--sd { width: 46px; height: 46px; }
  .nightmode__ctl--main { width: 72px; height: 72px; }
  .daily-card { grid-template-columns: 1fr; }
  .daily-card__cover { order: -1; }
  .daily-card__cover img { width: min(60%, 200px); }
  #toTop { right: 12px; }
}
@media (min-width: 861px) { .tabbar { display: none; } }
@media (max-width: 380px) {
  .brand__word { font-size: 20px; }
  .story-grid:not(.h-scroll) { gap: 9px; }
  .tabbar { height: 62px; padding: 5px; }
  /* 320px'te hücre ~46px: 9.5px'te "Ana Sayfa" (51px) taşıyordu; 9px = 45px, sığar.
     (v1.6.12'de 7 öğe → 5 çekirdek + "Daha" çekmecesi oldu; yatay kaydırma gerekmedi.) */
  .tabbar__item { font-size: 9px; letter-spacing: 0; }
  .tabbar__item .icon { width: 21px; height: 21px; }
  .nightmode__controls { gap: 8px; }
  .nightmode__ctl--sd { width: 42px; height: 42px; }
  .nightmode__ctl--main { width: 64px; height: 64px; }
  .nightmode__ctl--main .icon { width: 28px; height: 28px; }
  .player__ctl--sm { width: 34px; height: 34px; }
  .player__ctl--main { width: 44px; height: 44px; }
  .acc__btn { gap: 10px; padding: 14px 15px; }
  .acc__label { font-size: 15px; }
  .acc__ico { width: 36px; height: 36px; border-radius: 12px; }
  .acc__text { padding: 2px 16px 16px; font-size: 14.5px; }
}
@media (max-width: 420px) {
  .acc__btn { gap: 10px; padding: 14px 15px; }
  .acc__label { font-size: 15px; }
  .acc__text { padding: 2px 16px 16px; font-size: 14.5px; }
}

/* Kısa ekranlar (yatay telefon, küçük WebView): gece ekranı tek ekrana sığsın */
@media (max-height: 700px) {
  .nightmode__inner { gap: clamp(8px, 1.8vh, 14px); }
  .nightmode__art img { width: clamp(128px, 23vh, 230px); border-radius: 24px; }
  .nightmode__title { font-size: clamp(19px, 3.2vw, 24px); }
  .nightmode__seek { padding-block: 6px; }
  .nightmode__ctl--sd { width: 44px; height: 44px; }
  .nightmode__ctl--main { width: 64px; height: 64px; }
  .nightmode__ctl--main .icon { width: 28px; height: 28px; }
  .nightmode__tools { gap: 10px; }
  .nightmode__tool { gap: 7px; }
  .chip { padding: 7px 12px; font-size: 12.5px; }
}
@media (max-height: 480px) {
  .nightmode__inner { gap: 6px; padding-top: 6px; padding-bottom: max(10px, var(--safe-bottom)); }
  .nightmode__kicker { display: none; }
  .nightmode__art img { width: clamp(84px, 22vh, 150px); border-radius: 16px; }
  .nightmode__title { font-size: 17px; }
  .nightmode__count, .nightmode__tool-label { font-size: 11.5px; }
  .nightmode__seek { padding-block: 3px; }
  .nightmode__ctl--sd { width: 38px; height: 38px; }
  .nightmode__ctl--main { width: 52px; height: 52px; }
  .nightmode__ctl--main .icon { width: 22px; height: 22px; }
  .nightmode__tools { gap: 6px; }
  .nightmode__tool { gap: 4px; }
  .chip { padding: 5px 11px; font-size: 12px; }
  .switch__track { width: 48px; height: 26px; }
  .switch__track::after { width: 20px; height: 20px; }
  .switch input:checked + .switch__track::after { transform: translateX(22px); }
}
/* Çok dar ekran (katlanır kapak ≈280px): kontrol satırı panel genişliğine sığmalı */
@media (max-width: 340px) {
  .nightmode__controls { gap: 5px; }
  .nightmode__ctl--sd { width: 38px; height: 38px; }
  .nightmode__ctl--main { width: 48px; height: 48px; }
  .nightmode__ctl--main .icon { width: 22px; height: 22px; }
  .nightmode__tool-label { font-size: 12px; }
  .chip { padding: 5px 9px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sky, .nightmode__stars { display: none; }
  .hero__float, .hero__art img, .empty__art { animation: none; }
  .will-reveal { opacity: 1 !important; }
  .acc__panel { transition: none !important; }
}

/* Geniş kart üzerinde yaş etiketi her zaman okunur (yaş renkleri görsel üstünde düşük kontrastlı) */
[data-theme] .story-card--wide .tag:not(.tag--cat) { background: rgba(255, 255, 255, .2); color: #fff; }

/* ============================================================
   Gece Gökyüzü + çevrimdışı dinleme + kazanım etiketleri
   ============================================================ */
/* fallback: eski WebView */ .tag--gain { color: #6a54c8; }
.tag--gain { background: rgba(154, 176, 240, .18); color: color-mix(in oklab, #6a54c8, var(--text) 30%); }
[data-theme="night"] .tag--gain { color: #c5d2ff; }
.acc__gain { display: inline-block; padding: 4px 12px; margin: 2px 4px 2px 0; border-radius: 999px; background: rgba(154, 176, 240, .16); font-size: 13px; font-weight: 700; }

/* Masal sayfası çevrimdışı kaydet */
.story-hero__offline { margin-top: 14px; }
/* fallback: eski WebView */ .offline-save { color: #6a54c8; }
.offline-save { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; border: 1.5px dashed rgba(154, 176, 240, .5); background: rgba(154, 176, 240, .07); color: color-mix(in oklab, #6a54c8, var(--text) 30%); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .18s, background-color .18s, transform .18s; }
.offline-save:hover { border-color: var(--accent); background: rgba(154, 176, 240, .13); transform: translateY(-1px); }
.offline-save:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.offline-save.is-busy { cursor: progress; opacity: .75; }
.offline-save.is-saved { border-style: solid; border-color: rgba(122, 199, 196, .55); background: rgba(122, 199, 196, .12); color: #23786f; }
.offline-save .icon { width: 18px; height: 18px; }

/* ============================================================
   PIRILTİ — Yıldız Maskotu (durum makinesi animasyonları)
   Köşesinden uyanır; ihtiyaçlarını görsel anlatır; dinlenir.
   data-anim: idle|happy|hungry|eating|loved|hugging|sleepy|sleeping|excited|waking
   ============================================================ */
.mascot {
  position: fixed; right: 16px; bottom: calc(var(--dock) + 14px); z-index: 95;
  width: 152px; pointer-events: none;
}
.mascot__stage { position: relative; width: 152px; }
.mascot__body {
  position: relative; display: block; width: 152px; padding: 0; border: 0; background: none;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .35s var(--ease-spring), filter .5s ease, opacity .5s ease;
}
.mascot__svg { display: block; width: 152px; height: auto; filter: drop-shadow(0 10px 20px rgba(255, 190, 80, .18)); }
.mascot[hidden] { display: none; }
.mascot.is-drifting .mascot__body { opacity: 0; transform: translateY(26px) scale(.94); }

/* --- SVG parçaları --- */
.m-star { transform-box: fill-box; transform-origin: center; }
.m-shadow { transform-box: fill-box; transform-origin: center; }
.m-halo { opacity: .65; animation: mHalo 5s ease-in-out infinite; }
.m-lid { transform-box: fill-box; transform-origin: top; transform: scaleY(0); transition: transform .09s ease; }
.m-lidhappy, .m-lidzip { display: none; }
.m-pupil { transform-box: fill-box; transform-origin: center; }
.m-arm { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease-spring); }
.m-arm--l { transform-origin: right center; }
.m-arm--r { transform-origin: left center; }
.m-arm circle { fill: #f8bd4f; stroke: #f4a93e; stroke-width: 3; }
.m-blushdot { opacity: 0; transition: opacity .4s ease; }
.m-tw { opacity: 0; }
.m-deco { display: none; }

.m-mouth > * { display: none; }

/* --- Belirme / uyanma: köşesinden moral'le doğrulur --- */
@keyframes mWakeRise { 0% { transform: translateY(30px) scale(.7) rotate(-8deg); opacity: 0; } 55% { transform: translateY(-6px) scale(1.04) rotate(3deg); opacity: 1; } 100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; } }
@keyframes mHalo { 0%, 100% { opacity: .5; } 50% { opacity: .8; } }

/* Ağız ve göz durakları */
.mascot[data-anim="idle"] .m-mouth--smile, .mascot[data-anim="waking"] .m-mouth--smile { display: block; }
.mascot[data-anim="happy"] .m-mouth--grin, .mascot[data-anim="excited"] .m-mouth--grin { display: block; }
.mascot[data-anim="hungry"] .m-mouth--o { display: block; }
.mascot[data-anim="eating"] .m-mouth--chomp { display: block; }
.mascot[data-anim="loved"] .m-mouth--smile, .mascot[data-anim="hugging"] .m-mouth--smile { display: block; }
.mascot[data-anim="sleepy"] .m-mouth--o { display: block; }
.mascot[data-anim="sleeping"] .m-mouth--tiny { display: block; }
.mascot[data-anim="happy"] .m-blushdot, .mascot[data-anim="loved"] .m-blushdot,
.mascot[data-anim="hugging"] .m-blushdot, .mascot[data-anim="excited"] .m-blushdot,
.mascot[data-anim="eating"] .m-blushdot { opacity: .95; }

/* Gözler: mutlu-kapalı (^ ^) ve uyku çizgileri */
.mascot[data-anim="loved"] .m-lidhappy, .mascot[data-anim="hugging"] .m-lidhappy,
.mascot[data-anim="excited"] .m-lidzip { display: block; }
.mascot[data-anim="loved"] .m-eyeball, .mascot[data-anim="hugging"] .m-eyeball,
.mascot[data-anim="loved"] .m-pupil, .mascot[data-anim="hugging"] .m-pupil,
.mascot[data-anim="loved"] .m-spark, .mascot[data-anim="hugging"] .m-spark { display: none; }
.mascot[data-anim="excited"] .m-pupil { r: 3.6; }
.mascot.is-blink .m-lid { transform: scaleY(1); transition: transform .07s ease; }
.mascot[data-anim="sleepy"] .m-lid { transform: scaleY(.55); transition: transform .8s ease; }

/* Uyuyan göz: düz kapak değil, mutlu kavis (kawaii ∩ ∩) */
.mascot.is-asleep .m-eyeball, .mascot.is-asleep .m-pupil, .mascot.is-asleep .m-spark, .mascot.is-asleep .m-lid { display: none; }
.mascot.is-asleep .m-lidhappy { display: block; stroke-dasharray: 42; stroke-dashoffset: 42; animation: mArcDraw .7s ease forwards; }
@keyframes mArcDraw { to { stroke-dashoffset: 0; } }

/* --- idle varyasyonları: her seferinde başka bir salınım --- */
@keyframes mIdleA { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(1.2deg); } }
@keyframes mIdleB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4.5px) rotate(-1.4deg); } }
@keyframes mIdleC { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.mascot[data-anim="idle"][data-idle="a"] .m-star { animation: mIdleA 3.6s ease-in-out infinite; }
.mascot[data-anim="idle"][data-idle="b"] .m-star { animation: mIdleB 3s ease-in-out infinite; }
.mascot[data-anim="idle"][data-idle="c"] .m-star { animation: mIdleC 2.6s ease-in-out infinite; }

/* --- waking: yukarıdan doğrulur, gözlerini açar --- */
.mascot[data-anim="waking"] .mascot__body { animation: mWakeRise .9s var(--ease-out) both; }
.mascot[data-anim="waking"] .m-lid { transform: scaleY(1); }
.mascot[data-anim="waking"] .m-lid { animation: mLidOpen .8s .35s ease both; }
@keyframes mLidOpen { from { transform: scaleY(1); } to { transform: scaleY(0); } }
.mascot[data-anim="waking"] .m-arm--l { transform: rotate(38deg); }
.mascot[data-anim="waking"] .m-arm--r { transform: rotate(-38deg); }

/* --- happy/excited: zıplama + parıltı --- */
@keyframes mJump { 0%, 100% { transform: translateY(0) scale(1); } 18% { transform: translateY(-22px) scale(1.05); } 40% { transform: translateY(0) scale(1, .94); } 55% { transform: translateY(-9px) scale(1); } 72% { transform: translateY(0); } }
@keyframes mJumpSm { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }
@keyframes mTwinkle { 0% { opacity: 0; transform: scale(.4) rotate(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2) rotate(90deg); } }
.mascot[data-anim="happy"] .m-star { animation: mJump 1.5s var(--ease-spring) both; }
.mascot[data-anim="happy"] .m-shadow { animation: mShadowSquash 1.5s var(--ease-spring) both; }
@keyframes mShadowSquash { 0%, 100% { transform: scale(1); opacity: .8; } 18% { transform: scale(.82); opacity: .5; } 55% { transform: scale(.93); } }
.mascot[data-anim="happy"] .m-deco, .mascot[data-anim="excited"] .m-deco { display: block; }
.mascot[data-anim="happy"] .m-tw, .mascot[data-anim="excited"] .m-tw { opacity: 1; animation: mTwinkle 1.4s ease-in-out infinite; }
.mascot[data-anim="excited"] .m-star { animation: mJumpSm .55s ease-in-out infinite; }
.mascot[data-anim="excited"] .m-tw { animation-duration: .7s; }

/* --- hungry: karna bakış + ağız aç-kapa + kurabiye tabağı --- */
@keyframes mChompO { 0%, 100% { transform: scale(1, .45); } 50% { transform: scale(1, 1); } }
.mascot[data-anim="hungry"] .m-mouth--o { transform-box: fill-box; transform-origin: center; animation: mChompO 1.1s ease-in-out infinite; }
@keyframes mLook { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-2.5px, 1.5px); } 45% { transform: translate(2.5px, 2px); } 75% { transform: translate(0, 2.5px); } }
.mascot[data-anim="hungry"] .m-pupil { animation: mLook 2.4s ease-in-out infinite; }
.mascot[data-anim="hungry"] .m-arm--l { transform: rotate(-24deg) translate(4px, 3px); }
.mascot[data-anim="hungry"] .m-arm--r { transform: rotate(24deg) translate(-4px, 3px); }
.mx-plate { position: absolute; left: -54px; bottom: 2px; width: 60px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s var(--ease-spring); }
.mx-plate[hidden] { display: none; }
.mascot.is-eating .mx-plate, .mascot[data-anim="hungry"] .mx-plate:not([hidden]) { opacity: 1; transform: translateY(0); }
@keyframes mPlateBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(3deg); } }
.mascot[data-anim="hungry"] .mx-plate:not([hidden]) { opacity: 1; animation: mPlateBob 2.2s ease-in-out infinite; }

/* --- eating: kurabiyeburnu ağza uçar + kırıntılar --- */
@keyframes mCookieFly { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(52px, -14px) scale(.15); opacity: 0; } }
.mascot.is-eating .mx-cookie { transform-box: fill-box; transform-origin: center; animation: mCookieFly 1.9s .4s var(--ease-out) forwards; }
@keyframes mChompBig { 0%, 100% { transform: scale(1, .35); } 50% { transform: scale(1.05, 1); } }
.mascot[data-anim="eating"] .m-mouth--chomp { transform-box: fill-box; transform-origin: center; animation: mChompBig .5s ease-in-out infinite; }
.mascot[data-anim="eating"] .m-star { animation: mIdleB 1.2s ease-in-out infinite; }

/* --- loved/hugging: kollar açılır; sarılırken sarar; kalpler uçar --- */
.mascot[data-anim="loved"] .m-star { transform: scale(1.05) rotate(-2deg); }
.mascot[data-anim="loved"] .m-arm--l { transform: rotate(-46deg); }
.mascot[data-anim="loved"] .m-arm--r { transform: rotate(46deg); }
@keyframes mArmHugL { 0% { transform: rotate(-46deg); } 100% { transform: rotate(18deg) translate(14px, 2px); } }
@keyframes mArmHugR { 0% { transform: rotate(46deg); } 100% { transform: rotate(-18deg) translate(-14px, 2px); } }
.mascot[data-anim="hugging"] .m-arm--l { animation: mArmHugL 2s var(--ease-spring) both; }
.mascot[data-anim="hugging"] .m-arm--r { animation: mArmHugR 2s var(--ease-spring) both; }
.mascot[data-anim="hugging"] .m-star { animation: mIdleC .9s ease-in-out infinite; }

/* --- sleepy: yarım kapalı göz + esneme + ay --- */
@keyframes mYawn { 0%, 100% { transform: scale(1, .5); } 45% { transform: scale(1.15, 1.05); } }
.mascot[data-anim="sleepy"] .m-mouth--o { transform-box: fill-box; transform-origin: center; animation: mYawn 2.6s ease-in-out infinite; }
.mascot[data-anim="sleepy"] .m-star { animation: mIdleC 4s ease-in-out infinite; }
.mascot[data-anim="sleepy"] .m-mouth--o, .mascot[data-anim="hungry"] .m-mouth--o { fill: #2a2350; }
.mascot[data-anim="sleepy"] .m-tw { display: block; opacity: .8; animation: mTwinkle 2.6s ease-in-out infinite; }

/* --- sleeping: sönük uydu; SVG yatak (yastık + battaniye + ay) + zzz --- */
.mascot[data-anim="sleeping"] .mascot__body { filter: brightness(.78) saturate(.85); }
.mascot[data-anim="sleeping"] .m-star { transform: rotate(-7deg) translateY(5px) scale(1, .96); transition: transform .9s var(--ease-spring); }
.mascot[data-anim="sleeping"] .m-halo { opacity: .18; animation: none; }
.m-pillow, .m-blanket, .m-bedmoon { opacity: 0; transition: opacity .8s ease, transform 1s var(--ease-spring); }
.m-pillow { transform: translateY(9px); transform-box: fill-box; transform-origin: center; }
.m-blanket { transform: translateY(-30px); transform-box: fill-box; transform-origin: center top; }
.m-bedmoon { transform: translateY(-8px); transform-box: fill-box; transform-origin: center; }
.mascot.is-asleep .m-pillow { opacity: 1; transform: translateY(0); }
.mascot.is-asleep .m-blanket { opacity: 1; transform: translateY(0); transition-delay: .3s; }
.mascot.is-asleep .m-bedmoon { opacity: .9; transform: translateY(0); }
@keyframes mBreath { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(1.5px) scaleY(1.03); } }
.mascot.is-asleep .m-blanket { animation: mBreath 4.8s 1.2s ease-in-out infinite; }
@keyframes mMoonDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.mascot.is-asleep .m-bedmoon { animation: mMoonDrift 4s 1s ease-in-out infinite; }

/* --- dance: minik dans — gövde sallanır, kollar ritim tutar, star zıplar --- */
@keyframes mDanceBody {
  0%   { transform: rotate(0deg) translateY(0) scale(1); }
  12%  { transform: rotate(-6deg) translateY(-7px) scale(1.02); }
  25%  { transform: rotate(5deg) translateY(0) scale(1, .95); }
  37%  { transform: rotate(6deg) translateY(-7px) scale(1.02); }
  50%  { transform: rotate(-5deg) translateY(0) scale(1, .95); }
  62%  { transform: rotate(-6deg) translateY(-7px) scale(1.02); }
  75%  { transform: rotate(5deg) translateY(0) scale(1, .95); }
  87%  { transform: rotate(-3deg) translateY(-4px) scale(1.01); }
  100% { transform: rotate(0deg) translateY(0) scale(1); }
}
@keyframes mDanceArmL {
  0%, 100% { transform: rotate(-30deg); }
  25%  { transform: rotate(-75deg) translate(-6px, -4px); }
  50%  { transform: rotate(-20deg); }
  75%  { transform: rotate(-85deg) translate(-9px, -6px); }
}
@keyframes mDanceArmR {
  0%, 100% { transform: rotate(30deg); }
  25%  { transform: rotate(20deg); }
  50%  { transform: rotate(75deg) translate(6px, -4px); }
  75%  { transform: rotate(85deg) translate(9px, -6px); }
}
@keyframes mDanceStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-9px) rotate(-8deg); }
  50%  { transform: translateY(0) rotate(6deg); }
  75%  { transform: translateY(-9px) rotate(-8deg); }
}
@keyframes mDanceTwinkle { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.mascot[data-anim="dance"] .mascot__body { animation: mDanceBody 2.2s var(--ease-spring) infinite; transform-origin: 50% 88%; }
.mascot[data-anim="dance"] .m-arm--l { animation: mDanceArmL 1.1s ease-in-out infinite; }
.mascot[data-anim="dance"] .m-arm--r { animation: mDanceArmR 1.1s ease-in-out infinite; }
.mascot[data-anim="dance"] .m-star { animation: mDanceStar 1.1s ease-in-out infinite; }
.mascot[data-anim="dance"] .m-mouth--grin { display: block; }
.mascot[data-anim="dance"] .m-blushdot { opacity: .95; }
.mascot[data-anim="dance"] .m-deco { display: block; }
.mascot[data-anim="dance"] .m-tw { display: block; opacity: 1; animation: mDanceTwinkle .7s ease-in-out infinite; }
.mascot[data-anim="dance"] .m-shadow { animation: mShadowSquash 1.1s var(--ease-spring) infinite; }

/* --- spin: sevinçten dönme — sağa dönüş + parıltı püskürtme --- */
@keyframes mSpinBody {
  0%   { transform: rotate(0deg) translateY(0); }
  15%  { transform: rotate(-8deg) translateY(-10px); }
  55%  { transform: rotate(340deg) translateY(-12px); }
  80%  { transform: rotate(360deg) translateY(-2px); }
  100% { transform: rotate(360deg) translateY(0); }
}
@keyframes mSpinArmL { 0%, 100% { transform: rotate(-70deg); } 50% { transform: rotate(-100deg); } }
@keyframes mSpinArmR { 0%, 100% { transform: rotate(70deg); } 50% { transform: rotate(100deg); } }
@keyframes mSpinTw { 0%, 100% { opacity: .5; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.mascot[data-anim="spin"] .mascot__body { animation: mSpinBody 1.6s var(--ease-spring) 1; transform-origin: 50% 88%; }
.mascot[data-anim="spin"] .m-arm--l { animation: mSpinArmL .8s ease-in-out infinite; }
.mascot[data-anim="spin"] .m-arm--r { animation: mSpinArmR .8s ease-in-out infinite; }
.mascot[data-anim="spin"] .m-star { animation: mSpinTw .55s ease-in-out infinite; }
.mascot[data-anim="spin"] .m-mouth--grin { display: block; }
.mascot[data-anim="spin"] .m-blushdot { opacity: .95; }
.mascot[data-anim="spin"] .m-deco { display: block; }
.mascot[data-anim="spin"] .m-tw { display: block; opacity: 1; animation: mSpinTw .5s ease-in-out infinite; }

/* --- cheer: coşku — kollar havada, hızlı küçük zıplamalar, kalp+parıltı --- */
@keyframes mCheerBody {
  0%, 100% { transform: translateY(0) scale(1); }
  20%  { transform: translateY(-9px) scale(1.04, .96); }
  45%  { transform: translateY(0) scale(.97, 1.04); }
  65%  { transform: translateY(-6px) scale(1.02); }
  85%  { transform: translateY(0) scale(.99, 1.02); }
}
@keyframes mCheerArmL { 0%, 100% { transform: rotate(-55deg); } 50% { transform: rotate(-95deg) translate(-5px, -3px); } }
@keyframes mCheerArmR { 0%, 100% { transform: rotate(55deg); } 50% { transform: rotate(95deg) translate(5px, -3px); } }
.mascot[data-anim="cheer"] .mascot__body { animation: mCheerBody 1.05s var(--ease-spring) infinite; transform-origin: 50% 88%; }
.mascot[data-anim="cheer"] .m-arm--l { animation: mCheerArmL .53s ease-in-out infinite; }
.mascot[data-anim="cheer"] .m-arm--r { animation: mCheerArmR .53s ease-in-out infinite; }
.mascot[data-anim="cheer"] .m-star { animation: mJumpSm .5s ease-in-out infinite; }
.mascot[data-anim="cheer"] .m-mouth--grin { display: block; }
.mascot[data-anim="cheer"] .m-blushdot { opacity: .95; }
.mascot[data-anim="cheer"] .m-deco { display: block; }
.mascot[data-anim="cheer"] .m-tw { display: block; opacity: 1; animation: mTwinkle .6s ease-in-out infinite; }
.mascot[data-anim="cheer"] .m-shadow { animation: mShadowSquash .53s var(--ease-spring) infinite; }

/* --- dizzy: ani fırlatmada baş döner; zip gözler, minik ağız, kafa dolanır --- */
@keyframes mDizzyBody {
  0%   { transform: rotate(0); }
  16%  { transform: rotate(-13deg) scale(1.05); }
  36%  { transform: rotate(11deg); }
  56%  { transform: rotate(-9deg) scale(1.03); }
  76%  { transform: rotate(6deg); }
  100% { transform: rotate(0); }
}
@keyframes mDizzyStar { 0% { transform: rotate(0); } 100% { transform: rotate(720deg); } }
.mascot[data-anim="dizzy"] .mascot__body { animation: mDizzyBody 1.6s var(--ease-spring) 1; transform-origin: 50% 88%; }
.mascot[data-anim="dizzy"] .m-star { animation: mDizzyStar 1.3s cubic-bezier(.2, .7, .3, 1) 1; }
.mascot[data-anim="dizzy"] .m-lidzip { display: block; }
.mascot[data-anim="dizzy"] .m-mouth--tiny { display: block; }
.mascot[data-anim="dizzy"] .m-tw { display: none; }

/* --- carrying: parmakla taşınırken kaldırılmış gölge + kapma imleci --- */
.mascot.is-carrying { cursor: grabbing; }
.mascot.is-carrying .mascot__svg { filter: drop-shadow(0 18px 26px rgba(255, 190, 80, .35)); }
.mascot.is-carrying .m-halo { opacity: .9; }
.mascot__zzz { position: absolute; top: -4px; right: 6px; display: none; }
.mascot__zzz[hidden] { display: none; }
.mascot.is-asleep .mascot__zzz { display: block; }
.mascot.is-asleep .mascot__zzz i { position: absolute; right: 0; top: 0; font-style: italic; font-weight: 900; color: var(--lav-200); text-shadow: 0 2px 6px rgba(17, 14, 43, .5); animation: mZzz 3.4s ease-in-out infinite; opacity: 0; }
.mascot.is-asleep .mascot__zzz i:nth-child(1) { font-size: 11px; right: 14px; }
.mascot.is-asleep .mascot__zzz i:nth-child(2) { font-size: 15px; right: 4px; animation-delay: 1.1s; }
.mascot.is-asleep .mascot__zzz i:nth-child(3) { font-size: 19px; right: -10px; animation-delay: 2.2s; }
@keyframes mZzz { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 30% { opacity: .95; } 100% { opacity: 0; transform: translateY(-22px) scale(1.15); } }

/* --- İpucu balonu: görsel anlatım (tabak/kalp/ay) --- */
.mascot__hint {
  position: absolute; bottom: calc(100% + 56px); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: linear-gradient(135deg, rgba(43, 35, 104, .96), rgba(58, 53, 133, .96));
  border: 2px solid rgba(205, 188, 255, .4); border-radius: var(--r-pill);
  box-shadow: 0 10px 22px rgba(8, 7, 24, .45); cursor: pointer; pointer-events: auto;
  opacity: 0; transform: translateX(-50%) translateY(8px) scale(.9);
  transition: opacity .4s ease, transform .4s var(--ease-spring);
}
.mascot__hint:not([hidden]) { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.mascot__hint::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; background: inherit; border-right: 2px solid rgba(205, 188, 255, .4); border-bottom: 2px solid rgba(205, 188, 255, .4); transform: translateX(-50%) rotate(45deg) scale(.9); }
.mascot__hint[hidden] { display: none; }
.mascot__hint-ico { display: block; }
.mascot__hint-ico svg { display: block; width: 30px; height: 24px; }
.mascot__hint-lbl { color: var(--lav-100); font-weight: 900; font-size: 13.5px; white-space: nowrap; }

/* --- Emoji balonu: maskotun başının üstünde belirip yukarı kayar --- */
.mascot__emoji {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(1);
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
  animation: mEmojiFloat 2.2s ease-out forwards;
}
.mascot__emoji.is-fading {
  animation: mEmojiFade 0.8s ease-in forwards;
}
@keyframes mEmojiFloat {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.6); }
  15% { opacity: 1; transform: translateX(-50%) translateY(-4px) scale(1.1); }
  60% { opacity: 1; transform: translateX(-50%) translateY(-36px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-56px) scale(0.8); }
}
@keyframes mEmojiFade {
  from { opacity: 1; transform: translateX(-50%) translateY(-36px) scale(1); }
  to { opacity: 0; transform: translateX(-50%) translateY(-48px) scale(0.6); }
}

/* --- Bakım tepsisi (Besle / Sarıl / Uyut / Sesler / Evi) --- */
.mascot__tray {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  display: grid; grid-template-columns: repeat(2, minmax(64px, 1fr)); gap: 10px; padding: 12px 12px;
  background: var(--bg-1); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-1), transparent 6%);
  border: 2px solid var(--card-border); border-radius: var(--r-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md); pointer-events: auto;
  animation: mTrayIn .35s var(--ease-spring);
}
.mascot__tray[hidden] { display: none; }
#mascotBtnHouse { grid-column: 1 / -1; position: relative; }
.mascot__badge {
  position: absolute; top: -7px; right: -4px; width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #ffd76e, #ffb84a); color: #4a2f00;
  font-size: 11px; font-weight: 900; box-shadow: 0 3px 8px rgba(255, 184, 74, .5);
  animation: mBadgePulse 1.6s ease-in-out infinite;
}
.mascot__badge[hidden] { display: none; }
@keyframes mBadgePulse { 0%, 100% { transform: scale(1); box-shadow: 0 3px 8px rgba(255, 184, 74, .5); } 50% { transform: scale(1.22); box-shadow: 0 4px 14px rgba(255, 184, 74, .75); } }
.mascot__tray[hidden] { display: none; }
@keyframes mTrayIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
.mascot__tray button {
  display: grid; justify-items: center; gap: 3px; min-height: 48px; min-width: 64px;
  padding: 7px 10px; border-radius: var(--r-md); border: 2px solid transparent;
  background: rgba(255, 255, 255, .07); cursor: pointer; color: var(--text);
  font-family: inherit; font-weight: 900; font-size: 12.5px;
  transition: transform .18s var(--ease-spring), background-color .18s, border-color .18s;
}
.mascot__tray button:hover { transform: translateY(-2px) scale(1.03); background: rgba(255, 255, 255, .12); }
.mascot__tray button:active { transform: translateY(2px) scale(.97); }
.mascot__tray button:focus-visible { outline: 3px solid var(--lav-300); outline-offset: 2px; }
.mascot__tray-ico svg { display: block; width: 26px; height: 26px; }

/* --- Küçültme düğmesi + köşe modu --- */
.mascot__shrink {
  position: absolute; top: 6px; right: -2px; width: 30px; height: 30px; z-index: 2;
  border-radius: 50%; border: 2px solid rgba(205, 188, 255, .5);
  background: rgba(43, 35, 104, .9); color: var(--lav-100);
  font-size: 17px; font-weight: 900; line-height: 1; cursor: pointer; pointer-events: auto;
  transition: transform .2s var(--ease-spring), background-color .2s;
}
.mascot__shrink:hover { transform: scale(1.1); background: rgba(64, 52, 140, .95); }
.mascot__shrink:focus-visible { outline: 3px solid var(--lav-300); outline-offset: 2px; }
.mascot-mini {
  position: fixed; right: 14px; bottom: calc(var(--dock) + 12px); z-index: 95;
  width: 54px; height: 54px; border-radius: 50%; padding: 0;
  background: var(--bg-1); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-1), transparent 14%);
  border: 2px solid var(--card-border); cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-spring);
}
.mascot-mini[hidden] { display: none; }
.mascot-mini:hover { transform: scale(1.08) rotate(-6deg); }
.mascot-mini svg { position: absolute; inset: 5px; width: 44px; height: 44px; filter: brightness(.9); }
.mascot-mini i { position: absolute; top: -4px; right: -2px; font-style: italic; font-weight: 900; font-size: 12px; color: var(--lav-200); animation: mZzz 3s ease-in-out infinite; }

/* --- Parçacıklar: kalp / kırıntı / parıltı --- */
.mascot__fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.mx-heart { position: absolute; bottom: 78px; width: 13px; height: 13px; background: #ff8fae; transform: rotate(-45deg); animation: mFloatUp 2.2s ease-out both; border-radius: 0 0 0 3px; }
.mx-heart::before, .mx-heart::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: inherit; }
.mx-heart::before { top: -6.5px; left: 0; }
.mx-heart::after { top: 0; right: -6.5px; }
@keyframes mFloatUp { 0% { opacity: 0; transform: translate(0, 8px) rotate(-45deg) scale(.5); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift, 12px), -64px) rotate(-45deg) scale(1.1); } }
.mx-crumb { position: absolute; bottom: 84px; width: 5px; height: 5px; border-radius: 50%; background: #e0a34a; animation: mCrumble 1.4s ease-out both; }
@keyframes mCrumble { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--drift, -14px), 26px) scale(.4); } }
.mx-spark { position: absolute; bottom: 92px; width: 10px; height: 10px; background: #ffe9a8; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: mSparkTw 1.3s ease-in-out both; }
@keyframes mSparkTw { 0% { opacity: 0; transform: scale(.3) rotate(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) rotate(120deg); } }

/* --- Ay/koyu tema uyumu --- */
[data-theme="day"] .mascot__svg { filter: drop-shadow(0 8px 16px rgba(244, 169, 62, .35)); }
[data-theme="day"] .mx-plate svg ellipse:first-child { fill: #b9bce8; }

/* --- Mobil ≤640: sahneyi hafif küçült, konum sabit --- */
@media (max-width: 640px) {
  .mascot { width: 118px; right: 10px; }
  .mascot__stage { width: 118px; }
  .mascot__body { width: 118px; }
  .mascot__svg { width: 118px; }
  .mx-plate { left: -44px; width: 48px; }
  .mascot__hint-lbl { font-size: 12px; }
  .mascot__hint-ico svg { width: 24px; height: 20px; }
  .mascot__tray { right: -4px; }
  .mascot-mini { right: 10px; }
}

/* Erişilebilirlik: hareket isteği azaltıldığında Pırıltı sakin dursun,
   parçacıklar/halolar süsü kalkar; işlevler (dokunma, tepsi, çip, ev) aynen çalışır. */
@media (prefers-reduced-motion: reduce) {
  .m-halo, .m-tw { display: none; }
  .mascot__fx { display: none; }
  .mx-plate { transition: none; }
  .mascot[data-anim] .m-star { animation: none !important; }
  .mascot[data-anim="waking"] .mascot__body { animation: none !important; opacity: 1; }
  .mascot[data-anim="dance"] .mascot__body, .mascot[data-anim="dance"] .m-arm--l, .mascot[data-anim="dance"] .m-arm--r,
  .mascot[data-anim="spin"] .mascot__body, .mascot[data-anim="spin"] .m-arm--l, .mascot[data-anim="spin"] .m-arm--r,
  .mascot[data-anim="cheer"] .mascot__body, .mascot[data-anim="cheer"] .m-arm--l, .mascot[data-anim="cheer"] .m-arm--r,
  .mascot[data-anim="dizzy"] .mascot__body, .mascot[data-anim="dizzy"] .m-star { animation: none !important; }
  .mascot__emoji { animation: none !important; opacity: 0 !important; }
  .mascot.is-asleep .m-blanket, .mascot.is-asleep .m-bedmoon { animation: none !important; }
  .mascot.is-asleep .m-lidhappy { animation: none !important; stroke-dashoffset: 0; }
  .mascot.is-asleep .m-pillow, .mascot.is-asleep .m-blanket, .mascot.is-asleep .m-bedmoon { transition: none; }
  .mascot.is-listen .m-star, .mascot.is-dragging .mascot__body::after, .mascot__badge { animation: none !important; }
  .mchip__in { animation: none !important; }
  .mhouse__panel { animation: none !important; opacity: 1; }
  .mhouse .mh-sun, .mhouse .mh-flag, .mhouse .mh-cloud, .mhouse g.popin, .mhouse g[class^="is-"] { animation: none !important; }
  .mh-heart, .mh-spark, .mh-fly { animation: none !important; opacity: 0; }
}

/* ===== Pırıltı: sürükleme çipleri (kurabiye + battaniye) ===== */
.mascot__items { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.mchip {
  position: absolute; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  cursor: grab; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 6px 10px rgba(17, 14, 43, .35));
  transition: transform .38s var(--ease-spring), opacity .35s ease;
}
.mchip svg { display: block; width: 44px; height: 44px; pointer-events: none; }
@keyframes mChipIn { 0% { opacity: 0; transform: scale(.3) rotate(-24deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.mchip.is-drag { transition: opacity .2s; cursor: grabbing; filter: drop-shadow(0 14px 18px rgba(17, 14, 43, .4)); z-index: 6; }
.mchip__in { display: block; }
/* Giriş animasyonu İÇTE: dış el'in transform'unu asla ezmez (isabet testi doğru kalır) */
.mchip.is-in .mchip__in { animation: mChipIn .45s var(--ease-spring); }
/* Dış çipte CSS animasyonu YASAK (site-geneli ".is-in"→popIn dahil): animasyonun
   "from" karesi doğuş penceresinde satır-içi sürükleme transform'unu ezer, isabet
   testi parmağın değil doğuşun konumunu okurdu. Dış el'in transform'u yalnız
   sürüklemecilerindir; giriş görseli .mchip__in içindedir. */
.mchip { animation: none; }
.mchip.is-settle { transition: transform .45s var(--ease-spring); }
.mchip.is-fading { opacity: 0; }
/* davet halkası: çip parmağa gelince yıldız "buraya getir" der */
.mascot.is-dragging .mascot__body::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 3px dashed rgba(255, 216, 110, .9); pointer-events: none;
  animation: mInvite 1.2s ease-in-out infinite;
}
@keyframes mInvite { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.06); opacity: 1; } }

/* ===== Pırıltı: masal dinleme evreleri (sakinkleşme) ===== */
.mascot.is-listen .m-halo { opacity: .5; animation-duration: 9s; }
.mascot.is-listen .m-star { animation: mListenBreathe 6s ease-in-out infinite; }
@keyframes mListenBreathe { 0%, 100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-2.5px) rotate(-2.6deg); } }
.mascot.is-calm .m-lid { transform: scaleY(.45); transition: transform .9s ease; }
.mascot.is-drowsy .m-lid { transform: scaleY(.82); transition: transform .9s ease; }
.mascot.is-drowsy .m-halo { opacity: .3; }

/* ===== Pırıltı'nın Evi: kapanı + pastel bahçe sahnesi ===== */
.mhouse { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 18px; }
.mhouse[hidden] { display: none; }
.mhouse__backdrop { position: absolute; inset: 0; background: rgba(24, 18, 48, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mhouse__panel {
  position: relative; width: min(430px, 100%); padding: 14px 14px 9px;
  border-radius: var(--r-lg);
  background: var(--bg-1); /* fallback: eski WebView */
  background: color-mix(in oklab, var(--bg-1), transparent 3%);
  border: 2px solid var(--card-border); box-shadow: var(--shadow-lg);
  animation: mHouseIn .45s var(--ease-spring);
}
@keyframes mHouseIn { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
.mhouse__head { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; }
.mhouse__head svg { width: 22px; height: 22px; }
.mhouse__title { flex: 1; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.mhouse__close {
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  border: 2px solid rgba(205, 188, 255, .5); background: rgba(43, 35, 104, .9);
  color: var(--lav-100); font-size: 15px; font-weight: 900; cursor: pointer;
  transition: transform .2s var(--ease-spring);
}
.mhouse__close:hover { transform: scale(1.08); }
.mhouse__scene { position: relative; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 231, 168, .3); }
.mhouse__svg { display: block; width: 100%; height: auto; }
.mhouse__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mhouse__note { margin: 8px 2px 2px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.mhouse .mh-item { cursor: pointer; }
.mhouse .mh-item:hover { filter: brightness(1.07) saturate(1.08); }
.mhouse .mh-locked, .mhouse .mh-locked * {
  fill: none !important; stroke: rgba(138, 100, 214, .34) !important;
  stroke-width: 1.8 !important; stroke-dasharray: 4 4 !important;
  vector-effect: non-scaling-stroke; opacity: .8; cursor: default;
}
/* sahne süsleri: güneş yıldızı, bayraklar, bulut */
.mhouse .mh-sun { transform-box: fill-box; transform-origin: center; animation: mhSunTurn 26s linear infinite; }
@keyframes mhSunTurn { to { transform: rotate(360deg); } }
.mhouse .mh-cloud { animation: mhCloud 7s ease-in-out infinite; }
@keyframes mhCloud { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.mhouse .mh-flag { transform-box: fill-box; transform-origin: top center; animation: mhFlag 3.2s ease-in-out infinite; }
@keyframes mhFlag { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }
/* lamba ışıması (pencere + bahçe lambası; dokunmaya kalıcı) */
.mhouse .mh-glow { opacity: 0; transition: opacity .6s ease; }
.mhouse .mh-glow.is-lamp { opacity: .8; animation: mhGlow 3.4s ease-in-out infinite; }
@keyframes mhGlow { 0%, 100% { opacity: .8; } 50% { opacity: .5; } }
/* etkileşim animasyonları */
.mhouse g[class^="is-"], .mhouse g[class*=" is-"] { transform-box: fill-box; transform-origin: center; }
.mhouse g.is-wiggling { animation: mhWiggle .8s ease-in-out; }
@keyframes mhWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(4deg); } 75% { transform: rotate(-4deg); } }
.mhouse g.is-swinging { transform-origin: top center; animation: mhSwing 2.4s ease-in-out; }
@keyframes mhSwing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(9deg); } 65% { transform: rotate(-9deg); } 85% { transform: rotate(4deg); } }
.mhouse g.is-hopping { transform-origin: center bottom; animation: mhHop 1.1s var(--ease-spring); }
@keyframes mhHop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px) rotate(-8deg); } 60% { transform: translateY(0); } 80% { transform: translateY(-4px) rotate(4deg); } }
.mhouse g.popin { animation: mhPopIn .8s var(--ease-spring) both; }
@keyframes mhPopIn { 0% { opacity: 0; transform: scale(.25) rotate(-14deg); } 60% { opacity: 1; transform: scale(1.16) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
/* ev içi efektleri: kalp / parıltı / kelebek */
.mh-heart { position: absolute; width: 12px; height: 12px; background: #ff8fae; border-radius: 0 0 0 3px; transform: rotate(-45deg); animation: mhHeartUp 1.5s ease-out both; }
.mh-heart::before, .mh-heart::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: inherit; }
.mh-heart::before { top: -6px; left: 0; }
.mh-heart::after { top: 0; right: -6px; }
@keyframes mhHeartUp { 0% { opacity: 0; transform: rotate(-45deg) translate(0, 4px) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(-45deg) translate(4px, -46px) scale(1.05); } }
.mh-spark { position: absolute; width: 11px; height: 11px; background: #ffe9a8; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: mhSparkTw 1.1s ease-in-out both; }
@keyframes mhSparkTw { 0% { opacity: 0; transform: scale(.3) rotate(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4) rotate(120deg); } }
.mh-fly { position: absolute; width: 12px; height: 14px; animation: mhFlyPath 4.8s ease-in-out forwards; }
.mh-fly::before, .mh-fly::after { content: ""; position: absolute; top: 2px; width: 7px; height: 10px; background: #f8b7d8; border-radius: 70% 70% 55% 55%; }
.mh-fly::before { left: 0; transform-origin: right center; animation: mhWingA .22s ease-in-out infinite alternate; }
.mh-fly::after { right: 0; transform-origin: left center; animation: mhWingB .22s ease-in-out infinite alternate; }
@keyframes mhWingA { from { transform: rotateY(20deg) scaleX(1); } to { transform: rotateY(70deg) scaleX(.5); } }
@keyframes mhWingB { from { transform: rotateY(-20deg) scaleX(1); } to { transform: rotateY(-70deg) scaleX(.5); } }
@keyframes mhFlyPath { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: 1; } 30% { transform: translate(34px, -26px) rotate(8deg); } 55% { transform: translate(12px, -52px) rotate(-6deg); } 80% { transform: translate(44px, -66px) rotate(6deg); } 100% { opacity: 0; transform: translate(30px, -84px) rotate(0); } }

/* --- Mobil ≤640: sahne + panel ayarları --- */
@media (max-width: 640px) {
  .mhouse { padding: 12px; }
}

/* ===== Ebeveyn: Pırıltı ayar kartı (ebeveyn.php) ===== */
.mascot-settings { max-width: 720px; }
.mascot-settings__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 22px; margin-top: 16px; }
background: var(--bg-2); /* fallback: eski WebView */
.mascot-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: color-mix(in oklab, var(--bg-2), transparent 22%); border: 2px solid var(--card-border); }
.mascot-setting__lbl { font-weight: 800; font-size: 14.5px; }
.mascot-setting__sub { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.mascot-setting .switch { flex: 0 0 auto; }
.mascot-setting select {
  appearance: none; -webkit-appearance: none; padding: 9px 34px 9px 13px; border-radius: 12px;
  border: 2px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer;
}
.mascot-hist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.mascot-settings__hist-title { margin: 22px 0 2px; font-size: 17px; letter-spacing: .2px; color: var(--text); }
background: var(--bg-2); /* fallback: eski WebView */
.mascot-hist li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--bg-2), transparent 40%); border: 1.5px solid var(--card-border); font-size: 13.5px; font-weight: 700; }
.mascot-hist li time { margin-left: auto; color: var(--muted); font-size: 12px; }
.mascot-hist__ico { font-size: 17px; }
.mascot-hist__empty { justify-content: center; color: var(--muted); font-weight: 600 !important; }
.mascot-settings__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mascot-settings__note { margin-top: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.6; }

/* Çevrimdışı rozet (servis işçisi aktifken yalnızca gerçek çevrimdışıyken görünür) */
.offline-pill { position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; padding: 9px 18px; border-radius: 999px; background: rgba(16, 18, 44, .92); color: #ffe9a8; font-weight: 700; font-size: 13px; box-shadow: 0 10px 26px rgba(8, 10, 30, .4); pointer-events: none; }
body.has-player .offline-pill { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* Gökyüzü sayfası */
.skybox-hero { text-align: center; padding: clamp(26px, 5vw, 54px) 20px 10px; }
.skybox__kicker { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--star-deep); opacity: .8; }
.skybox-hero h1 { margin-top: 8px; }
.skybox-lead { max-width: 52ch; margin: 10px auto 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.skybox-count { margin-top: 14px; font-weight: 800; color: var(--star-deep); min-height: 1.4em; }
.skybox { position: relative; margin: 18px auto 0; max-width: 720px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 231, 168, .14); background:
  radial-gradient(120% 90% at 80% -10%, rgba(255, 215, 110, .08), transparent 55%),
  radial-gradient(100% 80% at 10% 110%, rgba(122, 130, 214, .12), transparent 60%),
  linear-gradient(180deg, #10122c 0%, #0c0e22 100%);
  box-shadow: 0 24px 60px rgba(10, 12, 34, .35); cursor: crosshair; }
.skybox-svg { display: block; width: 100%; height: auto; max-width: 320px; margin: 0 auto; aspect-ratio: 320 / 260; }
.sky-star { outline: none; }
.sky-star circle { will-change: filter, opacity; }
.sky-star { animation: skyStarTwinkle 2.6s ease-in-out infinite; cursor: pointer; }
.sky-star--0 { animation-name: skyStarTwinkle; }
.sky-star--1 { animation-name: skyStarTwinkleSoft; animation-duration: 3.4s; }
.sky-star--2 { animation-name: skyStarTwinkleSoft; animation-duration: 4.2s; }
@keyframes skyStarTwinkle { 0%, 100% { opacity: 1; filter: brightness(1); } 50% { opacity: .55; filter: brightness(1.35); } }
@keyframes skyStarTwinkleSoft { 0%, 100% { opacity: .92; } 50% { opacity: .62; } }
.sky-star:focus-visible circle, .sky-star:hover circle { filter: brightness(1.5); }
.skybox-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: #d9d4f5; padding: 22px; }
.skybox-empty__title { font-family: var(--font-display); font-size: 20px; color: #ffe9a8; }
.skybox-empty p { max-width: 34ch; line-height: 1.65; font-size: 14px; }
.skybox-empty .btn { justify-self: center; margin-top: 6px; }
.skybox-info { position: absolute; left: 14px; right: 14px; bottom: 14px; max-width: 320px; border-radius: 14px; padding: 12px 16px; background: rgba(12, 14, 34, .9); border: 1px solid rgba(255, 231, 168, .18); color: #efeaff; pointer-events: none; }
.skybox-info__title { font-weight: 800; font-size: 14.5px; color: #ffe9a8; }
.skybox-info__meta { font-size: 12.5px; color: #b9b3d8; margin-top: 2px; }
.skybox-info__gains { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.skybox-note { margin: 12px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }
.skybox-chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(255, 226, 122, .16); color: #ffd76e; font-size: 12px; font-weight: 700; }

/* --- Rozet çubuğu: gökyüzü altındaki ödüller --- */
.sky-badges { margin: 18px auto 0; max-width: 720px; padding: 14px 16px; background: linear-gradient(135deg, rgba(255, 226, 122, .12), rgba(154, 176, 240, .12)); border: 2px solid rgba(255, 226, 122, .25); border-radius: var(--r-lg); box-shadow: 0 8px 20px rgba(12, 14, 34, .1); }
.sky-badges[hidden] { display: none; }
.sky-badges__title { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--star-deep); text-align: center; }
.sky-badges__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sky-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card-bg); border: 2px solid var(--card-border); border-radius: 999px; box-shadow: 0 4px 12px rgba(12, 14, 34, .08); font-weight: 700; font-size: 13px; color: var(--text); transition: transform .2s var(--ease-spring), box-shadow .2s; cursor: default; }
.sky-badge:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 18px rgba(255, 215, 110, .25); }
.sky-badge__emoji { font-size: 18px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
[data-theme="night"] .sky-badge { background: rgba(255, 255, 255, .06); border-color: rgba(255, 226, 122, .35); }
[data-theme="night"] .sky-badge:hover { box-shadow: 0 8px 18px rgba(255, 215, 110, .35); }

.sky-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.sky-week__card { background: var(--card-bg); border: 2px solid var(--card-border); border-radius: var(--r-lg, 18px); padding: 18px 20px; box-shadow: var(--shadow-sm); display: grid; gap: 6px; align-content: start; }
.sky-week__card--wide { grid-column: 1 / -1; }
.sky-week__num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--star-deep); font-variant-numeric: tabular-nums; }
.sky-week__label { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.sky-week__chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* fallback: eski WebView */ .skybox-chip { color: #6a54c8; }
.skybox-chip, .sky-week__chips .skybox-chip { background: rgba(154, 176, 240, .14); color: color-mix(in oklab, #6a54c8, var(--text) 30%); }
[data-theme="night"] .sky-week__chips .skybox-chip { background: rgba(255, 226, 122, .14); color: #ffd76e; }
.sky-week__empty { color: var(--muted); font-size: 13.5px; }
.sky-week__loved { display: inline-flex; align-items: center; gap: 10px; margin: 0 14px 10px 0; text-decoration: none; color: var(--text); font-weight: 700; font-size: 13.5px; }
.sky-week__loved img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(12, 14, 34, .18); }
.sky-week__loved:hover img { transform: scale(1.05); }

.nightmode__sky-link { color: #ffd76e; font-weight: 700; font-size: 13px; text-decoration: none; display: inline-flex; gap: 4px; }

@media (max-width: 560px) {
  .skybox-info { left: 10px; right: 10px; max-width: none; }
  .sky-week__num { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-star { animation: none; }
}

/* ============================================================
   Devam Et rafı (ana sayfa) — yarım kalan masallar
   ============================================================ */
.resume-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.story-card__progress {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  overflow: hidden; pointer-events: none;
}
.story-card__progress::before {
  content: ""; position: absolute; inset: 0; width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd76e, #f4a93e);
  box-shadow: 0 0 8px rgba(255, 215, 110, .65);
}
[data-theme="night"] .story-card__progress { background: rgba(255, 255, 255, .18); }
.resume-section .story-card__dur { font-variant-numeric: tabular-nums; }

/* ============================================================
   Kutlama görseli (masal bitince) — canvas önizleme + indirme
   ============================================================ */
.celebrate { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 18px; background: rgba(8, 6, 24, .78); backdrop-filter: blur(6px); }
.celebrate[hidden] { display: none; }
.celebrate__card {
  width: min(420px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--card-bg, #fff); border: 2px solid var(--card-border, rgba(255, 255, 255, .14));
  border-radius: 22px; padding: 18px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: celebrate-in .5s var(--ease-out, ease);
}
@keyframes celebrate-in { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
.celebrate__img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.celebrate__title { font-family: var(--font-display, inherit); font-size: 19px; margin: 14px 0 4px; }
.celebrate__sub { color: var(--muted, #6b6486); font-size: 13.5px; margin: 0 0 14px; }
.celebrate__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.celebrate__hint { color: var(--muted, #6b6486); font-size: 12px; margin: 12px 0 0; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .celebrate__card { animation: none; } }

/* ============================================================
   Okuma Modu 2.0 — tam ekran okuyucu
   ============================================================ */
.reader-launch { margin-top: 14px; }
.reader {
  position: fixed; inset: 0; z-index: 1150;
  display: flex; flex-direction: column;
  background: #faf6ec; color: #2c2440;
}
body.reader-open { overflow: hidden; }
.reader__bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: #fffaf0; border-bottom: 2px solid rgba(190, 160, 100, .35);
}
.reader__title { margin: 0; font-weight: 800; font-size: 15px; color: #6b4fa0; flex: 1; min-width: 120px; }
.reader__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reader__tools [data-reader-size-out] { font-size: 12.5px; font-weight: 700; color: #857a9c; min-width: 44px; text-align: center; }
.reader__btn {
  border: 1.5px solid rgba(107, 79, 160, .35); background: #fff; color: #6b4fa0;
  border-radius: 10px; padding: 6px 12px; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.reader__btn:hover { transform: translateY(-1px); }
.reader__btn[aria-pressed="true"] { background: #efe6ff; border-color: #6b4fa0; }
.reader__scroll { flex: 1; overflow-y: auto; padding: 26px 18px 60px; }
.reader__page {
  max-width: 680px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif;
  font-size: 19px; line-height: 1.75;
}
.reader__page p { margin: 0 0 1.1em; }
/* Karaoke: sesli takip vurgusu (v1.6.13) */
.reader__w { border-radius: 6px; transition: background-color .18s, color .18s; }
.reader__w--active { background: #ffcb4d; color: #4a3208; box-shadow: 0 0 0 3px #ffcb4d; }
@media (prefers-reduced-motion: reduce) { .reader__w { transition: none; } }
.reader__page--loose { line-height: 2.2; word-spacing: .14em; }
.reader__page--dyslexic {
  font-family: "Comic Sans MS", "Segoe UI", Verdana, sans-serif;
  letter-spacing: .045em; word-spacing: .2em; line-height: 2;
}
[data-theme="night"] .reader { background: #17142b; color: #efe9ff; }
[data-theme="night"] .reader__bar { background: #1e1938; border-bottom-color: rgba(255, 255, 255, .12); }
[data-theme="night"] .reader__btn { background: #241f42; color: #d9ccff; border-color: rgba(217, 204, 255, .3); }
[data-theme="night"] .reader__btn[aria-pressed="true"] { background: #3a2f66; }

/* ============================================================
   Uyku rutini — nefes bulutu
   ============================================================ */
.breath {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 24px; align-items: center;
  background: var(--card-bg); border: 2px solid var(--card-border);
  border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.breath__circle-wrap { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.breath__ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed var(--card-border); opacity: .6; }
.breath__circle {
  width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #ffd76e 55%, #f0b95a);
  box-shadow: 0 8px 30px rgba(255, 190, 80, .35);
  transform: scale(1);
  transition: transform 4s cubic-bezier(.4, 0, .2, 1);
}
.breath__circle.is-in { transform: scale(1.7); transition: transform 4s cubic-bezier(.4, 0, .2, 1); }
.breath__circle.is-hold { transform: scale(1.7); transition: transform none; }
.breath__circle.is-out { transform: scale(1); transition: transform 6s cubic-bezier(.4, 0, .2, 1); }
.breath__count {
  position: absolute; inset: auto 0 -6px; text-align: center;
  font-weight: 800; color: var(--text); font-size: 15px;
}
.breath__panel { display: grid; gap: 12px; }
.breath__step { font-weight: 800; color: var(--star-deep, #6b4fa0); margin: 0; }
.breath__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.breath__steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 14.5px; transition: color .3s; }
.breath__steps li.is-active { color: var(--text); }
.breath__steps-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255, 215, 110, .18); color: var(--text);
  font-size: 13px; font-weight: 800; flex: none;
}
.breath__steps li.is-active .breath__steps-num { background: #ffd76e; color: #3a2c10; }
.breath__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.breath__hint { color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 700px) {
  .breath { grid-template-columns: 1fr; }
  .breath__circle-wrap { max-width: 280px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .breath__circle { transition: none; }
  .breath__ring { animation: none; }
}

/* ============================================================
   Haftalık ebeveyn raporu
   ============================================================ */
.report-days { display: grid; gap: 8px; margin-top: 4px; }
.report-days__row { display: grid; grid-template-columns: 42px 1fr 34px; align-items: center; gap: 10px; }
.report-days__day { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.report-days__bar {
  height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden;
}
.report-days__bar::before {
  content: ""; position: absolute; inset: 0; width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd76e, #f4a93e);
  transition: width .5s var(--ease-out, ease);
}
.report-days__bar.is-empty::before { background: rgba(255, 255, 255, .08); }
.report-days__num { font-size: 12.5px; font-weight: 800; text-align: right; color: var(--text); }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.report-table th, .report-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--card-border);
  vertical-align: top;
}
.report-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.report-table td a { color: var(--text); font-weight: 800; text-decoration: none; border-bottom: 1.5px solid rgba(255, 215, 110, .5); }
.report-table .skybox-chip { margin: 2px 4px 2px 0; }
@media (max-width: 640px) {
  .report-table thead { display: none; }
  .report-table tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1.5px solid var(--card-border); }
  .report-table td { border: none; padding: 2px 0; }
  .report-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 800; font-size: 12px; }
}
/* Baskı: rapor sayfası sadeleştirilir */
@media print {
  .site-header, .site-footer, .tabbar, .tabbar-sheet, #masalPlayer, .nightmode, .skybox-note, #btnReportPrint,
  .mascot, #toTop, .toast, .new-banner, .nav-progress, .nav-loading, .skip-link, .celebrate, .offline-pill { display: none !important; }
  body { background: #fff !important; color: #111 !important; padding-bottom: 0 !important; }
  .container { max-width: none !important; padding-inline: 0 !important; }
  .skybox-hero, .sky-week__card, .report-table, .report-table th, .report-table td { border-color: #ddd !important; }
  .skybox-lead strong, .report-days__num { color: #111 !important; }
  a { color: #111 !important; }
  .report-days__row, .report-table tr, .sky-week__card { break-inside: avoid; page-break-inside: avoid; }
  .section { break-inside: avoid-page; }
}

/* ============================================================
   Yeni masal bildirimi banner'ı
   ============================================================ */
.new-banner {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1100; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 24px);
  background: var(--card-bg, #fff); border: 2px solid var(--card-border, rgba(0,0,0,.1));
  border-radius: 16px; padding: 10px 12px 10px 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  animation: newbanner-in .45s var(--ease-out, ease);
}
@keyframes newbanner-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.new-banner__text { font-weight: 800; font-size: 14px; }
.new-banner__btn { padding: 7px 14px; font-size: 13.5px; flex: none; }
.new-banner__close {
  border: none; background: transparent; color: var(--muted, #888);
  font-size: 14px; cursor: pointer; padding: 6px; line-height: 1; flex: none;
}
@media (max-width: 480px) { .new-banner { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .new-banner { animation: none; } }

/* ============================================================
   2026 tasarım iyileştirmeleri — mobil native his + PC oynatıcı
   Referans: iOS 26 Liquid Glass (yüzen nav, kaydırınca küçülme),
   Material 3 Expressive (yaylı hareket, büyük dokunma hedefleri)
   ============================================================ */

/* Native dokunma hissi: mavi tık parlaması UI chrome'da kapalı.
   v1.6.12: html overscroll-behavior-y:contain kaldırıldı — global pull-to-refresh
   kilidi yok; sarkma yalnızca gece ekranında (.nightmode__inner) engellenir. */
html {
  -webkit-tap-highlight-color: transparent;
}
.tabbar, .site-header, .player__bar, .nightmode, .btn, .tabbar__item, .icon-btn,
.story-card__play, .story-card__playfab, .player__ctl, .chip, .breath__btn {
  -webkit-user-select: none; user-select: none; /* native uygulamalarda chrome metni seçilemez */
}

/* Ebeveyn sayfası — Haftalık Rapor kartı */
.section--tight { padding-block: clamp(14px, 2.6vw, 24px) 0; }
.parent-report-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 215, 110, .14), rgba(154, 176, 240, .1));
  border: 2px solid var(--card-border); border-radius: 22px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.parent-report-card__ico {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: 16px; background: linear-gradient(135deg, var(--lamp), var(--lamp-deep));
  color: var(--lamp-ink); box-shadow: 0 4px 0 var(--lamp-edge), 0 10px 20px rgba(200, 130, 20, .3);
}
.parent-report-card__ico .icon { width: 26px; height: 26px; }
.parent-report-card__body { flex: 1 1 240px; min-width: 0; }
.parent-report-card__body h2 { margin: 0 0 4px; font-size: 18px; }
.parent-report-card__body p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.parent-report-card__btn { flex: none; }

/* Alt sekme çubuğu: iOS 26 "scroll-shrink" davranışı.
   Aşağı kaydırınca çubuk saklanır (içerik kazanır), yukarı kaydırınca döner;
   sayfa içine girince kompakt moda geçer. Oynatıcı da --tabbar-h 0 ile
   aynı anda aşağı süzülür. */
.tabbar {
  transition: transform .38s var(--ease-spring), opacity .3s, height .3s var(--ease-out), border-radius .3s, padding .3s;
  will-change: transform;
}
body.nav-hidden .tabbar {
  transform: translateY(calc(100% + 16px));
  opacity: .4;
  pointer-events: none; /* gizliyken yanlış dokunuş almasın */
}
body.nav-hidden { --tabbar-h: 0px; } /* player'ın alt boşluğu da küçülür */
/* player çubuğu ve alttakiler de nav-hidden ile birlikte yumuşakça süzülsün */
.player, #toTop, .toast { transition: bottom .38s var(--ease-spring); }
.tabbar--compact { height: 58px; padding: 5px; border-radius: 24px; }
.tabbar--compact .tabbar__item { font-size: 9.5px; }
.tabbar--compact .tabbar__item .icon { width: 20px; height: 20px; }
.tabbar--compact .tabbar__item[aria-current="page"] { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .tabbar { transition: none; }
}

/* ---------- PC oynatıcı: kompakt, orantılı, zarif (≥861px tabbar yok) ----------
   Sorun: dar masaüstünde (861–1160px) çubuk tam genişlik + dev butonlarla
   şişkin duruyordu. Kompakt ölçüler + hacim/hız kontrolleri geri geliyor. */
@media (min-width: 861px) {
  .player__bar {
    max-width: 880px;
    border-radius: 24px;
    padding: 7px clamp(10px, 1.6vw, 16px) 7px 7px;
    min-height: 62px;
  }
  .player__cover { width: 46px; height: 46px; border-radius: 14px; }
  .player__expand { border-radius: 14px; }
  .player__expand-hint { border-radius: 14px; }
  .player__eq { left: 3px; bottom: 3px; }
  .player__meta { width: clamp(130px, 16vw, 220px); }
  .player__title { font-size: 13.5px; }
  .player__sub { font-size: 11.5px; }
  .player__ctl--sm { width: 36px; height: 36px; }
  .player__ctl--sm .icon { width: 17px; height: 17px; }
  .player__ctl--main { width: 44px; height: 44px; }
  .player__ctl--main .icon { width: 20px; height: 20px; }
  .player__ctl .icon { width: 19px; height: 19px; }
  .player__seek-track { height: 6px; }
  .player__time { font-size: 11.5px; }
  .player__rate { min-width: 42px; height: 34px; font-size: 12px; }
  .player__autonext { min-width: 34px; height: 34px; }
  .player__autonext .icon { width: 17px; height: 17px; }
  .player__volume input[type="range"] { width: 72px; }
  /* Klavye kısayolları PC'de var; çubuğa odaklı hover derinliği */
  .player__bar { box-shadow: 0 16px 44px rgba(6, 5, 22, .55), inset 0 1px 0 rgba(255, 255, 255, .07); }
  .player__bar:hover { border-color: color-mix(in oklab, var(--lamp) 26%, var(--border)); }
}

/* PC gece dinleme ekranı: butonlar orantılı, kapak biraz daha büyük */
@media (min-width: 861px) and (min-height: 700px) {
  .nightmode__art img { width: clamp(220px, 32vh, 340px); }
  .nightmode__ctl--main { width: 74px; height: 74px; }
  .nightmode__ctl--main .icon { width: 30px; height: 30px; }
  .nightmode__ctl--sd { width: 46px; height: 46px; }
  .nightmode__ctl--sd .icon { width: 20px; height: 20px; }
  .nightmode__ctl .icon { width: 20px; height: 20px; }
}

/* Mobil: hero buton dokunma hedefleri en az 44px (M3 yönergesi);
   .btn--sm'a dokunmuyoruz (chip/mini aksiyonlar küçük kalmalı). */
@media (max-width: 640px) {
  .hero__cta .btn { min-height: 48px; }
  .btn:not(.btn--sm) { min-height: 44px; }
}

/* ============================================================
   MASALİA 2.0 — Yeni Ana Sayfa ve Mobil Bileşenler
   ============================================================ */

/* Katılımcı (compact) kategori kartı */
.cat-card--compact {
  padding: 12px 14px;
  gap: 10px;
  min-width: 160px;
}
.cat-card--compact .cat-card__icon {
  width: 38px; height: 38px; border-radius: 12px;
}
.cat-card--compact .cat-card__icon .icon {
  width: 20px; height: 20px;
}
.cat-card--compact .cat-card__txt b { font-size: 14px; }
.cat-card--compact .cat-card__txt span { font-size: 11.5px; }

/* Yatay kaydırılabilir alanlarda (h-scroll) sadeleştirilmiş kartlar */
.h-scroll .cat-card--compact { flex: 0 0 auto; }

/* Gelişim Alanı kartları (horizontal) */
.domain-grid.h-scroll { grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 240px); }
.domain-card { position: relative; }
.domain-card__icon { display: inline-flex; }
.domain-card__txt b { font-size: 15px; }
.domain-card__txt span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .domain-grid.h-scroll { grid-auto-columns: 200px; }
}

/* Star Intro Bölümü */
.star-intro { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.star-intro__art { text-align: center; }
.star-intro__art svg { width: 120px; height: 120px; color: var(--lamp); filter: drop-shadow(0 12px 30px rgba(255, 203, 77, .3)); }
.star-intro__kicker { font-size: 13px; font-weight: 800; color: var(--lamp); margin: 0 0 8px; }
.star-intro__txt h2 { font-size: clamp(28px, 4.5vw, 42px); margin: 0 0 12px; }
.star-intro__txt p { color: var(--muted); margin: 0 0 20px; max-width: 55ch; }
@media (min-width: 768px) {
  .star-intro { grid-template-columns: 160px 1fr; }
  .star-intro__art svg { width: 180px; height: 180px; }
}

/* Ebeveyn Bilgilendirme Bölümü */
.parent-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.5vw, 24px); margin-bottom: 24px; }
.parent-info__card { background: var(--card-bg); border: 2px solid var(--card-border); border-radius: var(--r-xl); padding: 24px; display: grid; gap: 12px; transition: transform .3s var(--ease-spring), box-shadow .25s; }
.parent-info__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.parent-info__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--lamp), var(--lamp-deep)); color: var(--lamp-ink); box-shadow: 0 4px 0 var(--lamp-edge); }
.parent-info__icon .icon { width: 24px; height: 24px; }
.parent-info__card h3 { margin: 0; font-size: 17px; }
.parent-info__card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.parent-info__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* NOT: Eski köşe yıldız maskotu (.star-mascot) stilleri kaldırıldı —
   artık HTML'de yok; cache'lenmiş eski sayfalarda bile render edilemez.
   Tek maskot Pırıltı (.mascot / mascot.js). */

/* Mobilde body padding-bottom = tabbar alanı */
@media (max-width: 860px) {
  body { padding-bottom: calc(var(--tabbar-h, 84px) + env(safe-area-inset-bottom, 0px) + 16px); }
  /* Mini oynatıcı açıkken: gerçek ölçülen yükseklik (player.js --player-h yazar) */
  body.has-player { padding-bottom: calc(var(--tabbar-h, 84px) + env(safe-area-inset-bottom, 0px) + var(--player-h, 92px) + 16px); }
}

/* Header scroll-shrink ve tabbar uyumu */
body.nav-hidden { --tabbar-h: 0px; }
.player, #toTop, .toast { transition: bottom .38s var(--ease-spring); }

/* Kutuphane section padding adjustment */
#kutuphane-bolumu { padding-bottom: clamp(24px, 4vw, 40px); }

/* ----------------------------------------------------------
 * Masal sonrası tepki (masal.php + reactions.js)
 * -------------------------------------------------------- */
.story-reactions {
  margin: clamp(18px, 3vw, 30px) 0;
  padding: clamp(18px, 3vw, 26px);
  display: grid;
  gap: 16px;
  border: 2px solid var(--card-border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 215, 110, .18), transparent 60%),
    radial-gradient(120% 160% at 100% 100%, rgba(138, 100, 214, .14), transparent 60%),
    var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.story-reactions[hidden] { display: none; }
.story-reactions__head h2 { margin: 2px 0 6px; font-size: clamp(19px, 2.6vw, 24px); }
.story-reactions__head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 62ch; }
.story-reactions__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 !important; font-size: 12.5px !important; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent) !important;
}
.story-reactions__kicker .icon { width: 16px; height: 16px; }
.story-reactions__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reaction-btn {
  display: grid; justify-items: center; gap: 4px;
  padding: 14px 10px 12px; border-radius: 16px;
  border: 2px solid var(--card-border); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer;
  transition: transform .18s var(--ease-spring), border-color .18s, background-color .18s, box-shadow .18s;
}
.reaction-btn:hover { transform: translateY(-2px); border-color: var(--accent-line, rgba(138,100,214,.45)); box-shadow: var(--shadow-sm); }
.reaction-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.reaction-btn:disabled { opacity: .65; cursor: progress; }
.reaction-btn__emoji { font-size: clamp(28px, 5vw, 38px); line-height: 1.1; }
.reaction-btn__label { font-size: 13px; font-weight: 800; }
.reaction-btn__count { font-size: 12px; font-weight: 800; color: var(--muted); }
.reaction-btn.is-active {
  border-color: var(--accent);
  background: linear-gradient(140deg, rgba(255, 215, 110, .24), rgba(138, 100, 214, .16)), var(--surface);
  box-shadow: 0 0 0 4px rgba(138, 100, 214, .12);
}
.reaction-btn.is-active .reaction-btn__count { color: var(--accent); }
.story-reactions__note { margin: 0 !important; font-size: 13px; font-weight: 700; color: var(--muted); min-height: 1.4em; }
@media (max-width: 380px) {
  .reaction-btn { padding: 12px 6px 10px; }
  .reaction-btn__label { font-size: 11.5px; }
}
