:root {
  --purple: #8a56e2;
  --purple-deep: #6b3fc4;
  --yellow: #ffc414;
  --ink: #0d0d0f;
  --dark: #2f2d2a;
  --dark-2: #3b3936;
  --white: #fff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --radius: 22px;
  --shadow: 4px 5px 0 var(--ink);
  --font: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --gold: #ffd257;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #141317; color: var(--white); font-family: var(--font); overscroll-behavior: none; }
/* uygulama gibi: uzun basınca iOS metin seçimi / "Ara, Kopyala" menüsü açılmasın (yazı alanları hariç) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body { display: flex; justify-content: center; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { display: block; }

#app { position: relative; width: 100%; max-width: 480px; height: 100dvh; overflow: hidden; background: var(--dark); }
@media (min-width: 520px) {
  body { align-items: center; }
  #app { height: min(100dvh, 920px); border-radius: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 10px #0a0a0c; }
}
#view { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }

/* ─────────── Pills / üst bar ─────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px;
  border-radius: 999px; font-weight: 600; font-size: 18px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.pill .ico { font-size: 22px; line-height: 1; }
.pill .ico svg { width: 23px; height: 23px; }
.pill-yellow { background: var(--yellow); color: var(--ink); border: 0; font-weight: 600; padding: 0 22px; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.pill-round { width: 46px; padding: 0; justify-content: center; }
.pill:active, .btn:active, .card:active, .folder:active { transform: translateY(2px) scale(.98); }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 14px) 18px 14px;
}
.topbar h1 { margin: 0 auto 0 0; font-size: 38px; font-weight: 700; letter-spacing: -.5px; }
.topbar.glass { background: linear-gradient(var(--dark) 55%, rgba(47,45,42,0)); }


.stroke-num { font-size: 34px; font-weight: 800; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; letter-spacing: -.5px; }



@keyframes blink { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }


/* ─────────── Kartlar (Test) ─────────── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 6px 18px calc(130px + var(--safe-bot)); }
.card {
  position: relative; height: 136px; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--shadow);
  padding: 16px 14px; color: var(--ink); text-align: left; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .12s;
}
.card h3 { margin: 0; font-size: 20px; font-weight: 500; position: relative; z-index: 1; max-width: 66%; line-height: 1.15; overflow-wrap: anywhere; }
.card .art { position: absolute; right: -10px; top: 6px; font-size: 62px; transform: rotate(12deg); filter: drop-shadow(2px 3px 0 rgba(0,0,0,.25)); }
.card .art-svg { right: 2px; top: 8px; }
.card .art-svg svg { width: 66px; height: 66px; }
.progress { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; position: relative; z-index: 1; }
.bar { flex: 1; max-width: 96px; height: 11px; border-radius: 99px; border: 2.5px solid var(--ink); background: #fff; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .4s; }

/* ─────────── Klasörler (Kitaplık) ─────────── */
.folder {
  position: relative; height: 158px; margin-top: 14px; border-radius: 26px; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s;
}
.folder::before {
  content: ''; position: absolute; top: -17px; left: -3px; width: 46%; height: 30px; border-radius: 18px 22px 0 0;
  background: inherit; border: 3px solid var(--ink); border-bottom: 0; filter: brightness(.92);
  clip-path: polygon(0 0, 78% 0, 100% 60%, 100% 100%, 0 100%);
}
.folder::after { content: ''; position: absolute; top: -10px; right: 6px; width: 58%; height: 20px; border-radius: 16px 16px 0 0; background: var(--ink); z-index: -1; }
.folder .count { position: absolute; top: 10px; left: 14px; min-width: 40px; height: 32px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 17px; display: grid; place-items: center; padding: 0 10px; }
.folder .fe { font-size: 44px; margin-top: 18px; }
.folder .fe svg { width: 62px; height: 62px; }
.folder b { font-size: 19px; font-weight: 600; text-align: center; padding: 0 10px; line-height: 1.15; }

/* ─────────── Profil ─────────── */
.profile-head { display: flex; flex-direction: column; align-items: center; padding: 6px 18px 18px; }
.profile-head .avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--purple); border: 4px solid var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.profile-head .avatar svg { width: 92%; margin-top: 16px; }
.profile-head h2 { margin: 14px 0 2px; font-size: 26px; }
.profile-head p { margin: 0; color: #bdb8b0; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 18px 20px; padding: 0; background: none; }
.stat { min-width: 0; text-align: center; padding: 9px 4px 8px; border-radius: 20px; color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); background: #ffb27a; }
.stat .v { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 25px; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; color: var(--ink); }
.stat .v svg { width: 38px; height: 38px; flex: none; }
.stat .l { margin-top: 1px; font-size: 11.5px; font-weight: 700; color: rgba(13,13,15,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.tuy { background: #ffd166; }
.stat.read { background: #8ecbff; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 20px 10px; font-size: 18px; font-weight: 600; color: #e8e3da; }
.catrow { display: flex; align-items: center; gap: 12px; margin: 0 18px 10px; padding: 12px 14px; background: var(--dark-2); border-radius: 18px; }
.catrow .e { font-size: 26px; }
.catrow .e svg { width: 28px; height: 28px; }
.catrow .n { flex: 1; font-weight: 500; }
.catrow .bar { max-width: 110px; border-color: #111; }
.catrow .bar i { background: var(--c); }
.ghost-btn { display: block; margin: 20px auto calc(130px + var(--safe-bot)); padding: 12px 22px; border-radius: 99px; background: var(--dark-2); color: #f3b0b0; font-weight: 500; }

/* Ad düzenleme alt sayfası */
.name-sheet h2 { margin: 2px 0 6px; font-size: 22px; }
.ns-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; color: #bdb8b0; }
.ns-count { font-variant-numeric: tabular-nums; opacity: .8; }
.ns-input { width: 100%; height: 56px; padding: 0 16px; border-radius: 16px; border: 2.5px solid #4a4743; background: #2c2a27; color: #fff; font: inherit; font-size: 19px; font-weight: 700; outline: 0; }
.ns-input::placeholder { color: #8a857c; font-weight: 600; }
.ns-input:focus { border-color: var(--yellow); }
.ns-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; margin-top: 14px; }
.ns-actions .btn { height: 52px; font-size: 17px; }
.btn-plain { background: #2c2a27; color: #fff; }
.gear-btn { width: 46px; height: 46px; }
.gear-btn svg { width: 22px; height: 22px; stroke-width: 2; }

/* ─────────── Alt menü ─────────── */
.tabbar {
  position: absolute; z-index: 20; left: 14px; right: 14px; bottom: calc(14px + var(--safe-bot)); height: 82px;
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; border-radius: 44px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1), opacity .25s;
}
.tabbar.hidden { transform: translateY(140%); opacity: 0; }
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; white-space: nowrap; font-weight: 500; color: rgba(255,255,255,.92); }
.tab svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.active svg { fill: currentColor; stroke: currentColor; }
.tab.active svg path:nth-child(2) { stroke: var(--tab-c, var(--purple-deep)); }
.tab-indicator { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 38px; background: var(--tab-c, var(--purple-deep)); transition: transform .4s cubic-bezier(.3,1.3,.5,1), background .3s; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

/* ─────────── Katmanlar (overlay) ─────────── */
#layers { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
#layers > * { pointer-events: auto; }
.layer { position: absolute; inset: 0; z-index: 50; background: #000; animation: up .38s cubic-bezier(.2,.9,.3,1); overflow: hidden; }
.layer.closing { animation: down .28s ease-in forwards; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.layer.fade { animation: fadein .35s ease-out; }
.layer.fade.closing { animation: fadeout .25s ease-in forwards; }
@keyframes fadein { from { opacity: 0; transform: scale(1.04); } }
@keyframes fadeout { to { opacity: 0; } }
canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.circle-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(40,40,44,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.circle-btn svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.circle-btn.blue { background: rgba(60,120,200,.75); border: 1px solid rgba(255,255,255,.25); }

/* Kapak */
.cover .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.85) 72%, #000 100%); pointer-events: none; }
.cover-top { position: absolute; top: calc(var(--safe-top) + 14px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; }
.cover-top .keys { display: flex; gap: 10px; padding: 10px 16px; border-radius: 99px; background: rgba(80,130,200,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 20px; }
.cover-top .keys .off { opacity: .35; filter: grayscale(1); }
.cover-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 22px calc(var(--safe-bot) + 28px); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px 10px 16px; border-radius: 99px; color: var(--ink); font-size: 20px; font-weight: 500; }
.cover-title-row { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 36px; }
.cover-title-row h2 { flex: 1; margin: 0; font-size: 27px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
.bookmark svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 2; fill: none; }
.bookmark.on svg { fill: var(--yellow); stroke: var(--yellow); }
.cover-actions { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.cover-actions .circle-btn { width: 64px; height: 64px; }
.btn { height: 62px; border-radius: 99px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 21px; font-weight: 500; transition: transform .12s; }
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-dark { background: #2c2c30; color: #fff; }
.btn-white { background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }

/* Okuyucu — makale */
.article { background: #1e1d1b; }
.art-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.art-scroll::-webkit-scrollbar { display: none; }
.art-head {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: calc(var(--safe-top) + 22px) 20px 24px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #141312;
  color: #fff;
}
.art-head-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,0.5) 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, rgba(0,0,0,0.5) 75%, transparent 100%);
}
.art-head-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,13,12,0.08) 0%, rgba(18,17,16,0.3) 35%, rgba(24,23,21,0.75) 70%, #1e1d1b 100%);
}
.art-head-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.art-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #141414;
  color: #fff;
  padding: 5px 12px 5px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--cat-color, #ffd257);
  box-shadow: 2.5px 2.5px 0 #141414;
}
.art-head h1 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.2px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}
.art-meta {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
}
.art-progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; }
.art-progress b { display: block; height: 100%; width: 0; background: #fff; transition: width .1s linear; }
.art-body { padding: 24px 20px 220px; font-size: var(--fs, 21px); line-height: 1.6; color: #f4f1ea; font-weight: 400; }
.art-body > p { margin: 0 0 1.15em; transition: opacity .35s, color .35s; }
.article.listening .art-body > p { opacity: .4; cursor: pointer; }
.article.listening .art-body > p.reading { opacity: 1; color: #fff; }

/* Editorial Paragraf İçi Vurgular */
mark.art-mark {
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-color: var(--cat-color);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
  background: linear-gradient(180deg, transparent 65%, rgba(255, 255, 255, 0.08) 65%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Kutu, çerçeve ve sol çizgi olmadan; sadece ferah, zarif içe girinti */
.art-body > p.art-pull-block {
  margin: 1.5em 0;
  padding: 0 18px;
  color: #fff;
  font-size: 1.03em;
  font-style: italic;
  line-height: 1.65;
}

.art-end { margin-top: 36px; padding: 24px 20px; border-radius: 24px; background: #2c2a27; text-align: center; font-size: 16px; }
.art-end .k { font-size: 20px; font-weight: 600; }
.art-end p { margin: 6px 0 18px; color: #bdb8b0; }
.art-end .btn { width: 100%; }
.art-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none; z-index: 2;
  background: linear-gradient(rgba(30,29,27,0), rgba(30,29,27,.75) 60%, rgba(30,29,27,.95));
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.art-dock { position: absolute; left: 22px; right: 22px; bottom: calc(var(--safe-bot) + 22px); z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.dock-btn, .dock-seg { background: rgba(98,95,90,.5); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12); }
.dock-btn { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; transition: transform .12s; }
.dock-btn:active { transform: scale(.94); }
.dock-btn svg, .dock-seg svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn circle { fill: #fff; stroke: none; }
.dock-seg { display: flex; gap: 2px; padding: 5px; border-radius: 99px; }
.dock-seg button { width: 68px; height: 56px; border-radius: 99px; display: grid; place-items: center; transition: background .25s; }
.dock-seg button.on { background: rgba(30,29,27,.6); }
.more-menu { position: absolute; right: 22px; bottom: calc(var(--safe-bot) + 100px); z-index: 4; min-width: 230px; padding: 8px; border-radius: 22px; background: rgba(42,40,38,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: menu .2s ease-out; transform-origin: bottom right; }
@keyframes menu { from { opacity: 0; transform: scale(.9) translateY(8px); } }
.more-menu > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; font-size: 16px; font-weight: 500; }
.more-menu > button:hover, .more-menu > button:active { background: rgba(255,255,255,.07); }
.more-menu svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fs-row { display: flex; gap: 8px; padding: 4px 4px 8px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; }
.fs-row button { flex: 1; height: 44px; border-radius: 12px; background: #3a3835; font-weight: 600; font-size: 16px; }

/* Test */
.quiz-layer { background: var(--dark); }
.quiz-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 16px) 18px calc(var(--safe-bot) + 24px); }
.quiz-top { display: flex; align-items: center; gap: 14px; }
.qbar { flex: 1; height: 16px; border-radius: 99px; background: #45423e; overflow: hidden; border: 2px solid var(--ink); }
.qbar i { display: block; height: 100%; background: var(--yellow); transition: width .4s; border-radius: 99px; }
.quiz-top .circle-btn { width: 46px; height: 46px; background: #45423e; }
.quiz-top .circle-btn svg { width: 20px; height: 20px; }
.q-stage { display: flex; flex-direction: column; width: 100%; flex: 1; transition: transform .22s cubic-bezier(0.4, 0, 0.2, 1), opacity .22s ease, filter .22s ease; will-change: transform, opacity, filter; }
.q-stage.q-stage-out { transform: translateX(-30px) scale(0.97); opacity: 0; filter: blur(4px); pointer-events: none; }
.q-stage.q-stage-in { animation: qStageIn .38s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes qStageIn {
  from { transform: translateX(32px) scale(0.97); opacity: 0; filter: blur(5px); }
  to { transform: translateX(0) scale(1); opacity: 1; filter: blur(0); }
}
.qcard { margin: 22px 0 18px; padding: 22px 20px; border-radius: 24px; border: 3px solid var(--ink); box-shadow: var(--shadow); color: var(--ink); position: relative; transition: transform .2s ease; }
.qcard .k { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; opacity: .88; margin-bottom: 8px; }
.q-tag-cat { display: inline-flex; align-items: center; gap: 7px; }
.q-cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; }
.q-cat-ico svg { width: 20px; height: 20px; display: block; }
.qcard h3 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 600; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { text-align: left; padding: 17px 18px; border-radius: 18px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: 18px; font-weight: 500; transition: transform .12s cubic-bezier(0.2, 0.8, 0.25, 1), background .25s ease, opacity .25s ease, box-shadow .12s; }
.q-stage-in .opt { animation: optSmooth .38s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes optSmooth {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes txt {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.opt:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.opt.right { background: #8fd82f; }
.opt.wrong { background: #ff6b6b; animation: shake .4s; }
.opt.dim { opacity: .5; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.quiz-next { margin-top: auto; }
.result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.result .big-stars { display: flex; justify-content: center; gap: 8px; }
.result .big-stars span { display: inline-block; animation: starpop .5s cubic-bezier(.3,1.6,.5,1) backwards; }
.result .big-stars span.off { filter: none; }
.result .big-stars .qstar { width: 74px; height: 74px; display: block; }
.result .big-stars .qstar:not(.off) { filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.story-row .st .qstars { display: inline-flex; gap: 1px; align-items: center; }
.story-row .st .qstars .qstar { width: 17px; height: 17px; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.result h2 { margin: 6px 0 0; font-size: 32px; }
.result p { margin: 0 0 20px; color: #cfc9bf; font-size: 17px; }
.result .btn { width: 100%; }
canvas.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Liste katmanı */
.list-layer { background: var(--dark); }
.list-layer .screen { padding-bottom: 40px; }
/* Arama: geri butonu ve arama kutusu tek satırda, kaydırmadan bağımsız, her zaman görünür */
.search-layer { display: flex; flex-direction: column; background: var(--dark); height: 100%; }
.search-top { flex: none; padding: calc(var(--safe-top) + 14px) 18px 12px; background: var(--dark); position: relative; z-index: 10; border-bottom: 2px solid rgba(255,255,255,.08); }
.search-bar-row { display: flex; align-items: center; gap: 12px; }
.search-back { width: 48px; height: 48px; flex: none; }
.search-bar-row .search-box { flex: 1; margin: 0; }
.search-layer .screen { position: relative; inset: auto; flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 30px; }
.list-hero { padding: calc(var(--safe-top) + 14px) 18px 22px; border-bottom: 3px solid var(--ink); color: var(--ink); position: relative; overflow: hidden; }
.list-back { position: absolute; z-index: 8; top: calc(var(--safe-top) + 14px); left: 18px; background: rgba(0,0,0,.75); width: 48px; height: 48px; }
.list-search { position: absolute; z-index: 8; top: calc(var(--safe-top) + 14px); right: 18px; background: rgba(0,0,0,.75); width: 48px; height: 48px; }
.list-hero { padding-top: calc(var(--safe-top) + 62px); }
.list-hero h2 { margin: 18px 0 2px; font-size: 34px; }
.list-hero p { margin: 0; font-weight: 500; opacity: .75; }
.list-hero .art { position: absolute; right: -6px; bottom: -14px; font-size: 110px; transform: rotate(12deg); }
.list-hero .art-svg { right: 4px; bottom: 2px; }
.list-hero .art-svg svg { width: 108px; height: 108px; }
.story-row { display: flex; gap: 14px; align-items: center; margin: 16px 18px 0; padding: 10px; border-radius: 22px; background: var(--dark-2); border: 3px solid var(--ink); box-shadow: var(--shadow); width: calc(100% - 36px); text-align: left; }
.story-row canvas { width: 92px; height: 92px; border-radius: 16px; flex: none; border: 2px solid var(--ink); }
.story-row .meta { flex: 1; min-width: 0; }
.story-row h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.story-row .st { font-size: 13px; color: #bdb8b0; display: flex; gap: 8px; align-items: center; }
.story-row .st .ok { color: #8fd82f; }
.empty { text-align: center; color: #9a958d; padding: 60px 30px; }
.search-box { margin: 0 18px 6px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-radius: 99px; background: var(--dark-2); }
.search-box input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 17px; }

.toast { position: absolute; left: 50%; top: calc(var(--safe-top) + 20px); transform: translateX(-50%); z-index: 99; background: #fff; color: var(--ink); padding: 12px 20px; border-radius: 99px; border: 3px solid var(--ink); font-weight: 600; box-shadow: var(--shadow); animation: toast 2.4s ease forwards; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -20px); } }

/* ═══════════ v3: oyunlaştırma, Keşfet, oyunlar ═══════════ */
.tab[data-tab=feed].active svg { fill: none; }
.tab[data-tab=feed].active svg path { fill: currentColor; stroke: currentColor; }
.tabbar.on-feed { background: rgba(20,20,24,.35); }

/* HUD */
.ring { width: 32px; height: 32px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: rgba(255,255,255,.25); }
.ring .fg { stroke: var(--yellow); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.pill-round svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }

@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

/* XP / kutlamalar */
.xp-float { position: absolute; z-index: 95; left: 50%; top: 38%; transform: translateX(-50%); font-weight: 800; font-size: 28px; color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; pointer-events: none; animation: xpup 1.3s ease-out forwards; }
@keyframes xpup { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -80px) scale(1); } }
.celebrate { position: absolute; inset: 0; z-index: 96; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; background: rgba(10,6,20,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .25s; padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bot) + 20px); }
.celebrate > .cel-card { margin: auto; flex: none; }
.celebrate.out { animation: fadeout .2s forwards; }
.cel-card { position: relative; width: 100%; max-width: 340px; text-align: center; background: var(--purple); border: 4px solid var(--ink); box-shadow: 6px 8px 0 var(--ink); border-radius: 30px; padding: 26px 22px 22px; animation: celpop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes celpop { from { transform: scale(.5) rotate(-6deg); opacity: 0; } }
.cel-owl { display: block; width: 130px; height: 130px; margin: -96px auto -6px; filter: drop-shadow(4px 5px 0 rgba(0,0,0,.6)); }
.cel-card.grow { padding-top: 22px; }
.cel-k { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(0,0,0,.25); font-weight: 700; font-size: 13px; }
.grow-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 14px; }
.grow-row canvas { border-radius: 50%; border: 3px solid var(--ink); }
.grow-row .g-old { width: 84px; height: 84px; opacity: .75; filter: saturate(.7); }
.grow-row .g-new { width: 128px; height: 128px; box-shadow: 0 0 0 4px var(--yellow), 0 0 28px rgba(255,214,90,.6); animation: celpop .6s .5s cubic-bezier(.2,1.6,.4,1) both; }
.house-col { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 12px; }
.house-col canvas { display: block; border-radius: 16px; border: 3px solid var(--ink); background: linear-gradient(#8fd1f0, #6fae55 70%); }
.house-col .h-old { width: min(150px, 17dvh); opacity: .7; filter: saturate(.6); }
.house-col .h-new { width: min(260px, 100%, 31dvh); box-shadow: 0 0 0 4px var(--yellow), 0 0 28px rgba(255,214,90,.6); animation: celpop .6s .5s cubic-bezier(.2,1.6,.4,1) both; }
.house-col .g-arrow { transform: rotate(90deg); line-height: 1; }
.g-arrow { font-size: 26px; font-weight: 800; color: var(--yellow); -webkit-text-stroke: 1px var(--ink); }
.cel-owl .lid { transform-origin: center; transform-box: fill-box; animation: blink 3s infinite; }
.cel-big { font-size: 64px; font-weight: 800; color: var(--yellow); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; line-height: 1.1; }
.cel-card h2 { margin: 4px 0 6px; font-size: 26px; }
.cel-card p { margin: 0 0 18px; opacity: .9; }
.cel-card .btn { width: 100%; }
.badge-pop { position: absolute; z-index: 97; top: calc(var(--safe-top) + 16px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 99px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); animation: badgein .5s cubic-bezier(.2,1.5,.4,1); white-space: nowrap; }
.badge-pop.out { animation: badgeout .3s forwards; }
@keyframes badgein { from { transform: translate(-50%, -80px); } }
@keyframes badgeout { to { transform: translate(-50%, -100px); opacity: 0; } }
.badge-pop .e { font-size: 32px; }
.badge-pop .e svg { width: 36px; height: 36px; }
.badge-pop small { display: block; font-size: 11px; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: .5px; }
.badge-pop b { font-size: 17px; }
.xp-pill { display: inline-block; margin: -6px 0 14px; padding: 8px 18px; border-radius: 99px; background: rgba(255,196,20,.15); color: var(--yellow); font-weight: 700; font-size: 18px; border: 2px solid rgba(255,196,20,.4); }
.xp-pill small { font-weight: 500; font-size: 12px; opacity: .8; }
.link-btn { color: #bdb8b0; font-size: 15px; padding: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* Bugün paneli */
.sheet-layer { background: transparent; animation: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: fadein .25s; }
.sheet-layer.closing .sheet-bg { animation: fadeout .25s forwards; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--dark); border-radius: 30px 30px 0 0; border-top: 3px solid var(--ink); padding: 10px 18px calc(var(--safe-bot) + 24px); animation: up .38s cubic-bezier(.2,.9,.3,1); }
.sheet-layer.closing .sheet { animation: down .28s ease-in forwards; }
.grip { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); margin: 0 auto 16px; }
/* Seri sayfası (Bugün): neobrutalist, detay sayfasıyla aynı dil */
.td-hero {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: #ff8a00;
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--ink);
  padding: 14px;
  margin-bottom: 12px;
  color: var(--ink);
  transition: background .3s;
}
.td-hero.done {
  background: #7ae582;
}
.td-streak {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 86px;
  padding: 8px 6px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--ink);
}
.td-streak-fire {
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}
.td-streak-fire svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.15));
}
.td-streak b {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.td-streak small {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
  opacity: .85;
}
.td-goal {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.td-goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.td-goal-head small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .9;
}
.td-reward-chip {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}
.td-reward-chip .ico-tuy {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.td-goal b {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 2px;
}
.td-goal b span {
  font-size: 14px;
  font-weight: 700;
  opacity: .85;
  margin-left: 2px;
}
.td-segments {
  display: flex;
  gap: 5px;
  height: 12px;
  margin: 5px 0 3px;
}
.td-segments i {
  flex: 1;
  background: rgba(255, 255, 255, .7);
  border: 2px solid var(--ink);
  border-radius: 99px;
  transition: background .2s, transform .2s;
}
.td-segments i.on {
  background: var(--ink);
  transform: scaleY(1.08);
}
.td-hero.done .td-segments i.on {
  background: var(--ink);
}
.td-goal em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.td-goal em .ico-tuy {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
.td-card {
  background: #fff;
  border: 3.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 12px 6px;
  margin-bottom: 12px;
}
.td-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.td-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.td-day-dot {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 16px;
  background: #f1ece2;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  transition: transform .15s;
}
.td-flame-ico {
  width: 22px;
  height: 22px;
  display: block;
}
.td-dot-ico {
  width: 14px;
  height: 14px;
  display: block;
}
.td-day.some .td-day-dot {
  background: #c9a7ff;
}
.td-day.full .td-day-dot {
  background: #ffc414;
}
.td-day.today .td-day-dot {
  border-width: 3px;
  box-shadow: 0 3px 0 var(--ink);
  transform: translateY(-2px);
}
.td-day-label {
  font-size: 11px;
  font-weight: 800;
}
.td-day.today .td-day-label {
  background: var(--ink);
  color: #fff;
  padding: 2px 5px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1;
}
.td-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.td-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  background: var(--c);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--ink);
  text-align: left;
  transition: transform .1s, box-shadow .1s;
}
.td-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.td-btn.off {
  opacity: .55;
}
.td-ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
.td-ico svg {
  width: 34px;
  height: 34px;
}
.td-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-txt small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 4px;
}
.td-txt small .ico-tuy {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
}
.td-txt b {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-go {
  flex: none;
  font-size: 18px;
  font-weight: 900;
}
.td-clean-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 2.5px dashed #86efac;
  border-radius: 18px;
  color: #166534;
}
.tcn-ico {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
}
.tcn-ico svg {
  width: 30px;
  height: 30px;
}
.tcn-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tcn-txt b {
  font-size: 13.5px;
  font-weight: 800;
}
.tcn-txt small {
  font-size: 11.5px;
  font-weight: 600;
  opacity: .85;
}
.td-freeze-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #e8f4fc;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 3px 0 var(--ink);
}
.tf-ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
}
.tf-ico svg {
  width: 32px;
  height: 32px;
}
.tf-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tf-txt b {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.tf-txt small {
  font-size: 11px;
  font-weight: 600;
  color: #335c67;
  line-height: 1.25;
}
.tf-btn {
  flex: none;
  background: #ffc414;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 0 var(--ink);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.tf-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--ink);
}

/* Test sekmesi modları */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 18px 18px; }
.modes::-webkit-scrollbar { display: none; }
.mode { position: relative; min-width: 0; height: 128px; border-radius: 22px; border: 3px solid var(--ink); box-shadow: var(--shadow); color: var(--ink); padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; overflow: hidden; }
.mode .art { position: absolute; top: 6px; right: 6px; font-size: 44px; transform: rotate(10deg); }
.mode b { font-size: 19px; }
.mode small { font-size: 12.5px; font-weight: 500; opacity: .8; }
/* emoji yerine çizilen simgeler */
.mode .art svg { width: 54px; height: 54px; }
.mode .art .gi { filter: drop-shadow(0 2px 0 rgba(0,0,0,.14)); }
.mode .dot { position: absolute; top: 10px; left: 12px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #ff3b5c; color: #fff; font-style: normal; font-weight: 700; font-size: 14px; display: grid; place-items: center; border: 2px solid var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.section-title .muted, .muted { color: #9a958d; font-weight: 500; }

/* Profil */
.level-card { display: flex; gap: 16px; align-items: center; margin: 4px 18px 18px; padding: 16px; border-radius: 24px; background: var(--purple); border: 3px solid var(--ink); box-shadow: var(--shadow); }
.level-card .avatar { position: relative; width: 86px; height: 86px; flex: none; border-radius: 50%; background: #6b3fc4; border: 3px solid var(--ink); display: grid; place-items: center; }
.level-card .avatar svg { width: 84%; margin-top: 10px; }
.level-card .avatar .rank-owl { width: 100%; height: 100%; display: block; border-radius: 50%; }
.level-card { flex-wrap: wrap; }
.lc-next { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; margin-top: 2px; padding: 9px 12px; border-radius: 16px; background: rgba(0,0,0,.22); border: 2px solid rgba(0,0,0,.35); color: #fff; text-align: left; font: inherit; cursor: pointer; }
.lc-next .ln-gift svg { width: 34px; height: 34px; display: block; animation: giftwiggle 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes giftwiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-10deg); } 90% { transform: rotate(9deg); } 94% { transform: rotate(-5deg); } }
.lc-next .ln-t { flex: 1; min-width: 0; }
.lc-next small { display: block; font-size: 11px; font-weight: 700; opacity: .75; text-transform: uppercase; letter-spacing: .4px; }
.lc-next b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-next .ln-go { font-size: 24px; font-weight: 800; opacity: .8; }
/* kutlama kartında hediye ve sıradaki ödül */
.cel-gift { display: flex; align-items: center; gap: 10px; margin: -6px auto 12px; padding: 8px 14px; width: fit-content; border-radius: 16px; background: #fff; color: var(--ink); border: 3px solid var(--ink); text-align: left; }
.cel-gift .cg-ico svg { width: 32px; height: 32px; display: block; }
.cel-gift small { display: block; font-size: 11px; font-weight: 700; opacity: .6; text-transform: uppercase; }
.cel-next { margin: -4px 0 14px; padding: 8px 12px; border-radius: 14px; background: rgba(0,0,0,.22); font-size: 13px; }
/* seviye yolu */
.lp-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 18px 16px 40px; }
.lp-head { display: flex; align-items: center; justify-content: space-between; }
.lp-head h2 { margin: 0; font-size: 26px; }
.lp-sub { margin: 4px 0 16px; opacity: .7; font-size: 14px; }
.lp-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 20px; background: #2e2c2a; border: 3px solid #141414; }
.lp-row:not(:last-child)::after { content: ''; position: absolute; left: 31px; bottom: -13px; width: 4px; height: 13px; background: #141414; }
.lp-row.done { background: #3a3550; }
.lp-row.cur { background: var(--purple); box-shadow: 0 0 0 3px var(--yellow); }
.lp-row.lock { opacity: .55; }
.lp-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: #48443f; border: 3px solid #141414; }
.lp-row.done .lp-n, .lp-row.cur .lp-n { background: var(--yellow); color: var(--ink); }
.lp-m { flex: 1; min-width: 0; }
.lp-m b { display: block; font-size: 16px; }
.lp-m small { opacity: .7; font-size: 12px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.lp-chip { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; border: 2px solid #141414; color: var(--ink); background: #ffd257; }
.lp-chip.house { background: #8fd1f0; }
.lp-chip.freeze { background: #d8f3ff; }
.lp-owl { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #141414; }
.lp-house { flex: none; width: 96px; height: 70px; border-radius: 12px; border: 3px solid #141414; background: linear-gradient(#8fd1f0, #6fae55 70%); }
.lp-ico svg { width: 44px; height: 44px; display: block; }
.lp-row.lock canvas { filter: grayscale(.6); }
.level-card .lv { position: absolute; bottom: -6px; right: -6px; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.lc-m { flex: 1; min-width: 0; }
.lc-name-row { display: flex; align-items: center; gap: 7px; }
.lc-name-row h2 { margin: 0; min-width: 0; font-size: 23px; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-edit { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.22); border: 2px solid rgba(13,13,15,.4); transition: transform .12s; }
.lc-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lc-edit:active { transform: scale(.9); }
.lc-tag { display: inline-block; margin: 4px 0 9px; padding: 2px 9px; border-radius: 99px; background: rgba(0,0,0,.22); font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.lc-xp { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 600; opacity: .88; }
.lc-xp span { white-space: nowrap; }
.xpbar { display: block; height: 14px; border-radius: 99px; background: rgba(0,0,0,.3); border: 2px solid var(--ink); overflow: hidden; margin-bottom: 4px; }
.xpbar i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }
.panel { margin: 0 18px 18px; padding: 14px; border-radius: 20px; background: var(--dark-2); }
/* Aktivite kartı: son 2 hafta takvimi */
.act-card { border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 14px 14px; }
.ac-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 16px; }
.ac-main { min-width: 0; }
.ac-mid { align-self: start; margin-top: 2px; padding: 4px 12px; border-radius: 12px; background: var(--purple); color: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.ac-head .ac-streak { justify-self: end; }
.ac-streak { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 70px; padding: 7px 10px 6px; border-radius: 16px; background: #ffb27a; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ac-streak svg { width: 24px; height: 24px; animation: acflame 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.ac-streak b { font-size: 24px; font-weight: 800; line-height: 1; margin-top: 1px; }
.ac-streak small { font-size: 10.5px; font-weight: 700; color: rgba(13,13,15,.72); white-space: nowrap; }
.ac-streak.off { background: #4a4743; color: #e8e3da; }
.ac-streak.off svg { filter: grayscale(1); opacity: .6; animation: none; }
.ac-streak.off small { color: #bdb8b0; }
.ac-main small { display: block; font-size: 12px; font-weight: 700; color: #bdb8b0; text-transform: uppercase; letter-spacing: .6px; }
.ac-main > b { display: block; font-size: 34px; font-weight: 800; line-height: 1.05; color: var(--yellow); }
.ac-main > b span { font-size: 16px; color: #e8e3da; }
.ac-cmp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ac-delta { padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 11.5px; font-weight: 800; color: #bdb8b0; white-space: nowrap; }
.ac-delta.up { background: #8fd82f; color: var(--ink); }
.ac-vs { font-size: 11px; font-weight: 600; color: #b0aba3; }
@keyframes acflame { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .ac-streak svg { animation: none; } }
.ac-cal { display: flex; flex-direction: column; gap: 6px; }
.ac-row { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)) 34px; gap: 5px; align-items: center; }
.ac-wk { font-size: 10.5px; font-weight: 700; color: #b0aba3; }
.ac-dow em { font-style: normal; text-align: center; font-size: 10.5px; font-weight: 700; color: #b0aba3; }
.ac-tot { text-align: right; font-size: 13px; font-weight: 800; line-height: 1; color: #e8e3da; }
.ac-tot small { display: block; font-size: 9px; font-weight: 700; color: #b0aba3; }
.ac-cal i.day { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(to top, var(--yellow) var(--p, 0%), #2c2a27 var(--p, 0%)); transition: transform .12s; }
.ac-cal i.day em { position: relative; font-style: normal; font-size: 12px; font-weight: 800; color: #9a958d; }
.ac-cal i.day.l1 { background: linear-gradient(to top, #ff9f1c var(--p), #2c2a27 var(--p)); box-shadow: inset 0 0 0 2px rgba(255,159,28,.55); }
.ac-cal i.day.l1 em { color: #e8e3da; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ac-cal i.day.l2, .ac-cal i.day.l3 { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.ac-cal i.day.l2 em, .ac-cal i.day.l3 em { color: var(--ink); }
.ac-cal i.day.l3 { background: #ff5a36; }
.ac-cal i.day s { position: absolute; top: 1px; right: 3px; text-decoration: none; font-size: 9px; font-weight: 900; line-height: 1; color: var(--ink); }
.ac-cal i.day.fut { cursor: default; background: none; border: 2px dashed rgba(255,255,255,.12); }
.ac-cal i.day.fut em { color: #6a665f; }
.ac-cal i.day.today { outline: 2px solid #fff; outline-offset: 2px; }
.ac-cal i.day.sel { transform: scale(1.1); z-index: 1; }
.ac-cal i.day:active:not(.fut) { transform: scale(.94); }
.ac-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12px; font-weight: 600; color: #bdb8b0; }
.ac-key span { display: inline-flex; align-items: center; gap: 5px; }
.ac-key i { width: 15px; height: 15px; border-radius: 5px; border: 2px solid var(--ink); }
.ac-key .k1 { background: linear-gradient(to top, #ff9f1c 50%, #2c2a27 50%); }
.ac-key .k2 { background: var(--yellow); }
.ac-key .k3 { background: #ff5a36; }
.heat-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding: 8px 11px; border-radius: 11px; background: rgba(255,255,255,.05); font-size: 12px; }
.hi-date { color: #e8e3da; font-weight: 600; }
.hi-meta { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.hi-reads { color: #b7b2aa; font-size: 11.5px; font-weight: 600; }
.hi-reads:empty { display: none; }
.hi-xp { color: var(--yellow); font-weight: 800; }
.hi-xp.zero { color: #9a958d; font-weight: 600; }
/* Aktivite kartı: neobrutalist çerçeve + özet chip'leri */
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 18px; }
.badge { min-width: 0; aspect-ratio: .85; border-radius: 18px; background: var(--dark-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; }
.badge span { display: flex; align-items: center; justify-content: center; height: 42px; font-size: 34px; filter: grayscale(1) brightness(.5); opacity: .5; }
.badge span svg { width: 42px; height: 42px; }
.badge small { max-width: 100%; overflow-wrap: anywhere; font-size: 10.5px; text-align: center; color: #8a857d; line-height: 1.2; }
.badge.on { background: #fff8e1; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.badge.on span { filter: none; opacity: 1; }
.badge.on small { color: var(--ink); font-weight: 600; }
.settings { display: flex; flex-direction: column; gap: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.set-label { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 600; color: #f0ece1; }
.set-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; }
.set-ico svg { width: 28px; height: 28px; }
.set-name { display: flex; align-items: center; gap: 7px; max-width: 58%; padding: 7px 12px; border-radius: 99px; background: #2c2a27; font-size: 14px; font-weight: 700; }
.set-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.set-name svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.seg { display: flex; background: #2c2a27; border-radius: 99px; padding: 3px; }
.seg button { padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; color: #bdb8b0; }
.seg button.on { background: var(--yellow); color: var(--ink); }
.switch { width: 52px; height: 30px; border-radius: 99px; background: #4a4743; position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: #8fd82f; }
.switch.on i { transform: translateX(22px); }

/* Kapak ek bilgi */
.cover-meta { display: flex; gap: 14px; margin: -22px 0 24px; font-size: 14px; color: rgba(255,255,255,.75); }

/* Okuyucu: alıntı + sıradaki */
.art-meta { margin-top: 10px; font-size: 13px; font-weight: 500; opacity: .7; }
.art-body > p { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; border-radius: 6px; }
.art-body > p.quoted { background: rgba(255,196,20,.12); box-shadow: -10px 0 0 rgba(255,196,20,.12), inset 3px 0 0 var(--yellow); padding-left: 10px; }
.next-title { margin: 30px 0 12px; font-size: 18px; font-weight: 600; }
.next-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.next-card { position: relative; height: 200px; border-radius: 20px; overflow: hidden; border: 3px solid var(--ink); text-align: left; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; gap: 6px; }
.next-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.next-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.85)); }
.next-card > *:not(canvas) { position: relative; z-index: 1; }
.next-card b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.chip-s { align-self: flex-start; padding: 3px 9px; border-radius: 99px; color: var(--ink); font-size: 11.5px; font-weight: 600; }

/* Test ekleri */
.opt { display: flex; align-items: center; gap: 12px; position: relative; }
.opt > i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; }
.opt-xp { position: absolute; right: 14px; font-weight: 800; color: var(--ink); animation: xpup2 .8s ease-out forwards; }
@keyframes xpup2 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(-4px); } }
.combo { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: var(--yellow); padding: 3px 10px 3px 7px; border-radius: 99px; font-size: 12px; font-weight: 800; line-height: 1; }
.combo svg { width: 14px; height: 14px; display: block; flex: none; }

/* Alıntılar */
.quote-card { margin: 16px 18px 0; padding: 18px 18px 14px; border-radius: 22px; background: #f4f1ea; color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); border-left: 10px solid var(--c); cursor: pointer; }
.quote-card p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.5; }
.quote-card .qf { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; opacity: .75; }
.quote-card .qf button { color: #c0392b; font-weight: 600; }

/* ─────────── Keşfet ─────────── */
.feed { scroll-snap-type: y mandatory; background: #000; }
.feed-head { position: sticky; top: 0; height: 0; z-index: 5; pointer-events: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.slide-info > * { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.slide.active .slide-info > * { opacity: 1; transform: none; }
.slide.active .slide-info > :nth-child(2) { transition-delay: .06s; }
.slide.active .slide-info > :nth-child(3) { transition-delay: .12s; }
.slide.active .slide-info > :nth-child(4) { transition-delay: .18s; }
.rail button:active svg { transform: scale(.86); }
.rail [data-a=like].on svg { filter: drop-shadow(0 0 10px rgba(255,77,125,.8)) drop-shadow(0 0 1.5px rgba(0,0,0,.55)) drop-shadow(0 3px 6px rgba(0,0,0,.45)); animation: likepop .4s; }
.rail [data-a=like].on .rf-heart { fill: #ff4d7d; }
.rail [data-a=mark].on svg { filter: drop-shadow(0 0 10px rgba(255,196,20,.8)) drop-shadow(0 0 1.5px rgba(0,0,0,.55)) drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
.rail [data-a=mark].on .rf-mark { fill: #ffc414; }
.rail [data-a=share] svg { filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.rail [data-a=share]:active svg { transform: scale(.88); }
@keyframes likepop { 40% { transform: scale(1.3); } }
.read-tag { position: absolute; top: calc(var(--safe-top) + 22px); right: 20px; display: none; }
.burst { position: absolute; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; animation: burst .9s ease-out forwards; z-index: 4; }
.burst svg { width: 100%; height: 100%; fill: #ff4d7d; stroke: #fff; stroke-width: 1; filter: drop-shadow(0 4px 16px rgba(255,77,125,.6)); }
@keyframes burst { 0% { transform: scale(.2) rotate(-15deg); opacity: 0; } 25% { transform: scale(1.2) rotate(8deg); opacity: 1; } 60% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1.1) translateY(-60px); opacity: 0; } }

/* ─────────── Yıldırım ─────────── */
.blitz-layer { background: radial-gradient(circle at 50% 30%, #3a2a7a, #120b2a 70%); }
.blitz { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 16px) 18px calc(var(--safe-bot) + 22px); }
.b-top { display: flex; align-items: center; gap: 12px; }
.b-top .circle-btn { width: 46px; height: 46px; }
.b-top .circle-btn svg { width: 20px; height: 20px; }
.b-time { flex: 1; height: 14px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.b-time i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffc414, #ff8a00); border-radius: 99px; }
.b-time.low i { background: #ff3b5c; animation: pulse 0.6s infinite; }
.b-sec { width: 30px; text-align: right; font-size: 20px; }
.b-score { margin: 18px 0 6px; text-align: center; font-size: 46px; font-weight: 800; color: #fff; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.b-score .x { font-size: 22px; color: var(--yellow); }
.b-score.pop { animation: starpop .35s; }
.b-stage { flex: 1; position: relative; display: grid; place-items: center; }
.b-card { position: relative; width: 100%; max-width: 380px; padding: 26px 22px; border-radius: 28px; background: var(--c); color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 8px 0 var(--ink); touch-action: none; cursor: grab; transition: transform .25s, opacity .25s; animation: cardin .3s cubic-bezier(.2,1.4,.4,1); }
.b-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; background: var(--tint, transparent); opacity: calc(var(--ta, 0) * .5); pointer-events: none; }
@keyframes cardin { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.b-card .tag { font-size: 13px; font-weight: 600; opacity: .7; }
.b-card .q { margin: 10px 0 18px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.b-card .ans { padding: 14px 16px; border-radius: 16px; background: #fff; border: 3px solid var(--ink); font-size: 19px; font-weight: 700; }
.b-card.fly-r { transform: translateX(130%) rotate(18deg); opacity: 0; }
.b-card.fly-l { transform: translateX(-130%) rotate(-18deg); opacity: 0; }
.b-card.good::after { background: #8fd82f; opacity: .55; }
.b-card.bad::after { background: #ff3b5c; opacity: .55; }
.b-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.b-btns button { height: 68px; border-radius: 22px; font-size: 21px; font-weight: 700; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); }
.b-btns button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.b-no { background: #ff6b6b; }
.b-yes { background: #8fd82f; }
.b-hint { text-align: center; font-size: 12px; opacity: .5; margin: 10px 0 0; }
.b-intro { text-align: center; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.b-intro .big { font-size: 72px; animation: bob 2s ease-in-out infinite; }
.b-intro h2 { margin: 0; font-size: 30px; }
.b-intro p { margin: 4px 0; color: #d8d2ff; line-height: 1.45; }
.b-intro .btn { width: 100%; margin-top: 14px; }


/* ═══════════ v4: mobil uyum ═══════════ */
/* Okuyucu: kaydırınca beliren ince başlık çubuğu */
.art-mini { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 12px) 18px 12px; color: var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-110%); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
.art-mini.show { transform: none; }
.art-mini b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-mini .art-progress { bottom: -3px; }
.art-body { font-size: min(var(--fs, 21px), 5.2vw); }

/* Maskot balonu ekran dışına taşmasın */

/* Sahne metnin arkasında kalmasın: canvas üst bölgeyi kaplar, alt kısım karanlığa erir */
.cover { background: #000; }
.cover canvas.scene { height: max(56%, calc(100% - 280px)); }
.cover .shade { background: linear-gradient(rgba(0,0,0,.3), transparent 16%, transparent calc(max(56%, 100% - 280px) - 110px), #000 max(56%, calc(100% - 280px))); }

/* Küçük / kısa ekranlar */
@media (max-width: 430px), (max-height: 760px) {
  .pill { height: 40px; padding: 0 12px; font-size: 16px; gap: 6px; }
  .pill .ico { font-size: 18px; }
  .pill-round { width: 40px; padding: 0; }
  .ring { width: 26px; height: 26px; }
  .topbar { padding: calc(var(--safe-top) + 10px) 16px 10px; }
  .topbar h1 { font-size: 32px; }

  .stroke-num { font-size: 28px; -webkit-text-stroke: 6px var(--ink); }

  .tabbar { height: 66px; left: 10px; right: 10px; bottom: calc(10px + var(--safe-bot)); padding: 5px; border-radius: 36px; }
  .tab-indicator { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 31px; }
  .tab { gap: 2px; font-size: 10.5px; }
  .tab svg { width: 23px; height: 23px; }

  /* Okuyucu */
  .art-head { padding: calc(var(--safe-top) + 16px) 18px 18px; }
  .art-chip { font-size: 15px; padding: 7px 16px 7px 12px; }
  .art-head h1 { font-size: 22px; margin-top: 12px; }
  .art-meta { font-size: 12px; margin-top: 8px; }
  .art-body { padding: 22px 18px 200px; line-height: 1.55; }
  .art-dock { left: 16px; right: 16px; bottom: calc(var(--safe-bot) + 14px); }
  .dock-btn { width: 54px; height: 54px; }
  .dock-seg button { width: 56px; height: 46px; }
  .dock-btn svg, .dock-seg svg { width: 24px; height: 24px; }
  .art-fade { height: 130px; }
  .more-menu { bottom: calc(var(--safe-bot) + 80px); right: 16px; }

  /* Kapak */
  .cover-bottom { padding: 0 18px calc(var(--safe-bot) + 18px); }
  .chip { font-size: 16px; padding: 7px 16px 7px 12px; }
  .cover-title-row { margin: 12px 0 30px; }
  .cover-title-row h2 { font-size: 23px; }
  .cover-meta { margin: -18px 0 18px; font-size: 13px; }
  .cover-actions { grid-template-columns: 54px 1fr; gap: 10px; }
  .cover-actions .circle-btn { width: 54px; height: 54px; }
  .btn { height: 52px; font-size: 18px; }
  .cover-top { top: calc(var(--safe-top) + 10px); }
  .cover-top .circle-btn { width: 46px; height: 46px; }
  .cover-top .keys { padding: 7px 14px; font-size: 17px; }

                
  /* Kartlar ve listeler */
  .grid2 { gap: 14px; padding: 4px 14px calc(100px + var(--safe-bot)); }
  .card { height: 118px; padding: 12px; border-radius: 18px; }
  .card h3 { font-size: 17.5px; }
  .card .art { font-size: 50px; }
  .progress { font-size: 15px; }
  .folder { height: 132px; }
  .folder .fe { font-size: 36px; margin-top: 14px; }
  .folder b { font-size: 16.5px; }
  .modes { padding: 2px 14px 14px; gap: 10px; }
  .modes { gap: 10px; padding: 4px 16px 16px; }
  .mode { height: 112px; padding: 11px; }
  .mode .art { font-size: 36px; }
  .mode b { font-size: 17px; }
  .story-row { margin: 12px 14px 0; width: calc(100% - 28px); }
  .story-row canvas { width: 76px; height: 76px; }
  .story-row h4 { font-size: 15px; }
  .list-hero h2 { font-size: 28px; }
  .list-hero .art { font-size: 84px; }
  .list-hero .art-svg svg { width: 84px; height: 84px; }
  .card .art-svg svg { width: 54px; height: 54px; }
  .folder .fe svg { width: 50px; height: 50px; }
  .mode .art svg { width: 44px; height: 44px; }

  /* Test ve oyunlar */
  .quiz-wrap { padding: calc(var(--safe-top) + 12px) 14px calc(var(--safe-bot) + 16px); }
  .qcard { margin: 16px 0 14px; padding: 16px; }
  .qcard h3 { font-size: 19px; }
  .opt { padding: 12px 14px; font-size: 16px; }
  .opts { gap: 9px; }
  .result .big-stars .qstar { width: 60px; height: 60px; }
  .blitz { padding: calc(var(--safe-top) + 12px) 14px calc(var(--safe-bot) + 14px); }
  .b-score { margin: 8px 0 4px; font-size: 36px; }
  .b-card { padding: 18px 16px; }
  .b-card .q { font-size: 17px; margin: 8px 0 12px; }
  .b-card .ans { font-size: 16px; padding: 10px 12px; }
  .b-btns button { height: 56px; font-size: 18px; }
  .level-card { margin: 4px 14px 14px; padding: 12px; gap: 12px; }
  .level-card .avatar { width: 70px; height: 70px; }
  .lc-m h2 { font-size: 19px; }
  .stats { margin: 0 14px 14px; gap: 8px; }
  .stat { padding: 7px 2px 6px; }
  .stat .v { font-size: 21px; }
  .stat .v svg { width: 32px; height: 32px; }
  .stat .l { font-size: 11px; }
  .badges { gap: 8px; padding: 0 14px 14px; }
  .badge span { height: 32px; font-size: 28px; }
  .badge span svg { width: 32px; height: 32px; }
  .panel { margin: 0 14px 14px; }
}

/* ── Keşfet üst şeridi: cam çıkartmalar (tabbar ile aynı dil, renk yalnızca vurgularda) ── */
.fh-bar { position: absolute; top: calc(var(--safe-top) + 14px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 10; }
.fh-bar button { pointer-events: auto; color: #fff; transition: transform .12s; }
.fh-bar button:active { transform: scale(.94); }
.fh-today, .fh-tuy { height: 44px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)), rgba(14,12,22,.38); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 18px rgba(0,0,0,.25); }

.fh-today { display: flex; align-items: center; overflow: hidden; }
.fh-streak { display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 11px 0 10px; border-right: 1px solid rgba(255,255,255,.16); }
.fh-streak .sp-ico { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(255,122,61,.6)); animation: fhflick 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes fhflick { 50% { transform: scale(1.08) rotate(-3deg); } }
.fh-streak b { font-size: 17px; font-weight: 800; line-height: 1; }
.fh-streak small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 2px; }
.fh-today.cold .fh-streak .sp-ico { filter: grayscale(1); opacity: .55; animation: none; }
.fh-goal { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px 0 11px; }
.fh-goal small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; line-height: 1; text-align: left; color: rgba(255,255,255,.6); }
.fh-blocks { display: flex; gap: 3px; }
.fh-blocks i { width: 10px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); transition: background .3s; }
.fh-blocks i.on { background: #b48cff; box-shadow: 0 0 6px rgba(180,140,255,.6); }
.fh-today.done .fh-goal small { color: #7ee89a; }
.fh-today.done .fh-blocks i.on { background: #7ee89a; box-shadow: 0 0 6px rgba(126,232,154,.6); }

.fh-tuy { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 11px;
  background: linear-gradient(180deg, rgba(255,214,90,.2), rgba(255,180,20,.08)), rgba(14,12,22,.38); border: 1.5px solid rgba(255,206,70,.85);
  box-shadow: inset 0 1px 0 rgba(255,240,190,.45), 0 0 14px rgba(255,196,20,.28), 0 6px 18px rgba(0,0,0,.25); }
.fh-tuy .ico-tuy { width: 21px; height: 21px; flex: none; }
.fh-tuy .ico-tuy { filter: drop-shadow(0 0 4px rgba(255,210,87,.6)); }
.fh-tuy b { font-size: 17px; font-weight: 800; line-height: 1; color: #ffe066; text-shadow: 0 0 10px rgba(255,214,60,.65); }
.fh-chip.bump { animation: fhbump .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes fhbump { 40% { transform: scale(1.18); } }
@media (max-width: 430px), (max-height: 760px) {
  .fh-bar { left: 12px; right: 12px; }
  .fh-today, .fh-tuy { height: 40px; }
}
.strip .sp.day small { font-size: 12px; font-weight: 600; opacity: .85; margin-right: 2px; }
.strip .sp svg { flex: none; }
.strip .sp .sp-ico { width: 20px; height: 20px; }
.strip .sp .ico-tuy { width: 19px; height: 19px; }
.strip .sp.day i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); }
.strip .sp.day i.on { background: var(--gold); box-shadow: 0 0 8px rgba(255,210,87,.9); }

/* ── okuma sonu: tek soru + yeni yıldız ── */
.art-end.mini { text-align: left; }
.art-end.mini .k { color: var(--gold); font-size: 15px; font-weight: 700; letter-spacing: .4px; }
.art-end.mini .mq { margin: 8px 0 14px; color: #fff; font-size: 19px; line-height: 1.35; font-weight: 600; }
.mini-opts { display: flex; flex-direction: column; gap: 8px; }
.mini-opt { text-align: left; padding: 12px 14px; border-radius: 16px; background: #3a3733; border: 2px solid #4a4640; font-size: 16px; line-height: 1.3; transition: .2s; }
.mini-opt.right { background: #2f8a4a; border-color: #5fd47f; }
.mini-opt.wrong { background: #8a2f3c; border-color: #ff6b81; animation: shake .35s; }
.mini-opt.dim { opacity: .45; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.art-end.mini > .link-btn { display: block; margin: 14px auto 0; }
.art-end.mini.done > .link-btn { display: none; }
.mini-res { margin-top: 16px; padding: 18px 16px; border-radius: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #3a3733; animation: celpop .5s cubic-bezier(.2,1.6,.4,1); }
.mini-res.ok { background: linear-gradient(160deg, #2f8a4a, #3fa35c); }
.mr-e { font-size: 44px; line-height: 1; color: var(--gold); text-shadow: 0 0 18px rgba(255,210,87,.8); animation: spinin .9s cubic-bezier(.2,1.6,.4,1); }
@keyframes spinin { from { transform: scale(0) rotate(-180deg); } }
.mini-res b { font-size: 20px; }
.mini-res small { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.mini-res .btn { width: 100%; }

@media (max-width: 430px), (max-height: 760px) {
  .feed-head.strip .sp { height: 32px; padding: 0 10px; font-size: 14px; gap: 5px; }
  .strip .sp.day small { font-size: 11px; }
}

/* Kitaplık: bölümler ve sekme rozeti */
.grid2.tight { padding-bottom: 18px; }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: #ff3b5c; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.tab-dot[hidden] { display: none; }



/* ── Keşfet: ilk tasarım, sahne tam ekran ── */
.slide canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.35), transparent 20%, transparent 45%, rgba(0,0,0,.9) 85%); }
.slide-info { position: absolute; left: 20px; right: 86px; bottom: calc(118px + var(--safe-bot)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.slide-info h2 { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 600; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.slide .hook { margin: 0; font-size: 15.5px; line-height: 1.45; color: rgba(255,255,255,.88); display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.slide .hook small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.slide .chip { font-size: 15px; padding: 7px 16px 7px 12px; }
.slide-info .btn { height: 52px; padding: 0 24px; font-size: 18px; }
.rail { position: absolute; right: 12px; bottom: calc(126px + var(--safe-bot)); display: flex; flex-direction: column; gap: 14px; }
.rail button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .2px; text-shadow: 0 1px 6px rgba(0,0,0,.75); }
.rail svg { width: 52px; height: 52px; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.55)) drop-shadow(0 3px 6px rgba(0,0,0,.45)); transition: transform .2s; }
@media (max-width: 430px), (max-height: 760px) {
  .slide-info { left: 16px; right: 74px; bottom: calc(88px + var(--safe-bot)); gap: 9px; }
  .slide-info h2 { font-size: 21px; }
  .slide .hook { font-size: 14px; -webkit-line-clamp: 3; line-clamp: 3; }
  .slide .chip { font-size: 13.5px; padding: 6px 13px 6px 10px; }
  .slide-info .btn { height: 44px; font-size: 16px; padding: 0 18px; }
  .rail { right: 8px; bottom: calc(92px + var(--safe-bot)); gap: 10px; }
  .rail svg { width: 44px; height: 44px; }
  .rail button { font-size: 10px; }
}
.slide .shade { background: linear-gradient(rgba(0,0,0,.35), transparent 18%, transparent 38%, rgba(0,0,0,.75) 58%, rgba(0,0,0,.95) 78%); }
/* Keşfet: gölgesiz tam ekran, daha kompakt yazı */
.slide .shade { display: none; }
.slide-info { gap: 7px; }
.slide-info h2, .slide .hook, .rail button { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.7); }
.slide-info h2 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.slide .hook { font-size: 14px; -webkit-line-clamp: 1; line-clamp: 1; color: #fff; }
.slide .hook small { display: none; }
.slide .chip { font-size: 12.5px; padding: 4px 12px 4px 6px; gap: 7px; }
.slide .chip svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.slide-info .btn { height: 40px; padding: 0 16px; font-size: 15px; }
.slide-info .btn svg { width: 18px; height: 18px; }
@media (max-width: 430px), (max-height: 760px) {
  .slide-info h2 { font-size: 18px; }
  .slide .hook { font-size: 13.5px; }
  .slide-info .btn { height: 38px; font-size: 14.5px; }
}
/* Alt menü: her ekranda aynı, daha kompakt hap */
.tabbar { left: 50%; right: auto; width: min(300px, calc(100% - 40px)); transform: translateX(-50%); height: 60px; padding: 5px; border-radius: 32px; bottom: calc(12px + var(--safe-bot)); }
.tabbar.hidden { transform: translate(-50%, 140%); }
.tab { gap: 1px; font-size: 10px; }
.tab svg { width: 22px; height: 22px; }
.tab-indicator { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 27px; }
.tab-dot { top: 2px; }
.slide-info { bottom: calc(86px + var(--safe-bot)); }
.rail { bottom: calc(90px + var(--safe-bot)); }
@media (max-width: 430px), (max-height: 760px) {
  .tabbar { height: 56px; bottom: calc(10px + var(--safe-bot)); }
  .slide-info { bottom: calc(80px + var(--safe-bot)); }
  .rail { bottom: calc(84px + var(--safe-bot)); }
}
/* Alt menü: liquid glass (Chrome/Android ve Safari'de aynı: blur + doygunluk + ışık kenarları) */
.tabbar, .tabbar.on-feed {
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.06) 45%, rgba(255,255,255,.12));
  backdrop-filter: blur(18px) saturate(1.9) brightness(1.08); -webkit-backdrop-filter: blur(18px) saturate(1.9) brightness(1.08);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), inset 0 0 18px rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.35);
}
.tabbar::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 30% -10%, rgba(255,255,255,.35), transparent 60%); mix-blend-mode: overlay; }
.tab-indicator { background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,.14)) !important;
  border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px) saturate(2); -webkit-backdrop-filter: blur(6px) saturate(2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 6px rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.2); }
.tab { text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.tab.active { color: #fff; }
.tab.active svg path:nth-child(2) { stroke: rgba(0,0,0,.45); }
/* Daha saydam cam + renkli simgeler */
.tabbar, .tabbar.on-feed {
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 45%, rgba(255,255,255,.06));
  backdrop-filter: blur(8px) saturate(1.8) brightness(1.05); -webkit-backdrop-filter: blur(8px) saturate(1.8) brightness(1.05);
}
.tab[data-tab=feed] svg { color: #ffd257; }
.tab[data-tab=library] svg { color: #6fb4ff; }
.tab[data-tab=profile] svg { color: #ff8fc0; }
.tab svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.tab.active svg { filter: drop-shadow(0 0 8px currentColor); }
.tab.active svg path:nth-child(2) { stroke: rgba(0,0,0,.55); }
/* Liquid glass: az bulanıklık, net arka plan, güçlü ışık kenarı. Chromium/Android'de SVG kırılma eklenir. */
.tabbar, .tabbar.on-feed {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(1.5px) saturate(1.5); -webkit-backdrop-filter: blur(1.5px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 1.5px 1.5px 0 rgba(255,255,255,.55), inset -1px -1px 0 rgba(255,255,255,.2), inset 0 0 12px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.3);
}
.lg-svg .tabbar { backdrop-filter: url(#lg) saturate(1.5); }
.tabbar::before { background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%); mix-blend-mode: normal; }
.tab-indicator { background: rgba(255,255,255,.14) !important; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.6), inset -1px -1px 0 rgba(255,255,255,.15), 0 2px 10px rgba(0,0,0,.15); }
/* Arka plan tamamen net: bulanıklık ve kırılma yok, cam hissi yalnızca ışık kenarlarından */
.tabbar, .tabbar.on-feed, .lg-svg .tabbar { backdrop-filter: saturate(1.4); -webkit-backdrop-filter: saturate(1.4); background: rgba(255,255,255,.05); }
/* Tüy sayacı ve kazanma animasyonu */
.feed-head.strip .sp.tuy { color: #fff;
  background: linear-gradient(165deg, rgba(255,238,180,.62) 0%, rgba(196,140,20,.42) 45%, rgba(74,48,0,.5) 100%);
  border-color: rgba(255,226,150,.78);
  box-shadow: inset 0 1px 0 rgba(255,252,230,.85), inset 0 -1px 0 rgba(0,0,0,.35), 0 0 18px rgba(255,196,20,.26), 0 6px 16px rgba(0,0,0,.3); }
.sp.tuy b { font-weight: 800; }
.sp.bump { animation: tuybump .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes tuybump { 40% { transform: scale(1.22); } }
.tuy-float { position: absolute; z-index: 96; right: 22px; top: calc(var(--safe-top) + 58px); font-weight: 800; font-size: 24px; color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; pointer-events: none; animation: tuyup 1.5s ease-out forwards; }
@keyframes tuyup { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 20% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
@media (max-width: 430px), (max-height: 760px) {
  .feed-head.strip .strip-in { left: 12px; right: 12px; }
  .feed-head.strip .sp { padding: 0 11px; }
}
.feed-head.strip .sp { white-space: nowrap; flex-direction: row; flex: none; }
.feed-head.strip button.sp { font: inherit; font-size: 15px; font-weight: 700; color: #fff; line-height: 1; }
@media (max-width: 430px), (max-height: 760px) { .feed-head.strip button.sp { font-size: 14px; } }
.feed-head.strip .sp.tuy b { font-size: inherit; line-height: 1; position: static; left: auto; top: auto; }
.feed-head.strip button.sp { height: 36px; padding: 0 12px; }
@media (max-width: 430px), (max-height: 760px) { .feed-head.strip button.sp { height: 32px; padding: 0 9px; } }
.feed-head.strip .sp.tuy b { margin-left: 0; }
/* ── Mağaza ── */
.shop-sheet { top: 9%; display: flex; flex-direction: column; padding-bottom: 0; }
.shop-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 6px; }
.shop-head h2 { margin: 0; font-size: 26px; font-weight: 800; }
.shop-bal { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: #ffd257; color: #141414; font-weight: 800; font-size: 17px; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; }
.shop-scroll { flex: 1; overflow-y: auto; margin: 0 -18px; padding: 0 18px calc(var(--safe-bot) + 110px); }
.shop-k { margin: 14px 2px 10px; font-size: 17px; font-weight: 800; }
.shop-k small { margin-left: 6px; font-size: 13px; font-weight: 600; color: #a9a39a; }
.egg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.egg-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 18px; background: #3b3936; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; text-align: center; transition: transform .12s; }
.egg-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #141414; }
.egg-card canvas { width: 100%; height: 86px; }
.egg-card b { font-size: 12.5px; line-height: 1.15; font-weight: 700; min-height: 2.3em; display: flex; align-items: center; }
.egg-card small { font-size: 12.5px; font-weight: 800; color: #ffd257; }
.egg-card .rar { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; border: 2px solid #141414; color: #141414; }
.egg-card.r-rare { background: #2f3a5c; } .egg-card.r-rare .rar { background: #8fb4ff; }
.egg-card.r-legend { background: #5a3420; } .egg-card.r-legend .rar { background: #ffb23a; }
.egg-card.s-poor small, .egg-card.s-busy small { color: #8d877e; }
.egg-card.s-poor canvas, .egg-card.s-busy canvas { opacity: .55; }
.egg-card.s-locked canvas { filter: brightness(.15); }
.egg-card.s-locked small { color: #8d877e; }
.egg-card.s-hatched { background: #2f5a3c; } .egg-card.s-hatched small { color: #8ff0a8; }
.egg-card.s-inc { background: #4a3f1c; border-color: #ffd257; }
.egg-card.sel { background: #ffd257; color: #141414; } .egg-card.sel small { color: #141414; }
.inc-bar { width: 80%; height: 7px; margin: 3px 0 1px; border-radius: 9px; background: rgba(0,0,0,.4); overflow: hidden; }
.inc-bar i { display: block; height: 100%; background: #ffd257; border-radius: 9px; }
.freeze-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #24506b; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; text-align: left; }
.freeze-card .fz { width: 44px; height: 44px; object-fit: contain; flex: none; }
.freeze-card div { flex: 1; } .freeze-card b { display: block; font-size: 16px; } .freeze-card small { font-size: 12.5px; color: #cfe3ef; }
.freeze-card .price { font-weight: 800; color: #ffd257; white-space: nowrap; }
.freeze-card.off { opacity: .6; }
.shop-bar { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bot) + 14px); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 22px; background: #141414; border: 2px solid #ffd257; animation: up .3s cubic-bezier(.2,.9,.3,1); }
.shop-bar div { flex: 1; min-width: 0; } .shop-bar b { display: block; font-size: 15px; } .shop-bar small { font-size: 12.5px; color: #bdb8b0; }
.shop-bar .btn { height: 46px; padding: 0 16px; font-size: 16px; white-space: nowrap; }
.shop-bar[hidden] { display: none; }
.egg-card em { font-style: normal; font-size: 10.5px; font-weight: 600; color: #a9a39a; }
.egg-card.sel em { color: #141414; }
/* ── Kuluçka ── */
.egg-slot { margin: 26px 0 6px; }
.egg-tick { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 8px; border-radius: 22px; background: #3a3424; border: 2.5px solid #ffd257; }
.egg-tick canvas { width: 96px; height: 112px; flex: none; }
.egg-tick div { flex: 1; } .egg-tick small { font-size: 13px; color: #d9cfae; } .egg-tick b { display: block; font-size: 30px; font-weight: 800; color: #ffd257; line-height: 1.1; }
.egg-tick .inc-bar { width: 100%; height: 9px; margin-top: 6px; }
.egg-tick .inc-bar i { transition: width .5s cubic-bezier(.2,1.4,.4,1); }
.egg-tick.pop b { animation: tuybump .5s cubic-bezier(.2,1.8,.4,1); }
.hatch-layer { background: #0a0814; z-index: 60; }
.hatch-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hatch-card { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-40%) scale(.6); opacity: 0; text-align: center; transition: transform .6s cubic-bezier(.2,1.6,.4,1) .15s, opacity .3s .15s; }
.hatch-layer.open .hatch-card { transform: translateY(-50%); opacity: 1; }
.hatch-card small { font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #ffd257; }
.hatch-owl { width: 150px; height: 150px; margin: 10px auto; border-radius: 50%; background: #ffd257; border: 4px solid #141414; box-shadow: 4px 4px 0 #141414; display: grid; place-items: center; overflow: hidden; }
.hatch-owl svg { width: 90%; margin-top: 18px; }
.hatch-card h2 { margin: 6px 0 2px; font-size: 32px; font-weight: 800; }
.hatch-card p { margin: 0 0 22px; color: #d9d2c4; font-size: 16px; }
.hatch-card .btn { width: 100%; }
/* Alt menü 4 sekme (Mağaza eklendi) */
.tabbar { grid-template-columns: repeat(4, 1fr); width: min(360px, calc(100% - 28px)); }
.tab-indicator { width: calc((100% - 10px) / 4); }
.tab[data-tab=shop] svg { color: #ff9f43; }
/* Mağaza ekranı */
.shop-screen .topbar h1 { margin-right: auto; }
.shop-body { padding: 0 18px calc(var(--safe-bot) + 170px); }
.shop-screen .shop-k:first-child { margin-top: 2px; }
.shop-screen .shop-bar { position: fixed; z-index: 21; left: 14px; right: 14px; bottom: calc(var(--safe-bot) + 84px); }
.shop-screen .shop-bar { position: sticky; left: auto; right: auto; margin: -150px 14px 0; bottom: calc(var(--safe-bot) + 84px); }
/* ── Baykuş Vadisi ── */
.valley-layer { background: #04050e; }
.valley { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.valley::-webkit-scrollbar { display: none; }
.vslide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.vslide > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-top { position: absolute; z-index: 5; top: calc(var(--safe-top) + 12px); left: 14px; right: 14px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.v-top .circle-btn { pointer-events: auto; width: 46px; height: 46px; background: rgba(0,0,0,.55); }
.v-count { padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.45); font-weight: 800; font-size: 15px; border: 1px solid rgba(255,255,255,.18); }
.v-info { position: absolute; left: 20px; right: 20px; bottom: calc(var(--safe-bot) + 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.6); }
.v-info small { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); }
.v-info b { font-size: 30px; font-weight: 800; line-height: 1.1; }
.vslide.locked .v-info b { color: #8d877e; letter-spacing: 3px; }
.v-buy { margin-top: 10px; height: 48px; padding: 0 20px; font-size: 16px; }
.v-inc { margin-top: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,210,87,.18); border: 1px solid rgba(255,210,87,.5); color: #ffd257; font-weight: 800; font-size: 14px; text-shadow: none; }
.v-msg { position: absolute; left: 50%; top: 22%; transform: translate(-50%, 10px); padding: 10px 18px; border-radius: 999px; background: rgba(0,0,0,.55); font-weight: 800; font-size: 17px; white-space: nowrap; opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; }
.v-msg.on { opacity: 1; transform: translate(-50%, 0); }
.hu { position: absolute; z-index: 4; padding: 6px 12px; border-radius: 16px 16px 16px 4px; background: #fff; color: #141414; font-weight: 800; font-size: 15px; border: 2px solid #141414; pointer-events: none; animation: hu 1.3s ease-out forwards; }
@keyframes hu { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 15% { opacity: 1; transform: scale(1.08); } 25% { transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.hatch-owl canvas { width: 100%; height: 100%; }
.hatch-owl svg { display: none; }
.vslide::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.v-info { z-index: 2; }
.hatch-owl { position: relative; width: 170px; height: 170px; cursor: pointer; }
.hatch-owl canvas { position: absolute; inset: 0; display: block; width: 170px; height: 170px; }
/* Mağaza: Yemler | Yumurtalar sekmeleri ve yem kartları */
.shop-tabs { position: sticky; top: calc(var(--safe-top) + 74px); z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 18px 6px; padding: 5px; border-radius: 18px; background: #232120; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; }
.shop-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 13px; font-weight: 800; font-size: 16px; color: #bdb8b0; transition: background .2s, color .2s; }
.shop-tabs button.on { background: #ffd257; color: #141414; }
.shop-pane[hidden] { display: none; }
.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.food-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px 10px; border-radius: 18px; background: #3b3936; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; text-align: center; }
.food-card canvas { width: 100%; height: 70px; }
.food-card b { font-size: 14px; font-weight: 800; }
.food-card small { font-size: 11.5px; font-weight: 700; color: #ffd257; }
.food-card .owned { font-size: 11.5px; color: #bdb8b0; } .food-card .owned i { font-style: normal; font-weight: 800; color: #fff; }
.food-card.got .owned i { display: inline-block; animation: tuybump .5s cubic-bezier(.2,1.8,.4,1); }
.fbtns { display: flex; gap: 5px; width: 100%; margin-top: 6px; }
.fbtns button { flex: 1; height: 32px; border-radius: 10px; background: #ffd257; color: #141414; font-weight: 800; font-size: 13px; border: 2px solid #141414; box-shadow: 2px 2px 0 #141414; }
.fbtns button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #141414; }
/* Vadi: büyüme çubuğu, Besle düğmesi ve yem tepsisi */
.v-st { margin-top: 6px; }
.v-stage { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(0,0,0,.45); font-size: 13.5px; font-weight: 700; text-shadow: none; }
.v-stage b { font-size: 13.5px; color: #ffd257; }
.gbar { display: inline-block; width: 80px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.2); overflow: hidden; }
.gbar u { display: block; height: 100%; background: linear-gradient(90deg, #8fe07a, #ffd257); border-radius: 8px; transition: width .6s cubic-bezier(.2,1.4,.4,1); }
.v-feedbtn { position: absolute; z-index: 3; right: 18px; bottom: calc(var(--safe-bot) + 34px); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; height: 74px; justify-content: center; border-radius: 50%; background: #ffd257; color: #141414; font-weight: 800; font-size: 13px; border: 3px solid #141414; box-shadow: 3px 3px 0 #141414; }
.v-feedbtn span { font-size: 24px; line-height: 1; }
.v-feedbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #141414; }
.v-feedbtn[hidden], .v-tray[hidden] { display: none; }
.v-tray { position: absolute; z-index: 4; right: 14px; bottom: calc(var(--safe-bot) + 118px); display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 20px; background: #232120; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; animation: up .25s cubic-bezier(.2,.9,.3,1); }
.v-food { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; background: #3b3936; text-align: left; }
.v-food canvas { width: 46px; height: 40px; }
.v-food b { display: block; font-size: 14px; } .v-food small { font-size: 12px; color: #ffd257; font-weight: 700; }
.v-food:disabled { opacity: .4; }
.v-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px; font-weight: 700; }
.v-empty .btn { height: 40px; font-size: 14px; padding: 0 14px; }
.v-plus { position: absolute; z-index: 4; transform: translate(-50%, -100%); font-weight: 800; font-size: 20px; color: #8fe07a; -webkit-text-stroke: 4px #141414; paint-order: stroke fill; pointer-events: none; animation: tuyup 1.3s ease-out forwards; white-space: nowrap; }
.v-food canvas { flex: none; display: block; }
/* Yem adedi: − 1 + ve satın al */
.qty { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 6px; padding: 3px; border-radius: 12px; background: #232120; border: 2px solid #141414; }
.qty button { width: 30px; height: 28px; border-radius: 9px; background: #4a4743; font-size: 18px; font-weight: 800; line-height: 1; }
.qty button:disabled { opacity: .35; }
.qty b { font-size: 16px; font-weight: 800; }
.fbuy { width: 100%; height: 34px; margin-top: 6px; border-radius: 11px; background: #ffd257; color: #141414; font-weight: 800; font-size: 13.5px; border: 2px solid #141414; box-shadow: 2px 2px 0 #141414; white-space: nowrap; }
.fbuy:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #141414; }
/* Satın alma onayı */
.confirm-wrap { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.confirm-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fadein .2s; }
.confirm { position: relative; width: min(340px, 100%); padding: 18px 18px 16px; border-radius: 26px; background: #2f2d2a; border: 3px solid #141414; box-shadow: 5px 5px 0 #141414; text-align: center; animation: celpop .35s cubic-bezier(.2,1.6,.4,1); }
.confirm canvas { width: 110px; height: 110px; }
.confirm h3 { margin: 6px 0 3px; font-size: 22px; font-weight: 800; color: #fff; }
.confirm p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #d6d0c7; }
.confirm p b { color: #fff; }
.c-cost { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: #232120; font-size: 14px; color: #bdb8b0; margin-bottom: 14px; }
.c-cost b { color: #ffd257; font-weight: 800; }
.c-cost .c-need { color: #ffb08a; font-weight: 700; }
.c-cost .c-need b { color: #ff7765; }
.c-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-btns .btn { height: 48px; font-size: 16px; }
.btn-need { background: #3b2a26; color: #ffb599; border: 2.5px solid #6b3e34; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 2px 2px 0 #141414; }
.btn-need:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #141414; }
.c-btn-sure { font-size: 15px !important; }
@keyframes confstep { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.c-body-ask { animation: confstep .18s ease-out; }
.confirm-wrap.out { opacity: 0; transition: opacity .2s; }
.inc-e { width: 46px; height: 46px; object-fit: contain; flex: none; }
/* Yavru kartları ve büyüyen hayvanın yemleri */
.cub-card .cub-e { width: 66px; height: 66px; object-fit: contain; margin: 4px 0 2px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.cub-card em { font-style: normal; font-size: 10.5px; color: #a9a39a; }
.cub-card em.why { color: #ffb08a; font-weight: 700; }
.cub-card.s-growing { background: #4a3f1c; border-color: #ffd257; }
.cub-card.s-adult { background: #2f5a3c; } .cub-card.s-adult small { color: #8ff0a8; }

.cub-card.s-busy small, .cub-card.s-poor small, .cub-card.s-legend-locked small { color: #8d877e; }
.cub-card.s-legend-locked .cub-e { filter: brightness(0) opacity(.55); }
.food-grid.two { grid-template-columns: 1fr 1fr; }
.food-e { width: 62px; height: 62px; object-fit: contain; margin: 6px 0 4px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.food-card { position: relative; }
.food-card.s-special { background: #4a3f1c; border-color: #ffd257; }
.food-card.s-special .food-e { filter: drop-shadow(0 0 10px rgba(255,210,87,.8)); }
.food-card .fav { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; white-space: nowrap; background: #ffd257; color: #141414; border: 2px solid #141414; }
.food-grid.two { row-gap: 18px; }
.shop-empty { padding: 18px; border-radius: 18px; background: #3b3936; color: #bdb8b0; text-align: center; line-height: 1.5; }
.c-icon { font-size: 70px; line-height: 1.2; }
.c-icon .c-pic { width: 92px; height: 92px; object-fit: contain; display: block; margin: 0 auto; }
/* ── Merak Bahçesi: habitat sahnesi ── */
.habitat-layer, .garden-layer { background: #04050e; }
.h-tuy { margin-left: auto; pointer-events: auto; display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; background: #ffd257; color: #141414; font-weight: 800; border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.h-panel { position: absolute; z-index: 2; left: 16px; right: 120px; bottom: calc(var(--safe-bot) + 26px); display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.6); }
.h-panel small { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.85); }
.h-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h-name b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.h-badge { padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 800; text-shadow: none; color: #141414; border: 2px solid #141414; background: #9fe08a; }
.h-badge.s-juvenile { background: #8fd3ff; } .h-badge.s-adult { background: #ffd257; } .h-badge.sleep { background: #c8c0ff; }
.h-bar { position: relative; height: 12px; margin-top: 4px; border-radius: 10px; background: rgba(0,0,0,.55); border: 2px solid #141414; overflow: visible; }
.h-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8fe07a, #ffd257); transition: width .7s cubic-bezier(.2,1.4,.4,1); }
.h-bar .tick { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1.5px #141414; }
.h-num { font-size: 13px; font-weight: 800; } .h-num em { font-style: normal; font-weight: 600; color: rgba(255,255,255,.7); }
.h-actions { position: absolute; z-index: 3; right: 14px; bottom: calc(var(--safe-bot) + 24px); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.h-btn { width: 74px; height: 74px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 800; font-size: 13px; color: #141414; border: 3px solid #141414; box-shadow: 3px 3px 0 #141414; }
.h-btn span { font-size: 24px; line-height: 1; }
.h-btn .hb-ic { width: 30px; height: 30px; object-fit: contain; }
.h-btn.feed { background: #ffd257; } .h-btn.info { width: 58px; height: 58px; background: #fff; font-size: 11px; } .h-btn.info span { font-size: 19px; }
.h-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #141414; }
.h-adult { padding: 8px 12px; border-radius: 99px; background: #ffd257; color: #141414; font-weight: 800; font-size: 13px; border: 2.5px solid #141414; }
.h-lock { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: calc(var(--safe-bot) + 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.h-lock small { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); } .h-lock b { font-size: 30px; letter-spacing: 3px; color: #8d877e; } .h-lock p { margin: 0 0 8px; color: #d9d2c4; font-weight: 700; }
.h-lock .btn { height: 48px; padding: 0 20px; font-size: 16px; }
.h-sheet { position: absolute; inset: 0; z-index: 40; }
.h-sheet[hidden] { display: none; }
.h-sheet .sheet { padding-bottom: calc(var(--safe-bot) + 22px); }
.h-sheet.out .sheet { animation: down .2s ease-in forwards; } .h-sheet.out .sheet-bg { animation: fadeout .2s forwards; }
.h-tray h3, .h-facts h3 { margin: 6px 2px 12px; font-size: 21px; font-weight: 800; }
.h-foods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-food { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 20px; background: #3b3936; border: 2.5px solid #141414; box-shadow: 3px 3px 0 #141414; }
.h-food .e { width: 56px; height: 56px; object-fit: contain; margin-bottom: 2px; } .h-food b { font-size: 15px; } .h-food small { font-size: 12.5px; color: #ffd257; font-weight: 700; }
.h-food.special { background: #4a3f1c; border-color: #ffd257; } .h-food.special .e { filter: drop-shadow(0 0 10px rgba(255,210,87,.8)); }
.h-food:disabled { opacity: .4; }
.h-tray .link-btn { display: block; margin: 14px auto 0; }
.h-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 4px; text-align: center; }
.h-empty .he-ic { width: 60px; height: 60px; object-fit: contain; } .h-empty b { font-size: 18px; } .h-empty p { margin: 0 0 10px; color: #bdb8b0; } .h-empty .btn { height: 48px; padding: 0 24px; }
.h-facts .muted { margin: -8px 2px 12px; color: #bdb8b0; font-size: 14px; }
.fact { position: relative; display: flex; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; background: #3b3936; }
.fact span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ffd257; color: #141414; font-weight: 800; }
.fact p { margin: 0; font-size: 15px; line-height: 1.45; }
.fact.locked p { filter: blur(5px); user-select: none; }
.fact.locked span { background: #5a5650; }
.fact.locked em { position: absolute; left: 54px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; color: #ffd257; text-shadow: 0 1px 6px #000; }
/* ── Bahçe haritası ── */
.g-head { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 10px) 14px 12px; background: linear-gradient(#2c4a26 60%, rgba(44,74,38,0)); }
.g-head .circle-btn { width: 44px; height: 44px; background: rgba(0,0,0,.4); }
.g-title { display: flex; flex-direction: column; line-height: 1.15; } .g-title b { font-size: 22px; font-weight: 800; } .g-title small { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.g-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; z-index: 1; }
.g-map { position: relative; margin-top: calc(var(--safe-top) + 64px); }
.g-bg { position: absolute; left: 0; top: 0; width: 100%; }
.g-amb { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; will-change: transform; z-index: 2; }
.g-wind { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
/* ── Bekçi Baykuş Kulübesi ve Kompakt Mesaj Balonu ── */
.g-hut {
  position: absolute;
  left: 50%;
  top: 0;
  width: 260px;
  height: 190px;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.g-hut canvas {
  width: 260px;
  height: 190px;
  display: block;
}

/* Dengeli ve Rahat Neobrutalist Baloncuk (264px) */
.g-bubble {
  position: absolute;
  z-index: 25;
  left: 50%;
  top: 104px;
  transform: translateX(-50%) scale(1);
  width: min(264px, 86vw);
  padding: 10px 14px 12px;
  border-radius: 18px;
  background: #fffdf8;
  color: #141414;
  border: 2.5px solid #141414;
  box-shadow: 0 4px 0 #141414, 0 10px 24px rgba(0,0,0,.3);
  transform-origin: top center;
  transition: opacity .2s ease-out, transform .22s cubic-bezier(.16, 1, .3, 1);
  cursor: default;
  text-align: center;
}

/* Baykuşun gagasından/ağzından çıkan belirgin konuşma balonu kuyruğu */
.gb-tail {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 18px;
  pointer-events: none;
}
.gb-tail::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  width: 17px;
  height: 17px;
  background: #fffdf8;
  border-left: 2.5px solid #141414;
  border-top: 2.5px solid #141414;
  border-top-left-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
}
.gb-tail::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 4px;
  background: #fffdf8;
}

.g-bubble.collapsed {
  display: none !important;
}

/* Kapat butonu */
.gb-x {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 2px solid #141414;
  border-radius: 50%;
  background: #f2ede2;
  box-shadow: 0 1.5px 0 #141414;
  color: #141414;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform .1s, background .1s;
}
.gb-x:active {
  transform: scale(.88);
  background: #e5ded2;
}

.gb-text {
  padding: 2px 20px 0 6px;
  margin-bottom: 8px;
}
.gb-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: #141414;
  line-height: 1.25;
}
.gb-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #141414;
  background: #ffd257;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1.5px solid #141414;
  vertical-align: middle;
  margin-left: 2px;
}
.gb-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #585348;
  margin-top: 3px;
  line-height: 1.3;
}

/* Aksiyon Butonları */
.gb-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.gb-b {
  height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 99px;
  border: 2px solid #141414;
  box-shadow: 0 2px 0 #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.gb-b:active {
  transform: translateY(1.5px);
  box-shadow: 0 0.5px 0 #141414;
}
.gb-b.gb-yellow {
  background: #ffd257;
  color: #141414;
}
.gb-b.gb-dark {
  background: #141414;
  color: #fff;
}
.g-tile { position: absolute; padding: 0; border-radius: 26px; overflow: hidden; border: 4px solid #6b4426; box-shadow: 0 0 0 3px #141414, 4px 6px 0 3px rgba(0,0,0,.35); }
.g-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-tile::after { content: ''; position: absolute; inset: 0; background: rgba(4,5,14,.88); opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.g-tile.arriving::after { opacity: 1; }
.g-tile.arriving.opening::after { opacity: 0; }
.g-label { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 8px 4px; border-radius: 12px; background: rgba(0,0,0,.5); }
.g-label b { font-size: 13.5px; font-weight: 800; } .g-label small { font-size: 11.5px; font-weight: 800; color: #ffd257; }
.g-tile.locked .g-label b { color: #c9c2b6; }
.g-bar { display: block; width: 90%; height: 7px; border-radius: 6px; background: rgba(255,255,255,.2); overflow: hidden; } .g-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8fe07a, #ffd257); }
.g-z { position: absolute; right: 8px; top: -26px; font-style: normal; font-weight: 800; color: #e8ecff; font-size: 16px; animation: bob 2s ease-in-out infinite; }
.g-fly { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; pointer-events: none; }
.g-banner { position: absolute; z-index: 8; left: 50%; top: 40%; transform: translate(-50%, 10px) scale(.9); padding: 12px 18px; border-radius: 18px; background: #ffd257; color: #141414; font-weight: 800; font-size: 16px; border: 3px solid #141414; box-shadow: 4px 4px 0 #141414; opacity: 0; transition: .35s cubic-bezier(.2,1.6,.4,1); pointer-events: none; text-align: center; width: max-content; max-width: 86%; }
.g-banner.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Kodla çizilen simgeler */
.ico-tuy { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.18em; flex: none; }
.shop-bal .ico-tuy, .h-tuy .ico-tuy { width: 20px; height: 20px; }
.tab-ic { width: 24px; height: 24px; object-fit: contain; }
.shop-tabs button:not(.on) .tab-ic { opacity: .6; }
.hf-h { display: flex; align-items: center; gap: 8px; }
.hf-ic { width: 38px; height: 38px; object-fit: contain; }
.c-cost .ico-tuy { width: 15px; height: 15px; }
.v-ic { display: inline-block; width: 18px; height: 18px; object-fit: contain; vertical-align: -3px; }
.freeze-card .price { white-space: nowrap; }

/* ── Bahçe sekmesi + mağaza paneli ── */
.tab[data-tab=garden] svg { color: #8fe07a; }
.garden-screen { overflow: hidden; background: #04050e; }
/* basılı tutunca metin seçme / kopyala / görsel menüsü çıkmasın */
.garden-screen, .garden-screen * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.garden-screen img, .garden-screen canvas { -webkit-user-drag: none; pointer-events: none; }
.garden-screen .g-head { justify-content: space-between; z-index: 10; }
.garden-screen .g-title b { font-size: 24px; }
/* başlık: düz koyu bant yerine yapraklı saçak, çimene yumuşak gölge düşer */
.garden-screen { --hd1: #1f3f1b; --hd2: #2f5a27; --hd3: #3b6c31; }
.garden-screen.night { --hd1: #0e1530; --hd2: #1a2647; --hd3: #24345c; }
.garden-screen .g-head { background: linear-gradient(var(--hd1), var(--hd2)); padding-bottom: 10px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.garden-screen .g-head::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 20px; pointer-events: none;
  background: radial-gradient(circle at 13px 1px, var(--hd2) 11px, transparent 11.6px) 0 0 / 26px 20px repeat-x, radial-gradient(circle at 13px 1px, #1d1616 13.5px, transparent 14px) 0 0 / 26px 20px repeat-x;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
.garden-screen .g-scroll { background: #6fae55; }
.garden-screen.night .g-scroll { background: #345443; }
.garden-screen .g-map { margin-top: calc(var(--safe-top) + 82px); }
.g-dock { position: absolute; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bot) + 84px); width: min(340px, calc(100% - 28px)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-dbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 26px; font-weight: 800; font-size: 16px; border: 3px solid #141414; box-shadow: 3px 4px 0 #141414; transition: transform .12s; }
.g-dbtn:active { transform: translateY(2px); box-shadow: 1px 2px 0 #141414; }
.g-dbtn.buy { background: #ffd257; color: #141414; }
.g-dbtn.food { background: #fff; color: #141414; }
.dk-ic { width: 26px; height: 26px; object-fit: contain; }
.shop-layer { background: rgba(0,0,0,.55); }
.sh-bg { position: absolute; inset: 0; }
.sh-panel { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--safe-top) + 56px); border-radius: 28px 28px 0 0; background: var(--dark); border: 3px solid #141414; border-bottom: 0; overflow: hidden; }
.sh-panel .shop-screen { position: absolute; inset: 0; }
.sh-grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 8px auto 0; }
.sh-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; }
.sh-top h1 { margin: 0 auto 0 0; font-size: 26px; font-weight: 800; }
.sh-x { width: 38px; height: 38px; background: rgba(255,255,255,.12); font-size: 16px; }
.shop-screen .shop-tabs { top: 0; }
.shop-body { padding-bottom: calc(var(--safe-bot) + 40px); }
.g-dock { display: none; }
.h-plus { display: grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; background: #141414; color: #ffd257; font-style: normal; font-size: 16px; line-height: 1; }
.bb-row { display: flex; gap: 8px; justify-content: center; }
.bb-row .btn { flex: 1; }
.g-bubble .btn-dark { background: #141414; color: #fff; }
.h-lbl { margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: #141414; color: #ffd257; font-size: 13px; font-weight: 800; }
.h-plus { display: none; }
.g-right { display: flex; align-items: center; gap: 8px; }
.garden-screen .h-tuy { margin-left: 0; height: 38px; padding: 0 11px; }
.g-shop { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 10px; border-radius: 999px; background: #fff; color: #141414; font-weight: 800; font-size: 15px; border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.g-shop svg { width: 20px; height: 20px; fill: none; stroke: #141414; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-shop:active { transform: translateY(1px); box-shadow: 1px 1px 0 #141414; }

/* ── Bahçe süsleri: mağaza sekmesi ve süsleme modu ── */
.shop-tabs { grid-template-columns: 1fr 1fr 1fr; }
.shop-tabs button { font-size: 15px; gap: 4px; }
.deco-card .have { position: absolute; top: 6px; right: 7px; padding: 0 6px; border-radius: 99px; background: #8ff0a8; color: #141414; font-size: 11px; font-weight: 800; border: 2px solid #141414; }
.g-edit { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.g-edit svg { width: 20px; height: 20px; fill: none; stroke: #141414; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-edit:active { transform: translateY(1px); box-shadow: 1px 1px 0 #141414; }
body.g-decorating #tabbar { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.garden-screen.deco .g-tile { pointer-events: none; filter: saturate(.6) brightness(.85); }
.garden-screen.deco .g-bubble, .garden-screen.deco .g-right { display: none !important; }
.g-dhead { position: absolute; z-index: 7; top: 0; left: 0; right: 0; display: none; flex-direction: column; padding: calc(var(--safe-top) + 12px) 16px 12px; background: #ffd257; color: #141414; border-bottom: 3px solid #141414; }
.g-dhead b { font-size: 22px; font-weight: 800; } .g-dhead small { font-size: 13px; font-weight: 700; opacity: .75; }
.garden-screen.deco .g-dhead { display: flex; animation: fadein .2s; }
.g-deco { position: absolute; z-index: 9; left: 10px; right: 10px; bottom: calc(var(--safe-bot) + 10px); display: none; padding: 10px 10px 8px; border-radius: 24px; background: #2f2d2a; border: 3px solid #141414; box-shadow: 4px 4px 0 #141414; }
.garden-screen.deco .g-deco { display: block; animation: up .3s cubic-bezier(.2,.9,.3,1); }
.gd-top { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.gd-top b { font-size: 17px; font-weight: 800; }
.gd-done { height: 38px; padding: 0 20px; font-size: 16px; font-weight: 800; border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.gd-tray { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.gd-it { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 76px; height: 84px; border-radius: 16px; background: #3b3936; border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.gd-it:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #141414; }
.gd-it span { font-size: 10.5px; font-weight: 700; color: #d9d4cc; line-height: 1.1; text-align: center; padding: 0 3px; }
.gd-it i { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 11px; font-weight: 800; color: #ffd257; }
.gd-ic { width: 46px; height: 46px; object-fit: contain; }
.gd-buy { background: #ffd257; } .gd-buy b { font-size: 30px; font-weight: 800; color: #141414; line-height: 1; } .gd-buy span { color: #141414; }
.gd-empty { align-self: center; margin: 0 6px; font-size: 13px; font-weight: 600; color: #bdb8b0; min-width: 160px; }
.g-ghost { position: absolute; z-index: 4; left: 0; top: 0; width: 0; height: 0; }
.g-ghost[hidden] { display: none; }
.g-ghost canvas { position: absolute; pointer-events: none; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); transition: filter .15s; }
.g-ghost.drag canvas { filter: drop-shadow(0 14px 6px rgba(0,0,0,.3)); }
.g-ghost.drop canvas { animation: ggdrop .35s cubic-bezier(.2,1.6,.4,1); }
.g-ghost.nope canvas, .g-ghost.nope .gg-ring { animation: ggnope .4s; }
.gg-ring { position: absolute; border-radius: 50%; background: rgba(143,240,168,.35); border: 3px dashed #fff; box-sizing: border-box; pointer-events: none; }
.g-ghost.bad .gg-ring { background: rgba(255,90,90,.45); border-color: #ffd0d0; }
.g-ghost.bad canvas { opacity: .75; }
.gg-hit { position: absolute; touch-action: none; cursor: grab; }
.g-ghost.drag .gg-hit { cursor: grabbing; }
.gg-ctl { position: absolute; left: 0; display: flex; gap: 8px; transform: translateX(-50%); transition: opacity .15s; }
.g-ghost.drag .gg-ctl { opacity: 0; pointer-events: none; }
.gg-ctl button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2.5px solid #141414; box-shadow: 2px 2px 0 #141414; }
.gg-ctl button svg { width: 22px; height: 22px; fill: none; stroke: #141414; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gg-ctl button.ok { background: #8ff0a8; }
.g-ghost.bad .gg-ctl button.ok { background: #d9d4cc; }
.gg-ctl button:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #141414; }
@keyframes ggdrop { from { transform: translateY(-30px) scale(.85); opacity: 0; } }
@keyframes ggnope { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* ── okumadan önce tahmin (giriş sorusu) + sonda kapanış ── */
.pre-gate { position: absolute; inset: 0; z-index: 10; }
.pg-scroll { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: calc(var(--safe-top) + 84px) 18px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.pg-scroll > .pg-sheet { margin: auto; flex: none; }
.pg-bg { position: absolute; inset: 0; background: rgba(10,9,8,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadein .3s; }
.pg-sheet { position: relative; width: 100%; max-width: 380px; padding: 34px 20px 14px; background: var(--cat-color, var(--purple)); color: var(--ink); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 6px 8px 0 var(--ink); text-align: center; font-size: 16px; line-height: 1.3; animation: celpop .5s cubic-bezier(.2,1.6,.4,1); }
.pre-gate.closing .pg-bg { animation: fadeout .3s forwards; }
.pre-gate.closing .pg-sheet { animation: pgOut .28s ease-in forwards; }
.pre-gate.closing .pg-back { animation: fadeout .25s forwards; }
@keyframes pgOut { to { transform: scale(.85) translateY(20px); opacity: 0; } }
.pg-back { position: absolute; z-index: 5; top: calc(var(--safe-top) + 14px); left: 18px; width: 48px; height: 48px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadein .3s ease-out; transition: transform .12s, background .15s; }
.pg-back:active { transform: scale(.92); background: rgba(0,0,0,.85); }
.pg-back svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pg-badge { position: absolute; top: -30px; left: 50%; width: 58px; height: 58px; margin-left: -29px; display: grid; place-items: center; font-size: 30px; background: #fff; border: 4px solid var(--ink); border-radius: 50%; box-shadow: 3px 4px 0 var(--ink); animation: bob 2.4s ease-in-out infinite; }
.pre-k { font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink); opacity: .7; }
.pre-q { margin: 6px 0 18px; font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.pre-opts { display: flex; flex-direction: column; gap: 10px; }
.pre-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 17px; font-weight: 700; line-height: 1.25; transition: transform .1s, box-shadow .1s, background .2s; }
.pre-opt i { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: #fff; font-style: normal; font-size: 15px; font-weight: 800; }
.pre-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.pre-opt.mine { background: var(--yellow); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.pg-foot { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 12px; white-space: nowrap; }
.pg-skip { padding: 8px 4px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pg-off { display: flex; align-items: center; gap: 7px; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--ink); opacity: .8; cursor: pointer; }
.pg-off input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.art-guess { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.art-guess:empty { display: none; }
.art-guess b { color: #fff; }

.pre-end { margin-top: 44px; padding: 0; background: none; text-align: center; }
.pq-card { position: relative; padding: 34px 20px 20px; background: var(--cat-color, var(--purple)); color: var(--ink); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 6px 8px 0 var(--ink); }
.pre-end.shown .pq-card, .pre-end.shown > .pe-btn { animation: celpop .5s cubic-bezier(.2,1.6,.4,1); }
.pq-card .pre-opt { cursor: default; }
.pq-card .pre-opt:active { transform: none; box-shadow: 0 4px 0 var(--ink); }
.pre-opt em { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.pre-opt.right { background: #8fd82f; }
.pre-opt.right i { background: var(--ink); color: #8fd82f; }
.pre-opt.wrong { background: #ffd6dc; }
.pre-opt.wrong i { background: #e5354f; }
.pre-opt.wrong span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }
.pre-opt.dim { opacity: .5; }
@media (max-width: 480px) {
  .pg-sheet { padding: 30px 16px 10px; border-radius: 26px; box-shadow: 4px 6px 0 var(--ink); }
  .pre-q { font-size: 18px; margin: 4px 0 14px; }
  .pre-opt { font-size: 15px; padding: 8px 12px 8px 8px; gap: 10px; border-radius: 16px; }
  .pre-opt i { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
  .pre-opts { gap: 8px; }
  .pg-foot { margin-top: 8px; }
  .pg-skip, .pg-off { padding: 6px 4px; }
}
.pe-reward { margin-top: 14px; font-size: 15px; font-weight: 800; }
.pe-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; padding: 15px; border-radius: 18px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-size: 18px; font-weight: 800; transition: transform .1s, box-shadow .1s; }
.pe-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.pe-btn span { font-size: 20px; }
.pq-card .pre-q { margin: 6px 0 18px; color: var(--ink); }

/* ─────────── Hikaye Detay Alt Sayfası (Kompakt Neobrutalist) ─────────── */
.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadein .25s ease-out;
}
.detail-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 75dvh;
  background: var(--cat-color, var(--purple));
  color: var(--ink);
  border-top: 4px solid var(--ink);
  border-left: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  padding: 12px 18px calc(var(--safe-bot) + 20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -8px 0 var(--ink);
  animation: sheetUp .32s cubic-bezier(.16, 1, .3, 1);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.ds-handle {
  width: 44px;
  height: 5px;
  background: var(--ink);
  opacity: .22;
  border-radius: 99px;
  margin: 0 auto 10px;
}
.ds-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 10px;
}
.ds-top .chip-s {
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 0 2.5px 0 var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  padding: 4px 14px 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
}
.ds-top .chip-s svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.ds-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 0 2.5px 0 var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.ds-close:active {
  transform: translateY(calc(-50% + 2px));
  box-shadow: 0 1px 0 var(--ink);
}
.ds-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  stroke-width: 2.8;
}
.ds-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}

/* Tek ve temiz ana kart */
.ds-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 14px 14px 14px;
  margin-bottom: 14px;
}
.ds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ds-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ds-dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.ds-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}

/* Kategori simgeleri (catArt svg) genel boyutlandırma */
.chip svg, .chip-s svg, .art-chip svg, .next-card .chip-s svg, .b-card .tag svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
  flex: none;
}
.art-mini span svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  display: inline-block;
  flex: none;
}
.story-row .st span, .quote-card .qf span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.story-row .st svg, .quote-card .qf svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* Aksiyon Butonu */
.ds-read-btn {
  width: 100%;
  height: 54px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .1s, box-shadow .1s;
}
.ds-read-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.ds-read-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
  stroke: var(--ink);
}

/* Okunabilirlik: Keşfet dışındaki ekranlarda bar koyu yarı saydam zemin + blur alır (açık kartlar üstünde yazılar kaybolmasın) */
.tabbar:not(.on-feed), .lg-svg .tabbar:not(.on-feed) { background: rgba(22,21,20,.62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }

/* ───────── İlk açılış hikâyesi (onboarding) ───────── */
.ob { position: absolute; inset: 0; z-index: 300; background: #0b0826; overflow: hidden; animation: fadein .5s ease-out; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ob.out { animation: fadeout .55s ease-in forwards; pointer-events: none; }
.ob-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ob-txt, .ob-hint, .ob-portals { pointer-events: none; }
.ob-txt { position: absolute; left: 28px; right: 28px; color: #fff; font-weight: 800; font-size: 31px; line-height: 1.16; letter-spacing: -.3px; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.ob-txt.top { top: calc(var(--safe-top, 0px) + 74px); }
.ob-txt.bottom { bottom: 190px; }
.ob-txt span, .ob-txt b { display: block; opacity: 0; animation: obIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
.ob-txt b { font-size: 58px; line-height: 1; margin-top: 6px; color: #ffd23a; text-shadow: 0 4px 0 var(--ink), 0 6px 22px rgba(0,0,0,.5); }
@keyframes obIn { from { opacity: 0; transform: translateY(12px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.ob-hint { position: absolute; left: 0; right: 0; bottom: 150px; text-align: center; color: #fff; font-weight: 700; font-size: 17px; opacity: 0; transition: opacity .4s; }
.ob-hint.show { opacity: .9; animation: obPulse 1.6s ease-in-out infinite; }
.ob-hint::before { content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); animation: obRing 1.6s ease-out infinite; }
@keyframes obPulse { 50% { opacity: .55; } }
@keyframes obRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.ob-skip { position: absolute; top: calc(var(--safe-top, 0px) + 18px); right: 18px; z-index: 2; padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); font: inherit; font-weight: 700; font-size: 15px; border: 1.5px solid rgba(255,255,255,.2); }
.ob-foot { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom, 0px) + 34px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ob-dots { display: flex; gap: 7px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(255,255,255,.35); transition: width .35s, background .35s; }
.ob-dots i.on { width: 30px; background: #fff; }
.ob-next, .ob-start { opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .4s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.ob-next.show, .ob-start.show { opacity: 1; transform: none; pointer-events: auto; }
.ob-next { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ob-next svg { width: 30px; height: 30px; }
.ob-next:active, .ob-start:active { transform: scale(.94); }
.ob-start { position: absolute; bottom: 0; height: 64px; padding: 0 54px; border-radius: 99px; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800; font-size: 21px; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.ob-portal { position: absolute; width: 33%; aspect-ratio: 1; opacity: 0; animation: obPortal .8s cubic-bezier(.3,1.5,.5,1) forwards, obFloat 4s ease-in-out infinite; }
.ob-pc { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 10px 30px rgba(120,90,255,.45); }
.ob-pc canvas { width: 100%; height: 100%; display: block; }
/* pencerenin alt kenarına yapışık merak etiketi */
.ob-cap { position: absolute; left: 50%; bottom: -14px; width: 118%; padding: 5px 9px; box-sizing: border-box; text-align: center; background: #fff8e6; color: var(--ink); font-weight: 800; font-size: 12.5px; line-height: 1.2; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); opacity: 0; transform: translateX(-50%) rotate(-2deg) scale(.7); animation: obCap .55s cubic-bezier(.3,1.6,.5,1) forwards; }
.ob-portal:nth-child(even) .ob-cap { --r: 2deg; }
@keyframes obCap { to { opacity: 1; transform: translateX(-50%) rotate(var(--r, -2deg)) scale(1); } }
.ob-portal.out { opacity: 1; animation: fadeout .35s forwards; }
@keyframes obPortal { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes obFloat { 50% { translate: 0 -10px; } }

/* çift dokunuşla yakınlaştırma kapalı (iOS user-scalable'ı yok sayar) */
html, body, body * { touch-action: manipulation; }

/* hayvan kartı çerçeveleri (garden-screen.frame-X ya da önizleme .fr-prev.frame-X) */
.shop-tabs.t4 { grid-template-columns: repeat(4, 1fr); }
.shop-tabs.t4 button { font-size: 13px; gap: 3px; }
.fr-prev { position: relative; flex: none; width: calc(100% - 26px); max-width: 96px; height: auto; aspect-ratio: 1; margin: 10px auto 12px; border-radius: 26px; background: linear-gradient(#7cc06b, #4f8a42); }
.fr-prev span { position: absolute; left: 23%; right: 23%; bottom: 17%; height: 31%; border-radius: 12px; background: rgba(20,20,20,.45); }
.frame-card.on { outline: 3px solid #ffd257; outline-offset: 2px; }
.frame-classic .g-tile, .fr-prev.frame-classic { border: 4px solid #6b4426; box-shadow: 0 0 0 3px #141414, 4px 6px 0 3px rgba(0,0,0,.35); }
.g-vine { position: absolute; display: none; pointer-events: none; }
.g-vine svg { display: block; overflow: visible; }
.frame-flower .g-vine { display: block; }
.frame-flower .g-tile, .fr-prev.frame-flower { border: 4px solid #6b4426; box-shadow: 0 0 0 3px #141414, 4px 6px 0 3px rgba(0,0,0,.35); }
.frame-wood .g-tile, .fr-prev.frame-wood { border: 7px solid #9a6a3a; box-shadow: 0 0 0 3px #3a2010, 0 0 0 5px #c98a4b, 0 0 0 7px #3a2010, inset 0 0 0 2px #c98a4b, 4px 6px 0 7px rgba(0,0,0,.35); }
.frame-gold .g-tile, .fr-prev.frame-gold { border: 4px solid #e2b64a; box-shadow: 0 0 0 2px #7a5414, 0 0 0 5px #ffe9a0, 0 0 0 7px #d4a02e, 0 0 0 9px #141414, inset 0 0 0 2px #fff0b0, 4px 6px 0 9px rgba(0,0,0,.3); }
.frame-led .g-tile, .fr-prev.frame-led { border: 4px solid #2a2220; animation: frLed 4.5s ease-in-out infinite alternate; }
@keyframes frLed {
  from { box-shadow: 0 0 0 3px #141414, 0 0 8px 2px rgba(255,206,110,.3), 4px 6px 0 3px rgba(0,0,0,.35); }
  to { box-shadow: 0 0 0 3px #141414, 0 0 16px 6px rgba(255,206,110,.7), 4px 6px 0 3px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: reduce) { .frame-led .g-tile, .fr-prev.frame-led { animation: none; } }

/* Ayarlar: ana ekrana ekle */
.set-btn { padding: 7px 18px; border-radius: 99px; background: var(--yellow); color: var(--ink); font: 800 15px var(--font); border: 2.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.set-btn:active { transform: translate(2px, 3px); box-shadow: none; }
.set-done { font-size: 14px; font-weight: 700; color: #8fd82f; }
.install-sheet .ih-top { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.install-sheet .ih-top img { width: 64px; height: 64px; border-radius: 22%; border: 2.5px solid var(--ink); box-shadow: var(--shadow); flex: none; }
.install-sheet h2 { margin: 0; font-size: 22px; }
.install-sheet .ih-top p { margin: 2px 0 0; color: #bdb8b0; font-size: 14px; }
.install-sheet .ih-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.install-sheet .ih-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--dark-2); border-radius: 16px; font-size: 15px; color: #f0ece1; }
.install-sheet .ih-steps li > i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--purple); color: #fff; font: 800 14px/28px var(--font); text-align: center; font-style: normal; border: 2px solid var(--ink); }
.install-sheet .ih-ico { width: 20px; height: 20px; vertical-align: -4px; margin-left: 2px; fill: none; stroke: #5ec8ff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.install-sheet .btn { width: 100%; }

/* ───────── Konu quizleri ───────── */
.qz-sec { padding-bottom: 6px; }
.qz-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; flex: 0 0 100%; width: 100%; margin: 0; scroll-snap-align: center; padding: 18px 18px 18px; min-height: 0; border-radius: 26px; background: var(--c); border: 3px solid var(--ink); box-shadow: var(--shadow); color: var(--ink); overflow: hidden; transform: scale(0.95); opacity: 0.72; transition: transform .45s cubic-bezier(0.2, 0.8, 0.25, 1), opacity .45s ease; will-change: transform, opacity; }
.qz-hero.active { transform: scale(1); opacity: 1; }
.qz-hero::before { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.22); }
.qz-hero-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.qz-hero-tag i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.qz-hero-tag i svg { width: 17px; height: 17px; }
.qz-car { margin: 4px 0 14px; }
.qz-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 18px 10px; scroll-padding: 0 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.qz-track::-webkit-scrollbar { display: none; }
.qz-car-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px 0; }
.qz-arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 #000; font-family: inherit; font-size: 26px; font-weight: 800; line-height: 1; padding-bottom: 3px; }
.qz-arrow:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.qz-dots { display: flex; gap: 6px; align-items: center; }
.qz-dots i { width: 8px; height: 8px; border-radius: 99px; background: #5a5650; cursor: pointer; transition: width .25s, background .25s; }
.qz-dots i.on { width: 22px; background: var(--yellow); }
.qz-hero-art { position: absolute; right: 8px; top: 10px; width: 132px; height: 132px; transform: rotate(6deg); }
.qz-hero.active .qz-hero-art { animation: heroArtPop .55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes heroArtPop { 0% { transform: scale(0.82) rotate(-3deg); } 60% { transform: scale(1.08) rotate(9deg); } 100% { transform: scale(1) rotate(6deg); } }
.qz-hero-art svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.qz-hero b { position: relative; max-width: 58%; font-size: 27px; line-height: 1.12; font-weight: 700; }
.qz-hero small { position: relative; max-width: 60%; font-size: 14px; font-weight: 500; opacity: .78; line-height: 1.3; margin-top: 4px; }
.qz-hero-meta { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.qz-hero-meta > i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.55); border: 2px solid var(--ink); }
.qz-hero-meta > .qz-lv { position: static; color: #fff; }
.qz-hero-btn { position: relative; align-self: stretch; display: block; margin-top: 16px; height: 52px; line-height: 46px; text-align: center; border-radius: 99px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 19px; font-weight: 700; padding: 0; }
.qz-hero:active .qz-hero-btn { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.qz-row { display: flex; align-items: center; gap: 14px; width: calc(100% - 36px); margin: 0 18px 18px; padding: 14px 16px; border-radius: 20px; background: #232220; border: 3px solid var(--ink); box-shadow: var(--shadow); text-align: left; }
.qz-row b { flex: 1; font-size: 19px; font-weight: 600; }
.qz-row small { color: #9d978d; font-size: 14px; }
.qz-ico { width: 34px; height: 34px; flex: none; }
.qz-cnt { min-width: 32px; height: 30px; padding: 0 9px; border-radius: 99px; background: #ff3b5c; color: #fff; font-style: normal; font-weight: 700; font-size: 15px; display: grid; place-items: center; border: 2px solid var(--ink); }
.qz-cat-t { display: inline-flex; align-items: center; gap: 10px; }
.qz-cat-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; border: 2.5px solid var(--ink); }
.qz-cat-ico svg { width: 22px; height: 22px; }
.qz-cat-n { color: #9d978d; font-size: 14px; font-weight: 500; }
.qz-shelf { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 20px; scrollbar-width: none; }
.qz-shelf::-webkit-scrollbar { display: none; }
.qz-card { position: relative; flex: none; width: 168px; height: 214px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 12px 14px 14px; border-radius: 22px; background: var(--c); border: 3px solid var(--ink); box-shadow: var(--shadow); color: var(--ink); overflow: hidden; }
.qz-card:active { transform: translateY(2px); }
.qz-card-art { position: absolute; top: 26px; left: 50%; width: 104px; height: 104px; transform: translateX(-50%); }
.qz-card-art svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(0,0,0,.16)); }
.qz-card b { position: relative; font-size: 17px; line-height: 1.15; font-weight: 700; }
.qz-card small { position: relative; font-size: 13px; font-weight: 500; opacity: .75; }
.qz-card .qz-stars { position: absolute; right: 10px; bottom: 12px; }
.qz-lv { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #fff; border: 2px solid var(--ink); }
.qz-lv.l1 { background: #1f8f4e; } .qz-lv.l2 { background: #e08a00; } .qz-lv.l3 { background: #d6324f; }
.qz-stars { display: inline-flex; gap: 1px; align-items: center; }
.qz-stars .qstar { width: 22px; height: 22px; }
.qz-stars.sm .qstar { width: 16px; height: 16px; }
/* giriş — neubrutalist */
.qz-intro-layer { background-color: var(--c); background-image: radial-gradient(rgba(13,13,15,.16) 1.4px, transparent 1.6px); background-size: 18px 18px; }
.qz-intro { align-items: stretch; text-align: center; gap: 14px; color: var(--ink); }
.qz-intro .quiz-top { gap: 10px; }
.nb-x { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nb-x svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.nb-x:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.nb-tag { padding: 7px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; transform: rotate(2deg); }
.nb-stage { position: relative; display: grid; place-items: center; padding: 14px 0 10px; margin-top: auto; }
.nb-stage::before { content: ''; position: absolute; width: 214px; height: 214px; border-radius: 32px; background: var(--purple); border: 3px solid var(--ink); transform: rotate(7deg); }
.nb-cover { position: relative; width: 214px; height: 214px; border-radius: 32px; background: #fff; border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); display: grid; place-items: center; transform: rotate(-4deg); animation: nbDrop .5s cubic-bezier(.2,1.4,.4,1) both; }
.nb-cover svg { width: 160px; height: 160px; }
.nb-lv { top: -14px; left: -10px; font-size: 14px; padding: 4px 12px; transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--ink); }
@keyframes nbDrop { from { transform: translateY(-30px) rotate(-14deg) scale(.85); opacity: 0; } }
.nb-title { animation: nbUp .4s .08s ease-out both; }
.nb-title h2 { margin: 0; font-size: 34px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
.nb-title p { margin: 6px auto 0; max-width: 300px; font-size: 16px; font-weight: 600; opacity: .72; line-height: 1.3; }
.nb-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; animation: nbUp .4s .14s ease-out both; }
.nb-stats > div { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 12px; background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.nb-stats > div:nth-child(1) { transform: rotate(-2deg); }
.nb-stats > div:nth-child(2) { transform: rotate(1.5deg); }
.nb-stats > div:nth-child(3) { transform: rotate(-1deg); }
.nb-stats b { font-size: 17px; line-height: 1; font-weight: 800; }
.nb-stats small { font-size: 14px; font-weight: 600; opacity: .7; }
.nb-stats .qz-stars .qstar { width: 18px; height: 18px; }
.nb-tip { align-self: center; font-size: 13.5px; font-weight: 600; opacity: .65; animation: nbUp .4s .2s ease-out both; }
.nb-go { position: relative; overflow: hidden; margin-top: auto; height: 66px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 20px; color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font-family: inherit; font-size: 22px; font-weight: 800; transition: transform .1s, box-shadow .1s;
  background: color-mix(in oklab, var(--c) 86%, #000);
  background: oklch(from var(--c) calc(l - .07) calc(c * 1.45) h); }
.nb-go span { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 20px; }
.nb-go:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
@keyframes nbUp { from { transform: translateY(14px); opacity: 0; } }
/* açıklama */
.quiz-wrap { overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.quiz-wrap > *, .quiz-wrap .opts > * { flex-shrink: 0; }
.qz-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 20px 20px calc(var(--safe-bot) + 20px); background: var(--c); color: var(--ink); border-top: 3px solid var(--ink); border-radius: 28px 28px 0 0; box-shadow: 0 -6px 0 rgba(0,0,0,.35); animation: qzUp .32s cubic-bezier(.2,1.2,.4,1); will-change: transform; }
.qz-sheet.closing { animation: qzDown .22s cubic-bezier(0.4, 0, 0.2, 1) forwards !important; }
@keyframes qzUp { from { transform: translateY(100%); } }
@keyframes qzDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
.qz-sh-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.qz-sh-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.qz-sh-ico svg { width: 22px; height: 22px; }
.qz-sh-head b { font-size: 21px; font-weight: 700; }
.qz-sheet p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.45; font-weight: 500; }
.qz-sh-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 600; box-shadow: 0 5px 0 rgba(0,0,0,.45); }
.qz-sh-btn span { font-size: 22px; transition: transform .15s; }
.qz-sh-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.45); }
.qz-sh-btn:active span { transform: translateX(4px); }
/* Kitaplık: Hikâyeler | Quizler */
.lib-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 18px 16px; padding: 5px; border-radius: 99px; background: #232220; border: 3px solid var(--ink); }
.lib-seg button { position: relative; z-index: 1; height: 44px; border-radius: 99px; font-size: 17px; font-weight: 600; color: #a9a39a; transition: color .2s; }
.lib-seg button.on { color: var(--ink); }
.lib-seg i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--yellow); border: 2px solid var(--ink); transition: transform .28s cubic-bezier(.3,1.3,.5,1); }
.screen[data-seg=quiz] .lib-seg i { transform: translateX(100%); }
.screen[data-seg=read] [data-pane=quiz], .screen[data-seg=quiz] [data-pane=read] { display: none; }
.lib-pane { animation: txt .3s ease-out; }
.lib-pad { height: calc(120px + var(--safe-bot)); }
