/* Bostan — Metastaz Design 2.0 ölçüleri + oyun teması sıcak palet (metastaz-design.md §9, modul-paleti.bostan). HUD oyun arayüzüdür. */
@font-face {
  font-family: "Metastaz Sans";
  src: url("MetastazSans-latin.woff2?v=3001") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F7F1E6;
  --yuzey: #FFFDF8;
  --yuzey-2: #FBF6EC;
  --alan: #EFE7D8;
  --iz: rgba(120, 120, 128, .2); --seg-acik: #FFFDF8;   /* anahtar/segment izi ve seçili parça (ctl-track / seg-on) */
  --yazi: #2A2119;
  --govde: #4D4034;
  --soluk: #7A6C5D;
  --cizgi: rgba(70, 45, 20, .13);
  --ana: #0071E3;
  --ana-yazi: #0066CC;
  --ana-yumusak: rgba(0, 113, 227, .12);
  --tehlike: #D70015;
  --perde: rgba(40, 25, 10, .30);
  --hud: rgba(255, 253, 248, .94);
  --golge: none;   /* 2.0: sheet içindeki kartlar düz */
  --golge-hud: 0 1px 1px rgba(70, 45, 20, .06), 0 4px 14px rgba(70, 45, 20, .14);
  --kenar: 20px;
  --sure: 220ms;
  --egri: cubic-bezier(.2, .8, .2, 1);
  --yay: cubic-bezier(.34, 1.4, .5, 1);
  --font: "Metastaz Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --odak: #0071E3;
  --ana-dolgu: #0071E3;   /* beyaz yazılı dolgu (koyuda da) */
  --alt-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="acik"]) {
    --bg: #141210; --yuzey: #211E1A; --yuzey-2: #1A1815; --alan: #2E2A25; --iz: rgba(120, 120, 128, .361); --seg-acik: #636366;
    --yazi: #F6EFE5; --govde: #D6CBBE; --soluk: #A89B8C; --cizgi: rgba(255, 240, 220, .13);
    --ana: #0A84FF; --ana-yazi: #4AA3FF; --ana-yumusak: rgba(10, 132, 255, .18); --tehlike: #FF453A; --perde: rgba(0, 0, 0, .55);
    --hud: rgba(33, 30, 26, .94); --golge: none; --golge-hud: 0 4px 14px rgba(0, 0, 0, .35); --odak: #0A84FF;
    color-scheme: dark;
  }
}
:root[data-tema="koyu"] {
  --bg: #141210; --yuzey: #211E1A; --yuzey-2: #1A1815; --alan: #2E2A25; --iz: rgba(120, 120, 128, .361); --seg-acik: #636366;
  --yazi: #F6EFE5; --govde: #D6CBBE; --soluk: #A89B8C; --cizgi: rgba(255, 240, 220, .13);
  --ana: #0A84FF; --ana-yazi: #4AA3FF; --ana-yumusak: rgba(10, 132, 255, .18); --tehlike: #FF453A; --perde: rgba(0, 0, 0, .55);
  --hud: rgba(33, 30, 26, .94); --golge: none; --golge-hud: 0 4px 14px rgba(0, 0, 0, .35); --odak: #0A84FF;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #9FCB6B;   /* koyu temada sahne örtüsü #709457 (aşağıda) */
  color: var(--yazi);
  font-family: var(--font);
  font-weight: 520;
  font-size: 16px;
  line-height: 21px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation; letter-spacing: -.008em; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
b, strong { font-weight: 640; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--ana-yazi); text-decoration: none; }
[hidden] { display: none !important; }
.simge-tanim { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--odak); outline-offset: 2px; }   /* tek odak dili 2 px (denetim 3) */

#oyun { position: fixed; inset: 0; height: 100dvh; }
#sahne { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#sahne:focus-visible { outline: none; }

/* ——— HUD ——— */
.hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.esnek { flex: 1; }
.hap {
  height: 44px; border-radius: 22px; background: var(--hud); box-shadow: var(--golge-hud);
  display: flex; align-items: center; gap: 8px; padding: 0 14px 0 4px;
  transition: transform .18s var(--egri);
}
.hap:active { transform: scale(.95); }
.seviye-hap .halka { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; }
.seviye-hap .halka svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.seviye-hap circle { fill: none; stroke-width: 3.2; }
.seviye-hap .iz { stroke: var(--cizgi); }
.seviye-hap .dolu { stroke: #F2B33D; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .6s var(--egri); }
.seviye-hap .halka b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hap-metin { display: flex; flex-direction: column; line-height: 1.1; }
.ust-yazi { font-size: 11.5px; color: var(--soluk); font-weight: 500; }
#xp-yazi { font-size: 13.5px; font-weight: 640; font-variant-numeric: tabular-nums; }
.akce-hap { padding: 0 16px 0 10px; gap: 7px; }
.akce-hap b { font-size: 17px; font-weight: 780; font-variant-numeric: tabular-nums; min-width: 1ch; }
.akce-hap img { width: 24px; height: 24px; }
.hap.zipla, .alt-cubuk button.zipla { animation: zipla .42s var(--yay); }
@keyframes zipla { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.yuvarlak-dugme {
  width: 44px; height: 44px; border-radius: 22px; background: var(--hud); box-shadow: var(--golge-hud);
  display: grid; place-items: center; color: var(--yazi); flex: none;
  transition: transform .18s var(--egri);
}
.yuvarlak-dugme svg { width: 22px; height: 22px; }
.yuvarlak-dugme:active { transform: scale(.92); }
.yuvarlak-dugme.kucuk { width: 32px; height: 32px; box-shadow: none; background: var(--alan); }
.yuvarlak-dugme.kucuk svg { width: 16px; height: 16px; }

.durum-hap {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  top: calc(62px + env(safe-area-inset-top));
  max-width: calc(100vw - 24px);
  min-height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--hud); box-shadow: var(--golge-hud);
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--govde);
  white-space: nowrap;
  transition: opacity .25s var(--egri), transform .25s var(--egri);
}
.durum-hap #durum-yazi { overflow: hidden; text-overflow: ellipsis; }
.durum-hap .nokta { width: 8px; height: 8px; border-radius: 4px; background: #F2B33D; flex: none; }
.durum-hap.rehber .nokta { background: var(--ana); animation: nefes 1.6s ease-in-out infinite; }
.durum-hap.sakin .nokta { background: #7FB04F; }
@keyframes nefes { 50% { transform: scale(1.5); opacity: .6; } }
.kapat-x { width: 24px; height: 24px; margin-right: -8px; border-radius: 12px; display: grid; place-items: center; color: var(--soluk); }
.kapat-x svg { width: 14px; height: 14px; }

/* ——— alt çubuk ——— */
.alt-cubuk {
  position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100vw - 24px), 440px); height: var(--alt-h);
  background: var(--hud); border-radius: 22px; box-shadow: var(--golge-hud);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px;
}
.alt-cubuk button {
  position: relative; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--govde); font-size: 12px; font-weight: 600;
  transition: transform .15s var(--egri), background .15s;
}
.alt-cubuk button svg { width: 24px; height: 24px; }
.alt-cubuk button:active { transform: scale(.93); background: var(--alan); }
.alt-cubuk button[aria-pressed="true"] { color: var(--ana-yazi); background: var(--ana-yumusak); }
.rozet {
  position: absolute; top: 5px; left: calc(50% + 8px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ana); color: #fff; font-style: normal; font-size: 12px; font-weight: 780;
  display: grid; place-items: center; font-variant-numeric: tabular-nums; line-height: 16px; letter-spacing: 0; }

/* ——— tohum tepsisi ——— */
.tepsi {
  position: absolute; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--alt-h) + 10px + env(safe-area-inset-bottom));
  width: min(calc(100vw - 24px), 560px);
  background: var(--hud); border-radius: 22px; box-shadow: var(--golge-hud);
  padding: 10px 10px 10px;
  animation: yuksel .28s var(--egri);
}
@keyframes yuksel { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tepsi-ust { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px 6px; }
.tepsi-ust b { font-size: 15px; font-weight: 780; flex: none; }
.tepsi-ust span { flex: 1; font-size: 12.5px; color: var(--soluk); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tepsi-liste { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.tepsi-liste::-webkit-scrollbar { display: none; }
.tohum {
  flex: none; width: 82px; min-height: 96px; border-radius: 16px; background: var(--alan);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px;
  scroll-snap-align: start; position: relative;
  transition: transform .15s var(--egri), background .15s;
}
.tohum img { width: 36px; height: 36px; }
.tohum b { font-size: 13.5px; font-weight: 660; }
.tohum .bilgi { font-size: 11.5px; color: var(--soluk); display: flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.tohum .bilgi img { width: 13px; height: 13px; }
.tohum[aria-checked="true"] { background: var(--ana-yumusak); box-shadow: inset 0 0 0 2px var(--ana); }
.tohum[aria-checked="true"] b { color: var(--ana-yazi); }
.tohum:active { transform: scale(.95); }
.tohum.kilitli { opacity: .5; }
.tohum.kilitli img { filter: grayscale(1); }

/* ——— ipucu (sahne üstü kısa bilgi) ——— */
.ipucu {
  position: absolute; z-index: 7; transform: translate(-50%, -100%);
  background: var(--yuzey); color: var(--yazi); border-radius: 14px; padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(70, 45, 20, .2); font-size: 14px; font-weight: 600; white-space: nowrap;
  pointer-events: none; animation: belir .2s var(--egri);
  display: flex; align-items: center; gap: 6px;
}
.ipucu img { width: 20px; height: 20px; }
.ipucu span { color: var(--soluk); font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes belir { from { opacity: 0; transform: translate(-50%, -90%) scale(.94); } }
.sus-serit {
  position: absolute; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--alt-h) + 10px + env(safe-area-inset-bottom));
  background: var(--hud); border-radius: 18px; box-shadow: var(--golge-hud);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; font-size: 14px; font-weight: 600; color: var(--govde);
  max-width: calc(100vw - 24px);
}
.sus-serit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hap-dugme { min-height: 36px; padding: 0 16px; border-radius: 18px; background: var(--ana); color: #fff; font-weight: 600; font-size: 15px; flex: none; }

/* ——— sayfalar ——— */
.perde { position: fixed; inset: 0; background: var(--perde); z-index: 20; opacity: 0; transition: opacity .25s var(--egri); }
.perde.acik { opacity: 1; }
.sayfa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21;
  display: flex; justify-content: center;
  transform: translateY(100%); transition: transform .36s var(--egri);
  max-height: 90dvh;
}
.sayfa.acik { transform: none; }
.sayfa-ic {
  position: relative; width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 26px 26px 0 0;
  padding: 8px var(--kenar) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.sayfa-ic.ortali { align-items: stretch; text-align: center; padding-top: 14px; }
.tutamak { align-self: center; width: 36px; height: 5px; border-radius: 999px; background: var(--cizgi); margin-bottom: 2px; flex: none; }
.sayfa h2 { margin: 0; font-size: 22px; font-weight: 780; letter-spacing: -.012em; line-height: 28px; }
.sayfa-baslik { display: flex; align-items: center; justify-content: space-between; }
.alt-yazi { margin: -4px 0 0; color: var(--soluk); font-size: 15px; line-height: 20px; letter-spacing: .002em; }
.ortali .alt-yazi { margin: 0; }
.metin-dugme { color: var(--ana-yazi); font-size: 15px; min-height: 44px; padding: 0 4px; line-height: 20px; letter-spacing: -.008em; min-width: 44px; }
.metin-dugme.kalin { font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -.012em; }
.dugme {
  min-height: 52px; padding: 0 20px; border-radius: 16px; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  transition: transform var(--sure) var(--egri), opacity var(--sure); line-height: 22px; letter-spacing: -.012em; }
.dugme:active { transform: scale(.97); }
.dugme:disabled { opacity: .4; }
.ana-dugme { background: var(--ana-dolgu); color: #fff; }
.sade { background: var(--alan); color: var(--ana-yazi); }
.kucuk-dugme {
  min-height: 32px; padding: 0 16px; border-radius: 999px; background: var(--ana-dolgu); color: #fff;
  font-size: 15px; font-weight: 600; flex: none; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s var(--egri), opacity .15s; line-height: 20px; letter-spacing: -.008em; position: relative; }
.kucuk-dugme.ikincil { background: var(--alan); color: var(--ana-yazi); }
.kucuk-dugme:active { transform: scale(.95); }
.kucuk-dugme::after { content: ""; position: absolute; inset: -6px 0; }   /* dokunma 44 */
.kucuk-dugme:disabled { opacity: .38; }
.kucuk-dugme img { width: 16px; height: 16px; }

.grup { background: var(--yuzey); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: none; }
.grup-baslik { font-size: 15px; font-weight: 640; color: var(--soluk); letter-spacing: -.008em; text-transform: none; padding: 8px 4px 0; line-height: 20px; }
.satir { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 52px; padding: 12px 20px; position: relative; }   /* 2.3: satır 52, iç boşluk 12/20 */
.grup .satir + .satir::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--cizgi); }
.grup .satir.simgeli + .satir::before, .grup .satir + .satir.simgeli::before { left: 64px; }
button.satir:active, label.ok-satir:active { background: var(--alan); }
.satir-metin { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.satir-metin b { font-weight: 640; font-size: 17px; line-height: 22px; letter-spacing: -.012em; }
.satir-metin span { color: var(--soluk); font-size: 13px; line-height: 18px; letter-spacing: 0; }
.ok-satir svg { width: 18px; height: 18px; color: var(--soluk); opacity: .7; flex: none; }
.ok-satir { cursor: pointer; }
.anahtar-satir { cursor: pointer; }
.satir > img.urun { width: 38px; height: 38px; flex: none; }
.satir .sayi { font-variant-numeric: tabular-nums; }
.etiket-hap { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ana-yazi); background: var(--ana-yumusak); border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: 1px; line-height: 16px; letter-spacing: 0; }
.dipnot { margin: 0; font-size: 13px; color: var(--soluk); line-height: 18px; letter-spacing: 0; }
.bos-yazi { padding: 22px 16px; text-align: center; color: var(--soluk); font-size: 15px; line-height: 20px; letter-spacing: .002em; }
.fiyat { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.fiyat img { width: 15px; height: 15px; }
.dugmeler { display: flex; gap: 6px; flex: none; }

/* anahtar ve bölümlü */
.anahtar { appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--iz); position: relative; cursor: pointer; transition: background var(--sure) var(--egri); }
.anahtar::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform var(--sure) var(--yay); }
.anahtar:checked { background-color: var(--ana); }   /* anahtar Metastaz mavisi */
.anahtar:checked::after { transform: translateX(20px); }
.anahtar:disabled { opacity: .45; }
.bolumlu { display: grid; grid-template-columns: repeat(3, auto); background: var(--iz); border-radius: 16px; padding: 2px; flex: none; }
.bolumlu button { padding: 0 12px; border-radius: 14px; font-size: 15px; font-weight: 500; min-height: 40px; line-height: 20px; letter-spacing: .002em; position: relative; }
.bolumlu button[aria-checked="true"] { background: var(--seg-acik); box-shadow: none; }   /* iOS segment: seçili parça koyuda izden açık */

/* siparişler */
.siparisler { display: flex; flex-direction: column; gap: 10px; }
.siparis { background: var(--yuzey); border-radius: 20px; padding: 12px 20px; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
.siparis.hazir { box-shadow: inset 0 0 0 2px var(--ana), var(--golge); }
.siparis-ust { display: flex; align-items: center; gap: 10px; }
.monogram { width: 36px; height: 36px; border-radius: 18px; color: #fff; font-weight: 780; font-size: 15px; display: grid; place-items: center; flex: none; line-height: 20px; letter-spacing: -.008em; }
.siparis-ust .satir-metin b { font-size: 15px; line-height: 20px; letter-spacing: -.008em; }
.istekler { display: flex; flex-wrap: wrap; gap: 8px; }
.istek { display: flex; align-items: center; gap: 6px; background: var(--alan); border-radius: 12px; padding: 6px 10px 6px 6px; font-size: 15px; font-weight: 640; font-variant-numeric: tabular-nums; line-height: 20px; letter-spacing: -.008em; }
.istek img { width: 26px; height: 26px; }
.istek.tamam { background: var(--ana-yumusak); color: var(--ana-yazi); }
.istek .var { color: var(--soluk); font-weight: 500; }
.istek.tamam .var { color: var(--ana-yazi); }
.siparis-alt { display: flex; align-items: center; gap: 10px; }
.odul { flex: 1; display: flex; gap: 12px; font-weight: 640; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 20px; letter-spacing: -.008em; }
.odul span { display: inline-flex; align-items: center; gap: 4px; }
.odul img { width: 18px; height: 18px; }

/* üretim */
.kuyruk { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; }
.yuva { background: var(--yuzey); border-radius: 16px; min-height: 92px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; box-shadow: none; text-align: center; }
.yuva img { width: 36px; height: 36px; }
.yuva b { font-size: 13px; font-weight: 640; line-height: 18px; letter-spacing: 0; }
.yuva span { font-size: 12px; color: var(--soluk); font-variant-numeric: tabular-nums; line-height: 16px; letter-spacing: 0; }
.yuva.bos { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cizgi); color: var(--soluk); font-size: 13px; line-height: 18px; letter-spacing: 0; }
.yuva .cubuk { width: 70%; height: 4px; border-radius: 999px; background: var(--alan); overflow: hidden; }
.yuva .cubuk i { display: block; height: 100%; background: var(--ana); border-radius: 999px; }
.yuva.hazir { box-shadow: inset 0 0 0 2px var(--ana), var(--golge); }
.girdiler { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.girdi { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 640; font-variant-numeric: tabular-nums; color: var(--govde); line-height: 18px; letter-spacing: 0; }
.girdi img { width: 20px; height: 20px; }
.girdi.eksik { color: var(--tehlike); }

/* süs ızgarası */
.sus-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.sus-kart { background: var(--yuzey); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: none; transition: transform .15s var(--egri); }
.sus-kart canvas { width: 64px; height: 64px; }
.sus-kart b { font-size: 13px; font-weight: 640; text-align: center; line-height: 18px; letter-spacing: 0; }
.sus-kart:active { transform: scale(.96); }
.sus-kart:disabled { opacity: .45; }
.sus-kart.kaldir { box-shadow: inset 0 0 0 1.5px var(--cizgi); background: transparent; color: var(--tehlike); justify-content: center; }

/* seviye, özet, mola */
#onay-gorsel, #ozet-gorsel, #mola-gorsel { width: 96px; height: 96px; align-self: center; }
.seviye-rozet { align-self: center; width: 96px; height: 96px; border-radius: 48px; background: radial-gradient(circle at 35% 30%, #FFE08A, #F2B33D 70%); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(242, 179, 61, .4); animation: rozet .7s var(--yay); }
.seviye-rozet b { font-size: 44px; font-weight: 800; color: #5A3A10; font-variant-numeric: tabular-nums; line-height: 48px; letter-spacing: -.022em; }
@keyframes rozet { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.acilanlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; text-align: center; }
.acilan { background: var(--yuzey); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 640; box-shadow: none; line-height: 18px; letter-spacing: 0; }
.acilan img { width: 34px; height: 34px; }
.acilan span { font-size: 12px; color: var(--soluk); font-weight: 500; line-height: 16px; letter-spacing: 0; }
.ozet-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ozet-liste li { background: var(--yuzey); border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 640; box-shadow: none; line-height: 20px; letter-spacing: -.008em; }
.ozet-liste img { width: 28px; height: 28px; }
.nasil { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: n; }
.nasil li { background: var(--yuzey); border-radius: 20px; padding: 16px 20px 16px 52px; position: relative; box-shadow: none; counter-increment: n; }
.nasil li::before { content: counter(n); position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--ana-yumusak); color: var(--ana-yazi); font-weight: 780; font-size: 13px; display: grid; place-items: center; line-height: 18px; letter-spacing: 0; }
.nasil b { font-size: 17px; font-weight: 640; line-height: 22px; letter-spacing: -.012em; }
.nasil p { margin: 3px 0 0; color: var(--govde); font-size: 15px; line-height: 20px; letter-spacing: .002em; }

.bildirim {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); z-index: 40;
  transform: translate(-50%, -10px); opacity: 0;
  background: var(--yuzey); color: var(--yazi); border-radius: 26px; padding: 12px 16px;
  box-shadow: 0 6px 26px rgba(70, 45, 20, .22); font-size: 15px; font-weight: 640; max-width: calc(100vw - 32px);
  transition: opacity .2s var(--egri), transform .35s var(--yay); pointer-events: none; text-align: center; line-height: 20px; letter-spacing: -.008em; }
.bildirim.gorunur { opacity: 1; transform: translate(-50%, 0); }
.acilis-yeri { position: fixed; inset: 0; z-index: 60; }

/* Geniş ekran: masaüstü/TV — sayfalar ortada kart */
@media (min-width: 900px) {
  .hud { padding-top: calc(16px + env(safe-area-inset-top)); padding-left: 20px; padding-right: 20px; }
  .durum-hap { top: 18px; font-size: 15px; min-height: 40px; border-radius: 20px; }
  .alt-cubuk { bottom: 18px; --alt-h: 68px; }
  .sayfa { align-items: center; top: 0; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .3s var(--egri), opacity .22s var(--egri); max-height: none; }
  .sayfa.acik { transform: none; opacity: 1; pointer-events: auto; }
  .sayfa-ic { border-radius: 26px; max-height: 86dvh; padding-bottom: 24px; box-shadow: 0 24px 80px rgba(40, 25, 10, .3); }
  .tutamak { display: none; }
  .bildirim { top: 72px; }
}
@media (max-width: 360px) {
  .hap-metin .ust-yazi { display: none; }
  .durum-hap { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:root[data-hareket="az"] *, :root[data-hareket="az"] *::before { animation-duration: .01ms !important; }
.sayfa-akce { margin: 0 14px 0 auto; font-size: 16px; font-weight: 640; color: var(--govde); line-height: 21px; letter-spacing: -.008em; }
.sayfa-akce img { width: 18px; height: 18px; }
.durum-hap.gizli { opacity: 0; pointer-events: none; }

/* ——— giriş ekranı: sahne arkada görünür, altta iOS karşılama paneli ——— */
body[data-giris="yok"] .hud, body[data-giris="yok"] .durum-hap, body[data-giris="yok"] .alt-cubuk, body[data-giris="yok"] .tepsi { visibility: hidden; }
.giris {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(to bottom, rgba(247, 241, 230, 0) 0%, rgba(247, 241, 230, .35) 45%, rgba(247, 241, 230, .9) 100%);
}
@media (prefers-color-scheme: dark) { :root:not([data-tema="acik"]) .giris { background: linear-gradient(to bottom, rgba(20, 18, 16, 0) 0%, rgba(20, 18, 16, .45) 45%, rgba(20, 18, 16, .92) 100%); } }
:root[data-tema="koyu"] .giris { background: linear-gradient(to bottom, rgba(20, 18, 16, 0) 0%, rgba(20, 18, 16, .45) 45%, rgba(20, 18, 16, .92) 100%); }
.giris-kart {
  width: 100%; max-width: 480px; background: var(--bg); border-radius: 26px 26px 0 0;
  padding: 32px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: 0 -10px 40px rgba(40, 25, 10, .16);
  animation: girisGel .5s var(--egri);
}
@keyframes girisGel { from { transform: translateY(40px); opacity: 0; } }
.giris-ikon { width: 88px; height: 88px; margin-top: -74px; filter: drop-shadow(0 8px 18px rgba(70, 45, 20, .28)); }
.giris h1 { margin: 8px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 41px; }
.giris-metin { margin: 0 0 10px; font-size: 17px; line-height: 22px; color: var(--govde); max-width: 320px; letter-spacing: .002em; }
.giris-dugme { min-height: 52px; border-radius: 16px; font-size: 17px; line-height: 22px; letter-spacing: -.012em; }
.giris-dugme svg { width: 20px; height: 20px; }
.giris-dugme.bekliyor { opacity: .6; pointer-events: none; }
.giris-hata { margin: 0; min-height: 0; color: var(--tehlike); font-size: 15px; line-height: 20px; letter-spacing: .002em; }
.giris-hata:empty { display: none; }
.giris-ag { margin: 0; color: var(--soluk); font-size: 15px; line-height: 20px; letter-spacing: .002em; }
.giris-dip { margin: 4px 0 0; color: var(--soluk); font-size: 13px; line-height: 18px; letter-spacing: 0; }
@media (min-width: 900px) { .giris { align-items: center; } .giris-kart { border-radius: 26px; padding-bottom: 32px; box-shadow: 0 24px 80px rgba(40, 25, 10, .3); } }
.mavi { color: var(--ana-yazi); }
.kirmizi { color: var(--tehlike); }

/* Sayfa içeriği kaydırılır, kartlar ASLA sıkışmaz (sahip hatası: "Mola hatırlatması" satırı kesikti — taşma
   gizli .grup flex sütununda küçülüyordu). Satırlar uzun yazıda ve büyük yazı boyutunda sarar. */
.sayfa-ic > *, .giris-kart > * { flex-shrink: 0; }
.satir-metin b, .satir-metin span { overflow-wrap: anywhere; }
.satir { min-height: 52px; height: auto; }
#efekt { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 45; pointer-events: none; }

/* tur 3: harla mini oyunu, kapanış, çiftçi seçimi */
.harla-dugme { background: var(--alan); color: var(--ana-yazi); min-height: 44px; }
.harla-tuval { width: 100%; height: 120px; touch-action: none; }
#kapanis-gorsel { width: 96px; height: 96px; align-self: center; }
.kapanis-liste li span { flex: 1; }
.kapanis-liste li b { font-weight: 640; font-variant-numeric: tabular-nums; color: var(--govde); }
.karakter-buyuk { width: 120px; height: 120px; align-self: center; }
.karakter-izgara { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.karakter-kart { background: var(--yuzey); border-radius: 16px; padding: 4px 0; display: grid; place-items: center; box-shadow: none; min-height: 64px; }
.karakter-kart canvas { width: 48px; height: 48px; }
.karakter-kart[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ana), var(--golge); }
.renk-satir { display: flex; gap: 10px; flex-wrap: wrap; }
.renk-sec { width: 40px; height: 40px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.renk-sec[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ana); }
.yazi-sec { min-height: 32px; padding: 0 16px; border-radius: 999px; background: var(--alan); font-size: 15px; font-weight: 640; line-height: 20px; letter-spacing: -.008em; position: relative; }
.yazi-sec[aria-pressed="true"] { background: var(--ana-dolgu); color: #fff; }
@media (max-width: 380px) { .karakter-izgara { grid-template-columns: repeat(3, 1fr); } }
.anahtar::before { content: ""; position: absolute; inset: -6.5px 0; }   /* dokunma 44; iz 51x31 kapsul, dugme 27, ic bosluk 2 */

/* 2.0 segment: parça 40 + iz 2 = dokunma 44 */
.bolumlu button::after { content: ""; position: absolute; inset: -2px 0; }
.yazi-sec::after { content: ""; position: absolute; inset: -6px 0; }   /* dokunma 44 */

/* 2.0: segment satırda tam genişlik (telefonda kabın tamamı): etiket üstte, segment altında */
.satir:has(> .bolumlu) { flex-wrap: wrap; padding-bottom: 12px; }
.satir > .bolumlu { flex: 1 1 100%; grid-template-columns: repeat(3, 1fr); }
/* Koyu tema: sahne açılmadan önceki zemin de akşam çimeni (sahne.js koyuOrtu ile aynı ton) */
@media (prefers-color-scheme: dark) { :root:not([data-tema="acik"]) body { background: #709457; } }
:root[data-tema="koyu"] body { background: #709457; }
/* ==== Metastaz Design 2.5.4 düzen (2026-10-11, metastaz-design/tasima/oyun_duzen.py) ==== */
body { font-weight: 500; }                                                     /* gövde 560 */
.dugme, .buyuk, .giris-dugme { min-height: 55px; }                              /* büyük düğme 55 */

:root { --mz-sayfa-ust: calc(env(safe-area-inset-top, 0px) + 50px); --mz-ust-arac: calc(env(safe-area-inset-top, 0px) + 16px); }   /* 2.5.4 tek üst boşluk (kütüphaneyle aynı ad) */

:root { --kenar: 25px; }
.giris h1 { font-size: 29px; line-height: 35px; }                              /* büyük başlık 29/35 */
.grup, .nasil li { border-radius: 17px; }                                       /* kart 17 */
.sayfa-ic .grup, .sayfa-ic .nasil li, #ambar-liste .grup { border-radius: 17px; }
.sayfa-ic .dugme, #karakter-tamam, .sayfa-ic .karakter-kart, .karakter-kart { border-radius: 16px; }   /* iç düğme/kutu SABİT 16 */
.grup .satir > img.urun { border-radius: 13px; }
.satir { min-height: 55px; padding-left: 21px; padding-right: 21px; gap: 13px; }    /* satır 55 / yan 21 (2.5.3 = kart yan) / simge → yazı 13 */
.grup .satir + .satir::before { left: 21px; }
.grup .satir.simgeli + .satir::before, .grup .satir + .satir.simgeli::before { left: 64px; }   /* 21 + 30 + 13 */
.grup-baslik { font-size: 18px; line-height: 23px; font-weight: 680; padding: 0 21px; margin: 31px 0 9px; }   /* bölüm başlığı 18 / 680 gri, 31 / 9 */
.nasil li { padding: 18px 21px 18px 56px; } .nasil li::before { left: 21px; top: 18px; }   /* yan 21 (2.5.3); metin girintisi 56 (ölçek) */
/* 2.5.4 (denetçi 2.5.3 + sahip Puanla) */
.anahtar:checked { background-color: #0077F0; }   /* anahtar açık hali aile belirteci #0077F0 (oyun paleti yalnız zemin) */
.hud { padding-top: var(--mz-ust-arac); }   /* çubuksuz araç yüzeyi: güvenli alan + 16 (önce 10) */
.durum-hap { top: calc(68px + env(safe-area-inset-top, 0px)); }   /* HUD 6 aşağı indi */
.sayfa-ic > .grup + .grup { margin-top: 22px; }   /* başlıksız grup → grup 34 (kap aralığı 12 + 22; Tune) */
#ambar-liste .satir.simgeli { flex-wrap: wrap; row-gap: 9px; }   /* ambar: ad tam genişlik, düğmeler alt satırda (önce ad 67 px'e sıkışıp 4 satıra bölünüyordu) */
#ambar-liste .satir.simgeli > .satir-metin { flex: 1 1 calc(100% - 51px); min-width: 0; }
#ambar-liste .satir.simgeli > .dugmeler { flex: 1 0 100%; display: flex; gap: 8px; padding-left: 51px; }   /* 38 simge + 13 → yazı hattı */
#ambar-liste .satir-metin b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ==== /Metastaz Design 2.5.4 düzen ==== */
