:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    color: #eff9ff;
    background: #081928;
}
* { box-sizing: border-box; }
body { margin: 0; }
.header, main { width: min(100% - 2.5rem, 67rem); margin-inline: auto; }
.header { padding-block: 1.6rem; }
.header a { color: #eafaff; text-decoration: none; font-size: 1.15rem; font-weight: 750; letter-spacing: -.025em; }
.intro {
    isolation: isolate; position: relative; overflow: hidden;
    display: grid; align-items: end; min-height: 22rem;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid #336481; border-radius: 1.25rem;
    background: linear-gradient(120deg, #0b263e, #164969);
}
.copy { position: relative; z-index: 1; max-width: 32rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.9rem, 8vw, 6.1rem); font-weight: 800; line-height: .95; letter-spacing: -.075em; }
p { color: #c2dce8; line-height: 1.55; }
.copy p { margin-top: 1.25rem; font-size: 1.12rem; }
.landscape { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.moon {
    position: absolute; width: clamp(6rem, 20vw, 13rem); aspect-ratio: 1;
    top: 12%; right: 14%; border-radius: 50%;
    background: #c5f4ff; box-shadow: 0 0 4rem #6acef0a0;
}
.peak { position: absolute; right: -5%; bottom: 14%; width: 65%; height: 66%; }
.peak-back { background: #317e97; clip-path: polygon(0 100%, 42% 15%, 62% 52%, 81% 10%, 100% 52%, 100% 100%); }
.peak-front { background: linear-gradient(145deg,#e0faff,#78c8e2 65%,#195c82); clip-path: polygon(10% 100%, 34% 53%, 47% 67%, 68% 22%, 92% 75%, 100% 58%, 100% 100%); }
.water { position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(165deg,#174e6b,#0c2438); }
.landscape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#0b263e 12%,#0b263ef0 36%,transparent 75%); }
.editions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-block: 1rem 3rem; }
article { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid #34536a; background: #102a3e; border-radius: 1rem; }
article h2 { font-size: 1.8rem; letter-spacing: -.04em; }
article p { margin-block: .45rem 1.2rem; }
article a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    padding: .6rem 1rem; border-radius: .55rem; background: #b5eef8;
    color: #102a3e; font-weight: 750; text-decoration: none;
}
article a:hover { background: #e1fbff; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 38rem) {
    .editions { grid-template-columns: 1fr; }
    .intro { min-height: 20rem; }
    .landscape::after { background: linear-gradient(0deg,#0b263e 17%,#0b263e88 65%,transparent); }
}

.game-page {
    block-size: 100vh;
    block-size: 100dvh;
    display: grid;
    grid-template: auto auto 1fr / 1fr;
    overflow: hidden;
}
.game-page h1 { margin: .75rem 1rem .25rem; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: -.035em; }
.game-page nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: 0 1rem .65rem; }
.game-page nav a { color: #c2eaff; }
.game-page nav button {
    margin-inline-start: auto; min-height: 2.75rem; padding: .4rem .8rem;
    border: 1px solid #527b97; border-radius: .5rem;
    color: inherit; background: #12354d; font: inherit; cursor: pointer;
}
.game-page #status { margin: 0; position: fixed; inset: auto 1rem 1rem; z-index: 1; }
.game-page #player { min-height: 0; min-width: 0; background: #061320; }
.game-page ruffle-player { display: block; width: 100%; height: 100%; }
.game-page #player:fullscreen { width: 100%; height: 100%; }

.registration { max-width: 36rem; padding-bottom: 3rem; }
.registration h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin-bottom: .75rem; }
.registration form { display: grid; gap: .9rem; margin-block: 1.3rem; }
.registration form[hidden] { display: none; }
.registration label { display: grid; gap: .35rem; }
.registration input, .registration select, .registration button { font: inherit; }
.registration input:not([type=checkbox],[type=radio]), .registration select, .registration button {
    padding: .6rem .75rem; border: 1px solid #557b95; border-radius: .5rem;
}
.registration .check { display: flex; align-items: flex-start; }
.registration fieldset { min-width: 0; padding: .6rem; border: 1px solid #557b95; }
.registration #choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.registration #choices label { display: flex; align-items: center; }
.registration img { width: 4rem; height: 4rem; object-fit: contain; background: #fff; border-radius: .4rem; }
.registration button { font-weight: 750; background: #b5eef8; color: #102a3e; }
.registration button:disabled { opacity: .55; }
.registration a { color: #b5eef8; }

.game-page #commands-toggle[hidden], .game-page #commands-panel[hidden] { display: none; }
.game-page #commands-panel {
    position: fixed; top: 6rem; right: 1rem; z-index: 2;
    width: min(26rem, calc(100% - 2rem)); padding: 1rem;
    background: #12354d; color: #eff9ff; border: 1px solid #527b97; border-radius: .5rem;
}
.game-page #commands-panel form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.game-page #commands-panel input { min-width: 8rem; flex: 1; }
.game-page #commands-panel button, .game-page #commands-panel input { min-height: 2rem; font: inherit; }
.game-page #commands-panel output { display: block; padding-top: .6rem; white-space: pre-wrap; }
