:root {
  --bg-main: #0a0d17;
  --bg-card: #131b2e;
  --gold: #f59e0b;
  --gold-light: #fef08a;
  
  --red-main: #e11d48;
  --red-light: #fb7185;
  --red-dark: #9f1239;
  --red-glow: rgba(225, 29, 72, 0.5);

  --green-main: #059669;
  --green-light: #34d399;
  --green-dark: #064e3b;
  --green-glow: rgba(5, 150, 105, 0.5);

  --yellow-main: #d97706;
  --yellow-light: #fde047;
  --yellow-dark: #78350f;
  --yellow-glow: rgba(217, 119, 6, 0.5);

  --blue-main: #2563eb;
  --blue-light: #60a5fa;
  --blue-dark: #1e3a8a;
  --blue-glow: rgba(37, 99, 235, 0.5);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 50% 20%, #1a2035 0%, #0c101d 60%, #060812 100%);
  color: #f8fafc;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.top-nav {
  height: 44px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 50;
}

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

.brand-icon {
  font-size: 19px;
  filter: drop-shadow(0 0 6px var(--gold));
  animation: crownBob 2.5s infinite ease-in-out;
}

@keyframes crownBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.btn-mode-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mode-toggle:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.03);
}

.btn-nav-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-nav-icon:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

/* ========================================================
   MAIN GAME ARENA (PORTRAIT LAYOUT)
======================================================== */
.arena-container {
  height: calc(100vh - 42px);
  height: calc(100dvh - 42px);
  max-height: calc(100vh - 42px);
  max-height: calc(100dvh - 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Top players at top, board in middle, bottom players at bottom */
  align-items: center;
  padding: 4px 8px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.players-row {
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  height: 46px;
}

.player-corner-box {
  background: rgba(19, 27, 46, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 150px;
  max-width: 48%;
  height: 42px;
  flex-shrink: 0;
}

.player-corner-box.top-right,
.player-corner-box.bottom-right {
  margin-left: auto;
}

/* Active Turn Highlights */
.player-corner-box.active-turn {
  transform: scale(1.04);
}

.player-corner-box.red.active-turn {
  border-color: var(--red-main);
  box-shadow: 0 0 18px var(--red-glow), inset 0 0 8px rgba(225, 29, 72, 0.2);
}
.player-corner-box.green.active-turn {
  border-color: var(--green-main);
  box-shadow: 0 0 18px var(--green-glow), inset 0 0 8px rgba(5, 150, 105, 0.2);
}
.player-corner-box.yellow.active-turn {
  border-color: var(--yellow-main);
  box-shadow: 0 0 18px var(--yellow-glow), inset 0 0 8px rgba(217, 119, 6, 0.2);
}
.player-corner-box.blue.active-turn {
  border-color: var(--blue-main);
  box-shadow: 0 0 18px var(--blue-glow), inset 0 0 8px rgba(37, 99, 235, 0.2);
}

.player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.player-corner-box.red .player-avatar { background: linear-gradient(135deg, var(--red-dark), var(--red-main)); }
.player-corner-box.green .player-avatar { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); }
.player-corner-box.yellow .player-avatar { background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-main)); }
.player-corner-box.blue .player-avatar { background: linear-gradient(135deg, var(--blue-dark), var(--blue-main)); }

.player-meta {
  flex: 1;
  min-width: 0;
}

.player-name-text {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.player-score-text {
  font-size: 9.5px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.home-stars {
  color: var(--gold);
}

/* Corner Dice */
.corner-dice-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-dice {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  display: grid;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.player-corner-box.active-turn .corner-dice {
  animation: dicePulsePrompt 1.4s infinite alternate ease-in-out;
  cursor: pointer;
}

.player-corner-box.red.active-turn .corner-dice { border-color: var(--red-main); box-shadow: 0 0 12px var(--red-glow); }
.player-corner-box.green.active-turn .corner-dice { border-color: var(--green-main); box-shadow: 0 0 12px var(--green-glow); }
.player-corner-box.yellow.active-turn .corner-dice { border-color: var(--yellow-main); box-shadow: 0 0 12px var(--yellow-glow); }
.player-corner-box.blue.active-turn .corner-dice { border-color: var(--blue-main); box-shadow: 0 0 12px var(--blue-glow); }

@keyframes dicePulsePrompt {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.corner-dice.rolling {
  animation: diceTumble 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

@keyframes diceTumble {
  0% { transform: rotate(0deg) scale(0.9); }
  25% { transform: rotate(180deg) scale(1.15); }
  50% { transform: rotate(360deg) scale(0.85); }
  75% { transform: rotate(540deg) scale(1.1); }
  100% { transform: rotate(720deg) scale(1); }
}

/* Pips */
.pip {
  width: 6.5px;
  height: 6.5px;
  background: #0f172a;
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.corner-dice[data-val="1"] { display: flex; align-items: center; justify-content: center; }
.corner-dice[data-val="1"] .pip { width: 10px; height: 10px; background: #e11d48; }

.corner-dice[data-val="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.corner-dice[data-val="2"] .pip:nth-child(1) { grid-column: 1; grid-row: 1; }
.corner-dice[data-val="2"] .pip:nth-child(2) { grid-column: 2; grid-row: 2; }

.corner-dice[data-val="3"] { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.corner-dice[data-val="3"] .pip:nth-child(1) { grid-column: 1; grid-row: 1; }
.corner-dice[data-val="3"] .pip:nth-child(2) { grid-column: 2; grid-row: 2; }
.corner-dice[data-val="3"] .pip:nth-child(3) { grid-column: 3; grid-row: 3; }

.corner-dice[data-val="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.corner-dice[data-val="5"] { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.corner-dice[data-val="5"] .pip:nth-child(1) { grid-column: 1; grid-row: 1; }
.corner-dice[data-val="5"] .pip:nth-child(2) { grid-column: 3; grid-row: 1; }
.corner-dice[data-val="5"] .pip:nth-child(3) { grid-column: 2; grid-row: 2; }
.corner-dice[data-val="5"] .pip:nth-child(4) { grid-column: 1; grid-row: 3; }
.corner-dice[data-val="5"] .pip:nth-child(5) { grid-column: 3; grid-row: 3; }

.corner-dice[data-val="6"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }

/* ========================================================
   LUDO BOARD (15x15 Grid)
======================================================== */
.board-stage {
  flex: 1;
  min-height: 0; /* Allows stage to shrink flexibly, so players are never clipped! */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px 0;
}

.board-frame {
  background: radial-gradient(circle, #5b2207 0%, #290d02 100%);
  padding: 4px;
  border-radius: 16px;
  border: 3px solid #b45309;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(245, 158, 11, 0.25),
    inset 0 0 15px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: calc(100vh - 146px);
  max-height: calc(100dvh - 146px);
  width: auto;
  aspect-ratio: 1 / 1;
}

.ludo-board {
  width: 100%;
  height: 100%;
  max-width: min(92vw, calc(100vh - 154px), calc(100dvh - 154px), 380px);
  max-height: min(92vw, calc(100vh - 154px), calc(100dvh - 154px), 380px);
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  border: 2px solid #0f172a;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Yards */
.yard {
  border: 1.5px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.yard-red {
  grid-column: 1 / 7;
  grid-row: 1 / 7;
  background: linear-gradient(135deg, var(--red-light), var(--red-main));
}

.yard-green {
  grid-column: 10 / 16;
  grid-row: 1 / 7;
  background: linear-gradient(135deg, var(--green-light), var(--green-main));
}

.yard-yellow {
  grid-column: 10 / 16;
  grid-row: 10 / 16;
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow-main));
}

.yard-blue {
  grid-column: 1 / 7;
  grid-row: 10 / 16;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-main));
}

.yard-box {
  width: 74%;
  height: 74%;
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid #1e293b;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 8px;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.yard-nest {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.yard-red .yard-nest { border: 2.5px solid var(--red-main); background: #ffe4e6; }
.yard-green .yard-nest { border: 2.5px solid var(--green-main); background: #d1fae5; }
.yard-yellow .yard-nest { border: 2.5px solid var(--yellow-main); background: #fef9c3; }
.yard-blue .yard-nest { border: 2.5px solid var(--blue-main); background: #dbeafe; }

/* Center Triangles */
.center-home {
  grid-column: 7 / 10;
  grid-row: 7 / 10;
  position: relative;
  background: #0f172a;
  border: 1.5px solid #000;
  overflow: hidden;
}

.center-triangle {
  position: absolute;
  width: 100%;
  height: 100%;
}

.triangle-top {
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  background: var(--green-main);
}
.triangle-right {
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  background: var(--yellow-main);
}
.triangle-bottom {
  clip-path: polygon(100% 100%, 0 100%, 50% 50%);
  background: var(--blue-main);
}
.triangle-left {
  clip-path: polygon(0 100%, 0 0, 50% 50%);
  background: var(--red-main);
}

.center-crown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  z-index: 10;
}

/* Track Cells */
.cell {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cell.red-path { background: var(--red-main); }
.cell.green-path { background: var(--green-main); }
.cell.yellow-path { background: var(--yellow-main); }
.cell.blue-path { background: var(--blue-main); }

.cell.red-start { background: var(--red-main); }
.cell.green-start { background: var(--green-main); }
.cell.yellow-start { background: var(--yellow-main); }
.cell.blue-start { background: var(--blue-main); }

.cell.star::after {
  content: '★';
  color: #475569;
  font-size: 13px;
  line-height: 1;
}

.cell.red-start::after, .cell.green-start::after,
.cell.yellow-start::after, .cell.blue-start::after {
  content: '➔';
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.cell.green-start::after { transform: rotate(90deg); }
.cell.yellow-start::after { transform: rotate(180deg); }
.cell.blue-start::after { transform: rotate(270deg); }

/* ========================================================
   CRISP 3D TOKENS
======================================================== */
.token {
  width: 78%;
  height: 78%;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.token::after {
  content: '';
  width: 48%;
  height: 48%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.token.red {
  background: radial-gradient(circle at 35% 35%, #fb7185 0%, #e11d48 60%, #881337 100%);
  border: 1.5px solid #4c0519;
}
.token.green {
  background: radial-gradient(circle at 35% 35%, #34d399 0%, #059669 60%, #064e3b 100%);
  border: 1.5px solid #022c22;
}
.token.yellow {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #d97706 60%, #78350f 100%);
  border: 1.5px solid #451a03;
}
.token.blue {
  background: radial-gradient(circle at 35% 35%, #60a5fa 0%, #2563eb 60%, #1e3a8a 100%);
  border: 1.5px solid #172554;
}

.token.can-move {
  animation: tokenPulseHop 0.6s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--gold), 0 0 18px #fbbf24;
  z-index: 35;
}

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

.token-stack-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  font-size: 8.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
}

/* Standalone Installed App Mode: Hide Get App completely */
@media all and (display-mode: standalone) {
  #btn-install-app,
  .btn-install-app,
  #install-modal {
    display: none !important;
  }
}

/* ========================================================
   LANDSCAPE (HORIZONTAL / ROTATED) RESPONSIVENESS
   When user turns phone sideways or uses landscape screen:
   Left: Red (Top) & Blue (Bottom)
   Center: Full height Square Ludo Board
   Right: Green (Top) & Yellow (Bottom)
   Zero overflow, zero cutoff!
======================================================== */
@media (orientation: landscape), (min-aspect-ratio: 1.1/1) {
  body {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .top-nav {
    height: 36px !important;
    padding: 0 10px !important;
  }

  .brand-title {
    font-size: 13px !important;
  }

  .btn-mode-toggle {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  .btn-nav-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }

  .arena-container {
    display: grid !important;
    grid-template-areas:
      "red    board   green"
      "blue   board   yellow" !important;
    grid-template-columns: minmax(115px, 155px) auto minmax(115px, 155px) !important;
    grid-template-rows: 1fr 1fr !important;
    align-items: center !important;
    justify-content: center !important;
    height: calc(100vh - 38px) !important;
    height: calc(100dvh - 38px) !important;
    max-height: calc(100vh - 38px) !important;
    max-height: calc(100dvh - 38px) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 2px 8px !important;
    gap: 6px 12px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Flatten players-row so child corner boxes become grid items */
  .players-row {
    display: contents !important;
  }

  #box-red {
    grid-area: red !important;
    justify-self: end !important;
    align-self: end !important;
    width: 100% !important;
    max-width: 155px !important;
    margin: 0 !important;
  }

  #box-blue {
    grid-area: blue !important;
    justify-self: end !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 155px !important;
    margin: 0 !important;
  }

  #box-green {
    grid-area: green !important;
    justify-self: start !important;
    align-self: end !important;
    width: 100% !important;
    max-width: 155px !important;
    margin: 0 !important;
  }

  #box-yellow {
    grid-area: yellow !important;
    justify-self: start !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 155px !important;
    margin: 0 !important;
  }

  .board-stage {
    grid-area: board !important;
    height: calc(100vh - 42px) !important;
    height: calc(100dvh - 42px) !important;
    max-height: calc(100vh - 42px) !important;
    max-height: calc(100dvh - 42px) !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .board-frame {
    height: 100% !important;
    max-height: calc(100vh - 44px) !important;
    max-height: calc(100dvh - 44px) !important;
    width: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 3px !important;
    border-radius: 12px !important;
  }

  .ludo-board {
    height: 100% !important;
    width: auto !important;
    max-height: calc(100vh - 50px) !important;
    max-height: calc(100dvh - 50px) !important;
    aspect-ratio: 1 / 1 !important;
  }

  .player-corner-box {
    padding: 4px 6px !important;
    gap: 6px !important;
  }

  .player-name-text {
    font-size: 11px !important;
  }

  .player-score-text {
    font-size: 8.5px !important;
  }

  .corner-dice {
    width: 32px !important;
    height: 32px !important;
  }

  .player-avatar {
    font-size: 18px !important;
    width: 26px !important;
    height: 26px !important;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #131b2e;
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  width: min(90vw, 400px);
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}

/* Player Selection Cards */
.player-select-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.player-card-option {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-card-option:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.player-card-option.selected {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.25));
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
  transform: scale(1.02);
}

.player-card-option .option-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-card-option .option-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.player-card-option .option-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

.player-card-option .option-dots {
  margin-left: auto;
  font-size: 14px;
  display: flex;
  gap: 3px;
}

/* Game Mode Selection in Setup Modal */
.game-mode-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-mode-opt:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.game-mode-opt.selected {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.3)) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35) !important;
  transform: scale(1.02);
}
