/* PokerJoker landing page: brand tokens from Content Templates / 02-brand / 01-brand-kit.md */
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("/app/fonts/Montserrat-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/app/fonts/Montserrat-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/app/fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  --pj-abyss: #06201F;
  --pj-deep: #0B2B29;
  --pj-surface: #2D5550;
  --pj-mint: #30C7B0;
  --pj-gold: #E6CD91;
  --pj-goldpal: #F0E4AC;
  --pj-sage: #A9CE9C;
  --pj-red: #E04B45;
  --pj-white: #FAFBFB;
  --pj-gold-dark: #A88C52;
  --pj-gold-deep: #6E5A2E;
  --pj-grad-heading: linear-gradient(90deg, #F0E4AC 0%, #D9C88A 45%, #A9CE9C 100%);
  --muted: #A7C2BC;
  --line: rgba(48, 199, 176, 0.18);
  --panel: rgba(11, 43, 41, 0.78);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, #0F3A36 0%, #082624 55%, #06201F 100%) fixed;
  background-color: var(--pj-abyss);
  color: var(--pj-white);
  font: 600 16px/1.45 var(--font-body);
  overflow-x: hidden;
}
.hidden { display: none !important; }

/* ---------- layout ---------- */
.top {
  max-width: 1080px; margin: 0 auto; padding: 16px 16px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { height: 30px; width: auto; display: block; }
.age {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  font: 800 13px/1 var(--font-head); color: var(--muted);
}
.page {
  max-width: 1080px; margin: 0 auto; padding: 18px 16px 24px;
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 900px) {
  .page { grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; }
  .hero { order: 1; }
  .stage { order: 2; }
}

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; gap: 12px; }
.kicker { margin: 0; font: 800 14px/1.2 var(--font-head); letter-spacing: 4px; text-transform: uppercase; color: var(--pj-mint); }
.title {
  margin: 0; font: 800 clamp(30px, 8vw, 54px)/1.05 var(--font-head); text-transform: uppercase;
  background: var(--pj-grad-heading); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(240, 228, 172, 0.2));
}
.sub { margin: 0; color: var(--muted); font-size: 17px; }
.joker { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.joker-avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--pj-deep); border: 2px solid var(--pj-gold); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.joker-avatar img { width: 26px; height: 26px; display: block; }
.bubble {
  margin: 0; flex: 1; padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--panel); border: 1px solid var(--line); font-size: 15px;
  animation: bubble-in 0.18s var(--ease);
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } }

/* ---------- wheel ---------- */
.stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wheel { position: relative; width: min(84vw, 380px); aspect-ratio: 1 / 1; margin-top: 8px; }
.rim {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 62%, rgba(0, 0, 0, 0.22) 63%, transparent 66%),
    conic-gradient(from 20deg, var(--pj-goldpal), var(--pj-gold-dark), var(--pj-gold), var(--pj-gold-deep), var(--pj-goldpal), var(--pj-gold-dark), var(--pj-gold), var(--pj-gold-deep), var(--pj-goldpal));
  box-shadow: 0 0 0 3px rgba(6, 32, 31, 0.9), 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 70px rgba(230, 205, 145, 0.18), 0 0 120px rgba(48, 199, 176, 0.16);
}
.bulb {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #FFF8DC; box-shadow: 0 0 6px 2px rgba(240, 228, 172, 0.85); animation: blink 1.4s infinite;
}
.bulb:nth-child(even) { animation-delay: 0.7s; }
.wheel.spinning .bulb { animation-duration: 0.35s; }
@keyframes blink { 50% { background: var(--pj-gold-dark); box-shadow: 0 0 2px rgba(230, 205, 145, 0.3); } }
.rotor { position: absolute; inset: 7%; width: 86%; height: 86%; border-radius: 50%; will-change: transform; box-shadow: 0 0 0 3px rgba(6, 32, 31, 0.85); }
.hub {
  position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #12403B, var(--pj-deep) 60%, var(--pj-abyss));
  border: 3px solid var(--pj-gold); box-shadow: 0 0 0 3px rgba(6, 32, 31, 0.8), 0 6px 18px rgba(0, 0, 0, 0.55);
}
.hub img { width: 62%; height: 62%; }
.pointer { position: absolute; left: 50%; top: -3%; width: 12%; height: 14%; transform: translateX(-50%); transform-origin: 50% 20%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.55)); z-index: 2; }
.pointer-shape { width: 100%; height: 100%; clip-path: polygon(50% 100%, 6% 22%, 18% 4%, 50% 0, 82% 4%, 94% 22%); background: linear-gradient(180deg, var(--pj-goldpal), var(--pj-gold) 45%, var(--pj-gold-dark)); }

/* ---------- buttons ---------- */
.btn-spin {
  width: min(100%, 340px); height: 62px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 21px/1 var(--font-head); letter-spacing: 3px; text-transform: uppercase; color: var(--pj-abyss);
  background: var(--pj-grad-heading); box-shadow: 0 6px 0 #5D6E4E, 0 12px 30px rgba(169, 206, 156, 0.25);
  transition: transform 0.1s var(--ease), box-shadow 0.1s var(--ease);
}
.btn-spin:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #5D6E4E; }
.btn-spin:disabled { cursor: default; color: var(--muted); background: var(--pj-surface); box-shadow: 0 6px 0 #173A36; letter-spacing: 1.5px; font-size: 16px; }
.btn-spin.pulse:not(:disabled) { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 6px 0 #5D6E4E, 0 12px 44px rgba(240, 228, 172, 0.45), 0 0 0 8px rgba(240, 228, 172, 0.08); } }
.btn {
  display: block; width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 16px/1.2 var(--font-head); color: var(--pj-white); text-align: center; text-decoration: none;
}
.btn-primary { background: var(--pj-mint); color: var(--pj-abyss); box-shadow: 0 8px 24px rgba(48, 199, 176, 0.25); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { background: rgba(48, 199, 176, 0.08); border: 1px solid var(--line); }

.points { width: min(100%, 420px); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--pj-abyss); background: var(--pj-mint); }

.already { width: min(100%, 380px); padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.already p { margin: 0; color: var(--muted); }
.prize-line { font: 800 22px/1.2 var(--font-head); background: var(--pj-grad-heading); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.foot { max-width: 1080px; margin: 0 auto; padding: 8px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 12.5px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted); }

/* ---------- form sheet + result modal ---------- */
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(3, 16, 15, 0.78); backdrop-filter: blur(6px); animation: fade 0.2s var(--ease); }
.sheet, .modal-card {
  position: relative; overflow: hidden; width: min(100%, 400px); padding: 26px 20px 20px; border-radius: 22px;
  background: linear-gradient(180deg, #0F3632 0%, var(--pj-deep) 55%, var(--pj-abyss) 100%);
  border: 1px solid rgba(230, 205, 145, 0.35); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 10px; animation: pop 0.22s var(--ease);
}
.sheet h2 { margin: 0; font: 800 22px/1.2 var(--font-head); }
.sheet-text { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.sheet label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sheet input[type="email"], .sheet input[type="tel"] {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 32, 31, 0.8);
  color: var(--pj-white); font: 600 16px var(--font-body);
}
.sheet input:focus { outline: 2px solid var(--pj-mint); outline-offset: 1px; }
.sheet .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--pj-white); margin-top: 8px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--pj-mint); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; min-height: 1.2em; color: #FF8A84; font-size: 14px; }
.modal-card { text-align: center; align-items: stretch; }
.modal-card > * { position: relative; }
.rays { position: absolute !important; left: 50%; top: 30%; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgba(230, 205, 145, 0.1) 0 10deg, transparent 10deg 20deg); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 65%); mask-image: radial-gradient(circle, #000 0%, transparent 65%); animation: spin-rays 18s linear infinite; pointer-events: none; }
@keyframes spin-rays { to { transform: rotate(360deg); } }
.modal-close { position: absolute !important; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(48, 199, 176, 0.08); color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; z-index: 1; }
.modal-mark { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--pj-deep); border: 2px solid var(--pj-gold); }
.modal-mark img { width: 40px; height: 40px; display: block; }
.modal-kicker { margin: 4px 0 0; font: 700 16px/1.3 var(--font-head); color: var(--pj-mint); }
.modal-title { margin: 0; font: 700 13px/1 var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: 3px; }
.prize-name { margin: 2px 0 6px; font: 800 clamp(28px, 8vw, 36px)/1.1 var(--font-head); background: var(--pj-grad-heading); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.prize-details { margin: -4px 0 6px; font-size: 13px; color: var(--pj-sage); }
.modal-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.lp-hl { outline: 2px dashed var(--pj-mint); outline-offset: 3px; border-radius: 6px; }  /* admin preview only */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }

@media (prefers-reduced-motion: reduce) {
  .btn-spin.pulse, .bulb, .rays, .bubble { animation: none; }
}
