/* ============================================================
   main.css – Thai Monopoly premium dark UI
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #FFD700;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ── Header ── */
.app-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-app-region: drag;
  z-index: 100;
}

.app-header h1 {
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.header-controls {
  display: flex;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.lang-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ── Lobby Screen ── */
#lobby-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 48px);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

#lobby-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, -2%) rotate(-1deg); }
}

#lobby-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 40px 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

#lobby-content::-webkit-scrollbar {
  width: 6px;
}

#lobby-content::-webkit-scrollbar-track {
  background: transparent;
}

#lobby-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.lobby-title {
  text-align: center;
  margin-bottom: 40px;
}

.lobby-title h1 {
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.lobby-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.lobby-section {
  margin-bottom: 20px;
}

.lobby-section label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.lobby-input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.lobby-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.lobby-input::placeholder {
  color: var(--text-muted);
}

.lobby-mode-toggle {
  display: flex;
  gap: 8px;
}

.mode-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.mode-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.player-count-selector {
  display: flex;
  gap: 6px;
}

.count-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.count-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.count-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.lobby-players-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lobby-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
}

.lobby-player .lobby-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
}

.player-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.player-color-label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 50px;
  text-align: right;
}

.lobby-start-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: var(--gradient-gold);
  border: none;
  border-radius: var(--radius-md);
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.lobby-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.lobby-start-btn:active {
  transform: translateY(0);
}

.lobby-btn {
  padding: 12px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lobby-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-blue);
}

.online-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.online-join {
  display: flex;
  gap: 8px;
}

.online-join .lobby-input {
  flex: 1;
}

.online-status {
  margin-top: 16px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
}

.room-code-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.room-code-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
}

.waiting-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.online-players-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.online-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-glass);
  border-radius: 8px;
}

/* ── Game Screen ── */
#game-screen {
  display: none;
  height: calc(100vh - 48px);
  background: var(--bg-primary);
}

.game-layout {
  display: flex;
  height: 100%;
  width: 100%;
  gap: 0;
}

/* Board panel (left) */
.board-panel {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(10, 14, 26, 0.95);
}

#board-canvas {
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

/* Info panel (right) */
.info-panel {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Player HUD */
.hud-bar {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.turn-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.turn-player-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px currentColor; }
  50% { box-shadow: 0 0 20px currentColor; }
}

.turn-name {
  font-size: 15px;
  font-weight: 700;
}

.turn-money {
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 600;
}

.round-badge {
  background: var(--bg-glass);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.roll-btn {
  display: none !important; /* Hide original HUD button as we use the premium Roll Dice modal popup */
  padding: 10px 28px;
  background: var(--gradient-gold);
  border: none;
  border-radius: 24px;
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.roll-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

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

.exit-btn {
  padding: 10px 18px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 24px;
  color: var(--accent-rose);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exit-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: var(--accent-rose);
  transform: scale(1.05);
}

.end-turn-btn {
  padding: 10px 18px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  color: var(--accent-blue);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.end-turn-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.3);
  border-color: var(--accent-blue);
  transform: scale(1.05);
}

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


/* Banknotes section (top-right) */
.banknotes-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.banknotes-section h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.banknotes-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 8px;
  height: auto;
  overflow: visible;
  flex-wrap: nowrap;
  gap: 10px;
}

/* ── HUD Banknote Style ── */
.hud-banknote {
  position: relative;
  width: 96px;
  height: 56px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  overflow: visible;
  user-select: none;
  flex-shrink: 0;
}

.hud-banknote:not(.empty):hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 18px rgba(255, 215, 0, 0.25), 0 0 8px rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}

.hud-banknote.empty {
  opacity: 0.25;
  cursor: not-allowed;
  filter: grayscale(60%);
}

.hud-banknote.empty:hover {
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.hud-banknote-inner {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.hud-banknote-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, #fff 10%, transparent 11%),
                    radial-gradient(circle, #fff 10%, transparent 11%);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
  pointer-events: none;
}

.hud-banknote-top-row,
.hud-banknote-bottom-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hud-banknote-bottom-row {
  transform: rotate(180deg);
}

.hud-banknote-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.hud-banknote-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.hud-banknote-value {
  font-family: 'Outfit', 'Impact', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Color theme mappings for HUD banknotes */
.hud-banknote.note-10 {
  --card-bg: linear-gradient(135deg, #422f25 0%, #633f1c 100%);
}
.hud-banknote.note-20 {
  --card-bg: linear-gradient(135deg, #164032 0%, #1e533c 100%);
}
.hud-banknote.note-50 {
  --card-bg: linear-gradient(135deg, #182e4b 0%, #20416b 100%);
}
.hud-banknote.note-100 {
  --card-bg: linear-gradient(135deg, #3d1711 0%, #5c221a 100%);
}
.hud-banknote.note-500 {
  --card-bg: linear-gradient(135deg, #2d1740 0%, #442261 100%);
}
.hud-banknote.note-1000 {
  --card-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.hud-banknote .banknote-badge.hand-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-rose);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  border: 1px solid #ffffff;
  z-index: 10;
}

/* ── Premium Vertical Banknotes Design (Fanned in Payment Hand) ── */
.uno-card {
  position: relative;
  width: 72px;
  height: 110px;
  background: var(--bg-glass);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45), inset 0 0 8px rgba(255, 255, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, z-index 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  transform-origin: bottom center;
  transform: rotate(var(--rot)) translateY(var(--y));
  z-index: var(--zi);
  overflow: visible;
  user-select: none;
  flex-shrink: 0;
}

/* Overlapping hand layout */
.payment-notes .uno-card:not(:first-child) {
  margin-left: -18px;
}

/* Hover effects */
.uno-card:not(.disabled):not(.empty):hover {
  transform: translateY(-22px) scale(1.22) rotate(0deg) !important;
  z-index: 100 !important;
  box-shadow: 0 12px 28px rgba(255, 215, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
}

/* Disabled/Empty states */
.uno-card.empty, .uno-card.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.uno-card.empty:hover, .uno-card.disabled:hover {
  transform: rotate(var(--rot)) translateY(var(--y)) !important;
  z-index: var(--zi) !important;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Card inner details */
.uno-card-inner {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

.uno-card-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, #fff 10%, transparent 11%),
                    radial-gradient(circle, #fff 10%, transparent 11%);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
  pointer-events: none;
}

.uno-card-center-region {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.uno-card-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.uno-card-value {
  font-family: 'Outfit', 'Impact', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.uno-card-corner {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.uno-card-corner.top-left {
  top: 6px;
  left: 6px;
}

.uno-card-corner.bottom-right {
  bottom: 6px;
  right: 6px;
  transform: rotate(180deg);
}

/* Color theme mappings */
.uno-card.note-10 {
  --card-bg: linear-gradient(135deg, #5c4033 0%, #8b5a2b 100%);
}
.uno-card.note-20 {
  --card-bg: linear-gradient(135deg, #1b4d3e 0%, #2e7d32 100%);
}
.uno-card.note-50 {
  --card-bg: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
}
.uno-card.note-100 {
  --card-bg: linear-gradient(135deg, #4c1d15 0%, #b91c1c 100%);
}
.uno-card.note-500 {
  --card-bg: linear-gradient(135deg, #3b1e54 0%, #7c3aed 100%);
}
.uno-card.note-1000 {
  --card-bg: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
}

/* Badges on cards */
.uno-card .banknote-badge.hand-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-rose);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
  border: 1.5px solid #ffffff;
  z-index: 10;
}

.uno-card .banknote-selected-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.5);
  border: 1.5px solid #ffffff;
  z-index: 11;
  animation: selectedPulse 1.5s infinite ease-in-out;
}

@keyframes selectedPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 3px 14px rgba(16, 185, 129, 0.8);
  }
}

/* Split context menu */
.split-menu {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 6px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 160px;
}

.split-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.split-option:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
}

/* Players list */
.players-section {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.players-section h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--bg-glass);
  border-radius: 8px;
  border-left: 3px solid;
  transition: var(--transition);
}

.player-card.current {
  background: rgba(255, 215, 0, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.player-card.inspected {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  outline: 1px solid rgba(255, 255, 255, 0.25);
}

.player-card.bankrupt {
  opacity: 0.35;
}

.player-card-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.player-card-money {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Deeds section (bottom) */
.deeds-section {
  flex: 1;
  padding: 8px 16px;
  overflow-y: auto;
}

.deeds-section h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.deeds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deed-card {
  padding: 6px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid;
  min-width: 100px;
}

.deed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.deed-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.deed-info {
  font-size: 10px;
  color: var(--text-muted);
}

.deed-buildings {
  font-size: 10px;
  margin-top: 2px;
}

/* Game Log */
.log-section {
  height: 120px;
  border-top: 1px solid var(--border-glass);
  padding: 8px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
}

.log-section::-webkit-scrollbar {
  width: 4px;
}

.log-section::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.log-entry {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  animation: logSlide 0.3s ease-out;
}

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

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  min-width: 320px;
  max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-gold);
}

.modal-message {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: pre-line;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-color-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 24px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn.primary {
  background: var(--gradient-gold);
  border: none;
  color: #1a1a2e;
}

.modal-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.modal-btn.secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Build quantity selector */
.build-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  justify-content: center;
}

.build-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.build-qty-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
}

.build-qty-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  min-width: 40px;
  text-align: center;
}

.build-cost {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
}

/* Payment overlay */
.payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  backdrop-filter: blur(2px);
}

.payment-box {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 350px;
  backdrop-filter: blur(20px);
}

.payment-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.payment-amounts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
}

.payment-amount-label {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-amount-value {
  font-size: 18px;
  font-weight: 700;
}

.payment-notes {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 16px 8px 8px 8px;
  height: 125px;
  margin-bottom: 16px;
  overflow: visible;
  flex-wrap: nowrap;
}

.payment-placed {
  text-align: center;
  margin: 12px 0;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
}

.payment-confirm-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-gold);
  border: none;
  border-radius: var(--radius-md);
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.payment-confirm-btn:hover {
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.payment-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Animations ── */
.banknote-fly {
  position: fixed;
  z-index: 6000;
  pointer-events: none;
  animation: flyToCentner 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyToCenter {
  from { opacity: 1; }
  to { opacity: 0; transform: scale(0.5); }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  #game-screen {
    height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .game-layout {
    flex-direction: column;
    height: auto;
  }
  .board-panel {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 70vh;
    padding: 8px;
  }
  .info-panel {
    border-left: none;
    border-top: 1px solid var(--border-glass);
    height: auto;
    overflow: visible;
    flex: none;
    width: 100%;
  }
  .hud-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .payment-notes {
    height: 105px;
    padding: 12px 4px 4px 4px;
    flex-wrap: nowrap;
  }
  .banknotes-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: auto;
    overflow-x: visible;
  }
  .uno-card {
    width: 62px;
    height: 94px;
    border-width: 1px;
    border-radius: 9px;
  }
  .hud-banknote {
    width: 80px;
    height: 48px;
    border-radius: 5px;
  }
  .hud-banknote-inner {
    inset: 2px;
    padding: 2px 4px;
  }
  .hud-banknote-value {
    font-size: 13.5px;
  }
  .hud-banknote-circle {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
  .uno-card-inner {
    inset: 3px;
    border-radius: 6px;
  }
  .uno-card-value {
    font-size: 18px;
  }
  .uno-card-corner {
    font-size: 8px;
  }
  .uno-card .banknote-badge.hand-count,
  .uno-card .banknote-selected-badge {
    min-width: 17px;
    height: 17px;
    font-size: 9px;
    border-width: 1px;
  }
  .deeds-section {
    max-height: none;
    overflow-y: visible;
  }
  .log-section {
    max-height: 150px;
    overflow-y: auto;
    height: 150px;
  }
}

/* ── Turn Splash & Modal Aspect Ratios ── */
.turn-splash {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  animation: splashIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.turn-splash.fade-out {
  animation: splashOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.turn-splash-content {
  text-align: center;
}

.turn-splash-sub {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 8px;
  animation: trackingIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.turn-splash-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splashIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes splashOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scaleIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes trackingIn {
  from { letter-spacing: -0.2em; opacity: 0; }
  to { letter-spacing: 4px; opacity: 1; }
}

/* Aspect Ratio Modals */
.modal-box.aspect-2-3 {
  width: 90vw;
  max-width: 360px;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-box.aspect-3-2 {
  width: 90vw;
  max-width: 420px;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-box.aspect-2-3 .modal-message,
.modal-box.aspect-3-2 .modal-message {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.modal-box.aspect-2-3 .modal-message::-webkit-scrollbar,
.modal-box.aspect-3-2 .modal-message::-webkit-scrollbar {
  width: 4px;
}

.modal-box.aspect-2-3 .modal-message::-webkit-scrollbar-thumb,
.modal-box.aspect-3-2 .modal-message::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.modal-box.aspect-2-3 .modal-buttons,
.modal-box.aspect-3-2 .modal-buttons {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  width: 100%;
}

.modal-box.aspect-2-3 .modal-btn,
.modal-box.aspect-3-2 .modal-btn {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  text-align: center;
}

/* ── Game Over Splash Screen ── */
.game-over-box {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.25), inset 0 0 30px rgba(255, 215, 0, 0.05);
  animation: modalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.winner-crown {
  font-size: 64px;
  margin-bottom: 10px;
  animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.game-over-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.winner-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.winner-name-glow {
  font-size: 40px;
  font-weight: 900;
  margin: 10px 0 30px 0;
  letter-spacing: 1px;
  animation: winnerPulse 1.5s ease-in-out infinite alternate;
}

@keyframes winnerPulse {
  from { transform: scale(0.98); }
  to { transform: scale(1.02); }
}

.game-over-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.game-over-buttons .modal-btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
}

/* ── Redesigned Payment Money Tray & Stacked Banknotes ── */
.payment-tray {
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 16px 0;
  cursor: pointer;
  transition: var(--transition);
}

.payment-tray:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-gold);
}

.tray-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  pointer-events: none;
  padding: 0 20px;
}

.tray-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stacked-note {
  position: absolute;
  width: 90px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s ease;
}

.stacked-note.note-10 { background: #5c4033; border-left: 4px solid #8b5a2b; color: #8b5a2b; }
.stacked-note.note-20 { background: #1b4d3e; border-left: 4px solid #4ade80; color: #4ade80; }
.stacked-note.note-50 { background: #1e3a5f; border-left: 4px solid #60a5fa; color: #60a5fa; }
.stacked-note.note-100 { background: #4c1d15; border-left: 4px solid #f87171; color: #f87171; }
.stacked-note.note-500 { background: #3b1e54; border-left: 4px solid #a78bfa; color: #a78bfa; }
.stacked-note.note-1000 { background: #2d3748; border-left: 4px solid #9ca3af; color: #9ca3af; }

/* ── Flying Banknotes ── */
.flying-note {
  position: fixed;
  z-index: 6000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

.flying-note.note-10 { background: #5c4033; border-left: 4px solid #8b5a2b; color: #8b5a2b; }
.flying-note.note-20 { background: #1b4d3e; border-left: 4px solid #4ade80; color: #4ade80; }
.flying-note.note-50 { background: #1e3a5f; border-left: 4px solid #60a5fa; color: #60a5fa; }
.flying-note.note-100 { background: #4c1d15; border-left: 4px solid #f87171; color: #f87171; }
.flying-note.note-500 { background: #3b1e54; border-left: 4px solid #a78bfa; color: #a78bfa; }
.flying-note.note-1000 { background: #2d3748; border-left: 4px solid #9ca3af; color: #9ca3af; }

/* ── Name Confirmation & LAN Discovery Styles ── */
.lobby-options {
  max-width: 440px;
  width: 90vw;
  margin: 10px auto 20px auto;
  padding: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: var(--transition);
}

.welcome-user-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  color: var(--text-primary);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.edit-name-btn {
  background: none;
  border: none;
  color: var(--accent-blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.edit-name-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #fff;
}

.lan-rooms-section {
  margin-top: 20px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.lan-refresh-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
}

.lan-refresh-btn:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.lan-rooms-list {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lan-scanning-text {
  font-size: 12.5px;
  color: var(--accent-blue);
  text-align: center;
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

.lan-empty-text {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  line-height: 1.5;
}

.lan-rooms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lan-rooms-table th {
  text-align: left;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
}

.lan-rooms-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lan-rooms-table tr:last-child td {
  border-bottom: none;
}

.room-code-cell {
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.host-name-cell {
  color: var(--text-primary);
  font-weight: 600;
}

.lan-join-btn {
  background: var(--accent-blue);
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.lan-join-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.lan-join-btn:active {
  transform: translateY(0);
}

.mode-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mode-btn:disabled:hover {
  background: var(--bg-glass) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-glass) !important;
}

/* ── Lobby State Machine Overrides ── */

.select-screen-box .host-btn {
  background: var(--gradient-gold);
  color: #1a1a2e;
  border: none;
}

.select-screen-box .host-btn:hover {
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.select-screen-box .join-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--accent-blue) !important;
  color: var(--accent-blue) !important;
}

/* ── Modal Dice Roll Spacing & Animation ── */
.dice-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  gap: 16px;
}

.dice-wrapper {
  display: flex;
  gap: 20px;
}

.modal-die {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffffff, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 1px solid #cccccc;
  transition: transform 0.1s ease;
}

@keyframes dieRoll {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-15deg) translate(-5px, -5px); }
  50% { transform: scale(0.9) rotate(20deg) translate(5px, 5px); }
  75% { transform: scale(1.1) rotate(-10deg) translate(-3px, 5px); }
  100% { transform: scale(1) rotate(0deg); }
}

.modal-die.rolling {
  animation: dieRoll 0.15s infinite ease-in-out;
}

.modal-die .dot {
  width: 9px;
  height: 9px;
  background-color: #1a1a2e;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

.dice-result-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 10px;
  text-align: center;
}


