/* ==========================================================================
   BEAR SLAVE - ROYALE DARK THEME STYLES (SINGLE GIANT CENTER SUIT CARDS)
   ========================================================================== */

:root {
  --font-family: 'Kanit', 'Outfit', sans-serif;
  --bg-dark: #08111A;
  --bg-card: #111F2D;
  --bg-card-hover: #182A3E;
  --table-felt: #0b3d26;
  --table-felt-inner: #052617;
  --table-border: #a88339;

  --accent-gold: #F5D061;
  --accent-gold-hover: #E0B842;
  --accent-emerald: #10B981;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;

  --danger-color: #EF4444;
  --warning-color: #F59E0B;
  --success-color: #10B981;

  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.app-header {
  height: 60px;
  background-color: rgba(17, 31, 45, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 208, 97, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent-gold);
  font-size: 1.7rem;
}

.accent-gold {
  color: var(--accent-gold);
}

.by-author {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 400;
  text-transform: none;
  margin-left: 4px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* Main Layout Wrapper */
.main-layout-wrapper {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.content-area {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.view.active {
  display: block;
  opacity: 1;
}

/* Cards Base */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Inputs & Buttons */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

input[type="text"], .custom-select {
  width: 100%;
  padding: 11px 15px;
  background-color: rgba(8, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus, .custom-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 208, 97, 0.25);
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  padding: 11px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.88rem;
  border-radius: 6px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #d4a017);
  color: var(--text-dark);
}

.btn-primary:not(:disabled):hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:not(:disabled):hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:not(:disabled):hover {
  filter: brightness(1.1);
}

.btn-warning {
  background-color: var(--warning-color);
  color: var(--text-dark);
}

.btn-warning:not(:disabled):hover {
  filter: brightness(1.1);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:not(:disabled):hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-icon-only {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-main);
  transition: all 0.2s;
}

.btn-icon-only:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* ==================== 1. LOBBY STYLES ==================== */
.lobby-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
}

.room-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  min-height: 200px;
}

.room-card-item {
  background-color: rgba(8, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.room-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.room-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-item-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pvp {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-pve {
  background-color: rgba(139, 92, 246, 0.2);
  color: #C084FC;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.room-item-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.empty-rooms {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ==================== 2. WAITING ROOM STYLES ==================== */
.waiting-room-box {
  max-width: 840px;
  margin: 1rem auto;
}

.waiting-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.room-capacity {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  background-color: rgba(245, 208, 97, 0.12);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(245, 208, 97, 0.35);
}

.waiting-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.player-slot {
  background-color: rgba(8, 17, 26, 0.85);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 105px;
  transition: all 0.3s;
}

.player-slot.filled {
  border-style: solid;
  border-color: var(--accent-emerald);
  background-color: rgba(16, 185, 129, 0.08);
}

.player-slot.host {
  border-color: var(--accent-gold);
  background-color: rgba(245, 208, 97, 0.08);
}

.slot-avatar {
  font-size: 1.8rem;
}

.slot-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.slot-tag {
  font-size: 0.72rem;
  color: var(--accent-gold);
  background-color: rgba(245, 208, 97, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.waiting-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ==================== 3. GAME ROOM STYLES ==================== */
.game-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.game-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 6px;
}

.game-room-info {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.game-turn-indicator {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Tribute Mode Banner */
.tribute-mode-banner {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.2), rgba(16, 185, 129, 0.2));
  border: 2px solid var(--accent-gold);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* DYNAMIC OVAL CARD TABLE (4-ZONE FLEX LAYOUT) */
.card-table {
  background: radial-gradient(circle, var(--table-felt) 0%, var(--table-felt-inner) 100%);
  border: 10px solid var(--table-border);
  box-shadow: inset 0 0 35px rgba(0,0,0,0.85), var(--shadow-lg);
  border-radius: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  width: 100%;
  min-height: 380px;
  gap: 6px;
  position: relative;
}

.table-middle-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.seats-zone {
  display: flex;
  gap: 6px;
  z-index: 10;
}

.seats-zone-top, .seats-zone-bottom {
  flex-direction: row;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  min-height: 48px;
}

.seats-zone-left, .seats-zone-right {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 80px;
}

/* Seat Badges Styling */
.game-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background-color: rgba(17, 31, 45, 0.94);
  padding: 4px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  min-width: 80px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.game-seat.active-turn {
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px var(--accent-gold);
  background-color: rgba(28, 48, 72, 0.96);
  transform: scale(1.05);
}

.game-seat.passed-seat {
  opacity: 0.5;
  filter: grayscale(0.8);
}

.game-seat.disconnected-seat {
  border-color: var(--danger-color);
  opacity: 0.7;
}

.seat-name {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.seat-prev-rank {
  font-size: 0.9rem;
}

.seat-card-count {
  font-size: 1.05rem !important;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.seat-rank-badge {
  font-size: 0.7rem;
  color: #10B981;
  font-weight: 700;
}

/* Table Center Play Area */
.table-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
  z-index: 5;
  min-width: 0;
}

.table-center-action-log {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  background-color: rgba(8, 17, 26, 0.92);
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(245, 208, 97, 0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  text-align: center;
  width: 100%;
}

.table-center-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.table-deck-area {
  text-align: center;
}

.card-back-stack {
  width: 58px;
  height: 84px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border: 2px solid #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.6);
  margin-bottom: 3px;
}

.deck-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.played-cards-area {
  text-align: center;
}

.played-cards-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 500;
}

.played-cards-stack {
  min-width: 170px;
  min-height: 125px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.35);
}

.card-placeholder {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   NEW CARD DESIGN: SINGLE GIANT CENTER SUIT ICON & CLEAN CORNER RANKS
   ========================================================================== */

.playing-card {
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  position: relative;
  user-select: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.playing-card.red {
  color: #DC2626;
}

.playing-card.black {
  color: #0F172A;
}

.playing-card .card-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 4px;
  line-height: 1;
  font-size: 1.15rem;
}

.playing-card .card-corner.bottom {
  transform: rotate(180deg);
}

.playing-card .card-center-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  text-align: center;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* Table Center Played Cards */
.played-cards-stack .playing-card {
  width: 82px;
  height: 120px;
  padding: 4px;
  border-radius: 8px;
  border-width: 2px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.6);
}

.played-cards-stack .playing-card .card-corner {
  font-size: 1.2rem;
}

.played-cards-stack .playing-card .card-center-symbol {
  font-size: 3.5rem;
}

/* My Hand Cards */
.my-hand-cards .playing-card {
  width: 66px;
  height: 100px;
  padding: 3px;
  border-radius: 7px;
  border-width: 1.5px;
  margin-left: -14px;
}

.my-hand-cards .playing-card:first-child {
  margin-left: 0;
}

.my-hand-cards .playing-card .card-corner {
  font-size: 1.05rem;
}

.my-hand-cards .playing-card .card-center-symbol {
  font-size: 2.5rem;
}

.playing-card.selected {
  transform: translateY(-16px) !important;
  box-shadow: 0 0 16px var(--accent-gold), 0 6px 12px rgba(0,0,0,0.5);
  border: 2.5px solid var(--accent-gold);
}

.playing-card:hover:not(.selected) {
  transform: translateY(-6px);
}

/* Player Bottom Deck & Controls */
.player-deck-area {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.my-hand-cards {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 16px 6px 4px 6px;
  width: 100%;
  min-height: 130px;
}

/* RIGHT SIDEBAR PANEL */
.sidebar-panel {
  width: 310px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  position: sticky;
  top: 70px;
  padding: 0.85rem;
  gap: 8px;
  background-color: rgba(17, 31, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

/* Online Players List Box */
.online-players-box {
  background-color: rgba(8, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.online-players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.online-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.online-players-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 110px;
  overflow-y: auto;
  padding-right: 2px;
}

.online-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 3px 6px;
  border-radius: 5px;
}

.online-user-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.online-user-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
}

.online-user-location {
  font-size: 0.7rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 6px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}

.chat-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-gold);
}

.chat-badge {
  font-size: 0.72rem;
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.chat-channel-tabs {
  display: flex;
  gap: 4px;
  background-color: rgba(8, 17, 26, 0.8);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-tab {
  flex: 1;
  padding: 5px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-tab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.chat-tab.active {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

.chat-messages-box {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.chat-welcome-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  padding: 1.25rem 0.5rem;
}

.chat-welcome-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 4px;
}

.chat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background-color: rgba(8, 17, 26, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.chat-sender-name {
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.chat-time {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.chat-text {
  color: var(--text-main);
  word-break: break-word;
  line-height: 1.45;
  font-size: 1.18rem;
  font-weight: 400;
}

.chat-input-box {
  display: flex;
  gap: 6px;
}

.chat-input-box input {
  padding: 8px 12px;
  font-size: 1.1rem;
}

/* Global Notification Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 1.8rem;
  max-width: 440px;
  width: 90%;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-box h3 {
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.modal-box p {
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.modal-actions-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 1.25rem;
}

/* ==========================================================================
   AUTO-RESPONSIVE MEDIA QUERIES FOR MOBILE DEVICES
   ========================================================================== */

@media (max-width: 1024px) {
  .main-layout-wrapper {
    flex-direction: column;
    padding: 0.5rem;
  }
  
  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    width: 100%;
    height: auto;
    min-height: 420px;
    position: static;
    display: flex;
    flex-direction: column;
  }

  .chat-messages-box {
    min-height: 240px;
    max-height: 340px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .online-players-list {
    max-height: 140px;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 0.75rem;
    height: 52px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    font-size: 1.35rem;
  }

  .user-badge {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .sidebar-panel {
    min-height: 380px;
    padding: 0.75rem;
  }

  .chat-messages-box {
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chat-item {
    padding: 4px 8px;
    font-size: 0.82rem;
  }

  /* Compact Table for Mobile Phones */
  .card-table {
    min-height: 330px;
    border-width: 6px;
    border-radius: 40px;
    padding: 6px;
  }

  .seats-zone-left, .seats-zone-right {
    min-width: 68px;
  }

  .game-seat {
    min-width: 68px;
    padding: 2px 4px;
    border-radius: 8px;
  }

  .seat-name {
    font-size: 0.72rem;
  }

  .seat-card-count {
    font-size: 0.9rem !important;
  }

  .table-center {
    padding: 0.5rem 0.65rem;
  }

  .played-cards-stack {
    min-width: 140px;
    min-height: 105px;
    padding: 4px;
  }

  .played-cards-stack .playing-card {
    width: 62px;
    height: 92px;
    padding: 3px;
  }

  .played-cards-stack .playing-card .card-corner {
    font-size: 0.95rem;
  }

  .played-cards-stack .playing-card .card-center-symbol {
    font-size: 2.8rem;
  }

  .card-back-stack {
    width: 44px;
    height: 64px;
    font-size: 1.2rem;
  }

  .my-hand-cards .playing-card {
    width: 54px;
    height: 82px;
    padding: 2px;
    margin-left: -15px;
  }

  .my-hand-cards .playing-card .card-corner {
    font-size: 0.88rem;
  }

  .my-hand-cards .playing-card .card-center-symbol {
    font-size: 2.1rem;
  }

  .table-center-action-log {
    font-size: 0.76rem;
    padding: 2px 8px;
  }

  .controls-bar .btn {
    padding: 6px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .card-table {
    min-height: 290px;
    border-width: 4px;
    border-radius: 30px;
  }

  .game-seat {
    min-width: 62px;
    padding: 2px 3px;
  }

  .seat-name {
    font-size: 0.68rem;
  }

  .seat-card-count {
    font-size: 0.85rem !important;
  }

  .played-cards-stack .playing-card {
    width: 54px;
    height: 80px;
  }

  .played-cards-stack .playing-card .card-center-symbol {
    font-size: 2.5rem;
  }

  .my-hand-cards .playing-card {
    width: 48px;
    height: 72px;
    margin-left: -16px;
  }

  .my-hand-cards .playing-card .card-center-symbol {
    font-size: 1.9rem;
  }

  .chat-messages-box {
    min-height: 200px;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
