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

:root {
    --k-950: #111a33;
    --k-900: #1b2848;
    --k-850: #22325a;
    --k-800: #2a3c6a;
    --k-primary: #3e49c6;
    --k-primary-deep: #3841a8;
    --k-primary-soft: #9aa2ff;
    --k-primary-pale: #d7dbff;
    --k-accent: #def175;
    --k-accent-deep: #c3d46a;
    --white: #ffffff;
    --txt: #ffffff;
    --txt-muted: rgba(255, 255, 255, 0.86);
    --txt-dim: rgba(255, 255, 255, 0.6);
    --line: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(17, 26, 51, 0.78);
    --card-border: rgba(255, 255, 255, 0.14);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.12);
    --font-sora: 'Sora', 'Inter', Helvetica, sans-serif;
    --radius: 14px;
    --radius-lg: 26px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --belt-h: 76px;
    --game-h: 230px;
}

html {
    min-height: 100%;
}

body {
    font-family: var(--font-sora);
    background-color: var(--k-900);
    background-image:
        radial-gradient(1100px 700px at 12% 8%, rgba(62, 73, 198, 0.26), transparent 60%),
        radial-gradient(900px 600px at 95% 85%, rgba(222, 241, 117, 0.14), transparent 60%),
        linear-gradient(160deg, var(--k-850) 0%, var(--k-900) 45%, var(--k-950) 100%);
    color: var(--txt);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.lg-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

.lg-bg-glow {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    right: 6%;
    top: 12%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(62, 73, 198, 0.22) 0%, transparent 65%);
    animation: lgGlowPulse 9s ease-in-out infinite;
}

@keyframes lgGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.12); opacity: 1; }
}

.lg-topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;
}

.lg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--txt);
}

.lg-brand img {
    height: 34px;
    width: auto;
    display: block;
}

.lg-brand-sep {
    width: 1px;
    height: 28px;
    background: var(--line);
}

.lg-brand-text {
    font-size: 11px;
    line-height: 1.35;
    color: var(--txt-muted);
    letter-spacing: 0.04em;
}

.lg-brand-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--txt);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lg-topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lg-clock {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.lg-clock strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lg-clock span {
    display: block;
    font-size: 11px;
    color: var(--txt-muted);
}

.lg-clock span::first-letter {
    text-transform: uppercase;
}

.lg-track-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--txt);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lg-track-link:hover {
    background: rgba(62, 73, 198, 0.16);
    border-color: var(--k-primary-soft);
}

.lg-track-link:focus-visible {
    outline: 3px solid var(--k-accent);
    outline-offset: 3px;
}

.lg-track-link .material-symbols-outlined {
    font-size: 18px;
    color: var(--k-accent);
}

.lg-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 470px);
    gap: 56px;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 16px;
    flex: 1 0 auto;
}

.lg-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border-radius: 40px;
    background: rgba(222, 241, 117, 0.1);
    border: 1px solid rgba(222, 241, 117, 0.35);
    font-size: 12px;
    font-weight: 600;
    color: var(--k-accent);
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.lg-badge-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--k-accent);
}

.lg-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: lgPing 2s ease-out infinite;
}

@keyframes lgPing {
    0% { box-shadow: 0 0 0 0 rgba(222, 241, 117, 0.6); }
    80%, 100% { box-shadow: 0 0 0 9px rgba(222, 241, 117, 0); }
}

.lg-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.lg-hero h1 em {
    font-style: normal;
    color: var(--k-accent);
}

.lg-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--txt-muted);
    max-width: 560px;
}

.lg-flow {
    margin-top: 26px;
    display: flex;
    align-items: stretch;
    max-width: 640px;
}

.lg-flow-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.lg-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: repeating-linear-gradient(to right, rgba(154, 162, 255, 0.4) 0 6px, transparent 6px 11px);
    background-size: 22px 2px;
    animation: lgDashMove 1.2s linear infinite;
}

@keyframes lgDashMove {
    to { background-position: 22px 0; }
}

.lg-flow-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--txt-dim);
    transition: all 0.45s var(--ease);
}

.lg-flow-icon .material-symbols-outlined {
    font-size: 24px;
}

.lg-flow-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-dim);
    transition: color 0.45s var(--ease);
}

.lg-flow-step.is-active .lg-flow-icon {
    background: var(--k-accent);
    border-color: transparent;
    color: var(--k-900);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(222, 241, 117, 0.3);
}

.lg-flow-step.is-active .lg-flow-lbl {
    color: var(--k-accent);
}

.lg-chips {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    color: var(--txt-muted);
}

.lg-chip .material-symbols-outlined {
    font-size: 17px;
    color: var(--k-accent);
}

.lg-integ {
    margin-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.lg-integ-lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--txt-dim);
}

.lg-integ-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.lg-integ-list li {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--txt);
    background: rgba(255, 255, 255, 0.05);
}

.lg-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px 34px 20px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.lg-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.lg-card-logo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(56, 65, 168, 0.45), 0 0 0 6px rgba(62, 73, 198, 0.12);
}

.lg-card-logo img {
    width: 38px;
    height: 38px;
    display: block;
}

.lg-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.lg-sub {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin: 4px 0 18px;
}

.lg-field {
    margin-bottom: 12px;
}

.lg-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--txt-muted);
    margin: 0 0 6px 2px;
    letter-spacing: 0.02em;
}

.lg-input-wrap {
    position: relative;
}

.lg-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-dim);
    display: flex;
    pointer-events: none;
    transition: color 0.25s ease;
}

.lg-input-icon .material-symbols-outlined {
    font-size: 20px;
}

.lg-input-wrap:focus-within .lg-input-icon {
    color: var(--k-primary-soft);
}

.lg-input-wrap input {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    padding: 12px 48px 12px 46px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
}

.lg-input-wrap input::placeholder {
    color: var(--txt-dim);
}

.lg-input-wrap input:focus {
    border-color: var(--k-primary-soft);
    background: rgba(62, 73, 198, 0.12);
    box-shadow: 0 0 0 4px rgba(62, 73, 198, 0.2);
}

.lg-input-wrap input:-webkit-autofill,
.lg-input-wrap input:-webkit-autofill:hover,
.lg-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 100px #22325a inset;
    transition: background-color 5000s ease-in-out 0s;
}

.lg-pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--txt-dim);
    cursor: pointer;
    padding: 6px;
    display: flex;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lg-pwd-toggle:hover {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.06);
}

.lg-pwd-toggle:focus-visible {
    outline: 2px solid var(--k-accent);
}

.lg-pwd-toggle .material-symbols-outlined {
    font-size: 20px;
}

.lg-caps {
    display: none;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0 2px;
    font-size: 12px;
    color: #fcd34d;
}

.lg-caps.is-visible {
    display: flex;
}

.lg-caps .material-symbols-outlined {
    font-size: 16px;
}

.lg-alert {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 11px 14px;
    margin: 4px 0 14px;
    color: #fca5a5;
    font-size: 13px;
}

.lg-alert.is-visible {
    display: flex;
    animation: lgShake 0.45s ease;
}

.lg-alert .material-symbols-outlined {
    font-size: 19px;
    flex-shrink: 0;
}

@keyframes lgShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

.lg-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    margin-top: 6px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--k-primary) 0%, var(--k-primary-deep) 100%);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(62, 73, 198, 0.4);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.lg-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(62, 73, 198, 0.55);
}

.lg-btn:active {
    transform: translateY(0);
}

.lg-btn:disabled {
    cursor: progress;
    filter: none;
    transform: none;
}

.lg-btn:focus-visible {
    outline: 3px solid var(--k-accent);
    outline-offset: 3px;
}

.lg-btn .material-symbols-outlined {
    font-size: 20px;
}

.lg-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    animation: lgSpin 0.7s linear infinite;
}

.lg-btn.is-loading .lg-spinner {
    display: block;
}

.lg-btn.is-loading .material-symbols-outlined {
    display: none;
}

@keyframes lgSpin {
    to { transform: rotate(360deg); }
}





.lg-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 11.5px;
    color: var(--txt-dim);
}

.lg-secure .material-symbols-outlined {
    font-size: 16px;
    color: var(--k-accent);
}

.lg-belt-slot {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    height: var(--belt-h);
}

.lg-belt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    overflow: hidden;
}

.lg-belt.is-playing {
    position: fixed;
    z-index: 40;
    height: var(--game-h);
    background: linear-gradient(to bottom, rgba(17, 26, 51, 0) 0%, rgba(17, 26, 51, 0.92) 28%, var(--k-950) 100%);
    cursor: crosshair;
    touch-action: manipulation;
}

.lg-belt.is-hurt {
    animation: lgHurt 0.4s ease;
}

@keyframes lgHurt {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
    30% { box-shadow: inset 0 -60px 80px -20px rgba(239, 68, 68, 0.45); }
}

.lg-belt-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    background:
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 28px),
        linear-gradient(to bottom, #2a3c6a, #111a33);
    background-size: 28px 100%, 100% 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    animation: lgBeltRun 1.4s linear infinite;
}

.lg-belt.is-playing .lg-belt-track {
    animation: none;
}

@keyframes lgBeltRun {
    to { background-position: 28px 0, 0 0; }
}

.lg-parcel {
    position: absolute;
    bottom: 16px;
    left: 0;
    will-change: transform;
    animation: lgParcelMove 26s linear infinite;
}

.lg-belt.is-playing .lg-parcel {
    display: none;
}

.lg-parcel-box,
.lg-gbox {
    position: relative;
    width: 62px;
    height: 44px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #d3a46a, #b5844b);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.lg-parcel-box::before,
.lg-gbox::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 10px;
    margin-left: -5px;
    background: rgba(255, 255, 255, 0.22);
}

.lg-parcel-box::after,
.lg-gbox-label {
    content: '';
    position: absolute;
    left: 8px;
    bottom: 7px;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    background:
        repeating-linear-gradient(to right, #1a1f3d 0 1.5px, transparent 1.5px 3px, #1a1f3d 3px 4px, transparent 4px 6px) 3px 7px / 16px 6px no-repeat,
        #ffffff;
}

.lg-parcel.p2 { animation-delay: -6.5s; }
.lg-parcel.p3 { animation-delay: -13s; }
.lg-parcel.p4 { animation-delay: -19.5s; }

.lg-parcel.p2 .lg-parcel-box {
    width: 48px;
    height: 36px;
}

.lg-parcel.p3 .lg-parcel-box {
    width: 70px;
    height: 34px;
    background: linear-gradient(to bottom, #5a64d8, #3e49c6);
}

.lg-parcel.p4 .lg-parcel-box {
    width: 54px;
    height: 50px;
    background: linear-gradient(to bottom, #e8f59a, #c3d46a);
}

@keyframes lgParcelMove {
    from { transform: translateX(-120px); }
    to { transform: translateX(calc(100vw + 40px)); }
}

.lg-scanner {
    position: absolute;
    bottom: 16px;
    left: 62%;
    z-index: 2;
    width: 46px;
    height: 58px;
    pointer-events: none;
}

.lg-scanner::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(to bottom, #3c4e7e, #22325a);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.lg-scanner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 12px;
    width: 2px;
    height: 46px;
    margin-left: -1px;
    background: linear-gradient(to bottom, rgba(222, 241, 117, 0.95), rgba(222, 241, 117, 0));
    box-shadow: 0 0 10px 2px rgba(222, 241, 117, 0.45);
    animation: lgScanBlink 1.6s ease-in-out infinite;
}

.lg-belt.is-playing .lg-scanner::after {
    animation: none;
    opacity: 0.25;
    transition: opacity 0.12s ease, width 0.12s ease, margin 0.12s ease;
}

.lg-belt.is-playing .lg-scanner.is-firing::after {
    opacity: 1;
    width: 6px;
    margin-left: -3px;
    box-shadow: 0 0 18px 6px rgba(222, 241, 117, 0.7);
}

.lg-belt.is-playing .lg-scanner.is-empty::before {
    background: linear-gradient(to bottom, #6b2b33, #3d1a22);
}

.lg-belt.is-playing .lg-scanner.is-empty::after {
    opacity: 0.08;
}

@keyframes lgScanBlink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

.lg-game-lane {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 70px;
    pointer-events: none;
}

.lg-gbox {
    position: absolute;
    left: 0;
    bottom: 0;
    will-change: transform;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.lg-gbox.is-good {
    background: linear-gradient(to bottom, #4fd17f, #2e9a52);
}

.lg-gbox.is-bad {
    background: linear-gradient(to bottom, #ef6b63, #b83a33);
}

.lg-gbox.is-bad::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 5px;
    width: 14px;
    height: 12px;
    border-left: 2px solid rgba(0, 0, 0, 0.35);
    border-bottom: 2px solid rgba(0, 0, 0, 0.35);
    transform: skewX(-25deg);
}

.lg-gbox-tag {
    position: absolute;
    left: 7px;
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #ffffff;
    color: #1b2848;
}

.lg-gbox.is-good .lg-gbox-tag {
    color: #2e9a52;
}

.lg-gbox.is-bad .lg-gbox-tag {
    color: #b83a33;
}

.lg-gbox-tag .material-symbols-outlined {
    font-size: 16px;
    font-weight: 700;
}

.lg-gbox.is-scanned {
    filter: brightness(1.15);
    opacity: 0.55;
    box-shadow: 0 0 0 3px var(--k-accent), 0 0 22px rgba(222, 241, 117, 0.6);
}

.lg-gbox.is-missed,
.lg-gbox.is-wrong {
    box-shadow: 0 0 0 3px #ef4444, 0 0 22px rgba(239, 68, 68, 0.6);
}

.lg-gbox.is-discarded {
    opacity: 0.45;
    filter: grayscale(0.6);
}

.lg-game-msg {
    position: absolute;
    left: calc(62% + 23px);
    bottom: 92px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.lg-game-msg.is-show {
    opacity: 1;
    animation: lgMsgPop 0.35s var(--ease);
}

.lg-game-msg.is-ok {
    color: var(--k-900);
    background: var(--k-accent);
}

.lg-game-msg.is-bad {
    color: #ffffff;
    background: #dc4040;
}

.lg-game-msg.is-info {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.14);
}

.lg-game-msg.is-count {
    color: var(--txt);
    background: var(--k-primary);
    font-size: 22px;
    padding: 6px 18px;
}

@keyframes lgMsgPop {
    from { transform: translate(-50%, 10px) scale(0.85); }
    to { transform: translate(-50%, 0) scale(1); }
}

.lg-play-btn {
    position: absolute;
    left: 24px;
    bottom: 26px;
    z-index: 4;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    border: 1px solid rgba(222, 241, 117, 0.45);
    border-radius: 999px;
    background: rgba(17, 26, 51, 0.85);
    color: var(--k-accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s var(--ease);
}

.lg-play-btn:hover {
    background: rgba(222, 241, 117, 0.16);
    transform: translateY(-2px);
}

.lg-play-btn:focus-visible {
    outline: 3px solid var(--k-accent);
    outline-offset: 3px;
}

.lg-play-btn .material-symbols-outlined {
    font-size: 20px;
}

.lg-belt.is-playing .lg-play-btn {
    display: none;
}

.lg-hud {
    position: absolute;
    top: 46px;
    left: 24px;
    right: 24px;
    z-index: 4;
    display: none;
    align-items: center;
    gap: 18px;
    padding: 10px 12px 10px 18px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: rgba(17, 26, 51, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    cursor: default;
}

.lg-belt.is-playing .lg-hud {
    display: flex;
}

.lg-hud-level {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.lg-hud-level strong {
    font-size: 13px;
    color: var(--k-accent);
}

.lg-hud-level span {
    font-size: 12px;
    color: var(--txt-dim);
    white-space: nowrap;
}

.lg-hud-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 90px;
}

.lg-hud-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lg-hud-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--k-accent);
    transition: width 0.3s var(--ease);
}

.lg-hud-count {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lg-hud-score,
.lg-hud-ammo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lg-hud-score .material-symbols-outlined {
    font-size: 18px;
    color: #fcd34d;
}

.lg-hud-ammo .material-symbols-outlined {
    font-size: 18px;
    color: var(--k-accent);
}

.lg-hud-ammo-cells {
    display: flex;
    gap: 2px;
}

.lg-hud-ammo-cells i {
    width: 5px;
    height: 14px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.lg-hud-ammo-cells i.is-on {
    background: var(--k-accent);
}

.lg-hud-ammo.is-low .material-symbols-outlined,
.lg-hud-ammo.is-low .lg-hud-ammo-num {
    color: #f87171;
}

.lg-hud-ammo.is-low .lg-hud-ammo-cells i.is-on {
    background: #f87171;
}

.lg-hud-ammo-num {
    min-width: 18px;
}

.lg-hud-lives {
    display: flex;
    gap: 2px;
}

.lg-hud-lives .material-symbols-outlined {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.18);
}

.lg-hud-lives .material-symbols-outlined.is-on {
    color: #f87171;
    font-variation-settings: 'FILL' 1;
}

.lg-hud-scan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px 9px 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--k-primary) 0%, var(--k-primary-deep) 100%);
    color: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.lg-hud-scan:active {
    transform: scale(0.97);
}

.lg-hud-scan .material-symbols-outlined {
    font-size: 18px;
}

.lg-hud-scan:focus-visible,
.lg-hud-exit:focus-visible {
    outline: 2px solid var(--k-accent);
    outline-offset: 2px;
}

kbd {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom-width: 2px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--txt);
    background: rgba(255, 255, 255, 0.08);
}

.lg-hud-exit {
    display: flex;
    padding: 6px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--txt-dim);
    cursor: pointer;
}

.lg-hud-exit:hover {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.12);
}

.lg-game-dim {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(10, 16, 34, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.lg-gaming .lg-game-dim {
    opacity: 1;
}

body.lg-gaming {
    overflow: hidden;
}

body.lg-gaming .lg-belt-slot {
    z-index: 41;
}

.lg-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 16, 34, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lg-modal[hidden],
.lg-modal-view[hidden] {
    display: none;
}

.lg-modal-card {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    padding: 22px 24px 12px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    background: var(--k-950);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    text-align: center;
    animation: lgFadeUp 0.4s var(--ease) both;
}

.lg-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    border-radius: 14px;
    background: rgba(222, 241, 117, 0.12);
    color: var(--k-accent);
}

.lg-modal-icon.is-bad {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.lg-modal-icon .material-symbols-outlined {
    font-size: 26px;
}

.lg-modal-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.lg-modal-text {
    margin: 6px 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--txt-muted);
}

.lg-diff {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.lg-diff-lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--txt-dim);
}

.lg-diff-opts {
    display: flex;
    width: 100%;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.lg-diff-opt {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 6px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--txt-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lg-diff-opt .material-symbols-outlined {
    font-size: 16px;
}

.lg-diff-opt:hover {
    color: var(--txt);
}

.lg-diff-opt.is-active {
    background: linear-gradient(135deg, var(--k-primary) 0%, var(--k-primary-deep) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(62, 73, 198, 0.45);
}

.lg-diff-opt.is-advanced {
    background: var(--k-accent);
    color: var(--k-900);
    box-shadow: 0 4px 14px rgba(222, 241, 117, 0.3);
}

.lg-diff-opt:focus-visible {
    outline: 3px solid var(--k-accent);
    outline-offset: 2px;
}

.lg-diff-desc {
    font-size: 12.5px;
    color: var(--txt-muted);
}

.lg-belt.is-advanced .lg-belt-track {
    background:
        repeating-linear-gradient(to right, rgba(222, 241, 117, 0.28) 0 2px, transparent 2px 28px),
        linear-gradient(to bottom, #2a3c6a, #111a33);
    background-size: 28px 100%, 100% 100%;
}

.lg-belt.is-advanced .lg-hud-level strong {
    color: var(--white);
}

.lg-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.lg-level {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--txt);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.lg-level:hover:not([disabled]) {
    border-color: var(--k-primary-soft);
    background: rgba(62, 73, 198, 0.14);
    transform: translateY(-1px);
}

.lg-level:focus-visible {
    outline: 3px solid var(--k-accent);
    outline-offset: 2px;
}

.lg-level.is-locked {
    cursor: not-allowed;
    opacity: 0.55;
}

.lg-level-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--k-primary) 0%, var(--k-primary-deep) 100%);
    font-size: 18px;
    font-weight: 700;
}

.lg-level-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.lg-level-body strong {
    font-size: 15px;
}

.lg-level-body span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--txt-dim);
}

.lg-level-body em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: var(--k-accent);
}

.lg-level-body em:empty {
    display: none;
}

.lg-tag-ok {
    color: #4fd17f;
}

.lg-tag-bad {
    color: #f87171;
}

.lg-level-go {
    flex-shrink: 0;
    color: var(--k-accent);
}

.lg-level.is-locked .lg-level-go {
    color: var(--txt-dim);
}

.lg-rules {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    list-style: none;
    text-align: left;
    font-size: 12px;
    color: var(--txt-muted);
}

.lg-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lg-rules .material-symbols-outlined {
    font-size: 17px;
    color: var(--k-accent);
}

.lg-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.lg-stats div {
    padding: 12px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.lg-stats strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.lg-stats span {
    font-size: 11.5px;
    color: var(--txt-dim);
}

.lg-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-modal-actions .lg-btn {
    margin-top: 0;
}

.lg-modal-secondary {
    width: 100%;
    padding: 13px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: transparent;
    color: var(--txt);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lg-modal-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lg-modal-secondary:focus-visible,
.lg-modal-link:focus-visible {
    outline: 3px solid var(--k-accent);
    outline-offset: 2px;
}

.lg-modal-link {
    margin-top: 6px;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--txt-dim);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.lg-modal-link:hover {
    color: var(--txt);
}

.lg-anim {
    animation: lgFadeUp 0.8s var(--ease) both;
}

.lg-d1 { animation-delay: 0.05s; }
.lg-d2 { animation-delay: 0.15s; }
.lg-d3 { animation-delay: 0.25s; }
.lg-d4 { animation-delay: 0.35s; }
.lg-d5 { animation-delay: 0.45s; }
.lg-d6 { animation-delay: 0.55s; }

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

.lg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lg-noscript {
    display: none;
    visibility: hidden;
}

@media (min-width: 961px) and (max-height: 700px) {
    .lg-chips {
        display: none;
    }
    .lg-flow {
        margin-top: 20px;
    }
    .lg-integ {
        margin-top: 22px;
    }
}

@media (max-height: 760px) {
    .lg-modal-card .lg-modal-icon {
        display: none;
    }
    .lg-level-body span {
        font-size: 12px;
    }
}

@media (max-width: 1080px) {
    .lg-layout {
        gap: 40px;
    }
    .lg-flow-lbl {
        font-size: 11px;
    }
}

@media (max-width: 960px) {
    .lg-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        padding: 0 16px 32px;
        gap: 32px;
    }
    .lg-hero {
        order: 2;
        text-align: center;
    }
    .lg-lead {
        margin: 0 auto;
    }
    .lg-chips,
    .lg-integ,
    .lg-integ-list {
        justify-content: center;
    }
    .lg-flow {
        margin-left: auto;
        margin-right: auto;
    }
    .lg-card-wrap {
        order: 1;
    }
    .lg-topbar {
        padding: 16px;
    }
    .lg-clock {
        display: none;
    }
    .lg-badge {
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    :root {
        --game-h: 250px;
    }
    .lg-hud {
        top: 20px;
        left: 12px;
        right: 12px;
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 10px 12px;
    }
    .lg-hud-progress {
        order: 10;
        flex-basis: 100%;
    }
    .lg-hud-scan kbd {
        display: none;
    }
    .lg-hud-exit {
        margin-left: auto;
    }
    .lg-play-btn {
        left: 16px;
    }
    .lg-card {
        padding: 30px 20px 22px;
        border-radius: 20px;
    }
    .lg-card-logo span {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }
    .lg-card-logo img {
        width: 44px;
        height: 44px;
    }
    .lg-hero h1 {
        font-size: 30px;
    }
    .lg-flow-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    .lg-flow-step:not(:last-child)::after {
        top: 20px;
        left: calc(50% + 24px);
        right: calc(-50% + 24px);
    }
    .lg-flow-lbl {
        font-size: 10px;
    }
    .lg-brand img {
        height: 28px;
    }
    .lg-brand-sep,
    .lg-brand-text {
        display: none;
    }
    .lg-track-link {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
