:root {
    color-scheme: dark;
    --background: #100c10;
    --text: #fff7f2;
    --muted: #d2bfc4;
    --gold: #ffbf73;
    --red: #fa5b5a;
    --line: #47343a;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 85px; }
body { margin: 0; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .scene-gallery:focus-visible { outline: 3px solid #ffe2ae; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
    position: absolute;
    left: 16px;
    top: 8px;
    z-index: 10;
    padding: 10px 16px;
    color: #140b0c;
    background: var(--gold);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    border-bottom: 1px solid #3f2730;
    background: linear-gradient(103deg, #1d1319, #231117 65%, #37161c);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
    display: grid;
    grid-auto-flow: column;
    place-content: center;
    width: 43px;
    height: 43px;
    flex: none;
    border: 1px solid #9a484d;
    border-radius: 10px;
    color: var(--text);
    background: linear-gradient(148deg, #73303a, #3d2028 62%, #291c23);
    font-size: 17px;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -.09em;
}
.brand-mark span { color: var(--gold); }
.brand-text { font-weight: 850; line-height: 1.05; letter-spacing: .02em; white-space: nowrap; }
.brand-text small { display: block; margin-top: 4px; color: var(--gold); font-size: 9px; letter-spacing: .22em; }
.header-inner nav { display: flex; gap: 24px; margin-left: auto; }
.header-inner nav a, .site-footer a { font-size: 14px; color: var(--muted); text-decoration: none; }
.header-inner nav a:hover, .site-footer a:hover { color: var(--text); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 11px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}
.button-header, .button-outline { border-color: #9b6460; color: #ffe0b8; background: #301c22; }
.button-header:hover, .button-outline:hover { border-color: var(--gold); background: #4a2828; }
.button-primary {
    min-height: 52px;
    padding-inline: 21px;
    border-color: #ffc293;
    color: #241013;
    background: linear-gradient(112deg, #ffcc94, #ff996d);
    box-shadow: 0 12px 25px #11080d90;
}
.button-primary:hover { background: #ffd0a1; }

.hero {
    --hero-art: url("/support/hero.jpg");
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 470px;
    margin-top: 28px;
    border: 1px solid #593743;
    border-radius: 21px;
    overflow: hidden;
    background: radial-gradient(ellipse at 84% 38%, #88313a, #3d1d28 38%, #1e151c 72%);
}
.hero-scene {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, #21141bed, #1d131cbe 42%, transparent 80%),
        linear-gradient(0deg, #190e18cb, transparent 52%),
        var(--hero-art) center right / cover no-repeat,
        repeating-linear-gradient(125deg, transparent 0 64px, #a8796f30 65px 66px, transparent 67px 94px),
        radial-gradient(ellipse at 86% 53%, #c4634938, transparent 58%);
}
.hero-copy { width: min(620px, 100%); padding: clamp(27px, 6vw, 74px); }
.platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid #a26b5c;
    border-radius: 30px;
    color: #ffdbab;
    background: #3d2423c7;
    font-size: 13px;
    font-weight: 700;
}
.platform span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.65rem, 7.6vw, 5.65rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.062em;
}
.hero h1 span { display: block; margin-top: 6px; color: var(--gold); font-size: .58em; letter-spacing: -.045em; }
.hero-description { max-width: 34ch; margin: 21px 0 25px; color: #f4dce0; font-size: clamp(1rem, 2.3vw, 1.22rem); }

.section { margin-top: clamp(32px, 6vw, 66px); }
.section h2 { font-size: clamp(1.62rem, 4vw, 2.65rem); line-height: 1.12; letter-spacing: -.04em; }
.download {
    padding: clamp(20px, 5vw, 42px);
    border: 1px solid #63404b;
    border-top: 3px solid #b85a54;
    border-radius: 18px;
    background: radial-gradient(ellipse at 80% 0%, #482129, #241a22 72%);
}
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.store-card {
    display: flex;
    align-items: center;
    min-height: 88px;
    gap: clamp(11px, 2.5vw, 19px);
    padding: clamp(13px, 3vw, 23px);
    border: 1px solid #4b3b46;
    border-radius: 14px;
    color: var(--text);
    background: #211b23;
    text-decoration: none;
}
.store-card[href]:hover { border-color: #d48c6e; background: #30252c; }
.store-card:not([href]) { cursor: default; }
.store-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 51px;
    height: 51px;
    border-radius: 12px;
}
.store-icon-play { background: #152a27; }
.store-icon-play::before {
    width: 27px;
    height: 32px;
    margin-left: 4px;
    background: conic-gradient(from 40deg at 51% 50%, #ffc66e 0deg 86deg, #ff7170 87deg 157deg,
        #63bdef 158deg 261deg, #49cda8 262deg 360deg);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    content: "";
}
.store-icon-rustore { background: #1768ce; }
.store-icon-rustore::before, .store-icon-rustore::after {
    position: absolute;
    width: 17px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 3px;
    transform: skewY(12deg);
    content: "";
}
.store-icon-rustore::before { margin: -5px 0 0 7px; }
.store-icon-rustore::after { margin: 3px 7px 0 0; background: #1768ce; }
.store-info { min-width: 0; }
.store-info strong { display: block; font-size: clamp(1.27rem, 3.9vw, 1.85rem); line-height: 1.15; }
.store-status { display: block; margin-top: 6px; color: var(--gold); font-size: 14px; font-weight: 700; }
.store-arrow { display: none; margin-left: auto; color: var(--gold); font-size: 1.35rem; }
.store-card[href] .store-status { display: none; }
.store-card[href] .store-arrow { display: block; }

.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gallery-controls { display: flex; flex: none; gap: 7px; }
.gallery-controls button {
    width: 46px;
    height: 44px;
    border: 1px solid #9b6460;
    border-radius: 10px;
    color: #ffe0b8;
    background: #301c22;
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}
.gallery-controls button[aria-disabled="true"] { opacity: .44; cursor: default; }
.gallery-controls button:not([aria-disabled="true"]):hover { border-color: var(--gold); background: #4a2828; }
.scene-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(56%, 480px);
    gap: 13px;
    width: 100%;
    min-width: 0;
    margin: 16px 0 0;
    padding: 0 0 10px;
    overflow-x: auto;
    list-style: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-color: #936b75 #251921;
    scrollbar-width: thin;
}
.scene-gallery li { min-width: 0; scroll-snap-align: start; }
.scene-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 13px;
    object-fit: cover;
    background: #21171c;
}
.scene-gallery[data-drag="true"] { cursor: grab; }
.scene-gallery[data-dragging="true"] { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.feature {
    position: relative;
    min-width: 0;
    min-height: 148px;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(140deg, #271b22, #1d161d);
}
.feature::before {
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 13px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    content: "";
}
.feature h3 { font-size: clamp(1.08rem, 2.5vw, 1.3rem); margin-bottom: 7px; }
.feature p, .community p { color: var(--muted); }
.community {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: clamp(21px, 5vw, 45px);
    border: 1px solid #6a4148;
    border-radius: 17px;
    background: linear-gradient(106deg, #31202a, #411d23);
}
.community p { margin-top: 10px; }
.community .button { flex: none; }
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; padding-block: 22px; }
.footer-inner span { font-weight: 750; }

@media (max-width: 760px) {
    .header-inner { gap: 15px; }
    .header-inner nav { gap: 12px; }
    .hero { min-height: 410px; }
    .feature { padding: 16px; }
}

@media (max-width: 580px) {
    .shell { width: calc(100% - 28px); }
    .header-inner { min-height: 64px; justify-content: space-between; gap: 10px; }
    .header-inner nav { display: none; }
    .brand { gap: 8px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-text { font-size: 13px; }
    .button-header { min-height: 44px; padding-inline: 12px; font-size: 13px; }
    .hero { min-height: 440px; align-items: end; margin-top: 15px; border-radius: 16px; }
    .hero-copy { padding: 24px 19px; }
    .hero-scene {
        background:
            linear-gradient(0deg, #20141efc, #24151ee8 43%, #24151e35 84%),
            var(--hero-art) center / cover no-repeat,
            repeating-linear-gradient(125deg, transparent 0 44px, #a8796f30 45px 46px, transparent 47px 64px),
            radial-gradient(ellipse at 86% 53%, #c4634938, transparent 58%);
    }
    .feature-grid { grid-template-columns: 1fr; gap: 10px; }
    .store-grid { grid-template-columns: 1fr; gap: 10px; }
    .scene-gallery { grid-auto-columns: 86%; gap: 10px; }
    .feature { min-height: 0; padding: 17px; }
    .community { align-items: flex-start; flex-direction: column; }
    .site-footer { margin-top: 35px; }
}
