/* Whack the Adam® Carnival — max color, max joy, kid-friendly */
:root {
  --green: #009c3b;
  --yellow: #ffdf00;
  --blue: #002776;
  --orange: #ff6b35;
  --pink: #ff2d95;
  --purple: #7b2cbf;
  --cream: #fff8e7;
  --gold: #ffd700;
  --shadow: rgba(0, 0, 0, 0.35);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--font-body);
  background: linear-gradient(165deg, #0a3d1f 0%, #002776 45%, #7b2cbf 100%);
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: fixed;
  inset: 0;
  width: 100%;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(12px + var(--safe-t)) 14px calc(14px + var(--safe-b));
  overflow-y: auto;
  overflow-x: hidden;
}
.screen.active { display: flex; }

/* INTRO */
#screen-intro {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 223, 0, 0.3), transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 45, 149, 0.25), transparent 45%),
    linear-gradient(165deg, #009c3b 0%, #002776 55%, #7b2cbf 100%);
}

.confetti-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.intro-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.edition {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--yellow);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 223, 0, 0.45);
}
.flag { font-size: 1.35rem; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 8vw, 2.55rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 3px 0 var(--blue), 0 6px 0 rgba(0,0,0,0.25), 0 0 30px rgba(255,223,0,0.5);
  margin-bottom: 6px;
}
.logo .reg { font-size: 0.45em; vertical-align: super; opacity: 0.85; }

.tagline {
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.35;
  color: #ffe9a8;
}

.couple-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.photo-frame {
  width: 40%;
  max-width: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--yellow);
  box-shadow: 0 8px 24px var(--shadow), 0 0 0 4px rgba(0, 151, 59, 0.5);
  transform: rotate(-3deg);
  background: #111;
}

.couple-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.arrow-magic {
  font-size: 1.05rem;
  animation: bounce 1.2s ease-in-out infinite;
}

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

.roo-preview {
  width: 40%;
  max-width: 150px;
  animation: rooBob 1.3s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.4));
}
.roo-preview img { width: 100%; height: auto; display: block; }

@keyframes rooBob {
  0%, 100% { transform: translateY(0) rotate(2deg) scale(1); }
  50% { transform: translateY(-12px) rotate(-2deg) scale(1.04); }
}

.cast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cast-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cast-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.cast-card strong {
  font-size: 0.82rem;
  color: var(--yellow);
}
.cast-card span {
  font-size: 0.65rem;
  opacity: 0.88;
  line-height: 1.2;
}

.home-stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pill {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.credit-pill {
  border-color: rgba(255, 215, 0, 0.55);
  color: var(--gold);
  background: rgba(80, 50, 0, 0.45);
}
.pill-icon { width: 20px; height: 20px; object-fit: contain; }

.story-box {
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,223,0,0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-box p { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 8px auto;
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s;
  width: 100%;
  max-width: 340px;
  margin: 5px auto;
  display: block;
}
.btn:active { transform: scale(0.94); }
.btn-huge {
  font-size: 1.25rem !important;
  padding: 18px 28px !important;
  max-width: 100% !important;
  margin-top: 4px !important;
}
.again-nudge {
  font-size: 0.78rem;
  color: #ffe9a8;
  font-weight: 700;
  margin: 4px 0 10px;
  opacity: 0.9;
}

/* BETA couple upload */
/* Wallet */
.wallet-pill-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.wallet-pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid rgba(0, 212, 170, 0.6);
  background: rgba(0, 40, 30, 0.55);
  color: #00e676;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.25);
}
.wallet-pill:active { transform: scale(0.96); }
.wallet-reup {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: #1a0a00;
  background: linear-gradient(90deg, #ffdf00, #ff6b35, #ff2d95);
  background-size: 200% 100%;
  animation: comboShine 1.2s linear infinite, pulse 1s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.45);
}
.wallet-reup.hidden { display: none !important; }

.btn-wallet {
  background: linear-gradient(180deg, #00e676, #00a86b);
  color: #041a0c !important;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 0 #006644, 0 8px 20px rgba(0, 230, 118, 0.3);
  font-size: 0.95rem;
  text-transform: none;
}

#screen-wallet {
  justify-content: flex-start;
  background: linear-gradient(165deg, #041a0c, #0a2540 45%, #4a148c);
}
.wallet-panel { max-width: 420px; }
.wallet-balance-hero {
  text-align: center;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(0, 230, 118, 0.4);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.15);
}
.wb-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 900;
  opacity: 0.75;
}
.wb-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #00e676;
  text-shadow: 0 0 24px rgba(0, 230, 118, 0.5);
  line-height: 1.1;
}
.wb-amount.pop { animation: scorePop 0.45s ease; }
.wb-sub { font-size: 0.78rem; opacity: 0.85; margin-top: 4px; }
.wallet-one-tap-blurb {
  text-align: center;
  font-size: 0.75rem;
  color: #ffe9a8;
  margin: -4px 0 12px;
  font-weight: 700;
}
.wallet-packs {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.wallet-pack {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-body);
  transition: transform 0.12s, border-color 0.12s;
  width: 100%;
}
.wallet-pack:active { transform: scale(0.98); }
.wallet-pack.best {
  border-color: #ffdf00;
  box-shadow: 0 0 18px rgba(255, 223, 0, 0.25);
}
.wallet-pack .pe { font-size: 1.6rem; }
.wallet-pack .pm { flex: 1; }
.wallet-pack .pm strong { display: block; font-family: var(--font-display); }
.wallet-pack .pm span { font-size: 0.75rem; opacity: 0.85; }
.wallet-pack .pp {
  font-family: var(--font-display);
  font-weight: 800;
  color: #00e676;
  font-size: 1.1rem;
}
.wallet-pack .pbadge {
  font-size: 0.55rem;
  font-weight: 900;
  background: #ff2d95;
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.auto-reload-card {
  background: rgba(99, 91, 255, 0.15);
  border: 2px solid rgba(99, 91, 255, 0.45);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.ar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ar-row p { font-size: 0.75rem; opacity: 0.9; margin-top: 2px; }
.ar-status { font-size: 0.72rem; text-align: center; opacity: 0.85; margin-top: 8px; }

.toggle { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-ui {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.toggle-ui::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle input:checked + .toggle-ui { background: #00e676; }
.toggle input:checked + .toggle-ui::before { transform: translateX(22px); }

.reload-fx {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,230,118,0.25), rgba(0,0,0,0.75));
  pointer-events: none;
}
.reload-fx.hidden { display: none !important; }
.reload-fx-inner { text-align: center; animation: celebratePop 1.4s cubic-bezier(0.22,1,0.36,1) forwards; }
.reload-fx-emoji { font-size: 4.5rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
.reload-fx-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #ffdf00;
  text-shadow: 0 3px 0 #002776, 0 0 24px rgba(255,223,0,0.7);
}
.reload-fx-sub {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00e676;
  margin-top: 6px;
}

/* Demo Stripe checkout overlay */
#demo-checkout {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}
#demo-checkout.show { opacity: 1; }
#demo-checkout.success .demo-status { color: #00e676; }
.demo-checkout-card {
  width: min(380px, 100%);
  background: #fff;
  color: #0a2540;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  animation: cardIn 0.35s cubic-bezier(0.22,1,0.36,1);
}
.demo-stripe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0a2540;
  color: #fff;
}
.demo-stripe-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #635bff;
}
.demo-secure { font-size: 0.72rem; opacity: 0.85; }
.demo-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #eef;
}
.demo-emoji { font-size: 1.8rem; }
.demo-product strong { display: block; font-size: 0.95rem; }
.demo-blurb { font-size: 0.75rem; opacity: 0.7; }
.demo-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #635bff;
}
.demo-card-fake {
  margin: 14px 16px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a2e, #0a2540);
  color: #fff;
  min-height: 100px;
}
.demo-card-chip {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffd700, #c9a227);
  margin-bottom: 12px;
}
.demo-card-num {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.demo-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  opacity: 0.8;
  letter-spacing: 0.08em;
}
.demo-status {
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px 4px;
  color: #0a2540;
}
.demo-spinner {
  width: 28px;
  height: 28px;
  margin: 8px auto 12px;
  border: 3px solid #e8e8f0;
  border-top-color: #635bff;
  border-radius: 50%;
  animation: demoSpin 0.7s linear infinite;
}
#demo-checkout.success .demo-spinner {
  border-color: #00e676;
  border-top-color: #00e676;
  animation: none;
}
@keyframes demoSpin { to { transform: rotate(360deg); } }
.demo-note {
  text-align: center;
  font-size: 0.68rem;
  opacity: 0.55;
  padding-bottom: 14px;
}

.btn-stripe {
  background: linear-gradient(180deg, #635bff, #0a2540);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 0 #0a2540, 0 8px 18px rgba(99, 91, 255, 0.35);
  font-size: 0.95rem;
  text-transform: none;
  max-width: 340px;
}
.btn-stripe:active { transform: scale(0.96); }
.btn-stripe.hot {
  background: linear-gradient(180deg, #00d4aa, #009c3b);
  box-shadow: 0 4px 0 #006633, 0 0 20px rgba(0, 212, 170, 0.5);
  animation: pulse 1.2s ease-in-out infinite;
}

.rice-boost-btn {
  pointer-events: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  border: 2px solid #ffdf00;
  background: linear-gradient(180deg, #635bff, #0a2540);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  box-shadow: 0 3px 0 #0a2540;
  white-space: nowrap;
}
.rice-boost-btn.active-boost {
  background: linear-gradient(180deg, #00e676, #009c3b);
  border-color: #fff;
  animation: pulse 1s infinite;
}
.rice-boost-btn:active { transform: scale(0.94); }

.btn-beta {
  background: linear-gradient(180deg, #ff6b9d, #c026d3);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 0 #7a1a8a, 0 8px 20px rgba(192, 38, 211, 0.35);
  font-size: 0.95rem;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn-beta:active { transform: scale(0.96); }

#screen-beta {
  justify-content: flex-start;
  background: linear-gradient(165deg, #4a148c, #002776 50%, #009c3b);
}
.beta-panel { max-width: 440px; }
.beta-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #1a0a00;
  background: linear-gradient(90deg, #ffdf00, #ff6b35);
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 auto 8px;
  display: block;
  width: fit-content;
}
.beta-lead {
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0.92;
  margin-bottom: 14px;
  color: #ffe9a8;
}
.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.beta-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 223, 0, 0.3);
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
}
.beta-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 8px;
}
.beta-canvas {
  width: 100%;
  max-width: 160px;
  height: auto;
  background: #1a1a2e;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: block;
  margin: 0 auto 8px;
}
.beta-upload {
  font-size: 0.78rem !important;
  padding: 10px 8px !important;
  margin: 0 auto 8px !important;
  max-width: none !important;
  width: 100% !important;
  cursor: pointer;
}
.beta-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 10px;
  margin-bottom: 8px;
  text-align: center;
}
.beta-sliders {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.beta-sliders label {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.beta-sliders input[type="range"] {
  width: 100%;
  accent-color: #ffdf00;
}
.beta-tip, .beta-privacy {
  font-size: 0.72rem;
  text-align: center;
  opacity: 0.8;
  margin: 8px 0;
  line-height: 1.35;
}
.beta-privacy { opacity: 0.65; }

@media (max-width: 380px) {
  .beta-grid { grid-template-columns: 1fr; }
}

.btn-primary {
  background: linear-gradient(180deg, #ffe566 0%, #ffb800 100%);
  color: #1a0a00;
  box-shadow: 0 4px 0 #c47a00, 0 8px 20px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  box-shadow: none;
  font-size: 0.9rem;
  padding: 10px 20px;
}

.btn-carnival {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.1));
  color: #fff;
  border: 2px solid rgba(255,223,0,0.4);
  font-size: 0.92rem;
  padding: 12px 10px;
  margin: 0;
  max-width: none;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.btn-share {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.82rem;
  padding: 10px 10px;
  width: auto;
  flex: 1;
  margin: 0;
  max-width: none;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 0 #c47a00, 0 8px 20px rgba(0,0,0,0.35), 0 0 0 0 rgba(255,223,0,0.5); }
  50% { box-shadow: 0 4px 0 #c47a00, 0 8px 20px rgba(0,0,0,0.35), 0 0 0 12px rgba(255,223,0,0); }
}

.credit { margin-top: 8px; font-size: 0.72rem; opacity: 0.75; }

/* Panels */
.panel {
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  padding: 20px 16px;
  border: 2px solid rgba(255,223,0,0.4);
  max-width: 400px;
  width: 100%;
}
.scroll-panel { max-height: 90vh; overflow-y: auto; }
.panel h2 {
  font-family: var(--font-display);
  color: var(--yellow);
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.how-list { list-style: none; margin-bottom: 14px; }
.how-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  line-height: 1.4;
}
kbd {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}

/* META (shop / collection) */
.meta-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.meta-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--yellow);
  flex: 1;
  text-align: center;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 8px;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.tab {
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.tab.active {
  background: linear-gradient(180deg, #ffe566, #ffb800);
  color: #1a0a00;
  border-color: #ffb800;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 12px;
  align-content: start;
}

.shop-card {
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.shop-card:active { transform: scale(0.97); }
.shop-card.owned { border-color: rgba(0, 200, 100, 0.55); }
.shop-card.equipped { border-color: var(--yellow); box-shadow: 0 0 16px rgba(255,223,0,0.35); }
.shop-card.locked { opacity: 0.75; }
.shop-card .emoji { font-size: 2rem; line-height: 1.2; }
.shop-card .name { font-family: var(--font-display); font-size: 0.82rem; margin: 4px 0; color: #fff; }
.shop-card .desc { font-size: 0.68rem; opacity: 0.85; line-height: 1.25; min-height: 2.4em; }
.shop-card .price {
  margin-top: 6px;
  font-weight: 800;
  color: var(--gold);
  font-size: 0.85rem;
}
.shop-card .badge-new {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pink);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 999px;
  animation: pulse 1s infinite;
}
.shop-card .owned-tag {
  font-size: 0.7rem;
  color: #7dffb3;
  font-weight: 800;
  margin-top: 4px;
}
.shop-hint {
  font-size: 0.72rem;
  opacity: 0.75;
  text-align: center;
  flex-shrink: 0;
}

#screen-shop, #screen-collection {
  justify-content: flex-start;
  background: linear-gradient(165deg, #002776, #009c3b 70%, #7b2cbf);
}

.collection-body {
  width: 100%;
  overflow-y: auto;
  flex: 1;
}
.col-section { margin-bottom: 14px; }
.col-section h3 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.col-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.col-item {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
}
.col-item.locked { filter: grayscale(1); opacity: 0.4; }
.col-item.owned { border-color: rgba(255,223,0,0.5); }

.streak-box {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255,223,0,0.1);
  border-radius: 14px;
  border: 1px dashed rgba(255,223,0,0.4);
}
.subhead {
  font-family: var(--font-display);
  color: #7dffb3;
  margin: 16px 0 8px;
  text-align: center;
}
.challenge-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}
.challenge-card.done { border-color: #7dffb3; }
.challenge-card .clabel { font-weight: 700; font-size: 0.9rem; }
.challenge-card .cprog { font-size: 0.75rem; opacity: 0.8; margin: 4px 0; }
.challenge-card .cbtn {
  font-size: 0.8rem;
  padding: 8px 14px;
  margin: 6px 0 0;
  max-width: none;
  width: auto;
  display: inline-block;
}

/* GAME HUD */
#screen-game {
  padding: 0;
  background: #1a5c2e;
  justify-content: flex-start;
  cursor: none;
}
#screen-game.touch-mode { cursor: auto; }
#screen-game.touch-mode .mallet-cursor { display: none !important; }

.hud {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(8px + var(--safe-t)) 12px 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
  gap: 8px;
}
.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
}
.hud-right { flex-direction: column; align-items: flex-end; gap: 0; }
.hud-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  object-fit: cover;
  background: var(--purple);
}
.hud-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  font-weight: 800;
}
.hud-label.multi { margin-top: 2px; }
.hud-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
  transition: transform 0.12s ease;
}
.hud-value.pop {
  animation: scorePop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes scorePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); color: #fff; }
  100% { transform: scale(1); }
}
.hud-value.mult { font-size: 1.05rem; color: #7dffb3; }

.combo-meter {
  width: min(180px, 42vw);
  height: 14px;
  background: rgba(0,0,0,0.45);
  border-radius: 999px;
  border: 1px solid rgba(255,223,0,0.35);
  overflow: hidden;
  position: relative;
  margin-top: 2px;
}
.combo-meter.hidden { display: none !important; }
.combo-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2d95, #ff6b35, #ffdf00);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.6);
  transition: width 0.12s linear;
}
.combo-meter.fever .combo-meter-fill {
  background: linear-gradient(90deg, #ffdf00, #fff, #ff2d95, #ffdf00);
  background-size: 200% 100%;
  animation: comboShine 0.6s linear infinite;
}
.combo-meter-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.fever-banner {
  position: absolute;
  top: calc(70px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2d95, #ff6b35, #ffdf00);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 45, 149, 0.55);
  pointer-events: none;
  animation: pulse 0.9s ease-in-out infinite;
}
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.countdown-overlay.hidden { display: none !important; }
#countdown-num {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 6px 0 #002776, 0 0 40px rgba(255,223,0,0.7);
  animation: scorePop 0.45s ease;
}
.hit-ring-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 14;
  overflow: hidden;
}
.hit-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #ffdf00;
  border-radius: 50%;
  animation: hitRing 0.45s ease-out forwards;
  pointer-events: none;
}
.hit-ring.miss {
  border-color: rgba(255,255,255,0.45);
}
@keyframes hitRing {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hud-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.combo-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
  background-size: 200% 100%;
  animation: comboPop 0.35s cubic-bezier(0.22,1,0.36,1), comboShine 1.2s linear infinite;
  color: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 16px rgba(255,45,149,0.55);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
@keyframes comboPop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes comboShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.event-banner {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
  background: rgba(0,39,118,0.92);
  border: 2px solid var(--yellow);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  animation: eventIn 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes eventIn {
  from { transform: translateY(-16px) scale(0.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.credits-fly {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 0.9rem;
  animation: floatUp 1s ease-out forwards;
}

.hidden { display: none !important; }

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
}

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.float-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--yellow);
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(255,223,0,0.7);
  pointer-events: none;
  animation: floatUp 0.9s ease-out forwards;
  white-space: nowrap;
}
.float-text.combo { color: #ff6b9d; font-size: 1.55rem; }
.float-text.event { color: #7dffb3; font-size: 1rem; white-space: normal; max-width: 200px; text-align: center; }
.float-text.rice { color: #fff8dc; font-size: 1.2rem; }

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
  20% { transform: translate(-50%, -10px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(1); }
}

/* Ability bar — thumb-zone optimized for iPhone */
.ability-bar {
  position: absolute;
  bottom: calc(18px + var(--safe-b));
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 16px;
  gap: 6px;
  pointer-events: none;
}
.ability-btn {
  pointer-events: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  background: radial-gradient(circle at 30% 30%, #fff, #ffdf00 40%, #009c3b);
  box-shadow: 0 5px 0 #8a6a00, 0 10px 28px rgba(0,0,0,0.45);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.ability-btn:active { transform: scale(0.9); }
.ability-btn img { width: 44px; height: 44px; object-fit: contain; pointer-events: none; }
.ability-btn span {
  font-size: 0.68rem;
  font-weight: 900;
  color: #1a0a00;
  line-height: 1;
  pointer-events: none;
}
.ability-btn.locked { filter: grayscale(0.8); opacity: 0.7; }
.ability-btn.ready { animation: pulse 1s infinite; }
.ability-btn.cooling { opacity: 0.65; }

/* Mobile fever screen glow */
#screen-game.fever-mode {
  box-shadow: inset 0 0 80px rgba(255, 45, 149, 0.25);
}
#screen-game.fever-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 60px rgba(255, 223, 0, 0.12);
}
.cd-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(0,0,0,0.55) var(--cd, 0%), transparent 0);
  pointer-events: none;
}
.ability-tip {
  pointer-events: none;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.55);
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffe9a8;
}

.mallet-cursor {
  position: fixed;
  width: 110px;
  height: 110px;
  pointer-events: none;
  z-index: 50;
  transform: translate(-20%, -20%);
  display: none;
  will-change: left, top;
}
.mallet-cursor.visible { display: block; }
.mallet-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.4));
  transform-origin: 70% 90%;
}
.mallet-cursor.swing img { animation: malletSwing 0.18s ease-out; }
@keyframes malletSwing {
  0% { transform: rotate(-25deg) scale(1); }
  40% { transform: rotate(35deg) scale(1.12); }
  100% { transform: rotate(0) scale(1); }
}

#screen-game.shake { animation: shake 0.28s cubic-bezier(.36,.07,.19,.97) both; }
#screen-game.shake-hard { animation: shakeHard 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-2px,0,0); }
  20%, 80% { transform: translate3d(4px,-2px,0); }
  30%, 50%, 70% { transform: translate3d(-6px,2px,0); }
  40%, 60% { transform: translate3d(6px,-1px,0); }
}
@keyframes shakeHard {
  10%, 90% { transform: translate3d(-4px,1px,0); }
  20%, 80% { transform: translate3d(8px,-4px,0); }
  30%, 50%, 70% { transform: translate3d(-12px,4px,0); }
  40%, 60% { transform: translate3d(12px,-3px,0); }
}

.fx-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 18;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,223,0,0.25), transparent 60%);
  transition: opacity 0.2s;
}
.fx-overlay.flash { opacity: 1; }

/* RESULTS */
#screen-results {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,223,0,0.35), transparent 50%),
    linear-gradient(165deg, #7b2cbf, #002776 60%, #009c3b);
}
.results-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.results-badge {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.results-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.results-roo {
  width: 150px;
  height: auto;
  margin: 4px auto 8px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  animation: rooBob 1.2s ease-in-out infinite;
}
.results-caption {
  font-size: 0.92rem;
  line-height: 1.4;
  color: #ffe9a8;
  margin-bottom: 8px;
  font-weight: 700;
  padding: 0 6px;
}
.score-big { margin-bottom: 10px; }
.score-big span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 4px 0 #002776;
  display: block;
  line-height: 1;
}
.score-big small {
  font-size: 0.8rem;
  opacity: 0.8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.reward-box {
  background: rgba(255,215,0,0.15);
  border: 2px solid rgba(255,215,0,0.45);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}
.stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 12px 8px;
}
.stats-row div { display: flex; flex-direction: column; gap: 2px; }
.stats-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #7dffb3;
}
.stats-row span {
  font-size: 0.65rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.share-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.highscores {
  background: rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: left;
}
.highscores h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 8px;
}
.highscores ol { list-style: none; counter-reset: hs; }
.highscores li {
  counter-increment: hs;
  display: flex;
  justify-content: space-between;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.highscores li::before {
  content: counter(hs) ".";
  opacity: 0.6;
  margin-right: 8px;
}
.highscores li .pts { color: var(--yellow); font-weight: 800; }
.highscores li.empty { justify-content: center; opacity: 0.6; border: none; }
.highscores li.empty::before { content: none; }
.results-nav { max-width: 340px; }

/* Toast + celebrate */
.toast {
  position: fixed;
  top: calc(20px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(0,0,0,0.85);
  border: 2px solid var(--yellow);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  max-width: 90%;
  text-align: center;
  animation: eventIn 0.3s ease;
}

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.celebrate-inner {
  text-align: center;
  animation: celebratePop 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}
#celebrate-emoji { font-size: 4rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4)); }
#celebrate-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 3px 0 #002776, 0 0 20px rgba(255,223,0,0.8);
  margin-top: 8px;
}
@keyframes celebratePop {
  0% { transform: scale(0.3) rotate(-8deg); opacity: 0; }
  30% { transform: scale(1.15) rotate(3deg); opacity: 1; }
  70% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* GABI 10× LOTTERY — Brazilian jackpot */
.gabi-lottery {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gabi-lottery.hidden { display: none !important; }
.gabi-lottery-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 223, 0, 0.35), transparent 50%),
    linear-gradient(160deg, rgba(0, 156, 59, 0.92), rgba(0, 39, 118, 0.94) 55%, rgba(123, 44, 191, 0.9));
  animation: lotteryPulse 0.8s ease-in-out infinite alternate;
}
@keyframes lotteryPulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.12); }
}
.gabi-lottery-card {
  position: relative;
  z-index: 1;
  width: min(360px, 94vw);
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,20,40,0.75));
  border: 3px solid var(--yellow);
  border-radius: 24px;
  padding: 20px 16px 18px;
  box-shadow:
    0 0 0 4px rgba(0, 156, 59, 0.5),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 223, 0, 0.35);
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}
.br-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, #009c3b 0%, #009c3b 33%, #ffdf00 33%, #ffdf00 66%, #002776 66%);
}
.gabi-lottery-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin: 8px 0 10px;
  text-shadow: 0 1px 0 #000;
}
.gabi-lottery-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  box-shadow:
    0 0 0 4px #009c3b,
    0 0 0 7px #002776,
    0 12px 28px rgba(0,0,0,0.45);
  margin: 0 auto 10px;
  display: block;
  background: #2d0a4e;
  animation: rooBob 1s ease-in-out infinite;
}
.gabi-lottery-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 3px 0 #009c3b, 0 0 20px rgba(255,223,0,0.6);
  margin-bottom: 2px;
}
.gabi-lottery-sub {
  font-size: 0.88rem;
  color: #ffe9a8;
  font-weight: 700;
  margin-bottom: 12px;
}
.lottery-reels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lottery-reels .reel {
  width: 56px;
  height: 64px;
  background: linear-gradient(180deg, #1a1a2e, #0d0d18);
  border: 3px solid var(--gold);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.5), 0 0 12px rgba(255,215,0,0.3);
}
.lottery-reels .reel.spin {
  animation: reelSpin 0.12s linear infinite;
  color: #fff;
}
@keyframes reelSpin {
  0% { transform: translateY(-2px); filter: hue-rotate(0deg); }
  50% { transform: translateY(2px); }
  100% { transform: translateY(-2px); filter: hue-rotate(40deg); }
}
.lottery-reels .reel.win {
  background: linear-gradient(180deg, #ffdf00, #ffb800);
  color: #1a0a00;
  animation: comboPop 0.4s cubic-bezier(0.22,1,0.36,1);
}
.lottery-win {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 3px 0 #002776, 0 0 24px rgba(255,215,0,0.7);
  line-height: 1.1;
  min-height: 1.2em;
}
.lottery-credits {
  font-weight: 800;
  color: #7dffb3;
  font-size: 1rem;
  margin-top: 4px;
  min-height: 1.2em;
}
.gabi-lottery-tag {
  margin-top: 12px;
  font-size: 0.78rem;
  opacity: 0.9;
  color: #ffe9a8;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media (min-width: 520px) {
  #app {
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
  }
}
