.home-page {
    --lp-night: #070b14;
    --lp-panel: #0e1729;
    --lp-panel-2: #132039;
    --lp-edge: #22324f;
    --lp-edge-lit: #3a4f78;
    --lp-ice: #d6e2f7;
    --lp-muted: #93a3bf;
    --lp-blue: #3b82f6;
    --lp-navy-ink: #0a1431;
    --lp-amber: #f8a241;
    --lp-drop: #04060c;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.home-page {
    background: var(--lp-night);
}

.lp-pixel {
    font-family: 'VT323', monospace;
    font-weight: 400;
}

.lp-btn-join,
.lp-btn-stone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 22px 6px;
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 1px;
    text-decoration: none;
    border: 2px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}

.lp-btn-join {
    color: #fff8ef;
    border-color: #ffd89b #a94f06 #8e3f00 #ffc879;
    background: linear-gradient(180deg, #ffba61 0%, #f8a241 48%, #d97b1e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 247, 226, 0.34), 0 4px 0 #7b3800;
    text-shadow: 0 2px 0 rgba(108, 46, 0, 0.46);
}

.lp-btn-join:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 247, 226, 0.34), 0 6px 0 #7b3800;
}

.lp-btn-join:active {
    transform: translateY(3px);
    box-shadow: inset 0 1px 0 rgba(255, 247, 226, 0.34), 0 1px 0 #7b3800;
}

.lp-btn-big {
    min-height: 60px;
    padding: 10px 40px 8px;
    font-size: 1.9rem;
}

.lp-btn-stone {
    color: var(--lp-ice);
    background: var(--lp-panel-2);
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    box-shadow: 0 4px 0 var(--lp-drop);
}

.lp-btn-stone:hover {
    transform: translateY(-2px);
    background: #182a4a;
    box-shadow: 0 6px 0 var(--lp-drop);
}

.lp-btn-stone:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--lp-drop);
}

.lp-hero {
    position: relative;
    min-height: min(800px, 100svh);
    display: grid;
    place-items: center;
    padding: 140px 24px 96px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.lp-hero-bg {
    position: absolute;
    inset: -30px;
    z-index: -2;
    background: url('/images/mysticraftbg.webp') center 40% / cover no-repeat;
    filter: blur(6px) saturate(1.1);
}

.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 46% 58% at 50% 50%, rgba(7, 11, 20, 0.66), rgba(7, 11, 20, 0) 100%),
        linear-gradient(180deg, rgba(7, 11, 20, 0.8) 0%, rgba(7, 11, 20, 0.46) 40%, rgba(7, 11, 20, 0.8) 80%, var(--lp-night) 100%);
}

.lp-hero-inner {
    position: relative;
}

.lp-storm,
.lp-storm-flash {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.lp-storm {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lp-storm-flash {
    opacity: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 35%, rgba(170, 230, 255, 0.5), rgba(110, 170, 255, 0.18) 55%, transparent 85%);
}

.lp-storm path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-bolt-glow {
    stroke: rgba(127, 243, 255, 0.18);
    stroke-width: 24;
}

.lp-bolt-halo {
    stroke: rgba(127, 243, 255, 0.6);
    stroke-width: 7;
}

.lp-bolt-core {
    stroke: #f4feff;
    stroke-width: 2.6;
}

.lp-bolt-halo.lp-bolt-thin {
    stroke-width: 3;
}

.lp-bolt-core.lp-bolt-thin {
    stroke-width: 1;
}

.lp-bolt-burst {
    fill: rgba(127, 243, 255, 0.45);
    filter: blur(8px);
}

.lp-bolt-spark {
    fill: #f4feff;
    filter: blur(1.5px);
}

.lp-hat {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 30px;
    animation: lpHatIn 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
}

.lp-hat::before {
    content: "";
    position: absolute;
    inset: 8% 6% 4%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.55), rgba(59, 130, 246, 0.18) 60%, transparent 100%);
    filter: blur(18px);
    animation: lpGlow 4.5s ease-in-out 1s infinite;
}

.lp-hat img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 0 rgba(4, 6, 12, 0.45)) drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
    animation: lpBob 6s ease-in-out 1.2s infinite;
}

.lp-hat.is-struck::before {
    filter: blur(18px) brightness(2.2);
}

.lp-hat.is-struck img {
    filter: drop-shadow(0 14px 0 rgba(4, 6, 12, 0.45)) drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55)) brightness(1.2);
}

html.preloading .lp-hat {
    animation-play-state: paused;
}

@keyframes lpHatIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.55) rotate(-8deg);
    }

    70% {
        opacity: 1;
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lpBob {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(1.5deg);
    }
}

@keyframes lpGlow {
    0%,
    100% {
        opacity: 0.75;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

.lp-ip {
    display: inline-flex;
    align-items: stretch;
    margin-top: 26px;
    padding: 0;
    border: 2px solid;
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    border-radius: 6px;
    background: var(--lp-panel-2);
    box-shadow: 0 4px 0 var(--lp-drop);
    color: var(--lp-ice);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.lp-ip:hover {
    transform: translateY(-2px);
    background: #182a4a;
    box-shadow: 0 6px 0 var(--lp-drop);
}

.lp-ip:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--lp-drop);
}

.lp-ip-main {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px 18px 11px 16px;
}

.lp-ip .lp-pixel {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 1px;
}

.lp-ip small {
    display: inline-flex;
    align-items: center;
    color: var(--lp-muted);
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.lp-ip .status-dot {
    width: 8px;
    height: 8px;
    margin-right: 7px;
    animation: none;
}

.lp-ip #player-count {
    margin-left: 8px;
    margin-right: 4px;
    color: var(--lp-ice);
    font-weight: 600;
}

.lp-ip-copy {
    display: grid;
    place-content: center;
    min-width: 78px;
    padding: 0 14px;
    border-left: 2px solid var(--lp-navy-ink);
    box-shadow: inset 2px 0 0 #1c2c4b;
    color: var(--lp-amber);
    font: 400 1.2rem/1 'VT323', monospace;
    letter-spacing: 0.5px;
}

.lp-ip-idle,
.lp-ip-done {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.lp-ip-copy i {
    font-size: 1rem;
}

.lp-ip-done,
.lp-ip.is-copied .lp-ip-idle {
    display: none;
}

.lp-ip.is-copied .lp-ip-done {
    display: grid;
}

.lp-ip.is-copied .lp-ip-copy {
    color: #4ade80;
}

.lp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    background: #22c55e;
    box-shadow: 2px 2px 0 #14532d;
}

.lp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-band {
    padding: 80px 0;
}

.lp-band-features,
.lp-band-lower {
    padding-top: 20px;
}

.lp-band-join {
    padding-top: 40px;
}

.lp-title {
    text-align: center;
    margin-bottom: 36px;
}

.lp-h2 {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 3rem;
    line-height: 1;
    color: #f4f7ff;
    text-shadow: 3px 3px 0 #1c222e;
}

.lp-title p {
    margin-top: 6px;
    color: var(--lp-muted);
}

.lp-news {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 18px;
}

.lp-news.lp-spread-solo {
    grid-template-columns: 1fr;
}

.lp-spread-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 430px;
    overflow: hidden;
    border: 2px solid;
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    border-radius: 10px;
    background: var(--lp-panel);
    box-shadow: 0 6px 0 var(--lp-drop);
    color: var(--lp-ice);
    text-decoration: none;
}

.lp-spread-feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lp-spread-feature:hover > img {
    transform: scale(1.04);
}

.lp-spread-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0) 25%, rgba(7, 11, 20, 0.72) 60%, rgba(7, 11, 20, 0.96));
}

.lp-spread-body {
    position: relative;
    z-index: 1;
    display: block;
    padding: 26px 26px 24px;
}

.lp-pin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 3px 9px 2px;
    border-radius: 4px;
    background: #3d2203;
    box-shadow: inset 0 0 0 1px #7b3f00;
    color: var(--lp-amber);
    font: 400 1.05rem/1 'VT323', monospace;
}

.lp-pin i {
    font-size: 0.75rem;
}

.lp-spread-body h3 {
    max-width: 18ch;
    margin: 0 0 8px;
    font: 400 2.9rem/0.95 'VT323', monospace;
    text-shadow: 0 3px 0 var(--lp-drop);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.lp-spread-feature:hover h3 {
    color: #fff;
}

.lp-spread-body p {
    max-width: 52ch;
    margin: 0 0 16px;
    color: #b5c3db;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.lp-head-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lp-muted);
    font-size: 0.8rem;
}

.lp-head-row img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    box-shadow: 0 0 0 2px var(--lp-navy-ink);
    image-rendering: pixelated;
}

.lp-head-row b {
    color: var(--lp-ice);
    font-weight: 600;
}

.lp-spread-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lp-spread-side > .lp-spread-card {
    flex: 1 1 0;
}

.lp-spread-card,
.lp-spread-all {
    border: 2px solid;
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    border-radius: 8px;
    text-decoration: none;
}

.lp-spread-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    overflow: hidden;
    background: var(--lp-panel);
    box-shadow: 0 4px 0 var(--lp-drop);
    color: var(--lp-ice);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-spread-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--lp-drop);
}

.lp-spread-card > img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.lp-spread-card-text {
    display: block;
    min-width: 0;
    padding: 14px 16px;
}

.lp-spread-card time {
    display: block;
    margin-bottom: 8px;
    color: var(--lp-muted);
    font-size: 0.75rem;
}

.lp-spread-card h4 {
    margin: 0 0 8px;
    font: 400 1.55rem/1 'VT323', monospace;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.lp-spread-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border-style: dashed;
    border-color: var(--lp-edge-lit);
    color: var(--lp-amber);
    font: 400 1.45rem/1 'VT323', monospace;
    transition: background 0.15s ease, color 0.15s ease;
}

.lp-spread-all:hover {
    background: rgba(248, 162, 65, 0.08);
    color: #ffc879;
}

.lp-news.lp-news-empty {
    display: block;
}

.lp-news.lp-news-empty .no-news-message {
    padding: 40px 24px;
    text-align: center;
    color: var(--lp-muted);
    background: var(--lp-panel);
    border: 2px solid;
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    border-radius: 8px;
}

.lp-news.lp-news-empty .no-news-title {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--lp-ice);
}

.lp-features {
    display: flex;
    flex-direction: column;
    gap: 96px;
    padding-top: 40px;
    padding-bottom: 24px;
}

.lp-feature {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 340px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--c) 9%, var(--lp-panel)) 0%, var(--lp-panel) 60%);
    border: 2px solid;
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    border-radius: 10px;
    box-shadow: 0 10px 0 var(--lp-drop);
}

.lp-feature-art {
    display: grid;
    place-items: center;
    align-self: stretch;
}

.lp-feature-copy {
    padding: 44px 48px;
}

.lp-flip .lp-feature-art {
    order: 2;
}

.lp-feature-title {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 3rem;
    line-height: 1;
    color: #fff;
    text-shadow: 3px 3px 0 var(--lp-navy-ink);
}

.lp-feature .lp-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 14px;
    color: var(--c);
    font-weight: 600;
}

.lp-flip .lp-sub {
    justify-content: flex-end;
}

.lp-feature p {
    max-width: 44ch;
    color: var(--lp-muted);
}

.lp-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.lp-flip .lp-feature-copy {
    text-align: right;
}

.lp-flip p {
    margin-left: auto;
}

.lp-flip .lp-acts {
    justify-content: flex-end;
}

.lp-pix {
    width: 256px;
    height: 256px;
    overflow: hidden;
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.35));
}

.lp-pix img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    animation: 5s infinite;
}

.lp-pix-chest img {
    animation-name: lpChest;
}

.lp-pix-discord img {
    animation-name: lpDiscord;
    animation-duration: 4.2s;
}

@keyframes lpChest {
    0% { transform: translateY(0); animation-timing-function: step-end; }
    70% { transform: translateY(-66.6667%); animation-timing-function: step-end; }
    74% { transform: translateY(-75%); animation-timing-function: step-end; }
    78% { transform: translateY(-83.3333%); animation-timing-function: step-end; }
    82% { transform: translateY(-91.6667%); animation-timing-function: step-end; }
    86%, 100% { transform: translateY(0); }
}

@keyframes lpDiscord {
    0% { transform: translateY(0); animation-timing-function: step-end; }
    50% { transform: translateY(-50%); animation-timing-function: step-end; }
    86% { transform: translateY(-83.3333%); animation-timing-function: step-end; }
    88% { transform: translateY(-91.6667%); animation-timing-function: step-end; }
    90% { transform: translateY(-83.3333%); animation-timing-function: step-end; }
    92%, 100% { transform: translateY(-50%); }
}

.lp-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 26px 32px;
    background: var(--lp-panel);
    border: 2px solid;
    border-color: var(--lp-edge-lit) var(--lp-navy-ink) var(--lp-navy-ink) var(--lp-edge-lit);
    border-radius: 10px;
    box-shadow: 0 10px 0 var(--lp-drop);
}

.lp-cta-strip .lp-pixel {
    display: block;
    margin: 2px 0;
    font-size: 2.4rem;
    line-height: 1;
    color: #f4f7ff;
    overflow-wrap: anywhere;
}

.lp-cta-strip small {
    display: block;
    color: var(--lp-muted);
    font-size: 0.9rem;
}

.lp-cta-strip .lp-acts {
    margin-top: 0;
}

.lp-lower {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
}

.lp-h4 {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1;
    color: #f4f7ff;
}

.lp-lower p {
    max-width: 52ch;
    margin-top: 10px;
    color: var(--lp-muted);
}

.lp-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin-top: 14px;
}

.lp-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lp-muted);
    text-decoration: none;
}

.lp-partner img {
    width: auto;
    height: 52px;
    content-visibility: visible;
}

.lp-partner .partner-name {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    line-height: 1;
}

.lp-partner:hover .partner-name {
    color: var(--lp-ice);
}

.home-page :is(.lp-btn-join, .lp-btn-stone, .lp-ip, .lp-spread-feature, .lp-spread-card, .lp-spread-all, .lp-partner):focus-visible {
    outline: 2px solid #8fd3ff;
    outline-offset: 3px;
}

.performance-mode .lp-hat::before,
.performance-mode .lp-hat img,
.performance-mode .lp-pix img {
    animation: none;
}

@media (max-width: 860px) {
    .lp-news {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lp-spread-side {
        gap: 12px;
    }

    .lp-spread-side > .lp-spread-card {
        flex: none;
    }

    .lp-spread-feature {
        min-height: 320px;
    }

    .lp-spread-body {
        padding: 18px;
    }

    .lp-spread-body h3 {
        font-size: 2.2rem;
    }

    .lp-spread-card {
        grid-template-columns: 96px 1fr;
    }

    .lp-spread-card > img {
        min-height: 96px;
    }

    .lp-spread-card-text {
        padding: 10px 12px;
    }

    .lp-spread-card h4 {
        font-size: 1.3rem;
    }

    .lp-features {
        gap: 72px;
    }

    .lp-feature {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .lp-feature-art {
        height: 200px;
    }

    .lp-flip .lp-feature-art {
        order: 0;
    }

    .lp-feature-copy,
    .lp-flip .lp-feature-copy {
        padding: 8px 24px 32px;
        text-align: left;
    }

    .lp-flip p {
        margin-left: 0;
    }

    .lp-flip .lp-sub,
    .lp-flip .lp-acts {
        justify-content: flex-start;
    }

    .lp-pix {
        width: 192px;
        height: 192px;
    }

    .lp-lower {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lp-band {
        padding: 60px 0;
    }

    .lp-band-features,
    .lp-band-lower {
        padding-top: 16px;
    }
}

@media (max-width: 480px) {
    .lp-wrap {
        padding: 0 16px;
    }

    .lp-hero {
        padding: 120px 16px 80px;
    }

    .lp-hat {
        width: 240px;
        height: 240px;
        margin-bottom: 24px;
    }

    .lp-bolt-glow {
        stroke-width: 14;
    }

    .lp-bolt-halo {
        stroke-width: 4.5;
    }

    .lp-bolt-core {
        stroke-width: 1.8;
    }

    .lp-btn-big {
        width: 100%;
        max-width: 320px;
    }

    .lp-ip-main {
        padding: 10px 12px 10px 12px;
    }

    .lp-ip .lp-pixel {
        font-size: 1.5rem;
    }

    .lp-ip-copy {
        min-width: 62px;
        padding: 0 10px;
    }

    .lp-h2,
    .lp-feature-title {
        font-size: 2.5rem;
    }

    .lp-cta-strip {
        padding: 22px 20px;
    }

    .lp-cta-strip .lp-pixel {
        font-size: 2rem;
    }

    .lp-cta-strip .lp-acts,
    .lp-cta-strip .lp-acts > * {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hat,
    .lp-hat::before,
    .lp-hat img,
    .lp-pix img {
        animation: none;
    }

    .lp-spread-feature > img,
    .lp-spread-card,
    .lp-spread-all {
        transition: none;
    }

    .lp-spread-feature:hover > img,
    .lp-spread-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-ip,
    .lp-ip:hover,
    .lp-ip:active {
        transform: none;
        transition: none;
    }
}
