:root {
  color-scheme: dark;
  background: #19171e;
  color: #f4e8dc;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: #ffd0e0; text-underline-offset: .17em; }
.player {
  width: min(100%, 65rem);
  margin-inline: auto;
  padding: .9rem clamp(.7rem, 3vw, 2.4rem) 1rem;
}
.top { margin: 0 auto .85rem; }
.top a { font-size: .9rem; }
h1 {
  margin: .2rem 0 0;
  font: 400 clamp(2.1rem, 5vw, 3.6rem)/.95 Georgia, serif;
  letter-spacing: -.05em;
}
.screen {
  position: relative;
  isolation: isolate;
  width: min(100%, max(27rem, calc(133.33svh - 14.2rem)));
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  background: #090a10;
  border: 1px solid #453642;
}
canvas, .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.still { object-fit: cover; opacity: .55; }
canvas { visibility: hidden; }
.screen[data-running] canvas { visibility: visible; }
.screen[data-running] .still { visibility: hidden; }
:where(canvas, button, a, summary):focus-visible {
  outline: 2px solid #ffb8d3;
  outline-offset: 3px;
}
.controls, .startup {
  width: min(100%, max(27rem, calc(133.33svh - 14.2rem)));
  margin: .75rem auto;
  color: #d9cacc;
}
.controls { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .93rem; }
.controls span { white-space: nowrap; }
kbd {
  padding: .12em .42em;
  border-radius: .17rem;
  background: #382d3b;
  color: #fff0f3;
  font: 600 .86rem/1 ui-monospace, Menlo, monospace;
}
.startup { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.startup p { margin: 0; }
button { padding: .6rem .8rem; border: 0; background: #f4a9c5; color: #26131d; font: 700 .9rem/1.15 system-ui; cursor: pointer; }
.licenses { width: min(100%, max(27rem, calc(133.33svh - 14.2rem))); margin: auto; font-size: .85rem; color: #bfaebd; }
.licenses ul { margin: .35rem 0 0; padding-left: 1.25rem; }
