/* ==========================================================================
   COFFIN CORNER
   Night stadium, chalk lines, one acid-yellow light source.
   ========================================================================== */

:root {
  --void:        #08080a;
  --pitch:       #0d0d11;
  --panel:       #14141a;
  --panel-2:     #1b1b23;
  --line:        #26262f;
  --line-hi:     #3a3a47;
  --bone:        #ece7db;
  --bone-dim:    #a49e91;
  --mute:        #6d6d7a;
  --paint:       #d9fc3f;   /* field marking */
  --paint-deep:  #98b418;
  --blood:       #ff4133;
  --live:        #47dd82;
  --amber:       #ffb020;

  --display: "Anton", "Haettenschweiler", "Impact", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: 1.25rem;
  --radius: 3px;
  --shadow: 0 18px 40px -20px rgba(0,0,0,.9);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100dvh;
  /* faint yard lines running down the whole page */
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 96px);
}

/* film grain over everything, cheap and static */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

a { color: var(--bone); text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--paint); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .012em;
  text-transform: uppercase;
  line-height: .95;
  margin: 0;
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.stack > * + * { margin-top: var(--gut); }

/* ---------- chrome ------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1rem; height: 58px; }

.wordmark {
  font-family: var(--display); font-size: 1.32rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.wordmark .pylon {
  width: 7px; height: 22px; border-radius: 1px; flex: none;
  background: linear-gradient(180deg, var(--blood), #7a1a12);
  box-shadow: 0 0 14px rgba(255,65,51,.55);
}

.nav { display: flex; gap: .15rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--mute); text-decoration: none; padding: .45rem .6rem; border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { color: var(--bone); background: var(--panel); }
.nav a.on { color: var(--void); background: var(--paint); }
.nav a.grave.on { background: var(--blood); color: var(--bone); }

.me { display: flex; align-items: center; gap: .5rem; text-decoration: none; padding-left: .5rem; }
.me img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-hi); object-fit: cover; }

/* ---------- panels ------------------------------------------------------- */

.panel {
  background: linear-gradient(180deg, var(--panel), var(--pitch));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}
.panel--flush { padding: 0; overflow: hidden; }
.panel--hot { border-color: color-mix(in srgb, var(--paint) 45%, var(--line)); }
.panel--bad { border-color: color-mix(in srgb, var(--blood) 45%, var(--line)); }

.eyebrow {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; margin: 0 0 .55rem;
}
.hr { height: 1px; background: var(--line); border: 0; margin: 1.1rem 0; }
.muted { color: var(--mute); }
.dim { color: var(--bone-dim); }
.tiny { font-size: .78rem; }

/* ---------- buttons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .62rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-hi);
  background: var(--panel-2); color: var(--bone); cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--line); border-color: var(--mute); }
.btn:active { transform: translateY(1px); }
.btn--go { background: var(--paint); color: #14180a; border-color: var(--paint); }
.btn--go:hover { background: #e6ff5a; border-color: #e6ff5a; }
.btn--bad { background: transparent; color: var(--blood); border-color: color-mix(in srgb, var(--blood) 50%, transparent); }
.btn--bad:hover { background: color-mix(in srgb, var(--blood) 14%, transparent); }
.btn--ghost { background: transparent; }
.btn--wide { width: 100%; }
.btn--sm { padding: .35rem .6rem; font-size: .68rem; }
.btn[disabled], .btn.is-off { opacity: .35; pointer-events: none; }

/* ---------- forms -------------------------------------------------------- */

label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-bottom: .35rem; }
input[type=text], input[type=password], input[type=number], input[type=url], textarea, select {
  width: 100%; background: var(--void); color: var(--bone);
  border: 1px solid var(--line-hi); border-radius: var(--radius);
  padding: .6rem .7rem; font-family: var(--body); font-size: .95rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--paint) 60%, transparent); outline-offset: 1px; border-color: var(--paint); }
.field + .field { margin-top: .9rem; }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-start; }
.row > * { flex: 1 1 180px; }
/* Side by side fields are siblings too, and must not inherit the stacked gap. */
.row > .field + .field { margin-top: 0; }

/* ---------- flash -------------------------------------------------------- */

.flash { border: 1px solid var(--line-hi); border-left-width: 3px; padding: .7rem .9rem; border-radius: var(--radius); font-size: .9rem; background: var(--panel); }
.flash--notice { border-left-color: var(--paint); }
.flash--alert  { border-left-color: var(--blood); }

/* ---------- countdown ---------------------------------------------------- */

.clock { text-align: center; padding: 1.6rem .6rem 1.4rem; position: relative; overflow: hidden; }
.clock__label { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.clock__digits {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.55rem, 7.6vw, 4rem); letter-spacing: -.035em;
  line-height: 1; margin: .5rem 0 .35rem; color: var(--paint);
  text-shadow: 0 0 34px color-mix(in srgb, var(--paint) 32%, transparent);
  font-variant-numeric: tabular-nums;
}
.clock__digits small { font-size: .3em; color: var(--mute); margin: 0 .5rem 0 .08rem; letter-spacing: .1em; }
.clock.is-urgent .clock__digits { color: var(--blood); text-shadow: 0 0 34px color-mix(in srgb, var(--blood) 40%, transparent); animation: throb 1.4s ease-in-out infinite; }
.clock.is-shut .clock__digits { color: var(--mute); text-shadow: none; }
@keyframes throb { 0%,100% { opacity: 1 } 50% { opacity: .58 } }

/* ---------- games -------------------------------------------------------- */

.slate { display: grid; gap: .55rem; }
.game {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  overflow: hidden;
}
.game__mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .4rem .55rem; background: var(--void); border-inline: 1px solid var(--line);
  min-width: 92px; text-align: center; gap: .12rem;
}
.game__at { font-family: var(--display); font-size: .8rem; color: var(--line-hi); }
.game__when { font-size: .66rem; color: var(--mute); font-family: var(--mono); white-space: nowrap; }
.game__live { font-size: .6rem; letter-spacing: .12em; color: var(--blood); font-weight: 800; text-transform: uppercase; }

.side {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem;
  background: none; border: 0; width: 100%; text-align: left; color: inherit;
  font-family: inherit; cursor: pointer; position: relative;
  transition: background .14s ease;
}
.side:hover:not(.side--dead) { background: color-mix(in srgb, var(--paint) 9%, transparent); }
.side--right { flex-direction: row-reverse; text-align: right; }
.side img { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.side__name { font-family: var(--display); font-size: 1rem; line-height: 1; }
.side__meta { font-size: .66rem; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.side__score { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; margin-left: auto; }
.side--right .side__score { margin-left: 0; margin-right: auto; }

.side--dead { cursor: not-allowed; opacity: .32; }
.side--dead img { filter: grayscale(1); }
.side--dead .side__name { text-decoration: line-through; text-decoration-color: var(--blood); text-decoration-thickness: 2px; }
.side--mine { background: color-mix(in srgb, var(--paint) 14%, transparent); box-shadow: inset 0 0 0 1px var(--paint); }
.side--won .side__score { color: var(--live); }
.side--lost { opacity: .55; }

.burnt-tag {
  position: absolute; top: .35rem; inset-inline-end: .5rem;
  font-size: .54rem; letter-spacing: .14em; font-weight: 800; color: var(--blood);
  border: 1px solid color-mix(in srgb, var(--blood) 45%, transparent);
  padding: .05rem .3rem; border-radius: 2px; text-transform: uppercase;
}
.side--right .burnt-tag { inset-inline-end: auto; inset-inline-start: .5rem; }

.monogram {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: 50%; font-family: var(--mono); font-weight: 700; font-size: .55rem;
  letter-spacing: -.02em; border: 1px solid var(--line-hi);
}

/* ---------- stamps ------------------------------------------------------- */

.stamp {
  display: inline-block; font-family: var(--display); font-size: .72rem; letter-spacing: .14em;
  padding: .18rem .5rem; border: 2px solid currentColor; border-radius: 2px;
  transform: rotate(-3deg); text-transform: uppercase;
}
.stamp--live { color: var(--live); }
.stamp--dead { color: var(--blood); }
.stamp--push { color: var(--amber); }
.stamp--wait { color: var(--mute); border-style: dashed; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .2rem .45rem; border-radius: 2px; border: 1px solid var(--line-hi); color: var(--bone-dim);
}
.chip--gold { color: var(--paint); border-color: color-mix(in srgb, var(--paint) 45%, transparent); }
.chip--good { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.chip--warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.chip--bad  { color: var(--blood); border-color: color-mix(in srgb, var(--blood) 45%, transparent); }

/* ---------- people ------------------------------------------------------- */

.avatar { border-radius: 50%; object-fit: cover; border: 1px solid var(--line-hi); background: var(--void); }
.avatar--xs { width: 26px; height: 26px; }
.avatar--sm { width: 38px; height: 38px; }
.avatar--md { width: 56px; height: 56px; }
.avatar--lg { width: 104px; height: 104px; }
.is-gone .avatar { filter: grayscale(1) brightness(.6); }

.roster { display: grid; gap: .5rem; }
.person {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  text-decoration: none;
}
.person:hover { border-color: var(--line-hi); background: var(--panel-2); }
.person__name { font-family: var(--display); font-size: 1.02rem; line-height: 1; }
.person__sub { font-size: .7rem; color: var(--mute); letter-spacing: .04em; }
.person__right { margin-left: auto; text-align: right; display: flex; align-items: center; gap: .5rem; }

.grid-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }

/* ---------- tombstones --------------------------------------------------- */

.plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.tomb {
  position: relative; text-align: center; padding: 1.4rem 1rem 1.1rem;
  background: linear-gradient(180deg, #191920, #0f0f13);
  border: 1px solid var(--line); border-radius: 90px 90px var(--radius) var(--radius);
  text-decoration: none; display: block;
}
.tomb:hover { border-color: var(--line-hi); }
.tomb__cross { color: var(--line-hi); font-size: 1.1rem; }
.tomb__name { font-family: var(--display); font-size: 1.15rem; margin-top: .35rem; }
.tomb__week { font-family: var(--mono); font-size: .68rem; color: var(--blood); letter-spacing: .1em; margin-top: .2rem; }
.tomb__epitaph { font-size: .74rem; color: var(--mute); font-style: italic; margin-top: .5rem; line-height: 1.4; }
.tomb .avatar { margin-top: .6rem; }

/* ---------- the wire ----------------------------------------------------- */

.wire { display: grid; gap: 0; }
.wire__row { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .84rem; }
.wire__row:last-child { border-bottom: 0; }
.wire__icon { width: 1.1rem; text-align: center; color: var(--mute); flex: none; }
.wire__row.is-grave .wire__icon { color: var(--blood); }
.wire__row.is-gold .wire__icon { color: var(--paint); }
.wire__time { margin-left: auto; color: var(--mute); font-family: var(--mono); font-size: .68rem; white-space: nowrap; flex: none; }

/* ---------- stats -------------------------------------------------------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .6rem; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .8rem; background: var(--panel); }
.tile__n { font-family: var(--mono); font-size: 1.65rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.tile__k { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-top: .35rem; }
.tile--gold .tile__n { color: var(--paint); }
.tile--bad .tile__n { color: var(--blood); }
.tile--good .tile__n { color: var(--live); }

.meter { height: 5px; background: var(--void); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--paint); }

/* ---------- ammo grid ---------------------------------------------------- */

.ammo { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: .3rem; }
.ammo figure { margin: 0; padding: .35rem; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: var(--panel); }
.ammo img { width: 26px; height: 26px; object-fit: contain; }
.ammo figcaption { font-family: var(--mono); font-size: .56rem; color: var(--mute); margin-top: .15rem; }
.ammo .spent { opacity: .26; }
.ammo .spent img { filter: grayscale(1); }

/* ---------- tables ------------------------------------------------------- */

table.grid { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.grid th {
  text-align: left; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; padding: .4rem .55rem; border-bottom: 1px solid var(--line-hi);
}
table.grid td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

/* ---------- simulator matrix --------------------------------------------- */

table.matrix { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: .74rem; }
table.matrix th {
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; padding: .25rem .35rem; text-align: left; white-space: nowrap;
}
.matrix__who { font-family: var(--display); font-size: .92rem; padding-right: .6rem; white-space: nowrap; position: sticky; left: 0; background: var(--panel); }
.matrix tr.is-gone .matrix__who { color: var(--mute); }
.cell {
  font-family: var(--mono); font-size: .66rem; text-align: center; padding: .3rem .25rem;
  border-radius: 2px; white-space: nowrap; min-width: 2.6rem;
}
.cell--won    { background: color-mix(in srgb, var(--live) 17%, transparent); color: var(--live); }
.cell--lost   { background: color-mix(in srgb, var(--blood) 20%, transparent); color: var(--blood); text-decoration: line-through; }
.cell--silent { background: color-mix(in srgb, var(--blood) 20%, transparent); color: var(--blood); }
.cell--none   { background: var(--void); }

/* ---------- hero --------------------------------------------------------- */

/* The overlay sits in flow and sets the height, so a long strapline on a narrow
   phone grows the hero instead of being clipped by it. */
.hero { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero__over {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(300px, 44vw, 500px);
  padding: clamp(1.1rem, 4vw, 2.4rem);
  background: linear-gradient(0deg, rgba(8,8,10,.97) 4%, rgba(8,8,10,.62) 42%, rgba(8,8,10,.25) 78%, rgba(8,8,10,.5));
}
.hero h1 { font-size: clamp(2.4rem, 11vw, 5.2rem); letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--paint); }
.hero p { max-width: 46ch; color: var(--bone-dim); margin: .7rem 0 0; }

.band { position: relative; height: 68px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.band img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.band span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.1rem; letter-spacing: .3em; color: var(--bone);
}

/* ---------- recap -------------------------------------------------------- */

.recap h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
.recap__dek { color: var(--paint); font-size: 1rem; letter-spacing: .02em; margin-top: .4rem; }
.recap__sec + .recap__sec { margin-top: 1.4rem; }
.recap__sec h3 { font-size: .78rem; letter-spacing: .24em; color: var(--mute); margin-bottom: .5rem; }
.recap__sec ul { margin: 0; padding-left: 1.1rem; }
.recap__sec li { margin-bottom: .4rem; }
.recap__sec strong { color: var(--bone); }
.recap__flavor { border-left: 2px solid var(--paint); padding-left: .9rem; font-style: italic; color: var(--bone-dim); }

/* ---------- dialog ------------------------------------------------------- */

dialog {
  border: 1px solid var(--line-hi); background: var(--panel); color: var(--bone);
  border-radius: var(--radius); padding: 1.4rem; max-width: min(420px, 92vw); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(4,4,6,.78); backdrop-filter: blur(3px); }
dialog h3 { font-size: 1.5rem; }

/* ---------- avatar picker ------------------------------------------------ */

.helmets { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: .4rem; }
.helmets input { position: absolute; opacity: 0; pointer-events: none; }
.helmets label { margin: 0; padding: 0; cursor: pointer; text-align: center; }
.helmets img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid transparent; }
.helmets input:checked + img { border-color: var(--paint); box-shadow: 0 0 18px color-mix(in srgb, var(--paint) 40%, transparent); }
.helmets span { display: block; font-size: .54rem; color: var(--mute); letter-spacing: .06em; margin-top: .15rem; text-transform: uppercase; }

/* ---------- misc --------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.4rem 0 2.4rem; color: var(--mute); font-size: .76rem; }
.split { display: grid; grid-template-columns: 1fr; gap: var(--gut); }
@media (min-width: 860px) { .split { grid-template-columns: 1.55fr 1fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.center { text-align: center; }
main { padding: var(--gut) 0 1rem; }
.pad-top { margin-top: var(--gut); }

/* ---------- phones ------------------------------------------------------- */

/* Grid and flex children default to min-width:auto, which is what lets a long
   team name push a row wider than the screen. */
.side, .side > span, .person > span, .between > * { min-width: 0; }
.side__name, .side__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
img, table, pre { max-width: 100%; }

.nav--mini, .tabbar { display: none; }

@media (max-width: 720px) {
  .nav { display: none; }
  .nav--mini { display: flex; margin-left: auto; }

  /* Thumb-reachable primary navigation, the way a phone expects it. */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 70;
    background: color-mix(in srgb, var(--void) 95%, transparent);
    backdrop-filter: blur(16px) saturate(120%);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tabbar a {
    display: block; text-align: center; text-decoration: none;
    padding: .72rem .15rem .78rem;
    font-family: var(--display); font-size: .74rem; letter-spacing: .07em;
    text-transform: uppercase; color: var(--mute);
    border-top: 2px solid transparent; background: none;
  }
  .tabbar a.on { color: var(--paint); border-top-color: var(--paint); background: color-mix(in srgb, var(--paint) 7%, transparent); }
  .tabbar a.grave.on { color: var(--blood); border-top-color: var(--blood); background: color-mix(in srgb, var(--blood) 8%, transparent); }

  body { padding-bottom: 4.6rem; }
  .footer { padding-bottom: 1rem; }
  main { padding-top: .9rem; }
  .wrap { width: min(1120px, 100% - 1.4rem); }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .side { padding: .55rem .55rem; gap: .45rem; }
  .side img, .side .monogram { width: 26px !important; height: 26px !important; }
  .side__name { font-size: .86rem; }
  /* Every NFL nickname is unique, so the city is the first thing to go. */
  .side__meta { display: none; }
  .side__score { font-size: 1.05rem; }
  .game__mid { min-width: 58px; padding: .35rem .3rem; }
  .game__when { font-size: .58rem; }
  .burnt-tag { font-size: .48rem; padding: .02rem .22rem; }

  .tiles { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
  .tile__n { font-size: 1.35rem; }
  .helmets { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .hero h1 { font-size: clamp(2.2rem, 13vw, 4rem); }
  .plots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; }
  .row > * { flex: 1 1 130px; }
  dialog { padding: 1.1rem; }
}

/* A table with actions in the last column is unusable on a phone, so on small
   screens every row becomes a labelled card instead of a horizontal scroll. */
@media (max-width: 720px) {
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards thead { display: none; }
  table.cards tr {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); padding: .55rem .7rem; margin-bottom: .5rem;
  }
  table.cards td { border: 0; padding: .3rem 0; display: flex; align-items: center; gap: .6rem; }
  table.cards td::before {
    content: attr(data-label); flex: none; min-width: 5.2rem;
    font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--mute); font-weight: 700;
  }
  table.cards td[data-label=""]::before { content: none; }
  .scroll-x:has(table.cards) { overflow-x: visible; }
}
