:root { color-scheme: dark; font-family: 'Trebuchet MS', system-ui, sans-serif; color: #eff7ee; background: #102521; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; }
main { width: min(calc(100% - 32px), 870px, max(480px, calc((100svh - 155px) * 4 / 3))); padding-block: 18px; }
header { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
h1 { color: #f3cd43; font-size: clamp(15px, 2.3vw, 23px); line-height: 1.25; margin: 0; letter-spacing: -.02em; }
h1 span { color: #f0f5ef; display: block; font-size: .85em; font-weight: normal; letter-spacing: 0; }
button { font: inherit; cursor: pointer; border: 0; }
button:focus-visible, canvas:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#fullscreen { padding: 8px 13px; color: #e7f2eb; background: #23413b; border-radius: 4px; }
#screen { background: #000; position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; }
#canvas { width: 100%; height: 100%; display: block; outline: none; }
#cover { position: absolute; inset: 0; display: grid; place-items: end center; padding: 5%; background: #3bcfc4 url('/krusty-krab.webp') center/cover; }
#play { color: #192d25; padding: 14px 40px; border-radius: 5px; font-weight: bold; font-size: 19px; background: #ffe350; box-shadow: 0 2px 0 #443a1e; }
#play:disabled { cursor: wait; }
p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #c6d5cc; }
kbd { font: inherit; font-weight: bold; color: #f1e9ad; }
kbd:not(:first-child) { margin-left: 14px; }
[hidden] { display: none !important; }
#screen:fullscreen { display: grid; place-items: center; background: black; aspect-ratio: auto; }
#screen:fullscreen canvas { width: min(100vw, calc(100vh * 4 / 3)); height: auto; max-height: 100vh; }
