@font-face {
    font-family: "PixelMix";
    src: url("../assets/fonts/pixelmix.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #F7F7F4;
    --white: #FFFFFF;
    --ink: #101010;
    --charcoal: #242424;
    --muted: #4f4f4f;
    --line: rgba(16, 16, 16, 0.18);
    --soft-line: rgba(16, 16, 16, 0.1);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
    --tiktok: #ff0050;
    --steam: #171a21;
    --discord: #5865f2;
    --instagram: #e4405f;
    --youtube: #ff0000;
    --pixel-coral: #FF6B6B;
    --pixel-sky: #48BFE3;
    --pixel-mint: #72EFDD;
    --pixel-gold: #FFD166;
    --pixel-lavender: #9B5DE5;
    --pixel-leaf: #80ED99;
    --font-pixel: "PixelMix", monospace;
    --content: 1120px;
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    font-family: var(--font-pixel) !important;
}

p {
    font-family: var(--font-pixel);
}

html {
    font-family: var(--font-pixel);
    font-synthesis: none;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-pixel);
    font-size: 18px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, transparent 0 47%, rgba(0, 0, 0, 0.04) 47% 53%, transparent 53% 100%),
        linear-gradient(180deg, transparent 0 47%, rgba(0, 0, 0, 0.03) 47% 53%, transparent 53% 100%);
    background-size: 32px 32px, 32px 32px, 256px 256px, 256px 256px;
    animation: grid-drift 18s steps(6, end) infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.74;
    background:
        linear-gradient(var(--pixel-coral), var(--pixel-coral)) 8% 22% / 18px 18px no-repeat,
        linear-gradient(var(--pixel-sky), var(--pixel-sky)) 16% 72% / 26px 26px no-repeat,
        linear-gradient(var(--pixel-gold), var(--pixel-gold)) 42% 12% / 22px 22px no-repeat,
        linear-gradient(var(--pixel-lavender), var(--pixel-lavender)) 86% 18% / 34px 34px no-repeat,
        linear-gradient(var(--pixel-mint), var(--pixel-mint)) 82% 76% / 42px 42px no-repeat,
        linear-gradient(var(--pixel-leaf), var(--pixel-leaf)) 52% 92% / 26px 26px no-repeat;
    animation: pixel-spark 7s steps(2, end) infinite;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--content));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
    transform: translateY(-140%);
    padding: 10px 14px;
    border: 2px solid var(--white);
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid transparent;
    background: rgba(247, 247, 244, 0.92);
    backdrop-filter: blur(14px);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--soft-line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.nav {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    flex: 0 0 auto;
    font-family: var(--font-pixel);
    font-size: 2.42rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transform: translateY(-2px);
    transition: transform 140ms ease, text-shadow 140ms ease;
}

.brand:hover {
    transform: translateY(-4px);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.09);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 30px;
    color: var(--muted);
    font-family: var(--font-pixel);
    font-size: 1.28rem;
    font-weight: 700;
}

.nav-links a,
.footer-links a,
.button-link {
    text-decoration: none;
    transition: color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.button-link:hover {
    color: var(--ink);
    opacity: 0.72;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 26px;
    border: 2px solid var(--ink);
    border-radius: 3px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    box-shadow: 5px 5px 0 var(--charcoal);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
    background: var(--charcoal);
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink);
}

.button:active {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0 var(--ink);
}

.button-small {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 0.76rem;
    white-space: nowrap;
    box-shadow: 4px 4px 0 var(--charcoal);
    transform: translateY(-2px);
}

.button-small:hover {
    transform: translate(-2px, -4px);
}

.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    color: var(--ink);
    font-family: var(--font-pixel);
    font-size: 1.04rem;
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    transition: color 120ms ease, transform 120ms ease, text-decoration-thickness 120ms ease;
}

.button-link:hover {
    transform: translateY(-2px);
    text-decoration-thickness: 4px;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 78svh;
    display: grid;
    align-items: center;
    padding: 104px 0 94px;
    border-bottom: 1px solid var(--soft-line);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 2px, transparent 2px),
        linear-gradient(180deg, rgba(0, 0, 0, 0.035) 2px, transparent 2px),
        radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1.5px),
        var(--paper);
    background-size: 128px 128px, 128px 128px, 18px 18px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, transparent 0 14%, rgba(255, 255, 255, 0.86) 14% 86%, transparent 86% 100%),
        rgba(247, 247, 244, 0.68);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.95;
    background:
        linear-gradient(var(--pixel-gold), var(--pixel-gold)) 11% 78% / 24px 24px no-repeat,
        linear-gradient(var(--pixel-sky), var(--pixel-sky)) 17% 32% / 18px 18px no-repeat,
        linear-gradient(var(--pixel-coral), var(--pixel-coral)) 77% 28% / 22px 22px no-repeat,
        linear-gradient(var(--pixel-lavender), var(--pixel-lavender)) 88% 66% / 30px 30px no-repeat,
        linear-gradient(var(--pixel-mint), var(--pixel-mint)) 63% 82% / 18px 18px no-repeat,
        linear-gradient(var(--pixel-leaf), var(--pixel-leaf)) 37% 20% / 14px 14px no-repeat;
    animation: pixel-spark 5s steps(2, end) infinite reverse;
}

.hero-inner {
    position: relative;
    isolation: isolate;
    max-width: 1040px;
    text-align: center;
    z-index: 1;
}

.hero-inner::before,
.hero-inner::after {
    content: "";
    position: absolute;
    width: 52px;
    height: 52px;
    z-index: -1;
    pointer-events: none;
    background: var(--ink);
    opacity: 0.08;
}

.hero-inner::before {
    left: max(16px, calc(50% - 560px));
    top: 18%;
    background: var(--pixel-sky);
    box-shadow: 24px 24px 0 var(--pixel-coral), 48px 0 0 var(--pixel-gold);
}

.hero-inner::after {
    right: max(16px, calc(50% - 560px));
    bottom: 14%;
    background: var(--pixel-lavender);
    box-shadow: -24px -24px 0 var(--pixel-mint), -48px 0 0 var(--pixel-leaf);
}

.section-label {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-pixel);
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 1100px;
    margin: 0 auto;
    font-size: clamp(2.05rem, 5.5vw, 4.4rem);
    font-weight: 700;
    line-height: 1.02;
    text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.08);
}

h1 span {
    display: block;
    white-space: nowrap;
}

h2 {
    font-size: 3.4rem;
    font-weight: 700;
}

.hero-copy {
    max-width: 720px;
    margin: 28px auto 0;
    color: var(--muted);
    font-family: var(--font-pixel);
    font-size: 1.12rem;
    line-height: 1.7;
}

.pixel-world {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pixel-room,
.pixel-door,
.pixel-avatar {
    position: absolute;
    display: block;
    image-rendering: pixelated;
}

.pixel-room {
    width: 176px;
    height: 128px;
    border: 3px solid rgba(16, 16, 16, 0.22);
    background:
        linear-gradient(90deg, rgba(16, 16, 16, 0.12) 2px, transparent 2px),
        linear-gradient(180deg, rgba(16, 16, 16, 0.12) 2px, transparent 2px),
        rgba(255, 255, 255, 0.38);
    background-size: 22px 22px;
    opacity: 0.64;
    animation: room-float 8s steps(4, end) infinite;
}

.pixel-room::before,
.pixel-room::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--pixel-gold);
    box-shadow: 22px 0 0 var(--pixel-coral), 44px 0 0 var(--pixel-sky);
}

.pixel-room::before {
    left: 18px;
    top: 18px;
}

.pixel-room::after {
    right: 18px;
    bottom: 18px;
    background: var(--pixel-mint);
    box-shadow: -22px 0 0 var(--pixel-lavender), -44px 0 0 var(--pixel-leaf);
}

.room-one {
    left: 5%;
    top: 19%;
    transform: rotate(-2deg);
}

.room-two {
    right: 4%;
    top: 27%;
    transform: rotate(2deg);
    animation-delay: -2s;
}

.room-three {
    left: 38%;
    bottom: 4%;
    transform: rotate(1deg);
    animation-delay: -4s;
}

.pixel-door {
    width: 28px;
    height: 46px;
    border: 3px solid rgba(16, 16, 16, 0.28);
    background: var(--pixel-lavender);
    opacity: 0.5;
    animation: door-blink 5s steps(2, end) infinite;
}

.door-one {
    left: 16%;
    top: 58%;
}

.door-two {
    right: 18%;
    bottom: 23%;
    background: var(--pixel-mint);
}

.pixel-avatar {
    width: 20px;
    height: 20px;
    background: var(--pixel-coral);
    box-shadow:
        0 20px 0 var(--pixel-coral),
        20px 20px 0 var(--pixel-sky),
        -20px 20px 0 var(--pixel-gold),
        0 40px 0 var(--ink);
    opacity: 0.52;
    animation: avatar-bob 3s steps(2, end) infinite;
}

.avatar-one {
    left: 27%;
    bottom: 24%;
}

.avatar-two {
    right: 27%;
    top: 21%;
    background: var(--pixel-leaf);
    box-shadow:
        0 20px 0 var(--pixel-leaf),
        20px 20px 0 var(--pixel-lavender),
        -20px 20px 0 var(--pixel-mint),
        0 40px 0 var(--ink);
    animation-delay: -1s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 28px;
    margin-top: 34px;
}

.social-section,
.faq-section {
    padding: 100px 0;
}

.social-section {
    text-align: center;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.social-link {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--brand-color, var(--ink));
    text-decoration: none;
    transition: border-color 120ms ease, color 120ms ease, background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    animation: icon-idle 6s steps(3, end) infinite;
}

.social-list li:nth-child(1) .social-link {
    --brand-color: var(--tiktok);
}

.social-list li:nth-child(2) .social-link {
    --brand-color: var(--steam);
    animation-delay: -1.2s;
}

.social-list li:nth-child(3) .social-link {
    --brand-color: var(--discord);
    animation-delay: -2.4s;
}

.social-list li:nth-child(4) .social-link {
    --brand-color: var(--instagram);
    animation-delay: -3.6s;
}

.social-list li:nth-child(5) .social-link {
    --brand-color: var(--youtube);
    animation-delay: -4.8s;
}

.social-link:hover,
.social-link:focus-visible {
    border-color: var(--brand-color, var(--ink));
    background: var(--white);
    color: var(--brand-color, var(--ink));
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 var(--brand-color, var(--charcoal));
}

.social-link:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 var(--brand-color, var(--charcoal));
}

.social-link .social-icon {
    display: block;
    width: 66px;
    height: 66px;
    overflow: visible;
}

.faq-section {
    border-top: 1px solid var(--soft-line);
}

.faq-container {
    max-width: 900px;
    text-align: center;
}

.faq-container h2 {
    margin-top: 16px;
}

.faq-list {
    margin-top: 38px;
    border-top: 2px solid var(--ink);
    text-align: left;
}

.faq-item {
    border-bottom: 2px solid var(--ink);
}

.faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 26px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font-size: 1.12rem;
    font-weight: 700;
}

.faq-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-pixel);
    font-size: 0;
    font-weight: 700;
    line-height: 1;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 4px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 140ms ease;
}

.faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question:hover .faq-toggle {
    transform: rotate(90deg);
}

.faq-toggle {
    transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

@keyframes grid-drift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 32px 32px, 32px 32px, 64px 0, 0 64px;
    }
}

@keyframes pixel-spark {
    0%,
    100% {
        opacity: 0.65;
    }
    50% {
        opacity: 0.92;
    }
}

@keyframes room-float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -8px;
    }
}

@keyframes door-blink {
    0%,
    100% {
        filter: saturate(1);
    }
    50% {
        filter: saturate(1.5) brightness(1.08);
    }
}

@keyframes avatar-bob {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -12px;
    }
}

@keyframes icon-idle {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -3px;
    }
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    margin: 0;
    padding: 0 60px 26px 0;
    color: var(--muted);
    font-family: var(--font-pixel);
    font-size: 1.02rem;
    line-height: 1.75;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-toggle {
    background: var(--ink);
    color: var(--white);
}

.faq-item.is-open .faq-toggle::after {
    transform: translate(-50%, -50%) scaleX(0);
}

.site-footer {
    position: relative;
    padding: 42px 0 48px;
    border-top: 2px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-pixel);
    color: rgba(255, 255, 255, 0.82);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-pixel);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-version {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-pixel);
    font-size: 0.72rem;
    line-height: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 580px) {
    .container {
        width: min(100% - 48px, var(--content));
    }

    h1 {
        font-size: clamp(3rem, 7vw, 4.05rem);
    }

    h2 {
        font-size: 3.5rem;
    }

    .hero-copy {
        font-size: 1.32rem;
    }
}

@media (min-width: 760px) {
    .nav-links {
        display: flex;
    }

    h1 {
        font-size: clamp(3.65rem, 5.9vw, 4.3rem);
    }

    h2 {
        font-size: 3.75rem;
    }

    .hero {
        padding: 100px 0 88px;
    }
}

@media (min-width: 1080px) {
    .brand {
        font-size: 2.58rem;
    }

    h1 {
        font-size: 4.4rem;
    }

    h2 {
        font-size: 4.15rem;
    }

    .hero {
        min-height: 80svh;
        padding: 82px 0 76px;
    }

    .social-section,
    .faq-section {
        padding: 116px 0;
    }
}

@media (max-width: 579px) {
    body {
        overflow-x: clip;
        font-size: 17px;
    }

    .container {
        width: min(100% - 24px, var(--content));
    }

    .nav {
        min-height: 70px;
        gap: 8px;
    }

    .brand {
        font-size: 1.5rem;
    }

    .button-small {
        min-height: 40px;
        width: 128px;
        padding-inline: 8px;
        font-size: 0.55rem;
        text-align: center;
        white-space: normal;
    }

    .hero {
        min-height: auto;
        padding: 82px 0 78px;
    }

    h1 {
        max-width: 342px;
        font-size: clamp(1.52rem, 6.4vw, 1.72rem);
        line-height: 1.12;
    }

    h2 {
        font-size: 2.28rem;
    }

    .hero-copy {
        max-width: 324px;
        margin-top: 28px;
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .hero-actions .button-link {
        width: 100%;
        max-width: 332px;
        margin-inline: auto;
    }

    .button-link {
        justify-content: center;
    }

    .social-section,
    .faq-section {
        padding: 72px 0;
        content-visibility: auto;
        contain-intrinsic-size: 1px 620px;
    }

    .section-label {
        font-size: 0.86rem;
    }

    .social-list {
        gap: 12px;
    }

    .social-link {
        width: 96px;
        height: 96px;
    }

    .pixel-world {
        opacity: 0.58;
    }

    .pixel-room {
        width: 118px;
        height: 88px;
    }

    .room-one {
        left: -18%;
        top: 18%;
    }

    .room-two {
        right: -22%;
        top: 36%;
    }

    .room-three,
    .door-one,
    .door-two,
    .avatar-two {
        display: none;
    }

    .social-link .social-icon {
        width: 54px;
        height: 54px;
    }

    .faq-question {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .faq-answer p {
        padding-right: 0;
    }

    .footer-version {
        left: 12px;
        bottom: 12px;
        font-size: 0.62rem;
    }
}

@media (max-width: 430px) {
    h1 {
        max-width: 344px;
        font-size: 1.58rem;
    }
}
