:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #0d1016;
  --panel: #12151c;
  --panel-raised: #191d26;
  --line: #2d323d;
  --line-bright: #484f5e;
  --text: #f5f5f2;
  --muted: #a2a7b1;
  --brand: #e51f34;
  --brand-bright: #ff4355;
  --brand-dark: #27080e;
  --green: #58efad;
  --green-dark: #071d15;
  --red: #ff7091;
  --gold: #ffd166;
  --blue: #79b8ff;
  --shadow: 0 22px 70px rgb(0 0 0 / 34%);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 3%, rgb(229 31 52 / 16%) 0, transparent 28rem),
    radial-gradient(circle at 10% -8%, rgb(255 255 255 / 8%) 0, transparent 30rem),
    linear-gradient(180deg, #0b0d12 0, var(--bg) 50rem);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid rgb(88 239 173 / 45%);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  translate: 0 -160%;
  border-radius: 8px;
  background: var(--green);
  color: #03130c;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: 24px 0 clamp(44px, 7vw, 82px);
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.hero::before {
  position: absolute;
  top: -22rem;
  right: -14rem;
  width: 48rem;
  height: 48rem;
  border: 1px solid rgb(229 31 52 / 14%);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgb(229 31 52 / 2.5%),
    0 0 0 14rem rgb(229 31 52 / 2%);
  content: "";
  pointer-events: none;
}

.event-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.event-lockup {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgb(255 255 255 / 15%);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
}

.event-lockup span {
  padding: 9px 10px;
}

.event-year {
  background: var(--text);
  color: #0a0b0f;
}

.event-name {
  background: var(--brand);
  color: #fff;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8dae0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.category-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 5px rgb(229 31 52 / 12%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, .68fr);
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(46px, 7vw, 82px);
}

.eyebrow,
.section-kicker,
.readout-label {
  margin: 0;
  color: var(--brand-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

h1 {
  max-width: 100%;
  margin: 10px 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(46px, 7.2vw, 88px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .82;
  text-transform: uppercase;
}

h1 span,
h1 strong {
  display: block;
  white-space: nowrap;
}

h1 strong {
  margin-top: .2em;
  color: var(--brand-bright);
  font-size: 1.17em;
  letter-spacing: .06em;
}

.hero-summary {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.75;
}

.hero-summary strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  transition: border-color 160ms ease, translate 160ms ease, background-color 160ms ease;
}

.hero-action:hover {
  translate: 0 -2px;
}

.hero-action.primary {
  border-color: var(--brand-bright);
  background: var(--brand);
  color: #fff;
}

.hero-action.primary:hover {
  background: var(--brand-bright);
}

.hero-action.secondary {
  background: rgb(255 255 255 / 3%);
  color: var(--text);
}

.hero-action.secondary:hover {
  border-color: rgb(255 255 255 / 45%);
}

.mission-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 690px;
  margin: 34px 0 0;
  border-block: 1px solid rgb(255 255 255 / 10%);
}

.mission-metrics div {
  min-width: 0;
  padding: 14px 16px 14px 0;
}

.mission-metrics div + div {
  padding-left: 16px;
  border-left: 1px solid rgb(255 255 255 / 10%);
}

.mission-metrics dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.mission-metrics dd {
  margin: 3px 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.throne-card {
  position: relative;
  overflow: hidden;
  min-height: 462px;
  padding: 24px;
  border: 1px solid rgb(229 31 52 / 40%);
  border-radius: 3px 3px 18px 3px;
  background:
    linear-gradient(145deg, rgb(229 31 52 / 10%), transparent 38%),
    linear-gradient(180deg, #15171d, #0b0d12);
  box-shadow: 0 24px 70px rgb(0 0 0 / 45%);
}

.throne-card::before,
.throne-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.throne-card::before {
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgb(255 255 255 / 1.5%) 8px);
}

.throne-card::after {
  right: -42px;
  bottom: -42px;
  width: 132px;
  height: 132px;
  border: 28px solid rgb(229 31 52 / 14%);
  rotate: 45deg;
}

.throne-header,
.king-readout,
.throne-route,
.crown-mark {
  position: relative;
  z-index: 1;
}

.throne-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.live-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgb(255 209 102 / 32%);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.live-signal::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.throne-card[data-state="occupied"] .live-signal {
  border-color: rgb(88 239 173 / 32%);
  color: var(--green);
}

.throne-card[data-state="offline"] .live-signal {
  border-color: rgb(255 112 145 / 32%);
  color: var(--red);
}

.crown-mark {
  display: flex;
  height: 100px;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  margin-top: 36px;
  border-bottom: 2px solid var(--brand-bright);
}

.crown-mark span {
  width: 26%;
  height: 66%;
  background: linear-gradient(180deg, var(--brand-bright), #7d101e);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.crown-mark span:nth-child(2) {
  height: 100%;
}

.king-readout {
  display: grid;
  margin-top: 20px;
}

.king-readout strong {
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
}

.king-size {
  margin-top: 5px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.throne-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.throne-route li {
  padding: 8px 5px;
  border-top: 1px solid var(--line-bright);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.throne-route li span {
  display: block;
  color: var(--brand-bright);
  font-size: 8px;
}

main {
  padding-top: 32px;
  padding-bottom: 72px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(23 26 34 / 97%), rgb(12 14 19 / 97%));
  box-shadow: var(--shadow);
}

.panel::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(255 255 255 / 2%), transparent 35%);
  content: "";
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.notice-error {
  border-color: rgb(255 112 145 / 55%);
  color: #ffc1cf;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 20px;
}

h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(18px, 2.5vw, 23px);
  letter-spacing: -.03em;
}

.pill,
.connection-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: #0a1018;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.connection-badge::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.connection-badge[data-state="online"] {
  border-color: rgb(88 239 173 / 35%);
  color: var(--green);
}

.connection-badge[data-state="loading"] {
  color: var(--gold);
}

.connection-badge[data-state="error"],
.connection-badge[data-state="offline"] {
  color: var(--red);
}

.how-to,
.downloads {
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 30px);
}

.how-to ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-to li {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090e15;
}

.how-to li > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.how-to li p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.how-to strong {
  color: var(--text);
}

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

.download-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090e15;
  color: var(--green);
  text-decoration: none;
  transition: border-color 160ms ease, translate 160ms ease, background-color 160ms ease;
}

.download-card:hover {
  translate: 0 -2px;
  border-color: rgb(88 239 173 / 65%);
  background: #0b1418;
}

.download-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(88 239 173 / 35%);
  border-radius: 9px;
  background: var(--green-dark);
  font-size: 20px;
}

.download-card span:last-child {
  min-width: 0;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(310px, .84fr);
  align-items: start;
  gap: 18px;
}

.dashboard-grid + .downloads {
  margin-top: 18px;
}

.session-panel,
.leaderboard-panel,
.history-panel {
  padding: clamp(20px, 3vw, 28px);
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 47px;
  padding: 10px 72px 10px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: #080c12;
  color: var(--text);
}

input:hover,
input:focus {
  border-color: var(--green);
}

.password-field {
  position: relative;
}

.password-field .icon-button {
  position: absolute;
  top: 7px;
  right: 7px;
}

.field-help,
.fine-print {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.check-row {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  cursor: pointer;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  padding: 11px 15px;
  background: var(--green);
  color: #03130c;
  box-shadow: 0 8px 25px rgb(88 239 173 / 13%);
}

.primary-button:not(:disabled):hover {
  filter: brightness(1.06);
}

.secondary-button,
.icon-button {
  padding: 8px 11px;
  border: 1px solid var(--line-bright);
  background: #0a1018;
  color: var(--text);
}

.secondary-button:not(:disabled):hover,
.icon-button:not(:disabled):hover {
  border-color: var(--green);
  color: var(--green);
}

.compact-button {
  min-height: 35px;
  white-space: nowrap;
}

.team-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgb(88 239 173 / 28%);
  border-radius: 10px;
  background: var(--green-dark);
}

.team-card small,
.team-card strong,
.team-card span {
  display: block;
}

.team-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.team-card strong {
  overflow: hidden;
  max-width: 25ch;
  color: var(--green);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.drop-zone {
  display: grid;
  min-height: 154px;
  padding: 19px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--line-bright);
  border-radius: 11px;
  background: #080c12;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone:focus-within {
  border-color: var(--green);
  background: var(--green-dark);
}

.drop-zone:focus-visible {
  outline: 3px solid rgb(88 239 173 / 45%);
  outline-offset: 3px;
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.drop-mark {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  place-items: center;
  border: 1px solid rgb(88 239 173 / 35%);
  border-radius: 50%;
  color: var(--green);
  font-size: 24px;
}

.drop-zone strong {
  font-size: 13px;
}

.drop-zone small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.file-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}

.file-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-summary strong {
  flex: 0 0 auto;
  color: var(--green);
}

.progress-wrap {
  margin-top: 13px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  color: var(--green);
}

progress::-webkit-progress-bar {
  background: var(--line);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--green);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--green);
}

.button-row {
  display: flex;
  gap: 8px;
}

.button-row .secondary-button {
  flex: 0 0 auto;
  margin-top: 14px;
}

.status {
  display: flex;
  align-items: flex-start;
  min-height: 52px;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #090e15;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.status[data-type="success"] {
  border-color: rgb(88 239 173 / 35%);
  color: var(--green);
}

.status[data-type="success"] .status-dot {
  background: var(--green);
}

.status[data-type="error"] {
  border-color: rgb(255 112 145 / 35%);
  color: #ff9db4;
}

.status[data-type="error"] .status-dot {
  background: var(--red);
}

.status[data-type="working"] .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgb(255 209 102 / 8%);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  50% { opacity: .35; }
}

.board-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-scroll {
  overflow: auto;
  scrollbar-color: var(--line-bright) transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 12px;
}

td[data-label="Team"] {
  min-width: 0;
  overflow-wrap: anywhere;
}

td[data-label="Rank"],
td[data-label="Size"],
td[data-label="Runtime"] {
  white-space: nowrap;
}

tr.king td {
  color: var(--gold);
  font-weight: 800;
}

tr.king {
  box-shadow: inset 3px 0 0 var(--gold);
  background: linear-gradient(90deg, rgb(255 209 102 / 7%), transparent);
}

.rank-mark {
  margin-right: 5px;
}

.verdict {
  display: inline-flex;
  min-width: 50px;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.verdict.pass {
  border-color: rgb(88 239 173 / 35%);
  color: var(--green);
}

.verdict.pending {
  border-color: rgb(255 209 102 / 35%);
  color: var(--gold);
}

.verdict.fail,
.verdict.error {
  border-color: rgb(255 112 145 / 35%);
  color: var(--red);
}

.empty-cell {
  padding: 35px 12px;
  color: var(--muted);
  text-align: center;
}

.leaderboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
}

.leaderboard-footer p {
  margin: 0;
}

.history-panel {
  margin-top: 18px;
}

.site-footer {
  padding: 23px 0 32px;
  border-top: 1px solid #172130;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.site-footer span:first-child {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .throne-card {
    min-height: 0;
  }

  .how-to ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(40px, 15vw, 66px);
    letter-spacing: -.07em;
  }

  .event-bar {
    align-items: flex-start;
  }

  .category-badge {
    padding-top: 7px;
    font-size: 9px;
  }

  .hero-grid {
    padding-top: 42px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mission-metrics {
    grid-template-columns: 1fr;
  }

  .mission-metrics div {
    padding: 11px 0;
  }

  .mission-metrics div + div {
    padding-left: 0;
    border-top: 1px solid rgb(255 255 255 / 10%);
    border-left: 0;
  }

  .throne-card {
    padding: 20px;
  }

  .section-heading,
  .section-heading.compact {
    align-items: flex-start;
  }

  .how-to ol,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .how-to li {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: start;
  }

  .how-to li p {
    margin-top: 0;
  }

  .leaderboard-heading {
    flex-direction: column;
  }

  .table-scroll {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  tbody {
    display: grid;
    gap: 9px;
  }

  tbody tr.data-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #090e15;
  }

  tbody tr.king {
    border-color: rgb(255 209 102 / 35%);
    background: rgb(255 209 102 / 6%);
  }

  td {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 6px 4px;
    border: 0;
    text-align: right;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
  }

  .empty-cell {
    display: block;
    padding: 28px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .empty-cell::before {
    content: none;
  }

  .leaderboard-footer,
  .site-footer .shell {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .panel {
    border-radius: 12px;
  }

  .session-panel,
  .leaderboard-panel,
  .history-panel,
  .how-to,
  .downloads {
    padding: 17px;
  }

  tbody tr.data-row {
    grid-template-columns: 1fr;
  }

  .event-lockup {
    font-size: 11px;
  }

  .event-lockup span {
    padding: 8px 7px;
  }

  .category-badge {
    max-width: 94px;
    justify-content: flex-end;
    text-align: right;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .throne-route {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
