/* ===== PokéRoyale styles =====
 * Casino felt + Pokémon TCG. Dark forest green table, warm gold brass rails,
 * ruby/jade/sky/volt suit accents (= fire/grass/water/electric Pokémon types).
 */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: 0.005em; }

::selection { background: #ffd700; color: #0a0a1a; }

/* Felt-textured backdrop with brass-rail vignette */
.royale-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a1a 0%, #050510 100%);
  background-attachment: fixed;
}

/* ============================================================
 * LOGO SPADE — large ♠ as the brand mark next to wordmark
 * ============================================================ */
.logo-spade {
  display: inline-block;
  font-size: 28px;
  line-height: 1;
  color: #ffd700;
  text-shadow: 0 0 0 2px #000, 2px 2px 0 #c79400, 3px 3px 0 #000;
  filter: drop-shadow(0 2px 0 #000);
}

/* ============================================================
 * SHINY SPRITES (Showdown animated transparent GIFs)
 * ============================================================ */
.shiny-sprite {
  display: inline-block;
  image-rendering: pixelated;
  vertical-align: middle;
  object-fit: contain;
  animation: shinyBob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}
.shiny-sprite.sm { width: 32px; height: 32px; }
.shiny-sprite.md { width: 48px; height: 48px; }
.shiny-sprite.lg { width: 72px; height: 72px; }
.shiny-sprite.delay-1 { animation-delay: 0.4s; }
.shiny-sprite.delay-2 { animation-delay: 0.8s; }
@keyframes shinyBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ============================================================
 * BUTTONS — casino chip + brass rail aesthetic
 *
 * .royale-btn-gold   primary / call to action
 * .royale-btn-ruby   destructive / fold / BUY
 * .royale-btn-jade   raise / win
 * .royale-btn-ghost  secondary / neutral
 * Modifier: .royale-btn-lg for hero CTAs
 * ============================================================ */
.royale-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #000;
  cursor: pointer;
  user-select: none;
  transition: transform 60ms ease, filter 60ms ease;
  white-space: nowrap;
  position: relative;
}
.royale-btn:hover { filter: brightness(1.08); }
.royale-btn:active { transform: translate(1px, 1px); }
.royale-btn-lg { padding: 10px 18px; font-size: 13px; }
.royale-btn-gold {
  background: linear-gradient(180deg, #ffe066 0%, #ffd700 50%, #c79400 100%);
  color: #1a0f00;
  box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.royale-btn-ruby {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 50%, #8b1414 100%);
  color: #fff8e0;
  box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.royale-btn-jade {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 50%, #0a5a2a 100%);
  color: #fff8e0;
  box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.royale-btn-ghost {
  background: transparent;
  color: #ffd700;
  border-color: #a87f3a;
  box-shadow: 0 3px 0 #000;
}
.royale-btn-ghost:hover { background: rgba(255, 215, 0, 0.08); }
.royale-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* ============================================================
 * ROYALE-TAG — small gold pill section markers
 * ============================================================ */
.royale-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #ffe066 0%, #c79400 100%);
  color: #1a0f00;
  border: 2px solid #000;
  padding: 3px 8px 2px;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #000;
  white-space: nowrap;
}

/* LIVE pulse */
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-pulse { animation: live-pulse 1.4s ease-in-out infinite; }
.live-pill {
  background: #dc2626;
  color: #fff8e0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 7px 2px;
  border: 2px solid #000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 #000;
}

.tabular-nums { font-variant-numeric: tabular-nums; }

/* ============================================================
 * POKER FELT — the table itself
 *
 * Outer wood rail (border1 brass) wraps an inner dark-felt oval.
 * Three seat rows: opponent (top), community (middle), you (bottom).
 * On mobile collapses to a flat vertical stack but keeps the felt.
 * ============================================================ */

.royale-felt-wrap {
  padding: 20px;
  background:
    radial-gradient(ellipse at center, #1a0f00 0%, #050510 100%);
}
.royale-felt {
  background:
    radial-gradient(ellipse at center, #0e6238 0%, #0a4d2a 40%, #063a1f 100%);
  border: 6px solid #a87f3a;
  border-radius: 100px / 60px;
  padding: 24px 18px;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px #5c3e15,
    0 0 0 4px #000,
    0 8px 32px rgba(0, 0, 0, 0.7);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
}

.royale-seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.seat-top    { flex-direction: row-reverse; }
.seat-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #5c3e15;
  padding: 6px 10px;
  box-shadow: 0 2px 0 #000;
  min-width: 0;
}
.seat-cards {
  display: flex;
  gap: 6px;
}

.royale-community {
  text-align: center;
  padding: 8px;
  border-radius: 60px / 30px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 215, 0, 0.25);
}

/* ============================================================
 * POKER CARD — Pokémon TCG inspired
 *
 * Each card is a 56x76 panel with type-colored border, rank in
 * the top corner, large suit/Pokemon icon in the middle.
 * Suits: ruby ♥ (fire), sky ♦ (water), jade ♣ (grass), volt ♠ (electric).
 *
 * Variants:
 *   .card-back    — face-down with pokeball pattern
 *   .placeholder  — empty slot, dashed border, dim
 *   .reveal       — dealt-in animation
 * ============================================================ */

.poker-card {
  width: 56px;
  height: 78px;
  background: #fff8e0;
  border: 3px solid #000;
  border-radius: 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 26px;
  color: #000;
  box-shadow: 0 3px 0 #000, inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.poker-card .rank-top {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 12px;
  line-height: 1;
}
.poker-card .rank-bot {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 12px;
  line-height: 1;
  transform: rotate(180deg);
}
.poker-card .suit-big { font-size: 30px; }
.poker-card.suit-ruby { color: #dc2626; border-color: #8b1414; }
.poker-card.suit-sky  { color: #2563eb; border-color: #1d3a8a; }
.poker-card.suit-jade { color: #16a34a; border-color: #0a5a2a; }
.poker-card.suit-volt { color: #b8860b; border-color: #5a4310; }

.poker-card.card-back {
  background:
    repeating-linear-gradient(45deg, #dc2626 0 6px, #b91c1c 6px 12px),
    #dc2626;
  color: #fff;
  font-size: 18px;
  border-color: #000;
}
.poker-card.card-back::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #fff8e0;
  border-radius: 3px;
}
.poker-card.card-back::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #fff8e0 0 40%, transparent 42%),
              linear-gradient(0deg, #fff8e0 0 40%, #1a1a1a 40% 60%, #fff8e0 60% 100%);
  border: 2px solid #fff8e0;
  border-radius: 50%;
}

.poker-card.placeholder {
  background: rgba(0, 0, 0, 0.35);
  border-style: dashed;
  border-color: rgba(255, 215, 0, 0.3);
  color: rgba(255, 215, 0, 0.3);
  font-size: 20px;
  box-shadow: none;
}

@keyframes cardDeal {
  0%   { transform: translateY(-200px) rotate(-180deg) scale(0.5); opacity: 0; }
  60%  { transform: translateY(8px) rotate(8deg) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}
.poker-card.reveal { animation: cardDeal 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* highlight winning cards */
.poker-card.winner {
  box-shadow:
    0 0 0 3px #ffd700,
    0 0 12px #ffd700,
    0 3px 0 #000;
  animation: winnerPulse 1.2s ease-in-out infinite;
}
@keyframes winnerPulse {
  0%, 100% { box-shadow: 0 0 0 3px #ffd700, 0 0 12px #ffd700, 0 3px 0 #000; }
  50%      { box-shadow: 0 0 0 3px #ffe066, 0 0 24px #ffd700, 0 3px 0 #000; }
}

/* ============================================================
 * BUY CTA backdrop — felt card pattern
 * ============================================================ */
.royale-buy {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0e6238 0%, #063a1f 100%);
  border-top: 2px solid #a87f3a;
}

/* ============================================================
 * MOBILE
 * ============================================================ */
@media (max-width: 640px) {
  .royale-felt { padding: 14px 8px; gap: 12px; border-radius: 60px / 50px; }
  .royale-felt-wrap { padding: 10px; }
  .poker-card { width: 44px; height: 62px; font-size: 20px; }
  .poker-card .suit-big { font-size: 22px; }
  .seat-info { padding: 4px 6px; gap: 6px; }
  .royale-seat { gap: 8px; }
  .seat-cards { gap: 4px; }
  .royale-btn { padding: 5px 10px; font-size: 11px; }
  .royale-btn-lg { padding: 8px 14px; font-size: 12px; }
}

/* Mobile: stack seats vertically with you at the bottom */
@media (max-width: 480px) {
  .royale-seat { flex-direction: column-reverse; align-items: stretch; }
  .seat-top    { flex-direction: column; }
  .seat-info { justify-content: center; }
  .seat-cards { justify-content: center; }
}

/* FAQ */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .faq-chev { transform: rotate(90deg); }
.faq-chev { transition: transform 160ms ease; display: inline-block; }
