/* Rift Record on the web: the app's tokens (RiftRecord.swift, RiftPalette
   riftBlue), its four faces, its metals. Sharp corners, one border, no halos. */

:root {
  --ground: #030812; --ground-hi: #091428; --ground-deep: #02050B; --ground-light: #0F2440; --circuit: #6EBEE6; --arcane: #0AC8B9;
  --gold: #C8AA6E; --gold-light: #F0E6D2; --gold-pale: #FBF1D8; --gold-mid: #D8B56E; --gold-deep: #9A7420; --gold-dark: #785A28;
  --victory: #F4C660; --lost: #E84057; --drawn: #9BA6B8; --you: #35D569;
  --ink: #F0E6D2; --ink2: #CFC8B8; --mute: #A09B8C; --dim: #5B5A56; --control: #B9B3A6; --tab-rest: #7D7A72; --hair: rgba(240,230,210,.09);
  --f-display: "Cinzel", Georgia, serif;
  --f-title: "DIN Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-num: "M PLUS Rounded 1c", "Nunito", system-ui, sans-serif;
  --f-read: "Nunito", system-ui, -apple-system, sans-serif;
  --gutter: 16px; --nav: 56px; --max: 1180px;
  --metal-gold: linear-gradient(180deg, #F0E6D2 0%, #C8AA6E 35%, #785A28 100%);
  --metal-won: linear-gradient(180deg, #E6D3A3 0%, #C8AA6E 6%, #C8AA6E 45%, #D8B56E 70%, #F4C660 100%);
  --metal-iron: linear-gradient(180deg, #474C55 0%, #3A3F47 30%, #33373E 100%);
  --metal-pewter: linear-gradient(180deg, #98A2AE 0%, #7C8794 30%, #6C7683 100%);
  --metal-bronze: linear-gradient(180deg, #E0A878 0%, #6E4526 60%, #2E1C10 100%);
  --metal-silver: linear-gradient(180deg, #FFFFFF 0%, #9AA3AE 45%, #3F454E 100%);
  --metal-gold3: linear-gradient(180deg, #FFF1BF 0%, #D8B56E 40%, #7A5A24 100%);
  --gold-type: linear-gradient(180deg, #F6EBD3 10%, #C8AA6E 65%, #8C6A33 100%);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='97'%3E%3Cpath d='M42 1L83 25L83 72L42 96L1 72L1 25Z M42 25L62 37 M42 25L42 1 M22 37L42 25 M62 37L62 60L83 72' fill='none' stroke='%236EBEE6' stroke-opacity='.2' stroke-width='.8'/%3E%3Cg fill='%230AC8B9' fill-opacity='.3'%3E%3Ccircle cx='62' cy='37' r='1.6'/%3E%3Ccircle cx='22' cy='37' r='1.6'/%3E%3Ccircle cx='62' cy='60' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --hex-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='32.33'%3E%3Cpath d='M14 .5L27.5 8.3L27.5 24L14 31.8L.5 24L.5 8.3Z' fill='none' stroke='%23C8AA6E' stroke-opacity='.08' stroke-width='.75'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink); font: 600 15px/1.4 var(--f-read); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 55% at 50% -6%, #0F2440 0%, rgba(9,20,40,.6) 50%, rgba(9,20,40,0) 100%), linear-gradient(180deg, #091428 0%, #030812 55%, #02050b 100%); }
html.overlaid { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.num { font-family: var(--f-num); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.won { color: var(--victory); } .lost { color: var(--lost); } .drawn { color: var(--drawn); } .dim { color: var(--dim); }
.sep { margin: 0 .45em; color: var(--mute); }
.wrap, .col { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ devices */
.dia { display: inline-block; flex: none; width: 5px; height: 5px; transform: rotate(45deg); border: 1.2px solid rgba(200,170,110,.9); }
.dia.on { background: var(--gold-light); border-color: var(--gold-light); }
.dia.won { background: var(--victory); border: .5px solid rgba(0,0,0,.6); }
.dia.lost { background: rgba(209,54,57,.95); border: .5px solid rgba(0,0,0,.6); }
.dia.drawn { background: #8A8F98; border: .5px solid rgba(0,0,0,.6); }
.rule { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 12px; height: 8px; }
.rule > i:not(.dia) { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200,170,110,.5), rgba(200,170,110,.12)); }
.chev { width: 9px; height: 9px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.seal-g { width: 14px; height: 14px; flex: none; color: var(--gold); }
.sec-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sec-title h2, .sec-title h3 { font: 700 24px/1 var(--f-title); color: var(--ink); white-space: nowrap; padding-top: 3px; }
.sec-title h3 { font-size: 21px; }
.sec-acc { display: flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f-read); color: var(--mute); white-space: nowrap; }
.sec-acc .word { height: auto; }
.acc-word { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--f-read); color: var(--control); white-space: nowrap; }
.acc-word .seal-g { width: 12px; height: 12px; }

/* RiftControlLabel: a word, a chevron, the gold mark under the active one. */
.word { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; font: 700 15px/1 var(--f-read); color: var(--control); white-space: nowrap; transition: opacity .12s; }
.word:hover { color: var(--ink); }
.word:active { opacity: .6; }
.word.bright { color: var(--ink); }
.word.active { color: var(--gold-light); }
.word.active::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -4px; height: 2px; background: linear-gradient(90deg, #785A28, #F0E6D2, #785A28); }
.word.active::before { content: ""; position: absolute; left: 50%; bottom: -6.5px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--gold-light); z-index: 1; }
.word.danger { color: var(--lost); }
.word .w-lock { width: 13px; height: 13px; color: var(--gold-light); opacity: .85; }

/* HextechButton: dark fill, a gold gradient frame, blue inner light on press. */
.hextech { display: inline-flex; padding: 1px; background: linear-gradient(180deg, #C8AA6E, #785A28); color: var(--gold-light); height: 50px; min-width: 0; }
.hextech .hx-in { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 100%; padding: 0 22px;
  background: var(--ground-hi); box-shadow: inset 0 0 0 1px rgba(200,170,110,.18); font: 700 19px/1 var(--f-title); letter-spacing: .4px; white-space: nowrap; transition: background .12s; }
.hextech .hx-in > span { padding-top: 3px; }
.hextech svg { width: 16px; height: 16px; flex: none; }
.hextech:hover .hx-in { background: #0c1a33; }
.hextech:active .hx-in { background: radial-gradient(90% 120% at 50% 110%, rgba(10,200,185,.38), rgba(10,200,185,0) 70%), var(--ground-hi); box-shadow: inset 0 0 0 1px rgba(200,170,110,.5); }
.hextech.sm { height: 36px; } .hextech.sm .hx-in { font-size: 16px; padding: 0 16px; }
.hextech.danger { background: linear-gradient(180deg, #E84057, #7a1e2c); } .hextech.danger .hx-in { color: #F6C3CB; }
.hextech .hx-seal { width: 16px; height: 16px; color: var(--gold-light); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores .hextech { height: 44px; } .stores .hextech .hx-in { font-size: 17px; padding: 0 18px; }

/* ----------------------------------------------------------------- nav */
.topnav { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; gap: 22px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { padding-top: 3px; }
.tabs { display: flex; gap: 26px; align-items: center; }
.tabs a { position: relative; display: flex; align-items: center; height: 40px; font: 700 20px/1 var(--f-title); color: var(--tab-rest); }
.tabs a span { padding-top: 3px; }
.tabs a:hover { color: var(--ink2); }
.tabs a[aria-current] { color: var(--gold-light); }
.tabs a[aria-current]::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 2px; background: linear-gradient(90deg, #785A28, #F0E6D2, #785A28); }
.tabs a[aria-current]::before { content: ""; position: absolute; left: 50%; bottom: -2.5px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--gold-light); }
.who { margin-left: auto; display: flex; align-items: center; gap: 18px; font: 700 13px/1 var(--f-read); color: var(--mute); min-width: 0; }
.who #who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--arcane); }
.get-app { margin-left: auto; }

/* ---------------------------------------------------------------- hero */
main.app { min-height: 100vh; padding-bottom: 120px; }
.loading { padding: 160px 0; text-align: center; color: var(--mute); }
.hero { position: relative; padding-top: calc(var(--nav) + 46px); isolation: isolate; }
.hero-ground { position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -40px; overflow: hidden; pointer-events: none; }
.hg-wrap { position: relative; max-width: var(--max); height: 100%; margin: 0 auto; }
.hero-img { position: absolute; right: -16px; top: 0; width: min(82%, 660px); height: 100%; object-fit: cover; opacity: .92;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 var(--fade-r, 100%), transparent 100%), linear-gradient(180deg, #000 50%, transparent 96%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 var(--fade-r, 100%), transparent 100%), linear-gradient(180deg, #000 50%, transparent 96%); mask-composite: intersect; }
.hero-ground .hex { position: absolute; inset: 0; background: var(--hex); background-position: -16px -30px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%); }
.hero-ground::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,8,18,.55), rgba(3,8,18,0) 55%); }
.hero-in { min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-n { display: flex; align-items: baseline; gap: 12px; }
.hero-n .num { font-size: 60px; line-height: .95; color: var(--ink); text-shadow: 0 2px 18px rgba(2,5,11,.55); }
.hero-n .unit { font: 900 22px/1 var(--f-read); color: var(--ink); }
.hero-line { margin-top: 12px; font: 700 15px/1.3 var(--f-read); color: var(--ink2); text-shadow: 0 1px 8px rgba(2,5,11,.9); }
.hero-line b { color: var(--ink); font-weight: 900; }
.ctl-rule { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px; margin-top: 10px; }
.ctl-rule.thin { height: 18px; }
.ctl-l, .ctl-r { display: flex; align-items: center; gap: 26px; }
.ctl-rule .ctl-line { position: absolute; left: 0; right: -6px; bottom: -4px; }
.ctl-rule .word.active::after { bottom: -6px; } .ctl-rule .word.active::before { bottom: -8.5px; }

/* the period menu (RiftDropdown) */
.menu-anchor { position: relative; display: inline-flex; }
.menu { position: absolute; z-index: 30; top: calc(100% + 12px); left: -10px; min-width: 210px; padding: 8px 0; background: linear-gradient(180deg, #0c1a33, #050c18);
  border: 1px solid rgba(200,170,110,.45); box-shadow: 0 24px 50px -12px rgba(0,0,0,.8); }
.menu-t { display: block; padding: 6px 16px 8px; font: 700 12px/1 var(--f-read); color: var(--mute); }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; font: 700 15px/1 var(--f-read); color: var(--control); }
.menu button:hover { background: rgba(240,230,210,.05); color: var(--ink); }
.menu button.on { color: var(--gold-light); }

/* -------------------------------------------------------------- filter */
.filter { padding-top: 22px; padding-bottom: 6px; }
.search { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--hair); margin-bottom: 24px; color: var(--mute); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 600 16px/1 var(--f-read); }
.search input::placeholder { color: var(--dim); }
.search:focus-within { border-color: rgba(200,170,110,.45); }
.chips { display: grid; gap: 4px 16px; margin: 0 0 22px; }
.chips.legends { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.chips.words { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips.tabs, .chips.jump { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.chip { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; font: 700 16px/1.1 var(--f-read); color: var(--control); text-align: left; }
.chip:hover { color: var(--ink); }
.chip.on { color: var(--gold-light); }
.chips.words .chip, .chips.tabs .chip { padding: 0 2px; }
.chips.tabs .chip.on::after, .chip.month::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 4px; height: 2px; background: linear-gradient(90deg, #785A28, #F0E6D2, #785A28); }
.chip.month { font: 700 24px/1 var(--f-title); color: var(--ink); padding-top: 3px; }
.chip.month::after { opacity: .5; }
.chips.tabs .chip.on::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--gold-light); z-index: 1; }
.chips.legends .chip.on .face { box-shadow: 0 0 0 1.5px var(--gold); }
.chip .c-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filter-foot { margin: -6px 0 18px; }

/* faces, crests, pips */
.face { position: relative; display: inline-block; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #0d1a2e; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.none { display: inline-grid; place-items: center; } .face.none i { font: 900 11px/1 var(--f-read); font-style: normal; color: var(--mute); }
.face.sm { width: 30px; height: 30px; } .face.xs { width: 26px; height: 26px; }
.crest { position: relative; display: grid; place-items: center; width: 50px; height: 50px; flex: none; }
.crest .face { width: 36px; height: 36px; }
.crest svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crest.sealed .face { filter: saturate(.15); opacity: .5; }
.pips { display: inline-flex; gap: calc(var(--pip) * .2); vertical-align: middle; flex: none; }
.pip { position: relative; display: block; width: calc(var(--pip) * .8125); height: var(--pip); background: linear-gradient(180deg, #F0E6D2, #785A28);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }
.pip img { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; transform: scale(1.25) translateY(-4%);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); }

/* -------------------------------------------------------------- stream */
.month { margin-top: 30px; scroll-margin-top: 16px; }
.session { margin: 0 0 30px; }
.s-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 0 0 12px; }
.s-head:hover .s-name, .s-head:hover .s-score { color: #fff; }
.s-head.sealed { cursor: pointer; }
.s-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.s-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.s-name { font: 700 22px/1 var(--f-title); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 3px; }
.s-head.sealed .s-name { color: var(--mute); }
.etag { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.etag .ecrest { height: 26px; flex: none; }
.etag-t { font: 700 22px/1 var(--f-title); letter-spacing: .6px; text-transform: uppercase; background: var(--gold-type); -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 3px; }
.s-head.sealed .etag { filter: saturate(.4); opacity: .7; }
.standing { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 21px; padding: 3px 6px 0; font: 700 15px/1 var(--f-title); color: var(--gold-light);
  background: rgba(2,5,11,.6); box-shadow: inset 0 0 0 1px rgba(200,170,110,.8); white-space: nowrap; }
.standing.champ { color: var(--ground-deep); background: linear-gradient(180deg, #FBF1D8, #F4C660); box-shadow: none; }
.standing svg { width: 13px; height: 11px; margin-top: -3px; }
.s-sub { display: flex; align-items: center; gap: 4px; font: 700 13px/1.2 var(--f-read); color: var(--mute); white-space: nowrap; min-width: 0; }
.s-sub .pips { margin-left: 4px; }
.s-rec { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 72px; }
.s-score { display: flex; align-items: center; gap: 10px; font: 900 26px/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.s-score .chev { width: 11px; height: 11px; color: var(--gold); opacity: .55; stroke-width: 2; }
.s-score.dim { color: rgba(240,230,210,.4); }
.verdict { font: 700 11px/1 var(--f-display); letter-spacing: 1.3px; text-transform: uppercase; padding-right: 21px; }
.s-head.sealed .verdict { padding-right: 0; color: #8A8F98; }
.verdict.won { color: var(--victory); }
.counted { font: 700 11px/1 var(--f-read); color: var(--mute); padding-right: 21px; }

/* The session as ONE framed piece: tiles touching, a dark hairline between. */
.board { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1px; background: rgba(0,0,0,.6);
  border: 1px solid rgba(180,186,197,.24); border-radius: 3px; overflow: hidden; }
.board.champ { border-color: rgba(244,198,96,.85); }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.42; overflow: hidden; background: var(--ground); color: var(--ink); container-type: inline-size; text-align: center; }
.tile:focus-visible, .s-head:focus-visible, .lcard:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.art { position: absolute; inset: 0; overflow: hidden; background: #0b1424; }
.art img { position: absolute; max-width: none; transition: transform .25s ease; }
.art.none { display: grid; place-items: center; } .art.none i { font: 900 26px/1 var(--f-read); font-style: normal; color: var(--dim); }
.art.g-muted img { filter: saturate(.45) brightness(.85); }
.art.g-lost img { filter: saturate(.3) brightness(.62); }
.art.g-drawn img { filter: saturate(.6) brightness(.8); }
.tile:hover .art img { transform: scale(1.03); }
.scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 34%, rgba(0,0,0,.86) 100%); }
.plate { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 0 6px 9px; }
.plate .score { font: 900 clamp(21px, 20.5cqi, 38px)/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; }
.plate .gp { display: flex; gap: 4px; height: 10px; align-items: center; margin-top: 3px; }
.plate .gp .dia { width: 6px; height: 6px; }
.plate .nm { margin-top: 3px; max-width: 100%; font: 700 clamp(15px, 14.6cqi, 23px)/1.05 var(--f-title); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 2px; }
.plate .nm i { font: 900 clamp(10px, 9cqi, 13px)/1 var(--f-read); font-style: normal; color: rgba(240,230,210,.85); margin-right: 1px; }
.plate .rv { margin-top: 6px; max-width: 100%; font: 700 clamp(10.5px, 9.3cqi, 14px)/1.1 var(--f-read); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .bar { position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; }
.tile.won .bar { background: var(--victory); } .tile.lost .bar { background: rgba(209,54,57,.8); } .tile.drawn .bar { background: #8A8F98; }
.num-chip { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; display: grid; place-items: center; z-index: 1; }
.num-chip i { position: absolute; width: 17px; height: 17px; transform: rotate(45deg); background: linear-gradient(180deg, #F0E6D2, #785A28); box-shadow: 0 0 6px rgba(0,0,0,.6); }
.num-chip i::after { content: ""; position: absolute; inset: 1.25px; background: rgba(2,5,11,.88); }
.num-chip b { position: relative; font: 900 12px/1 var(--f-num); color: var(--gold-light); }
.num-chip.dim { opacity: .6; }
.stage { position: absolute; top: 8px; right: 8px; z-index: 1; height: 19px; padding: 3px 6px 0; font: 700 14px/1 var(--f-title); color: var(--gold-light);
  background: rgba(2,5,11,.82); box-shadow: inset 0 0 0 1px rgba(200,170,110,.75); white-space: nowrap; }
.tile.sealed .hexground, .lframe .hexground { position: absolute; inset: 0; background: var(--hex-gold), linear-gradient(180deg, #1A2130 0%, #10151F 45%, #05060C 100%); }
.tile.sealed .plate { bottom: auto; top: 0; height: 100%; justify-content: flex-end; padding-bottom: 14px; }
.tile.sealed .score { color: rgba(240,230,210,.35); text-shadow: none; }
.tile-seal { width: 16px; height: 16px; margin: 6px 0 2px; color: rgba(240,230,210,.55); }
.tile.sealed .rv { color: var(--mute); }
.tile.sealed:hover .tile-seal { color: var(--gold-light); }
.seal-block, .fact-band { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px; text-align: center;
  background: radial-gradient(closest-side, rgba(200,170,110,.14), rgba(200,170,110,0)), var(--hex-gold), linear-gradient(180deg, var(--ground-hi), var(--ground-deep)); }
.seal-block .clock, .fact-band .clock { font: 700 12px/1 var(--f-read); letter-spacing: .6px; color: var(--mute); }
.seal-block .fact { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seal-block .fact .dia { width: 5px; height: 5px; margin-bottom: 6px; background: rgba(200,170,110,.85); border-color: rgba(200,170,110,.85); }
.seal-block .fact b { font: 700 16px/1.05 var(--f-title); color: var(--gold-light); }
.seal-block.wide .fact b { font-size: 20px; }
.seal-block .fact small, .fact-band small { font: 700 12.5px/1.2 var(--f-read); color: var(--ink2); }
.seal-block.sealed-closer { color: var(--mute); gap: 8px; } .seal-block.sealed-closer .seal-g { width: 18px; height: 18px; color: rgba(240,230,210,.4); }
.fact-band { flex-direction: column; gap: 6px; padding: 14px 10px; }
.fb-row { display: flex; align-items: center; width: 100%; }
.fb-row .fact { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 8px; min-width: 0; }
.fb-row .fact b { display: inline-flex; align-items: center; gap: 7px; font: 700 16px/1.05 var(--f-title); color: var(--gold-light); }
.fb-row .fact .dia { width: 4px; height: 4px; background: rgba(200,170,110,.85); border-color: rgba(200,170,110,.85); }
.fb-sep { width: 1px; height: 26px; background: rgba(200,170,110,.25); flex: none; }
.empty-line { padding: 40px 0; color: var(--mute); font: 700 15px/1.5 var(--f-read); }
.empty { max-width: 520px; padding: 30px 0; display: flex; flex-direction: column; gap: 18px; color: var(--ink2); font: 600 16px/1.55 var(--f-read); }

/* ---------------------------------------------------- the lock (sealed) */
.lock { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px; background: linear-gradient(180deg, rgba(9,20,40,.9), rgba(2,5,11,.9)); box-shadow: inset 0 0 0 1px rgba(200,170,110,.32); }
.lock-seal { width: 76px; height: 76px; flex: none; }
.lock-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lock-title { font: 700 22px/1.05 var(--f-title); color: var(--gold-light); padding-top: 3px; }
.lock-line { font: 600 14px/1.45 var(--f-read); color: var(--ink2); margin-bottom: 8px; }
.lock.compact .lock-seal { width: 60px; height: 60px; }
.seal-e { display: block; }

/* ------------------------------------------------- session / match page */
.overlay { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: var(--ground); }
.overlay::before { content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 55% at 50% -6%, #0F2440 0%, rgba(9,20,40,.6) 50%, rgba(9,20,40,0) 100%), linear-gradient(180deg, #091428 0%, #030812 55%, #02050b 100%); }
.page-in { position: relative; max-width: 820px; margin: 0 auto; padding: 0 var(--gutter) 140px; }
.round-x { position: fixed; z-index: 45; top: 14px; left: max(14px, calc(50% - 440px)); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(2,5,11,.72); box-shadow: inset 0 0 0 1px rgba(240,230,210,.28); color: var(--ink); }
.round-x svg { width: 14px; height: 14px; } .round-x .chev { width: 14px; height: 14px; opacity: 1; stroke-width: 2; }
.round-x:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.page-hero { position: relative; padding-top: 52px; text-align: center; isolation: isolate; }
.page-hero .hero-ground { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: auto; height: 420px; }
.page-hero .hero-img { width: min(72%, 520px); right: 0; opacity: .8; }
.page-hero .hero-ground::after { background: linear-gradient(180deg, rgba(3,8,18,0) 50%, rgba(3,8,18,.6)); }
.eog { display: flex; flex-direction: column; align-items: center; }
.eog-crown { width: 160px; height: 22px; margin-bottom: -2px; }
.eog-word { display: flex; align-items: center; gap: 12px; }
.flour { width: 66px; height: 10px; }
.cinzel { font: 700 38px/1.1 var(--f-display); letter-spacing: .05em; text-transform: uppercase; -webkit-background-clip: text; background-clip: text; color: transparent; background-image: var(--gold-type); }
.cinzel.drawn { background-image: linear-gradient(180deg, #F2F4F7 10%, #A7B0BE 60%, #5E6672 100%); }
.cinzel.lost { background-image: linear-gradient(180deg, #F7CBD2 10%, #E84057 62%, #8C2235 100%); }
.eog-plate { position: relative; width: 230px; height: 98px; margin-top: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eog-plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eog-plate .num { position: relative; font-size: 44px; line-height: 1; color: var(--ink); }
.eog-plate small { position: relative; margin-top: 4px; font: 800 13px/1 var(--f-read); color: var(--ink2); }
.sp-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.sp-title h1 { font: 700 28px/1 var(--f-title); padding-top: 4px; }
.etag.big .ecrest { height: 30px; } .etag.big .etag-t { font-size: 26px; }
.sp-meta { margin-top: 8px; font: 700 15px/1.3 var(--f-read); color: var(--mute); }
.sp-legend { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font: 700 14px/1 var(--f-read); color: var(--ink2); }
.sp-legend .face { box-shadow: inset 0 0 0 1px rgba(200,170,110,.6); }
.sp-sec { margin-top: 34px; text-align: left; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mrow { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.mrow::before { content: ""; position: absolute; left: 14.5px; top: 0; bottom: 0; width: 1px; background: rgba(200,170,110,.3); }
.mrow:first-child::before { top: 50%; } .mrow:last-child::before { bottom: 50%; }
.mr-num { position: relative; align-self: center; display: grid; place-items: center; width: 30px; height: 30px; }
.mr-num i { position: absolute; width: 19px; height: 19px; transform: rotate(45deg); background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--ink2); }
.mrow.won .mr-num i { box-shadow: inset 0 0 0 1.5px var(--victory); } .mrow.lost .mr-num i { box-shadow: inset 0 0 0 1.5px var(--lost); }
.mr-num b { position: relative; font: 900 12px/1 var(--f-num); color: var(--ink); }
.mrow.won .mr-num b { color: var(--victory); } .mrow.lost .mr-num b { color: var(--lost); }
.mrow > button { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 12px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.mrow:last-child > button { border-bottom: 0; }
.mrow > button:hover .mr-t b { color: #fff; }
.mr-art { position: relative; width: 62px; height: 62px; overflow: hidden; box-shadow: inset 0 0 0 0 transparent; }
.mr-art .art { inset: 2px; }
.mr-art::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--drawn); pointer-events: none; }
.mrow.won .mr-art::after { border-color: var(--victory); } .mrow.lost .mr-art::after { border-color: #5a3038; }
.mr-art.seal-art { display: grid; place-items: center; background: var(--hex-gold), linear-gradient(#1A2130, #05060C); }
.mr-art.seal-art::after { border-color: #3A3F47; } .mr-art .seal-g { width: 20px; height: 20px; color: rgba(240,230,210,.5); }
.mr-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mr-t b { font: 700 21px/1 var(--f-title); color: var(--ink); padding-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-t > span { font: 700 14px/1.2 var(--f-read); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gchips { display: flex; gap: 8px; margin-top: 4px; }
.gchips i { font: 900 12px/1 var(--f-num); font-style: normal; color: var(--ink2); padding: 3px 3px 4px; border-bottom: 2px solid #8A8F98; }
.gchips i.won { border-color: var(--victory); } .gchips i.lost { border-color: var(--lost); }
.mr-s { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mr-s .num { font-size: 27px; line-height: 1; }
.mr-s small { font: 900 11.5px/1 var(--f-read); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.mrow > button > .chev { width: 10px; height: 10px; color: var(--gold); }
.mrow.sealed .mr-t b { color: var(--mute); } .mrow.sealed .mr-s .num { color: rgba(240,230,210,.35); }
.moments { list-style: none; margin: 0; padding: 0; }
.moments li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.moments li:last-child { border-bottom: 0; }
.moments .dia { transform: rotate(45deg) translateY(-3px); width: 7px; height: 7px; }
.moments span { display: flex; flex-direction: column; gap: 3px; }
.moments b { font: 900 17px/1.2 var(--f-read); color: var(--ink); }
.moments small { font: 600 14px/1.3 var(--f-read); color: var(--mute); }
.quiet { margin-top: 10px; font: 600 14px/1.45 var(--f-read); color: var(--mute); }
.notes { font: 600 15px/1.6 var(--f-read); color: var(--ink2); white-space: pre-wrap; margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin: 0; }
.facts dt { font: 800 13px/1 var(--f-read); color: var(--mute); }
.facts dd { margin: 6px 0 0; font: 700 22px/1 var(--f-title); color: var(--ink); }
.facts dd.num { font: 900 24px/1 var(--f-num); }
.pin-bar { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 26px var(--gutter) max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(3,8,18,0), rgba(3,8,18,.92) 40%); pointer-events: none; }
.pin-bar .hextech { pointer-events: auto; width: min(100%, 560px); }

/* battlefields */
.bf-art { position: absolute; inset: 0; overflow: hidden; background: #0b1424; }
.bf-art img { width: 100%; height: 100%; object-fit: cover; }
.bf-frame { position: relative; display: block; aspect-ratio: 1.4; overflow: hidden; box-shadow: inset 0 0 0 0 transparent; }
.bf-frame::after { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(200,170,110,.6); pointer-events: none; }
.bf-frame.lost::after { border-color: #4a4f57; } .bf-frame.drawn::after { border-color: #7C8794; }
.bf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.bf-grid.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bf-grid.sm .bf-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.8)); }
.bf-rec { position: absolute; z-index: 2; left: 8px; bottom: 22px; font: 900 20px/1 var(--f-num); text-shadow: 0 1px 3px #000; }
.bf-name { position: absolute; z-index: 2; left: 8px; right: 6px; bottom: 7px; font: 800 11.5px/1.1 var(--f-read); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.bf-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bf-card.big small { margin-top: 8px; font: 700 13px/1 var(--f-read); color: var(--mute); }
.bf-card.big b { font: 700 18px/1 var(--f-title); color: var(--ink); }
.bf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.bf-row b:first-child { font: 700 18px/1.05 var(--f-title); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 2px; }
.bf-row .num { font-size: 19px; }
.bf-card > small { font: 800 13px/1 var(--f-read); color: var(--mute); }
.sealedf .bf-art img, .sealedf .art img { filter: brightness(.36) saturate(.7) blur(2px); }
.card-seal { position: absolute; z-index: 2; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: rgba(240,230,210,.6); }

/* match page */
.match-hero { text-align: left; padding-top: 70px; }
.match-hero .hero-img { width: min(80%, 560px); }
.mp-meta { font: 700 14px/1 var(--f-read); color: var(--mute); }
.mp-score { display: flex; align-items: baseline; gap: 16px; margin-top: 10px; }
.mp-score .num { font-size: 64px; line-height: 1; color: var(--ink); }
.mp-score .cinzel { font-size: 30px; }
.you { color: var(--you); } .them { color: var(--lost); }
.mp-who { margin-top: 12px; font: 900 17px/1 var(--f-read); color: var(--ink); }
.mp-who i { font-style: normal; font-weight: 700; color: var(--mute); margin: 0 3px; }
.mp-sub { margin-top: 6px; font: 700 14px/1 var(--f-read); color: var(--mute); }
.match-hero .ctl-rule { margin-top: 14px; }
.gtab { gap: 8px; } .gtab .dia { width: 7px; height: 7px; }
.rec-lines { display: flex; flex-direction: column; gap: 12px; }
.rec-lines p { display: flex; align-items: center; gap: 10px; font: 700 16px/1 var(--f-read); color: var(--ink2); }
.rec-lines b { color: var(--ink); font-weight: 900; } .rec-lines .num { font-size: 17px; }
.ico { width: 16px; height: 16px; flex: none; }
.game-plate { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.gplate { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 26px; background: linear-gradient(180deg, #F0E6D2, #785A28);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); position: relative; }
.gplate::before { content: ""; position: absolute; inset: 1.5px; background: #050C18; clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%); }
.gplate .num { position: relative; font-size: 24px; color: var(--ink); }
.g-word { font: 900 12px/1 var(--f-read); letter-spacing: .08em; text-transform: uppercase; }
.bf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; text-align: center; }
.bf-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bf-mini .bf-frame { width: min(100%, 150px); }
.bf-mini b { font: 700 17px/1 var(--f-title); color: var(--ink); padding-top: 3px; }
.bf-mini small { font: 800 12.5px/1 var(--f-read); } .bf-mini small.you { color: var(--you); } .bf-mini small.them { color: var(--lost); }
.seats { list-style: none; margin: 0; padding: 0; }
.seats li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.seats span { display: flex; flex-direction: column; gap: 2px; } .seats span b { font: 700 19px/1 var(--f-title); color: var(--ink); } .seats small { font: 700 13px/1 var(--f-read); color: var(--mute); }
.seats .num { font-size: 22px; } .seats li.me .num { color: var(--you); }
.sp-sec.foot { margin-top: 40px; } .sp-sec.foot .rule { width: 100%; }
.foot-words { display: flex; gap: 30px; margin-top: 12px; }

/* --------------------------------------------------------------- stats */
.st-sec { margin-top: 30px; }
.most { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lcard { display: flex; flex-direction: column; align-items: stretch; min-width: 0; text-align: center; }
.lframe, .rframe { position: relative; display: block; aspect-ratio: 1 / 1.42; padding: 2.5px; background: var(--metal-gold3); container-type: inline-size; }
.lframe > .art, .rframe > .art, .lframe > .hexground { inset: 2.5px; }
.lframe::after, .rframe::after { content: ""; position: absolute; inset: 2.5px; border: 1px solid rgba(1,10,19,.92); pointer-events: none; }
.lframe.bronze { background: var(--metal-bronze); } .lframe.silver { background: var(--metal-silver); } .lframe.gold { background: var(--metal-gold3); }
.lframe.won, .rframe.won { background: var(--metal-won); } .lframe.lost, .rframe.lost { background: var(--metal-iron); } .lframe.drawn, .rframe.drawn { background: var(--metal-pewter); }
.lframe.lost::after, .rframe.lost::after { border-color: rgba(209,54,57,.4); }
.lframe.sealedf { background: var(--metal-iron); }
.lframe .banner { position: absolute; z-index: 2; top: -2px; left: 7px; height: auto; }
.lframe .scrim, .rframe .scrim { left: 2.5px; right: 2.5px; bottom: 2.5px; }
.lframe .plate, .rframe .plate { bottom: 2.5px; padding-bottom: 10px; }
.lframe .plate .score, .rframe .plate .score { font-size: clamp(24px, 22cqi, 40px); }
.lframe .plate .rv, .rframe .plate .rv { color: var(--mute); font-size: clamp(11px, 9cqi, 14px); }
.lcard:hover .art img, .rcard:hover .art img { transform: scale(1.03); }
.evidence { margin-top: 12px; font: 600 13.5px/1.4 var(--f-read); color: var(--mute); }
.evidence b { color: var(--ink); font-weight: 900; }
.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 10px; }
.lcard.sm { gap: 0; }
.lcard.sm .lframe { aspect-ratio: 1 / 1.62; padding: 2px; } .lcard.sm .lframe > .art { inset: 2px; } .lcard.sm .lframe::after { inset: 2px; }
.lc-name { margin-top: 10px; font: 700 16px/1 var(--f-title); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 2px; }
.lc-rec { margin-top: 4px; font-size: 15px; }
.mu-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.mu { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 330px; }
.mu thead th { padding: 10px 2px 12px; font: 700 14px/1.1 var(--f-title); color: var(--ink2); vertical-align: bottom; }
.mu thead th:first-child { width: 28%; }
.mu thead th span { display: block; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-thumb { position: relative; display: inline-block; width: 38px; height: 38px; flex: none; overflow: hidden; vertical-align: middle; }
.mu-thumb .art { inset: 2px; }
.mu-thumb::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--gold); pointer-events: none; }
.mu-thumb.lost::after { border-color: #5a3038; } .mu-thumb.lost .art img { filter: saturate(.4) brightness(.7); } .mu-thumb.drawn::after { border-color: #7C8794; }
.mu tbody tr { border-top: 1px solid var(--hair); }
.mu tbody th { display: flex; align-items: center; gap: 10px; padding: 14px 0; font: 700 18px/1 var(--f-title); color: var(--ink); text-align: left; min-width: 0; }
.mu tbody th span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 2px; }
.mu tbody th .mu-thumb { width: 30px; height: 30px; }
.mu-all th { font: 700 18px/1 var(--f-title); }
.mu-c { text-align: center; padding: 10px 2px; }
.mu-c b { display: block; font-size: 20px; line-height: 1; }
.mu-c small { display: block; margin-top: 4px; font: 700 12px/1 var(--f-read); color: var(--mute); white-space: nowrap; }
.mu-none { color: var(--dim); font: 900 18px/1 var(--f-num); }
.mu-q { color: var(--dim); } .mu-seal { width: 11px; height: 11px; color: var(--dim); display: inline-block; }
.mu-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; color: var(--mute); }
.mu-pager .num { font: 800 14px/1 var(--f-read); }
.mains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rcard { display: block; min-width: 0; text-align: center; }
.rframe { aspect-ratio: 1 / 1.33; }
.regs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 7px; }
.lcard.rsm .lframe { aspect-ratio: 1 / 1.36; }
.lcard.rsm .lc-name { font-size: 15px; }

/* legend page */
.legend-hero .hero-in { min-height: 150px; }
.mastery-eye { font: 700 14px/1 var(--f-read); color: var(--gold); margin-bottom: 12px; }
.lg-title { display: flex; align-items: center; gap: 12px; font: 700 44px/1 var(--f-title); color: var(--ink); }
.lg-title > span { padding-top: 6px; text-shadow: 0 2px 14px rgba(2,5,11,.6); }
.lg-title .banner { height: auto; flex: none; }
.mastery-line { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font: 600 15px/1.45 var(--f-read); color: var(--ink2); }
.mastery-line b { color: var(--ink); font-weight: 900; }
.ml-banners { display: flex; gap: 3px; flex: none; padding-top: 2px; }
.yr { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.yr-big { display: flex; flex-direction: column; gap: 6px; }
.yr-big .num { font-size: 64px; line-height: .95; color: var(--ink); }
.yr-big span { font: 700 14px/1.2 var(--f-read); color: var(--mute); }
.yr-wld { display: flex; gap: 22px; }
.yr-wld span { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 700 14px/1 var(--f-read); color: var(--mute); }
.yr-wld .num { font-size: 30px; line-height: 1; }
.yr-line { margin-top: 16px; font: 700 15px/1.3 var(--f-read); color: var(--ink2); }
.fs2 { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.fs2 > div + div { border-left: 1px solid var(--hair); padding-left: 20px; }
.fs2 span { font: 700 14px/1 var(--f-read); color: var(--mute); }
.fs2 p { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.fs2 .num { font-size: 26px; line-height: 1; color: var(--ink); }
.fs2 small { font: 800 13px/1 var(--f-read); color: var(--dim); }
.latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile.framed { padding: 2px; background: var(--metal-won); aspect-ratio: 1 / 1.6; }
.tile.framed.lost { background: var(--metal-iron); } .tile.framed.drawn { background: var(--metal-pewter); }
.tile.framed > .art, .tile.framed > .scrim { inset: 2px; } .tile.framed > .scrim { top: auto; height: 56%; }
.tile.framed::after { content: ""; position: absolute; inset: 2px; border: 1px solid rgba(1,10,19,.92); pointer-events: none; }
.tile.framed.lost::after { border-color: rgba(209,54,57,.4); }
.tile.framed .plate { bottom: 2px; padding-bottom: 10px; }
.tile.framed .rv { color: var(--mute); }
.plays { list-style: none; margin: 0; padding: 0; }
.plays li { display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.plays li:last-child { border-bottom: 0; }
.plays .num { min-width: 82px; font-size: 24px; color: var(--ink); }
.plays .num.won { color: var(--victory); } .plays .num.lost { color: var(--lost); } .plays .num.drawn { color: var(--drawn); }
.plays span { font: 700 20px/1 var(--f-title); color: var(--ink2); }
.mups { list-style: none; margin: 0; padding: 0; }
.mups li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.mups .mu-thumb { width: 42px; height: 42px; }
.mups-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mups-t > span { font: 600 13px/1 var(--f-read); color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mups-t i { font-style: normal; }
.mups-t b { font: 700 21px/1 var(--f-title); color: var(--ink); }
.mups-t small { font: 800 12.5px/1 var(--f-read); color: var(--mute); }
.mups-r { font: 800 14px/1 var(--f-read); color: var(--mute); }
.mups-v { font-size: 22px; min-width: 60px; text-align: right; }
.doms { list-style: none; margin: 0; padding: 0; }
.doms li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 30px; gap: 14px; align-items: center; padding: 8px 0; }
.dom-n { font: 700 17px/1 var(--f-title); color: var(--ink2); letter-spacing: .03em; padding-top: 2px; }
.doms .num { font-size: 17px; text-align: right; }
.doms small { font: 800 13px/1 var(--f-read); color: var(--dim); text-align: right; }
.sealed-sec .num.dim { color: var(--dim); }

/* -------------------------------------------------- dialogs (RiftDialog) */
.rift-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; color: var(--ink); background: transparent; overflow: visible; }
.rift-dialog::backdrop { background: rgba(2,5,11,.74); }
.rift-dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
#sheet-body { position: relative; max-height: calc(100vh - 32px); overflow: auto; padding-bottom: 6px; background: linear-gradient(180deg, #0c1a33 0%, #050c18 70%);
  box-shadow: inset 0 0 0 1px rgba(200,170,110,.45); }
.dlg-head { display: flex; align-items: flex-start; gap: 12px; padding: 24px 24px 8px; }
.dlg-head > div { flex: 1; min-width: 0; }
.dlg-eye { font: 700 13px/1 var(--f-read); color: var(--gold); }
.dlg-head h2 { margin-top: 8px; font: 700 28px/1.02 var(--f-title); color: var(--ink); }
.dlg-line { margin-top: 8px; font: 600 14px/1.45 var(--f-read); color: var(--mute); }
.dlg-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(240,230,210,.25); z-index: 1; }
.dlg-x svg { width: 12px; height: 12px; }
.dlg-head .dlg-x { position: static; flex: none; }
.dlg-seal { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 24px 0; }
.big-seal { width: 110px; height: 110px; }
.fc { font: 700 14px/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; background: linear-gradient(180deg, #FBF1D8, #C8AA6E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dlg-center { margin-top: 14px; padding: 0 24px; text-align: center; font: 700 28px/1.05 var(--f-title); }
.dlg-lede { margin: 12px 0 20px; padding: 0 28px; text-align: center; font: 600 15px/1.55 var(--f-read); color: var(--ink2); }
.rift-dialog.locked .stores { justify-content: center; padding: 0 24px 28px; }
.form { padding: 4px 24px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.field > span { font: 800 13px/1 var(--f-read); color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid rgba(200,170,110,.35); border-radius: 0; background: transparent;
  color: var(--ink); font: 700 16px/1.3 var(--f-read); outline: none; }
.field textarea { resize: vertical; padding: 10px; background: rgba(2,5,11,.5); border: 1px solid rgba(200,170,110,.25); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-light); }
.field select option { background: #0c1a33; color: var(--ink); }
.hint { margin-top: 16px; font: 600 13.5px/1.45 var(--f-read); color: var(--mute); }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; gap: 22px; padding: 22px 24px 24px; }
.form .dlg-foot { padding: 22px 0 24px; }
.pick { list-style: none; margin: 8px 0 0; padding: 0 24px; }
.pick button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.pick li:first-child button { grid-template-columns: 1fr; }
.pick button:hover .pk b { color: var(--gold-light); }
.pk { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pk b { font: 700 19px/1 var(--f-title); color: var(--ink); padding-top: 2px; }
.pk span { font: 600 13px/1.2 var(--f-read); color: var(--mute); }
.pick .num { font-size: 18px; }

/* --------------------------------------------------------- note, undo */
.note { position: fixed; z-index: 70; top: 14px; left: 50%; transform: translateX(-50%); max-width: min(440px, calc(100vw - 24px)); padding: 12px 18px;
  background: #0c1a33; box-shadow: inset 0 0 0 1px rgba(200,170,110,.4), 0 18px 40px -12px #000; font: 700 14px/1.4 var(--f-read); color: var(--ink); animation: drop .2s ease-out; }
.note.live { box-shadow: inset 0 0 0 1px rgba(10,200,185,.55), 0 18px 40px -12px #000; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } }
.undo { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 22px; padding: 6px 18px 6px 20px;
  background: #0c1a33; box-shadow: inset 0 0 0 1px rgba(200,170,110,.5), 0 16px 40px -10px #000; font: 700 14px/1 var(--f-read); }
.undo .word { color: var(--gold-light); }

/* ------------------------------------------------------------- sign in */
.signin-wrap { position: relative; min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav) + 30px) 16px 40px; overflow: hidden; }
.wall { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1px; transform: rotate(-6deg); opacity: .3; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, transparent 30%, #000 85%); mask-image: radial-gradient(closest-side, transparent 30%, #000 85%); }
.wall img { width: 100%; aspect-ratio: 1 / 1.42; object-fit: cover; }
.signin { position: relative; width: min(440px, 100%); padding: 36px 30px 28px; text-align: center; background: linear-gradient(180deg, rgba(12,26,51,.94), rgba(3,8,18,.94));
  box-shadow: inset 0 0 0 1px rgba(200,170,110,.4); }
.signin h1 { margin: 10px 0 8px; font: 700 40px/1 var(--f-title); }
.signin .lede { margin: 0 auto 24px; color: var(--ink2); font: 600 15px/1.5 var(--f-read); }
.signin .hextech { display: flex; width: 100%; margin-bottom: 12px; }
.signin .hextech svg { width: 18px; height: 18px; }
.signin .fine { margin-top: 16px; font: 600 13px/1.5 var(--f-read); color: var(--mute); }
.signin .err { min-height: 1.2em; color: var(--lost); font: 700 14px/1.3 var(--f-read); }

/* ------------------------------------------------------------- desktop */
@media (max-width: 699px) {
  .brand span, .who .live, .who #who-name { display: none; }
  .topnav { gap: 20px; }
  .tabs { gap: 20px; }
  .tabs a { font-size: 19px; flex: none; }
  .lock { flex-direction: column; align-items: flex-start; }
  .stores .hextech { flex: 1; } .stores .hextech .hx-in { padding: 0 12px; font-size: 16px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .mr-art { width: 54px; height: 54px; } .mrow > button { grid-template-columns: 54px minmax(0, 1fr) auto 10px; gap: 12px; }
}
/* Four tabs (Matches, Stats, Collection, Decks) on a narrow phone. */
@media (max-width: 440px) {
  .topnav { gap: 12px; }
  .tabs { gap: 13px; }
  .tabs a { font-size: 17px; }
  .who { gap: 10px; }
}
@media (min-width: 900px) {
  :root { --nav: 64px; }
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--nav) + 64px); }
  .hero-in { min-height: 150px; }
  .hero-n .num { font-size: 80px; } .hero-n .unit { font-size: 28px; }
  .hero-line { font-size: 17px; margin-top: 14px; }
  .hero-img { width: min(62%, 720px); right: 0; --fade-r: 80%; }
  .ctl-rule { height: 50px; margin-top: 18px; }
  .word { font-size: 16px; }
  .sec-title h2 { font-size: 30px; } .sec-title h3 { font-size: 23px; } .sec-acc { font-size: 14px; }
  .month { margin-top: 44px; }
  .session { margin-bottom: 40px; }
  .crest { width: 58px; height: 58px; } .crest .face { width: 42px; height: 42px; }
  .s-head { gap: 16px; padding-bottom: 14px; }
  .s-name, .etag-t { font-size: 27px; } .etag .ecrest { height: 30px; }
  .s-sub { font-size: 14px; }
  .s-score { font-size: 32px; } .verdict { font-size: 13px; letter-spacing: 1.6px; }
  .seal-block .fact b { font-size: 21px; } .seal-block.wide .fact b { font-size: 26px; }
  .seal-block .clock, .fact-band .clock { font-size: 13.5px; }
  .seal-block .fact small, .fact-band small { font-size: 14px; }
  .fb-row .fact b { font-size: 21px; }
  .most { grid-template-columns: repeat(3, minmax(0, 250px)); gap: 16px; }
  .others { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px 14px; }
  .mains { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .regs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px 12px; }
  .latest { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-title { font-size: 60px; }
  .yr-big .num { font-size: 80px; }
  .chips.legends { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .legend-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .st-sec { margin-top: 40px; }
  .page-in { padding-top: 10px; }
  .round-x { top: 22px; }
  .cinzel { font-size: 46px; } .eog-plate { width: 260px; height: 110px; } .eog-plate .num { font-size: 52px; }
  .mp-score .num { font-size: 80px; } .mp-score .cinzel { font-size: 38px; }
  .bf-grid.sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* pass 2 */
.page-hero .hero-ground { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.page-hero .hero-ground::after { display: none; }
.page-in .bf-grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-hero .hero-img { opacity: .6; }
.page-hero p, .page-hero .mp-score { text-shadow: 0 1px 10px rgba(2,5,11,.85); }
.cap { margin: 4px 0 34px; }
.cap .lock { margin-top: 0; }
.sec-acc .acc-seal { width: 12px; height: 12px; }
.chips.jump { margin-top: -6px; }
.hero-img { opacity: .72; }
.bf-art img { object-position: 30% 50%; }
.bf-mini .bf-frame { width: min(100%, 124px); }
.round-back { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 18px; border-radius: 50%; background: rgba(2,5,11,.72); box-shadow: inset 0 0 0 1px rgba(240,230,210,.28); color: var(--ink); }
.round-back .chev { width: 14px; height: 14px; opacity: 1; stroke-width: 2; }
.round-back:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.legend-hero { padding-top: calc(var(--nav) + 14px); }
.page-hero .hero-ground { left: calc(50% - 50vw); right: calc(50% - 50vw); top: -10px; }
.page-hero .hg-wrap { max-width: 900px; }

/* ===================================================== the web layout
   Phone (<760) is the app's column, untouched. From a tablet up the page
   uses the screen: the record beside the feed, a filter rail on a desktop,
   sessions and matches as a detail panel, the stats as a dashboard. Tiles
   keep the app's card size; a wider screen gets more of them, not bigger. */

.page-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(2,5,11,.66); }
.rp-k { display: block; font: 800 13px/1 var(--f-read); color: var(--mute); }

@media (min-width: 760px) {
  html { scrollbar-gutter: stable; }
  :root { --gutter: clamp(28px, 3.2vw, 56px); }
  .rift-dialog.match, .rift-dialog.night { width: min(680px, calc(100vw - 48px)); }
  .rift-dialog { animation: none; }

  .hero { padding-top: calc(var(--nav) + 30px); }
  .hero-in { min-height: 0; }
  .hero-n .num { font-size: 72px; }
  .legend-hero { padding-top: calc(var(--nav) + 6px); }
  .legend-hero .hero-in { min-height: 0; }
  .fs2 small { white-space: nowrap; }

  /* the record, as a band above the feed (tablet) and a rail (desktop) */
  .rec-band { margin-top: 34px; }
  .chips.jump .chip.month { margin-top: 0; }
  .chips.jump { margin-top: 0; }
  .rpanel .sec-title { margin-bottom: 18px; }
  .rpanel .yr-big .num { font-size: 56px; }
  .rpanel .yr-wld { gap: 18px; } .rpanel .yr-wld .num { font-size: 26px; }
  .rp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
  .rp-form { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
  .rp-dias { display: inline-flex; gap: 7px; } .rp-dias .dia { width: 9px; height: 9px; }
  .rp-form small { font: 700 12px/1 var(--f-read); color: var(--dim); }
  .rp-list { margin-top: 22px; }
  .rp-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
  .rp-list li button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hair); }
  .rp-list li:last-child button { border-bottom: 0; }
  .rp-list .mu-thumb { width: 34px; height: 34px; }
  .rp-list li button:hover .rp-n b { color: #fff; }
  .rp-n { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .rp-n b { font: 700 19px/1 var(--f-title); color: var(--ink); padding-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rp-n small { font: 800 12px/1 var(--f-read); color: var(--mute); }
  .rp-list .num { font-size: 19px; }
  .rp-list .mu-seal { width: 11px; height: 11px; }
  .rp-lock { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; width: 100%; font: 700 13px/1.35 var(--f-read); color: var(--ink2);
    box-shadow: inset 0 0 0 1px rgba(200,170,110,.32); background: linear-gradient(180deg, rgba(9,20,40,.9), rgba(2,5,11,.9)); }
  .rp-lock .seal-g { width: 18px; height: 18px; }
  .rp-lock:hover { box-shadow: inset 0 0 0 1px rgba(200,170,110,.6); }
  .rp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px 44px; align-items: start; }
  .rp-cols .rp-list:first-of-type { margin-top: 0; }
  .rp-cols > .rp-list { margin-top: 0; }
  .rpanel .fs2 { margin-top: 16px; }

  /* the stats */
  .others { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 14px; }
  .regs { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 20px 12px; }
  .mu thead th:first-child { width: 200px; }
  .bf-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  /* legend page: two columns, the strip across */
  .lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; grid-auto-flow: row dense; align-items: start; }
  .lg-grid > * { min-width: 0; }
  .lg-grid > .mastery-line, .lg-grid > .empty-line, .lg-grid > .ls-latest, .lg-grid > .ls-fields { grid-column: 1 / -1; }

  /* the detail pages */
  .page-in { max-width: 1040px; }
  .round-x { left: max(14px, calc(50% - 560px)); }
}

@media (min-width: 960px) {
  .sp-cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .sp-cols > div > .sp-sec:first-child { margin-top: 34px; }
  .sp-side .bf-grid.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-side .bf-grid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-hero + .sp-cols .sp-main:empty { display: none; }
}

/* ----------------------------------------------------------- desktop */
@media (min-width: 1200px) {
  :root { --max: 1560px; --nav: 60px; }
  .topnav { border-bottom: 1px solid transparent; }
  .hero { padding-top: calc(var(--nav) + 30px); }
  .hero-in { min-height: 0; }
  .hero-n .num { font-size: 76px; }
  .hero-line { margin-top: 10px; }
  .hero-img { width: min(64%, 1020px); --fade-r: 86%; }
  .ctl-rule { margin-top: 16px; }
  .legend-hero { padding-top: calc(var(--nav) + 6px); }
  .legend-hero .hero-in { min-height: 0; }
  .lg-title { font-size: 56px; }

  /* Matches: filter rail, feed, record rail */
  .mlayout { display: grid; grid-template-columns: 236px minmax(0, 1fr) 300px; gap: 0 40px; align-items: start; }
  .feed { min-width: 0; }
  .rail { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; overscroll-behavior: contain; padding: 30px 4px 40px 0; scrollbar-width: thin; scrollbar-color: rgba(200,170,110,.3) transparent; }
  .rail-r { padding: 30px 0 40px; }
  .rail .sec-title h2 { font-size: 24px; }
  .rail-filter { padding: 0; }
  .rail-filter .sec-title { margin-bottom: 10px; }
  .rail-filter .sec-title h3 { font-size: 18px; }
  .rail-filter .search { margin-bottom: 18px; height: 42px; }
  .rail-filter .search input { font-size: 15px; }
  .rail-filter .chips { margin-bottom: 18px; }
  .rail-filter .chips.legends { grid-template-columns: 1fr; gap: 0; }
  .rail-filter .chips.words { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .rail-filter .chip { min-height: 36px; font-size: 15px; }
  .rail-filter .chips.jump { gap: 2px 18px; margin-top: 0; }
  .rail-filter .chip.month { font-size: 20px; }
  .rail-filter .face.sm { width: 26px; height: 26px; }
  .rail-filter .sec-acc .word { height: 24px; font-size: 14px; }
  .rail-r .rpanel .rp-top { flex-direction: column; align-items: flex-start; }
  .feed > section.month:first-child { margin-top: 30px; }
  .crest { width: 52px; height: 52px; } .crest .face { width: 38px; height: 38px; }
  .s-name, .etag-t { font-size: 25px; }
  .s-score { font-size: 30px; }
  .seal-block .fact b { font-size: 19px; } .seal-block.wide .fact b { font-size: 23px; }

  /* the stats as a dashboard */
  .st-top { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .most { grid-template-columns: repeat(3, minmax(0, 240px)); }
  .others { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .mu-c b { font-size: 21px; }
  .mu thead .mu-thumb { width: 46px; height: 46px; }
  .mu thead th span { font-size: 15px; }
  .rv-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0 56px; align-items: start; }
  .rv-grid > .rv-once, .rv-grid > .rv-earlier, .rv-grid > .rv-regs:first-child, .rv-grid > .rv-main:not(:has(+ .rv-regs)) { grid-column: 1 / -1; }
  .mains { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .regs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .lg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
  .lg-grid > .ls-latest { grid-column: span 2; }
  .lg-grid > .ls-fields { grid-column: 1 / -1; }

  /* Session and match: a detail panel from the right, the list stays in view */
  .overlay { left: auto; width: clamp(860px, 62vw, 1120px); background: linear-gradient(180deg, #091428 0%, #030812 46%, #02050b 100%);
    box-shadow: inset 1px 0 0 rgba(200,170,110,.4); overflow-x: hidden; animation: panel-in .2s ease-out; }
  .overlay::before { display: none; }
  @keyframes panel-in { from { transform: translateX(24px); opacity: .4; } }
  .page-in { max-width: none; margin: 0; padding: 0 44px 40px; }
  .round-x { position: sticky; top: 18px; left: auto; margin: 18px 0 -60px -22px; }
  .page-hero { padding-top: 30px; }
  .page-hero .hero-ground { left: -44px; right: -44px; top: 0; height: 380px; }
  .page-hero .hg-wrap { max-width: none; }
  .match-hero { padding-top: 76px; }
  .pin-bar { position: sticky; bottom: 0; margin: 30px -44px 0; padding: 26px 44px 20px; }
}

/* -------------------------------------------------------------- wide */
@media (min-width: 1680px) {
  :root { --max: 1760px; }
  .mlayout { grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 0 48px; }
  .hero-n .num { font-size: 84px; }
  .most { grid-template-columns: repeat(3, minmax(0, 250px)); }
}
/* Five tabs don't fit a narrow phone: Workbench folds away unless you're on it, and there Stats does. */
@media (max-width: 440px) {
  .tabs a.tab-wb:not([aria-current]) { display: none; }
  .tabs a.tab-stats { display: none; }
}
