:root {
    color-scheme: dark;
    --bg: #0d1117;
    --panel: #151b23;
    --panel-soft: #1b232d;
    --text: #f6f8fb;
    --muted: #b5bfcc;
    --line: rgba(255, 255, 255, 0.16);
    --lava: #ff5868;
    --neutral: #36d3a1;
    --life: #f4ca55;
    --finish: #72a9ff;
    --key: #f59e0b;
    --ink: #080b10;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 11, 16, 0.74);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 900;
}

.brand-logo {
    width: 34px;
    height: 30px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-install,
.header-start,
.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border-radius: 7px;
    font-weight: 850;
}

.header-install {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--life);
    background: var(--life);
    color: #171202;
    cursor: pointer;
    font-size: 13px;
}

.header-install[hidden] {
    display: none;
}

.header-start {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 13px;
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: calc(100svh - 64px);
    min-height: 500px;
    max-height: 940px;
    overflow: hidden;
    background: #10151b;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    object-fit: cover;
    object-position: center 58%;
}

.hero-overlay {
    background: rgba(7, 10, 14, 0.56);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 36px));
    margin: 0 clamp(18px, 6vw, 88px) 86px;
}

.hero-logo {
    width: min(150px, 34vw);
    max-height: 126px;
    margin-bottom: 10px;
    object-fit: contain;
    object-position: left center;
}

.kicker,
.step-label {
    margin: 0;
    color: var(--life);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    letter-spacing: 0;
}

h1 {
    max-width: 680px;
    margin: 10px 0 12px;
    font-size: 68px;
    line-height: 0.98;
}

h2 {
    margin: 8px 0 14px;
    font-size: 38px;
    line-height: 1.02;
}

.hero-copy,
.section-copy p,
.section-lead,
.start-row p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.hero-copy {
    max-width: 640px;
    margin: 0;
    color: #eef3f8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.primary-action {
    min-width: 180px;
    padding: 0 17px;
    background: var(--life);
    color: #171202;
}

.secondary-action {
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(8, 11, 16, 0.58);
}

.hero-step {
    position: absolute;
    right: clamp(18px, 4vw, 56px);
    bottom: 18px;
    left: clamp(18px, 4vw, 56px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    color: #eef3f8;
    font-size: 13px;
}

.hero-step strong {
    color: var(--life);
    font-size: 18px;
}

.section-inner {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.field-section {
    padding: 74px 0;
    background: var(--panel);
}

.field-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
}

.guide-visual {
    margin: 0;
}

.guide-visual img {
    display: block;
    width: 100%;
    max-height: 680px;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: cover;
}

.guide-visual figcaption {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.section-copy p {
    margin: 0;
}

.corner-list {
    margin: 25px 0 22px;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.corner-list li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.corner-list strong {
    color: var(--finish);
}

.note {
    padding-left: 13px;
    border-left: 3px solid var(--neutral);
    font-size: 14px !important;
}

.play-section {
    padding: 74px 0 62px;
    background: var(--bg);
}

.section-lead {
    max-width: 760px;
    margin: 0;
}

.field-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 32px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.field-type {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 5px 10px;
    padding: 16px 14px;
    border-right: 1px solid var(--line);
}

.field-type:last-child {
    border-right: 0;
}

.field-type .swatch {
    grid-row: span 2;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    border-radius: 3px;
}

.field-type span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.lava .swatch {
    background: var(--lava);
}

.neutral .swatch {
    background: var(--neutral);
}

.life .swatch {
    background: var(--life);
}

.finish .swatch {
    background: var(--finish);
}

.key .swatch {
    background: var(--key);
}

.start-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
}

.start-row p {
    max-width: 680px;
    margin: 0;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    background: #090c11;
    color: var(--muted);
    font-size: 13px;
}

footer a {
    color: var(--finish);
}

.install-dialog {
    width: min(460px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--panel);
    color: var(--text);
}

.install-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.install-dialog h2 {
    margin-top: 0;
    font-size: 24px;
}

.install-dialog p {
    color: var(--muted);
    line-height: 1.5;
}

.dialog-close {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--life);
    border-radius: 7px;
    background: var(--life);
    color: #171202;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

@media (max-width: 760px) {
    .site-header {
        padding: 14px 18px;
    }

    .brand {
        font-size: 13px;
    }

    .header-start,
    .header-install {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .hero {
        height: calc(100svh - 52px);
        min-height: 480px;
    }

    .hero-media {
        object-position: center center;
    }

    .hero-overlay {
        background: rgba(7, 10, 14, 0.61);
    }

    .hero-content {
        margin: 0 18px 92px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 31px;
    }

    .hero-copy,
    .section-copy p,
    .section-lead,
    .start-row p {
        font-size: 15px;
    }

    .field-section,
    .play-section {
        padding: 52px 0;
    }

    .field-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .guide-visual img {
        max-height: 560px;
    }

    .field-types {
        grid-template-columns: 1fr 1fr;
    }

    .field-type:nth-child(2n) {
        border-right: 0;
    }

    .field-type {
        border-bottom: 1px solid var(--line);
    }

    .field-type:last-child {
        border-bottom: 0;
    }

    .start-row {
        display: grid;
        gap: 18px;
    }

    .start-row .primary-action {
        width: 100%;
    }
}

@media (max-height: 560px) {
    .hero {
        height: calc(100svh - 42px);
        min-height: 0;
    }

    .hero-content {
        margin-bottom: 72px;
    }

    .hero-copy {
        font-size: 14px;
    }

    .hero-actions {
        margin-top: 14px;
    }
}
