body {
  background: radial-gradient(ellipse at 50% 20%, #1d5c3f 0%, #143f2c 45%, #0b241a 100%);
  min-height: 100vh;
  color: #f3ecd8;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1rem 1rem;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(11, 36, 26, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header h1 {
  font-size: 1.1rem;
  margin: 0;
  color: #d4af37;
  letter-spacing: 0.08em;
}

.phase-hint {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 0.5rem;
  color: #f3ecd8;
  text-align: center;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.game-card {
  background: linear-gradient(160deg, #faf5e8 0%, #efe6cd 100%);
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(120, 95, 40, 0.15);
  color: #2b2117;
  position: relative;
}

.card-back {
  background:
    radial-gradient(circle at 25% 25%, rgba(120, 30, 30, 0.18) 0 4px, transparent 5px),
    radial-gradient(circle at 75% 75%, rgba(120, 30, 30, 0.18) 0 4px, transparent 5px),
    linear-gradient(160deg, #c9a227 0%, #a97e1c 60%, #8a6215 100%);
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(212, 175, 55, 0.5);
}

.mission-back-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff8e7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.card-flip {
  perspective: 900px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 400ms ease;
}

.card-flip.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-face-front {
  background: linear-gradient(160deg, #faf5e8 0%, #efe6cd 100%);
  color: #2b2117;
  box-shadow: inset 0 0 0 1px rgba(120, 95, 40, 0.15);
  transform: rotateY(180deg);
}

.card-face-back {
  background:
    radial-gradient(circle at 25% 25%, rgba(120, 30, 30, 0.18) 0 4px, transparent 5px),
    radial-gradient(circle at 75% 75%, rgba(120, 30, 30, 0.18) 0 4px, transparent 5px),
    linear-gradient(160deg, #c9a227 0%, #a97e1c 60%, #8a6215 100%);
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.5);
}

.card-seal-pass {
  background: radial-gradient(circle, #2c5f9e 0%, #1d3f6e 100%);
  color: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.card-seal-fail {
  background: radial-gradient(circle, #a93226 0%, #7b241c 100%);
  color: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.card-current {
  box-shadow: 0 0 0 2px #d4af37, 0 0 16px rgba(212, 175, 55, 0.6);
}

.card-wobble {
  animation: wobble 2.5s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

.seat-card {
  background: linear-gradient(160deg, #faf5e8 0%, #efe6cd 100%);
  color: #2b2117;
  border-radius: 0.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(120, 95, 40, 0.15);
  border: none;
  padding: 0.35rem 0.7rem;
  font-size: 0.9rem;
}

.seat-card.seat-selected {
  background: linear-gradient(160deg, #5b8fd9 0%, #2c5f9e 100%);
  color: #fff;
  box-shadow: 0 0 0 3px #9cc2f0, 0 3px 10px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.seat-card.seat-leader::before {
  content: "👑 ";
}

.seat-card.seat-on-team {
  box-shadow: 0 0 0 2px #17a2b8, 0 3px 8px rgba(0, 0, 0, 0.4);
}

.plaque-card {
  background: linear-gradient(160deg, #d4af37 0%, #b08d1e 60%, #8a6215 100%);
  color: #1d1405;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 235, 180, 0.4);
  padding: 0.75rem 1.5rem;
  display: inline-block;
  font-weight: bold;
  letter-spacing: 0.25em;
}

.choice-card {
  background:
    repeating-linear-gradient(45deg, rgba(120, 30, 30, 0.55) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, rgba(120, 30, 30, 0.55) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #c9a227 0%, #a97e1c 60%, #8a6215 100%);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(212, 175, 55, 0.5);
  padding: 1.5rem 1rem;
  width: 45%;
  max-width: 10rem;
  min-height: 6rem;
  font-size: 1rem;
}

.choice-card:active {
  transform: translateY(2px);
}

.mission-slot {
  height: 4.5rem;
}

.role-card-large {
  width: 60%;
  max-width: 14rem;
  aspect-ratio: 5 / 7;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.role-face-role {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.5rem;
}

.role-face-role.role-resistance { color: #2c5f9e; }
.role-face-role.role-spy { color: #a93226; }

.role-friends {
  font-size: 0.8rem;
  text-align: center;
  padding: 0 0.5rem 0.5rem;
  color: #5a4a33;
}

.btn-felt {
  background: linear-gradient(160deg, #c9a227 0%, #a97e1c 100%);
  border: 1px solid #8a6215;
  color: #1d1405;
  font-weight: 600;
}

.btn-felt:hover {
  background: linear-gradient(160deg, #d4af37 0%, #b08d1e 100%);
  color: #1d1405;
}

.choice-card-sabotage {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.25) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #a93226 0%, #7b241c 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(169, 50, 38, 0.7);
}
