/* ===== COMPONENTS ===== */
/* Header, buttons, scorecard, tiles, iceboxes, labels, bonus, progress */

/* ===== HEADER ===== */
.header {
  background: linear-gradient(180deg, var(--header-top) 0%, var(--header-bottom) 100%);
  padding: 1vh 16px 1.5vh;
  position: relative;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-btn {
  width: clamp(36px, 5.5vh, 56px);
  height: clamp(36px, 5.5vh, 56px);
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 35%, #ffd970, var(--tile-orange));
  box-shadow: 0 4px 0 var(--tile-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.1s;
}

.header-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--tile-shadow);
}

.header-btn svg {
  width: 50%;
  height: 50%;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 0 var(--text-shadow);
}

.player-score {
  font-size: clamp(22px, 4vh, 44px);
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
}

.player-name {
  font-size: clamp(14px, 2.5vh, 26px);
  font-weight: 800;
  opacity: 0.95;
  margin-top: -4px;
}

/* Challenge mode header styling */
.player-name.challenge-mode {
  position: relative;
  color: #fbbf24;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.challenge-bolt {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 4px;
  width: clamp(14px, 2.5vh, 24px);
  height: clamp(14px, 2.5vh, 24px);
  fill: #f59e0b;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ===== SCOREBOARD ===== */
.scoreboard {
  flex: 1;
  padding: 1vh 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.score-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px;
  border-radius: 8px;
  flex: 1;
  align-items: center;
  min-height: 0;
}

.score-row:nth-child(odd) {
  background: rgba(0,0,0,0.05);
}

.score-row:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

.score-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-cell.minor {
  justify-content: flex-start;
}

.score-cell.major {
  justify-content: flex-start;
}

.score-cell.major .label {
  width: clamp(45px, 8vw, 80px);
  flex-shrink: 0;
}

/* Tiles (orange buttons with dice/icons) */
.tile {
  width: clamp(44px, 7vh, 70px);
  height: clamp(44px, 7vh, 70px);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--tile-yellow) 0%, var(--tile-orange) 100%);
  box-shadow: 0 4px 0 var(--tile-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--tile-shadow);
}

.tile:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--tile-shadow);
}

.tile-text {
  color: #fff;
  font-weight: 900;
  font-size: clamp(18px, 4vh, 30px);
  text-shadow: 0 2px 0 var(--text-shadow);
  line-height: 1;
}

.tile-text.small-label {
  font-size: clamp(8px, 1.4vh, 12px);
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}

.tile-text.jatzee-text {
  font-size: 18px;
}

.tile-icon {
  width: 55%;
  height: 55%;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* Ice boxes (score display) */
.icebox {
  width: clamp(44px, 7vh, 70px);
  height: clamp(44px, 7vh, 70px);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--ice-light) 0%, var(--ice-dark) 100%);
  box-shadow: inset 0 3px 0 var(--ice-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(20px, 4vh, 32px);
  font-weight: 900;
  color: rgba(0,60,80,0.25);
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
}

.icebox.committed {
  color: rgba(0,60,80,0.7);
}

.icebox.just-scored {
  animation: scoreCommit 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scoreCommit {
  0% { transform: scale(1); box-shadow: inset 0 3px 0 var(--ice-shadow); }
  25% { transform: scale(1.2); box-shadow: inset 0 3px 0 var(--ice-shadow), 0 0 30px rgba(78, 205, 196, 0.9), 0 0 60px rgba(78, 205, 196, 0.5); }
  50% { transform: scale(1.05); box-shadow: inset 0 3px 0 var(--ice-shadow), 0 0 20px rgba(78, 205, 196, 0.5); }
  100% { transform: scale(1); box-shadow: inset 0 3px 0 var(--ice-shadow); }
}

.icebox.potential {
  color: rgba(0,60,80,0.25);
}

.icebox.selected {
  color: rgba(0,60,80,0.7);
  background: linear-gradient(180deg, #a0e8f0 0%, #70d8e8 100%);
  box-shadow: inset 0 3px 0 var(--ice-shadow), 0 0 0 3px var(--tile-orange);
}

.yahtzee-bonus-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(180deg, #ff6b6b 0%, #e53935 100%);
  color: #fff;
  font-size: clamp(8px, 1.4vh, 12px);
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.2);
  line-height: 1;
  animation: bonusBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bonusBadgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.icebox:hover:not(.committed) {
  transform: scale(1.02);
  background: linear-gradient(180deg, #c8f8ff 0%, #98e8f4 100%);
}

/* Labels */
.label {
  font-size: clamp(9px, 1.8vh, 20px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 var(--text-shadow);
  text-transform: lowercase;
  line-height: 1.1;
}

/* Hide labels in vs-mode - icons are self-explanatory and we need room for bot scores */
.vs-mode .label {
  display: none;
}

/* Bot iceboxes - hidden by default (solo mode) */
.bot-icebox {
  display: none;
}

/* Bot progress circle - hidden by default */
#botProgressCircle {
  display: none;
}

/* Show bot elements in vs-mode */
.vs-mode .bot-icebox {
  display: flex;
  background: linear-gradient(180deg, #ffb8b8 0%, #ff9090 100%);
  border: 2px solid #e07070;
  cursor: default;
  pointer-events: none;
}

.vs-mode .bot-icebox.committed {
  background: linear-gradient(180deg, #ff9090 0%, #e07070 100%);
}

.vs-mode .bot-icebox.just-scored {
  animation: botScoreCommit 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes botScoreCommit {
  0% { transform: scale(1); box-shadow: none; }
  25% { transform: scale(1.2); box-shadow: 0 0 30px rgba(255, 107, 107, 0.9), 0 0 60px rgba(255, 107, 107, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
  100% { transform: scale(1); box-shadow: none; }
}

.vs-mode #botProgressCircle {
  display: flex;
}

/* Smaller elements in vs-mode on small screens to fit bot scores */
@media (max-width: 420px) {
  .vs-mode .tile {
    width: clamp(38px, 6vh, 58px);
    height: clamp(38px, 6vh, 58px);
  }

  .vs-mode .icebox {
    width: clamp(38px, 6vh, 58px);
    height: clamp(38px, 6vh, 58px);
    font-size: clamp(17px, 3.2vh, 26px);
  }

  .vs-mode .score-row {
    gap: 4px;
    padding: 0 4px;
  }

  .vs-mode .score-cell {
    gap: 3px;
  }

  .vs-mode .tile-text {
    font-size: 11px !important;
  }

  .vs-mode .tile-text.small-label {
    font-size: 8px !important;
  }

  .vs-mode .tile-text.jatzee-text {
    font-size: 9px !important;
  }

  /* Smaller bonus section elements - match vs-mode tile/icebox sizes */
  .vs-mode .bonus-box {
    width: clamp(38px, 6vh, 58px);
    height: clamp(38px, 6vh, 58px);
  }

  .vs-mode .progress-circle {
    width: clamp(38px, 6vh, 58px);
    height: clamp(38px, 6vh, 58px);
  }

  .vs-mode .bonus-label {
    font-size: 6px;
  }

  .vs-mode .bonus-value {
    font-size: 12px;
  }

  .vs-mode .progress-current {
    font-size: clamp(12px, 2.2vh, 18px);
  }

  .vs-mode .progress-total {
    font-size: clamp(7px, 1.2vh, 10px);
  }

  .vs-mode .bonus-side {
    gap: 3px;
  }

  .vs-mode .bottom-section {
    gap: 4px;
    padding: 0 4px;
  }

  .vs-mode .chance-cell {
    gap: 3px;
  }

  /* Smaller tile text labels on small screens (all modes) */
  .tile-text {
    font-size: 13px !important;
  }

  .tile-text.small-label {
    font-size: 10px !important;
  }

  .tile-text.jatzee-text {
    font-size: 11px !important;
  }
}

/* ===== BOTTOM SECTION (Bonus + Circle + Chance) ===== */
.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
  flex-shrink: 0;
  align-items: center;
  min-height: clamp(52px, 8vh, 80px);
}

.bonus-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonus-box {
  width: clamp(44px, 7vh, 70px);
  height: clamp(44px, 7vh, 70px);
  background: rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,0.08);
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bonus-label {
  font-size: clamp(7px, 1.2vh, 11px);
  font-weight: 900;
  color: rgba(0,50,70,0.5);
  text-transform: uppercase;
  line-height: 1.15;
}

.bonus-value {
  font-size: clamp(16px, 3vh, 28px);
  font-weight: 900;
  color: rgba(200,255,255,0.9);
  text-shadow: 0 2px 0 var(--text-shadow);
  line-height: 1;
  margin-top: 1px;
}

.progress-circle {
  width: clamp(44px, 7vh, 70px);
  height: clamp(44px, 7vh, 70px);
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  border: 3px solid rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.progress-circle.achieved {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: #16a34a;
  animation: bonusPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bonusPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.progress-circle.achieved .progress-current,
.progress-circle.achieved .progress-total {
  display: none;
}

.progress-circle .bonus-check {
  display: none;
}

.progress-circle.achieved .bonus-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bonus-check-icon {
  font-size: clamp(16px, 2.5vh, 24px);
  line-height: 1;
}

.bonus-check-value {
  font-size: clamp(10px, 1.6vh, 14px);
  font-weight: 900;
  line-height: 1;
}

.progress-current {
  font-size: clamp(14px, 2.5vh, 24px);
  font-weight: 900;
  color: rgba(0,60,80,0.4);
  line-height: 1;
}

.progress-total {
  font-size: clamp(10px, 1.6vh, 16px);
  font-weight: 800;
  color: rgba(0,60,80,0.35);
  margin-top: -2px;
}

.chance-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== DICE ROW ===== */
.dice-section {
  padding: 1.5vh 12px 2vh;
  flex-shrink: 0;
}

.dice-placeholder-row {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
}

.dice-placeholder {
  width: clamp(46px, 7vh, 75px);
  height: clamp(46px, 7vh, 75px);
  background: rgba(0,50,70,0.12);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.dice-row {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
}

/* Dice exit animation - roll/tumble away */
.die-container.dice-exit {
  animation: diceExit 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

@keyframes diceExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
  }
}

/* ===== ACTION BUTTONS ===== */
.actions-section {
  padding: 0.5vh 12px 2.5vh;
  flex-shrink: 0;
}

.actions-row {
  display: flex;
  gap: 12px;
}

.btn-roll {
  flex: 1;
  height: clamp(44px, 7vh, 90px);
  border-radius: 14px;
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8f0 100%);
  box-shadow: 0 6px 0 var(--btn-shadow);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(20px, 4vh, 46px);
  font-weight: 900;
  color: var(--tile-orange);
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-roll:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 var(--btn-shadow);
}

.btn-roll:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--btn-shadow);
}

.btn-roll:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.roll-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(28px, 4.5vh, 48px);
  height: clamp(28px, 4.5vh, 48px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd970, var(--rolls-badge));
  box-shadow: 0 4px 0 var(--tile-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 2.5vh, 26px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.btn-play {
  flex: 1;
  height: clamp(44px, 7vh, 90px);
  border-radius: 14px;
  border: none;
  background: linear-gradient(180deg, var(--btn-purple) 0%, var(--btn-purple-dark) 100%);
  box-shadow: 0 6px 0 rgba(80,50,90,0.4);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(20px, 4vh, 46px);
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-play:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 rgba(80,50,90,0.4);
}

.btn-play:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(80,50,90,0.4);
}

.btn-play:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-play.active {
  color: #fff;
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 6px 0 #5b21b6;
}

/* ===== CONFIRMATION MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.visible .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 3px 0 #b91c1c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, box-shadow 0.1s;
}

.modal-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #b91c1c;
}

.modal-close-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b91c1c;
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.modal-title {
  margin: 0 0 8px 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.modal-message {
  margin: 0 0 24px 0;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

.modal-btn:active {
  transform: translateY(2px);
}

.modal-btn-cancel {
  background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 4px 0 #374151;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.modal-btn-cancel:hover {
  box-shadow: 0 5px 0 #374151;
}

.modal-btn-cancel:active {
  box-shadow: 0 2px 0 #374151;
}

.modal-btn-confirm {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 0 #b91c1c;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.modal-btn-confirm:hover {
  box-shadow: 0 5px 0 #b91c1c;
}

.modal-btn-confirm:active {
  box-shadow: 0 2px 0 #b91c1c;
}

/* Share button in modals */
.modal-btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 0 #3730a3;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.modal-btn-share svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-btn-share:hover {
  box-shadow: 0 5px 0 #3730a3;
}

.modal-btn-share:active {
  box-shadow: 0 2px 0 #3730a3;
}

/* Daily completed modal */
.modal-content.daily-completed {
  text-align: center;
}

.modal-title.daily-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-title.daily-title svg {
  width: 28px;
  height: 28px;
  fill: #f59e0b;
}

.daily-score-display {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(180deg, var(--tile-yellow) 0%, var(--tile-orange) 100%);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--tile-shadow);
}

.daily-your-score {
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 3px 0 var(--text-shadow);
}

.daily-countdown-text {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

#dailyCountdown {
  font-family: monospace;
  font-size: clamp(16px, 4vw, 18px);
  color: #f59e0b;
  font-weight: 800;
}

/* Daily Intro Modal */
.modal-content.daily-intro {
  text-align: center;
  max-width: 340px;
}

.daily-intro-content {
  margin: 16px 0;
}

.daily-intro-highlight {
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 900;
  color: #f59e0b;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.daily-intro-text {
  font-size: clamp(14px, 3.5vw, 16px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  line-height: 1.4;
}

.daily-intro-text:last-child {
  margin-bottom: 0;
}

.daily-intro-share-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
  padding: 14px 20px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 12px;
  box-shadow: 0 4px 0 #3730a3;
}

.daily-intro-share-cta svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex-shrink: 0;
}

.daily-intro-share-cta span {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  color: #fff;
}

/* Daily mode header styling */
.header.daily-mode .solo-display .player-name {
  color: #fbbf24;
}

.player-name.daily-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.player-name.daily-mode svg,
.daily-icon {
  width: clamp(14px, 2.5vh, 20px);
  height: clamp(14px, 2.5vh, 20px);
  fill: #f59e0b;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ===== DROPDOWN MENU ===== */
.menu-container {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.dropdown-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.15);
}

.dropdown-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.8);
}

.dropdown-label {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  text-transform: lowercase;
}
