/* --- Telefon ve küçük ekran düzeni: diğer CSS dosyalarından sonra yüklenir. --- */
/* Sahneyi kamera (src/view/camera.js) kaydırır ve yakınlaştırır; tarayıcı kendi kaydırma/yakınlaştırmasını yapmasın. */
html, body { overscroll-behavior: none; }
body { height: 100dvh; }
#scene { touch-action: none; -webkit-tap-highlight-color: transparent; }
button, .app, .choice, .today-head, .pc-tab { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.title .keys-touch { display: none; }
@media (pointer: coarse) {
  .nav-hint, .title .keys { display: none !important; } /* klavye ipuçları dokunmatik ekranda anlamsız */
  .title .keys.keys-touch { display: block !important; }
}
@media (hover: none) {
  #scene .obj:hover, .actor.npc:hover { filter: none; }
  .choice:hover:not(:disabled), .pc-go:hover, .pc-fav:hover:not(:disabled) { translate: none; box-shadow: none; }
  .choice:active:not(:disabled) { translate: 1px 1px; }
}

/* --- Dikey telefon --- */
@media (max-width: 760px) {
  :root { --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --top-h: calc(var(--side-bottom, 166px) + 58px - var(--safe-t)); --dock-h: 92px; }
  .stage { padding: calc(var(--safe-t) + var(--top-h)) 0 calc(var(--safe-b) + var(--dock-h)) 0; }

  .topbar { top: calc(var(--safe-t) + 6px); left: 8px; right: 8px; gap: 6px; flex-direction: column; }
  .dop { padding: 4px 8px; gap: 8px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .dop-t { font-size: 11px; letter-spacing: .06em; }
  .meter { height: 20px; }
  .hud { padding: 2px 8px; gap: 6px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .hud small { font-size: 10px; }
  .hud .clock, .hud .money { font-size: 16px; }
  .speeds button { min-width: 44px; height: 44px; }

  .side { top: calc(var(--safe-t) + 104px); bottom: auto; left: 8px; right: 8px; padding: 4px 8px; gap: 6px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .rel { grid-template-columns: 24px 1fr auto; font-size: 11px; }
  .av { width: 24px; height: 24px; }
  .alert-badge { grid-column: 1 / -1; padding: 3px 8px; } .alert-badge b, .alert-badge small { display: inline; font-size: 11px; } .alert-badge small { margin-left: 6px; }
  #aile-huy { grid-column: 1 / -1; margin-top: 0 !important; font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Üst blok aile panelinin gerçek altına dizilir (--side-bottom: src/view/goals.js); panel karakter adıyla uzayabiliyor. */
  .goal { top: calc(var(--side-bottom, 156px) + 6px); bottom: auto; left: 8px; right: auto; padding: 2px 8px; box-shadow: 0 1px 6px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .goal { max-width: calc(100vw - 136px); }
  .goal { padding-right: 58px; } /* "Pes et" düğmesi sağ üstte; metnin üstüne binmesin */
  .goal .m { font-size: 10.5px; line-height: 1.25; } /* iki satıra iner: CV yıldızları kesilmesin */
  .goal .s { display: block; font-size: 15px; margin: 2px 0 1px; } /* oyunun tek hedefi küçük ekranda da görünsün */
  .yol-chip:not([hidden]) { display: flex; flex-wrap: wrap; font-size: 10px; margin-top: 0; } /* yol.css ≤760'ta gizliyordu; son üç seçim, iki satıra kadar */
  .yol-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 1px 5px; }
  .today-head b { letter-spacing: .06em; }

  .today { top: calc(var(--side-bottom, 156px) + 6px); bottom: auto; left: auto; right: 8px; max-width: calc(100vw - 16px); padding: 0 10px; box-shadow: 0 1px 6px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .today-head { min-height: 44px; }
  .today.is-open { max-width: min(300px, calc(100vw - 16px)); z-index: 3; } /* açık liste ana görev kartının üstünde kalsın */
  /* TV yakın planı alttaki telefon şeridine taşmasın: kendi içinde kayar (yatay kural aşağıda). */
  .tv-izle { max-height: calc(100dvh - 150px - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .today-toast { top: calc(var(--safe-t) + var(--top-h) + 54px); bottom: auto; left: 8px; right: 8px; max-width: none; translate: 0 calc(var(--i, 0) * 52px); }

  /* Telefon: altta büyük uygulama simgeleri; bildirimler üstünde yana kaydırılan şerit. */
  .phone { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: auto; padding: 6px 8px calc(var(--safe-b) + 6px); border-width: 3px 0 0; border-radius: 20px 20px 0 0; rotate: none; translate: none; box-shadow: none; z-index: 2; }
  .phone .screen { height: auto; padding: 6px 4px; border-radius: 14px; overflow: visible; }
  .apps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 0; }
  .app { min-height: 72px; font-size: 10px; align-content: start; padding-top: 2px; border-radius: 10px; min-width: 0; }
  @media (max-width: 420px) { .app { font-size: 9px; letter-spacing: -.02em; } } /* "Sahipsizden" dar ekranda kenardan taşmasın */
  .app:active .tile { translate: 0 2px; }
  .app .tile { width: 48px; height: 48px; border-radius: 13px; }
  .phone .notifs { -webkit-mask-image: none; mask-image: none; display: flex; position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); flex-direction: row; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .phone .notifs::-webkit-scrollbar { display: none; }
  .notif { flex: 0 0 100%; scroll-snap-align: start; padding: 5px 10px; font-size: 12px; box-shadow: 0 1px 6px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); display: -webkit-box; -webkit-line-clamp: 3; /* başlık + iki satır yazı */ -webkit-box-orient: vertical; overflow: hidden; }

  /* Eylem, olay ve sonuç kartları: başparmağın ulaştığı alt panel. */
  .card:not(.report), .card.center:not(.report) {
    left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; translate: none; rotate: none;
    max-height: calc(100dvh - var(--safe-t) - 96px); overflow-y: auto; overscroll-behavior: contain;
    padding: 14px 14px calc(var(--safe-b) + 14px); border-width: 3px 0 0; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 0 rgba(0, 0, 0, .35); z-index: 6;
  }
  .card h3 { font-size: 21px; }
  .choice { min-height: 54px; padding: 10px 14px; font-size: 16px; }
  .card .close { min-height: 48px; font-size: 15px; }
  .ok { min-height: 54px; font-size: 16px; }

  .takvim { top: calc(var(--side-bottom, 156px) + 22px); scale: .7; transform-origin: 50% 0; }
  .guide-tag { max-width: min(240px, calc(100vw - 24px)); }
  .guide-tag .guide-row { align-items: center; }
  .guide-tag .guide-ok, .guide-tag .guide-skip { min-height: 44px; padding: 6px 12px; }
}

/* --- Dar pencere (561–760: tablet, masaüstünde yan panel): kart ekranı yutmasın, düğmeler normal boy. --- */
@media (min-width: 561px) and (max-width: 760px) {
  .card:not(.report), .card.center:not(.report) { left: 50% !important; right: auto; width: min(520px, calc(100vw - 16px)); translate: -50% 0; max-height: 45vh; border-width: 3px 3px 0; }
  .card h3 { font-size: 18px; }
  .choice { min-height: 44px; padding: 7px 12px; font-size: 15px; }
  .card .close, .ok { min-height: 44px; font-size: 14px; }
}

/* --- Orta genişlik (761–1000: küçük dizüstü, dikey tablet): sağ sütun incelir, üst şerit sıkışmaz, menü evi yutmaz. --- */
@media (min-width: 761px) and (max-width: 1000px) {
  .stage { padding: 84px 244px 12px 8px; align-items: flex-start; }
  /* Ev genişliğe sığıyor: sahne evin oranında (≈4:3) ve üste yaslı; üstte boş şerit kalmaz, alt köşe BUGÜN kutusuna kalır. */
  #scene { flex: none; height: auto; max-height: 100%; aspect-ratio: 4 / 3; }
  .topbar { left: 12px; right: 12px; gap: 10px; }
  .dop { padding: 6px 10px; gap: 8px; }
  .dop-t { font-size: 15px; }
  .meter { min-width: 104px; } /* "100/100" sığsın */
  .meter span { font-size: 14px; right: 6px; }
  .state { font-size: 11px; padding: 2px 6px; }
  .hud { padding: 6px 10px; gap: 10px; }
  .hud .clock, .hud .money { font-size: 18px; }
  .speeds { gap: 4px; } .speeds button { min-width: 32px; }
  .side { top: 92px; right: 12px; width: 224px; padding: 10px; gap: 8px; }
  .rel { grid-template-columns: 34px 1fr 30px; gap: 7px; font-size: 14px; }
  .av { width: 34px; height: 34px; }
  .phone { right: 16px; width: 228px; padding: 10px; border-radius: 34px; }
  .phone .screen { border-radius: 24px; padding: 12px 8px 14px; }
  .apps { padding: 0; column-gap: 4px; } .app { font-size: 9.5px; }
  .goal { max-width: calc(100vw - 280px); }
  /* Eylem menüsü sol sütuna (BUGÜN ve ana görevin üstüne) iner; evin ortası ve sağı açık kalır. ui.js satır içi left/top yazdığı için !important.
     Olay kartı (.is-cast) inmez: sahneye gelenlerin yanına açılır (card-place.js, Tur 9 W4). */
  .card:not(.center):not(.report):not(.is-cast) { left: 8px !important; top: auto !important; bottom: 8px; width: 284px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
  .card:not(.center):not(.report) .choice { padding: 7px 10px; font-size: 14px; }
  .card:not(.center):not(.report) .head { margin-bottom: 8px; }
}

/* Orta genişlik ama boylu (820×760 gibi): ev sağ sütunun altına uzanır, telefon kısalır, aile panelinin huy satırı gizlenir (Tur 4 T20b/N23). */
@media (min-width: 761px) and (max-width: 1000px) and (min-height: 700px) {
  .stage { padding-right: 150px; }
  .phone { height: 300px; }
  #aile-huy { display: none; }
}

/* --- Yatay telefon: üst şerit tek satır, telefon sağda dikey sütun, aile + BUGÜN + son bildirim solda ince ray. --- */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); --top-h: 56px; --dock-w: 92px; --rail-w: 150px; }
  .stage { padding: var(--top-h) calc(var(--safe-r) + var(--dock-w)) 4px calc(var(--safe-l) + var(--rail-w) + 14px); }
  .topbar { top: 6px; left: calc(var(--safe-l) + 8px); right: calc(var(--safe-r) + var(--dock-w) + 8px); gap: 6px; flex-direction: row; }
  .dop { flex: 1; padding: 4px 8px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .dop-t { font-size: 11px; letter-spacing: .04em; }
  .meter { height: 20px; }
  .hud { padding: 0 8px; gap: 6px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .hud small { font-size: 10px; }
  /* Açılış kartı yatay telefona sığmıyor: kaydırılabilir, üstten başlar (Devam et düğmesi ekran dışında kalıyordu). */
  .screen-full:has(> .title) { overflow-y: auto; place-items: start center; }
  .title { padding: 18px 22px 16px; }
  .title h1 { margin: 10px 0 8px; }
  .hud .clock, .hud .money { font-size: 15px; }
  .speeds button { min-width: 44px; height: 44px; }
  .side { top: calc(var(--top-h) + 2px); bottom: auto; left: calc(var(--safe-l) + 8px); right: auto; width: var(--rail-w); padding: 4px 8px; grid-template-columns: 1fr; gap: 3px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .rel { grid-template-columns: 22px 1fr 24px; gap: 6px; font-size: 11px; }
  .rel .mini { height: 7px; margin-top: 1px; }
  .av { width: 22px; height: 22px; border-width: 2px; }
  .n { font-size: 12px; }
  .cr-hudname { margin-bottom: 2px; padding-bottom: 2px; } .cr-hudname b { font-size: 12px; } .cr-hudname small { display: none; }
  #aile-huy, .yol-chip, .goal .t, .goal .m { display: none; }
  /* Ana görev rayda tek satır: oyunun tek hedefi yatayda da görünsün. Pes et (rapora çıkış) altında kendi satırında. */
  .goal { top: calc(var(--side-bottom, 180px) + 60px); bottom: auto; left: calc(var(--safe-l) + 8px); right: auto; width: var(--rail-w); max-width: none; padding: 3px 8px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .goal .s { font-size: 12px; margin: 0; }
  .alert-badge { padding: 3px 6px; } .alert-badge b { font-size: 10px; } .alert-badge small { font-size: 9.5px; line-height: 1.15; display: block; }
  .today { top: calc(var(--side-bottom, 180px) + 6px); bottom: auto; left: calc(var(--safe-l) + 8px); right: auto; width: var(--rail-w); max-width: none; padding: 0 8px; z-index: 3; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
  .today-head { min-height: 44px; align-items: center; }
  .today ul { display: none; } .today.is-open ul { display: grid; margin-bottom: 6px; } .today li { font-size: 11px; }
  .today-toast { top: calc(var(--top-h) + 4px); bottom: auto; right: auto; left: calc(var(--safe-l) + var(--rail-w) + 22px); }
  .phone { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: calc(var(--safe-r) + var(--dock-w)); height: auto; padding: 6px calc(var(--safe-r) + 6px) 6px 6px; border-width: 0 0 0 3px; border-radius: 18px 0 0 18px; rotate: none; translate: none; box-shadow: none; }
  .phone:hover { rotate: none; translate: none; }
  .phone .screen { height: 100%; padding: 6px 2px; border-radius: 12px; overflow-y: auto; }
  .phone .bar { display: none; }
  /* Son bildirim telefonun dışında, rayın dibinde: telefon sütunu yazıya yetmiyor. */
  .phone .notifs { position: fixed; left: calc(var(--safe-l) + 8px); bottom: 8px; width: var(--rail-w); -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .notif { padding: 4px 8px; font-size: 11px; box-shadow: 0 1px 6px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .notif:nth-child(n + 2) { display: none; }
  .notif b { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apps { grid-template-columns: 1fr; gap: 2px; padding: 0; }
  .app { font-size: 9px; } .app .tile { width: 44px; height: 44px; border-radius: 12px; }
  .card:not(.center):not(.report), .card.center:not(.report) { /* orta genişlik kuralını (761–1000) yener: kart saatin altında, sağda */
    left: auto !important; right: calc(var(--safe-r) + var(--dock-w) + 8px); top: calc(var(--top-h) + 2px) !important; bottom: auto; width: min(400px, 60vw); translate: none; rotate: none;
    max-height: calc(100dvh - var(--top-h) - 8px); overflow-y: auto; overscroll-behavior: contain; z-index: 6;
  }
  /* Tur 9: TV yakın planı solda rayın yanında, sonuç kartı sağda; ikisi üst üste binmez, TV ekrana sığar. */
  .tv-izle { top: calc(var(--top-h) + 2px); left: calc(var(--safe-l) + var(--rail-w) + 18px); translate: none; rotate: none; width: 270px; max-height: calc(100dvh - var(--top-h) - 8px); overflow-y: auto; padding: 8px; }
  body:has(.tv-izle:not([hidden])) .card:not(.report) { width: max(240px, calc(100vw - var(--safe-l) - var(--rail-w) - var(--dock-w) - 320px)); }
  .choice { min-height: 48px; }
  .takvim { top: 8px; scale: .6; transform-origin: 50% 0; }
  /* Yan panel tam boy ve kendi içinde kayar: cevap düğmeleri zar etiketlerinin üstüne binmesin (Tur 6 V8). */
  .tp-side { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
  .tp-mods .mod, .tp-mod { font-size: 12px; padding: 2px 6px; }
  .toplanti { grid-template: "bar side" auto "stage side" 1fr "ctl side" auto / 1fr 220px; padding: 8px calc(var(--safe-r) + 12px) 8px calc(var(--safe-l) + 12px); gap: 8px; }
  .tp-rounds, .tp-title, .tp-note { display: none; }
}

/* --- Bilgisayar tarayıcısı ve mülakat: küçük ekranda tam ekran, kapatma düğmesi büyük. --- */
@media (max-width: 760px), (max-height: 500px) {
  .toplanti { z-index: 5; } /* telefonun (z 2) üstünde, kartların (z 6) altında: zar kartı ve Tamam görünür kalır (Tur 6 V1) */
  .pc { width: 100%; height: 100%; rotate: none; border: 0; border-radius: 0; box-shadow: none; }
  .pc-title { min-height: 52px; }
  .pc-x { width: 44px; height: 44px; border-radius: 8px; }
  .pc-x svg { width: 20px; height: 20px; }
  .pc-tabs { overflow-x: auto; scrollbar-width: none; }
  .pc-tab { flex: 1 0 auto; justify-content: center; min-height: 44px; }
  .pc-bar { flex-wrap: wrap; }
  .pc-bar input { flex: 1 1 100%; height: 44px; font-size: 16px; } /* 16px: iOS odaklanınca sayfayı büyütmesin */
  .pc-go, .pc-fav { flex: 1; justify-content: center; height: 44px; }
  .pc-del { width: 40px; height: 40px; }
  .pc-chip > button:not(.pc-del) { min-height: 40px; padding: 4px 6px; }
  .pc-status { flex-wrap: wrap; padding-bottom: 10px; }
  .toplanti { padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
  .tp-ctl, .tp-back { min-height: 48px; }
}

/* --- Tur 7: dokunma hedefleri ≥44 px (X25), sonuç kartı ve mülakat sığsın (X17, X18). --- */
@media (max-width: 760px), (max-height: 500px) {
  /* Görünüş aynı kalır, dokunulan alan görünmez bir kenarla büyür. */
  /* Pes et: düğmenin kendisi 44 px boy; görünen küçük etiket ::before'da (Tur 8 X25). Ses düğmeleri audio/controls.js'te. */
  .goal .rp-quit { top: -9px; right: 0; min-height: 44px; padding: 0 13px; border: 0; background: none; isolation: isolate; }
  .goal .rp-quit::before { content: ""; position: absolute; inset: 12px 4px; z-index: -1; border: 2px solid var(--ink); border-radius: 5px; background: var(--paper-2); }
  .goal .rp-quit[data-sure]::before { background: var(--red); }
  /* Uzun sonuç kartında Tamam hep görünür: kart kayar, düğme altta yapışık. */
  .reveal .ok { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 10px 0 var(--paper); }
}
@media (max-width: 760px) {
  /* Zar kartı evin üstünü daha az örtsün (çay anı görünsün). */
  .card .dice { gap: 14px; margin: 4px 0 6px; }
  .card .die { width: 52px; height: 52px; padding: 6px; border-width: 3px; }
  .card .die i { width: 9px; height: 9px; }
  .card .outcome h3 { font-size: 24px; margin: 4px 0; }
  .card .outcome p { margin: 4px 0; font-size: 14px; }
  .card .deltas { margin: 6px 0 10px; }
  /* Zar kartı alt panelde daha kısa: sahnenin yarısından fazlası görünsün (Tur 8 X18). */
  .card.center:has(.dice) { padding-top: 10px; padding-bottom: 10px; }
  .card .dice { gap: 10px; margin: 2px 0 2px; }
  .card .die { width: 42px; height: 42px; padding: 5px; }
  .card .die i { width: 7px; height: 7px; }
  .card .total { margin: 2px 0 0; }
  .card .outcome h3 { font-size: 21px; margin: 2px 0; }
  .card .outcome p { margin: 2px 0; font-size: 13px; line-height: 1.35; }
  .card .deltas { margin: 4px 0 6px; }
  /* Konuşmacı adı kendi kamerasının yanında iki satıra iner, kesilmez. */
  .them .tp-name { max-width: calc(58% - 20px); white-space: normal; font-size: 12px; line-height: 1.25; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .card.center:not(.report) { width: min(540px, calc(100vw - var(--dock-w) - var(--rail-w) - 40px)); padding: 10px 14px; }
  .card .dice { gap: 12px; margin: 2px 0 4px; }
  .card .die { width: 42px; height: 42px; padding: 4px; border-width: 3px; }
  .card .die i { width: 7px; height: 7px; }
  .card .mods { gap: 4px; } .card .mod { font-size: 11px; padding: 1px 6px; }
  .card .total { margin: 3px 0 0; }
  .card .outcome h3 { font-size: 22px; margin: 2px 0; }
  .card .outcome p { margin: 2px 0; font-size: 13px; line-height: 1.35; }
  .card .deltas { margin: 4px 0 6px; }
  .card .ok { min-height: 44px; }
}

/* --- Tur 8 --- */
@media (max-width: 760px), (max-height: 500px) {
  .tv-kumanda button, .os-cvopt, .os-pin { min-width: 44px; min-height: 44px; } /* dokunma hedefi ≥44 px (Y13) */
  .ses-pop label { min-height: 44px; margin: 0; }
}
@media (max-width: 760px) {
  /* Alt panel kart büyüyüp dönerek girmesin: giriş anında ekrandan taşıyordu (Y15). Yerinde belirir. */
  .card:not(.report):not(.is-leaving) { animation-name: sheet-in; transform-origin: 50% 100%; }
}
@keyframes sheet-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-height: 500px) and (orientation: landscape) {
  /* Menü: seçenekler kendi içinde kayar, Vazgeç altta ayrı durur; yapışkan düğme son seçeneğin üstüne binmesin (Y14). */
  .card:has(> .choices > .choice) { display: flex; flex-direction: column; overflow: hidden; }
  .card > .choices:has(> .choice) { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 4px 0; }
  .card:has(> .choices > .choice) > .close { flex: none; }
  .card .close { min-height: 44px; }
  .meter { min-width: 72px; } /* 44 px ses düğmeleri saat çipini büyüttü: dopamin durumu ("NORMAL") kesilmesin */
  /* Konuşma balonu sol üstte, kendi kameran sağ altta küçük: ikisi çakışmasın, soru okunsun (Y6). */
  .tp-tile.me { width: 26%; right: 8px; bottom: 8px; }
  .tp-bubble { left: 10px; right: auto; top: 8px; max-width: 52%; padding: 6px 10px; }
  .tp-bubble b { font-size: 14px; }
}

/* Yatay telefon: Pes et görev yazısının altında, sağa yaslı kendi satırında (yazıya binmesin). Tur 7 kuralından sonra gelmeli. */
@media (max-height: 500px) and (orientation: landscape) {
  .goal .rp-quit { position: relative; top: auto; right: auto; display: block; margin: 0 0 0 auto; min-height: 44px; padding: 0 10px; }
  .goal .rp-quit::before { inset: 10px 2px; }
}
