@font-face {
    font-family: Minecraft;
    src: url('/assets/fonts/MinecraftTen.ttf') format('truetype');
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #f2f3f5;
    background: #111214;
    --accent: #72de91;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.title-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 49px;
    padding: 0 16px;
    border-bottom: 1px solid #35373c;
    background: #111214;
}

.logo { display: flex; align-items: center; }
.logo img { object-fit: contain; }
.navigation-link {
    position: relative;
    display: grid;
    place-items: center;
    height: 48px;
    min-width: 88px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.navigation-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 56px;
    height: 2px;
    background: var(--accent);
}

.home-scene {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    min-height: max(380px, calc(100svh - 49px));
    overflow: hidden;
}

.background { position: absolute; inset: 0; z-index: -1; }
.background-image { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: blur(2px); transform: scale(1.01); }
.background-shade { position: absolute; inset: 0; background: #11121466; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; padding: 80px 24px; }
.hero h1 { display: grid; align-items: center; margin: 0; min-height: 144px; font-family: Minecraft, 'Segoe UI', sans-serif; font-size: clamp(36px, 10vw, 112px); font-weight: 400; line-height: 1; text-align: center; }
.download-button { display: grid; place-items: center; width: min(360px, 100%); min-height: 60px; padding: 12px 24px; border-radius: 6px; background: var(--accent); color: #111214; font-size: 18px; font-weight: 600; transition: background 120ms; }
.download-button:hover { background: #8de5a6; }
.download-button:active { background: #58c778; }
.download-message { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 100svh; padding: 24px; text-align: center; }
.download-message h1, .download-message p { margin: 0; }
.download-message p { color: #b5bac1; }
.home-footer { position: absolute; bottom: 16px; left: 24px; right: 24px; }
.home-footer nav, .legal-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.home-footer a { padding: 6px 0; color: #f2f3f5; font-size: 13px; text-shadow: 0 1px 4px #111214; }
.home-footer a:hover, .legal-footer a:hover { color: var(--accent); }
.legal-page { width: min(100%, 880px); margin: 0 auto; padding: 56px 24px 40px; }
.legal-page h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 44px); line-height: 1.2; }
.legal-page h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.4; }
.legal-page p, .legal-page li { color: #b5bac1; font-size: 16px; line-height: 1.75; }
.legal-page p { margin: 12px 0; }
.legal-page ul { padding-left: 24px; }
.legal-page li { margin: 8px 0; }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-page .effective-date { margin-bottom: 28px; font-size: 14px; }
.legal-page .legal-navigation { padding: 20px 24px; margin: 28px 0; border: 1px solid #35373c; border-radius: 8px; background: #232428; }
.legal-navigation ul { margin: 0; columns: 2; }
.legal-navigation li { break-inside: avoid; font-size: 14px; }
.legal-footer { padding-top: 28px; margin-top: 40px; border-top: 1px solid #35373c; }
.legal-footer a { font-size: 14px; }

@media (max-width: 600px) {
    .hero { gap: 12px; }
    .hero h1 { min-height: 100px; }
    .legal-page { padding-top: 32px; }
    .legal-navigation ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .download-button { transition: none; }
}
