/* PitchGavel (eski çalışma adı: Kadro Kur) — istemci stil sistemi v7, "Tasarım Dili" (design.md) uyarlaması.
   [KULLANICI İSTEĞİ] v6'nın yeşil-siyah zemin + elektrik sarısı/altın paleti beğenilmedi
   ("farklı bir renk paleti kullanabilir miyiz") — kullanıcının seçtiği yön: "gece maçı mavisi
   + amber". Zemin artık çok koyu LACİVERT-siyah (gerçek gece maçı floodlight'ının rengi —
   yeşile değil maviye çalıyor). Vurgu sarı/altından doygun AMBER/TURUNCUYA kaydı. Yeni bir
   ikincil ton eklendi: --ice (buz beyazına yakın, soğuk) — stadyum ışığı çizgileri/ambiyansı
   ve geri sayımın "kritikleşiyor ama henüz kırmızı değil" ara adımı için (--urgency ARTIK
   turuncu değil bu buz-beyazı tona işaret ediyor — accent zaten turuncu olduğu için ikisini
   aynı tonda tutmak "para" ile "aciliyet" anlamlarını karıştırırdı). Yeşil hâlâ SADECE "canlı/
   bağlı/olumlu durum" (--success), kırmızı hâlâ SADECE gerçek aciliyet/kart (--danger) —
   ikisi de bu turda değişmedi. --surprise (büyük-fark rozeti, camgöbeği) de değişmedi.
   ÖNEMLİ: minyatür maç sahası (.pitch-*, .mini-pitch) ve dizilim sahası (.lineup-pitch*,
   .pitch-lineup-*) [KULLANICI İSTEĞİ] kasıtlı olarak DOKUNULMADAN bırakıldı — sadece bağlı
   oldukları renk token'ları (--accent, --gold-*, --success vb.) yeni palete otomatik uyum
   sağlıyor, format/mekanik birebir aynı (bkz. design.md "Kısıt" notu). */

:root {
  /* Zemin — çok koyu LACİVERT-siyah (gece maçı floodlight'ı), yeşile değil maviye çalıyor. */
  --bg: #070c14;
  --bg-elevated: #0e1826;
  --card: #0e1826;
  --card-solid: #0e1826;
  --card-hover: #16233a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6fa;
  --text-muted: #93a0b8;
  --text-faint: #56617a;

  /* Doygun amber/turuncu — TEK ana vurgu: para/CTA/kazanma anı/"harika performans" katmanı.
     --gold-* isimleri v3-v4'ten kalan, minyatür saha/dizilim bloklarının referans verdiği
     takma adlar (bkz. yukarıdaki not) — bilerek --accent ile birebir aynı tutuluyor. */
  --accent: #ff9500;
  --accent-strong: #e08000;
  --accent-soft: rgba(255, 149, 0, 0.14);
  --accent-glow: rgba(255, 149, 0, 0.45);
  --accent-ink: #2b1400; /* amber zemin üstünde okunur koyu metin */
  --gold: #ff9500;
  --gold-strong: #e08000;
  --gold-soft: rgba(255, 149, 0, 0.15);
  --gold-glow: rgba(255, 149, 0, 0.45);

  /* Yeşil hâlâ vurgu değil — SADECE "canlı/bağlı/olumlu" durum semantiği. Saha dizilim
     ekranındaki "iyi performans" katmanı da bu tona düşüyor. Değişmedi. */
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.15);
  --success-glow: rgba(34, 197, 94, 0.4);

  /* Kırmızı — SADECE canlı maçta aciliyet/kart anları için ayrılmış. Değişmedi. */
  --danger: #fb4155;
  --danger-soft: rgba(251, 65, 85, 0.15);
  --danger-glow: rgba(251, 65, 85, 0.45);

  /* [DEĞİŞTİ] "İkincil: buz beyazına yakın vurgular (stadyum ışığı çizgileri)" — eskiden
     turuncuydu ama --accent artık turuncu, ikisi aynı anda görününce ("teklif altın/amber
     rengiyle yükseliyor" + "geri sayım da turuncu") para ile aciliyet anlamı karışırdı. Artık
     buz beyazı bir ton: geri sayım kritikleşirken önce bu parlak/soğuk tona geçiyor ("gerilim
     yükseliyor" hissi), sonra --danger'a (kırmızı) kayıyor (bkz. .timer-wrap.urgent/.critical).
     Aynı ton, floodlight ambiyans dokusunda da (html/body arka planı) ikincil ışık olarak var. */
  --urgency: #eaf4ff;
  --urgency-soft: rgba(234, 244, 255, 0.14);
  --urgency-glow: rgba(234, 244, 255, 0.55);

  /* "Büyük fark" pozisyonu gibi özel/sürpriz anlar için ayrılmış üçüncü, çarpıcı renk (elektrik
     camgöbeği) — kırmızı ile paylaşılmıyor. Değişmedi. */
  --surprise: #22d3ee;
  --surprise-soft: rgba(34, 211, 238, 0.14);
  --surprise-glow: rgba(34, 211, 238, 0.45);

  --gk: #eab308;
  --df: #3b82f6;
  --mf: #22c55e;
  --fw: #f97316;
  --icon: #c084fc;

  /* Tipografi: kondanse/skor-tablosu başlıklar için Big Shoulders Display (Bebas/Anton/Oswald
     ailesinden, "her yerde görülen poster fontu" hissi vermeyen bir seçenek — bkz. design.md
     "Tipografi"), gövde + mono ikisi de IBM Plex ailesinden — Inter YOK, "tek bir terminal
     sistemi" hissi için bilinçli eşleştirme. */
  --font-display: 'Big Shoulders Display', 'Archivo Black', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 12px;
  --shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.22, 0.8, 0.34, 1);

  /* Küçük "fiyat etiketi" kesik köşesi — artık sadece rozet/etiket ölçeğindeki elemanlarda
     (pos-badge, formation-badge, tab, status-pill) kullanılıyor; panel/buton gibi büyük
     yüzeyler bilinçli olarak sade dikdörtgen bırakıldı (bkz. tasarım notu yukarıda). */
  --tag-cut: 6px;
}

* { box-sizing: border-box; }

/* [design.md "İkonografi / Doku"] Soyut gradyan lekesi yerine stadyum floodlight dokusu: çok
   hafif diyagonal çizgi deseni (biçilmiş çim hissi, neredeyse görünmez) + iki ambiyans ışığı
   (üst-sol amber spot, üst-sağ buz beyazı floodlight huzmesi — --urgency ile aynı ton) —
   hepsi düşük kontrast, sabit. */
html, body {
  margin: 0;
  padding: 0;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.014) 0px, rgba(255, 255, 255, 0.014) 2px, transparent 2px, transparent 46px),
    radial-gradient(1000px 560px at 14% -10%, rgba(255, 149, 0, 0.06) 0%, transparent 55%),
    radial-gradient(1000px 620px at 86% -6%, rgba(234, 244, 255, 0.05) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; }
::selection { background: var(--accent-glow); color: var(--accent-ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 10, 15, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: 0.4px; text-transform: uppercase; }
/* [KULLANICI İSTEĞİ] Gerçek logo/icon eklendi (bkz. index.html, /assets/icon.png) — eski
   ⚽ emoji rozeti (brand-spin ile sallanan) bir yer tutucuydu, gerçek marka geldiği için
   kaldırıldı; marka artık sabit duran gerçek bir logo, emoji gibi oynatılmıyor. */
.brand-icon { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: 0 4px 14px -2px var(--accent-glow); }
.topbar-status {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); font-weight: 500;
  padding: 6px 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
/* [KULLANICI İSTEĞİ] "Bir sayfaya oyundaki bütün oyuncuların ratingleri yazabilir" — her
   ekrandan erişilebilen sabit bir üst bar linki (bkz. index.html #playersNavBtn, app.js). */
.topbar-link {
  font-size: 12px; font-weight: 700; color: var(--text-muted); background: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 7px 12px;
  cursor: pointer; transition: all 0.15s var(--ease); white-space: nowrap;
}
.topbar-link:hover { border-color: var(--accent); color: var(--accent); }
.topbar-link.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- Layout ---------- */
.app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 40px;
}
.view { display: flex; flex-direction: column; gap: 20px; animation: view-in 0.42s var(--ease); }
.center-col {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lobby-card { padding: 18px 22px; }

@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* "Kayıt sayfası" — düz dikdörtgen panel, üstte ince bir amber şerit (ledger/kayıt defteri
   hissi) — v3'teki köşe-kesik broadcast etiketinin yerine geçti. */
.panel {
  position: relative;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  animation: pop-in 0.4s var(--ease);
  overflow: hidden;
}
.panel::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
}
.panel h2 { margin: 0 0 12px; font-size: 20px; }
.panel h3 {
  margin: 0 0 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
  letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase;
}
.panel h3::before { content: '▎'; color: var(--accent); margin-right: 6px; }

/* ---------- Lobby hero ---------- */
/* [KULLANICI İSTEĞİ] "Yukarıda kalmış, ortala" — sayfa `.app`in üst dolgusuna yapışıp kalıyordu,
   altında boş yükseklik varken içerik dikey olarak ortalanmıyordu. Topbar + `.app` dolgusu için
   kaba bir pay düşülüp geri kalan yükseklikte dikey ortalanıyor (içerik bundan uzun olursa
   `min-height` sorun çıkarmaz, sadece taşıp normal akışa döner). */
.lobby-shell { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-height: calc(100vh - 130px); }
.lobby-hero { text-align: center; max-width: 640px; margin: 6px auto 0; animation: view-in 0.5s var(--ease); }
.lobby-hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; color: var(--success); background: var(--success-soft); border: 1px solid var(--success);
  border-radius: 999px; padding: 6px 15px; margin-bottom: 14px;
}
.lobby-hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success-glow); animation: dot-pulse 1.6s ease-in-out infinite; }
.lobby-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.04; margin: 0 0 12px; letter-spacing: 0.2px; text-transform: uppercase; }
.lobby-title span { color: var(--accent); }
.lobby-title.compact { font-size: 22px; margin: 0; }
.lobby-sub { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 480px; margin-inline: auto; }

/* [KULLANICI İSTEĞİ] "Ekranın yarısından fazlası boş duruyor, daha güzel olsun, yazı
   ekleyebiliriz, bir tasarım olabilir" — geniş ekranda hero metni solda, Oda Kur/Katıl kartları
   sağda yan yana (bkz. views.js renderLobby, SADECE mod seçilmeden önceki ilk ekranda —
   form açıldıktan sonra eski dar/odaklı düzen aynen kalıyor). */
.lobby-hero-split {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center;
  max-width: 1080px; margin: 10px auto 0; padding: 10px 0; animation: view-in 0.5s var(--ease);
}
.lobby-hero-col { position: relative; z-index: 1; text-align: left; }
.lobby-hero-col .lobby-title { text-align: left; }
.lobby-hero-col .lobby-sub { text-align: left; margin-inline: 0; max-width: 460px; }
.lobby-cards-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
/* Kartlar dar sağ sütunda yan yana değil ALT ALTA — split düzen zaten yatay alanı kullanıyor. */
.lobby-cards-col .lobby-mode-picker { grid-template-columns: 1fr; }

/* Hero'nun ne sunduğunu özetleyen kısa özellik şeridi — hem bilgilendirici hem yatay alanı
   dolduruyor (bkz. views.js FEATURES). */
.lobby-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.lobby-feature {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px;
  background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease);
}
.lobby-feature:hover { border-color: var(--border-strong); }
.lobby-feature-code {
  flex-shrink: 0; width: 26px; height: 20px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 800; color: var(--accent-ink);
  background: var(--accent);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.lobby-feature-title { font-weight: 700; font-size: 12.5px; }
.lobby-feature-desc { font-size: 11px; color: var(--text-faint); line-height: 1.35; margin-top: 1px; }

/* Arka planda gerçek player-card bileşeniyle (aynı helpers.js fonksiyonu) kurulan, döndürülmüş
   ve soluklaştırılmış iki dekoratif kart — sayfanın geri kalanındaki "trading card" diliyle
   atmosfer kuruyor. Tamamen etkileşimsiz (pointer-events:none, aria-hidden). */
.lobby-decor { position: absolute; inset: -20px 0; pointer-events: none; z-index: 0; overflow: visible; }
.lobby-decor-card { position: absolute; width: 180px; opacity: 0.14; filter: saturate(0.75); animation: none; }
.lobby-decor-card.a { top: -18px; right: 6%; transform: rotate(10deg); }
.lobby-decor-card.b { bottom: -30px; left: 1%; transform: rotate(-12deg); }

.lobby-mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Bilet-kütüğü kartı: sol tarafta biletin numaralı koçanı (kesik çizgiyle ayrılmış), sağda
   başlık+açıklama — "sol kenarlık vurgu" klişesi yerine oyunun kendi biletleme diline oturan
   bir ayraç kullanıyor. */
.lobby-mode-btn {
  position: relative;
  display: flex; align-items: stretch; gap: 0;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card-solid);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.lobby-mode-num {
  display: flex; align-items: center; justify-content: center;
  width: 56px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--accent);
  background: repeating-linear-gradient(180deg, var(--accent-soft) 0 9px, transparent 9px 18px);
  border-right: 1px dashed rgba(255, 149, 0, 0.4);
  transition: background 0.16s var(--ease);
}
.lobby-mode-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.lobby-mode-label-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.lobby-mode-label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.3px; text-transform: uppercase; }
.lobby-mode-arrow {
  font-size: 15px; color: var(--text-faint); opacity: 0; transform: translateX(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), color 0.18s var(--ease);
}
.lobby-mode-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.lobby-mode-btn:hover {
  border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg);
}
.lobby-mode-btn:hover .lobby-mode-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.lobby-mode-btn.selected {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.lobby-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); animation: pop-in 0.3s var(--ease); }
.lobby-back {
  display: block; margin: 8px auto 0; background: none; border: none;
  color: var(--text-faint); font-size: 12.5px; cursor: pointer; font-weight: 700;
}
.lobby-back:hover { color: var(--text-muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field label { font-size: 11.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; }
.field input, .field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px var(--accent-glow);
  transition: transform 0.12s var(--ease), filter 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 20px -6px var(--accent-glow); }
.btn:active { transform: scale(0.97) translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; box-shadow: none; transform: none; }
.btn.secondary { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text); box-shadow: none; }
.btn.secondary:hover { border-color: var(--accent); box-shadow: none; }
.btn.danger { background: var(--danger); color: #2a0a0a; box-shadow: 0 6px 16px -6px var(--danger-glow); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 16px; font-size: 11.5px; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-elevated); color: var(--text-muted); cursor: pointer; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: all 0.15s var(--ease);
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---------- Room code ---------- */
.room-code {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
}

/* [KULLANICI İSTEĞİ] Lobi CTA'ları düz dikdörtgen buton yerine "bilet koçanı" diliyle: solda
   diyagonal-kesikli ikon bloğu, sağda başlık+alt metin. */
.ticket-btn { padding: 0 !important; overflow: hidden; display: flex; align-items: stretch; text-align: left; }
.ticket-btn .ticket-btn-icon {
  width: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18); border-right: 1px dashed rgba(255,255,255,0.35); font-size: 19px;
}
.ticket-btn.secondary .ticket-btn-icon { background: var(--success-soft); border-right-color: rgba(34,197,94,0.4); }
.ticket-btn .ticket-btn-label { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px; gap: 1px; }
.ticket-btn .ticket-btn-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.6px; text-transform: uppercase; }
.ticket-btn .ticket-btn-sub { font-size: 11px; font-weight: 500; }
.ticket-btn.start-ready { position: relative; box-shadow: 0 12px 28px -8px var(--accent-glow); }
.ticket-btn.start-ready::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: ticket-shimmer 2.6s ease-in-out infinite;
}
@keyframes ticket-shimmer { 0% { transform: translateX(-120%) skewX(-14deg); } 100% { transform: translateX(420%) skewX(-14deg); } }

.start-progress { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--bg-elevated); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.start-progress-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-muted); }
.start-progress-count { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent); text-transform: none; }
.start-progress-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.start-progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.2s var(--ease); }

.player-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.player-slot {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 13px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
}
.player-slot.empty { opacity: 0.4; border-style: dashed; font-weight: 400; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.dot.on { background: var(--success); box-shadow: 0 0 10px var(--success-glow); animation: dot-pulse 2s ease-in-out infinite; }
.dot.off { background: var(--danger); }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ---------- Draft ---------- */
.draft-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.formation-badge {
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent);
  padding: 7px 16px; font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.3px;
  clip-path: polygon(var(--tag-cut) 0, 100% 0, calc(100% - var(--tag-cut)) 100%, 0 100%);
}

.budget-row { display: flex; gap: 14px; flex-wrap: wrap; }
.budget-card {
  flex: 1; min-width: 220px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color 0.2s var(--ease);
}
.budget-card:hover { border-color: var(--border-strong); }
.budget-card .name { font-weight: 700; font-size: 13.5px; }
.budget-card .budget { font-family: var(--font-display); color: var(--accent); font-weight: 700; font-size: 26px; margin-top: 4px; letter-spacing: 0.3px; }
.budget-card .slots { color: var(--text-muted); font-size: 12px; margin-top: 3px; }

.round-area { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.timer-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.timer-bar { width: 280px; height: 8px; background: var(--bg-elevated); overflow: hidden; border: 1px solid var(--border); border-radius: 999px; }
.timer-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--danger)); transition: width 0.2s linear, background 0.3s var(--ease); box-shadow: 0 0 12px var(--accent-glow); }
.timer-label {
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-muted);
  font-variant-numeric: tabular-nums; letter-spacing: 0.5px; transition: color 0.3s var(--ease);
}
/* [design.md "Hareket"] "Geri sayım son saniyelerde renk/hız değiştirerek gerçek bir aciliyet
   hissettirsin (pulse efekti)" — views.js tick() bu sınıfları kalan süreye göre ekliyor/
   kaldırıyor: >5sn nötr, 5-2sn turuncu (--urgency), <2sn kırmızı + nabız. */
.timer-wrap.urgent .timer-fill { background: linear-gradient(90deg, var(--urgency), var(--danger)); box-shadow: 0 0 14px var(--urgency-glow); }
.timer-wrap.urgent .timer-label { color: var(--urgency); }
.timer-wrap.critical .timer-fill { background: var(--danger); box-shadow: 0 0 16px var(--danger-glow); }
.timer-wrap.critical .timer-label { color: var(--danger); animation: timer-pulse 0.5s ease-in-out infinite; }
.timer-wrap.critical .timer-bar { animation: timer-pulse 0.5s ease-in-out infinite; }
@keyframes timer-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.warning-banner {
  text-align: center; padding: 14px; font-weight: 700; font-size: 13.5px; border-radius: var(--radius-sm);
  background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger);
  animation: pop-in 0.3s var(--ease);
}

/* [design.md "Renk Paleti"] "Büyük fark" pozisyonu artık kırmızıyı (gerçek aciliyet) paylaşmıyor
   — kendine ait üçüncü, çarpıcı renk (--surprise, elektrik camgöbeği). */
.big-gap-badge {
  background: var(--surprise-soft); color: var(--surprise); border: 1px solid var(--surprise);
  padding: 7px 16px; font-weight: 800; font-size: 11.5px; text-align: center; letter-spacing: 0.3px;
  box-shadow: 0 0 18px -4px var(--surprise-glow); animation: badge-shake 2.4s ease-in-out infinite;
  clip-path: polygon(var(--tag-cut) 0, 100% 0, calc(100% - var(--tag-cut)) 100%, 0 100%);
}
@keyframes badge-shake { 0%, 100% { transform: rotate(0); } 3% { transform: rotate(-2deg); } 6% { transform: rotate(2deg); } 9% { transform: rotate(0); } }

.reveal-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }

.round-result { display: flex; flex-direction: column; align-items: center; width: 100%; animation: pop-in 0.35s var(--ease); }
.round-result h3 { margin-bottom: 14px; }

/* [KULLANICI İSTEĞİ] "Oyuncu alan kişi kaça aldığı daha güzel bir ekranda gözükebilir" —
   round çözülünce önce bu "makbuz" şeridi: alıcı + fiyat + oyuncu tek satırda, büyük ve net. */
/* [design.md "Hareket"] Round sonucu da bir "kazanan ilan edilme anı" — sade fade yerine aynı
   yayın-grafiği wipe geçişi (bkz. .winner-banner banner-wipe-in). */
.round-receipt {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 460px;
  margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%);
  border: 1px solid var(--accent);
  animation: banner-wipe-in 0.45s var(--ease);
}
.round-receipt-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.round-receipt-headline { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
.round-receipt-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.sold-wrap { position: relative; }
.sold-wrap::after {
  content: 'SATILDI';
  position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 2.5px;
  color: var(--danger); border: 3px solid var(--danger); border-radius: 4px;
  padding: 3px 16px; background: rgba(14, 15, 18, 0.55);
  pointer-events: none; z-index: 5; white-space: nowrap;
  opacity: 0; animation: stamp-hit 0.5s var(--ease) 0.2s forwards;
}
@keyframes stamp-hit {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-11deg) scale(2.3); }
  55% { opacity: 1; transform: translate(-50%, -50%) rotate(-11deg) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-11deg) scale(1); }
}

.ladder-rank-badge {
  position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.player-card { position: relative; }

.bid-leaderboard { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 360px; }
/* [KULLANICI İSTEĞİ] Her satırın arkasında en yüksek teklife oranla dolan bir çubuk (--pct,
   bkz. views.js renderRoundResultPanel) — "kim kime ne kadar yaklaştı" tek bakışta okunsun. */
.bid-leaderboard-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px; background-color: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  background-image: linear-gradient(90deg, var(--border-strong) var(--pct, 0%), transparent var(--pct, 0%));
  font-size: 12.5px;
  transition: background-image 0.3s var(--ease);
}
.bid-leaderboard-row.leading {
  border-color: var(--accent); background-color: var(--accent-soft); color: var(--accent); font-weight: 800;
  background-image: linear-gradient(90deg, rgba(255,149,0,0.28) var(--pct, 0%), transparent var(--pct, 0%));
}

/* "Trading card" — v3'ten değişmeden korunan oyuncu kartı sistemi (kullanıcı bunu eleştirmedi;
   sadece --pc/--accent/--gold-* token'ları üzerinden yeni palete uyum sağlıyor). */
.player-card {
  --pc: var(--mf);
  width: 236px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--pc) 20%, var(--card-solid)) 0%, var(--card-solid) 55%),
    linear-gradient(180deg, var(--card-hover), var(--card-solid));
  border: 1px solid color-mix(in srgb, var(--pc) 45%, var(--border-strong));
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: pop-in 0.35s var(--ease);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.player-card::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; opacity: 0.5;
  background: conic-gradient(from 200deg at 50% 0%, var(--pc), transparent 40%);
  filter: blur(2px);
}
.player-card::after {
  content: ''; position: absolute; top: -60%; left: -60%; width: 60%; height: 220%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: rotate(20deg); transition: left 0.7s var(--ease); pointer-events: none;
}
.player-card:hover::after { left: 130%; }
.player-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lg), 0 0 30px -10px var(--pc); }
.player-card.main { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 40px -8px var(--danger-glow), var(--shadow); }
.player-card.backup { opacity: 0.82; }
.player-card .pos-badge {
  position: absolute; top: 13px; left: 13px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 4px 10px; color: #12140f;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.5);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.player-card .rating {
  position: absolute; top: 8px; right: 10px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--accent);
  background: radial-gradient(circle at 35% 30%, rgba(255,149,0,0.22), transparent 70%);
  border: 2px solid var(--accent); border-radius: 50%;
  text-shadow: 0 0 14px var(--gold-glow);
  box-shadow: 0 0 16px -4px var(--gold-glow);
}
.player-card .icon-flag {
  position: absolute; bottom: 12px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  color: #2a1a05; background: linear-gradient(145deg, var(--icon), #9a5ce0); padding: 3px 8px 3px 6px;
  border-radius: 999px 4px 4px 999px; box-shadow: 0 2px 8px -2px rgba(209, 153, 255, 0.6);
}
.player-card .name { margin-top: 34px; font-weight: 800; font-size: 15.5px; }
.player-card .club { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.player-card .tag { margin-top: 12px; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.player-card:has(.tag):has(.icon-flag) { padding-bottom: 40px; }

.pos-GK { background: var(--gk); } .pos-DF { background: var(--df); } .pos-MF { background: var(--mf); } .pos-FW { background: var(--fw); }
.player-card:has(.pos-GK) { --pc: var(--gk); }
.player-card:has(.pos-DF) { --pc: var(--df); }
.player-card:has(.pos-MF) { --pc: var(--mf); }
.player-card:has(.pos-FW) { --pc: var(--fw); }

.bid-panel { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 100%; max-width: 380px; }
.bid-current { font-size: 14px; color: var(--text-muted); text-align: center; }
/* [design.md "Tipografi"] Teklif rakamı ekranın odağı olmalı — kondanse skorbord fontuna
   geçti, sayarak yükselen animasyon countUpMoney ile besleniyor (bkz. views.js). */
.bid-current b { font-family: var(--font-display); color: var(--accent); font-size: 28px; font-weight: 800; text-shadow: 0 0 20px var(--gold-glow); }
.bid-form { display: flex; gap: 8px; width: 100%; }
.bid-form input { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 19px; font-weight: 700; }
.bid-cap { font-size: 12px; color: var(--text-faint); text-align: center; }

/* ---------- Çark Modu v2 ---------- */
/* [KULLANICI İSTEĞİ, KARARLAŞTIRILDI] "Takımları çarktan çıkan sonuca göre kurma" — üçüncü
   draft modu. Gerçek bir dönen çark: conic-gradient dilimler (bkz. views.js wheelGeometry) +
   sabit üst pointer + sunucu sonucuna göre hesaplanan bir döndürme animasyonu (bkz.
   wheelRotationFor). Bilerek YUVARLAK — sayfanın geri kalanındaki köşeli/diagonal dile
   KASITLI bir kontrast: "özel an" hissi, gerçek bir çark gibi görünsün istendi.
   [KULLANICI İSTEĞİ] "Döndüğü belli olsun, daha güzel bir çark olsun" — v2'de: dönerken diskin
   etrafında nabız atan bir glow halkası (.wheel-stage.spinning), iniş anında pointer'da kısa bir
   "bounce" (.wheel-pointer.landed), ve daha büyük/gölgeli bir disk. */
.wheel-round { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }

.wheel-turn-banner {
  text-align: center; font-weight: 700; font-size: 14px; padding: 10px 18px;
  border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text-muted);
}
.wheel-turn-banner.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.wheel-stage { position: relative; width: 260px; height: 260px; margin: 6px 0; }
.wheel-stage::before {
  /* Dönerken görünen nabız atan glow halkası — "döndüğü belli olsun" isteğine karşılık gelen
     ana görsel ipucu, sonuç açığa çıkınca (reveal) kayboluyor. */
  content: ''; position: absolute; inset: -10px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.wheel-stage.spinning::before { opacity: 1; animation: wheel-glow-pulse 1.1s ease-in-out infinite; }
@keyframes wheel-glow-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.55; }
  50% { transform: scale(1.05); opacity: 1; }
}
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 22px solid var(--text); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transform-origin: 50% 100%; /* tepe noktasından (çarkın kenarına değen uç) sallansın */
}
.wheel-pointer.landed { animation: wheel-pointer-bounce 0.5s var(--ease); }
@keyframes wheel-pointer-bounce {
  0% { transform: translateX(-50%) rotate(0deg); }
  30% { transform: translateX(-50%) rotate(-14deg); }
  55% { transform: translateX(-50%) rotate(8deg); }
  75% { transform: translateX(-50%) rotate(-4deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}
.wheel-disk {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--bg-elevated); box-shadow: 0 0 0 2px var(--border-strong), var(--shadow-lg);
  will-change: transform;
}
.wheel-slice-label {
  position: absolute; top: 50%; left: 50%; width: 64px; margin-left: -32px; height: 1px;
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  color: #12140f; text-shadow: 0 1px 2px rgba(255,255,255,0.35); transform-origin: center top;
  line-height: 1.15;
}
.wheel-spin-btn {
  max-width: 300px; padding: 0; overflow: hidden; display: flex; align-items: stretch;
  box-shadow: 0 10px 24px -8px var(--accent-glow);
}
.wheel-spin-btn .wheel-spin-btn-icon {
  width: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18); border-right: 1px dashed rgba(255,255,255,0.35); font-size: 20px;
}
.wheel-spin-btn .wheel-spin-btn-label {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.6px; text-transform: uppercase;
}
.wheel-reveal-pending {
  padding: 10px 18px; border-radius: var(--radius-sm); background: var(--bg-elevated);
  border: 1px dashed var(--border-strong); animation: wheel-reveal-dots 1.2s ease-in-out infinite;
}
@keyframes wheel-reveal-dots { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.wheel-pick-wrap { width: 100%; max-width: 440px; }
.wheel-pick-scroll { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.wheel-pick-list { display: flex; flex-direction: column; }
.wheel-pick-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px;
  background: var(--card-solid); border: none; border-bottom: 1px solid var(--border); color: var(--text);
  cursor: pointer; text-align: left; font-size: 12.5px; transition: background 0.12s var(--ease);
}
.wheel-pick-row:last-child { border-bottom: none; }
.wheel-pick-row:hover:not(:disabled) { background: var(--bg-elevated); }
.wheel-pick-row:disabled { opacity: 0.5; cursor: default; }
/* [KULLANICI İSTEĞİ, KARARLAŞTIRILDI — ÇARK MODU v2] "Rakipten istediğin oyuncuyu al" satırları
   normal seçim satırlarından net ayrışsın diye camgöbeği (--surprise) bir sol kenarlık. */
.wheel-pick-row.wheel-steal-row { border-left: 3px solid var(--surprise); }
.wheel-pick-row .pos-badge {
  position: static; font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 3px 7px;
  border-radius: var(--radius-sm); color: #12140f; flex-shrink: 0; box-shadow: none;
}
.wheel-pick-rating { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); width: 28px; flex-shrink: 0; }
.wheel-pick-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheel-pick-club { font-size: 11px; flex-shrink: 0; }

.event-log { display: flex; flex-direction: column; gap: 7px; max-height: 150px; overflow-y: auto; font-size: 13px; color: var(--text-muted); }
.event-log .row {
  padding: 8px 12px; background: var(--bg-elevated); border-radius: var(--radius-sm); border: 1px solid var(--border);
  animation: pop-in 0.3s var(--ease);
}

.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-top: 10px; }
.squad-chip {
  display: flex; align-items: center; gap: 9px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 11px; font-size: 12px;
  transition: border-color 0.15s var(--ease);
}
.squad-chip:hover { border-color: var(--border-strong); }
.squad-chip .badge {
  width: 30px; height: 21px; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; color:#12140f; flex-shrink:0;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.squad-chip .info { display: flex; flex-direction: column; overflow: hidden; }
.squad-chip .info .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad-chip .info .r { font-family: var(--font-mono); color: var(--text-faint); }

/* ---------- Dizilim: formasyon/taktik seçiciler (saha DEĞİL — bkz. renderSlotAssignment,
   saha görselinin kendisi olan .lineup-pitch* ve .pitch-lineup-* aşağıda birebir korunuyor) ---------- */
.formation-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.formation-option {
  padding: 11px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 700; font-size: 13px; background: var(--bg-elevated); color: var(--text-muted);
  transition: all 0.15s var(--ease);
}
.formation-option:hover { border-color: var(--accent); color: var(--text); }
.formation-option.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.formation-option.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* [KULLANICI İSTEĞİ] "Modlara bilgilendiriciler ekleyelim" — seçili hap-düğmenin açıklamasını
   hep görünür tutan tek satırlık ipucu (bkz. views.js pillToggle). SADECE lobi formundaki
   kompakt kullanım için — `.field` içinde olduğu için dizilim ekranındaki formasyon/taktik
   seçicileri etkilemiyor. */
.field .formation-pick { margin-bottom: 6px; }
.pill-hint { font-size: 11.5px; color: var(--text-faint); line-height: 1.4; min-height: 15px; }

.tactic-panel { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding: 14px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
.tactic-row .tactic-label { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.tactic-row .formation-pick { margin-bottom: 0; }
.tactic-row .formation-option { padding: 8px 14px; font-size: 12.5px; }

.status-pill { font-size: 11.5px; padding: 5px 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; border-radius: 999px; }
.status-pill.done { background: var(--success-soft); color: var(--success); }
.status-pill.pending { background: var(--gold-soft); color: var(--gold); }

/* ============================================================================================
   AŞAĞIDAKİ İKİ BÖLÜM — dizilim sahası ve maç anlatımı minyatür sahası — [KULLANICI İSTEĞİ]
   gereği v3'ten DEĞİŞTİRİLMEDEN taşındı. Referans verdikleri --accent, --gold-*, --success,
   --danger token'ları yukarıda yeni palete güncellendiği için renkleri otomatik uyum sağlıyor;
   yapı/mekanik/animasyon birebir aynı.
   ============================================================================================ */

/* ---------- Lineup (saha) ---------- */
.lineup-pitch { width: 100%; max-width: 460px; margin: 0 auto; }
.lineup-pitch-field {
  position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--radius);
  background:
    radial-gradient(120% 55% at 50% 94%, rgba(255,255,255,0.14) 0%, transparent 45%),
    radial-gradient(120% 55% at 50% 6%, rgba(255,255,255,0.10) 0%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 12.5%, rgba(0,0,0,0.07) 12.5% 25%),
    linear-gradient(200deg, #1e6440, #0b291c 75%);
  border: 3px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), var(--shadow-lg);
}
.lineup-pitch-halfline { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; background: rgba(255,255,255,0.4); }
.lineup-pitch-circle {
  position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; transform: translate(-50%, -50%);
}
.lineup-pitch-box {
  position: absolute; left: 50%; width: 44%; height: 13%; border: 2px solid rgba(255,255,255,0.4);
  transform: translateX(-50%);
}
.lineup-pitch-box.top { top: 0; border-top: none; }
.lineup-pitch-box.bottom { bottom: 0; border-bottom: none; }

.pitch-lineup-slot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2;
}
.pitch-lineup-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 2px 8px; color: #12140f;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.pitch-lineup-chip {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 84px; padding: 6px 8px; border-radius: 10px;
  background: linear-gradient(160deg, var(--card-hover), var(--card-solid));
  border: 2px solid var(--border-strong); box-shadow: var(--shadow);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.pitch-lineup-slot:hover .pitch-lineup-chip { border-color: var(--accent); transform: translateY(-2px); }
.pitch-lineup-slot.icon .pitch-lineup-chip { border-color: var(--icon); box-shadow: 0 0 16px -4px rgba(209, 153, 255, 0.6), var(--shadow); }
.pitch-lineup-rating { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--accent); line-height: 1.3; }
.pitch-lineup-name {
  font-weight: 700; font-size: 10.5px; text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 90px;
}
/* [DÜZELTİLDİ — BUG] Görünmez <select> artık chip'in TAMAMINI değil, sadece bu wrapper'ı
   (rating+isim) kaplıyor — swap okları wrapper'ın dışında olduğu için select'in tıklamayı
   yutması fiziksel olarak imkansız (bkz. views.js renderSlotAssignment, "select-wrap" notu). */
.pitch-lineup-select-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.pitch-lineup-select-native { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* [KULLANICI İSTEĞİ] "3 orta saha oyuncum var... x z y yapabilmeliyim" — aynı pozisyon
   tipindeki komşu slotlar arasında oyuncu takas oku (bkz. views.js renderSlotAssignment).
   Bilerek pozisyon SAHASININ (yukarıdaki .lineup-pitch-* ve .pitch-lineup-* bloğu) formatına
   dokunmuyor — sadece chip'in içine yeni bir satır ekliyor. Artık görünmez <select>'in dışında
   kaldığı için z-index'e bağımlı değil (bkz. yukarıdaki .pitch-lineup-select-wrap notu). */
.pitch-lineup-swap-row { display: flex; justify-content: space-between; gap: 4px; margin-top: 3px; }
.pitch-lineup-swap {
  position: relative; z-index: 5;
  width: 17px; height: 17px; border-radius: 50%; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-solid); border: 1px solid var(--border-strong); color: var(--text-faint);
  font-size: 9px; cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.pitch-lineup-swap:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.12); }
.pitch-lineup-swap.placeholder { visibility: hidden; cursor: default; }

/* ---------- Match ---------- */
/* [KULLANICI İSTEĞİ] "Skorbordda yamukluk var, skor alta kayıyor" — kök neden: maç sonucu
   kartında `.team` iki satırlı (isim + altında xG satırı, bkz. renderMatchResultCard) ama
   `.score` tek satırlı; `align-items:center` bunları KENDİ toplam yüksekliklerine göre
   ortalıyordu, bu da tek satırlık skoru iki satırlık isim bloğunun ortasına (isim satırının
   ALTINA doğru) kaydırıyordu. `flex-start` ile hepsi üstten hizalanıyor — isim ve skor artık
   aynı satırda, xG alttaki ekstra satır olarak sarkıyor (tek satırlı kullanımlarda zaten fark
   etmiyordu, hepsi eşit yükseklikteydi). */
.scoreline {
  display: flex; align-items: flex-start; justify-content: center; gap: 20px; padding: 18px 0;
}
.scoreline .team { font-weight: 700; font-size: 16px; width: 160px; text-align: center; }
/* [design.md "Tipografi"] Skor rakamları "gerçekten bağırmalı" — kondanse skorbord fontuna ve
   daha büyük bir ölçeğe geçti (mono yerine display). */
.scoreline .score { font-family: var(--font-display); font-size: 46px; font-weight: 800; color: var(--accent); min-width: 96px; text-align: center; text-shadow: 0 0 26px var(--gold-glow); letter-spacing: 0.5px; }
.scoreline .score span.flash { animation: score-pop 0.55s var(--ease); }
@keyframes score-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); color: var(--danger); } 100% { transform: scale(1); } }
.scoreline .xg { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 4px; }

/* [design.md "Hareket"] Kazananın açıklandığı an sade bir fade-in değil, yayın grafiği
   geçişi gibi (wipe) hissettirilsin — banner bir kenardan diagonal bir maskeyle açılıyor,
   şimmer artık saf altın (yeşil sızıntı yok, para/kazanma anlamı tek renkte tutarlı). */
.winner-banner {
  position: relative; text-align: center; padding: 30px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--gold-soft), transparent, var(--gold-soft));
  background-size: 200% 100%;
  border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 0.3px;
  box-shadow: 0 0 50px -12px var(--gold-glow);
  animation: banner-wipe-in 0.55s var(--ease), banner-shimmer 3.2s linear infinite 0.55s;
  overflow: visible;
}
@keyframes banner-wipe-in {
  0% { clip-path: polygon(0 0, 12% 0, 0% 100%, 0% 100%); opacity: 0; }
  100% { clip-path: polygon(0 0, 112% 0, 100% 100%, -12% 100%); opacity: 1; }
}
@keyframes banner-shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.winner-banner .trophy-icon { display: inline-block; font-size: 30px; animation: trophy-bounce 1.6s ease-in-out infinite; margin-right: 4px; }
@keyframes trophy-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-6px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-3px) rotate(5deg); } }

.standings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings-table th, .standings-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.standings-table th { color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.standings-table td { font-family: var(--font-mono); }
.standings-table td:first-child { font-family: var(--font-body); }
.standings-table td:first-child, .standings-table th:first-child { text-align: left; }
.standings-table tr.me td { color: var(--accent); font-weight: 800; }
.standings-table tr.winner td:first-child { color: var(--accent); }
.standings-table .rank-cell { color: var(--text-faint); font-weight: 800; width: 28px; }

/* ---------- Oyuncu Veritabanı ---------- */
/* [KULLANICI İSTEĞİ] "Filtreleme ve sıralama seçenekleri koy." */
.player-db-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.player-db-toolbar input, .player-db-toolbar select {
  background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text);
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; outline: none;
}
.player-db-toolbar input { flex: 1; min-width: 160px; }
.player-db-toolbar input:focus, .player-db-toolbar select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.player-db-table-wrap { overflow-x: auto; max-height: 62vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.pdb-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.pdb-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-elevated); color: var(--text-muted); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 800; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-strong);
}
.pdb-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.pdb-table tbody tr { transition: background 0.1s var(--ease); }
.pdb-table tbody tr:hover { background: var(--bg-elevated); }
.pdb-rating { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.pdb-name { font-weight: 600; }
.pdb-icon-tag { color: var(--icon); }
.pdb-pos {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: #12140f;
  padding: 3px 8px; border-radius: var(--radius-sm);
}
.pdb-value { font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.pdb-season { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }

.fixture-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

.match-result-card { display: flex; flex-direction: column; gap: 16px; }
.match-result-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.match-result-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-muted); letter-spacing: 1px; }
.match-result-tag { font-size: 11px; color: var(--text-faint); }

.scorer-columns { display: flex; gap: 16px; }
.scorer-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.scorer-list-team { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 2px; }
.scorer-row {
  font-size: 12.5px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bg-elevated);
  border: 1px solid var(--border); color: var(--text);
}
.scorer-empty { font-size: 12px; color: var(--text-faint); font-style: italic; }

.match-rating-pitches { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lineup-pitch.small { max-width: 300px; }
.lineup-pitch-title { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }

/* [DÜZELTİLDİ — BUG, KULLANICI GERİ BİLDİRİMİ] "Simülasyon kısmında saha kısmında isimler
   ekrana sığmıyor" — kök neden: chip/isim boyutları (.pitch-lineup-chip min-width:84px,
   .pitch-lineup-name max-width:90px) TAM boy saha (.lineup-pitch, 460px) için ayarlanmıştı;
   maç sonucu ekranındaki KÜÇÜK saha (.lineup-pitch.small, 300px — bkz. renderMatchLineupPitch)
   bu boyutları hiç küçültmeden miras alıyordu, bu yüzden aynı satırdaki 3-4 oyuncu chip'i
   üst üste biniyor/isimler kesiliyordu. Aşağıdaki blok SADECE .small varyantını (mobil
   @640px breakpoint'inden bağımsız olarak, masaüstünde de) orantılı şekilde küçültüyor —
   tam boy dizilim sahası (.lineup-pitch, seçim ekranı) hiç etkilenmiyor. */
.lineup-pitch.small .pitch-lineup-chip { min-width: 54px; padding: 4px 5px; border-radius: 8px; }
.lineup-pitch.small .pitch-lineup-name { font-size: 8px; max-width: 52px; }
.lineup-pitch.small .pitch-lineup-badge { font-size: 7.5px; padding: 1px 5px; }
.lineup-pitch.small .pitch-lineup-matchrating { font-size: 11px; }

.pitch-lineup-matchrating { font-family: var(--font-mono); font-weight: 700; font-size: 14px; line-height: 1.3; }
.pitch-lineup-chip.rating-great { border-color: var(--accent); box-shadow: 0 0 18px -4px var(--gold-glow), var(--shadow); }
.pitch-lineup-chip.rating-great .pitch-lineup-matchrating { color: var(--accent); text-shadow: 0 0 10px var(--gold-glow); }
.pitch-lineup-chip.rating-good { border-color: var(--success); }
.pitch-lineup-chip.rating-good .pitch-lineup-matchrating { color: var(--success); }
.pitch-lineup-chip.rating-poor { border-color: var(--danger); }
.pitch-lineup-chip.rating-poor .pitch-lineup-matchrating { color: var(--danger); }

/* ---------- Maç anlatımı + minyatür saha (birebir korunuyor) ---------- */
.match-live-layout { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.match-live-side { flex: 0 0 300px; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.match-live-log { flex: 1; min-width: 280px; }
.commentary-log { max-height: 320px; width: 100%; }
.commentary-log .row.goal { background: var(--gold-soft); border-color: var(--accent); color: var(--text); font-weight: 700; }
.commentary-log .row.red-card { background: var(--danger-soft); border-color: var(--danger); color: var(--text); font-weight: 700; }
.commentary-log .row.yellow-card { border-color: rgba(255, 182, 72, 0.5); }
/* [KULLANICI İSTEĞİ] "X futbolcu vuruyo, sonra goool diye çıkabilir" — sonucu açık etmeyen
   gerilim satırı, italik + hafif titreşen bir nokta ile "bekleniyor" hissi veriyor. */
.commentary-log .row.buildup { font-style: italic; color: var(--text-muted); border-style: dashed; }
.commentary-log .row.buildup::after { content: ' ⏳'; animation: dot-pulse 0.9s ease-in-out infinite; }

.mini-pitch { width: 100%; }
.pitch-field {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255,255,255,0.16) 0%, transparent 45%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 12.5%, rgba(0,0,0,0.07) 12.5% 25%),
    linear-gradient(160deg, #1e6440, #0b291c 75%);
  border: 3px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), inset 0 0 0 6px rgba(0,0,0,0.12), var(--shadow-lg);
}
.pitch-field::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(60px 60px at 4% 4%, rgba(255,255,255,0.25), transparent 70%),
    radial-gradient(60px 60px at 96% 4%, rgba(255,255,255,0.25), transparent 70%);
}
.pitch-halfline { position: absolute; left: 50%; top: 3%; bottom: 3%; width: 2px; background: rgba(255,255,255,0.45); transform: translateX(-50%); z-index: 1; }
.pitch-circle {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,0.45); border-radius: 50%; transform: translate(-50%, -50%); z-index: 1;
}
.pitch-circle::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.55); transform: translate(-50%, -50%);
}
.pitch-box {
  position: absolute; top: 50%; width: 13%; height: 46%; border: 2px solid rgba(255,255,255,0.45);
  transform: translateY(-50%); z-index: 1;
}
.pitch-box.left { left: 0; border-left: none; }
.pitch-box.right { right: 0; border-right: none; }
.pitch-goal {
  position: absolute; top: 50%; width: 4%; height: 22%; transform: translateY(-50%);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.65) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.65) 0 1px, transparent 1px 5px),
    rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 14px rgba(255,255,255,0.25);
  z-index: 1;
}
.pitch-goal.left { left: 0; border-radius: 0 4px 4px 0; border-left: none; }
.pitch-goal.right { right: 0; border-radius: 4px 0 0 4px; border-right: none; }
.pitch-ball {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0%, #fff 18%, transparent 20%),
    radial-gradient(circle at 68% 62%, rgba(0,0,0,0.25) 0%, transparent 30%),
    radial-gradient(circle at 35% 35%, #f4f7f5, #c7d0cb 65%, #8f9a93);
  box-shadow: 0 3px 8px rgba(0,0,0,0.55);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.3, 0.8, 0.4, 1), top 0.6s cubic-bezier(0.3, 0.8, 0.4, 1);
  animation: ball-idle 2.2s ease-in-out infinite;
  z-index: 3;
}
.pitch-ball::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 5px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.45), transparent 70%);
  transform: translateX(-50%);
}
@keyframes ball-idle { 0%, 100% { box-shadow: 0 3px 8px rgba(0,0,0,0.55); } 50% { box-shadow: 0 3px 16px rgba(255,255,255,0.4); } }
.pitch-flash {
  position: absolute; top: 10%; bottom: 10%; width: 20%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  opacity: 0; pointer-events: none; z-index: 2;
}
.pitch-flash.left { left: 0; }
.pitch-flash.right { right: 0; }
.pitch-flash.flash { animation: pitch-flash-anim 0.9s var(--ease); }
@keyframes pitch-flash-anim { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

.pitch-field::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: 0; border-radius: inherit;
}
.pitch-field.card-flash-yellow::after { background: rgba(255, 182, 72, 0.38); animation: card-flash-pulse 0.6s ease; }
.pitch-field.card-flash-red::after { background: rgba(255, 75, 62, 0.42); animation: card-flash-pulse 0.6s ease; }
@keyframes card-flash-pulse { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.pitch-caption {
  position: absolute; left: 50%; top: 8%; transform: translate(-50%, -8px) scale(0.85);
  padding: 6px 18px; font-weight: 800; font-size: 13px; letter-spacing: 0.3px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text);
  opacity: 0; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  white-space: nowrap; z-index: 4;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.pitch-caption.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pitch-caption.goal {
  background: var(--danger); border-color: var(--danger); color: #fff;
  font-size: 15px; box-shadow: 0 0 24px -4px var(--danger-glow); animation-name: caption-punch;
}
.pitch-caption.show.goal { animation: caption-punch 0.45s var(--ease); }
@keyframes caption-punch { 0% { transform: translate(-50%, 0) scale(0.6); } 55% { transform: translate(-50%, 0) scale(1.18); } 100% { transform: translate(-50%, 0) scale(1); } }
.pitch-caption.save { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.pitch-caption.miss { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

.pitch-confetti {
  position: absolute; top: 0; left: 50%; width: 6px; height: 10px; z-index: 5; pointer-events: none;
  animation: confetti-burst 0.9s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(-50%, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}
@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, 3px); }
  80% { transform: translate(3px, -2px); }
}
.match-live-layout.shake { animation: screen-shake 0.4s ease-in-out; }

.match-clock {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--accent); background: var(--gold-soft);
  border: 1px solid var(--accent); padding: 6px 20px; align-self: center;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.playback-controls { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================================================
   Korunan bölüm sonu.
   ============================================================================================ */

/* ---------- Toasts ---------- */
.toast-host { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast {
  background: var(--card-solid); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 11px 18px; font-size: 13px; box-shadow: var(--shadow-lg); animation: toast-in 0.25s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.muted { color: var(--text-muted); }
.error-text { color: var(--danger); font-size: 13px; margin-top: 6px; min-height: 16px; }

@media (max-width: 880px) {
  .lobby-hero-split { grid-template-columns: 1fr; gap: 24px; text-align: center; max-width: 560px; }
  .lobby-hero-col, .lobby-hero-col .lobby-title, .lobby-hero-col .lobby-sub { text-align: center; }
  .lobby-hero-col .lobby-sub { margin-inline: auto; }
  .lobby-cards-col .lobby-mode-picker { grid-template-columns: 1fr 1fr; }
  .lobby-decor { display: none; }
}

@media (max-width: 640px) {
  .lobby-mode-picker { grid-template-columns: 1fr; }
  .lobby-features { grid-template-columns: 1fr; }
  .player-slots { grid-template-columns: 1fr; }
  .player-db-toolbar { flex-direction: column; }
  .player-db-toolbar input, .player-db-toolbar select { width: 100%; }
  .topbar-link { padding: 6px 9px; font-size: 11px; }
  .reveal-row { flex-direction: column; align-items: center; }
  .match-live-layout { flex-direction: column; }
  .match-live-side { flex-basis: auto; width: 100%; }
  .topbar { padding: 11px 16px; }
  .app { padding: 20px 14px 70px; }
  .pitch-lineup-chip { min-width: 56px; padding: 4px 5px; border-radius: 8px; }
  .pitch-lineup-name { font-size: 8px; max-width: 54px; }
  .pitch-lineup-rating { font-size: 10.5px; }
  .pitch-lineup-badge { font-size: 7.5px; padding: 1px 5px; }
  .scorer-columns { flex-direction: column; }

  /* [KULLANICI İSTEĞİ] "Mobil uyumlu yap" — .scoreline'ın iki sabit-genişlikli takım kutusu
     (160px×2) + skor (min 96px) + boşluklar telefon genişliğinde (~360-430px) panel içine
     sığmıyordu, yatay taşma yaratıyordu. Dar ekranda dikey istifleniyor: takım / skor / takım. */
  .scoreline { flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
  .scoreline .team { width: auto; }
  .scoreline .score { font-size: 34px; }

  /* Üst bar durum şeridi (bağlantı · oda · isim · bütçe) tek satırda nowrap olduğu için uzun
     içerikte sayfayı yatay taşırabiliyordu — artık kendi satırına düşüyor ve gerekirse kendi
     içinde yatay kaydırılıyor (sayfa genelini etkilemez). */
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-status { overflow-x: auto; max-width: 62vw; }

  /* Toast'lar sağda sabit genişlikte taşarak/kırpılarak durabiliyordu — dar ekranda alttan
     kenardan kenara, üstte yeterli boşluk bırakılarak. */
  .toast-host { left: 12px; right: 12px; bottom: 12px; }
  .toast { width: 100%; }
}
