@import "tfd-nav.css";

/* ==========================================================================
   THE FLYING DUTCHMEN - GAME LOBBY DESIGN SYSTEM
   ========================================================================== */

:root {
  --navy-bg: #070d14;
  --navy-dark: #0b1522;
  --navy-surface: #101e30;
  --navy-card: rgba(16, 30, 48, 0.85);
  --navy-border: rgba(212, 175, 55, 0.22);
  --navy-border-hover: rgba(212, 175, 55, 0.5);

  --gold-primary: #d4af37;
  --gold-light: #f3e7a1;
  --gold-dark: #9a7b1c;
  --gold-gradient: linear-gradient(135deg, #f6e05e 0%, #d4af37 50%, #aa820a 100%);
  --gold-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #f3e7a1;

  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--navy-bg);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(26, 54, 23, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #070d14 0%, #0d1b2a 50%, #070d14 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar styles provided by shared tfd-nav.css */

/* ==========================================================================
   MAIN WRAPPER & HERO
   ========================================================================== */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}

.hero-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

/* Flow Switcher Tabs */
.flow-tabs {
  display: inline-flex;
  background: rgba(16, 30, 48, 0.9);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--navy-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  gap: 0.4rem;
}

.flow-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.flow-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.flow-tab-btn.active {
  background: var(--gold-gradient);
  color: #0b1522;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   VIEWS
   ========================================================================== */
.flow-view {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.flow-view.active {
  display: block;
}

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

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title-bar h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-gold {
  color: var(--gold-primary);
}

.badge-count {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   GAME CARDS GRID
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.game-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy-border-hover);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.game-card.selected {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px var(--gold-primary), var(--gold-shadow);
  background: rgba(22, 40, 64, 0.9);
}

.game-card.selected::before {
  opacity: 1;
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.game-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.game-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.game-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gold-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.65rem;
}

/* ==========================================================================
   SELECTED GAME ACTION PANEL
   ========================================================================== */
.game-action-panel {
  background: linear-gradient(135deg, rgba(16, 30, 48, 0.95) 0%, rgba(20, 40, 65, 0.95) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--gold-shadow);
}

.game-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.game-header-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
}

.game-players-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.game-desc-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.game-buttons-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: #0b1522;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--gold-shadow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--navy-border);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-primary);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b1522;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-gold:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   TABLES LIST
   ========================================================================== */
.tables-container {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.tables-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tables-header-row h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-refresh {
  background: transparent;
  border: 1px solid var(--navy-border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-refresh:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.tables-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.table-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.table-row:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--navy-border-hover);
}

.table-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.table-id-badge {
  font-family: monospace;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

.table-seats-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* ==========================================================================
   PARTY LOUNGE (GROUP-FIRST FLOW)
   ========================================================================== */
.party-entry-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.party-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.party-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.party-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.party-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  flex: 1;
}

.join-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.join-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--navy-border);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.join-input-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* Active Party Lounge */
.party-lounge-panel {
  background: var(--navy-card);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lounge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--navy-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.lounge-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.room-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.btn-copy {
  background: none;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-copy:hover {
  transform: scale(1.15);
}

.btn-leave-party {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-leave-party:hover {
  background: rgba(239, 68, 68, 0.3);
}

.lounge-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lounge-members-card,
.lounge-game-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.lounge-members-card h4,
.lounge-game-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.members-roster {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  min-height: 120px;
}

.member-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.member-name-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.host-tag {
  background: var(--gold-gradient);
  color: #0b1522;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.ready-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.ready-badge.is-ready {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.ready-badge.not-ready {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-ready {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ready.active-ready {
  background: #16a34a;
  color: #ffffff;
}

.host-game-selector {
  margin-bottom: 1rem;
}

.host-game-selector select {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--navy-border);
  color: var(--text-main);
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.selected-game-preview {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.selected-game-preview h5 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.selected-game-preview p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.game-requirements {
  font-size: 0.78rem;
  color: var(--info);
}

.btn-launch-game {
  background: var(--gold-gradient);
  color: #0b1522;
  border: none;
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--gold-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-launch-game:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.launch-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   MATCH BOARD VIEW & TIC-TAC-TOE GAME RENDERER
   ========================================================================== */
.match-board-view {
  background: var(--navy-card);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7);
  max-width: 800px;
  margin: 0 auto;
}

.match-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--navy-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.btn-back-lobby {
  background: none;
  border: 1px solid var(--navy-border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-back-lobby:hover {
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.match-game-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.match-id-badge {
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Tic Tac Toe Board Styling */
.ttt-board-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

.ttt-status-banner {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--navy-border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.ttt-cell {
  background: rgba(16, 30, 48, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.ttt-cell:hover:not(.disabled) {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: scale(1.03);
}

.ttt-cell.disabled {
  cursor: not-allowed;
}

.ttt-cell.x-mark {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.ttt-cell.o-mark {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.ttt-game-over-panel {
  margin-top: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-card {
  background: var(--navy-dark);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), var(--gold-shadow);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--navy-border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--navy-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy-dark);
  border: 1px solid var(--gold-primary);
  color: var(--text-main);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastSlide 0.3s ease forwards;
}

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

.hidden {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .game-action-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .game-buttons-col {
    justify-content: stretch;
  }

  .game-buttons-col button {
    flex: 1;
  }

  .party-entry-panel,
  .lounge-body-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}
