/* Catholic Monopoly: Conclave - Warm Ivory & Royal Gold Light System */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Inter:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #f4eee1;
  --bg-board-light: #f7f4ea;
  --bg-surface: #ffffff;
  --bg-card: #fffdf8;
  --gold-primary: #b8860b;
  --gold-accent: #D4AF37;
  --gold-light: #8b6b11;
  --burgundy: #800020;
  --crimson: #8B0000;
  --text-main: #23181c;
  --text-dark: #1a1215;
  --text-muted: #6e5d56;
  --border-gold: rgba(184, 134, 11, 0.4);

  /* Vibrant Classic Monopoly Color Bands */
  --color-brown: #795548;
  --color-light_blue: #29B6F6;
  --color-pink: #F06292;
  --color-orange: #FF9800;
  --color-red: #E53935;
  --color-yellow: #FDD835;
  --color-green: #4CAF50;
  --color-dark_blue: #1565C0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at center, #fbf7ee 0%, #ebdcc7 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* App Container Layout */
#app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, #73001c, #4a0013);
  border-bottom: 3px solid var(--gold-accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon { font-size: 1.6rem; }

h1.app-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catholic-comedy-hdr-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff, #f4ebd9);
  color: #800020;
  border: 2px solid var(--gold-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.catholic-comedy-hdr-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.philip-hdr-icon-container {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--gold-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
}

.philip-hdr-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main Layout: Left Sidebar | Center Board | Right Sidebar */
.main-game-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Sidebar HUD */
.left-sidebar-hud {
  width: 270px;
  background: rgba(255, 253, 247, 0.95);
  border-right: 2px solid var(--border-gold);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
}

.left-sidebar-hud h3 {
  font-family: 'Cinzel', serif;
  color: var(--burgundy);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.turn-log-feed {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.log-entry { padding-bottom: 6px; border-bottom: 1px dotted rgba(0,0,0,0.12); line-height: 1.35; color: var(--text-main); }
.log-timestamp { color: var(--gold-primary); font-weight: 700; font-size: 0.68rem; margin-right: 6px; }

/* Bank Building Supply Badge */
.bank-supply-card {
  background: #fff9ed;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 8px;
  font-size: 0.75rem;
  text-align: center;
}
.bank-supply-title { font-family: 'Cinzel', serif; color: var(--burgundy); font-weight: 800; display: block; margin-bottom: 4px; }
.bank-supply-counts { display: flex; justify-content: space-around; font-weight: 700; color: var(--text-main); }

/* Board Container Wrapper */
.board-container-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
}

#board-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* 11x11 Monopoly Board Grid */
.monopoly-board {
  display: grid;
  grid-template-columns: 1.65fr repeat(9, 1fr) 1.65fr;
  grid-template-rows: 1.65fr repeat(9, 1fr) 1.65fr;
  width: min(86vh, 86vw);
  height: min(86vh, 86vw);
  min-width: 600px;
  min-height: 600px;
  background: #f7f4ea; /* Classic Monopoly Ivory Board Color */
  border: 5px solid var(--gold-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  position: relative;
}

/* Board Center Plaza */
.board-center-plaza {
  grid-row: 2 / 11;
  grid-column: 2 / 11;
  background: radial-gradient(circle at center, #ffffff 0%, #f4ebd9 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 3px solid #1a1215;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Giant Angled St. Philip Neri Transparent Centerpiece Logo & Pure Text Overlay */
.giant-tilted-centerpiece {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.giant-logo-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transform: rotate(-45deg); /* Angled across entire center of board */
  transition: transform 0.3s ease;
}

.giant-logo-link:hover {
  transform: rotate(-45deg) scale(1.03);
}

.giant-tilted-logo {
  width: 320px;
  height: 320px;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  opacity: 0.95;
  filter: none;
}

.overlay-title-text-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 110%;
}

.giant-title-main {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #800020;
  letter-spacing: 3px;
  display: block;
  line-height: 1;
}

.giant-title-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.55rem, 1.6vw, 0.88rem);
  font-weight: 900;
  color: #b8860b;
  letter-spacing: 2px;
  display: block;
  margin-top: 4px;
}

/* Plaza Interactive UI Decks & Treasury Badge */
.center-decks {
  display: flex;
  gap: 16px;
  z-index: 5;
  margin-top: 6px;
}

.deck {
  width: 105px;
  height: 58px;
  border: 2px dashed #800020;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.deck-icon { font-size: 1.05rem; }
.deck-label { font-family: 'Cinzel', serif; font-size: 0.54rem; font-weight: 900; color: #800020; margin-top: 2px; }

.papal-treasury-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #800020, #4a0013);
  border: 2px solid var(--gold-accent);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff;
  z-index: 5;
  margin-bottom: 4px;
}

.treasury-icon { font-size: 1.2rem; }
.treasury-label { font-size: 0.58rem; color: #f4ebd9; display: block; font-family: 'Cinzel', serif; }
.treasury-amount { font-size: 0.95rem; font-weight: 900; color: var(--gold-accent); }

/* Board Tile Base & Orientation Math */
.board-tile {
  background: #f7f4ea;
  border: 1px solid #1a1215;
  position: relative;
  display: flex;
  cursor: pointer;
  transition: filter 0.15s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.board-tile:hover { filter: brightness(1.08); z-index: 10; }

/* Corner Tiles */
.space-type-go, .space-type-jail, .space-type-free_parking, .space-type-go_to_jail {
  background: #fdfbf7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
}

/* Tile Orientations */

/* Bottom Row (Spaces 1-9): Color band at top (facing center plaza) */
.tile-bottom {
  flex-direction: column;
}
.tile-bottom .tile-color-band {
  height: 22%;
  width: 100%;
  border-bottom: 1.5px solid #111;
}
.tile-bottom .tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 2px;
  text-align: center;
}

/* Left Column (Spaces 11-19): Color band on right (facing center plaza) */
.tile-left {
  flex-direction: row-reverse;
}
.tile-left .tile-color-band {
  width: 22%;
  height: 100%;
  border-left: 1.5px solid #111;
}
.tile-left .tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 2px;
  text-align: center;
  transform: rotate(90deg);
}

/* Top Row (Spaces 21-29): Color band at bottom (facing center plaza) */
.tile-top {
  flex-direction: column-reverse;
}
.tile-top .tile-color-band {
  height: 22%;
  width: 100%;
  border-top: 1.5px solid #111;
}
.tile-top .tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 2px;
  text-align: center;
  transform: rotate(180deg);
}

/* Right Column (Spaces 31-39): Color band on LEFT (facing center plaza) */
.tile-right {
  flex-direction: row;
}
.tile-right .tile-color-band {
  width: 22%;
  height: 100%;
  border-right: 1.5px solid #111;
}
.tile-right .tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 2px;
  text-align: center;
  transform: rotate(-90deg);
}

/* Vibrant Color Bands */
.group-brown { background: var(--color-brown) !important; }
.group-light_blue { background: var(--color-light_blue) !important; }
.group-pink { background: var(--color-pink) !important; }
.group-orange { background: var(--color-orange) !important; }
.group-red { background: var(--color-red) !important; }
.group-yellow { background: var(--color-yellow) !important; }
.group-green { background: var(--color-green) !important; }
.group-dark_blue { background: var(--color-dark_blue) !important; }

.tile-icon { font-size: clamp(0.55rem, 1.8vw, 0.72rem); }

.tile-name { 
  font-size: clamp(0.32rem, 1.2vw, 0.44rem); 
  font-weight: 800; 
  line-height: 1.02; 
  color: var(--text-dark); 
  margin: 0; 
  padding: 0;
  text-align: center;
  display: block;
}

.tile-price { font-size: clamp(0.32rem, 1.2vw, 0.44rem); color: #800020; font-weight: 800; margin: 0; }

/* Pawns & Badges */
.owner-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #111;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  z-index: 15;
}

.pawn-container {
  position: absolute;
  bottom: 2px;
  left: 2px;
  display: flex;
  gap: 2px;
  z-index: 20;
}

.player-pawn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: popIn 0.3s ease;
}

.active-turn-pawn {
  box-shadow: 0 0 10px #800020, 0 0 15px var(--gold-accent);
  transform: scale(1.15);
}

.house-container { position: absolute; bottom: 2px; right: 2px; font-size: 0.58rem; z-index: 15; }
.cathedral-badge { background: var(--crimson); color: #fff; padding: 1px 3px; border-radius: 3px; font-size: 0.5rem; font-weight: 800; }
.mortgage-badge { position: absolute; inset: 0; background: rgba(0,0,0,0.75); color: #ff4d4d; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; z-index: 25; }

/* Right Sidebar HUD */
.sidebar-hud {
  width: 320px;
  background: rgba(255, 253, 247, 0.95);
  border-left: 2px solid var(--border-gold);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  overflow: hidden;
}

.current-turn-banner {
  background: #fff8eb;
  border: 1.5px solid var(--border-gold);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
}

.current-turn-banner h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  color: var(--burgundy);
  font-weight: 800;
}

.compact-controls {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.compact-dice {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dice {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ffffff, #f4eee1);
  color: #111;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1.5px solid var(--gold-accent);
}

.compact-btn-row { display: flex; gap: 6px; }

.btn-compact {
  flex: 1;
  font-size: 0.75rem;
  padding: 8px 4px;
  font-weight: 700;
  border-radius: 4px;
}

.trade-btn-compact {
  background: linear-gradient(135deg, #2A9D8F, #1E4D2B);
  color: #fff;
}
.trade-btn-compact:hover { filter: brightness(1.15); }

/* Flexible Leaderboard */
.factions-header-row h3 {
  font-family: 'Cinzel', serif;
  color: var(--burgundy);
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 4px;
}

.scrollable-players-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.player-card.active-turn {
  border: 2px solid var(--burgundy);
  background: #fff8ed;
  box-shadow: 0 0 12px rgba(128, 0, 32, 0.15);
}

.player-card.bankrupt { opacity: 0.5; filter: grayscale(0.7); }
.player-info-badge { display: flex; align-items: center; gap: 10px; }
.player-money-badge { font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.05rem; color: var(--burgundy); }

/* Default Desktop Hiding for Mobile-Only Elements */
.mobile-bottom-dock, .mobile-quick-actions {
  display: none !important;
}

/* House Rules Options in Setup Modal */
.house-rules-section {
  background: #fffaf2;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  text-align: left;
}

.house-rules-title {
  font-family: 'Cinzel', serif;
  color: var(--burgundy);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.house-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-main);
}

.house-rule-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Modals Overlay */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 20, 28, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#modal-container {
  background: #fffdf8;
  border: 3px solid var(--gold-accent);
  border-radius: 12px;
  padding: 22px;
  max-width: 620px;
  width: 92%;
  color: var(--text-main);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: modalScale 0.25s ease-out;
}

/* Victory Graphic Banner */
.victory-modal { text-align: center; }

.victory-graphic-banner {
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(128,0,32,0.1) 100%);
  border: 2px solid var(--gold-accent);
  border-radius: 12px;
  padding: 22px;
  margin: 12px 0 18px 0;
  box-shadow: 0 0 25px rgba(212,175,55,0.3);
  position: relative;
  overflow: hidden;
}

.victory-graphic-banner .tiara-icon {
  font-size: 3.8rem;
  animation: crownPulse 2s infinite ease-in-out;
}

.victory-graphic-banner .keys-icon { font-size: 2.4rem; margin-top: -6px; }

.habemus-papam-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--burgundy);
  letter-spacing: 2px;
  margin-top: 6px;
}

.victor-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin: 12px 0;
  color: #fff;
}

.victor-avatar { font-size: 2.4rem; }

/* Setup Modal */
.setup-modal-content { text-align: center; }
.setup-players-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.setup-player-card { background: #fffaf0; border: 1px solid var(--border-gold); border-radius: 8px; padding: 10px; text-align: left; }
.setup-controls { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.setup-controls input, .setup-controls select { background: #ffffff; border: 1px solid var(--border-gold); color: var(--text-main); padding: 5px 8px; border-radius: 4px; }

/* Buttons */
button { font-family: 'Inter', sans-serif; font-weight: 600; padding: 10px 16px; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s ease; }
.gold-btn { background: linear-gradient(135deg, var(--burgundy), #4a0013); color: #ffffff; font-weight: 700; border: 1.5px solid var(--gold-accent); box-shadow: 0 4px 12px rgba(128, 0, 32, 0.25); }
.gold-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
.secondary-btn { background: #ffffff; color: var(--text-main); border: 1px solid var(--border-gold); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.secondary-btn:hover { background: #fdfaf2; }
.btn-large { width: 100%; font-size: 1rem; padding: 12px; }

/* Animations */
@keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes modalScale { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes crownPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ==========================================================================
   MOBILE & PORTRAIT RESPONSIVE SYSTEM (Media Query: max-width: 890px)
   ========================================================================== */

@media (max-width: 890px) {
  header {
    padding: 8px 12px;
  }

  h1.app-title {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .brand-icon {
    font-size: 1.2rem;
  }

  .hdr-btn-text {
    display: none; /* Icon-only button on compact headers */
  }

  .catholic-comedy-hdr-btn {
    padding: 4px 8px;
  }

  .header-controls button {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  /* Main Mobile Stack */
  .main-game-layout {
    flex-direction: column;
    position: relative;
  }

  /* Hide Desktop Layout panels, show active mobile tab */
  .mobile-panel {
    display: none !important;
  }

  .mobile-panel.active-mobile {
    display: flex !important;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow-y: auto;
  }

  #mobile-view-board {
    padding: 4px;
    padding-bottom: 70px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .monopoly-board {
    width: min(92vw, 76vh);
    height: min(92vw, 76vh);
    min-width: 0;
    min-height: 0;
    border-width: 3px;
  }

  .deck {
    width: 75px;
    height: 44px;
  }

  .deck-icon {
    font-size: 0.85rem;
  }

  .deck-label {
    font-size: 0.42rem;
  }

  .papal-treasury-badge {
    padding: 4px 10px;
  }

  .treasury-amount {
    font-size: 0.8rem;
  }

  /* Mobile Bottom Dock */
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, #73001c, #4a0013);
    border-top: 2px solid var(--gold-accent);
    z-index: 500;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.25);
  }

  .mobile-dock-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px 12px;
    transition: all 0.2s ease;
  }

  .mobile-dock-btn.active {
    color: var(--gold-accent);
    font-weight: 800;
    transform: translateY(-2px);
  }

  .mobile-dock-btn .dock-icon {
    font-size: 1.15rem;
  }

  /* Floating Quick Action Bar on Board View */
  .mobile-quick-actions {
    display: flex !important;
    position: fixed;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 440px;
    background: rgba(255, 253, 247, 0.96);
    border: 2px solid var(--gold-accent);
    border-radius: 30px;
    padding: 6px 14px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
    z-index: 400;
  }

  .mobile-turn-indicator {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--burgundy);
  }

  .mobile-action-buttons {
    display: flex;
    gap: 6px;
  }

  /* Mobile Panels Styling */
  .left-sidebar-hud, .sidebar-hud {
    width: 100% !important;
    border: none;
    box-shadow: none;
    padding: 14px;
    padding-bottom: 70px;
  }

  /* Mobile Setup Modal */
  .setup-players-grid {
    grid-template-columns: 1fr;
  }

  #modal-container {
    max-width: 95vw;
    max-height: 90vh;
    padding: 16px;
    overflow-y: auto;
  }
}
