:root {
  color-scheme: light;
  font-family: "Avenir Next", system-ui, sans-serif;
  color: #193237;
  background: #fbf8ef;
  --mint: #d3efdf;
  --teal: #0b5d52;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0 auto; width: min(100%, 580px); padding: 20px clamp(16px, 4vw, 34px) 42px; }
header { margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 19px; font-weight: 800; text-decoration: none; }
.brand img { background: var(--mint); border-radius: 13px; object-fit: contain; }
h1, p { margin: 0; }
h1 { font-size: clamp(39px, 8vw, 65px); font-weight: 800; line-height: 1; letter-spacing: -.065em; overflow-wrap: anywhere; }
p { line-height: 1.5; }
#content { display: grid; gap: 17px; }
#message { padding: 12px 14px; margin-top: 13px; border-radius: 12px; background: #ffe1c8; }
button, input { font: inherit; }
button, .button { min-height: 48px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font-weight: 750; padding: 9px 16px; cursor: pointer; }
button:disabled { opacity: .62; cursor: default; }
.button { display: grid; place-items: center; text-decoration: none; }
.secondary { background: var(--mint); color: #154039; }
:focus-visible { outline: 3px solid #6f4eb9; outline-offset: 4px; }
.poster, video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 23px; background: #152827; }
video { object-fit: contain; }
.share { display: grid; gap: 8px; }
.share input { min-width: 0; border: 1px solid #b8cec0; border-radius: 12px; padding: 11px; background: #fffdf6; color: inherit; }
.players, .frames { display: grid; gap: 8px; }
.players { grid-template-columns: 1fr 1fr; }
.players > div { display: grid; gap: 4px; padding: 12px; background: var(--mint); border-radius: 15px; }
.players > div + div { background: #e5e0ff; }
.players strong { font-weight: 800; }
.count { font-size: 76px; font-weight: 800; text-align: center; background: var(--mint); border-radius: 26px; font-variant-numeric: tabular-nums; }
.frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frame { position: relative; min-width: 0; aspect-ratio: 4 / 3; min-height: 54px; display: grid; place-items: center; width: 100%; overflow: hidden; padding: 0; border: 1px solid #b8cec0; border-radius: 12px; color: #12322a; background: var(--mint); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame span { position: absolute; bottom: 5px; left: 5px; min-width: 25px; padding: 2px 4px; border-radius: 7px; background: #fffdf6; font-size: 14px; text-align: center; }
.score { font-size: 27px; font-weight: 800; }
