.index-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 96%, rgba(94, 62, 176, 0.42), transparent 17rem),
        radial-gradient(circle at 84% 72%, rgba(184, 51, 255, 0.24), transparent 18rem),
        #0a0712;
}

.index-hero {
    position: relative;
    min-height: calc(100vh - 120px);
    padding: 18px clamp(18px, 3.7vw, 70px) 44px;
}

.index-hero h1 {
    margin: 0 0 36px;
    color: #f8f7fb;
    font-family: var(--font-pixel);
    font-size: clamp(2.9rem, 4.7vw, 5.15rem);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0;
    text-shadow: 0 7px 0 rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 255, 255, 0.08);
}

.intro-card {
    position: relative;
    z-index: 2;
    width: min(36.5vw, 665px);
    min-width: 560px;
    min-height: 530px;
}

.intro-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.intro-card__copy {
    position: relative;
    z-index: 1;
    max-width: 83%;
    padding: 27px 34px;
    color: #fff;
}

.intro-card__eyebrow {
    margin: 0 0 15px;
    color: var(--accent);
    font-family: var(--font-pixel);
    font-size: 0.76rem;
    line-height: 1.65;
    text-shadow: 0 0 12px rgba(255, 146, 120, 0.42);
}

.intro-card h2 {
    max-width: 520px;
    margin: 0 0 18px;
    font-family: var(--font-pixel);
    font-size: clamp(1.45rem, 1.85vw, 2.15rem);
    font-weight: 400;
    line-height: 1.32;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.intro-card p:not(.intro-card__eyebrow) {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 1.24vw, 1.34rem);
    font-weight: 500;
    line-height: 1.42;
}

.intro-card__link {
    width: fit-content;
    margin-top: 24px;
    padding: 14px 18px;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 146, 120, 0.2);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 26px rgba(255, 146, 120, 0.16);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.intro-card__link:hover {
    transform: translateY(-2px);
    background: rgba(255, 146, 120, 0.28);
    box-shadow: 0 0 34px rgba(255, 146, 120, 0.24);
}

.modes-panel {
    position: absolute;
    z-index: 1;
    top: 166px;
    right: clamp(36px, 4.3vw, 82px);
    width: min(50.3vw, 965px);
    height: 316px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mode-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    background: #11141f;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mode-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.75;
    transition: opacity 180ms ease, transform 260ms ease;
}

.mode-card--survival::before {
    background:
        linear-gradient(180deg, rgba(84, 204, 126, 0.14), transparent 48%),
        linear-gradient(135deg, #18201d, #2c1a1a 65%, #140c14);
}

.mode-card--skyblock::before {
    background:
        linear-gradient(180deg, rgba(92, 198, 255, 0.16), transparent 50%),
        linear-gradient(135deg, #111d2c, #24174a 62%, #120b18);
}

.mode-card:hover,
.mode-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 146, 120, 0.5);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), 0 0 24px rgba(195, 66, 255, 0.12);
    outline: none;
}

.mode-card:hover::before,
.mode-card:focus-visible::before {
    opacity: 1;
    transform: scale(1.04);
}

.mode-card__scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mode-card__copy {
    position: absolute;
    left: 24px;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    color: #fff;
    transform: translateY(54px);
    transition: transform 190ms ease;
}

.mode-card:hover .mode-card__copy,
.mode-card:focus-visible .mode-card__copy {
    transform: translateY(0);
}

.mode-card__copy span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--font-pixel);
    font-size: 0.62rem;
    line-height: 1.5;
}

.mode-card__copy h2 {
    margin: 0 0 12px;
    font-family: var(--font-pixel);
    font-size: clamp(1rem, 1.25vw, 1.35rem);
    font-weight: 400;
    line-height: 1.38;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.48);
}

.mode-card__copy p {
    max-width: 390px;
    margin: 0;
    opacity: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.36;
    transition: opacity 170ms ease;
}

.mode-card:hover .mode-card__copy p,
.mode-card:focus-visible .mode-card__copy p {
    opacity: 1;
}

.pixel-sun,
.pixel-cloud,
.pixel-crystal,
.pixel-portal,
.pixel-tree,
.pixel-house,
.pixel-island,
.pixel-hill {
    position: absolute;
    display: block;
}

.pixel-sun {
    top: 28px;
    right: 38px;
    width: 54px;
    height: 54px;
    background: #ffbd6e;
    box-shadow: 0 0 28px rgba(255, 189, 110, 0.48), 16px 16px 0 rgba(255, 146, 120, 0.26);
    animation: pixelFloat 4.6s ease-in-out infinite;
}

.pixel-hill { bottom: 0; height: 86px; background: #314f35; box-shadow: inset 0 15px 0 #4f7a42; }
.pixel-hill--one { left: -20px; width: 62%; clip-path: polygon(0 100%, 18% 34%, 48% 70%, 71% 22%, 100% 100%); }
.pixel-hill--two { right: -12px; width: 62%; clip-path: polygon(0 100%, 28% 48%, 58% 24%, 100% 100%); opacity: 0.78; }
.pixel-tree { bottom: 74px; width: 22px; height: 76px; background: #6d4527; box-shadow: 0 -30px 0 18px #366f44, 0 -50px 0 8px #4f9b5f; }
.pixel-tree--one { left: 58px; }
.pixel-tree--two { right: 118px; transform: scale(0.82); opacity: 0.85; }
.pixel-house { right: 42px; bottom: 58px; width: 86px; height: 62px; background: #80543a; box-shadow: inset 0 -18px 0 #5d3729, 0 -28px 0 -4px #c56d46; }

.pixel-cloud { width: 80px; height: 26px; background: rgba(255, 255, 255, 0.72); box-shadow: 28px -12px 0 rgba(255, 255, 255, 0.58), 58px 4px 0 rgba(255, 255, 255, 0.42); animation: cloudDrift 7s ease-in-out infinite; }
.pixel-cloud--one { top: 38px; left: 48px; }
.pixel-cloud--two { top: 96px; right: 60px; transform: scale(0.72); animation-delay: -2s; }
.pixel-island { left: 86px; right: 82px; bottom: 72px; height: 76px; background: #5a8f54; clip-path: polygon(0 28%, 24% 0, 72% 10%, 100% 34%, 82% 58%, 52% 66%, 44% 100%, 30% 68%, 8% 58%); box-shadow: inset 0 18px 0 #75b66b; animation: pixelFloat 4.8s ease-in-out infinite; }
.pixel-crystal { width: 34px; height: 58px; background: linear-gradient(135deg, #8ef4ff, #a144ff); clip-path: polygon(50% 0, 100% 22%, 75% 100%, 25% 100%, 0 22%); box-shadow: 0 0 18px rgba(161, 68, 255, 0.5); animation: crystalPulse 2.8s ease-in-out infinite; }
.pixel-crystal--one { left: 68px; bottom: 136px; }
.pixel-crystal--two { right: 86px; bottom: 124px; transform: scale(0.72); animation-delay: -1.1s; }
.pixel-portal { right: 34px; bottom: 58px; width: 64px; height: 98px; border: 10px solid #7e38d8; background: repeating-linear-gradient(0deg, rgba(218, 92, 255, 0.38) 0 10px, rgba(69, 36, 130, 0.5) 10px 20px); box-shadow: 0 0 24px rgba(195, 66, 255, 0.52); }

.online-panel {
    position: absolute;
    z-index: 3;
    right: clamp(36px, 4.3vw, 82px);
    top: 520px;
    width: min(50.3vw, 970px);
    min-height: 171px;
}

.online-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.online-panel__status, .online-panel__ip { position: absolute; z-index: 1; top: 50%; display: flex; align-items: center; color: #fff; font-size: clamp(1.65rem, 1.95vw, 2.25rem); line-height: 1.05; transform: translateY(-50%); }
.online-panel__status { left: 76px; gap: 18px; }
.online-panel__dot { width: 72px; height: 72px; border-radius: 50%; background: #ff9278; box-shadow: 0 0 0 13px rgba(255, 146, 120, 0.12), 0 0 28px rgba(255, 146, 120, 0.46); animation: onlinePulse 2.2s ease-in-out infinite; }
.online-panel strong { display: block; font-weight: 500; }
.online-panel__ip { right: 138px; gap: 8px; }
.online-panel__ip button { min-height: auto; padding: 0; border: 0; background: transparent; color: #fff; font-size: inherit; line-height: 1; }

.hero-person { position: absolute; z-index: 4; left: -24px; bottom: -88px; width: min(14.8vw, 270px); min-width: 205px; pointer-events: none; user-select: none; }
.hero-blur { position: absolute; z-index: 2; right: 0; bottom: 10px; width: min(32vw, 640px); pointer-events: none; user-select: none; animation: blurGlow 5s ease-in-out infinite; }

@keyframes pixelFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cloudDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
@keyframes crystalPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes onlinePulse { 0%, 100% { box-shadow: 0 0 0 13px rgba(255, 146, 120, 0.12), 0 0 28px rgba(255, 146, 120, 0.46); } 50% { box-shadow: 0 0 0 17px rgba(255, 146, 120, 0.07), 0 0 42px rgba(255, 146, 120, 0.62); } }
@keyframes blurGlow { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }

@media (max-width: 1100px) {
    .index-page { overflow: auto; }
    .index-hero { display: grid; gap: 22px; min-height: auto; padding-bottom: 360px; }
    .index-hero h1 { margin-bottom: 10px; }
    .intro-card, .modes-panel, .online-panel { position: relative; inset: auto; width: min(100%, 720px); justify-self: center; }
    .intro-card { min-width: 0; }
    .modes-panel { height: auto; grid-template-columns: 1fr; }
    .mode-card { min-height: 260px; }
    .mode-card__copy { transform: translateY(0); }
    .mode-card__copy p { opacity: 1; }
    .online-panel { height: 140px; min-height: 140px; }
    .online-panel__status { left: 50px; }
    .online-panel__ip { right: 60px; }
    .hero-person { width: 250px; }
    .hero-blur { width: 460px; }
}

@media (max-width: 680px) {
    .index-hero { padding-inline: 14px; padding-bottom: 280px; }
    .index-hero h1 { font-size: clamp(2.2rem, 9vw, 2.75rem); }
    .intro-card { min-height: 500px; }
    .intro-card__copy { max-width: 100%; padding: 22px; }
    .intro-card__eyebrow { font-size: 0.6rem; }
    .intro-card h2 { font-size: 1.18rem; }
    .intro-card p:not(.intro-card__eyebrow) { max-width: 350px; font-size: 1rem; }
    .mode-card { min-height: 280px; border-radius: 24px; }
    .mode-card__copy { left: 18px; right: 18px; bottom: 18px; }
    .mode-card__copy h2 { font-size: 0.9rem; }
    .mode-card__copy p { font-size: 0.88rem; }
    .online-panel { height: 180px; }
    .online-panel__status, .online-panel__ip { left: 38px; right: auto; font-size: 1.25rem; }
    .online-panel__status { top: 42%; }
    .online-panel__ip { top: 66%; }
    .online-panel__dot { width: 46px; height: 46px; }
    .hero-person { width: 210px; min-width: 0; }
    .hero-blur { width: 360px; }
}
@media (min-width: 1101px) {
    .index-page { overflow: hidden; }
    .index-hero { min-height: calc(100vh - 120px); padding-top: 12px; }
    .index-hero h1 { margin-bottom: 30px; font-size: clamp(2.65rem, 4.3vw, 4.65rem); }
    .intro-card { min-height: 514px; }
    .modes-panel { top: 154px; height: 316px; }
    .online-panel { top: 512px; }
    .hero-person { left: -38px; bottom: -156px; width: min(13.2vw, 244px); min-width: 190px; }
}

@media (max-width: 680px) {
    html, body, .index-page { max-width: 100%; overflow-x: hidden; }
    .index-hero { width: 100%; padding-top: 18px; }
    .index-hero h1 {
        width: 100%;
        font-size: clamp(1.7rem, 7.4vw, 2rem);
        line-height: 1.45;
        overflow-wrap: anywhere;
        text-align: center;
    }
    .modes-panel { width: 100%; }
    .mode-card { width: 100%; min-width: 0; }
    .pixel-cloud--two { right: 34px; }
    .pixel-portal { right: 22px; }
}

.index-hero h1 span { display: inline; }

@media (max-width: 680px) {
    .index-hero h1 span { display: block; }
}

.index-page {
    overflow-x: hidden;
    overflow-y: auto;
}

@media (min-width: 1101px) {
    body,
    .index-page {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

@media (min-width: 1101px) {
    .index-hero { min-height: 780px; }
}

.index-page {
    background:
        radial-gradient(circle at 13% 18%, rgba(255, 146, 120, 0.13), transparent 28%),
        radial-gradient(circle at 85% 24%, rgba(195, 66, 255, 0.24), transparent 34%),
        radial-gradient(circle at 54% 90%, rgba(67, 34, 112, 0.72), transparent 40%),
        linear-gradient(180deg, #080510 0%, #0c0614 45%, #120820 100%);
}

.index-hero {
    margin-top: -22px;
    padding-top: clamp(54px, 5vw, 86px);
    isolation: isolate;
}

.index-hero::before {
    content: "";
    position: absolute;
    inset: -150px -8vw 16%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 23%, rgba(255, 146, 120, 0.08) 31%, transparent 43%),
        radial-gradient(ellipse at 20% 48%, rgba(255, 146, 120, 0.16), transparent 34%),
        radial-gradient(ellipse at 76% 52%, rgba(195, 66, 255, 0.22), transparent 42%);
    filter: blur(1px);
}

.index-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -128px;
    z-index: 0;
    height: 330px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 100%, rgba(78, 41, 136, 0.78), transparent 38%),
        radial-gradient(ellipse at 76% 78%, rgba(195, 66, 255, 0.16), transparent 34%),
        linear-gradient(180deg, transparent, rgba(12, 6, 20, 0.9) 78%);
}

.index-hero h1,
.intro-card {
    position: relative;
}

@media (min-width: 1101px) {
    .index-hero {
        min-height: clamp(900px, 86vh, 1010px);
        padding-bottom: 126px;
    }

    .index-hero h1 {
        margin-bottom: clamp(42px, 4vw, 68px);
        font-size: clamp(3rem, 4.85vw, 5.35rem);
        text-shadow: 0 10px 34px rgba(195, 66, 255, 0.18), 0 4px 0 rgba(0, 0, 0, 0.4);
    }

    .intro-card {
        width: min(39.5vw, 742px);
        min-height: 592px;
        box-shadow: 0 0 0 1px rgba(255, 146, 120, 0.08), 0 26px 72px rgba(0, 0, 0, 0.34);
    }

    .intro-card__copy {
        max-width: 490px;
        padding: 36px 42px;
    }

    .intro-card h2 {
        font-size: clamp(1.52rem, 2vw, 2.28rem);
        line-height: 1.25;
    }

    .intro-card p:not(.intro-card__eyebrow) {
        font-size: clamp(1.05rem, 1.27vw, 1.34rem);
        line-height: 1.36;
    }

    .modes-panel {
        top: clamp(188px, 17vw, 218px);
        width: min(52vw, 1010px);
        height: 362px;
        gap: 22px;
    }

    .mode-card {
        border-radius: 30px;
    }

    .mode-card__copy {
        left: 26px;
        right: 24px;
        bottom: 25px;
    }

    .mode-card__copy h2 {
        font-size: clamp(1.05rem, 1.28vw, 1.46rem);
    }

    .online-panel {
        top: clamp(606px, 53vw, 632px);
        width: min(52.5vw, 1010px);
        min-height: 188px;
    }

    .online-panel__status,
    .online-panel__ip {
        font-size: clamp(1.85rem, 2.08vw, 2.45rem);
    }

    .online-panel__dot {
        width: 80px;
        height: 80px;
    }

    .hero-person {
        left: clamp(-160px, -7vw, -104px);
        bottom: -74px;
        width: min(15.2vw, 288px);
        min-width: 232px;
        z-index: 12;
        filter: drop-shadow(0 30px 34px rgba(32, 14, 58, 0.78));
    }

    .hero-blur {
        right: -28px;
        bottom: 14px;
        width: min(37vw, 710px);
        opacity: 0.96;
        filter: saturate(1.16);
    }
}

@media (max-width: 1100px) {
    .index-hero {
        margin-top: -14px;
        padding-top: 42px;
    }
}

/* Layout repair: keep real blocks in the document flow. */
.index-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 146, 120, 0.16), transparent 28rem),
        radial-gradient(circle at 82% 34%, rgba(195, 66, 255, 0.28), transparent 34rem),
        radial-gradient(circle at 58% 86%, rgba(47, 20, 88, 0.9), transparent 38rem),
        linear-gradient(180deg, #080510 0%, #10061c 56%, #190c31 100%);
}

.index-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(520px, 0.88fr) minmax(680px, 1.25fr);
    grid-template-areas:
        "title title"
        "intro modes"
        "intro online";
    gap: clamp(24px, 2.2vw, 42px) clamp(28px, 3vw, 58px);
    width: min(1780px, calc(100% - clamp(48px, 7vw, 136px)));
    min-height: auto;
    margin: -18px auto 0;
    padding: clamp(86px, 8.4vw, 132px) 0 118px;
    isolation: isolate;
}

.index-hero::before {
    content: "";
    position: absolute;
    inset: -120px -10vw -120px;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(255, 146, 120, 0.09), transparent 34%),
        radial-gradient(ellipse at 77% 38%, rgba(124, 38, 185, 0.32), transparent 44%),
        radial-gradient(ellipse at 18% 70%, rgba(100, 42, 66, 0.28), transparent 42%);
}

.index-hero::after {
    content: "";
    position: absolute;
    left: -10vw;
    right: -10vw;
    bottom: -52px;
    z-index: -1;
    height: 220px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12, 6, 20, 0), #12091f 72%, #190c31 100%);
}

.index-hero h1 {
    grid-area: title;
    align-self: start;
    margin: 0;
    font-size: clamp(3.35rem, 5vw, 5.45rem);
    line-height: 1.18;
    text-align: center;
}

.intro-card {
    grid-area: intro;
    align-self: start;
    width: 100%;
    min-width: 0;
    min-height: clamp(550px, 31vw, 610px);
    z-index: 2;
}

.intro-card__copy {
    max-width: min(520px, 68%);
    padding: clamp(30px, 2.1vw, 40px);
}

.intro-card h2 {
    font-size: clamp(1.45rem, 1.75vw, 2.05rem);
}

.intro-card p:not(.intro-card__eyebrow) {
    font-size: clamp(1.05rem, 1.18vw, 1.26rem);
}

.modes-panel {
    grid-area: modes;
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(320px, 20vw, 370px);
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(18px, 1.4vw, 26px);
}

.mode-card {
    min-width: 0;
    border-radius: 26px;
}

.mode-card__copy {
    left: clamp(18px, 1.5vw, 28px);
    right: clamp(18px, 1.5vw, 28px);
    bottom: clamp(18px, 1.5vw, 28px);
}

.mode-card__copy h2 {
    font-size: clamp(0.92rem, 1.08vw, 1.25rem);
    line-height: 1.45;
}

.mode-card__copy p {
    max-width: 360px;
    font-size: 0.94rem;
}

.online-panel {
    grid-area: online;
    position: relative;
    inset: auto;
    width: 100%;
    min-height: clamp(154px, 10vw, 186px);
    z-index: 3;
}

.online-panel__status,
.online-panel__ip {
    font-size: clamp(1.55rem, 1.82vw, 2.18rem);
}

.online-panel__status {
    left: clamp(54px, 4.5vw, 92px);
}

.online-panel__ip {
    right: clamp(72px, 7vw, 150px);
}

.online-panel__dot {
    width: clamp(62px, 4.5vw, 82px);
    height: clamp(62px, 4.5vw, 82px);
}

.hero-person {
    left: clamp(-132px, -6vw, -86px);
    bottom: -38px;
    width: clamp(170px, 11.5vw, 230px);
    min-width: 0;
    z-index: 1;
    filter: drop-shadow(0 28px 32px rgba(22, 9, 46, 0.78));
}

.hero-blur {
    right: clamp(-110px, -5vw, -48px);
    bottom: 58px;
    width: clamp(460px, 35vw, 720px);
    z-index: 0;
    opacity: 0.95;
}

@media (max-width: 1280px) {
    .index-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "intro"
            "modes"
            "online";
        width: min(960px, calc(100% - 36px));
        padding-top: 58px;
    }

    .intro-card,
    .modes-panel,
    .online-panel {
        justify-self: center;
        width: 100%;
    }

    .intro-card {
        min-height: 530px;
    }

    .hero-person {
        bottom: -42px;
        left: -78px;
    }
}

@media (max-width: 680px) {
    .index-hero {
        width: calc(100% - 28px);
        padding-top: 40px;
        padding-bottom: 82px;
    }

    .index-hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
    }

    .intro-card__copy {
        max-width: 100%;
        padding: 22px;
    }

    .modes-panel {
        grid-template-columns: 1fr;
        height: auto;
    }

    .mode-card {
        min-height: 286px;
    }

    .online-panel {
        min-height: 178px;
    }

    .online-panel__status,
    .online-panel__ip {
        left: 36px;
        right: auto;
        font-size: 1.2rem;
    }

    .online-panel__status { top: 40%; }
    .online-panel__ip { top: 66%; }
    .hero-person { display: none; }
    .hero-blur { width: 360px; right: -120px; }
}

/* Product pass: clearer selling points and a small authored pixel scene. */
.intro-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 470px;
    margin-top: 18px;
}

.intro-card__tags span {
    padding: 8px 10px;
    border: 2px solid rgba(255, 146, 120, 0.34);
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(96, 45, 50, 0.72), rgba(42, 20, 35, 0.92));
    color: rgba(255, 238, 232, 0.92);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        inset 3px 3px 0 rgba(255, 196, 174, 0.12),
        inset -3px -3px 0 rgba(0, 0, 0, 0.28),
        0 4px 0 rgba(10, 5, 14, 0.62);
}

.intro-card__link {
    position: relative;
    min-height: 52px;
    padding: 0 20px;
    align-items: center;
    border: 3px solid #a96a61;
    border-radius: 2px;
    background:
        linear-gradient(180deg, #8f514f 0%, #6e3943 52%, #4a2534 100%);
    color: #fff6f0;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
    box-shadow:
        inset 4px 4px 0 rgba(255, 194, 172, 0.18),
        inset -4px -4px 0 rgba(20, 8, 18, 0.48),
        0 7px 0 #2a1320,
        0 0 26px rgba(255, 146, 120, 0.18);
}

.intro-card__link::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 6px;
    height: 3px;
    background: rgba(255, 220, 203, 0.3);
}

.intro-card__link:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, #a45d56 0%, #773f46 52%, #51283a 100%);
    box-shadow:
        inset 4px 4px 0 rgba(255, 202, 184, 0.2),
        inset -4px -4px 0 rgba(20, 8, 18, 0.48),
        0 9px 0 #2a1320,
        0 0 34px rgba(255, 146, 120, 0.24);
}

.intro-card__link:active {
    transform: translateY(5px);
    box-shadow:
        inset 4px 4px 0 rgba(255, 202, 184, 0.14),
        inset -4px -4px 0 rgba(20, 8, 18, 0.58),
        0 2px 0 #2a1320,
        0 0 18px rgba(255, 146, 120, 0.18);
}

.online-panel__ip button {
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
    transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.online-panel__ip button:hover {
    color: #ffd3c8;
    text-shadow: 0 0 24px rgba(255, 146, 120, 0.48);
    transform: translateY(-1px);
}

.online-panel__meta {
    position: absolute;
    right: clamp(76px, 7.4vw, 156px);
    bottom: 28px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(0.82rem, 0.86vw, 0.98rem);
    font-weight: 800;
    letter-spacing: 0;
}

.hero-person {
    display: none;
}

.footer-scene {
    position: absolute;
    left: clamp(34px, 5vw, 98px);
    bottom: 58px;
    z-index: 2;
    width: 190px;
    height: 136px;
    pointer-events: none;
    filter: drop-shadow(0 22px 28px rgba(12, 5, 24, 0.65));
}

.footer-scene__grass,
.footer-scene__chest,
.footer-scene__crystal,
.footer-scene__spark {
    position: absolute;
    display: block;
}

.footer-scene__grass {
    left: 0;
    right: 0;
    bottom: 0;
    height: 34px;
    background: #31563a;
    box-shadow: inset 0 10px 0 #4f8753, 0 14px 0 rgba(0, 0, 0, 0.16);
    clip-path: polygon(0 68%, 14% 34%, 30% 58%, 43% 18%, 58% 62%, 74% 28%, 100% 70%, 100% 100%, 0 100%);
}

.footer-scene__chest {
    left: 58px;
    bottom: 22px;
    width: 76px;
    height: 54px;
    background: #8d5a36;
    box-shadow:
        inset 0 -18px 0 #5e3929,
        inset 0 8px 0 #c77442,
        0 0 0 6px rgba(255, 146, 120, 0.07);
}

.footer-scene__chest::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 16px;
    width: 12px;
    height: 16px;
    background: #ffbd6e;
    box-shadow: 0 0 16px rgba(255, 189, 110, 0.48);
}

.footer-scene__crystal {
    left: 24px;
    bottom: 44px;
    width: 28px;
    height: 58px;
    background: linear-gradient(135deg, #95f5ff, #b152ff 68%);
    clip-path: polygon(50% 0, 100% 24%, 74% 100%, 26% 100%, 0 24%);
    box-shadow: 0 0 24px rgba(177, 82, 255, 0.52);
    animation: crystalPulse 2.8s ease-in-out infinite;
}

.footer-scene__spark {
    width: 9px;
    height: 9px;
    background: #d06dff;
    box-shadow: 0 0 14px rgba(208, 109, 255, 0.7);
    animation: pixelFloat 3.4s ease-in-out infinite;
}

.footer-scene__spark--one {
    left: 142px;
    bottom: 78px;
}

.footer-scene__spark--two {
    left: 154px;
    bottom: 104px;
    width: 6px;
    height: 6px;
    animation-delay: -1.1s;
}

.footer-scene__spark--three {
    left: 18px;
    bottom: 112px;
    width: 7px;
    height: 7px;
    animation-delay: -2s;
}

@media (max-width: 1280px) {
    .footer-scene {
        left: 28px;
        bottom: 42px;
        transform: scale(0.82);
        transform-origin: left bottom;
    }
}

@media (max-width: 680px) {
    .intro-card__tags span {
        font-size: 0.76rem;
    }

    .online-panel__meta {
        left: 36px;
        right: auto;
        bottom: 26px;
    }

    .footer-scene {
        display: none;
    }
}

/* Cinematic entrance: premium motion without changing layout. */
@media (prefers-reduced-motion: no-preference) {
    .index-hero h1 {
        animation: titleReveal 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
    }

    .intro-card {
        overflow: hidden;
        animation: panelRise 820ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
    }

    .intro-card::after {
        content: "";
        position: absolute;
        inset: -30% -70%;
        z-index: 3;
        pointer-events: none;
        background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 218, 0.18) 50%, transparent 58%);
        transform: translateX(-38%);
        animation: cardLightSweep 1150ms cubic-bezier(0.16, 1, 0.3, 1) 780ms both;
    }

    .intro-card__bg {
        animation: characterSailIn 1150ms cubic-bezier(0.16, 1, 0.3, 1) 320ms both;
        transform-origin: 76% 78%;
    }

    .intro-card__copy > * {
        animation: copyReveal 620ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }

    .intro-card__eyebrow { animation-delay: 460ms; }
    .intro-card h2 { animation-delay: 540ms; }
    .intro-card p:not(.intro-card__eyebrow) { animation-delay: 620ms; }
    .intro-card__tags { animation-delay: 700ms; }
    .intro-card__link { animation-delay: 780ms; }

    .mode-card {
        animation: modeCardReveal 760ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }

    .mode-card--survival { animation-delay: 500ms; }
    .mode-card--skyblock { animation-delay: 620ms; }

    .pixel-sun,
    .pixel-cloud,
    .pixel-crystal,
    .pixel-portal,
    .pixel-tree,
    .pixel-house,
    .pixel-island {
        animation-duration: 5.2s;
    }

    .online-panel {
        animation: onlineBarIgnite 860ms cubic-bezier(0.16, 1, 0.3, 1) 820ms both;
    }

    .online-panel > img {
        filter: saturate(1.08) brightness(1.05);
        animation: onlineTextureGlow 5.4s ease-in-out 1.4s infinite;
    }

    .online-panel__dot {
        animation:
            onlinePulse 2.2s ease-in-out infinite,
            dotPop 720ms cubic-bezier(0.16, 1, 0.3, 1) 1020ms both;
    }

    .hero-blur {
        animation:
            blurGlow 5s ease-in-out infinite,
            blurFieldReveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) 650ms both;
    }

    .footer-scene {
        animation: sceneRise 780ms cubic-bezier(0.16, 1, 0.3, 1) 980ms both;
    }

    .footer-scene__chest {
        animation: chestSettle 760ms cubic-bezier(0.16, 1, 0.3, 1) 1180ms both;
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes characterSailIn {
    0% {
        opacity: 0;
        transform: translate(34px, 28px) scale(1.035);
        filter: blur(7px) saturate(0.82);
    }
    58% {
        opacity: 1;
        transform: translate(-4px, -3px) scale(1.006);
        filter: blur(0) saturate(1.08);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        filter: blur(0) saturate(1);
    }
}

@keyframes copyReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes cardLightSweep {
    0% {
        opacity: 0;
        transform: translateX(-36%) rotate(0.001deg);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(38%) rotate(0.001deg);
    }
}

@keyframes modeCardReveal {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
        filter: blur(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes onlineBarIgnite {
    0% {
        opacity: 0;
        transform: translateY(22px) scaleX(0.94);
        filter: blur(7px) brightness(0.82);
    }
    68% {
        opacity: 1;
        transform: translateY(-2px) scaleX(1.01);
        filter: blur(0) brightness(1.12);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleX(1);
        filter: blur(0) brightness(1);
    }
}

@keyframes dotPop {
    from {
        transform: scale(0.72);
    }
    to {
        transform: scale(1);
    }
}

@keyframes onlineTextureGlow {
    0%, 100% {
        filter: saturate(1.08) brightness(1.05);
    }
    50% {
        filter: saturate(1.24) brightness(1.16);
    }
}

@keyframes blurFieldReveal {
    from {
        opacity: 0;
        transform: translate(44px, 24px) scale(0.96);
        filter: blur(8px) saturate(0.8);
    }
    to {
        opacity: 0.96;
        transform: translate(0, 0) scale(1);
        filter: blur(0) saturate(1.16);
    }
}

@keyframes sceneRise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes chestSettle {
    0% {
        transform: translateY(-24px) scale(0.92);
    }
    62% {
        transform: translateY(4px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
