@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #0d4a2b;
  --green-dark: #061f13;
  --green-felt: #147a45;
  --green-light: #1a9e58;
  --gold: #d4a843;
  --gold-light: #f0d078;
  --red: #ef4444;
  --red-suit: #dc2626;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --card-width: 72px;
  --card-height: 104px;
  --radius: 14px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 20px rgba(212,168,67,0.3);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--green-dark);
  color: #fff;
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.screen { display: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.screen.active { display: flex; }
.hidden { display: none !important; }

/* ========== LOBI — Modern Glass Design ========== */
.lobby-container {
  width: 100%; max-width: 440px; margin: auto; padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}

.logo {
  text-align: center;
  animation: logoIn 0.8s var(--transition) both;
}
.logo h1 {
  font-size: 52px; font-weight: 900; letter-spacing: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(212,168,67,0.4));
}
.logo p {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.4);
  letter-spacing: 3px; text-transform: uppercase; margin-top: 6px;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.name-input input {
  width: 300px; padding: 16px 24px; border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(10px);
  color: #fff; font-size: 16px; font-weight: 500; text-align: center;
  outline: none; transition: all 0.25s var(--transition);
}
.name-input input:focus { border-color: var(--gold); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(212,168,67,0.15); }
.name-input input::placeholder { color: rgba(255,255,255,0.2); font-weight: 400; }

.lobby-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.btn {
  padding: 13px 26px; border: none; border-radius: 12px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: linear-gradient(135deg, var(--gold), #c49530); color: #1a1a1a; }
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.08); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-small { padding: 8px 14px; font-size: 12px; }

/* Devam eden oyun banner */
.rejoin-banner {
  width: 100%; max-width: 400px; padding: 16px 20px;
  background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(212,168,67,0.05));
  border: 1.5px solid var(--gold); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  animation: bannerPulse 2s ease-in-out infinite;
}
.rejoin-banner > .rejoin-info { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rejoin-banner span { font-weight: 700; font-size: 14px; color: var(--gold); }
.rejoin-timer { font-size: 20px; font-weight: 900; color: #f0c040; letter-spacing: 1px; }
.rejoin-actions { display: flex; gap: 8px; }
@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,0); }
  50% { box-shadow: 0 0 16px 4px rgba(212,168,67,0.2); }
}
.btn-gold {
  background: linear-gradient(135deg, #f0c040, #d4a030, #f0d060);
  color: #1a1a1a; font-weight: 700;
  box-shadow: 0 2px 12px rgba(212,168,67,0.3);
}
.btn-gold:hover { box-shadow: 0 4px 24px rgba(212,168,67,0.5); transform: translateY(-2px); }

/* Room List */
.room-list { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.room-list::-webkit-scrollbar { width: 4px; }
.room-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.room-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: rgba(255,255,255,0.03); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05); cursor: pointer;
  transition: all 0.2s var(--transition);
}
.room-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(212,168,67,0.2); transform: translateX(4px); }
.room-item-info { display: flex; flex-direction: column; gap: 3px; }
.room-item-name { font-weight: 600; font-size: 14px; }
.room-item-meta { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 500; }
.room-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.room-item-players { font-weight: 800; color: var(--gold); font-size: 16px; }
.room-bot-count { font-size: 10px; font-weight: 600; color: var(--green-light); background: rgba(26,158,88,0.15); padding: 2px 8px; border-radius: 6px; }
.room-status { font-weight: 600; }
.room-status.playing { color: var(--green-light); }
.room-players-list { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.room-player-tag {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
}
.room-player-tag.human { background: rgba(212,168,67,0.15); color: var(--gold); }
.room-player-tag.bot { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); }
.room-item.room-full { opacity: 0.4; cursor: default; }
.room-item.room-full:hover { transform: none; border-color: rgba(255,255,255,0.05); }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  animation: fadeIn 0.2s ease;
}
.modal.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: linear-gradient(145deg, #14332a, #0d261e);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 32px; width: 360px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.3s var(--transition) both;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } }

.modal-content h3 { margin-bottom: 24px; font-size: 22px; font-weight: 800; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; color: rgba(255,255,255,0.35);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}
.toggle-group { display: flex; gap: 6px; }
.toggle {
  flex: 1; padding: 11px 8px; border: 1.5px solid rgba(255,255,255,0.08); border-radius: 10px;
  background: transparent; color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s var(--transition);
}
.toggle.active { border-color: var(--gold); color: var(--gold); background: rgba(212,168,67,0.08); }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

/* ========== BEKLEME ========== */
.waiting-container {
  width: 100%; max-width: 520px; margin: auto; padding: 32px 16px;
  text-align: center; animation: fadeIn 0.4s ease;
}
.waiting-container h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }

/* ===== MASA LAYOUT — Gerçek masa görünümü ===== */
.table-layout {
  position: relative; width: 100%; aspect-ratio: 1 / 1.1;
  max-width: 400px; margin: 0 auto 20px;
}

/* Masa yüzeyi — ortadaki yeşil alan */
.table-surface {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60%; height: 50%;
  background: radial-gradient(ellipse at center, #1a6b3f 0%, #0d4a2b 80%, #082f1b 100%);
  border-radius: 50%;
  border: 3px solid rgba(201,169,110,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 0 40px rgba(0,0,0,0.2);
}
.table-felt {
  width: 100%; height: 100%; position: relative;
  border-radius: 50%; overflow: hidden;
}
.table-felt::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Takım çizgileri (eşli modda) */
.team-display { position: absolute; inset: 0; }
.team-line {
  position: absolute; background: rgba(212,168,67,0.2);
}
.team-line-1 {
  top: 20%; left: 50%; width: 2px; height: 60%;
  transform: translateX(-50%) rotate(45deg);
}
.team-line-2 {
  top: 20%; left: 50%; width: 2px; height: 60%;
  transform: translateX(-50%) rotate(-45deg);
}
.team-label {
  position: absolute; font-size: 9px; font-weight: 700; color: var(--gold);
  background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 6px;
  letter-spacing: 1px; text-transform: uppercase;
}
.team-label-1 { top: 50%; left: 8px; transform: translateY(-50%); }
.team-label-2 { top: 50%; right: 8px; transform: translateY(-50%); }

/* Koltuklar — masa etrafında konumlandırma */
.table-seat {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.table-seat .seat-slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px; background: rgba(255,255,255,0.02); border-radius: 16px;
  border: 2px dashed rgba(255,255,255,0.08); transition: all 0.3s var(--transition);
  min-width: 100px; position: relative;
}
.table-seat .seat-slot.filled {
  border-style: solid; border-color: var(--gold);
  background: rgba(212,168,67,0.06);
  box-shadow: 0 0 16px rgba(212,168,67,0.1);
}
.table-seat .seat-slot.is-bot {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}
.table-seat .seat-slot.is-bot .seat-avatar {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
}

/* Koltuk pozisyonları */
.table-seat-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.table-seat-top { top: 0; left: 50%; transform: translateX(-50%); }
.table-seat-left { left: 0; top: 50%; transform: translateY(-50%); }
.table-seat-right { right: 0; top: 50%; transform: translateY(-50%); }

.seat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  transition: all 0.3s var(--transition);
}
.seat-slot.filled .seat-avatar { background: linear-gradient(135deg, var(--gold), #c49530); color: #1a1a1a; }
.seat-name { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 500; white-space: nowrap; }
.seat-slot.filled .seat-name { color: #fff; font-weight: 600; }

/* Koltuk kontrolleri (bot ekle/çıkar) */
.seat-controls { display: flex; gap: 4px; margin-top: 2px; }
.seat-btn {
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
  font-size: 10px; font-weight: 600; cursor: pointer;
  transition: all 0.2s var(--transition);
}
.seat-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.seat-btn-add { border-color: rgba(26,158,88,0.3); color: var(--green-light); }
.seat-btn-add:hover { background: rgba(26,158,88,0.15); border-color: var(--green-light); }
.seat-btn-remove { border-color: rgba(239,68,68,0.3); color: #ef4444; }
.seat-btn-remove:hover { background: rgba(239,68,68,0.1); border-color: #ef4444; }

/* Eş göstergesi */
.seat-partner-badge {
  position: absolute; top: -8px; right: -8px;
  font-size: 10px; padding: 2px 6px; border-radius: 6px;
  background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-weight: 700;
}

/* Eşli mod takım config */
.team-config {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-bottom: 16px; padding: 10px 16px;
  background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
}
.team-config label { font-size: 13px; font-weight: 700; color: #a78bfa; }
.partner-select {
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 12px; font-weight: 500;
  cursor: pointer; outline: none;
}
.partner-select option { background: #1a2e1a; color: #fff; }

.waiting-info {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 16px; font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 500;
}
.waiting-actions { display: flex; gap: 12px; justify-content: center; }

/* Mobil bekleme odası */
@media (max-width: 640px) {
  .table-layout { max-width: 340px; }
  .table-seat .seat-slot { padding: 8px 10px; min-width: 80px; }
  .seat-avatar { width: 36px; height: 36px; font-size: 16px; }
  .seat-name { font-size: 11px; }
  .seat-btn { font-size: 9px; padding: 3px 8px; }
  .table-surface { width: 55%; height: 45%; }
}
@media (max-width: 380px) {
  .table-layout { max-width: 300px; }
  .table-seat .seat-slot { padding: 6px 8px; min-width: 70px; }
  .seat-avatar { width: 32px; height: 32px; font-size: 14px; }
  .seat-name { font-size: 10px; }
}

/* ========== OYUN MASASI ========== */
.game-table {
  width: 100%; height: 100%; position: relative;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(26,158,88,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at center, var(--green) 0%, var(--green-dark) 100%);
  overflow: hidden;
}

/* Masa çuha dokusu — CSS noise */
.game-table::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5; pointer-events: none;
}

/* Oval masa çizgisi */
.game-table::after {
  content: ''; position: absolute;
  top: 12%; left: 10%; right: 10%; bottom: 20%;
  border: 2px solid rgba(255,255,255,0.04);
  border-radius: 50%; pointer-events: none;
}

/* HUD */
.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  font-size: 13px; font-weight: 600;
}
.hud-center { color: var(--gold); font-weight: 700; display: flex; justify-content: center; }
.hud-trump {
  padding: 6px 18px; border-radius: 10px; font-size: 16px; font-weight: 800;
  background: rgba(0,0,0,0.5); border: 2px solid var(--gold);
  color: var(--gold); letter-spacing: 1px;
  box-shadow: 0 0 16px rgba(212,168,67,0.25);
  display: flex; align-items: center; gap: 6px;
}
.hud-trump .trump-symbol {
  font-size: 22px; line-height: 1;
}
.hud-trump .trump-bidder {
  font-size: 11px; font-weight: 600; opacity: 0.7;
  margin-left: 2px;
}
.hud-trump.suit-hearts .trump-symbol, .hud-trump.suit-diamonds .trump-symbol { color: #ef4444; }
.hud-trump.suit-spades .trump-symbol, .hud-trump.suit-clubs .trump-symbol { color: #fff; }
.hud-left, .hud-right { display: flex; gap: 16px; }
.hud span {
  padding: 4px 10px; background: rgba(0,0,0,0.25);
  border-radius: 8px; font-size: 12px;
}

/* Oyuncu alanları */
.player-area {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all 0.3s var(--transition); z-index: 5;
}
.player-top { top: 50px; left: 50%; transform: translateX(-50%); }
.player-bottom { bottom: 160px; left: 50%; transform: translateX(-50%); }
.player-left { left: 40px; top: 45%; transform: translateY(-50%); }
.player-right { right: 40px; top: 45%; transform: translateY(-50%); }

.player-info {
  display: flex; align-items: center; gap: 8px; padding: 7px 16px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  border-radius: 24px; font-size: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--transition);
}
.player-name { font-weight: 600; font-size: 12px; }
.player-tricks {
  background: linear-gradient(135deg, var(--gold), #c49530);
  color: #1a1a1a; border-radius: 50%;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
  box-shadow: 0 2px 6px rgba(212,168,67,0.3);
}

.player-area.current-turn .player-info {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212,168,67,0.25);
  animation: turnPulse 2s ease-in-out infinite;
}
@keyframes turnPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(212,168,67,0.2); }
  50% { box-shadow: 0 0 28px rgba(212,168,67,0.4); }
}

.player-area.is-bidder .player-name::after { content: ' ★'; color: var(--gold); }

/* Oyuncu timer badge — herkes görür */
.player-timer-badge {
  position: absolute; top: -10px; right: -10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.8); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
  box-shadow: 0 0 12px rgba(212,168,67,0.3);
  z-index: 12; transition: all 0.3s;
}
.player-timer-badge.timer-warning {
  border-color: #f59e0b; color: #f59e0b;
  box-shadow: 0 0 12px rgba(245,158,11,0.4);
}
.player-timer-badge.timer-danger {
  border-color: #ef4444; color: #ef4444;
  box-shadow: 0 0 16px rgba(239,68,68,0.5);
  animation: timerShake 0.4s ease-in-out infinite;
}

/* Karşı oyuncuların kartları (arka yüz) */
.player-cards { display: flex; }
.player-cards .card-back {
  width: 32px; height: 46px;
  background: linear-gradient(145deg, #1a3c5e, #0f2840);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 4px; margin-left: -10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.player-cards .card-back:first-child { margin-left: 0; }

/* ========== ORTA ALAN — Atılan Kartlar ========== */
.trick-area {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  width: 220px; height: 220px; z-index: 8;
}
.trick-card {
  position: absolute;
  /* Boyut cardLayout.js sizeTrickArea() tarafından set edilir */
  perspective: 600px;
}
.trick-card[data-pos="top"] { top: -5px; left: 50%; transform: translateX(-50%); }
.trick-card[data-pos="bottom"] { bottom: -5px; left: 50%; transform: translateX(-50%); }
.trick-card[data-pos="left"] { left: -5px; top: 50%; transform: translateY(-50%); }
.trick-card[data-pos="right"] { right: -5px; top: 50%; transform: translateY(-50%); }

.trick-card img {
  width: 100%; height: 100%; border-radius: 8px;
  box-shadow: var(--shadow-card);
  animation: cardDrop 0.35s var(--transition) both;
}

@keyframes cardDrop {
  from { opacity: 0; transform: scale(1.3) translateY(-30px) rotate(5deg); }
  to { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); }
}

/* Kazanan kartlara glow */
.trick-card.winner img {
  box-shadow: 0 0 24px rgba(212,168,67,0.6), var(--shadow-card);
  animation: winGlow 0.6s ease both;
}
@keyframes winGlow {
  0% { box-shadow: var(--shadow-card); }
  50% { box-shadow: 0 0 40px rgba(212,168,67,0.8), var(--shadow-card); }
  100% { box-shadow: 0 0 24px rgba(212,168,67,0.4), var(--shadow-card); }
}

/* Toplama animasyonu */
.trick-card.collecting img {
  animation: collectCard 0.5s var(--transition) forwards;
}
@keyframes collectCard {
  to { opacity: 0; transform: scale(0.3) translateY(-60px); }
}

/* ========== İHALE PANELİ ========== */
.bidding-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px 32px;
  text-align: center; z-index: 20;
  animation: panelIn 0.3s var(--transition) both;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
@keyframes panelIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.bidding-panel h3 {
  margin-bottom: 18px; color: var(--gold);
  font-size: 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.bid-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 320px; }
.bid-btn {
  width: 54px; height: 54px; border: 1.5px solid rgba(255,255,255,0.1); border-radius: 12px;
  background: rgba(255,255,255,0.04); color: #fff; font-size: 20px; font-weight: 800;
  cursor: pointer; transition: all 0.15s var(--transition);
}
.bid-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(212,168,67,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212,168,67,0.2);
}
.bid-btn:active { transform: scale(0.95); }
.bid-btn.pass {
  width: auto; padding: 0 24px; font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.5); border-color: rgba(239,68,68,0.3);
}
.bid-btn.pass:hover { color: var(--red); border-color: var(--red); background: rgba(239,68,68,0.1); }

/* ========== KOZ SEÇİMİ ========== */
.trump-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px 32px;
  text-align: center; z-index: 20;
  animation: panelIn 0.3s var(--transition) both;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.trump-panel h3 {
  margin-bottom: 18px; color: var(--gold);
  font-size: 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.trump-buttons { display: flex; gap: 10px; }
.trump-btn {
  padding: 16px 22px; border: 1.5px solid rgba(255,255,255,0.08); border-radius: 14px;
  background: rgba(255,255,255,0.03); color: #fff;
  font-size: 24px; font-weight: 700; cursor: pointer;
  transition: all 0.2s var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.trump-btn span { font-size: 11px; font-weight: 600; opacity: 0.5; }
.trump-btn:hover {
  border-color: var(--gold); background: rgba(212,168,67,0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.trump-btn[data-suit="hearts"], .trump-btn[data-suit="diamonds"] { color: var(--red-suit); }

/* ========== OYUNCU ELİ — Transform-based layout (cardLayout.js kontrol eder) ========== */
.hand-area {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  z-index: 15;
  transition: background 0.3s var(--transition);
  overflow: visible;
}

.hand-card {
  /* Boyut ve pozisyon cardLayout.js tarafından set edilir */
  position: absolute;
  cursor: pointer;
  transition: bottom 0.2s var(--transition), transform 0.2s var(--transition), filter 0.2s var(--transition), z-index 0s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  transform-origin: bottom center;
}

/* Hover/select artık JS tarafından yönetilir (cardLayout.js) */
.hand-card.playable { cursor: pointer; }
.hand-card.not-playable {
  cursor: default;
  opacity: 0.75;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) brightness(0.8);
}
/* İhale/koz sırasında: kartlar tam görünür, hover yok */
.hand-card.view-only {
  cursor: default;
  opacity: 1;
}

/* Sıra bende: el alanı parlak */
.hand-area.my-turn {
  background: linear-gradient(0deg, rgba(212,168,67,0.15) 0%, rgba(212,168,67,0.05) 40%, transparent 100%);
}
.hand-area.my-turn::before {
  content: 'Sıra Sende'; position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--gold);
  background: rgba(0,0,0,0.6); padding: 4px 14px; border-radius: 8px;
  animation: turnPulse 2s ease-in-out infinite;
}
.hand-card img { width: 100%; height: 100%; border-radius: 8px; pointer-events: none; }

/* Kart dağıtım animasyonu */
.hand-card.dealing {
  animation: dealCard 0.4s var(--transition) both;
}
@keyframes dealCard {
  from { opacity: 0; transform: translateY(-200px) scale(0.5) rotate(-15deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

/* ========== PARTİKÜL & EFEKT KATMANI ========== */
#particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
}

.particle {
  position: absolute; border-radius: 50%;
  animation: particleFly 0.8s ease-out forwards;
  pointer-events: none;
}
@keyframes particleFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* Sparkle */
.sparkle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-light);
  animation: sparkle 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes sparkle {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

/* King efekti */
.king-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.king-text {
  font-size: 72px; font-weight: 900; letter-spacing: 12px;
  background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: kingPop 0.5s var(--transition) both;
  filter: drop-shadow(0 0 40px rgba(255,215,0,0.6));
}
@keyframes kingPop {
  0% { opacity: 0; transform: scale(0.3) rotate(-5deg); }
  60% { transform: scale(1.2) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ========== TOAST / BİLDİRİM ========== */
.notification {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  padding: 12px 28px; border-radius: 14px; font-size: 14px; font-weight: 600;
  z-index: 999; backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  animation: toastIn 0.3s var(--transition) both;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.notification.success { background: rgba(34,197,94,0.9); }
.notification.error { background: rgba(239,68,68,0.9); }
.notification.info { background: rgba(59,130,246,0.85); }

/* ========== BOT OYLAMA & KOPMA ========== */
.bot-vote-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px; text-align: center; z-index: 30;
  animation: panelIn 0.3s var(--transition) both;
}
.bot-vote-panel p { margin-bottom: 16px; font-weight: 500; }

.disconnect-notif {
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%);
  background: rgba(239,68,68,0.85); backdrop-filter: blur(8px);
  border-radius: 12px; padding: 12px 24px; z-index: 25;
  font-size: 13px; text-align: center; font-weight: 500;
  animation: toastIn 0.3s var(--transition) both;
}

/* ========== SKOR TABLOSU ========== */
.score-popup {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.9); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 32px; text-align: center; z-index: 25;
  min-width: 280px; animation: panelIn 0.3s var(--transition) both;
}
.score-popup h3 {
  font-size: 18px; font-weight: 700; color: var(--gold);
  margin-bottom: 16px; letter-spacing: 2px; text-transform: uppercase;
}
.score-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px;
}
.score-row:last-child { border: none; }
.score-row .name { font-weight: 600; }
.score-row .pts { font-weight: 800; color: var(--gold); }
.score-row .pts.negative { color: var(--red); }

/* ========== İHALE TABLOSU ========== */
.bid-display {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 18;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 12px 18px;
  animation: panelIn 0.3s var(--transition) both;
}
.bid-display-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 64px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--transition);
}
.bid-display-name {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px;
}
.bid-display-value {
  font-size: 24px; font-weight: 900; color: #fff;
  line-height: 1;
}
.bid-display-item.passed { opacity: 0.4; }
.bid-display-item.passed .bid-display-value { color: rgba(255,255,255,0.3); font-size: 14px; }
.bid-display-item.highest {
  border-color: var(--gold); background: rgba(212,168,67,0.1);
}
.bid-display-item.highest .bid-display-value { color: var(--gold); }
.bid-display-item.current {
  border-color: var(--blue); box-shadow: 0 0 12px rgba(59,130,246,0.3);
}

/* ========== İLAN OVERLAY ========== */
.announce-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  gap: 20px;
}
.announce-bid-log {
  display: flex; gap: 12px; margin-bottom: 12px;
}
.announce-bid-entry {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.announce-bid-entry.winner {
  border-color: var(--gold); background: rgba(212,168,67,0.15);
  box-shadow: 0 0 20px rgba(212,168,67,0.3);
}
.announce-bid-entry .entry-name {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
}
.announce-bid-entry .entry-bid {
  font-size: 28px; font-weight: 900; color: #fff;
}
.announce-bid-entry.winner .entry-bid { color: var(--gold); }
.announce-bid-entry.entry-passed .entry-bid {
  font-size: 16px; color: rgba(255,255,255,0.3);
}

.announce-winner {
  text-align: center; animation: kingPop 0.5s var(--transition) both;
}
.announce-winner-name {
  font-size: 32px; font-weight: 900; color: var(--gold);
  text-shadow: 0 0 30px rgba(212,168,67,0.5);
}
.announce-winner-bid {
  font-size: 72px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 16px rgba(212,168,67,0.5));
}
.announce-trump {
  text-align: center; animation: kingPop 0.5s var(--transition) 0.3s both;
}
.announce-trump-label {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 8px;
}
.announce-trump-suit {
  font-size: 80px; line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}
.announce-trump-name {
  font-size: 20px; font-weight: 800; margin-top: 4px;
}
.announce-trump.suit-hearts .announce-trump-suit,
.announce-trump.suit-diamonds .announce-trump-suit,
.announce-trump.suit-hearts .announce-trump-name,
.announce-trump.suit-diamonds .announce-trump-name { color: #ef4444; }
.announce-trump.suit-spades .announce-trump-suit,
.announce-trump.suit-clubs .announce-trump-suit,
.announce-trump.suit-spades .announce-trump-name,
.announce-trump.suit-clubs .announce-trump-name { color: #fff; }

/* ========== OYUN DURDU OVERLAY ========== */
.game-paused-overlay {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.game-paused-content {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.game-paused-icon {
  font-size: 64px; opacity: 0.8;
  animation: pausePulse 2s ease-in-out infinite;
}
@keyframes pausePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}
.game-paused-title {
  font-size: 32px; font-weight: 900; color: var(--gold);
  letter-spacing: 6px; text-transform: uppercase;
}
.game-paused-msg {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.6);
  max-width: 320px; line-height: 1.5;
}
.game-paused-timer {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 8px;
}
.game-paused-seconds {
  font-size: 56px; font-weight: 900; color: #fff;
  line-height: 1;
}
.game-paused-label {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 2px;
}
.game-paused-rejoin {
  margin-top: 20px; padding: 16px 48px; font-size: 18px;
  animation: pausePulse 2s ease-in-out infinite;
}

/* ========== EL KAZANAN BANNER ========== */
.trick-winner-banner {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  z-index: 22;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
  border: 1.5px solid var(--gold);
  border-radius: 16px; padding: 10px 28px;
  display: flex; align-items: center; gap: 8px;
  animation: trickBannerIn 0.35s var(--transition) both;
  box-shadow: 0 0 24px rgba(212,168,67,0.3);
}
.trick-winner-banner .twb-icon {
  color: var(--gold); font-size: 18px;
}
.trick-winner-banner .twb-name {
  font-size: 18px; font-weight: 800; color: var(--gold);
}
.trick-winner-banner .twb-text {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6);
}
@keyframes trickBannerIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  60% { transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ========== GERİ SAYIM TIMER ========== */
.turn-timer-ring {
  position: absolute; bottom: 148px; right: 20px; z-index: 18;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.turn-timer-ring svg {
  position: absolute; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.turn-timer-ring .timer-bg {
  fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 4;
}
.turn-timer-ring .timer-fg {
  fill: none; stroke: var(--gold); stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s linear, stroke 0.3s;
}
.turn-timer-ring .timer-text {
  position: relative; z-index: 1;
  font-size: 22px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.turn-timer-ring.timer-urgent {
  animation: timerShake 0.4s ease-in-out infinite;
}
@keyframes timerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* ========== SKOR TABLOSU PANELİ ========== */
.btn-scoreboard {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 4px 10px; font-size: 16px;
  cursor: pointer; transition: all 0.2s var(--transition);
  line-height: 1;
}
.btn-scoreboard:hover {
  background: rgba(212,168,67,0.15); border-color: var(--gold);
  transform: scale(1.1);
}
.btn-mic.mic-active {
  background: rgba(239,68,68,0.2); border-color: #ef4444;
  animation: micPulse 1.5s ease-in-out infinite;
}
.btn-exit:hover {
  background: rgba(239,68,68,0.2); border-color: #ef4444;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 8px 2px rgba(239,68,68,0.4); }
}

.scoreboard-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.92); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 0; z-index: 35;
  min-width: 320px; max-width: 420px; width: 90%;
  animation: panelIn 0.3s var(--transition) both;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}
.scoreboard-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scoreboard-header h3 {
  font-size: 18px; font-weight: 800; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
}
.scoreboard-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 28px; cursor: pointer; line-height: 1; padding: 0 4px;
  transition: color 0.2s;
}
.scoreboard-close:hover { color: #fff; }

.scoreboard-body { padding: 16px 24px 24px; }

.scoreboard-table {
  width: 100%; border-collapse: collapse;
}
.scoreboard-table th {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 8px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scoreboard-table th:not(:first-child) { text-align: center; }
.scoreboard-table td {
  padding: 10px 8px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.scoreboard-table td:not(:first-child) { text-align: center; }
.scoreboard-table tr.me td { color: var(--gold); }
.scoreboard-table .score-total {
  font-size: 20px; font-weight: 900;
}
.scoreboard-table .score-negative { color: var(--red); }
.scoreboard-table .score-positive { color: var(--green-light); }

/* ========== RESPONSİVE — TABLET ========== */
@media (max-width: 768px) {
  /* Kart boyutları cardLayout.js tarafından yönetilir */

  .hud { padding: 8px 12px; font-size: 11px; }
  .hud span { padding: 3px 7px; font-size: 10px; }
  .hud-left, .hud-right { gap: 6px; }
  .hud-trump { padding: 4px 10px; font-size: 13px; }
  .hud-trump .trump-symbol { font-size: 18px; }

  .player-top { top: 44px; }
  .player-bottom { bottom: 155px; }
  .player-left { left: 20px; top: 45%; }
  .player-right { right: 20px; top: 45%; }
  .player-info { padding: 5px 10px; gap: 5px; }
  .player-name { font-size: 11px; }
  .player-tricks { width: 20px; height: 20px; font-size: 10px; }
  .player-timer-badge { width: 28px; height: 28px; font-size: 12px; top: -8px; right: -8px; }

  /* trick-area ve card boyutları cardLayout.js tarafından yönetilir */

  .game-table::after {
    top: 10%; left: 6%; right: 6%; bottom: 22%;
  }
}

/* ========== RESPONSİVE — MOBİL ========== */
@media (max-width: 640px) {
  /* Kart boyutları cardLayout.js tarafından yönetilir */

  .lobby-container { padding: 20px 16px; }
  .logo h1 { font-size: 40px; letter-spacing: 6px; }
  .name-input input { width: 260px; }
  .bidding-panel, .trump-panel { padding: 20px 24px; }
  .trump-btn { padding: 12px 16px; font-size: 20px; }
  .bid-btn { width: 46px; height: 46px; font-size: 17px; }

  /* HUD — iki satır yapısı, butonlar her zaman görünür */
  .hud {
    padding: 4px 8px;
    font-size: 10px;
    flex-wrap: wrap;
    gap: 2px;
  }
  .hud-left {
    display: flex; flex-wrap: nowrap; gap: 3px;
    align-items: center;
    min-width: 0; flex: 1;
    overflow: hidden;
  }
  .hud-center { display: none; }
  .hud-right {
    display: flex; gap: 3px; align-items: center;
    flex-shrink: 0;
  }
  .hud span { padding: 2px 5px; font-size: 9px; white-space: nowrap; }
  .hud-trump {
    padding: 2px 6px; font-size: 10px;
    max-width: 120px; overflow: hidden;
  }
  .hud-trump .trump-symbol { font-size: 13px; }
  .hud-trump .trump-bidder { font-size: 8px; display: none; }
  .btn-scoreboard { padding: 3px 6px; font-size: 13px; min-width: 28px; }

  /* Oyuncu alanları */
  .player-top { top: 38px; }
  .player-bottom { bottom: 170px; }
  .player-left { left: 2px; top: 35%; }
  .player-right { right: 2px; top: 35%; }
  .player-info { padding: 4px 8px; gap: 4px; border-radius: 16px; }
  .player-name { font-size: 10px; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .player-tricks { width: 18px; height: 18px; font-size: 9px; }
  .player-timer-badge { width: 22px; height: 22px; font-size: 10px; top: -6px; right: -6px; border-width: 1.5px; }

  /* cardLayout.js yönetir — sadece my-turn label küçültülür */
  .hand-area.my-turn::before { font-size: 10px; top: -22px; padding: 3px 10px; }

  /* Turn timer — sağ üste */
  .turn-timer-ring {
    width: 42px; height: 42px;
    bottom: auto; top: 40px; right: 8px;
    z-index: 20;
  }
  .turn-timer-ring .timer-text { font-size: 16px; }

  .game-table::after {
    top: 8%; left: 4%; right: 4%; bottom: 28%;
  }

  /* Skor popup */
  .score-popup { width: 85vw; padding: 16px; }
  .score-popup h3 { font-size: 18px; }

  /* İhale display */
  .bid-display { padding: 8px 12px; gap: 5px; top: 48px; }
  .bid-display-item { min-width: 50px; padding: 6px 6px; }
  .bid-display-name { font-size: 9px; max-width: 48px; }
  .bid-display-value { font-size: 18px; }

  /* Announce overlay */
  .announce-winner-bid { font-size: 48px; }
  .announce-winner-name { font-size: 24px; }
  .announce-trump-suit { font-size: 56px; }
  .announce-bid-entry { padding: 6px 10px; }
  .announce-bid-entry .entry-bid { font-size: 20px; }
}

/* ========== RESPONSİVE — KÜÇÜK MOBİL ========== */
@media (max-width: 380px) {
  .logo h1 { font-size: 32px; }
  .player-name { max-width: 42px; font-size: 9px; }
  .turn-timer-ring { width: 36px; height: 36px; }
  .turn-timer-ring .timer-text { font-size: 14px; }
  .btn-scoreboard { padding: 2px 4px; font-size: 11px; }
}

/* ========== RESPONSİVE — LANDSCAPE MOBİL ========== */
@media (max-height: 500px) and (orientation: landscape) {
  /* Kart boyutları cardLayout.js tarafından yönetilir */

  .hud { padding: 2px 8px; font-size: 9px; }
  .hud span { font-size: 8px; padding: 2px 4px; }
  .hud-trump { padding: 2px 6px; font-size: 9px; }
  .hud-trump .trump-symbol { font-size: 12px; }
  .btn-scoreboard { padding: 2px 5px; font-size: 12px; }

  .player-top { top: 24px; }
  .player-bottom { bottom: 98px; }
  .player-left { left: 60px; top: 42%; }
  .player-right { right: 60px; top: 42%; }
  .player-info { padding: 2px 6px; gap: 3px; }
  .player-name { font-size: 9px; max-width: 50px; }
  .player-tricks { width: 16px; height: 16px; font-size: 8px; }
  .player-timer-badge { width: 20px; height: 20px; font-size: 9px; }

  /* cardLayout.js yönetir */
  .hand-area.my-turn::before { top: -14px; font-size: 8px; padding: 2px 8px; }

  .turn-timer-ring { width: 32px; height: 32px; bottom: auto; top: 26px; right: 8px; }
  .turn-timer-ring .timer-text { font-size: 12px; }

  .bidding-panel, .trump-panel { padding: 10px 14px; }
  .bidding-panel h3, .trump-panel h3 { font-size: 14px; margin-bottom: 10px; }
  .bid-btn { width: 36px; height: 36px; font-size: 14px; }
  .trump-btn { padding: 8px 12px; font-size: 16px; }

  .game-table::after { top: 6%; left: 8%; right: 8%; bottom: 24%; }

  /* Disconnect/vote panelleri */
  .disconnect-notif { top: 24px; font-size: 11px; padding: 6px 14px; }
  .bot-vote-panel { padding: 14px; }
  .bot-vote-panel p { font-size: 12px; }
  .score-popup { width: 60vw; padding: 12px; }
}
