/* fish.magnetboard.com.au (4.2.0). The game's look: light first, no cream, no gradient backgrounds, its display and body faces, its
   guernseys. The board is a magnet board's green with chalk lines; the fish's colour is a lake blue. */
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-weight: 800; font-display: swap; src: url(/fonts/sofia-sans-extra-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Sofia Sans Condensed'; font-weight: 600; font-display: swap; src: url(/fonts/sofia-sans-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Sofia Sans Condensed'; font-weight: 700; font-display: swap; src: url(/fonts/sofia-sans-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format('woff2'); }
:root {
  --bg: #ffffff; --panel: #f3f5f8; --line: #dde3ea; --ink: #111418; --mute: #59636f; --fish: #1f5fae; --good: #12805c; --bad: #c2283a; --dot: #a7b2bd; --dot2: #e2e7ec;
  --grass: #3b8a4c; --grass2: #368046; --chalk: #ffffff; --kit-edge: #20262d; --r: 10px;
  --f-display: 'Sofia Sans Extra Condensed', 'Sofia Sans Condensed', 'Arial Narrow', Impact, sans-serif; --f-cond: 'Sofia Sans Condensed', 'Arial Narrow', Arial, sans-serif; --f-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root { --bg: #0e1216; --panel: #161c22; --line: #27313b; --ink: #eef2f5; --mute: #98a5b2; --fish: #79b8ec; --good: #46c08f; --bad: #ef6b7a; --dot: #4a5867; --dot2: #222b34; --grass: #2f6e3d; --grass2: #2b6638; --kit-edge: #c9d2db; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--f-body); font-variant-numeric: tabular-nums; }
a { color: var(--fish); }
h1, h2 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fish); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px clamp(14px, 3vw, 32px) 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: inline-block; font: 800 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.title { font: 800 clamp(40px, 6vw, 64px)/.9 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; }
.who { margin: 4px 0 0; color: var(--mute); }
.tr { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 700 15px/1 var(--f-cond); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--mute); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 14px; }
.lede { max-width: 60ch; padding: 0 clamp(14px, 3vw, 32px); font-size: 18px; }
.pre-js { padding: 24px 0; }

.main { display: grid; gap: 16px; padding: 16px clamp(14px, 3vw, 32px) 24px; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-areas: 'stage brain' 'feed side'; align-items: start; }
.stage { grid-area: stage; display: grid; gap: 10px; }
.brainp { grid-area: brain; }
.feedp { grid-area: feed; }
.side { grid-area: side; display: grid; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 8px; }
.ph h2 { font: 800 20px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.when { color: var(--mute); font: 600 14px/1.2 var(--f-cond); }
.pb { padding: 0 14px 14px; }
.pb p { margin: 0 0 8px; }
.big { font: 800 30px/1 var(--f-display); text-transform: uppercase; }
.sub { color: var(--mute); font-size: 14px; }

/* the scoreboard */
.sb { background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 10px 14px 12px; display: grid; gap: 4px; }
.sbh { display: flex; justify-content: space-between; gap: 10px; font: 600 14px/1.3 var(--f-cond); opacity: .85; }
.clk { display: inline-flex; align-items: center; gap: 6px; }
.clk .on { width: 8px; height: 8px; border-radius: 50%; background: #ff4b5c; }
@media (prefers-reduced-motion: no-preference) { .clk .on { animation: on 1.6s ease-in-out infinite; } }
@keyframes on { 50% { opacity: .3; } }
.sbr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 3.2ch; align-items: center; gap: 10px; font: 800 clamp(22px, 3vw, 30px)/1.1 var(--f-display); text-transform: uppercase; }
.sbr .sbn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbr .sbg { font: 600 17px/1 var(--f-cond); opacity: .8; }
.sbr .sbp { text-align: right; }
.sbr.us .sbn::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--fish); vertical-align: .2em; }
.idle { margin: 6px 0 2px; font: 800 24px/1.1 var(--f-display); text-transform: uppercase; }
.kit { display: inline-block; width: 26px; height: 29px; vertical-align: middle; flex: none; }
.kit svg { width: 100%; height: 100%; display: block; }
.kit.sm { width: 18px; height: 20px; margin-right: 8px; }

/* the board */
.gwrap { position: relative; }
.ground { display: block; width: 100%; aspect-ratio: 16 / 11; border-radius: var(--r); background: var(--panel); }
.has { margin: 6px 2px 0; color: var(--mute); font: 600 15px/1.3 var(--f-cond); min-height: 1.3em; }
.ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ctl:empty { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { min-height: 40px; min-width: 52px; padding: 0 12px; border: 0; background: var(--bg); font: 700 15px/1 var(--f-cond); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* the brain */
.brain { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 320px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap { margin: 0; padding: 12px 14px 4px; font: 700 19px/1.3 var(--f-cond); min-height: 3.2em; }
.reads { margin: 0; padding: 4px 14px 6px; display: grid; gap: 6px; }
.reads div { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: center; }
.reads dt { font: 700 14px/1.2 var(--f-cond); }
.reads dt span { font-weight: 600; color: var(--mute); }
.reads dd { margin: 0; display: grid; grid-template-columns: 1fr 4.5ch; gap: 6px; align-items: center; font: 600 13px/1 var(--f-cond); text-align: right; }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.bar::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--mute); }
.bar i { position: absolute; top: 0; bottom: 0; background: var(--fish); border-radius: 4px; }
.note { margin: 0; padding: 4px 14px 12px; color: var(--mute); font-size: 13px; }

/* the commentary */
.feed { list-style: none; margin: 0; padding: 0 0 6px; max-height: 520px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 7ch minmax(0, 1fr); gap: 10px; padding: 7px 14px; border-top: 1px solid var(--line); border-left: 4px solid var(--tc, transparent); }
.feed .ft { color: var(--mute); font: 600 14px/1.4 var(--f-cond); }
.feed .goal { background: var(--bg); }
.feed .goal .fx { font-weight: 600; }
.feed .quiet { border-left-color: transparent; color: var(--mute); }

/* the side */
.cd { display: flex; flex-direction: column; gap: 2px; }
.cd b { font: 800 34px/1 var(--f-display); }
.tstat { color: var(--mute); font-size: 14px; }
.tw { overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { padding: 6px 10px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.t th { font: 700 13px/1.2 var(--f-cond); color: var(--mute); }
.t .l { text-align: left; }
.t tr.us td { background: color-mix(in srgb, var(--fish) 12%, var(--panel)); font-weight: 600; }
.t tr.cut td { border-bottom: 2px solid var(--mute); }
.sea, .mom, .offl, .s23 { list-style: none; margin: 0; padding: 0 0 6px; }
.sea li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 4.5ch; gap: 8px; padding: 6px 14px; border-top: 1px solid var(--line); align-items: center; font-size: 14px; }
.sea li i { font-style: normal; color: var(--mute); text-align: right; }
.res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--line); font: 800 14px/1 var(--f-display); }
.res.rW { background: var(--good); color: #fff; } .res.rL { background: var(--bad); color: #fff; }
.mom { max-height: 340px; overflow-y: auto; }
.mom button { display: flex; gap: 10px; width: 100%; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); border-left: 4px solid var(--tc, transparent); background: transparent; text-align: left; font-size: 14px; cursor: pointer; }
.mom button:hover { background: var(--bg); }
.mom button span { color: var(--mute); font: 600 14px/1.4 var(--f-cond); min-width: 6.5ch; }
.offl li { padding: 8px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.s23 { display: grid; grid-template-columns: 1fr 1fr; }
.s23 li { display: grid; grid-template-columns: 3ch minmax(0, 1fr) 4ch; gap: 6px; padding: 5px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.s23 li b { font: 800 16px/1.2 var(--f-display); }
.s23 li i { font-style: normal; color: var(--mute); font: 600 13px/1.4 var(--f-cond); text-align: right; }
.s23 li.in span::after { content: ' in'; color: var(--fish); font: 700 12px var(--f-cond); }

.foot { padding: 8px clamp(14px, 3vw, 32px) 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.foot h2 { margin: 16px 0 6px; font: 800 20px/1 var(--f-display); text-transform: uppercase; color: var(--ink); }
.foot p { max-width: 80ch; }
.links { display: flex; gap: 16px; flex-wrap: wrap; }

/* a tablet, and a phone upright */
@media (max-width: 1100px) { .main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'stage stage' 'brain feed' 'side side'; } .side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
@media (max-width: 720px) {
  .main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'brain' 'feed' 'side'; gap: 12px; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .top { align-items: flex-start; } .tr { width: 100%; } .tr .btn { flex: 1; }
  .brain { aspect-ratio: 4 / 3; max-height: 260px; }
  .feed { max-height: 50vh; }
  .reads div { grid-template-columns: minmax(0, 1fr) 120px; }
}
/* a phone on its side: the board and the scoreboard on the left, the rest beside it */
@media (orientation: landscape) and (max-height: 520px) {
  .top { padding-top: 6px; padding-bottom: 6px; align-items: center; } .title { font-size: 28px; } .who { display: none; } .tr .btn { min-height: 34px; }
  .main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'stage brain' 'stage feed' 'side side'; padding-top: 10px; gap: 10px; }
  .sb { padding: 6px 10px 8px; gap: 2px; } .sbr { font-size: 20px; grid-template-columns: 22px minmax(0, 1fr) auto 3.2ch; } .sbr .sbg { font-size: 14px; } .sbr .kit { width: 20px; height: 22px; }
  .ground { aspect-ratio: auto; height: calc(100vh - 200px); min-height: 170px; } .has { font-size: 13px; margin-top: 2px; }
  .brain { aspect-ratio: auto; height: 150px; }
  .feed { max-height: 40vh; }
}
/* ?clip=1: 1080 by 1920 for recording, the match over the brain */
body.clip { width: 1080px; height: 1920px; overflow: hidden; }
body.clip .top { padding: 40px 48px 24px; } body.clip .title { font-size: 120px; } body.clip .who { font-size: 30px; } body.clip .tr, body.clip .side, body.clip .foot, body.clip .note, body.clip .ctl { display: none; }
body.clip .main { grid-template-columns: 1fr; grid-template-areas: 'stage' 'brain' 'feed'; padding: 24px 48px; gap: 24px; }
body.clip .sbr { font-size: 52px; grid-template-columns: 52px minmax(0, 1fr) auto 3.4ch; } body.clip .sbr .sbg { font-size: 30px; } body.clip .sbh { font-size: 26px; } body.clip .kit { width: 48px; height: 53px; }
body.clip .ground { aspect-ratio: auto; height: 640px; } body.clip .has { font-size: 28px; }
body.clip .brain { aspect-ratio: auto; height: 420px; max-height: none; } body.clip .cap { font-size: 36px; } body.clip .ph h2 { font-size: 34px; } body.clip .when { font-size: 26px; }
body.clip .reads { display: none; } body.clip .feed { max-height: none; } body.clip .feed li { font-size: 28px; grid-template-columns: 8ch minmax(0, 1fr); } body.clip .feed .ft { font-size: 26px; }
