/* Link page (links roadmap L4, 2026-11-15; redesigned 2026-11-16 with four split-test versions of the invite card).
   Neutral class names (lp-*) on purpose: ad blockers hide "ad", "banner", "sponsor". */
:root { --lp-ink: #0b1230; --lp-navy: #121c4d; --lp-indigo: #2b2f86; --lp-orange: #ff8a3d; --lp-amber: #ffd23f; --lp-on-orange: #1b0d00; --lp-line: rgba(255, 255, 255, .22); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.lp { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #fff; background: var(--lp-ink); }
.lp a { color: inherit; }

/* ---------- mode: site stays visible, offer bar at the bottom ---------- */
.lp-m-frame { height: 100%; overflow: hidden; }
.lp-site { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.lp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(11, 18, 48, .97); color: #fff; box-shadow: 0 -8px 30px rgba(0, 0, 0, .3); }
.lp-bar.is-closed { display: none; }

/* ---------- mode: preview page ---------- */
.lp-wait { position: relative; min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 22px; padding: 28px 16px 44px; text-align: center; overflow: hidden;
  background: radial-gradient(900px 420px at 85% -10%, rgba(255, 138, 61, .28), transparent 70%), radial-gradient(700px 500px at 0% 110%, rgba(86, 98, 255, .35), transparent 70%), linear-gradient(165deg, #0b1230 0%, #16225e 60%, #231d63 100%); }
.lp-wait > * { position: relative; z-index: 1; }
.lp-head { display: grid; gap: 4px; justify-items: center; }
.lp-kicker { margin: 0; color: rgba(255, 255, 255, .78); font-weight: 600; letter-spacing: .01em; }
.lp-host { margin: 0; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; max-width: 22ch; }
.lp-offer, .lp-join { width: 100%; max-width: 720px; display: grid; gap: 10px; justify-items: center; }
.lp-cap { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.lp-wait .lp-slot { width: 100%; }
.lp-wait .lp-adlink { box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }

.lp-slot { min-width: 0; flex: 1 1 380px; max-width: 720px; }
.lp-slot a.lp-adlink { display: block; text-decoration: none; color: inherit; border-radius: 14px; transition: transform .15s ease; }
.lp-slot a.lp-adlink:hover { transform: translateY(-2px); }
.lp-slot a.lp-adlink:focus-visible, .lp-inv:focus-visible, .lp-go:focus-visible, .lp-hide:focus-visible, .lp-gift:focus-visible, .lp-inv-b:focus-visible, .lp-c-row input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lp-bar .pc-t-light { border-color: transparent; }

.lp-legacy { display: block; width: 100%; max-width: 650px; height: 100px; overflow: hidden; border-radius: 10px; background: #666; color: #fff; text-align: center; font: normal 16px Tahoma, Verdana, sans-serif; margin: 0 auto; }
.lp-legacy-in { display: block; width: 650px; height: 100px; overflow: hidden; transform-origin: 0 0; }
.lp-legacy img { max-width: none; border: 0; }

/* ---------- countdown and Continue button ---------- */
.lp-time { display: flex; align-items: center; justify-content: center; gap: 14px; }
.lp-wait .lp-time { gap: 18px; }
.lp-time-in { display: grid; gap: 8px; justify-items: start; text-align: left; }
.lp-ring { position: relative; width: 56px; height: 56px; flex: 0 0 56px; }
.lp-wait .lp-ring { width: 84px; height: 84px; flex-basis: 84px; }
.lp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-ring circle { fill: none; stroke-width: 5; }
.lp-ring .lp-track { stroke: rgba(255, 255, 255, .22); }
.lp-ring .lp-prog { stroke: var(--lp-orange); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.lp-ring .lp-n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.lp-wait .lp-ring .lp-n { font-size: 1.7rem; }
.lp-label { font-size: .9rem; color: rgba(255, 255, 255, .82); line-height: 1.25; }

.lp-go, .lp-hide { appearance: none; border: 0; border-radius: 999px; font: 800 1rem/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.lp-go { display: inline-block; padding: 14px 28px; font-size: 1.1rem; background: var(--lp-orange); color: var(--lp-on-orange); box-shadow: 0 6px 20px rgba(255, 138, 61, .45); }
.lp-go[aria-disabled="true"] { background: rgba(255, 255, 255, .14); color: #fff; border: 2px solid rgba(255, 255, 255, .55); padding: 12px 26px; box-shadow: none; cursor: default; pointer-events: none; }
.lp-go.is-ready { animation: lp-pop .5s ease-out 1; }
.lp-go:not([aria-disabled="true"]):hover { background: #ffa05f; }
.lp-hide { padding: 11px 18px; background: #fff; color: var(--lp-ink); }
.lp-hide[hidden], .lp-go[hidden] { display: none; }
.lp-fallback { font-size: .95rem; color: #fff; }

/* ---------- the invite card (four split-test versions) ---------- */
.lp-inv { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 720px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #fff; text-align: left; line-height: 1.3; }
.lp-inv-tx { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.lp-inv-t { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.lp-inv-s { font-size: .92rem; color: rgba(255, 255, 255, .85); }
.lp-inv-b { flex: 0 0 auto; display: inline-block; padding: 13px 22px; border: 0; border-radius: 999px; background: var(--lp-orange); color: var(--lp-on-orange); font: 800 1rem/1 inherit; font-family: inherit; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(255, 138, 61, .4); transition: background .15s ease, transform .15s ease; }
a.lp-inv:hover .lp-inv-b, .lp-inv-b:hover { background: #ffa05f; transform: translateY(-1px); }

/* a: bold button, glowing border */
.lp-v-a { border: 2px solid transparent; background: linear-gradient(#141d52, #141d52) padding-box, linear-gradient(120deg, #ff8a3d, #ffd23f, #ff8a3d) border-box; box-shadow: 0 10px 30px rgba(255, 138, 61, .22); }
.lp-v-a .lp-inv-t { font-size: 1.25rem; }

/* b: free gift */
.lp-v-b { flex-wrap: wrap; border: 2px dashed rgba(255, 210, 63, .8); background: rgba(255, 210, 63, .1); padding: 0; }
.lp-gift { appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.lp-gift-ic { width: 52px; height: 52px; flex: 0 0 52px; animation: lp-wobble 2.4s ease-in-out 1s 2; transform-origin: 50% 90%; }
.lp-gift:hover .lp-gift-ic { animation: lp-wobble 1s ease-in-out 1; }
.lp-gift-open { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; animation: lp-pop .45s ease-out 1; }
.lp-gift-open[hidden], .lp-gift[hidden] { display: none; }

/* c: make your own link */
.lp-v-c { display: grid; gap: 8px; background: rgba(255, 255, 255, .09); border: 1px solid var(--lp-line); }
.lp-c-row { display: flex; gap: 10px; }
.lp-c-row input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .35); background: #fff; color: var(--lp-ink); font: 600 1rem/1.2 inherit; font-family: inherit; }
.lp-c-prev { font: .85rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; }
.lp-c-prev i { font-style: normal; color: var(--lp-amber); font-weight: 700; }

/* d: join the crowd */
.lp-v-d { background: linear-gradient(120deg, rgba(86, 98, 255, .45), rgba(255, 138, 61, .3)); border: 1px solid var(--lp-line); }
.lp-v-d .lp-cnt { color: var(--lp-amber); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.lp-v-d .lp-inv-t { font-size: 1.1rem; }

/* compact version inside the bottom bar */
.lp-bar .lp-inv { flex: 0 1 380px; width: auto; padding: 10px 12px; gap: 10px; border-radius: 12px; }
.lp-bar .lp-inv-t, .lp-bar .lp-v-a .lp-inv-t { font-size: .98rem; }
.lp-bar .lp-inv-s { font-size: .82rem; }
.lp-bar .lp-inv-b { padding: 10px 14px; font-size: .92rem; }
.lp-bar .lp-gift, .lp-bar .lp-gift-open { padding: 10px 12px; gap: 10px; }
.lp-bar .lp-gift-ic { width: 36px; height: 36px; flex-basis: 36px; }
.lp-bar .lp-v-d .lp-cnt { font-size: 1.1rem; }
.lp-bar .lp-c-row input { padding: 9px 10px; }
.lp-bar .lp-c-prev { display: none; }
.lp-bar .lp-v-c { gap: 4px; }

@keyframes lp-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes lp-wobble { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } }

@media (max-width: 640px) {
  .lp-bar { gap: 10px; }
  .lp-slot, .lp-bar .lp-inv { flex-basis: 100%; }
  .lp-bar .lp-inv-s { display: none; }
  .lp-time { width: 100%; justify-content: space-between; }
  .lp-wait .lp-time { justify-content: center; }
  .lp-inv, .lp-gift, .lp-gift-open { flex-wrap: wrap; }
  .lp-inv .lp-inv-b { width: 100%; text-align: center; }
  .lp-c-row { flex-wrap: wrap; }
  .lp-c-row input { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lp-ring .lp-prog { transition: none; } .lp-gift-ic, .lp-gift-open, .lp-go.is-ready { animation: none; } .lp-slot a.lp-adlink, .lp-inv-b { transition: none; } }
