:root {
  color-scheme: dark;
  font: 100%/1.2 "Segoe UI", sans-serif;
  background: #101921;
  color: #f1faff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(96%, 110rem); margin: 0 auto; padding: clamp(1rem, 3.5vw, 4rem); }
header { display: flex; align-items: center; justify-content: space-between; color: #bad0dc; font-size: clamp(1rem, 2vw, 2rem); }
button { padding: .45em .85em; border: 1px solid #53717d; border-radius: .35em; color: inherit; background: #1a2e3a; font: inherit; cursor: pointer; }
#status { margin: 10vh 0; font-size: clamp(1.5rem, 3.6vw, 4rem); }
#live { display: grid; grid-template-columns: 1fr minmax(13rem, 40%); margin: 1.5rem 0; background: #203b4b; border-radius: 1.25rem; overflow: hidden; }
.identity, .result, #details section { padding: clamp(1rem, 2.6vw, 3rem); }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 6.6vw, 7rem); margin: .1em 0; }
#bib, #handler, #placing { font-size: clamp(1.1rem, 2.7vw, 2.75rem); }
.result { background: #a2f5d3; color: #12252b; display: grid; align-content: center; gap: .35rem; }
.result[data-dsq="true"] { background: #ffb9ad; }
#value { font-size: clamp(2.1rem, 8vw, 8.5rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#value[data-dsq="true"] { font-size: clamp(1.4rem, 4.1vw, 4.3rem); }
#details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
#details section { background: #1c303b; border-radius: .8rem; }
#details h2 { font-size: clamp(1.1rem, 2.2vw, 2.5rem); color: #a2f5d3; margin-bottom: .5em; }
#details ol { margin: 0; padding: 0; list-style: none; }
#details li { margin: .4em 0; font-size: clamp(1rem, 1.65vw, 2rem); overflow-wrap: anywhere; }
#target { font-size: clamp(2rem, 5vw, 5rem); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { #live { grid-template-columns: 1fr; } }
