@font-face {
  font-family: Plex;
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-display: swap;
}

:root { background: #eec727; color: #211a22; font: 16px/1.55 Plex, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; border-block-start: .6rem solid #67214a; }
main { max-width: 75rem; margin-inline: auto; padding: clamp(1rem, 4vw, 3.2rem); }
a { color: #40172d; text-underline-offset: .25em; }
.back { display: inline-flex; align-items: center; min-height: 44px; }
header { margin: .7rem 0 1.4rem; }
h1, h2, p, dd, dl { margin: 0; }
h1 {
  color: #471936;
  font: 900 clamp(2.7rem, 9.5vw, 8.3rem)/.95 "Arial Black", system-ui, sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
header p { max-width: 44rem; margin-block-start: 1rem; font-size: 1.12rem; font-weight: 600; }
.yard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 1fr); gap: 1.45rem; align-items: start; }
.docket {
  position: relative;
  padding: 1.25rem;
  border: 2px solid #251b20;
  border-block-start-width: .55rem;
  background: #fff2dd;
  box-shadow: .28rem .28rem 0 #251b20;
}
.docket[data-inspection] { border-block-start-color: #92233b; }
.wave { color: #6e2b53; font-size: 1rem; text-transform: uppercase; font-weight: 700; }
h2 { font-size: 1.6rem; line-height: 1.12; }
.docket h2 { margin-block: .35rem .75rem; font-size: clamp(1.75rem, 3.8vw, 3rem); }
dl { border-block: 2px solid #251b20; }
dl div { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding: .45rem .15rem; }
dl div + div { border-block-start: 1px dashed #846076; }
dd { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
meter { width: clamp(2.8rem, 9vw, 7rem); vertical-align: middle; accent-color: #8f204d; }
#notice { margin-block-start: .8rem; min-height: 3rem; }
.defense { padding: 1rem; background: #4f2244; border: 2px solid #251b20; color: #fff9ef; }
#turn-controls:not([hidden]) { display: grid; gap: .5rem; margin-block: .8rem .65rem; }
button {
  border: 2px solid #251b20;
  background: #fff2dd;
  color: #211a22;
  min-height: 44px;
  padding: .5rem .75rem;
  text-align: start;
  font: inherit;
  cursor: pointer;
}
button:hover { background: #f8c8d6; }
[data-tower] { display: grid; gap: .15rem; }
[data-tower][disabled] { opacity: .65; cursor: default; }
button span { font-size: .9rem; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
a:focus-visible { outline: 3px solid #40172d; outline-offset: 3px; }
footer { margin-block-start: 1.5rem; }
@media (max-width: 45rem) { .yard { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .docket[data-inspection] { animation: stamp .22s ease-out; }
  @keyframes stamp { 50% { transform: translateY(3px); } }
}

@media (max-width: 520px) {
  a[href] { display: inline-flex; align-items: center; }
  :is(a[href], button, select) { min-width: 44px; min-height: 44px; }
}
