/* ═══════════════════════════════════════════════════════════════
   Gece Mührü — görsel kimlik
   Mürekkep siyahı + gece camgöbeği zemin, eskitilmiş altın vurgular,
   film greni ve vinyet. Mobil öncelikli; masaüstünde ortalanmış "cihaz" sütunu.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --ink: #07090c;
  --ink-2: #0c1116;
  --night: #0f1a1f;
  --teal: #12302f;
  --panel: rgba(18, 24, 30, 0.78);
  --panel-solid: #121820;
  --line: rgba(214, 178, 106, 0.22);
  --line-soft: rgba(236, 225, 200, 0.08);
  --gold: #d6b26a;
  --gold-hi: #f1d79a;
  --gold-lo: #8c6a2f;
  --wax: #9e2a2b;
  --paper: #ece1c8;
  --text: #e9e3d6;
  --muted: #9aa3a6;
  --ok: #7fb69a;
  --bad: #d77a6a;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* v1.2.6: JS (safe-area.js) kesin değeri satır içi yazar; bu yalnızca ilk boyamadaki yedektir. */
  --safe-b: max(var(--safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --safe-t: max(var(--safe-area-inset-top, 0px), env(safe-area-inset-top, 0px));
  --safe-l: max(var(--safe-area-inset-left, 0px), env(safe-area-inset-left, 0px));
  --safe-r: max(var(--safe-area-inset-right, 0px), env(safe-area-inset-right, 0px));
  --col: min(100vw, 480px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% -10%, #16302f 0%, var(--ink-2) 45%, var(--ink) 100%) fixed;
  color: var(--text);
  font: 400 15px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
/* Film greni + vinyet: sabit, tıklamayı engellemez. */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; }
body::before {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
body::after { background: radial-gradient(130% 95% at 50% 45%, transparent 55%, rgba(0, 0, 0, .62) 100%); }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: .005em; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 12px; text-align: center; margin: 18px 0 6px; line-height: 1.5; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#app { min-height: 100%; }
.view {
  width: var(--col); margin: 0 auto; min-height: 100vh; outline: none;
  padding: calc(72px + var(--safe-t)) 16px calc(96px + var(--safe-b));
  position: relative;
}
body.is-immersive .view { padding-bottom: calc(24px + var(--safe-b)); }

/* ───── Ekran geçişi ───── */
.screen-enter { opacity: 0; transform: translateY(10px); }
.screen-enter--active { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }

/* ───── Tipografik yardımcılar ───── */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.screen-head { margin: 6px 0 18px; }
.screen-head h1 { margin: 6px 0 6px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 28px 0 12px; color: var(--paper); }
.sec-title small { margin-left: auto; font: 600 12px var(--f-ui); color: var(--gold); letter-spacing: .08em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 12px; padding: 6px 0; }
.back-link:hover { color: var(--gold); }

/* ───── Düğmeler ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  position: relative; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn--gold { color: #1b1408; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b48f4a); box-shadow: 0 8px 22px -10px rgba(214, 178, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:disabled { box-shadow: none; }
.btn--outline { color: var(--gold-hi); border: 1px solid rgba(214, 178, 106, .55); background: rgba(214, 178, 106, .07); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .035); }
.btn--danger { color: #fff1ee; background: linear-gradient(180deg, #b6453c, #8a2a25); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn + .btn--block, .btn--block + .btn--block { margin-top: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); }
.icon-btn .ico { width: 20px; height: 20px; }
.chip { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); border-top-color: #1b1408; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── Üst çubuk ───── */
.topbar {
  position: fixed; z-index: 40; top: 0; left: 50%; transform: translateX(-50%);
  width: var(--col); display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 12px 10px;
  background: linear-gradient(180deg, rgba(7, 9, 12, .94), rgba(7, 9, 12, .72) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.topbar__me { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none; padding: 2px; background: conic-gradient(from 200deg, var(--gold-lo), var(--gold-hi), var(--gold-lo)); }
.topbar__me img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--night); }
.topbar__lv { position: absolute; right: -4px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); border: 1px solid var(--gold); color: var(--gold-hi); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.topbar__xp { flex: 1; min-width: 0; position: relative; height: 26px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.topbar__xp span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; order: -1; }
.topbar__xp i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: left; transition: transform .6s var(--ease); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 10px rgba(214,178,106,.35); }
.topbar__xp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); z-index: -1; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 17, 22, .8); font-weight: 800; font-size: 13.5px; color: var(--paper); flex: none; }
.pill .ico { color: var(--gold); }
.pill--streak .ico { color: #e48b5a; }
.pill.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.14); box-shadow: 0 0 18px rgba(214,178,106,.55); } }

/* ───── Alt sekme çubuğu ───── */
.tabbar {
  position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%);
  width: var(--col); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px calc(8px + var(--safe-b));
  background: linear-gradient(0deg, rgba(7, 9, 12, .98), rgba(10, 14, 18, .9));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tabbar__t { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; position: relative; transition: color .2s; }
.tabbar__t .ico { width: 22px; height: 22px; }
.tabbar__t.is-on { color: var(--gold-hi); }
.tabbar__t.is-on::before { content: ''; position: absolute; top: -9px; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* ───── Açılış ───── */
.splash { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; overflow: hidden; background: var(--ink); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.splash.is-out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.splash__bg { position: absolute; inset: -4%; background: center 35% / cover no-repeat; animation: drift 24s ease-in-out infinite alternate; filter: saturate(.95); }
@keyframes drift { to { transform: scale(1.08) translate(-1.5%, -1%); } }
.splash__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,.25) 0%, rgba(7,9,12,.15) 30%, rgba(7,9,12,.82) 62%, var(--ink) 92%); }
.splash__inner { position: relative; width: min(100%, 440px); padding: 0 28px calc(44px + var(--safe-b)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.splash__emblem { mix-blend-mode: screen; width: 96px; height: 96px; border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 40px rgba(214,178,106,.25); animation: rise .9s var(--ease) both; }
.splash__kicker { font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); animation: rise .9s .1s var(--ease) both; }
.splash__title { font-size: clamp(52px, 15vw, 72px); font-weight: 600; line-height: .95; margin: 8px 0 10px; color: var(--paper); text-shadow: 0 4px 30px rgba(0,0,0,.6); animation: rise .9s .2s var(--ease) both; }
.splash__title span:last-child { display: block; font-style: italic; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash__tag { font-family: var(--f-display); font-size: 19px; font-style: italic; color: #d8cfbd; margin-bottom: 26px; animation: rise .9s .3s var(--ease) both; }
.splash__load { width: 180px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.splash__load i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.splash__status { font-size: 12px; color: var(--muted); margin: 10px 0 18px; min-height: 1.5em; }
.splash__start { min-width: 220px; opacity: .4; transition: opacity .4s, transform .15s; }
.splash.is-ready .splash__start { opacity: 1; animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 34px rgba(214,178,106,.55), inset 0 1px 0 rgba(255,255,255,.5); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ───── Merkez ───── */
.hub__brand { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.hub__brand img { mix-blend-mode: screen; width: 44px; height: 44px; border-radius: 50%; }
.brand-title { font-size: 28px; color: var(--paper); }
.brand-sub { color: var(--muted); font-size: 12.5px; }
.card-daily { display: block; border-radius: var(--r); overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; transition: transform .2s var(--ease); }
.card-daily:active { transform: scale(.99); }
.card-daily__img { aspect-ratio: 16 / 8; background: center / cover no-repeat; position: relative; }
.card-daily__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--panel-solid)); }
.card-daily.is-wait .card-daily__img { filter: grayscale(.6) brightness(.55); }
.card-daily__body { padding: 0 18px 18px; margin-top: -26px; position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card-daily__body h2 { color: var(--paper); }
.card-daily__body p { color: #c8c1b2; font-size: 14px; }
.countdown { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(214,178,106,.07); color: var(--gold-hi); }
.countdown b { font: 700 18px/1 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.countdown--lg b { font-size: 26px; }
.card-streak { margin-top: 14px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); }
.card-streak__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-streak__head h3 { margin: 4px 0 2px; font-size: 22px; }
.card-streak__head h3 b { color: var(--gold-hi); }
.card-streak__head .eyebrow .ico { color: #e48b5a; }
.milestone { color: var(--gold); font-size: 13px; font-weight: 600; }
.card-streak__head p.muted { font-size: 13px; }
.streak-dots { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak-dots li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); }
.streak-dots li span { font-weight: 800; color: var(--text); }
.streak-dots li small { font-size: 10px; }
.streak-dots li small::before { content: '◆ '; color: var(--gold-lo); }
.streak-dots li.is-done { background: rgba(214,178,106,.12); border-color: rgba(214,178,106,.35); }
.streak-dots li.is-done small::before { color: var(--gold); }
.streak-dots li.is-today { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(214,178,106,.25) inset; }
.card-adv { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 18px; min-height: 132px; border-radius: var(--r); position: relative; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); background: var(--night); }
.card-adv::before { content: ''; position: absolute; inset: 0; background: var(--bg) center 40% / cover no-repeat; opacity: .55; }
.card-adv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.92) 20%, rgba(7,9,12,.35)); }
.card-adv__body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-adv__body h2 { color: var(--paper); }
.card-adv__body p { color: var(--muted); font-size: 13px; }
.round-play { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #1b1408; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 24px rgba(214,178,106,.4); flex: none; }
.round-play .ico { width: 22px; height: 22px; fill: currentColor; }
.hub__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tile-link { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .2s; }
.tile-link .ico { width: 22px; height: 22px; color: var(--gold); margin-bottom: 6px; }
.tile-link b { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.tile-link small { color: var(--muted); font-size: 12px; }
.tile-link:hover { border-color: var(--line); }

/* ───── Gizem listesi ───── */
.banner-count { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(214,178,106,.14), rgba(214,178,106,.03)); border: 1px solid var(--line); margin-bottom: 16px; }
.banner-count > .ico { width: 28px; height: 28px; color: var(--gold); }
.banner-count small { display: block; color: var(--muted); font-size: 12px; }
.banner-count b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .05em; color: var(--gold-hi); }
.chapter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-card { display: flex; gap: 12px; align-items: stretch; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); transition: transform .15s var(--ease), border-color .2s; }
.ch-card:active { transform: scale(.99); }
.ch-card__img { width: 92px; flex: none; aspect-ratio: 4 / 3; border-radius: 10px; background: center / cover no-repeat; }
.ch-card__body { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.ch-card__body small { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ch-card__body b { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.15; }
.ch-card__st { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.ch-card__st em { font-style: normal; color: var(--paper); opacity: .7; }
.ch-card.is-open { border-color: rgba(214,178,106,.5); box-shadow: 0 0 0 1px rgba(214,178,106,.2), 0 10px 30px -14px rgba(214,178,106,.5); }
.ch-card.is-open .ch-card__st { color: var(--gold-hi); }
.ch-card.is-solved .ch-card__st { color: var(--ok); }
.ch-card.is-locked .ch-card__img, .ch-card.is-waitPrev .ch-card__img { filter: grayscale(1) brightness(.35) blur(1.5px); }
.ch-card.is-locked b, .ch-card.is-waitPrev b { color: var(--muted); }
.ch-card.is-premium { background: linear-gradient(90deg, rgba(158,42,43,.18), var(--panel)); border-color: rgba(214,178,106,.3); }
.ch-card.is-premium .ch-card__st { color: var(--gold); }

/* ───── Bölüm ───── */
.ch-hero { margin: 0 -16px; position: relative; }
.ch-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.ch-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--ink-2)); }
.ch-head { margin: -34px 0 14px; position: relative; }
.ch-head h1 { margin-top: 6px; color: var(--paper); font-size: 36px; }
.prose p { font-family: var(--f-display); font-size: 19.5px; line-height: 1.5; color: #ddd4c2; margin-bottom: 14px; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.prose p:first-child::first-letter { float: left; font-size: 3.1em; line-height: .82; padding: 6px 8px 0 0; color: var(--gold); font-weight: 700; }
.clues { display: grid; gap: 10px; }
.clue { position: relative; display: block; width: 100%; text-align: left; min-height: 74px; border-radius: 14px; perspective: 900px; }
.clue__front, .clue__back { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.clue__front { background: repeating-linear-gradient(135deg, rgba(214,178,106,.05) 0 10px, transparent 10px 20px), var(--panel); position: absolute; inset: 0; justify-content: center; padding-left: 52px; }
.clue__front .ico { position: absolute; left: 16px; top: 50%; margin-top: -11px; width: 22px; height: 22px; color: var(--gold); }
.clue__front b { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.clue__front small { color: var(--muted); font-size: 12px; }
.clue__back { background: linear-gradient(180deg, #f1e6cc, #e2d3b0); color: #2a2216; opacity: 0; transform: rotateX(-14deg); min-height: 74px; }
.clue__back b { font-family: var(--f-display); font-size: 18px; color: #5b3d12; }
.clue__back span { font-size: 14px; line-height: 1.5; }
.clue.is-open .clue__front { opacity: 0; transform: rotateX(14deg); pointer-events: none; }
.clue.is-open .clue__back { opacity: 1; transform: none; box-shadow: 0 10px 24px -14px rgba(0,0,0,.9); }
.suspects { display: grid; grid-template-columns: 1fr; gap: 8px; }
.suspect { padding: 12px 14px; border-radius: 12px; border-left: 2px solid var(--gold-lo); background: rgba(255,255,255,.025); }
.suspect b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.suspect small { display: block; color: var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; }
.suspect p { color: #c5bfb2; font-size: 14px; }
.deduce { margin-top: 10px; padding: 18px 16px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0, rgba(214,178,106,.1), transparent 60%), var(--panel); }
.deduce .sec-title { margin-top: 0; }
.deduce__q { font-family: var(--f-display); font-size: 21px; line-height: 1.35; color: var(--paper); margin-bottom: 10px; }
.deduce__lock { font-size: 13px; margin-bottom: 10px; }
.deduce__opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.035); font-size: 14.5px; line-height: 1.45; transition: border-color .2s, background .2s, opacity .2s; }
.opt:hover:not(:disabled) { border-color: var(--line); background: rgba(214,178,106,.06); }
.opt:disabled { opacity: .55; }
.opt.is-ok { opacity: 1; border-color: var(--ok); background: rgba(127,182,154,.12); }
.opt.is-bad { border-color: rgba(215,122,106,.5); text-decoration: line-through; text-decoration-color: rgba(215,122,106,.6); }
.deduce__fb { margin-top: 12px; }
.wrong { color: var(--bad); font-size: 14px; animation: shake .4s; }
.wrong small { color: var(--muted); }
.verdict { animation: rise .6s var(--ease) both; display: flex; flex-direction: column; gap: 10px; }
.verdict h3 { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.verdict p { color: #d7d0c0; }
.verdict blockquote { margin: 4px 0 6px; padding: 12px 14px; border-left: 2px solid var(--gold); font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--paper); background: rgba(214,178,106,.05); border-radius: 0 10px 10px 0; }
.reward-line { display: flex; align-items: center; gap: 6px; color: var(--gold-hi) !important; font-weight: 700; }
.locked-hero { margin: 0 -16px; aspect-ratio: 16/9; background: center / cover no-repeat; filter: grayscale(.85) brightness(.4); display: grid; place-items: center; position: relative; }
.locked-hero__seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #c4453f, var(--wax) 55%, #5e1517); box-shadow: 0 10px 30px rgba(0,0,0,.7), inset 0 -4px 10px rgba(0,0,0,.4); color: #f2d1a0; filter: grayscale(0); }
.locked-hero__seal .ico { width: 34px; height: 34px; }
.locked-body { text-align: center; padding: 20px 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.locked-body h1 { color: var(--paper); }
.locked-body p { color: #c8c1b2; max-width: 34ch; }

/* ───── Harita ───── */
.map { min-height: calc(100vh - 170px); }
.map__bg { position: fixed; inset: 0; z-index: -1; background: var(--bg) center / cover no-repeat; opacity: .38; filter: saturate(.85); }
.map__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,.8), rgba(7,9,12,.35) 40%, rgba(7,9,12,.9)); }
.region-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.region-tab { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font-weight: 800; color: var(--muted); border: 1px solid var(--line-soft); background: rgba(7,9,12,.6); }
.region-tab .ico { width: 14px; height: 14px; }
.region-tab.is-on { color: #1b1408; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: transparent; }
.region-tab.is-locked:not(.is-on) { opacity: .6; }
.map__head h1 { margin: 6px 0 4px; color: var(--paper); text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.map__head p { color: #cfc7b6; font-family: var(--f-display); font-style: italic; font-size: 17px; }
.map__head .map__meta { font: 600 12.5px var(--f-ui); color: var(--gold); font-style: normal; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.map__path { position: relative; height: 520px; margin-top: 12px; }
.map__path > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__path path { fill: none; stroke: var(--gold); stroke-width: .6; stroke-dasharray: 1.4 1.6; opacity: .55; vector-effect: non-scaling-stroke; stroke-width: 2px; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; }
.node__dot { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--f-display); color: var(--paper); background: radial-gradient(circle at 35% 30%, #22303a, #0d1318); border: 2px solid var(--gold-lo); box-shadow: 0 8px 18px rgba(0,0,0,.6); transition: transform .2s var(--ease); }
.node:active .node__dot { transform: scale(.94); }
.node__label { display: flex; flex-direction: column; min-width: 0; max-width: 128px; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.node__label b { font-family: var(--f-display); font-size: 16.5px; font-weight: 600; line-height: 1.1; }
.node__label small { font-size: 11px; color: var(--muted); }
.node[style*="left:70%"], .node[style*="left:76%"] { flex-direction: row-reverse; text-align: right; }
.node[style*="left:70%"] .node__label, .node[style*="left:76%"] .node__label { align-items: flex-end; }
.node.is-done .node__dot { border-color: var(--gold); background: radial-gradient(circle at 35% 30%, #3b3220, #17130b); color: var(--gold-hi); }
.node.is-next .node__dot { border-color: var(--gold-hi); color: #1b1408; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); animation: pulse 2s ease-in-out infinite; }
.node.is-locked { opacity: .55; }
.node.is-locked .node__dot .ico { width: 18px; height: 18px; color: var(--muted); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,178,106,.55); } 50% { box-shadow: 0 0 0 12px rgba(214,178,106,0); } }
.map__lock { position: absolute; inset: 30% 6% auto; padding: 18px; border-radius: 14px; text-align: center; background: rgba(7,9,12,.88); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #cfc7b6; font-size: 14px; }
.map__lock .ico { width: 26px; height: 26px; color: var(--gold); }
.stars { display: inline-flex; gap: 2px; }
.stars i { color: rgba(255,255,255,.18); display: inline-flex; }
.stars i.on { color: var(--gold-hi); }
.stars i.on .ico { fill: currentColor; }
.stars--sm .ico { width: 12px; height: 12px; }
.stars--lg { gap: 8px; margin: 14px 0 6px; }
.stars--lg .ico { width: 44px; height: 44px; }
.stars--lg i:nth-child(2) { transform: translateY(-10px); }
.stars--lg i.on { animation: starIn .6s var(--ease) both; filter: drop-shadow(0 0 12px rgba(241,215,154,.6)); }
@keyframes starIn { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
.stars--lg i:nth-child(2).on { animation-name: starIn2; }
@keyframes starIn2 { from { opacity: 0; transform: translateY(-10px) scale(.3) rotate(-40deg); } to { transform: translateY(-10px); } }

/* ───── Seviye ───── */
.level__bg { position: fixed; inset: 0; z-index: -1; background: var(--bg) center / cover no-repeat; opacity: .2; filter: blur(2px) saturate(.7); }
.level__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.level__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.level__title small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level__title b { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.level__intro { color: #cdc5b5; font-size: 14px; margin-bottom: 14px; }
.level__stage { min-height: 300px; }
.level__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.level__foot b { color: var(--paper); }
.empty { text-align: center; padding: 60px 10px; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Şifre */
.pz-cipher__plate { padding: 16px; border-radius: 14px; background: linear-gradient(180deg, #2b2416, #17130c); border: 1px solid rgba(214,178,106,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow); text-align: center; }
.pz-cipher__label { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lo); }
.pz-cipher__enc { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 10px 0; }
.pz-cipher__enc span { min-width: 22px; font: 700 26px/1.1 var(--f-display); color: var(--gold-hi); text-shadow: 0 0 14px rgba(241,215,154,.35); }
.pz-cipher__enc span.sp { min-width: 12px; }
.pz-cipher__key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #d9cba8; }
.pz-cipher__slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 16px 0 12px; }
.slot { width: 30px; height: 40px; display: grid; place-items: center; border-bottom: 2px solid rgba(214,178,106,.4); font: 700 24px var(--f-display); color: var(--paper); transition: border-color .2s, color .2s, transform .2s; }
.slot--sp { width: 12px; border: 0; }
.slot--fixed { color: var(--gold); border-color: var(--gold-lo); }
.slot--cur { border-color: var(--gold-hi); box-shadow: 0 6px 10px -6px rgba(241,215,154,.6); animation: blink 1.1s step-end infinite; }
.slot--ok { color: var(--ok); border-color: var(--ok); transform: translateY(-3px); }
@keyframes blink { 50% { border-color: rgba(214,178,106,.25); } }
.shake { animation: shake .38s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.pz-cipher__wheel { display: grid; grid-template-columns: repeat(15, 1fr); gap: 1px; margin-bottom: 12px; padding: 6px 4px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.pz-cipher__wheel span { display: flex; flex-direction: column; align-items: center; }
.pz-cipher__wheel b { font: 700 13px var(--f-ui); color: #d9cba8; }
.pz-cipher__wheel i { font-style: normal; font-size: 8.5px; color: var(--muted); }
.pz-kbd { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.pz-kbd__k { height: 44px; border-radius: 8px; background: linear-gradient(180deg, #1d252d, #141a20); border: 1px solid var(--line-soft); box-shadow: 0 2px 0 rgba(0,0,0,.5); font-weight: 700; font-size: 16px; transition: transform .08s, background .15s; }
.pz-kbd__k:active { transform: translateY(2px); background: #26303a; box-shadow: none; }
.pz-kbd__k--wide { grid-column: span 1; color: var(--gold); }

/* Dizi */
.pz-seq { text-align: center; }
.pz-seq__round { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.pz-seq__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 18px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); }
.pz-seq__item { min-width: 50px; padding: 8px 6px; border-radius: 10px; font: 700 22px var(--f-display); color: var(--paper); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); font-variant-numeric: lining-nums; }
.pz-seq__item--q { color: var(--gold-hi); border: 1px dashed var(--gold); background: rgba(214,178,106,.08); }
.pz-seq__item--q.is-ok { color: var(--ok); border: 1px solid var(--ok); }
.pz-seq__dot { color: var(--gold-lo); }
.pz-seq__help { color: var(--muted); font-size: 13px; margin: 14px 0; }
.pz-seq__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-seq__opt { height: 60px; border-radius: 12px; font: 700 22px var(--f-display); background: linear-gradient(180deg, #1d252d, #141a20); border: 1px solid var(--line); transition: transform .1s, border-color .2s, opacity .2s; }
.pz-seq__opt:active:not(:disabled) { transform: scale(.97); }
.pz-seq__opt.is-ok { border-color: var(--ok); color: var(--ok); background: rgba(127,182,154,.12); }
.pz-seq__opt.is-bad { opacity: .35; border-color: rgba(215,122,106,.4); }

/* Eşleştirme */
.pz-match { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; }
.card { aspect-ratio: 3 / 4; perspective: 700px; border-radius: 10px; }
.card__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .42s var(--ease); }
.card.is-open .card__in { transform: rotateY(180deg); }
.card__back, .card__face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card__back { background: radial-gradient(circle at 50% 50%, transparent 26%, rgba(214,178,106,.25) 27%, transparent 29%), repeating-linear-gradient(45deg, rgba(214,178,106,.08) 0 6px, transparent 6px 12px), linear-gradient(180deg, #1b2329, #10161b); border: 1px solid rgba(214,178,106,.35); box-shadow: inset 0 0 0 4px rgba(7,9,12,.6), inset 0 0 0 5px rgba(214,178,106,.18); }
.card__face { transform: rotateY(180deg); background: linear-gradient(180deg, #f0e4c7, #dccaa2); color: #3a2a12; border: 1px solid #b89a5e; gap: 4px; padding: 4px; }
.card__face svg { width: 52%; height: auto; }
.card__face small { font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-align: center; line-height: 1.1; }
.card.is-done .card__face { background: linear-gradient(180deg, #e9d79e, #c9a95c); box-shadow: 0 0 16px rgba(214,178,106,.45); }
.card.is-done .card__in { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: rotateY(180deg) scale(1.06); } }

/* Kayar karo */
.pz-slide { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.pz-slide__meta { width: 100%; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.pz-slide__meta b { color: var(--gold-hi); }
.pz-slide__board { position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #070a0d; border: 1px solid rgba(214,178,106,.4); box-shadow: var(--shadow), inset 0 0 30px rgba(0,0,0,.8); }
.tile { position: absolute; left: 0; top: 0; background-repeat: no-repeat; border: 1px solid rgba(7,9,12,.85); box-shadow: inset 0 0 0 1px rgba(241,215,154,.14); transition: transform .18s var(--ease); }
.tile--blank { background: transparent; box-shadow: none; border: 0; pointer-events: none; }
.tile.is-hint { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 18px rgba(241,215,154,.6); z-index: 2; }
.pz-slide.is-solved .tile { border-color: transparent; box-shadow: none; }
.pz-slide__ref { position: absolute; right: 0; top: 26px; width: 44px; height: 78px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); opacity: .85; display: none; }

/* ───── Sonuç ───── */
.result { min-height: calc(100vh - 120px); display: grid; place-items: center; position: relative; }
.result::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--bg) center / cover no-repeat; opacity: .28; filter: blur(3px); }
.result__glow { position: absolute; top: 8%; left: 50%; width: 320px; height: 320px; margin-left: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(241,215,154,.28), transparent 65%); animation: breathe 4s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.result__card { position: relative; width: 100%; padding: 26px 20px 20px; border-radius: 20px; text-align: center; background: linear-gradient(180deg, rgba(20,26,32,.92), rgba(10,14,18,.96)); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.result__card h1 { color: var(--paper); font-size: 34px; margin-top: 4px; }
.rewards { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.rewards li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; background: rgba(214,178,106,.07); border: 1px solid var(--line); }
.rewards .ico { width: 22px; height: 22px; color: var(--gold); }
.rewards b { font: 700 28px var(--f-display); color: var(--gold-hi); }
.rewards span { font-size: 12px; color: var(--muted); }
.notice { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); font-size: 13.5px; text-align: left; }
.notice .ico { color: var(--gold); }
.notice--char { border-color: var(--line); background: rgba(214,178,106,.08); }
.result__actions { width: 100%; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.result__actions .btn + .btn { margin-top: 0; }

/* ───── Karakterler ───── */
.char-list { display: grid; gap: 14px; }
.char { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-soft); }
.char.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(214,178,106,.25), 0 14px 30px -16px rgba(214,178,106,.5); }
.char.is-premium { background: linear-gradient(135deg, rgba(158,42,43,.16), var(--panel) 60%); }
.char__portrait { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--night); }
.char__portrait img { width: 100%; height: 100%; object-fit: cover; }
.char.is-locked .char__portrait img { filter: grayscale(.9) brightness(.45); }
.char__lock { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.char__lock .ico { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px #000); }
.char__badge { position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #1b1408; background: var(--gold-hi); }
.char__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.char__body small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.char__body h2 { font-size: 23px; }
.char__bio { font-size: 13px; color: #c5bfb2; line-height: 1.45; }
.char__perk { display: flex; gap: 6px; font-size: 12.5px; color: var(--paper); padding: 8px 10px; border-radius: 10px; background: rgba(214,178,106,.07); margin: 2px 0 6px; }
.char__perk .ico { color: var(--gold); margin-top: 2px; }
.char__perk b { color: var(--gold-hi); }

/* ───── Dükkân ───── */
.balance { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.balance .ico { color: var(--gold); }
.balance b { color: var(--gold-hi); font-size: 20px; }
.test-ribbon { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #d9cba8; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(214,178,106,.4); margin-bottom: 14px; }
.free-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); margin-bottom: 14px; }
.free-card > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.free-card > div .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); }
.free-card b { font-family: var(--f-display); font-size: 19px; font-weight: 600; }
.free-card small { color: var(--muted); font-size: 12px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 6px 12px; border-radius: 14px; text-align: center; background: linear-gradient(180deg, #19222a, #10161b); border: 1px solid var(--line); transition: transform .15s var(--ease), border-color .2s; }
.pack:active { transform: scale(.97); }
.pack:hover { border-color: rgba(214,178,106,.55); }
.pack__badge { position: absolute; top: -9px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: #1b1408; background: var(--gold-hi); white-space: nowrap; }
.pack__gems { display: flex; gap: 0; color: var(--gold-hi); height: 30px; align-items: center; }
.pack__gems .ico { width: 22px; height: 22px; margin: 0 -3px; filter: drop-shadow(0 0 6px rgba(241,215,154,.4)); }
.pack b { font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.pack small { font-size: 11px; color: var(--muted); }
.pack__price { margin-top: 6px; font-weight: 800; font-size: 13px; color: var(--paper); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.prem-card { position: relative; overflow: hidden; margin: 16px 0 14px; border-radius: 18px; border: 1px solid rgba(214,178,106,.5); min-height: 210px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.prem-card::before { content: ''; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; }
.prem-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,12,.15), rgba(7,9,12,.92) 70%); }
.prem-card__body { position: relative; z-index: 1; padding: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.prem-card__body h2 { color: var(--paper); }
.prem-card__body p { font-size: 13.5px; color: #d5cdbb; }

/* ───── Ayarlar ───── */
.set-group { border-radius: 14px; background: var(--panel); border: 1px solid var(--line-soft); margin-bottom: 12px; overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; }
.set-row + .set-row { border-top: 1px solid var(--line-soft); }
.set-row > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.set-row > span .ico { grid-row: span 2; color: var(--gold); width: 20px; height: 20px; margin-top: 2px; }
.set-row b { font-weight: 700; font-size: 14.5px; }
.set-row small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.set-row small b { color: var(--paper); font-size: 12.5px; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; flex: none; border-radius: 999px; background: #2a333b; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #c9c3b6; transition: transform .25s var(--ease), background .2s; }
.switch:checked { background: var(--gold-lo); }
.switch:checked::after { transform: translateX(20px); background: var(--gold-hi); }

/* ───── Modal ───── */
#modals { position: relative; z-index: 100; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; }
.modal__scrim { position: absolute; inset: 0; background: rgba(3,5,7,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal__card { position: relative; width: min(100%, 460px); max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #161d24, #0d1217); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -20px 50px rgba(0,0,0,.6); transform: translateY(30px); opacity: 0; transition: transform .3s var(--ease), opacity .25s; padding-bottom: var(--safe-b); }
.modal.is-in .modal__scrim { opacity: 1; }
.modal.is-in .modal__card { transform: none; opacity: 1; }
.modal__x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(7,9,12,.6); }
.modal__art { aspect-ratio: 16 / 8; background: center / cover no-repeat; position: relative; }
.modal__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #161d24); }
.modal__content { padding: 20px 20px 22px; }
.modal__title { font-size: 26px; color: var(--paper); margin-bottom: 8px; padding-right: 36px; }
.modal__body { color: #cfc8b9; font-size: 14.5px; display: flex; flex-direction: column; gap: 10px; }
.modal__actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal__actions .btn + .btn { margin-top: 0; }
.modal--premium .modal__title { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; }
.perks { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(214,178,106,.06); border: 1px solid var(--line-soft); }
.perks .ico { color: var(--gold); }
.price-line { display: flex; align-items: center; gap: 6px; color: var(--gold-hi); font-weight: 800; font-size: 18px; }
.price-line .ico { color: var(--gold); }
.modal .fineprint { margin: 4px 0 0; }

/* ───── Toast ───── */
#toasts { position: fixed; z-index: 120; top: calc(64px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(92vw, 420px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(16,21,27,.96); border: 1px solid var(--line-soft); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease); max-width: 100%; }
.toast.is-in { opacity: 1; transform: none; }
.toast .ico { color: var(--gold); }
.toast--gold { border-color: rgba(214,178,106,.55); color: var(--gold-hi); }
.toast--muted { color: #c8c1b2; }

/* ───── Simüle reklam & mağaza (test modu) ───── */
.ad-sim { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(3,5,7,.9); opacity: 0; transition: opacity .25s; }
.ad-sim.is-in { opacity: 1; }
.ad-sim__card { width: min(100%, 380px); padding: 18px; border-radius: 18px; background: #11171d; border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.ad-sim__badge { align-self: center; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #1b1408; background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.ad-sim__art { height: 150px; border-radius: 12px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1e3a3a, #12202a 60%, #2b2213); }
.ad-sim__art span { position: absolute; border-radius: 50%; border: 1px solid rgba(214,178,106,.4); left: 50%; top: 50%; animation: ring 3s ease-out infinite; }
.ad-sim__art span:nth-child(1) { width: 60px; height: 60px; margin: -30px; }
.ad-sim__art span:nth-child(2) { width: 110px; height: 110px; margin: -55px; animation-delay: .6s; }
.ad-sim__art span:nth-child(3) { width: 170px; height: 170px; margin: -85px; animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.ad-sim__title { font-size: 24px; color: var(--paper); }
.ad-sim__body { color: var(--muted); font-size: 13.5px; }
.ad-sim__bar { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.ad-sim__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform linear; }
.ad-sim__row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ad-sim__count { margin-right: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.store-sim { position: fixed; inset: 0; z-index: 150; display: grid; place-items: end center; background: rgba(3,5,7,.7); opacity: 0; transition: opacity .25s; }
.store-sim.is-in { opacity: 1; }
.store-sim__sheet { width: min(100%, 460px); padding: 10px 20px calc(22px + var(--safe-b)); border-radius: 20px 20px 0 0; background: #f3efe6; color: #1d1d1d; display: flex; flex-direction: column; gap: 8px; transform: translateY(40px); transition: transform .3s var(--ease); font-family: var(--f-ui); }
.store-sim.is-in .store-sim__sheet { transform: none; }
.store-sim__grip { width: 40px; height: 4px; border-radius: 2px; background: #c9c3b6; align-self: center; margin-bottom: 6px; }
.store-sim__badge { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #7a5a1c; background: #f1dfb4; padding: 3px 8px; border-radius: 6px; }
.store-sim__sheet h3 { font: 700 20px var(--f-ui); }
.store-sim__sheet p { color: #555; font-size: 14px; }
.store-sim__price { font-size: 26px; font-weight: 800; margin: 4px 0 8px; }
.store-sim__sheet .btn--ghost { color: #333; border-color: #d6d0c4; background: transparent; }
.store-sim__sheet .btn + .btn--block { margin-top: 0; }

/* ───── Masaüstü ───── */
@media (min-width: 720px) {
  body { background: radial-gradient(70% 70% at 50% 0%, #17302f 0%, var(--ink-2) 50%, var(--ink) 100%) fixed; }
  .view { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); background: rgba(7,9,12,.35); box-shadow: 0 0 80px rgba(0,0,0,.5); }
  .modal { place-items: center; }
  .modal__card { border-radius: 22px; border-bottom: 1px solid var(--line); }
  .store-sim { place-items: center; }
  .store-sim__sheet { border-radius: 20px; }
}
@media (max-width: 360px) {
  h1 { font-size: 30px; }
  .packs { grid-template-columns: 1fr 1fr; }
  .char { grid-template-columns: 96px 1fr; }
  .pz-kbd__k { height: 40px; font-size: 14px; }
}

/* ───── Azaltılmış hareket ───── */
@media (prefers-reduced-motion: reduce) {
  :not(.m3l, .m3l *, .m3v, .m3v *), :not(.m3l, .m3l *, .m3v, .m3v *)::before, :not(.m3l, .m3l *, .m3v, .m3v *)::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  body::before { animation: none; }
}
/* Cormorant'ın eski stil rakamları yerine hizalı rakamlar */
.node__dot, .rewards b, .pz-seq__item, .pz-seq__opt, .pack b, .tile-link b, .ch-card__body b, .clue__front b, .stars, .slot, .pz-cipher__enc span { font-feature-settings: "lnum" 1; font-variant-numeric: lining-nums; }
.empty__seal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #f2d1a0; background: radial-gradient(circle at 35% 30%, #c4453f, var(--wax) 55%, #5e1517); box-shadow: 0 10px 30px rgba(0,0,0,.7); }
.empty__seal .ico { width: 30px; height: 30px; }
.empty h2 { color: var(--paper); }
