:root { --ink: #1d1712; --cream: #fff4e0; --yolk: #f2a21b; --comb: #d8352f; --panel: #1d1712e6; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); font: 14px/1.45 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; }
[hidden] { display: none !important; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
body[data-mode="menu"] canvas, body[data-mode="loading"] canvas { visibility: hidden; }
button { font: inherit; color: inherit; background: #3a2d22; border: 1px solid #5a4632; border-radius: 4px; padding: 5px 10px; cursor: pointer; }
button:hover { background: #4d3b2b; }
button[aria-pressed="true"] { background: var(--yolk); border-color: var(--yolk); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yolk); outline-offset: 2px; }
a { color: var(--yolk); }
.muted { color: #c3ae92; }
#menu { display: none; max-width: 1100px; margin: 0 auto; padding: 48px 20px 64px; }
body[data-mode="menu"] #menu { display: block; }
h1 { font-size: 46px; line-height: 1; margin: 0 0 10px; color: var(--yolk); letter-spacing: -1px; }
h2 { font-size: 20px; margin: 0; }
.series { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: 34px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { display: grid; gap: 2px; text-align: left; padding: 54px 14px 12px; border-top: 0; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 44px; background: linear-gradient(var(--a), var(--b) 60%, var(--c) 61%); }
.card strong { font-size: 18px; } .card .kills { color: var(--yolk); }
.meadow { --a: #8fc4dc; --b: #dfeccb; --c: #5c8246; } .desert { --a: #e8b873; --b: #f7e3b8; --c: #b27645; } .paddy { --a: #b5cfd8; --b: #f0e6cf; --c: #6d8f55; } .blossom { --a: #c7c3e3; --b: #fbe1e2; --c: #c67f97; } .snow { --a: #9fb6cf; --b: #eef3f7; --c: #c3d1de; } .swamp { --a: #7f9a92; --b: #d3d7b0; --c: #4f6a4f; } .jungle { --a: #86c3b0; --b: #e6efc0; --c: #346f45; } .highland { --a: #9aa9c4; --b: #e7dfd2; --c: #6f7a68; }
footer { margin-top: 40px; }
#loading { display: none; position: fixed; inset: 0; margin: 0; place-items: center; }
body[data-mode="loading"] #loading { display: grid; }
#top, #teams, #feed, #zoom, #bar { display: none; position: fixed; }
body[data-mode="battle"] :is(#feed, #zoom, #bar) { display: block; }
body:is([data-mode="battle"], [data-mode="drop"], [data-mode="yard"]) #top { display: flex; }
#top { top: 10px; left: 10px; gap: 12px; align-items: center; text-shadow: 0 1px 2px #000; }
body:not([data-mode="battle"]) :is(#alive, #toggleTeams) { display: none; }
#teams { z-index: 1; top: 54px; left: 10px; bottom: 122px; width: 216px; overflow: auto; background: var(--panel); padding: 8px; border-radius: 6px; }
body[data-mode="battle"].teams-open #teams { display: block; }
#teams button { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#teams button:hover { background: #ffffff14; } #teams button[aria-pressed="true"] { background: var(--yolk); }
#teams .team { font-weight: 700; margin-top: 6px; } #teams .player { padding-left: 24px; } #teams .dead { opacity: 0.45; text-decoration: line-through; } #teams i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
#feed { top: 12px; right: 12px; text-align: right; pointer-events: none; } #feed div { background: #1d1712b8; padding: 2px 8px; margin-bottom: 3px; border-radius: 3px; }
#zoom { right: 12px; bottom: 128px; } #zoom button { display: block; width: 36px; height: 36px; margin-top: 6px; padding: 0; font-size: 18px; }
#zoom { text-align: right; } #zoom button { margin-left: auto; } #zoom #names { width: 54px; height: 40px; padding: 2px; font-size: 11px; line-height: 1.15; }
#bar { left: 0; right: 0; bottom: 0; background: var(--panel); padding: 8px 14px 10px; }
#timeline { position: relative; } #seek { width: 100%; margin: 0; accent-color: var(--yolk); position: relative; } #ticks { position: relative; height: 8px; margin: 0 8px; } #ticks i { position: absolute; width: 2px; height: 8px; }
#controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; padding-right: 150px; } #speeds { display: flex; gap: 3px; } #speeds button { padding: 5px 7px; } #clock { margin-left: 8px; color: #c3ae92; }
#skip { display: none; position: fixed; right: 14px; bottom: 12px; background: var(--yolk); border-color: var(--yolk); color: var(--ink); font-weight: 700; }
body:is([data-mode="battle"], [data-mode="drop"], [data-mode="yard"]) #skip { display: block; }
body[data-mode="drop"] { cursor: pointer; }
@media (max-width: 640px) { #speeds { display: none; } #controls { padding-right: 130px; } #zoom { bottom: 124px; } #feed { font-size: 11px; top: 52px; } }
.form { max-width: 560px; margin: 0 auto; padding: 48px 20px; display: grid; gap: 14px; } .form input { font: inherit; width: 100%; padding: 8px; background: #2a211a; color: inherit; border: 1px solid #5a4632; border-radius: 4px; } .form li { margin: 4px 0; }
@media (max-width: 640px) { #top { right: 10px; gap: 6px; white-space: nowrap; font-size: 12px; } #top button { padding: 5px 8px; } #top button { flex: none; } #alive { min-width: 0; overflow: hidden; text-overflow: ellipsis; } #toggleTeams { margin-left: auto; } }
#teams em { margin-left: auto; padding-left: 8px; font-style: normal; color: #c3ae92; } #teams .r3, #teams .r4, #teams .r5 { color: var(--yolk); font-weight: 700; } #teams button[aria-pressed="true"] em { color: inherit; } #teams button span { overflow: hidden; text-overflow: ellipsis; } #teams p { margin: 6px 6px 2px; font-size: 12px; }

/* Menu: tabs, filters, rankings, who hits whom, analyst */
#tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; } #tabs button { padding: 8px 14px; min-height: 40px; }
#filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; } #filters label, .teampick { display: grid; gap: 2px; font-size: 12px; }
select { font: 14px/1.4 inherit; font-family: inherit; color: inherit; background: #2a211a; border: 1px solid #5a4632; border-radius: 4px; padding: 7px 8px; min-height: 38px; max-width: 100%; }
h3 { font-size: 16px; margin: 26px 0 10px; } h4 { font-size: 14px; margin: 0; } .note { font-size: 12px; max-width: 76ch; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; } .board, .finding, .report { background: #2a211a; border: 1px solid #3f3125; border-radius: 6px; padding: 12px 14px; }
.top3 { list-style: none; margin: 8px 0 0; padding: 0; } .top3 li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 4px; padding: 4px 0; align-items: baseline; } .top3 b { color: var(--yolk); } .top3 span { min-width: 0; overflow-wrap: anywhere; } .top3 small { display: block; font-size: 12px; } .top3 strong, .vs strong { font-variant-numeric: tabular-nums; }
.vs { list-style: none; margin: 8px 0 0; padding: 0; } .vs li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 4px 0; } .vs small { grid-column: 1 / -1; font-size: 12px; }
.views { display: flex; flex-wrap: wrap; gap: 4px; margin: 22px 0 10px; } .win-text { color: #86b6ef; } .lose-text { color: #f0908f; }
.scroll { overflow-x: auto; border: 1px solid #3f3125; border-radius: 6px; } .pick { margin-bottom: 12px; }
.matrix { border-collapse: separate; border-spacing: 2px; font-size: 12px; font-variant-numeric: tabular-nums; } .matrix th { font-weight: 600; text-align: left; background: var(--ink); } .matrix .row, .matrix .corner { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 190px; } .matrix .corner { vertical-align: bottom; color: #c3ae92; padding: 6px; }
.matrix .col { height: 150px; vertical-align: bottom; padding: 0 0 6px; } .matrix .col span { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 142px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix td { min-width: 46px; height: 30px; padding: 0 6px; text-align: right; border-radius: 2px; background: #2a211a; } .matrix .self { background: none; } .matrix .sum { background: none; font-weight: 700; } .matrix .zero { color: #c3ae92; }
.matrix .heat { background: color-mix(in oklab, #f2a21b var(--k), #2a211a); } .matrix .win { background: color-mix(in oklab, #5598e7 var(--k), #383838); } .matrix .lose { background: color-mix(in oklab, #e66767 var(--k), #383838); } .matrix .deep { color: #1d1712; font-weight: 600; }
.matrix .link { border: 0; background: none; padding: 4px 6px; width: 100%; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .matrix .link:hover { text-decoration: underline; } .matrix .link[aria-pressed="true"] { background: var(--yolk); } .matrix .picked td { outline: 1px solid var(--yolk); } .matrix td:hover { outline: 2px solid var(--cream); }
#tip { position: fixed; z-index: 5; background: #1d1712f2; border: 1px solid #5a4632; border-radius: 4px; padding: 6px 10px; white-space: pre-line; pointer-events: none; font-size: 12px; } body:not([data-mode="menu"]) #tip { display: none; }
.teampick { margin-top: 22px; max-width: 420px; } .lead { font-size: 15px; max-width: 76ch; } .findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .finding p { margin: 6px 0 0; } .finding .muted { font-size: 12px; }
.fhead { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .fhead strong { font-size: 20px; } .weak { border-left: 3px solid #e66767; } .strong { border-left: 3px solid #5598e7; } .moments { display: grid; gap: 4px; margin-top: 10px; } .moments button { font-size: 12px; text-align: left; } .report { border-left: 3px solid var(--yolk); margin: 18px 0; } .report h3 { margin-top: 0; } .report ol { padding-left: 1.6em; } .report li { margin: 6px 0; max-width: 76ch; }
body[data-tab="table"][data-mode="menu"] #menu { max-width: 1400px; } .matrix td { white-space: nowrap; padding: 0 5px; } .matrix .sum { padding-right: 8px; }
footer p { margin: 4px 0; font-size: 13px; } footer a { color: inherit; }
.report.full { max-width: 1000px; line-height: 1.55; } .report.full > section { margin-top: 26px; } .report.full > section > h4, .report.full summary { font-size: 18px; border-bottom: 1px solid #3f3125; padding-bottom: 4px; margin: 0 0 10px; }
.report.full p, .report.full li { max-width: 76ch; margin: 4px 0; } .report.full > p:first-of-type { font-size: 17px; font-weight: 600; } .report.full h5 { font-size: 15px; margin: 16px 0 2px; } .report.full .scroll { margin: 8px 0 12px; } .report.full summary { cursor: pointer; margin-top: 26px; }
.priority { border-left: 3px solid #e0a73a; padding: 8px 12px; margin: 12px 0; max-width: 76ch; background: #33271d; }
table.nums { border-collapse: collapse; font-size: 13px; } table.nums th, table.nums td { text-align: left; padding: 4px 12px 4px 0; border-bottom: 1px solid #3f3125; vertical-align: top; } table.nums td:not(:first-child):not(:last-child) { font-variant-numeric: tabular-nums; } button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.report.full .moments { display: flex; flex-flow: row wrap; gap: 6px; margin: 6px 0; } .report.full .moments button { width: auto; } .report.full .scroll { border: 0; } .report.full ul, .report.full ol { padding-left: 22px; }
