:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #101618;
  color: #f7f7ed;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100%, 49rem); margin: auto; padding: clamp(.6rem, 3vw, 1.5rem); }
header,.score,.controls,#invite { display: flex; align-items: center; gap: .55rem; }
header { justify-content: space-between; margin-bottom: .65rem; }
header a { color: #b4c5c2; font-size: .85rem; }
h1 { margin: 0; line-height: 1; font-size: clamp(1.55rem, 6vw, 2.6rem); letter-spacing: -.07em; color: #d7ff83; }
.score {
  justify-content: center; gap: clamp(.8rem, 5vw, 2.5rem); margin-bottom: .4rem;
  font: 700 .8rem ui-monospace, monospace; text-transform: uppercase; color: #b4c5c2;
}
.score span:first-child,.score span:last-child { font-size: 1.45rem; min-width: 2ch; text-align: center; }
#left { color: #ff9b85; } #right { color: #7fe8ef; }
canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 1px solid #627e7a;
  border-radius: .65rem; background: #152225; touch-action: none; user-select: none;
}
:focus-visible { outline: 2px solid #d7ff83; outline-offset: 3px; }
#status,.help { margin: .6rem 0; font-size: .9rem; }
.help { color: #b4c5c2; }
.controls,#invite { flex-wrap: wrap; }
#invite { margin-top: .55rem; }
button,input,#share { min-height: 44px; border-radius: .45rem; font: inherit; font-size: .9rem; }
button,#share { border: 1px solid #627e7a; color: #f7f7ed; background: #213333; padding: .5rem .7rem; }
button { cursor: pointer; }
button:disabled { opacity: .65; }
#queue,#accept { background: #d7ff83; border-color: #d7ff83; color: #152225; font-weight: 750; }
input { padding: .5rem; min-width: 0; flex: 1 0 min(100%, 12rem); border: 1px solid #627e7a; }
#share { display: inline-flex; align-items: center; }
header { display: grid; grid-template-columns: 1fr auto 1fr; }
header a:last-child { justify-self: end; }
