/* style.css */
:root {
  --primary-color: #7c4dff;
  --secondary-color: #bb86fc;
  --bg-color: #0b0c10;
  --panel-bg: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-color: #ffffff;
  --text-muted: #8b949e;
  --danger-color: #f85149;
  --success-color: #39d353;
  --warning-color: #ff9f1c;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.57);
}

body, html {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(3vh + env(safe-area-inset-top)) 5vw calc(3vh + env(safe-area-inset-bottom)) 5vw;
  background: radial-gradient(circle at center, #1b1c2b 0%, #07080c 100%);
  height: 100%;
  box-sizing: border-box;
}

/* View Panels */
.view-panel {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

/* --- LOBBY VIEW --- */
#lobbyView {
  justify-content: center;
  gap: 30px;
}

.lobby-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input, .join-row input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 48px;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus, .join-row input:focus {
  border-color: var(--primary-color);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 5px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 10px;
}

.join-row {
  display: flex;
  gap: 10px;
}

.join-row input {
  flex: 1;
  text-align: center;
  letter-spacing: 2px;
  font-weight: bold;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 10px;
}

.title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-color);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(124, 77, 255, 0.5);
  margin: 0;
  background: linear-gradient(to right, #ffffff, #c9b3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0 0;
  font-weight: 300;
  letter-spacing: 1px;
}

/* --- GAME VIEW --- */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.room-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-code-badge {
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #c9b3ff;
}

.room-code-badge strong {
  letter-spacing: 1px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

.btn-leave {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  color: var(--danger-color);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  height: auto;
}

/* Seating Area & Table */
.table-area {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  position: relative;
}

.table-container {
  position: relative;
  width: 190px;
  height: 190px;
}

.table-disk {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #202231 0%, #0d0e15 100%);
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  z-index: 5;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

#tableStatus {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.table-timer {
  font-size: 24px;
  font-weight: 800;
  color: var(--warning-color);
  margin-top: 4px;
  text-shadow: 0 0 8px rgba(255, 159, 28, 0.4);
}

/* Seats Positioning around table (8 Seats) */
.seat {
  position: absolute;
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
}

.seat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.seat-name {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 55px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

#seat-0 { top: 0%; left: 50%; transform: translate(-50%, -50%); }
#seat-1 { top: 14.6%; left: 85.4%; transform: translate(-50%, -50%); }
#seat-2 { top: 50%; left: 100%; transform: translate(-50%, -50%); }
#seat-3 { top: 85.4%; left: 85.4%; transform: translate(-50%, -50%); }
#seat-4 { top: 100%; left: 50%; transform: translate(-50%, -50%); }
#seat-5 { top: 85.4%; left: 14.6%; transform: translate(-50%, -50%); }
#seat-6 { top: 50%; left: 0%; transform: translate(-50%, -50%); }
#seat-7 { top: 14.6%; left: 14.6%; transform: translate(-50%, -50%); }

/* Occupied Seats */
.seat.occupied .seat-avatar {
  border-color: var(--primary-color);
  color: #fff;
  background: rgba(124, 77, 255, 0.2);
}

/* Active Turn glow */
.seat.active-turn .seat-avatar {
  border-color: var(--warning-color);
  box-shadow: 0 0 12px var(--warning-color);
  animation: glow-pulse 1s infinite alternate;
  color: var(--warning-color);
}

@keyframes glow-pulse {
  from { box-shadow: 0 0 4px var(--warning-color); }
  to { box-shadow: 0 0 14px var(--warning-color); }
}

/* Rolled checkmark */
.seat.has-rolled .seat-avatar {
  border-color: var(--success-color);
  box-shadow: 0 0 8px rgba(57, 211, 83, 0.3);
}

.seat.has-rolled .seat-avatar::after {
  content: '✓';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 13px;
  height: 13px;
  background: var(--success-color);
  color: #000;
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* Offline state */
.seat.offline {
  opacity: 0.4;
}

/* Owner crown indicator */
.seat.is-owner::before {
  content: '👑';
  position: absolute;
  top: -14px;
  font-size: 11px;
  z-index: 10;
  animation: bounce 2s infinite;
}

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

/* Kick Seat button */
.btn-kick {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger-color);
  color: #fff;
  border: 1.5px solid var(--bg-color);
  font-size: 8px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  cursor: pointer;
}

/* Settings Modal Content */
.settings-content {
  max-width: 320px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.settings-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.settings-select:focus {
  border-color: var(--primary-color);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: .3s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider::before {
  transform: translateX(14px);
}

.label-text {
  font-size: 12px;
  color: var(--text-color);
  font-weight: 500;
}

/* Timeout Selector */
.timeout-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.timeout-selector select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  outline: none;
  font-family: inherit;
}

/* Spectator Bar */
.spectator-alert {
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.2);
  color: var(--warning-color);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 8px;
  animation: pulse-border 1.5s infinite alternate;
}

@keyframes pulse-border {
  from { border-color: rgba(255, 159, 28, 0.2); }
  to { border-color: rgba(255, 159, 28, 0.6); }
}

/* Game Cup Area */
.game-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dice-cup {
  position: relative;
  width: 76vw;
  height: 52vw;
  max-width: 320px;
  max-height: 220px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Lid Styling */
.cup-lid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: linear-gradient(135deg, #1f2130 0%, #11121b 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 19px;
  box-shadow: inset 0 1.5px 5px rgba(255, 255, 255, 0.06), 0 5px 12px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  box-sizing: border-box;
}

.cup-lid.opened {
  transform: translateY(-105%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.cup-lid.closed {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cup-handle {
  width: 40px;
  height: 14px;
  background: linear-gradient(to right, #3f4257, #726875);
  border-radius: 7px 7px 0 0;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cup-pattern {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, rgba(124, 77, 255, 0) 70%);
  border: 2px solid var(--primary-color);
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 0 12px rgba(124, 77, 255, 0.25);
}

.cup-pattern::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
}

.cup-status-text {
  font-size: 14px;
  color: #d0d0d0;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Dice Tray */
.dice-tray {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  gap: 12px;
  cursor: pointer;
}

/* Dice styling */
.dice {
  position: relative;
  width: 15vw;
  height: 15vw;
  max-width: 56px;
  max-height: 56px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 
              inset 0 -3px 4px rgba(0, 0, 0, 0.15),
              inset 0 2px 2px rgba(255, 255, 255, 0.8);
  transition: filter 0.3s ease;
  box-sizing: border-box;
}

.dice.blurred {
  filter: blur(8px);
  opacity: 0.08;
}

/* Dots and coordinates */
.dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #2b2d42;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
}

.dot.top-left { top: 22%; left: 22%; }
.dot.top-right { top: 22%; left: 78%; }
.dot.middle-left { top: 50%; left: 22%; }
.dot.middle-right { top: 50%; left: 78%; }
.dot.bottom-left { top: 78%; left: 22%; }
.dot.bottom-right { top: 78%; left: 78%; }
.dot.center { top: 50%; left: 50%; }

.dot.red {
  background-color: #e63946;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 2px rgba(230, 57, 70, 0.5);
}

.dice-1 .dot.center {
  width: 15px;
  height: 15px;
}

/* Controls Panel */
.controls {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.secondary-actions {
  margin-top: -2px;
}

.secondary-actions .btn {
  font-size: 13px;
  height: 42px;
}

.btn {
  height: 46px;
  border-radius: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-sizing: border-box;
  border: none;
  outline: none;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.97);
}

/* Lock Button */
.btn-lock {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  height: 38px;
  font-size: 13px;
}

.btn-lock.locked {
  border-color: rgba(248, 81, 73, 0.3);
  background: rgba(248, 81, 73, 0.08);
  color: var(--danger-color);
}

.btn-lock.unlocked {
  border-color: rgba(57, 211, 83, 0.3);
  background: rgba(57, 211, 83, 0.06);
  color: var(--success-color);
}

.icon-lock {
  width: 11px;
  height: 9px;
  border-radius: 2px;
  position: relative;
}

.icon-lock.locked-icon {
  background: var(--danger-color);
}
.icon-lock.locked-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1.5px;
  width: 6px;
  height: 6px;
  border: 1.8px solid var(--danger-color);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.icon-lock.unlocked-icon {
  background: var(--success-color);
}
.icon-lock.unlocked-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: -1px;
  width: 6px;
  height: 6px;
  border: 1.8px solid var(--success-color);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  transform: rotate(-45deg);
  transform-origin: bottom left;
}

/* Action Buttons Custom colors */
.btn-cover, .btn-reveal-cups, .btn-standup {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cover.btn-reveal {
  border-color: rgba(187, 134, 252, 0.4);
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.1);
}

.btn-cover.btn-close {
  border-color: var(--border-color);
}

.btn-roll {
  flex: 1.3;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.btn-roll:disabled {
  background: #1f212d;
  color: var(--text-muted);
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-reveal-cups {
  background: rgba(255, 159, 28, 0.12);
  border: 1px solid rgba(255, 159, 28, 0.3);
  color: var(--warning-color);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.1);
}

.btn-start-game {
  background: rgba(57, 211, 83, 0.12);
  border: 1px solid rgba(57, 211, 83, 0.3);
  color: var(--success-color);
  flex: 1;
}

.tips {
  text-align: center;
  font-size: 11px;
  color: #4a4e69;
  cursor: pointer;
  text-decoration: underline;
}

/* Modal Windows styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #151622 0%, #0d0e14 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 420px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qr-content {
  align-items: center;
  text-align: center;
}

#qrcode {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  display: inline-block;
  margin: 10px 0;
}

#qrcode img {
  display: block;
}

.qr-url-text {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
  margin: 5px 0;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* REVEAL SCREEN MODAL CONTENT */
.reveal-content {
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.reveal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.reveal-header h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 800;
}

.wildcard-toggle {
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

/* Stats Summary */
.global-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--border-color);
}

.sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sum-dice {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 4px;
  position: relative;
}

/* Mini dots inside stats dice */
.sum-dice .dot {
  width: 4.5px;
  height: 4.5px;
}
.sum-dice .dot.red {
  background-color: #e63946;
}
.sum-dice.dice-1 .dot.center {
  width: 8px;
  height: 8px;
}

.sum-count {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary-color);
}

.sum-count.highlight {
  color: var(--warning-color);
  text-shadow: 0 0 6px rgba(255, 159, 28, 0.3);
}

/* Grid showing other players' cup details */
.players-dice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 5px 0;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 4px;
}

.player-reveal-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-seat-num {
  font-size: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.card-nickname {
  font-size: 14px;
  font-weight: 600;
}

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

.card-status.offline-lbl {
  color: var(--danger-color);
}

.card-dice-row {
  display: flex;
  gap: 8px;
}

/* Mini Dice representation for list */
.dice-mini {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dice-mini.not-rolled {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-color);
  box-shadow: none;
}

.dice-mini.not-rolled::after {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: bold;
}

.dice-mini .dot {
  width: 5px;
  height: 5px;
}
.dice-mini.dice-1 .dot.center {
  width: 9px;
  height: 9px;
}

.reveal-actions {
  display: flex;
  gap: 12px;
}

.reveal-actions button {
  flex: 1;
}

/* Shaking animations classes */
.shaking-tray, .shaking-lid {
  animation: shake 0.6s ease-in-out infinite;
}

@keyframes shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-4px, -3px) rotate(-2deg); }
  20% { transform: translate(3px, 4px) rotate(3deg); }
  30% { transform: translate(-3px, 2px) rotate(-1deg); }
  40% { transform: translate(4px, -3px) rotate(2deg); }
  50% { transform: translate(-3px, 3px) rotate(-3deg); }
  60% { transform: translate(3px, -2px) rotate(1deg); }
  70% { transform: translate(-4px, 2px) rotate(-2deg); }
  80% { transform: translate(3px, -3px) rotate(3deg); }
  90% { transform: translate(-2px, 4px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.cup-lid.dragging {
  transition: none !important;
}
