/* â”€â”€ GENERAL & PRESETS (Premium Fiziksel Kart MasasÄ± & Ã‡ok Renkli KatmanlÄ± ArayÃ¼z) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior-y: none !important;
  overscroll-behavior-x: none !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  font-family: 'Poppins', sans-serif;
  color: #fcf9f2;
  overflow-x: hidden;
}

:root {
  --card-red-main: #e61920;
  --card-red-dark: #a30b10;
  --card-red-glow: rgba(230, 25, 32, 0.45);
  --card-yellow: #ffc800;
  --card-blue: #7b2fff;
  --card-green: #009944;
  --bg-dark-vignette:
    radial-gradient(circle at 15% 18%, rgba(214, 28, 38, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(28, 90, 214, 0.26) 0%, transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(18, 140, 68, 0.24) 0%, transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(224, 158, 18, 0.24) 0%, transparent 40%),
    radial-gradient(circle at 50% 45%, #1d0d29 0%, #0d0414 70%, #050106 100%);
  --bg-panel-surface: linear-gradient(180deg, rgba(28, 14, 33, 0.96) 0%, rgba(16, 6, 20, 0.96) 100%);
  --panel-border-top: rgba(255, 255, 255, 0.18);
  --panel-border-main: #3d122e;
  --panel-border-bottom: #090208;
  --font-heading: 'Russo One', sans-serif;
  --font-arcade: 'Press Start 2P', monospace;
}

body.lobby-bg {
  background:
    var(--bg-dark-vignette),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 2px, transparent 2px, transparent 12px);
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 32px 20px;
  min-height: 100vh;
}

/* â”€â”€ OYUN EKRANI ZENGÄ°N ARKA PLAN GÃ–RSELÄ° (MasaÃ¼stÃ¼) â”€â”€â”€â”€â”€â”€ */
body.game-bg-active {
  background:
    linear-gradient(180deg, rgba(13, 4, 20, 0.22) 0%, rgba(5, 1, 8, 0.38) 100%),
    url('assets/game_bg_desktop.jpg') no-repeat center center fixed !important;
  background-size: cover !important;
  padding: 0 !important;
  margin: 0 !important;
  justify-content: flex-start !important;
}

/* â”€â”€ TYPOGRAPHY â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
}

h1 {
  color: var(--card-red-main);
  font-size: 2.5rem;
  text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 0 0 15px rgba(230, 25, 32, 0.5);
}

h1 span {
  color: var(--card-yellow);
}

.subtitle {
  color: #e2d8ee;
  font-size: 0.95rem;
  margin-bottom: 20px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px #000;
}

.text-highlight {
  color: var(--card-yellow);
  font-weight: 700;
  text-shadow: 1px 1px 2px #000;
}

.pulse-text {
  animation: pulseText 1.6s infinite ease-in-out;
  color: #bfaecf;
  font-size: 0.85rem;
  text-shadow: 1px 1px 2px #000;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

/* â”€â”€ PANELS (KATMANLI FÄ°ZÄ°KSEL 3D PANELER) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.screen {
  display: none;
  width: 100%;
  max-width: 520px;
}

.screen.lobby-panel {
  max-width: 760px;
  padding: 18px 20px 14px 20px;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel {
  background: var(--bg-panel-surface);
  padding: 24px 22px;
  border-radius: 28px;
  border: 2px solid var(--panel-border-main);
  border-top: 2px solid var(--panel-border-top);
  border-bottom: 5px solid #3d122e;
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.22),
    0 0 60px rgba(255, 255, 255, 0.09),
    0 25px 50px rgba(0, 0, 0, 0.85),
    0 10px 20px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.2),
    inset 0 -2px 6px rgba(255, 255, 255, 0.1),
    inset 0 -4px 15px rgba(0, 0, 0, 0.8);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  position: relative;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

input {
  background: linear-gradient(180deg, rgba(10, 3, 16, 0.9) 0%, rgba(20, 6, 31, 0.9) 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-bottom: 3.5px solid rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 13px 18px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--card-red-main);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 12px rgba(230, 25, 32, 0.5);
}

.btn-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* â”€â”€ BUTTONS (DOKUNMATÄ°K 3D BUTONLAR) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
button {
  font-family: var(--font-heading);
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
  position: relative;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(180deg, #ff333a 0%, #d90f16 50%, #a30005 100%);
  color: #fff;
  border: 1.5px solid #ff666b;
  border-top: 1.5px solid #ff999c;
  border-bottom: 4.5px solid #5c0003;
  box-shadow: 0 6px 18px rgba(230, 25, 32, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  text-shadow: 1px 1px 2px #4d0002;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff4d52 0%, #e61920 50%, #b30006 100%);
  transform: translateY(-2px);
  border-bottom: 5.5px solid #5c0003;
  box-shadow: 0 8px 22px rgba(230, 25, 32, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(2px);
  border-bottom: 2px solid #5c0003;
  box-shadow: 0 3px 10px rgba(230, 25, 32, 0.3);
}

.btn-secondary {
  flex: 1;
  background: linear-gradient(180deg, #2b1436 0%, #170921 100%);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-bottom: 4px solid #0a030d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.15);
  text-shadow: 1px 1px 2px #000;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #3a1c4a 0%, #220e30 100%);
  transform: translateY(-2px);
  border-bottom: 5px solid #0a030d;
}

.btn-ghost {
  background: transparent;
  color: #bfaecf;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-bottom: 3.5px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* FÄ°ZÄ°KSEL DOKUNMATÄ°K OYUNU BAÅLAT BUTONU */
.btn-action {
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  padding: 12px 20px;
  border-radius: 14px;
  border: 2px solid #ff666b;
  border-top: 2px solid #ff999c;
  border-bottom: 6.5px solid #5c0003;
  background: linear-gradient(180deg, #ff333a 0%, #d90f16 50%, #a30005 100%);
  color: #ffffff;
  text-shadow: 2px 2px 0px #4d0002;
  box-shadow:
    0 10px 25px rgba(230, 25, 32, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
  width: 100%;
  cursor: pointer;
  transition: transform 0.1s ease, border-bottom 0.1s ease, box-shadow 0.1s ease;
  position: relative;
}

.btn-action:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff4d52 0%, #e61920 50%, #b30006 100%);
  box-shadow:
    0 14px 30px rgba(230, 25, 32, 0.7),
    0 6px 14px rgba(0, 0, 0, 0.7),
    inset 0 2px 6px rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  border-bottom: 8px solid #5c0003;
}

.btn-action:active:not(:disabled) {
  transform: translateY(4px);
  border-bottom: 2px solid #5c0003;
  box-shadow: 0 4px 10px rgba(230, 25, 32, 0.4);
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.7);
  background: linear-gradient(180deg, #4a3839 0%, #2e2122 100%);
  border-color: #665253;
  border-bottom: 4px solid #140d0e;
  text-shadow: 1px 1px 0px #000;
  box-shadow: none;
}

/* â”€â”€ LOBÄ° BÄ°RLEÅÄ°K DÃœZEN (SOL OYUNCU LÄ°STESÄ° + SAÄ OYUN MASASI) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lobby-unified-container {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

/* SOL OYUNCULAR LÄ°STESÄ° PANELÄ° (FÄ°ZÄ°KSEL AHÅAP/DERÄ° DERÄ°NLÄ°K MODÃœLÃœ) */
.lobby-sidebar {
  width: 220px;
  min-width: 200px;
  background: linear-gradient(180deg, #170b1c 0%, #0c0510 100%);
  border: 2px solid #3b142e;
  border-top: 1.5px solid rgba(255, 255, 255, 0.15);
  border-bottom: 5px solid #080208;
  border-radius: 22px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.7),
    inset 0 2px 8px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(230, 25, 32, 0.3);
  margin-bottom: 10px;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: #ff333a;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px #000;
}

.sidebar-badge {
  background: linear-gradient(180deg, #e61920 0%, #a30b10 100%);
  border: 1px solid #ff666b;
  border-bottom: 2px solid #5c0003;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.player-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 300px;
  padding-right: 2px;
}

.player-list-box::-webkit-scrollbar {
  width: 4px;
}

.player-list-box::-webkit-scrollbar-thumb {
  background: rgba(230, 25, 32, 0.5);
  border-radius: 4px;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #24132b 0%, #15091c 100%);
  border: 1.5px solid #3d1b38;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 3.5px solid #0a030d;
  border-radius: 12px;
  padding: 9px 11px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.player-item:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 25, 32, 0.6);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7), 0 0 10px rgba(230, 25, 32, 0.25);
}

.player-item.is-me {
  border-color: var(--card-yellow);
  background: linear-gradient(180deg, #2d1a33 0%, #1f0d26 100%);
  box-shadow: 0 4px 12px rgba(255, 200, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.avatar-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 3, 16, 0.6);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.host-crown-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.75rem;
  filter: drop-shadow(0 0 4px #ffc800);
}

.player-name-text {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  text-shadow: 1px 1px 2px #000;
}

.player-status-pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
  text-transform: uppercase;
}

.player-status-pill.seated {
  background: linear-gradient(180deg, #009944 0%, #00662d 100%);
  color: #ffffff;
  border: 1px solid #33cc73;
  border-bottom: 2px solid #003317;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.player-status-pill.standing {
  background: linear-gradient(180deg, #d9822b 0%, #99520e 100%);
  color: #ffffff;
  border: 1px solid #ffb366;
  border-bottom: 2px solid #4d2600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* â”€â”€ SAÄ MASA KART HARÄ°TASI (FÄ°ZÄ°KSEL KEÃ‡E MASA DÄ°ZÄ°LÄ°MÄ°) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lobby-seat-map {
  flex: 1;
  height: 340px;
  background: linear-gradient(145deg, #2b0b1e 0%, #12030d 100%);
  border-radius: 26px;
  padding: 14px;
  border: 2.5px solid #451234;
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
  border-bottom: 6px solid #090107;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.85),
    inset 0 0 20px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(230, 25, 32, 0.15);
  position: relative;
  overflow: visible !important;
}

.lobby-felt-board {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, #470d22 0%, #21050e 60%, #0f0206 100%);
  border-radius: 18px;
  position: relative;
  box-shadow: inset 0 10px 35px rgba(0, 0, 0, 0.92), inset 0 0 15px rgba(0, 0, 0, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  overflow: visible !important;
  clip-path: none !important;
}

/* Dinamik Koltuk KonumlandÄ±rmasÄ± (KART PARÃ‡ASI DERÄ°NLÄ°ÄÄ°) */
.lobby-seat-pos {
  position: absolute;
  width: 128px;
  height: 70px;
  background: linear-gradient(145deg, rgba(32, 16, 44, 0.96) 0%, rgba(14, 5, 20, 0.98) 100%);
  border: 2px solid #571e47;
  border-top: 1.5px solid rgba(255, 255, 255, 0.22);
  border-bottom: 4.5px solid #09020b;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.82),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
}

.seat-join-btn {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(230, 25, 32, 0.12) 0%, rgba(163, 11, 16, 0.18) 100%);
  border: 2px dashed rgba(230, 25, 32, 0.6);
  border-bottom: 3.5px dashed rgba(163, 11, 16, 0.8);
  border-radius: 12px;
  color: #ff999c;
  font-family: var(--font-arcade);
  font-size: 0.64rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 2px #000;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.seat-join-btn:hover {
  background: linear-gradient(180deg, rgba(230, 25, 32, 0.4) 0%, rgba(163, 11, 16, 0.55) 100%);
  border-color: #ff333a;
  border-style: solid;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(230, 25, 32, 0.75), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transform: scale(1.04) translateY(-1px);
}

.seat-occupied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 12px;
  animation: seatPopIn 0.25s ease-out;
}

.seat-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 4px 6px;
}

.seat-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.seat-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 3, 16, 0.7);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.seat-info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  flex: 1;
}

@keyframes seatPopIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.seat-occupied.seat-is-me {
  border: 1.5px solid var(--card-yellow);
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.2) 0%, rgba(153, 120, 0, 0.08) 100%);
  box-shadow: inset 0 0 14px rgba(255, 200, 0, 0.45);
  border-radius: 12px;
}

.seat-occupied.seat-is-me .seat-avatar-img {
  border-color: #ffc800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 12px rgba(255, 200, 0, 0.6);
}

/* Tıklama / Dokunma Durumu (.show-leave) — koltuk tamamen KALK butonuna dönüşür */
.seat-occupied.show-leave .seat-profile-row {
  display: none !important;
}

.seat-occupied.show-leave .seat-leave-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.seat-player-name {
  font-weight: 700;
  font-size: 0.76rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 1px 1px 2px #000;
}

.lobby-seat-host-crown {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 4px #ffc800);
}

.seat-leave-btn {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e61920 0%, #990005 100%);
  border: 1.5px solid #ff666b;
  border-bottom: 3.5px solid #4d0002;
  color: #fff;
  font-family: var(--font-heading);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  text-shadow: 1px 1px 2px #000;
  z-index: 30;
}

.seat-leave-btn:hover {
  background: linear-gradient(180deg, #ff333a 0%, #b30006 100%);
  box-shadow: 0 0 14px rgba(230, 25, 32, 0.8);
  transform: translateY(-1px);
}

/* Masaüstü (fare hover): sadece kendi koltuğuna gelince KALK moduna geç */
@media (hover: hover) and (pointer: fine) {
  .seat-occupied.seat-is-me:hover .seat-profile-row {
    display: none !important;
  }

  .seat-occupied.seat-is-me:hover .seat-leave-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Masa Orta Puck/Rozet (Physical Coaster Inset) */
.lobby-felt-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #1c0612 0%, #0a0207 100%);
  border: 3px solid #e61920;
  border-top: 3px solid #ff4d52;
  border-bottom: 4px solid #800004;
  border-radius: 50%;
  width: 104px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(230, 25, 32, 0.35),
    inset 0 2px 6px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  z-index: 5;
}

#seat-mode-info {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: #ff2e35;
  letter-spacing: 0.5px;
  text-shadow: 1.5px 1.5px 0px #000, -1px -1px 0px #000;
}

.center-subtext {
  font-size: 8px;
  color: var(--card-yellow);
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 2px;
  text-shadow: 1px 1px 2px #000;
}

.center-count {
  font-size: 11px;
  color: #ffffff;
  font-weight: 800;
  margin-top: 3px;
  text-shadow: 1px 1px 2px #000;
}

.lobby-footer {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#lobby-hint {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
}

/* â”€â”€ OYUN EKRANI (MASA & KARTLAR) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#screen-game {
  width: 100%;
  max-width: 1200px;
  min-height: 82vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
  /* hover animÄ±ne izin ver */
}

/* â”€â”€ KÄ°ÅÄ° KARTLARI ROW (SKOR TABLOSU Ä°LE Ã‡ARPÄ°ÅMAYAN ESNEK MASAÃœSTÃœ DÄ°ZÄ°LÄ°MÄ°) â”€â”€ */
.opponents-row {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.8vw, 10px);
  justify-content: center;
  align-items: center;
  /* Mobil: normal padding. MasaÃ¼stÃ¼: sol padding = skor tablosu geniÅŸliÄŸi + konum + 8px marj */
  padding: 8px 4px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.opponent-row-break {
  display: none;
}

/* Skor tablosu ile kiÅŸi kartlarÄ± boÅŸluÄŸu JavaScript tarafÄ±ndan dinamik olarak ayarlanÄ±r */
/* adjustOpponentsRowPadding() fonksiyonu - app.js */

.opponent {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.6vw, 8px);
  padding: clamp(5px, 0.5vw, 8px) clamp(8px, 0.8vw, 12px);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(32, 16, 44, 0.96) 0%, rgba(14, 5, 22, 0.98) 100%);
  border: 2px solid #4a1538;
  border-top: 1.5px solid rgba(255, 255, 255, 0.25);
  border-bottom: 4.5px solid #0d020c;
  flex: 1 1 0px;
  min-width: 0;
  /* Daha geniÅŸ min/max: isim her zaman gÃ¶rÃ¼nsÃ¼n */
  max-width: clamp(145px, 16vw, 220px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.82),
    inset 0 1px 2px rgba(255, 255, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.opponent.is-me-card {
  border-color: rgba(255, 200, 0, 0.5);
  background: linear-gradient(145deg, rgba(42, 22, 54, 0.96) 0%, rgba(20, 8, 28, 0.98) 100%);
}

.opponent.active-turn {
  border-color: #ffc800;
  border-top-color: #fff5cc;
  background: linear-gradient(145deg, rgba(48, 28, 56, 0.97) 0%, rgba(28, 14, 36, 0.98) 100%);
  box-shadow:
    0 0 24px rgba(255, 200, 0, 0.75),
    0 12px 30px rgba(0, 0, 0, 0.9);
  animation: activeTurnPulse 1.8s ease-in-out infinite;
}

@keyframes activeTurnPulse {

  0%,
  100% {
    border-color: #ffc800;
    box-shadow: 0 0 16px rgba(255, 200, 0, 0.55), 0 10px 25px rgba(0, 0, 0, 0.8);
  }

  50% {
    border-color: #ffe066;
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.9), 0 14px 32px rgba(0, 0, 0, 0.9);
  }
}

.opponent-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.opponent-avatar-img {
  width: clamp(26px, 2.4vw, 36px);
  height: clamp(26px, 2.4vw, 36px);
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 3, 16, 0.7);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.opponent-crown-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: clamp(0.68rem, 0.8vw, 0.8rem);
  filter: drop-shadow(0 0 4px #ffc800);
}

.opponent-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 0px;
}

/* Ä°sim + kart sayÄ±sÄ± satÄ±rÄ± â€” her ekranda gÃ¶rÃ¼nÃ¼r */
.opponent-name {
  font-size: clamp(0.64rem, 0.85vw, 0.82rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

/* Alt satÄ±r: kart sayÄ±sÄ± rozeti + 3 mini kart yan yana */
.opponent-card-row {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.opponent-cards-badge {
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  font-weight: 700;
  color: #ffc800;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
  flex-shrink: 0;
}

.opponent-cards-mini {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.opponent-cards-mini .mini-back {
  width: clamp(12px, 1.2vw, 16px);
  height: clamp(18px, 1.7vw, 23px);
  margin-left: -5px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.opponent-cards-mini .mini-back:first-child {
  margin-left: 0;
}


.table-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.pile-group {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  /* count badge iÃ§in */
}

/* â”€â”€ DESTE Ä°Ã‡Ä° KART SAYISI BADGE (.card-draw-count-badge) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* â”€â”€ DESTE KART SAYISI BADGE â€” sadece sayÄ±, kompakt â”€â”€ */
.card-draw-count-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  border: 1.5px solid rgba(255, 200, 0, 0.7);
  border-radius: 20px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
}

.card-draw-count-badge.is-penalty {
  border-color: #ff333a;
  background: rgba(60, 5, 8, 0.88);
  box-shadow: 0 0 8px rgba(255, 51, 58, 0.7);
}

.dpc-num {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 900;
  color: #ffc800;
  line-height: 1;
  text-shadow: 1px 1px 2px #000;
}

/* .dpc-sub kaldÄ±rÄ±ldÄ± â€” artÄ±k kullanÄ±lmÄ±yor */
.dpc-sub {
  display: none;
}

.dpc-penalty {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 0.95vw, 0.8rem);
  font-weight: 900;
  color: #ff333a;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 51, 58, 0.9);
}

/* Kart Ã§ekildi: sayÄ± yukarÄ±dan aÅŸaÄŸÄ±ya dÃ¼ÅŸerek gÃ¼ncellenir */
@keyframes dpc-drop-anim {
  0% {
    transform: scale(1.25);
    opacity: 0;
  }

  55% {
    transform: scale(0.95);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.card-draw-count-badge.dpc-drop {
  animation: dpc-drop-anim 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Deste karÄ±ÅŸtÄ±rÄ±ldÄ±: altÄ±n parlama + spin efekti */
@keyframes dpc-reshuffle-anim {
  0% {
    transform: scale(0.7) rotate(-8deg);
    opacity: 0;
    color: #ffc800;
  }

  50% {
    transform: scale(1.2) rotate(4deg);
    opacity: 1;
    color: #ffc800;
    text-shadow: 0 0 20px rgba(255, 200, 0, 0.9), 1px 1px 3px #000;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    color: #ffffff;
  }
}

.card-draw-count-badge.dpc-reshuffle .dpc-num {
  animation: dpc-reshuffle-anim 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* â”€â”€ GERÃ‡EKÃ‡Ä° 3D UNO KART ASSETLERÄ° & KAPÄ°BARA MASKOT Ä°MZASI â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
  width: 68px;
  height: 102px;
  background: #ffffff;
  border-radius: 12px;
  padding: 3.5px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1.5px 2.5px rgba(255, 255, 255, 0.95),
    inset 0 -2.5px 5px rgba(0, 0, 0, 0.35);
  user-select: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, filter 0.2s ease;
  overflow: visible;
  border: none;
}

/* â”€â”€ RESÄ°M TABANLI KART â€” padding sÄ±fÄ±r, arka plan ÅŸeffaf â”€â”€ */
.card.card-img-based {
  padding: 0;
  background: transparent;
}

/* Kart yÃ¼z/arka resmi â€” taÅŸmasÄ±z tam kaplama */
.card-face-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Oynanabilir kart vurgusu â€” resim Ã¼stÃ¼nde gÃ¶rÃ¼nÃ¼r outline */
.card.card-img-based.playable {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  box-shadow:
    0 0 18px rgba(255, 215, 0, 0.85),
    0 8px 22px rgba(0, 0, 0, 0.7);
}

.card.card-img-based.playable:hover {
  outline-color: #fff;
  outline-width: 3px;
  transform: translateY(-8px) scale(1.06);
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(0, 0, 0, 0.8);
}


.card-inner-border {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Renk SkalasÄ± & Gradyanlar */
.card-red .card-inner-border {
  background: radial-gradient(circle at 35% 30%, #ff3b45 0%, #d90f19 65%, #800005 100%);
}

.card-blue .card-inner-border {
  background: radial-gradient(circle at 35% 30%, #b066ff 0%, #7b2fff 65%, #3d0099 100%);
}

.card-green .card-inner-border {
  background: radial-gradient(circle at 35% 30%, #00cc5b 0%, #009944 65%, #004d22 100%);
}

.card-yellow .card-inner-border {
  background: radial-gradient(circle at 35% 30%, #ffdd00 0%, #ffaa00 65%, #b36b00 100%);
}

.card-wild .card-inner-border {
  background: conic-gradient(from 45deg at 50% 50%, #ff3b45 0deg 90deg, #7b2fff 90deg 180deg, #009944 180deg 270deg, #ffaa00 270deg 360deg);
}

.card-back-inner {
  background: radial-gradient(circle at 50% 50%, #3d1466 0%, #21073a 65%, #0d0217 100%);
  border: 1.5px solid #ffc800;
}

/* Ortadaki EÄŸik Beyaz Oval */
.card-center-oval {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  width: 78%;
  height: 58%;
  background: radial-gradient(ellipse at center, #ffffff 0%, #f3f4f7 100%);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-center-oval.back-oval {
  background: radial-gradient(ellipse at center, #1b072e 0%, #0d0217 100%);
  border-color: #ffc800;
}

.card-back-logo {
  font-family: var(--font-arcade);
  font-size: 0.55rem;
  color: #ffc800;
  text-shadow: 0 0 6px rgba(255, 200, 0, 0.8), 1px 1px 2px #000;
  transform: rotate(24deg);
  margin-top: 2px;
}

/* Kapibara Maskot Ä°mzasÄ± ğŸ¦«ğŸŠ */
.card-capybara-mascot {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: rotate(24deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  margin-bottom: -2px;
}

/* Ana Kart DeÄŸeri / YazÄ±sÄ± */
.card-main-val {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  transform: rotate(24deg);
  line-height: 1;
  color: #111;
}

.card-red .card-main-val {
  color: #d90f19;
  text-shadow: 1px 1px 0px #fff, 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-blue .card-main-val {
  color: #7b2fff;
  text-shadow: 1px 1px 0px #fff, 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-green .card-main-val {
  color: #0b8a4f;
  text-shadow: 1px 1px 0px #fff, 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-yellow .card-main-val {
  color: #d98200;
  text-shadow: 1px 1px 0px #fff, 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-wild .card-main-val {
  color: #ffffff;
  text-shadow: 1.5px 1.5px 0px #000, 0 0 8px #ffc800;
  font-size: 0.9rem;
}

/* KÃ¶ÅŸe DeÄŸerleri (Sol Ãœst & SaÄŸ Alt 180Â° DÃ¶nÃ¼k) */
.card-corner {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.7rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px #000, 0 0 2px #000;
  z-index: 5;
}

.corner-tl {
  top: 3px;
  left: 5px;
}

.corner-br {
  bottom: 3px;
  right: 5px;
  transform: rotate(180deg);
}

/* Kart ParlaklÄ±k / Plastik Kaplama Efekti */
.card-shine-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0) 55%);
  border-radius: 12px;
  z-index: 10;
}

/* Kart Atma / Yer YuvasÄ± & El Deste BoyutlarÄ± */
.discard-slot .card,
#draw-pile.card {
  width: 78px;
  height: 114px;
}

/* Discard ve draw-pile'daki resim tabanlÄ± kartlar */
.discard-slot .card.card-img-based .card-face-img,
#draw-pile.card.card-img-based .card-face-img {
  object-fit: cover;
  border-radius: 12px;
}


#draw-pile.penalty-active {
  border: 2.5px solid #ff333a !important;
  box-shadow: 0 0 22px rgba(255, 51, 58, 0.95), 0 8px 25px rgba(0, 0, 0, 0.8) !important;
  animation: penaltyDrawPulse 1s ease-in-out infinite alternate !important;
  cursor: pointer;
}

#draw-pile.penalty-active .draw-count {
  color: #ff333a !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(255, 51, 58, 0.9), 1px 1px 2px #000 !important;
  animation: countBlink 0.6s infinite alternate;
}

@keyframes penaltyDrawPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 51, 58, 0.7);
  }

  100% {
    transform: scale(1.06);
    box-shadow: 0 0 28px rgba(255, 51, 58, 1);
  }
}

@keyframes countBlink {
  0% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

.discard-slot .card .card-main-val {
  font-size: 1.45rem;
}

.discard-slot .card .card-capybara-mascot {
  width: 26px;
  height: 26px;
}

/* Mini Rakip KartlarÄ± (.mini-back) */
.mini-back {
  width: 20px;
  height: 28px;
  border-radius: 5px;
  background: radial-gradient(circle at 50% 50%, #3d1466 0%, #17042b 100%);
  border: 1px solid #ffc800;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-capy-mascot {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* El Kartları Hareket & Vurgu Stilleri */
.hand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 8px 8px calc(38px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 20;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), gap 0.3s ease;
  overflow: visible;
  box-sizing: border-box;
}

.hand-subrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  transition: transform 0.25s ease;
  overflow: visible;
}

/* 1 Satırlık El (1 - 6 kart) */
.hand-row[data-rows="1"] {
  transform: translateY(0);
}

.hand-row[data-rows="1"] .card {
  width: clamp(48px, 14vw, 62px);
  height: clamp(72px, 21vw, 92px);
}

/* 2 Satırlık El (7 - 12 kart) — Satır yukarı kalkar, kartlar hafif optimize olur */
.hand-row[data-rows="2"] {
  gap: 4px;
  transform: translateY(-24px);
}

.hand-row[data-rows="2"] .card {
  width: clamp(44px, 12.5vw, 54px);
  height: clamp(66px, 18.5vw, 80px);
}

/* 3 Satırlık El (13+ kart) — Daha yukarı çıkar ve kompaktlaşır */
.hand-row[data-rows="3"] {
  gap: 4px;
  transform: translateY(-48px);
}

.hand-row[data-rows="3"] .card {
  width: clamp(38px, 11vw, 48px);
  height: clamp(56px, 16vw, 70px);
}

@media (min-width: 721px) {
  .hand-subrow {
    max-width: 650px;
    gap: 8px;
  }
  .hand-row[data-rows="1"] .card {
    width: 68px;
    height: 102px;
  }
  .hand-row[data-rows="2"] .card {
    width: 62px;
    height: 92px;
  }
  .hand-row[data-rows="3"] .card {
    width: 56px;
    height: 84px;
  }
}

.hand-row::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.hand-subrow .card,
.hand-row .card {
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.hand-subrow .card:hover,
.hand-row .card:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.75),
    inset 0 1.5px 2.5px rgba(255, 255, 255, 0.95);
  z-index: 25;
}

.hand-subrow .card.playable,
.hand-row .card.playable {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(255, 200, 0, 0.75),
    inset 0 1.5px 2.5px rgba(255, 255, 255, 0.95);
}

.hand-subrow .card.playable:hover,
.hand-row .card.playable:hover {
  transform: translateY(-14px) scale(1.1);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.8),
    0 0 24px rgba(255, 200, 0, 0.9),
    inset 0 1.5px 3px rgba(255, 255, 255, 1);
  z-index: 30;
}

/* ── KİNO! ACİL BUTONU — PREMİUM TAKTİL & BEYAZ IŞIK KATMANLI TASARIM ── */
.kanzi-btn {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);

  /* Renk: koyu kırmızı arka plan + sırlı üst gradyan */
  background: linear-gradient(160deg,
      #d11720 0%,
      #a50e14 50%,
      #7c0a0f 100%);

  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 14px 28px;

  /* İnce beyaz dış katman */
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;

  /* Derinlik + Hafif beyaz ışık hüzmesi */
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.35),
    0 0 28px rgba(255, 255, 255, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    /* üst parlak çizgi */
    0 -3px 0 rgba(0, 0, 0, 0.55) inset,
    /* alt basık çizgi — buton hissi */
    0 6px 20px rgba(170, 10, 18, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.5);

  cursor: pointer;
  z-index: 40;

  /* Metin gölgesi */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);

  /* Yumuşak nefes alan vurgu animasyonu */
  animation: kinoBreathe 1.6s ease-in-out infinite;

  /* Tıklama geçişleri */
  transition: transform 0.1s ease, box-shadow 0.1s ease, outline-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.kanzi-btn:active {
  transform: translateX(-50%) translateY(2px) scale(0.97);
  box-shadow:
    0 1px 0 rgba(255, 140, 140, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset,
    0 2px 8px rgba(170, 10, 18, 0.5),
    0 0 15px rgba(220, 20, 30, 0.3);
}

.kanzi-btn:hover {
  outline-color: rgba(255, 120, 120, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 160, 160, 0.45) inset,
    0 -3px 0 rgba(0, 0, 0, 0.55) inset,
    0 8px 28px rgba(200, 15, 22, 0.75),
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 0 45px rgba(230, 25, 32, 0.5);
}

.kanzi-btn.hidden {
  display: none;
}

@keyframes kinoBreathe {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 1px 0 rgba(255, 140, 140, 0.35) inset,
      0 -3px 0 rgba(0, 0, 0, 0.5) inset,
      0 6px 20px rgba(170, 10, 18, 0.55),
      0 2px 6px rgba(0, 0, 0, 0.5),
      0 0 28px rgba(220, 20, 30, 0.38);
  }

  50% {
    transform: translateX(-50%) scale(1.06);
    box-shadow:
      0 1px 0 rgba(255, 140, 140, 0.4) inset,
      0 -3px 0 rgba(0, 0, 0, 0.5) inset,
      0 10px 30px rgba(200, 15, 22, 0.75),
      0 4px 10px rgba(0, 0, 0, 0.5),
      0 0 50px rgba(230, 25, 32, 0.55);
  }
}

.mobile-scoreboard-btn {
  display: none !important;
}

.btn-leave-lobby {
  display: none !important;
}

.scoreboard-close-btn {
  display: none !important;
}

body:not(.game-bg-active) .scoreboard {
  display: none !important;
}

/* ── DERİNLİK HİSLİ PROFESYONEL SKOR TABLOSU (.scoreboard) ────────────────── */
.scoreboard {
  position: fixed;
  top: 10px !important;
  left: 14px !important;
  background: linear-gradient(145deg, rgba(28, 14, 38, 0.95) 0%, rgba(12, 4, 18, 0.97) 100%);
  border: 2px solid #4a1538;
  border-top: 1.5px solid rgba(255, 255, 255, 0.22);
  border-bottom: 4.5px solid #0a0209;
  border-radius: clamp(12px, 1.2vw, 18px);
  padding: clamp(5px, 0.6vw, 9px) clamp(7px, 0.8vw, 11px);
  font-size: clamp(0.62rem, 0.75vw, 0.76rem);
  width: clamp(125px, 13vw, 185px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.4vh, 6px);
}

.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(3px, 0.4vh, 6px);
  border-bottom: 1.5px solid rgba(230, 25, 32, 0.35);
  font-family: var(--font-heading);
  font-size: clamp(0.6rem, 0.75vw, 0.72rem);
  color: #ffc800;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px #000, 0 0 6px rgba(255, 200, 0, 0.4);
}

.scoreboard-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.scoreboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.scoreboard-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 200, 0, 0.4);
}

.scoreboard-item.is-me {
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.15) 0%, rgba(153, 120, 0, 0.05) 100%);
  border: 1px solid rgba(255, 200, 0, 0.5);
  border-left: 3.5px solid #ffc800;
}

.scoreboard-item.is-me .scoreboard-name {
  color: #ffc800;
  font-weight: 700;
}

.scoreboard-player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.scoreboard-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.scoreboard-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.scoreboard-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95px;
}

.scoreboard-score-pill {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.78rem;
  color: #ff333a;
  background: rgba(230, 25, 32, 0.16);
  border: 1px solid rgba(230, 25, 32, 0.4);
  border-radius: 8px;
  padding: 2px 7px;
  text-shadow: 1px 1px 2px #000, 0 0 5px rgba(230, 25, 32, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.scoreboard-score-pill small {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 1px;
}

/* â”€â”€ MODALLAR & TOAST â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal.hidden {
  display: none;
}

.modal-box {
  border-radius: 24px;
  text-align: center;
}

/* ── RENK SEÇİMİ 3D 4 PARÇALI JOKER KART MODALI ────────────────────────────── */
.modal-wild-box {
  position: relative;
  background: linear-gradient(145deg, rgba(28, 14, 38, 0.96) 0%, rgba(12, 4, 18, 0.98) 100%);
  border: 2px solid #ffc800;
  border-top: 2px solid #fff5cc;
  border-bottom: 5px solid #997800;
  border-radius: 24px;
  padding: clamp(16px, 2.2vh, 24px) clamp(14px, 2vw, 20px);
  width: clamp(270px, 85vw, 320px);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.92),
    0 0 35px rgba(255, 200, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalWildPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modal İptal/Kapatma Çarpı Butonu (Sağ Üst) */
.modal-wild-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 200, 0, 0.45);
  color: #ffc800;
  font-family: 'Russo One', sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 35;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-wild-close:hover {
  transform: scale(1.12) rotate(90deg);
  background: radial-gradient(circle, #ff3344 0%, #b30012 100%);
  border-color: #ff6b78;
  color: #ffffff;
  box-shadow:
    0 0 16px rgba(255, 51, 68, 0.75),
    0 4px 14px rgba(0, 0, 0, 0.6);
}

.modal-wild-close:active {
  transform: scale(0.92) rotate(90deg);
}

.modal-swap-box {
  position: relative;
}

.modal-swap-box .modal-wild-close {
  border-color: rgba(180, 100, 255, 0.5);
  color: #c084fc;
}

.modal-swap-box .modal-wild-close:hover {
  border-color: #ff6b78;
  color: #ffffff;
}

@keyframes modalWildPop {
  0% {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-wild-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #ffc800;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 0 #734b00, 0 0 16px rgba(255, 200, 0, 0.6);
  letter-spacing: 1px;
}

.modal-wild-subtitle {
  display: none !important;
}

/* 4 PARÇAYA BÖLÜNMÜŞ FİZİKSEL 3D JOKER KARTI (150px x 220px) */
.wild-picker-card {
  width: 150px;
  height: 220px;
  background: linear-gradient(150deg, #ffffff 0%, #f4f6fa 45%, #dde3ea 100%);
  border-radius: 16px;
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(255, 200, 0, 0.4),
    inset 0 2px 3px #ffffff,
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wild-picker-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.94),
    0 0 35px rgba(255, 200, 0, 0.5),
    inset 0 2px 4px #ffffff,
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}

.wild-card-quadrants {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: visible;
  gap: 0;
  background: #000000;
  border: 2.2px solid #000000;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.color-pick.quadrant,
.swap-color-pick.quadrant {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  border: 1.8px solid #000000;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease, box-shadow 0.2s ease;
}

.color-pick.quadrant.red,
.swap-color-pick.quadrant.red {
  border-top-left-radius: 10px;
  background: radial-gradient(circle at 35% 35%, #ff4d5a 0%, #d6111b 60%, #7a0006 100%);
}

.color-pick.quadrant.blue,
.swap-color-pick.quadrant.blue {
  border-top-right-radius: 10px;
  background: radial-gradient(circle at 65% 35%, #b462ff 0%, #7b2fff 60%, #3a008f 100%);
}

.color-pick.quadrant.yellow,
.swap-color-pick.quadrant.yellow {
  border-bottom-left-radius: 10px;
  background: radial-gradient(circle at 35% 65%, #ffea38 0%, #ffaa00 60%, #b26500 100%);
}

.color-pick.quadrant.green,
.swap-color-pick.quadrant.green {
  border-bottom-right-radius: 10px;
  background: radial-gradient(circle at 65% 65%, #00e66b 0%, #009944 60%, #004d22 100%);
}

.color-pick.quadrant:hover,
.swap-color-pick.quadrant:hover {
  transform: scale(1.12);
  z-index: 20;
  border: 1.8px solid #000000 !important;
  filter: brightness(1.18);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(255, 255, 255, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-pick.quadrant:active,
.swap-color-pick.quadrant:active {
  transform: scale(0.98);
}

/* KART ORTA OVALİ (3D DERİNLİK HİSLİ PROFESYONEL JOKER ROZETİ) */
.wild-card-center-oval {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  width: 90px;
  height: 52px;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #f3edf8 50%, #cfc0de 85%, #9b84b0 100%);
  border-radius: 50%;
  border: 3px solid #000000;
  outline: 2px solid rgba(255, 215, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.88),
    0 0 14px rgba(0, 0, 0, 0.5),
    inset 0 2.5px 3px rgba(255, 255, 255, 1),
    inset 0 -3px 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 25;
}

.wild-card-logo {
  font-family: 'Russo One', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #0b0212;
  text-shadow: 0 1px 0 #ffffff, 0 2px 5px rgba(0, 0, 0, 0.45);
  line-height: 1;
  margin: 0;
  padding-left: 2.5px;
}

/* â”€â”€ TUR / MAÃ‡ SONU PROFESYONEL MODAL STÄ°LLERÄ° â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-result-box {
  background: linear-gradient(145deg, rgba(32, 16, 44, 0.97) 0%, rgba(14, 5, 20, 0.98) 100%);
  border: 2px solid #ffc800;
  border-top: 2px solid #fff5cc;
  border-bottom: 5px solid #997800;
  border-radius: 24px;
  padding: clamp(16px, 2.2vh, 24px) clamp(14px, 2vw, 22px);
  width: clamp(280px, 88vw, 360px);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.92),
    0 0 35px rgba(255, 200, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalWildPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-header-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.result-trophy-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px #ffc800);
}

.result-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #ffc800;
  margin: 0;
  text-shadow: 1.5px 1.5px 0px #000, 0 0 10px rgba(255, 200, 0, 0.5);
  letter-spacing: 0.5px;
}

.result-detail {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px 0;
  font-weight: 500;
  text-shadow: 1px 1px 2px #000;
}

.result-score-card {
  width: 100%;
  background: rgba(10, 3, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 18px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.result-score-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: left;
  padding-left: 2px;
}

.result-scores-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.result-score-row.is-me {
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.15) 0%, rgba(153, 120, 0, 0.05) 100%);
  border-color: rgba(255, 200, 0, 0.4);
}

.result-score-row.is-top {
  border-color: #ffc800;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.35);
}

.result-player-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-rank-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  min-width: 18px;
}

.result-score-row.is-top .result-rank-badge {
  color: #ffc800;
}

.result-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.result-player-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
}

.result-score-val {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #ff333a;
  background: rgba(230, 25, 32, 0.18);
  border: 1px solid rgba(230, 25, 32, 0.4);
  border-radius: 8px;
  padding: 3px 8px;
  text-shadow: 1px 1px 2px #000;
}

.result-confirm-btn {
  width: 100%;
  padding: 12px;
  font-size: 0.85rem;
}

/* ── SİSTEM BİLDİRİM TOAST — PREMIUM DARK GLASS ── */
.toast-msg {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);

  /* Derin koyu cam yüzeyi */
  background: linear-gradient(145deg,
      rgba(22, 8, 34, 0.96) 0%,
      rgba(10, 3, 16, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  color: #fff;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;

  /* 3 katmanlı border: üst parlaklık + ana çerçeve + alt derinlik */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2.5px solid rgba(0, 0, 0, 0.6);

  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(0, 0, 0, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.2px;

  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
}

.toast-msg.hidden {
  display: none;
}

@media (max-width: 720px) {

  /* â”€â”€ MOBÄ°L OYUN EKRANI ARKA PLANI (Dikey Format) â”€â”€ */
  body.game-bg-active {
    background:
      linear-gradient(180deg, rgba(13, 4, 20, 0.22) 0%, rgba(5, 1, 8, 0.38) 100%),
      url('assets/game_bg_mobile.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
  }

  /* Body mobilde dikey ortalı ve alttaki butonlara taşmayacak şekilde */
  body.lobby-bg {
    overflow-y: auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 calc(76px + env(safe-area-inset-bottom, 0px)) 0;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  /* Lobi paneli: Rus Blöfü gibi %90 genişlik, max 440px, dikey ve yatay tam ortalı */
  .screen.lobby-panel {
    width: 90%;
    max-width: 440px;
    padding: 12px 12px 14px 12px;
    border-radius: 20px;
    margin: auto auto !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  /* Ana container: dikey kolon */
  .lobby-unified-container {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  /* â”€â”€ 1. OYUNCULAR PANEL (ÃœST) â€” Rus BlÃ¶fÃ¼ gibi kompakt liste â”€â”€ */
  .lobby-sidebar {
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 10px 12px;
    margin-bottom: 0;
    border-radius: 14px;
  }

  .sidebar-header {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .sidebar-title {
    font-size: 0.75rem;
  }

  .sidebar-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  /* Oyuncu listesi: Rus BlÃ¶fÃ¼ gibi dikey kompakt liste */
  .player-list-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
  }

  .player-item {
    padding: 6px 10px;
    gap: 6px;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .player-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .player-name-text {
    font-size: 0.7rem;
    max-width: 120px;
  }

  .player-status-pill {
    font-size: 0.55rem;
    padding: 2px 5px;
  }

  /* â”€â”€ 2. MASA HARÄ°TASI (ALTA) â€” Rus BlÃ¶fÃ¼ gibi sabit yÃ¼kseklik â”€â”€ */
  .lobby-seat-map {
    display: block !important;
    /* flex child olmaktan Ã§Ä±kar */
    width: 100% !important;
    height: 240px !important;
    /* Sabit yÃ¼kseklik â€” felt-board %100 doldurur */
    min-height: 240px !important;
    padding: 6px !important;
    border-radius: 20px !important;
    box-sizing: border-box;
    margin: 0;
    overflow: visible !important;
    position: relative;
    flex: none;
  }

  /* felt board: kesinlikle overflow kesme yok, tam yÃ¼kseklik */
  .lobby-felt-board {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    clip-path: none !important;
    position: relative;
  }

  /* Merkez rozet: Rus BlÃ¶fÃ¼ gibi */
  .lobby-felt-center {
    width: 68px;
    height: 68px;
    padding: 3px;
  }

  #seat-mode-info {
    font-size: 0.68rem;
  }

  .center-subtext {
    font-size: 7px;
    margin-top: 1px;
  }

  .center-count {
    font-size: 9px;
    margin-top: 1px;
  }

  /* 3. OTUR BUTONLARI & KOLTUKLAR â€” Rus BlÃ¶fÃ¼ gibi bÃ¼yÃ¼k, okunaklÄ± */
  .lobby-seat-pos {
    width: 90px;
    height: 46px;
    padding: 3px 4px;
    border-radius: 8px;
    z-index: 25;
  }

  .seat-profile-row {
    gap: 3px;
    padding: 1px 2px;
  }

  .seat-avatar-img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: none;
    /* Koltuk boyutu kÃ¼Ã§Ã¼kken avatarÄ± gizle â€” sadece isim gÃ¶ster */
  }

  .seat-avatar-container {
    display: none;
    /* Avatar gizli */
  }

  .seat-player-name {
    font-size: 0.6rem;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .seat-join-btn {
    font-size: 0.52rem;
    border-radius: 6px;
  }

  .seat-leave-btn {
    font-size: 0.54rem;
    border-radius: 6px;
  }

  /* 4. LOBÄ° FOOTER BUTONLARI */
  .lobby-footer {
    width: 100%;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .card {
    width: 52px;
    height: 78px;
    font-size: 1rem;
  }

  .discard-slot .card {
    width: 62px;
    height: 92px;
  }

  /* â”€â”€ MOBÄ°L SKOR TABLOSU KUPA BUTONU (SOL ÃœST) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
  .mobile-scoreboard-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 15px !important;
    left: 15px !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    margin: 0 !important;
    background: linear-gradient(145deg, #2b1436 0%, #170921 100%);
    border: 2px solid #ffc800;
    border-top: 2px solid #fff5cc;
    border-bottom: 4px solid #806000;
    box-shadow:
      0 0 16px rgba(255, 200, 0, 0.45),
      0 6px 14px rgba(0, 0, 0, 0.85);
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 120;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-scoreboard-btn:active {
    transform: scale(0.92);
  }

  .btn-leave-lobby {
    display: none !important;
  }

  /* MOBİL SKOR TABLOSU POPUP MODALI & ANİMASYONLARI */
  @keyframes scoreboardMobilePop {
    0% {
      transform: translate(-50%, -46%) scale(0.88);
      opacity: 0;
    }

    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }

  .scoreboard-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100001 !important;
    animation: fadeInOverlay 0.2s ease-out forwards;
  }

  @keyframes fadeInOverlay {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* MOBİL SKOR TABLOSU POPUP MODALI */
  .scoreboard {
    display: none !important;
  }

  .scoreboard.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    transition: none !important;
    width: clamp(270px, 85vw, 320px);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 100002 !important;
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.95),
      0 0 25px rgba(255, 200, 0, 0.3) !important;
    animation: modalWildPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .scoreboard-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e61920 0%, #a30b10 100%);
    border: 1px solid #ff666b;
    border-bottom: 2px solid #5c0003;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
  }

  /* â”€â”€ MOBÄ°L KÄ°ÅžÄ° KARTLARI (TAM KARE, 2 DENGELÄ° SATIR SARMASI & KESÄ°LMEME) â”€â”€ */
  .opponents-row {
    display: flex;
    flex-wrap: wrap;
    /* 4-5 rakip olduğunda 3 üstte / kalan altta olacak şekilde satır sarma */
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    padding: 6px 8px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .opponent-row-break {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    flex-basis: 100%;
  }

  .opponent {
    flex: 0 0 auto;
    width: clamp(64px, 17.5vw, 84px);
    height: clamp(64px, 17.5vw, 84px);
    aspect-ratio: 1 / 1;
    /* Tam bir kare eski tasarım */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 6px 4px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
  }

  .opponent-details {
    display: contents;
    /* İç elemanlar doğrudan .opponent flex çocuğu olur */
  }

  /* 1. Üst Kısım: Oyuncu Adı (Ekran boyutuna göre dinamik ölçeklenir) */
  .opponent-name {
    order: 1;
    font-size: clamp(0.55rem, 2.5vw, 0.82rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1px;
    line-height: 1.15;
  }

  /* 2. Orta Kısım: Piksel Avatar (Kaldırıldı) */
  .opponent-avatar-box {
    display: none !important;
  }

  /* 3. Alt Kısım: Kart Sayısı (Dinamik metin ölçeklemesi) */
  .opponent-card-row {
    order: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .opponent-cards-badge {
    font-size: clamp(0.52rem, 2.3vw, 0.78rem);
    font-weight: 800;
    color: #ffc800;
    text-shadow: 1px 1px 2px #000;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .opponent-cards-badge .card-count-prefix {
    font-size: clamp(0.46rem, 2.0vw, 0.7rem);
    font-weight: 600;
    opacity: 0.9;
  }

  .opponent-cards-badge .card-count-num {
    font-size: clamp(0.58rem, 2.6vw, 0.88rem);
    font-weight: 900;
  }

  /* Mobilde temsilî mini kartlar gizlenir (alan tasarrufu) */
  .opponent-cards-mini {
    display: none !important;
  }

  /* Mobilde el kartları sırası ortalanır, 6'şar kartlık sıralar halinde sarılır */
  .hand-row {
    justify-content: flex-end;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: calc(38px + env(safe-area-inset-bottom, 0px));
  }

  /* R4: Mobilde kart boyutlarÄ± kÃ¼Ã§Ã¼ltÃ¼lÃ¼r â€” 7+ kart sÄ±raya sÄ±ÄŸsÄ±n */
  .card {
    min-height: 70px !important;
  }

  /* R8: Modaller mobilede yÃ¼ksek iÃ§erik taÅŸÄ±rsa scroll ile gÃ¶rÃ¼lebilsin */
  .modal-box {
    max-height: 90vh;
    overflow-y: auto;
  }

  /* C6: Lobi ekranÄ±nda iOS bounce scroll sorununu Ã§Ã¶z */
  body.lobby-bg {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}

/* â”€â”€ RENK ROZETÄ° (GÄ°ZLÄ°) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.color-badge {
  display: none !important;
}

/* â”€â”€ ARA BREAKPOINT: DAR MASAÃœSTÃœ / KÃœÃ‡ÃœK LAPTOP (721px â€“ 1023px) â”€â”€â”€â”€â”€â”€ */
@media (min-width: 721px) and (max-width: 1023px) {
  .card {
    width: 58px;
    height: 87px;
  }

  .discard-slot .card,
  #draw-pile.card {
    width: 68px;
    height: 100px;
  }

  .hand-row {
    gap: 5px;
  }

  /* R3: Tablet sidebar'Ä± daralabilir yap */
  .lobby-sidebar {
    min-width: 160px;
    width: clamp(160px, 22vw, 220px);
  }

  /* R6: Tablet'te scoreboard'u kÃ¼Ã§Ã¼k ama gÃ¶rÃ¼nÃ¼r tut */
  .scoreboard {
    font-size: clamp(0.58rem, 0.9vw, 0.72rem);
    width: clamp(160px, 20vw, 200px);
    top: 10px !important;
    left: 14px !important;
    right: auto !important;
  }

  /* Tablet'te lobi sidebar ve masa yan yana, kÃ¼Ã§Ã¼k aralÄ±kla */
  .lobby-unified-container {
    gap: 10px;
  }
}

/* â”€â”€ PIXEL ART BACKGROUND DECORATIONS (DÄ°NAMÄ°K RASTGELE YÃœZEN PIXEL EMOJÄ°LER) â”€â”€ */
.pixel-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  user-select: none;
}

.pixel-item {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: transform;
  cursor: pointer;
}

.pixel-art-img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
}

.pixel-wobble {
  animation: pixelWobble 3.2s ease-in-out infinite alternate;
}

@keyframes pixelWobble {
  0% {
    transform: translateY(0px) rotate(-4deg);
  }

  50% {
    transform: translateY(-6px) rotate(4deg);
  }

  100% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

.pixel-item:hover {
  z-index: 50;
}

.pixel-item:hover .pixel-art-img {
  transform: scale(1.45) rotate(10deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(255, 235, 59, 0.85));
}

.pixel-item:active .pixel-art-img {
  transform: scale(1.1) rotate(0deg);
}

/* Mobil Uyumlu Ã–lÃ§eklendirme */
@media (max-width: 900px) {
  .pixel-art-img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 600px) {
  .pixel-art-img {
    width: 24px;
    height: 24px;
  }
}

/* â”€â”€ TATLI PIXEL PATLAMA EFEKTÄ° (AYNI EMOJÄ° Ã‡ARPIÅžINCA) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pixel-pop-effect {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pixelPopAnim 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pixel-pop-effect .pop-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px #ffea00) drop-shadow(0 0 20px #ff3d00);
}

@keyframes pixelPopAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    opacity: 0;
  }

  35% {
    transform: translate(-50%, -50%) scale(1.45) rotate(15deg);
    opacity: 1;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.15) rotate(-10deg);
    opacity: 0.85;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.85) rotate(25deg);
    opacity: 0;
  }
}

/* ── SENİN SIRAN! (SIRA SENDE!) BANNER ───────────────────────────────────── */
@keyframes myturn-bounce-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -35px) scale(0.82);
    filter: drop-shadow(0 0 0 rgba(255, 180, 0, 0));
  }
  60% {
    opacity: 1;
    transform: translate(-50%, 6px) scale(1.05);
  }
  80% {
    transform: translate(-50%, -2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
  }
}

@keyframes myturn-bounce-out {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -25px) scale(0.92);
  }
}

@keyframes myturn-banner-glow {
  0%, 100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.75),
      0 0 35px rgba(255, 170, 0, 0.85),
      0 0 70px rgba(255, 70, 0, 0.5),
      inset 0 2px 0 rgba(255, 255, 255, 0.8),
      inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 14px 40px rgba(0, 0, 0, 0.85),
      0 0 55px rgba(255, 200, 0, 1),
      0 0 95px rgba(255, 90, 0, 0.75),
      inset 0 2px 0 rgba(255, 255, 255, 0.95),
      inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  }
}

@keyframes myturn-shine-sweep {
  0% {
    left: -130%;
  }
  40%, 100% {
    left: 220%;
  }
}

@keyframes myturn-mascot-jump {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  30% {
    transform: translateY(-5px) scale(1.12) rotate(-5deg);
  }
  60% {
    transform: translateY(-3px) scale(1.1) rotate(5deg);
  }
}

#my-turn-banner {
  position: fixed;
  top: clamp(14px, 2.8vh, 26px);
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 10000;
  pointer-events: none;
  user-select: none;
  width: max-content;
  max-width: clamp(320px, 86vw, 460px);
  animation: myturn-bounce-in 0.36s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#my-turn-banner.myturn-fadeout {
  animation: myturn-bounce-out 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.myturn-banner-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #ffae00 0%, #ff6200 48%, #e61920 100%);
  border: 2.5px solid #ffffff;
  outline: 3px solid rgba(255, 190, 0, 0.8);
  border-radius: 20px;
  padding: 8px 22px 8px 14px;
  animation: myturn-banner-glow 1.1s ease-in-out infinite;
  overflow: hidden;
}

.myturn-banner-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.55) 50%, transparent 85%);
  transform: skewX(-22deg);
  animation: myturn-shine-sweep 1.8s ease-in-out infinite;
  pointer-events: none;
}

.myturn-mascot-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.myturn-mascot-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
  animation: myturn-mascot-jump 1s ease-in-out infinite;
}

.myturn-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.myturn-headline {
  font-family: 'Russo One', var(--font-heading), sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 2px 0 #8b1800,
    0 3px 0 #5c1000,
    0 4px 8px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.myturn-subline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff9e6;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* â”€â”€ CUSTOM PERSON PIXEL ART SPRITES SPECIFIC STYLES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pixel-art-img.pixel-custom-sprite {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 4px rgba(255, 200, 0, 0.4));
}

/* â”€â”€ MOBÄ°L YATAY EKRAN (LANDSCAPE MODE) RESPONSIBLIK â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-height: 500px) {
  body.lobby-bg {
    padding: 6px 10px;
    justify-content: flex-start;
  }

  .screen.lobby-panel {
    max-width: 98vw;
    padding: 8px 12px;
  }

  .lobby-unified-container {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .lobby-sidebar {
    width: 170px;
    min-width: 160px;
    padding: 6px 8px;
  }

  .player-list-box {
    display: flex;
    flex-direction: column;
    max-height: 150px;
    gap: 4px;
    overflow-y: auto;
  }

  .player-name-text {
    max-width: 65px;
  }

  .lobby-seat-map {
    height: 210px;
    flex: 1;
    padding: 6px;
  }

  .lobby-felt-center {
    width: 56px;
    height: 56px;
    padding: 2px;
  }

  #seat-mode-info {
    font-size: 0.6rem;
  }

  .center-subtext {
    font-size: 6px;
  }

  .center-count {
    font-size: 8px;
  }

  .lobby-seat-pos {
    width: 68px;
    height: 38px;
    padding: 1px 2px;
  }

  .seat-avatar-img {
    width: 20px;
    height: 20px;
  }

  .seat-player-name {
    font-size: 0.52rem;
  }

  .seat-join-btn {
    font-size: 0.5rem;
  }
}

/* ============================================================
   JOKER / +4 SEÇİLEN RENK BÜRÜMESİ & SİSTEMİ (.wild-chosen-*)
   ============================================================ */

.card.card-img-based {
  background: #ffffff !important;
  /* Şeffaflığı tamamen engeller */
}

.card.img-load-failed .card-inner-border {
  display: flex !important;
}

.card.card-img-based .fallback-content {
  display: none;
}

.card.img-load-failed .fallback-content {
  display: flex !important;
}

/* Joker / +4 Kartı Seçilen Renk Bürümesi */
.card.wild-chosen-red {
  box-shadow: 0 0 25px rgba(255, 59, 69, 0.95), 0 0 50px rgba(255, 59, 69, 0.5), 0 8px 22px rgba(0, 0, 0, 0.8) !important;
  border: 3px solid #ff3b45 !important;
  background: radial-gradient(circle at center, #ff3b45 0%, #800005 100%) !important;
}

.card.wild-chosen-blue {
  box-shadow: 0 0 25px rgba(176, 102, 255, 0.95), 0 0 50px rgba(176, 102, 255, 0.5), 0 8px 22px rgba(0, 0, 0, 0.8) !important;
  border: 3px solid #b066ff !important;
  background: radial-gradient(circle at center, #b066ff 0%, #3d0099 100%) !important;
}

.card.wild-chosen-green {
  box-shadow: 0 0 25px rgba(0, 204, 91, 0.95), 0 0 50px rgba(0, 204, 91, 0.5), 0 8px 22px rgba(0, 0, 0, 0.8) !important;
  border: 3px solid #00cc5b !important;
  background: radial-gradient(circle at center, #00cc5b 0%, #004d22 100%) !important;
}

.card.wild-chosen-yellow {
  box-shadow: 0 0 25px rgba(255, 200, 0, 0.95), 0 0 50px rgba(255, 200, 0, 0.5), 0 8px 22px rgba(0, 0, 0, 0.8) !important;
  border: 3px solid #ffc800 !important;
  background: radial-gradient(circle at center, #ffdd00 0%, #b36b00 100%) !important;
}

/* Kart görseli üzerine renk halosu katmanı */
.wild-card-color-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  border-radius: 10px;
  mix-blend-mode: color-dodge;
  opacity: 0.6;
}

.wild-card-color-overlay.color-red {
  background: radial-gradient(circle at center, rgba(255, 59, 69, 0.85) 0%, transparent 75%);
}

.wild-card-color-overlay.color-blue {
  background: radial-gradient(circle at center, rgba(176, 102, 255, 0.85) 0%, transparent 75%);
}

.wild-card-color-overlay.color-green {
  background: radial-gradient(circle at center, rgba(0, 204, 91, 0.85) 0%, transparent 75%);
}

.wild-card-color-overlay.color-yellow {
  background: radial-gradient(circle at center, rgba(255, 200, 0, 0.85) 0%, transparent 75%);
}

/* Kartın ortasında görünen 3D renk kurdelesi */
.wild-card-color-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  z-index: 12;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 10px currentColor;
  border: 1.5px solid #ffffff;
  text-shadow: 1px 1px 2px #000;
  pointer-events: none;
  animation: wildRibbonPulse 1.2s ease-in-out infinite alternate;
}

.wild-card-color-ribbon.color-red {
  background: linear-gradient(135deg, #ff3b45 0%, #a30b10 100%);
}

.wild-card-color-ribbon.color-blue {
  background: linear-gradient(135deg, #b066ff 0%, #3d0099 100%);
}

.wild-card-color-ribbon.color-green {
  background: linear-gradient(135deg, #00cc5b 0%, #004d22 100%);
}

.wild-card-color-ribbon.color-yellow {
  background: linear-gradient(135deg, #ffc800 0%, #b36b00 100%);
  color: #000;
  text-shadow: none;
}

@keyframes wildRibbonPulse {
  0% {
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.96);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.08);
  }
}

/* Discard yuvası üstündeki renk rozeti */
.discard-chosen-color-badge {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 3, 16, 0.94);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  animation: badgeSlideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discard-chosen-color-badge.color-red {
  border: 1.5px solid #ff3b45;
}

.discard-chosen-color-badge.color-blue {
  border: 1.5px solid #b066ff;
}

.discard-chosen-color-badge.color-green {
  border: 1.5px solid #00cc5b;
}

.discard-chosen-color-badge.color-yellow {
  border: 1.5px solid #ffc800;
}

.discard-chosen-color-badge .badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.discard-chosen-color-badge.color-red .badge-dot {
  background: #ff3b45;
  box-shadow: 0 0 8px #ff3b45;
}

.discard-chosen-color-badge.color-blue .badge-dot {
  background: #b066ff;
  box-shadow: 0 0 8px #b066ff;
}

.discard-chosen-color-badge.color-green .badge-dot {
  background: #00cc5b;
  box-shadow: 0 0 8px #00cc5b;
}

.discard-chosen-color-badge.color-yellow .badge-dot {
  background: #ffc800;
  box-shadow: 0 0 8px #ffc800;
}

@keyframes badgeSlideDown {
  0% {
    transform: translate(-50%, -10px);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* ── ULTRA-PREMIUM FLOATING (i) BUTTON & MODAL ── */
.global-how-to-btn {
  position: fixed;
  bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #23422a 0%, #0d1e13 70%, #06110a 100%);
  border: 2px solid #ffde00;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.75),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(255, 222, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.how-to-btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffde00;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  transition: color 0.25s ease, transform 0.25s ease;
}

.how-to-icon {
  stroke: #ffde00;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.global-how-to-btn:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #ffffff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.85),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(255, 222, 0, 0.6);
}

.global-how-to-btn:hover .how-to-icon {
  stroke: #ffffff;
  transform: scale(1.1);
}

.global-how-to-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Ambient Pulsing Aura Effect */
.btn-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 222, 0, 0.35);
  animation: auraPulse 2.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
  pointer-events: none;
}

@keyframes auraPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.15;
  }

  100% {
    transform: scale(0.92);
    opacity: 0.85;
  }
}

.global-how-to-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  padding: 15px;
  animation: fadeInHowToModal 0.25s ease-out forwards;
}

.global-how-to-modal.hidden {
  display: none !important;
}

.global-how-to-box {
  background: linear-gradient(165deg, #132b1a 0%, #08160d 100%);
  border: 2px solid #ffde00;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 18px rgba(255, 222, 0, 0.25);
  color: #f8fafc;
  padding: 26px 28px;
  border-radius: 20px;
  width: min(92vw, 530px);
  position: relative;
  max-height: calc(88vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Outfit', 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.global-how-to-box::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.global-how-to-box::-webkit-scrollbar-thumb {
  display: none !important;
}

.global-how-to-close {
  position: absolute;
  top: 14px;
  z-index: 10;
  right: 18px;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #ffde00;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.global-how-to-close:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.global-how-to-title {
  color: #ffde00;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 4px 0;
  padding: 0 35px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
  font-family: inherit;
}

.global-how-to-subtitle {
  color: #cbd5e1;
  font-size: 0.88rem;
  text-align: center;
  margin: 0 0 20px 0;
  font-weight: 500;
  letter-spacing: 0.2px;
  opacity: 0.95;
  font-family: inherit;
}

.global-how-to-content .rules-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 222, 0, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.global-how-to-content h4 {
  color: #ffde00;
  font-size: 1.02rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-family: inherit;
}

.global-how-to-content p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #f1f5f9;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.15px;
  font-family: inherit;
}

.global-how-to-content ul,
.global-how-to-content ol {
  margin: 0;
  padding-left: 22px;
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.15px;
  font-family: inherit;
}

.global-how-to-content li {
  margin-bottom: 8px;
}

.global-how-to-content li strong {
  color: #ffffff;
  font-weight: 700;
}

.global-how-to-content li:last-child {
  margin-bottom: 0;
}

@keyframes fadeInHowToModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── MOBİL / DİK / YATIK EKRAN UYUMLULUĞU ── */
@media (max-width: 600px) {
  .global-how-to-btn {
    width: 48px;
    height: 48px;
    bottom: calc(36px + env(safe-area-inset-bottom, 0px));
    left: calc(18px + env(safe-area-inset-left, 0px));
  }

  .how-to-icon {
    width: 20px;
    height: 20px;
  }

  .global-how-to-box {
    padding: 20px 20px;
    border-radius: 16px;

    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .global-how-to-title {
    font-size: 1.2rem;
  }

  .global-how-to-content .rules-section {
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .global-how-to-content p,
  .global-how-to-content ul,
  .global-how-to-content ol {
    font-size: 0.88rem;
    line-height: 1.6;
  }
}

@media (max-height: 500px) {
  .global-how-to-btn {
    width: 40px;
    height: 40px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
  }

  .how-to-icon {
    width: 18px;
    height: 18px;
  }

  .global-how-to-box {
    max-height: 90vh;
    padding: 16px 18px;

    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }
}

/* ══════════════════════════════════════════════════════════════
   🔀 JOKER EL DEĞİŞTİRME (Wild Swap Hands) — MODAL STİLLERİ
   ══════════════════════════════════════════════════════════════ */

/* Modal kutusu — renk joker modaliyle uyumlu ama daha geniş */
.modal-swap-box {
  background: linear-gradient(145deg, rgba(20, 6, 40, 0.97) 0%, rgba(8, 2, 18, 0.99) 100%);
  border: 2px solid rgba(150, 60, 255, 0.7);
  border-top: 2px solid rgba(200, 140, 255, 0.6);
  border-bottom: 4px solid rgba(80, 0, 180, 0.8);
  border-radius: 24px;
  padding: clamp(18px, 2.5vh, 28px) clamp(16px, 2.5vw, 24px);
  width: clamp(300px, 88vw, 440px);
  max-height: 88vh;
  overflow-y: auto;
  text-align: center;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(140, 60, 255, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalWildPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-swap-box::-webkit-scrollbar {
  display: none;
}

/* Üst header: kart görseli + başlık yan yana */
.swap-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(140, 60, 255, 0.3);
}

.swap-modal-card-preview {
  width: 68px;
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(140, 60, 255, 0.5);
  flex-shrink: 0;
  object-fit: contain;
  animation: swapCardFloat 3s ease-in-out infinite;
}

@keyframes swapCardFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

.swap-modal-titles {
  text-align: left;
}

.swap-title {
  color: #c084fc;
  text-shadow: 1.5px 1.5px 0 #000, 0 0 12px rgba(180, 80, 255, 0.6);
  margin-bottom: 4px !important;
}

/* Hedef oyuncu listesi */
.swap-target-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Her bir hedef oyuncu kartı */
.swap-target-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: linear-gradient(135deg, rgba(100, 30, 180, 0.25) 0%, rgba(60, 10, 120, 0.3) 100%);
  border: 1.5px solid rgba(140, 60, 255, 0.4);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  font-family: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.swap-target-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 80, 255, 0) 0%, rgba(180, 80, 255, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}

.swap-target-card:hover {
  border-color: rgba(200, 120, 255, 0.85);
  background: linear-gradient(135deg, rgba(130, 50, 220, 0.4) 0%, rgba(90, 20, 170, 0.45) 100%);
  transform: translateX(4px) scale(1.01);
  box-shadow: 0 6px 20px rgba(140, 60, 255, 0.35), 0 0 0 1px rgba(200, 120, 255, 0.3);
}

.swap-target-card:hover::before {
  opacity: 1;
}

.swap-target-card:active {
  transform: scale(0.98);
}

/* Avatar sarmalayıcı */
.swap-target-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(180, 80, 255, 0.6);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(140, 60, 255, 0.4);
}

.swap-target-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Oyuncu bilgi alanı */
.swap-target-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.swap-target-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e8d5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 2px #000;
}

.swap-target-count {
  font-size: 0.78rem;
  color: rgba(200, 150, 255, 0.85);
  font-weight: 600;
}

/* Ok işareti */
.swap-target-arrow {
  font-size: 1.4rem;
  color: rgba(200, 120, 255, 0.7);
  font-weight: 900;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.swap-target-card:hover .swap-target-arrow {
  transform: translateX(4px);
  color: #c084fc;
}

/* Responsive */
@media (max-width: 480px) {
  .modal-swap-box {
    width: 94vw;
    padding: 14px 12px;
  }

  .swap-modal-card-preview {
    width: 52px;
  }

  .swap-target-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .swap-target-avatar-wrap {
    width: 42px;
    height: 42px;
  }
}

/* Yatay / Kısa Ekran Uyumluluğu (Landscape Responsiveness) */
@media (max-height: 520px) {
  .modal-swap-box {
    max-height: 94vh;
    padding: 10px 14px;
  }

  .swap-modal-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .swap-modal-card-preview {
    width: 40px;
  }

  .swap-target-list {
    gap: 6px;
  }

  .swap-target-card {
    padding: 8px 12px;
  }

  .swap-target-avatar-wrap {
    width: 36px;
    height: 36px;
  }
}

/* ── SWAP COLOR PICKER QUADRANT RENKLERİ ── */
.swap-color-pick.quadrant {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.swap-color-pick.quadrant.red {
  background: radial-gradient(circle at 30% 30%, #ff3b45 0%, #d90f19 70%, #800005 100%);
}

.swap-color-pick.quadrant.blue {
  background: radial-gradient(circle at 70% 30%, #b066ff 0%, #7b2fff 70%, #3d0099 100%);
}

.swap-color-pick.quadrant.yellow {
  background: radial-gradient(circle at 30% 70%, #ffdd00 0%, #ffaa00 70%, #b36b00 100%);
}

.swap-color-pick.quadrant.green {
  background: radial-gradient(circle at 70% 70%, #00cc5b 0%, #009944 70%, #004d22 100%);
}

.swap-color-pick.quadrant:hover {
  transform: scale(1.12);
  z-index: 15;
  filter: brightness(1.25) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.swap-color-pick.quadrant:active {
  transform: scale(0.98);
}

/* ══════════════════════════════════════════════════════════════
   👁️ MİNİMALİST RENK KÖRÜ MODU (Colorblind Mode) STİLLERİ
   ══════════════════════════════════════════════════════════════ */

.lobby-panel {
  position: relative;
}

.scoreboard-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.scoreboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.scoreboard-colorblind-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.scoreboard-colorblind-btn {
  padding: 3px 8px 3px 5px;
}

.colorblind-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 8, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 4px 10px 4px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.colorblind-toggle-btn:hover {
  background: rgba(40, 16, 60, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.colorblind-switch-track {
  width: 28px;
  height: 15px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.colorblind-switch-thumb {
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.colorblind-toggle-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

/* TOGGLE SEÇİLİ / AKTİF DURUM (ON) */
.colorblind-toggle-btn.active {
  background: linear-gradient(135deg, rgba(0, 204, 91, 0.35) 0%, rgba(0, 153, 68, 0.5) 100%);
  border-color: #00cc5b;
  box-shadow: 0 0 12px rgba(0, 204, 91, 0.4);
}

.colorblind-toggle-btn.active .colorblind-switch-track {
  background: #00cc5b;
  border-color: #00ff73;
}

.colorblind-toggle-btn.active .colorblind-switch-thumb {
  transform: translateX(13px);
  background: #ffffff;
}

.colorblind-toggle-btn.active .colorblind-toggle-text {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 204, 91, 0.7);
}

/* ── KART ÜSTÜ RENK METNİ (Keskin, jilet gibi ince %100 SAF SİYAH konturlu) ── */
.card {
  overflow: visible !important;
}

.card-colorblind-label {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff !important;
  font-family: var(--font-heading), 'Russo One', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 35;
  line-height: 1;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(4px);
  padding: 2.5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 4px rgba(255, 255, 255, 0.08);
}

body:not(.colorblind-mode) .card-colorblind-label,
body:not(.colorblind-mode) .quadrant-color-label {
  display: none !important;
}

body.colorblind-mode .card-colorblind-label,
body.colorblind-mode .quadrant-color-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ── JOKER / EL DEĞİŞTİRME RENK SEÇİM DİLİMLERİ İÇİNDEKİ RENK METNİ ── */
.quadrant-color-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff !important;
  font-family: var(--font-heading), 'Russo One', sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 25;
  line-height: 1;
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 6px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   ✨ BEYAZ İNCE KATMAN & HAFİF IŞIK HÜZMESİ (AURA GLOW)
   ══════════════════════════════════════════════════════════════ */

/* Siyah / Koyu Mesaj Kutuları (Toast) */
.toast-msg {
  border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.28),
    0 0 28px rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 26px rgba(0, 0, 0, 0.85) !important;
}

/* ══════════════════════════════════════════════════════════════
   🃏 KİNO TATLI & MİNİMAL OYUN ANİMASYONLARI
   ══════════════════════════════════════════════════════════════ */

/* 1. Masaya Giriş: Masa ve kartların yumuşak açılışı */
@keyframes tableFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.game-panel.active {
  animation: tableFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 2. Kart Dağıtımı: Kartların ele fırfır şeklinde sıralı kayması */
@keyframes dealCardAnim {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hand-row.initial-deal .card {
  animation: dealCardAnim 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

/* 3. Kart Atma Animasyonu (Elden atılırken hafif sıçrayıp fırlama) */
@keyframes cardPlayThrow {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-24px) scale(1.12) rotate(3deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-44px) scale(0.92) rotate(-2deg);
    opacity: 0;
  }
}

.card.card-playing {
  animation: cardPlayThrow 0.26s ease-in forwards !important;
  pointer-events: none;
}

/* 4. Masaya Kart Düşüşü: Ortadaki atık destesine yeni kart konduğunda tatlı sekme */
@keyframes discardLandAnim {
  0% {
    transform: scale(1.14) rotate(-3deg) translate3d(0, 0, 0);
    opacity: 0.95;
  }
  50% {
    transform: scale(0.97) rotate(1deg) translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg) translate3d(0, 0, 0);
    opacity: 1;
  }
}

.discard-slot .card.just-landed {
  animation: discardLandAnim 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 5. Uçan Kart Animasyonları (Desteden Ele Çekme & Elden Masaya Atma) */
.flying-card-draw,
.flying-card-play {
  position: fixed;
  border-radius: 12px;
  z-index: 85 !important; /* Ceza pop-up'ları (z:100000), bildirim ve modallerin altında kalır */
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.75), 0 0 12px rgba(255, 200, 0, 0.4);
  will-change: transform;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flying-card-draw {
  border: 1.5px solid #ffc800;
}

.flying-card-play {
  border: 1.5px solid rgba(255, 215, 0, 0.85);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.45);
}

/* 6. +2 / +4 Ceza Efekti Baloncuğu */
@keyframes penaltyBadgePop {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(-12deg);
    opacity: 0;
  }
  40% {
    transform: translate(-50%, -50%) scale(1.15) rotate(4deg);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -80%) scale(0.85) rotate(0deg);
    opacity: 0;
  }
}

.penalty-pop-badge {
  position: fixed;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ff0844 0%, #ff6b6b 100%);
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 8px 20px;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255, 8, 68, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 8, 68, 0.7);
  z-index: 100000;
  pointer-events: none;
  animation: penaltyBadgePop 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  white-space: nowrap;
}