/* Arc stats — MineHQ-style light theme, in the mark's colours: a neutral grey page,
   near-white cards, light-blue header strips, condensed uppercase type. The --maroon/--red
   names are inherited from the old warm palette and now describe roles rather than hues;
   they are spelled the same across statsweb/storeweb/siteweb so the three stay diffable. */
:root {
  --bg: #f0f0f1;
  --card: #fbfbfc;
  --line: #e2e2e4;
  --ink: #3c3f44;
  --ink-strong: #26282c;
  --muted: #9a9da3;
  --maroon: #2ba0d2;      /* panel-header, the mark's deep blue */
  --maroon-deep: #1a7fa9;
  --red: #3fb2e6;         /* primary accent, the mark's light blue */
  --red-dark: #1b83b2;
  --link: #1b83b2;
  --win: #3f9e6b;
  --loss: #d9503c;
  --gold: #efb45a;
  --banner: linear-gradient(135deg, #8ecdf0 0%, #3fb2e6 55%, #1f88b8 100%);
  --slot: #35383d;
  --slot-border: #4a4e55;
  --shadow: 0 1px 3px rgba(0, 0, 0, .10);
  --mono: "SF Mono", Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-color: #c8c8c8 var(--bg); }
body {
  background: var(--bg); color: var(--ink); min-height: 100vh;
  font-family: "Montserrat", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 14px; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ---- top bar ---- */
.topbar {
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  position: sticky; top: 0; z-index: 5;
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 52px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 7px; color: var(--red); }
/* The mark alone, no tile. Its lower half is white and the bar is nearly white, so that half
 * goes quiet here — the blue half carries the silhouette, which is the trade every
 * transparent version of this logo makes (see the launcher's icon.svg for the same note). */
/* Two stacked drop-shadows, not one: the first is a tight halo that traces the whole
 * silhouette (a zero-offset blur of 1px reads as an outline), the second is an ordinary soft
 * shadow under it for depth. The second is applied to the result of the first, which is what
 * makes the pair darken the edge enough for the white half to separate from the bar. */
.brand-mark {
  width: 26px; height: 26px; object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(40, 44, 50, .5)) drop-shadow(0 1px 2px rgba(20, 24, 30, .32));
}
.brand-name {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red); text-shadow: 1px 1px 0 rgba(0, 0, 0, .15); font-style: italic;
}
/* The wordmark is the address, so the dot is the part that makes it one: the same blue the
 * mark carries, against a name that is otherwise the site's own colour. */
.brand-dot { color: #2d9fd0; }

.topnav { display: flex; gap: 22px; }
.topnav a {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-strong); padding: 6px 0;
}
.topnav a:hover, .topnav a.on { color: var(--red); }
.search { position: relative; margin-left: auto; width: min(230px, 40vw); }
.search-icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 13px; height: 13px; color: var(--muted); }
.search input {
  width: 100%; padding: 8px 14px 8px 32px; font: inherit; font-size: .78rem;
  background: #f1f1f1; color: var(--ink);
  border: 1px solid #e4e4e4; border-radius: 999px; outline: none;
}
.search input:focus { border-color: #d0d0d0; background: #fff; }
.search input::placeholder { color: var(--muted); letter-spacing: .04em; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: #fff; border-radius: 3px; box-shadow: 0 4px 16px rgba(0, 0, 0, .16); overflow: hidden;
}
.sg {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px; cursor: pointer;
  font-size: .76rem; font-weight: 700; color: var(--ink-strong); letter-spacing: .04em;
}
.sg img { width: 20px; height: 20px; border-radius: 2px; image-rendering: pixelated; }
.sg.active, .sg:hover { background: #e7f4fb; color: var(--red); }

/* ---- footer ---- */
.footer { background: #232529; margin-top: 44px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 26px 20px;
  display: flex; align-items: baseline; gap: 12px;
}
.footer-brand { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.footer-sub { color: #6e737d; font-size: .76rem; font-family: var(--mono); }
.footer-legal {
  max-width: 1160px; margin: 0 auto; padding: 0 20px 24px;
  color: #4b5058; font-size: .64rem; line-height: 1.7; letter-spacing: .04em;
}

main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 26px 20px 10px; }

.loading { display: flex; justify-content: center; padding: 70px 0; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { text-align: center; padding: 60px 0; color: var(--ink); }
.error-box h2 {
  color: var(--ink-strong); margin-bottom: 8px; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 800;
}
.error-box p { color: var(--muted); font-size: .85rem; }

/* ---- panels: white card + light-blue header strip ---- */
.panel { background: var(--card); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; }
.panel + .panel, .panel + .info-row, .info-row + .panel { margin-top: 22px; }
.panel-head {
  background: var(--maroon); color: #fff; text-align: center;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .24em;
  padding: 11px 16px;
}
.panel-head.left { text-align: left; letter-spacing: .18em; }
.panel-body { padding: 16px; }

/* ---- home hero ---- */
.hero {
  border-radius: 3px; overflow: hidden; box-shadow: var(--shadow);
  /* The mark's own ramp, blown up: pale sky at the top left where its light falls, deep blue
     under it. The two radials are what stop a three-stop fade reading as a flat swatch. */
  background:
    radial-gradient(700px 320px at 62% 30%, rgba(178, 224, 255, .45), transparent 70%),
    radial-gradient(520px 300px at 30% 75%, rgba(24, 118, 166, .34), transparent 70%),
    linear-gradient(150deg, #8fd4fe 0%, #46b4e8 52%, #1f88b8 100%);
  text-align: center; padding: 62px 20px 66px; color: #fff;
}
.hero-mark { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.hero h1 {
  margin-top: 18px; font-size: 1.6rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; text-indent: .3em;
}
.hero p {
  margin-top: 10px; color: rgba(255, 255, 255, .42); font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .42em; text-indent: .42em;
}

/* ---- info row under hero ---- */
.info-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; margin-top: 22px; }
.info-cell {
  background: var(--card); border-radius: 3px; box-shadow: var(--shadow); cursor: pointer;
  padding: 13px 16px; text-align: center; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-strong);
  border: 0; font-family: inherit;
}
.info-cell:hover { color: var(--red); }
.info-cell .ok-dot { color: var(--win); margin-right: 6px; }
.info-cell.static { cursor: default; color: var(--ink); }
.info-cell.static:hover { color: var(--ink); }
.info-cell.cta { background: var(--red); color: #fff; }
.info-cell.cta:hover { background: var(--red-dark); color: #fff; }

/* ---- match rows (MineHQ "X vs Y" banners) ---- */
.match-list { display: flex; flex-direction: column; gap: 10px; }
.panel .match-list { padding: 14px; }
.match-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 13px 18px; cursor: pointer; border-radius: 3px; overflow: hidden;
  background: var(--banner); color: #fff;
  box-shadow: var(--shadow); transition: filter .12s;
}
.match-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 140px at 18% 50%, rgba(255, 255, 255, .06), transparent 70%);
}
.match-card:hover { filter: brightness(1.12); }
.match-card .result {
  flex: 0 0 auto; font-weight: 800; font-size: .62rem; letter-spacing: .12em;
  padding: 3px 9px; border-radius: 2px; text-transform: uppercase;
}
.result.win { color: #fff; background: var(--win); }
.result.loss { color: #fff; background: var(--loss); }
.result.neutral { display: none; }
.match-card .mc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc-side { display: inline-flex; align-items: center; gap: 7px; }
.mc-side .head { width: 22px; height: 22px; border-radius: 2px; image-rendering: pixelated; }
.mc-side a, .mc-side b {
  font-weight: 800; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: #fff;
}
.mc-side a:hover { color: var(--gold); }
.mc-vs { color: rgba(255, 255, 255, .45); font-weight: 800; font-size: .7rem; text-transform: uppercase; }
.match-card .mc-meta { text-align: right; flex-shrink: 0; line-height: 1.5; }
.mc-meta .kit { font-size: .74rem; font-weight: 700; color: rgba(255, 255, 255, .9); letter-spacing: .04em; }
.mc-meta .sub { color: rgba(255, 255, 255, .4); font-size: .68rem; }
.load-more {
  margin: 0 auto; display: block; width: 100%; padding: 10px; font-family: inherit; font-size: .7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  background: #f7f7f7; color: var(--ink); border: 0; border-top: 1px solid var(--line); cursor: pointer;
}
.load-more:hover { color: var(--red); }
.empty { color: var(--muted); text-align: center; padding: 34px 0; font-size: .85rem; }

/* ---- player profile (MineHQ sidebar layout) ---- */
.profile-banner {
  border-radius: 3px; box-shadow: var(--shadow);
  background:
    radial-gradient(600px 200px at 70% 40%, rgba(63, 178, 230, .34), transparent 70%),
    linear-gradient(120deg, #383b42, #1c1e22);
  color: #fff; text-align: center; padding: 26px 20px;
  display: flex; align-items: center; justify-content: center; gap: 13px;
}
.profile-banner .head { width: 30px; height: 30px; border-radius: 2px; image-rendering: pixelated; }
.profile-banner h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; }
.profile-grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--card); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; }
.side-card .strip {
  background: #b9bec3; color: #fff; text-align: center; padding: 8px 12px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em;
}
.side-avatar { padding: 26px 16px 18px; text-align: center; }
.side-avatar .avatar { width: 110px; height: 110px; border-radius: 50%; background: #f0f0f0; image-rendering: pixelated; box-shadow: 0 0 0 5px #f0f0f0; }
/* A rank the player earned rings their head in its colour. The head's existing 5px
   halo becomes the gap, so the ring reads as a ring; --rank is set inline per player,
   and the fallback covers a rank whose colour Breeze stores as a legacy code. */
.side-avatar .avatar.ranked {
  --rank: var(--maroon);
  box-shadow: 0 0 0 5px #f0f0f0, 0 0 0 8px var(--rank), 0 0 18px -2px var(--rank);
}
.side-avatar .nm { margin-top: 14px; font-weight: 800; font-size: 1.05rem; color: var(--ink-strong); }
.rank-bar {
  background: #b9bec3; color: #fff; text-align: center; padding: 7px 12px;
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em;
}
.side-stats { padding: 13px 16px; text-align: center; }
.side-stats .h { color: var(--muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.side-stats .r { margin-top: 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.side-stats .r + .r { margin-top: 5px; }
.side-uuid { padding: 0 16px 13px; text-align: center; color: var(--muted); font-size: .6rem; font-family: var(--mono); word-break: break-all; }
.punish-banner {
  background: var(--red); color: #fff; border-radius: 3px; box-shadow: var(--shadow);
  padding: 11px 14px; text-align: center; font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; line-height: 1.7;
}

/* profile main column */
.profile-main { min-width: 0; }
.tabs {
  background: var(--card); border-radius: 3px; box-shadow: var(--shadow);
  display: flex; justify-content: center; gap: 6px; padding: 10px;
}
.tabs span {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  padding: 6px 14px; border-radius: 2px; color: var(--muted);
}
.tabs span.active { background: #b9bec3; color: #fff; }
.profile-main .panel { margin-top: 22px; }

/* dark stat cards (MineHQ statistics style) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 14px; margin-top: 22px; }
.tile {
  border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); text-align: center;
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(63, 178, 230, .26), transparent 75%),
    linear-gradient(160deg, #303338, #1b1d20);
  color: #fff; padding: 16px 10px 14px;
}
.tile .l {
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .22em;
  color: rgba(255, 255, 255, .85);
}
.tile .v {
  margin-top: 9px; font-size: 1.05rem; font-weight: 700;
  background: rgba(0, 0, 0, .28); border-radius: 2px; padding: 5px 8px; display: inline-block; min-width: 72px;
}
.tile .v.win-ink { color: var(--win); }
.tile .v.loss-ink { color: var(--loss); }
.tile .s { margin-top: 6px; color: rgba(255, 255, 255, .38); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }

/* kit table inside a panel */
.table-scroll { overflow-x: auto; }
.kit-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.kit-table th {
  text-align: left; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .14em;
  padding: 11px 16px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.kit-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-strong); }
.kit-table tr:last-child td { border-bottom: 0; }
.kit-table tr:nth-child(even) td { background: #fafafa; }
.kit-table .num { font-family: var(--mono); font-weight: 500; }
.wr-bar { display: inline-block; width: 74px; height: 5px; background: #ececec; border-radius: 3px; overflow: hidden; vertical-align: 2px; margin-left: 8px; }
.wr-bar i { display: block; height: 100%; background: var(--red); }
/* A current run that equals the all-time best for that kit. */
.streak-record { color: #b8860b; font-weight: 700; white-space: nowrap; }

/* ---- match page ---- */
.match-head {
  border-radius: 3px; box-shadow: var(--shadow); color: #fff;
  background:
    radial-gradient(600px 200px at 70% 40%, rgba(63, 178, 230, .34), transparent 70%),
    linear-gradient(120deg, #383b42, #1c1e22);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.match-head h1 { font-size: 1.1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-head .meta { color: rgba(255, 255, 255, .55); font-size: .74rem; margin-top: 6px; display: flex; gap: 16px; flex-wrap: wrap; font-weight: 600; }
.match-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.match-head .when { margin-left: auto; text-align: right; color: rgba(255, 255, 255, .4); font-size: .72rem; line-height: 1.7; font-weight: 600; }
.badge {
  display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .14em;
  padding: 3px 8px; border-radius: 2px; background: rgba(255, 255, 255, .14); color: #fff;
  text-transform: uppercase; vertical-align: 2px;
}
.badge.type { background: var(--red); }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr)); gap: 22px; margin-top: 22px; }
.player-panel { background: var(--card); border-radius: 3px; box-shadow: var(--shadow); overflow: hidden; }
.player-panel .pp-bar {
  background: var(--maroon); color: #fff; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.player-panel.winner .pp-bar { background: linear-gradient(120deg, #1f7a4c, #17603b); }
.pp-bar .head { width: 24px; height: 24px; border-radius: 2px; image-rendering: pixelated; }
.pp-bar .nm a { font-weight: 800; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.pp-bar .nm a:hover { color: var(--gold); }
.pp-bar .tag {
  margin-left: auto; font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0, 0, 0, .25); padding: 3px 8px; border-radius: 2px;
}
.pp-inner { padding: 14px 16px 16px; }
.pp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: .6rem; font-weight: 800; padding: 3px 9px; border-radius: 2px;
  letter-spacing: .1em; text-transform: uppercase; background: #eef0f2; color: var(--ink);
}
.chip.win { color: #fff; background: var(--win); }
.chip.loss { color: #fff; background: var(--loss); }
.chip.ping { font-family: var(--mono); font-weight: 600; }
.chip.left { color: #fff; background: var(--gold); }
.chip.team-0 { color: #fff; background: #d95c5c; }
.chip.team-1 { color: #fff; background: #5c8bd9; }
.hp { margin-left: auto; text-align: right; }
.pp-head-row { display: flex; align-items: center; }
.hp .hearts { color: var(--loss); font-size: .82rem; letter-spacing: 1px; }
.hp .hpl { color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; font-weight: 700; }
.pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin-top: 14px; }
.pp-stat { background: #f6f7f8; border-radius: 2px; padding: 8px 10px; text-align: center; }
.pp-stat .v { font-weight: 800; font-size: .95rem; color: var(--ink-strong); }
.pp-stat .l { color: var(--muted); font-size: .56rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; font-weight: 700; }
.pp-effects { margin-top: 12px; font-size: .72rem; display: flex; gap: 6px; flex-wrap: wrap; }
.pp-effects span { background: #f0f1f3; border-radius: 2px; padding: 3px 9px; font-weight: 600; }
.pp-left-note { margin-top: 14px; color: var(--muted); font-size: .8rem; font-style: italic; }

/* ---- inventory (kept dark: it's Minecraft) ---- */
.inv { margin-top: 16px; background: #1f2126; border-radius: 3px; padding: 12px; }
.inv-label { color: #7d8496; font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; margin: 10px 0 5px; font-weight: 800; }
.inv-label:first-child { margin-top: 0; }
.inv-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.inv-grid.armor { grid-template-columns: repeat(4, minmax(0, 38px)); }
.slot {
  aspect-ratio: 1; background: var(--slot); border: 1px solid var(--slot-border); border-radius: 2px;
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0;
}
.slot img { width: 78%; height: 78%; object-fit: contain; image-rendering: pixelated; }
.slot.enchanted { border-color: #7d5fff; box-shadow: inset 0 0 7px rgba(125, 95, 255, .35); }
.slot .amt {
  position: absolute; right: 2px; bottom: 1px; font-family: var(--mono); font-size: .68rem; font-weight: 700;
  color: #fff; text-shadow: 1px 1px 0 #000; pointer-events: none;
}
.slot .dot { position: absolute; left: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(0,0,0,.4); }
.slot .dura { position: absolute; left: 3px; right: 3px; bottom: 2px; height: 2px; border-radius: 1px; background: #000; }
.slot .dura i { display: block; height: 100%; border-radius: 1px; }
.slot .fallback {
  font-size: .52rem; color: #aab2c4; text-align: center; line-height: 1.15; padding: 2px;
  overflow: hidden; word-break: break-word;
}

/* ---- 3D replay viewer (EXPERIMENTAL) ---- */
.btn-replay3d {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 11px 22px; border-radius: 2px; font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .16em;
  background: var(--red); color: #fff; box-shadow: var(--shadow);
}
.btn-replay3d:hover { background: var(--red-dark); }
.badge.beta { background: var(--gold); }
.perk-lock {
  display: inline-flex; flex-direction: column; gap: 5px; margin-top: 22px;
  padding: 13px 22px; border-radius: 2px; background: var(--card);
  border: 1px dashed var(--line); box-shadow: var(--shadow);
}
.perk-title {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
}
.perk-sub { font-size: .82rem; color: var(--muted); }
.perk-link { font-size: .78rem; font-weight: 800; color: var(--gold); }
.perk-link:hover { color: var(--red); }
.rv-root { display: flex; flex-direction: column; gap: 10px; }
.rv-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 0; color: var(--muted); }
.rv-head { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; }
.rv-back { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.rv-back:hover { color: var(--red); }
.rv-arena { color: var(--muted); font-size: .78rem; margin-left: auto; font-family: var(--mono); }
.rv-stage { position: relative; height: min(72vh, 640px); border-radius: 3px; overflow: hidden; background: #101216; box-shadow: var(--shadow); }
.rv-canvas { width: 100%; height: 100%; display: block; }
.rv-hud { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.rv-player { display: flex; align-items: center; gap: 8px; background: rgba(5, 7, 12, .72); border-radius: 3px; padding: 5px 10px; font-size: .8rem; color: #fff; }
.rv-player i { width: 9px; height: 9px; border-radius: 3px; }
.rv-player span { color: #9aa5bd; font-family: var(--mono); font-size: .74rem; }
.rv-player .rv-dead { color: var(--loss); font-weight: 700; }
.rv-bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 12px;
  background: rgba(5, 7, 12, .78); border-radius: 3px; padding: 8px 14px;
  backdrop-filter: blur(6px); color: #fff;
}
.rv-play, .rv-soundbtn, .rv-flybtn { font: inherit; width: 34px; height: 30px; border-radius: 2px; border: 1px solid #3a4052; background: #2a2f3c; color: #fff; cursor: pointer; }
.rv-flybtn.on { background: var(--red); border-color: var(--red); }
.rv-scrub { flex: 1; accent-color: var(--red); }
.rv-time { font-family: var(--mono); font-size: .78rem; color: #9aa5bd; white-space: nowrap; }
.rv-speed { font: inherit; font-size: .8rem; background: #2a2f3c; color: #fff; border: 1px solid #3a4052; border-radius: 2px; padding: 4px 6px; }

/* free-fly camera: prompt to enter, key legend while flying, crosshair at the centre */
.rv-fly {
  position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%);
  background: rgba(5, 7, 12, .72); border-radius: 3px; padding: 6px 12px; color: #d9dbdf;
  font-size: .76rem; font-family: var(--mono); white-space: nowrap; pointer-events: none;
}
.rv-fly b { color: #fff; font-weight: 700; }
.rv-cross { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -8px 0 0 -8px; pointer-events: none; opacity: .8; }
.rv-cross::before, .rv-cross::after { content: ''; position: absolute; background: #fff; mix-blend-mode: difference; }
.rv-cross::before { left: 7px; top: 0; width: 1px; height: 15px; }
.rv-cross::after { top: 7px; left: 0; height: 1px; width: 15px; }
.rv-stage.flying { cursor: none; }

/* ---- tooltip (Minecraft-style, stays dark) ---- */
.tooltip {
  position: fixed; z-index: 50; pointer-events: none; max-width: 260px;
  background: #100a18; border: 1px solid #3a2f66; border-radius: 3px; padding: 8px 11px;
  font-size: .8rem; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); color: #fff;
}
.tooltip .tt-name { font-weight: 700; }
.tooltip .tt-ench { color: #a99cf0; }
.tooltip .tt-sub { color: #8a90a0; font-size: .72rem; margin-top: 3px; }

@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  /* The nav stays rather than hiding: the same four links are the only way between
     the sites, and they are identical on all of them. */
  .topnav { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { font-size: .66rem; letter-spacing: .06em; white-space: nowrap; }
  .match-card .mc-meta { display: none; }
  .hero h1 { font-size: 1.15rem; }
  .hero p { letter-spacing: .24em; }
}
