:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --card: #fffefa;
  --ink: #19251f;
  --muted: #57625a;
  --rule: #ced1c5;
  --forest: #152a22;
  --accent: #be401e;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --display: "Barlow Condensed", "Bahnschrift Condensed", "Arial Narrow", "Arial", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-family: var(--sans);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
a { color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #006b57; outline-offset: 2px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; color: white; background: var(--forest); padding: .7rem; }
.skip:focus { top: .4rem; }
.shell { width: min(100% - 64px, 1272px); margin-inline: auto; }
.site-head { background: var(--forest); color: #fffff4; border-bottom: 4px solid #e67753; }
.nav { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.brand { display: inline-flex; align-items: center; font-weight: 760; letter-spacing: -.055em; font-size: 22px; text-decoration: none; white-space: nowrap; }
.brand-bot { color: #b5c8bc; margin-left: .24em; }
.mark { display: inline-flex; gap: 3px; padding-inline: 4px; margin-right: 13px; transform: skewX(-22deg); }
.mark i { display: block; width: 5px; height: 20px; background: #ff9c75; }
.nav nav { align-self: stretch; display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); font-size: 13px; font-weight: 620; }
.nav nav a { text-decoration: none; }
.nav button { color: #dce6dc; background: none; padding: 8px 0; border: 0; }
.nav button span { color: #ffb28e; margin-left: 4px; }
.nav :focus-visible, .timing :focus-visible { outline-color: #ffd3ac; }
.active-nav { display: flex; align-items: center; height: 100%; border-bottom: 2px solid #ffa984; }
.mast { padding: clamp(31px, 4vw, 56px) 0 clamp(26px, 3.4vw, 46px); display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.game, .filters label, .list-head, .fighter-label, .totals span, .phase dt { font: 700 11px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.game { margin: 0 0 8px; color: var(--muted); }
.game span { margin: 0 3px; color: var(--accent); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(3.1rem, 6.2vw, 5.8rem); font-weight: 800; line-height: .98; letter-spacing: -.065em; }
.totals { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 42px); padding-bottom: 3px; }
.totals div { display: grid; gap: 3px; padding-left: 15px; border-left: 1px solid var(--rule); }
.totals strong { font: 750 clamp(21px, 2.8vw, 40px)/1 var(--display); letter-spacing: -.04em; }
.totals span { color: var(--muted); font-size: 10px; }
.workspace { display: grid; grid-template-columns: minmax(235px, .83fr) minmax(0, 2.3fr); gap: clamp(18px, 2.3vw, 33px); align-items: start; }
.sidebar, .panel, .command { background: var(--card); border: 1px solid var(--rule); }
.sidebar { min-width: 0; }
.filters { padding: clamp(15px, 1.7vw, 23px); display: grid; }
.filters label { color: var(--muted); margin-bottom: 7px; }
.filters label:not(:first-child) { margin-top: 16px; }
select, .searchbox { width: 100%; min-width: 0; height: 43px; border: 1px solid #b9c0b3; border-radius: 3px; background: var(--card); color: var(--ink); }
select { padding: 0 8px; font-size: 16px; font-weight: 650; }
.searchbox { display: flex; align-items: center; gap: 10px; padding-inline: 12px 8px; }
.searchbox:focus-within { outline: 2px solid #006b57; }
.searchbox input { flex: 1; min-width: 0; width: 100%; height: 100%; background: none; border: 0; outline: none; font-size: 14px; }
.magnify { width: 13px; height: 13px; border: 1.6px solid var(--muted); border-radius: 50%; position: relative; flex-shrink: 0; }
.magnify::after { content: ""; width: 6px; height: 1.6px; background: var(--muted); position: absolute; bottom: -2px; right: -4px; transform: rotate(45deg); }
.list-head { display: flex; justify-content: space-between; background: #e9ebe1; color: #4b584c; padding: 9px clamp(15px, 1.7vw, 23px); border-block: 1px solid var(--rule); font-size: 10px; }
.move-list { max-height: 522px; min-height: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b1baaa transparent; }
.move-row { text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; padding: 10px clamp(12px, 1.5vw, 20px); gap: 12px; border-left: 3px solid transparent; border-bottom: 1px solid #e8e9e0; }
.move-row:hover { background: #f4f2e9; }
.move-row:focus-visible { outline-offset: -3px; }
.move-row[aria-current="true"] { border-left-color: var(--accent); background: #f9e4d8; color: #792c17; }
.move-name { font-size: 14px; font-weight: 640; overflow-wrap: anywhere; }
.move-name small { display: block; color: var(--muted); font: 11px/1.45 var(--mono); margin-top: 1px; }
.frames { font: 13px/1.5 var(--mono); max-width: 35%; overflow-wrap: anywhere; text-align: right; }
.detail { display: grid; gap: 15px; min-width: 0; }
.timing { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: #fafaf0; padding: clamp(22px, 3.2vw, 40px); }
.timing::before { content: ""; position: absolute; z-index: -1; inset: 0 0 30% 48%; opacity: .58; background-image: repeating-linear-gradient(120deg, transparent 0 20px, #294638 20px 21px); mask-image: linear-gradient(225deg,black,transparent 75%); }
.fighter-label { color: #ffb28e; }
.timing h2 { font-size: clamp(2.3rem, 4.1vw, 4.3rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 760; margin-top: 8px; overflow-wrap: anywhere; }
.aliases { font: 13px/1.45 var(--mono); color: #c4d0c3; margin-top: 9px; }
.timing-stats { margin-top: 28px; padding-top: 19px; border-top: 1px solid #4a5b4e; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.phase { --phase: #e99b73; min-width: 0; }
.startup { --phase: #ff9b73; }
.active { --phase: #e5ce78; }
.recovery { --phase: #8dc3a8; }
.phase dt { color: #d4ddd0; display: flex; align-items: center; gap: 6px; }
.phase dt::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; background: var(--phase); }
.phase dd { font: 700 clamp(20px, 2.8vw, 38px)/1.12 var(--display); letter-spacing: -.045em; margin-top: 5px; overflow-wrap: anywhere; }
.timing-bar { margin-top: 15px; display: flex; width: 100%; height: 7px; gap: 2px; overflow: hidden; }
.timing-bar i { flex: 0 1 0%; background: var(--phase); }
.panel { min-width: 0; padding: clamp(17px, 1.8vw, 26px); }
.panel h3, .command h3 { font-size: 21px; letter-spacing: -.045em; font-weight: 750; }
.panel > p, .command p { margin-top: 10px; font-size: 14px; }
.contact-grid, .property-grid { margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.contact-grid .field:not(:first-child) { padding-left: 12px; border-left: 1px solid var(--rule); }
.field { min-width: 0; }
.field dt { font-size: 12px; color: var(--muted); line-height: 1.35; }
.field dd { font-family: var(--mono); font-weight: 650; overflow-wrap: anywhere; margin-top: 4px; }
.contact-grid dd { font-size: 20px; }
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.property-grid dd { font-size: 13px; }
.meter { width: 100%; border-collapse: collapse; margin-top: 11px; font-size: 13px; }
.meter th, .meter td { text-align: right; padding: 8px 2px; }
.meter tr > :first-child { text-align: left; }
.meter thead th { color: var(--muted); font-weight: 500; font-size: 11px; }
.meter tbody th, .meter td { border-top: 1px solid #dee0d5; }
.meter tbody th { font-weight: 570; }
.meter td { font-family: var(--mono); }
.command { background: #e9ede1; padding: 17px clamp(17px, 1.8vw, 26px); }
.command h3 { font: 700 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .075em; color: #435646; }
.command-line { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.command code, .help-commands code { font: 600 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.copy, .retry { color: var(--forest); border: 1px solid #8c9a88; border-radius: 3px; background: transparent; padding: 7px 10px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.copy:hover, .retry:hover { background: #dce3d4; }
.copy-status:not(:empty) { display: block; font-size: 12px; margin-top: 8px; }
footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); margin-top: 34px; padding: 17px 0 30px; color: var(--muted); font-size: 12px; }
footer a { text-underline-offset: 3px; }
.footer-name { font-weight: 650; }
dialog { width: min(460px, calc(100% - 32px)); border: 1px solid var(--rule); border-top: 5px solid var(--accent); color: var(--ink); background: var(--card); padding: 23px; }
dialog::backdrop { background: rgb(11 25 17 / 58%); }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-head h2 { font-size: 30px; letter-spacing: -.055em; }
.help-head button { background: none; border: 1px solid var(--rule); color: var(--ink); font-size: 22px; width: 32px; height: 32px; line-height: 1; }
dialog p, .help-commands { font-size: 14px; line-height: 1.55; margin-top: 16px; }
.help-commands { padding: 13px; background: #edf0e5; }
.help-commands dt:not(:first-child) { margin-top: 12px; }
@media(max-width: 880px) {
  .shell { width: calc(100% - 36px); }
  .workspace { grid-template-columns: minmax(200px, .72fr) minmax(0, 1.5fr); gap: 16px; }
  .extra-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .contact-grid .field:nth-child(4) { padding-left: 0; border: 0; }
}
@media(max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .nav { height: 52px; }
  .brand { font-size: 19px; }
  .mark { margin-right: 8px; gap: 2px; }
  .mark i { height: 17px; width: 4px; }
  .nav .active-nav { display: none; }
  .nav nav { font-size: 12px; }
  .mast { padding: 27px 0 22px; }
  .game { font-size: 9px; margin-bottom: 7px; }
  h1 { font-size: clamp(38px, 9vw, 56px); }
  .totals { gap: 9px; }
  .totals div { padding-left: 7px; }
  .totals strong { font-size: 20px; }
  .totals span { font-size: 8px; letter-spacing: 0; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: minmax(98px,.85fr) minmax(0, 1.35fr); column-gap: 10px; }
  .filters label:not(:first-child) { margin-top: 0; grid-area: 1/2; }
  .filters select { grid-area: 2/1; }
  .filters .searchbox { grid-area: 2/2; }
  .move-list { max-height: 155px; }
  .detail, .extra-grid { gap: 11px; }
  .timing { padding: 21px; }
  .timing-stats { margin-top: 21px; }
  .contact-grid .field { border: 0 !important; padding-left: 0 !important; }
}
@media(max-width: 330px) {
  .totals { display: none; }
  .command-line { align-items: flex-start; flex-direction: column; }
}
