/* â”€â”€ 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;
}

/* â”€â”€ 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);
}

.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%;
  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: 10px;
  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;
}

.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);
}

@media (hover: hover) and (pointer: fine) {
  .seat-occupied:hover .seat-profile-row {
    display: none !important;
  }

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

/* Dokunmatik / Mobil ekranlarda KALK butonu doğrudan görünür ve profil kartı kesilmez */
@media (hover: none) or (pointer: coarse) {
  .seat-occupied.seat-is-me .seat-leave-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.65rem;
    padding: 0;
    z-index: 30;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  }
}

/* Masa OrtasÄ± 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;
}

/* 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: hidden;
  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;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
  /* tek satÄ±r, aÅŸaÄŸÄ± taÅŸmaz */
  padding: 14px 12px 20px;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  /* Ã§ok kart varsa yatay kaydÄ±rma */
  overflow-y: visible;
  /* hover animasyonu yukarÄ± Ã§Ä±kabilsin */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox: scrollbar gizli */
  -ms-overflow-style: none;
  /* IE/Edge: scrollbar gizli */
}

.hand-row::-webkit-scrollbar {
  display: none !important;
  /* Chrome/Safari: scrollbar gizli */
  width: 0 !important;
  height: 0 !important;
}

.hand-row .card {
  flex: 0 0 auto;
  /* Kartlar daralmaz, sabit kalÄ±r */
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.hand-row .card:hover {
  transform: translateY(-10px) scale(1.04);
  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-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-row .card.playable:hover {
  transform: translateY(-14px) scale(1.08);
  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;
}

.kanzi-btn {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-red-main);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(230, 25, 32, 0.9);
  cursor: pointer;
  animation: kanziPulse 0.9s infinite;
  z-index: 40;
}

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

@keyframes kanziPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.08);
  }
}

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

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

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

/* â”€â”€ DERÄ°NLÄ°K HÄ°SLÄ° PROFESYONEL SKOR TABLOSU (.scoreboard) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.scoreboard {
  position: fixed;
  top: clamp(10px, 1.2vh, 18px);
  left: clamp(10px, 1.2vw, 18px);
  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 {
  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);
}

@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.25rem;
  color: #ffc800;
  margin: 0 0 4px 0;
  text-shadow: 1.5px 1.5px 0px #000, 0 0 10px rgba(255, 200, 0, 0.5);
  letter-spacing: 0.5px;
}

.modal-wild-subtitle {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px 0;
  font-weight: 500;
  text-shadow: 1px 1px 2px #000;
}

/* 4 PARÃ‡AYA BÃ–LÃœNMÃœÅ FÄ°ZÄ°KSEL 3D JOKER KARTI */
.wild-picker-card {
  width: 150px;
  height: 220px;
  background: #ffffff;
  border-radius: 16px;
  padding: 4px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(255, 200, 0, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 1),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: transform 0.25s ease;
}

.wild-picker-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.wild-card-quadrants {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  gap: 2px;
  background: #111111;
}

.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;
}

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

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

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

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

.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);
}

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

/* KART ORTA OVALÄ° (3D Ä°STÄ°F 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 center, #ffffff 0%, #f0ebf5 65%, #d6cbdf 100%);
  border-radius: 50%;
  border: 2.5px solid #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.7),
    inset 0 1.5px 2px rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 20;
}

.wild-card-capybara-mascot {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.wild-card-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  color: #111111;
  text-shadow: 1px 1px 0px #fff, 0 0 5px rgba(255, 200, 0, 0.8);
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 1px;
}

/* â”€â”€ 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;
}

.toast-msg {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e61920 0%, #a30b10 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.75), 0 0 15px rgba(230, 25, 32, 0.4);
  border: 1.5px solid #ff666b;
  border-bottom: 3.5px solid #5c0003;
  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;
  }

  /* Body mobilede scroll aÃ§Ä±k olsun (panel sÄ±ÄŸmayabilir) */
  body.lobby-bg {
    overflow-y: auto;
    justify-content: flex-start;
    padding: 16px 0 24px 0;
    align-items: center;
  }


  /* Lobi paneli: Rus BlÃ¶fÃ¼ gibi %90 geniÅŸlik, max 440px, ortalÄ± */
  .screen.lobby-panel {
    width: 90%;
    max-width: 440px;
    padding: 12px 12px 14px 12px;
    border-radius: 20px;
    margin: 0 auto;
    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: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    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 */
  .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;
    /* SaÄŸ alttan kayma zÄ±plamasÄ±nÄ± engeller */
    width: clamp(270px, 85vw, 320px);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.75),
      0 20px 50px rgba(0, 0, 0, 0.95),
      0 0 25px rgba(255, 200, 0, 0.3);
    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 kartlar 2 dengeli satÄ±ra kayar, kenardan kesilmez */
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    padding: 6px 8px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .opponent {
    flex: 0 0 auto;
    width: clamp(64px, 17.5vw, 78px);
    height: clamp(70px, 19vw, 84px);
    aspect-ratio: 1 / 1;
    /* Tam bir kare */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4px 3px 5px;
    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Ä± */
  .opponent-name {
    order: 1;
    font-size: clamp(0.58rem, 2.2vw, 0.68rem);
    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.1;
  }

  /* 2. Orta KÄ±sÄ±m: Piksel Avatar */
  .opponent-avatar-box {
    order: 2;
    margin: 1px 0;
    flex-shrink: 0;
  }

  .opponent-avatar-img {
    width: clamp(26px, 7.5vw, 32px);
    height: clamp(26px, 7.5vw, 32px);
  }

  /* 3. Alt KÄ±sÄ±m: Kart SayÄ±sÄ± */
  .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.58rem, 2.2vw, 0.68rem);
    font-weight: 800;
    color: #ffc800;
    text-shadow: 1px 1px 2px #000;
    white-space: nowrap;
  }

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

  /* Mobilde el kartlarÄ± sÄ±rasÄ± soldan hizalanÄ±r, kaydÄ±rma daha pÃ¼rÃ¼zsÃ¼z Ã§alÄ±ÅŸÄ±r */
  .hand-row {
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 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;
    right: 10px;
  }

  /* 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! BANNER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes myturn-enter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }

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

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

@keyframes myturn-exit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

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

@keyframes myturn-pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.9;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
  }

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

@keyframes myturn-card-l {
  0% {
    transform: rotate(-18deg) translateX(0);
  }

  50% {
    transform: rotate(-28deg) translateX(-6px);
  }

  100% {
    transform: rotate(-18deg) translateX(0);
  }
}

@keyframes myturn-card-r {
  0% {
    transform: rotate(18deg) translateX(0);
  }

  50% {
    transform: rotate(28deg) translateX(6px);
  }

  100% {
    transform: rotate(18deg) translateX(0);
  }
}

@keyframes myturn-label-shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

#my-turn-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 320px;
  animation: myturn-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  user-select: none;
}

#my-turn-banner.myturn-fadeout {
  animation: myturn-exit 0.28s ease-in forwards;
}

.myturn-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid rgba(230, 25, 32, 0.7);
  box-shadow:
    0 0 30px rgba(230, 25, 32, 0.5),
    0 0 60px rgba(230, 25, 32, 0.25),
    inset 0 0 20px rgba(230, 25, 32, 0.1);
  animation: myturn-pulse-ring 1.2s ease-out infinite;
}

.myturn-content {
  position: relative;
  background:
    linear-gradient(160deg,
      rgba(40, 8, 55, 0.97) 0%,
      rgba(20, 4, 30, 0.98) 50%,
      rgba(80, 10, 20, 0.97) 100%);
  border: 1.5px solid rgba(230, 25, 32, 0.55);
  border-top-color: rgba(255, 100, 100, 0.35);
  border-radius: 20px;
  padding: 28px 32px 24px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(180, 20, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.myturn-cards-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.myturn-card {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(230, 25, 32, 0.6));
}

.myturn-card-l {
  animation: myturn-card-l 1.4s ease-in-out infinite;
  transform-origin: bottom center;
}

.myturn-card-r {
  animation: myturn-card-r 1.4s ease-in-out infinite;
  transform-origin: bottom center;
}

.myturn-label {
  font-family: 'Russo One', var(--font-heading), sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg,
      #ff6060 0%,
      #ffffff 30%,
      #ffc800 50%,
      #ffffff 70%,
      #ff6060 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: myturn-label-shine 2s linear infinite;
  text-shadow: none;
  margin-bottom: 6px;
}

.myturn-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* â”€â”€ 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(20px + 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;
  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;
  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: 44px;
    height: 44px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: calc(14px + 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 */}
}
