:root {
  color-scheme: light dark;
  --bg: #0f5132;
  --card-bg: #ffffff;
  --card-fg: #111111;
  --text: #f5f5f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 68px;
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--card-fg);
  font-weight: 700;
  margin: 4px;
}

.card--back {
  background: repeating-linear-gradient(45deg, #274c77, #274c77 6px, #1b3a5c 6px, #1b3a5c 12px);
  color: transparent;
}

.actions button {
  padding: 0.6rem 1rem;
  margin: 4px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.error { color: #ffb4b4; }

.version-footer {
  font-size: 0.7rem;
  opacity: 0.6;
  text-align: center;
  margin-top: 1rem;
}

.timer {
  font-weight: 700;
}

.timer--warn {
  color: #ffd166;
}

.timer--urgent {
  color: #ff6b6b;
}

.player--loser {
  outline: 3px solid #ff6b6b;
  border-radius: 8px;
  padding: 4px;
}

.player--round-winner {
  outline: 3px solid #ffd166;
  border-radius: 8px;
  padding: 4px;
}

.score-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 2px;
}

.gameover-winner {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffd166;
}

.card svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card--selected {
  outline: 3px solid #4dabf7;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal {
  background: #fff;
  color: #111;
  padding: 1rem;
  border-radius: 8px;
  max-width: 320px;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.skip-confirm-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.mute-toggle {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}
