@font-face {
    font-family: Barlow;
    src: url("/assets/display.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
:root {
    --ink: #101a30;
    --paper: #fff8df;
    --yellow: #ffe15b;
    --green: #36e5ac;
    --purple: #6041c5;
    --line: 2px solid var(--ink);
    font-family: Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 17px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-underline-offset: 4px;
}
button {
    font: inherit;
    cursor: pointer;
}
a,
button {
    touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #d02654;
    outline-offset: 5px;
}
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}
p {
    line-height: 1.6;
    max-width: 68ch;
}
h1,
h2,
h3 {
    font-family: Barlow, Arial, sans-serif;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}
h1 {
    font-size: clamp(3.4rem, 5.6vw, 5.9rem);
}
h2 {
    font-size: clamp(2.8rem, 4.6vw, 4.5rem);
}
h3 {
    font-size: 1.8rem;
}
em {
    font-style: normal;
    color: var(--purple);
}
header,
main,
footer {
    max-width: 1600px;
    margin: auto;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    gap: 28px;
    border-bottom: var(--line);
}
.brand {
    width: 215px;
    flex-shrink: 0;
}
nav {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
}
nav a {
    text-decoration: none;
    padding: 12px 0;
}
nav a:hover {
    text-decoration: underline;
}
.language {
    border: var(--line);
    padding: 9px 14px;
}
.skip {
    position: absolute;
    left: 10px;
    top: -100px;
    background: var(--paper);
    padding: 16px;
    z-index: 5;
}
.skip:focus {
    top: 10px;
}
section {
    scroll-margin-top: 24px;
}
.hero {
    padding: 70px 5% 85px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 44px;
    align-items: center;
    background: var(--yellow);
}
.intro {
    font-size: 1.12rem;
    margin: 25px 0 30px;
    max-width: 40ch;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: var(--green);
    color: var(--ink);
    border: var(--line);
    padding: 18px 23px;
    text-decoration: none;
    font-weight: 700;
    min-height: 56px;
    transition:
        transform 0.15s,
        background 0.15s;
}
.button:hover {
    background: #71f1c7;
    transform: translateY(-2px);
}
.button span {
    font-size: 1.4rem;
}
.platform {
    font-size: 0.84rem;
    font-weight: 700;
    max-width: 48ch;
    margin: 18px 0;
}
.text-link {
    font-size: 0.9rem;
}
.hero-art {
    position: relative;
    padding-bottom: 35px;
}
.hero-art > img {
    border: var(--line);
    width: 100%;
    transform: rotate(2deg);
}
.receipt {
    position: absolute;
    bottom: -20px;
    right: 8%;
    padding: 20px 25px;
    background: var(--paper);
    border: var(--line);
    transform: rotate(-6deg);
    font-size: 0.85rem;
    line-height: 1.6;
}
.receipt strong {
    font-family: Barlow, sans-serif;
    font-size: 1.7rem;
}
.gameplay {
    padding: 75px 7%;
    background: var(--ink);
    color: var(--paper);
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 35px;
}
.section-heading p {
    max-width: 26ch;
    color: #d6dfed;
}
figure {
    margin: 0;
}
video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #080f1d;
}
figcaption {
    font-size: 0.75rem;
    color: #d6dfed;
    margin-top: 12px;
}
.mechanics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}
.mechanics h3 {
    color: var(--green);
}
.mechanics p {
    font-size: 0.95rem;
    color: #e2e8f1;
}
.full {
    padding: 75px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: var(--purple);
    color: white;
}
.availability {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yellow);
}
.modes {
    display: grid;
    gap: 25px;
}
.modes article + article {
    border-top: 1px solid #a894eb;
    padding-top: 25px;
}
.modes h3 {
    font-size: 2.5rem;
    color: var(--yellow);
}
.modes p {
    margin-bottom: 0;
}
.full-detail {
    grid-column: 1/-1;
    padding-top: 25px;
    border-top: 1px solid #a894eb;
    font-size: 0.9rem;
    max-width: none;
}
.demo {
    padding: 80px 7%;
    text-align: center;
}
.demo-copy {
    max-width: 740px;
    margin: auto;
}
.demo p {
    margin: 22px auto;
}
.download {
    display: block;
    margin-top: 23px;
    font-weight: 700;
}
.small {
    font-size: 0.83rem;
    color: #374154;
}
#game-container {
    max-width: min(100%, calc((100svh - 160px) * 1.2371));
    margin-inline: auto;
    margin-top: 40px;
    text-align: left;
    border: var(--line);
    background: var(--ink);
    color: white;
    scroll-margin-top: 16px;
}
#game-container[hidden] {
    display: none;
}
.game-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--green);
    color: var(--ink);
}
.game-toolbar button {
    background: none;
    border: 1px solid var(--ink);
    padding: 10px;
}
#game-mount iframe {
    display: block;
    border: 0;
    width: 100%;
    aspect-ratio: 960/776;
    background: var(--ink);
}
.fallback {
    display: inline-block;
    margin: 15px;
    font-size: 0.9rem;
}
#game-error {
    padding: 0 15px;
}
.community {
    padding: 65px 7%;
    background: var(--yellow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}
.community p {
    margin-top: 0;
}
.secondary {
    background: var(--ink);
    color: white;
}
.secondary:hover {
    background: #2b3956;
}
.faq {
    padding: 75px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}
details {
    border-bottom: 1px solid #a6a18f;
}
summary {
    padding: 20px 0;
    cursor: pointer;
    line-height: 1.4;
    font-weight: 700;
}
details p {
    margin-top: 0;
    font-size: 0.93rem;
}
footer {
    padding: 30px 7%;
    border-top: var(--line);
    font-size: 0.8rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
footer details {
    margin-top: 25px;
}
footer details p {
    max-width: 90ch;
}
footer details:not([open]) {
    border: 0;
}
@media (max-width: 950px) {
    header {
        padding: 16px 5%;
        flex-wrap: wrap;
        gap: 10px;
    }
    .brand {
        width: 180px;
    }
    nav {
        gap: 18px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 45px;
    }
    .hero-copy {
        max-width: 680px;
    }
    .hero-art {
        max-width: 750px;
        margin-top: 15px;
    }
    .hero-art > img {
        transform: none;
    }
    .receipt {
        right: 5%;
        bottom: -10px;
    }
    .full,
    .community,
    .faq {
        grid-template-columns: 1fr;
    }
    .mechanics {
        gap: 24px;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .section-heading p {
        max-width: none;
        margin: 0;
    }
}
@media (max-width: 600px) {
    :root {
        font-size: 16px;
    }
    header {
        gap: 14px;
    }
    .brand {
        width: 170px;
    }
    nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 0.8rem;
    }
    .language {
        padding: 8px;
    }
    h1 {
        font-size: 3.65rem;
    }
    h2 {
        font-size: 3rem;
    }
    .hero {
        padding: 36px 6% 55px;
        gap: 30px;
    }
    .hero-art {
        padding-bottom: 45px;
    }
    .receipt {
        padding: 12px 18px;
        bottom: 0;
        font-size: 0.75rem;
    }
    .receipt strong {
        font-size: 1.5rem;
    }
    .gameplay,
    .full,
    .demo,
    .community,
    .faq {
        padding: 45px 6%;
    }
    .mechanics {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .mechanics p {
        margin-bottom: 0;
    }
    .button {
        max-width: 100%;
        font-size: 0.95rem;
        gap: 12px;
    }
    .full-detail {
        margin: 0;
    }
    .game-toolbar {
        font-size: 0.8rem;
        padding: 10px;
    }
    .game-toolbar button {
        font-size: 0.8rem;
    }
    .footer-top {
        flex-direction: column;
        gap: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.metrics {
    max-width: 1600px;
    margin: auto;
    padding: 24px 5%;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
}
.metrics[hidden] {
    display: none;
}
.metrics h2 {
    font-size: 1.7rem;
}
.metrics p {
    font-size: 0.9rem;
}
.metrics > div {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.metrics .button {
    font-size: 0.85rem;
    padding: 12px 16px;
}
#metrics-settings {
    background: none;
    color: inherit;
    border: 1px solid currentColor;
    padding: 8px;
}
