/* =============================================================================
 *  lobi.css — /lobi oyun ayarları sayfası (templates/lobi.html). landing.css ÜSTÜNE yüklenir (renk/düğme/kart/seg ortak).
 *  Mobil-önce: 360×740 dikey ve 740×360 yatay; dokunma hedefleri ≥ 44 px; yatay kaydırma yok; vitrin görselleri lazy.
 * ========================================================================== */
.lobi-body { padding-top: var(--header-h); background: var(--bg); min-height: 100vh; min-height: 100dvh; }
.lobi-body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 420px at 80% -10%, rgba(255, 92, 133, .14), transparent 62%),
  radial-gradient(700px 360px at 0% 100%, rgba(92, 214, 255, .10), transparent 62%); }
.lobi-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; padding: 18px 0 40px; }
.hdr-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct { display: inline-flex; align-items: center; gap: 10px; max-width: min(52vw, 280px); min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--soft); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.acct:hover { background: var(--soft-hi); }
.acct-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #ff5c85, #e11d48 60%, #ffb020); color: #fff; font-weight: 900; font-size: 1.05rem; }
.acct-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.acct-txt b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-txt small { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.acct.is-user .acct-txt small { color: var(--ok); }

/* ---------- görünümler ---------- */
.view { animation: fadein .25s both; }
.view-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.view-head .eyebrow { margin-bottom: .2em; }
.view-head .h2 { margin: 0; }
.view-head .back { width: 48px; height: 48px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.sec-title { margin: 22px 0 10px; }
.ping { display: inline-grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .84rem; font-weight: 700; }
.ping.good { color: var(--ok); } .ping.bad { color: var(--err); }

/* ---------- büyük seçim kartları ---------- */
.big-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.big-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(220px, 34vw, 320px); padding: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0d1220; color: #fff; text-align: left; font: inherit; cursor: pointer; isolation: isolate; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.big-card:hover, .big-card:focus-visible { transform: translateY(-3px); border-color: var(--accent-hi); }
.big-img { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 30% 20%, #243052, #0d1220 70%); }
.big-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .6s; }
.big-card:hover .big-img img { transform: scale(1.04); }
.big-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 17, .08) 0%, rgba(5, 7, 17, .35) 45%, rgba(5, 7, 17, .9) 100%); }
.big-body { display: flex; flex-direction: column; gap: 4px; padding: 22px 64px 22px 22px; }
.big-body small { font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #ffc760; }
.big-body b { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 900; line-height: 1.05; }
.big-body > span { color: #d6dfef; font-size: .95rem; max-width: 46ch; }
.big-arrow { position: absolute; right: 18px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.big-card:hover .big-arrow { background: var(--accent); border-color: transparent; }
.pill { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font: 700 .78rem/1.3 inherit; font-style: normal; }
.pill:empty { display: none; }

/* ---------- oyuncu / araç ---------- */
.who-card { margin-top: 18px; }
.who-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .who-grid { grid-template-columns: 320px 1fr; } }
.name-row { display: flex; gap: 8px; }
.name-row input { flex: 1; min-width: 0; }
.who-user { font-size: 1.1rem; margin: 4px 0 6px; }
.veh-grid-lobi { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.veh-tile .sil { position: absolute; }
.veh-thumb { position: relative; }
.veh-thumb img { position: relative; z-index: 1; }

/* ---------- mod kartları ---------- */
.mode-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.mode-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); background: var(--card-solid); cursor: pointer; min-height: 44px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mode-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mode-card:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.mode-card.is-sel { border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(255, 92, 133, .22), var(--shadow); }
.mode-card.is-off { opacity: .55; cursor: not-allowed; }
.mode-card.is-off:hover { transform: none; }
.mode-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #243052, #0d1220 70%); color: #5c6b8e; }
.mode-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mode-card[data-k="zombie"] .mode-img img { filter: saturate(.35) brightness(.55) hue-rotate(60deg) contrast(1.15); }
.mode-card[data-k="zombie"] .mode-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 100%, rgba(90, 220, 110, .28), transparent 70%); }
.sil-ph { width: 58%; opacity: .5; fill: currentColor; }
.mode-img img ~ .sil-ph { display: none; }
.badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: linear-gradient(90deg, #a24a00, #be123c); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font: 800 .68rem/1.3 inherit; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.badge-off { background: rgba(0, 0, 0, .7); }
.mode-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.mode-body b { font-size: 1.08rem; }
.mode-body small { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.mode-desc { margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.mode-check { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.mode-card.is-sel .mode-check { opacity: 1; transform: none; }

/* ---------- ayar blokları ---------- */
.opts-card { margin-top: 18px; }
.opt-grid { display: grid; gap: 6px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.opt { margin-bottom: 14px; }
.seg-wrap { display: flex; flex-wrap: wrap; width: 100%; }
.seg-wrap label { flex: 1 1 auto; }
.seg-wrap span { min-width: 64px; width: 100%; min-height: 46px; padding: 0 10px; font-size: .92rem; }
.seg-wrap label + label span { border-left: 1px solid var(--line); }
.check { margin: 6px 0 0; }
.actionbar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -12px 24px -14px rgba(0, 0, 0, .7); }
.actionbar p { margin: 0; flex: 1 1 220px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view[data-view="tek"], .view[data-view="kur"], .view[data-view="bul"] { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* alt şerit kaydırılan içeriğin üstüne binmesin */
body.shot .actionbar { position: static; background: none; }   /* tam sayfa ekran görüntüsü (test): yapışkan çubuk sayfa ortasına düşmesin */
.actionbar .btn { min-width: 200px; }

/* ---------- oda listesi ---------- */
.rooms-card { padding: 0; overflow: hidden; }
.rooms-head, .room { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; }
.rooms-head { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.room { border-bottom: 1px solid var(--line); min-height: 64px; }
.room:last-child { border-bottom: 0; }
.room b { display: block; overflow-wrap: anywhere; }
.room .sub { display: block; color: var(--faint); font-size: .78rem; }
.room .mode { font-weight: 700; }
.room .cnt { font-weight: 800; }
.room .cnt.full { color: var(--err); }
.room .env { color: var(--muted); font-size: .9rem; }
.room .lock { color: var(--accent-2); vertical-align: -.15em; }
.rooms-empty { margin: 0; padding: 26px 16px; text-align: center; color: var(--muted); }
.code-card { margin-top: 16px; }
.code-row { display: flex; gap: 8px; flex-wrap: wrap; }
.code-row input { flex: 1 1 160px; text-transform: uppercase; letter-spacing: .2em; font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 720px) {
  .rooms-head { display: none; }
  .room { grid-template-columns: 1fr auto; grid-template-areas: "name btn" "meta btn"; row-gap: 4px; }
  .room .nm { grid-area: name; }
  .room .mode, .room .cnt, .room .env { grid-area: meta; }
  .room .meta { grid-area: meta; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
  .room .btn { grid-area: btn; }
}

/* ---------- küçük ekran / yatay telefon ---------- */
@media (max-width: 480px) {
  .lobi-wrap { width: calc(100% - 32px); }
  .actionbar { justify-content: stretch; }
  .actionbar .btn { width: 100%; }
  .actionbar p { flex-basis: 100%; }
  .view[data-view="tek"], .view[data-view="kur"] { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
  .head-actions { width: 100%; margin-left: 0; }
  .head-actions .btn { flex: 1; }
  .big-body { padding: 18px 60px 18px 16px; }
  .acct-txt { display: none; }
  .acct { padding: 4px; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .big-card { min-height: 170px; }
  .big-body b { font-size: 1.4rem; }
  .big-body > span { font-size: .86rem; }
  .mode-img { aspect-ratio: 21 / 9; }
  .view-head { margin-bottom: 10px; }
}

/* 🧟 EKİP SEÇ (zombi) */
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.squad-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--card-solid); cursor: pointer; text-align: center; color: inherit; font: inherit; transition: border-color .15s, transform .15s; }
.squad-tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.squad-tile.is-sel { border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(255, 92, 133, .22); }
.squad-tile.is-sel::after { content: "\2713"; position: absolute; top: 6px; right: 8px; font-weight: 900; color: var(--accent-hi); }
.sq-av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 20px/1 system-ui, Arial; color: #101; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
.sq-name { font-weight: 800; }
.sq-age { font-size: .78rem; opacity: .75; }
.sq-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.sq-badges span { font-size: .7rem; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.sq-stats { font-size: .68rem; opacity: .7; }

/* 🌅 CENNETİN SONU — bölüm listesi (kısa etiketlerde numara değil ad) */
.cn-list { display: grid; gap: 8px; margin: 8px 0 10px; }
.cn-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card-solid); cursor: pointer; color: inherit; font: inherit; text-align: left; transition: border-color .15s, transform .15s; }
.cn-row:hover:not([disabled]) { transform: translateY(-1px); border-color: var(--line-2); }
.cn-row.is-sel { border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(255, 92, 133, .22); }
.cn-row[disabled] { opacity: .5; cursor: not-allowed; }
.cn-row .cn-ic { width: 26px; text-align: center; font-size: 1.1rem; }
.cn-row .cn-nm { flex: 1; font-weight: 800; }
.cn-row .cn-nm small { display: block; font-weight: 600; font-size: .74rem; opacity: .7; }
.cn-row .cn-st { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* ---------- 🧍 Karakterim kartı (TUR 10; <a> olarak /karakter'e gider) ---------- */
a.big-card { text-decoration: none; }
.big-card-char .big-img { background: radial-gradient(120% 120% at 70% 20%, rgba(255, 92, 133, .55), transparent 55%), radial-gradient(120% 120% at 20% 90%, rgba(92, 214, 255, .35), transparent 60%), #0d1220; }
