/* Fitil — Metastaz Design 2.0 (C:/dev/stazos/docs/tasarim/metastaz-design.md): değerler standart ölçekten. Oyun tahtası ve HUD kendi kuralında. */
@font-face {
  font-family: "Metastaz Sans";
  src: url("MetastazSans-latin.woff2?v=3001") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F2F2F7;
  --yuzey: #FFFFFF;
  --yuzey-2: #F2F2F7;
  --alan: #E9E9EE;
  --yazi: #111113;
  --govde: #3A3A40;
  --soluk: #6E6E73;
  --cizgi: #C6C6C8;
  --ana: #0071E3;
  --ana-yazi: #0066CC;
  --tehlike: #D70015;
  --perde: rgba(0, 0, 0, .20);
  --ben: #0071E3;
  --rakip: #F57A00;
  --ben-yumusak: rgba(0, 113, 227, .12);
  --rakip-yumusak: rgba(245, 122, 0, .13);
  --golge: none;   /* 2.0: kartlar düz; gölge yalnız yüzen katmanda */
  --ana-dolgu: #0071E3;   /* üstünde beyaz yazı olan dolgu (koyuda da; #0A84FF üstü beyaz 3,65 geçmez) */
  --yuzey-ust: #FFFFFF;   /* sheet içindeki grup */
  --iz: rgba(120, 120, 128, .2); --seg-acik: #FFFFFF;   /* Metastaz Design ctl-track / seg-on: anahtar ve segment izi her yüzeyde görünür */
  --t-mavi: #0040DD; --t-turuncu: #C93400; --t-mor: #8944AB; --t-yesil: #248A3D; --t-gri: #6C6C70; --t-sari: #B25000;
  --kenar: 20px;
  --kose-kart: 20px;   /* 2.3: kart/grup 20 (sahip seçimi 1-B); alt sayfa üst köşesi 26 ayrı */
  --kose-dugme: 16px;
  --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;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="acik"]) {
    --bg: #000000; --yuzey: #151516; --yuzey-2: #1C1C1E; --alan: #2C2C2E;
    --yazi: #F5F5F7; --govde: #C4C4C6; --soluk: #9898A0; --cizgi: rgba(255, 255, 255, .15);
    --ana: #0A84FF; --ana-yazi: #2997FF; --tehlike: #FF6961; --perde: rgba(0, 0, 0, .50);
    --ben: #0A84FF; --rakip: #FF9F0A;
    --ben-yumusak: rgba(10, 132, 255, .20); --rakip-yumusak: rgba(255, 159, 10, .15);
    --golge: none; --odak: #0A84FF; --yuzey-ust: #2C2C2E; --hap-zemin: #1C1C1E; --iz: rgba(120, 120, 128, .361); --seg-acik: #636366;
    --t-mavi: #0A84FF; --t-turuncu: #FF9F0A; --t-mor: #BF5AF2; --t-yesil: #30D158; --t-gri: #8E8E93; --t-sari: #FFD60A;
    color-scheme: dark;
  }
}
:root[data-tema="koyu"] {
  --bg: #000000; --yuzey: #151516; --yuzey-2: #1C1C1E; --alan: #2C2C2E;
  --yazi: #F5F5F7; --govde: #C4C4C6; --soluk: #9898A0; --cizgi: rgba(255, 255, 255, .15);
  --ana: #0A84FF; --ana-yazi: #2997FF; --tehlike: #FF6961; --perde: rgba(0, 0, 0, .50);
  --ben: #0A84FF; --rakip: #FF9F0A;
  --ben-yumusak: rgba(10, 132, 255, .20); --rakip-yumusak: rgba(255, 159, 10, .15);
  --golge: none; --odak: #0A84FF; --yuzey-ust: #2C2C2E; --hap-zemin: #1C1C1E; --iz: rgba(120, 120, 128, .361); --seg-acik: #636366;
  --t-mavi: #0A84FF; --t-turuncu: #FF9F0A; --t-mor: #BF5AF2; --t-yesil: #30D158; --t-gri: #8E8E93; --t-sari: #FFD60A;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--yazi);
  font-family: var(--font);
  font-weight: 520;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
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, .dpad-odak {
  outline: 2px solid var(--odak);
  outline-offset: 2px;   /* tek odak dili 2 px (denetim 3) */
}

#uygulama { height: 100dvh; display: flex; flex-direction: column; }
.ekran {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ——— Ana ekran ——— */
#ana { overflow-y: auto; }
.ana-ust {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--kenar) 6px;
  max-width: 560px; width: 100%; margin: 0 auto;
}
.marka { display: flex; align-items: center; gap: 12px; }
#ana-kivilcim { width: 44px; height: 44px; }
.marka h1 { margin: 0; font-size: 34px; line-height: 41px; font-weight: 800; letter-spacing: -.02em; }
.alt { margin: 2px 0 0; color: var(--soluk); font-size: 15px; line-height: 20px; }
.simge-dugme {
  width: 44px; height: 44px; border-radius: 22px;
  display: grid; place-items: center;
  color: var(--ana-yazi);
  background: var(--yuzey);
  box-shadow: var(--golge);
  transition: transform var(--sure) var(--egri);
}
.simge-dugme svg { width: 24px; height: 24px; }
.simge-dugme:active { transform: scale(.92); }

.ana-govde {
  max-width: 560px; width: 100%; margin: 0 auto;
  padding: 12px var(--kenar) 20px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}
.kart {
  background: var(--yuzey);
  border-radius: var(--kose-kart);
  box-shadow: var(--golge);
}
.oyna-kart { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.kart-ust { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.etiket { font-size: 15px; line-height: 20px; font-weight: 640; color: var(--soluk); }   /* 2.0: grup başlığı cümle düzeni, BÜYÜK HARF yok */
.istatistik { font-size: 13px; line-height: 18px; letter-spacing: 0; color: var(--soluk); font-variant-numeric: tabular-nums; }
.seviyeler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seviye {
  min-height: 64px; border-radius: var(--kose-dugme);
  background: var(--alan);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: background var(--sure) var(--egri), color var(--sure) var(--egri), transform var(--sure) var(--egri);
}
.seviye b { font-size: 16px; font-weight: 640; }
.seviye span { font-size: 13px; line-height: 18px; letter-spacing: 0; color: var(--govde); }   /* soluk / alan 4,19 geçmez */
.seviye[aria-checked="true"] { background: var(--ben-yumusak); color: var(--ana-yazi); box-shadow: inset 0 0 0 2px var(--ana); }
.seviye[aria-checked="true"] span { color: var(--ana-yazi); }
.seviye:active { transform: scale(.96); }

.dugme {
  min-height: 52px; padding: 0 20px; border-radius: var(--kose-dugme);
  font-size: 17px; line-height: 22px; letter-spacing: -.012em; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  transition: transform var(--sure) var(--egri), opacity var(--sure);
}
.dugme:active { transform: scale(.97); }
.dugme:disabled { opacity: .4; }
.ana-dugme { background: var(--ana-dolgu); color: #fff; }
.buyuk { min-height: 52px; }   /* 2.0: ana düğme tek boy (52) */
.sade { background: var(--yuzey); color: var(--ana-yazi); }
.sayfa-ic .sade { background: var(--yuzey-ust); }
.tehlike { color: var(--tehlike); }
.sade.tehlike { color: var(--tehlike); }
.hap {
  position: relative; min-height: 32px; padding: 0 16px; border-radius: 999px;
  background: var(--hap-zemin, var(--alan)); color: var(--ana-yazi); font-size: 15px; line-height: 20px; font-weight: 600;
}
.hap::after { content: ""; position: absolute; inset: -6px 0; }   /* dokunma 44 */
.metin-dugme { color: var(--ana-yazi); font-size: 15px; line-height: 20px; min-height: 44px; min-width: 44px; padding: 0 4px; }
.metin-dugme.kalin { font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -.012em; }

.satir-kart, .satir {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  min-height: 64px; padding: 12px 20px;   /* 2.3: satır iç boşluğu 12 / yatay 20 (kart içi 20, sahip 5-C) */
}
.satir-kart { border-radius: var(--kose-kart); }
.satir-kart:active, .satir:active { background: var(--alan); }
.grup { padding: 6px 0; display: flex; flex-direction: column; overflow: hidden; }
.grup-baslik { font-size: 15px; line-height: 20px; font-weight: 640; color: var(--soluk); padding: 12px 20px 4px; }
.grup .satir + .satir { position: relative; }
.grup .satir + .satir::before {
  content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px;
  background: var(--cizgi);
}
.satir-metin { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.satir-metin b { font-weight: 500; font-size: 17px; line-height: 22px; letter-spacing: .002em; }
.satir-metin span { color: var(--soluk); font-size: 15px; line-height: 20px; }
/* 2.0: satır simgesi = tonlu daire (renkli glif, %20 ton zemin) — iOS renkli kare değil (tasarım dili karar B) */
.ton {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ton, var(--t-mavi));
  background: color-mix(in srgb, var(--ton, var(--t-mavi)) 20%, transparent);
}
.ton svg { width: 18px; height: 18px; }
.ton-mavi { --ton: var(--t-mavi); }
.ton-turuncu { --ton: var(--t-turuncu); }
.ton-mor { --ton: var(--t-mor); }
.ton-yesil { --ton: var(--t-yesil); }
.ton-gri { --ton: var(--t-gri); }
.ok { color: var(--soluk); opacity: .7; }
.ok svg { width: 18px; height: 18px; }
.ana-alt { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--soluk); font-size: 15px; line-height: 20px; margin-top: auto; padding-top: 4px; }
.ag-durum { font-size: 15px; line-height: 20px; color: var(--soluk); }

/* ——— Oyun ekranı ——— */
.oyun-ust {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: 10px 12px 4px;
  max-width: 760px; width: 100%; margin: 0 auto;
}
.ust-bosluk { width: 44px; }
.oyuncular { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.oyuncu { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; transition: opacity var(--sure) var(--egri); }
.oyuncu.sag { text-align: right; }
.oyuncu:not(.sirada) { opacity: .62; }
.halka { position: relative; width: 40px; height: 40px; flex: none; }
.halka svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.halka circle { fill: none; stroke-width: 3; }
.halka-iz { stroke: var(--cizgi); }
.halka-sure { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.oyuncu[data-renk="ben"] .halka { color: var(--ben); }
.oyuncu[data-renk="rakip"] .halka { color: var(--rakip); }
.halka i {
  position: absolute; inset: 9px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.oyuncu.sirada .halka i { animation: nabiz 1.6s var(--egri) infinite; }
@keyframes nabiz { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.oyuncu-metin { display: flex; flex-direction: column; min-width: 0; }
.oyuncu-metin .ad { font-size: 15px; font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.oyuncu-metin .sayi { font-size: 13px; color: var(--soluk); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oyuncu-metin .sayi em { font-style: normal; font-weight: 780; color: var(--yazi); }
.balon {
  position: absolute; top: 46px; left: 0; z-index: 5;
  padding: 7px 12px; border-radius: 16px;
  background: var(--yuzey); box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(-4px) scale(.9); pointer-events: none;
  transition: opacity .18s var(--egri), transform .3s var(--yay);
}
.oyuncu.sag .balon { left: auto; right: 0; }
.balon.gorunur { opacity: 1; transform: none; }

.fitil-serit { height: 26px; max-width: 760px; width: 100%; margin: 2px auto 0; padding: 0 20px; }
#fitil-tuval { width: 100%; height: 100%; display: block; }
.fitil-yazi { margin: 0; text-align: center; font-size: 12.5px; color: var(--soluk); font-variant-numeric: tabular-nums; min-height: 17px; }

.tahta-kap { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
#tahta { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#tahta:focus-visible { outline: none; }
.zincir-yazi {
  position: absolute; left: 50%; top: 10%; transform: translate(-50%, 0) scale(.8);
  font-size: 30px; font-weight: 780; letter-spacing: -.01em; opacity: 0; pointer-events: none;
  color: var(--yazi); text-shadow: 0 2px 16px var(--bg);
  font-variant-numeric: tabular-nums;
}
.zincir-yazi.gorunur { animation: zincir 1.1s var(--egri) forwards; }
@keyframes zincir {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.7); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  30% { transform: translate(-50%, 0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -10px) scale(1); }
}
.gunluk-hedef {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  background: var(--yuzey); border-radius: 14px; padding: 8px 14px; box-shadow: var(--golge);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.oyun-alt { padding: 6px var(--kenar) 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 64px; }
.sira-yazi { margin: 0; font-size: 16px; font-weight: 600; color: var(--govde); min-height: 22px; text-align: center; }
.tepkiler { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tepki {
  min-height: 40px; padding: 0 12px; border-radius: 20px;
  background: var(--yuzey); box-shadow: var(--golge);
  font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px;
  transition: transform .15s var(--egri), opacity .2s;
}
.tepki:active { transform: scale(.93); }
.tepki:disabled { opacity: .45; }

/* ——— Sayfalar (sheet) ——— */
.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 .38s var(--egri);
  max-height: 92dvh;
}
.sayfa.acik { transform: none; }
/* Açık sayfanın arkasındaki ekran kaydırılmaz (emülatörde bulundu: sayfa üstünde kaydırma ana ekranı oynatıyordu) */
body:has(.sayfa.acik) #ana { overflow-y: hidden; }
.sayfa-ic { overscroll-behavior: contain; }
/* Sahip 10-07: sayfa max-height'a dayanınca flex sütun kartları ve satırları büzüyor, içerik kırpılıyordu → büzülme yok, sayfa kayar */
.sayfa-ic > *, .grup > *, .yigin > *, .yigin-dipli > * { flex-shrink: 0; }
.sayfa-ic {
  position: relative;
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto;
  background: var(--yuzey-2);
  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 { --sayfa-zemin: var(--yuzey-2); }
:root:not([data-tema="koyu"]) .sayfa-ic { background: var(--bg); --sayfa-zemin: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-tema="acik"]) .sayfa-ic { background: var(--yuzey-2); --sayfa-zemin: var(--yuzey-2); } }
.tutamak { align-self: center; width: 36px; height: 5px; border-radius: 999px; background: var(--cizgi); margin-bottom: 2px; }
.sayfa h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 780; letter-spacing: -.012em; }
.sayfa-baslik { display: flex; align-items: center; justify-content: space-between; }
.ic-grup { background: var(--yuzey-ust); border-radius: var(--kose-kart); }
.satir.duz { min-height: 52px; cursor: default; padding-top: 10px; padding-bottom: 10px; }   /* 2.0: satır 52 (anahtar 31 + 2×10 ≤ 52) */
.satir.duz:has(> .satir-metin > span:not(:empty)) { padding-top: 12px; padding-bottom: 12px; }   /* alt yazılı ≥ 64, ayırıcıdan 12 */
.ic-grup .satir + .satir::before { left: 20px; }
.satir.duz:active { background: none; }
.anahtar-satir { cursor: pointer; }
.dipnot { margin: 0; font-size: 13px; color: var(--soluk); line-height: 18px; letter-spacing: 0; }

/* iOS anahtar */
.anahtar {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 51px; height: 31px; border-radius: 999px; background-color: 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::before { content: ""; position: absolute; inset: -6.5px 0; }   /* dokunma 44 */
.anahtar:checked { background-color: var(--ana); }   /* anahtar Metastaz mavisi (iOS yeşili değil; sahip kararı 09-29) */
.anahtar:checked::after { transform: translateX(20px); }

.bolumlu { display: grid; grid-template-columns: repeat(3, auto); background: var(--iz); border-radius: var(--kose-dugme); padding: 2px; }
.bolumlu button { position: relative; padding: 0 12px; border-radius: calc(var(--kose-dugme) - 2px); font-size: 15px; line-height: 20px; font-weight: 500; min-height: 40px; }
.bolumlu button::after { content: ""; position: absolute; inset: -2px 0; }
.bolumlu button[aria-checked="true"] { background: var(--seg-acik); font-weight: 600; }

/* Sonuç */
.sonuc { align-items: stretch; text-align: center; padding-top: 26px; overflow: hidden; }
#sonuc-isik { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sonuc > *:not(canvas) { position: relative; }
.sonuc-ust { margin: 0; font-size: 15px; line-height: 20px; font-weight: 640; color: var(--soluk); }
.sonuc h2 { font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -.022em; }
.sonuc-alt { margin: -4px 0 4px; color: var(--govde); font-size: 16px; line-height: 21px; }
.sonuc-olcu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.olcu { background: var(--yuzey-ust); border-radius: var(--kose-dugme); padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.olcu b { font-size: 22px; line-height: 28px; font-weight: 780; font-variant-numeric: tabular-nums; }
.olcu span { font-size: 13px; line-height: 18px; letter-spacing: 0; color: var(--soluk); }
.sonuc-rovans { margin: 0; min-height: 20px; font-size: 15px; line-height: 20px; color: var(--soluk); }
.yildizlar { display: flex; justify-content: center; gap: 8px; margin: 2px 0 4px; }
.yildizlar svg { width: 34px; height: 34px; }

/* Nasıl */
.nasil { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nasil li { display: flex; gap: 14px; align-items: flex-start; background: var(--yuzey-ust); border-radius: var(--kose-kart); padding: 16px; }   /* rozet üstten = soldan 16 (köşeye orantılı, sahip 10-08) */
.nasil canvas { width: 104px; height: 92px; flex: none; }
.nasil b { font-size: 17px; line-height: 22px; letter-spacing: -.012em; font-weight: 640; }
.nasil p { margin: 4px 0 0; color: var(--govde); font-size: 15px; line-height: 20px; }

/* Oda */
.oda-kodu {
  font-size: 54px; font-weight: 800; letter-spacing: .18em; text-align: center; padding: 10px 0 4px;
  font-variant-numeric: tabular-nums; color: var(--yazi);
}
.bekle-satir { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--soluk); margin: 4px 0 0; font-size: 15px; line-height: 20px; }
.cark {   /* ortak çark kuralı: kare, blok, merkezden döner (yalpalamaz) */
  display: block; flex: none; box-sizing: border-box; transform-origin: 50% 50%;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.4px solid var(--cizgi); border-top-color: var(--ana);
  animation: don .8s linear infinite;
}
.cark.buyuk { width: 44px; height: 44px; border-width: 3.5px; }
@keyframes don { to { transform: rotate(360deg); } }
.esles-gorsel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0 8px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.kod-giris { position: relative; height: 72px; margin: 6px 0 0; }
.kod-giris input {
  position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; z-index: 2;
  text-transform: uppercase; caret-color: transparent;
}
.kod-kutular { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kod-kutular span {
  background: var(--yuzey-ust); border-radius: var(--kose-dugme); display: grid; place-items: center;
  font-size: 34px; line-height: 41px; font-weight: 800; box-shadow: inset 0 0 0 1px #86868B;
}
.kod-giris.odakta .kod-kutular span.simdi { box-shadow: inset 0 0 0 2.5px var(--ana); }
.hata-yazi { margin: 0; min-height: 20px; color: var(--tehlike); font-size: 15px; line-height: 20px; text-align: center; }

.gunluk-bilgi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.bildirim {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 40;
  transform: translate(-50%, -10px); opacity: 0;
  background: var(--yuzey); color: var(--yazi); border-radius: 18px; padding: 10px 16px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .18); font-size: 15px; font-weight: 500; max-width: calc(100vw - 32px);
  transition: opacity .2s var(--egri), transform .35s var(--yay);
}
.bildirim.gorunur { opacity: 1; transform: translate(-50%, 0); }

/* Geniş ekran: masaüstü/TV */
@media (min-width: 900px) {
  .ana-ust { padding-top: 48px; }
  .marka h1 { font-size: 44px; line-height: 48px; letter-spacing: -.022em; }
  #ana-kivilcim { width: 56px; height: 56px; }
  .oyun-ust { padding-top: 18px; }
  .oyuncu-metin .ad { font-size: 17px; max-width: 220px; }
  .oyuncu-metin .sayi { font-size: 14px; }
  .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: 88dvh; padding-bottom: 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
  .tutamak { display: none; }
}
@media (max-height: 640px) {
  .ana-ust { padding-top: 10px; }
  .seviye { min-height: 54px; }
  .satir, .satir-kart { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:root[data-hareket="az"] .zincir-yazi.gorunur { animation-duration: .6s; }

/* ——— Tur 2: lig, ipucu ——— */
.ton-sari { --ton: var(--t-sari); }
.mavi-yazi { color: var(--ana-yazi); font-weight: 520 !important; }
.kirmizi-yazi { color: var(--tehlike); font-weight: 520 !important; }
/* ——— Lig (Tur 3, 2026-10-05): Ayarlar ile aynı dil — ic-grup kart, 12 px yığın aralığı, 14 px ayırıcı girintisi ——— */
.yigin { display: flex; flex-direction: column; gap: 12px; }
.yigin[hidden] { display: none; }
.yigin-dipli { display: flex; flex-direction: column; gap: 8px; }
.bolum-baslik { font-size: 15px; line-height: 20px; font-weight: 640; color: var(--soluk); padding: 8px 20px 0; margin-bottom: -6px; }
.satir.duz.eylem-satir { min-height: 52px; padding-top: 0; padding-bottom: 0; }
.eylem-satir .satir-metin b { font-size: 17px; line-height: 22px; }
.ic-grup .satir.eylem-satir:active { background: var(--alan); }
.lig-kahraman { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px 20px; gap: 0; }
.lig-rozet { width: 112px; height: 112px; display: block; margin-bottom: 10px; }
.lig-rozet svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 14px var(--rozet-golge, rgba(0, 0, 0, .18))); }
.lig-kahraman-ad { font-size: 28px; font-weight: 780; letter-spacing: -.02em; line-height: 34px; color: var(--yazi); }
.lig-kahraman-alt { margin: 4px 0 0; font-size: 15px; line-height: 20px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.lig-puan { color: var(--yazi); font-weight: 640; }
.lig-ilerleme { width: 100%; margin-top: 16px; }
.lig-ilerleme[hidden] { display: none; }
.lig-cubuk { height: 8px; border-radius: 4px; background: var(--iz); overflow: hidden; }
.lig-cubuk i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--lig-renk, var(--ana)); transition: width .6s var(--egri); }
.lig-ilerleme-alt { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 13px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.lig-merdiven { display: flex; justify-content: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: .5px solid var(--cizgi); width: 100%; }
.lig-merdiven span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; letter-spacing: 0; color: var(--soluk); width: 52px; }
.lig-merdiven svg { width: 34px; height: 34px; opacity: .38; filter: saturate(.5); }
.lig-merdiven span.gecti svg { opacity: .75; filter: none; }
.lig-merdiven span.simdi { color: var(--yazi); font-weight: 640; }
.lig-merdiven span.simdi svg { opacity: 1; filter: none; transform: scale(1.12); }
#lig-bagsiz .lig-merdiven { border-top: 0; margin-top: 0; padding-top: 2px; margin-bottom: 14px; }
#lig-bagsiz .lig-merdiven svg { opacity: 1; filter: none; width: 40px; height: 40px; }
.lig-tablo-kap { padding-bottom: 0; }
.lig-tablo { list-style: none; margin: 0; padding: 0; }
.lig-tablo li { position: relative; display: grid; grid-template-columns: 30px 26px 1fr auto; column-gap: 10px; align-items: center;
  min-height: 52px; padding: 0 14px; font-size: 16px; color: var(--yazi); }
.lig-tablo li + li::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--cizgi); }
.lig-tablo li .s { color: var(--soluk); font-variant-numeric: tabular-nums; font-weight: 640; text-align: center; font-size: 15px; }
.lig-tablo li .s.madalya { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; justify-self: center; color: #fff; font-size: 14px; font-weight: 780; }
.lig-tablo li .s.m1 { background: linear-gradient(160deg, #FFD54A, #E09A00); }
.lig-tablo li .s.m2 { background: linear-gradient(160deg, #D5D9DF, #8E959F); }
.lig-tablo li .s.m3 { background: linear-gradient(160deg, #E0A577, #A3602F); }
.lig-tablo li .r { width: 26px; height: 26px; }
.lig-tablo li .r svg { width: 100%; height: 100%; display: block; }
.lig-tablo li .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 520; }
.lig-tablo li .p { font-variant-numeric: tabular-nums; color: var(--govde); font-weight: 640; }
.lig-tablo li.ust .a { font-weight: 640; }
.lig-tablo li.ben { background: var(--ben-yumusak); }
.lig-tablo li.ben .a { font-weight: 640; color: var(--ana-yazi); }
.lig-tablo li.ben + li::before, .lig-tablo li.ben::before { display: none; }
.lig-tablo li.ara { min-height: 30px; grid-template-columns: 1fr; text-align: center; color: var(--soluk); letter-spacing: .2em; }
.lig-tablo li.ara + li::before { display: none; }
.lig-tablo .bos { display: block; padding: 6px 14px 16px; color: var(--soluk); font-size: 15px; min-height: 0; line-height: 20px; }
/* Kendi sıran: sıfır yükseklikli yapışkan çapa; görünürlüğü düzeni hiç oynatmaz (gizle/göster atlama yapmaz) */
.lig-ben-sabit { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); height: 0; margin-top: -12px; z-index: 2; pointer-events: none; }
.lig-ben-sabit > .lig-tablo { position: absolute; left: -20px; right: -20px; bottom: 0; padding: 14px 20px calc(32px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--sayfa-zemin) 14px); opacity: 0; transform: translateY(8px); transition: opacity .18s var(--egri), transform .25s var(--egri); }
.lig-ben-sabit.gorunur > .lig-tablo { opacity: 1; transform: none; }
.lig-ben-sabit .lig-tablo li { background: var(--yuzey-ust); border-radius: var(--kose-dugme); box-shadow: 0 0 0 1.5px var(--ana) inset, 0 4px 18px rgba(0, 0, 0, .12); }
.ipucu-yazi { margin: 2px 0 0; font-size: 13px; line-height: 18px; letter-spacing: 0; color: var(--soluk); display: flex; align-items: center; justify-content: center; gap: 6px; }
.ipucu-yazi[hidden] { display: none; }
.ip-hazir, .ip-tehdit { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ip-hazir { box-shadow: 0 0 0 2px var(--ben); }
.ip-tehdit { box-shadow: 0 0 0 2px var(--rakip); margin-left: 8px; }

/* 2.0: segment satırda tam genişlik (telefonda kabın tamamı): etiket üstte, segment altında */
.satir:has(> .bolumlu) { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.satir > .bolumlu { flex: 1 1 100%; grid-template-columns: repeat(3, 1fr); }
/* ==== 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; --kose-kart: 17px; --kose-dugme: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="acik"]) { --yuzey: #1C1C1E; --ana: #0071E3; --odak: #0071E3; --ben-yumusak: rgba(0, 113, 227, .20); } }
:root[data-tema="koyu"] { --yuzey: #1C1C1E; --ana: #0071E3; --odak: #0071E3; --ben-yumusak: rgba(0, 113, 227, .20); }   /* seçili seviye yazısı #2997FF / ton 4,66 (önce 4,42) */
.marka h1 { font-size: 29px; line-height: 35px; }                               /* büyük başlık 29/35 */
.ana-govde { gap: 21px; }                                                       /* kart → kart 21 */
.oyna-kart { padding: 15px 21px 23px; }                                         /* yan 21 (2.5.3); üst optik 20 (etiket satırı), alt düğme → 23 */
.etiket { font-weight: 680; }                                                    /* bölüm/kart etiketi 680 gri */
.kart .seviye, .kart .dugme, #oyna { border-radius: 16px; }                    /* kart içi düğme SABİT 16 */
.sayfa-ic .ic-grup, .sayfa-ic .satir-kart, .sayfa-ic .lig-kahraman, .sayfa-ic .nasil li, .sayfa-ic .lig-tablo li { border-radius: var(--kose-kart); }
.sayfa-ic .olcu, .sayfa-ic .kod-kutular span, .sayfa-ic .dugme, .sayfa-ic .bolumlu, .sayfa-ic .bolumlu button { border-radius: 16px; }
.satir.duz { min-height: 55px; }                                                /* satır 55 */
.ic-grup .satir { padding-left: 21px; padding-right: 21px; gap: 13px; } .ic-grup .satir + .satir::before { left: 21px; }   /* satır yan 21 = kart yan (2.5.3) */
.nasil li { padding: 21px 21px; }                                               /* rozetle başlayan kart: üst = sol (21, 2.5.3) */
.anahtar:checked { background-color: #0077F0; }                                /* 2.5.3: anahtar açık hali #0077F0 (#2C2C2E üstünde 3,25:1) */
/* 2.5.4 (denetçi 2.5.3 + sahip Puanla) */
.ana-ust { padding-top: calc(var(--mz-sayfa-ust) - env(safe-area-inset-top, 0px)); }   /* sayfa üstü güvenli alan + 50 (önce 18: "üste çok yakın") */
@media (max-height: 640px) { .ana-ust { padding-top: 25px; } }
.ana-bolum-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 21px; margin: 10px 0 -12px; }   /* önceki kart → başlık 21 + 10 = 31, başlık → kart 21 − 12 = 9 */
.ana-govde > .ana-bolum-ust:first-child { margin-top: 0; }
.ana-bolum { margin: 0; font-size: 18px; line-height: 23px; font-weight: 680; letter-spacing: -.012em; color: var(--soluk); }   /* bölüm başlığı 18 / 680 gri (kart dışı) */
.oyna-kart { padding-top: 21px; }   /* yazı dışı (seviye düğmeleri) ile başlayan kart: üst = yan 21 */
.kart.grup { padding: 4px 0; }
.kart.grup .satir, .satir-kart { padding-left: 21px; padding-right: 21px; gap: 13px; } .kart.grup .satir + .satir::before { left: 64px; }   /* ana ekran satırları da 21 hattında (bölüm başlığıyla aynı; önce 20: 1 px kayık), ayırıcı 21 + 30 + 13 */
.nasil b { display: block; font-size: 20px; line-height: 25px; font-weight: 740; letter-spacing: -.012em; }   /* başlık paragraftan belirgin büyük (sahip): 20 / 760, metin 15 */
.nasil p { margin-top: 3px; }
.nasil { gap: 21px; }   /* 2.5.5: Nasıl oynanır kartları arası 21 (kart → kart, Tune; önce 10) */   /* kart başlığı → metin 3 (Tune) */
.sayfa-ic > .ic-grup + .ic-grup { margin-top: 22px; }   /* başlıksız grup → grup 34 (kap aralığı 12 + 22; Tune; önce 12) */
.hap { min-height: 32px; } .hap::after { inset: -6px 0; }   /* "Değiştir": kontrol boyu 32 (izinli 32/44/55, iOS kapsül), dokunma 44 */
/* ==== /Metastaz Design 2.5.4 düzen ==== */
