/*
Theme Name: LP Landing
Description: Lightweight landing-page theme with three page templates — Article, Email Capture (toplist gate), and Spin the Wheel. Offer values are per-page custom fields with sensible defaults in inc/config.php.
Version: 1.2.0
Author: Stefan
Text Domain: lp-landing
*/

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

:root {
  --bg-deep: #1a0533;
  --bg-mid: #2d0a54;
  --accent: #b820ff;
  --accent-2: #ff2fd6;
  --cta: #2bef8b;
  --cta-text: #06210f;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --gold: #ffd447;
  --card: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --maxw: 720px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-mid) 0%, var(--bg-deep) 55%, #12021f 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }

.lp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.lp-header { padding: 18px 0 10px; text-align: center; }
.lp-logo-title { margin: 0; }
.lp-logo-title a {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(90deg, #ffffff 45%, var(--accent-2) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-logo-title--small a { font-size: 22px; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
  background: linear-gradient(180deg, #4ef79f 0%, var(--cta) 100%);
  color: var(--cta-text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 42px;
  box-shadow: 0 6px 24px rgba(43, 239, 139, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(43, 239, 139, 0.6); }
.wp-block-buttons { margin: 26px 0; }

.lp-btn {
  display: inline-block;
  background: linear-gradient(180deg, #4ef79f 0%, var(--cta) 100%);
  color: var(--cta-text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: 16px 42px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(43, 239, 139, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(43, 239, 139, 0.6); }
.lp-btn--block { display: block; width: 100%; }

/* ---------- Shared hero ---------- */
.lp-hero { text-align: center; padding: 26px 0 10px; }
.lp-hero__kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lp-hero__offer {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin: 8px 0;
  background: linear-gradient(180deg, #fff 30%, #f7c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(184, 32, 255, 0.35);
}
.lp-hero__sub {
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Panel / card ---------- */
.lp-panel {
  background: linear-gradient(180deg, rgba(184, 32, 255, 0.18), rgba(45, 10, 84, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 22px;
  margin: 22px 0;
}

/* ---------- Email capture ---------- */
.lp-form { margin-top: 18px; }
.lp-form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  font-size: 17px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
  margin-bottom: 14px;
}
.lp-form input[type="email"]:focus { border-color: var(--accent-2); }
.lp-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.lp-consent {
  font-size: 12px;
  color: var(--text-dim);
  margin: 12px 0 0;
  text-align: center;
}
.lp-form__error { color: #ff7a7a; font-size: 14px; margin-bottom: 10px; }
.lp-form__error[hidden] { display: none; }

/* ---------- Toplist ---------- */
.lp-toplist { display: none; }
.lp-toplist.is-visible { display: block; animation: lp-fade 0.5s ease; }
.lp-toplist__title { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.lp-toplist__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.lp-toplist__rank {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}
.lp-toplist__body { flex: 1 1 auto; min-width: 0; }
.lp-toplist__brand { font-size: 19px; font-weight: 800; }
.lp-toplist__offer { font-size: 15px; color: var(--gold); font-weight: 700; }
.lp-toplist__cta { flex: 0 0 auto; }
.lp-toplist__cta .lp-btn { font-size: 14px; padding: 12px 22px; }
@media (max-width: 560px) {
  .lp-toplist__item { flex-wrap: wrap; }
  .lp-toplist__cta { flex-basis: 100%; }
  .lp-toplist__cta .lp-btn { display: block; }
}

/* ---------- Wheel ---------- */
.lp-wheel-stage { text-align: center; padding-bottom: 30px; }
.lp-wheel-box { position: relative; width: min(340px, 86vw); margin: 24px auto 26px; }
.lp-wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid var(--gold);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
  z-index: 3;
}
.lp-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #7a1fa8;
  box-shadow: 0 0 0 6px #4a1070, 0 0 60px rgba(184, 32, 255, 0.55), inset 0 0 30px rgba(0, 0, 0, 0.35);
  transition: transform 4.6s cubic-bezier(0.12, 0.62, 0.04, 1);
  will-change: transform;
}
.lp-wheel__label {
  position: absolute;
  inset: 0;
  padding-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  pointer-events: none;
}
.lp-wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d76bff, var(--accent) 70%);
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 0 18px rgba(184, 32, 255, 0.8);
}

.lp-hero__offer--wheel { font-size: clamp(28px, 6vw, 44px); }
.lp-hero__offer--congrats { font-size: clamp(30px, 6vw, 46px); }

/* Congrats panel */
.lp-congrats { display: none; }
.lp-congrats.is-visible { display: block; animation: lp-fade 0.5s ease; }
.lp-congrats__title {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 0 30px rgba(255, 47, 214, 0.5);
}
.lp-congrats__sub { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.lp-hidden { display: none !important; }

/* ---------- Article template ---------- */
.lp-article { padding-top: 8px; }
.lp-article h1 {
  font-size: clamp(28px, 5.5vw, 40px);
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  margin-bottom: 10px;
}
.lp-article .lp-byline {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.lp-article p { margin: 0 0 16px; font-size: 17px; }
.lp-article h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 30px 0 12px;
  color: var(--gold);
}
.lp-article ol, .lp-article ul { margin: 0 0 16px 22px; font-size: 17px; }
.lp-article li { margin-bottom: 8px; }
.lp-check-list { list-style: none; margin-left: 0 !important; }
.lp-check-list li { padding-left: 30px; position: relative; }
.lp-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cta);
  font-weight: 900;
}
.lp-quote {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  margin: 0 0 16px;
  font-style: italic;
}
.lp-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--text-dim); font-size: 14px; }
.lp-cta-row { text-align: center; margin: 26px 0; }
.lp-offer-box { text-align: center; }
.lp-offer-box__headline { font-size: clamp(22px, 4.5vw, 30px); font-weight: 900; color: var(--gold); margin-bottom: 6px; }
.lp-offer-box__note { font-size: 13px; color: var(--text-dim); margin-top: 14px; }

/* Decorative hero coin strip */
.lp-hero-art {
  height: 120px;
  border-radius: var(--radius);
  margin: 6px 0 24px;
  background:
    radial-gradient(60px 60px at 15% 50%, rgba(43, 239, 139, 0.55), transparent 70%),
    radial-gradient(50px 50px at 85% 40%, rgba(255, 212, 71, 0.5), transparent 70%),
    radial-gradient(70px 70px at 55% 70%, rgba(255, 47, 214, 0.45), transparent 70%),
    linear-gradient(120deg, #3a0d68, #200640);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- T&C block ---------- */
.lp-terms { padding: 26px 0 6px; }
.lp-terms h2 { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.lp-terms ol { max-width: 420px; margin: 0 auto; font-size: 14px; color: var(--text-dim); padding-left: 20px; }
.lp-terms li { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.lp-footer {
  margin-top: 40px;
  padding: 30px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}
.lp-footer .lp-logo { font-size: 22px; }
.lp-footer__links { margin: 14px 0; }
.lp-footer__links a + a { margin-left: 18px; }
.lp-footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}
.lp-footer__links a:hover { color: var(--text); }
.lp-footer__disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
  margin: 0 auto 12px;
}
.lp-footer__copy { font-size: 12px; color: rgba(255, 255, 255, 0.45); }

/* ---------- Sticky compliance bar ---------- */
.lp-compliance p { margin: 0; }
.lp-compliance {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.88);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  text-align: center;
  padding: 6px 14px;
  z-index: 50;
}

@keyframes lp-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Dev page list ---------- */
.lp-page-list { padding-top: 30px; }
.lp-page-list h1 { font-size: 24px; margin-bottom: 14px; }
.lp-page-list .wp-block-post-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.lp-page-list .wp-block-post-title a { color: var(--text); text-decoration: none; }
.lp-page-list .wp-block-post-title a:hover { color: var(--accent-2); }

/* ---------- Editor preview for custom blocks ---------- */
.lp-block-preview {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(184, 32, 255, 0.08);
}
.lp-block-preview p { margin: 6px 0 0; font-size: 14px; }

/* ---------- Brand logo ---------- */
.lp-brand-logo {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px;
  margin: 6px auto 24px;
  max-width: 260px;
}
.lp-brand-logo img { margin: 0 auto; max-height: 140px; width: auto; }
.lp-brand-logo--congrats { max-width: 180px; padding: 12px; margin: 0 auto 16px; }
.lp-brand-logo--congrats img { max-height: 90px; }

.lp-toplist__logo {
  flex: 0 0 auto;
  width: 86px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-toplist__logo img { max-height: 52px; max-width: 74px; width: auto; }
@media (max-width: 560px) {
  .lp-toplist__logo { width: 64px; height: 48px; }
  .lp-toplist__logo img { max-height: 40px; max-width: 54px; }
}

/* ---------- Hero image (article) ---------- */
.lp-hero-image { margin: 6px auto 24px; }
.lp-hero-image img {
  border-radius: var(--radius);
  margin: 0 auto;
  max-height: 340px;
  width: auto;
}
.lp-brand-logo--offer { max-width: 200px; padding: 12px; margin: 0 auto 18px; }
.lp-brand-logo--offer img { max-height: 100px; }

/* ---------- Decorative coins (email + wheel heroes) ---------- */
.lp-hero,
.lp-wheel-stage { position: relative; }
.lp-hero::before,
.lp-hero::after,
.lp-wheel-stage::before,
.lp-wheel-stage::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  background: url('assets/images/coin.svg') no-repeat center / contain;
  opacity: 0.85;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: -1;
}
.lp-hero::before { left: -90px; top: 22px; transform: rotate(-18deg); }
.lp-hero::after { right: -86px; top: 90px; width: 52px; height: 52px; transform: rotate(22deg); }
.lp-wheel-stage::before { left: -78px; top: 210px; transform: rotate(-14deg); }
.lp-wheel-stage::after { right: -74px; top: 320px; width: 56px; height: 56px; transform: rotate(18deg); }
@media (max-width: 900px) {
  .lp-hero::before, .lp-hero::after,
  .lp-wheel-stage::before, .lp-wheel-stage::after { display: none; }
}

/* ---------- Front-page operator toplist ---------- */
.lp-wrap--wide { max-width: 1100px; }

.lp-tl { margin: 10px 0 40px; }
.lp-tl__empty { text-align: center; color: var(--text-dim); }

.lp-tl__card {
  position: relative;
  display: grid;
  grid-template-columns: 140px minmax(0, 1.25fr) minmax(0, 1.05fr) 110px 160px;
  gap: 20px;
  align-items: center;
  padding: 26px 26px 26px 34px;
  margin: 0 0 18px;
}
.lp-tl__rank {
  position: absolute;
  top: 18px;
  left: -12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.lp-tl__logo {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-tl__logo img { max-height: 82px; width: auto; margin: 0; }
.lp-tl__logo-fallback { font-weight: 800; font-size: 18px; padding: 8px; }
.lp-tl__brand { font-size: 26px; font-weight: 900; line-height: 1.15; }
.lp-tl__stars { color: var(--gold); font-size: 20px; letter-spacing: 3px; margin: 2px 0 6px; }
.lp-tl__features { font-size: 15px; color: var(--text-dim); }
.lp-tl__features ul { list-style: none; margin: 0; padding: 0; }
.lp-tl__features li { padding-left: 20px; position: relative; margin: 3px 0; }
.lp-tl__features li::before { content: "✓"; position: absolute; left: 0; color: var(--cta); font-weight: 900; }
.lp-tl__deal-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.lp-tl__ratings { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.lp-tl__ratings span { color: var(--accent-2); font-weight: 800; }
.lp-tl__score-ring {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: radial-gradient(circle at 50% 30%, rgba(184, 32, 255, 0.35), rgba(45, 10, 84, 0.9));
  box-shadow: 0 0 24px rgba(184, 32, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.lp-tl__score-label { font-size: 12px; color: var(--text-dim); }
.lp-tl__score-num { font-size: 34px; font-weight: 900; line-height: 1; }
.lp-tl__cta { text-align: center; }
.lp-tl__cta .lp-btn { display: block; font-size: 15px; padding: 15px 18px; white-space: nowrap; }

@media (max-width: 980px) {
  .lp-tl__card { grid-template-columns: 130px minmax(0, 1fr) 150px; }
  .lp-tl__deal { grid-column: 1 / 3; }
  .lp-tl__score { display: none; }
  .lp-tl__cta { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 640px) {
  .lp-tl__card { grid-template-columns: 1fr; text-align: center; padding: 26px 18px; }
  .lp-tl__logo { max-width: 220px; margin: 0 auto; }
  .lp-tl__deal { grid-column: auto; }
  .lp-tl__cta { grid-column: auto; grid-row: auto; }
  .lp-tl__features li { text-align: left; }
  .lp-tl__features ul { display: inline-block; }
}

/* ============================================================
   3D FX layer — depth, gloss, motion (overrides base styles)
   ============================================================ */

/* Layered background glows */
body {
  background:
    radial-gradient(55% 38% at 12% 8%, rgba(184, 32, 255, 0.28), transparent 62%),
    radial-gradient(45% 32% at 88% 4%, rgba(255, 47, 214, 0.20), transparent 62%),
    radial-gradient(40% 30% at 50% 100%, rgba(32, 184, 255, 0.10), transparent 65%),
    radial-gradient(120% 90% at 50% 0%, var(--bg-mid) 0%, var(--bg-deep) 55%, #12021f 100%);
  background-attachment: fixed;
}

@keyframes lp-float {
  from { transform: translateY(0) rotate(var(--rot, 0deg)); }
  to   { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
@keyframes lp-shine {
  0%   { left: -70%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* 3D beveled CTAs with a shine sweep */
.lp-btn,
.wp-block-button__link {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #63ffb0 0%, #2bef8b 45%, #1ed076 100%);
  box-shadow:
    0 6px 0 #129b57,
    0 16px 30px rgba(43, 239, 139, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
}
.lp-btn:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #129b57,
    0 20px 38px rgba(43, 239, 139, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
}
.lp-btn:active,
.wp-block-button__link:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #129b57,
    0 8px 16px rgba(43, 239, 139, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.lp-btn::after,
.wp-block-button__link::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 38%;
  height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: lp-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Extruded hero headline */
.lp-hero__offer {
  filter:
    drop-shadow(0 4px 0 rgba(90, 10, 130, 0.85))
    drop-shadow(0 14px 26px rgba(184, 32, 255, 0.45));
  text-shadow: none;
}

/* Panels: glass with a top highlight */
.lp-panel {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Toplist cards: gradient-border glass, hover lift */
.lp-tl__card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(72, 18, 118, 0.94), rgba(38, 8, 68, 0.96)) padding-box,
    linear-gradient(160deg, rgba(255, 255, 255, 0.4), rgba(184, 32, 255, 0.55) 30%, rgba(30, 16, 56, 0.3) 68%, rgba(255, 47, 214, 0.5)) border-box;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-tl__card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(184, 32, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.lp-tl__card--first {
  background:
    linear-gradient(180deg, rgba(72, 18, 118, 0.94), rgba(38, 8, 68, 0.96)) padding-box,
    linear-gradient(160deg, #ffe38a, #f0b429 30%, #8a5c05 62%, #ffd447) border-box;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(240, 180, 41, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.lp-tl__ribbon {
  position: absolute;
  top: -13px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffe38a, #f0b429);
  color: #3b2d10;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(240, 180, 41, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 2;
}

/* Rank badge: gem bevel */
.lp-tl__rank {
  background: radial-gradient(circle at 30% 25%, #d76bff, var(--accent) 60%, #7a12b0);
  border-radius: 10px;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.5),
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    inset 0 -3px 4px rgba(0, 0, 0, 0.35);
}

/* Logo tile gloss */
.lp-tl__logo { position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.4); }
.lp-tl__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}

/* SVG stars */
.lp-tl__stars { display: flex; gap: 3px; margin: 4px 0 8px; }
.lp-star { fill: rgba(255, 255, 255, 0.16); }
.lp-star.is-on { fill: var(--gold); filter: drop-shadow(0 2px 4px rgba(240, 140, 0, 0.65)); }

/* Score ring: conic progress + inner dome */
.lp-tl__score-ring {
  position: relative;
  border: 0;
  background: conic-gradient(from -90deg, #2bef8b calc(var(--lp-score, 0) * 1%), rgba(255, 255, 255, 0.1) 0);
  box-shadow: 0 0 30px rgba(43, 239, 139, 0.3), 0 14px 30px rgba(0, 0, 0, 0.45);
}
.lp-tl__score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #3a1266, #1c0736 78%);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 -2px 4px rgba(255, 255, 255, 0.08);
}
.lp-tl__score-label,
.lp-tl__score-num { position: relative; z-index: 1; }
.lp-tl__score-num { text-shadow: 0 2px 8px rgba(43, 239, 139, 0.5); }

/* Floating coins */
.lp-hero::before { --rot: -18deg; animation: lp-float 5s ease-in-out infinite alternate; }
.lp-hero::after { --rot: 22deg; animation: lp-float 6.5s ease-in-out infinite alternate; }
.lp-wheel-stage::before { --rot: -14deg; animation: lp-float 5.6s ease-in-out infinite alternate; }
.lp-wheel-stage::after { --rot: 18deg; animation: lp-float 4.8s ease-in-out infinite alternate; }
.lp-hero::before, .lp-hero::after,
.lp-wheel-stage::before, .lp-wheel-stage::after { transform: rotate(var(--rot)); }

/* Wheel gloss dome */
.lp-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.28), transparent 42%);
  pointer-events: none;
}

/* Toplist section title spacing on wide layout */
.lp-wrap--wide .lp-hero { padding-bottom: 26px; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .lp-btn::after,
  .wp-block-button__link::after,
  .lp-hero::before, .lp-hero::after,
  .lp-wheel-stage::before, .lp-wheel-stage::after { animation: none; }
  .lp-tl__card, .lp-tl__card:hover { transform: none; }
}

/* ============================================================
   Gimmick LPs — scratch / boxes / slots / quiz
   ============================================================ */
.lp-scratch-stage, .lp-boxes-stage, .lp-slots-stage, .lp-quiz-stage {
  text-align: center;
  padding-bottom: 30px;
  position: relative;
}
.lp-game-hint { color: var(--text-dim); font-size: 14px; margin-top: 16px; }

/* --- Scratch card --- */
.lp-scratch-card {
  position: relative;
  width: min(420px, 90vw);
  height: 240px;
  margin: 26px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 212, 71, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(160deg, #3a1266, #22093f 70%);
}
.lp-scratch-card__prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}
.lp-scratch-card__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lp-scratch-card__offer {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(240, 140, 0, 0.6);
}
.lp-scratch-card__foil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.7s ease;
}
.lp-scratch-card__foil.is-cleared { opacity: 0; pointer-events: none; }

/* --- Mystery boxes --- */
.lp-boxes {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.lp-box {
  position: relative;
  width: 150px;
  height: 150px;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lp-box__body {
  position: absolute;
  left: 8px; right: 8px; bottom: 0;
  height: 104px;
  border-radius: 12px;
  background: linear-gradient(180deg, #d43be0, var(--accent) 55%, #7a12b0);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.lp-box__lid {
  position: absolute;
  left: 0; right: 0; top: 28px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe38a, #f0b429 70%, #c98a12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  z-index: 2;
}
.lp-box__lid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8ae8, var(--accent-2) 70%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.lp-box__prize {
  position: absolute;
  left: 0; right: 0;
  bottom: 34px;
  opacity: 0;
  font-weight: 900;
  font-size: 15px;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
  transform: translateY(10px);
  z-index: 3;
  padding: 0 6px;
}
.lp-box:hover:not(:disabled) .lp-box__body { transform: translateY(-6px); }
.lp-box.is-open .lp-box__lid { transform: translateY(-56px) rotate(-14deg); opacity: 0; }
.lp-box.is-open .lp-box__prize { opacity: 1; transform: translateY(0); }
.lp-box.is-winner .lp-box__body {
  background: linear-gradient(180deg, #63ffb0, var(--cta) 55%, #129b57);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(43, 239, 139, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.lp-box.is-lost { filter: grayscale(0.8) brightness(0.6); }

/* --- Slot machine --- */
.lp-slots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 26px;
  padding: 22px;
  width: fit-content;
  border-radius: 20px;
  border: 3px solid #7a1fa8;
  background: linear-gradient(180deg, rgba(72, 18, 118, 0.95), rgba(30, 6, 56, 0.98));
  box-shadow: 0 0 0 6px #4a1070, 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 50px rgba(184, 32, 255, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.15);
}
.lp-reel {
  width: 96px;
  height: 270px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #efe9f7 0%, #fff 20%, #fff 80%, #e4dcf1 100%);
  box-shadow: inset 0 12px 18px rgba(0, 0, 0, 0.25), inset 0 -12px 18px rgba(0, 0, 0, 0.25);
}
.lp-reel__strip { display: flex; flex-direction: column; }
.lp-reel__strip span {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  line-height: 1;
}
.lp-slots__winline {
  position: absolute;
  left: 12px; right: 12px;
  top: 50%;
  height: 90px;
  transform: translateY(-50%);
  border-top: 2px dashed rgba(255, 212, 71, 0.55);
  border-bottom: 2px dashed rgba(255, 212, 71, 0.55);
  pointer-events: none;
  z-index: 2;
}
.lp-slots.is-win .lp-slots__winline {
  background: rgba(255, 212, 71, 0.18);
  box-shadow: 0 0 30px rgba(255, 212, 71, 0.5);
  animation: lp-winline 0.5s ease-in-out 3;
}
@keyframes lp-winline {
  50% { background: rgba(255, 212, 71, 0.4); }
}
@media (max-width: 460px) {
  .lp-reel { width: 78px; height: 240px; }
  .lp-reel__strip span { height: 80px; font-size: 42px; }
  .lp-slots__winline { height: 80px; }
}

/* --- Quiz --- */
.lp-quiz { max-width: 560px; margin: 26px auto 0; text-align: center; padding: 30px 26px; }
.lp-quiz__progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.lp-quiz__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cta), #63ffb0);
  box-shadow: 0 0 14px rgba(43, 239, 139, 0.7);
  transition: width 0.4s ease;
}
.lp-quiz__step, .lp-quiz__sorry { display: none; }
.lp-quiz__step.is-active, .lp-quiz__sorry.is-active { display: block; animation: lp-fade 0.4s ease; }
.lp-quiz__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.lp-quiz__q { font-size: clamp(20px, 4vw, 26px); font-weight: 900; margin-bottom: 22px; }
.lp-quiz__answers { display: flex; flex-direction: column; gap: 12px; }
.lp-quiz__answer {
  position: relative;
  overflow: hidden;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(180deg, rgba(184, 32, 255, 0.35), rgba(122, 18, 176, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(74, 16, 112, 0.9), 0 10px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lp-quiz__answer:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(212, 59, 224, 0.5), rgba(122, 18, 176, 0.6));
  box-shadow: 0 8px 0 rgba(74, 16, 112, 0.9), 0 14px 26px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.lp-quiz__answer:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(74, 16, 112, 0.9), 0 6px 12px rgba(0, 0, 0, 0.35); }
