@font-face {
  font-family: "Minecraft";
  src: url("./assets/minecraft-regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Minecraft";
  src: url("./assets/minecraft-bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Minecraft UI";
  src: url("./assets/minecraftia.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #020604;
  --panel: rgba(3, 12, 8, 0.9);
  --panel-hard: rgba(1, 8, 5, 0.96);
  --line: rgba(138, 255, 70, 0.42);
  --line-strong: rgba(138, 255, 70, 0.82);
  --text: #f4fff1;
  --muted: #b7c4b5;
  --acid: #96ff30;
  --cyan: #22e4ff;
  --amber: #ffd04a;
  --shadow: rgba(0, 0, 0, 0.42);
  --page-width: 1180px;
  --pixel-line: 1.32;
  --pixel-line-tight: 1.16;
  --font-display: "Minecraft", "Trebuchet MS", Arial, sans-serif;
  --font-ui: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  --surface-0: rgba(1, 7, 4, 0.95);
  --surface-1: rgba(3, 12, 8, 0.9);
  --surface-2: rgba(6, 20, 12, 0.82);
  --surface-contrast: rgba(0, 0, 0, 0.44);
  --border-soft: rgba(138, 255, 70, 0.28);
  --border-medium: rgba(138, 255, 70, 0.48);
  --border-hard: rgba(138, 255, 70, 0.78);
  --focus-ring: 0 0 0 2px rgba(150, 255, 48, 0.18);
  --glow-lime: 0 0 18px rgba(150, 255, 48, 0.22);
  --glow-cyan: 0 0 18px rgba(34, 228, 255, 0.2);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-0: 0;
  --motion-fast: 140ms ease;
  --motion-medium: 220ms ease;
  --motion-drawer: 360ms cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: var(--pixel-line);
  font-synthesis: none;
  text-rendering: geometricPrecision;
  image-rendering: pixelated;
}

h1,
h2,
.brand span,
.main-nav a.active,
.section-head,
.table-title,
.team-card-main,
.game-card-head,
.live-panel h2,
.active-game h2 {
  font-weight: 700;
}

body.live-open {
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-bg,
.page-tint {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  z-index: -3;
  background-image: url("./assets/end-island-bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(0.15px) brightness(0.72) saturate(1.46) contrast(1.04);
  opacity: 0.96;
  transform: scale(1.006);
}

.page-tint {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(1, 6, 4, 0.18), rgba(1, 6, 4, 0.56) 58%, rgba(2, 6, 4, 0.92) 100%),
    linear-gradient(90deg, rgba(138, 255, 70, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(138, 255, 70, 0.04) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 70px;
  padding: 0 24px;
  border-bottom: 2px solid var(--line);
  background: rgba(1, 8, 5, 0.92);
  backdrop-filter: blur(4px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand span {
  font-size: 20px;
  line-height: var(--pixel-line-tight);
  text-shadow: 3px 3px 0 #0b160d;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.main-nav a {
  min-width: 68px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 2px 12px 0;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  line-height: var(--pixel-line-tight);
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--line);
  color: var(--acid);
  background: rgba(150, 255, 48, 0.08);
}

.player-search {
  justify-self: end;
  width: min(310px, 100%);
  position: relative;
  z-index: 30;
}

.player-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-box {
  position: relative;
}

.player-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(138, 255, 70, 0.52);
  border-radius: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.36);
  outline: none;
  line-height: var(--pixel-line-tight);
}

.player-search input:focus {
  border-color: var(--acid);
  box-shadow: var(--focus-ring);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(360px, 100%);
  max-height: 318px;
  overflow: auto;
  border: 1px solid var(--cyan);
  background: var(--panel-hard);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.28);
}

.search-results[hidden] {
  display: none;
}

.search-results a,
.search-empty {
  min-height: 44px;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(34, 228, 255, 0.18);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: var(--pixel-line-tight);
}

.search-results a {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

.search-results a:hover,
.search-results a:focus {
  color: var(--acid);
  background: rgba(34, 228, 255, 0.08);
  outline: none;
}

.search-player {
  min-width: 0;
  overflow-wrap: anywhere;
}

.search-team {
  color: var(--team);
  font-size: 10px;
  text-transform: uppercase;
}

.search-empty {
  color: var(--muted);
}

main {
  min-height: calc(100vh - 70px);
}

.route {
  display: none;
}

.route.active {
  display: block;
}

.landing-hero {
  min-height: clamp(560px, 76vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 106px 24px 94px;
  text-align: center;
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #020704;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 7, 4, 0.03), rgba(2, 7, 4, 0.24) 56%, rgba(2, 6, 4, 0.86) 100%),
    url("./assets/end-island-bg.png");
  background-size: cover;
  background-position: center 48%;
  filter: brightness(0.88) saturate(1.42) contrast(1.08) blur(0.08px);
  transform: scale(1.015);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 5, 3, 0.38), transparent 26%, transparent 74%, rgba(1, 5, 3, 0.38)),
    linear-gradient(180deg, rgba(1, 6, 4, 0.08), transparent 44%, rgba(2, 6, 4, 0.9));
}

.hero-mark,
.landing-hero h1,
.event-countdown {
  position: relative;
  z-index: 1;
}

.hero-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(150, 255, 48, 0.32));
}

.landing-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(72px, 10vw, 146px);
  line-height: var(--pixel-line-tight);
  letter-spacing: 0;
  text-shadow: 8px 8px 0 #071006;
}

.event-countdown {
  margin: 28px 0 0;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 28px);
  line-height: var(--pixel-line);
  text-shadow: 4px 4px 0 #071006;
}

.event-countdown span {
  color: var(--acid);
}

.game-rail,
.score-room,
.teams-preview,
.content-page {
  width: min(var(--page-width), calc(100vw - 48px));
  margin-inline: auto;
}

.game-rail {
  margin-top: -54px;
  position: relative;
  z-index: 2;
}

.section-head,
.table-title,
.game-card-head,
.team-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-transform: uppercase;
}

.section-head {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(3, 12, 8, 0.9);
  line-height: var(--pixel-line-tight);
}

.section-head a,
.back-link {
  color: var(--cyan);
  text-decoration: none;
}

.section-head a:hover,
.back-link:hover,
.team-player-grid a:hover,
.score-name:hover {
  color: var(--acid);
}

.game-track {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(0, 0, 0, 0.42);
  scrollbar-color: var(--line-strong) rgba(0, 0, 0, 0.22);
}

.track-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(116px, 1fr));
}

.rail-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 10px;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 84%), rgba(0, 0, 0, 0.14));
}

.rail-card:hover {
  background: color-mix(in srgb, var(--accent), transparent 84%);
  border-color: var(--accent);
}

.game-mark {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: var(--pixel-line-tight);
}

.rail-name {
  font-size: 15px;
  line-height: var(--pixel-line-tight);
}

.rail-state {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
  line-height: var(--pixel-line-tight);
  text-transform: uppercase;
}

.score-room,
.teams-preview {
  margin-top: 64px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.score-table,
.team-card,
.game-card,
.text-panel,
.detail-card,
.live-panel,
.active-game,
.live-title-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.18);
}

.score-table {
  min-height: 416px;
}

.table-title {
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  line-height: var(--pixel-line-tight);
}

.table-title b {
  color: var(--amber);
  font-size: 11px;
  font-weight: 400;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.score-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.16);
  line-height: var(--pixel-line-tight);
}

.score-rank {
  color: var(--muted);
  text-align: right;
}

.score-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--team);
  text-decoration: none;
}

.score-name span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.score-points {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.team-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  display: inline-block;
  background: var(--team);
  box-shadow: 0 0 10px color-mix(in srgb, var(--team), transparent 44%);
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-card-grid.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
  border-color: color-mix(in srgb, var(--team), transparent 34%);
}

.team-card[hidden],
.game-card[hidden] {
  display: none;
}

.team-card-main {
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--team), transparent 58%);
  color: var(--team);
  text-decoration: none;
  line-height: var(--pixel-line-tight);
}

.team-card-main b {
  color: var(--text);
  font-weight: 400;
}

.team-card-body {
  padding: 18px 18px 20px;
}

.team-card h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 28px;
  line-height: var(--pixel-line-tight);
}

.team-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.team-player-grid a,
.team-detail-players a {
  min-width: 0;
  color: #d8e0d7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.player-link {
  min-height: 40px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  line-height: var(--pixel-line-tight);
}

.player-link:hover .player-head,
.player-link:focus .player-head {
  border-color: var(--acid);
}

.player-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-head {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--team), transparent 42%);
  color: #f4fff1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 25%, transparent 25% 50%, rgba(0, 0, 0, 0.18) 50% 75%, transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--head), #ffffff 12%), var(--head));
  box-shadow:
    inset 4px 4px 0 rgba(255, 255, 255, 0.08),
    inset -4px -4px 0 rgba(0, 0, 0, 0.38);
  font-size: 10px;
  line-height: var(--pixel-line-tight);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

.player-head.mini {
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 0;
}

.content-page {
  padding: 92px 0 90px;
}

.page-title {
  margin-bottom: 28px;
}

.page-title span,
.detail-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--acid);
  background: rgba(150, 255, 48, 0.08);
  text-transform: uppercase;
  font-size: 11px;
  line-height: var(--pixel-line-tight);
}

.page-title h1,
.detail-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 74px);
  line-height: var(--pixel-line-tight);
  letter-spacing: 0;
  text-shadow: 5px 5px 0 #071006;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  padding-bottom: 18px;
  border-color: color-mix(in srgb, var(--accent), transparent 42%);
}

.game-card-head {
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  line-height: var(--pixel-line-tight);
}

.game-card-head b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.game-card h2 {
  min-height: 64px;
  margin: 18px 16px 12px;
  color: var(--text);
  font-size: 24px;
  line-height: var(--pixel-line-tight);
}

.game-card p {
  min-height: 108px;
  margin: 0 16px 18px;
  color: #d8e0d7;
  line-height: 1.55;
}

.game-tags {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.game-tags span {
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 54%);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.24);
  font-size: 10px;
  line-height: var(--pixel-line-tight);
  text-transform: uppercase;
}

.text-panel,
.detail-card {
  padding: 28px;
}

.text-panel p,
.detail-card p {
  max-width: 760px;
  margin: 0 0 16px;
  color: #d8e0d7;
  line-height: 1.6;
}

.wip-panel {
  max-width: 460px;
}

.wip-panel p {
  margin: 0;
  font-size: 18px;
}

.detail-card {
  border-color: color-mix(in srgb, var(--accent), transparent 42%);
}

.player-detail > .player-head {
  width: 54px;
  height: 54px;
  margin: 0 0 18px;
  font-size: 16px;
}

.detail-grid {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr);
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-grid span,
.detail-grid b {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: var(--pixel-line-tight);
}

.detail-grid span {
  color: var(--muted);
}

.detail-grid b {
  color: var(--accent);
  font-weight: 400;
}

.detail-list {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.detail-list li {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  line-height: var(--pixel-line);
}

.team-detail-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 270px));
  gap: 12px;
  margin-top: 20px;
}

.team-detail-players a {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  text-transform: uppercase;
  line-height: var(--pixel-line-tight);
}

.live-page.active {
  display: block;
}

.live-shell {
  height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(420px, 1fr) minmax(300px, 360px);
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.live-column,
.live-main {
  min-height: 0;
}

.live-left {
  display: grid;
  grid-template-rows: minmax(0, 45%) minmax(0, 55%);
  gap: 14px;
}

.live-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.live-panel h2 {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  line-height: var(--pixel-line-tight);
  text-transform: uppercase;
}

.live-panel ol,
.live-feed-panel ul {
  min-height: 0;
  overflow: auto;
}

.live-panel .score-row {
  grid-template-columns: 34px minmax(0, 1fr) 92px;
  min-height: 42px;
  padding: 0 12px;
  gap: 8px;
  font-size: 13px;
}

.live-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
}

.live-title-card {
  min-height: 146px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  grid-template-areas:
    "title logo"
    "sub logo";
  gap: 6px 18px;
  align-items: center;
  padding: 20px;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(138, 255, 70, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(138, 255, 70, 0.06) 1px, transparent 1px),
    rgba(3, 13, 8, 0.9);
  background-size: 32px 32px, 32px 32px, auto;
}

.live-title-card img {
  grid-area: logo;
  width: 82px;
  height: 82px;
  justify-self: end;
  object-fit: contain;
}

.live-title-card h1 {
  grid-area: title;
  margin: 0;
  color: var(--text);
  font-size: clamp(48px, 5.4vw, 88px);
  line-height: var(--pixel-line-tight);
  letter-spacing: 0;
  text-shadow: 6px 6px 0 #071006;
}

.live-title-card p {
  grid-area: sub;
  margin: 0;
  color: var(--acid);
  font-size: 19px;
  line-height: var(--pixel-line-tight);
}

.live-teams-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.live-team-pill {
  min-height: 80px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 8px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--team), transparent 46%);
  color: var(--team);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.28);
  line-height: var(--pixel-line-tight);
}

.live-team-pill .team-dot {
  grid-row: 1;
}

.live-team-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-team-pill b {
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
}

.head-stack {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.active-game {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 26px;
  overflow: visible;
  background:
    linear-gradient(180deg, transparent, rgba(3, 12, 8, 0.96)),
    rgba(3, 12, 8, 0.58);
}

.active-game::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(138, 255, 70, 0.16);
  background:
    linear-gradient(90deg, rgba(138, 255, 70, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(138, 255, 70, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.42;
}

.active-game > div {
  position: relative;
  z-index: 1;
}

.active-game > div:first-child {
  align-self: end;
  margin-bottom: 24px;
}

.active-game span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  line-height: var(--pixel-line-tight);
}

.active-game h2 {
  margin: 12px 0 0;
  color: var(--acid);
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: var(--pixel-line-tight);
  letter-spacing: 0;
}

.active-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.active-meta span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  line-height: var(--pixel-line-tight);
  text-align: center;
}

.live-feed-panel li {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.16);
}

.live-feed-panel li span {
  color: var(--cyan);
  font-size: 11px;
  line-height: var(--pixel-line-tight);
  text-transform: uppercase;
}

.live-feed-panel li p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: var(--pixel-line);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    animation: heroMarkPulse 5s steps(2, end) infinite;
  }

  .active-game::before {
    animation: gridDrift 18s linear infinite;
  }
}

@keyframes heroMarkPulse {
  50% {
    filter: brightness(1.12);
  }
}

@keyframes gridDrift {
  to {
    background-position: 48px 48px;
  }
}

@media (max-width: 1240px) {
  .track-strip {
    width: max-content;
    grid-template-columns: repeat(8, 170px);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .brand,
  .player-search {
    justify-self: center;
  }

  .main-nav {
    order: 3;
    flex-wrap: wrap;
  }

  .landing-hero {
    min-height: 560px;
    padding-top: 80px;
  }

  .score-grid,
  .team-card-grid,
  .team-card-grid.full {
    grid-template-columns: 1fr;
  }

  .game-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-shell {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  body.live-open {
    overflow: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .game-rail,
  .score-room,
  .teams-preview,
  .content-page {
    width: min(100% - 24px, var(--page-width));
  }

  .landing-hero h1 {
    font-size: 58px;
  }

  .event-countdown {
    font-size: 18px;
  }

  .game-list,
  .team-detail-players,
  .team-player-grid {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: 34px minmax(0, 1fr) 88px;
    padding: 0 10px;
    gap: 8px;
    font-size: 12px;
  }

  .live-title-card {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
      "logo title"
      "logo sub";
  }

  .live-title-card img {
    width: 54px;
    height: 54px;
    justify-self: start;
  }

  .live-title-card h1 {
    font-size: clamp(34px, 11vw, 56px);
  }

  .live-teams-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body {
  font-size: 17px;
  line-height: 1.34;
}

h1,
h2,
h3,
p,
a,
button,
input,
li,
span,
b {
  letter-spacing: 0;
}

main {
  min-height: calc(100vh - 74px);
}

.site-header {
  grid-template-columns: minmax(300px, 1fr) auto minmax(300px, 1fr);
  min-height: 74px;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.55);
  background: rgba(1, 7, 4, 0.95);
}

.player-search {
  justify-self: start;
  width: min(390px, 100%);
}

.player-search input {
  height: 42px;
  padding: 0 14px;
  border-color: rgba(138, 255, 70, 0.52);
  color: var(--text);
  font-size: 15px;
  line-height: 42px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.player-search input:hover {
  border-color: rgba(138, 255, 70, 0.72);
  background: rgba(0, 0, 0, 0.48);
}

.search-results {
  left: 0;
  right: auto;
  width: min(430px, calc(100vw - 36px));
  max-height: 360px;
  border-color: rgba(138, 255, 70, 0.72);
}

.search-results a,
.search-empty {
  min-height: 52px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 8px 12px;
  font-size: 14px;
}

.search-results a {
  transition:
    color 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.search-results a:hover,
.search-results a:focus,
.search-results a.active {
  border-bottom-color: rgba(34, 228, 255, 0.42);
  color: var(--acid);
  background: rgba(34, 228, 255, 0.1);
  box-shadow: inset 4px 0 0 var(--cyan);
}

.search-team {
  font-size: 11px;
}

.main-nav {
  gap: 0;
  border-left: 1px solid rgba(138, 255, 70, 0.18);
  border-right: 1px solid rgba(138, 255, 70, 0.18);
}

.main-nav a {
  min-width: 72px;
  height: 42px;
  padding: 0 11px;
  border: 0;
  border-right: 1px solid rgba(138, 255, 70, 0.18);
  color: #c6d1c4;
  font-size: 13px;
  line-height: 42px;
  transition:
    color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.main-nav a:last-child {
  border-right: 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(150, 255, 48, 0.075);
  box-shadow: inset 0 -3px 0 rgba(150, 255, 48, 0.55);
  outline: none;
  transform: translateY(-1px);
}

.main-nav a.active {
  color: var(--acid);
  background: rgba(150, 255, 48, 0.12);
  box-shadow: inset 0 0 0 1px rgba(150, 255, 48, 0.7);
}

.main-nav .nav-home-mark {
  min-width: 58px;
  width: 58px;
  padding: 0;
}

.nav-home-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(150, 255, 48, 0.28));
  transition:
    filter 140ms ease,
    transform 140ms ease;
}

.nav-home-mark:hover img,
.nav-home-mark:focus-visible img {
  filter: drop-shadow(0 0 16px rgba(150, 255, 48, 0.5));
  transform: scale(1.08);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  min-width: 0;
}

.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 228, 255, 0.32);
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 0 8px rgba(34, 228, 255, 0.25));
}

.social-link:not(.is-disabled):hover,
.social-link:not(.is-disabled):focus-visible {
  border-color: var(--acid);
  background: rgba(34, 228, 255, 0.12);
  box-shadow: inset 0 -3px 0 rgba(34, 228, 255, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.social-link.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.work-menu {
  position: relative;
}

.work-menu button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(138, 255, 70, 0.46);
  border-radius: 0;
  color: var(--acid);
  background: rgba(150, 255, 48, 0.08);
  cursor: pointer;
  font-size: 13px;
  line-height: 40px;
  text-transform: uppercase;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.work-menu button:hover,
.work-menu button:focus-visible,
.work-menu button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: rgba(150, 255, 48, 0.14);
  box-shadow: inset 0 -3px 0 rgba(150, 255, 48, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.work-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 260px;
  border: 1px solid var(--line-strong);
  background: var(--panel-hard);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.26);
}

.work-menu-panel[hidden] {
  display: none;
}

.work-menu-panel a,
.menu-item-disabled {
  min-height: 48px;
  display: grid;
  align-content: center;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.18);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}

.work-menu-panel a:hover,
.work-menu-panel a:focus-visible {
  color: var(--acid);
  background: rgba(150, 255, 48, 0.09);
  outline: none;
}

.menu-item-disabled {
  color: var(--muted);
}

.menu-item-disabled small {
  margin-top: 2px;
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
}

.score-row {
  grid-template-columns: 42px minmax(0, 1fr) 108px;
  min-height: 50px;
}

.score-rank {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.score-name {
  min-height: 30px;
  gap: 9px;
  line-height: 1.28;
}

.score-name.with-head {
  gap: 10px;
}

.score-points {
  font-size: 14px;
  line-height: 1.28;
}

.player-head {
  flex: 0 0 auto;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid color-mix(in srgb, var(--team), transparent 36%);
  background: rgba(4, 12, 8, 0.95);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--team), transparent 78%),
    inset 2px 2px 0 rgba(255, 255, 255, 0.08),
    inset -2px -2px 0 rgba(0, 0, 0, 0.42);
}

.fallback-head {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 25%, transparent 25% 50%, rgba(0, 0, 0, 0.22) 50% 75%, transparent 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--team), #ffffff 20%), color-mix(in srgb, var(--team), #020604 28%));
}

.score-head {
  width: 28px;
  height: 28px;
}

.live-shell {
  height: calc(100vh - 74px);
  grid-template-columns: minmax(286px, 354px) minmax(760px, 1fr) minmax(306px, 374px);
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.live-left {
  grid-template-rows: minmax(0, 42%) minmax(0, 58%);
}

.live-panel,
.active-game,
.live-title-card,
.live-team-card,
.game-stage-board {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18);
}

.live-panel h2 {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 18px;
  line-height: 1.28;
}

.live-panel ol,
.live-feed-panel ul,
.game-track,
.search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 255, 48, 0.75) rgba(0, 0, 0, 0.28);
}

.live-panel ol::-webkit-scrollbar,
.live-feed-panel ul::-webkit-scrollbar,
.game-track::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.live-panel ol::-webkit-scrollbar-track,
.live-feed-panel ul::-webkit-scrollbar-track,
.game-track::-webkit-scrollbar-track,
.search-results::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.28);
}

.live-panel ol::-webkit-scrollbar-thumb,
.live-feed-panel ul::-webkit-scrollbar-thumb,
.game-track::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb {
  border: 1px solid rgba(0, 0, 0, 0.62);
  background: rgba(150, 255, 48, 0.72);
}

.live-panel .score-row {
  grid-template-columns: 32px minmax(0, 1fr) 78px;
  min-height: 44px;
  padding: 0 14px;
  gap: 8px;
  font-size: 13px;
}

.live-panel .score-rank {
  color: #dbe6d7;
  text-align: left;
}

.live-panel .score-name {
  color: var(--team);
}

.live-panel .score-points {
  font-size: 13px;
}

.live-main {
  grid-template-rows: 138px auto minmax(0, 1fr);
  gap: 14px;
}

.live-title-card {
  min-height: 138px;
  grid-template-columns: minmax(0, 1fr) 88px;
  grid-template-areas: "title logo";
  gap: 18px;
  padding: 16px 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(1, 6, 4, 0.32), rgba(1, 6, 4, 0.1) 48%, rgba(1, 6, 4, 0.62)),
    linear-gradient(180deg, rgba(1, 6, 4, 0.16), rgba(1, 6, 4, 0.68)),
    url("./assets/end-island-bg.png");
  background-size: cover;
  background-position: center 48%;
}

.live-title-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(138, 255, 70, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(138, 255, 70, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.54;
}

.live-title-card h1 {
  align-self: center;
  font-size: clamp(52px, 5vw, 88px);
  line-height: 1.14;
  white-space: normal;
}

.live-title-card img {
  width: 84px;
  height: 84px;
  align-self: center;
  filter: drop-shadow(0 0 18px rgba(150, 255, 48, 0.24));
}

.live-teams-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 4;
}

.live-team-card {
  min-height: 108px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 11px 10px 10px;
  border-color: color-mix(in srgb, var(--team), transparent 34%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team), transparent 92%), rgba(0, 0, 0, 0.22)),
    rgba(2, 8, 5, 0.94);
  overflow: visible;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.live-team-card:hover {
  border-color: var(--team);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team), transparent 87%), rgba(0, 0, 0, 0.18)),
    rgba(2, 8, 5, 0.97);
  box-shadow:
    0 12px 0 rgba(0, 0, 0, 0.2),
    0 0 16px color-mix(in srgb, var(--team), transparent 78%);
}

.live-team-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--team);
  text-decoration: none;
  line-height: 1.25;
}

.live-team-summary b {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.live-team-name {
  min-width: 0;
  color: var(--team);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pov-heads {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 38px);
  justify-content: space-between;
  align-items: end;
  gap: 7px;
}

.pov-link {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  outline: none;
}

.pov-head {
  width: 38px;
  height: 38px;
  transition:
    border-color 130ms ease,
    filter 130ms ease,
    transform 130ms ease;
}

.pov-link:hover .pov-head,
.pov-link:focus-visible .pov-head {
  border-color: var(--team);
  filter: brightness(1.18);
  transform: translateY(-3px);
}

.pov-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  min-width: 132px;
  max-width: 190px;
  padding: 8px 10px;
  border: 1px solid var(--team);
  color: var(--text);
  background: rgba(1, 7, 4, 0.98);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.pov-tooltip span,
.pov-tooltip b {
  display: block;
  font-size: 11px;
  line-height: 1.28;
}

.pov-tooltip b {
  margin-top: 3px;
  color: var(--acid);
  font-weight: 400;
}

.pov-link:hover .pov-tooltip,
.pov-link:focus-visible .pov-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.active-game {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(3, 12, 8, 0.9)),
    rgba(3, 12, 8, 0.58);
}

.active-game::before {
  inset: 18px;
  opacity: 0.48;
  pointer-events: none;
}

.active-game > div:first-child {
  align-self: center;
  margin-bottom: 0;
}

.game-stage-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.active-game .game-stage-copy > span {
  color: var(--text);
}

.active-game h2 {
  margin: 10px 0 12px;
  color: var(--acid);
  font-size: clamp(42px, 4.7vw, 74px);
  line-height: 1.14;
}

.game-stage-copy p {
  max-width: 620px;
  margin: 0;
  color: #dce8d9;
  font-size: 17px;
  line-height: 1.42;
}

.game-stage-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  border-color: rgba(138, 255, 70, 0.32);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: none;
}

.stage-stat {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-right: 1px solid rgba(138, 255, 70, 0.18);
  border-bottom: 1px solid rgba(138, 255, 70, 0.18);
}

.stage-stat:last-of-type {
  border-right: 0;
}

.active-game .stage-stat span,
.stage-objectives span {
  color: var(--muted);
}

.stage-stat b {
  color: var(--text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.18;
}

.stage-objectives {
  grid-column: 1 / -1;
  display: grid;
}

.stage-objectives li {
  min-height: 43px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid rgba(138, 255, 70, 0.16);
  line-height: 1.25;
}

.stage-objectives b {
  color: var(--acid);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

.active-meta {
  grid-column: 1 / -1;
  border-color: rgba(138, 255, 70, 0.34);
}

.active-meta span {
  min-height: 48px;
  font-size: 12px;
}

.live-feed-panel li {
  padding: 14px 16px 15px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.15);
  background: rgba(0, 0, 0, 0.1);
}

.live-feed-panel li span {
  color: var(--cyan);
  font-size: 10px;
  line-height: 1.25;
}

.live-feed-panel li p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.36;
}

.feed-entry {
  animation: feedEntryLife 10s linear forwards;
}

@keyframes feedEntryLife {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  8%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .live-team-card:hover,
  .social-link:not(.is-disabled):hover,
  .work-menu button:hover,
  .main-nav a:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-entry,
  .hero-mark,
  .active-game::before {
    animation: none;
  }
}

@media (max-width: 1440px) {
  .site-header {
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  }

  .main-nav a {
    min-width: 64px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .main-nav .nav-home-mark {
    min-width: 52px;
    width: 52px;
  }

  .live-shell {
    grid-template-columns: minmax(270px, 330px) minmax(650px, 1fr) minmax(286px, 340px);
  }

  .pov-heads {
    grid-template-columns: repeat(4, 34px);
  }

  .pov-head {
    width: 34px;
    height: 34px;
  }

  .active-game h2 {
    font-size: clamp(38px, 4.2vw, 66px);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .player-search,
  .header-actions {
    justify-self: stretch;
  }

  .header-actions {
    justify-content: center;
  }

  .main-nav {
    justify-self: center;
    order: 2;
    flex-wrap: wrap;
  }

  .header-actions {
    order: 3;
  }

  .live-shell {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  body.live-open {
    overflow: auto;
  }

  .live-main {
    order: 1;
    grid-template-rows: auto auto auto;
  }

  .live-left {
    order: 2;
  }

  .live-right {
    order: 3;
  }

  .active-game {
    min-height: 420px;
  }
}

@media (max-width: 840px) {
  body {
    font-size: 14px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .main-nav a,
  .main-nav .nav-home-mark {
    min-width: 0;
    width: auto;
    font-size: 11px;
  }

  .nav-home-mark img {
    width: 28px;
    height: 28px;
  }

  .live-title-card {
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-areas: "title logo";
    min-height: 112px;
    padding: 14px;
  }

  .live-title-card h1 {
    font-size: clamp(36px, 11vw, 58px);
  }

  .live-title-card img {
    width: 56px;
    height: 56px;
  }

  .live-teams-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-game {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 12px;
  }

  .player-search input {
    font-size: 13px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr);
  }

  .work-menu button {
    width: 100%;
    justify-content: center;
  }

  .work-menu-panel {
    right: 0;
    width: min(260px, calc(100vw - 24px));
  }

  .live-teams-row {
    grid-template-columns: 1fr;
  }

  .pov-heads {
    grid-template-columns: repeat(4, 42px);
  }

  .pov-head {
    width: 42px;
    height: 42px;
  }

  .pov-link:nth-child(4n) .pov-tooltip {
    left: auto;
    right: 0;
    transform: translate(0, 4px);
  }

  .pov-link:nth-child(4n):hover .pov-tooltip,
  .pov-link:nth-child(4n):focus-visible .pov-tooltip {
    transform: translate(0, 0);
  }

  .pov-link:nth-child(4n + 1) .pov-tooltip {
    left: 0;
    transform: translate(0, 4px);
  }

  .pov-link:nth-child(4n + 1):hover .pov-tooltip,
  .pov-link:nth-child(4n + 1):focus-visible .pov-tooltip {
    transform: translate(0, 0);
  }

  .stage-stat {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .stage-objectives li {
    grid-template-columns: 1fr;
    align-content: center;
    padding-block: 10px;
  }

  .stage-objectives b {
    text-align: left;
  }
}

.live-left {
  grid-template-rows: auto minmax(0, 1fr);
}

.team-score-panel {
  min-height: 452px;
}

.team-score-panel ol {
  overflow: visible;
}

.team-score-panel .score-row {
  min-height: 40px;
}

.team-score-panel .score-points {
  font-size: 12px;
}

.indiv-score-panel {
  min-height: 0;
}

.indiv-score-panel ol {
  overflow: auto;
  scrollbar-gutter: stable;
}

.live-title-card {
  position: relative;
  background: rgba(3, 13, 8, 0.88);
}

.live-title-card::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(1, 6, 4, 0.34), rgba(1, 6, 4, 0.08) 48%, rgba(1, 6, 4, 0.64)),
    linear-gradient(180deg, rgba(1, 6, 4, 0.12), rgba(1, 6, 4, 0.62)),
    url("./assets/end-island-bg.png");
  background-size: cover;
  background-position: center 48%;
  filter: blur(1.2px) saturate(1.12) brightness(0.94);
  transform: scale(1.015);
}

.live-title-card::after {
  display: none;
}

.live-title-card h1,
.live-title-card img {
  position: relative;
  z-index: 1;
}

.active-game {
  display: block;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 12, 8, 0.84), rgba(1, 7, 4, 0.94)),
    rgba(3, 12, 8, 0.84);
}

.active-game::before {
  display: none;
}

.active-game > div:first-child {
  align-self: start;
  margin-bottom: 0;
}

.game-wip {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 12px;
}

.game-wip h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.28;
  text-shadow: none;
  text-transform: uppercase;
}

.game-wip p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(138, 255, 70, 0.42);
  color: var(--acid);
  background: rgba(150, 255, 48, 0.07);
  font-size: 14px;
  line-height: 1.28;
}

.live-feed-panel ul {
  overflow: hidden;
}

.feed-entry {
  animation: none;
}

.live-feed-panel li {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .team-score-panel {
    min-height: auto;
  }

  .team-score-panel ol {
    overflow: visible;
  }

  .team-score-panel .score-row {
    min-height: 42px;
  }
}

:root {
  --panel: #030c08;
  --panel-hard: #010805;
}

.section-head,
.table-title,
.score-table,
.team-card,
.game-card,
.text-panel,
.detail-card,
.live-panel,
.active-game {
  background: var(--panel);
}

.live-team-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team), transparent 91%), rgba(1, 6, 4, 0.04)),
    #020805;
}

.live-team-card:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team), transparent 86%), rgba(1, 6, 4, 0.02)),
    #020805;
}

.live-feed-panel li {
  background: #030c08;
}

.active-game {
  background: #030c08;
}

.game-wip h2 {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding-top: 2px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

main {
  min-height: calc(100vh - 74px - 34px);
}

.site-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px 9px;
  border-top: 1px solid rgba(138, 255, 70, 0.36);
  color: #cfdccd;
  background: rgba(1, 7, 4, 0.96);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.site-footer strong {
  font-weight: 700;
}

body.live-open .site-footer {
  position: relative;
}

body.live-open .live-shell {
  min-height: calc(100vh - 74px - 34px);
}

.search-results a {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.search-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.search-kind,
.search-meta {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.search-meta {
  color: var(--cyan);
  text-align: right;
}

.search-head {
  width: 34px;
  height: 34px;
}

.search-history-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(34, 228, 255, 0.22);
  color: var(--muted);
  background: rgba(34, 228, 255, 0.055);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
}

.search-history-head button {
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
}

.search-history-head button:hover,
.search-history-head button:focus-visible {
  color: var(--acid);
  outline: none;
}

.game-logo-placeholder {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.38);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.07),
    inset -3px -3px 0 rgba(0, 0, 0, 0.4),
    0 0 14px color-mix(in srgb, var(--accent), transparent 78%);
}

.search-game-icon {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.landing-page {
  padding-bottom: 72px;
}

.landing-hero {
  min-height: clamp(470px, 64vh, 630px);
  justify-content: center;
  padding: 74px 24px 124px;
}

.landing-hero::before {
  inset: -26px;
  filter: blur(1.1px) brightness(0.9) saturate(1.38) contrast(1.04);
  transform: scale(1.03);
}

.landing-hero::after {
  background:
    linear-gradient(90deg, rgba(1, 5, 3, 0.34), transparent 24%, transparent 76%, rgba(1, 5, 3, 0.34)),
    linear-gradient(180deg, rgba(1, 6, 4, 0.06), transparent 42%, rgba(2, 6, 4, 0.9));
}

.hero-mark {
  width: clamp(128px, 11.5vw, 184px);
  height: clamp(128px, 11.5vw, 184px);
  margin-bottom: 14px;
}

.hero-mark img {
  filter: drop-shadow(0 0 22px rgba(150, 255, 48, 0.4));
}

.landing-hero h1 {
  font-size: clamp(78px, 10vw, 156px);
  line-height: 1.16;
}

.event-countdown {
  margin-top: 18px;
  color: #f4fff1;
}

.countdown-label,
.event-countdown #pilotCountdown {
  color: var(--acid);
}

.countdown-event {
  color: #69c72c;
}

.game-rail {
  margin-top: -88px;
}

.game-track {
  overflow: hidden;
  background: #030c08;
}

.track-strip {
  width: max-content;
  display: flex;
  animation: gameRailLoop 26s linear infinite;
  will-change: transform;
}

.game-track:hover .track-strip,
.game-track:focus-within .track-strip {
  animation-play-state: paused;
}

.track-strip-set {
  display: flex;
}

.rail-card {
  position: relative;
  width: 106px;
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  border-right: 1px solid rgba(138, 255, 70, 0.16);
  color: var(--text);
  background: rgba(1, 7, 4, 0.94);
}

.rail-card:hover,
.rail-card:focus-visible {
  background: color-mix(in srgb, var(--accent), #020604 86%);
  outline: none;
}

.rail-icon {
  grid-area: 1 / 1;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.rail-tooltip {
  position: absolute;
  inset: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 32%);
  color: var(--text);
  background: rgba(1, 7, 4, 0.96);
  opacity: 0;
  text-align: center;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.rail-tooltip b,
.rail-tooltip span {
  display: block;
  line-height: 1.18;
}

.rail-tooltip b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.rail-tooltip span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.rail-card:hover .rail-icon,
.rail-card:focus-visible .rail-icon {
  opacity: 0.16;
  transform: scale(0.92);
}

.rail-card:hover .rail-tooltip,
.rail-card:focus-visible .rail-tooltip {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gameRailLoop {
  to {
    transform: translateX(-50%);
  }
}

.teams-preview {
  margin-top: 34px;
}

.landing-team-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.landing-team-card {
  min-height: 218px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--team), transparent 32%);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--team), transparent 78%), rgba(2, 6, 4, 0.28) 58%),
    #020805;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.2);
}

.landing-team-head {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 7px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--team), transparent 62%);
  color: var(--team);
  text-decoration: none;
}

.landing-team-head b {
  grid-column: 2;
  color: color-mix(in srgb, var(--team), #f4fff1 32%);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.landing-team-head span:not(.team-dot) {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.2;
}

.landing-roster {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.landing-player {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #edf7eb;
  text-decoration: none;
  line-height: 1.2;
}

.landing-player span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.landing-head {
  width: 28px;
  height: 28px;
  transition:
    border-color 140ms ease,
    filter 140ms ease,
    transform 140ms ease;
}

.landing-player:hover,
.landing-player:focus-visible,
.landing-team-head:hover,
.landing-team-head:focus-visible {
  color: var(--acid);
  outline: none;
}

.landing-player:hover .landing-head,
.landing-player:focus-visible .landing-head {
  border-color: var(--team);
  filter: brightness(1.14);
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .track-strip {
    animation: none;
  }
}

@media (max-width: 1440px) {
  .landing-team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.live-open .site-footer {
    position: static;
  }

  body.live-open .live-shell {
    height: auto;
  }

  .landing-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .main-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .landing-hero {
    min-height: auto;
    justify-content: flex-start;
    padding: 34px 18px 52px;
  }

  .hero-mark {
    width: 104px;
    height: 104px;
    margin-bottom: 10px;
  }

  .landing-hero h1 {
    font-size: clamp(66px, 21vw, 86px);
    line-height: 1.16;
  }

  .event-countdown {
    max-width: 340px;
    margin-top: 14px;
    font-size: 16px;
  }

  .game-rail {
    margin-top: -44px;
  }
}

@media (max-width: 720px) {
  .landing-team-grid {
    grid-template-columns: 1fr;
  }
}

.main-nav a,
.work-menu button,
.section-head,
.table-title,
.team-card-main,
.landing-team-head,
.landing-player,
.player-link,
.score-row,
.score-name,
.score-points,
.live-panel h2,
.pov-tooltip,
.site-footer {
  line-height: 1.18;
}

.main-nav a,
.work-menu button {
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.work-menu button:hover,
.work-menu button:focus-visible,
.work-menu button[aria-expanded="true"],
.live-team-card:hover,
.social-link:not(.is-disabled):hover,
.social-link:not(.is-disabled):focus-visible {
  transform: none;
}

.site-footer {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  line-height: 1;
  text-transform: none;
}

.site-footer strong {
  display: block;
  line-height: 1;
  transform: translateY(1px);
}

.landing-hero {
  min-height: clamp(430px, 58vh, 590px);
  padding: 48px 24px 116px;
}

.landing-hero::before {
  filter: blur(1.8px) brightness(0.9) saturate(1.38) contrast(1.04);
  transform: scale(1.045);
}

.hero-mark {
  width: clamp(150px, 14vw, 224px);
  height: clamp(150px, 14vw, 224px);
  margin-bottom: 8px;
}

.event-countdown .countdown-label,
.event-countdown #pilotCountdown {
  color: var(--acid);
}

.event-countdown .countdown-event {
  color: color-mix(in srgb, var(--acid), #0d1b0a 46%);
}

.game-rail {
  margin-top: -104px;
}

.game-track {
  --rail-card-width: clamp(98px, 13vw, 154px);
  overflow: hidden;
  background: #030c08;
}

.track-strip {
  width: max-content;
  display: flex;
  animation: gameRailLoop 28s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.track-strip-set {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(8, var(--rail-card-width));
}

.rail-card {
  position: relative;
  width: var(--rail-card-width);
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border-right: 1px solid rgba(138, 255, 70, 0.16);
}

.rail-card .game-logo-placeholder {
  justify-self: center;
  align-self: center;
}

.rail-icon {
  grid-area: 1 / 1;
  margin: 0 auto;
}

.rail-tooltip {
  z-index: 2;
  inset: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
}

.rail-tooltip b,
.rail-tooltip span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rail-card:hover .rail-icon,
.rail-card:focus-visible .rail-icon {
  opacity: 0.12;
  transform: scale(0.88);
}

@keyframes gameRailLoop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.landing-team-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-team-card {
  min-height: 204px;
}

.landing-team-head {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-team-head b {
  display: none;
}

.landing-team-head span:not(.team-dot),
.team-card-unannounced .team-card-main span:not(.team-dot) {
  min-width: 0;
  color: var(--team);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.team-card-unannounced .team-card-main {
  min-height: 50px;
  justify-content: flex-start;
  gap: 10px;
}

.team-card-unannounced .team-card-body {
  padding-top: 16px;
}

.team-player-grid .player-link,
.team-detail-players .player-link {
  min-width: 0;
  color: #edf7eb;
  text-decoration: none;
}

.landing-player.is-placeholder,
.player-link.is-placeholder,
.pov-link.is-placeholder {
  cursor: default;
}

.landing-player.is-placeholder:hover,
.landing-player.is-placeholder:focus-visible,
.player-link.is-placeholder:hover,
.player-link.is-placeholder:focus-visible,
.pov-link.is-placeholder:hover,
.pov-link.is-placeholder:focus-visible {
  color: #edf7eb;
}

.landing-player.is-placeholder:hover .landing-head,
.landing-player.is-placeholder:focus-visible .landing-head,
.player-link.is-placeholder:hover .player-head,
.player-link.is-placeholder:focus-visible .player-head {
  border-color: color-mix(in srgb, var(--team), transparent 36%);
  filter: none;
  transform: none;
}

.team-detail-players {
  grid-template-columns: repeat(2, minmax(0, 240px));
}

.team-detail-players .player-link {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
  background: rgba(0, 0, 0, 0.24);
}

.pov-link.is-placeholder:hover .pov-head,
.pov-link.is-placeholder:focus-visible .pov-head {
  border-color: color-mix(in srgb, var(--team), transparent 36%);
  filter: none;
  transform: none;
}

.team-card-grid.full {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1440px) {
  .landing-team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .team-card-grid.full {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .landing-team-grid,
  .team-card-grid.full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .landing-hero {
    min-height: auto;
    padding: 30px 18px 56px;
  }

  .hero-mark {
    width: 116px;
    height: 116px;
  }

  .game-rail {
    margin-top: -40px;
  }
}

@media (max-width: 720px) {
  .landing-team-grid,
  .team-card-grid.full {
    grid-template-columns: 1fr;
  }
}

.site-footer,
.site-footer strong,
.site-footer span,
.site-footer a,
.pov-tooltip,
.pov-tooltip span,
.pov-tooltip b,
.rail-tooltip,
.rail-tooltip span,
.rail-tooltip b,
.search-kind,
.search-meta {
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
}

.site-footer {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px 18px;
  font-size: 12px;
  line-height: 18px;
  text-transform: none;
}

.site-footer strong,
.site-footer span {
  line-height: 18px;
  transform: none;
}

.footer-contact-link {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(34, 228, 255, 0.34);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  border-color: var(--acid);
  background: rgba(34, 228, 255, 0.1);
  outline: none;
}

.footer-contact-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: invert(1);
}

.footer-contact-link img.footer-gmail-icon {
  width: 18px;
  height: auto;
  filter: none;
}

.pov-tooltip {
  left: 50%;
  width: 152px;
  min-width: 0;
  max-width: 152px;
  margin-left: -76px;
  font-size: 12px;
  line-height: 18px;
  transform: none;
  transition: opacity 120ms ease;
}

.pov-tooltip span,
.pov-tooltip b {
  font-size: 12px;
  line-height: 18px;
}

.pov-link:hover .pov-tooltip,
.pov-link:focus-visible .pov-tooltip {
  transform: none;
}

.live-team-summary {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 6px;
}

.live-team-name {
  font-size: 13px;
  line-height: 16px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.live-team-summary b {
  font-size: 11px;
  line-height: 16px;
}

.rail-tooltip {
  transform: none;
  transition: opacity 140ms ease;
}

.rail-tooltip b {
  font-size: 12px;
  line-height: 1.25;
}

.rail-tooltip span {
  font-size: 10px;
  line-height: 1.25;
}

.rail-card:hover .rail-tooltip,
.rail-card:focus-visible .rail-tooltip {
  transform: none;
}

@media (max-width: 560px) {
  .pov-link:nth-child(4n) .pov-tooltip,
  .pov-link:nth-child(4n):hover .pov-tooltip,
  .pov-link:nth-child(4n):focus-visible .pov-tooltip {
    left: auto;
    right: 0;
    margin-left: 0;
    transform: none;
  }

  .pov-link:nth-child(4n + 1) .pov-tooltip,
  .pov-link:nth-child(4n + 1):hover .pov-tooltip,
  .pov-link:nth-child(4n + 1):focus-visible .pov-tooltip {
    left: 0;
    right: auto;
    margin-left: 0;
    transform: none;
  }
}

.player-search input {
  border-color: rgba(150, 255, 48, 0.48);
}

.player-search input:hover,
.player-search input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 2px rgba(150, 255, 48, 0.12);
}

.search-results {
  border-color: var(--line-strong);
}

.search-results a:hover,
.search-results a:focus,
.search-results a.active {
  border-bottom-color: rgba(150, 255, 48, 0.42);
  background: rgba(150, 255, 48, 0.09);
  box-shadow: inset 4px 0 0 var(--acid);
}

.search-meta,
.search-history-head button,
.menu-item-disabled small {
  color: var(--acid);
}

.search-history-head {
  border-bottom-color: rgba(150, 255, 48, 0.22);
  background: rgba(150, 255, 48, 0.055);
}

.social-link,
.footer-contact-link {
  border-color: rgba(150, 255, 48, 0.38);
}

.social-link img {
  filter: invert(1) drop-shadow(0 0 8px rgba(150, 255, 48, 0.22));
}

.social-link:not(.is-disabled):hover,
.social-link:not(.is-disabled):focus-visible,
.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  border-color: var(--line-strong);
  background: rgba(150, 255, 48, 0.1);
  box-shadow: inset 0 -3px 0 rgba(150, 255, 48, 0.42);
}

.site-footer {
  gap: 8px;
  min-height: 40px;
}

.site-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  transform: translateY(2px);
}

.footer-dot {
  color: var(--acid);
  font-size: 16px;
  line-height: 16px;
}

.footer-contact-link {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-self: center;
}

.footer-contact-link img {
  display: block;
}

.detail-player-head {
  width: 44px;
  height: 44px;
}

.player-profile {
  --model-width: clamp(260px, 28vw, 348px);
  min-width: 0;
}

.player-profile-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.player-profile-head h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.08;
  text-shadow: 5px 5px 0 #071006;
}

.profile-mode-switch {
  position: relative;
  width: 228px;
  height: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.36);
}

.profile-mode-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--acid);
  box-shadow: 0 0 18px rgba(150, 255, 48, 0.28);
  transition: transform 220ms steps(8, end);
}

.player-profile[data-mode="stats"] .profile-mode-thumb {
  transform: translateX(100%);
}

.profile-mode-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  line-height: 1;
}

.profile-mode-switch button[aria-selected="true"] {
  color: #071006;
}

.player-profile-stage {
  display: grid;
  grid-template-columns: var(--model-width) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.player-profile[data-mode="stats"] .player-profile-stage {
  grid-template-columns: minmax(0, 1fr) var(--model-width);
}

.player-model-panel {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 16px;
  justify-items: center;
  transition: transform 420ms steps(10, end);
}

.player-profile[data-mode="stats"] .player-model-panel {
  grid-column: 2;
}

.player-model-name {
  width: fit-content;
  padding: 7px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  font-size: 20px;
  line-height: 1.1;
}

.player-model-figure {
  position: relative;
  width: 100%;
  height: clamp(390px, 48vw, 520px);
  display: grid;
  place-items: center;
  transform: perspective(900px) rotateY(var(--look-x, 0deg)) rotateX(var(--look-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
}

.player-model-figure::before {
  content: "";
  position: absolute;
  inset: 4% 10% 2%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 78%, rgba(150, 255, 48, 0.16), transparent 44%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
  filter: blur(10px);
}

.player-model-canvas,
.player-model-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-model-canvas {
  opacity: 0;
  image-rendering: auto;
}

.player-model-fallback {
  position: absolute;
  inset: 0;
  image-rendering: pixelated;
  filter: drop-shadow(16px 18px 0 rgba(0, 0, 0, 0.3));
}

.player-model-figure.is-3d-ready .player-model-canvas {
  opacity: 1;
}

.player-model-fallback[hidden] {
  display: none;
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.profile-social-link {
  min-width: 64px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 56%);
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.profile-social-link:not(.is-disabled):hover,
.profile-social-link:not(.is-disabled):focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.profile-social-link.is-disabled {
  color: var(--muted);
  opacity: 0.48;
}

.profile-facts {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.2);
}

.profile-facts dt,
.profile-facts dd {
  margin: 0;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.28;
}

.profile-facts dt {
  color: var(--muted);
}

.profile-facts dd {
  color: var(--accent);
  text-align: right;
}

.best-game-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "icon name"
    "icon meta";
  gap: 4px 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 45%);
  color: var(--text);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 88%), rgba(0, 0, 0, 0.2)),
    rgba(2, 8, 5, 0.96);
  text-decoration: none;
}

.best-game-card:hover,
.best-game-card:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.best-game-card > span {
  grid-area: label;
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.best-game-icon {
  grid-area: icon;
  width: 46px;
  height: 46px;
}

.best-game-card b {
  grid-area: name;
  color: var(--accent);
  line-height: 1.16;
}

.best-game-card small {
  grid-area: meta;
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
}

.profile-mode-panel {
  min-width: 0;
  grid-row: 1;
}

.profile-info-panel {
  grid-column: 2;
}

.profile-stats-panel {
  grid-column: 1;
}

.profile-mode-panel[hidden] {
  display: none;
}

.profile-mode-panel.is-entering {
  animation: profilePanelEnter 420ms steps(10, end);
}

.profile-mode-panel.is-leaving {
  animation: profilePanelLeave 420ms steps(10, end);
}

.profile-copy-panel,
.profile-history-panel,
.player-game-table,
.player-radar,
.profile-stat-grid article,
.player-game-detail {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18);
}

.profile-copy-panel {
  min-height: 236px;
  padding: 24px;
}

.profile-copy-panel h2 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-copy-panel p {
  margin: 0;
  max-width: 760px;
  color: #dbe8d8;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.profile-game-carousel {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.36);
}

.profile-game-strip {
  width: max-content;
  display: flex;
  animation: profileGameLoop 36s linear infinite;
}

.profile-game-carousel:hover .profile-game-strip {
  animation-play-state: paused;
}

.profile-game-card {
  width: 236px;
  min-height: 96px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-right: 1px solid color-mix(in srgb, var(--accent), transparent 62%);
  color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 90%), rgba(0, 0, 0, 0.18));
  text-decoration: none;
}

.profile-game-card:hover,
.profile-game-card:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 86%);
  outline: none;
}

.profile-game-icon {
  width: 54px;
  height: 54px;
}

.profile-game-card span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.profile-game-card b {
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.profile-game-card small,
.profile-table-head,
.profile-event-row small,
.profile-empty-row,
.player-game-row small {
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.25;
}

.profile-game-card small {
  color: var(--muted);
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-stat-grid article {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 20px;
}

.profile-stat-grid span {
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.profile-stat-grid b {
  color: var(--text);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.profile-history-panel {
  margin-top: 14px;
}

.profile-table-head,
.profile-event-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(120px, 1fr) 110px 82px;
  align-items: center;
  gap: 12px;
}

.profile-table-head {
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.18);
  color: var(--muted);
  text-transform: uppercase;
}

.profile-history-scroll {
  max-height: 268px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 255, 48, 0.75) rgba(0, 0, 0, 0.28);
}

.profile-event-row,
.profile-empty-row {
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.14);
  color: var(--text);
  text-decoration: none;
}

.profile-event-row:hover,
.profile-event-row:focus-visible {
  color: var(--accent);
  background: rgba(150, 255, 48, 0.07);
  outline: none;
}

.profile-event-row b {
  display: block;
  line-height: 1.15;
}

.profile-event-row small,
.profile-empty-row {
  color: var(--muted);
}

.player-game-stats {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(340px, 1fr);
  gap: 18px;
  margin-top: 24px;
  align-items: stretch;
}

.player-game-table {
  overflow: hidden;
}

.player-game-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 88px 54px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.14);
  color: var(--text);
  text-decoration: none;
}

.player-game-row:hover,
.player-game-row:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 90%);
  outline: none;
}

.table-game-icon {
  width: 36px;
  height: 36px;
}

.player-game-row span {
  min-width: 0;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.player-game-row b {
  color: var(--accent);
  text-align: right;
  font-size: 13px;
}

.player-game-row small {
  color: var(--muted);
  text-align: right;
}

.player-radar {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player-radar svg {
  width: min(100%, 360px);
  aspect-ratio: 1;
  overflow: visible;
}

.player-radar line,
.radar-outer,
.radar-mid {
  stroke: rgba(150, 255, 48, 0.26);
  stroke-width: 1;
  fill: none;
}

.radar-mid {
  stroke: rgba(150, 255, 48, 0.16);
}

.radar-fill {
  fill: color-mix(in srgb, var(--accent), transparent 74%);
  stroke: var(--accent);
  stroke-width: 2;
}

.radar-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.radar-game-icon {
  width: 38px;
  height: 38px;
}

.radar-node:hover .radar-game-icon,
.radar-node:focus-visible .radar-game-icon {
  border-color: var(--accent);
  filter: brightness(1.18);
}

.player-game-detail-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.player-game-detail-head h1 {
  font-size: clamp(34px, 4.5vw, 62px);
}

.player-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-game-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 48%);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.24);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
}

.player-game-actions a:hover,
.player-game-actions a:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 90%);
  outline: none;
}

@keyframes profilePanelEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profilePanelLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes profileGameLoop {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {

  .player-profile-stage,
  .player-profile[data-mode="stats"] .player-profile-stage {
    grid-template-columns: 1fr;
  }

  .player-model-panel,
  .player-profile[data-mode="stats"] .player-model-panel,
  .profile-info-panel,
  .profile-stats-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .player-model-panel {
    grid-row: 1;
    max-width: 380px;
    margin-inline: auto;
  }

  .profile-mode-panel {
    grid-row: 2;
  }

  .player-game-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .player-profile-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-mode-switch {
    width: 100%;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-table-head {
    display: none;
  }

  .profile-event-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    padding: 12px;
  }

  .player-game-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .player-game-row small {
    display: none;
  }

  .profile-game-card {
    width: 210px;
  }

  .player-model-panel {
    max-width: 310px;
  }

  .player-model-figure {
    height: 350px;
  }

  .player-game-detail-head {
    grid-template-columns: 1fr;
  }
}

.history-back {
  position: fixed;
  top: 86px;
  left: 18px;
  z-index: 19;
  display: none;
  align-items: center;
  min-height: 38px;
  padding: 0 13px 0 11px;
  border: 1px solid var(--line-strong);
  color: var(--acid);
  background: rgba(1, 8, 5, 0.94);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.history-back::before {
  content: "<";
  margin-right: 8px;
  color: var(--text);
}

body.detail-open .history-back {
  display: inline-flex;
}

.history-back:hover,
.history-back:focus-visible {
  background: rgba(150, 255, 48, 0.12);
  outline: none;
}

.player-profile {
  --model-width: 360px;
  --model-height: 560px;
}

.profile-mode-switchbar {
  position: sticky;
  top: 74px;
  z-index: 16;
  width: 100vw;
  display: flex;
  justify-content: center;
  margin: -92px calc(50% - 50vw) 48px;
  padding: 11px max(18px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(1, 8, 5, 0.96);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.18);
}

.profile-mode-switch {
  width: min(760px, calc(100vw - 180px));
  height: 62px;
  padding: 5px;
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.42);
}

.profile-mode-thumb {
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  transition: transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-mode-switch button {
  font-size: 18px;
}

.player-profile-head {
  display: block;
  margin-bottom: 30px;
}

.player-profile-stage {
  grid-template-columns: var(--model-width) minmax(0, 1fr);
  gap: 34px;
}

.player-profile[data-mode="stats"] .player-profile-stage {
  grid-template-columns: minmax(0, 1fr) var(--model-width);
}

.player-model-panel {
  width: min(var(--model-width), 100%);
  gap: 14px;
  transition: transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.player-model-figure {
  width: min(var(--model-width), 100%);
  height: var(--model-height);
  transform: none;
  transition: none;
}

.player-model-figure::before {
  display: none;
}

.player-model-canvas,
.player-model-fallback {
  filter: saturate(1.58) contrast(1.12) brightness(1.14) drop-shadow(16px 18px 0 rgba(0, 0, 0, 0.22));
}

.player-model-fallback {
  transform: perspective(900px) rotateY(var(--look-x, 0deg)) rotateX(var(--look-y, 0deg));
  transition: transform 120ms ease-out;
}

.profile-socials {
  gap: 10px;
}

.profile-social-link {
  min-width: 38px;
  width: 38px;
  min-height: 34px;
  height: 34px;
  padding: 0;
}

.profile-social-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(1);
}

.profile-social-link.is-disabled img {
  opacity: 0.66;
}

.player-profile[data-mode="stats"] .profile-facts {
  display: none;
}

.profile-facts {
  gap: 0;
  border-top: 1px solid rgba(138, 255, 70, 0.2);
}

.profile-facts div {
  min-height: 44px;
  padding: 0;
  border-bottom-color: rgba(138, 255, 70, 0.22);
}

.profile-facts dt {
  padding-left: 8px;
}

.profile-facts dd {
  padding-right: 8px;
}

.profile-facts dd a {
  display: inline-grid;
  justify-items: end;
  gap: 2px;
  color: var(--accent);
  text-decoration: none;
}

.profile-facts dd a:hover,
.profile-facts dd a:focus-visible {
  color: var(--text);
  outline: none;
}

.profile-facts dd small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.profile-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-mode-panel.is-entering,
.profile-mode-panel.is-leaving {
  animation-duration: 640ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

.player-profile[data-transition="to-stats"] .profile-stats-panel.is-entering {
  animation-name: profilePanelInFromLeft;
}

.player-profile[data-transition="to-stats"] .profile-info-panel.is-leaving {
  animation-name: profilePanelOutToRight;
}

.player-profile[data-transition="to-info"] .profile-info-panel.is-entering {
  animation-name: profilePanelInFromRight;
}

.player-profile[data-transition="to-info"] .profile-stats-panel.is-leaving {
  animation-name: profilePanelOutToLeft;
}

.game-logo-placeholder {
  border-color: var(--line-strong);
  color: var(--acid);
  box-shadow: 0 0 14px rgba(150, 255, 48, 0.18);
}

.profile-game-card,
.player-game-row,
.rail-card,
.game-card,
.best-game-card {
  --accent: var(--acid) !important;
}

@keyframes profilePanelInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-44px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes profilePanelOutToRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(44px) scale(0.985);
  }
}

@keyframes profilePanelInFromRight {
  from {
    opacity: 0;
    transform: translateX(44px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes profilePanelOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-44px) scale(0.985);
  }
}

@media (max-width: 1180px) {
  .history-back {
    top: 184px;
  }

  .profile-mode-switchbar {
    top: 172px;
  }

  .profile-mode-switch {
    width: min(760px, calc(100vw - 36px));
  }

  .player-profile-stage,
  .player-profile[data-mode="stats"] .player-profile-stage {
    grid-template-columns: 1fr;
  }

  .player-model-panel,
  .player-profile[data-mode="stats"] .player-model-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .profile-info-panel,
  .profile-stats-panel {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 720px) {
  .history-back {
    top: 240px;
    left: 12px;
    min-height: 34px;
  }

  .profile-mode-switchbar {
    top: 166px;
    margin-bottom: 36px;
    padding-block: 8px;
  }

  .profile-mode-switch {
    height: 48px;
  }

  .profile-mode-switch button {
    font-size: 13px;
  }

  .player-profile {
    --model-width: 286px;
    --model-height: 430px;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }
}

.player-profile {
  --model-width: 430px;
  --model-height: 640px;
}

.profile-mode-switchbar {
  position: static;
  z-index: auto;
  width: min(760px, 100%);
  display: flex;
  justify-content: center;
  margin: 0 auto 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-mode-switch {
  width: min(760px, 100%);
}

.player-profile-head {
  margin-bottom: 28px;
}

.player-profile-stage {
  grid-template-columns: var(--model-width) minmax(0, 1fr);
  gap: 42px;
}

.player-profile[data-mode="stats"] .player-profile-stage {
  grid-template-columns: minmax(0, 1fr) var(--model-width);
}

.player-model-panel {
  width: min(var(--model-width), 100%);
}

.player-model-figure {
  width: min(var(--model-width), 100%);
  height: var(--model-height);
}

.player-model-canvas,
.player-model-fallback {
  filter: saturate(1.28) contrast(1.08) brightness(1.08) drop-shadow(16px 18px 0 rgba(0, 0, 0, 0.22));
}

.profile-info-lower {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.profile-info-lower .profile-facts,
.profile-side-notes {
  border: 1px solid var(--line);
  background: rgba(2, 10, 6, 0.9);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18);
}

.profile-info-lower .profile-facts {
  padding: 10px 14px;
}

.profile-info-lower .profile-facts div:last-child {
  border-bottom: 0;
}

.profile-info-lower .profile-facts dd a {
  display: inline;
}

.profile-side-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.profile-side-notes a {
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid rgba(138, 255, 70, 0.22);
  color: var(--text);
  text-decoration: none;
}

.profile-side-notes a:last-child {
  border-right: 0;
}

.profile-side-notes a:hover,
.profile-side-notes a:focus-visible {
  color: var(--acid);
  background: rgba(150, 255, 48, 0.08);
  outline: none;
}

.profile-side-notes span {
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-side-notes b {
  color: inherit;
  font-size: 18px;
  line-height: 1.16;
}

.error-card {
  max-width: 760px;
  margin: 0 auto;
}

.error-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.error-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--acid);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
}

.error-actions a:hover,
.error-actions a:focus-visible {
  background: rgba(150, 255, 48, 0.1);
  outline: none;
}

@media (max-width: 1180px) {
  .player-profile {
    --model-width: 390px;
    --model-height: 580px;
  }

  .player-profile-stage,
  .player-profile[data-mode="stats"] .player-profile-stage {
    grid-template-columns: 1fr;
  }

  .profile-info-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .history-back {
    top: 184px;
  }

  .player-profile {
    --model-width: 310px;
    --model-height: 460px;
  }

  .profile-mode-switchbar {
    margin-bottom: 28px;
  }

  .profile-side-notes {
    grid-template-columns: 1fr;
  }

  .profile-side-notes a {
    border-right: 0;
    border-bottom: 1px solid rgba(138, 255, 70, 0.22);
  }

  .profile-side-notes a:last-child {
    border-bottom: 0;
  }
}


#playerDetail.content-page {
  width: min(1500px, calc(100vw - 48px));
}

.player-profile {
  --model-width: 430px;
  --model-height: 640px;
}

.profile-mode-switchbar {
  position: static;
  z-index: auto;
  width: min(760px, 100%);
  display: flex;
  justify-content: center;
  margin: 0 auto 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-mode-switch {
  width: min(760px, 100%);
}

.player-profile-stage {
  grid-template-columns: minmax(400px, var(--model-width)) minmax(0, 1fr);
  gap: 44px;
}

.player-profile[data-mode="stats"] .player-profile-stage {
  grid-template-columns: minmax(0, 1fr) minmax(400px, var(--model-width));
}

.player-model-panel {
  width: min(var(--model-width), 100%);
}

.player-model-figure {
  width: min(var(--model-width), 100%);
  height: var(--model-height);
}

.player-model-canvas,
.player-model-fallback {
  filter: saturate(1.38) contrast(1.08) brightness(1.09) drop-shadow(16px 18px 0 rgba(0, 0, 0, 0.22));
}

.profile-mode-panel.is-leaving {
  pointer-events: none;
}

.profile-copy-panel {
  min-height: 246px;
  padding: 26px;
}

.profile-game-carousel {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #030c08;
}

.profile-game-strip {
  width: max-content;
  display: flex;
  animation: profileGameLoop 34s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.profile-game-card.is-icon-only {
  position: relative;
  width: 138px;
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border-right: 1px solid rgba(138, 255, 70, 0.16);
  color: var(--text);
  background: rgba(1, 7, 4, 0.94);
}

.profile-game-card.is-icon-only:hover,
.profile-game-card.is-icon-only:focus-visible {
  background: rgba(7, 18, 10, 0.98);
  outline: none;
}

.profile-game-card.is-icon-only .profile-game-icon {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  width: 56px;
  height: 56px;
  transition: opacity 140ms ease, transform 140ms ease;
}

.profile-game-card.is-icon-only .rail-tooltip {
  z-index: 2;
  inset: 8px;
  max-width: calc(100% - 16px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  opacity: 0;
  overflow: hidden;
  transform: none;
  transition: opacity 140ms ease;
}

.profile-game-card.is-icon-only .rail-tooltip b,
.profile-game-card.is-icon-only .rail-tooltip span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.profile-game-card.is-icon-only:hover .profile-game-icon,
.profile-game-card.is-icon-only:focus-visible .profile-game-icon {
  opacity: 0.12;
  transform: scale(0.88);
}

.profile-game-card.is-icon-only:hover .rail-tooltip,
.profile-game-card.is-icon-only:focus-visible .rail-tooltip {
  opacity: 1;
  transform: none;
}

.profile-info-lower {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.profile-info-lower .profile-facts,
.profile-record-card {
  border: 1px solid var(--line);
  background: rgba(2, 10, 6, 0.92);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18);
}

.profile-info-lower .profile-facts {
  padding: 12px 14px;
}

.profile-info-lower .profile-facts div {
  min-height: 48px;
}

.profile-info-lower .profile-facts div:last-child {
  border-bottom: 0;
}

.profile-record-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 18px 16px;
}

.profile-record-card h3 {
  margin: 0;
  color: var(--acid);
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
}

.profile-record-card p {
  margin: 0;
  max-width: 640px;
  color: #dbe8d8;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.profile-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid rgba(138, 255, 70, 0.22);
  border-left: 1px solid rgba(138, 255, 70, 0.22);
}

.profile-record-grid div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border-right: 1px solid rgba(138, 255, 70, 0.22);
  border-bottom: 1px solid rgba(138, 255, 70, 0.22);
}

.profile-record-grid span {
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-record-grid b {
  color: var(--acid);
  font-size: 15px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.profile-stat-grid {
  gap: 14px;
}

.profile-stat-grid article {
  min-height: 138px;
  padding: 22px 24px;
}

.player-game-stats {
  grid-template-columns: minmax(440px, 0.95fr) minmax(480px, 1fr);
  gap: 22px;
}

.player-game-row {
  min-height: 66px;
  grid-template-columns: 48px minmax(190px, 1fr) 104px 64px;
  gap: 12px;
  padding: 10px 14px;
}

.player-game-row span {
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

.player-game-row b {
  font-size: 14px;
}

.table-game-icon {
  width: 38px;
  height: 38px;
}

.player-radar {
  min-height: 444px;
  padding: 20px;
}

.player-radar svg {
  width: min(100%, 420px);
}

.radar-game-icon {
  width: 42px;
  height: 42px;
}

@media (max-width: 1360px) {
  #playerDetail.content-page {
    width: min(1320px, calc(100vw - 36px));
  }

  .player-profile {
    --model-width: 390px;
    --model-height: 590px;
  }

  .player-game-stats {
    grid-template-columns: 1fr;
  }

  .player-radar {
    min-height: 430px;
  }
}

@media (max-width: 1180px) {
  .player-profile-stage,
  .player-profile[data-mode="stats"] .player-profile-stage {
    grid-template-columns: 1fr;
  }

  .player-model-panel,
  .player-profile[data-mode="stats"] .player-model-panel,
  .profile-info-panel,
  .profile-stats-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .player-model-panel {
    max-width: 390px;
    margin-inline: auto;
  }

  .profile-info-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #playerDetail.content-page {
    width: min(100% - 24px, var(--page-width));
  }

  .player-profile {
    --model-width: 310px;
    --model-height: 460px;
  }

  .profile-record-grid,
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-game-card.is-icon-only {
    width: 112px;
    min-height: 92px;
  }

  .profile-game-card.is-icon-only .profile-game-icon {
    width: 46px;
    height: 46px;
  }

  .player-game-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .player-radar {
    min-height: 340px;
  }

  .player-radar svg {
    width: min(100%, 310px);
  }
}


#adminPage.content-page {
  width: min(1420px, calc(100vw - 48px));
}

.admin-page {
  padding-top: 34px;
}

.admin-title span {
  color: var(--cyan);
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-lock-panel,
.admin-card {
  border: 1px solid var(--line);
  background: #030c08;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18);
}

.admin-lock-panel {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px 24px;
}

.admin-lock-panel > span,
.admin-card-head span,
.admin-access-list span,
.admin-card-actions span,
.admin-form label {
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.admin-lock-panel h2,
.admin-card-head h2 {
  margin: 0;
  color: var(--acid);
  font-size: 24px;
  line-height: 1.16;
  text-transform: uppercase;
}

.admin-lock-panel p {
  margin: 0;
  max-width: 780px;
  color: #dbe8d8;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-card {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.admin-card-wide {
  grid-column: span 2;
}

.admin-card-head {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.22);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-single {
  grid-template-columns: 1fr;
}

.admin-form label {
  display: grid;
  gap: 7px;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 0;
  font: 14px/1.35 "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  outline: none;
}

.admin-form textarea {
  min-height: 142px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 2px rgba(150, 255, 48, 0.12);
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-card-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(138, 255, 70, 0.45);
  color: rgba(244, 255, 241, 0.5);
  background: rgba(0, 0, 0, 0.34);
  border-radius: 0;
  font: 12px/1 "Minecraft", "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
}

.admin-access-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(138, 255, 70, 0.22);
  border-left: 1px solid rgba(138, 255, 70, 0.22);
}

.admin-access-list div {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border-right: 1px solid rgba(138, 255, 70, 0.22);
  border-bottom: 1px solid rgba(138, 255, 70, 0.22);
}

.admin-access-list b {
  color: var(--acid);
  font-size: 15px;
  line-height: 1.2;
}

#creditsPage.content-page {
  width: min(var(--page-width), calc(100vw - 48px));
  padding-top: 76px;
}

.credits-title {
  margin-bottom: 22px;
}

.credits-basic-panel,
.credits-basic-row {
  border: 1px solid var(--line);
  background: rgba(2, 9, 6, 0.9);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.16);
}

.credits-basic-panel {
  padding: 18px 20px;
  margin-bottom: 16px;
}

.credits-basic-panel p,
.credits-basic-row p {
  margin: 0;
  color: #dbe8d8;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
}

.credits-basic-list {
  display: grid;
  gap: 10px;
}

.credits-basic-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(160px, 0.7fr) minmax(0, 1.7fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.credits-basic-row span {
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.credits-basic-row b {
  color: var(--acid);
  font-size: 18px;
  line-height: var(--pixel-line-tight);
}

#errorPage.content-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 0;
}

.error-404-screen {
  min-height: calc(100vh - 132px);
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 72px 24px;
  text-align: center;
}

.error-404-screen h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(68px, 11vw, 160px);
  line-height: 1;
  text-shadow: 7px 7px 0 #071006;
}

.error-404-screen p {
  margin: 0;
  color: var(--acid);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.45;
}

@media (max-width: 900px) {
  #adminPage.content-page,
  #creditsPage.content-page {
    width: min(100% - 24px, var(--page-width));
  }

  .credits-basic-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-grid,
  .admin-form,
  .admin-access-list {
    grid-template-columns: 1fr;
  }

  .admin-card-wide {
    grid-column: auto;
  }
}


.discord-account {
  position: relative;
}

.discord-account-button {
  padding: 0;
  cursor: pointer;
}

.discord-account-button.is-loading img {
  opacity: 0.48;
}

.discord-account-button.is-signed-in {
  border-color: var(--acid);
  background: rgba(150, 255, 48, 0.14);
  box-shadow: inset 0 -3px 0 rgba(150, 255, 48, 0.45);
}

.discord-account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(318px, calc(100vw - 22px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(150, 255, 48, 0.68);
  background:
    linear-gradient(180deg, rgba(8, 21, 13, 0.98), rgba(2, 6, 4, 0.98)),
    #020604;
  box-shadow:
    0 14px 0 rgba(0, 0, 0, 0.34),
    0 0 22px rgba(150, 255, 48, 0.12);
}

.discord-account-panel[hidden] {
  display: none;
}

.discord-account-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(138, 255, 70, 0.22);
}

.discord-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 255, 48, 0.56);
  background: rgba(150, 255, 48, 0.08);
  color: var(--acid);
  object-fit: cover;
  image-rendering: auto;
}

.discord-avatar-fallback {
  font: 18px/1 "Minecraft", "Trebuchet MS", Arial, sans-serif;
}

.discord-account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.discord-account-card span,
.discord-account-card small,
.discord-account-note,
.drawer-head span,
.drawer-status,
.drawer-notice,
.drawer-auth-gate span,
.admin-link-columns h3 {
  color: var(--muted);
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.discord-account-card b {
  color: var(--acid);
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.discord-account-actions {
  display: grid;
  gap: 8px;
}

.discord-account-note {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(202, 255, 114, 0.38);
  color: #efffd8;
  background: rgba(202, 255, 114, 0.08);
  text-transform: none;
}

.discord-account-panel button,
.discord-panel-link,
.drawer-actions button,
.drawer-head-actions button,
.drawer-auth-gate button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(202, 255, 114, 0.76);
  color: #efffd8;
  background: rgba(202, 255, 114, 0.12);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font: 12px/1 "Minecraft", "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
}

.discord-account-panel button:hover,
.discord-account-panel button:focus-visible,
.discord-panel-link:hover,
.discord-panel-link:focus-visible,
.drawer-actions button:hover,
.drawer-actions button:focus-visible,
.drawer-head-actions button:hover,
.drawer-head-actions button:focus-visible,
.drawer-auth-gate button:hover,
.drawer-auth-gate button:focus-visible {
  border-color: #e3ffa8;
  color: #ffffff;
  background: rgba(202, 255, 114, 0.2);
  outline: none;
}

.community-drawer {
  --drawer-peek: clamp(270px, 16.66vw, 360px);
  --drawer-accent: #caff72;
  --drawer-accent-strong: #e3ffa8;
  --drawer-accent-soft: rgba(202, 255, 114, 0.34);
  --drawer-accent-faint: rgba(202, 255, 114, 0.12);
  --drawer-bg: #081507;
  --drawer-bg-deep: #030804;
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(620px, calc(100vw - 42px));
  display: none;
  grid-template-columns: 42px minmax(0, 1fr);
  color: #f7ffe8;
  transform: translateX(calc(100% - 42px));
  transition: width var(--motion-drawer), transform var(--motion-drawer);
}

body[data-active-page="event"] #pickemsDrawer,
body[data-active-page="live"] #audienceVoteDrawer {
  display: grid;
}

.community-drawer.is-peek {
  transform: translateX(calc(100% - var(--drawer-peek)));
}

.community-drawer.is-full {
  width: 100vw;
  transform: translateX(0);
}

.vote-drawer.is-full {
  transform: translateX(calc(100% - var(--drawer-peek)));
}

.drawer-tab {
  width: 42px;
  min-height: 172px;
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid var(--drawer-accent);
  border-right: 0;
  color: #071508;
  background: var(--drawer-accent);
  cursor: pointer;
  box-shadow: -10px 0 0 rgba(0, 0, 0, 0.18);
}

.drawer-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
}

.drawer-panel {
  min-width: 0;
  overflow: auto;
  border-left: 2px solid var(--drawer-accent);
  background:
    linear-gradient(90deg, rgba(202, 255, 114, 0.12), transparent 38%),
    var(--drawer-bg);
  box-shadow: -18px 0 0 rgba(0, 0, 0, 0.2);
}

.vote-drawer .drawer-tab {
  border-color: var(--drawer-accent);
  background: var(--drawer-accent);
}

.vote-drawer .drawer-panel {
  border-left-color: var(--drawer-accent);
  background:
    linear-gradient(90deg, rgba(202, 255, 114, 0.12), transparent 42%),
    var(--drawer-bg);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--drawer-accent-soft);
  background: rgba(5, 14, 6, 0.96);
}

.vote-drawer .drawer-head {
  border-color: var(--drawer-accent-soft);
  background: rgba(5, 14, 6, 0.96);
}

.drawer-head span,
.drawer-head h2 {
  grid-column: 1;
}

.drawer-head h2 {
  margin: 0;
  color: var(--drawer-accent-strong);
  font-size: 22px;
  line-height: 1.12;
  text-transform: uppercase;
}

.vote-drawer .drawer-head h2 {
  color: var(--drawer-accent-strong);
}

.drawer-head-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 8px;
}

.drawer-auth-gate,
.drawer-notice,
.pickems-section,
.vote-form {
  margin: 18px;
  padding: 16px;
  border: 1px solid var(--drawer-accent-soft);
  background: rgba(0, 0, 0, 0.2);
}

.vote-form,
.vote-drawer .drawer-auth-gate,
.vote-drawer .drawer-notice {
  border-color: var(--drawer-accent-soft);
}

.drawer-auth-gate {
  display: grid;
  gap: 12px;
}

.drawer-auth-gate p {
  margin: 0;
  color: #fffdf4;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.pickems-form {
  display: grid;
  gap: 0;
  padding-bottom: 20px;
}

.pickems-section {
  display: grid;
  gap: 14px;
}

.pickems-section h3,
.vote-form h3 {
  margin: 0;
  color: #fffdf4;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.pickems-game-list {
  display: grid;
  gap: 10px;
}

.pickems-game-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(120px, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(202, 255, 114, 0.2);
  background: rgba(202, 255, 114, 0.045);
}

.pickems-game-row > b {
  color: var(--drawer-accent-strong);
  font-size: 14px;
  line-height: 1.15;
}

.pickems-game-icon {
  width: 42px;
  height: 42px;
  color: var(--drawer-accent);
  border-color: var(--drawer-accent);
}

.pickems-place-grid,
.pickems-rank-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.pickems-rank-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.team-board-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.pickems-form label,
.vote-options label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #fffdf4;
  font-family: "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.pickems-form label span {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.pickems-form select,
.vote-options label {
  width: 100%;
  min-height: 38px;
  padding: 8px;
  border: 1px solid rgba(202, 255, 114, 0.46);
  color: #f7ffe8;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 0;
  font: 12px/1.25 "Minecraft UI", "Minecraft", "Trebuchet MS", Arial, sans-serif;
}

.vote-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.vote-options label {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(202, 255, 114, 0.46);
  cursor: pointer;
}

.vote-options input {
  accent-color: var(--drawer-accent);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px;
}

.drawer-status {
  margin: 0 18px 18px;
  color: var(--drawer-accent-strong);
}

.vote-drawer .drawer-status {
  color: var(--drawer-accent-strong);
}

.admin-grid-expanded {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-lock-panel-ok {
  border-color: rgba(150, 255, 48, 0.82);
}

.admin-lock-panel-denied {
  border-color: rgba(255, 204, 56, 0.74);
}

.admin-lock-panel .admin-card-actions button,
.admin-card-actions button:not(:disabled) {
  color: var(--acid);
  border-color: rgba(138, 255, 70, 0.58);
  background: rgba(150, 255, 48, 0.1);
  cursor: pointer;
}

.admin-lock-panel .admin-card-actions button:hover,
.admin-card-actions button:not(:disabled):hover,
.admin-card-actions button:not(:disabled):focus-visible {
  border-color: var(--line-strong);
  background: rgba(150, 255, 48, 0.16);
  outline: none;
}

.admin-score-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-link-columns section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(138, 255, 70, 0.22);
  background: rgba(0, 0, 0, 0.18);
}

.admin-link-columns h3 {
  margin: 0 0 4px;
  color: var(--acid);
}

.admin-check {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
}

.admin-check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--acid);
}

@media (max-width: 980px) {
  .community-drawer {
    --drawer-peek: min(86vw, 360px);
    top: 70px;
    width: calc(100vw - 38px);
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .drawer-tab {
    width: 38px;
  }

  .pickems-place-grid,
  .pickems-rank-grid,
  .team-board-grid,
  .admin-grid-expanded,
  .admin-score-form,
  .admin-link-columns {
    grid-template-columns: 1fr;
  }
}
