:root { color-scheme: dark; font-family: "Segoe UI", system-ui, sans-serif; color: #e6ebf1; background: #10151e; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #243449 0, #141b26 38%, #10151e 80%); }
.shell { width: min(1040px, calc(100% - 40px), calc((100vh - 240px) * 1.3)); min-width: min(600px, calc(100% - 40px)); margin: 30px auto 24px; }
.heading { display: flex; align-items: center; gap: 17px; margin-bottom: 24px; }
.heading img { border: 1px solid #42526b; border-radius: 9px; object-fit: cover; }
.eyebrow { color: #9facbc; font-size: 10px; letter-spacing: 1.8px; margin: 0 0 4px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.8px; font-weight: 700; }
.subtitle { margin: 3px 0 0; color: #a8b5c5; font-size: 13px; }
.edition { margin-left: auto; color: #9ad9cb; border: 1px solid #365b5b; border-radius: 5px; padding: 7px 10px; font-size: 10px; letter-spacing: 1.4px; font-weight: 600; white-space: nowrap; }
.game-card { border: 1px solid #354154; border-radius: 11px; overflow: hidden; box-shadow: 0 18px 50px #0005; background: #171f2d; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
#status { margin: 0; font-size: 12px; color: #b4c2d1; }
.actions { display: flex; gap: 5px; }
button { cursor: pointer; border: 1px solid #3b495d; color: #d9e4f0; background: #222e40; border-radius: 5px; padding: 7px 11px; font: 12px "Segoe UI", system-ui, sans-serif; }
button:hover:not(:disabled) { background: #33445c; border-color: #668299; }
button:disabled { opacity: .45; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid #9ad9cb; outline-offset: 3px; }
.stage { position: relative; width: 100%; aspect-ratio: 13 / 10; background: #000; }
#game, #game > ruffle-player { display: block; width: 100%; height: 100%; }
.stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; display: grid; place-items: center; }
.stage:fullscreen #game { width: min(100vw, calc(100vh * 13 / 10)); height: min(100vh, calc(100vw * 10 / 13)); }
.caption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; font-size: 11px; color: #97a8bb; }
.notice { position: absolute; inset: 0; background: #172333; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.notice[hidden] { display: none; }
.notice h2 { font-size: 21px; }
.notice p { max-width: 520px; line-height: 1.7; color: #bac8d7; }
.controls { margin-top: 22px; padding: 19px 22px; border: 1px solid #2d3a4d; border-radius: 9px; background: #19223180; }
.controls h2 { font-size: 13px; color: #cbd7e6; margin: 0 0 16px; }
.controls ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px 34px; }
.controls li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b8c7d9; }
kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 2px 6px; color: #e0e9f5; font: 13px "Segoe UI", sans-serif; background: #273449; border: 1px solid #43526a; border-bottom-width: 3px; border-radius: 4px; }
.controls p { color: #8fa2ba; font-size: 11px; margin: 15px 0 0; }
footer { font-size: 11px; color: #8393a8; text-align: center; padding: 22px 8px 0; line-height: 1.8; }
a { color: #9bd3cb; text-decoration-color: #526c74; text-underline-offset: 3px; }
.no-script { padding: 18px; background: #4a2828; }
@media (max-width: 640px) { .shell { width: calc(100% - 20px); margin-top: 20px; } .heading { gap: 12px; } .heading img { width: 48px; height: 48px; } .eyebrow { font-size: 8px; letter-spacing: 1px; } .edition { display: none; } .toolbar { align-items: flex-start; flex-direction: column; padding: 10px; } .actions { width: 100%; } .actions button { flex: 1; padding: 8px 4px; } .caption { padding: 8px 10px; } .caption span:last-child { display: none; } .controls { padding: 16px; } .controls ul { gap: 14px 20px; } }
