/* Shared game visuals — flat vector, bold shapes, no gradients */

.fv-stage {
  --g-ink: #1a1a1c;
  --g-panel: #f0f0f3;
  --g-accent: #d92b2b;
  border-radius: 16px;
  padding: 16px;
  background: var(--g-panel);
  color: var(--g-ink);
}

.fv-stage[data-theme="north"] {
  --g-panel: #e8ecef;
  --g-accent: #c62828;
  --g-wood: #5c4033;
  --g-lake: #4a6fa5;
  --g-leaf: #2f6b3a;
}

.fv-stage[data-theme="egypt"] {
  --g-panel: #f3efe4;
  --g-accent: #c9a227;
  --g-stone: #8a7355;
  --g-ink: #2b2118;
}

.fv-stage[data-theme="gems"] {
  --g-panel: #eceaf3;
  --g-accent: #7b3fe4;
  --g-cyan: #2eb7c9;
  --g-rose: #d6458a;
}

.fv-stage[data-theme="jungle"] {
  --g-panel: #e6efe6;
  --g-accent: #2d6a4f;
  --g-mask: #b08968;
  --g-vine: #40916c;
}

.reels {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.reel {
  width: 72px;
  height: 92px;
  background: #fff;
  border: 3px solid var(--g-ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  overflow: hidden;
}

.reel.is-spinning {
  animation: reelblur 0.12s linear infinite;
}

@keyframes reelblur {
  0% { transform: translateY(0); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

.payline {
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--g-accent);
}

.sicbo-dice {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}

.die {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 3px solid var(--g-ink);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.bet-chip {
  min-height: 48px;
  border: 3px solid transparent;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
  color: var(--g-ink);
}

.bet-chip.is-selected {
  border-color: var(--g-accent);
  background: #fff5f5;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 16px;
}

.memory-card {
  aspect-ratio: 1;
  border: 3px solid var(--g-ink);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  font-family: "Fredoka", system-ui, sans-serif;
  padding: 0;
  color: var(--g-ink);
}

.memory-card.is-back {
  background: var(--g-accent);
  color: #fff;
}

.memory-card.is-matched {
  opacity: 0.45;
  cursor: default;
}

.memory-card:disabled {
  cursor: default;
}

.timer-bar {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.symbol {
  width: 48px;
  height: 48px;
  display: block;
}

@media (max-width: 520px) {
  .reel {
    width: 56px;
    height: 74px;
    font-size: 1.5rem;
  }
}
