/* Page layouts and the drawn charts. Loaded after app.css. */

/* ============ charts ============================================================================ */
.ring { position: relative; width: var(--size, 220px); max-width: 100%; aspect-ratio: 1; }
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring__in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__num { font-size: calc(var(--size, 220px) * 0.23); line-height: 1.05; }
.ring__label { font-size: 0.875rem; color: var(--muted); }

.bars-wrap { position: relative; }
.bars { position: relative; height: 190px; display: flex; align-items: stretch; gap: 3px; margin: 1.6rem 0 1.7rem; border-bottom: 2px solid var(--edge); }
.bars--few { gap: 10px; }
.bars__col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.bars__bar { position: relative; border-radius: 3px 3px 0 0; background: var(--hatch); box-shadow: inset 0 0 0 1.5px rgba(183, 176, 166, 0.42); }
.bars__bar.is-paint { background: var(--acc); box-shadow: none; }
.bars__val { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -0.2rem); font-size: 0.8125rem; color: var(--text); white-space: nowrap; }
.bars__day { position: absolute; left: 50%; bottom: -1.45rem; transform: translateX(-50%); font: 600 0.78rem/1 var(--cond); color: var(--muted); white-space: nowrap; }
.bars__avg { position: absolute; left: 0; right: 0; z-index: 2; border-top: 2px dashed rgba(211, 205, 195, 0.72); pointer-events: none; }
.bars__avg-label { position: absolute; right: 0; bottom: 0.25rem; font: 400 0.78rem/1 var(--marker); color: var(--text); background: var(--surface); padding: 0.1rem 0.3rem; border-radius: 4px; }

.strip { width: 100%; min-width: 140px; }
.strip__bins { position: relative; height: 34px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1.5px solid var(--edge); }
.strip__bin { flex: 1 1 0; border-radius: 2px 2px 0 0; background: var(--hatch); box-shadow: inset 0 0 0 1px rgba(183, 176, 166, 0.32); }
.strip__bin.is-me { background: var(--acc); box-shadow: none; }
.strip__avg { position: absolute; top: -5px; bottom: -1px; width: 0; border-left: 2px dashed rgba(211, 205, 195, 0.8); }
.strip__ends { display: flex; justify-content: space-between; margin-top: 3px; font: 600 0.75rem/1 var(--cond); color: var(--muted); }

.gauge { width: 100%; max-width: 150px; height: auto; }
.seats { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.seat { width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--edge); transform: rotate(var(--tilt, 12deg)); background: transparent; }
.seat.is-in { background: var(--text); border-color: var(--text); }
.seat.is-me { background: var(--teal); border-color: var(--ink); }
.form { display: inline-flex; gap: 4px; }
.form__g { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 5px; font: 400 0.8125rem/1 var(--marker); color: var(--ink); background: var(--text); }
.form__g--w { background: var(--teal); }
.form__g--l { background: transparent; color: var(--paint-rose); box-shadow: inset 0 0 0 2px var(--paint-rose); }
.form__g--d { background: var(--sketch); }
.vs { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rule-soft); }
.vs__a { background: var(--teal); }
.vs__b { background: var(--coral); }
.vs__d { background: var(--sketch); }
.share { display: block; height: 8px; border-radius: 4px; background: var(--rule-soft); overflow: hidden; }
.share > span { display: block; height: 100%; border-radius: 4px; background: var(--hatch), rgba(211, 205, 195, 0.16); box-shadow: inset 0 0 0 1px rgba(183, 176, 166, 0.35); }
.share.is-paint > span { background: var(--teal); box-shadow: none; }
.seg { display: inline-flex; border: 2px solid var(--edge); border-radius: var(--r-chip); overflow: hidden; }
.seg__b { padding: 0.42em 0.8em 0.46em; min-height: 36px; font: 400 0.8125rem/1 var(--marker); text-transform: uppercase; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.seg__b + .seg__b { border-left: 2px solid var(--edge); }
.seg__b[aria-pressed="true"] { color: var(--text); background: var(--selected); }
.seg__b:hover { color: var(--text); }

/* ============ stats: hero band ================================================================ */
.st-hero { position: relative; isolation: isolate; background: var(--haunted-ink); padding: 1.25rem 0 2.9rem; overflow: hidden; }
.st-hero__art { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(68%, 1200px); background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 70%); }
.st-hero__art img { filter: saturate(0.05) brightness(0.42) contrast(1.08); }
.st-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--haunted-ink) 0%, transparent 45%); }
.st-hero__in { position: relative; }
.st-boards { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-boards .chip { background: rgba(14, 12, 16, 0.55); }
.chip__live { display: inline-flex; align-items: center; gap: 0.3rem; }
.chip__live .dot { width: 0.5rem; height: 0.5rem; }
.st-hero__main { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; margin-top: 2.6rem; }
.st-hero__text { min-width: 0; max-width: 52rem; }
.st-hero__text .kick { margin-bottom: 0.1rem; }
.st-hero__meta { margin-top: 0.7rem; }
.st-hero__rule { font: 600 1.0625rem/1.35 var(--cond); color: var(--text); max-width: 46ch; }
.st-month { display: flex; align-items: center; gap: 0.5rem; }
select.st-month__pick { width: auto; min-width: 11.5rem; min-height: 44px; font: 400 1.0625rem/1 var(--marker); text-transform: uppercase; background-color: var(--raised); cursor: pointer; }
.st-month .btn { min-height: 44px; }
.st-tabs { display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; margin-top: 2rem; }
.st-tab { position: relative; padding: 0.4rem 0 0.55rem; font: 400 1.125rem/1 var(--marker); text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; }
.st-tab:hover { color: var(--text); }
.st-tab.is-on { color: var(--text); }
.st-tab.is-on::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 4px; border-radius: 3px; background: var(--teal); transform: rotate(-1.2deg); }
.st-tabs__range { margin-left: auto; font: 600 0.9375rem/1.3 var(--cond); color: var(--muted); }
.st-body { margin-top: 1.5rem; }
.st-body > .grid + .grid, .st-body > .st-cards + .grid { margin-top: 1.25rem; }
.st-none { margin-top: 1rem; display: grid; gap: 1rem; justify-items: start; }
.st-none h2 { font-size: 1.9rem; }
@media (max-width: 760px) {
  .st-hero { padding-bottom: 2.4rem; }
  .st-hero__art { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.35)); mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.35)); }
  .st-hero__main { margin-top: 1.6rem; }
  .st-boards { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.3rem; scrollbar-width: none; }
  .st-month { width: 100%; }
  .st-month__pick { flex: 1; min-width: 0; }
  .st-month__word { display: none; }
  .st-tabs { gap: 0.25rem 1.1rem; margin-top: 1.4rem; }
  .st-tab { font-size: 1rem; }
  .st-tabs__range { margin-left: 0; width: 100%; }
}

/* ============ stats: player of the month ======================================================= */
.potm { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.potm__art { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 330px; background: transparent;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 100%); mask-image: linear-gradient(#000 35%, transparent 100%); }
.potm__art img { filter: saturate(0.05) brightness(0.36) contrast(1.05); }
.potm:hover .potm__art img { filter: saturate(0.9) brightness(0.44); }
.potm__top { position: relative; display: grid; justify-items: center; text-align: center; padding: 1.1rem 1.25rem 1.2rem; gap: 0.55rem; flex: 1; }
.potm__label { justify-self: start; padding: 0.22rem 0.65rem 0.28rem; font-size: 0.875rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 7px; transform: rotate(-1.6deg); box-shadow: 2px 2px 0 var(--void-soot); }
.potm__ring { position: relative; margin-top: 0.1rem; }
.potm__stamp { position: absolute; right: -70px; bottom: -30px; width: 168px; height: 168px; transform: rotate(-9deg); }
.potm__stamp .burst { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the burst's pool sits at 50% 45% of its box: the number sits on the pool, in ink */
.potm__stamp .mk { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-size: 1.55rem; line-height: 1; color: var(--ink); }
.potm__stamp.stamp { animation-delay: 0.32s; }
.potm__who { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.4rem; text-align: left; max-width: 100%; }
.potm__name-box { min-width: 0; }
.potm__name { font: 400 clamp(1.8rem, 1.4rem + 1.3vw, 2.6rem)/1.1 var(--marker); overflow-wrap: anywhere; text-shadow: -0.048em 0.038em 0 var(--ghost-rose), 0.058em -0.019em 0 var(--ghost-teal); }
.potm__name a { color: var(--text); text-decoration: none; }
.potm__name a:hover { color: var(--acc); }
.potm__tags { margin-top: 0.3rem; gap: 0.45rem; }
.potm__line { font: 600 1.0625rem/1.35 var(--cond); color: var(--muted); }
.potm__line b { font: 400 1.15rem/1 var(--marker); }
.potm__form { justify-content: center; gap: 0.6rem; }
.potm__streak { font-size: 0.875rem; color: var(--text); }
.potm__form .tag { background: var(--acc); }
.potm__stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule-soft); }
.potm__stats > div { padding: 0.9rem 0.6rem 1rem; text-align: center; }
.potm__stats > div + div { border-left: 1px solid var(--rule-soft); }
.potm__stats dd { margin: 0.15rem 0 0; display: grid; }
.potm__big { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.15rem); line-height: 1.15; }

/* ============ stats: the month in numbers ======================================================== */
.st-sum { height: 100%; display: flex; flex-direction: column; }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-soft); }
.st-tile { position: relative; isolation: isolate; display: grid; align-content: start; gap: 0.15rem; padding: 1rem 1.2rem 1.1rem; min-width: 0; overflow: hidden; }
.st-tile + .st-tile { border-left: 1px solid var(--rule-soft); }
.st-tile__num { font-size: clamp(2.1rem, 1.6rem + 1.4vw, 2.9rem); line-height: 1.1; }
.st-tile__sub { display: block; }
.st-tile__regions { display: flex; flex-wrap: wrap; gap: 0.1rem 0.7rem; }
.st-tile__regions b { color: var(--text); font-weight: 800; }
.st-tile--map { padding-top: 1rem; }
.st-tile__art { position: absolute; inset: 0; z-index: -1; }
.st-tile__art img { filter: saturate(0.05) brightness(0.34); }
.st-tile--map:hover .st-tile__art img { filter: saturate(1) brightness(0.5); }
.st-tile__mapname { font-size: 1.35rem; line-height: 1.15; margin-top: 0.3rem; }
.st-chart { display: flex; flex-direction: column; padding: 1.1rem 1.25rem 0.6rem; flex: 1; }
.st-chart .bars-wrap { flex: 1; display: flex; flex-direction: column; }
.st-chart .bars { flex: 1; height: auto; min-height: 180px; }
.bars--few .bars__bar { width: 72%; margin: 0 auto; }
.st-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem 1.5rem; flex-wrap: wrap; }
.st-chart__head h3 { font-size: 1.3rem; line-height: 1.2; }
.st-chart__head .fine { max-width: 48ch; margin-top: 0.2rem; font-size: 0.95rem; }
.st-chart__ctl { gap: 0.5rem; }
.st-chart__key { display: flex; gap: 0.4rem 1.1rem; flex-wrap: wrap; margin-top: 0.8rem; }
.st-chart__key span { display: inline-flex; align-items: center; gap: 0.4rem; }
.k { display: inline-block; width: 14px; height: 12px; border-radius: 2px; }
.k--paint { background: var(--teal); }
.k--pencil { background: var(--hatch); box-shadow: inset 0 0 0 1.5px rgba(183, 176, 166, 0.45); }
.k--avg { height: 0; width: 18px; border-top: 2px dashed var(--text); border-radius: 0; }
@media (max-width: 1240px) and (min-width: 1101px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-tile:nth-child(3) { border-left: 0; } .st-tile:nth-child(n+3) { border-top: 1px solid var(--rule-soft); } }
@media (max-width: 760px) {
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tile:nth-child(3) { border-left: 0; }
  .st-tile:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .bars { height: 160px; }
}

/* ============ stats: top cards, the comparison, rivalries ======================================== */
.st-potm-name { display: inline-flex; align-items: center; gap: 0.6rem; }
.st-potm-name .pname { color: var(--text); }
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.st-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "rank body" "avg avg"; gap: 0.2rem 0.9rem; padding: 1rem 1.1rem 0.9rem; }
.st-card__rank { grid-area: rank; font-size: 1.6rem; line-height: 1; color: var(--ink); background: var(--acc); border: 2px solid var(--ink); border-radius: 7px; padding: 0.28rem 0.42rem 0.36rem; align-self: start; transform: rotate(-3deg); }
.st-card__body { grid-area: body; display: grid; min-width: 0; }
.st-card__num { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); line-height: 1.1; }
.st-card__avg { grid-area: avg; display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px dashed var(--edge); }
.st-card__avg .mk { font-size: 1.1rem; }
@media (max-width: 1100px) { .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .st-cards { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; } }

.st-cmp { height: 100%; }
.cmp { width: 100%; }
.cmp th, .cmp td { padding: 0.75rem 1rem; border-top: 1px solid var(--rule-soft); vertical-align: middle; text-align: left; }
.cmp thead th { border-top: 0; padding-top: 0.75rem; padding-bottom: 0.35rem; font: 400 0.8125rem/1.2 var(--marker); color: var(--muted); text-transform: uppercase; }
.cmp .r { text-align: right; }
.cmp tbody th { font-weight: 400; }
.cmp__label { display: block; font-size: 1.05rem; line-height: 1.25; }
.cmp tbody th .fine { display: block; font-size: 0.8125rem; }
.cmp__mine { display: inline-block; min-width: 4.4em; padding: 0.18em 0.5em 0.24em; text-align: center; font-size: 1.15rem; border: 2px solid var(--acc); border-radius: var(--r-chip); background: color-mix(in srgb, var(--acc) 16%, transparent); }
.cmp__avg { display: inline-block; min-width: 4em; padding: 0.22em 0.5em; text-align: center; font: 700 1rem/1.3 var(--cond); color: var(--muted); border: 2px dashed var(--edge); border-radius: var(--r-chip); }
.cmp__dist { width: 36%; min-width: 170px; }
.cmp__rank { display: block; font-size: 1.35rem; line-height: 1.1; }
.cmp td.r .fine { display: block; font-size: 0.78rem; }
@media (max-width: 640px) {
  .cmp thead { display: none; }
  .cmp tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "label mine rank" "dist dist avg"; gap: 0.5rem 0.8rem; padding: 0.85rem 1rem; border-top: 1px solid var(--rule-soft); align-items: center; }
  .cmp th, .cmp td { padding: 0; border: 0; }
  .cmp tbody th { grid-area: label; }
  .cmp tbody td:nth-of-type(1) { grid-area: mine; }
  .cmp tbody td:nth-of-type(2) { grid-area: avg; align-self: start; }
  .cmp tbody td:nth-of-type(3) { grid-area: dist; width: auto; min-width: 0; }
  .cmp tbody td:nth-of-type(4) { grid-area: rank; }
}

.riv { padding: 0.25rem 0; }
.riv__row { display: grid; gap: 0.4rem; padding: 0.7rem 1.25rem; }
.riv__row + .riv__row { border-top: 1px solid var(--rule-soft); }
.riv__names { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: 0.6rem; }
.riv__a, .riv__b { font: 400 1rem/1.25 var(--marker); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.riv__a .pname { color: var(--teal); }
.riv__b { text-align: right; }
.riv__b .pname { color: var(--coral); }
.riv__score { font-size: 1.05rem; }
.riv__n { justify-self: center; font-size: 0.8125rem; }

/* ============ stats: leaderboard ================================================================ */
.lb__scroll { overflow-x: auto; }
.lb__t { width: 100%; font: 700 1rem/1.2 var(--cond); }
.lb__t th, .lb__t td { padding: 0.5rem 0.7rem; border-top: 1px solid var(--rule-soft); text-align: left; white-space: nowrap; vertical-align: middle; }
.lb__t th:first-child, .lb__t td:first-child { padding-left: 1.25rem; }
.lb__t th:last-child, .lb__t td:last-child { padding-right: 1.25rem; }
.lb__t thead th { border-top: 0; padding-top: 0.75rem; padding-bottom: 0.45rem; font: 400 0.8125rem/1.2 var(--marker); color: var(--muted); }
.lb__t .r { text-align: right; }
.lb__t tbody tr:hover { background: rgba(211, 205, 195, 0.035); }
.lb__t tr.is-you { background: rgba(62, 197, 183, 0.09); box-shadow: inset 4px 0 0 var(--teal); }
.lb__rank { width: 3rem; }
.lb__rankn { display: inline-grid; place-items: center; min-width: 1.85rem; height: 1.85rem; font-size: 1rem; color: var(--muted); }
.lb__rankn.is-top { color: var(--ink); background: var(--text); border-radius: 5px; transform: rotate(-5deg); }
.lb__who { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.lb__who .who__name { max-width: 12rem; }
.lb__region { font: 700 0.75rem/1 var(--cond); color: var(--muted); border: 1.5px solid var(--edge); border-radius: 5px; padding: 0.2em 0.38em; }
.lb__rating { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.lb__rating .mk { font-size: 1.1rem; min-width: 2.6em; text-align: right; }
.lb__bar { width: 60px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--rule-soft); }
.lb__bar i { display: block; height: 100%; border-radius: 3px; background: rgba(211, 205, 195, 0.62); }
.lb__kd { font-weight: 800; }
.lb__seen { font-weight: 600; color: var(--muted); }
.lb__sort { display: inline-flex; align-items: center; gap: 0.25em; padding: 0.2em 0; font: inherit; color: inherit; text-transform: uppercase; background: none; border: 0; cursor: pointer; }
.lb__sort:hover, .lb__sort.is-on { color: var(--text); }
.lb__sort .glyph { width: 0.95em; height: 0.95em; }
@media (max-width: 960px) { .lb__opt2 { display: none; } }
@media (max-width: 560px) {
  .lb__opt1, .lb__bar, .lb__who .tier, .lb__region { display: none; }
  .lb__who .who__name { max-width: 7.5rem; }
  .lb__t th, .lb__t td { padding-left: 0.4rem; padding-right: 0.4rem; }
  .lb__t th:first-child, .lb__t td:first-child { padding-left: 0.75rem; }
  .lb__t th:last-child, .lb__t td:last-child { padding-right: 0.75rem; }
  .lb__rank { width: 2.3rem; }
}

/* ============ stats: games, awards, items, weapons, maps, regions ============================== */
.games > .game { display: grid; grid-template-columns: 108px minmax(0, 1fr) minmax(0, 1.55fr) auto; align-items: center; gap: 0.6rem 1.1rem; padding: 0.7rem 1.25rem; border-top: 1px solid var(--rule-soft); }
.games > .game:first-child { border-top: 0; }
.game__art { width: 108px; aspect-ratio: 16 / 9; border-radius: 8px; border: 1.5px solid var(--edge); }
.game__where { display: grid; min-width: 0; }
.game__map { font-size: 1.02rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__result { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
/* the two scores face each other across "vs" */
.game__side { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex: 1 1 0; min-width: 0; font: 400 1rem/1.25 var(--marker); }
.game__side .game__names { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__side + .game__vs + .game__side { flex-direction: row-reverse; }
.game__score { flex: none; min-width: 2rem; padding: 0.14em 0.45em 0.2em; text-align: center; font-size: 1.1rem; border-radius: 7px; color: var(--muted); border: 2px solid var(--edge); }
.game__side.is-won .game__score { color: var(--ink); background: var(--acc); border-color: var(--ink); }
.game__side.is-won .pname { color: var(--text); }
.game__side.is-lost .pname { color: var(--muted); }
.game__side .pname.is-me { color: var(--paint-teal); }
.game__vs { font: 400 0.78rem/1 var(--marker); color: var(--muted); text-transform: uppercase; }
.game__meta { display: flex; align-items: center; gap: 0.6rem; }
.game__len { font: 700 1rem/1 var(--cond); color: var(--muted); }
.lines { grid-column: 1 / -1; }
.lines summary { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: var(--paint-teal); cursor: pointer; list-style: none; padding: 0.2rem 0; }
.lines summary::-webkit-details-marker { display: none; }
.lines summary .glyph { width: 1em; height: 1em; transition: transform 0.15s; }
.lines[open] summary .glyph { transform: rotate(180deg); }
.lines__t { width: 100%; margin-top: 0.4rem; font: 700 0.95rem/1.2 var(--cond); }
.lines__t th, .lines__t td { padding: 0.35rem 0.6rem; border-top: 1px solid var(--rule-soft); text-align: left; white-space: nowrap; }
.lines__t thead th { border-top: 0; font: 400 0.75rem/1.2 var(--marker); color: var(--muted); }
.lines__t tbody th { font-size: 0.95rem; font-weight: 400; }
.lines__t .r { text-align: right; }
.lines__t .tag { margin-right: 0.3rem; }
.lines__best { display: inline-flex; align-items: center; gap: 0.4rem; }
.lines__best .cube { color: var(--acc); width: 0.6em; height: 0.6em; }
.lines__t-wrap { overflow-x: auto; }
@media (max-width: 760px) {
  .games > .game { grid-template-columns: 84px minmax(0, 1fr) auto; padding: 0.75rem 1rem; }
  .game__art { width: 84px; }
  .game__result { grid-column: 1 / -1; grid-row: 2; }
  .game__meta { grid-column: 3; grid-row: 1; }
  .lines { overflow-x: auto; }
}

.awards > .award, .items > .item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--rule-soft); }
.awards > .award:first-child, .items > .item:first-child { border-top: 0; }
.award__cube { width: 0.8rem; height: 0.8rem; color: var(--text); }
.award__body, .item__body { display: grid; gap: 0.25rem; min-width: 0; }
.award__title, .item__name { font-size: 0.95rem; color: var(--muted); }
.award__value, .item__n { font-size: 1.15rem; text-align: right; }
.item__swatch { width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--acc); border: 2px solid var(--ink); transform: rotate(-6deg); }
.item__swatch--pigment { background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal), var(--violet)); }

.wpn { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.wpn__card { display: grid; justify-items: center; text-align: center; gap: 0.45rem; padding: 1.1rem 1rem 1.2rem; border-top: 1px solid var(--rule-soft); border-left: 1px solid var(--rule-soft); margin: -1px 0 0 -1px; position: relative; }
.wpn__card::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.wpn__name { display: inline-flex; align-items: baseline; gap: 0.45rem; font-size: 1rem; line-height: 1.2; }
.wpn__slot { font: 800 0.8125rem/1 var(--cond); color: var(--ink); background: var(--acc); border-radius: 4px; padding: 0.2em 0.38em; }
.acc-oxblood .wpn__slot, .acc-void .wpn__slot { color: var(--cream); }
.wpn__gauge { position: relative; width: 150px; max-width: 100%; }
.wpn__pct { position: absolute; left: 0; right: 0; bottom: -0.1rem; font-size: 1.6rem; line-height: 1; }
.wpn .who { justify-content: center; }

.maps > .mrow { display: grid; grid-template-columns: 1.6rem 84px minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 0.6rem 1.25rem; border-top: 1px solid var(--rule-soft); }
.maps > .mrow:first-child { border-top: 0; }
.mrow__n { font-size: 0.95rem; color: var(--muted); text-align: center; }
.mrow__art { width: 84px; aspect-ratio: 16 / 9; border-radius: 6px; border: 1.5px solid var(--edge); }
.mrow__body { display: grid; gap: 0.35rem; min-width: 0; }
.mrow__name { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__games { font: 700 0.95rem/1 var(--cond); color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .maps > .mrow { grid-template-columns: 1.2rem 64px minmax(0, 1fr); padding: 0.6rem 1rem; } .mrow__art { width: 64px; } .mrow__games { display: none; } }

.st-regions__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-soft); }
.st-regions__tiles .st-tile__num { font-size: 1.9rem; }
.regions { padding: 0.4rem 0 0.6rem; }
.region { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 2.2rem; align-items: center; gap: 0.8rem; padding: 0.45rem 1.25rem; }
.region__label { font-size: 0.95rem; }
.region__n { font-weight: 800; text-align: right; }

/* ============ stats: status, pending ============================================================= */
.st-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.st-line { display: grid; gap: 0.6rem; align-content: start; }
.st-line__n { font-size: 2.6rem; line-height: 1; }
.st-build { grid-column: 1 / -1; }
.lm { display: grid; grid-template-columns: 132px minmax(0, 1fr); overflow: hidden; }
.lm__art { height: 100%; min-height: 118px; }
.lm__body { display: grid; gap: 0.35rem; align-content: start; padding: 0.85rem 1rem; min-width: 0; }
.lm__tags { gap: 0.4rem; }
.lm__map { font-size: 1.15rem; line-height: 1.2; }
.lm__sides { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; font: 400 1rem/1.3 var(--marker); }
.lm__team .pname { color: var(--acc); }
.lm__vs { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; }
.st-pending { margin-top: 1.5rem; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); }
.st-pending__in { position: relative; display: grid; gap: 1.1rem; max-width: 40rem; }
.st-pending h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.12; }
.st-pending__burst { position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; opacity: 0.9; }
@media (max-width: 760px) { .st-pending__burst { width: 220px; height: 220px; right: -80px; top: -70px; opacity: 0.5; } }

/* ============ home ============================================================================ */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--haunted-ink); padding: clamp(1.8rem, 4.5vw, 4.2rem) 0 clamp(3.4rem, 6vw, 5.4rem); }
.hm-hero__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: center; }
.hm-h1 { margin: 0; line-height: 0; }
.hm-wordmark { width: min(100%, 760px); height: auto; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.hm-cta__play { min-width: 12rem; }
.hm-hero__side { position: relative; }
.hm-stickers { position: relative; height: clamp(250px, 24vw, 360px); }
.hm-st { position: absolute; aspect-ratio: 16 / 9; }
.hm-st--a { width: 76%; right: 0; top: 0; transform: rotate(2.2deg); z-index: 3; }
.hm-st--b { width: 50%; left: 0; top: 12%; transform: rotate(-3deg); z-index: 2; }
.hm-st--c { width: 44%; left: 18%; bottom: 0; transform: rotate(-1.2deg); z-index: 4; }
.hm-burst { position: absolute; z-index: 1; left: -14%; top: 26%; width: 52%; height: auto; aspect-ratio: 1; animation-delay: 0.45s; }
.hm-pitch { position: relative; z-index: 5; margin: -2.2rem 0 0 10%; padding: 1.3rem 1.4rem 1.4rem; }
.hm-pitch__desc { font: 400 clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem)/1.35 var(--marker); }
.hm-pitch__line { font: 600 1.0625rem/1.5 var(--cond); color: var(--muted); margin-top: 0.45rem; max-width: 46ch; }
.hm-coming { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.15; margin: 1.1rem 0 0.8rem; }
.hm-live .sh h2 { display: flex; align-items: center; gap: 0.55rem; }
.hm-live .sh h2 .dot { width: 0.5em; height: 0.5em; }
.hm-pulse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.3rem 1.4rem; align-content: center; }
.hm-pulse__n { display: grid; }
.hm-pulse__n .mk { font-size: clamp(2.8rem, 2rem + 2.4vw, 4rem); line-height: 1.05; }
.hm-pulse__build { grid-column: 1 / -1; }
.hm-q__row { display: grid; grid-template-columns: minmax(7rem, 9rem) 3.6rem auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--rule-soft); }
.hm-q__row:first-child { border-top: 0; }
.hm-q__name { font-size: 1.2rem; }
.hm-q__n { font-size: 1.35rem; }
.hm-q__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-on { margin-top: 1.25rem; }
.hm-ladders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.lad { padding: 1.1rem 1.25rem 1.2rem; }
.lad__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.4rem; }
.lad__head h3 { font-size: 1.25rem; }
.lad__row { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid var(--rule-soft); }
.lad__row.is-first { border-top: 0; padding: 0.4rem 0 0.9rem; }
.lad__row.is-first .who__name { font-size: 1.45rem; }
.lad__rank { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; font-size: 0.95rem; color: var(--muted); }
.lad__row.is-first .lad__rank { color: var(--ink); background: var(--text); border-radius: 5px; transform: rotate(-5deg); }
.lad__right { display: grid; justify-items: end; gap: 0.25rem; }
.lad__rating { font-size: 1.15rem; }
.lad__row.is-first .lad__rating { font-size: 1.7rem; line-height: 1.1; }
@media (max-width: 1000px) {
  .hm-hero__in { grid-template-columns: minmax(0, 1fr); }
  .hm-pitch { margin: -1.6rem 0 0 0; }
}
@media (max-width: 640px) {
  .hm-cta .btn { flex: 1 1 auto; }
  .hm-cta__play { flex-basis: 100%; }
  .hm-stickers { height: 54vw; }
  .hm-q__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.35rem 0.8rem; }
  .hm-q__row .seats { grid-column: 1 / -1; grid-row: 2; }
  .hm-q__who { grid-column: 1 / -1; }
  .hm-q__row .tag { justify-self: start; }
  .lad__row.is-first .av { --av: 46px; }
}

/* ============ the queue desk ===================================================================== */
.qd-head { padding-top: clamp(1.8rem, 4vw, 3.2rem); display: grid; gap: 0.3rem; }
.qd-head .lede { margin-top: 0.5rem; }
.qd { display: grid; gap: 1.25rem; margin-top: 1.8rem; }
.qd-slot { display: grid; gap: 1.25rem; min-width: 0; }
.qd-slot:empty { display: none; }
.qd-slot > .sh { margin: 1rem 0 0; }
.gate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem 1.4rem; padding: clamp(1.2rem, 3vw, 2rem); }
.gate__step { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; font: 800 1.7rem/1 var(--cond); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--void-soot); }
.gate__step--done { background: var(--teal); }
.gate__step .glyph { width: 1.7rem; height: 1.7rem; }
.gate__body { display: grid; gap: 0.85rem; justify-items: start; min-width: 0; }
.gate__h { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.15 var(--marker); text-transform: uppercase; }
.gate__p { font: 600 1.0625rem/1.5 var(--cond); color: var(--muted); max-width: 62ch; }
.gate__p b { color: var(--text); font-weight: 400; }
.gate__code { display: grid; gap: 0.15rem; }
.gate__big { font-size: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem); line-height: 1.05; overflow-wrap: anywhere; }
.gate__line { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; max-width: 100%; }
.gate__line code { font: 700 1.2rem/1.3 var(--cond); color: var(--text); background: var(--haunted-ink); border: 2px solid var(--edge); border-radius: var(--r-chip); padding: 0.45rem 0.8rem; overflow-wrap: anywhere; }
.gate__wait { display: flex; align-items: center; gap: 0.7rem; font: 600 1rem/1.3 var(--cond); color: var(--muted); }
.gate__wait .scribble { margin: 0; width: 56px; height: 20px; }
@media (max-width: 560px) { .gate { grid-template-columns: minmax(0, 1fr); } .gate .btn--big { width: 100%; white-space: normal; } }
.qd-notice h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; margin-bottom: 0.4rem; }
.qd-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.qd-alert { display: inline-flex; align-items: center; gap: 0.45rem; }
.qd-alert .glyph { width: 1.1em; height: 1.1em; }
.qd-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.qline { display: grid; gap: 0.75rem; padding: 1.2rem 1.25rem 1.25rem; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.qline.is-mine { border-color: var(--teal); box-shadow: 4px 4px 0 var(--dead-teal); }
.qline__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.qline__name { font: 400 clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem)/1.1 var(--marker); text-transform: uppercase; }
.qline__count { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.qline__n { font-size: 3.5rem; line-height: 1; }
.qline__n b { font-weight: 400; }
.qline__of { color: var(--muted); font-size: 0.55em; }
.qline__who { font: 400 1rem/1.4 var(--marker); min-height: 1.4em; }
.qline__rule { font: 600 0.95rem/1.4 var(--cond); color: var(--muted); }
.qline__act { margin-top: 0.3rem; }
.qd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }

.mc { overflow: hidden; border-color: var(--coral); }
.mc__art { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7)); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7)); }
.mc__art img, .mc__art.is-live img { filter: saturate(0.95) brightness(0.45); }
/* the burst bleeds off the bottom right corner, clear of the clock and the words; on a phone the
   buttons fill the card, so the mark moves to the end of the title instead */
.mc__burst { position: absolute; z-index: -1; right: -70px; bottom: -120px; width: 330px; height: 330px; }
.mc__mark { display: none; }
.mc .btn--stop { background: var(--surface); }
@media (max-width: 700px) {
  .mc__burst { display: none; }
  .mc__mark { display: inline-block; width: 1.15em; height: 1.15em; margin: 0 0 -0.12em 0.18em; color: var(--coral); }
}
.mc__in { display: grid; gap: 1.15rem; padding: clamp(1.2rem, 3vw, 2rem); }
.mc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; flex-wrap: wrap; }
.mc__h { font: 400 clamp(2.2rem, 1.5rem + 2.8vw, 3.9rem)/1.05 var(--marker); text-transform: uppercase; text-shadow: -0.048em 0.038em 0 var(--ghost-rose), 0.058em -0.019em 0 var(--ghost-teal); }
.mc__sides { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.35rem; font-size: 1.35rem; flex-wrap: wrap; }
.mc__vs { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; }
.mc__clock { display: grid; justify-items: end; gap: 0.45rem; }
.mc__secs { font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); line-height: 1; }
.mc__drain { display: block; width: 12rem; height: 12px; border-radius: 7px; overflow: hidden; background: var(--rule-soft); border: 1.5px solid var(--muted); }
.mc__drain i { display: block; height: 100%; border-radius: 6px; background: var(--amber); }
.mc__players { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.mc__p { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem 0.3rem 0.35rem; font-size: 1.05rem; border: 2px solid var(--edge); border-radius: 999px; background: rgba(14, 12, 16, 0.55); }
.mc__tick { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px dashed var(--edge); }
.mc__p.is-ready .mc__tick { color: var(--ink); background: var(--teal); border: 2px solid var(--ink); }
.mc__tick .glyph { width: 0.95rem; height: 0.95rem; }
.mc__act { gap: 0.9rem; }
.mc__note { font: 600 1.125rem/1.45 var(--cond); max-width: 62ch; }
.mc__wait { display: grid; gap: 0.8rem; justify-items: start; }
.mc__code { display: grid; gap: 0.9rem; justify-items: start; }
.mc__codeRow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mc__codeBig { font-size: clamp(3.2rem, 2.2rem + 5vw, 6.4rem); line-height: 1; padding: 0.08em 0.32em 0.16em; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-mark); box-shadow: 4px 4px 0 var(--void-soot); transform: rotate(-1deg); }

.rq { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.2rem, 3vw, 2rem); margin-top: 1rem; }
.rq__h { font: 400 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.1 var(--marker); text-transform: uppercase; }
.rq__p { font: 600 1.0625rem/1.5 var(--cond); color: var(--muted); margin-top: 0.45rem; max-width: 52ch; }
.rq__state { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.85rem; font: 600 1.0625rem/1.4 var(--cond); }
.rq__act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.rq__act .fine { flex-basis: 100%; }
@media (max-width: 900px) { .rq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .rq__act .btn { flex: 1 1 100%; } .mc__act .btn { flex: 1 1 100%; } .mc__clock { justify-items: start; } }

/* ============ events ============================================================================ */
.ev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding-top: clamp(1.8rem, 4vw, 3.2rem); }
.ev-head .lede { margin-top: 0.5rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.ev-rows { display: grid; gap: 0.9rem; }
.ev-card { overflow: hidden; display: flex; flex-direction: column; }
.ev-card__art { aspect-ratio: 16 / 7; border-bottom: 2px solid var(--edge); }
.ev-card__body { display: grid; gap: 0.55rem; padding: 1rem 1.2rem 1.15rem; align-content: start; flex: 1; }
.ev-card__tags { gap: 0.4rem; }
.ev-card__title { font: 400 clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem)/1.15 var(--marker); }
.ev-card__title a { color: var(--text); text-decoration: none; }
.ev-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ev-card__title a:hover { color: var(--paint-teal); }
.ev-card__title a:focus-visible { outline: none; }
.ev-card:focus-within { outline: 3px solid var(--text); outline-offset: 3px; }
.ev-card__when { font: 600 1rem/1.35 var(--cond); }
.ev-card__fill { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.ev-card__fill .mk { font-size: 1.15rem; }
.ev-card.is-off { opacity: 0.72; }
.ev-card.is-live { border-color: var(--coral); }
.ev-card--row { flex-direction: row; }
.ev-card--row .ev-card__art { width: 210px; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--edge); flex: none; }
@media (max-width: 640px) { .ev-card--row { flex-direction: column; } .ev-card--row .ev-card__art { width: 100%; aspect-ratio: 16 / 6; border-right: 0; border-bottom: 2px solid var(--edge); } }
.host { position: relative; z-index: 2; display: inline-flex; align-items: baseline; gap: 0.35em; padding: 0.14em 0.5em 0.2em; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 6px; transform: rotate(-1.5deg); font: 400 0.8125rem/1.2 var(--marker); white-space: nowrap; }
.host__by { font: 800 0.625rem/1 var(--cond); opacity: 0.7; }
.ev-none { display: grid; gap: 0.9rem; justify-items: start; margin-top: 2rem; }
.ev-none h2 { font-size: 1.9rem; }

.ev-hero, .pl-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--haunted-ink); padding: 1.3rem 0 3.1rem; }
.ev-hero__art, .pl-hero__art { position: absolute; inset: 0; z-index: -1; background: transparent; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, #000 75%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, #000 75%); }
.ev-hero__art img, .pl-hero__art img { filter: saturate(0.05) brightness(0.36); }
.ev-hero__art.is-live img { filter: saturate(0.95) brightness(0.36); }
.ev-hero__art::after, .pl-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--haunted-ink), transparent 60%); }
.ev-back { display: inline-flex; align-items: center; gap: 0.3rem; }
.ev-back .glyph { width: 1em; height: 1em; }
.ev-hero__tags { margin: 1.4rem 0 0.4rem; gap: 0.45rem; }
.ev-facts { display: flex; flex-wrap: wrap; gap: 0.9rem 2.4rem; margin: 1.3rem 0 0; }
.ev-fact dd { margin: 0.15rem 0 0; display: grid; }
.ev-fact__v { font: 400 1.1rem/1.3 var(--marker); }
.ev-actions { margin-top: 1.5rem; gap: 0.9rem; }
.ev-why { font: 600 1.0625rem/1.4 var(--cond); color: var(--muted); }
.ev-staff { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: 1.1rem; padding: 0.55rem 0.75rem; border: 2px dashed var(--edge); border-radius: var(--r-chip); background: rgba(14, 12, 16, 0.5); }
.ev-body { display: grid; gap: 1.25rem; margin-top: 1.6rem; }
.ev-about { display: grid; gap: 0.8rem; align-content: start; justify-items: start; }
.ev-about h2, .ev-entrants h2 { font-size: 1.4rem; }
.ev-rules-h { font-size: 1.1rem; margin-top: 0.5rem; color: var(--muted); }
.ev-p { font: 500 1.0625rem/1.55 var(--cond); max-width: 68ch; }
.ent__row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.5rem 1.25rem; border-top: 1px solid var(--rule-soft); }
.ent__row:first-child { border-top: 0; }
.ent__seed { font-size: 0.95rem; color: var(--muted); text-align: center; }
.ent__rating { font: 700 0.95rem/1 var(--cond); color: var(--muted); }

.champ { display: flex; align-items: center; overflow: hidden; min-height: 116px; padding: 1.2rem 1.5rem; }
.champ__burst { position: absolute; right: -10px; top: -64px; width: 250px; height: 250px; }
.champ__in { position: relative; display: grid; gap: 0.45rem; }
.champ .who__name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.br-panel { overflow: hidden; }
.br__scroll { overflow-x: auto; padding: 1.2rem 1.25rem 1.5rem; }
.br { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 3.4rem; min-width: min-content; }
.br__lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.br__round { display: flex; flex-direction: column; min-width: 0; }
.br__name { font-size: 0.95rem; color: var(--muted); text-transform: uppercase; margin-bottom: 0.8rem; }
.br__matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 1.1rem; }
.br__m { position: relative; z-index: 1; overflow: hidden; background: var(--raised); border: 2px solid var(--edge); border-radius: var(--r-mark); box-shadow: var(--sh-control); }
.br__m.is-live { border-color: var(--coral); }
.br__m.is-mine { outline: 2px solid var(--teal); outline-offset: 2px; }
.br__m.is-final { border-width: 3px; }
.br__slot { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0.4rem 0.7rem; font: 400 1rem/1.2 var(--marker); }
.br__slot + .br__slot { border-top: 1px solid var(--rule-soft); }
.br__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br__seed { font: 800 0.8rem/1 var(--cond); color: var(--muted); }
.br__score { font-size: 1.1rem; }
.br__slot.is-win { color: var(--ink); background: var(--acc); }
.br__slot.is-win .pname, .br__slot.is-win .br__seed { color: var(--ink); }
.br__slot.is-lose .pname, .br__slot.is-lose .br__score { color: var(--muted); }
.br__slot.is-lose .pname { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(183, 176, 166, 0.55); }
.br__foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.7rem; border-top: 1px solid var(--rule-soft); background: rgba(14, 12, 16, 0.35); }
.br__report { margin-left: auto; font-size: 0.8125rem; }
.br__hint { display: none; }
@media (max-width: 900px) { .br__hint { display: inline; color: var(--text); } }
.br__waiting { font-size: 0.8125rem; }

.dlg { position: fixed; inset: 0; margin: auto; width: min(92vw, 30rem); height: fit-content; max-height: 90vh; padding: 1.5rem; color: var(--text); }
.dlg::backdrop { background: rgba(14, 12, 16, 0.75); }
.dlg__form { display: grid; gap: 1.1rem; }
.dlg__form h2 { font-size: 1.6rem; }
.dlg__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.evf { display: grid; gap: 1rem; }
.evf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.5rem; }
.evf__wide { grid-column: 1 / -1; }
.evf__artrow { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; align-items: end; }
.evf__preview .art { aspect-ratio: 16 / 9; }
.evf__act { margin-top: 0.4rem; }
@media (max-width: 700px) { .evf__grid, .evf__artrow { grid-template-columns: minmax(0, 1fr); } }

/* ============ player ============================================================================ */
.pl-hero__in { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding-top: 2.2rem; }
.pl-hero__text { min-width: 0; }
.pl-name { text-transform: none; }
.pl-tags { margin-top: 0.7rem; gap: 0.55rem; }
.pl-body { margin-top: 1.6rem; }
.pl-ladders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.25rem; }
.lcard { display: grid; gap: 0.95rem; padding: 1.15rem 1.3rem; }
.lcard__head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.lcard__name { font-size: 1.2rem; color: var(--text); text-decoration: none; text-transform: uppercase; }
a.lcard__name:hover { color: var(--paint-teal); }
.lcard__main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.lcard__rating { display: grid; }
.lcard__rating .mk { font-size: 3.3rem; line-height: 1; }
.lcard__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.lcard__facts dd { margin: 0; }
.lcard__facts .mk { font-size: 1.3rem; line-height: 1.2; }
.lcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding-top: 0.85rem; border-top: 1px solid var(--rule-soft); }
.lcard__streak { font-size: 0.875rem; }
.pl-pair { margin-top: 1.25rem; }
.pl-wpn { margin-top: 1.25rem; }
@media (max-width: 520px) { .pl-hero__in { flex-direction: column; align-items: flex-start; } .lcard__main { grid-template-columns: minmax(0, 1fr); } }

/* ============ account ============================================================================ */
.me-head { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.8rem); padding-top: clamp(1.8rem, 4vw, 3.2rem); }
.me-head .row { margin-top: 0.6rem; }
.me { display: grid; gap: 1.25rem; margin-top: 1.8rem; max-width: 62rem; }
.me-region, .me-out { display: grid; gap: 0.45rem; justify-items: start; }
.me-region h2, .me-out h2 { font-size: 1.5rem; }
.me-region .radios { margin-top: 0.5rem; }
.me-out .btn { margin-top: 0.5rem; }

/* ============ lost ============================================================================== */
.lost { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 74vh; }
.lost__art { position: absolute; inset: 0; z-index: -1; background: transparent; }
.lost__art img { filter: saturate(0.05) brightness(0.3); }
.lost__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 8%, rgba(33, 26, 38, 0.4) 70%); }
.lost__in { padding-top: 4rem; padding-bottom: 4rem; display: grid; gap: 0.6rem; }
.lost__title { font-size: clamp(3rem, 1.8rem + 6vw, 7.2rem); max-width: 12ch; }
.lost__act { margin-top: 1.4rem; }
