:root {
    --bg: #060708;
    --bg-elev: #0f1215;
    --bg-soft: #14181c;
    --line: rgba(255, 255, 255, 0.075);
    --line-strong: rgba(255, 255, 255, 0.13);
    --text: #f5f2ea;
    --muted: #a49f95;
    --muted-strong: #c9c3b8;
    --accent: #d8ee93;
    --accent-strong: #eef8cd;
    --accent-soft: rgba(216, 238, 147, 0.12);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1260px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --theme-transition: background 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(216, 238, 147, 0.08), transparent 26%),
        radial-gradient(circle at 82% 82%, rgba(255, 255, 255, 0.05), transparent 22%),
        linear-gradient(180deg, #050607 0%, #07090a 30%, #090b0d 100%);
    transition: var(--theme-transition);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
        radial-gradient(circle at center, transparent 52%, rgba(0, 0, 0, 0.36) 100%);
}

::selection { color: #11130d; background: rgba(216, 238, 147, 0.86); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: "Sora", sans-serif; letter-spacing: -0.045em; }
p { margin: 0; }

.site-shell { position: relative; isolation: isolate; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #12150e;
    font-weight: 700;
    font-size: 0.9rem;
    transition: top 180ms ease;
}

.skip-link:focus { top: 16px; }

.sr-announce {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 80ms linear;
    box-shadow: 0 0 8px rgba(216, 238, 147, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(18, 21, 25, 0.92);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), border-color 180ms ease, background 180ms ease;
    pointer-events: none;
}

.back-to-top:not([hidden]) {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: rgba(216, 238, 147, 0.3);
    background: rgba(22, 26, 30, 0.96);
    transform: translateY(-3px) scale(1);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 8px 0 0;
    background: linear-gradient(180deg, rgba(6, 7, 8, 0.82), rgba(6, 7, 8, 0));
    backdrop-filter: blur(12px);
    transition: var(--theme-transition);
}

.nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(18, 21, 24, 0.92), rgba(11, 13, 15, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 34px rgba(0, 0, 0, 0.25);
    transition: var(--theme-transition);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand img { width: 34px; height: 34px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 180ms ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 220ms var(--ease-out);
    transform-origin: left;
}

.nav-links a.is-active,
.nav-links a:hover { color: var(--text); }

.nav-links a.is-active::after { transform: scaleX(1); }

.footer-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.nav-links a:hover,
.footer-nav a:hover { color: var(--text); }

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 200ms var(--ease-out), border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 200ms ease;
}

.nav-cta,
.button-primary {
    color: #12150e;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 10px 24px rgba(216, 238, 147, 0.18);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--line);
}

.nav-cta:hover,
.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(216, 238, 147, 0.28);
}

.button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line-strong);
}

.trust-card:hover,
.footer-icon:hover { transform: translateY(-2px); }

body.modal-open { overflow: hidden; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(216, 238, 147, 0.2);
    background: rgba(216, 238, 147, 0.08);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 14px currentColor; }
    50% { opacity: 0.6; box-shadow: 0 0 6px currentColor; }
}

h1 { font-size: clamp(2.15rem, 4vw, 3.95rem); line-height: 0.92; }
.hero-title { max-width: none; margin-top: 14px; }
.hero-title span { display: block; }

.hero-text {
    max-width: 46ch;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.52;
}

.hero-text-secondary { margin-top: 4px; max-width: 50ch; }

.hero { padding: 10px 0 18px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    gap: 18px;
    align-items: start;
}

.hero-copy,
.hero-panel,
.hero-highlights,
.trust-card,
.deploy-card,
.footer-grid {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 21, 25, 0.94), rgba(12, 14, 17, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
    transition: var(--theme-transition);
}

.hero-copy,
.hero-panel,
.hero-highlights { overflow: hidden; border-radius: var(--radius-xl); padding: 24px; }
.hero-panel { padding: 0; border-color: rgba(216, 238, 147, 0.14); }
.hero-side { display: grid; gap: 12px; align-self: start; }

.hero-highlights {
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.06);
}

.hero-copy::before,
.hero-panel::before,
.deploy-card::before,
.footer-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%);
}

.hero-copy::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -160px;
    bottom: -180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(216, 238, 147, 0.14), transparent 70%);
    pointer-events: none;
}

.hero-panel::before {
    background:
        radial-gradient(circle at top left, rgba(216, 238, 147, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(83, 224, 255, 0.1), transparent 34%);
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.download-integrity { position: relative; z-index: 1; margin-top: 12px; }

.integrity-panel {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(216, 238, 147, 0.1);
    background:
        radial-gradient(circle at top right, rgba(216, 238, 147, 0.08), transparent 32%),
        radial-gradient(circle at left center, rgba(104, 200, 219, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(21, 25, 29, 0.96), rgba(12, 15, 18, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
    transition: var(--theme-transition);
}

.integrity-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(216, 238, 147, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%);
}

.integrity-heading,
.integrity-grid,
.integrity-hash { position: relative; z-index: 1; }

.integrity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.integrity-heading-copy { max-width: 38ch; }

.integrity-title,
.integrity-item span,
.integrity-hash span {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.integrity-title { margin-bottom: 6px; }

.integrity-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.38;
}

.integrity-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(216, 238, 147, 0.12);
    background: rgba(216, 238, 147, 0.1);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.integrity-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 14px rgba(216, 238, 147, 0.6);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.integrity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.integrity-item {
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: var(--theme-transition);
}

.integrity-item span,
.integrity-hash span { margin-bottom: 6px; }

.integrity-item strong,
.integrity-hash code { display: block; line-height: 1.5; }

.integrity-item strong {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.integrity-hash {
    margin-top: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(139, 207, 209, 0.12);
    background: linear-gradient(180deg, rgba(8, 11, 13, 0.82), rgba(8, 10, 12, 0.94));
    transition: var(--theme-transition);
}

.integrity-hash-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.integrity-hash-meta { display: grid; gap: 4px; }

.integrity-hash-meta small {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.34;
}

.integrity-hash code {
    font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.69rem;
    color: #cfeaf1;
    word-break: break-all;
}

.integrity-copy {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(216, 238, 147, 0.12);
    background: rgba(216, 238, 147, 0.08);
    color: var(--text);
    font-size: 0.73rem;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.integrity-copy:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 238, 147, 0.24);
    background: rgba(216, 238, 147, 0.14);
}

.hero-points {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-points-panel { padding: 0; }

.hero-points li {
    position: relative;
    min-height: 62px;
    padding: 14px 16px 14px 42px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-strong);
    font-size: 0.93rem;
    line-height: 1.45;
    transition: border-color 220ms ease, background 220ms ease;
}

.hero-points li:hover {
    border-color: rgba(216, 238, 147, 0.12);
    background: rgba(216, 238, 147, 0.04);
}

.hero-points-panel li {
    min-height: 50px;
    padding: 10px 12px 10px 36px;
    border-radius: 14px;
    font-size: 0.84rem;
    line-height: 1.34;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(216, 238, 147, 0.45);
}

.hero-points-panel li::before { left: 16px; top: 18px; }

.editor-window {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(216, 238, 147, 0.08), transparent 30%),
        radial-gradient(circle at top left, rgba(83, 224, 255, 0.07), transparent 26%),
        linear-gradient(180deg, rgba(20, 24, 26, 0.98), rgba(11, 13, 15, 1));
}

.editor-tabs {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(28, 34, 33, 0.78), rgba(18, 21, 20, 0.94));
}

.editor-tab {
    display: inline-flex;
    align-items: center;
    border: 0;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px 12px 0 0;
    color: #989b92;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.editor-tab:hover { color: #f2efe8; background: rgba(216, 238, 147, 0.1); }
.editor-tab:focus-visible { outline: 2px solid rgba(216, 238, 147, 0.42); outline-offset: -2px; }
.editor-tab.is-active { color: #f5f2ea; background: rgba(216, 238, 147, 0.14); }

.editor-body {
    position: relative;
    min-height: 264px;
    padding: 18px 18px 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    background: linear-gradient(180deg, rgba(11, 13, 15, 0.72), rgba(9, 10, 11, 0.96));
}

.editor-body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 0;
    border-radius: 0 0 26px 26px;
}

.editor-line {
    color: #ece8df;
    font-size: 0.89rem;
    line-height: 1.56;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    animation: editor-reveal 480ms var(--ease-out) forwards;
}

.editor-gap { height: 12px; }
.editor-line-indent { padding-left: 18px; }
.editor-line-comment { color: #8f9488; }

.editor-line-live::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 1.05em;
    margin-left: 8px;
    vertical-align: -0.14em;
    background: #91ebff;
    animation: blink-caret 1s steps(1) infinite;
}

.editor-body span { color: #d4d4d4; }
.token-comment { color: #6a9955; }
.token-keyword { color: #d8ee93; }
.token-function { color: #f5f2ea; }
.token-string { color: #91ebff; }
.token-operator { color: #b7bcaf; }
.token-number { color: #cfe88f; }
.token-plain { color: #ddd8ce; }

.games-section { padding: 10px 0 28px; }

.games-shell { display: grid; gap: 18px; }

.games-heading,
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(18, 21, 25, 0.94), rgba(12, 14, 17, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
    transition: var(--theme-transition);
}

.games-heading { padding: 24px; }

.games-heading::before,
.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 28%);
}

.games-heading h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 3.8vw, 3.45rem);
    line-height: 0.98;
}

.games-heading p {
    max-width: 52ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.58;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.game-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: transform 220ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 220ms ease;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 238, 147, 0.18);
    background: linear-gradient(180deg, rgba(22, 26, 31, 0.97), rgba(12, 15, 18, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(216, 238, 147, 0.06);
}

.game-card-top {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.game-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(216, 238, 147, 0.14);
    background: rgba(216, 238, 147, 0.08);
    transition: border-color 180ms ease, background 180ms ease;
}

.game-card:hover .game-card-icon {
    border-color: rgba(216, 238, 147, 0.24);
    background: rgba(216, 238, 147, 0.12);
}

.game-icon { width: 28px; height: 28px; object-fit: contain; opacity: 0.96; }

.game-card-copy h3 { font-size: 1.08rem; line-height: 1.1; }

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.game-card-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(113, 236, 158, 0.18);
    background: rgba(113, 236, 158, 0.08);
    color: #86f0af;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.game-card-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 12px rgba(134, 240, 175, 0.62);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.game-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.56;
}

.game-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.game-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
    font-size: 0.8rem;
    line-height: 1;
    transition: border-color 180ms ease, background 180ms ease;
}

.game-card:hover .game-card-tags span {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
}

.trust-strip { padding: 6px 0 30px; }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.trust-card {
    overflow: hidden;
    border-radius: 28px;
    padding: 30px;
    transition: transform 220ms var(--ease-out), border-color 180ms ease, background 300ms ease;
}

.trust-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 238, 147, 0.56), transparent);
}

.trust-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(216, 238, 147, 0.12);
    border: 1px solid rgba(216, 238, 147, 0.16);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
}

.trust-card h3 { font-size: 1.35rem; }
.trust-card p { margin-top: 12px; color: var(--muted); line-height: 1.72; }

.faq-section { padding: 8px 0 64px; }

.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading-left { text-align: left; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 18px; }

.section-heading h2 { font-size: clamp(2.8rem, 5vw, 4.7rem); }

.section-copy {
    max-width: 62ch;
    margin: 18px auto 0;
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.72;
}

.section-heading-left .section-copy { margin-left: 0; }

.deploy-card {
    overflow: hidden;
    border-radius: 30px;
    padding: 36px;
}

.deploy-card::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(216, 238, 147, 0.1), transparent 68%);
    pointer-events: none;
}

.deploy-actions { justify-content: center; }

.copy-button.is-copied {
    color: var(--accent);
    background: rgba(216, 238, 147, 0.12);
    border-color: rgba(216, 238, 147, 0.24);
}

.download-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.download-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.download-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 8, 0.74);
    backdrop-filter: blur(14px);
}

.download-modal-dialog {
    position: relative;
    width: min(880px, calc(100% - 16px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(216, 238, 147, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(18, 21, 25, 0.98), rgba(10, 12, 14, 0.99));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms var(--ease-out);
}

.download-modal.is-open .download-modal-dialog {
    transform: translateY(0) scale(1);
}

.download-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 238, 147, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.download-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(216, 238, 147, 0.18);
    background: rgba(216, 238, 147, 0.08);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.download-modal h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.96;
}

.download-modal-lead {
    max-width: 58ch;
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.64;
}

.download-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.download-modal-panel {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    background: linear-gradient(180deg, rgba(17, 20, 24, 0.96), rgba(11, 13, 15, 0.98));
    transition: var(--theme-transition);
}

.download-modal-panel h3 { font-size: 1.08rem; margin-bottom: 12px; }

.download-modal-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    display: grid;
    gap: 10px;
    line-height: 1.6;
    font-size: 0.93rem;
}

.download-modal-list strong,
.download-modal-list a { color: var(--text); }
.download-modal-list a:hover { color: var(--accent); }

.footer { padding: 0 0 72px; }

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    border-radius: 30px;
    padding: 34px 36px;
}

.footer-brand { max-width: 420px; }
.footer-brand h3 { font-size: 2rem; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); }

.footer-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    transition: transform 200ms var(--ease-out), border-color 180ms ease, background 180ms ease;
}

.footer-icon:hover { border-color: rgba(216, 238, 147, 0.18); background: rgba(216, 238, 147, 0.06); }

.footer-nav { display: grid; gap: 14px; min-width: 200px; }
.footer-nav h4 { font-size: 1.34rem; margin-bottom: 6px; }

.controls { display: flex; align-items: center; gap: 10px; }

.lang-selector {
    appearance: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lang-selector option { background: var(--bg-elev); color: var(--text); }

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.nav-cta:focus-visible,
.button:focus-visible,
.footer-icon:focus-visible,
.nav-links a:focus-visible,
.footer-nav a:focus-visible,
.back-to-top:focus-visible,
.editor-tab:focus-visible,
.theme-toggle:focus-visible,
.lang-selector:focus-visible,
.integrity-copy:focus-visible,
.download-modal-close:focus-visible {
    outline: 2px solid rgba(216, 238, 147, 0.6);
    outline-offset: 3px;
}

@keyframes editor-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink-caret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

body.light-theme {
    --bg: #f0f2f5;
    --bg-elev: #ffffff;
    --bg-soft: #e8edf3;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.14);
    --text: #111318;
    --muted: #5a6373;
    --muted-strong: #2d3340;
    --accent: #6a9e00;
    --accent-strong: #507800;
    --accent-soft: rgba(106, 158, 0, 0.1);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.07);

    background:
        radial-gradient(circle at top center, rgba(106, 158, 0, 0.06), transparent 36%),
        radial-gradient(circle at 80% 20%, rgba(100, 180, 255, 0.06), transparent 30%),
        linear-gradient(180deg, #eef1f6 0%, #f0f2f5 50%, #eaecf0 100%);
}

body.light-theme::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 30%),
        radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.03) 100%);
}

body.light-theme .topbar {
    background: linear-gradient(180deg, rgba(240, 242, 245, 0.92), rgba(240, 242, 245, 0));
}

body.light-theme .nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 28px rgba(0, 0, 0, 0.07);
}

body.light-theme .hero-copy,
body.light-theme .hero-highlights,
body.light-theme .trust-card,
body.light-theme .deploy-card,
body.light-theme .footer-grid {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 254, 0.99));
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 48px rgba(0, 0, 0, 0.07);
}

body.light-theme .hero-copy::before,
body.light-theme .deploy-card::before,
body.light-theme .footer-grid::before {
    background: radial-gradient(circle at top right, rgba(106, 158, 0, 0.05), transparent 28%);
}

body.light-theme .hero-copy::after {
    background: radial-gradient(circle, rgba(106, 158, 0, 0.08), transparent 70%);
}

body.light-theme .hero-panel {
    background: linear-gradient(180deg, rgba(22, 26, 30, 0.97), rgba(14, 16, 19, 0.99));
    border-color: rgba(106, 158, 0, 0.2);
}

body.light-theme .games-heading,
body.light-theme .game-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 254, 0.99));
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow);
}

body.light-theme .game-card:hover {
    border-color: rgba(106, 158, 0, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 255, 248, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(106, 158, 0, 0.08);
}

body.light-theme .games-heading::before,
body.light-theme .game-card::before {
    background: radial-gradient(circle at top right, rgba(106, 158, 0, 0.05), transparent 28%);
}

body.light-theme .game-card-tags span {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .game-card:hover .game-card-tags span {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(106, 158, 0, 0.12);
}

body.light-theme .game-card-icon {
    background: rgba(106, 158, 0, 0.08);
    border-color: rgba(106, 158, 0, 0.15);
}

body.light-theme .game-card:hover .game-card-icon {
    background: rgba(106, 158, 0, 0.12);
    border-color: rgba(106, 158, 0, 0.24);
}

body.light-theme .game-icon {
    filter: invert(1);
    opacity: 0.82;
}

body.light-theme .integrity-panel {
    background:
        radial-gradient(circle at top right, rgba(106, 158, 0, 0.06), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.99));
    border-color: rgba(106, 158, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
}

body.light-theme .integrity-panel::before {
    background:
        linear-gradient(120deg, rgba(106, 158, 0, 0.04), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 32%);
}

body.light-theme .integrity-heading { border-bottom-color: rgba(0, 0, 0, 0.07); }

body.light-theme .integrity-item {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.025), rgba(0, 0, 0, 0.015));
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.light-theme .integrity-hash {
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.9), rgba(240, 244, 250, 0.95));
    border-color: rgba(0, 120, 180, 0.1);
}

body.light-theme .integrity-hash code {
    color: #1a6680;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .integrity-copy {
    background: rgba(106, 158, 0, 0.08);
    border-color: rgba(106, 158, 0, 0.18);
}

body.light-theme .integrity-copy:hover {
    background: rgba(106, 158, 0, 0.14);
    border-color: rgba(106, 158, 0, 0.28);
}

body.light-theme .integrity-status {
    background: rgba(106, 158, 0, 0.1);
    border-color: rgba(106, 158, 0, 0.18);
}

body.light-theme .hero-points li {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.07);
}

body.light-theme .hero-points li:hover {
    background: rgba(106, 158, 0, 0.05);
    border-color: rgba(106, 158, 0, 0.14);
}

body.light-theme .eyebrow {
    background: rgba(106, 158, 0, 0.08);
    border-color: rgba(106, 158, 0, 0.18);
}

body.light-theme .trust-card::before {
    background: linear-gradient(90deg, transparent, rgba(106, 158, 0, 0.4), transparent);
}

body.light-theme .trust-card span {
    background: rgba(106, 158, 0, 0.1);
    border-color: rgba(106, 158, 0, 0.18);
}

body.light-theme .lang-selector,
body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

body.light-theme .lang-selector:hover,
body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.16);
}

body.light-theme .lang-selector option { background: #ffffff; color: #111318; }

body.light-theme .button-secondary {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .button-secondary:hover { background: rgba(0, 0, 0, 0.08); }

body.light-theme .nav-cta,
body.light-theme .button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 8px 20px rgba(106, 158, 0, 0.22);
}

body.light-theme .nav-cta:hover,
body.light-theme .button-primary:hover { box-shadow: 0 12px 28px rgba(106, 158, 0, 0.32); }

body.light-theme .footer-icon {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .footer-icon:hover {
    border-color: rgba(106, 158, 0, 0.22);
    background: rgba(106, 158, 0, 0.06);
}

body.light-theme .nav-links a.is-active::after { background: var(--accent); }

body.light-theme .download-modal-backdrop { background: rgba(200, 205, 215, 0.7); }

body.light-theme .download-modal-dialog {
    background:
        radial-gradient(circle at top right, rgba(106, 158, 0, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99));
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

body.light-theme .download-modal-panel {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.97), rgba(242, 245, 250, 0.99));
    border-color: rgba(0, 0, 0, 0.07);
}

body.light-theme .download-modal-close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .download-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(106, 158, 0, 0.2);
}

body.light-theme .copy-button.is-copied {
    color: var(--accent);
    background: rgba(106, 158, 0, 0.1);
    border-color: rgba(106, 158, 0, 0.22);
}

body.light-theme .back-to-top {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

body.light-theme .back-to-top:hover {
    border-color: rgba(106, 158, 0, 0.24);
    background: rgba(255, 255, 255, 0.98);
}

body.light-theme ::selection { color: #ffffff; background: rgba(106, 158, 0, 0.75); }

@media (max-width: 1160px) {
    .hero-grid,
    .trust-grid { grid-template-columns: 1fr; }

    .hero-side { gap: 14px; }

    .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .footer-grid { display: grid; }
}

@media (max-width: 780px) {
    .container { width: min(calc(100% - 24px), var(--container)); }

    .topbar { padding-top: 12px; }

    .nav {
        min-height: auto;
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links,
    .hero-actions,
    .deploy-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links { gap: 16px; }
    .nav-cta, .button { width: 100%; }

    .download-modal { padding: 16px; }

    .download-modal-dialog {
        width: min(100%, calc(100% - 8px));
        max-height: calc(100vh - 32px);
        padding: 22px 18px 18px;
    }

    .download-modal-close { position: static; margin-top: 16px; width: 100%; }
    .download-modal-grid { grid-template-columns: 1fr; }

    .hero { padding-top: 14px; }

    .hero-copy,
    .hero-panel,
    .hero-highlights,
    .trust-card,
    .deploy-card,
    .footer-grid { padding: 24px; }

    .hero-panel { padding: 0; }
    .hero-highlights { padding: 14px; }

    .hero-points,
    .games-header,
    .games-grid,
    .trust-grid { grid-template-columns: 1fr; }

    .integrity-heading,
    .integrity-hash-copy { align-items: flex-start; flex-direction: column; }

    .integrity-grid { grid-template-columns: 1fr; }

    .editor-tabs { padding: 0 14px; min-height: 52px; }
    .editor-tab { min-height: 38px; padding: 0 12px; font-size: 0.82rem; }
    .editor-body { min-height: 280px; padding: 20px 18px 22px; }
    .editor-line { font-size: 0.88rem; white-space: normal; }

    .games-heading, .game-card { padding: 18px; }

    .game-card-top { grid-template-columns: 50px 1fr; gap: 12px; }
    .game-card-icon { width: 50px; height: 50px; }

    .footer { padding-bottom: 48px; }
    .controls { flex-wrap: wrap; }

    .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal { opacity: 1; transform: none; transition: none; }

    .eyebrow::before,
    .integrity-status-dot,
    .game-card-status-dot { animation: none; }

    body, body * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
