:root {
  --bg-0: #03000d;
  --bg-1: #0b0220;
  --bg-2: #13052f;
  --panel: rgba(19, 5, 47, 0.82);
  --panel-bright: rgba(255, 255, 255, 0.08);
  --text: #fff5fe;
  --muted: #f6cfff;
  --yellow: #ffd447;
  --pink: #ff4fd8;
  --green: #46ffc8;
  --red: #ff4f6c;
  --purple: #6236ff;
  --aqua: #3de3ff;
  --surface: #0f0527;
  --stub-accent: #f59e0b;
  --card-border: rgba(255, 255, 255, 0.2);
  --chip-bg: rgba(255, 255, 255, 0.14);
  --noise: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%223%22 height=%223%22 viewBox=%220 0 3 3%22%3E%3Ccircle cx=%220.5%22 cy=%220.5%22 r=%220.5%22 fill=%22%23ffffff22%22/%3E%3C/svg%3E');
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  /* Reserve space for fixed bottom nav (≈60px) + safe-area */
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 15% 15%, rgba(255, 79, 216, 0.25), transparent 50%),
    radial-gradient(circle at 85% 10%, rgba(70, 255, 200, 0.3), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 212, 71, 0.22), transparent 55%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  background-blend-mode: screen;
  color: var(--text);
  min-height: 100vh;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.25;
  pointer-events: none;
}
.container { max-width: 1240px; margin: 0 auto; padding: 32px 20px 160px; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--yellow); font-weight: 700; }
.lede { color: var(--muted); max-width: 760px; line-height: 1.6; }
.lede.small { font-size: 15px; }

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 12px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 79, 216, 0.3), transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(70, 255, 200, 0.3), transparent 40%);
  filter: blur(30px);
  opacity: 0.8;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 780px;
  padding: 64px 20px 36px;
}
.hero h1 { margin: 8px 0 12px; font-size: clamp(38px, 5vw, 64px); line-height: 1; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Inline stat strip — replaces old 4-tile panel */
.hero__stat-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  width: fit-content;
}
.hero__stat { font-size: 13px; color: var(--muted); }
.hero__stat strong { color: var(--text); font-size: 15px; }
.hero__stat-sep { color: rgba(255,255,255,0.2); font-size: 13px; }
.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--yellow), #fff7b0);
  color: #3a1800;
  box-shadow: 0 12px 30px rgba(255, 212, 71, 0.35);
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.btn:hover { transform: translateY(-2px); }

.hero__panel {
  background: linear-gradient(160deg, rgba(8, 2, 32, 0.92), rgba(15, 6, 43, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.metric {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.2), rgba(70, 255, 200, 0.2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 6s infinite;
}
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 20px; }

.section { margin-top: 48px; position: relative; }
.section__header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.section__header h2 { margin: 6px 0 2px; font-size: clamp(28px, 4vw, 40px); }

.card {
  background: linear-gradient(180deg, rgba(12, 4, 36, 0.92), rgba(12, 3, 26, 0.8));
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }

/* Slot reel */
.slot-section {
  background: linear-gradient(145deg, rgba(255, 79, 216, 0.12), rgba(70, 255, 200, 0.08));
  border-radius: 32px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.slot-reel {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding-top: 20px;    /* room for active card to scale/translateY upward */
  padding-bottom: 12px;
}
.slot-reel::-webkit-scrollbar {
  display: none;
}
.slot-reel {
  scrollbar-width: none;
}
.slot-card {
  position: relative;
  padding: 20px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(8, 2, 32, 0.95), rgba(27, 8, 66, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-height: 220px;
  min-width: 250px;
  scroll-snap-align: start;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  overflow: visible;
  /* Dimmed at rest — no blur, just opacity. Blur only during spin (JS adds .is-spinning) */
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}
.slot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
/* Active card: fully visible — the one card you can always read at rest */
.slot-card.is-active {
  filter: none;
  opacity: 1;
  transform: scale(1.05) translateY(-8px);
  border-color: rgba(255, 212, 71, 0.4);
  box-shadow: 0 25px 60px rgba(255, 212, 71, 0.1), 0 0 20px rgba(255, 79, 216, 0.2);
  pointer-events: auto;
  user-select: auto;
}
/* Revealed card: only after a spin completes */
.slot-card.is-revealed {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
  border-color: var(--yellow);
  box-shadow: 0 25px 60px rgba(255, 212, 71, 0.25), 0 0 30px rgba(255, 79, 216, 0.4);
}
.slot-card.is-revealed::after { opacity: 0.4; }
@keyframes reelReveal {
  0%   { filter: blur(14px) brightness(2.5); opacity: 0.3; }
  50%  { filter: blur(3px)  brightness(1.4); opacity: 0.85; }
  100% { filter: none;      brightness(1);   opacity: 1; }
}
.slot-card.is-revealed { animation: reelReveal 0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
/* Crown overlay on the landed winner card — disappears when next spin starts */
@keyframes lod-crown-bounce {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.3) rotate(8deg);  opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);  opacity: 1; }
}
.slot-card.is-winner::after {
  content: '👑';
  position: absolute;
  top: -14px;
  right: -10px;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  animation: lod-crown-bounce .6s cubic-bezier(0.22,1,0.36,1) forwards;
  pointer-events: none;
  z-index: 10;
}
.slot-card h3 { margin: 0 0 6px; font-size: 22px; }
.slot-card p { margin: 0; color: var(--muted); font-size: 14px; }
.slot-card .slot-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.slot-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  color: var(--text);
}
/* Avatar FB-link wrapper — inherits slot-card pointer-events, opens FB in new tab */
.slot-avatar-link {
  display: block;
  border-radius: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.slot-avatar-link:hover { transform: scale(1.08); filter: brightness(1.15); }
.slot-card .slot-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b0a1f;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  text-decoration: none;
}
.slot-card .slot-avatar img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* img load failure — show initials stored in data-initials */
.avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar--fallback::after {
  content: attr(data-initials);
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  letter-spacing: .02em;
  pointer-events: none;
}
.slot-controls { display: flex; gap: 10px; align-items: center; }
.slot-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
}
.slot-btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #2b0a1f;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(255, 79, 216, 0.4);
}

/* Card wall */
.card-section {
  background: linear-gradient(160deg, rgba(98, 54, 255, 0.15), rgba(255, 79, 216, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.card-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.card-filters::-webkit-scrollbar { display: none; }
.card-control-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.card-search-wrap { flex: 1; display: flex; align-items: center; gap: 8px; }
.card-search-wrap .card-search { flex: 1; }
.card-search {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.card-search:focus { border-color: var(--pink); }
.card-search::placeholder { color: rgba(255,255,255,0.35); }
.card-control-bar-row2 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-sort {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}
.card-sort option { background: #13052f; }
.card-cta-banner {
  background: linear-gradient(135deg, rgba(99,54,255,0.15), rgba(255,79,216,0.1));
  border: 1px solid rgba(99,54,255,0.3);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: rgba(255,245,254,0.8);
  margin-bottom: 16px;
  text-align: center;
}
.card-cta-banner a { color: var(--pink); text-decoration: none; font-weight: 700; }
.card-cta-banner a:hover { text-decoration: underline; }

/* ── Share-earn nudge banner ──────────────────────────────────────────── */
.share-nudge-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,212,71,0.12), rgba(255,79,216,0.1));
  border: 1px solid rgba(255,212,71,0.35);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.share-nudge-banner__text { flex: 1; min-width: 0; }
.share-nudge-banner__cta {
  background: linear-gradient(135deg, #ffd447, #ff4fd8);
  color: #1a0a2e;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.share-nudge-banner__dismiss {
  background: none;
  border: none;
  color: rgba(255,248,231,0.4);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.share-nudge-banner__dismiss:hover { color: rgba(255,248,231,0.8); }

.filter-chip {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.filter-chip.active {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: #2b0a1f;
  box-shadow: 0 12px 24px rgba(255, 79, 216, 0.35);
  border-color: transparent;
}
.favorites-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.favorites-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.favorites-count { font-size: 13px; color: var(--muted); }
.favorites-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.favorite-chip {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.favorite-chip button {
  border: none;
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
}
.card-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
.fav-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.fav-toggle.active {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: #2b0a1f;
  box-shadow: 0 10px 20px rgba(255, 79, 216, 0.35);
}
.fav-toggle.loading {
  opacity: 0.5;
  pointer-events: none;
}
.fav-toggle:hover { transform: scale(1.1); }

.lod-card {
  background: linear-gradient(180deg, rgba(10, 2, 30, 0.95), rgba(17, 4, 44, 0.9));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.lod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.lod-card:hover::before { opacity: 0.25; }
.lod-card header { display: flex; align-items: center; gap: 12px; }
.lod-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06241b;
  font-weight: 800;
  overflow: hidden;
  text-decoration: none;
}
.lod-card h3 { margin: 0; font-size: 18px; }
.lod-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-pill {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}
.lod-card__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.lod-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lod-card__media button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #2b0a1f;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 79, 216, 0.4);
}

/* Existing sections refresh */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.bullet-list { padding-left: 20px; color: var(--muted); }
.bundle { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 12px 0; }

/* Leaderboard table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}
.leaderboard-table thead { background: rgba(255, 255, 255, 0.12); }
.leaderboard-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.04); }

/* Responsive */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: -1; }
}
@media (max-width: 900px) {
  .two-col, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .slot-section, .card-section { padding: 16px; }
  .slot-controls { width: 100%; justify-content: space-between; }
  .hero__actions { flex-direction: column; }
  .slot-reel { scroll-snap-type: x mandatory; }
  .slot-card {
    /* clamp(140px,28vw,240px) handles mobile — no override needed */
    scroll-snap-align: center;
  }

  /* 2-column compact card grid */
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  /* Compact card base */
  .lod-card {
    padding: 12px;
    gap: 8px;
    border-radius: 18px;
  }
  .lod-card h3 { font-size: 13px; line-height: 1.3; }
  .lod-card p  { font-size: 11px; }
  .lod-card .avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
  .lod-card header { gap: 8px; }
  .stat-pill { font-size: 11px; padding: 4px 8px; }

  /* Hide expandable content by default on mobile */
  .card-expandable { display: none; flex-direction: column; gap: 8px; }
  .lod-card--expanded .card-expandable { display: flex; }

  /* Expand toggle button */
  .card-expand-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: rgba(255,245,254,0.6);
    padding: 6px 8px;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
  }
  .lod-card--expanded .card-expand-btn { color: var(--pink); }

  /* Larger, horizontally-scrolling filter chips */
  .card-filters {
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .filter-chip {
    padding: 12px 18px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Card footer compact */
  .card-footer { gap: 6px; flex-wrap: wrap; }
  .candy-toggle, .card-scout-btn, .card-share-btn { font-size: 12px; padding: 6px 8px; }
  .fav-toggle { top: 8px; right: 8px; font-size: 13px; padding: 4px 7px; }
  .card-anim-btn { display: none; }
}

/* Page navigation (desktop) */
.card-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.card-page-btn {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.card-page-btn:hover:not(:disabled) { background: rgba(255,255,255,0.15); }
.card-page-btn:disabled { opacity: 0.3; cursor: default; }
.card-page-info {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  min-width: 90px;
  text-align: center;
}

/* Reset button */
.card-reset-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,80,120,0.15);
  border: 1px solid rgba(255,80,120,0.35);
  color: rgba(255,150,170,0.9);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.card-reset-btn:hover { background: rgba(255,80,120,0.28); }
.card-reset-btn[hidden] { display: none !important; }

/* Load more button */
.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.load-more-btn:hover { background: rgba(255,255,255,0.13); }

/* card-expandable visible on desktop always */
@media (min-width: 601px) {
  .card-expandable { display: flex; flex-direction: column; gap: 12px; }
  .card-expand-btn { display: none; }
}

/* ===========================================================================
   SWIPE CARD DECK — mobile-only (≤600px)
   =========================================================================== */

/* ── Toolbar ── */
.deck-toolbar {
  display: none;
}
@media (max-width: 600px) {
  .deck-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .deck-toolbar-btn {
    flex: 1;
    padding: 10px 6px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
  }
  .deck-toolbar-btn.active {
    background: rgba(180,120,255,0.18);
    border-color: rgba(180,120,255,0.5);
    color: #fff;
  }
  .deck-toolbar-btn:active { transform: scale(0.95); }

  /* ── Deck container ── */
  #lods-card-grid.view-deck {
    display: block;
    position: relative;
    min-height: 0;
    margin-top: 14px;
  }

  /* ── Stacked cards ── */
  .card-swipe-deck {
    position: relative;
    padding-bottom: 36px; /* room for shadow cards peeking below */
  }
  /* All cards share base transition + touch settings */
  .card-swipe-deck .lod-card {
    margin: 0;
    transition: transform 0.09s linear;
    touch-action: pan-y;
    will-change: transform;
  }
  /* Top card stays in normal flow — its height drives the container */
  .card-swipe-deck .lod-card.is-top {
    position: relative;
    z-index: 3;
  }
  /* Shadow cards absolutely positioned, peek below the top card */
  .card-swipe-deck .lod-card.is-second {
    position: absolute;
    top: 18px; left: 0; right: 0;
    z-index: 2;
    transform: scale(0.96);
    transition: none;
  }
  .card-swipe-deck .lod-card.is-third {
    position: absolute;
    top: 32px; left: 0; right: 0;
    z-index: 1;
    transform: scale(0.93);
    transition: none;
  }

  /* Swipe exit animations */
  .lod-card.swipe-exit-left  { transform: translateX(-135%) rotate(-10deg) !important; transition: transform 0.28s ease-in !important; }
  .lod-card.swipe-exit-right { transform: translateX(135%) rotate(10deg) !important; transition: transform 0.28s ease-in !important; }

  /* ── Deck counter + hint ── */
  .deck-counter {
    text-align: right;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    user-select: none;
  }
  .deck-nav-hint {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.22);
    margin-top: 14px;
    user-select: none;
    letter-spacing: 0.04em;
  }

  /* ── Fixed media box height — uniform cards ── */
  .card-swipe-deck .lod-card__media,
  .card-swipe-deck .lod-card__media.video-wrap {
    height: 180px;
    overflow: hidden;
    border-radius: 14px;
  }
  .card-swipe-deck .lod-card__media video,
  .card-swipe-deck .lod-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .card-swipe-deck .media-placeholder { height: 100%; background: rgba(255,255,255,0.04); }

  /* ── Stub media placeholder ── */
  .card-swipe-deck .stub-media-box {
    height: 180px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.1);
  }
  .stub-avatar-xl { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
  .stub-coming-soon { font-size: 12px; color: rgba(255,255,255,0.3); }

  /* ── In deck: expandable always visible, expand btn hidden ── */
  .card-swipe-deck .card-expandable { display: flex; flex-direction: column; gap: 8px; }
  .card-swipe-deck .card-expand-btn { display: none; }

  /* ── List mode ── */
  #lods-card-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
  }
  #lods-card-grid.view-list .lod-card {
    position: static;
    transform: none !important;
  }
  #lods-card-grid.view-list .card-expandable { display: flex; }
  #lods-card-grid.view-list .card-expand-btn { display: none; }

  /* ── Hide load-more in deck/list mode ── */
  #lods-card-grid.view-deck ~ #cards-load-more,
  #lods-card-grid.view-list ~ #cards-load-more { display: none !important; }
}

/* ── Card Flip (3D) ── */
.lod-card { perspective: 1000px; transform-style: preserve-3d; }
.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.lod-card.is-flipped .card-inner { transform: rotateY(180deg); }

/* Front stays in normal flow — it determines card height */
.card-front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Back is absolutely positioned over the front, hidden until flipped */
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1a0533 0%, #2d0a5c 50%, #1a0533 100%);
  border-radius: inherit;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 24px;
}
.card-back-logo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
}
.card-back-rank { font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.9); }
.card-back-tagline { font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; }

/* ── Score tier glow ── */
.lod-card.tier-gold {
  border-color: rgba(255,215,0,0.85);
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.5),
    0 0 18px rgba(255,215,0,0.7),
    0 0 40px rgba(255,215,0,0.4),
    0 0 70px rgba(255,180,0,0.25);
}
.lod-card.tier-silver { border-color: rgba(200,200,200,0.7); box-shadow: 0 0 18px rgba(200,200,200,0.45), 0 0 40px rgba(200,200,200,0.2); }
.lod-card.tier-bronze { border-color: rgba(205,127,50,0.7);  box-shadow: 0 0 16px rgba(205,127,50,0.45), 0 0 36px rgba(205,127,50,0.2); }
.lod-card.tier-gold   .card-back-logo { box-shadow: 0 0 40px rgba(255,215,0,0.9), 0 0 80px rgba(255,215,0,0.4); }
.lod-card.tier-silver .card-back-logo { box-shadow: 0 0 40px rgba(200,200,200,0.8); }
.lod-card.tier-bronze .card-back-logo { box-shadow: 0 0 35px rgba(205,127,50,0.8); }

/* ── Action Row ── */
.deck-action-row {
  display: none;
}
@media (max-width: 600px) {
  .deck-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 0 8px;
  }
  .deck-action-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 22px; color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
  }
  .deck-action-btn:active { transform: scale(0.91); background: rgba(255,255,255,0.18); }
  .deck-action-fav.is-faved { color: #FFD700; border-color: rgba(255,215,0,0.5); }
  .deck-action-nav { font-size: 28px; font-weight: 300; }
}

/* ── Smoke particles ── */
.smoke-particle {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,120,255,0.55), transparent 70%);
  filter: blur(9px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 20;
  animation: smoke-drift 0.65s ease-out forwards;
}
@keyframes smoke-drift {
  0%   { transform: scale(0.4) translateY(0)   translateX(0);           opacity: 0.8; }
  100% { transform: scale(2.8) translateY(-90px) translateX(var(--smoke-x)); opacity: 0; }
}

/* ── Shuffle wind ── */
@keyframes shuffle-wind {
  0%   { transform: rotateY(180deg) translateX(0)    rotate(0deg); }
  25%  { transform: rotateY(180deg) translateX(-34px) rotate(-9deg); }
  55%  { transform: rotateY(180deg) translateX(22px)  rotate(6deg); }
  80%  { transform: rotateY(180deg) translateX(-14px) rotate(-3deg); }
  100% { transform: rotateY(180deg) translateX(0)    rotate(0deg); }
}
.lod-card.shuffle-winding {
  animation: shuffle-wind 0.6s ease-in-out forwards;
  animation-delay: var(--shuffle-delay, 0ms);
}

/* ── Card peek on load ── */
@keyframes deck-peek {
  0%   { transform: none; }
  35%  { transform: rotate(-2.5deg) translateX(-7px); }
  70%  { transform: rotate(1.8deg)  translateX(5px); }
  100% { transform: none; }
}
.card-swipe-deck.deck-peek { animation: deck-peek 0.28s ease-out forwards; }

/* ── End-of-deck overlay ── */
.deck-end-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(10,2,30,0.92);
  border-radius: 24px;
  z-index: 10;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  animation: fade-in-up 0.3s ease-out;
}
.deck-end-emoji { font-size: 52px; animation: end-bounce 0.55s ease-out; }
.deck-end-sub   { font-size: 12px; color: rgba(255,255,255,0.38); text-align: center; padding: 0 20px; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes end-bounce {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ---------------------------------------------------------------------------
   Slot machine spin animation
   --------------------------------------------------------------------------- */
.slot-reel-window {
  overflow-x: clip;     /* clips side overflow without forcing overflow-y */
  overflow-y: visible;  /* lets active card scale/translate upward freely */
  border-radius: 20px;
  position: relative;
}
.slot-reel-window::before,
.slot-reel-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
  transition: width 0.25s ease, background 0.25s ease;
}
.slot-reel-window::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}
.slot-reel-window::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}

/* --- Slot spin: center-spotlight effect ---
   All cards blur+dim during spin.
   Wide side fades eat into the reel so only the center ~1 card width
   stays unobscured — looks like a classic slot-machine viewing window. */

.slot-section.is-spinning .slot-reel {
  pointer-events: none;
}
.slot-section.is-spinning .slot-card {
  filter: none;
  opacity: 0.9;
  transform: none !important; /* no active-card lift while wheel is flying */
  transition: filter 0.07s linear, transform 0.07s linear;
}

/* During spin: keep fades minimal so all cycling cards are visible */
.slot-reel-window.is-spinning::before,
.slot-reel-window.is-spinning::after {
  width: 40px;
}

@keyframes spinLand {
  0%   { transform: scale(1.02) translateY(-10px); box-shadow: 0 0 0 rgba(255, 212, 71, 0); }
  30%  { transform: scale(1.12) translateY(-14px); box-shadow: 0 0 60px rgba(255, 212, 71, 0.7), 0 0 120px rgba(255, 79, 216, 0.4); }
  60%  { transform: scale(1.08) translateY(-10px); }
  100% { transform: scale(1.05) translateY(-8px);  box-shadow: 0 25px 60px rgba(255, 212, 71, 0.25), 0 0 30px rgba(255, 79, 216, 0.4); }
}
.slot-reel.spin-land .slot-card.is-active {
  animation: spinLand 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ---------------------------------------------------------------------------
   3-card window — responsive sizing
   --------------------------------------------------------------------------- */
:root {
  --slot-card-w:   clamp(140px, 28vw, 240px);
  --slot-card-gap: clamp(8px, 2vw, 16px);
}

/* Override min-width set earlier so clamp drives width */
.slot-card {
  min-width: unset;
  width: var(--slot-card-w);
  flex: 0 0 var(--slot-card-w);
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}

.slot-reel {
  gap: var(--slot-card-gap);
  /* centre the 3-card strip */
  justify-content: center;
}

.slot-reel-window {
  width: calc(3 * var(--slot-card-w) + 2 * var(--slot-card-gap));
  max-width: 100%;
  margin-inline: auto;
}

/* Flanking cards — smaller, dimmer, slightly blurred */
.slot-card.is-prev,
.slot-card.is-next {
  transform: scale(0.6);
  opacity: 0.45;
  filter: blur(0.5px);
  pointer-events: none;
}

/* Active card overrides (already defined above, listed here for clarity) */
/* .slot-card.is-active { scale(1.05), opacity:1, filter:none } */

/* During spin: show all cards at equal weight — is-prev/is-next lifts */
.slot-section.is-spinning .slot-card.is-prev,
.slot-section.is-spinning .slot-card.is-next {
  transform: none;
  opacity: 0.9;
  filter: none;
}

/* ---------------------------------------------------------------------------
   Floating CTA nudge
   --------------------------------------------------------------------------- */
.reel-nudge {
  position: absolute;
  top: 20px;
  right: 0;
  padding: 8px 14px;
  border-radius: 999px 0 0 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1a0a2e;
  white-space: nowrap;
  transform: translateX(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.reel-nudge.show {
  transform: translateX(0);
}
.reel-nudge.nudge-back  { background: linear-gradient(135deg, #00e676, #00b0ff); }
.reel-nudge.nudge-spin  { background: linear-gradient(135deg, #ffd447, #ff9800); }
.reel-nudge.nudge-fav   { background: linear-gradient(135deg, #f06292, #ce93d8); }

/* --- Per-variant landing animations --- */
@keyframes land-slam {
  0%   { transform: translateY(-70px) scale(0.82); opacity: 0.5; }
  55%  { transform: translateY(10px)  scale(1.06); opacity: 1; }
  75%  { transform: translateY(-5px)  scale(0.97); }
  100% { transform: translateY(0)     scale(1); }
}
.slot-card.land-slam {
  animation: land-slam 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes land-heartbeat {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.22); }
  30%  { transform: scale(1); }
  50%  { transform: scale(1.14); }
  65%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.slot-card.land-heartbeat {
  animation: land-heartbeat 0.78s ease-in-out forwards;
}

@keyframes land-dizzy {
  0%   { transform: rotate(0deg)   scale(1); }
  15%  { transform: rotate(-16deg) scale(1.05); }
  35%  { transform: rotate(11deg)  scale(1.02); }
  55%  { transform: rotate(-7deg)  scale(1.01); }
  72%  { transform: rotate(4deg); }
  86%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg)   scale(1); }
}
.slot-card.land-dizzy {
  animation: land-dizzy 0.85s ease-in-out forwards;
}

@keyframes land-bounce {
  0%   { transform: scale(1)    translateY(0); }
  22%  { transform: scale(1.30) translateY(-14px); }
  42%  { transform: scale(0.86) translateY(0); }
  62%  { transform: scale(1.13) translateY(-7px); }
  80%  { transform: scale(0.96) translateY(0); }
  100% { transform: scale(1)    translateY(0); }
}
.slot-card.land-bounce {
  animation: land-bounce 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes land-explode {
  0%   { transform: scale(1);    opacity: 1; }
  25%  { transform: scale(0.52); opacity: 0.55; }
  55%  { transform: scale(1.38); opacity: 1; }
  75%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}
.slot-card.land-explode {
  animation: land-explode 0.82s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reel-spin-flash {
  font-size: 28px;
  vertical-align: middle;
  display: inline-block;
  animation: none;
}

/* ---------------------------------------------------------------------------
   Paangat Watch
   --------------------------------------------------------------------------- */
.paangat-section {
  background: linear-gradient(145deg, rgba(70, 255, 200, 0.08), rgba(98, 54, 255, 0.12));
  border: 1px solid rgba(70, 255, 200, 0.2);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.paangat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.paangat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: background 0.2s ease;
}
.paangat-row:hover { background: rgba(255, 255, 255, 0.07); }

.paangat-rank {
  font-size: 13px;
  font-weight: 800;
  color: var(--yellow);
  min-width: 28px;
  text-align: center;
}

.paangat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--aqua));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06241b;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.paangat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.paangat-info {
  flex: 1;
  min-width: 0;
}
.paangat-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.paangat-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.paangat-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--aqua));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.paangat-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.paangat-label {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(70, 255, 200, 0.12);
  border: 1px solid rgba(70, 255, 200, 0.3);
  color: var(--green);
  font-weight: 600;
}
.paangat-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.paangat-support {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------------
   Trending Hashtags
   --------------------------------------------------------------------------- */
.trending-section {
  padding-bottom: 8px;
}
.hashtag-ticker {
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}
@keyframes hashtagScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--ht-w, 2000px))); }
}
.hashtag-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0;
}
.hashtag-ticker__track.running {
  animation: hashtagScroll var(--ht-dur, 30s) linear infinite;
}
.hashtag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  margin: 0 6px;
  border-radius: 20px;
  background: rgba(255, 79, 216, 0.1);
  border: 1px solid rgba(255, 79, 216, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  cursor: default;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.hashtag-chip:hover {
  background: rgba(255, 79, 216, 0.2);
  transform: scale(1.05);
}
.hashtag-chip .ht-count {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.7;
}
.hashtag-ranking {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 8px 16px 0;
}
.hashtag-rank-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}
.hashtag-rank-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ht-rank-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--pink);
  min-width: 18px;
}
.ht-rank-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ht-rank-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  min-width: 20px;
}
.ht-rank-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--accent, #a855f7));
}

/* ---------------------------------------------------------------------------
   Inline video player
   --------------------------------------------------------------------------- */
.video-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  min-height: 140px;
  position: relative;
}
.card-video {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------------------------------------------------------------------------
   Auth modal
   --------------------------------------------------------------------------- */
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 0, 13, 0.82);
  backdrop-filter: blur(8px);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: linear-gradient(160deg, rgba(11, 2, 32, 0.98), rgba(19, 5, 47, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Winner modal */
.winner-modal { text-align: center; max-width: 360px; padding: 36px 28px 32px; }
.winner-crown { font-size: 40px; margin-bottom: 6px; animation: crownBounce .6s cubic-bezier(.22,1,.36,1); }
@keyframes crownBounce { from { transform: scale(0) rotate(-20deg); opacity:0; } 80% { transform: scale(1.15) rotate(4deg); } to { transform: scale(1) rotate(0); opacity:1; } }
.winner-modal .slot-avatar, .winner-modal img.slot-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); margin: 0 auto 12px; display: block; object-fit: cover; }
.winner-modal .avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--accent); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: rgba(255,255,255,.08); }
.winner-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.winner-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.winner-prompt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.winner-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-btn { padding: 14px 10px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.mode-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.mode-btn:active { transform: scale(.97); }
.mode-battle { border-color: rgba(239,68,68,.5); }
.mode-battle:hover { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.8); }
.mode-wager { border-color: rgba(168,85,247,.5); }
.mode-wager:hover { background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.8); }
.mode-hype { border-color: rgba(255,165,0,.5); }
.mode-hype:hover { background: rgba(255,165,0,.15); border-color: rgba(255,165,0,.8); }
.mode-scout { border-color: rgba(34,197,94,.5); }
.mode-scout:hover { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.8); }
.mode-back { border-color: rgba(34,197,94,.5); grid-column: 1 / -1; }
.mode-back:hover { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.8); }

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.modal-tab {
  flex: 1;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-tab.active {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: #2b0a1f;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 79, 216, 0.3);
}

.modal-form[hidden]      { display: none !important; }
.hero__user[hidden]      { display: none !important; }
.profile-overlay[hidden] { display: none !important; }
[hidden]                 { display: none !important; }
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}
.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.modal-form input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
}
.modal-form input:focus { border-color: var(--yellow); }
.modal-form input::placeholder { color: rgba(255, 255, 255, 0.3); }

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 14px;
}

.modal-error {
  font-size: 13px;
  color: var(--red);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 79, 108, 0.1);
  border: 1px solid rgba(255, 79, 108, 0.3);
}
.modal-success {
  font-size: 13px;
  color: #4ade80;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ---------------------------------------------------------------------------
   Weekly War leaderboard
   --------------------------------------------------------------------------- */
.leaderboard-section {
  background: linear-gradient(145deg, rgba(255, 212, 71, 0.06), rgba(98, 54, 255, 0.1));
  border: 1px solid rgba(255, 212, 71, 0.2);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.countdown-block {
  text-align: right;
}
.countdown-display {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255, 212, 71, 0.4);
  letter-spacing: 0.04em;
}

/* --- Leaderboard cards --- */
@keyframes lbEnter {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes crownPulse {
  0%, 100% { transform: scale(1)    rotate(-5deg); }
  50%       { transform: scale(1.25) rotate(5deg); }
}

.lb-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  animation: lbEnter 0.4s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: var(--lb-delay, 0s);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lb-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Top 3 special treatments */
.lb-card--gold {
  border-color: rgba(255,212,71,0.5);
  background: linear-gradient(135deg, rgba(255,212,71,0.12), rgba(255,157,0,0.06));
  box-shadow: 0 0 40px rgba(255,212,71,0.15);
}
.lb-card--silver {
  border-color: rgba(200,210,230,0.4);
  background: rgba(200,210,230,0.06);
}
.lb-card--bronze {
  border-color: rgba(205,127,50,0.4);
  background: rgba(205,127,50,0.06);
}

.lb-rank-badge {
  font-size: 26px;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.lb-card--gold .lb-rank-badge {
  animation: crownPulse 2.4s ease-in-out infinite;
  display: inline-block;
}

.lb-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
.lb-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}
.lb-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
}
.lb-hot-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 9px;
  font-weight: 800;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: badgePop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.lb-body { flex: 1; min-width: 0; }
.lb-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animated score bar */
.lb-score-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 8px;
}
.lb-score-fill {
  height: 100%;
  width: var(--lb-fill, 0%);
  border-radius: 999px;
  background: linear-gradient(to right, var(--purple), var(--pink), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1) var(--lb-delay, 0s);
}
.lb-card--gold .lb-score-fill { background: linear-gradient(to right, var(--yellow), #ff9d00); }

.lb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lb-stat {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
}
.lb-stat--score  { color: var(--yellow); }
.lb-stat--reward { color: var(--green); }
.lb-stat--lods   { color: #ffd447; background: rgba(255,180,0,0.15); border-radius: 6px; padding: 2px 6px; font-weight: 700; }
.lb-mult--hot    { color: var(--red);    background: rgba(255,79,108,0.15); }
.lb-mult--mid    { color: var(--aqua);   background: rgba(61,227,255,0.1);  }

/* --- Social proof on cards --- */
.social-proof {
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.social-proof__row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
}
.social-proof__label {
  font-weight: 700;
  color: var(--yellow);
  flex-shrink: 0;
}
.social-proof__value {
  color: var(--muted);
  line-height: 1.4;
}
.social-proof__value em { color: var(--text); font-style: normal; font-weight: 700; }
.social-proof__tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,212,71,0.15);
  border: 1px solid rgba(255,212,71,0.35);
  color: var(--yellow);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.social-proof__tag--star {
  background: rgba(70,255,200,0.1);
  border-color: rgba(70,255,200,0.3);
  color: var(--green);
}

.empty-row  { text-align: center; color: var(--muted); padding: 24px; }
.error-text { color: var(--red); }
.muted-text { color: var(--muted); font-size: 14px; }
.loading-text { color: var(--muted); font-size: 14px; }

/* Hero countdown mirror */
#hero-candy-balance, #hero-countdown {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   Candy / vote UI
   --------------------------------------------------------------------------- */
.candy-toggle {
  border: 1px solid rgba(255, 212, 71, 0.5);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 212, 71, 0.08);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.candy-toggle:hover {
  background: rgba(255, 212, 71, 0.18);
  transform: translateY(-1px);
}

.card-scout-btn {
  background: transparent;
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 999px;
  color: #a78bfa;
  font-size: 0.75rem;
  padding: 5px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.card-scout-btn:hover {
  background: rgba(167, 139, 250, 0.15);
  transform: translateY(-1px);
}

.card-share-btn {
  background: transparent;
  border: 1px solid rgba(255, 212, 71, 0.3);
  border-radius: 999px;
  color: rgba(255, 212, 71, 0.7);
  font-size: 0.75rem;
  padding: 5px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.card-share-btn:hover {
  background: rgba(255, 212, 71, 0.1);
  transform: translateY(-1px);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.candy-stat {
  font-size: 12px;
  color: var(--yellow);
  font-weight: 700;
  transition: transform 0.3s ease;
}
.candy-stat.candy-bump {
  animation: candyPop 0.5s ease;
}
@keyframes candyPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); color: #fff; }
  100% { transform: scale(1); }
}

.candy-picker {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  margin-top: 10px;
  border-radius: 20px;
  background: rgba(11, 2, 32, 0.85);
  border: 1px solid rgba(255, 212, 71, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,212,71,0.1);
  backdrop-filter: blur(8px);
}
.candy-picker.open {
  display: flex;
  animation: fadeInDown 0.18s cubic-bezier(0.22,1,0.36,1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Header row: title + balance */
.candy-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.candy-picker__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.candy-picker__balance-display {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(70,255,200,0.1);
  border: 1px solid rgba(70,255,200,0.3);
  border-radius: 999px;
  padding: 2px 10px;
}
.candy-picker__balance-display.candy-picker__balance--low {
  color: var(--red);
  background: rgba(255,79,108,0.1);
  border-color: rgba(255,79,108,0.3);
}

/* Amount button row */
.candy-picker__amounts {
  display: flex;
  gap: 7px;
}

.candy-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 7px;
  border: 1px solid rgba(255, 212, 71, 0.3);
  border-radius: 14px;
  background: rgba(255, 212, 71, 0.07);
  color: var(--yellow);
  cursor: pointer;
  transition: background 0.13s ease, transform 0.12s ease, border-color 0.13s ease, box-shadow 0.13s ease;
  line-height: 1;
}
.candy-btn__emoji { font-size: 14px; line-height: 1; }
.candy-btn__n     { font-size: 16px; font-weight: 800; }
.candy-btn__label { font-size: 9px;  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }

.candy-btn:hover:not(:disabled) {
  background: rgba(255, 212, 71, 0.2);
  border-color: rgba(255, 212, 71, 0.7);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255,212,71,0.25);
}
.candy-btn:active:not(:disabled) { transform: scale(0.96); }
.candy-btn:disabled { opacity: 0.38; cursor: not-allowed; }

/* 10-candy "big bet" highlight */
.candy-btn--big {
  border-color: rgba(255, 212, 71, 0.55);
  background: rgba(255, 212, 71, 0.13);
}
.candy-btn--big .candy-btn__n { color: #fff; }

/* 25-candy whale — loud */
.candy-btn--whale {
  border-color: rgba(70,255,200,0.5);
  background: rgba(70,255,200,0.08);
  color: var(--green);
}
.candy-btn--whale:hover:not(:disabled) {
  background: rgba(70,255,200,0.2);
  border-color: var(--green);
  box-shadow: 0 6px 24px rgba(70,255,200,0.3);
}

/* Rotating hint */
.candy-picker__hint {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
  font-style: italic;
}

.candy-picker__status {
  font-size: 14px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
  color: var(--green);
}

/* Lucky drop toast variant */
.toast--lucky {
  background: linear-gradient(135deg, rgba(255,212,71,0.25), rgba(70,255,200,0.2)) !important;
  border-color: var(--yellow) !important;
  animation: luckyPulse 0.6s ease !important;
}
@keyframes luckyPulse {
  0%   { transform: scale(0.8) translateX(-50%); }
  60%  { transform: scale(1.08) translateX(-50%); }
  100% { transform: scale(1) translateX(-50%); }
}

.candy-balance-chip {
  background: rgba(255, 212, 71, 0.12);
  border: 1px solid rgba(255, 212, 71, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

/* lods_score chips */
.slot-chip--score,
.stat-pill--score {
  background: linear-gradient(135deg, rgba(98, 54, 255, 0.35), rgba(255, 79, 216, 0.25));
  border-color: rgba(98, 54, 255, 0.5);
  color: #e0d4ff;
  font-weight: 700;
}
/* LODS Score — the golden metric */
.slot-chip--lods-score,
.stat-pill--lods-score {
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.22), rgba(255, 120, 0, 0.15));
  border: 1px solid rgba(255, 212, 71, 0.55);
  color: #ffd447;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(255, 212, 71, 0.4);
  position: relative;
  cursor: help;
}
.slot-chip--label,
.stat-pill--label {
  background: rgba(70, 255, 200, 0.12);
  border-color: rgba(70, 255, 200, 0.35);
  color: var(--green);
  font-size: 11px;
}

.card-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #2b0a1f;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 79, 216, 0.4);
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  right: unset;
  bottom: unset;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 999;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ---------------------------------------------------------------------------
   Particle burst system
   --------------------------------------------------------------------------- */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  line-height: 1;
  user-select: none;
  animation: particleFly var(--dur, 0.85s) cubic-bezier(0.165, 0.84, 0.44, 1) var(--delay, 0s) both;
}
@keyframes particleFly {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1);    opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.1); opacity: 0; }
}
/* Easter egg: downward fall */
@keyframes particleFall {
  0%   { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateX(var(--dx, 0px)) translateY(var(--dy)) rotate(var(--rot)) scale(0.8); opacity: 0; }
}

/* ---------------------------------------------------------------------------
   Screen shake on slot land
   --------------------------------------------------------------------------- */
@keyframes screenShake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-7px) rotate(-0.5deg); }
  30%  { transform: translateX(6px) rotate(0.5deg); }
  45%  { transform: translateX(-4px); }
  60%  { transform: translateX(4px); }
  75%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.slot-section.screen-shake {
  animation: screenShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ---------------------------------------------------------------------------
   Holographic card tilt
   --------------------------------------------------------------------------- */
.lod-card.holo {
  will-change: transform;
  transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.lod-card.holo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--holo-angle, 135deg),
    hsl(0,80%,65%), hsl(50,90%,65%), hsl(120,80%,65%),
    hsl(180,85%,65%), hsl(240,80%,70%), hsl(300,80%,65%), hsl(360,80%,65%)
  );
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lod-card.holo:hover::after,
.lod-card.holo:active::after { opacity: 0.18; }
.lod-card.holo:hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 79, 216, 0.2);
}
@media (hover: none) {
  .lod-card.holo:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Idle card wiggle
   --------------------------------------------------------------------------- */
@keyframes cardWiggle {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-4deg) scale(1.04); }
  30%  { transform: rotate(3.5deg) scale(1.03); }
  50%  { transform: rotate(-2.5deg) scale(1.01); }
  70%  { transform: rotate(2deg); }
  85%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg) scale(1); }
}
.slot-card.wiggling {
  animation: cardWiggle 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ---------------------------------------------------------------------------
   Spin button personality
   --------------------------------------------------------------------------- */
@keyframes btnJiggle {
  0%   { transform: rotate(0deg) scale(1); }
  18%  { transform: rotate(-6deg) scale(1.06); }
  36%  { transform: rotate(6deg) scale(1.06); }
  54%  { transform: rotate(-3deg) scale(1.03); }
  72%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg) scale(1); }
}
.slot-btn--primary:hover:not(:disabled) {
  animation: btnJiggle 0.45s ease;
}
.slot-btn--primary:active {
  transform: scale(0.93);
  transition: transform 0.08s ease;
}

/* ---------------------------------------------------------------------------
   Background bubble floaties
   --------------------------------------------------------------------------- */
.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  z-index: 0;
  animation: bubbleFloat var(--dur, 9s) ease-in forwards;
}
@keyframes bubbleFloat {
  0%   { transform: translateY(0)                         translateX(0)            scale(1);   opacity: var(--op, 0.25); }
  40%  { transform: translateY(calc(var(--dy) * 0.4))     translateX(calc(var(--dx) * 0.6)) scale(1.08); }
  100% { transform: translateY(var(--dy))                 translateX(var(--dx))    scale(0.4); opacity: 0; }
}

/* ---------------------------------------------------------------------------
   Regional filter tab colours
   --------------------------------------------------------------------------- */
.filter-chip[data-filter="ncr"],
.filter-chip[data-filter="luzon"],
.filter-chip[data-filter="visayas"],
.filter-chip[data-filter="mindanao"] {
  border-color: rgba(70, 255, 200, 0.35);
}
.filter-chip[data-filter="ncr"].active     { background: linear-gradient(135deg, #3de3ff, #46ffc8); color: #052a24; }
.filter-chip[data-filter="luzon"].active   { background: linear-gradient(135deg, #46ffc8, #6236ff); color: #f0f0ff; }
.filter-chip[data-filter="visayas"].active { background: linear-gradient(135deg, #6236ff, #ff4fd8); color: #fff0fd; }
.filter-chip[data-filter="mindanao"].active{ background: linear-gradient(135deg, #ff4fd8, #ffd447); color: #2b0a1f; }

/* ---------------------------------------------------------------------------
   First Backer + Streak badges
   --------------------------------------------------------------------------- */
.badge-first-backer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 212, 71, 0.25), rgba(255, 79, 216, 0.2));
  border: 1px solid rgba(255, 212, 71, 0.5);
  color: var(--yellow);
  animation: badgePop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.badge-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 100, 50, 0.25), rgba(255, 212, 71, 0.2));
  border: 1px solid rgba(255, 100, 50, 0.5);
  color: #ffaa60;
  animation: badgePop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes badgePop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}

/* Vote result toast — wider for badge messages */
.toast.toast--wide {
  border-radius: 18px;
  max-width: 280px;
  text-align: center;
  line-height: 1.4;
}

/* ---------------------------------------------------------------------------
   Spin variant shake classes
   --------------------------------------------------------------------------- */
@keyframes screenShakeHard {
  0%   { transform: translate(0,0) rotate(0); }
  10%  { transform: translate(-10px,-4px) rotate(-1deg); }
  22%  { transform: translate(10px, 4px) rotate(1deg); }
  34%  { transform: translate(-7px, 2px) rotate(-0.6deg); }
  46%  { transform: translate(7px, -2px); }
  58%  { transform: translate(-4px, 3px); }
  70%  { transform: translate(4px,-3px); }
  82%  { transform: translate(-2px,1px); }
  100% { transform: translate(0,0) rotate(0); }
}
.slot-section.screen-shake-hard {
  animation: screenShakeHard 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes screenShakeWave {
  0%   { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-1.8deg) scale(1.015); }
  40%  { transform: rotate(1.8deg) scale(1.015); }
  60%  { transform: rotate(-1deg)  scale(1); }
  80%  { transform: rotate(0.5deg); }
  100% { transform: rotate(0deg)  scale(1); }
}
.slot-section.screen-shake-wave {
  animation: screenShakeWave 0.65s ease;
}

@keyframes screenShakeChaos {
  0%   { transform: translate(0,0) rotate(0); }
  10%  { transform: translate(-13px, 5px) rotate(-2deg); }
  25%  { transform: translate(11px,-9px) rotate(1.8deg); }
  40%  { transform: translate(-7px,11px) rotate(-1.2deg); }
  55%  { transform: translate(9px,-5px) rotate(2.2deg); }
  70%  { transform: translate(-5px, 7px) rotate(-0.6deg); }
  85%  { transform: translate(3px,-2px); }
  100% { transform: translate(0,0) rotate(0); }
}
.slot-section.screen-shake-chaos {
  animation: screenShakeChaos 0.68s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ---------------------------------------------------------------------------
   Card click animations (flip + roll)
   --------------------------------------------------------------------------- */
@keyframes cardFlip {
  0%   { transform: perspective(700px) rotateY(0deg) scale(1); }
  45%  { transform: perspective(700px) rotateY(180deg) scale(0.88); }
  100% { transform: perspective(700px) rotateY(360deg) scale(1); }
}
.lod-card.card-flip {
  animation: cardFlip 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardRoll {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(9deg) scale(0.95) translateX(10px); }
  75%  { transform: rotate(-9deg) scale(0.95) translateX(-10px); }
  100% { transform: rotate(0deg) scale(1); }
}
.lod-card.card-roll {
  animation: cardRoll 0.62s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes cardBounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-22px) scale(1.04); }
  55%  { transform: translateY(6px) scale(0.97); }
  75%  { transform: translateY(-10px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}
.lod-card.card-bounce {
  animation: cardBounce 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardShake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  15%  { transform: translateX(-8px) rotate(-3deg); }
  30%  { transform: translateX(8px) rotate(3deg); }
  45%  { transform: translateX(-6px) rotate(-2deg); }
  60%  { transform: translateX(6px) rotate(2deg); }
  75%  { transform: translateX(-3px) rotate(-1deg); }
}
.lod-card.card-shake {
  animation: cardShake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes cardTwirl {
  0%   { transform: rotate(0deg) scale(1); }
  40%  { transform: rotate(180deg) scale(0.85); }
  100% { transform: rotate(360deg) scale(1); }
}
.lod-card.card-twirl {
  animation: cardTwirl 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Card animate button ──────────────────────────────────────────── */
.card-anim-btn {
  position: absolute;
  top: 12px;
  right: 42px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s;
  z-index: 2;
}
.card-anim-btn:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  transform: scale(1.15);
}

/* ---------------------------------------------------------------------------
   Favorite shake
   --------------------------------------------------------------------------- */
@keyframes favShake {
  0%   { transform: rotate(0deg) scale(1); }
  12%  { transform: rotate(-5deg) scale(1.06) translateY(-4px); }
  28%  { transform: rotate(5deg)  scale(1.05); }
  44%  { transform: rotate(-3deg) scale(1.02); }
  60%  { transform: rotate(3deg); }
  78%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg) scale(1); }
}
.lod-card.fav-shake, .slot-card.fav-shake {
  animation: favShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ---------------------------------------------------------------------------
   Slot reel — allow candy picker to overflow card bounds
   --------------------------------------------------------------------------- */
.slot-card {
  overflow: visible;
}
/* Keep the shimmer pseudo-element clipped via a wrapper */
.slot-card::after {
  clip-path: inset(0 round 28px);
}

/* ---------------------------------------------------------------------------
   Card spotlight (from slot reel → grid scroll)
   --------------------------------------------------------------------------- */
@keyframes cardSpotlight {
  0%   { box-shadow: 0 20px 35px rgba(0,0,0,.35); border-color: rgba(255,255,255,.18); }
  35%  { box-shadow: 0 0 0 4px var(--yellow), 0 0 50px 8px rgba(255,212,71,.5); border-color: var(--yellow); }
  100% { box-shadow: 0 20px 35px rgba(0,0,0,.35); border-color: rgba(255,255,255,.18); }
}
.lod-card.card-spotlight {
  animation: cardSpotlight 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Candy balance chip in hero actions */
.hero__candy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 71, 0.45);
  background: rgba(255, 212, 71, 0.1);
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.hero__candy-chip:hover { background: rgba(255, 212, 71, 0.2); transform: translateY(-1px); }

/* ---------------------------------------------------------------------------
   Live Pulse Ticker
   --------------------------------------------------------------------------- */
/* ── Quick Nav Strip ──────────────────────────────────────────────── */
.quick-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7900;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: rgba(3, 0, 13, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0 4px env(safe-area-inset-bottom);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
.quick-nav::-webkit-scrollbar { display: none; }

/* Right-edge fade — hints the strip scrolls */
.quick-nav::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 60px;
  background: linear-gradient(to left, rgba(3,0,13,0.95), transparent);
  pointer-events: none;
  z-index: 7901;
}

@keyframes nav-shimmy {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-14px); }
  55%  { transform: translateX(6px); }
  80%  { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
.quick-nav--shimmy { animation: nav-shimmy 0.7s cubic-bezier(0.36,0.07,0.19,0.97) 1.2s both; }

.quick-nav__item {
  scroll-snap-align: start;
  flex: 1 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px 8px;
  min-width: 52px;
  cursor: pointer;
  border: none;
  background: none;
  color: rgba(255, 245, 254, 0.4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
  font-family: inherit;
}
.quick-nav__item:hover { color: rgba(255, 245, 254, 0.8); }
.quick-nav__item.active { color: #fff5fe; }
.quick-nav__item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  border-radius: 2px 2px 0 0;
}

/* Mode-toggle button — leftmost, switches LodsBoard ↔ Lods Studio icon set */
.quick-nav__mode-btn {
  flex: 0 0 auto;
  min-width: 88px;
  max-width: 88px;
  background: rgba(255, 212, 71, 0.07);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--yellow) !important;
  font-size: 9px;
  letter-spacing: 0.06em;
  gap: 2px;
  padding: 8px 6px 8px;
}
.quick-nav__mode-btn .quick-nav__icon { font-size: 16px; }
.quick-nav__mode-btn::after { display: none; } /* no underline indicator */

/* Cycle position dots — make it OBVIOUS the toggle is a multi-mode switcher */
.quick-nav__cycle-dots {
  display: flex; gap: 3px; margin-top: 1px;
  justify-content: center;
}
.quick-nav__cycle-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 212, 71, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.quick-nav__cycle-dot.is-active {
  background: var(--yellow);
  transform: scale(1.4);
  box-shadow: 0 0 4px rgba(255, 212, 71, 0.6);
}

/* Brief flash on click so the cycle feels alive */
@keyframes mode-btn-flash {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); background: rgba(255,212,71,0.18); }
  100% { transform: scale(1); }
}
.quick-nav__mode-btn--flash { animation: mode-btn-flash 0.38s ease-out; }

/* First-load demo cycle — slot-machine vertical roll */
@keyframes mode-btn-demo {
  0%, 100% { box-shadow: none; }
  50%      { box-shadow: 0 0 0 2px rgba(255,212,71,0.4), 0 0 12px rgba(255,212,71,0.5); }
}
.quick-nav__mode-btn--demo {
  animation: mode-btn-demo 1.4s ease-in-out;
}
.quick-nav__mode-btn--demo .quick-nav__mode-label,
.quick-nav__mode-btn--demo .quick-nav__icon {
  animation: mode-roll 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes mode-roll {
  0%   { transform: translateY(0); opacity: 1; }
  40%  { transform: translateY(-8px); opacity: 0; }
  41%  { transform: translateY(8px);  opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Tooltip nudge — fires after 90s if user never tapped */
.lods-nav-tip {
  position: absolute;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd447, #ff4fd8);
  color: #1a0a2e;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px 8px 12px; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,212,71,0.3);
  z-index: 999;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  animation: nav-tip-bounce 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: calc(100vw - 24px);
}
@keyframes nav-tip-bounce {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.85); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.lods-nav-tip__arrow {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: linear-gradient(135deg, #ffd447, #ffd447);
}
.lods-nav-tip__close {
  background: rgba(26,10,46,0.15); border: none; color: #1a0a2e;
  border-radius: 50%; width: 18px; height: 18px;
  cursor: pointer; font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lods-nav-tip__close:hover { background: rgba(26,10,46,0.3); }
@media (max-width: 480px) {
  .lods-nav-tip { font-size: 11px; padding: 6px 10px 6px 8px; }
}

.quick-nav__icon {
  font-size: 20px;
  line-height: 1;
  display: block;
}

.quick-nav__badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: #1a0a2e;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
  line-height: 1.5;
  min-width: 16px;
  text-align: center;
  pointer-events: none;
}
.quick-nav__badge--dot {
  width: 8px;
  height: 8px;
  min-width: unset;
  padding: 0;
  border-radius: 50%;
  background: var(--pink);
  top: 8px;
  right: 10px;
}

/* ── Pulse Ticker ─────────────────────────────────────────────────── */
.pulse-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 79, 216, 0.08);
  border-top: 1px solid rgba(255, 79, 216, 0.2);
  border-bottom: 1px solid rgba(255, 79, 216, 0.2);
  padding: 8px 0;
  overflow: hidden;
  user-select: none;
}
.pulse-ticker__label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--pink);
  text-transform: uppercase;
  background: rgba(255,79,216,0.12);
  border-right: 1px solid rgba(255,79,216,0.3);
  align-self: stretch;
  display: flex;
  align-items: center;
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.pulse-ticker__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--ticker-w, 2000px))); }
}
.pulse-ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0;
}
.pulse-ticker__track.running {
  animation: tickerScroll var(--ticker-dur, 40s) linear infinite;
}
.pulse-item {
  font-size: 12px;
  color: var(--muted);
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.pulse-item:hover { color: var(--text); cursor: default; }

/* ---------------------------------------------------------------------------
   Battle Mode
   --------------------------------------------------------------------------- */
.battle-section {
  background: linear-gradient(145deg, rgba(255,79,108,0.1), rgba(98,54,255,0.12));
  border: 1px solid rgba(255,79,108,0.25);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.battle-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.battle-record {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255,212,71,0.1);
  border: 1px solid rgba(255,212,71,0.3);
  border-radius: 999px;
  padding: 4px 14px;
}

.battle-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
@media (max-width: 640px) {
  .battle-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
}

/* VS badge */
.battle-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.battle-vs__text {
  font-size: 28px;
  font-weight: 900;
  color: var(--red);
  text-shadow: 0 0 30px rgba(255,79,108,0.8), 0 0 60px rgba(255,79,108,0.4);
  animation: vsPulse 1.8s ease-in-out infinite;
  letter-spacing: 0.05em;
}
@keyframes vsPulse {
  0%, 100% { transform: scale(1)    rotate(-3deg); }
  50%       { transform: scale(1.18) rotate(3deg);  }
}
.battle-vs__sub {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* Battle cards */
.battle-card {
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.4s ease;
  overflow: visible;
}
.battle-card__inner {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.battle-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.battle-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.battle-card__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.battle-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.battle-stat {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
}
.battle-stat--score { color: var(--yellow); }
.battle-stat--lods  { color: #ffd447; font-weight: 800; }

.battle-vote-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,212,71,0.4);
  background: rgba(255,212,71,0.08);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  margin-top: 4px;
}
.battle-vote-btn:hover:not(:disabled) {
  background: rgba(255,212,71,0.22);
  transform: translateY(-2px);
}
.battle-vote-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Win state */
@keyframes battleWinPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1.03); }
}
.battle-card.battle-winner {
  border-color: var(--yellow);
  box-shadow: 0 0 60px rgba(255,212,71,0.45), 0 20px 60px rgba(0,0,0,0.3);
  animation: battleWinPop 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
.battle-card.battle-winner .battle-avatar {
  border-color: var(--yellow);
  box-shadow: 0 0 30px rgba(255,212,71,0.6);
}

/* Lose state */
@keyframes battleLoseSag {
  0%   { transform: scale(1) rotate(0); }
  25%  { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(0.92) rotate(-1deg); }
}
.battle-card.battle-loser {
  border-color: rgba(255,255,255,0.05);
  animation: battleLoseSag 0.45s ease forwards;
  filter: grayscale(0.65) brightness(0.65);
}

/* Bet row */
.battle-bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.battle-bet-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.battle-bet-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,212,71,0.3);
  background: rgba(255,212,71,0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.battle-bet-btn.active,
.battle-bet-btn:hover {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.18);
  color: var(--yellow);
}
.battle-match-label {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,212,71,0.7);
  font-weight: 600;
}

/* Result bar */
.battle-result {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  animation: fadeInDown 0.25s ease;
}
.battle-result--win {
  background: rgba(70,255,150,0.08);
  border: 1px solid rgba(70,255,150,0.3);
}
.battle-result--lose {
  background: rgba(255,79,108,0.08);
  border: 1px solid rgba(255,79,108,0.25);
}
.battle-result__outcome {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.battle-result--win  .battle-result__outcome { color: var(--green); }
.battle-result--lose .battle-result__outcome { color: var(--red);   }
.battle-result__candy {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}
.battle-result__candy--win  { color: var(--green); }
.battle-result__candy--lose { color: var(--red);   }
.battle-result__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.battle-next-btn { flex-shrink: 0; }

/* ── Winners Wall ────────────────────────────────────────────── */
/* ── Mode Transition Divider ─────────────────────────────────────── */
.mode-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
}
.mode-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 79, 216, 0.35), transparent);
}
@keyframes divider-nudge {
  0%, 80%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(255,79,216,0); }
  86%            { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(255,79,216,0.25); }
  93%            { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,79,216,0.1); }
}
.mode-divider__cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 79, 216, 0.07);
  border: 1px solid rgba(255, 79, 216, 0.22);
  border-radius: 18px;
  padding: 14px 24px;
  cursor: pointer;
  color: var(--pink);
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  animation: divider-nudge 9s ease-in-out 4s infinite;
}
.mode-divider__cta:hover,
.mode-divider__cta:active {
  background: rgba(255, 79, 216, 0.16);
  transform: translateY(-2px);
  animation-play-state: paused;
}
.mode-divider__icon  { font-size: 22px; line-height: 1; }
.mode-divider__label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mode-divider__sub {
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.03em;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}
.mode-divider__arrow {
  font-size: 13px;
  opacity: 0.7;
  animation: arrow-bounce 1.4s ease-in-out infinite;
}

.winners-wall-section { padding: 40px 0; }
.winners-wall {
  background: rgba(255,212,71,0.04);
  border: 1px solid rgba(255,212,71,0.15);
  border-radius: 20px;
  padding: 24px;
}
.wall-your-record {
  text-align: center;
  margin-bottom: 20px;
}
.wall-rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 10px;
}
.wall-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wall-stat {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}
.wall-stat--w   { color: var(--green); }
.wall-stat--l   { color: var(--red);   }
.wall-stat--pos { color: var(--green); }
.wall-stat--neg { color: var(--red);   }
.wall-stat--pct { color: var(--yellow); }
.wall-cta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.wall-wins__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.wall-wins__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wall-win-chip {
  background: rgba(70,255,150,0.07);
  border: 1px solid rgba(70,255,150,0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
}
.wall-win-chip strong { color: var(--green); }
.wall-win-bet {
  float: right;
  color: var(--green);
  font-weight: 700;
}

/* ── Join CTA ─────────────────────────────────────────────────────── */
.join-section {
  padding: 60px 0;
}
.join-box {
  background: linear-gradient(135deg, rgba(24,119,242,0.12) 0%, rgba(255,212,71,0.06) 100%);
  border: 1px solid rgba(24,119,242,0.35);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.join-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 8px 0 16px;
  color: var(--text);
}
.join-box p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.btn--fb {
  background: #1877f2;
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn--fb:hover {
  background: #1466d0;
  color: #fff;
}

/* ── Wager Modal ─────────────────────────────────────────────────── */
.wager-modal { max-width: 500px; }
.wager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.wager-record-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,212,71,0.12);
  border: 1px solid rgba(255,212,71,0.3);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 20px;
}
.wager-prompt {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.wager-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.wager-contestant {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.wager-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}
.wager-avatar--initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #1a0a2e;
}
.wager-contestant__name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.wager-contestant__score {
  font-size: 11px;
  color: var(--muted);
}
.wager-pick-btn {
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.wager-pick-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.wager-pick-btn.active {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.15);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(255,212,71,0.3);
}
.wager-pick-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wager-vs {
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  flex-shrink: 0;
}
.wager-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.wager-amount-label { font-size: 13px; color: var(--muted); }
.wager-amount-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.wager-amount-btn:hover { border-color: var(--pink); }
.wager-amount-btn.active {
  border-color: var(--pink);
  background: rgba(255,79,216,0.15);
  color: var(--pink);
}
.wager-amount-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wager-confirm-btn { width: 100%; margin-bottom: 12px; }
.wager-result {
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
  animation: fadeInDown 0.3s ease;
}
.wager-result--win {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80;
}
.wager-result--lose {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}
.wager-result-icon { font-size: 32px; margin-bottom: 6px; }
.wager-result strong { font-size: 18px; display: block; margin-bottom: 4px; }
.wager-result p { font-size: 13px; margin: 0; opacity: 0.85; }
.wager-next-btn { width: 100%; }

/* ── Hype Modal ──────────────────────────────────────────────────── */
.hype-modal {
  max-width: 360px;
  text-align: center;
}
.hype-flame {
  font-size: 36px;
  animation: crownBounce 0.8s ease infinite alternate;
  display: block;
  margin-bottom: 8px;
}
.hype-creator-name {
  font-size: 1.3rem;
  margin: 10px 0 4px;
}
.hype-creator-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.hype-prompt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.hype-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.hype-candy-btn {
  padding: 12px 8px;
  border-radius: 14px;
  border: 2px solid rgba(255,212,71,0.25);
  background: rgba(255,212,71,0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.hype-candy-btn:hover {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.15);
  transform: scale(1.04);
}
.hype-candy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hype-balance {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.hype-balance--low { color: var(--pink); }
.hype-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 8px;
  animation: fadeInDown 0.25s ease;
}

/* ── Scout Panel ─────────────────────────────────────────────────── */
.scout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9100;
}
.scout-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  box-sizing: border-box;
  background: var(--surface);
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 9200;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.scout-panel--open { transform: translateX(0); }

/* Drag handle — only visible on mobile bottom sheet */
.scout-drag-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 4px;
  flex-shrink: 0;
}

/* Mobile: bottom sheet — slides up from bottom, full width */
@media (max-width: 600px) {
  .scout-drag-handle { display: block; }
  .scout-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 88vh;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 16px 16px 32px;
    gap: 14px;
  }
  .scout-panel--open { transform: translateY(0); }
  .scout-close {
    top: 14px;
    right: 14px;
  }
  .scout-metric span,
  .scout-stat span { font-size: 9px; }
  .scout-metric strong { font-size: 14px; }
  .scout-metric--lods strong { font-size: 16px; }
  .scout-real-label { font-size: 8px; }
}
.scout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.scout-close:hover { background: rgba(255,255,255,0.15); }
.scout-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.scout-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,212,71,0.4);
  flex-shrink: 0;
}
.scout-avatar--initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #1a0a2e;
  flex-shrink: 0;
}
.scout-header-info h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  line-height: 1.2;
}
.scout-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.scout-score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.scout-metric {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.scout-metric span {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scout-metric strong { font-size: 16px; color: var(--yellow); }
.scout-metric--lods {
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.15), rgba(255, 100, 0, 0.08));
  border: 1px solid rgba(255, 212, 71, 0.35);
}
.scout-metric--lods span { color: #ffd447; }
.scout-metric--lods strong { font-size: 18px; color: #ffd447; text-shadow: 0 0 10px rgba(255,212,71,0.4); }
.scout-real-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,212,71,0.7);
  text-transform: uppercase;
}
.scout-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.scout-stat {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
}
.scout-stat strong { font-weight: 700; font-size: 15px; }
.scout-stat span { font-size: 10px; color: var(--muted); }
.scout-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.scout-action-btn { flex: 1; justify-content: center; font-size: 13px; }

/* ── Hero brand ──────────────────────────────────────────────────── */
.hero__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255,212,71,0.5);
}
.hero__site-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Lods Fortune Teller ─────────────────────────────────────────── */
.fortune-section {
  text-align: center;
  padding: 60px 0 40px;
}
.fortune-section .section__header { justify-content: center; }
.fortune-orb-wrap {
  position: relative;
  display: inline-block;
  margin: 28px 0 20px;
  cursor: pointer;
}
.fortune-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(180,120,255,0.9),
    rgba(80,40,160,0.85) 50%,
    rgba(20,10,60,0.95));
  box-shadow:
    0 0 40px rgba(160,80,255,0.5),
    0 0 80px rgba(120,40,200,0.25),
    inset 0 0 30px rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
.fortune-orb-wrap:hover .fortune-orb {
  transform: scale(1.06);
  box-shadow:
    0 0 60px rgba(160,80,255,0.7),
    0 0 120px rgba(120,40,200,0.4),
    inset 0 0 40px rgba(255,255,255,0.12);
}
.fortune-orb-wrap.shaking .fortune-orb {
  animation: orbShake 0.55s ease;
}
.fortune-orb-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160,80,255,0.2), transparent 70%);
  animation: glowPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbShake {
  0%,100% { transform: scale(1) rotate(0); }
  15%      { transform: scale(1.04) rotate(-4deg); }
  30%      { transform: scale(1.08) rotate(4deg); }
  45%      { transform: scale(1.05) rotate(-3deg); }
  60%      { transform: scale(1.07) rotate(3deg); }
  75%      { transform: scale(1.03) rotate(-2deg); }
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.08); }
}
.fortune-tap-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -8px;
  margin-bottom: 20px;
}
.fortune-card {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg,
    rgba(60,20,120,0.7),
    rgba(20,8,60,0.85));
  border: 1px solid rgba(160,80,255,0.35);
  border-radius: 20px;
  padding: 28px 28px 22px;
  animation: fortuneReveal 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes fortuneReveal {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.fortune-card__guide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fortune-guide-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(160,80,255,0.5);
  flex-shrink: 0;
}
.fortune-guide-avatar--initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a050ff, #ff4fd8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.fortune-guide-info { text-align: left; }
.fortune-guide-label {
  font-size: 10px;
  color: rgba(160,80,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fortune-guide-name {
  font-size: 14px;
  font-weight: 700;
}
.fortune-text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,248,231,0.92);
  margin-bottom: 18px;
  font-style: italic;
}
.fortune-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fortune-energy {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fortune-energy span { color: rgba(160,80,255,0.9); font-weight: 700; }
.fortune-share-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(160,80,255,0.4);
  background: rgba(160,80,255,0.12);
  color: rgba(255,248,231,0.9);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}
.fortune-share-btn:hover {
  background: rgba(160,80,255,0.25);
  border-color: rgba(160,80,255,0.7);
}


/* ── Battle Share Popup ──────────────────────────────────────────── */
.share-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (min-width: 540px) {
  .share-popup { align-items: center; }
}
.share-popup--open { opacity: 1; }
.share-popup__inner {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 24px 20px 28px;
  transform: translateY(24px);
  transition: transform 0.25s cubic-bezier(0.32,0.72,0,1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 540px) {
  .share-popup__inner {
    border-radius: 20px;
    transform: scale(0.95);
  }
}
.share-popup--open .share-popup__inner {
  transform: translateY(0);
}
@media (min-width: 540px) {
  .share-popup--open .share-popup__inner { transform: scale(1); }
}
.share-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share-popup__header strong { font-size: 15px; }
.share-popup__close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.share-popup__close:hover { background: rgba(255,255,255,0.15); }
.share-popup__preview {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 12px;
  white-space: pre-wrap;
  line-height: 1.5;
  max-height: 100px;
  overflow-y: auto;
}
.share-popup__tags { display: flex; flex-direction: column; gap: 8px; }
.share-popup__tags-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.share-tag-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s ease;
}
.share-tag-label:hover { background: rgba(255,255,255,0.04); }
.share-tag-label input { margin-top: 2px; accent-color: var(--yellow); flex-shrink: 0; }
.share-tag-group-name {
  font-size: 13px;
  font-weight: 700;
  min-width: 110px;
  flex-shrink: 0;
}
.share-tag-values {
  font-size: 12px;
  color: rgba(255,212,71,0.7);
  line-height: 1.4;
}
.share-popup__submit { width: 100%; }

/* ── Lods Creator Booth ──────────────────────────────────────────── */
.booth-card {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.booth-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed rgba(255,212,71,0.3);
  border-radius: 20px;
  padding: 40px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255,212,71,0.04);
}
.booth-upload-area:hover {
  border-color: rgba(255,212,71,0.6);
  background: rgba(255,212,71,0.08);
}
.booth-upload-icon { font-size: 40px; }
.booth-upload-text { font-weight: 700; font-size: 16px; }
.booth-upload-hint { font-size: 12px; color: var(--muted); }
.booth-preview-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  max-height: 320px;
}
.booth-preview-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  max-height: 320px;
}
.booth-change-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.booth-effects-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
/* ── Booth story reel card ───────────────────────────────────────────────── */
/* Strip wrapper */
.booth-reel-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.booth-reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px 24px;
  border-radius: 22px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  text-align: center;
  min-height: 160px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s, filter 0.2s, transform 0.2s;
}
/* All 3 cards equal width */
.booth-reel-card { flex: 1; }
/* Side cards: same size, not interactive */
.booth-reel-card.side {
  pointer-events: none;
  opacity: 0.55;
}
.booth-reel-card.spinning {
  border-color: var(--pink);
  background: rgba(255,79,216,0.07);
}
.booth-reel-card.landed-featured {
  border-color: var(--pink);
  background: rgba(255,79,216,0.1);
  box-shadow: 0 0 30px rgba(255,79,216,0.3);
  animation: cardLand 0.45s ease-out;
}
.booth-reel-card.landed-lucky {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.1);
  box-shadow: 0 0 34px rgba(255,212,71,0.4);
  animation: cardLand 0.45s ease-out;
}
@keyframes cardLand {
  0%   { transform: scale(1.05); }
  65%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}
.booth-reel-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 10px; font-weight: 800;
  padding: 3px 12px; border-radius: 10px;
  white-space: nowrap; opacity: 0;
  transition: opacity 0.25s;
}
.booth-reel-card.landed-featured .booth-reel-badge { opacity: 1; background: linear-gradient(90deg,#ff4fd8,#6236ff); color: #fff; }
.booth-reel-card.landed-lucky    .booth-reel-badge { opacity: 1; background: linear-gradient(90deg,#ffd447,#ff9500); color: #1a0800; }

/* Big unique emojis — the visual differentiator */
.booth-reel-emojis {
  font-size: 36px;
  line-height: 1;
  letter-spacing: 4px;
  display: block;
  min-height: 44px;
}
/* Short all-caps keyword — scannable at spin speed */
.booth-reel-keyword {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
}
.booth-reel-story {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  max-width: 260px;
}
.booth-reel-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
}
.booth-reel-tag.selfie-tag {
  background: rgba(255,212,71,0.18);
  color: var(--yellow);
}
.booth-effect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 20px 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.booth-effect-btn:hover {
  border-color: rgba(255,212,71,0.4);
  background: rgba(255,212,71,0.06);
  transform: translateY(-2px);
}
.booth-effect-btn.active {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.12);
  box-shadow: 0 0 16px rgba(255,212,71,0.25);
}
.booth-effect-btn.reel-hidden {
  display: none;
}
/* Chase light during spin */
.booth-effect-btn.spin-lit {
  border-color: var(--pink) !important;
  background: rgba(255,79,216,0.18) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 22px rgba(255,79,216,0.55) !important;
  z-index: 1;
}
.booth-effect-icon { font-size: 28px; }
.booth-effect-name { font-size: 12px; font-weight: 700; text-align: center; }
.booth-effect-story {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  font-style: italic;
  line-height: 1.35;
  max-width: 130px;
  display: block;
}

/* ── Effect badges (Featured / Lucky) ───────────────────────────────────── */
.booth-effect-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.booth-effect-btn { position: relative; }
.booth-effect-btn.featured .booth-effect-badge {
  opacity: 1;
  background: linear-gradient(90deg, #ff4fd8, #6236ff);
  color: #fff;
  box-shadow: 0 0 8px rgba(255,79,216,0.6);
}
.booth-effect-btn.lucky .booth-effect-badge {
  opacity: 1;
  background: linear-gradient(90deg, #ffd447, #ff9500);
  color: #1a0a00;
  box-shadow: 0 0 12px rgba(255,212,71,0.7);
}

/* Featured glow */
.booth-effect-btn.featured {
  border-color: rgba(255,79,216,0.7);
  background: rgba(255,79,216,0.1);
  box-shadow: 0 0 18px rgba(255,79,216,0.25), inset 0 0 8px rgba(255,79,216,0.1);
  animation: featuredPulse 1.8s ease-in-out infinite;
}
.booth-effect-btn.lucky {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.12);
  box-shadow: 0 0 24px rgba(255,212,71,0.35), inset 0 0 10px rgba(255,212,71,0.12);
  animation: luckyPulse 1.4s ease-in-out infinite;
}
.booth-effect-btn.featured.active,
.booth-effect-btn.lucky.active {
  border-color: var(--yellow);
}

@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255,79,216,0.25); }
  50%       { box-shadow: 0 0 30px rgba(255,79,216,0.5); }
}
@keyframes luckyPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255,212,71,0.35); }
  50%       { box-shadow: 0 0 40px rgba(255,212,71,0.65); }
}


/* ── Spin row ────────────────────────────────────────────────────────────── */
.booth-spin-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.booth-spin-btn,
.booth-lucky-spin-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.booth-spin-btn {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text);
}
.booth-spin-btn:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-1px);
}
.booth-lucky-spin-btn {
  background: linear-gradient(135deg, #ffd447 0%, #ff9500 100%);
  color: #1a0800;
  box-shadow: 0 4px 16px rgba(255,212,71,0.3);
}
.booth-lucky-spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255,212,71,0.45);
}
.booth-lucky-spin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.booth-spin-cost {
  opacity: 0.7;
  font-size: 11px;
  margin-left: 4px;
}
.booth-spin-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
  font-style: italic;
  min-height: 16px;
  transition: color 0.3s ease;
}
.booth-spin-hint.highlighted {
  color: var(--yellow);
}


.booth-generate-btn { width: 100%; }
.booth-cost { opacity: 0.7; font-size: 13px; }
.booth-loading {
  text-align: center;
  padding: 24px 0;
}
.booth-loading-orb {
  font-size: 44px;
  animation: crownBounce 0.7s ease-in-out infinite alternate;
  display: block;
  margin-bottom: 12px;
}
.booth-loading-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.booth-loading-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto;
}
.booth-loading-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--pink));
  border-radius: 4px;
  width: 0%;
  transition: width 0.8s ease;
}
.booth-video {
  width: 100%;
  border-radius: 16px;
  background: #000;
  max-height: 400px;
}
.booth-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.booth-result-actions .btn { flex: 1; justify-content: center; }
.booth-watermark-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ── Verified Lods Badge ─────────────────────────────────────────── */
.stub-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.08));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fcd34d;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 8px;
  animation: stubPulse 3s ease-in-out infinite;
}
@keyframes stubPulse {
  0%, 100% { border-color: rgba(245,158,11,0.35); }
  50%       { border-color: rgba(245,158,11,0.7); }
}
.lod-card--stub { opacity: 0.92; }
.stat-pill--new {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.3);
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a0a2e;
  background: linear-gradient(135deg, var(--yellow), #ffaa00);
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(255,212,71,0.4);
  flex-shrink: 0;
}

/* ── Hero avatar + badge ─────────────────────────────────────────── */
.hero__user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 30px;
  transition: background .2s;
}
.hero__user:hover { background: rgba(255,255,255,.08); }
.hero__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero__user-info { display: flex; flex-direction: column; line-height: 1.2; }
.hero__user-name { font-size: .85rem; font-weight: 700; color: #fff; }
.hero__user-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 2px;
  align-self: flex-start;
}
.hero__user-badge--lod    { background: linear-gradient(135deg,var(--yellow),#ffaa00); color: #1a0a2e; }
.hero__user-badge--member { background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); }
.hero__candy-count        { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 1px; }

/* ── Profile Page Overlay ────────────────────────────────────────── */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10,5,30,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-page {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  padding: 0 0 calc(80px + env(safe-area-inset-bottom));
  animation: profileSlideUp .3s ease;
}
@keyframes profileSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.profile-page__handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin: 12px auto 0;
}
.profile-page__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 16px;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.profile-page__close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.1);
  border: none; color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%; font-size: 18px;
  cursor: pointer; line-height: 1;
}
.profile-avatar-wrap {
  position: relative;
  width: 80px; height: 80px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  color: #fff; font-size: 13px;
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.profile-badge-row {
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.profile-badge {
  font-size: .75rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
}
.profile-badge--lod    { background: linear-gradient(135deg,var(--yellow),#ffaa00); color: #1a0a2e; }
.profile-badge--member { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.15); }
.profile-display-name  { font-size: 1.1rem; font-weight: 800; color: #fff; }
.profile-username      { font-size: .8rem; color: rgba(255,255,255,.5); }
.profile-candy-count   { font-size: .8rem; color: var(--yellow); font-weight: 700; }

.profile-page__body { padding: 0 20px; }
.profile-section {
  margin-top: 20px;
}
.profile-section__label {
  font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 8px;
}
.profile-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px;
}
.profile-field label {
  font-size: .78rem; color: rgba(255,255,255,.5); font-weight: 600;
}
.profile-field input,
.profile-field textarea,
.profile-field select {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff; font-size: .9rem;
  padding: 10px 14px;
  width: 100%; box-sizing: border-box;
  font-family: inherit;
}
.profile-field textarea { resize: vertical; min-height: 72px; }
.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus {
  outline: none; border-color: var(--accent);
  background: rgba(255,255,255,.1);
}
.profile-field select option { background: #1a0a2e; }
.profile-save-btn {
  width: 100%; margin-top: 20px;
}
.profile-fav-lod {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 14px;
  cursor: pointer; transition: background .2s;
}
.profile-fav-lod:hover { background: rgba(255,255,255,.1); }
.profile-fav-lod__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden; flex-shrink: 0;
}
.profile-fav-lod__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-fav-lod__name { font-size: .9rem; font-weight: 700; color: #fff; }
.profile-fav-lod__sub  { font-size: .75rem; color: rgba(255,255,255,.4); }

/* ── Creator Booth: selfie + source row ─────────────────────────── */
.booth-source-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.booth-source-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 2px dashed rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.booth-source-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,.1);
}
.booth-source-btn--snap {
  flex: 2;
  border-style: solid;
  border-color: var(--yellow);
  background: rgba(255,212,71,.12);
}
.booth-source-btn--cancel {
  flex: 1;
  border-style: solid;
  border-color: rgba(255,255,255,.2);
}

.booth-selfie-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.booth-selfie-video {
  width: 100%;
  max-height: 320px;
  border-radius: 16px;
  object-fit: cover;
  background: #000;
  transform: scaleX(-1); /* mirror for selfie feel */
}
.booth-selfie-controls {
  display: flex;
  gap: 10px;
}

.booth-selfie-tip {
  background: rgba(255,212,71,.1);
  border: 1px solid rgba(255,212,71,.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .82rem;
  color: var(--yellow);
  margin-bottom: 10px;
}

.booth-effect-tag {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}
.booth-effect-tag--selfie {
  background: rgba(255,212,71,.2);
  color: var(--yellow);
}
.booth-effect-btn.selfie-dimmed {
  opacity: .45;
}

/* ── Scout: Claim wrap ───────────────────────────────────────────── */
.scout-claim-wrap {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(167, 139, 250, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 14px;
  text-align: center;
}
.scout-claim-btn {
  width: 100%;
  margin-bottom: 8px;
}
.scout-claim-hint {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.btn--claim {
  background: linear-gradient(135deg, rgba(167,139,250,.2), rgba(167,139,250,.1));
  border: 1px solid rgba(167,139,250,.4);
  color: #c4b5fd;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn--claim:hover {
  background: rgba(167,139,250,.25);
  border-color: rgba(167,139,250,.7);
  color: #fff;
}

/* ── Claim modal ─────────────────────────────────────────────────── */
.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}

/* ── Profile logout button ───────────────────────────────────────── */
.profile-logout-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 12px 20px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 79, 108, 0.25);
  background: rgba(255, 79, 108, 0.08);
  color: rgba(255, 79, 108, 0.7);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.profile-logout-btn:hover {
  background: rgba(255, 79, 108, 0.18);
  color: #ff4f6c;
}

/* ── Fortune Share Modal ─────────────────────────────────────────────── */
.fortune-share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3,0,13,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fortune-share-modal {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 28px;
  max-width: 560px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.fortune-share-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.4rem; color: var(--muted);
  cursor: pointer; line-height: 1;
}
.fortune-share-modal__hint {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
.fortune-share-modal__img {
  width: 100%;
  max-height: 42vw;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
}
.fortune-share-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-modal-note {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}
.share-modal-url {
  font-size: .7rem;
  color: rgba(255,255,255,.25);
  text-align: center;
  word-break: break-all;
  margin: 0;
}
.share-copy-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-copy-label {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}
.share-copy-text {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: .85rem;
  line-height: 1.5;
  padding: 10px 12px;
  resize: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.share-copy-btn {
  align-self: flex-end;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.share-copy-btn:hover { background: rgba(255,255,255,0.15); }

/* ── Version Stamp ───────────────────────────────────────────────────── */
.site-version {
  text-align: center;
  padding: 12px 0 20px;
  font-size: .7rem;
  color: rgba(246,207,255,0.25);
  letter-spacing: .04em;
  font-family: monospace;
}

/* ── Floating Candy HUD ──────────────────────────────────────────────── */
.candy-hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(19, 5, 47, 0.88);
  border: 1px solid rgba(255, 212, 71, 0.45);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--yellow);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(255, 212, 71, 0.2), 0 0 0 1px rgba(255,212,71,.1);
  cursor: default;
  transition: opacity .3s, transform .3s;
  animation: hudPop .35s cubic-bezier(.34,1.56,.64,1) both;
}
.candy-hud__icon { font-size: 1.1em; }
.candy-hud__label { font-size: .75em; opacity: .65; font-weight: 600; }
@keyframes hudPop {
  from { opacity: 0; transform: translateY(12px) scale(.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Camera Flash ────────────────────────────────────────────────────── */
.camera-flash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity .1s;
}
.camera-flash.active {
  animation: cameraFlash .38s ease-out forwards;
}
@keyframes cameraFlash {
  0%   { opacity: .9; }
  40%  { opacity: .6; }
  100% { opacity: 0; }
}

/* ── Lods Level Checker ──────────────────────────────────────────────── */
.lods-level-section { text-align: center; }
.lods-level-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}
.lods-level-trigger { font-size: 1rem; padding: 14px 32px; }
.lods-level-scan,
.lods-level-result {
  width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 24px;
}
.lods-level-scan__label {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 1.2em;
}
.lods-level-scan__bar,
.lods-level-result__bar {
  height: 14px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.lods-level-scan__fill,
.lods-level-result__bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--aqua);
  transition: width .32s ease-out, background .4s;
}
.lods-level-result__num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -2px;
}
.lods-level-result__tier {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lods-level-result__bar { margin-bottom: 16px; }
.lods-level-result__desc {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 20px;
  font-style: italic;
}
.lods-level-result__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Quote Card Maker ─────────────────────────────────────────────── */
.quote-maker { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.quote-maker__controls { display: flex; flex-direction: column; gap: 10px; }
.quote-maker__input {
  width: 100%; background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; resize: vertical;
  line-height: 1.6;
}
.quote-maker__input:focus, .quote-maker__theme:focus, .quote-maker__name:focus {
  outline: none; border-color: rgba(255,212,71,0.5);
}
.quote-maker__row { display: flex; gap: 10px; align-items: stretch; }
.quote-maker__theme {
  flex: 1; background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-family: inherit;
}
.quote-maker__name {
  width: 100%; background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-family: inherit;
}
.quote-maker__gen { flex-shrink: 0; padding: 10px 18px; font-size: 13px; }
.quote-maker__preview-wrap {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.quote-maker__canvas { width: 100%; height: auto; display: block; }
.quote-maker__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.quote-maker__photo-label {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1.5px dashed rgba(255,255,255,0.25);
  border-radius: 12px; padding: 12px 16px; cursor: pointer;
  color: rgba(255,245,254,0.7); font-size: 13px; transition: background 0.2s, border-color 0.2s;
}
.quote-maker__photo-label:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,200,255,0.5); }

.quote-maker__photo-preview {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px 14px;
}
.quote-maker__photo-preview img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
  border: 1.5px solid rgba(255,200,255,0.3);
}
.quote-maker__photo-remove {
  background: rgba(255,80,80,0.15); border: 1px solid rgba(255,80,80,0.3);
  color: #ff8888; border-radius: 8px; padding: 6px 12px; font-size: 12px;
  cursor: pointer; transition: background 0.2s;
}
.quote-maker__photo-remove:hover { background: rgba(255,80,80,0.3); }

/* ═══════════════════════════════════════════════════════════════════════
   LODS CINEMATIC INTRO
═══════════════════════════════════════════════════════════════════════ */

.intro-section { }

/* Drop zone */
.intro-drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 28px 20px; border-radius: 18px;
  border: 2px dashed rgba(255,255,255,0.2); background: rgba(255,255,255,0.03);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.intro-drop-zone:hover, .intro-drop-zone.drag-over {
  border-color: var(--pink); background: rgba(255,79,216,0.06);
}
.intro-drop-icon { font-size: 36px; line-height: 1; }
.intro-drop-label { font-size: 15px; font-weight: 700; color: var(--text); }
.intro-drop-hint { font-size: 12px; color: var(--muted); }

/* Photo grid */
.intro-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; margin-top: 12px;
}
.intro-photo-thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}
.intro-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-photo-thumb__remove {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; line-height: 1;
}
.intro-photo-count {
  font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px;
}

/* Vibe section */
.intro-vibe-section { margin-top: 20px; }

/* ── Polaroid card reel ── */
.intro-reel-strip {
  display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px;
}
.intro-reel-card {
  position: relative; flex: 1; display: flex; flex-direction: column;
  border-radius: 4px 4px 4px 4px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4), 0 0 0 2px rgba(255,255,255,0.15);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  background: #fff;
  min-width: 0;
}
.intro-reel-card:nth-child(1) { transform: rotate(-2.5deg); }
.intro-reel-card:nth-child(2) { transform: rotate(0deg); }
.intro-reel-card:nth-child(3) { transform: rotate(2deg); }
.intro-reel-card.side { pointer-events: none; opacity: 0.5; }
.intro-reel-card.spinning { box-shadow: 0 0 20px rgba(255,79,216,0.5); }
.intro-reel-card.landed-featured {
  box-shadow: 0 0 32px rgba(255,79,216,0.6), 0 6px 20px rgba(0,0,0,0.4);
  animation: polaroidLand 0.45s ease-out;
}
.intro-reel-card.landed-lucky {
  box-shadow: 0 0 34px rgba(255,212,71,0.7), 0 6px 20px rgba(0,0,0,0.4);
  animation: polaroidLand 0.45s ease-out;
}
@keyframes polaroidLand {
  0%   { transform: rotate(0deg) scale(1.06); }
  40%  { transform: rotate(-1.5deg) scale(0.98); }
  70%  { transform: rotate(1deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Photo area — full card image zone */
.intro-polaroid-photo {
  width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; min-height: 72px;
  background: linear-gradient(135deg, #1a0440, #4a0020);
  position: relative;
  overflow: hidden;
}

/* 📷 camera icon — top right */
.intro-polaroid-photo::before {
  content: '📷';
  font-size: 13px;
  position: absolute;
  top: 6px; right: 7px;
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

/* Centered text overlay — keyword + desc stacked */
.intro-polaroid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 8px 8px; /* top pad clears the camera icon */
  pointer-events: none;
  z-index: 2;
}
.intro-polaroid-overlay__keyword {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.5);
}
.intro-polaroid-overlay__desc {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-align: center;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  max-width: 90%;
}

/* White strip at bottom — slim, emoji only */
.intro-polaroid-strip {
  background: #fff;
  padding: 4px 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.intro-polaroid-emoji { font-size: 15px; line-height: 1; }
.intro-polaroid-keyword { display: none; } /* rendered in overlay instead */
.intro-polaroid-desc {
  font-size: 8px; color: #555; text-align: center; line-height: 1.2;
}
.intro-polaroid-badge {
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; font-weight: 800; padding: 2px 10px; border-radius: 8px;
  white-space: nowrap; opacity: 0; transition: opacity 0.25s;
  background: linear-gradient(90deg,#ff4fd8,#6236ff); color: #fff;
}
.intro-reel-card.landed-featured .intro-polaroid-badge,
.intro-reel-card.landed-lucky    .intro-polaroid-badge { opacity: 1; }

/* Result */
.intro-result video { width: 100%; border-radius: 16px; margin-bottom: 12px; }
.intro-result-fallback { padding: 12px; background: rgba(255,255,255,0.05); border-radius: 12px; }


/* ═══════════════════════════════════════════════════════════════════════
   LODS THEME SONG
═══════════════════════════════════════════════════════════════════════ */

.song-section { }

.song-card { }

/* Creator name input */
.song-creator-input { margin-bottom: 20px; }
.song-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--muted); margin-bottom: 8px; letter-spacing: 0.05em;
}
.song-creator-name {
  width: 100%; padding: 12px 16px; border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06);
  color: var(--text); font-size: 16px; font-family: inherit;
  outline: none; transition: border-color 0.2s;
  box-sizing: border-box;
}
.song-creator-name:focus { border-color: var(--pink); }
.song-creator-name::placeholder { color: rgba(255,255,255,0.3); }

/* Record / vinyl card reel */
.song-reel-strip { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; }
.song-reel-card {
  position: relative; flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 16px 8px 14px;
  border-radius: 16px; border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); text-align: center;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s, border-color 0.2s;
}
.song-reel-card.side { pointer-events: none; opacity: 0.5; }
.song-reel-card.spinning { border-color: var(--pink); }
.song-reel-card.landed-featured {
  border-color: var(--pink);
  box-shadow: 0 0 28px rgba(255,79,216,0.4);
  animation: cardLand 0.45s ease-out;
}
.song-reel-card.landed-lucky {
  border-color: var(--yellow);
  box-shadow: 0 0 32px rgba(255,212,71,0.5);
  animation: cardLand 0.45s ease-out;
}

/* Vinyl record */
.song-record {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0d0d0d 60%, #1a1a1a 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 6px rgba(255,255,255,0.04),
    inset 0 0 0 14px rgba(255,255,255,0.03),
    inset 0 0 0 22px rgba(255,255,255,0.02),
    inset 0 0 0 30px rgba(255,255,255,0.015);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  transition: transform 0.1s;
}
.song-reel-card.spinning .song-record {
  animation: recordSpin 0.3s linear infinite;
}
@keyframes recordSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Center label on the record */
.song-record-label {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 1;
  /* label_color set via inline style from JS */
}
.song-record-emoji { font-size: 14px; line-height: 1; }

.song-record-badge {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 9px; font-weight: 800; padding: 2px 10px; border-radius: 8px;
  white-space: nowrap; opacity: 0; transition: opacity 0.25s;
}
.song-reel-card.landed-featured .song-record-badge { opacity: 1; background: linear-gradient(90deg,#ff4fd8,#6236ff); color: #fff; }
.song-reel-card.landed-lucky    .song-record-badge { opacity: 1; background: linear-gradient(90deg,#ffd447,#ff9500); color: #1a0800; }

.song-record-keyword {
  font-size: 11px; font-weight: 900; letter-spacing: 0.1em;
  color: var(--yellow); text-transform: uppercase; line-height: 1.1;
}
.song-record-desc {
  font-size: 9px; color: var(--muted); line-height: 1.3;
}

/* Audio player */
.song-player {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.05); margin-bottom: 16px;
}
.song-player-disc {
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0d0d0d 60%, #1a1a1a 100%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.1),
    inset 0 0 0 8px rgba(255,255,255,0.04),
    inset 0 0 0 20px rgba(255,255,255,0.03),
    inset 0 0 0 35px rgba(255,255,255,0.02);
  display: flex; align-items: center; justify-content: center;
  animation: recordSpin 3s linear infinite paused;
}
.song-player-disc.playing { animation-play-state: running; }

/* Disc animation variety by genre energy */
.song-player-disc.disc-spin-fast  { animation: recordSpin 1.2s linear infinite paused; }
.song-player-disc.disc-spin-slow  { animation: recordSpin 5s linear infinite paused; }
.song-player-disc.disc-spin-medium{ animation: recordSpin 3s linear infinite paused; }
.song-player-disc.disc-pulse      { animation: discPulse 1.8s ease-in-out infinite paused; }
.song-player-disc.disc-bounce     { animation: discBounce 0.9s ease-in-out infinite paused; }
.song-player-disc.disc-spin-fast.playing,
.song-player-disc.disc-spin-slow.playing,
.song-player-disc.disc-spin-medium.playing,
.song-player-disc.disc-pulse.playing,
.song-player-disc.disc-bounce.playing { animation-play-state: running; }

@keyframes discPulse {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(90deg) scale(1.06); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes discBounce {
  0%   { transform: rotate(0deg) translateY(0); }
  30%  { transform: rotate(108deg) translateY(-6px); }
  60%  { transform: rotate(216deg) translateY(0); }
  80%  { transform: rotate(288deg) translateY(-3px); }
  100% { transform: rotate(360deg) translateY(0); }
}
.song-player-disc .song-record-label {
  width: 40px; height: 40px; font-size: 20px;
}
.song-player-info { text-align: center; }
.song-player-title {
  font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 4px;
}
.song-player-genre-tag {
  font-size: 12px; color: var(--muted); margin: 0;
}
.song-audio { width: 100%; border-radius: 8px; }
.song-result { }

/* Fortune locked state for guests */
.fortune-orb-wrap.locked { opacity: 0.5; pointer-events: none; filter: grayscale(0.4); }
.fortune-lock-hint {
  text-align: center; font-size: 13px; color: var(--muted);
  margin-top: 8px; margin-bottom: 0;
}

/* Song reel card — boost contrast so the vinyl is always visible */
.song-reel-card {
  background: rgba(255,255,255,0.07) !important;
  border: 2px solid rgba(255,255,255,0.15) !important;
}
.song-reel-card.side { background: rgba(255,255,255,0.04) !important; }

/* ── Lods Studio Section ─────────────────────────────────────────────── */
.studio-section {
  position: relative;
  background: linear-gradient(145deg, rgba(98, 54, 255, 0.18), rgba(255, 79, 216, 0.12), rgba(70, 255, 200, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  padding: 36px 28px 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Neon title flicker */
.studio-neon-title {
  margin: 6px 0 2px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.studio-neon-title .nl {
  display: inline-block;
  color: var(--aqua);
  text-shadow:
    0 0 6px var(--aqua),
    0 0 20px var(--aqua),
    0 0 40px rgba(61, 227, 255, 0.5);
  animation: neon-flicker 3s infinite;
}
/* Stagger each letter's flicker phase */
.studio-neon-title .nl:nth-child(1)  { animation-delay: 0.0s; }
.studio-neon-title .nl:nth-child(2)  { animation-delay: 0.4s; }
.studio-neon-title .nl:nth-child(3)  { animation-delay: 0.8s; }
.studio-neon-title .nl:nth-child(4)  { animation-delay: 0.2s; }
.studio-neon-title .nl:nth-child(6)  { animation-delay: 1.1s; }
.studio-neon-title .nl:nth-child(7)  { animation-delay: 0.6s; }
.studio-neon-title .nl:nth-child(8)  { animation-delay: 0.3s; }
.studio-neon-title .nl:nth-child(9)  { animation-delay: 0.9s; }
.studio-neon-title .nl:nth-child(10) { animation-delay: 1.4s; }
.studio-neon-title .nl:nth-child(11) { animation-delay: 0.1s; }

@keyframes neon-flicker {
  0%,  18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 6px var(--aqua), 0 0 20px var(--aqua), 0 0 40px rgba(61,227,255,0.5); }
  20%, 24%                            { opacity: 0.4; text-shadow: none; }
  55%                                 { opacity: 0.7; text-shadow: 0 0 3px var(--aqua); }
}

/* Jeepney flyby */
.studio-jeepney {
  position: absolute;
  top: 18px;
  right: -320px;           /* starts off-screen right */
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  transition: none;
}
.studio-jeepney.fly {
  animation: jeepney-fly 2.8s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}
.jeepney-body { font-size: 36px; display: inline-block; }
.jeepney-sign {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  color: #1a0800;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.jeepney-puff {
  font-size: 20px;
  opacity: 0;
  animation: puff-appear 0.4s 1.6s ease forwards;
}
@keyframes jeepney-fly {
  0%   { right: -320px; opacity: 0; }
  10%  { opacity: 1; }
  45%  { right: calc(50% - 120px); }        /* slows to a "stop" */
  65%  { right: calc(50% - 120px); }        /* holds briefly */
  100% { right: 110%; opacity: 0.6; }       /* drifts off left */
}
@keyframes puff-appear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* Studio tab pills */
.studio-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 20px;
}
.studio-tab {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  animation: tab-bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.studio-tab:nth-child(1) { animation-delay: 0.05s; }
.studio-tab:nth-child(2) { animation-delay: 0.13s; }
.studio-tab:nth-child(3) { animation-delay: 0.21s; }
.studio-tab:nth-child(4) { animation-delay: 0.29s; }
@keyframes tab-bounce-in {
  from { opacity: 0; transform: translateY(14px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.studio-tab:hover { transform: scale(1.05) rotate(-1deg); }
.studio-tab.active {
  background: linear-gradient(135deg, var(--aqua), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 227, 255, 0.35);
  animation: tab-pulse 2.4s ease-in-out infinite;
}
@keyframes tab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(61, 227, 255, 0.35); }
  50%       { box-shadow: 0 8px 36px rgba(61, 227, 255, 0.6), 0 0 0 3px rgba(61, 227, 255, 0.15); }
}

/* Studio panels */
.studio-panel { margin-top: 4px; }
.studio-panel[hidden] { display: none !important; }

/* Re-animate tab bounce when section enters viewport */
.studio-section.studio-entered .studio-tab {
  animation-play-state: running;
}

/* Inactive tab gold twinkle shimmer */
.studio-tab:not(.active) {
  position: relative;
  overflow: hidden;
}
.studio-tab:not(.active)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 25%,
    rgba(255, 212, 71, 0.22) 48%,
    rgba(255, 230, 120, 0.28) 52%,
    transparent 75%
  );
  transform: translateX(-150%);
  animation: tab-twinkle 5s ease-in-out infinite;
  pointer-events: none;
}
.studio-tab:not(.active):nth-child(2)::after { animation-delay: 1.2s; }
.studio-tab:not(.active):nth-child(3)::after { animation-delay: 2.4s; }
.studio-tab:not(.active):nth-child(4)::after { animation-delay: 3.6s; }
@keyframes tab-twinkle {
  0%, 60%, 100% { transform: translateX(-150%); }
  80%            { transform: translateX(150%); }
}

/* ── Booth sample video teaser ───────────────────────────────────────── */
.booth-sample-teaser {
  margin-bottom: 20px;
}
.booth-sample-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 212, 71, 0.08);
  border: 1px dashed rgba(255, 212, 71, 0.45);
  color: var(--yellow);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.booth-sample-toggle:hover {
  background: rgba(255, 212, 71, 0.16);
  transform: translateY(-1px);
}
.booth-sample-wrap {
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.3);
}
.booth-sample-video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border-radius: 20px 20px 0 0;
}
.booth-sample-caption {
  margin: 0;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.04);
}

/* ── Studio tab particle burst ───────────────────────────────────────── */
.studio-particle {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  animation: particle-fly 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: center;
  user-select: none;
  line-height: 1;
}
@keyframes particle-fly {
  0%   { transform: translate(0, 0) scale(1);   opacity: 1; }
  70%  { opacity: 0.9; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.4); opacity: 0; }
}

/* ── G-1: Candy urgency stat states ─────────────────────────────────── */
.hero__stat.stat--urgent strong { color: var(--yellow); }
.hero__stat.stat--urgent {
  animation: stat-pulse-amber 1.4s ease-in-out infinite;
}
.hero__stat.stat--crash strong { color: var(--red); }
.hero__stat.stat--crash {
  animation: stat-pulse-red 0.9s ease-in-out infinite;
}
@keyframes stat-pulse-amber {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
@keyframes stat-pulse-red {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── G-2: Vote streak badge ──────────────────────────────────────────── */
.hero__streak-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255, 212, 71, 0.12);
  border: 1px solid rgba(255, 212, 71, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 3px;
  animation: streak-glow 2s ease-in-out infinite;
}
@keyframes streak-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,212,71,0); }
  50%       { box-shadow: 0 0 12px rgba(255,212,71,0.45); }
}

/* Streak fire particles */
.streak-fire-particle {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  animation: streak-fire-rise 0.9s ease-out forwards;
}
@keyframes streak-fire-rise {
  0%   { transform: translate(0, 0) scale(1);   opacity: 1; }
  100% { transform: translate(var(--fdx, 0), -55px) scale(0.3); opacity: 0; }
}

/* ── G-2: Streak toast ───────────────────────────────────────────────── */
.streak-toast {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  width: fit-content;
  max-width: min(440px, calc(100vw - 32px));
  margin: 0 auto;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(20,6,48,0.97), rgba(30,8,60,0.97));
  border: 1px solid rgba(255,212,71,0.5);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,212,71,0.15);
  transform: translateY(120px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  box-sizing: border-box;
}
.streak-toast--visible {
  transform: translateY(0);
  opacity: 1;
  animation: toast-border-pulse 2s ease-in-out infinite;
}
@keyframes toast-border-pulse {
  0%, 100% { border-color: rgba(255,212,71,0.5); }
  50%       { border-color: rgba(255,212,71,0.9); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(255,212,71,0.2); }
}
.streak-toast__fire { font-size: 28px; flex-shrink: 0; }
.streak-toast__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.streak-toast__body strong { font-size: 14px; color: var(--yellow); }
.streak-toast__body span   { font-size: 12px; color: var(--muted); }
.streak-toast__cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--yellow), #ffb800);
  color: #1a0800;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.streak-toast__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

/* ── Get Candy modal ─────────────────────────────────────────────────── */
.get-candy-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.get-candy-modal--visible { opacity: 1; pointer-events: auto; }
.get-candy-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
}
.get-candy-modal__sheet {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #1e0b36 0%, #140828 100%);
  border: 1.5px solid rgba(255,212,71,0.3);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  display: flex; flex-direction: column; gap: 12px;
}
.get-candy-modal--visible .get-candy-modal__sheet { transform: translateY(0); }
.get-candy-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.08); border: none;
  color: var(--text); font-size: 20px; line-height: 1;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.get-candy-modal__icon { font-size: 40px; text-align: center; animation: candy-bounce 1.4s ease-in-out infinite; }
@keyframes candy-bounce {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-5px) rotate(5deg); }
}
.get-candy-modal__title {
  text-align: center; font-size: 22px; font-weight: 900;
  color: var(--yellow); letter-spacing: -0.5px;
}
.get-candy-modal__reason {
  text-align: center; font-size: 13px;
  color: rgba(255,248,231,0.5); margin-top: -4px;
}
.get-candy-modal__section-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,248,231,0.45);
  margin-top: 4px;
}
.get-candy-modal__share-block {
  background: rgba(255,212,71,0.06);
  border: 1px solid rgba(255,212,71,0.15);
  border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.get-candy-modal__share-desc { font-size: 13px; color: var(--text); }
.get-candy-modal__share-desc strong { color: var(--yellow); }
.get-candy-modal__share-row { display: flex; gap: 8px; }
.get-candy-modal__url-input {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 10px; color: rgba(255,248,231,0.6);
  font-size: 12px; outline: none; min-width: 0;
}
.get-candy-modal__copy-btn {
  flex-shrink: 0; background: rgba(255,212,71,0.15);
  border: 1px solid rgba(255,212,71,0.3); color: var(--yellow);
  font-size: 13px; font-weight: 700; padding: 8px 14px;
  border-radius: 8px; cursor: pointer;
}
.get-candy-modal__earn-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, #ffd447, #ffb800);
  color: #1a0800; font-weight: 900; font-size: 15px;
  border: none; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.get-candy-modal__earn-btn:active { transform: scale(0.97); }
.get-candy-modal__earn-btn:disabled { opacity: 0.5; cursor: default; }
.get-candy-modal__earn-status { font-size: 12px; color: var(--yellow); min-height: 16px; }
.get-candy-modal__tiers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.get-candy-modal__tier {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.get-candy-modal__tier:hover,
.get-candy-modal__tier.selected {
  border-color: var(--yellow);
  background: rgba(255,212,71,0.08);
}
.get-candy-modal__tier-candy { font-size: 20px; font-weight: 900; color: var(--yellow); }
.get-candy-modal__tier-php   { font-size: 16px; font-weight: 800; color: var(--text); }
.get-candy-modal__tier-label { font-size: 10px; color: var(--muted); text-align: center; }
.get-candy-modal__gcash-note {
  font-size: 12px; color: rgba(255,248,231,0.45);
  line-height: 1.5; text-align: center;
  padding: 10px; background: rgba(0,0,0,0.2); border-radius: 10px;
}

/* ── G-3: Weekly vote count row in social proof ──────────────────────── */
.social-proof__row--votes {
  background: linear-gradient(90deg, rgba(255,212,71,0.08), transparent);
  border-left: 2px solid rgba(255,212,71,0.4);
  border-radius: 0 6px 6px 0;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.social-proof__row--votes .social-proof__value strong {
  color: var(--yellow);
}

/* ── Wallet Bar ──────────────────────────────────────────────────────── */
.wallet-bar {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(10, 2, 32, 0.96), rgba(20, 5, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,212,71,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
  transition: opacity 0.3s ease;
  /* Prevent overflow on narrow iOS screens */
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wallet-bar[hidden] { display: none !important; }

.wallet-bar__currencies {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-bar__currency {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}
.wallet-bar__icon  { font-size: 14px; line-height: 1; }
.wallet-bar__amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  min-width: 20px;
  text-align: right;
}
.wallet-bar__label { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.wallet-bar__soon  {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1px 4px;
  letter-spacing: 0.05em;
}
.wallet-bar__divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.1);
  margin: 0 2px;
}

/* Candy HUD — superseded by wallet bar, always hidden */
.candy-hud { display: none !important; }

/* Candy pill urgency states */
.wallet-bar__candy.candy--low  .wallet-bar__amount { color: var(--yellow); animation: stat-pulse-amber 1.4s ease-in-out infinite; }
.wallet-bar__candy.candy--crash .wallet-bar__amount { color: var(--red);    animation: stat-pulse-red   0.9s ease-in-out infinite; }

/* Lods stub — subtle gold tint */
.wallet-bar__lods .wallet-bar__icon  { color: var(--yellow); opacity: 0.6; }
.wallet-bar__lods .wallet-bar__amount { color: rgba(255,212,71,0.5); }

/* Konnect stub — aqua tint */
.wallet-bar__konnect .wallet-bar__amount { color: rgba(61,227,255,0.5); }

/* Sugar Rush button */
.wallet-bar__recharge {
  background: linear-gradient(135deg, var(--yellow), #ffb800);
  color: #1a0800;
  font-size: 12px;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(255,212,71,0.35);
}
.wallet-bar__recharge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,212,71,0.55);
}

/* ── Sugar Rush Recharge Modal ───────────────────────────────────────── */
.recharge-modal { max-width: 420px; }
.recharge-header { text-align: center; margin-bottom: 20px; }
.recharge-title  { margin: 4px 0 6px; font-size: 28px; }
.recharge-sub    { font-size: 13px; color: var(--muted); margin: 0; }

.recharge-gcash-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,212,71,0.08);
  border: 1px dashed rgba(255,212,71,0.35);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 18px;
}
.recharge-gcash-label { font-size: 12px; color: var(--muted); }
.recharge-gcash-num   { font-size: 18px; font-weight: 800; color: var(--yellow); letter-spacing: 0.06em; }

.recharge-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.recharge-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 14px 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  color: var(--text);
}
.recharge-tier:hover, .recharge-tier.selected {
  background: rgba(255,212,71,0.12);
  border-color: rgba(255,212,71,0.5);
  transform: translateY(-2px);
}
.recharge-tier__peso   { font-size: 22px; font-weight: 900; color: var(--yellow); }
.recharge-tier__arrow  { font-size: 11px; color: var(--muted); }
.recharge-tier__candy  { font-size: 15px; font-weight: 800; }
.recharge-tier__name   { font-size: 10px; color: var(--muted); text-align: center; }
.recharge-tier--hot {
  background: linear-gradient(135deg, rgba(255,79,100,0.12), rgba(255,79,216,0.08));
  border-color: rgba(255,79,100,0.3);
}
.recharge-tier--hot .recharge-tier__peso { color: var(--red); }

.recharge-form-wrap    { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.recharge-form-hint    { font-size: 13px; color: var(--muted); margin: 0; }
.recharge-tx-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: inherit;
  text-transform: uppercase;
}
.recharge-tx-input:focus { outline: none; border-color: var(--yellow); }
.recharge-submit-btn { width: 100%; justify-content: center; }
.recharge-back-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
}
.recharge-pending-note {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin: 12px 0 0;
}

/* ── Profile referral strip ───────────────────────────────────────────── */
.profile-referral-strip {
  background: linear-gradient(135deg, rgba(255,212,71,0.08), rgba(255,79,216,0.06));
  border: 1px solid rgba(255,212,71,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
}
.profile-referral-strip__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,248,231,0.45);
  margin-bottom: 8px;
}
.profile-referral-strip__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-referral-strip__url {
  flex: 1;
  font-size: 12px;
  color: #ffd447;
  word-break: break-all;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 6px 10px;
}
.profile-referral-strip__copy {
  background: rgba(255,212,71,0.15);
  color: #ffd447;
  border: 1px solid rgba(255,212,71,0.3);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.profile-referral-strip__hint {
  font-size: 11px;
  color: rgba(255,248,231,0.35);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Profile Network Panel ───────────────────────────────────────────── */
.profile-network-panel {
  background: linear-gradient(135deg, rgba(79,255,216,0.06), rgba(79,126,255,0.06));
  border: 1px solid rgba(79,255,216,0.2);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0 16px;
}
.profile-network-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.profile-network-panel__title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,248,231,0.8);
}
.profile-network-panel__badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(79,255,216,0.15);
  color: #4fffd8;
  border: 1px solid rgba(79,255,216,0.3);
  border-radius: 20px;
  padding: 2px 10px;
}
.profile-network-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.profile-network-stat {
  flex: 1;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.profile-network-stat__num {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff8e7;
  line-height: 1.2;
}
.profile-network-stat__label {
  display: block;
  font-size: 10px;
  color: rgba(255,248,231,0.4);
  margin-top: 2px;
}
.profile-network-recent {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-network-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 52px;
}
.profile-network-avatar__img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(79,255,216,0.3);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}
.profile-network-avatar__name {
  font-size: 9px;
  color: rgba(255,248,231,0.5);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
}
.profile-network-skeleton {
  display: none;
  padding: 4px 0;
}
.profile-network-panel.loading .profile-network-skeleton { display: block; }
.profile-network-panel.loading .profile-network-stats,
.profile-network-panel.loading .profile-network-recent { opacity: 0.3; pointer-events: none; }

/* ── Booth referral nudge ─────────────────────────────────────────────── */
.booth-referral-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,212,71,0.07);
  border: 1px solid rgba(255,212,71,0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 14px;
}
.booth-referral-nudge[hidden] { display: none !important; }
.booth-referral-nudge__icon { font-size: 20px; flex-shrink: 0; }
.booth-referral-nudge__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.booth-referral-nudge__text strong {
  font-size: 12px;
  color: #ffd447;
  font-weight: 700;
}
.booth-referral-nudge__text span {
  font-size: 11px;
  color: rgba(255,248,231,0.5);
  word-break: break-all;
}
.booth-referral-nudge__copy {
  background: rgba(255,212,71,0.15);
  border: 1px solid rgba(255,212,71,0.3);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Hero prize stat ──────────────────────────────────────────────────── */
.hero__stat--prize {
  color: var(--yellow) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: prize-pulse 3s ease-in-out infinite;
}
.hero__stat--prize strong { color: var(--yellow) !important; }
@keyframes prize-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ── Prize Banner ─────────────────────────────────────────────────────── */
.prize-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255,212,71,0.12), rgba(255,79,216,0.10));
  border: 1px solid rgba(255,212,71,0.35);
  border-radius: 16px;
  padding: 14px 20px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.prize-banner__pot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
}
.prize-banner__pot--second .prize-banner__amount { color: rgba(255,255,255,0.85); }
.prize-banner__crown { font-size: 22px; line-height: 1; }
.prize-banner__amount {
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.prize-banner__gcash {
  font-size: 11px;
  font-weight: 600;
  background: #00a8e0;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 3px;
}
.prize-banner__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.prize-banner__divider {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  padding: 0 2px;
}
.prize-banner__starbucks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
}
.prize-banner__sb-icon { font-size: 24px; line-height: 1; }
.prize-banner__sb-text {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.4;
}
.prize-banner__sb-text strong { color: #00b865; font-weight: 800; }
.prize-banner__sb-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* ── Hero tagline ────────────────────────────────────────────────────── */
.hero__tagline {
  font-size: 15px;
  font-weight: 600;
  color: #ffd447;
  margin: 4px 0 8px;
  letter-spacing: 0.01em;
}

/* ── How it Works strip ─────────────────────────────────────────────── */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.how-it-works__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  padding: 6px 14px;
}
.how-it-works__icon {
  font-size: 22px;
  line-height: 1;
}
.how-it-works__step strong {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd447;
}
.how-it-works__step span {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  max-width: 120px;
  line-height: 1.3;
}
.how-it-works__sep {
  font-size: 16px;
  color: rgba(255,255,255,0.2);
  padding: 0 2px;
}
@media (max-width: 480px) {
  .how-it-works__sep { display: none; }
  .how-it-works { gap: 4px; }
}

/* ── Hero motto ───────────────────────────────────────────────────────── */
.hero__motto {
  font-size: 13px;
  color: rgba(255,248,231,0.55);
  margin: 6px 0 14px;
  font-style: italic;
  line-height: 1.5;
}
.hero__motto-tag {
  color: #ffd447;
  font-weight: 700;
  font-style: normal;
}

/* ── LodsBoard Anthem ─────────────────────────────────────────────────── */
.anthem-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.anthem-stage {
  position: relative;
  background: linear-gradient(135deg, #0a0f2e 0%, #1a0a2e 50%, #0c173d 100%);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
}
.anthem-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,212,71,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.anthem-logo {
  font-size: 40px;
  margin-bottom: 12px;
  animation: anthem-flag-pulse 2s ease-in-out infinite;
}
@keyframes anthem-flag-pulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255,212,71,0.4)); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 20px rgba(255,212,71,0.8)); }
}
.anthem-lyric-display {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.anthem-lyric-line {
  font-size: 26px;
  font-weight: 900;
  color: #ffd447;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(255,212,71,0.5);
  transition: opacity .3s, transform .3s;
}
.anthem-lyric-line--sub {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,248,231,0.7);
  text-shadow: none;
}
.anthem-lyric-line.pop {
  animation: lyric-pop .35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes lyric-pop {
  0%   { opacity: 0; transform: scale(0.7) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.anthem-controls {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.anthem-play-btn {
  background: linear-gradient(135deg, #ffd447, #ff4fd8);
  color: #1a0a2e;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
}
.anthem-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.anthem-progress-wrap[hidden] { display: none !important; }
.anthem-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.anthem-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd447, #ff4fd8);
  width: 0%;
  transition: width .5s linear;
}
.anthem-time { font-size: 11px; color: rgba(255,248,231,0.4); flex-shrink: 0; }
.anthem-lyrics-sheet {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.anthem-verse { }
.anthem-verse-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,248,231,0.3);
  display: block;
  margin-bottom: 6px;
}
.anthem-verse p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,248,231,0.7);
}
.anthem-verse--chorus p {
  color: #ffd447;
  font-size: 15px;
  font-weight: 700;
}
.anthem-verse--bridge p { font-style: italic; }
.anthem-share-strip {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.anthem-share-btn {
  background: rgba(255,212,71,0.12);
  color: #ffd447;
  border: 1px solid rgba(255,212,71,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.anthem-hashtags {
  font-size: 12px;
  color: rgba(255,248,231,0.35);
}

/* ── Mobile layout order ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card-section { display: flex; flex-direction: column; }
  .favorites-panel { order: 1; }
  .section__header { order: 2; }
  #card-cta-banner { order: 3; }
  #lods-card-grid  { order: 4; }
  #deck-action-row { order: 5; }
}

/* ── Favorites drawer (mobile collapse) ───────────────────────────────── */
@media (max-width: 600px) {
  .favorites-panel { padding: 12px 16px; }
  .favorites-panel__header { cursor: pointer; user-select: none; margin-bottom: 0; }
  .favorites-toggle-arrow { transition: transform 0.2s; font-size: 12px; margin-left: 6px; }
  .favorites-panel.is-collapsed .favorites-toggle-arrow { transform: rotate(-90deg); }
  .favorites-panel.is-collapsed #favorites-list { display: none; }
  .favorites-panel:not(.is-collapsed) #favorites-list { margin-top: 10px; }
}

/* ── Deck header row (counter + toolbar on one line, mobile) ───────────── */
.deck-header-row { display: none; }
@media (max-width: 600px) {
  .deck-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
  }
  .deck-count-display {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }
  /* toolbar lives inside deck-header-row — remove standalone margin */
  .deck-header-row .deck-toolbar {
    margin-bottom: 0;
    flex: 1;
    justify-content: flex-end;
  }
}

/* ── Control bar: search full-width on mobile ────────────────────────── */
@media (max-width: 600px) {
  .card-control-bar { flex-direction: column; gap: 8px; }
  .card-search-wrap { width: 100%; }
  .card-search { width: 100%; box-sizing: border-box; }
}

/* ── Hide deck-nav-hint (replaced by action row) ──────────────────────── */
.deck-nav-hint { display: none !important; }

/* ── Media overlay (fullscreen video/image lightbox) ─────────────────── */
#media-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
}
#media-overlay[hidden] { display: none !important; }
#media-overlay-close {
  position: absolute; top: 16px; right: 16px;
  font-size: 28px; background: none; border: none; color: #fff; cursor: pointer;
  z-index: 1; line-height: 1;
}
#media-overlay-content video { max-width: 100vw; max-height: 90vh; border-radius: 12px; }
#media-overlay-content img   { max-width: 100vw; max-height: 90vh; border-radius: 12px; object-fit: contain; }

/* ── Media thumb (deck mode) ───────────────────────────────────────────── */
.lod-card__media.media-thumb {
  position: relative; cursor: pointer;
}
.media-thumb-empty {
  height: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
}
.media-play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  pointer-events: none;
}
.media-expand-badge {
  position: absolute; bottom: 8px; right: 8px;
  font-size: 18px; color: rgba(255,255,255,0.7);
  pointer-events: none;
}

/* ── Battle poster strip ──────────────────────────────────────────────── */
.battle-poster-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
  flex-wrap: wrap;
}
.battle-poster-strip[hidden] { display: none !important; }
.battle-poster-btn {
  background: linear-gradient(135deg, #ffd447, #ff4fd8);
  color: #1a0a2e;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.battle-poster-hint {
  font-size: 12px;
  color: rgba(255,248,231,0.4);
}

/* ── Quest Chip ─────────────────────────────────────────────────────────── */
.quest-chip {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 8500;
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(30, 40, 90, 0.92);
  border: 1px solid rgba(255, 212, 71, 0.35);
  color: rgba(255, 248, 231, 0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.15s, border-color 0.15s;
  animation: questChipIn 0.4s ease;
}
.quest-chip:hover { transform: scale(1.05); border-color: rgba(255,212,71,0.7); }
.quest-chip--ready {
  border-color: #ffd447;
  background: linear-gradient(135deg, rgba(255,212,71,0.18), rgba(255,79,216,0.12));
  animation: questChipIn 0.4s ease, questPulse 1.8s ease-in-out infinite;
  color: #ffd447;
}
@keyframes questChipIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes questPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 0 rgba(255,212,71,0.4); }
  50%     { box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 8px rgba(255,212,71,0); }
}

/* ── Quest Modal ────────────────────────────────────────────────────────── */
.quest-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end;
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.25s;
}
.quest-modal--open { opacity: 1; }
.quest-modal__sheet {
  width: 100%; max-height: 85vh; overflow-y: auto;
  background: linear-gradient(180deg, #0c1835, #08112c);
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  transform: translateY(40px); transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.quest-modal--open .quest-modal__sheet { transform: translateY(0); }
.quest-modal__header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.quest-modal__title { font-size: 18px; font-weight: 900; color: #ffd447; margin-bottom: 2px; }
.quest-modal__sub { font-size: 12px; color: rgba(255,248,231,0.4); }
.quest-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: rgba(255,248,231,0.5);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.quest-list { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 10px; }

/* Quest items */
.quest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s;
}
.quest-item--done  { border-color: rgba(255,212,71,0.25); background: rgba(255,212,71,0.05); }
.quest-item--claimed { border-color: rgba(80,220,120,0.25); background: rgba(80,220,120,0.05); opacity: 0.7; }
.quest-item--locked { opacity: 0.45; }
.quest-item__icon  { font-size: 22px; flex-shrink: 0; }
.quest-item__body  { flex: 1; min-width: 0; }
.quest-item__title { font-size: 13px; font-weight: 700; color: #fff8e7; line-height: 1.3; }
.quest-item__desc  { font-size: 11px; color: rgba(255,248,231,0.45); margin-top: 2px; }
.quest-item__cta   { font-size: 10px; color: rgba(255,212,71,0.6); margin-top: 3px; }
.quest-item__reward { flex-shrink: 0; text-align: right; }
.quest-reward--pending { font-size: 12px; color: rgba(255,248,231,0.35); }
.quest-reward--done    { font-size: 12px; color: #50dc78; font-weight: 700; }

/* ── "Sino Ang Lods Mo?" Quiz ───────────────────────────────────────────── */
.quiz-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(8,17,44,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
  padding: 20px;
}
.quiz-modal--open { opacity: 1; }
.quiz-modal__inner {
  width: 100%; max-width: 440px;
  position: relative;
  animation: quizSlideIn 0.35s ease;
}
@keyframes quizSlideIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.quiz-modal__close {
  position: absolute; top: -8px; right: -8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,248,231,0.7); font-size: 20px; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; line-height: 34px; text-align: center;
}
.quiz-body { color: #fff8e7; }
.quiz-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.quiz-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s, transform 0.2s;
}
.quiz-dot--done   { background: #50dc78; }
.quiz-dot--active { background: #ffd447; transform: scale(1.4); }
.quiz-question {
  font-size: 22px; font-weight: 900; text-align: center;
  margin-bottom: 24px; line-height: 1.3; color: #fff8e7;
}
.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.quiz-opt {
  padding: 18px 12px; border-radius: 16px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.1);
  color: #fff8e7; font-size: 15px; font-weight: 700;
  cursor: pointer; text-align: center; line-height: 1.4;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.quiz-opt:hover:not(:disabled) { border-color: rgba(255,212,71,0.5); transform: scale(1.03); }
.quiz-opt--selected {
  border-color: #ffd447;
  background: rgba(255,212,71,0.18);
  transform: scale(1.05);
}
.quiz-loading {
  text-align: center; padding: 48px 20px;
  color: rgba(255,248,231,0.6); font-size: 15px;
}
.quiz-spinner {
  width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #ffd447; border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-result { text-align: center; padding: 8px 0 16px; }
.quiz-result__label { font-size: 12px; color: rgba(255,248,231,0.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.quiz-result__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; border: 3px solid #ffd447;
  box-shadow: 0 0 24px rgba(255,212,71,0.35);
  margin-bottom: 14px;
}
.quiz-result__name { font-size: 26px; font-weight: 900; color: #ffd447; margin-bottom: 10px; }
.quiz-result__reason {
  font-size: 14px; color: rgba(255,248,231,0.75);
  line-height: 1.6; margin-bottom: 24px; font-style: italic;
}
.quiz-result__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.quiz-result__signup { font-size: 12px; color: rgba(255,248,231,0.4); margin-top: 10px; }
.quiz-result__archetype-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(255,212,71,0.15); border: 1.5px solid rgba(255,212,71,0.4);
  font-size: 13px; font-weight: 700; color: #ffd447; margin-bottom: 12px;
}
.quiz-result__retry {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-top: 12px; flex-wrap: wrap;
}
.quiz-retry-btn {
  background: none; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,248,231,0.55);
  font-size: 13px; border-radius: 20px; padding: 6px 16px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.quiz-retry-btn:hover { border-color: rgba(255,212,71,0.4); color: #ffd447; }
.quiz-tries-left { font-size: 11px; color: rgba(255,248,231,0.3); }
.quiz-candy-badge {
  display: inline-block; padding: 8px 20px; border-radius: 24px;
  background: linear-gradient(135deg, #ffd447, #ff9800);
  color: #08112c; font-weight: 900; font-size: 15px;
  margin: 8px auto 12px; box-shadow: 0 0 18px rgba(255,212,71,0.4);
}
.btn--candy {
  background: rgba(255,212,71,0.12); border: 2px solid rgba(255,212,71,0.4);
  color: #ffd447; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 14px; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%; margin-bottom: 8px;
}
.btn--candy:hover { background: rgba(255,212,71,0.22); transform: scale(1.02); }

/* ── Quiz type tabs ─────────────────────────────────────────────────────── */
.quiz-tabs {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 20px;
  flex-wrap: wrap;
}
.quiz-tab {
  padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,248,231,0.6); cursor: pointer; transition: all 0.15s;
}
.quiz-tab:hover { border-color: rgba(255,212,71,0.35); color: #ffd447; }
.quiz-tab--active {
  background: rgba(255,212,71,0.15); border-color: rgba(255,212,71,0.5);
  color: #ffd447;
}

/* ── Quiz type label (inside body) ─────────────────────────────────────── */
.quiz-type-label {
  font-size: 13px; font-weight: 700; color: rgba(255,212,71,0.7);
  text-align: center; margin-bottom: 14px; letter-spacing: .04em;
}
.quiz-type-sub { font-weight: 400; color: rgba(255,248,231,0.4); margin-left: 6px; }

/* ── 3-col options for archetype quiz ─────────────────────────────────── */
.quiz-options--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 360px) { .quiz-options--3col { grid-template-columns: 1fr 1fr; } }

/* ── Daily quiz specific ────────────────────────────────────────────────── */
.quiz-daily-avatar-wrap {
  position: relative; width: 120px; height: 120px; margin: 0 auto 16px;
}
.quiz-daily-avatar--masked {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  filter: blur(12px) brightness(0.5);
  border: 3px solid rgba(255,212,71,0.3);
}
.quiz-daily-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 900; color: rgba(255,212,71,0.8);
}
.quiz-daily-clues {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.quiz-daily-clues li {
  font-size: 13px; color: rgba(255,248,231,0.75);
  background: rgba(255,255,255,0.05); border-radius: 10px;
  padding: 10px 14px; border-left: 3px solid rgba(255,212,71,0.4);
}
.quiz-daily-reward {
  text-align: center; font-size: 13px; color: #ffd447; font-weight: 700;
  margin-bottom: 14px;
}

/* ── Bigger modal inner for more questions ─────────────────────────────── */
.quiz-modal__inner { max-height: 92vh; overflow-y: auto; }

/* ── Smooth slide-up entry for quiz options ─────────────────────────────── */
.quiz-opt {
  animation: quizOptIn 0.22s ease both;
}
@keyframes quizOptIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Spin the Lod ───────────────────────────────────────────────────────── */
.stl-section { padding: 40px 16px; }
.stl-widget {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.stl-strip-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%;
}
.stl-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex: 1; min-width: 0;
}
.stl-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #fff8e7;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.stl-arrow:hover { background: rgba(255,212,71,0.12); border-color: rgba(255,212,71,0.4); }
.stl-arrow:active { transform: scale(0.94); }
.stl-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.stl-card {
  border-radius: 22px;
  background: var(--panel);
  border: 2px solid rgba(255,212,71,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 22px 14px;
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
/* Active center card — full size + prominent */
.stl-card--active {
  width: 240px; height: 300px;
  opacity: 1;
  pointer-events: auto;
}
/* Side cards — smaller + dimmed (visible-but-secondary) */
.stl-card--side {
  width: 130px; height: 180px;
  opacity: 0.45;
  padding: 14px 10px;
}
.stl-card--side .stl-card__avatar { width: 56px; height: 56px; font-size: 22px; }
.stl-card--side .stl-card__name { font-size: 12px; }
.stl-card--side .stl-card__meta { display: none; }
@media (max-width: 600px) {
  .stl-card--active { width: 200px; height: 260px; }
  .stl-card--side  { width: 96px; height: 140px; padding: 10px 6px; }
  .stl-card--side .stl-card__avatar { width: 44px; height: 44px; font-size: 18px; }
  .stl-strip { gap: 8px; }
  .stl-strip-wrap { gap: 6px; }
  .stl-arrow { width: 38px; height: 38px; font-size: 16px; }
}
.stl-card--flash { border-color: rgba(255,212,71,0.5); }
.stl-card--landed {
  border-color: #ffd447;
  box-shadow: 0 0 32px rgba(255,212,71,0.3), 0 0 8px rgba(255,212,71,0.15);
}
.stl-card__avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  overflow: hidden; border: 2px solid rgba(255,212,71,0.2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.stl-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.stl-card__name {
  font-size: 17px; font-weight: 800; color: #fff8e7;
  text-align: center; line-height: 1.3;
}
.stl-card__meta {
  font-size: 12px; color: rgba(255,248,231,0.45);
  text-align: center; line-height: 1.5;
}
.stl-spin-btn {
  min-width: 200px; font-size: 17px; font-weight: 800;
  padding: 14px 28px; border-radius: 50px;
}
.stl-result {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.stl-fav-btn {
  font-size: 15px; font-weight: 800;
  padding: 13px 28px; border-radius: 50px; width: 100%; max-width: 260px;
}
.stl-again-btn {
  font-size: 13px; padding: 10px 20px; border-radius: 50px;
}
.stl-already {
  font-size: 13px; color: rgba(255,248,231,0.5); text-align: center; margin: 0;
}
.stl-already .stl-again-btn { display: inline-block; margin-top: 8px; }

/* Referral nudge modal */
#referral-nudge-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  align-items: center; justify-content: center;
}
.referral-nudge__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
}
.referral-nudge__box {
  position: relative; background: #1a1a2e; border: 2px solid #f0a500;
  border-radius: 20px; padding: 28px 24px 22px; max-width: 340px; width: 90%;
  text-align: center; box-shadow: 0 0 40px rgba(240,165,0,0.3);
}
.referral-nudge__close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; line-height: 1;
}
.referral-nudge__icon { font-size: 40px; margin-bottom: 8px; }
.referral-nudge__title {
  color: #f0a500; font-size: 17px; font-weight: 800; margin: 0 0 8px;
}
.referral-nudge__desc {
  color: rgba(255,248,231,0.85); font-size: 14px; margin: 0 0 14px; line-height: 1.4;
}
.referral-nudge__input {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: #fff; font-size: 12px; padding: 9px 10px;
  box-sizing: border-box; margin-bottom: 10px; text-align: center;
}
.referral-nudge__copy {
  width: 100%; background: #f0a500; color: #1a1a2e; border: none;
  border-radius: 50px; font-size: 15px; font-weight: 800; padding: 12px;
  cursor: pointer; margin-bottom: 10px;
}
.referral-nudge__sub {
  color: rgba(255,248,231,0.5); font-size: 12px; margin: 0;
}

/* ── First-visit welcome modal ─────────────────────────────────── */
.lods-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.25s ease;
}
.lods-modal[hidden] { display: none !important; }
.lods-modal.visible { opacity: 1; }
.lods-modal-card {
  position: relative;
  background: linear-gradient(160deg, #130532 0%, #0c1743 100%);
  border: 1.5px solid rgba(255, 212, 71, 0.3);
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 380px; width: 90%;
  text-align: center;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,212,71,0.1);
  transform: translateY(8px); transition: transform 0.25s ease;
}
.lods-modal.visible .lods-modal-card { transform: translateY(0); }
.lods-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 4px;
}
.lods-modal-close:hover { color: #fff; }
.lods-modal-card h2 {
  font-size: 20px; font-weight: 900; color: #ffd447;
  margin: 0 0 10px;
}
.lods-modal-card > p {
  font-size: 14px; color: rgba(255,248,231,0.75); margin: 0 0 14px; line-height: 1.5;
}
.lods-modal-card ul {
  list-style: none; margin: 0 0 20px; padding: 0;
  background: rgba(255,255,255,0.04); border-radius: 12px; padding: 12px 16px;
}
.lods-modal-card ul li {
  font-size: 13px; color: rgba(255,248,231,0.85);
  padding: 4px 0; text-align: left;
}
.lods-modal-cta {
  display: block; width: 100%;
  background: linear-gradient(135deg, #ffd447, #f59e0b);
  color: #08112c; font-size: 15px; font-weight: 800;
  padding: 13px 20px; border-radius: 50px; border: none;
  cursor: pointer; margin-bottom: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lods-modal-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,212,71,0.4); }
.lods-modal-skip {
  display: block; width: 100%; background: none; border: none;
  color: rgba(255,248,231,0.45); font-size: 13px; cursor: pointer;
  padding: 6px; margin-bottom: 10px;
}
.lods-modal-skip:hover { color: rgba(255,248,231,0.7); }
.lods-modal-tinylink {
  display: inline-block; font-size: 12px; color: rgba(255,212,71,0.5);
  text-decoration: none;
}
.lods-modal-tinylink:hover { color: #ffd447; }

/* ── Build A: Weekly Recap Card ─────────────────────────────────────────────── */
.profile-recap-section { margin-bottom: 20px; }
.recap-skeleton { padding: 12px 0; }
.skeleton-line {
  background: rgba(255,248,231,.08);
  border-radius: 6px;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%  { opacity: .4; }
  50% { opacity: .9; }
  100%{ opacity: .4; }
}
.recap-stats-row {
  display: flex; gap: 10px; margin-bottom: 14px;
}
.recap-stat {
  flex: 1; background: rgba(255,248,231,.05); border-radius: 12px;
  padding: 12px 6px; text-align: center;
  border: 1px solid rgba(255,248,231,.07);
}
.recap-stat-num {
  display: block; font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(90deg, #FFD84D, #FF4FC3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.recap-stat-label {
  display: block; font-size: .65rem; color: rgba(255,248,231,.6);
  margin-top: 4px; text-transform: uppercase; letter-spacing: .08em;
}
.btn--gold {
  background: linear-gradient(90deg, #FF4FC3, #FFD84D);
  color: #06091a; font-weight: 800; border: none; cursor: pointer;
  border-radius: 99px; padding: 11px 24px; font-size: .9rem;
  width: 100%; margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(255,79,195,.3);
}
.btn--gold:disabled { opacity: .55; cursor: default; }
.recap-hint { font-size: .74rem; color: rgba(255,248,231,.45); text-align: center; }

/* ── Build C: Achievement Modal ─────────────────────────────────────────────── */
.achievement-overlay {
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.achievement-modal {
  position: relative; max-width: 340px; width: 90%;
  background: linear-gradient(160deg, #141833 0%, #0d1030 100%);
  border-radius: 24px; padding: 32px 24px 24px;
  border: 1.5px solid rgba(255,216,77,.25);
  box-shadow: 0 8px 48px rgba(255,79,195,.25);
  text-align: center; overflow: hidden;
}
.achievement-confetti {
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  pointer-events: none; overflow: hidden;
}
.achievement-confetti::before {
  content: '🎊🎉✨🎊🎉✨🎊🎉✨🎊🎉✨';
  position: absolute; top: -20px; left: 0; right: 0;
  font-size: 24px; letter-spacing: 4px; white-space: nowrap;
  animation: confettiFall 2s ease-out forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(70px); opacity: 0; }
}
.achievement-emoji {
  font-size: 3.5rem; margin-bottom: 10px; display: block;
  animation: popIn .4s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes popIn {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.achievement-title {
  font-size: 1.1rem; font-weight: 800; color: #FFF8E7;
  margin-bottom: 8px; line-height: 1.3;
}
.achievement-body {
  font-size: .85rem; color: rgba(255,248,231,.7);
  margin-bottom: 20px; line-height: 1.5;
}
.achievement-actions { display: flex; flex-direction: column; gap: 8px; }
.achievement-share-btn {
  background: linear-gradient(90deg,#FF4FC3,#FFD84D);
  color: #06091a; font-weight: 800; border: none;
  border-radius: 99px; padding: 12px 20px; font-size: .9rem; cursor: pointer;
}
.achievement-dismiss-btn {
  background: none; border: 1.5px solid rgba(255,248,231,.15);
  color: rgba(255,248,231,.6); border-radius: 99px;
  padding: 10px 20px; font-size: .85rem; cursor: pointer;
}

/* ── Streak Leaderboard tabs ─────────────────────────────────────────────── */
.streak-lb-tab {
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 99px;
  opacity: .7;
  transition: opacity .15s, background .15s;
}
.streak-lb-tab--active {
  opacity: 1;
  background: rgba(255,216,77,.12);
  border-color: rgba(255,216,77,.45);
  color: #FFD84D;
}

/* ── Daily Quests ─────────────────────────────────────────────────────────── */
.daily-quests {
  max-width: 900px;
  margin: 0 auto 0;
  padding: 20px 20px 12px;
}
.daily-quests__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.daily-quests__icon { font-size: 32px; flex-shrink: 0; }
.daily-quests__title { margin: 0; font-size: 1.25rem; }
.daily-quests__earned {
  margin-left: auto;
  text-align: right;
}
.daily-quests__earned-label { display: block; font-size: .72rem; color: var(--muted); }
.daily-quests__earned-val { font-size: 1rem; font-weight: 700; color: var(--yellow); }
.daily-quests__loading { color: rgba(255,248,231,.4); font-size: .85rem; }
.daily-quests__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Quest card */
.dq-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dq-card:hover { border-color: rgba(255,212,71,.4); background: rgba(255,212,71,.05); }
.dq-card--done { border-color: rgba(70,255,200,.35); }
.dq-card--claimed { opacity: .55; cursor: default; }
.dq-card__emoji { font-size: 26px; flex-shrink: 0; width: 36px; text-align: center; }
.dq-card__body { flex: 1; min-width: 0; }
.dq-card__label { font-size: .9rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.dq-card__hint  { font-size: .75rem; color: var(--muted); }
.dq-card__progress-wrap { margin-top: 6px; }
.dq-card__progress-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.dq-card__progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transition: width .4s ease;
}
.dq-card__progress-fill--done { background: var(--green); }
.dq-card__progress-text { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.dq-card__reward {
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--yellow);
  min-width: 44px;
}
.dq-card__claim-btn {
  display: block;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  color: #06091a;
  border: none;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 4px;
}
.dq-card__claimed-badge {
  display: block;
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
  margin-top: 4px;
}
/* Today's leaderboard */
.daily-quests__lb-wrap {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
}
.daily-quests__lb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.dq-lb-tab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  color: var(--muted);
  font-size: .8rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .15s;
}
.dq-lb-tab--active {
  background: rgba(255,79,216,.15);
  border-color: rgba(255,79,216,.5);
  color: var(--pink);
}
.daily-quests__lb {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dq-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  padding: 4px 2px;
}
.dq-lb-row__rank { font-weight: 700; color: var(--yellow); min-width: 20px; }
.dq-lb-row__name { flex: 1; }
.dq-lb-row__score { font-weight: 700; color: var(--green); }
/* Confetti overlay */
.dq-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.dq-confetti__piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: dq-fall 1.2s ease-in forwards;
}
@keyframes dq-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}


/* ── W17-W19 wiring: Daily Chain strip · Referrer Wall · Crew CTA ── */
.daily-chain-strip {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 0;
  pointer-events: none;
}
.daily-chain-strip > #daily-chain-root {
  pointer-events: auto;
  width: 100%;
  max-width: 480px;
}
@media (min-width: 768px) {
  .daily-chain-strip {
    position: fixed;
    top: 12px;
    right: 12px;
    width: auto;
    padding: 0;
  }
  .daily-chain-strip > #daily-chain-root {
    width: 360px;
  }
}

.referrer-wall-section {
  margin-top: 28px;
}
.referrer-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
@media (max-width: 480px) {
  .referrer-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Boost modal (creator showcase) */
.boost-modal-overlay {
  position: fixed; inset: 0; background: rgba(6,9,26,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 16px;
}
.boost-modal-card {
  background: var(--panel, #141833);
  border: 1px solid rgba(255,212,71,.3);
  border-radius: 18px; padding: 22px 18px;
  max-width: 420px; width: 100%; color: var(--text, #FFF8E7);
  position: relative;
}
.boost-tier-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px; margin-bottom: 10px;
  background: rgba(255,212,71,.08);
  border: 1.5px solid rgba(255,212,71,.3);
  border-radius: 14px; color: var(--text, #FFF8E7);
  font-family: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.boost-tier-btn:hover { background: rgba(255,212,71,.18); }
.boost-tier-btn .boost-cost { color: var(--gold, #FFD84D); }
