/* Hanken Grotesk (SIL OFL 1.1, fonts/OFL.txt), bundled so it works offline and in the app */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Görünüm: gece müzesi. Koyu, sıcak bir zemin; resimler duvara asılı kâğıt baskılar gibi durur.
   Başlıklar serif (müze etiketi hissi), arayüz yazıları sans. */
:root {
  /* Zemin: nötr, hafif sıcak koyu gri (eski menekşe-siyah değil). Tek eylem rengi amber; Patron yalnızca düz pirinç.
     --raised ve --line-strong panelden türetilir, böylece temalar yalnız --bg/--panel/--line/--muted/--accent verse de çalışır. */
  --bg: #151513; --bg2: #151513; --stage: #0f0f0e; --panel: #1e1d1b; --line: #353330; --text: #eeece7; --muted: #aaa69d; --faint: #85817a;
  --raised: color-mix(in srgb, var(--panel), #fff 6%);
  --line-strong: color-mix(in srgb, var(--muted) 52%, var(--panel));
  --accent: #f0a63c; --accent-ink: #2a1a04; --accent-text: #f5bd6c; --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --brass: #d8b66c; --brass-ink: #2a1f08; --brass-line: #8f7438;
  --teal: #4fb3bf; --coral: #ee7a6c;
  --paper: #f8f5ee; --paper-2: #efe9dd; --paper-ink: #2a2620; --paper-muted: #6e6556;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans); /* headings: same grotesk (the old Iowan serif read as the generic AI look) */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }
.screen { height: 100dvh; }

/* ---------- Galeri ---------- */
#home { overflow-y: auto; padding: max(34px, env(safe-area-inset-top)) 20px 48px;
  background: var(--bg); }
.hero { max-width: 1040px; margin: 0 auto 26px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 9vw, 52px); letter-spacing: -.01em; line-height: 1; }
.hero p { margin: 10px 0 0; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.45; }

#cats { max-width: 1040px; margin: 0 auto 22px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
#cats::-webkit-scrollbar, #palette::-webkit-scrollbar { display: none; }
#cats button { flex: none; padding: 10px 0 12px; color: var(--muted); font-size: 14px; letter-spacing: .01em; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease; }
#cats button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* En dar telefonda bile iki sütun; ekran genişledikçe 3, 4, 5 */
#grid { max-width: 1040px; margin: 0 auto; display: grid; gap: 26px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { #grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: block; text-align: left; transition: transform .18s ease; }
.card:active { transform: scale(.975); }
.card .cv { display: block; object-fit: cover; width: 100%; height: auto; aspect-ratio: 3 / 4; background: var(--paper); border-radius: 3px;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7); }
.card .meta { padding: 12px 2px 0; }
.card .name { font-family: var(--serif); font-size: 16px; line-height: 1.25; }
.card .state { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.card .bar { margin-top: 9px; height: 2px; background: var(--line); overflow: hidden; }
.card:not(.started) .bar { visibility: hidden; } /* başlanmamış kartın altında boş gri çizgi durmasın (yer kalır, kart boyları eşit) */
.card .bar i { display: block; height: 100%; background: var(--accent); }

.card.upload { display: grid; grid-template-rows: auto auto; cursor: pointer; }
.card.upload .plus { display: grid; place-items: center; aspect-ratio: 3 / 4; border: 1px dashed var(--line-strong); border-radius: 3px;
  font-family: var(--serif); font-size: 44px; font-weight: 300; color: var(--muted); transition: border-color .15s ease, color .15s ease; }
.card.upload:hover .plus { border-color: var(--accent); color: var(--accent); }
.card.upload:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

.foot { max-width: 1040px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: center;
  font-size: 13px; color: var(--muted); text-align: center; }
.foot a { color: inherit; text-underline-offset: 3px; }
#lang { appearance: none; -webkit-appearance: none; background: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 13px; }

/* ---------- Oyun ---------- */
#play { display: flex; flex-direction: column; position: relative; background: var(--stage); }
.topbar { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 10px 8px; }
.icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text); transition: background .15s ease; }
.icon:active { background: var(--panel); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#snd .cross { display: none; }
#snd.off { color: var(--muted); }
#snd.off .waves { display: none; }
#snd.off .cross { display: inline; }
.prog { flex: 1; height: 3px; border-radius: 2px; background: var(--raised); overflow: hidden; margin: 0 4px; }
#progbar { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
#pct { width: 40px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
#hint { position: relative; }
#hintN { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  font: 700 10px/17px var(--sans); font-style: normal; text-align: center; }
#cv { flex: 1; min-height: 0; width: 100%; display: block; touch-action: none; cursor: default; }

#palette { display: flex; gap: 6px; padding: 12px 12px max(14px, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none;
  background: var(--panel); border-top: 1px solid var(--line); }
.sw { flex: none; width: 58px; height: 62px; display: grid; place-items: center; transition: width .3s ease, opacity .3s ease, transform .3s ease; }
.sw .ring { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--muted) var(--p, 100%), var(--line) 0); transition: transform .18s ease; }
.sw b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; box-shadow: 0 0 0 2px var(--panel); }
.sw[aria-pressed="true"] .ring { transform: translateY(-5px) scale(1.14); background: conic-gradient(var(--accent) var(--p, 100%), var(--line) 0); }
.sw.done { opacity: 0; transform: scale(.4); width: 0; pointer-events: none; }

#tip { position: absolute; left: 14px; right: 14px; bottom: 108px; z-index: 5; padding: 14px 16px; border-radius: 14px; background: var(--paper); color: var(--paper-ink);
  font-size: 14px; line-height: 1.45; text-align: left; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
/* Geniş ekranda ipucu tüm genişliğe yayılmaz: ortada, okunur bir satır boyu */
@media (min-width: 720px) and (min-height: 561px) { #tip { left: 50%; right: auto; width: min(480px, calc(100% - 28px)); transform: translateX(-50%); } }
#tip b { font-weight: 400; }
#tip span { display: block; margin-top: 8px; font-weight: 600; font-size: 13px; color: #8a4f00; }

/* ---------- Bitiş ve katmanlar ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 9, .82); display: grid; place-items: center; padding: 16px; z-index: 10; }
.sheet { width: min(420px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 18px 16px; text-align: center; }
.sheet h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
#rv { width: auto; max-width: 100%; max-height: 50dvh; border-radius: 3px; background: var(--paper); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9); }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.btn { flex: 1; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-strong); font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  transition: background .15s ease, border-color .15s ease; }
.btn:active { background: var(--line); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:active { background: #dc952f; }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); font-weight: 500; }
.btn:disabled { opacity: .55; cursor: default; }
#loading { font-family: var(--serif); font-size: 18px; color: var(--text); }
.adtest { z-index: 30; }
.adtest p { color: var(--muted); margin: 0 0 14px; }
.adtest .btn { width: 100%; }

@media (min-width: 720px) {
  #home { padding-left: 40px; padding-right: 40px; }
  #grid { gap: 36px 26px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero p { max-width: none; }
}
@media (min-width: 1000px) { #grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Oyun modu seçici */
#modes { display: flex; width: fit-content; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px;
  margin: 0 auto 0 max(0px, calc((100% - 1040px) / 2)); }
#modes button { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: background .15s ease, color .15s ease; }
#modes button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
#modeDesc { max-width: 1040px; margin: 10px auto 22px; font-size: 13px; color: var(--muted); }
/* Gizem modu: başlanmamış resimlerin önizlemesi gizli */
.card { position: relative; }
#grid.mystery .card:not(.started):not(.upload) .cv { filter: brightness(0) invert(1); }
#grid.mystery .card:not(.started):not(.upload)::before { content: "?"; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 3 / 4; display: grid; place-items: center;
  font-family: var(--serif); font-size: 64px; color: #cfc9bd; z-index: 1; pointer-events: none; }
/* Açığa çıkar modu: palet yalnızca ilerleme göstergesi */
#play.reveal #palette { pointer-events: none; }
#play.reveal .sw[aria-pressed="true"] .ring { transform: none; background: conic-gradient(#cfc9bd var(--p, 100%), var(--line) 0); }
#grid.mystery .card:not(.started):not(.upload) .name { font-size: 0; }
#grid.mystery .card:not(.started):not(.upload) .name::after { content: "? ? ?"; font-size: 16px; letter-spacing: .1em; color: var(--muted); }

/* Zorluk seçici ve efekt listesi */
#diffs { display: flex; width: fit-content; gap: 4px; margin: -8px auto 22px max(0px, calc((100% - 1040px) / 2)); }
#diffs { gap: 18px; }
#diffs button { padding: 6px 0; font-size: 13px; color: var(--muted); border-bottom: 1.5px solid transparent; transition: color .15s ease, border-color .15s ease; }
#diffs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.sheet .note { margin: -6px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
#fxList { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fxopt { min-height: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); font-size: 14.5px; font-weight: 600; text-align: center; }
.fxopt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* Alt sekmeler, günlük hediye, günün resmi rozeti, resim sayfası */
#home { padding-bottom: 96px; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: center; gap: 6px; padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line); } /* bulanıklık yok: %92 opak zeminde görünmüyordu ama kaydırmanın her karesinde yeniden hesaplanıyordu */
#tabs button { flex: 1; max-width: 180px; min-height: 44px; border-radius: 999px; font-size: 14px; color: var(--muted); }
#tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
#play:not(.hidden) ~ #tabs, #home.hidden #tabs { display: none; }
#daily { max-width: 1040px; margin: 0 auto 22px; }
.gift { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); }
.gift b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; }
.gift span { font-size: 13px; color: var(--muted); }
.gift .btn { flex: none; min-height: 40px; padding: 0 18px; font-size: 14px; }
.card .badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 9px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
  font: 600 11.5px/1.3 var(--sans); font-style: normal; }
#empty { max-width: 1040px; margin: 40px auto; text-align: center; color: var(--muted); font-size: 15px; }
#dv { width: auto; max-width: 100%; max-height: 46dvh; border-radius: 3px; background: var(--paper); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .9); margin-bottom: 14px; }
#detail .sheet h2 { margin-bottom: 4px; }
#detail .note { margin: 0 0 12px; }
#dChips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
#dChips span { padding: 5px 10px; border-radius: 6px; background: var(--raised); font-size: 12.5px; color: var(--muted); }

/* Sürpriz resim kartı */
#daily { display: grid; gap: 10px; }
.gift.mystery { background: color-mix(in srgb, var(--teal) 12%, var(--panel)); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
@media (min-width: 720px) { #daily { grid-template-columns: 1fr 1fr; } }

#toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 40; margin: 0 auto; max-width: 420px; padding: 14px 16px; border-radius: 14px;
  background: var(--paper); color: var(--paper-ink); font-size: 14.5px; line-height: 1.4; text-align: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }

/* İkonlar (Lucide) */
.ic { width: 22px; height: 22px; flex: none; }
.icon [data-ic] { display: grid; place-items: center; }
#snd .offi { display: none; }
#snd.off .on { display: none; }
#snd.off .offi { display: grid; }
#tabs button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 12px; }
#tabs button .ic { width: 20px; height: 20px; }
.gift .lead { width: 26px; height: 26px; color: var(--accent); margin-right: -2px; }
.gift.mystery .lead { color: var(--teal); }
.gift > div { flex: 1; min-width: 0; }
.card.upload .plus .ic { width: 38px; height: 38px; stroke-width: 1.25; }
.gift .btn { white-space: nowrap; padding: 0 14px; font-size: 13px; }
.gift span { display: block; }

/* ---------- Günlük kutular: tek satır, iki küçük kutu ---------- */
#daily { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.chip2 { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; text-align: left; min-width: 0;
  border: 1px solid var(--line); background: var(--panel); }
.chip2 .ic { color: var(--accent); }
.chip2 span { display: grid; min-width: 0; }
.chip2 b { font-family: var(--serif); font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip2 small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip2:disabled { opacity: .6; }
.chip2.mystery { background: color-mix(in srgb, var(--teal) 12%, var(--panel)); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.chip2.mystery .ic { color: var(--teal); }
.hero { margin-bottom: 18px; }
#modeDesc { margin: 8px auto 12px; }
#diffs { margin-bottom: 14px; }
#cats { margin-bottom: 16px; }

/* Sergi ilerleme çubuğu: düz renk, tek seferlik dolum (sonsuz parıltı yok) */
.exbar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.exbar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--accent); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.gift.noads { margin-top: 26px; background: none; }

/* Ödül tanıtımı (tam ekran): müzede eser açılışı. Spot ışığı, yukarı çekilen kadife örtü, çerçeveli ödül, müze etiketi. */
.exreveal { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; overflow: hidden; text-align: center; cursor: pointer;
  background: rgba(10, 10, 9, .9); animation: exrvin .35s ease-out; transition: opacity .35s ease; }
.exreveal.out { opacity: 0; }
@keyframes exrvin { from { opacity: 0; } }
.exreveal h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.15; color: #2a241a; }
@media (prefers-reduced-motion: reduce) { .exreveal *, .exreveal *::after { animation: none !important; } }

/* Alt sekme: dört sekmede uzun etiket (In progress) hapın yuvarlak köşesine taşmasın */
#tabs { gap: 4px; padding-left: 8px; padding-right: 8px; }
#tabs button { border-radius: 10px; white-space: nowrap; font-size: 11.5px; padding: 6px 2px; }
#tabs button { position: relative; }
#tabs .dot { position: absolute; top: 6px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* kilitli (Patron) resim kartı */
.lockb { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: 6px; z-index: 2;
  font-style: normal; font-size: 12px; color: #fff; text-align: center; padding: 0 10px; pointer-events: none; }
.lockb .ic { width: 26px; height: 26px; }
.fxopt { display: flex; align-items: center; justify-content: center; gap: 8px; }
.fxopt .ic { width: 16px; height: 16px; color: var(--muted); }
/* ---------- Geniş ekranlar ---------- */
@media (min-width: 720px) { #daily { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* iPad: iki kutu satırı doldurur (sağ yarı boş kalmasın) */

/* ---------- Temalar (Sergi ödülü) ---------- */
:root[data-theme="midnight"] { --stage: #0a101a; --bg: #0d1420; --bg2: #1c2b47; --panel: #151e2e; --line: #27344a; --accent: #7cc0ff; --muted: #94a0b4; --accent-text: var(--accent); }
:root[data-theme="sakura"] { --stage: #140e11; --bg: #1a1216; --bg2: #3a2230; --panel: #241920; --line: #3d2a34; --accent: #f5a3ba; --muted: #a8979d; --accent-text: var(--accent); }
:root[data-theme="forest"] { --stage: #0b100d; --bg: #0f1512; --bg2: #1f3229; --panel: #161f1a; --line: #27362d; --accent: #6fd0b0; --muted: #93a29a; --accent-text: var(--accent); }
/* ---------- Koleksiyon ---------- */
.excol { margin-top: 28px; }
.excol h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.colrow { margin-bottom: 14px; }
.colrow p { margin: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.colrow > div { display: flex; flex-wrap: wrap; gap: 8px; }
.colopt { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--raised); font-size: 14px; color: var(--text); }
.colopt i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.colopt .ic { width: 14px; height: 14px; }
.colopt.locked { color: var(--muted); border-color: var(--line); background: none; }
.colopt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.boost { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--accent-text); background: var(--accent-soft); }
.boost .ic { width: 15px; height: 15px; }

/* ---------- Mağaza kartları ---------- */
.gift small { display: block; margin-top: 4px; font-size: 12px; color: var(--accent-text); }
.gift small:empty { display: none; }
.gift .btn s { opacity: .6; font-weight: 400; margin-right: 2px; }
.gift.bundle { margin-bottom: 10px; background: color-mix(in srgb, var(--teal) 12%, var(--panel)); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.gift.bundle .lead { color: var(--teal); }
.gift.bundle .btn { display: grid; justify-items: center; gap: 1px; line-height: 1.15; }
.gift.bundle .btn em { font-style: normal; font-size: 11px; font-weight: 600; color: inherit; opacity: .75; }
.restore { display: block; margin: 16px auto 0; padding: 10px 14px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.gift .btn span { color: inherit; font-size: inherit; }
/* Alt bilgi: dil seçici ve bağlantılar tek satırda, galeriyle arası sıkı */
.foot { margin-top: 26px; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#home { padding-bottom: 84px; }
#lang { padding: 7px 30px 7px 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa69d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }

/* Tablet: sayfalar ve bitiş ekranı daha geniş */
@media (min-width: 760px) and (min-height: 900px) { .sheet { width: min(560px, 100%); padding: 28px 26px 20px; } .sheet h2 { font-size: 26px; } #rv { max-height: 56dvh; } #dv { max-height: 52dvh; } }

/* ---------- Etkinlik şeridi ve arşiv ---------- */
.evbanner { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 10px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent); background: color-mix(in srgb, var(--coral) 12%, var(--panel)); }
.evbanner .ic { width: 22px; height: 22px; color: var(--coral); flex: none; }
.evbanner b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; }
.evbanner small { color: var(--muted); font-size: 12px; }
.excol .vnote { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.gift.vaultp { margin-bottom: 8px; background: none; }

/* ---------- Mod seçici kalktı; sıralı tur ---------- */
#modes:empty, #modeDesc:empty { display: none; }
#palette.ord .sw:not([aria-pressed="true"]) { opacity: .32; }
.ordrow { display: grid !important; gap: 6px; justify-items: stretch; }
.ordrow .note { margin: 0 4px 4px; font-size: 12.5px; }
/* ---------- Sergi: hepsini al, ödül önizlemesi ---------- */
.claimall { display: block; margin: 0 auto 18px; padding: 12px 22px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

.exreveal .pv { display: block; width: min(52vw, 240px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: #f6f1e7;
  box-shadow: 0 24px 40px -12px #000; }
.exreveal .pvtheme { display: grid; align-content: start; gap: 10px; padding: 22px 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 40px -12px #000; border-radius: 18px; }
.exreveal .pvtheme b { font-family: var(--serif); font-weight: 500; font-size: 44px; color: #f3efe6; text-align: left; }
.exreveal .pvtheme i { height: 4px; width: 46%; border-radius: 2px; }
.exreveal .pvtheme span { height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.exreveal .pvtheme u { height: 40px; border-radius: 999px; margin-top: 6px; }
.exreveal.peek { animation: exrvin .18s ease-out; }

/* ---------- Dokunmatik: basılı tutunca metin seçilmesin, sistem menüsü açılmasın ---------- */
html, body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select { -webkit-user-select: auto; user-select: auto; }
img, canvas { -webkit-user-drag: none; }
/* Günlük hediye kutusu: alt yazı kesilmesin, alınmış hâli belli olsun */
.chip2 small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
.chip2.taken { opacity: .6; }
.chip2.taken .ic { color: var(--muted); }

/* Galeri: kartlar satırın üstüne hizalı dursun (başlığı iki satır olan kart diğerini aşağı itmesin) */
.card { align-self: start; }

/* ---------- Puan görünürlüğü ---------- */
#x2 { margin-left: -4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.xpgain { margin: 12px 0 2px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.xpgain:empty { display: none; }

/* Galeri kartları: düğmenin kendi iç boşluğu kartı daraltmasın (yükleme kutusuyla aynı boy) */
.card { padding: 0; width: 100%; border: 0; background: none; }

/* ================= Sergi: tek sıralı pass =================
   Üstte sezonun öne çıkan resmi; altında ortadaki çizgi boyunca sağa sola dizilen büyük ödül kartları.
   Ücretsiz kartlar kâğıt renginde, Patron kartları koyu zemin üstünde altın çerçeveli. */
#ex { max-width: 560px; }
.pshero { position: relative; margin: 0 -4px; min-height: 300px; border-radius: 22px; overflow: hidden; display: grid; align-content: end; padding: 20px 18px 18px; isolation: isolate;
  background: var(--panel); box-shadow: 0 24px 50px -24px #000; }
.pshero .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; z-index: -2; }
.pshero .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 14, .05) 20%, rgba(12, 11, 14, .55) 55%, rgba(12, 11, 14, .94)); }
.pshero .sub { justify-self: start; margin: 0 0 8px; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; color: var(--text); background: rgba(12, 12, 11, .7); }
.pshero h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8.6vw, 42px); line-height: 1.02; color: #fdf6e4; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.pshero .lvl { display: flex; align-items: center; gap: 12px; }
.pshero .medal { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--text);
  background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pshero .prog { flex: 1; min-width: 0; }
.pshero .prog .exbar { height: 8px; background: rgba(255, 255, 255, .16); }
.pshero .prog span { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(253, 246, 228, .82); }
.pshero .pchip { flex: none; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--brass-ink); background: var(--brass); }
.pshero .pchip .ic { width: 14px; height: 14px; }
.pshow { margin: 14px 6px 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.psboost { display: flex; width: fit-content; margin: 6px auto 0; }


/* ================= Sergi: vitrin + liste =================
   Solda seçili ödülün büyük vitrin kartı (kaydırırken yerinde durur), sağda seviyelerin dar listesi. */
.pshero.slim { min-height: 0; padding: 4px 4px 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.pshero.slim .sub { padding: 0; background: none; color: var(--muted); }
.pshero.slim h2 { text-shadow: none; margin-bottom: 12px; }
.pshero.slim .prog .exbar { background: var(--line); }
.pshero.slim .prog span { color: var(--muted); }
.ps2 { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.show { position: sticky; top: 10px; flex: 1; min-width: 0; }
.slist { flex: none; width: 92px; display: grid; gap: 8px; padding-bottom: 12px; position: relative; }
.slist::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 20px; width: 2px; background: var(--line); }
/* vitrin kartı */
.scard { position: relative; display: grid; gap: 10px; padding: 12px 12px 14px; border-radius: 22px; text-align: left; animation: psin .2s ease-out backwards;
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 26px 46px -24px #000; }
@keyframes psin { from { opacity: 0; } }
#ex.quiet .scard { animation: none; }
.scard .tag { position: absolute; left: 20px; top: 20px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--paper-ink); background: var(--paper); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.scard .tag .ic { width: 13px; height: 13px; }
.scard .sart { position: relative; aspect-ratio: 3 / 4; max-height: 46dvh; width: 100%; border-radius: 14px; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 6px;
  background: var(--paper-2); color: var(--paper-muted); }
.scard .sart .ic { width: 30%; height: auto; stroke-width: 1.1; }
.scard .sart em { font-style: normal; font-family: var(--serif); font-size: 34px; line-height: 1; }
.scard .sart.has { background: var(--panel); }
.scard .spv { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.scard canvas.spv { object-fit: contain; }
.scard .spv.pvtheme { display: grid; align-content: center; gap: 10px; padding: 16% 14%; box-sizing: border-box; }
.scard .pvtheme b { font-family: var(--serif); font-weight: 500; font-size: 40px; color: #f3efe6; }
.scard .pvtheme i { height: 4px; width: 46%; border-radius: 2px; }
.scard .pvtheme span { height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); }
.scard .pvtheme u { height: 34px; border-radius: 999px; }
.scard h3 { margin: 2px 4px 0; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.15; }
.scard .slvl { margin: -6px 4px 0; font-size: 12.5px; color: var(--paper-muted); }
.scard .sbtn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; margin: 2px 0 0; border-radius: 12px; font-weight: 700; border: 1px solid rgba(42, 38, 32, .22); color: var(--paper-ink); background: none; }
.scard .sbtn .ic { width: 15px; height: 15px; }
.scard .sbtn:disabled { opacity: .6; }
.scard .sbtn.go { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.scard .sbtn.pat { border-color: var(--brass-line); color: var(--brass-ink); background: var(--brass); }
.scard .listen { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 10px; font-size: 13px; color: inherit; border: 1px solid currentColor; opacity: .7; }
.scard .listen .ic { width: 15px; height: 15px; }
.scard.pat { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1.5px var(--brass-line), 0 26px 46px -24px #000; }
.scard.pat .tag { color: var(--brass-ink); background: var(--brass); }
.scard.pat .sart:not(.has) { background: var(--raised); color: var(--brass); }
.scard.pat .slvl { color: var(--muted); }
.scard.pat .sbtn { border-color: var(--line-strong); color: var(--text); }
.scard.pat .sbtn.go { color: var(--accent-ink); }
.scard.pat .sbtn.pat { color: var(--brass-ink); }
.scard.ahead .sart { filter: saturate(.7) brightness(.9); }
/* seviye listesi */
.chip { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 6px; padding: 0; text-align: left; opacity: .96; transition: transform .15s ease; }
.chip:active { transform: scale(.96); }
.chip .num { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--raised); border: 1.5px solid var(--line-strong); color: var(--muted); }
.chip.reached .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .mini { aspect-ratio: 1; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--paper-2); color: var(--paper-muted); box-shadow: 0 8px 16px -10px #000; }
.chip .mini .ic { width: 42%; height: auto; stroke-width: 1.4; }
.chip .mini img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.chip.pat .mini { background: var(--raised); color: var(--brass); box-shadow: 0 0 0 1.5px var(--brass-line), 0 8px 16px -10px #000; }
.chip em { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--bg); color: var(--muted); }
.chip em:empty { display: none; }
.chip em .ic { width: 11px; height: 11px; }
.chip em u { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); } /* alınabilir: durağan nokta (sonsuz nabız yok) */
.chip.ahead .mini { filter: saturate(.5) brightness(.75); }
.chip.got .mini { opacity: .55; }
.chip.sel .mini { outline: 2px solid var(--text); outline-offset: 2px; }
@media (min-width: 620px) { .slist { width: 110px; } }
@media (prefers-reduced-motion: reduce) { .scard, .chip em u, .scard .sbtn.go { animation: none; } }

/* Sergi başlığının altındaki iki düğme (yapışık alt şerit kalktı: vitrin kartının kendi düğmesi var) */
.psacts { display: flex; gap: 8px; margin: 12px 0 0; }
.psacts .btn { flex: 1; min-height: 44px; margin: 0; border-radius: 12px; font-size: 14px; white-space: nowrap; }
.psacts .claimall { display: block; padding: 0 14px; margin: 0; }
.psacts .patbtn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; font-weight: 700; color: var(--brass-ink); background: var(--brass); border-color: var(--brass-line); }
.psacts .patbtn .ic { width: 15px; height: 15px; flex: none; }
.psacts .patbtn .t { overflow: hidden; text-overflow: ellipsis; }
.psacts .patbtn .pr { padding: 2px 8px; border-radius: 6px; background: rgba(42, 31, 8, .14); }
.psacts .patbtn s { opacity: .6; font-weight: 400; }
.pshow { margin: 10px 4px 0; text-align: left; }
.pshero.slim h2 { font-size: clamp(28px, 8vw, 38px); }

/* ---------- Genel cila (18 Kas): günün resmi kartı, sade sekme çubuğu, yumuşak girişler, bitiş ekranı ---------- */
/* Ana sayfa başı: küçük imza + günün resmi. Slogan yalnızca öne çıkan kart yokken görünür. */
.hero { margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 7.6vw, 44px); }
#home.hasfeat .hero p { display: none; }
#feat { max-width: 1040px; margin: 0 auto; }
.feat { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; gap: 18px;
  width: 100%; margin: 0 0 14px; padding: 14px; border-radius: 16px; text-align: left; border: 1px solid var(--line);
  /* zemin: resmin kendi ortalama renginden düz bir ton (app.js --tint); canlı 30px bulanıklık yok */
  background: color-mix(in srgb, var(--tint, var(--panel)) 22%, var(--panel)); transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
.feat:active { transform: scale(.985); }
.feat .bgi { display: none; }
.feat .art { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 18px 30px -12px rgba(0, 0, 0, .85); margin: 4px; width: calc(100% - 8px); }
.feat .ft { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.feat small { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.feat b { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 6vw, 30px); line-height: 1.12; text-wrap: balance; }
.feat em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.feat .go { margin-top: 10px; padding: 12px 22px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--sans); font-style: normal; }
@media (min-width: 720px) { .feat { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 18px; } }
#diffs { margin-top: 0; }

/* Kartlar yalnız uygulama açılışında, yerinde kısa bir solmayla gelir (yukarı kayma ve uzun kademe yok; sekme değişince hiç animasyon yok).
   backwards (both değil): biten animasyon etkin kalırsa her kart kalıcı ayrı katman olur ve kaydırma takılır. */
@keyframes cardin { from { opacity: 0; } }
#grid.enter .card:nth-child(-n+9) { animation: cardin .22s ease-out backwards; animation-delay: calc(var(--i, 0) * 20ms); }

/* Sekme çubuğu: seçili sekme krem blok değil; ikonun arkasında ince bir hap, yazı parlak */
#tabs button { gap: 4px; }
#tabs button .ic { box-sizing: border-box; width: 58px; height: 30px; padding: 5px 19px; transition: color .2s ease; }
#tabs button[aria-selected="true"] { background: none; color: var(--text); font-weight: 600; }
#tabs button[aria-selected="true"] .ic { color: var(--accent); }
#tabs .dot { top: 7px; right: calc(50% - 22px); box-shadow: 0 0 0 2px var(--bg); }

/* Katmanlar: zemin kararır, kâğıt aşağıdan yerine oturur */
@keyframes ovin { from { opacity: 0; } }
@keyframes shin { from { opacity: 0; transform: translateY(28px); } }
.overlay:not(.hidden) { animation: ovin .22s ease-out; }
.overlay:not(.hidden) > .sheet { animation: shin .34s cubic-bezier(.32, .72, 0, 1) backwards; }
.sheet { border-radius: 20px; border-color: var(--line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.btn { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.btn:active { transform: scale(.975); }

/* Bitiş ekranı: sıralı tur ayrı bir davet kartı, puan altın rozet */
.xpgain { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 6px; background: var(--accent-soft); font-size: 13px; }
.ordrow { cursor: pointer; padding: 6px 6px 10px; border-radius: 18px; border: 1px solid rgba(233, 207, 140, .28); background: linear-gradient(140deg, rgba(233, 207, 140, .1), rgba(233, 207, 140, .02)); }
.ordrow .btn { border: 0; min-height: 40px; font-family: var(--serif); font-weight: 500; font-size: 18px; color: #f1dca4; }
.ordrow .btn:active { background: none; }
.ordrow .note { margin: -4px 10px 0; }
@media (prefers-reduced-motion: reduce) { .feat, #grid .card, .overlay, .overlay > .sheet { animation: none !important; } }

/* ---------- Ödül alma (yeni): çizim süsü yok. Kart yerinden kalkıp öne gelir, üstünden tek bir ışık geçer, adı dizgiyle yazılır. ---------- */
.exreveal.rv2 { perspective: 900px; align-content: center; gap: 0; background: rgba(10, 10, 9, .9);
  animation: ovin .22s ease-out; transition: opacity .2s ease-out; }
.rv2 .rvc { position: relative; overflow: hidden; width: min(62vw, 280px); aspect-ratio: 3 / 4; border-radius: 12px; background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .95), 0 12px 24px -10px rgba(0, 0, 0, .6); will-change: transform; transition: transform .2s ease-out; }
.rv2.pat .rvc { box-shadow: 0 0 0 1.5px var(--brass-line), 0 40px 80px -30px rgba(0, 0, 0, .95); }
.rv2.out .rvc { transform: scale(.96); }
.rv2 .rvc > .pv { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; margin: 0; }
.rv2 .sheen { position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .85) 50%, transparent 58%); transform: translateX(-70%); animation: rvsheen 1.1s cubic-bezier(.4, 0, .2, 1) .42s both; }
@keyframes rvsheen { to { transform: translateX(70%); } }
.rv2 .sheen { display: none; } /* kartın kendi yerinden kalkması yeterli; üstünden geçen parıltı kaldırıldı */
.rv2 .glyph { height: 100%; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 20px; }
.rv2 .glyph b { font-family: var(--serif); font-weight: 400; font-size: clamp(84px, 30vw, 132px); line-height: .9; letter-spacing: -.03em; }
.rv2 .glyph .ic { width: 84px; height: 84px; stroke-width: 1; }
.rv2 .glyph span { max-width: 16ch; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.4; color: var(--paper-muted); }
.rv2 .rvl { margin: 26px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); animation: rvtxt .45s cubic-bezier(.23, 1, .32, 1) .26s backwards; }
.rv2.pat .rvl { color: var(--brass); }
.rv2 h3 { max-width: 84vw; color: var(--text); animation: rvtxt .45s cubic-bezier(.23, 1, .32, 1) .32s backwards; }
@keyframes rvtxt { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .rv2 .sheen { display: none; } .rv2 .rvl, .rv2 h3 { animation: none; } }

/* Video müziği seçimi */
#vmList { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#vmList .fxopt { display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
#vmList .fxopt:active { transform: scale(.97); }
#vmList .fxopt .ic { width: 16px; height: 16px; opacity: .6; }
#vm { z-index: 12; }
.ordrow.hidden { display: none !important; }

/* Phosphor duotone ikonlar: dolgu ile çizilir, çizgi yok */
.ic, .icon svg { fill: currentColor !important; stroke: none !important; }

/* Kartlar eşit boyda: başlık ve alt satır tek satır, sığmayan üç noktayla kesilir (tam ad resim sayfasında) */
.card .name, .card .state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Boş sekme: mesaj ortada durur, dil seçici yukarı fırlamaz */
#empty:not(.hidden) { min-height: 52dvh; display: grid; place-items: center; align-content: center; gap: 18px; margin: 0 auto; padding: 0 24px; line-height: 1.5; }
#empty span { max-width: 32ch; }
#empty .btn { flex: none; min-height: 44px; padding: 0 22px; color: var(--text); font-size: 14px; }
#home:has(#empty:not(.hidden)) #grid { display: none; }

/* Ayarlar: dil ve bağlantılar sayfa sonunda değil, sağ üstteki düğmenin arkasında */
.hero { position: relative; }
#setBtn { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--muted); }
#home.hasfeat #setBtn, #setBtn { top: 0; transform: none; margin-top: -6px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; color: var(--text); text-decoration: none; }
.setrow:last-of-type { border-bottom: 0; }
#settings .actions { margin-top: 16px; }
.hero p { display: none; }
button.setrow { width: 100%; font: inherit; font-size: 15px; }

/* Kilitli kart: çizgi resim net görünür (bulanık gri perde yok); altta küçük koyu etiket: kilit + ne olduğu + seviye */
.lockb { aspect-ratio: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: 7px; row-gap: 1px; place-content: initial; justify-items: start; padding: 7px 9px; border-radius: 8px; text-align: left;
  background: rgba(21, 21, 19, .9); color: var(--text); }
.lockb .ic { grid-row: span 2; width: 18px; height: 18px; color: var(--brass); }
.lockb span { font-size: 12px; line-height: 1.25; text-wrap: balance; }
.lockb b { font-weight: 600; font-size: 11.5px; color: var(--muted); }
#daily .chip2:only-child { grid-column: 1 / -1; }

/* Kilit perdesi resmin kendi kutusuna bağlanır (iPhone'da düğme içindeki mutlak konum + en-boy oranı yanlış hesaplanıyordu) */
.card .pic { position: relative; display: block; }
.card .pic .lockb { left: 6px; top: auto; right: 6px; bottom: 6px; width: auto; height: auto; aspect-ratio: auto; }

/* Satın alma beklerken düğme: içerik soluklaşır, ortada dönen halka */
button.busy { position: relative; pointer-events: none; }
button.busy > * { opacity: .25; }
button.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Uygulama hissi: sayfa yukarıdan çekilince lastik gibi esnemez */
html, body { position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; }
#home, .sheet, #palette, #cats { overscroll-behavior: none; -webkit-overflow-scrolling: auto; }

/* Durum çubuğunun altı: kaydırılan içerik saatin ve pilin arkasından görünmesin */
#home::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 5; pointer-events: none; }

/* Alt sekme çubuğu içeriğin son satırını örtmesin (çentikli telefonlarda güvenli alan kadar ek boşluk) */
#home { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }

/* Durum çubuğu şeridi: en üstte görünmez (zemin kesintisiz), kaydırınca yumuşakça belirir */
#home::before { opacity: 0; transition: opacity .2s ease; }
#home.scrolled::before { opacity: 1; }
.setrow [data-ic] { display: grid; color: var(--muted); }
.setrow [data-ic] .ic { width: 16px; height: 16px; }

/* Resim hazırlanırken ilerleme çubuğu (hazırlık arka planda olduğu için ekran canlı kalır) */
#loading { display: grid; place-content: center; justify-items: center; gap: 18px; }
#loading .ldbar { display: block; width: min(220px, 56vw); height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
#loading .ldbar b { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.03); transition: transform .35s ease-out; }

/* Açılış ekranı: simge boyanarak belirir, ad alttan gelir; sonra galeri görünür */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--bg); transition: opacity .3s ease-out; }
#splash.out { opacity: 0; pointer-events: none; }
#splash svg { display: block; animation: spin0 .5s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes spin0 { from { opacity: 0; transform: scale(.94); } }
#splash b { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.01em; color: var(--text); animation: spname .5s cubic-bezier(.23, 1, .32, 1) .95s both; }
@keyframes spname { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { #splash svg, #splash b { animation: none; } }

/* ---------- Yatay telefon: üst çubuk sola, renkler sağa; resim tüm yüksekliği kullanır ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  #play { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); }
  #play .topbar { grid-column: 1; grid-row: 1; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: max(6px, env(safe-area-inset-top)) 4px max(6px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
  #play .prog { display: none; }
  #pct { width: auto; text-align: center; padding: 2px 0 6px; }
  #cv { grid-column: 2; grid-row: 1; width: 100%; height: 100%; }
  #palette { grid-column: 3; grid-row: 1; flex-direction: column; overflow-x: hidden; overflow-y: auto; gap: 2px;
    padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) 8px;
    border-top: 0; border-left: 1px solid var(--line); }
  .sw { width: 62px; height: 54px; transition: height .3s ease, opacity .3s ease, transform .3s ease; }
  .sw.done { width: 62px; height: 0; }
  .sw[aria-pressed="true"] .ring { transform: translateX(-5px) scale(1.14); }
  #play.reveal .sw[aria-pressed="true"] .ring { transform: none; }
  #tip { left: 76px; right: 96px; bottom: 12px; }
}
