/* =========================================================
   101 OKEY PLUS - AUTHENTIC CASINO & TABLE STYLESHEET
   ========================================================= */

:root {
  /* Casino Colors */
  --felt-green-light: #144630;
  --felt-green-mid: #0d3222;
  --felt-green-dark: #071f14;
  --felt-green-deep: #03100a;
  
  /* Wood & Metallics */
  --wood-mahogany-light: #482312;
  --wood-mahogany-mid: #2e140a;
  --wood-mahogany-dark: #190a04;
  --gold-primary: #d4af37;
  --gold-gradient: linear-gradient(135deg, #f7df94 0%, #d4af37 50%, #9a7214 100%);
  --gold-shine: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 100%);
  
  /* Tile Colors */
  --tile-bg: linear-gradient(180deg, #fdfcf9 0%, #f7f4ed 50%, #eee8db 100%);
  --tile-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(0, 0, 0, 0.1);
  --color-red: #c52228;
  --color-blue: #1d52d8;
  --color-black: #1e293b;
  --color-yellow: #d97706;
  
  /* UI Glows & Shadows */
  --glow-gold: 0 0 14px rgba(212, 175, 55, 0.65);
  --glow-green: 0 0 14px rgba(34, 197, 94, 0.65);
  --glow-orange: 0 0 14px rgba(249, 115, 22, 0.65);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Montserrat', sans-serif;
}

body.plus-theme {
  background: #020f08;
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#app-container {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(2, 15, 8, 0.28), rgba(2, 15, 8, 0.42)),
    url('../images/table-background-v1.jpg') center / cover no-repeat;
  border: none;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.mobile-not-supported {
  display: none;
}

/* Mobil oyun şimdilik devre dışı. Dokunmatik mobil cihazlarda uygulamanın
   tamamı yerine açık ve erişilebilir bir masaüstü uyarısı gösterilir. */
@media (pointer: coarse) and (hover: none) and (orientation: portrait),
       (max-width: 600px) and (orientation: portrait) {
  .mobile-not-supported {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100dvw;
    height: 100dvh;
    padding: 24px;
    background: radial-gradient(circle at 50% 35%, #144630 0%, #071f14 55%, #020f08 100%);
    color: #fff;
    text-align: center;
    overflow: auto;
  }

  .mobile-not-supported-card {
    width: 100%;
    max-width: 430px;
    min-width: 0;
    padding: 30px 24px;
    border: 2px solid #d4af37;
    border-radius: 22px;
    background: rgba(4, 20, 12, .94);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .85), 0 0 24px rgba(212, 175, 55, .22);
  }

  .mobile-not-supported-icon {
    margin-bottom: 14px;
    font-size: 52px;
  }

  .mobile-not-supported h1 {
    margin: 0 0 12px;
    color: #f1c40f;
    font-family: 'Cinzel', serif;
    font-size: clamp(25px, 8vw, 36px);
    overflow-wrap: anywhere;
  }

  .mobile-not-supported p {
    margin: 0 0 14px;
    color: #d5e8dc;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .mobile-not-supported strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  #app-container,
  .top-turn-timer-bar {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* =========================================================
   101 OKEY PLUS - AUTH & LOBBY VIEWS
   ========================================================= */

#auth-view {
  flex: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 70, 48, 0.34) 0%, rgba(7, 31, 20, 0.72) 68%, rgba(3, 16, 10, 0.88) 100%),
    url('../images/table-background-v1.jpg') center / cover no-repeat;
  position: relative;
  overflow-y: auto;
  padding: 24px 20px;
  box-sizing: border-box;
}

.plus-lobby-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  margin: auto;
  box-sizing: border-box;
}

#auth-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(241, 196, 15, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

#lobby-view {
  flex: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 70, 48, 0.3) 0%, rgba(7, 31, 20, 0.68) 70%, rgba(3, 16, 10, 0.86) 100%),
    url('../images/table-background-v1.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#lobby-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(241, 196, 15, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Lobby Top Bar */
.lobby-top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background:
    linear-gradient(rgba(3, 18, 10, 0.84), rgba(5, 25, 14, 0.91)),
    url('../images/table-background-v1.jpg') center 28% / cover no-repeat;
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(241, 196, 15, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
}

.lobby-left-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.btn-bot-quick-play {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: 1.5px solid #34d399;
  color: #fff;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  letter-spacing: 0.5px;
}

.btn-bot-quick-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
  border-color: #6ee7b7;
}

.btn-bot-quick-play:active {
  transform: translateY(1px);
}

.btn-lobby-rules,
.btn-open-rules {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 13px;
  border: 1px solid rgba(241, 196, 15, 0.58);
  color: #f7e6a5;
  background: rgba(6, 36, 19, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-lobby-rules:hover,
.btn-open-rules:hover {
  transform: translateY(-2px);
  border-color: #f1c40f;
  background: rgba(13, 74, 39, 0.96);
}

.btn-open-rules {
  width: 100%;
  margin-top: 12px;
}

.lobby-center-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.lobby-center-title .plus-logo-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 3px;
  margin: 0;
  color: #f1c40f;
  text-shadow: 0 2px 10px rgba(241, 196, 15, 0.5), 0 4px 20px rgba(0, 0, 0, 0.8);
}

.lobby-right-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.btn-lobby-sound {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(241, 196, 15, 0.4);
  color: #f1c40f;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-lobby-sound:hover {
  background: rgba(241, 196, 15, 0.18);
  border-color: #f1c40f;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
}

/* Center Virtual 4-Player Casino Table */
.lobby-center-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.lobby-table-wrapper {
  position: relative;
  width: min(94vw, 920px);
  max-width: 920px;
  height: min(58vh, 520px);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-virtual-felt {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, rgba(27, 122, 67, 0.28) 0%, rgba(13, 74, 39, 0.58) 62%, rgba(7, 42, 22, 0.78) 100%),
    url('../images/table-background-v1.jpg') center / cover no-repeat;
  border: 16px solid #4a2810;
  border-radius: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Positional Seat Pods around Virtual Table */
.lobby-seat-pod {
  position: absolute;
  z-index: 20;
  transition: all 0.25s;
}

.lobby-seat-pod.seat-top {
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
}

.lobby-seat-pod.seat-bottom {
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
}

.lobby-seat-pod.seat-left {
  left: -38px;
  top: 50%;
  transform: translateY(-50%);
}

.lobby-seat-pod.seat-right {
  right: -38px;
  top: 50%;
  transform: translateY(-50%);
}

/* Empty Seat Button */
.btn-sit-seat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 28, 16, 0.9);
  border: 2px dashed #f1c40f;
  border-radius: 24px;
  padding: 12px 22px;
  color: #f1c40f;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  animation: seatPulse 2s infinite ease-in-out;
}

.btn-sit-seat:hover {
  background: #f1c40f;
  color: #1a0802;
  border-style: solid;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.8);
}

@keyframes seatPulse {
  0% { box-shadow: 0 0 6px rgba(241, 196, 15, 0.3); }
  50% { box-shadow: 0 0 16px rgba(241, 196, 15, 0.7); }
  100% { box-shadow: 0 0 6px rgba(241, 196, 15, 0.3); }
}

/* Occupied Seat Card in Lobby */
.lobby-occupied-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 28, 16, 0.95);
  border: 2px solid #2ecc71;
  border-radius: 24px;
  padding: 9px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.7), 0 0 12px rgba(46, 204, 113, 0.4);
}

.lobby-occupied-card.is-me {
  border-color: #f1c40f !important;
  background: rgba(14, 45, 24, 0.98);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.7) !important;
}

.btn-leave-seat-pill,
.btn-remove-bot-pill {
  background: rgba(231, 76, 60, 0.25);
  border: 1px solid #e74c3c;
  color: #ff7675;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.15s;
}

.btn-leave-seat-pill:hover,
.btn-remove-bot-pill:hover {
  background: #c0392b;
  color: #fff;
}

.empty-seat-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-bot-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #10b981;
  color: #34d399;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.btn-add-bot-pill:hover {
  background: #10b981;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

.btn-rejoin-seat-pill {
  background: linear-gradient(135deg, #f1c40f 0%, #d4ac0d 100%);
  border: 1.5px solid #f9e79f;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-rejoin-seat-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.7);
}

.lobby-seat-busy {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  color: #888;
  font-size: 11px;
  font-weight: 800;
}

.lobby-occupied-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #f1c40f;
  background: #0c2918;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lobby-occupied-avatar img,
.lobby-occupied-avatar svg {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lobby-occupied-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lobby-occupied-name {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-occupied-badge {
  font-size: 9px;
  font-weight: 800;
  color: #2ecc71;
}

.lobby-occupied-card.is-host .lobby-occupied-badge,
.lobby-occupied-card.is-me .lobby-occupied-badge {
  color: #f1c40f;
}

/* Center Table Hub */
.lobby-table-center-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.table-brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #f1c40f;
  padding: 8px 20px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.table-num-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #f1c40f;
  letter-spacing: 1px;
}

.table-status-badge {
  font-size: 11px;
  font-weight: 800;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #2ecc71;
}

.table-instruction {
  font-size: 12px;
  color: #a8d5ba;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  margin: 0;
}

.btn-lobby-fill-bots {
  pointer-events: auto;
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  color: #111;
  border: 1.5px solid #fff;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.5), 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.btn-lobby-fill-bots:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.8);
  background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.btn-lobby-fill-bots.hidden {
  display: none !important;
}

.lobby-countdown-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 238px;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(8, 45, 25, 0.97), rgba(3, 22, 12, 0.98));
  border: 2px solid rgba(241, 196, 15, 0.78);
  padding: 10px 18px 10px 11px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  animation: countdownPulse 1s ease-in-out infinite alternate;
  z-index: 40;
}

@keyframes countdownPulse {
  0% { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72), 0 0 8px rgba(241, 196, 15, 0.18); }
  100% { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72), 0 0 18px rgba(241, 196, 15, 0.42); }
}

.countdown-pulse-ring {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.countdown-big-num {
  font-family: 'Oswald', sans-serif;
  font-size: 29px;
  font-weight: 900;
  color: #072e1a;
  line-height: 1;
}

.countdown-status-text {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f1c40f;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.plus-101 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.plus-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: var(--gold-gradient);
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.plus-logo-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, #f1c40f 60%, #e67e22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.plus-logo-sub {
  font-size: 10px;
  color: #a8d5ba;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Profile Card in Lobby */
.plus-profile-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.plus-avatar-box {
  position: relative;
}

.plus-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border: 2px solid #f1c40f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  overflow: hidden;
}

.plus-avatar-img img,
.plus-avatar-img svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.plus-level-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #d63031;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid #fff;
  white-space: nowrap;
}

.plus-profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lobby-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lobby-user-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.lobby-user-tag {
  font-size: 11px;
  color: #a8d5ba;
  font-weight: 700;
}

.lobby-header-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-profile-edit {
  background: rgba(52, 152, 219, 0.25);
  border: 1px solid #3498db;
  color: #aed6f1;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-profile-edit:hover {
  background: #2980b9;
  color: #fff;
}

.btn-logout {
  background: rgba(231, 76, 60, 0.25);
  border: 1px solid #e74c3c;
  color: #ff7675;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: #c0392b;
  color: #fff;
}

.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #2980b9;
  color: #fff;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid #fff;
  z-index: 5;
}

/* Avatar Picker Grid in Profile Settings */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  justify-items: center;
  max-height: 240px;
  overflow-y: auto;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-pick-item {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.avatar-pick-item img,
.avatar-pick-item svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.avatar-pick-item:hover {
  transform: scale(1.1);
  border-color: var(--gold-primary);
}

.avatar-pick-item.selected {
  border-color: #2ecc71 !important;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.8);
  transform: scale(1.08);
}

.avatar-pick-item.selected::after {
  content: '✓';
  position: absolute;
  bottom: 0;
  right: 0;
  background: #2ecc71;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.avatar-img-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Bot Avatar Badges */
.bot-avatar-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.bot-avatar-badge.bot-female {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  border: 1.5px solid #ffb6c1;
}

.bot-avatar-badge.bot-male {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  border: 1.5px solid #89f7fe;
}

.bot-glyph {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  line-height: 1;
}

/* =========================================================
   AUTH VIEW (LOGIN & REGISTER)
   ========================================================= */

/* =========================================================
   AUTH VIEW (FRIEND NAME PICKER)
   ========================================================= */

.name-picker-wrapper {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  margin: auto;
  box-sizing: border-box;
}

.name-picker-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(14, 40, 24, 0.95), rgba(6, 20, 12, 0.95));
  border: 2px solid rgba(241, 196, 15, 0.4);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(241, 196, 15, 0.2);
  box-sizing: border-box;
}

/* =========================================================
   NOBLE 101 OKEY - VIP AUTH & LOBBY ENHANCEMENTS
   ========================================================= */

.auth-box-container {
  width: min(100%, 560px);
  padding: 32px 30px 28px;
  border: 1.5px solid rgba(241, 196, 15, 0.45);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(16, 48, 30, 0.96) 0%, rgba(6, 24, 14, 0.98) 100%);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  text-align: center;
  position: relative;
  z-index: 10;
  margin: auto;
  backdrop-filter: blur(16px);
}

.auth-brand-header {
  margin-bottom: 22px;
}

.auth-brand-emblem {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 8px rgba(241, 196, 15, 0.6));
}

.auth-brand-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #f1c40f;
  text-shadow: 0 2px 14px rgba(241, 196, 15, 0.5), 0 4px 20px rgba(0, 0, 0, 0.9);
}

.auth-brand-subtitle {
  margin: 5px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #a8d5ba;
  text-transform: uppercase;
}

/* Tab Navigation */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.auth-tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #8fa395;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab .tab-icon {
  font-size: 18px;
}

.auth-tab .tab-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.auth-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab.active {
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.22) 0%, rgba(241, 196, 15, 0.08) 100%);
  border: 1px solid rgba(241, 196, 15, 0.6);
  color: #f1c40f;
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.15);
}

/* Tab Panes */
.auth-tab-pane {
  animation: fadeIn 0.2s ease;
  text-align: left;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Controls */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #bbd5c3;
  letter-spacing: 0.3px;
}

.input-hint {
  font-size: 10px;
  font-weight: 600;
  color: #8fa395;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.7;
}

.input-with-icon input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 42px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(241, 196, 15, 0.3);
  border-radius: 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.input-with-icon input:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.18);
  background: rgba(0, 0, 0, 0.5);
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #8fa395;
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-toggle-pwd:hover {
  color: #f1c40f;
}

/* Gender Selection */
.gender-selection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gender-option {
  cursor: pointer;
}

.gender-option input {
  display: none;
}

.gender-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.2s;
}

.gender-preview-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(241, 196, 15, 0.3);
  object-fit: cover;
}

.gender-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ccdcd1;
}

.gender-option input:checked + .gender-card {
  border-color: #f1c40f;
  background: rgba(241, 196, 15, 0.14);
  box-shadow: 0 4px 14px rgba(241, 196, 15, 0.2);
}

.gender-option input:checked + .gender-card .gender-title {
  color: #f1c40f;
}

/* Welcome gift badge */
.welcome-gift-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(241, 196, 15, 0.12) 0%, rgba(46, 204, 113, 0.12) 100%);
  border: 1px solid rgba(241, 196, 15, 0.35);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #e8f5e9;
}

.welcome-gift-badge .gift-icon {
  font-size: 20px;
}

.welcome-gift-badge strong {
  color: #f1c40f;
}

/* Auth Alerts */
.auth-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-alert.error {
  background: rgba(231, 76, 60, 0.18);
  border: 1px solid #e74c3c;
  color: #ff7675;
}

.auth-alert.success {
  background: rgba(46, 204, 113, 0.18);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

/* Primary Auth Button */
.btn-auth-primary {
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
  border: 1.5px solid #f1c40f;
  border-radius: 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.5);
  border-color: #ffeaa7;
}

.btn-auth-primary:active {
  transform: translateY(1px);
}

.btn-auth-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Switch Link */
.auth-switch-link {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  color: #8fa395;
  margin-top: 2px;
}

.auth-switch-link .link-btn {
  background: transparent;
  border: none;
  color: #f1c40f;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

.auth-switch-link .link-btn:hover {
  color: #ffeaa7;
}

/* Predefined Tab Custom Styling */
.predefined-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #ccdcd1;
}

.predefined-hint-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid rgba(241, 196, 15, 0.4);
  color: #f1c40f;
  padding: 4px 10px;
  border-radius: 12px;
}

.predefined-pwd-box {
  margin-top: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid #f1c40f;
  border-radius: 16px;
  animation: fadeIn 0.2s ease;
}

.predefined-pwd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.predefined-selected-avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #f1c40f;
  overflow: hidden;
  flex-shrink: 0;
}

.predefined-selected-avatar-mini img,
.predefined-selected-avatar-mini svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.predefined-pwd-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #fff;
}

.predefined-pwd-title strong {
  color: #f1c40f;
}

.predefined-pwd-hint {
  font-size: 11px;
  color: #8fa395;
}

.predefined-pwd-row {
  display: flex;
  gap: 10px;
}

.predefined-pwd-row input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(241, 196, 15, 0.35);
  border-radius: 12px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
}

.predefined-pwd-row input:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

.predefined-pwd-row .btn-auth-primary {
  width: auto;
  min-width: 130px;
  height: 46px;
  font-size: 12px;
}

/* =========================================================
   LOBBY CHIPS PILL & PROFILE MODAL
   ========================================================= */

.lobby-chips-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(180deg, rgba(20, 50, 30, 0.8) 0%, rgba(6, 25, 15, 0.95) 100%);
  border: 1.5px solid rgba(241, 196, 15, 0.5);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.chips-coin-icon {
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.chips-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #f1c40f;
  letter-spacing: 0.5px;
}

.chips-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  color: #a8d5ba;
  letter-spacing: 1px;
}

.avatar-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #000;
}

/* Profile Manage Modal */
.profile-manage-card {
  width: min(94vw, 460px);
  background: linear-gradient(155deg, rgba(16, 48, 30, 0.98) 0%, rgba(6, 24, 14, 0.99) 100%);
  border: 1.5px solid rgba(241, 196, 15, 0.5);
  border-radius: 24px;
  padding: 24px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  color: #fff;
  box-sizing: border-box;
}

.profile-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0;
}

.profile-avatar-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-avatar-frame-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.modal-avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #f1c40f;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.35), 0 0 15px rgba(0, 0, 0, 0.6);
  background: #0d2818;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-avatar-preview img,
.modal-avatar-preview svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-camera-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1c40f;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 2px solid #06180e;
  transition: transform 0.15s;
}

.avatar-camera-overlay:hover {
  transform: scale(1.15);
}

.profile-avatar-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-avatar-pill {
  padding: 7px 14px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
}

.btn-avatar-upload {
  background: rgba(241, 196, 15, 0.18);
  border-color: #f1c40f;
  color: #f1c40f;
}

.btn-avatar-upload:hover {
  background: #f1c40f;
  color: #000;
}

.btn-avatar-delete {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
  color: #ff7675;
}

.btn-avatar-delete:hover {
  background: #e74c3c;
  color: #fff;
}

.avatar-format-note {
  font-size: 10px;
  color: #8fa395;
}

.avatar-upload-status {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.avatar-upload-status.success {
  color: #2ecc71;
}

.avatar-upload-status.error {
  color: #e74c3c;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-info-label {
  font-size: 10px;
  font-weight: 700;
  color: #8fa395;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.profile-role-badge {
  font-size: 11px;
  font-weight: 800;
  color: #f1c40f;
}

.profile-chips-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(241, 196, 15, 0.15) 0%, rgba(20, 55, 35, 0.8) 100%);
  border: 1.5px solid rgba(241, 196, 15, 0.4);
  border-radius: 14px;
}

.chips-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chips-banner-icon {
  font-size: 26px;
}

.chips-banner-title {
  font-size: 10px;
  font-weight: 700;
  color: #a8d5ba;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chips-banner-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #f1c40f;
  letter-spacing: 0.5px;
}

.chips-banner-tag {
  font-size: 9px;
  font-weight: 800;
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid #2ecc71;
  color: #2ecc71;
  padding: 3px 8px;
  border-radius: 8px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #f1c40f;
}

.stat-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #8fa395;
}

.profile-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-modal-logout {
  background: rgba(231, 76, 60, 0.18);
  border: 1px solid #e74c3c;
  color: #ff7675;
  padding: 9px 16px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-logout:hover {
  background: #e74c3c;
  color: #fff;
}

.btn-modal-done {
  flex: 1;
  max-width: 140px;
  background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
  border: 1.5px solid #f1c40f;
  color: #fff;
  padding: 9px 16px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-done:hover {
  transform: translateY(-1px);
  border-color: #ffeaa7;
}

@media (max-width: 650px) {
  .auth-box-container {
    padding: 22px 16px 20px;
  }
  .auth-brand-title {
    font-size: 26px;
  }
  .auth-tabs {
    gap: 4px;
    padding: 3px;
  }
  .auth-tab {
    padding: 6px 2px;
  }
  .auth-tab .tab-icon {
    font-size: 14px;
  }
  .auth-tab .tab-label {
    font-size: 8px;
  }
  .gender-selection-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gender-card {
    padding: 6px 10px;
  }
  .gender-preview-img {
    width: 32px;
    height: 32px;
  }
  .gender-title {
    font-size: 11px;
  }
  .lobby-chips-pill {
    padding: 4px 8px;
  }
  .chips-amount {
    font-size: 11px;
  }
}

.name-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 650px) {
  .name-picker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.name-card {
  background: rgba(10, 28, 18, 0.85);
  border: 1.5px solid rgba(241, 196, 15, 0.3);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.name-card.available {
  cursor: pointer;
}

.name-card.available:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #f1c40f;
  background: rgba(20, 55, 35, 0.95);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.35);
}

.name-card.available:active {
  transform: translateY(-1px) scale(1.01);
}

.name-card.occupied {
  opacity: 0.5;
  filter: grayscale(0.5);
  cursor: not-allowed;
  border-color: rgba(231, 76, 60, 0.4);
}

.name-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid #f1c40f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #103b22 0%, #061c10 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.name-card-avatar img,
.name-card-avatar svg,
.avatar-img-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.name-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.name-card-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.name-card-status {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.status-available {
  background: rgba(46, 204, 113, 0.25);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.status-occupied {
  background: rgba(231, 76, 60, 0.25);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.status-selected {
  background: rgba(241, 196, 15, 0.3);
  color: #f1c40f;
  border: 1px solid #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.5);
}

.status-previewed {
  background: rgba(52, 152, 219, 0.25);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.4);
  animation: pulse 1.5s infinite;
}

/* Being Previewed / Hovered by Another Player */
.name-card.previewed {
  border-color: rgba(52, 152, 219, 0.7);
  box-shadow: 0 0 14px rgba(52, 152, 219, 0.4);
}

/* Selected Character Card */
.name-card.selected {
  border-color: #2ecc71 !important;
  background: linear-gradient(135deg, rgba(20, 65, 38, 0.98), rgba(12, 42, 24, 0.98)) !important;
  box-shadow: 0 0 24px rgba(46, 204, 113, 0.75), inset 0 0 15px rgba(46, 204, 113, 0.25) !important;
  transform: translateY(-6px) scale(1.05) !important;
}

.name-card.selected::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #2ecc71;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border: 1.5px solid #fff;
  z-index: 5;
}

.name-card.selected .name-card-avatar {
  border-color: #2ecc71;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.8);
}

/* Auth Action Container */
.auth-action-box {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.selected-char-info {
  font-size: 13px;
  color: #a8d5ba;
  font-weight: 700;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-char-info .char-hint {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.selected-char-info .char-selected-badge {
  color: #2ecc71;
  font-size: 14px;
  font-weight: 800;
}

.selected-char-info .char-selected-badge strong {
  color: #f1c40f;
  font-size: 15px;
  text-decoration: underline;
}

.btn-enter-game {
  width: 100%;
  max-width: 380px;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #1e824c 100%);
  border: 2px solid #a8e6cf;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.5), 0 0 15px rgba(241, 196, 15, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-enter-game:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(46, 204, 113, 0.7), 0 0 25px rgba(241, 196, 15, 0.5);
  border-color: #ffffff;
  background: linear-gradient(135deg, #38e080 0%, #2ecc71 50%, #27ae60 100%);
}

.btn-enter-game:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn-enter-game:disabled,
.btn-enter-game.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.7);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.plus-input {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(241, 196, 15, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  outline: none;
  transition: all 0.2s;
}

.plus-input:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

.plus-chip-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.chip-icon {
  font-size: 14px;
}

.chip-amount {
  font-size: 12px;
  font-weight: 800;
  color: #f1c40f;
}

/* Actions Container */
.plus-actions-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-plus-gold {
  background: linear-gradient(180deg, #ffe066 0%, #f39c12 60%, #d35400 100%);
  border: 2px solid #fff;
  border-radius: 30px;
  color: #1a0802;
  font-size: 14px;
  font-weight: 900;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6), inset 0 2px 0 rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, filter 0.15s;
  letter-spacing: 1px;
}

.btn-plus-green {
  background: linear-gradient(180deg, #2ecc71 0%, #27ae60 60%, #1e8449 100%);
  border: 2px solid #a8f0c2;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 13px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5), inset 0 2px 0 rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
  letter-spacing: 1px;
}

.btn-plus-blue {
  background: linear-gradient(180deg, #3498db 0%, #2980b9 60%, #1f618d 100%);
  border: 1px solid #aed6f1;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 11px;
  cursor: pointer;
  flex: 1;
  box-shadow: 0 4px 12px rgba(41, 128, 185, 0.5);
  transition: transform 0.15s;
}

.btn-plus-purple {
  background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 60%, #6c3483 100%);
  border: 1px solid #d7bde2;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 11px;
  cursor: pointer;
  flex: 1;
  box-shadow: 0 4px 12px rgba(142, 68, 173, 0.5);
  transition: transform 0.15s;
}

.btn-plus-gold:hover, .btn-plus-green:hover, .btn-plus-blue:hover, .btn-plus-purple:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-plus-gold:active, .btn-plus-green:active, .btn-plus-blue:active, .btn-plus-purple:active {
  transform: translateY(1px);
}

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

/* =========================================================
   101 OKEY PLUS - GAME TABLE VIEW
   ========================================================= */

#game-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(3, 22, 13, 0.25), rgba(2, 15, 8, 0.38)),
    url('../images/table-background-v1.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* =========================================================
   TOP-RIGHT FLOATING MENU DROPDOWN
   ========================================================= */

.menu-dropdown-wrapper {
  position: absolute;
  top: 10px;
  right: 75px;
  z-index: 50;
}

.btn-menu-trigger {
  background: rgba(8, 28, 16, 0.95);
  border: 1.5px solid #f1c40f;
  color: #f1c40f;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.btn-menu-trigger:hover {
  background: rgba(241, 196, 15, 0.3);
  transform: translateY(-1px);
}

.table-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: linear-gradient(135deg, rgba(14, 38, 24, 0.98), rgba(6, 20, 12, 0.98));
  border: 2px solid #f1c40f;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  z-index: 100;
  animation: fadeInMeld 0.2s ease-out;
}

.menu-item-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  transition: all 0.15s;
}

.menu-item-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.btn-menu-start {
  background: linear-gradient(180deg, #2ecc71, #27ae60);
  border-color: #a8f0c2;
  color: #fff;
  font-weight: 800;
}

.btn-menu-leave {
  background: linear-gradient(180deg, rgba(231, 76, 60, 0.3), rgba(192, 57, 43, 0.5));
  border-color: #e74c3c;
  color: #ff7675;
}

.btn-menu-leave:hover {
  background: #c0392b;
  color: #fff;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
}

.menu-label {
  color: #a8d5ba;
  font-weight: 700;
}

.menu-code {
  color: #f1c40f;
  letter-spacing: 1px;
  font-weight: 900;
}

.btn-copy-pill {
  background: var(--gold-gradient);
  border: none;
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 8px;
  cursor: pointer;
}

/* Status & Points Center Group */
.status-points-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-status-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.status-my-turn {
  background: rgba(39, 174, 96, 0.9);
  border: 1.5px solid #2ecc71;
  color: #fff;
  animation: pulse 1.2s infinite;
}

.status-opponent-turn {
  background: rgba(243, 156, 18, 0.9);
  border: 1.5px solid #f39c12;
  color: #fff;
}

.status-waiting {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ddd;
}

/* =========================================================
   101 OKEY PLUS - CASINO TABLE CANVAS & FELT MAT
   ========================================================= */

.plus-table-canvas {
  --side-profile-offset: -10px;
  --side-profile-width: 105px;
  flex: 1;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  background: transparent;
}

.table-felt-mat {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  height: calc(100% - 156px);
  width: fit-content;
  max-width: 95%;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at center, rgba(16, 102, 58, 0.24) 0%, rgba(12, 77, 44, 0.5) 58%, rgba(7, 46, 26, 0.74) 100%),
    url('../images/table-background-v1.jpg') center / cover no-repeat;
  border: 7px solid #241108;
  border-radius: 40px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85), 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(241, 196, 15, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  box-sizing: border-box;
  will-change: height, border-radius;
  transition: height .52s cubic-bezier(.22,1,.36,1), border-radius .46s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}

.felt-watermark {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-size: 54px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: 8px;
  pointer-events: none;
  z-index: 1;
}

/* Waiting Lobby Center Overlay */
.waiting-lobby-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 8, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 120px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.lobby-center-card {
  background: linear-gradient(135deg, rgba(14, 40, 24, 0.98), rgba(6, 20, 12, 0.98));
  border: 2px solid var(--gold-primary);
  border-radius: 24px;
  padding: 24px 36px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(241, 196, 15, 0.3);
  max-width: 440px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lobby-card-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: 1px;
}

.lobby-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(241, 196, 15, 0.4);
  padding: 8px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: #fff;
}

.lobby-code-box strong {
  font-size: 20px;
  color: var(--gold-primary);
  letter-spacing: 2px;
  font-family: 'Cinzel', monospace, sans-serif;
}

.lobby-card-desc {
  font-size: 12px;
  color: #a8d5ba;
  font-weight: 600;
}

.btn-center-start {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
  animation: pulse 1.6s infinite;
}

/* =========================================================
   101 OKEY PLUS - OUTER PLAYER INFO BARS (OUTSIDE FELT)
   ========================================================= */

.player-outer-bar {
  position: absolute;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(8, 28, 16, 0.95), rgba(4, 15, 8, 0.95));
  border: 1.5px solid rgba(241, 196, 15, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  z-index: 30;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}

/* Top Balanced Outer Bar (In Canvas Above Oval Table) */
.bar-top {
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 8px;
  border-radius: 28px;
  width: auto;
  min-width: 175px;
  max-width: 230px;
  justify-content: center;
}

/* Left & Right Vertical Outer Bars (In Canvas to Left/Right of Oval Table) */
.bar-left {
  left: calc(var(--side-profile-offset) + var(--side-profile-width));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 18px;
  width: var(--side-profile-width);
  min-height: 86px;
  text-align: center;
}

.bar-right {
  right: calc(var(--side-profile-offset) + var(--side-profile-width));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 18px;
  width: var(--side-profile-width);
  min-height: 86px;
  text-align: center;
}

/* =========================================================
   FULL-SCREEN TOP TURN TIMER PROGRESS BAR (ACTIVE PLAYER)
   ========================================================= */

.top-turn-timer-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 10px !important;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 2px solid #f1c40f;
  z-index: 999999 !important;
  overflow: visible;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 0 15px rgba(241, 196, 15, 0.5);
  transition: opacity 0.25s ease;
}

.top-turn-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2ecc71 0%, #f1c40f 65%, #e74c3c 100%);
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.9);
  transition: width 0.1s linear;
}

.top-turn-timer-fill.urgent-pulse {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%) !important;
  box-shadow: 0 0 20px #e74c3c, 0 0 35px rgba(231, 76, 60, 0.9) !important;
  animation: timerBarFlash 0.5s infinite alternate;
}

@keyframes timerBarFlash {
  0% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* =========================================================
   DYNAMIC ACTIVE TURN FOCUS MODE (OVAL TABLE EXPANSION)
   ========================================================= */

.my-turn-focus .bar-top {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-25px) scale(0.8) !important;
}

.my-turn-focus .bar-bottom {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) scale(0.8) !important;
}

.my-turn-focus .table-felt-mat {
  top: 50% !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  height: calc(100% - 38px) !important;
  width: fit-content !important;
  max-width: 95% !important;
  border-radius: 36px !important;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9), 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 0 3px rgba(241, 196, 15, 0.6) !important;
}

.my-turn-focus .canvas-bottom-strip {
  bottom: 6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 852px !important;
}

.my-turn-focus .grid-cell-slot .okey-tile .tile-number {
  font-size: clamp(16px, 1.55vw, 20px) !important;
}

.table-top-actions {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bar-player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

/* Avatar Ring & Active Turn Timer */
.avatar-ring-container {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.player-indicator-g-badge {
  position: absolute;
  z-index: 12;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #12351f;
  background: linear-gradient(145deg, #fff5a8, #f1c40f);
  border: 2px solid #fffbd6;
  box-shadow: 0 2px 8px rgba(0,0,0,.65), 0 0 10px rgba(241,196,15,.55);
  font: 900 11px/1 Arial, sans-serif;
}

/* Rozet avatarın dış çerçevesine oturur ve her koltukta ekranın içine bakar. */
.player-indicator-g-badge.indicator-pos-bottom,
.player-indicator-g-badge.indicator-pos-left {
  right: -8px;
  top: -8px;
}

.player-indicator-g-badge.indicator-pos-right {
  left: -8px;
  top: -8px;
}

.player-indicator-g-badge.indicator-pos-top {
  right: -8px;
  bottom: -8px;
}

#indicator-tile-slot.can-declare-indicator {
  cursor: copy;
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255,224,92,.75), 0 0 18px rgba(255,208,0,.55);
  animation: indicatorDeclarePulse 1.35s ease-in-out infinite;
}

#indicator-tile-slot.indicator-drag-over,
#indicator-tile-slot.mobile-drag-target {
  transform: scale(1.12);
  outline: 3px solid #fff3a0;
  outline-offset: 3px;
}

@keyframes indicatorDeclarePulse {
  50% { box-shadow: 0 0 0 3px rgba(255,224,92,.9), 0 0 25px rgba(255,208,0,.8); }
}

.pod-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b3a4b, #006466);
  border: 2px solid #f1c40f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.pod-avatar img,
.pod-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.pod-level {
  position: absolute;
  bottom: -3px;
  right: -2px;
  background: #d63031;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 6px;
  border: 1px solid #fff;
  z-index: 3;
}

/* Active Player Radiant Pulse */
.player-outer-bar.active-turn {
  border-color: #f1c40f;
  box-shadow: 0 0 24px rgba(241, 196, 15, 0.85), 0 8px 24px rgba(0,0,0,0.8);
}

.player-outer-bar.active-turn .avatar-ring-container::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed #f1c40f;
  animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.player-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  max-width: 85px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-score {
  font-size: 11px;
  font-weight: 700;
  color: #f1c40f;
}

.player-open-status {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 8px;
  width: fit-content;
  letter-spacing: 0.5px;
}

.player-open-status.not-opened {
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.player-open-status.opened {
  background: rgba(46, 204, 113, 0.35);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.player-open-status.opened-pairs {
  background: rgba(155, 89, 182, 0.35);
  border: 1px solid #9b59b6;
  color: #d7bde2;
}

.rack-remaining-hand-penalty {
  position: absolute;
  top: -34px;
  right: -1px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 128, 128, 0.48);
  border-radius: 8px;
  background: rgba(58, 10, 14, 0.78);
  color: rgba(255, 145, 145, 0.92);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.15px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.68);
}

.rack-remaining-hand-penalty.is-rack-helper {
  border-color: rgba(209, 184, 104, 0.42);
  background: rgba(7, 43, 29, 0.88);
  color: rgba(235, 218, 160, 0.96);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.55), inset 0 0 8px rgba(198, 166, 73, 0.08);
}

/* Other Players Turn Progress Bar */
.player-turn-progress-track {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  width: auto;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-outer-bar.active-turn .player-turn-progress-track {
  opacity: 1;
}

.bar-left.active-turn,
.bar-right.active-turn {
  padding-bottom: 18px;
}

.player-turn-progress-fill {
  height: 100%;
  width: 100%;
  background: #48d597;
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(1);
  will-change: transform;
  transition: none;
}

#seat-left .player-turn-progress-fill { background: #48d597; }
#seat-right .player-turn-progress-fill { background: #48d597; }
#seat-top .player-turn-progress-fill { background: #48d597; }
#seat-bottom .player-turn-progress-fill { background: #48d597; }

/* Karşı oyuncuda süre, avatarın altına uzamaz; sağdaki isim alanında akar. */
.bar-top .bar-player-info,
.bar-bottom .bar-player-info {
  flex: 1 1 auto;
  min-width: 0;
  align-items: stretch;
}

.bar-top .player-name,
.bar-bottom .player-name {
  order: 1;
  max-width: none;
  text-align: center;
}

.bar-top .player-turn-progress-track {
  order: 3;
  position: static;
  width: 74px;
  height: 3px;
  align-self: center;
  margin-top: 3px;
}

.bar-top .player-turn-progress-fill {
  background: #48d597;
}

.bar-top .player-open-status,
.bar-bottom .player-open-status {
  order: 3;
  align-self: center;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

.bar-top .player-open-status {
  order: 2;
}

/* Oyuncunun kendi süresi yalnızca ıstaka üstündeki yeşil çizgide gösterilir. */
#seat-bottom .player-turn-progress-track {
  display: none !important;
}

/* Red Penalty Badge displayed as corner badge on pods (+101, +202) */
.player-penalty-pill {
  position: absolute;
  top: -7px;
  right: -8px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1.5px solid #ff7675;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

.player-penalty-pill.is-bonus {
  background: linear-gradient(135deg, #27ae60 0%, #187a42 100%);
  border-color: #7ee2a6;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.62), 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   CENTER BOARD (MELDS & PILES) - SPREAD ACROSS ENTIRE FELT
   ========================================================= */

.center-table-zone {
  width: fit-content;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 10;
  padding: 2px 4px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Sol ve Orta: 2 Tane Yan Yana 13x13 Seri Açma Bölmesi */
.seri-section-wrapper {
  display: flex;
  align-items: stretch;
  background-color: #071d13;
  border: 2px solid #1a3a2a;
  border-radius: 12px;
  overflow: visible;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.75), 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  height: 100%;
  min-height: 0;
  width: fit-content;
  flex: 0 0 auto;
}

.seri-panel {
  display: flex;
  flex-direction: column;
  padding: 3px 4px;
  position: relative;
  width: fit-content;
  flex: 0 0 auto;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: transparent;
}

/* Plain Center Deck Opening Target Badge (Above Indicator - Stacked Alt Alta) */
.center-deck-target {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(241, 196, 15, 0.45);
  border-radius: 8px;
  padding: 5px 10px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 3px;
  line-height: 1.2;
}

.center-deck-target .target-seri-line {
  font-size: 13px;
  font-weight: 900;
  color: #f1c40f;
  letter-spacing: 0.5px;
}

.center-deck-target .target-pairs-line {
  font-size: 11px;
  font-weight: 800;
  color: #d7bde2;
  letter-spacing: 0.5px;
}

.seri-divider-line {
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.grid-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-align: center;
}

.pairs-watermark {
  font-size: 26px;
}

.panel-rows-container {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(13, 1fr);
  gap: 2px;
  overflow: hidden !important;
  z-index: 2;
  box-sizing: border-box;
  padding: 1px;
}

/* 13-Column Meld Row (Natural Board Slots - Exact 44:60 Aspect Ratio Matching Rack Tiles) */
.table-grid-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.grid-cell-slot {
  height: 100%;
  aspect-ratio: 44 / 60;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transition: all 0.15s;
  padding: 0;
  margin: 0;
}

.grid-cell-slot.has-tile {
  background: transparent;
  border-color: transparent;
}

.grid-cell-slot .okey-tile,
.grid-cell-slot .okey-tile.tile-small {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 44 / 60 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 3px !important;
  border: 1px solid #d5c8b5 !important;
  box-shadow: var(--tile-shadow) !important;
  background: var(--tile-bg) !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.grid-cell-slot .okey-tile .tile-number {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(16px, 1.55vw, 20px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin-top: -2px !important;
}

.grid-cell-slot .okey-tile .tile-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  margin-top: 1px !important;
}

.grid-cell-slot .okey-tile .fake-okey-emblem {
  width: 14px !important;
  height: 14px !important;
}

.table-grid-row.meld-drag-hover .grid-cell-slot.has-tile,
.table-pairs-row.meld-drag-hover .grid-cell-slot.has-tile {
  outline: 2px solid #2ecc71 !important;
  box-shadow: 0 0 10px #2ecc71 !important;
  border-radius: 4px;
}



/* Orta/Ayırıcı: Deste ve Gösterge Ahşap Şeridi (Bölmenin En Altına Yapışık) */
.center-deck-strip {
  width: fit-content;
  min-width: 140px;
  max-width: 160px;
  height: 100%;
  background: linear-gradient(180deg, #1b3829 0%, #0d2117 100%);
  border: 2px solid #284c39;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px 5px 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  z-index: 15;
  align-self: stretch;
  margin-top: 0;
  box-sizing: border-box;
  position: relative;
}

.turn-center-actions {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: calc(100% - 8px);
  box-sizing: border-box;
  padding: 5px 4px;
  border: 1px solid rgba(241, 196, 15, .52);
  border-radius: 20px;
  background: rgba(3, 17, 10, .92);
  box-shadow: 0 5px 15px rgba(0,0,0,.75), 0 0 12px rgba(241,196,15,.2);
  white-space: nowrap;
  flex: 0 0 auto;
  margin: auto 0 4px;
}

.turn-center-actions .btn-pill-action {
  width: 100%;
  min-width: 0;
}

.corner-bottom-left #btn-return-discard {
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

/* Live 101 Okey Scoreboard Card in Center Strip */
.center-scoreboard-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(241, 196, 15, 0.45);
  border-radius: 8px;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  align-self: flex-start;
}

.scoreboard-teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(241, 196, 15, 0.3);
  padding-bottom: 3px;
  width: 100%;
}

.team-header-col {
  flex: 1;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  word-break: break-word;
  padding: 0 2px;
}

.team-header-col.team1-col {
  color: #f1c40f;
}

.team-header-col.team2-col {
  color: #5dade2;
}

.scoreboard-col-divider {
  width: 1px;
  background: rgba(241, 196, 15, 0.35);
  align-self: stretch;
  min-height: 14px;
}

.scoreboard-rounds-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: none;
  overflow: visible;
  width: 100%;
}

.score-round-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #d5e8dc;
  padding: 1.5px 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.score-round-row .round-score-team1 {
  color: #f1c40f;
  font-weight: 900;
  text-align: center;
}

.score-round-row .round-tag {
  font-size: 9px;
  color: #a8d5ba;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.score-round-row .round-score-team2 {
  color: #5dade2;
  font-weight: 900;
  text-align: center;
}

.score-empty-history {
  font-size: 10px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2px 0;
}

.scoreboard-totals-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid rgba(241, 196, 15, 0.35);
  padding-top: 2px;
  margin-top: 1px;
  width: 100%;
}

.total-score-val {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
}

.total-score-val.team1-total {
  color: #2ecc71;
}

.total-score-val.team2-total {
  color: #3498db;
}

.total-label-badge {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #f1c40f;
  text-align: center;
}

.center-deck-side-by-side {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* =========================================================
   PER & ÇİFT GRUBU TOPLU TAŞIMA TUTAMACI (GREEN DRAG HANDLE)
   ========================================================= */

.meld-group-drag-handle {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(46, 204, 113, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  cursor: grab;
  z-index: 50;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  opacity: 0.85;
}

/* Invisible hit area covering the top-right quarter of the tile */
.meld-group-drag-handle::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 30px;
  background: transparent;
  cursor: grab;
  z-index: -1;
  pointer-events: auto;
}

.meld-group-drag-handle:hover {
  transform: scale(1.22);
  opacity: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 12px rgba(46, 204, 113, 1);
  cursor: grab;
}

.meld-group-drag-handle:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.meld-group-drag-handle:active::before {
  cursor: grabbing;
}

.okey-tile.active-meld-group-focus {
  outline: 2px solid #2ecc71 !important;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.9), inset 0 0 6px rgba(46, 204, 113, 0.4) !important;
  transform: translateY(-3px) !important;
}

.meld-group-drag-preview {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.9);
}

/* 1. 3D Plain Face-Down Bone Deck Tile */
.deck-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 3px;
}

.plus-3d-deck {
  position: relative;
  width: 36px;
  height: 50px;
  transition: transform 0.15s;
}

.plus-3d-deck:hover {
  transform: translateY(-3px);
}

.deck-layer {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.deck-layer.layer-3 {
  transform: translate(2px, 2px);
  background: #d4c8b5;
  border: 1px solid #b8a892;
}

.deck-layer.layer-2 {
  transform: translate(1px, 1px);
  background: #e3d9c8;
  border: 1px solid #c9bba6;
}

.deck-layer.layer-1 {
  background: linear-gradient(135deg, #faf3e6 0%, #ebe0ce 100%);
  border: 1.5px solid #d5c8b5;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 5px rgba(0,0,0,0.4);
}

.deck-count-subtext {
  font-size: 10px;
  font-weight: 800;
  color: #e0f2e9;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-top: 2px;
}

/* 2. Open Indicator Tile (Gösterge) */
.indicator-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.indicator-clean-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid #f1c40f;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.indicator-subtext {
  font-size: 8px;
  font-weight: 900;
  color: #f1c40f;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(241, 196, 15, 0.4);
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-top: 2px;
}

/* Sağ Taraf: 2 Tane Yan Yana 2x13 Çift Açma Bölmesi */
.pairs-section-wrapper {
  display: flex;
  align-items: stretch;
  background-color: #071d13;
  border: 2px solid #1a3a2a;
  border-radius: 12px;
  overflow: visible;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.75), 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  height: 100%;
  min-height: 0;
  width: fit-content;
  flex: 0 0 auto;
}

.split-target-badge {
  position: absolute;
  z-index: 80;
  top: auto;
  bottom: -21px;
  width: 62px;
  height: 22px;
  box-sizing: border-box;
  padding: 3px 5px;
  border: 1px solid rgba(170, 132, 63, .72);
  border-radius: 0 0 13px 13px;
  color: #d8c08a;
  background: linear-gradient(180deg, rgba(18, 38, 27, .97), rgba(8, 22, 15, .97));
  box-shadow: 0 3px 7px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.06);
  font: 900 13px/1.1 'Montserrat', sans-serif;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: center top;
}

.seri-corner-target,
.pairs-corner-target {
  left: 50%;
  right: auto;
}

.split-target-badge.target-value-changed {
  animation: splitTargetChanged .7s cubic-bezier(.2,.8,.25,1);
}

@keyframes splitTargetChanged {
  0%, 100% { transform: translateX(-50%) scale(1); }
  38% {
    transform: translateX(-50%) scale(1.14);
    color: #ead9ad;
    box-shadow: 0 4px 9px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.08);
  }
}

.pairs-panel {
  display: flex;
  flex-direction: column;
  padding: 3px 4px;
  position: relative;
  width: fit-content;
  flex: 0 0 auto;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  background-color: transparent;
}

.pairs-divider-line {
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.mobile-third-panel {
  display: none;
}

.pairs-rows-container {
  flex: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(13, 1fr);
  gap: 2px;
  overflow: hidden !important;
  z-index: 2;
  box-sizing: border-box;
  padding: 1px;
}

/* 2-Column Pairs Row (Natural Board Slots - Exact 44:60 Aspect Ratio Matching Rack Tiles) */
.table-pairs-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.table-pairs-box .tile .tile-number {
  font-size: 13px !important;
  line-height: 1 !important;
}

.table-pairs-box .tile .tile-sub-symbol {
  font-size: 8px !important;
}

.player-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* =========================================================
   4 CORNER DISCARD SLOTS (SCREEN CORNERS OUTSIDE FELT)
   ========================================================= */

.table-corner-discard {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
}

.corner-top-left {
  top: 36px;
  left: calc(var(--side-profile-offset) + var(--side-profile-width));
}

.corner-top-right {
  top: 36px;
  right: calc(var(--side-profile-offset) + var(--side-profile-width));
}

.corner-bottom-left {
  bottom: 36px;
  left: calc(var(--side-profile-offset) + var(--side-profile-width));
}

.corner-bottom-right {
  bottom: 36px;
  right: calc(var(--side-profile-offset) + var(--side-profile-width));
}

.corner-discard-label {
  font-size: 8px;
  font-weight: 900;
  color: #a8d5ba;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Discard Slots */
.discard-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.zone-label {
  font-size: 9px;
  font-weight: 800;
  color: #a8d5ba;
  letter-spacing: 0.5px;
}

.plus-discard-box {
  width: 44px;
  height: 60px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.table-corner-discard .plus-discard-box {
  zoom: 1;
}

.plus-discard-box.can-draw-pulse {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  box-shadow: none !important;
  animation: none !important;
  cursor: pointer;
}

.plus-discard-box.can-draw-pulse .okey-tile {
  animation: discardTileBob 1.6s infinite alternate ease-in-out !important;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.7) !important;
}

@keyframes discardTileBob {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-2px);
  }
}

/* =========================================================
   3D IVORY BONE OKEY TILES (AUTHENTIC PLUS LOOK)
   ========================================================= */

.okey-tile {
  width: 38px;
  height: 52px;
  background: var(--tile-bg);
  border-radius: 6px;
  border: 1px solid #d5c8b5;
  box-shadow: var(--tile-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
}

.tile-small {
  width: 24px;
  height: 34px;
}

.tile-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  margin-top: -2px;
}

.tile-small .tile-number {
  font-size: 14px;
  font-weight: 900;
}

.tile-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 2px;
}

.tile-small .tile-dot {
  width: 3px;
  height: 3px;
  margin-top: 1px;
}

/* Tile Color Variants */
.color-red .tile-number { color: var(--color-red); }
.color-red .tile-dot { background: var(--color-red); }

.color-blue .tile-number { color: var(--color-blue); }
.color-blue .tile-dot { background: var(--color-blue); }

.color-black .tile-number { color: var(--color-black); }
.color-black .tile-dot { background: var(--color-black); }

.color-yellow .tile-number { color: var(--color-yellow); }
.color-yellow .tile-dot { background: var(--color-yellow); }

/* Tile States: Selection & Hover */
.okey-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.7);
}

.okey-tile.selected {
  transform: translateY(-8px) scale(1.06);
  outline: 3px solid #f1c40f !important;
  box-shadow: 0 10px 20px rgba(241, 196, 15, 0.7), var(--tile-shadow) !important;
  z-index: 30;
}

.okey-tile.active-focus {
  outline: 3px solid #2ecc71 !important;
}

/* Newly Drawn Tile (Gentle Floating Bobbing Animation) */
.okey-tile.tile-just-drawn,
.istaka-slot .okey-tile.tile-just-drawn {
  border: 1.5px solid #f1c40f !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.75), 0 0 10px rgba(241, 196, 15, 0.6) !important;
  animation: tileFloatBob 1.6s infinite alternate ease-in-out !important;
  z-index: 20;
}

@keyframes tileFloatBob {
  0% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(-3px);
  }
}

/* Real Okey (Joker) Styling - Turned Face-Down Plain Bone Tile */
.is-okey-joker {
  background: linear-gradient(135deg, #fcfaf5 0%, #ece3d1 100%) !important;
  border: 1.5px solid #d4c5ab !important;
  box-shadow: var(--tile-shadow) !important;
}

.joker-badge {
  display: none;
}

/* Sahte Okey Styling */
.is-fake-okey {
  box-shadow: var(--tile-shadow) !important;
}

.fake-okey-emblem {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.fake-okey-svg {
  width: 100%;
  height: 100%;
  color: inherit;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.tile-small .fake-okey-emblem {
  width: 15px;
  height: 15px;
}

.fake-badge {
  display: none;
}

/* =========================================   ISTAKA SECTION & WOODEN BOARD (PLUS 2-SHELF RACK)
   ========================================================= */
 
.plus-istaka-section {
  background: transparent;
  border-top: 0;
  padding: 6px 16px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  z-index: 30;
}

/* Bottom Outer Player & Action Strip (In Dark Green Canvas, Right Above the Brown Istaka Bar!) */
.canvas-bottom-strip {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 852px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  box-sizing: border-box;
  pointer-events: none;
}

.canvas-bottom-strip > * {
  pointer-events: auto;
}

.canvas-bottom-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.canvas-bottom-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Centered Bottom Player Card (Viewer) */
.bar-bottom {
  position: relative !important;
  transform: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 8px;
  border-radius: 28px;
  width: auto;
  min-width: 175px;
  max-width: 230px;
  justify-content: center;
}

.play-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 3D Glossy Action Buttons - Compact 30px Height (Zero table collision) */
.btn-pill-action {
  font-size: 11px;
  font-weight: 800;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-pill-warning {
  background: linear-gradient(180deg, #e67e22, #d35400);
  color: #fff;
  border-color: #f39c12;
}

.btn-pill-danger {
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 60%, #962d22 100%);
  color: #fff;
  border-color: #ff7675;
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.6);
}

.btn-pill-green {
  background: linear-gradient(180deg, #2ecc71 0%, #27ae60 60%, #1e8449 100%);
  color: #fff;
  border-color: #f1c40f;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.6);
}

.btn-pill-magenta {
  background: linear-gradient(180deg, #d63031 0%, #c0392b 60%, #8e44ad 100%);
  color: #fff;
}

.btn-pill-process {
  background: linear-gradient(180deg, #377a68 0%, #285d50 60%, #1a4037 100%);
  color: #eef8f3;
  border-color: rgba(126, 211, 177, .72);
  box-shadow: 0 3px 10px rgba(26, 92, 72, .42);
}

.game-rules-summary {
  width: calc(100% - 10px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(213, 185, 103, .3);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(1, 13, 7, .62);
  box-sizing: border-box;
  flex: 0 0 auto;
}

.game-rule-row {
  display: grid;
  grid-template-columns: minmax(42px, .85fr) minmax(58px, 1.15fr);
  min-height: 25px;
}

.game-rule-row + .game-rule-row {
  border-top: 1px solid rgba(213, 185, 103, .2);
}

.game-rule-label,
.game-rule-value {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  font-family: Montserrat, sans-serif;
}

.game-rule-label {
  padding: 4px 5px;
  color: rgba(202, 218, 208, .76);
  background: rgba(255, 255, 255, .035);
  border-right: 1px solid rgba(213, 185, 103, .18);
  font-size: 8px;
  font-weight: 700;
}

.game-rule-value {
  padding: 4px 5px;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}


@media (pointer: coarse), (max-width: 900px) {
  .game-rules-summary {
    width: calc(100% - 4px);
    padding: 0;
  }

  .game-rule-row {
    grid-template-columns: minmax(27px, .78fr) minmax(37px, 1.22fr);
    min-height: 18px;
  }

  .game-rule-label,
  .game-rule-value {
    padding: 2px 1px;
    font-size: clamp(7px, 1.75dvh, 9px);
    line-height: 1;
  }
}

/* Rule rows contain only the selected rule; no redundant label column. */
.game-rule-row,
#lobby-view .lobby-rule-row {
  grid-template-columns:1fr;
}

.game-rule-value,
#lobby-view .lobby-detail-rules .lobby-rule-value {
  grid-column:1 / -1;
  width:100%;
  box-sizing:border-box;
  text-align:center;
}

.btn-pill-action:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-pill-action:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-pill-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* Points Badge */
.points-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  letter-spacing: 0.5px;
}

.points-valid {
  background: rgba(39, 174, 96, 0.35);
  border-color: #2ecc71;
  color: #2ecc71;
  animation: pulse 1.5s infinite;
}

.points-pending {
  color: #f1c40f;
}

.points-empty {
  color: #aaa;
}

.points-penalty-active {
  background: rgba(192, 57, 43, 0.5) !important;
  border: 1.5px solid #e74c3c !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.8) !important;
}

/* Istaka Turn Glow */
.plus-istaka-board.your-turn-active,
#player-istaka-container.your-turn-active {
  box-shadow: 0 0 28px rgba(241, 196, 15, 0.45), inset 0 0 25px rgba(241, 196, 15, 0.2), 0 12px 35px rgba(0, 0, 0, 0.8) !important;
  border-color: rgba(241, 196, 15, 0.85) !important;
}

.player-outer-bar.bar-bottom.active-turn {
  border-color: #10b981 !important;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.9), 0 8px 24px rgba(0,0,0,0.8) !important;
}

.player-outer-bar.bar-bottom.active-turn .avatar-ring-container::before {
  border-color: #10b981 !important;
}

/* Istaka Wing Wrapper (Istaka + Left Seri Diz + Right Çift Diz) */
.istaka-wing-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  max-width: none;
}

.btn-side-sort {
  width: 52px;
  align-self: stretch;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  transition: all 0.15s;
  padding: 8px 3px;
}

.btn-side-sort .icon {
  font-size: 20px;
}

.btn-side-sort .sort-text {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

.btn-sort-left {
  background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 60%, #6c3483 100%);
  border-color: #d7bde2;
}

.btn-sort-right {
  background: linear-gradient(180deg, #3498db 0%, #2980b9 60%, #1f618d 100%);
  border-color: #aed6f1;
}

.btn-side-sort:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.btn-side-sort:active {
  transform: scale(0.98);
}

.sort-tile-icon {
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.38));
}

.mini-sort-tile {
  width: 18px;
  height: 25px;
  margin: 0 -2px;
  border: 1px solid rgba(121, 109, 86, 0.62);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #17459a;
  background: linear-gradient(145deg, #fffdf4 8%, #e5dfcd 72%, #d3cbb5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 1px rgba(36, 25, 12, 0.22);
  font: 800 12px/1 'Oswald', sans-serif;
}

.red-mini { color: #b32626; }
.blue-mini { color: #17459a; }
.pair-sort-icon .mini-sort-tile:first-child { transform: rotate(-7deg) translateY(2px); }
.pair-sort-icon .mini-sort-tile:last-child { transform: rotate(7deg) translateY(2px); }
.run-sort-icon .mini-sort-tile:first-child { transform: rotate(-7deg) translateY(2px); }
.run-sort-icon .mini-sort-tile:nth-child(2) { transform: translateY(-1px); z-index: 2; }
.run-sort-icon .mini-sort-tile:last-child { transform: rotate(7deg) translateY(2px); }

/* 3D 2-Shelf Wooden Istaka Board */
.plus-istaka-board {
  --turn-scale: 1;
  width: auto;
  max-width: fit-content;
  margin: 0 auto;
  background:
    linear-gradient(180deg, #512a15 0%, #341709 42%, #210c04 100%);
  border: 3px solid #160701;
  outline: 1px solid rgba(151, 101, 49, .58);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.07), inset 0 -7px 12px rgba(0,0,0,.48), 0 8px 22px rgba(0,0,0,.78);
  position: relative;
}

.plus-istaka-board::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: -8px;
  height: 4px;
  z-index: 25;
  padding: 0;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  background: #48d597;
  box-shadow: 0 0 7px rgba(72,213,151,.42), 0 1px 4px rgba(0,0,0,.7);
  transform: scaleX(var(--turn-scale));
  transform-origin: left center;
  will-change: transform;
  transition: opacity .2s ease;
}

.game-animation-busy #turn-center-actions,
.game-animation-busy #btn-return-discard,
.game-animation-busy #discard-pile-bottom,
.game-animation-busy #center-deck-pile,
.game-animation-busy .center-table-zone .meld-row {
  pointer-events: none !important;
}

.viewer-rack-animation-busy #player-istaka-container .istaka-slot,
.viewer-rack-animation-busy .btn-side-sort {
  pointer-events: none !important;
}

.plus-istaka-board.rack-timer-active::after {
  opacity: 1;
}

.istaka-brass-corner {
  display: none;
}

.corner-tl { top: 3px; left: 3px; }
.corner-tr { top: 3px; right: 3px; }
.corner-bl { bottom: 3px; left: 3px; }
.corner-br { bottom: 3px; right: 3px; }

.istaka-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0px;
  width: fit-content;
  margin: 0 auto;
  min-height: 60px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.istaka-slot {
  width: 44px;
  height: 60px;
  min-width: 44px;
  max-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s, border-color 0.15s;
  margin: 0;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
}

.istaka-slot .okey-tile {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 4px !important;
  margin: 0 !important;
  border: 1px solid #d5c8b5 !important;
  box-shadow: var(--tile-shadow) !important;
  background: var(--tile-bg) !important;
  box-sizing: border-box !important;
}

.istaka-slot .okey-tile .tile-number {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin-top: -2px !important;
}

.istaka-slot .okey-tile .tile-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  margin-top: 2px !important;
}



.istaka-slot.drag-over {
  background: rgba(241, 196, 15, 0.25);
  border-color: #f1c40f;
}

/* Quick Reactions Bar */
.plus-reactions-bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-plus-emoji {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-plus-emoji:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Floating Reaction Bubble */
.reaction-bubble {
  position: absolute;
  top: -36px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #f1c40f;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
  z-index: 60;
}

/* Compact table-chat bubble, anchored directly above the player's avatar. */
.chat-speech-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  z-index: 80;
  width: max-content;
  max-width: 150px;
  min-width: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.38);
  color: #172019;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.speech-bubble-pointer {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 9px;
  height: 9px;
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  transform: translate(-50%, -5px) rotate(45deg);
}

.speech-bubble-text {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.speech-bubble-fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* The upper player sits against the viewport edge, so their bubble opens below. */
#seat-top .chat-speech-bubble {
  top: calc(100% + 9px);
  bottom: auto;
}

#seat-top .chat-speech-bubble .speech-bubble-pointer {
  top: auto;
  bottom: 100%;
  transform: translate(-50%, 5px) rotate(225deg);
}

.istaka-slot.drag-group-over {
  background: rgba(46, 204, 113, 0.3) !important;
  border-color: #53ef91 !important;
  box-shadow: inset 0 0 0 2px rgba(83, 239, 145, 0.75), 0 0 8px rgba(46, 204, 113, 0.5);
}

.meld-group-drag-preview .okey-tile {
  flex: 0 0 38px;
  width: 38px !important;
  height: 52px !important;
  opacity: 1 !important;
}

/* =========================================================
   MODALS & TOASTS (PLUS CASINO THEME)
   ========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.plus-modal-card {
  background: radial-gradient(circle at 50% 30%, #0d4224 0%, #062413 70%, #021109 100%);
  border: 3px solid #f1c40f;
  border-radius: 24px;
  padding: 28px 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(241, 196, 15, 0.3);
  padding-bottom: 10px;
}

.modal-header h3 {
  font-family: 'Cinzel', serif;
  color: #f1c40f;
  font-size: 22px;
  letter-spacing: 1px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: #aaa;
  font-size: 26px;
  cursor: pointer;
}

.rules-modal-card {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: min(82vh, 720px);
  padding: 24px 26px;
  overflow: hidden;
}

.rules-modal-card .modal-header {
  margin-bottom: 14px;
}

.rules-modal-card .modal-header h3 {
  margin: 2px 0 0;
}

/* Multi-table lobby */
#btn-lobby-rules, #btn-settings-rules, #rules-modal { display: none !important; }
/* Lobby Navigation & Floating Create Table Pill */
.lobby-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 7px 16px;
  border-radius: 20px;
  color: #f6e6b4;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.lobby-brand-badge .badge-icon {
  font-size: 16px;
}

/* Floating Table Creation Button Protruding from Bottom Edge */
.btn-floating-create-table {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: linear-gradient(135deg, #d4af37 0%, #aa8010 50%, #856108 100%);
  color: #121008;
  border: 2px solid rgba(255, 235, 150, 0.75);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  padding: 12px 42px 10px 42px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  box-shadow: 0 -6px 28px rgba(212, 175, 55, 0.5), 0 0 15px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-floating-create-table:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 -10px 36px rgba(212, 175, 55, 0.75), 0 0 20px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #f5d76e 0%, #d4af37 50%, #aa8010 100%);
  color: #000;
}
.btn-floating-create-table .floating-btn-icon {
  font-size: 18px;
}

/* 5x4 Live Table Grid Layout */
.lobby-browser {
  width: min(1360px, 96vw);
  margin: 0 auto;
  padding-bottom: 70px;
}
.lobby-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 10px;
}
.lobby-browser-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lobby-browser-title h2 {
  color: #f6e6b4;
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.badge-tables-count {
  color: #7ee2a4;
  background: rgba(36, 151, 86, 0.2);
  border: 1px solid rgba(75, 204, 126, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
}
.lobby-browser-sub {
  color: #8fa398;
  font-size: 12px;
  margin: 0;
}
.lobby-tables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 4px 6px 75px;
}
@media (max-width: 1200px) {
  .lobby-tables-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .lobby-tables-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .lobby-tables-grid { grid-template-columns: 1fr; }
}

/* Mini Casino Table Card */
.lobby-table-card {
  background: linear-gradient(145deg, rgba(12, 45, 30, 0.95), rgba(7, 26, 18, 0.98));
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.lobby-table-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.25);
}

.lobby-table-card.empty-card {
  border: 1.5px dashed rgba(212, 175, 55, 0.38);
  background: linear-gradient(145deg, rgba(8, 30, 20, 0.85), rgba(5, 18, 12, 0.92));
  opacity: 0.92;
}
.lobby-table-card.empty-card:hover {
  opacity: 1;
  border-color: #d4af37;
  border-style: solid;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.3);
}

.lobby-table-card.is-my-table {
  border: 2px solid #f1c40f;
  box-shadow: 0 0 16px rgba(241, 196, 15, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6);
  background: linear-gradient(145deg, rgba(16, 52, 34, 0.98), rgba(9, 30, 20, 0.98));
}

.my-table-tag {
  font-size: 8.5px;
  font-weight: 800;
  color: #121008;
  background: #f1c40f;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-card-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 900;
  color: #f6e6b4;
  display: flex;
  align-items: center;
}
.table-card-status {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
}
.table-card-status.status-empty {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.35);
}
.table-card-status.status-waiting {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.35);
}
.table-card-status.status-countdown {
  background: rgba(231, 76, 60, 0.25);
  color: #ff7675;
  border: 1px solid #ff7675;
  animation: pulse 0.7s infinite alternate;
}
.table-card-status.status-playing {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

.table-card-felt {
  background: radial-gradient(ellipse at center, #1b633f 0%, #0d3822 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  height: 80px;
  display: grid;
  grid-template-areas:
    ". top ."
    "left center right"
    ". bottom .";
  align-items: center;
  justify-items: center;
  padding: 4px;
  position: relative;
}
.table-card-felt.empty-felt {
  background: radial-gradient(ellipse at center, #144e31 0%, #0a2919 100%);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.table-card-felt .seat-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.15s ease;
}
.table-card-felt .seat-mini.empty-seat {
  cursor: pointer;
  font-weight: 800;
}
.table-card-felt .seat-mini.empty-seat:hover {
  border-color: #f1c40f;
  color: #f1c40f;
  background: rgba(241, 196, 15, 0.2);
  transform: scale(1.15);
}
.table-card-felt .seat-mini.occupied {
  border: 1.5px solid #d4af37;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.table-card-felt .seat-mini.occupied:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px #f1c40f;
}
.table-card-felt .seat-mini.occupied.is-me {
  border: 2px solid #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.85);
}
.seat-me-crown {
  position: absolute;
  top: -6px;
  right: -5px;
  font-size: 10px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}
.table-card-felt .seat-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seat-pos-top { grid-area: top; }
.seat-pos-left { grid-area: left; }
.seat-pos-right { grid-area: right; }
.seat-pos-bottom { grid-area: bottom; }

.table-card-pot {
  grid-area: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 900;
  color: #f1c40f;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.table-card-pot.empty-pot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.felt-empty-plus {
  font-size: 14px;
  line-height: 1;
}
.felt-empty-text {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #f6e6b4;
}
.table-card-pot.countdown-active {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #ff7675;
  animation: pulse 0.7s infinite alternate;
}

.table-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 0 2px;
}
.table-card-bet {
  color: #f1c40f;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
}
.table-card-rules {
  display: flex;
  gap: 4px;
}
.table-card-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #c7d7cd;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.card-action-row {
  display: flex;
  gap: 6px;
  width: 100%;
}
.btn-card-action {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-card-create {
  width: 100%;
  background: linear-gradient(180deg, #d4af37 0%, #aa8010 100%);
  color: #121008;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.btn-card-create:hover {
  background: linear-gradient(180deg, #f5d76e 0%, #d4af37 100%);
}
.btn-card-sit {
  width: 100%;
  background: linear-gradient(180deg, #27ae60 0%, #1e824c 100%);
  color: #fff;
  border: 1px solid rgba(46, 204, 113, 0.5);
}
.btn-card-sit:hover {
  background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
}
.btn-card-leave {
  background: linear-gradient(180deg, #c0392b 0%, #962d22 100%);
  color: #fff;
  border: 1px solid rgba(231, 76, 60, 0.5);
}
.btn-card-leave:hover {
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}
.btn-card-bots {
  background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
  color: #fff;
  border: 1px solid rgba(52, 152, 219, 0.5);
}
.btn-card-bots:hover {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
.btn-card-rejoin {
  background: linear-gradient(180deg, #f39c12 0%, #d35400 100%);
  color: #fff;
  border: 1px solid rgba(243, 156, 18, 0.5);
}
.btn-card-rejoin:hover {
  background: linear-gradient(180deg, #f1c40f 0%, #f39c12 100%);
}
.btn-card-watch {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-card-watch:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn-card-disabled {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #7f8c8d;
  cursor: not-allowed;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back-to-grid {
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #f6e6b4;
  background: rgba(5, 29, 20, 0.85);
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
}
.btn-back-to-grid:hover {
  background: rgba(15, 65, 41, 0.96);
  border-color: #d4af37;
}

/* Table Rules & Chips Selection */
.full-width-choice {
  grid-column: 1 / -1;
}
.rule-segment-chips, .rule-segment-rounds {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
@media (max-width: 600px) {
  .rule-segment-chips, .rule-segment-rounds {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pot-summary-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(170, 128, 16, 0.25) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 14px;
}
.pot-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pot-summary-icon {
  font-size: 28px;
}
.pot-summary-title {
  font-size: 11px;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 1px;
}
.pot-total-display {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}
.pot-distribution-hint {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #cbd5e1;
}
.btn-create-table-confirm {
  background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
  color: #fff;
  border: 1px solid #2ecc71;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-create-table-confirm:hover {
  background: linear-gradient(180deg, #34d399 0%, #2ecc71 100%);
}

/* Player Inspect Profile Modal */
.player-inspect-card {
  max-width: 440px !important;
  padding: 24px 20px !important;
  background: linear-gradient(165deg, rgba(16, 46, 32, 0.98), rgba(8, 26, 18, 0.99)) !important;
  border: 2px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.2) !important;
}
.player-inspect-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.inspect-avatar-wrap {
  position: relative;
}
.inspect-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #d4af37;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.4);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inspect-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inspect-role-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37 0%, #aa8010 100%);
  color: #121008;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.inspect-user-info {
  text-align: center;
  margin-top: 4px;
}
.inspect-display-name {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 900;
  color: #f6e6b4;
  margin: 0;
}
.inspect-username {
  font-size: 12px;
  color: #8fa398;
}
.inspect-level-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inspect-level-badge {
  font-size: 11px;
  font-weight: 800;
  color: #d4af37;
}
.inspect-xp-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.inspect-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #f1c40f);
  border-radius: 6px;
  transition: width 0.3s ease;
}
.inspect-xp-text {
  font-size: 10px;
  color: #8fa398;
  text-align: right;
}
.inspect-chips-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  box-sizing: border-box;
}
.inspect-chips-meta {
  display: flex;
  flex-direction: column;
}
.inspect-chips-label {
  font-size: 10px;
  color: #8fa398;
  font-weight: 700;
}
#inspect-chips-amount {
  font-size: 16px;
  font-weight: 900;
  color: #f1c40f;
}
.inspect-stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.inspect-stat-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.inspect-stat-icon {
  font-size: 18px;
}
.inspect-stat-val {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.inspect-stat-lbl {
  font-size: 9.5px;
  color: #8fa398;
  font-weight: 700;
}
.istaka-slot .okey-tile.is-playable-hint {
  box-shadow: inset -1px 1px 0 rgba(69, 190, 112, .28), 0 0 5px rgba(54, 184, 101, .12);
}
.istaka-slot .okey-tile.is-playable-hint::after {
  content: '+';
  position: absolute;
  top: 2px;
  left: 2px;
  right: auto;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 176, 94, .62);
  border-radius: 50%;
  background: rgba(19, 92, 48, .16);
  color: rgba(35, 161, 80, .9);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  filter: drop-shadow(0 0 2px rgba(50, 210, 109, .28));
  pointer-events: none;
  z-index: 4;
}
@media(max-width:700px){.table-rule-grid{grid-template-columns:1fr}.lobby-top-bar{gap:5px}.lobby-left-panel{gap:5px;flex-wrap:wrap}.lobby-left-panel .btn-bot-quick-play{font-size:9px;padding:7px}.lobby-table-list{grid-template-columns:1fr;max-height:calc(100vh - 130px)}}

.rules-kicker {
  color: #72c990;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.rules-book-content {
  max-height: calc(min(82vh, 720px) - 105px);
  overflow-y: auto;
  padding: 2px 8px 4px 1px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  scrollbar-color: #9c7a2d rgba(0, 0, 0, 0.28);
}

.rules-book-content section {
  padding: 12px 13px;
  border: 1px solid rgba(241, 196, 15, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.rules-book-content h4 {
  margin: 0 0 6px;
  color: #f1c40f;
  font-size: 12px;
}

.rules-book-content p {
  margin: 0;
  color: #d7e5dc;
  font-size: 11px;
  line-height: 1.55;
}

.rules-book-content strong {
  color: #fff1a8;
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.scoreboard-table th, .scoreboard-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

.scoreboard-table th {
  color: #f1c40f;
  font-weight: 800;
}

.winner-row {
  background: rgba(39, 174, 96, 0.25);
  font-weight: 800;
}

.negative-points {
  color: #2ecc71;
  font-weight: 900;
}

/* Toast Container - Docked on Left Bottom */
#toast-container {
  position: absolute;
  bottom: 18px;
  left: 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  z-index: 9999;
  pointer-events: none;
  max-width: 270px;
}

.toast {
  background: rgba(8, 28, 16, 0.96);
  backdrop-filter: blur(14px);
  border: 1.5px solid #f1c40f;
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.4);
  pointer-events: auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  transition: all 0.25s ease;
  animation: slideInLeft 0.22s ease-out;
}

.toast .toast-icon {
  font-size: 13px;
}

.toast .toast-text {
  font-size: 11px;
  font-weight: 700;
}

.toast-fade-out {
  opacity: 0;
  transform: translateX(-25px);
}

@keyframes slideInLeft {
  from { transform: translateX(-15px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-error {
  border-color: #e74c3c;
  background: rgba(45, 12, 12, 0.96);
}

.toast-success {
  border-color: #2ecc71;
  background: rgba(12, 45, 24, 0.96);
}

.toast-warning {
  border-color: #e67e22;
  background: rgba(50, 25, 10, 0.96);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes floatBounce {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-15px); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

.animate-bounce-float {
  animation: floatBounce 2.5s forwards ease-out;
}

/* =========================================================
   SOUND SETTINGS MODAL
   ========================================================= */
.sound-settings-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.sound-setting-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.sound-label-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sound-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1c40f;
  letter-spacing: 0.5px;
}

.sound-value {
  font-size: 13px;
  font-weight: 800;
  color: #2ecc71;
}

.sound-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.sound-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sound-range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: all 0.2s;
}

.sound-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1c40f;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.8);
  transition: transform 0.1s;
}

.sound-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.btn-sound-toggle {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 64px;
  text-align: center;
}

.btn-sound-toggle.active {
  background: rgba(46, 204, 113, 0.25);
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.btn-sound-toggle.muted {
  background: rgba(231, 76, 60, 0.25);
  border-color: #e74c3c;
  color: #e74c3c;
}

/* =========================================================
   DYNAMIC SLIDING SIDE DRAWERS (CHAT & SETTINGS)
   ========================================================= */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  z-index: 450;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.hidden {
  display: none !important;
  opacity: 0;
}

.slide-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 500;
  background: linear-gradient(180deg, rgba(8, 28, 16, 0.98) 0%, rgba(4, 15, 8, 0.98) 100%);
  backdrop-filter: none;
  border-left: 2px solid rgba(241, 196, 15, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  pointer-events: none;
  box-shadow: none;
}

.slide-drawer.drawer-right {
  right: 0;
  width: 360px;
  max-width: 90vw;
  transform: translateX(100%);
}

.slide-drawer.open {
  transform: translateX(0) !important;
  pointer-events: auto !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid rgba(241, 196, 15, 0.25);
  background: rgba(0, 0, 0, 0.3);
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-title h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin: 0;
}

.drawer-icon {
  font-size: 20px;
}

.btn-drawer-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-drawer-close:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: scale(1.1);
}

/* Chat Drawer Layout */
#chat-drawer {
  padding: 0;
}

#chat-drawer .chat-messages-box {
  flex: 1;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 14px 16px;
  gap: 10px;
}

#chat-drawer .chat-input-bar {
  padding: 12px 16px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
}

/* Settings Drawer Layout */
.drawer-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.drawer-section-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(241, 196, 15, 0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-setting-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-setting-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-primary);
}

.drawer-setting-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.btn-sound-main-toggle {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #2ecc71;
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  transition: all 0.2s;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.btn-sound-main-toggle.muted {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

.sound-volume-control {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.sound-volume-control label {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.sound-volume-control strong {
  color: #f1c40f;
}

.btn-danger-action {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid #e74c3c;
  background: rgba(231, 76, 60, 0.25);
  color: #ff7675;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-action:hover {
  background: #e74c3c;
  color: #fff;
}

/* =========================================================
   MOBILE GAME LAYOUT & TOUCH TARGETS
   ========================================================= */

@media (pointer: coarse), (max-width: 900px) {
  body.plus-theme,
  #app-container,
  #game-view {
    width: 100dvw;
    height: var(--app-visible-height, 100dvh);
    min-height: 0;
    max-height: var(--app-visible-height, 100dvh);
    overscroll-behavior: none;
  }

  body.plus-theme {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  #game-view {
    --rack-side-width: clamp(32px, 9vw, 46px);
    --rack-gap: 3px;
    --rack-slot-width: calc((100dvw - (var(--rack-side-width) * 2) - 24px - (var(--rack-gap) * 2)) / 16);
    --rack-slot-height: clamp(40px, calc(var(--rack-slot-width) * 1.36), 58px);
  }

  .plus-table-canvas {
    --side-profile-offset: -6px;
    --side-profile-width: 62px;
    min-height: 0;
    overflow: hidden;
  }

  .plus-istaka-section {
    flex: 0 0 auto;
    width: 100%;
    padding: 4px 5px max(5px, env(safe-area-inset-bottom));
    border-top-width: 2px;
  }

  .istaka-wing-wrapper {
    width: 100%;
    gap: var(--rack-gap);
    align-items: stretch;
  }

  .plus-istaka-board {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 3px;
    gap: 2px;
    border-width: 2px;
    border-radius: 8px;
  }

  #player-istaka-container,
  .istaka-row {
    width: 100%;
  }

  .istaka-row {
    min-height: var(--rack-slot-height);
    height: var(--rack-slot-height);
    padding: 1px;
  }

  .istaka-slot {
    flex: 1 1 0;
    width: var(--rack-slot-width);
    min-width: 0;
    max-width: none;
    height: var(--rack-slot-height);
    touch-action: none;
  }

  .istaka-slot .okey-tile .tile-number {
    font-size: clamp(18px, 5vw, 24px) !important;
  }

  .istaka-slot .okey-tile .tile-dot {
    width: 3px !important;
    height: 3px !important;
  }

  .rack-remaining-hand-penalty {
    top: -27px;
    right: 0;
    padding: 3px 8px;
    font-size: 11px;
  }

  .btn-side-sort {
    flex: 0 0 var(--rack-side-width);
    width: var(--rack-side-width);
    min-width: var(--rack-side-width);
    padding: 2px;
    border-radius: 8px;
    touch-action: manipulation;
  }

  .btn-side-sort .sort-text {
    font-size: clamp(7px, 2.3vw, 9px);
  }

  .istaka-brass-corner,
  .meld-group-drag-handle {
    display: none;
  }

  .okey-tile {
    touch-action: none;
    -webkit-touch-callout: none;
  }

  .okey-tile:hover {
    transform: none;
  }

  .okey-tile.active-focus {
    outline-width: 2px !important;
    transform: translateY(-3px) !important;
    z-index: 40;
  }

  .okey-tile.touch-dragging {
    opacity: 1 !important;
    transform: none !important;
  }

  .touch-drag-preview {
    position: fixed !important;
    z-index: 2147483000 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: scale(1.08) !important;
    transform-origin: center bottom !important;
    transition: none !important;
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .72));
    will-change: left, top;
  }

  .mobile-drag-target {
    outline: 3px solid #f1c40f !important;
    outline-offset: -2px;
    background: rgba(241, 196, 15, .25) !important;
  }

  .table-top-actions {
    top: max(6px, env(safe-area-inset-top));
    right: 6px;
    gap: 4px;
  }

  .btn-menu-trigger {
    min-height: 38px;
    padding: 5px 9px;
    font-size: 10px;
    touch-action: manipulation;
  }

  .player-outer-bar .avatar-ring-container,
  .player-outer-bar .pod-avatar {
    width: 34px;
    height: 34px;
  }

  .player-outer-bar .avatar-ring-container {
    flex-basis: 34px;
  }

  .player-outer-bar .pod-avatar {
    font-size: 15px;
  }

  .bar-top {
    top: 4px;
    width: auto;
    min-width: 125px;
    padding: 3px 8px 3px 4px;
  }

  .bar-left,
  .bar-right {
    width: var(--side-profile-width);
    min-height: 68px;
    padding: 5px 3px;
    gap: 2px;
    z-index: 32;
  }

  .bar-left { left: calc(var(--side-profile-offset) + var(--side-profile-width)); }
  .bar-right { right: calc(var(--side-profile-offset) + var(--side-profile-width)); }

  .bar-left.active-turn,
  .bar-right.active-turn {
    padding-bottom: 11px;
  }

  .player-turn-progress-track {
    left: 5px;
    right: 5px;
    bottom: 3px;
  }

  .player-name { max-width: 58px; font-size: 8px; }
  .player-open-status { font-size: 7px; padding: 1px 4px; }

  .table-corner-discard .plus-discard-box {
    width: 34px;
    height: 46px;
    border-radius: 6px;
    touch-action: manipulation;
  }

  .corner-top-left { top: 12px; left: calc(var(--side-profile-offset) + var(--side-profile-width)); }
  .corner-top-right { top: 48px; right: calc(var(--side-profile-offset) + var(--side-profile-width)); }
  .corner-bottom-left { bottom: 58px; left: calc(var(--side-profile-offset) + var(--side-profile-width)); }
  .corner-bottom-right { bottom: 58px; right: calc(var(--side-profile-offset) + var(--side-profile-width)); }

  .table-felt-mat,
  .my-turn-focus .table-felt-mat {
    top: 52px !important;
    bottom: 54px !important;
    left: 50% !important;
    width: calc(100% - 72px) !important;
    max-width: none !important;
    transform: translateX(-50%) !important;
    padding: 3px !important;
    border-width: 3px !important;
    border-radius: 18px !important;
    overflow: hidden;
  }

  .center-table-zone {
    width: 100%;
    min-width: 0;
    gap: 2px;
    padding: 1px;
  }

  .mobile-third-panel { display: flex; }
  .seri-divider-line.mobile-third-panel,
  .pairs-divider-line.mobile-third-panel { display: block; }

  .seri-section-wrapper { flex: 1 1 auto; min-width: 0; border-width: 1px; border-radius: 6px; }
  .seri-panel { flex: 1 1 33.333%; min-width: 0; width: 33.333%; padding: 1px; }
  .panel-rows-container { grid-template-rows: repeat(9, 1fr); gap: 2px; padding: 1px; }

  /* Mobilde boş 1-13 kılavuz hücrelerini kaldır. Açılmış perler
     bitişik durur ve satır yüksekliğinin tamamını kullanır. */
  .table-grid-row .grid-cell-slot:not(.has-tile) { display: flex; }
  .table-grid-row { justify-content: flex-start; gap: 0; overflow: hidden; }
  .table-grid-row .grid-cell-slot {
    flex: 1 1 0;
    width: 0;
    height: 100%;
    aspect-ratio: auto;
    min-width: 0;
  }
  .grid-cell-slot .okey-tile .tile-number { font-size: clamp(9px, 3.1vw, 14px) !important; }
  .grid-cell-slot .okey-tile .tile-dot { width: 3px !important; height: 3px !important; }

  .pairs-section-wrapper {
    flex: 0 0 84px;
    width: 84px;
    min-width: 84px;
    border-width: 1px;
    border-radius: 6px;
  }

  .pairs-panel { flex: 1 1 33.333%; min-width: 0; width: 33.333%; padding: 1px; }
  .table-pairs-row { justify-content: center; gap: 1px; }
  .table-pairs-row .grid-cell-slot {
    flex: 1 1 0;
    width: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .center-deck-strip {
    flex: 0 0 clamp(64px, 18vw, 90px);
    min-width: 0;
    max-width: 90px;
    padding: 2px;
    gap: 2px;
    border-width: 1px;
  }

  .center-scoreboard-card { padding: 2px; gap: 1px; }
  .scoreboard-rounds-list { max-height: none; overflow: visible; }
  .team-header-col, .score-round-row, .score-empty-history { font-size: 8px; }
  .score-round-row .round-tag { font-size: 7px; }
  .total-score-val { font-size: 9px; }
  .total-label-badge { font-size: 5px; }
  .center-deck-target { padding: 2px 4px; gap: 0; margin: 0; }
  .center-deck-target .target-seri-line { font-size: 9px; }
  .center-deck-target .target-pairs-line { font-size: 7px; }
  .center-deck-side-by-side { gap: 4px; }
  .plus-3d-deck { width: 27px; height: 37px; }
  .indicator-clean-box .okey-tile { width: 27px; height: 37px; }
  .indicator-clean-box .tile-number { font-size: 15px; }
  .deck-count-subtext, .indicator-subtext { font-size: 6px; padding: 1px 3px; }

  .canvas-bottom-strip,
  .my-turn-focus .canvas-bottom-strip {
    bottom: 3px !important;
    width: calc(100% - 8px) !important;
    padding: 0 36px;
  }

  .bar-bottom {
    display: none !important;
  }

  .canvas-bottom-left,
  .canvas-bottom-right {
    gap: 3px;
  }

  .btn-pill-action {
    min-height: 40px;
    padding: 5px 7px;
    font-size: 9px;
    touch-action: manipulation;
  }

  .play-actions { gap: 3px; }
  .plus-modal-card { width: calc(100% - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; padding: 16px; }
  .slide-drawer.drawer-right { width: min(360px, 100vw); max-width: 100vw; }
}

@media (pointer: coarse) and (orientation: portrait), (max-width: 540px) and (orientation: portrait) {
  .table-felt-mat,
  .my-turn-focus .table-felt-mat {
    top: 62px !important;
    bottom: auto !important;
    height: clamp(250px, 43dvh, 360px) !important;
  }

  .bar-left,
  .bar-right {
    top: calc(62px + min(21.5dvh, 180px));
  }

  .canvas-bottom-strip,
  .my-turn-focus .canvas-bottom-strip {
    bottom: 6px !important;
  }
}

@media (pointer: coarse) and (orientation: landscape), (max-height: 540px) and (orientation: landscape) {
  #game-view {
    --rack-side-width: 42px;
    --rack-slot-height: clamp(34px, calc((var(--app-visible-height, 100dvh) - 215px) / 2), 58px);
  }

  .table-felt-mat,
  .my-turn-focus .table-felt-mat {
    top: clamp(22px, 8dvh, 32px) !important;
    bottom: clamp(18px, 7dvh, 28px) !important;
    width: calc(100% - 138px) !important;
  }

  .bar-top { top: 2px; }
  .plus-table-canvas { --side-profile-width: 58px; }
  .bar-left, .bar-right { width: var(--side-profile-width); min-height: 64px; }
  .corner-bottom-left, .corner-bottom-right { bottom: 30px; }
  .canvas-bottom-strip, .my-turn-focus .canvas-bottom-strip { bottom: 1px !important; padding: 0 64px; }

  .turn-center-actions {
    width: calc(100% - 4px);
    gap: 2px;
    padding: 3px 2px;
    margin-bottom: 2px;
    border-radius: 10px;
  }

  .turn-center-actions .btn-pill-action {
    width: 100%;
    height: 23px;
    min-height: 23px;
    padding: 1px 3px;
    border-radius: 8px;
    font-size: 7px;
  }

  .center-scoreboard-card {
    flex: 0 1 auto;
    min-height: 0;
  }

  .scoreboard-rounds-list {
    max-height: 44px;
    overflow-y: auto;
  }

  .center-deck-strip {
    overflow: hidden;
  }

  .split-target-badge {
    bottom: 0;
    width: 50px;
    height: 16px;
    padding: 2px 3px;
    border-radius: 0 0 9px 9px;
    font-size: 9px;
  }

  .felt-watermark,
  .grid-watermark {
    display: none;
  }

  .plus-istaka-section {
    padding-left: max(5px, env(safe-area-inset-left));
    padding-right: max(5px, env(safe-area-inset-right));
  }

  .istaka-slot .okey-tile .tile-number {
    font-size: clamp(15px, calc(var(--rack-slot-height) * .4333), 25px) !important;
  }

  .grid-cell-slot .okey-tile .tile-number {
    font-size: clamp(9px, 3.2dvh, 13px) !important;
  }

  .btn-menu-trigger {
    min-height: 30px;
    padding: 3px 7px;
    font-size: 8px;
  }

  .table-top-actions {
    top: 3px;
    right: max(5px, env(safe-area-inset-right));
  }

  /* Yatay mobil giriş ekranı: 4x2 seçim ızgarası tek ekrana sığar. */
  #auth-view {
    padding: 5px max(10px, env(safe-area-inset-right)) 5px max(10px, env(safe-area-inset-left));
  }

  .name-picker-wrapper {
    max-width: 760px;
    height: 100%;
    justify-content: center;
  }

  .name-picker-wrapper .plus-logo-box {
    margin-bottom: 4px !important;
  }

  .name-picker-wrapper .plus-logo-title {
    font-size: 24px !important;
  }

  .name-picker-card {
    padding: 7px 10px;
    border-radius: 12px;
  }

  .name-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .name-card {
    min-height: 58px;
    padding: 4px 6px;
    border-radius: 10px;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }

  .name-card-avatar {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }

  .name-card-title { font-size: 10px; }
  .name-card-status { font-size: 7px; }
  .auth-action-box { margin-top: 6px; padding-top: 6px; }
  .btn-enter-game { min-height: 34px; padding: 6px 18px; font-size: 11px; }

  /* Yatay mobil lobi: dış koltuklar ekran sınırlarının içinde kalır. */
  .lobby-top-bar {
    min-height: 42px;
    padding: 4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));
  }

  .lobby-left-panel,
  .lobby-right-panel { gap: 5px; }
  .btn-bot-quick-play,
  .btn-lobby-rules,
  .btn-lobby-sound,
  .btn-sm { padding: 5px 7px; border-radius: 8px; font-size: 8px; }
  .lobby-center-title .plus-logo-title { font-size: 20px; letter-spacing: 1px; }
  .lobby-center-stage { padding: 28px 72px; min-height: 0; }
  .lobby-table-wrapper {
    width: min(72vw, 650px);
    height: calc(100dvh - 104px);
    min-height: 0;
    max-height: 310px;
  }
  .lobby-virtual-felt { border-width: 8px; }
  .lobby-seat-pod.seat-top { top: -25px; }
  .lobby-seat-pod.seat-bottom { bottom: -25px; }
  .lobby-seat-pod.seat-left { left: -55px; }
  .lobby-seat-pod.seat-right { right: -55px; }
  .lobby-occupied-card { gap: 6px; padding: 4px 8px; border-radius: 15px; }
  .lobby-occupied-avatar { width: 32px; height: 32px; }
  .lobby-occupied-name { max-width: 65px; font-size: 9px; }
  .lobby-occupied-badge { font-size: 7px; }
  .btn-sit-seat { gap: 5px; padding: 7px 10px; border-radius: 14px; font-size: 9px; }
  .btn-add-bot-pill,
  .btn-rejoin-seat-pill { padding: 4px 6px; font-size: 7px; }
  .table-brand-pill { gap: 5px; padding: 4px 10px; border-width: 1px; }
  .table-num-tag { font-size: 12px; }
  .table-status-badge { padding: 2px 5px; font-size: 7px; }
  .table-instruction { font-size: 8px; }
  .btn-lobby-fill-bots { padding: 5px 9px; font-size: 8px; margin-top: 1px; }
}

/* Lobby catalogue: navigation stays in its own top layer while the physical
   table is anchored to the exact centre of the available stage. */
#lobby-view .lobby-center-stage {
  padding: 62px 20px;
}

#lobby-view .lobby-table-detail {
  position: relative;
  height: 100%;
  min-height: 0;
  justify-content: flex-start;
}

#lobby-view .lobby-table-detail .lobby-table-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0 !important;
  transform: translate(-50%, -50%);
}

@media (max-width: 900px) {
  #lobby-view .lobby-center-stage {
    padding: 42px 72px;
  }
}

/* Lobby table rules live inside the felt as a fixed three-row table. Keeping
   every label/value in its own cell prevents wrapping and chip collisions. */
#lobby-view .lobby-detail-rules {
  display:grid;
  grid-template-columns:1fr;
  width:clamp(190px, 24vw, 235px);
  margin:0;
  gap:0;
  overflow:hidden;
  border:1px solid rgba(202, 177, 103, .42);
  border-radius:10px;
  background:rgba(3, 27, 18, .9);
  box-shadow:0 5px 15px rgba(0, 0, 0, .32);
}

#lobby-view .lobby-rule-row {
  display:grid;
  grid-template-columns:72px minmax(0, 1fr);
  align-items:center;
  min-width:0;
  min-height:25px;
}

#lobby-view .lobby-rule-row + .lobby-rule-row {
  border-top:1px solid rgba(255, 255, 255, .08);
}

#lobby-view .lobby-detail-rules .lobby-rule-label,
#lobby-view .lobby-detail-rules .lobby-rule-value {
  display:block;
  box-sizing:border-box;
  min-width:0;
  margin:0;
  border:0 !important;
  border-radius:0;
  padding:5px 8px;
  font-size:9px;
  line-height:15px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#lobby-view .lobby-detail-rules .lobby-rule-label {
  color:#9fb2a7;
  background:rgba(255, 255, 255, .035);
}

#lobby-view .lobby-detail-rules .lobby-rule-value {
  text-align:center;
  letter-spacing:.15px;
}

@media (pointer: coarse) and (orientation: landscape), (max-height: 540px) and (orientation: landscape) {
  #lobby-view .lobby-table-center-hub { gap:3px; }
  #lobby-view .lobby-detail-rules { width:150px; border-radius:7px; }
  #lobby-view .lobby-rule-row { grid-template-columns:52px minmax(0, 1fr); min-height:14px; }
  #lobby-view .lobby-detail-rules .lobby-rule-label,
  #lobby-view .lobby-detail-rules .lobby-rule-value {
    padding:2px 5px;
    font-size:7px;
    line-height:10px;
  }
}

@media (pointer: coarse) and (orientation: landscape), (max-height: 540px) and (orientation: landscape) {
  #lobby-view .lobby-center-stage {
    padding: 38px 72px;
  }

  #lobby-view .lobby-table-detail .lobby-table-wrapper {
    margin: 0 !important;
  }
}

/* Compact, centered lobby actions */
#lobby-view .lobby-left-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  gap: 7px;
  z-index: 4;
}
#lobby-view .lobby-center-title {
  left: 24px;
  transform: translateY(-50%);
}
#lobby-view .lobby-left-panel .btn-bot-quick-play {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: .15px;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .28);
}
#lobby-view #btn-open-table-rules {
  color: #271b06;
  border-color: rgba(225, 193, 103, .8);
  background: linear-gradient(180deg, #d9bc6d 0%, #a77d2e 100%);
}
#lobby-view #btn-open-table-rules:hover {
  border-color: #f2d98c;
  box-shadow: 0 4px 11px rgba(175, 128, 38, .32);
}
#lobby-view #btn-bot-quick-play {
  color: #e1e4e2;
  border-color: rgba(190, 198, 193, .34);
  background: linear-gradient(180deg, rgba(92, 101, 96, .95), rgba(54, 61, 57, .98));
}
#lobby-view #btn-bot-quick-play:hover {
  border-color: rgba(224, 229, 226, .55);
  box-shadow: 0 4px 11px rgba(0, 0, 0, .35);
}

@media (max-width: 900px) {
  #lobby-view .lobby-center-title { left: max(8px, env(safe-area-inset-left)); }
  #lobby-view .lobby-left-panel { gap: 4px; }
  #lobby-view .lobby-left-panel .btn-bot-quick-play { padding: 5px 8px; font-size: 8px; }
}

/* Masadaki sayÄ±/taÅŸ oranÄ±, Ä±stakadaki 26/60 oranÄ±nÄ± birebir izler.
   Container birimleri sayesinde normal ve bÃ¼yÃ¼mÃ¼ÅŸ ovalde ayrÄ± sabit font
   deÄŸerleri gerekmez; taÅŸla birlikte orantÄ±lÄ± Ã¶lÃ§eklenir. */
.grid-cell-slot {
  container-type: size;
}

.grid-cell-slot .okey-tile .tile-number,
.my-turn-focus .grid-cell-slot .okey-tile .tile-number {
  font-size: min(43.333cqh, 59.091cqw) !important;
}

/* Istakadaki 5/60 yükseklik ve 5/44 genişlik oranını renk noktasında da
   koru. Böylece normal ve büyümüş oval masada nokta taşla beraber ölçeklenir. */
.grid-cell-slot .okey-tile .tile-dot,
.my-turn-focus .grid-cell-slot .okey-tile .tile-dot {
  width: min(8.333cqh, 11.364cqw) !important;
  height: min(8.333cqh, 11.364cqw) !important;
  margin-top: min(3.333cqh, 4.545cqw) !important;
}

/* Chat Items & Pills */
.btn-chat-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border: 1.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #e74c3c;
  animation: pulse 1s infinite;
}

.table-top-actions {
  position: absolute;
  top: max(6px, env(safe-area-inset-top));
  right: max(6px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 50;
}

.table-top-actions .btn-menu-trigger {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

.table-top-actions .chat-unread-dot {
  width: 6px;
  height: 6px;
}

.chat-messages-box {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-welcome-msg {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-align: center;
  font-style: italic;
  padding: 8px 0;
}

.chat-message-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #f1c40f;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  animation: slideInLeft 0.2s ease-out;
}

.chat-message-item.is-me {
  border-left-color: #2ecc71;
  background: rgba(46, 204, 113, 0.12);
  align-self: flex-end;
  text-align: right;
}

.chat-message-item.is-system-announcement {
  border-left-color: #e74c3c !important;
  border-left-width: 4px !important;
  background: rgba(231, 76, 60, 0.18) !important;
  border: 1px solid rgba(231, 76, 60, 0.45);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.chat-message-item.is-system-announcement .chat-sender {
  color: #ff6b6b !important;
  font-weight: 900 !important;
}

.chat-message-item.is-system-announcement .chat-text {
  color: #ffe0e0 !important;
  font-weight: 700 !important;
}

.chat-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-sender {
  color: #f1c40f;
  font-weight: 800;
  font-size: 11px;
}

.chat-time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.chat-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  word-break: break-word;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.chat-input-field {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
}

.btn-send-chat-action {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

/* =========================================================
   FLYING TILE ANIMATION OVERLAY & 3D CASINO TILE CLONES
   ========================================================= */

.animation-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}

.flying-tile-clone {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1.5px solid #d5c8b5;
  background: var(--tile-bg, linear-gradient(135deg, #fffcf5 0%, #f7ecd7 50%, #ebd4b0 100%));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6);
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.flying-tile-clone.tile-face-down {
  background: var(--tile-bg, linear-gradient(135deg, #fffcf5 0%, #f7ecd7 50%, #ebd4b0 100%)) !important;
  border: 1.5px solid #d5c8b5 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6) !important;
}

.flying-tile-clone.tile-face-down .tile-back-pattern {
  display: none;
}

.flying-tile-clone .tile-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin-top: -2px;
}

.flying-tile-clone .tile-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 2px;
}

/* Three-state rule selector and clear rule status chips */
.table-rule-grid { grid-template-columns: 1fr; gap: 9px; }
.table-rule-choice { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 12px; border:1px solid rgba(201,171,92,.2); border-radius:11px; background:rgba(5,34,23,.68); }
.table-rule-choice > strong { color:#e5d49d; font-size:12px; }
.rule-segment { display:flex; align-items:center; gap:5px; padding:3px; border-radius:9px; background:rgba(0,0,0,.24); }
.rule-segment label { cursor:pointer; }
.rule-segment input { position:absolute; opacity:0; pointer-events:none; }
.rule-segment span { display:inline-flex; align-items:center; justify-content:center; min-width:82px; padding:6px 9px; border:1px solid transparent; border-radius:7px; opacity:.48; font-size:10px; font-weight:900; transition:opacity .15s ease,transform .15s ease,box-shadow .15s ease; }
.rule-segment input:checked + span { opacity:1; transform:translateY(-1px); box-shadow:0 3px 8px rgba(0,0,0,.3); }
.rule-green { color:#dff8e8 !important; background:rgba(30,126,67,.72) !important; border-color:rgba(83,203,125,.52) !important; }
.rule-red { color:#ffe5e2 !important; background:rgba(151,49,43,.76) !important; border-color:rgba(229,100,91,.55) !important; }
.rule-gray { color:#e2e6e3 !important; background:rgba(83,91,87,.72) !important; border-color:rgba(177,186,181,.3) !important; }

/* Header: centered logo, right-aligned profile, actions just below the bar. */
#lobby-view .lobby-top-bar { justify-content:flex-end; }
#lobby-view .lobby-right-panel { margin-left:auto; }
#lobby-view .lobby-center-title { left:50%; top:50%; transform:translate(-50%,-50%); }
#lobby-view .lobby-left-panel { left:50%; top:calc(100% + 12px); transform:translateX(-50%); }
#lobby-view .lobby-center-stage { padding:62px 20px; }

@media (max-width: 900px) {
  #lobby-view .lobby-center-title { left:50%; }
  #lobby-view .lobby-left-panel { top:calc(100% + 7px); }
  #lobby-view .lobby-center-stage { padding:42px 72px; }
  .table-rule-choice { padding:7px 9px; }
  .rule-segment span { min-width:68px; padding:5px 7px; font-size:9px; }
}

@media (pointer: coarse) and (orientation: landscape), (max-height: 540px) and (orientation: landscape) {
  #lobby-view .lobby-center-stage { padding:38px 72px; }
  #lobby-view .lobby-catalog-nav { gap: 10px; margin-bottom: 2px; }
  #lobby-view .lobby-catalog-arrow { width: 30px; height: 30px; font-size: 23px; }
  #lobby-view .lobby-catalog-meta span { font-size: 9px; }
  #lobby-view .lobby-catalog-meta strong { font-size: 8px; }
  #lobby-view .lobby-catalog-rules { gap: 3px; min-height: 18px; }
  #lobby-view .lobby-catalog-rules span { padding: 2px 4px; font-size: 7px; }
  #lobby-view .lobby-table-detail .lobby-table-wrapper {
    margin:0 !important;
    height: calc(100dvh - 164px);
    max-height: 248px;
  }
}

/* Rule plaques — one restrained felt/wood visual language in lobby and game. */
.game-rules-summary,
#lobby-view .lobby-detail-rules {
  box-sizing:border-box;
  border:1px solid rgba(151, 112, 48, .72);
  background:
    linear-gradient(90deg, rgba(126, 88, 30, .08), transparent 22%, transparent 78%, rgba(126, 88, 30, .08)),
    linear-gradient(180deg, rgba(9, 42, 28, .97), rgba(3, 24, 16, .98));
  box-shadow:
    inset 0 1px 0 rgba(246, 218, 145, .1),
    inset 0 0 18px rgba(0, 0, 0, .28),
    0 4px 11px rgba(0, 0, 0, .28);
}

.game-rule-row + .game-rule-row,
#lobby-view .lobby-rule-row + .lobby-rule-row {
  border-top:1px solid rgba(177, 137, 68, .18);
}

.game-rule-label,
#lobby-view .lobby-detail-rules .lobby-rule-label {
  color:rgba(205, 178, 112, .78);
  background:rgba(7, 25, 17, .28);
  border-right:1px solid rgba(177, 137, 68, .16);
  font-family:'Montserrat', sans-serif;
  font-weight:700;
  letter-spacing:.35px;
  text-transform:uppercase;
}

.game-rule-value,
#lobby-view .lobby-detail-rules .lobby-rule-value {
  align-self:center;
  margin:3px 4px;
  border:1px solid transparent !important;
  border-radius:5px !important;
  padding:3px 5px;
  font-family:'Montserrat', sans-serif;
  font-weight:800;
  letter-spacing:.1px;
  box-shadow:inset 0 1px 0 rgba(255, 255, 255, .035);
}

.game-rules-summary .game-rule-value.rule-green,
#lobby-view .lobby-detail-rules .lobby-rule-value.rule-green {
  color:#b7d8bf !important;
  background:rgba(38, 91, 57, .38) !important;
  border-color:rgba(90, 144, 103, .25) !important;
}

.game-rules-summary .game-rule-value.rule-red,
#lobby-view .lobby-detail-rules .lobby-rule-value.rule-red {
  color:#d9b1a4 !important;
  background:rgba(105, 52, 40, .38) !important;
  border-color:rgba(157, 90, 72, .25) !important;
}

.game-rules-summary .game-rule-value.rule-gray,
#lobby-view .lobby-detail-rules .lobby-rule-value.rule-gray {
  color:#c7bea8 !important;
  background:rgba(91, 79, 56, .3) !important;
  border-color:rgba(150, 132, 94, .2) !important;
}

@media (pointer: coarse), (max-width: 900px) {
  .game-rule-value,
  #lobby-view .lobby-detail-rules .lobby-rule-value {
    margin:2px 3px;
    padding:2px 3px;
    border-radius:4px !important;
  }
}

/* Rule tables deliberately mirror the live player score/penalty card. */
.game-rules-summary,
#lobby-view .lobby-detail-rules {
  gap:3px;
  padding:4px 5px;
  border:1px solid rgba(241, 196, 15, .45);
  border-radius:8px;
  background:rgba(0, 0, 0, .75);
  box-shadow:inset 0 2px 6px rgba(0, 0, 0, .6);
}

.game-rule-row,
#lobby-view .lobby-rule-row {
  grid-template-columns:1fr;
  border:0;
  border-radius:3px;
  background:rgba(255, 255, 255, .05);
}

.game-rule-row + .game-rule-row,
#lobby-view .lobby-rule-row + .lobby-rule-row {
  border-top:0;
}

.game-rule-label,
#lobby-view .lobby-detail-rules .lobby-rule-label {
  align-self:center;
  margin:2px 3px;
  padding:2px 3px;
  border:1px solid rgba(255, 255, 255, .1) !important;
  border-radius:3px;
  color:#a8d5ba;
  background:rgba(0, 0, 0, .4);
  font-size:8px;
  line-height:11px;
  font-weight:800;
  letter-spacing:0;
}

.game-rule-value,
#lobby-view .lobby-detail-rules .lobby-rule-value {
  grid-column:1 / -1;
  width:100%;
  box-sizing:border-box;
  text-align:center;
  margin:0;
  padding:2px 4px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none;
  font-size:9px;
  line-height:12px;
  font-weight:900;
}

.game-rules-summary .game-rule-value.rule-green,
#lobby-view .lobby-detail-rules .lobby-rule-value.rule-green {
  color:#2ecc71 !important;
  background:transparent !important;
}

.game-rules-summary .game-rule-value.rule-red,
#lobby-view .lobby-detail-rules .lobby-rule-value.rule-red {
  color:#ff7675 !important;
  background:transparent !important;
}

.game-rules-summary .game-rule-value.rule-gray,
#lobby-view .lobby-detail-rules .lobby-rule-value.rule-gray {
  color:rgba(255, 255, 255, .58) !important;
  background:transparent !important;
}

@media (pointer: coarse), (max-width: 900px) {
  .game-rules-summary,
  #lobby-view .lobby-detail-rules { gap:2px; padding:3px 4px; }
  .game-rule-label,
  #lobby-view .lobby-detail-rules .lobby-rule-label {
    margin:1px 2px;
    padding:1px 2px;
    font-size:7px;
    line-height:9px;
  }
  .game-rule-value,
  #lobby-view .lobby-detail-rules .lobby-rule-value {
    margin:0;
    padding:1px 3px;
    font-size:7px;
    line-height:10px;
  }
}

/* Consistent horizontal player cards; side avatars face the table center. */
#game-view .player-outer-bar {
  --profile-inset: 3px;
  --profile-avatar-size: 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 175px;
  min-width: 175px;
  max-width: 175px;
  min-height: 64px;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 28px;
  text-align: center;
  border-width: 1px;
}

#game-view .bar-top,
#game-view .bar-bottom {
  height: 64px;
  padding: var(--profile-inset);
  justify-content: flex-start;
  border-radius: 32px;
}

#game-view .bar-top .avatar-ring-container,
#game-view .bar-bottom .avatar-ring-container {
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  flex: 0 0 var(--profile-avatar-size);
}

#game-view .bar-top .pod-avatar,
#game-view .bar-bottom .pod-avatar {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#game-view .bar-left {
  flex-direction: row-reverse;
}

#game-view .player-outer-bar .bar-player-info {
  flex: 1 1 0;
  min-width: 0;
  align-items: stretch;
}

#game-view .player-outer-bar .player-name {
  order: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

#game-view .player-outer-bar .player-open-status {
  order: 2;
  align-self: center;
  max-width: 100%;
}

#game-view .player-outer-bar .player-turn-progress-track {
  order: 3;
  position: static;
  width: 100%;
  height: 3px;
  margin-top: 3px;
  align-self: center;
}

@media (pointer: coarse), (max-width: 900px) {
  #game-view .player-outer-bar {
    --profile-avatar-size: 38px;
    width: 112px;
    min-width: 112px;
    max-width: 112px;
    min-height: 46px;
    gap: 4px;
    padding: 4px 5px;
    border-radius: 23px;
  }

  #game-view .bar-bottom {
    display: flex !important;
  }

  #game-view .bar-top,
  #game-view .bar-bottom {
    height: 46px;
    padding: var(--profile-inset);
  }
}

/* Slim side cards: full-width top portrait and rack-facing text. */
#game-view .bar-left,
#game-view .bar-right {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 200px;
  flex-direction: column;
  padding: var(--profile-inset) var(--profile-inset) 6px;
  justify-content: flex-start;
  gap: 6px;
  border-radius: 32px;
  transform: translateY(-50%);
}

#game-view .bar-left .avatar-ring-container,
#game-view .bar-right .avatar-ring-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

#game-view .bar-left .pod-avatar,
#game-view .bar-right .pod-avatar {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

#game-view .bar-left {
  left: calc(var(--side-profile-offset) + var(--side-profile-width));
}

#game-view .bar-right {
  right: calc(var(--side-profile-offset) + var(--side-profile-width));
}

#game-view .bar-left .bar-player-info,
#game-view .bar-right .bar-player-info {
  flex: 0 0 auto;
  width: 100%;
  gap: 5px;
  align-items: center;
  box-sizing: border-box;
  padding: 0 5px;
}

#game-view .bar-left .player-name,
#game-view .bar-right .player-name {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  white-space: nowrap;
  height: 68px;
  max-height: 68px;
  flex: none;
}

#game-view .bar-left .player-open-status,
#game-view .bar-right .player-open-status {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  padding: 4px 2px;
  max-height: 44px;
  font-size: 10px;
}

#game-view .bar-left .player-name,
#game-view .bar-left .player-open-status {
  transform: none;
}

#game-view .bar-right .player-name,
#game-view .bar-right .player-open-status {
  transform: none;
}

@media (pointer: coarse), (max-width: 900px) {
  #game-view .bar-left,
  #game-view .bar-right {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 160px;
    padding: var(--profile-inset) var(--profile-inset) 6px;
    gap: 4px;
    border-radius: 23px;
  }

  #game-view .bar-left .player-name,
  #game-view .bar-right .player-name {
    height: 54px;
    max-height: 54px;
  }

  #game-view .bar-left .player-open-status,
  #game-view .bar-right .player-open-status {
    font-size: 8px;
    max-height: 34px;
  }
}

/* Discard tiles share the expanded oval table's measured dimensions. */
#game-view .table-corner-discard .plus-discard-box {
  width: calc(var(--common-tile-width, 42px) + 6px);
  height: calc(var(--common-tile-height, 58px) + 6px);
  box-sizing: border-box;
}

.table-corner-discard .okey-tile {
  width: calc(var(--common-tile-width, 42px));
  height: calc(var(--common-tile-height, 58px));
  flex: none;
  box-sizing: border-box;
}

.table-corner-discard .okey-tile .tile-number {
  font-size: calc(var(--common-number-size, 26px));
}

.table-corner-discard .okey-tile .tile-dot {
  width: calc(var(--common-dot-size, 5px));
  height: calc(var(--common-dot-size, 5px));
}

/* Shrink complete profile cards while anchoring side edges to discard slots. */
#game-view .bar-left {
  transform: translateY(-50%) scale(0.9);
  transform-origin: left center;
}

#game-view .bar-right {
  transform: translateY(-50%) scale(0.9);
  transform-origin: right center;
}

#game-view .bar-top {
  transform: translateX(-50%) scale(0.9);
  transform-origin: center;
}

#game-view .bar-bottom {
  transform: scale(0.9) !important;
  transform-origin: center;
}

.top-turn-timer-fill,
.top-turn-timer-fill.urgent-pulse {
  background: #48d597 !important;
  box-shadow: 0 0 16px rgba(72, 213, 151, 0.6) !important;
}

/* One shared on-screen tile size. The expanded oval is the sizing reference. */
.tile-size-measure {
  position: fixed !important;
  top: 0 !important;
  left: -20000px !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
.tile-size-measure, .tile-size-measure * {
  transition: none !important;
  animation: none !important;
}
#game-view .istaka-wing-wrapper,
#game-view .plus-istaka-board {
  zoom: 1;
  flex: 0 0 auto;
  width: fit-content;
}

#game-view .istaka-wing-wrapper {
  zoom: var(--rack-display-scale, 1.25);
}
#game-view #player-istaka-container,
#game-view .istaka-row {
  width: fit-content;
}
#game-view .istaka-row {
  height: auto;
  min-height: 0;
}
#game-view .istaka-slot {
  flex: 0 0 auto;
  width: calc(var(--common-tile-width, 42px) + 2px);
  min-width: calc(var(--common-tile-width, 42px) + 2px);
  max-width: calc(var(--common-tile-width, 42px) + 2px);
  height: calc(var(--common-tile-height, 58px) + 2px);
}
#game-view .istaka-slot .okey-tile .tile-number {
  font-size: var(--common-number-size, 26px) !important;
}

#game-view .istaka-slot .okey-tile {
  width: var(--common-tile-width, 42px) !important;
  height: var(--common-tile-height, 58px) !important;
}
#game-view .istaka-slot .okey-tile .tile-dot {
  width: var(--common-dot-size, 5px) !important;
  height: var(--common-dot-size, 5px) !important;
}
.flying-tile-clone .tile-number {
  font-size: var(--flight-number-size, 18px);
}
.flying-tile-clone .tile-dot {
  width: var(--flight-dot-size, 4px);
  height: var(--flight-dot-size, 4px);
}

/* Reduce only portraits around their existing centers, leaving card layout intact. */
#game-view .player-outer-bar .pod-avatar {
  transform: scale(0.9);
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#game-view .player-outer-bar:not(.seat-empty) .pod-avatar:hover,
#game-view .player-outer-bar:not(.seat-empty) .avatar-ring-container:hover .pod-avatar {
  transform: scale(1.02);
  box-shadow: 0 0 14px rgba(241, 196, 15, 0.85);
}

.lobby-occupied-avatar {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lobby-occupied-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.85);
}

