/*
 * Sign-in page tour (Login.cshtml sections 1-7, motion in wwwroot/js/landing-tour.js).
 * Everything here is visible by default; the script hides what it is about to animate, and
 * html.lt-static (no GSAP or reduced motion) pins every scene to its finished state.
 * Colours come from the daisyUI theme (oklch vars) so both brands and every theme work.
 */

/* =========================================
   Section shell
   ========================================= */
.lt-section {
    --lt-tint: oklch(var(--p));
    position: relative;
    height: auto;
    min-height: 100vh;
    padding: 6rem 0;
    overflow: hidden;
    background-color: oklch(var(--b1));
    isolation: isolate;
}
.lt-exp, .lt-world, .lt-safe { background-color: oklch(var(--b2)); }

/* Picked theme or faction washes the section in its colour */
.lt-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 20% 20%, color-mix(in srgb, var(--lt-tint) 22%, transparent), transparent 70%),
        radial-gradient(50% 50% at 85% 80%, color-mix(in srgb, var(--lt-tint) 16%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}
.lt-section.is-tinted::before { opacity: 1; }

.lt-wrap {
    position: relative;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 2rem;
}
/* Desktop: keep clear of the dot nav on the right */
@media (min-width: 1024px) {
    .lt-wrap { padding: 0 4rem 0 2.5rem; }
}
.lt-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.lt-split--rev .lt-copy { order: 2; }
.lt-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.lt-head .lt-lead { margin-left: auto; margin-right: auto; }

/* Drifting colour blobs behind each section (moved by scroll in landing-tour.js) */
.lt-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lt-blobs span {
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.22;
    background: oklch(var(--p));
    animation: lt-blob 18s ease-in-out infinite alternate;
}
.lt-blobs span:nth-child(1) { top: -12rem; left: -10rem; }
.lt-blobs span:nth-child(2) { bottom: -14rem; right: -8rem; background: oklch(var(--s)); animation-duration: 22s; }
.lt-blobs span:nth-child(3) { top: 30%; left: 45%; width: 20rem; height: 20rem; background: oklch(var(--a)); opacity: 0.14; animation-duration: 26s; }
.lt-blobs--gold span:nth-child(1) { background: #f59e0b; }
.lt-blobs--gold span:nth-child(3) { background: #fde047; }
.lt-blobs--cool span:nth-child(1) { background: #0ea5e9; }
.lt-blobs--cool span:nth-child(2) { background: #8b5cf6; }
.lt-blobs--hot span:nth-child(1) { background: #ef4444; }
.lt-blobs--hot span:nth-child(2) { background: #f97316; }
@keyframes lt-blob {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(4rem, 3rem) scale(1.15); }
}

/* =========================================
   Type
   ========================================= */
.lt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: oklch(var(--p));
    background: oklch(var(--p) / 0.12);
    border: 1px solid oklch(var(--p) / 0.3);
}
.lt-eyebrow--gold { color: #b45309; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); }
.lt-eyebrow--info { color: oklch(var(--in)); background: oklch(var(--in) / 0.12); border-color: oklch(var(--in) / 0.3); }
.lt-eyebrow--hot { color: oklch(var(--er)); background: oklch(var(--er) / 0.12); border-color: oklch(var(--er) / 0.3); }
.lt-eyebrow--ok { color: oklch(var(--su)); background: oklch(var(--su) / 0.12); border-color: oklch(var(--su) / 0.3); }
:is([data-theme="coffee"], [data-theme="night"], [data-theme="dark"], [data-theme="synthwave"], [data-theme="forest"], [data-theme="black"], [data-theme="dracula"], [data-theme="dim"]) .lt-eyebrow--gold { color: #fbbf24; }

.lt-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: oklch(var(--bc));
    margin-bottom: 1.1rem;
}
/* Primary with a light sheen sweeping through (secondary/accent are too dark in some themes, e.g. coffee) */
.lt-title { --lt-grad: linear-gradient(100deg, oklch(var(--p)) 20%, color-mix(in oklch, oklch(var(--p)) 45%, white) 50%, oklch(var(--p)) 80%); }
.lt-exp .lt-title { --lt-grad: linear-gradient(100deg, #f59e0b 20%, #fde68a 50%, #f97316 80%); }
/* The gradient sits on each split word too: a clipped background doesn't reach transformed children */
.lt-title em, .lt-title em .lt-wi {
    font-style: normal;
    background-image: var(--lt-grad);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: lt-sheen 5s ease-in-out infinite;
}
@keyframes lt-sheen {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}
.lt-title em .lt-w { background: none; }
/* Word masks for the rising headline (landing-tour.js splits the words) */
.lt-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.lt-wi { display: inline-block; will-change: transform; }

.lt-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: oklch(var(--bc) / 0.72);
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.lt-ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.6rem; }
.lt-ticks li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: oklch(var(--bc) / 0.85); }
.lt-ticks i {
    width: 2rem; height: 2rem; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 0.6rem;
    color: oklch(var(--pc));
    background: linear-gradient(135deg, oklch(var(--p)), oklch(var(--s)));
    box-shadow: 0 6px 16px -6px oklch(var(--p) / 0.6);
}

.lt-feature-list { display: grid; gap: 0.75rem; }
.lt-feature-list > div {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    background: oklch(var(--b1) / 0.7);
    border: 1px solid oklch(var(--bc) / 0.08);
    color: oklch(var(--bc) / 0.8);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.lt-feature-list > div:hover { transform: translateX(6px); border-color: oklch(var(--p) / 0.35); }
.lt-feature-list i { color: oklch(var(--p)); width: 1.25rem; text-align: center; font-size: 1.1rem; }
.lt-feature-list b { color: oklch(var(--bc)); }

/* Shared panel card */
.lt-panel {
    position: relative;
    padding: 1.4rem;
    border-radius: 1.25rem;
    background: oklch(var(--b1) / 0.8);
    border: 1px solid oklch(var(--bc) / 0.1);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    overflow: hidden;
}
.lt-panel h3 { font-weight: 800; font-size: 1.05rem; color: oklch(var(--bc)); margin: 0.6rem 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.lt-panel h3 i { color: oklch(var(--p)); }
.lt-panel p { font-size: 0.875rem; line-height: 1.5; color: oklch(var(--bc) / 0.65); margin: 0; }
/* Light follows the pointer on tilting cards */
.lt-tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), oklch(var(--p) / 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lt-tilt:hover::after { opacity: 1; }

/* Particles (bursts) */
.lt-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}
.lt-particle--star { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 14px; height: 14px; border-radius: 0; }
.lt-particle--confetti { width: 7px; height: 12px; border-radius: 2px; }

/* =========================================
   Hero additions: the cycling claim, tour link, dot labels
   ========================================= */
.hero-claim {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 0.4em;
    margin: -0.25rem auto 0.9rem;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.hero-claim-words { display: inline-grid; perspective: 600px; }
.hero-claim-word {
    grid-area: 1 / 1;
    opacity: 0;
    white-space: nowrap;
    color: #fcd34d;
    transform-origin: 50% 50% -20px;
}
.hero-claim-word.is-on { opacity: 1; }

.hero-quest--new { position: relative; }
.hero-quest--new::after {
    content: "New";
    position: absolute;
    top: -0.45rem;
    right: -0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #451a03;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 4px 10px -3px rgba(245, 158, 11, 0.7);
    animation: lt-wiggle 3s ease-in-out infinite;
}
@keyframes lt-wiggle {
    0%, 88%, 100% { transform: rotate(0); }
    92% { transform: rotate(-12deg); }
    96% { transform: rotate(10deg); }
}

.auth-tour-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    font-size: 0.85rem;
    color: oklch(var(--bc) / 0.8);
    background: linear-gradient(110deg, oklch(var(--p) / 0.1), oklch(var(--s) / 0.1));
    border: 1px dashed oklch(var(--p) / 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.auth-tour-link:hover { transform: translateY(-2px); border-color: oklch(var(--p) / 0.7); color: oklch(var(--bc)); }
.auth-tour-link span:nth-child(2) { flex: 1; }
.auth-tour-link i { color: oklch(var(--p)); animation: lt-nudge 1.6s ease-in-out infinite; }
.auth-tour-icon { font-size: 1.1rem; }
@keyframes lt-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.gsap-dot { position: relative; }
.gsap-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translate(6px, -50%);
    padding: 0.2rem 0.55rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 700;
    color: oklch(var(--pc));
    background: oklch(var(--p));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gsap-dot:hover::after, .gsap-dot:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* =========================================
   1. Avatar stage
   ========================================= */
.lt-stage-wrap { position: relative; padding: 1rem 0 2rem; perspective: 1000px; }
.lt-stage {
    position: relative;
    width: min(100%, 26rem);
    aspect-ratio: 1 / 1.05;
    margin: 0 auto;
    border-radius: 2rem;
    background:
        radial-gradient(80% 60% at 50% 20%, oklch(var(--p) / 0.25), transparent 70%),
        linear-gradient(180deg, oklch(var(--b2)), oklch(var(--b3)));
    border: 1px solid oklch(var(--bc) / 0.1);
    box-shadow: 0 40px 80px -40px oklch(var(--p) / 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
    overflow: hidden;
}
.lt-spot {
    position: absolute;
    left: 50%;
    top: -10%;
    width: 70%;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 75%);
    clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
    opacity: 0.5;
    pointer-events: none;
}
.lt-floor {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 9%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent);
}
.lt-ring {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid oklch(var(--a));
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.lt-look {
    position: absolute;
    inset: 8% 12% 6%;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
}
.lt-look.is-on { opacity: 1; visibility: visible; }
.lt-look svg { width: 100%; height: 100%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3)); }
.lt-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

.lt-slot-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 1rem; }
.lt-chip {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: oklch(var(--bc) / 0.7);
    background: oklch(var(--b1));
    border: 1px solid oklch(var(--bc) / 0.12);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lt-chip.is-hot { color: oklch(var(--pc)); background: oklch(var(--p)); border-color: oklch(var(--p)); }

.lt-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.8rem 0.5rem 0.5rem;
    border-radius: 1rem;
    background: oklch(var(--b1) / 0.92);
    border: 1px solid oklch(var(--bc) / 0.1);
    box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    line-height: 1.2;
    color: oklch(var(--bc));
    z-index: 2;
}
.lt-float small { display: block; color: oklch(var(--bc) / 0.6); font-size: 0.7rem; }
.lt-float--post { top: 6%; left: -4%; }
.lt-float--rank { top: 42%; right: -1%; }
.lt-float--comment { bottom: 16%; left: 0; }
.lt-medal { font-size: 1.1rem; }
.lt-mini-av {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: oklch(var(--b2));
    box-shadow: 0 0 0 2px oklch(var(--b1)), 0 0 0 4px oklch(var(--p));
}
/* Full-body copy, zoomed onto the head */
.lt-mini-av svg { width: 190%; height: 190%; margin: -8% 0 0 -45%; }

/* =========================================
   2. Quest Expansions
   ========================================= */
.lt-exp-grid {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 60rem;
    margin: 0 auto 3.5rem;
}
.lt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; position: relative; }
.lt-steps::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: oklch(var(--bc) / 0.12);
}
.lt-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.7rem 0.55rem 0;
    border-radius: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.lt-steps li > span {
    position: relative;
    z-index: 1;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    color: oklch(var(--bc) / 0.6);
    background: oklch(var(--b1));
    border: 2px solid oklch(var(--bc) / 0.15);
    transition: all 0.3s ease;
}
.lt-steps b { display: block; font-size: 0.95rem; color: oklch(var(--bc)); }
.lt-steps small { color: oklch(var(--bc) / 0.6); font-size: 0.75rem; }
.lt-steps li.is-done { opacity: 0.85; }
.lt-steps li.is-done > span { color: #fff; background: #22c55e; border-color: #22c55e; }
.lt-steps li.is-active { opacity: 1; transform: translateX(6px); }
.lt-steps li.is-active > span {
    color: #451a03;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    border-color: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.2), 0 8px 20px -6px rgba(245, 158, 11, 0.8);
}

.lt-exp-stage { position: relative; perspective: 1400px; min-height: 22rem; display: grid; place-items: center; }
.lt-card3d {
    position: relative;
    width: min(100%, 26rem);
    height: 23.5rem;
    transform-style: preserve-3d;
}
.lt-face {
    position: absolute;
    inset: 0;
    padding: 1.4rem;
    border-radius: 1.4rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.55);
}
.lt-punch {
    background:
        repeating-linear-gradient(45deg, transparent 0 12px, rgba(120, 72, 32, 0.05) 12px 24px),
        linear-gradient(160deg, #fdf6e3, #f1e3c4);
    color: #5b3a1e;
    border: 2px dashed rgba(91, 58, 30, 0.35);
}
.lt-punch-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.lt-punch-head b { font-size: 1.15rem; font-family: Georgia, serif; }
.lt-punch-head small { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.65rem; opacity: 0.7; }
.lt-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; }
.lt-stamp {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px dashed rgba(91, 58, 30, 0.35);
    color: transparent;
    font-size: 1.1rem;
}
.lt-stamp:nth-child(-n+7) { color: #b91c1c; border: 2px solid rgba(185, 28, 28, 0.6); background: rgba(185, 28, 28, 0.06); }
.lt-punch-foot { margin-top: 1.2rem; font-size: 0.75rem; font-style: italic; opacity: 0.75; }
.lt-tag {
    position: absolute;
    top: -0.7rem;
    right: 1rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.lt-tag--old { color: #fff; background: #78716c; }
.lt-tag--new { position: static; margin-left: auto; color: #451a03; background: linear-gradient(135deg, #fde047, #f59e0b); }

.lt-quest {
    transform: rotateY(180deg);
    padding-bottom: 5.2rem; /* room for the Bounty / reward strip */
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: #f8fafc;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(245, 158, 11, 0.35), transparent 60%),
        linear-gradient(160deg, #1e1b4b, #0f172a 60%, #1c1917);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 40px 70px -35px rgba(245, 158, 11, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.lt-quest-head { display: flex; align-items: center; gap: 0.7rem; }
.lt-quest-head b { display: block; font-size: 1rem; }
.lt-quest-head small { color: rgba(248, 250, 252, 0.65); font-size: 0.75rem; }
.lt-rep-name { display: inline-block; color: #fbbf24; font-weight: 800; }
.lt-crest {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.4);
}
.lt-objectives { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.lt-objectives li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
}
.lt-objectives li span:nth-child(2) { flex: 1; }
.lt-objectives em { font-style: normal; font-weight: 800; color: #86efac; font-size: 0.75rem; }
.lt-check {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.65rem;
    color: #052e16;
    background: #4ade80;
}
.lt-rep { display: flex; align-items: center; gap: 0.7rem; }
.lt-rep-bar { flex: 1; height: 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.lt-rep-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #fde047);
    box-shadow: 0 0 12px rgba(253, 224, 71, 0.8);
    transform-origin: left;
}
.lt-rep-xp {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    color: #1e1b4b;
    background: #a5b4fc;
    white-space: nowrap;
}
.lt-bounty {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.2rem;
    padding: 0.65rem;
    border-radius: 0.8rem;
    text-align: center;
    font-weight: 900;
    color: #451a03;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.9);
    z-index: 1;
}
.lt-reward {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(250, 204, 21, 0.2));
    border: 1px solid rgba(134, 239, 172, 0.5);
}
.lt-reward b { display: block; font-size: 0.9rem; }
.lt-reward small { font-size: 0.72rem; color: rgba(248, 250, 252, 0.8); }
.lt-reward-badge { font-size: 1.8rem; display: inline-block; }
.lt-coins { position: absolute; left: 50%; bottom: 3rem; width: 0; height: 0; z-index: 4; pointer-events: none; }
.lt-coin {
    position: absolute;
    left: -0.6rem;
    top: -0.6rem;
    width: 1.2rem;
    height: 1.2rem;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-style: normal;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fef08a, #f59e0b 60%, #b45309);
    box-shadow: 0 0 0 1px rgba(120, 53, 15, 0.4);
    opacity: 0;
}
.lt-coin:nth-child(5n+1) { background: none; box-shadow: none; }
.lt-replay { position: absolute; bottom: -2.6rem; right: 0; display: none; }
.lt-exp-stage.is-auto .lt-replay { display: inline-flex; }

.lt-compare {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid oklch(var(--bc) / 0.1);
    background: oklch(var(--b1) / 0.8);
}
.lt-compare-row { display: grid; grid-template-columns: 1fr 1.4fr; }
.lt-compare-row + .lt-compare-row { border-top: 1px solid oklch(var(--bc) / 0.08); }
.lt-compare-row > span { padding: 0.95rem 1.2rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.lt-compare-row > span:first-child { color: oklch(var(--bc) / 0.5); background: oklch(var(--bc) / 0.03); }
.lt-compare-row > span:last-child { color: oklch(var(--bc)); font-weight: 600; }
.lt-compare-row > span:last-child i { color: #f59e0b; }
.lt-compare-head > span { font-size: 0.72rem !important; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.lt-compare-head > span:last-child { color: #b45309 !important; background: rgba(245, 158, 11, 0.12); }
/* The old way gets struck through (the line draws in when the row arrives) */
.lt-compare s { text-decoration: none; position: relative; }
.lt-compare s::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    top: 52%;
    height: 2px;
    background: oklch(var(--er));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.lt-compare-row.is-struck s::after, .lt-static .lt-compare s::after { transform: scaleX(1); }

.lt-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.lt-perk {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: oklch(var(--bc) / 0.85);
    background: oklch(var(--b1));
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 8px 20px -14px rgba(245, 158, 11, 0.8);
}
.lt-perk i { color: #f59e0b; }

/* =========================================
   3. Identity
   ========================================= */
.lt-identity .theme-split-container { transition: box-shadow 0.4s ease; }
.lt-identity.is-tinted .theme-split-container { box-shadow: 0 30px 60px -30px var(--lt-tint); }
.lt-id-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lt-studio-canvas, .lt-room-scene {
    position: relative;
    height: 8.5rem;
    border-radius: 0.9rem;
    background: linear-gradient(160deg, oklch(var(--b2)), oklch(var(--b3)));
    overflow: hidden;
}
.lt-swatch {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    margin: -0.8rem 0 0 -0.8rem;
    border-radius: 0.45rem;
    background: var(--c);
    box-shadow: 0 6px 14px -4px var(--c);
}
.lt-static .lt-swatch { opacity: 0; }
.lt-made-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5rem;
    height: 5rem;
    margin: -2.5rem 0 0 -2.5rem;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #3b82f6, #a855f7, #f43f5e);
    animation: lt-spin 3s linear infinite;
}
.lt-made-ring span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    background: oklch(var(--b1));
    animation: lt-spin 3s linear infinite reverse;
}
@keyframes lt-spin { to { transform: rotate(360deg); } }
.lt-room-wall { position: absolute; inset: 0 0 32% 0; background: repeating-linear-gradient(90deg, oklch(var(--p) / 0.08) 0 18px, transparent 18px 36px); }
.lt-room-shelf {
    position: absolute;
    top: 14%;
    right: 10%;
    display: flex;
    gap: 0.35rem;
    padding: 0 0.4rem 0.15rem;
    border-bottom: 4px solid #92400e;
    font-size: 1.15rem;
}
.lt-room-shelf i { font-style: normal; display: inline-block; }
.lt-room-actor { position: absolute; left: 22%; bottom: 14%; font-size: 2.4rem; display: inline-block; }
.lt-room-poke { position: absolute; left: 22%; bottom: 46%; font-size: 1.5rem; opacity: 0; }
.lt-mini-list { display: grid; gap: 0.65rem; align-content: center; }
.lt-mini-item { display: flex; align-items: center; gap: 0.75rem; }
.lt-mini-item b { display: block; font-size: 0.9rem; color: oklch(var(--bc)); }
.lt-mini-item small { color: oklch(var(--bc) / 0.6); font-size: 0.75rem; }
.lt-ico {
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
.lt-ico--ring { background: conic-gradient(#ff0080, #ff8c00, #40e0d0, #ff0080); animation: lt-spin 4s linear infinite; }
.lt-ico--ring i { animation: lt-spin 4s linear infinite reverse; }

/* =========================================
   4. World
   ========================================= */
.lt-world-stage { position: relative; display: grid; gap: 1rem; }
.lt-map {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 30%, oklch(var(--p) / 0.18), transparent 50%),
        linear-gradient(160deg, oklch(var(--b1)), oklch(var(--b3)));
    border: 1px solid oklch(var(--bc) / 0.1);
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.5);
}
.lt-map-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.lt-map-streets path { fill: none; stroke: oklch(var(--bc) / 0.12); stroke-width: 10; stroke-linecap: round; }
.lt-map-streets .lt-map-route { stroke: oklch(var(--p)); stroke-width: 3; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.lt-static .lt-map-route { stroke-dashoffset: 0; }
.lt-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 2.2rem;
    height: 2.2rem;
    margin: -2.2rem 0 0 -1.1rem;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.85rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: oklch(var(--s));
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.5);
}
.lt-pin i { transform: rotate(45deg); }
.lt-pin--hot { background: oklch(var(--p)); }
.lt-pin--hot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px solid oklch(var(--p));
    animation: lt-ping 1.8s ease-out infinite;
}
@keyframes lt-ping { from { opacity: 0.8; transform: scale(0.8); } to { opacity: 0; transform: scale(1.8); } }
.lt-pin b {
    position: absolute;
    left: 2rem;
    top: -1.2rem;
    transform: rotate(45deg);
    white-space: nowrap;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    color: oklch(var(--pc));
    background: oklch(var(--p));
}
.lt-walker {
    position: absolute;
    left: 17.5%;
    top: 80%;
    width: 2.4rem;
    height: 2.4rem;
    margin: -1.2rem 0 0 -1.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.3rem;
    background: oklch(var(--b1));
    box-shadow: 0 0 0 3px oklch(var(--a)), 0 10px 20px -8px rgba(0, 0, 0, 0.5);
    z-index: 2;
}
.lt-static .lt-walker--a { left: 53.75%; top: 50%; }
.lt-walker--b { left: var(--x); top: var(--y); box-shadow: 0 0 0 3px oklch(var(--s)), 0 10px 20px -8px rgba(0, 0, 0, 0.5); }
.lt-poke { position: absolute; left: 0; top: 0; margin: -0.8rem 0 0 -0.8rem; font-size: 1.6rem; opacity: 0; z-index: 3; pointer-events: none; }

.lt-stories { display: flex; gap: 0.8rem; }
.lt-story {
    width: 3.4rem;
    height: 3.4rem;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f43f5e, #f59e0b, #a855f7, #f43f5e);
    animation: lt-spin 6s linear infinite;
}
.lt-story--seen { background: oklch(var(--bc) / 0.2); animation: none; }
.lt-story i {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 1.3rem;
    border-radius: 50%;
    background: oklch(var(--b1));
    border: 2px solid oklch(var(--b1));
    animation: lt-spin 6s linear infinite reverse;
}
.lt-story--seen i { animation: none; }
.lt-chat { display: grid; gap: 0.45rem; }
.lt-bubble { max-width: 80%; padding: 0.55rem 0.85rem; border-radius: 1rem; font-size: 0.85rem; }
.lt-bubble--in { justify-self: start; color: oklch(var(--pc)); background: oklch(var(--p)); border-bottom-left-radius: 0.25rem; }
.lt-bubble--out { justify-self: end; color: oklch(var(--ac)); background: oklch(var(--a)); border-bottom-right-radius: 0.25rem; }
.lt-typing { display: flex; gap: 0.25rem; padding: 0.6rem 0.8rem; justify-self: end; border-radius: 1rem; background: oklch(var(--b1)); opacity: 0; }
.lt-typing i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: oklch(var(--bc) / 0.5); animation: lt-dot 1s ease-in-out infinite; }
.lt-typing i:nth-child(2) { animation-delay: 0.15s; }
.lt-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lt-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* =========================================
   5. Play
   ========================================= */
.lt-pass {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
    padding: 1.2rem 1.4rem 1.6rem;
    border-radius: 1.25rem;
    background: oklch(var(--b1) / 0.85);
    border: 1px solid oklch(var(--bc) / 0.1);
}
.lt-pass-top { display: flex; justify-content: space-between; margin-bottom: 1.1rem; color: oklch(var(--bc)); }
.lt-pass-level { font-weight: 900; color: oklch(var(--p)); }
.lt-pass-level span { display: inline-block; min-width: 1ch; }
.lt-pass-track { position: relative; height: 0.7rem; border-radius: 999px; background: oklch(var(--bc) / 0.1); }
.lt-pass-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, oklch(var(--p)), oklch(var(--s)), oklch(var(--a)));
    box-shadow: 0 0 14px oklch(var(--p) / 0.7);
    transform-origin: left;
}
.lt-pass-tier {
    position: absolute;
    top: 50%;
    left: calc((var(--i) / 6) * 100% - 1.3rem);
    width: 2.6rem;
    height: 2.6rem;
    margin-top: -1.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: oklch(var(--b2));
    border: 2px solid oklch(var(--bc) / 0.15);
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.lt-pass-tier i { font-style: normal; font-size: 1.15rem; }
.lt-pass-tier.is-lit { filter: none; opacity: 1; border-color: oklch(var(--p)); box-shadow: 0 0 0 4px oklch(var(--p) / 0.2), 0 8px 20px -6px oklch(var(--p) / 0.8); }

.lt-play-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.lt-game { text-align: center; }
.lt-game > span:first-child { display: inline-flex; align-items: center; justify-content: center; height: 4rem; font-size: 2.8rem; position: relative; }
.lt-crate-rays {
    position: absolute;
    inset: -1.2rem;
    border-radius: 50%;
    background: repeating-conic-gradient(rgba(251, 191, 36, 0.55) 0 10deg, transparent 10deg 30deg);
    opacity: 0;
    z-index: -1;
    animation: lt-spin 4s linear infinite;
}
.lt-swap { gap: 0.3rem; }
.lt-swap i { font-style: normal; display: inline-block; font-size: 1.8rem; }
.lt-rank-up b {
    position: absolute;
    right: -1.2rem;
    top: 0;
    font-size: 0.9rem;
    font-weight: 900;
    color: oklch(var(--su));
}

.lt-factions { text-align: center; }
.lt-factions-label { font-weight: 800; color: oklch(var(--bc)); margin-bottom: 1rem; }
.lt-factions-label small { font-weight: 600; color: oklch(var(--bc) / 0.5); margin-left: 0.35rem; }
.lt-faction-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.lt-faction {
    position: relative;
    flex: 1 1 10rem;
    max-width: 13rem;
    padding: 1.2rem 1rem;
    border-radius: 1.2rem;
    color: oklch(var(--bc));
    background: oklch(var(--b1) / 0.85);
    border: 2px solid color-mix(in srgb, var(--fc) 35%, transparent);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.lt-faction:hover { border-color: var(--fc); box-shadow: 0 16px 34px -18px var(--fc); }
.lt-faction:focus-visible { outline: 3px solid var(--fc); outline-offset: 3px; }
.lt-faction-icon { display: block; font-size: 2.6rem; margin-bottom: 0.3rem; }
.lt-faction b { display: block; font-size: 1.05rem; font-weight: 900; color: var(--fc); }
.lt-faction small { color: oklch(var(--bc) / 0.6); }
.lt-play.has-faction .lt-faction[aria-checked="false"] { opacity: 0.55; filter: grayscale(0.6); }
.lt-faction[aria-checked="true"] { border-color: var(--fc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc) 25%, transparent), 0 20px 40px -20px var(--fc); }

/* =========================================
   6. Safety
   ========================================= */
.lt-shield-stage { position: relative; width: min(100%, 18rem); margin: 0 auto; aspect-ratio: 200 / 220; }
.lt-shield { width: 100%; height: 100%; overflow: visible; }
.lt-shield-fill { fill: oklch(var(--su) / 0.12); }
.lt-shield-line {
    fill: none;
    stroke: oklch(var(--su));
    stroke-width: 5;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    filter: drop-shadow(0 0 8px oklch(var(--su) / 0.6));
}
.lt-shield-pin {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: oklch(var(--su));
}
.lt-shield-lock {
    position: absolute;
    right: 18%;
    bottom: 18%;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    background: oklch(var(--su));
    box-shadow: 0 10px 24px -8px oklch(var(--su));
}
.lt-shield-stage.is-locked .lt-shield-line { animation: lt-glow 2.4s ease-in-out infinite; }
@keyframes lt-glow { 50% { filter: drop-shadow(0 0 18px oklch(var(--su) / 0.9)); } }

/* =========================================
   7. Join
   ========================================= */
.lt-join-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lt-join .lt-lead { margin-left: auto; margin-right: auto; }
.lt-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.lt-recap span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: oklch(var(--bc) / 0.85);
    background: oklch(var(--b2));
    border: 1px solid oklch(var(--bc) / 0.1);
}
.lt-recap i { color: oklch(var(--p)); }
.lt-join .link { background: none; border: 0; cursor: pointer; }
.lt-join-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.lt-cta-glow { position: relative; overflow: visible; }
.lt-cta-glow::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--lt-angle, 0deg), oklch(var(--p)), oklch(var(--s)), oklch(var(--a)), oklch(var(--p)));
    filter: blur(10px);
    opacity: 0.75;
    animation: lt-angle 4s linear infinite;
}
@property --lt-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lt-angle { to { --lt-angle: 360deg; } }

/* =========================================
   Static mode: every scene in its finished state
   ========================================= */
.lt-static .lt-card3d { transform: rotateY(180deg); }
.lt-static .lt-bounty { display: none; }
.lt-static .lt-coins { display: none; }

/* =========================================
   Tablet & phone
   ========================================= */
@media (max-width: 1023px) {
    .lt-section { min-height: 0; padding: 4.5rem 0; }
    .lt-split, .lt-exp-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .lt-split--rev .lt-copy { order: 0; }
    .lt-copy { text-align: center; }
    .lt-copy .lt-lead { margin-left: auto; margin-right: auto; }
    .lt-ticks { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
    .lt-id-grid { grid-template-columns: 1fr 1fr; }
    .lt-mini-list { grid-column: 1 / -1; }
    .lt-play-grid { grid-template-columns: 1fr 1fr; }
    .lt-steps { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
    .lt-steps::before { left: 1.2rem; right: 1.2rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; }
    .lt-steps li { flex-direction: column; text-align: center; padding: 0; gap: 0.4rem; }
    .lt-steps li.is-active { transform: translateY(-3px); }
    .lt-steps small { display: none; }
    .lt-steps b { font-size: 0.75rem; }
}
@media (max-width: 639px) {
    .lt-wrap { padding: 0 1rem; }
    .lt-section { padding: 3.5rem 0; }
    .lt-head { margin-bottom: 2rem; }
    .lt-id-grid, .lt-play-grid { grid-template-columns: 1fr; }
    .lt-float { font-size: 0.7rem; padding: 0.35rem 0.6rem 0.35rem 0.35rem; }
    .lt-float--post { left: 0; top: 2%; }
    .lt-float--rank { right: 0; }
    .lt-float--comment { display: none; }
    .lt-mini-av { width: 2rem; height: 2rem; }
    .lt-card3d { height: 22rem; }
    .lt-face { padding: 1.1rem; }
    .lt-compare-row { grid-template-columns: 1fr; }
    .lt-compare-row > span:first-child { padding-bottom: 0.25rem; font-size: 0.8rem; }
    .lt-compare-row > span:last-child { padding-top: 0.35rem; }
    .lt-compare-head { display: none; }
    .lt-pass-tier { width: 2rem; height: 2rem; margin-top: -1rem; left: calc((var(--i) / 6) * 100% - 1rem); }
    .lt-pass-tier i { font-size: 0.9rem; }
    .lt-faction { flex-basis: 40%; padding: 0.9rem 0.6rem; }
    .lt-faction-icon { font-size: 2rem; }
    .lt-pin b { font-size: 0.6rem; }
    .lt-shield-stage { width: 11rem; }
    .lt-shield-pin { font-size: 2.4rem; }
    .lt-stories { justify-content: center; }
}

/* =========================================
   Reduced motion: no looping CSS either
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    .lt-blobs span, .lt-made-ring, .lt-made-ring span, .lt-ico--ring, .lt-ico--ring i, .lt-story, .lt-story i,
    .lt-pin--hot::before, .lt-typing i, .lt-crate-rays, .lt-cta-glow::before, .hero-quest--new::after, .auth-tour-link i,
    .lt-title em, .lt-title em .lt-wi {
        animation: none !important;
    }
    .lt-typing { display: none; }
}
