/* ============================================================
   KITTY RUNNA: MOBİL MENU (mobil1, Faz 2 2026-11-28: ekranlarımdaki eski katman blokları silindi, yükseklik bütçesi §6b). Katman kararı: mobil/temel.css başı.
   ============================================================ */

/* ============================================================
   1. DURAKLAT
   ============================================================ */
/* kaynak: style.css @layer base */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  .pause-actions, .res-actions{ flex-direction:row; gap:10px; justify-content:center; }
  .pause-actions .btn, .res-actions .btn{ min-height:48px; }
}
/* kaynak: mobile.css @layer mobile */
@media (orientation:landscape){
  /* ============================================================
     FAZ 4 — PAUSE + RESULT (sıfırdan, @layer): kompakt + alt-bar dominant
     ============================================================ */
  body.is-mobile .pause-actions, body.is-mobile .res-actions{ flex-direction:row; gap:10px; justify-content:center; }
  body.is-mobile .pause-actions .btn, body.is-mobile .res-actions .btn{ flex:1; min-height:var(--m-hit-ui); }
  body.is-mobile .pause-actions #resumeBtn{ flex:1.6; }
  body.is-mobile #pauseScreen.overlay{ gap:8px; justify-content:center;
    padding:calc(10px + var(--sa-t)) calc(var(--m-edge) + var(--sa-r)) calc(10px + var(--sa-b)) calc(var(--m-edge) + var(--sa-l)); }
  body.is-mobile #pauseScreen .go-title{ margin:0; }
  body.is-mobile .pause-actions{ align-items:stretch; width:min(560px,96%); }
  body.is-mobile .pause-actions .btn{ margin:0; }
  /* #result (online sonuç) mobil/online.css'in alanı; eski katmandaki hâli korunur */
  @layer mobile{   /* eski katman: katmansız bir kurala kaybeder */
    body.is-mobile #result.overlay{ gap:8px; justify-content:center;
      padding:calc(10px + var(--sa-t)) calc(var(--m-edge) + var(--sa-r)) calc(10px + var(--sa-b)) calc(var(--m-edge) + var(--sa-l)); }
    body.is-mobile #result .go-title{ margin:0; }
    body.is-mobile .res-actions{ align-items:stretch; width:min(560px,96%); }
    body.is-mobile .res-actions .btn{ margin:0; }
  }
  /* G3: duraklatınca ipucu tabelası gizlenir (DURAKLADI başlığının altında kalıyordu) */
  html.s-play body.is-mobile:has(#pauseScreen:not(.hidden)) :is(#ctrlHint, #cueTip){ display:none; }
}

/* ============================================================
   2. OYUN SONU
   ============================================================ */
/* kaynak: style.css @layer base */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  #over.overlay{
    grid-template-columns:44% minmax(0,1fr);
    grid-template-rows:auto auto auto 1fr auto;
    grid-template-areas:
      "title   lb"
      "taunt   lb"
      "score   lb"
      "best    lb"
      "actions actions"; align-content:center;
  }
  #over .go-title{ grid-area:title; align-self:end; }
  #over .go-taunt{ grid-area:taunt; }
  /* doğrulanamadı notu ızgarada alan almadan taşlamanın altına iner
     (alansız kalırsa otomatik yerleşim onu sağ sütuna, panelin üstüne atıyor) */
  #over .go-unverified{ grid-area:taunt; align-self:start; padding-top:14px; }
  #over .go-score{ grid-area:score; align-self:start; }
  #over .go-best{ grid-area:best; align-self:start; }
  #over #lbOver{ grid-area:lb; max-height:none; align-self:stretch; flex-direction:column; min-height:0; }
  #over #lbOver .lb-head{ flex:0 0 auto; }
  #over #lbOver .lb-list{ flex:1 1 auto; min-height:0; overscroll-behavior:contain;
    scrollbar-width:thin; scrollbar-color:var(--pink-deep) transparent; }
  #over #lbOver .lb-list::-webkit-scrollbar{ width:6px; }
  #over #lbOver .lb-list::-webkit-scrollbar-thumb{ background:var(--pink-deep); border-radius:3px; }
  #over #lbOver .lb-me-strip{ flex:0 0 auto; font-size:9px; letter-spacing:0; }
  #over #lbOver .lb-me-strip b{ font-size:10px; }
  /* margin-bottom: kaide gölgesi (6px + 10px) ekran dibinde kırpılmasın */
  #over .go-actions{ grid-area:actions; align-self:end; }
  #over .go-actions .go-sec{ flex:0 0 auto; order:1; }
  /* ana menü + paylaş: kare, solda */
  #over .go-actions .go-primary{ flex:1 1 auto; order:2; }
}
/* telefonda uzun laf iki satıra iner (mobile.css text-wrap:balance) → iki satır baştan ayrılır */
body.is-mobile #over .go-taunt{ min-height:2.7em; }
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* telefon yatay: sahne sol sütunun tepesinde, TEKRAR alt şeritte kalır */
  #over.overlay.zs-on{ grid-template-rows:auto auto auto auto 1fr auto;
    grid-template-areas:"stage lb" "title lb" "taunt lb" "score lb" "best lb" "actions actions"; }
  #over.zs-on .zs{ grid-area:stage; margin:0; }
}
@media (orientation:landscape){
  body.is-mobile #over.overlay.zs-on{ grid-template-rows:auto auto auto auto 1fr auto;
    grid-template-areas:"stage lb" "title lb" "taunt lb" "score lb" "best lb" "actions actions"; }
  body.is-mobile #over.zs-on .zs{ grid-area:stage; margin:0; }
  /* --- oda ekranı (sahne · odak kartı · şerit · roster · kod kartı):
         tamamı kit.css §9.8'de --- */
  /* ============================================================
     FAZ 3 — GAME OVER #over (sıfırdan, @layer): sol kimlik / sağ leaderboard / RETRY dominant
     ============================================================ */
  body.is-mobile #over.overlay{ grid-template-columns:44% minmax(0,1fr); align-content:center;
  }
  body.is-mobile #over.overlay{
    display:grid; grid-template-rows:auto auto auto 1fr auto;
    grid-template-areas:"title lb" "taunt lb" "score lb" "best lb" "actions actions";
    gap:3px 14px; overflow:hidden;
    padding:calc(8px + var(--sa-t)) calc(var(--m-edge) + var(--sa-r)) calc(8px + var(--sa-b)) calc(var(--m-edge) + var(--sa-l));
  }
  body.is-mobile #over .go-title{ grid-area:title; align-self:end; }
  body.is-mobile #over .go-title{ margin:0; }
  body.is-mobile #over .go-taunt{ grid-area:taunt; }
  body.is-mobile #over .go-taunt{ margin:2px 0; }
  body.is-mobile #over .go-score{ grid-area:score; align-self:start; }
  body.is-mobile #over .go-score{ margin:0; }
  body.is-mobile #over .go-best{ grid-area:best; align-self:start; }
  body.is-mobile #over .go-best{ margin:0; }
  body.is-mobile #over .xp-reward{ display:none; }
  /* yatay mobilde ızgarada yeri yok (implicit satır açıp taşırıyordu) */
  body.is-mobile #over #lbOver{ grid-area:lb; align-self:stretch; flex-direction:column; min-height:0; }
  body.is-mobile #over #lbOver{ width:100%; height:100%; max-height:none; margin:0;
    display:flex; overflow:hidden; padding-bottom:6px; }
  body.is-mobile #over #lbOver .lb-head{ flex:0 0 auto; padding:6px 0 5px; }
  body.is-mobile #over #lbOver .lb-list{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain;
    scrollbar-width:thin; scrollbar-color:var(--pink-deep) transparent; }
  body.is-mobile #over #lbOver .lb-list::-webkit-scrollbar{ width:6px; }
  body.is-mobile #over #lbOver .lb-list::-webkit-scrollbar-thumb{ background:var(--pink-deep); border-radius:3px; }
  body.is-mobile #over #lbOver .lb-me-strip{ flex:0 0 auto; margin:4px 6px 0; padding:5px 8px; font-size:9px; letter-spacing:0; gap:6px; }
  body.is-mobile #over #lbOver .lb-me-strip b{ font-size:10px; }
  /* margin-bottom: kaide gölgesi (6px + 10px) ekran dibinde kırpılmasın */
  body.is-mobile #over .go-actions{ grid-area:actions; flex-direction:row; align-self:end; }
  body.is-mobile #over .go-actions{ display:flex; width:100%; gap:12px; margin:4px 0 6px; }
  /* ESSH 2026-09-18: 48px'lik üç kutu skorun yanında cüce kalıyordu → kare ikonlar 64, TEKRAR satırın kalanı */
  body.is-mobile #over .go-actions .go-sec{ flex:0 0 auto; order:1; }
  body.is-mobile #over .go-actions .go-sec{ width:var(--m-hit-act); height:var(--m-hit-act); }
  body.is-mobile #over .go-actions .go-primary{ flex:1 1 auto; order:2; }
  body.is-mobile #over .go-actions .go-primary{ height:var(--m-hit-act); }
  body.is-mobile #over .go-actions .go-sec svg{ width:32px; height:32px; }
  body.is-mobile #over .go-actions .go-primary svg{ width:32px; height:32px; }
  /* oyun sonu: laf satırı kesilmez (iki satıra iner), SKOR etiketi ondan ayrılır */
  body.is-mobile #over .go-taunt{ white-space:normal; overflow:visible; text-overflow:clip; text-wrap:balance; line-height:1.35; margin-bottom:6px; }
  body.is-mobile #over .go-score{ margin-top:2px; }
  /* Faz 2: 44% sütunda 5-6 haneli skor 60 px'te panelin altına taşıyordu (667 genişlik) */
  body.is-mobile #over .go-score b{ font-size:min(60px, 6.2vw); }
  /* podyum sahnesi: tuval cihaz pikseliyle çizilir, CSS boyunu zsLayout (game.js) --zs-mw/--zs-mh ile verir */
  body.is-mobile #over.zs-on #zsCanvas{ width:var(--zs-mw) !important; height:var(--zs-mh) !important; }
  body.is-mobile #over.zs-on .zs{ margin:0 0 6px; }
  /* manşet (TAHT SENİN, ENSESİNDESİN) tek satır: dar sütunda iki satıra kırılıp sahnenin ölçtüğü yüksekliği aşıyordu;
     zsTitle sığana dek yazıyı küçültür */
  body.is-mobile #over .go-title{ white-space:nowrap; }
  body.is-mobile #over #lbOver .lb-me-strip{ min-height:40px; font-size:10px; }
  body.is-mobile #over #lbOver .lb-me-strip .lms-lbl{ font-size:10px; letter-spacing:0; }
  body.is-mobile #over.zs-on .go-score b{ font-size:min(60px, 6.2vw, 11vh); }
}
/* alçak yatay (tarayıcı çubuklu Safari/Chrome): alt tuşlar 52 px, podyumda sol sütuna yer açılır */
@media (orientation:landscape) and (max-height:370px){
  body.is-mobile #over .go-actions .go-sec{ width:52px; height:52px; }
  body.is-mobile #over .go-actions .go-primary{ height:52px; }
  body.is-mobile #over .go-actions{ margin:2px 0 4px; }
  body.is-mobile #over .go-actions :is(.go-sec, .go-primary) svg{ width:28px; height:28px; }
}

/* ============================================================
   3. GÖREVLER
   ============================================================ */
/* kaynak: style.css @layer base */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* BUG: görev bildirim balonu sağ-üstte içeriğe düşüyordu → üst-ORTA, ok-kuyruğu gizli */
  .ms-bubble{ top:calc(8px + var(--sa-t)) !important; right:auto !important; left:50% !important;
    transform:translateX(-50%); z-index:400 !important; }
  .ms-bubble::after, .ms-bubble::before{ display:none !important; }
}
/* kaynak: missions.css */
/* ------------------------------------------------------------
   7. MOBİL — pano ALT SAYFA olur, tam genişlik
   ------------------------------------------------------------ */
body.is-mobile #missionsPop.ms-pop{ place-items:end stretch; }
body.is-mobile #missionsPop .ms-inner{
  width:100%; max-width:100%;
  border-width:3px 0 0 0;
  border-radius:var(--ms-r) var(--ms-r) 0 0;
  padding-bottom:var(--sa-b);
  transform-origin:bottom center;
  animation:msSheet .22s cubic-bezier(.2,1.4,.4,1) both;
  box-shadow:0 -6px 0 rgba(16,8,26,.5), 0 0 30px rgba(160,90,230,.3);
}
body.is-mobile .ms-hang{ display:none; }
body.is-mobile #missionsPop .ms-pop-head{ border-radius:13px 13px 0 0; padding:12px; }
body.is-mobile #missionsPop .ms-h-title{ font-size:13px; }
body.is-mobile .ms-close{ width:38px; height:38px; }
body.is-mobile .ms-tab{ padding:13px 4px 15px; font-size:10px; }
body.is-mobile #missionsPop .ms-list{ padding:12px 12px 16px; gap:11px; }
body.is-mobile .ms-card{ grid-template-columns:36px 1fr; padding:11px; }
body.is-mobile .ms-ico{ width:36px; height:36px; }
body.is-mobile .ms-ico svg{ width:20px; height:20px; }
body.is-mobile .ms-txt{ font-size:10px; line-height:1.6; }
body.is-mobile .ms-prize b{ font-size:12px; }
body.is-mobile .ms-take{ padding:10px 20px; }
body.is-mobile .ms-live-tx i{ max-width:74vw; }
body.is-mobile .msc-box{ padding:18px 20px; }
body.is-mobile .msc-box b{ font-size:12px; }
/* Faz 2: telefon yatay. Pano sistem tuşlarının ALTINDAN başlar (X, ayar tuşunun üstüne binmiyordu değil, biniyordu),
   genişler (kart metni tek satıra iner, kart kısalır) ve kullanılabilir yüksekliğe sığar; yalnız liste kayar. */
@media (orientation:landscape){
  body.is-mobile #missionsPop.ms-pop{
    --ms-w:min(560px, calc(100vw - 2 * var(--m-edge) - var(--sa-l) - var(--sa-r)));
    top:calc(60px + var(--sa-t)) !important; width:var(--ms-w) !important; margin:0 0 0 calc(var(--ms-w) / -2) !important;
    max-height:calc(var(--vh-use) - 68px - var(--sa-t)) !important; }
  body.is-mobile #missionsPop .ms-inner{ max-height:calc(var(--vh-use) - 68px - var(--sa-t)); }
  body.is-mobile #missionsPop .ms-pop-head{ padding:6px 8px 7px 12px; }
  body.is-mobile #missionsPop .ms-close{ width:40px; height:40px; }
  body.is-mobile #missionsPop .ms-tab{ min-height:40px; padding:9px 4px 11px; }
  body.is-mobile #missionsPop .ms-list{ padding:10px 12px 12px; gap:9px; }
  body.is-mobile #missionsPop :is(.ms-streak, .ms-tag, .ms-card u, .ms-bonus-tx i, .ms-bonus-rw, .ms-left){ font-size:10px; }
}

/* ============================================================
   4. AYARLAR
   ============================================================ */
/* kaynak: style.css @layer base */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* BUG: görev/ayar pop'u sağ-üstte açılıp leaderboard'ın ÜSTÜNE düşüyordu → ORTALI modal yap.
     inset:0 + margin:auto ile ortala (transform animasyonuyla çakışmaz). */
  /* denetim B1: 84vh sinirinda KURTARMA KODU bolumu gorus alaninin disinda
     kaliyordu ve kapanis affordance'i yoktu. Panel viewport'un ustune
     cipalanir (kapatma X'i deterministik konumlansin), yuksekligi
     calc(100dvh - 16px), kaplama %55 (gorev panosuyla ayni desen). */
  .ms-pop{ inset:8px auto auto 50% !important; margin:0 0 0 calc(min(360px,92vw) / -2) !important;
    width:min(360px,92vw) !important; height:auto !important;
    max-height:calc(100dvh - 16px) !important;
    transform-origin:top center !important; z-index:400 !important; }
  .ms-pop::before{ content:''; position:fixed; inset:0; background:rgba(13,6,24,.55); z-index:-1; pointer-events:none; }
}
/* kaynak: mobile.css */
body.is-mobile #settingsPop.set-pop{
  max-height:calc(100dvh - 16px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
/* kaynak: kit.css */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* alçak yatay ekranda pop üste çıpalı ve ortalıdır → X onun sağ üst köşesinde */
  .set-close{ top:14px; right:auto; left:calc(50% + min(360px,92vw) / 2 - 40px); }
}
/* Faz 2: telefon yatay. Ayar panosu da sistem tuşlarının altından başlar (başlığı dişli tuşunun altına giriyordu), X 40 px */
@media (orientation:landscape){
  body.is-mobile #settingsPop.ms-pop{ top:calc(60px + var(--sa-t)) !important; max-height:calc(var(--vh-use) - 68px - var(--sa-t)) !important; }
  body.is-mobile #settingsPop + .set-close{ top:calc(66px + var(--sa-t)); width:40px; height:40px;
    left:calc(50% + min(360px,92vw) / 2 - 48px); right:auto; }
  body.is-mobile #settingsPop :is(.set-rec-h, .vol-lbl, .vol-pct, .set-txt b, .set-desc, .kb-lbl, .kb-key, #kbSpec, .set-rec-desc, .cl-hint, #clCreate, #clLoad){ font-size:10px; }
}
body.is-mobile .vol-range{ height:32px; }
body.is-mobile .vol-range::-webkit-slider-thumb{ width:26px; height:26px; margin-top:-10px; }
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* telefon yatay modalı (style.css FAZ 6+): %55 kaplama ::before z-index:-1 ile panonun KENDİ zemininin üstüne
     boyanıyor, krem gövdeyi gri-mora çeviriyordu. Aynı kaplama panonun dışına yayılan gölge olarak çizilir. */
  body:not(.dark) #settingsPop.ms-pop::before{ display:none; }
  body:not(.dark) #settingsPop.ms-pop{
    box-shadow:
      6px 6px 0 var(--shadow-on-light),
      inset 2px 2px 0 0 var(--k-panel-hi),
      inset -2px -2px 0 0 var(--k-panel-sh),
      inset 0 0 0 4px var(--kc),
      inset 0 0 0 5px var(--k-panel-line),
      0 0 0 100vmax rgba(13,6,24,.55);
  }
}

/* ============================================================
   5. ŞÖHRET SAYFASI / LİDERLİK KARTI
   ============================================================ */
/* kaynak: style.css @layer base */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* SAĞ: LEADERBOARD baskın (2 satır yüksekliğini kaplar); üst-sağ araç çubuğunu temizlemek için üst boşluk */
  #select #lbCard{ grid-area:lb; align-self:stretch; flex-direction:column; }
  #select #lbCard .lbc-rows{ flex:1; }
}
/* kaynak: kit.css */
/* mobilde 7px -> 8px */
body.is-mobile .hr-persona, body.is-mobile .pod-persona, body.is-mobile .hof-slogan{ font-size:8px; }
/* Faz 2: liste satırında ve başlıkta yer var → 10 px; podyum sütunu dar (80-120 px), persona orada 8 px kalır */
body.is-mobile #hofSheet :is(.hr-persona, .hof-slogan){ font-size:10px; }
/* ---------- 5b. ŞÖHRET LİSTESİ, telefon yatay (Faz 2) ----------
   Alttan açılan pano 92vh ile Safari çubuklarının altına taşıyor, liste satırı 0 px kalıyordu
   (podyum flex:none). Yatayda iki sütun: solda podyum, sağda kayan liste + SENİN SIRAN.
   Pano kullanılabilir yüksekliğe sığar; yalnız liste kendi içinde kayar. */
@media (orientation:landscape){
  body.is-mobile #hofSheet .hof-panel{
    width:auto; max-width:min(820px, calc(100vw - 2 * var(--m-edge) - var(--sa-l) - var(--sa-r)));
    height:calc(var(--vh-use) - 8px - var(--sa-t)); max-height:none;
    display:grid; grid-template-columns:minmax(0,42%) minmax(0,1fr);
    grid-template-rows:auto auto minmax(0,1fr) auto;
    grid-template-areas:"head head" "pod lh" "pod list" "pod me";
    column-gap:16px; padding:6px 14px calc(8px + var(--sa-b));
    border-radius:20px 20px 0 0;
  }
  body.is-mobile #hofSheet .hof-grip{ position:absolute; top:5px; left:50%; margin:0; translate:-50% 0; }
  body.is-mobile #hofSheet .hof-head{ grid-area:head; margin:0 0 4px; }
  body.is-mobile #hofSheet .hof-title{ font-size:11px; }
  body.is-mobile #hofSheet .hof-close{ width:44px; height:44px; }
  body.is-mobile #hofSheet .hof-podium{ grid-area:pod; align-self:end; min-height:0; padding:6px 0 0; gap:6px; }
  body.is-mobile #hofSheet .pod-nm{ font-size:10px; }
  body.is-mobile #hofSheet .p1 .pod-nm{ font-size:11px; }
  body.is-mobile #hofSheet .pod-sc{ font-size:10px; }
  body.is-mobile #hofSheet .hof-listhead{ grid-area:lh; font-size:10px; padding-top:4px; }
  body.is-mobile #hofSheet .hof-list{ grid-area:list; min-height:0; overscroll-behavior:contain; }
  body.is-mobile #hofSheet .hof-merow{ grid-area:me; margin-top:6px; padding:5px 11px; min-height:44px; }
  body.is-mobile #hofSheet .hof-merow{ gap:6px; }
  body.is-mobile #hofSheet .hof-merow .hmr-lbl{ font-size:10px; letter-spacing:0; padding:3px 5px; }
  body.is-mobile #hofSheet :is(.pod-nm, .pod-persona){ max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  body.is-mobile #hofSheet .hr-sen{ font-size:10px; }
  /* sistem tuşları panonun arkasında kalıyor; pano açıkken görünmezler (oyun sonu podyumundaki gibi) */
  body.is-mobile:has(#hofSheet:not(.hidden)) :is(.theme-btn, .ms-bubble){ visibility:hidden; }
}
/* alçak pano: podyum bir kademe küçülür (taç, avatar, kaide) */
@media (orientation:landscape) and (max-height:400px){
  body.is-mobile #hofSheet .pod-top{ height:18px; }
  body.is-mobile #hofSheet .p1 .pod-top svg{ width:22px; height:22px; }
  body.is-mobile #hofSheet .pod-av .cico{ width:38px; height:38px; }
  body.is-mobile #hofSheet .p1 .pod-av .cico{ width:48px; height:48px; }
  body.is-mobile #hofSheet .p1 .pod-base{ height:52px; padding-top:9px; }
  body.is-mobile #hofSheet .p2 .pod-base{ height:38px; padding-top:6px; }
  body.is-mobile #hofSheet .p3 .pod-base{ height:30px; padding-top:4px; }
  body.is-mobile #hofSheet .hof-list{ gap:5px; padding-top:6px; }
  body.is-mobile #hofSheet .hof-row{ padding:5px 10px; }
}
/* Faz 3: podyum sol sütunun bütün boyunu kullanır (844x340'ta üstte ~100 px boşluk kalıyordu).
   Sütun bir boyut kabı; taç, avatar ve kaideler kabın yüksekliğiyle (cqh) büyür, kaideler zeminde kalır. */
@media (orientation:landscape){
  body.is-mobile #hofSheet .hof-podium{ align-self:stretch; container-type:size; padding:4px 0 0; }
  body.is-mobile #hofSheet .hof-podium{ --pa:clamp(48px, 26cqh, 88px); --pbs:clamp(52px, 30cqh, 100px); }
  body.is-mobile #hofSheet .pod-top{ height:calc(clamp(22px, 11cqh, 34px) + 2px); }
  body.is-mobile #hofSheet .pod-top svg{ width:clamp(16px, 8cqh, 26px); height:clamp(16px, 8cqh, 26px); }
  body.is-mobile #hofSheet .p1 .pod-top svg{ width:clamp(22px, 11cqh, 34px); height:clamp(22px, 11cqh, 34px); }
  body.is-mobile #hofSheet .pod-av .cico{ width:calc(var(--pa) * .78); height:calc(var(--pa) * .78); }
  body.is-mobile #hofSheet .p1 .pod-av .cico{ width:var(--pa); height:var(--pa); }
  body.is-mobile #hofSheet .p1 .pod-base{ height:var(--pbs); padding-top:calc(var(--pbs) * .17); }
  body.is-mobile #hofSheet .p2 .pod-base{ height:calc(var(--pbs) * .74); padding-top:calc(var(--pbs) * .12); }
  body.is-mobile #hofSheet .p3 .pod-base{ height:calc(var(--pbs) * .58); padding-top:calc(var(--pbs) * .08); }
}

/* ============================================================
   6. ANA MENÜ (#select)
   ============================================================ */
/* kaynak: style.css @layer base */
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  /* titleShine */
  #select .hero-title::before{ display:none !important; }
  #select.select-screen{
    grid-template-columns:42% 58%;
    grid-template-rows:auto minmax(0,1fr) auto;
    grid-template-areas:
      "name  lb"
      "hero  lb"
      "strip actions";
  }
  /* logo: küçük, sol-üstte hero üzerinde (tıklamayı engellemez) */
  #select .select-hero{ pointer-events:none; }
  #select .hero-title .beta{ transform:scale(.7); }
  /* SOL ÜST: isim alanı kompakt yatay */
  #select .name-field{ grid-area:name; flex-direction:row; align-items:center; justify-content:flex-end; align-self:start; }
  #select .name-label{ font-size:7px; white-space:nowrap; }
  #select .name-input{ font-size:10px; }
  /* SOL: karakter hero = sahnenin yıldızı, alanı doldurur */
  #select .hero-showcase{ grid-area:hero; justify-content:center; }
  #select .hs-stage{ flex:1 1 auto; min-height:0; }
  #select .hs-stage::after{ bottom:2px; }
  #select .hs-char{ max-height:38vh; }
  #select .hs-name{ font-size:15px; }
  #select .hs-profile{ font-size:8px; }
  #select .hs-play{ font-size:13px; }
  /* ALT-SOL: karakter şeridi = yatay kaydırmalı, başparmakla sürükle */
  #select .char-grid.char-strip{ grid-area:strip; flex-wrap:nowrap;
    justify-content:flex-start; align-self:end;
    -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  #select .char-strip::-webkit-scrollbar{ display:none; }
  #select .char-strip .char-btn{ flex:0 0 auto; }
  #select .char-strip .char-name{ font-size:6px; }
  /* ALT-SAĞ: aksiyon butonları tek sıra (başparmak bölgesi) */
  #select .menu-actions{ grid-area:actions; flex-direction:row; align-self:end; }
  #select .menu-actions .primary-cta{ flex:1.25; font-size:11px; }
  #select .menu-sub{ flex:1.5; flex-direction:row; }
  #select .menu-sub .menu-btn{ flex:1; font-size:9px; }
}
@media (hover:none),(pointer:coarse){
  .char-mini button:hover{ transform:none; }
  .char-mini button:hover::after{ left:-40%; }
}
@media (orientation:landscape) and (max-height:600px) and (max-width:799px), (orientation:landscape) and (max-height:600px) and (max-width:1199px) and (pointer:coarse){
  #select .hs-ability{ gap:8px; padding:5px 10px 5px 6px; }
  #select .hs-ability .ab-ico{ width:22px; height:22px; }
  #select .hs-ability .ab-ico canvas{ width:18px; height:18px; }
  #select .hs-ability .ab-n{ font-size:8px; letter-spacing:1px; }
  #select .hs-ability .ab-t{ display:none; }
}
/* ============================================================
   6b. ANA MENÜ YÜKSEKLİK BÜTÇESİ (Faz 2, 2026-11-28)
   Hedef: Safari/Chrome yatay, tarayıcı çubuklarıyla 325-345 px, tam ekran 375-430 px.
   Izgara (iki motor aynı ölçer: hiçbir satırın alt sınırı içerikten gelmez):
       logo  isim  | liderlik
       vitrin      | liderlik
       şerit       | tuşlar
   - Logo ile isim plakası TEK satırda (eski: isim logonun altında 58 px boşlukla).
   - Vitrin satırı minmax(0,1fr): sığmayınca karakter tuvali küçülür (sahne flex 1 1 0,
     tuval yüksekliği sahne kadar); isim logosu, yetenek plakası ve BAŞLA sabit boyda kalır.
   - Liderlik kartı sağ üstteki sistem tuşlarının ve bahçe tabelasının altından başlar
     (--mn-top); sığmayan kart kendi içinde küçülür, kırpılmaz.
   ============================================================ */
@media (orientation:landscape){
  body.is-mobile #select.select-screen{
    --mn-top:48px;            /* kart üst payı: sistem tuşları (y 14-54) + tabela */
    display:grid;
    grid-template-columns:auto minmax(0,1fr) minmax(0,53%);
    grid-template-rows:auto minmax(0,1fr) auto;
    grid-template-areas:"logo name lb" "hero hero lb" "strip strip actions";
    gap:6px 12px; align-content:stretch; overflow:hidden;
    padding:calc(8px + var(--sa-t)) calc(var(--m-edge) + var(--sa-r)) calc(8px + var(--sa-b)) calc(var(--m-edge) + var(--sa-l));
  }
  body.is-mobile #select .side-stack, body.is-mobile #select .menu-sub{ display:contents; }
  body.is-mobile #select :is(#dailyWrap, #challengeBanner, .strip-label, .subtitle, .name-hint){ display:none; }

  /* logo: ızgarada, ismin solunda */
  body.is-mobile #select .select-hero{ grid-area:logo; position:relative; inset:auto; margin:0; align-self:center;
    display:flex; align-items:center; gap:0; z-index:3; pointer-events:none; }
  body.is-mobile #select .hero-title{ font-size:15px; }
  body.is-mobile #select .hero-title span{ font-size:9px; letter-spacing:1px; }
  body.is-mobile #select .hero-title::before, body.is-mobile #select .hero-title .beta{ display:none; }

  /* isim plakası: solda renkli etiket çipi, sağda gövde; 40 px dokunma yüksekliği */
  body.is-mobile #select .name-field{ grid-area:name; align-self:center; justify-self:stretch; min-width:0; height:40px;
    flex-direction:row; align-items:stretch; justify-content:flex-start; margin:0; padding:0; gap:0; overflow:hidden;
    border:3px solid var(--ink); border-radius:10px; background:#231a31; box-shadow:4px 4px 0 var(--ink); }
  body.is-mobile #select .name-label{ flex:none; display:flex; align-items:center; margin:0; padding:0 7px;
    font-size:10px; letter-spacing:0; white-space:nowrap;
    background:linear-gradient(115deg,#e8539a,#c93b7f); color:#fff; text-shadow:1px 1px 0 rgba(20,10,30,.55);
    box-shadow:inset 0 2px 0 rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.2); animation:none; }
  body.is-mobile #select .name-input{ flex:1 1 auto; width:auto; min-width:0; height:auto; margin:0; padding:0 4px;
    text-align:center; font-size:11px; letter-spacing:0;
    background:none; border:0; border-radius:0; box-shadow:none; color:var(--cream); }

  /* vitrin */
  body.is-mobile #select #heroShowcase{ grid-area:hero; width:100%; height:100%; min-height:0; gap:3px; padding:0;
    justify-content:flex-end; pointer-events:none; }
  body.is-mobile #select #heroShowcase > :not(.hs-stage){ pointer-events:auto; flex:none; }
  body.is-mobile #select .hs-stage{ flex:1 1 0; min-height:0; width:100%; height:auto; pointer-events:none; }
  body.is-mobile #select .hs-char{ height:100%; width:auto; max-height:none; margin-bottom:0; }
  body.is-mobile #select .hs-name{ margin:0; font-size:var(--m-fs-name); }
  body.is-mobile #select .hs-ability{ margin:0 auto; }
  body.is-mobile #select .hs-ability .ab-t{ display:none; }
  body.is-mobile #select .hs-play{ margin:2px 0 0; min-height:44px; padding:0 42px; font-size:var(--m-fs-cta); }
  /* yükseklik karaktere kalsın: yetenek plakası BAŞLA'nın solunda aynı sırada (alt alta iki sıra ~33 px yiyordu; kısa telefonda
     karakter 70-80 px'e iniyordu). Uzun yetenek adı plakada iki satıra kırılır. */
  body.is-mobile #select #heroShowcase{ display:grid; grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:minmax(0,1fr) auto auto; align-items:center; column-gap:8px; row-gap:3px; }
  body.is-mobile #select #heroShowcase > .hs-stage{ grid-column:1 / -1; align-self:stretch; height:auto; }
  body.is-mobile #select #heroShowcase > .hs-name{ grid-column:1 / -1; justify-self:center; }
  body.is-mobile #select #heroShowcase > .hs-ability{ grid-column:1; grid-row:3; margin:0; align-self:stretch; justify-self:stretch; min-width:0; }
  body.is-mobile #select #heroShowcase > .hs-play{ grid-column:2; grid-row:3; margin:0; padding:0 22px; width:auto; }
  body.is-mobile #select .hs-ability.ab-new .ab-n{ white-space:normal; line-height:1.15; }

  /* karakter şeridi: yatay kaydırma; seçili kartın 6 px kalkışı için üst pay */
  body.is-mobile #select .char-strip{ grid-area:strip; align-self:end; flex-wrap:nowrap; justify-content:flex-start;
    width:100%; gap:6px; padding:7px 0 4px; margin:0;
    overflow-x:auto; overflow-y:hidden; scrollbar-width:none; scroll-snap-type:x mandatory; }
  body.is-mobile #select .char-strip::-webkit-scrollbar{ display:none; }
  body.is-mobile #select .char-strip .char-btn{ flex:0 0 auto; width:52px; padding:5px 4px 4px; scroll-snap-align:center;
    position:relative; border-bottom:4px solid var(--card-aura,#ff8fc4);
    transition:transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s cubic-bezier(.34,1.56,.64,1); }
  body.is-mobile #select .char-strip .char-btn.sel{ transform:translateY(-6px); }
  body.is-mobile #select .char-strip .char-btn:active{ transform:translateY(1px) scaleY(.96); }
  body.is-mobile #select .char-strip .char-name{ display:none; }
  body.is-mobile #select .char-strip .char-preview{ width:40px; height:40px; }

  /* alt tuşlar: ONLINE / SHOP / WARDROBE tek sıra, genişlik yazı uzunluğuna göre */
  body.is-mobile #select .menu-actions{ grid-area:actions; align-self:end; display:flex; flex-direction:row; align-items:stretch;
    width:100%; gap:8px; margin:0; }
  body.is-mobile #select .menu-actions :is(.menu-btn, .primary-cta){ flex:1 1 auto; width:auto; min-width:0;
    height:48px; min-height:48px; margin:0; padding:0 6px; gap:5px; letter-spacing:0;
    position:relative; overflow:visible; color:#fff; border:3px solid var(--ink); }
  body.is-mobile #select #shopBtn{ color:#2b2330; }
  body.is-mobile #select .menu-actions .mb-txt{ font-size:10px; letter-spacing:0; white-space:nowrap; }
  body.is-mobile #select .menu-actions .mb-ico{ display:flex; }
  body.is-mobile #select .menu-actions .mb-ico svg{ width:12px; height:12px; }

  /* liderlik kartı */
  /* kart üç satırı da kaplar, alttan tuş sırası kadar pay bırakır (şerit tuşlardan uzun: 19 px kazanç) */
  body.is-mobile #select #lbCard{ grid-column:3; grid-row:1 / 4; align-self:stretch; width:100%; height:auto; min-height:0; max-height:none;
    margin:var(--mn-top) 0 56px; display:flex; flex-direction:column; overflow:hidden; }
  body.is-mobile #select #lbCard .lbc-top{ flex:none; padding:4px 12px 6px; }
  body.is-mobile #select #lbCard .lbc-title{ font-size:10px; }
  body.is-mobile #select #lbCard .lbc-title svg{ width:15px; height:15px; }
  body.is-mobile #select #lbCard .lbc-rows{ flex:1 1 auto; min-height:0; padding:4px 10px 0; column-gap:6px; align-content:end; }
  body.is-mobile #select #lbCard .lbc-rows::before{ height:8px; margin:0 -5px -5px; }
  body.is-mobile #select #lbCard .lbc-row.r1{ padding-top:40px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r2, .lbc-row.r3){ padding-top:31px; }
  body.is-mobile #select #lbCard .lbc-row.r1 .cico{ width:34px; height:34px; margin-left:-17px; top:5px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r2, .lbc-row.r3) .cico{ width:30px; height:30px; margin-left:-15px; top:2px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r1, .lbc-row.r2, .lbc-row.r3) .lbc-medal{ width:16px; height:16px; border-radius:6px; }
  body.is-mobile #select #lbCard .lbc-row.r1 .lbc-medal{ top:4px; left:calc(50% - 24px); }
  body.is-mobile #select #lbCard :is(.lbc-row.r2, .lbc-row.r3) .lbc-medal{ top:0; left:calc(50% - 21px); }
  body.is-mobile #select #lbCard :is(.lbc-row.r1, .lbc-row.r2, .lbc-row.r3) .lbc-medal svg{ width:10px; height:10px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r1, .lbc-row.r2, .lbc-row.r3) .lbc-nm{ font-size:10px; }
  body.is-mobile #select #lbCard .lbc-row.r1 b{ font-size:12px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r2, .lbc-row.r3) b{ font-size:10px; }
  body.is-mobile #select #lbCard .lbc-row.r1::after{ height:22px; padding-top:5px; font-size:10px; }
  body.is-mobile #select #lbCard .lbc-row.r2::after{ height:16px; padding-top:2px; font-size:10px; }
  body.is-mobile #select #lbCard .lbc-row.r3::after{ height:13px; padding-top:1px; font-size:10px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r4, .lbc-row.r5){ display:none; }
  body.is-mobile #select #lbCard .lbc-me{ flex:none; margin:5px 10px 0; padding:0 9px; min-height:28px; font-size:10px; }
  body.is-mobile #select #lbCard .lbc-me-val{ font-size:10px; }
  body.is-mobile #select #lbCard .lbc-open{ flex:none; height:30px; margin:5px 10px 7px; font-size:10px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r4, .lbc-row.r5) .lbc-medal{ font-size:10px; }

  /* skor sıfırlama balonu (lbNote, bir kez görünür): telefonda kartın üstüne açılır; yazı 10 px */
  body.is-mobile #select .lb-note{ padding:10px 12px; }
  body.is-mobile #select .lb-note b{ font-size:10px; margin-bottom:6px; }
  body.is-mobile #select .lb-note span{ font-size:10px; line-height:1.6; }
  body.is-mobile #select .lb-note i{ font-size:10px; margin-top:6px; padding:7px 12px; }

  /* "ÖNCE ADINI YAZ": BAŞLA'nın üst kenarına yapışık uyarı çıkartması */
  /* Faz 2: kit.css .btn::before parıltısı (inset:0, translateX(-130%), overflow:hidden) çıkartmayı solda kırmızı bir şeride
     çeviriyordu; çıkartma kutunun dışına taşabilsin, parıltının konum/dönüşüm değerleri sıfırlanır */
  body.is-mobile #select:has(.name-field.warn) #soloPlay{ overflow:visible; }
  body.is-mobile #select:has(.name-field.warn) #soloPlay::before{
    content:'ÖNCE ADINI YAZ'; position:absolute; inset:auto; left:50%; top:-11px; translate:-50% 0; transform:none; transition:none; z-index:3; white-space:nowrap;
    padding:3px 7px 2px; font-size:10px; line-height:1; letter-spacing:0; color:#fff8fb; background:#e8324d;
    border:2px solid #1d1428; border-radius:6px; box-shadow:2px 2px 0 #1d1428; text-shadow:none;
  }
}
/* daha çok yükseklik: kart ve şerit büyür */
@media (orientation:landscape) and (min-height:370px){
  body.is-mobile #select .name-field{ height:44px; }
  body.is-mobile #select #lbCard .lbc-rows{ padding-top:12px; }
  body.is-mobile #select #lbCard .lbc-row.r1{ padding-top:50px; }
  body.is-mobile #select #lbCard :is(.lbc-row.r2, .lbc-row.r3){ padding-top:38px; }
  body.is-mobile #select #lbCard .lbc-row.r1 .cico{ width:40px; height:40px; margin-left:-20px; }
  body.is-mobile #select #lbCard .lbc-me{ margin-top:8px; min-height:30px; }
  body.is-mobile #select #lbCard .lbc-open{ height:38px; margin:8px 10px 9px; }
  body.is-mobile #select .char-strip .char-preview{ width:42px; height:42px; }
}
/* uzun pano: tam liste kartta da başlar (masaüstündeki gibi 4. ve 5. sıra) */
@media (orientation:landscape) and (min-height:400px){
  body.is-mobile #select #lbCard .lbc-row.r4{ display:flex; }
}
@media (orientation:landscape) and (min-height:425px){
  body.is-mobile #select #lbCard .lbc-row.r5{ display:flex; }
}
/* dar telefon (667): üç tuşun ikonları düşer, yazı tam genişliği alır */
@media (orientation:landscape) and (max-width:700px){
  body.is-mobile #select .menu-actions .mb-ico{ display:none; }
}
/* kaynak: kit.css */
body.is-mobile #select .menu-actions .menu-btn .mb-art{ display:none; }
/* mobil gradyan gövdeler kitin altında kalır (tek malzeme) */
body.is-mobile #select .menu-actions .menu-btn,
body.is-mobile #select #onlineBtn.primary-cta{
  background-image:none; background-color:var(--kc);
  border-radius:var(--k-r-btn);
}
body.is-mobile #select .menu-actions .menu-btn:active,
body.is-mobile #select #onlineBtn.primary-cta:active{
  transform:translate(3px,3px);
  box-shadow:
    var(--k-sd-press),
    inset 2px 2px 0 0 color-mix(in oklab, var(--kc) 72%, #000),
    inset -2px -2px 0 0 color-mix(in oklab, var(--kc) 74%, #fff);
}
body.is-mobile #select .char-strip .char-btn.sel{
  box-shadow:
    var(--k-sd-lift),
    inset 2px 2px 0 0 color-mix(in oklab, var(--kc) 74%, #fff),
    inset -2px -2px 0 0 color-mix(in oklab, var(--kc) 72%, #000),
    inset 0 0 0 3px var(--card-aura,#ff8fc4);
}
/* telefon: dikey yer dar → kutu yalnız harf yüksekliği kadar (16 hücre), süsler ve damlalar kutunun dışına taşar (düzeni itmez) */
body.is-mobile #select .hero-showcase .hs-name.has-logo{ --ls:1.5; height:calc(16 * var(--ls) * 1px); margin-top:0; overflow:visible; }
body.is-mobile #select .hero-showcase .hs-name .hs-logo{ position:relative; margin-top:calc((15 - var(--lb)) * var(--ls) * 1px); }
body.is-mobile #select .hero-title.has-logo{ --ms:1; --mbox:var(--mh); }
body.is-mobile #select .hero-title .ml-beta{ display:none; }
body.is-mobile #select .hs-ability.ab-new{ --is:2; min-height:30px; gap:8px; padding:0 10px 0 0; border-width:2px; box-shadow:2px 2px 0 rgba(20,10,30,.5), inset 0 2px 0 color-mix(in oklab, var(--ab-col,#ff6fae) 70%, #1d1428); }
body.is-mobile #select .hs-ability.ab-new .ab-ico{ --tile:calc(16 * var(--is) * 1px + 4px); width:var(--tile); height:var(--tile); margin:-4px 0 -4px -2px; border-width:2px; border-radius:8px; }
body.is-mobile #select .hs-ability.ab-new .ab-txt{ padding:0; }
body.is-mobile #select .hs-ability.ab-new .ab-n{ font-size:10px; letter-spacing:1px; }
body.is-mobile #select .hs-stage{ --ps:2; }
