@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0b111a;
  --panel: #111a25;
  --panel-top: #131e2a;
  --line: #253141;
  --line-soft: #202b39;
  --text: #e9eef3;
  --muted: #8f9dab;
  --lime: #b2ed7e;
  --cyan: #6cd8d6;
  --orange: #ffba69;
  --red: #ff899f;
  --radius: 18px;
  --font: Inter,"Segoe UI",Arial,sans-serif;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

button,input,select {
  font: inherit;
}

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

button {
  cursor: pointer;
}

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

button,a,input,select,summary {
  outline-offset: 4px;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 2px solid var(--lime);
}

input:focus-visible,select:focus-visible {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px #b2ed7e14;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none!important;
}

h1,h2,h3,p {
  margin: 0;
}

h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}

h3 {
  font-size: 18px;
}

img,svg {
  display: block;
}

svg {
  width: 20px;
  height: 20px;
}

input,select {
  width: 100%;
  height: 43px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c141e;
  padding: 10px 12px;
  transition: border-color .18s;
  min-width: 0;
}

input::placeholder {
  color: #617386;
}

select {
  cursor: pointer;
}

input[type=range] {
  height: 22px;
  padding: 0;
  accent-color: var(--lime);
  cursor: pointer;
  background: none;
  border: 0;
  box-shadow: none;
}

input[type=checkbox],input[type=radio] {
  accent-color: var(--lime);
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.shell {
  max-width: 1352px;
  padding-left: 36px;
  padding-right: 36px;
  margin-left: auto;
  margin-right: auto;
}

.ambient {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .075;
  background: #5a99a0;
  top: -360px;
  right: 8%;
}

.site-header {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  color: var(--lime);
}

.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .03em;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.connection i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px #ffba6930;
}

.connection.connected i {
  background: var(--lime);
  box-shadow: 0 0 10px #b2ed7e30;
}

.connection.connected {
  color: #b0bcbf;
}

.intro {
  padding-top: 18px;
  padding-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 600;
}

.intro h1 {
  font-size: 43px;
  letter-spacing: -.052em;
  line-height: 1.15;
  font-weight: 700;
  margin-top: 8px;
}

.intro h1 span {
  color: var(--lime);
}

.intro-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.intro-actions .button {
  font-size: 12px;
  padding: 11px 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s,border-color .18s,transform .18s;
  background: transparent;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--lime);
  color: #152012;
  border-color: var(--lime);
}

.button-primary:hover:not(:disabled) {
  background: #c4f69c;
  border-color: #c4f69c;
}

.button-outline {
  background: #15202c;
  border-color: var(--line);
  color: #d8e1e8;
}

.button-outline:hover:not(:disabled) {
  border-color: #4e626f;
  background: #192633;
}

.button-quiet {
  color: #b5c3d0;
  background: transparent;
}

.button-quiet:hover:not(:disabled) {
  background: #1b2938;
  color: white;
}

.button-danger {
  color: #ff9faf;
  background: #ff789910;
  border-color: #ff78992b;
}

.button-danger:hover:not(:disabled) {
  background: #ff789921;
  border-color: #ff789950;
}

.button-small {
  min-height: 33px;
  padding: 6px 10px;
  font-size: 11px;
}

.button-wide {
  width: 100%;
  justify-content: space-between;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--lime);
  font-size: 11px;
  text-decoration: none;
  background: none;
}

.text-button:hover {
  text-decoration: underline;
}

.icon-button {
  background: none;
  border: 0;
  border-radius: 7px;
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8294a7;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-button:hover {
  color: white;
  background: #263649;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 15px 0 16px;
  background: none;
  border: none;
  position: relative;
  font-weight: 550;
}

.tab.active {
  color: var(--lime);
}

.tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
}

.tab:hover {
  color: var(--text);
}

.live-dot,.section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.tab-tag,.tab-count {
  font-family: var(--mono);
  font-size: 9px;
  background: #202c37;
  border: 1px solid #314251;
  padding: 0 4px;
  border-radius: 4px;
  color: #9eafbc;
}

.tabs-note {
  margin-left: auto;
  color: #536676;
  font-size: 10px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.arena-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 306px;
  gap: 20px;
  align-items: start;
}

.arena-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 0;
}

.arena-card {
  overflow: hidden;
  background: linear-gradient(160deg,#14212e,#101824 65%);
}

.arena-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}

.arena-heading-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.arena-heading h2 {
  font-size: 13px;
  color: #c5d2df;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #647b8b;
  font-size: 11px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  line-height: 1.4;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #adbbcc;
  background: #293749;
  white-space: nowrap;
  letter-spacing: .02em;
}

.status-pill.running {
  background: #b2ed7e12;
  color: var(--lime);
  border: 1px solid #b2ed7e2a;
}

.status-pill.paused,.status-pill.starting,.status-pill.finishing,.status-pill.stopping {
  background: #ffba6912;
  color: var(--orange);
  border: 1px solid #ffba6926;
}

.status-pill.finished {
  background: #6cd8d610;
  color: var(--cyan);
  border: 1px solid #6cd8d626;
}

.status-pill.stopped,.status-pill.interrupted {
  background: #ff899f12;
  color: var(--red);
  border: 1px solid #ff899f26;
}

.arena-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 22px 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: #587081;
  letter-spacing: .04em;
}

.arena-meta strong {
  font-weight: 400;
  color: #94a8b8;
  letter-spacing: 0;
}

.arena-meta #seed-label {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-counter {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.turn-counter strong {
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.turn-counter span {
  color: #526b7c;
  font-size: 11px;
}

.canvas-wrap {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  width: min(calc(100% - 44px),600px);
  aspect-ratio: 1;
  max-height: 63vh;
  max-height: 63svh;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #2a3b4b;
  background: #0c141e;
}

#arena-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.board-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center,#111d2cde,#101c2680 60%,transparent 90%);
  padding: 30px;
}

.empty-emblem {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 62px;
  height: 62px;
  font-size: 32px;
  color: var(--lime);
  background: #b2ed7e09;
  border: 1px solid #b2ed7e2e;
  border-radius: 18px;
  margin-bottom: 21px;
  box-shadow: 0 0 70px #b2ed7e0d;
}

.board-empty h3 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -.04em;
}

.board-empty p {
  color: #8297a9;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 10px;
}

.board-empty .small-note {
  margin-top: 26px;
  color: #567080;
  font-family: var(--mono);
  font-size: 10px;
}

.arena-foot {
  padding: 16px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #5d778a;
}

.sync-icon {
  color: var(--cyan);
  font-size: 14px;
  line-height: 1;
  vertical-align: -1px;
  margin-right: 5px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.subtle {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading .subtle {
  font-size: 10px;
}

.section-dot {
  background: #607c90;
  width: 5px;
  height: 5px;
}

.events-card,.series-card {
  padding: 18px 20px;
}

.event-feed {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  max-height: 166px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #304254 transparent;
}

.event-feed li {
  font-size: 11px;
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #26344575;
  color: #9daebc;
  line-height: 1.6;
}

.event-feed li:first-child {
  border-top: 0;
  padding-top: 0;
}

.event-feed .event-turn {
  font-family: var(--mono);
  font-size: 9px;
  color: #5c7589;
  white-space: nowrap;
  min-width: 40px;
  padding-top: 2px;
}

.event-feed .event-death {
  color: #d0b7c1;
}

.event-feed .empty-events {
  font-size: 11px;
  color: #586f80;
  padding-top: 0;
}

.event-feed .event-win {
  color: var(--lime);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.roster-card,.upload-card,.host-panel {
  padding: 20px;
}

.status-count,.tiny-label {
  font-size: 9px;
  font-weight: 500;
  color: #74899c;
}

.status-count {
  background: #1f2c3b;
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
}

.roster {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 19px;
}

.snake-card {
  --snake: #73e6b0;
  position: relative;
}

.snake-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.snake-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: color-mix(in srgb,var(--snake) 12%,transparent);
  color: var(--snake);
  border: 1px solid color-mix(in srgb,var(--snake) 22%,transparent);
  flex-shrink: 0;
}

.snake-avatar:before,.snake-avatar:after {
  content: "";
  position: absolute;
  top: 10px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--snake);
}

.snake-avatar:before {
  left: 9px;
}

.snake-avatar:after {
  right: 9px;
}

.snake-info {
  min-width: 0;
  flex: 1;
}

.snake-name {
  font-size: 12px;
  font-weight: 550;
  color: #d6e0e9;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.snake-meta {
  font-size: 9px;
  color: #6e8496;
  margin-top: 1px;
}

.snake-length {
  font-family: var(--mono);
  font-size: 13px;
  color: #c3d1dc;
  text-align: right;
  font-weight: 500;
}

.snake-length span {
  display: block;
  font-family: var(--font);
  font-size: 8px;
  color: #596e80;
  font-weight: 400;
  margin-top: -2px;
}

.health-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0 38px;
}

.health-bar {
  height: 4px;
  flex: 1;
  background: #243447;
  border-radius: 5px;
  overflow: hidden;
}

.health-fill {
  height: 100%;
  background: var(--snake);
  border-radius: 5px;
  transition: width .16s ease;
}

.health-number {
  min-width: 22px;
  font-family: var(--mono);
  font-size: 9px;
  color: #738c9e;
  text-align: right;
}

.snake-card.dead {
  opacity: .52;
}

.snake-card.dead .snake-avatar:before,.snake-card.dead .snake-avatar:after {
  height: 2px;
  top: 13px;
}

.snake-card.dead .snake-avatar:before {
  transform: rotate(30deg);
}

.snake-card.dead .snake-avatar:after {
  transform: rotate(-30deg);
}

.snake-card.dead .health-fill {
  background: #708393;
}

.snake-card.winner .snake-meta {
  color: var(--lime);
}

.empty-roster {
  text-align: center;
  color: #647c8d;
  font-size: 11px;
  padding: 13px 0 8px;
  line-height: 1.7;
}

.empty-lines {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 22px;
  margin-bottom: 13px;
}

.empty-lines i {
  display: block;
  width: 5px;
  height: 17px;
  background: #2b4050;
  border-radius: 3px;
}

.empty-lines i:nth-child(2) {
  height: 25px;
  background: #405762;
}

.empty-lines i:nth-child(3) {
  height: 12px;
}

.section-copy {
  font-size: 11px;
  color: #788d9f;
  line-height: 1.65;
  margin-top: 10px;
}

.upload-card {
  background: linear-gradient(150deg,#162332,#111a25 60%);
  border-color: #304151;
}

.upload-card .section-copy {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #93a6b7;
  margin-bottom: 6px;
}

.field-label input,.field-label select {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.color-field {
  margin-top: 14px;
  margin-bottom: 16px;
}

.palette {
  display: flex;
  gap: 11px;
  padding: 4px 1px 1px;
}

.color-choice {
  position: relative;
  width: 23px;
  height: 23px;
  display: block;
  cursor: pointer;
  border-radius: 50%;
  background: var(--swatch);
  border: 4px solid #13202c;
  outline: 1px solid transparent;
  transition: outline-color .15s;
  flex-shrink: 0;
}

.color-choice.selected {
  outline-color: var(--swatch);
}

.color-choice.selected:after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #112119;
  border-radius: 50%;
}

.color-choice input {
  position: absolute;
  opacity: 0;
  inset: -4px;
  width: 23px;
  height: 23px;
  margin: 0;
  cursor: pointer;
}

.color-choice:focus-within {
  outline: 2px solid white;
}

.color-choice.unavailable {
  opacity: .3;
}

.file-zone {
  border: 1px dashed #405368;
  border-radius: 10px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  cursor: pointer;
  background: #111c28;
  transition: border-color .15s,background .15s;
}

.file-zone:hover,.file-zone.dragging {
  border-color: var(--lime);
  background: #1d2e35;
}

.file-zone:focus-within {
  outline: 2px solid var(--lime);
}

.file-symbol {
  font-family: var(--mono);
  font-size: 19px;
  color: #768ea4;
  font-weight: 400;
}

.file-zone>span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.file-zone strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #c7d3dc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.file-zone small {
  display: block;
  font-size: 9px;
  color: #667d90;
  margin-top: 4px;
}

.file-arrow {
  color: #6b8295;
  font-size: 20px;
}

.upload-card .button-wide {
  margin-top: 14px;
  min-height: 41px;
  font-size: 11px;
}

.upload-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 8px;
  color: #536d7e;
}

.upload-hint .text-button {
  font-size: 10px;
}

.form-feedback {
  font-size: 11px;
  line-height: 1.6;
  background: #ff899f0d;
  border: 1px solid #ff899f30;
  color: #ffacbc;
  border-radius: 8px;
  padding: 10px;
  margin-top: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.form-feedback.success {
  color: var(--lime);
  background: #b2ed7e0c;
  border-color: #b2ed7e30;
}

.form-feedback.pending {
  color: #a3bbcf;
  background: #76aad80a;
  border-color: #76aad82b;
}

.host-panel {
  border-color: #b2ed7e2a;
  background: linear-gradient(150deg,#192322,#121b26 45%);
}

.host-panel form {
  margin-top: 18px;
}

.host-star {
  color: var(--lime);
  font-size: 17px;
}

.fields-two {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 11px;
}

.fields-two .field-label {
  min-width: 0;
}

.fields-two input,.fields-two select {
  font-size: 11px;
  padding: 9px;
  height: 39px;
}

.mode-description {
  color: #6f8897;
  font-size: 10px;
  margin: 3px 0 14px;
  line-height: 1.6;
}

.host-extra {
  margin: 11px 0 16px;
}

.host-extra summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7d938f;
  cursor: pointer;
}

.host-extra summary::-webkit-details-marker {
  display: none;
}

.host-extra[open] summary {
  margin-bottom: 11px;
}

.optional {
  font-weight: 400;
  color: #536879;
  font-size: 8px;
}

.selection-note {
  font-size: 9px;
  text-align: center;
  color: #748897;
  margin-top: 9px;
}

.active-match-controls {
  margin-top: 16px;
}

.live-controls-row {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
}

.live-controls-row .button {
  flex: 1;
  font-size: 11px;
  padding: 7px;
}

.active-match-controls .field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #607c8b;
}

.speed-control input {
  min-width: 0;
  flex: 1;
}

.small-note {
  font-size: 9px;
  color: #637b8d;
}

.active-match-controls .small-note {
  text-align: center;
  margin-top: 8px;
}

.lobby-card {
  margin-top: 20px;
  padding: 20px 22px;
}

.lobby-card .section-copy {
  margin-top: 4px;
}

.inline-count {
  font-size: 10px;
  color: #8298ab;
  font-family: var(--mono);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: #213140;
  margin-left: 3px;
}

.lobby-bots {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 18px;
}

.lobby-bot {
  --snake: #73e6b0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  min-width: 180px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  max-width: calc(33.333% - 8px);
  background: #121e2b;
  text-align: left;
  color: inherit;
}

.lobby-bot.selectable {
  cursor: pointer;
}

.lobby-bot.selectable:hover {
  border-color: #668361;
}

.lobby-bot.selected {
  border-color: #b2ed7e62;
  background: #b2ed7e05;
}

.lobby-bot .snake-avatar {
  width: 29px;
  height: 29px;
}

.lobby-bot .lobby-name {
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-bot .lobby-meta {
  font-size: 9px;
  color: #6d8697;
  margin-top: 3px;
}

.lobby-bot .lobby-details {
  flex: 1;
  min-width: 0;
}

.lobby-check {
  width: 15px;
  height: 15px;
  border: 1px solid #405569;
  border-radius: 4px;
  margin-left: 5px;
  color: #152012;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.selected .lobby-check {
  background: var(--lime);
  border-color: var(--lime);
}

.ready-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: 1px;
}

.empty-lobby {
  font-size: 11px;
  color: #5d778b;
  padding: 7px 0;
}

.result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #08131d59;
  backdrop-filter: blur(3px);
}

.result-card {
  position: relative;
  width: min(330px,100%);
  border: 1px solid #66876878;
  border-radius: 16px;
  background: linear-gradient(145deg,#1c2d31f5,#101c29fa 70%);
  box-shadow: 0 20px 80px #0006;
  padding: 26px;
  text-align: center;
}

.result-close {
  position: absolute;
  right: 7px;
  top: 6px;
  font-size: 23px;
}

.result-icon {
  font-size: 40px;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 13px;
  text-shadow: 0 0 35px #b2ed7e55;
}

.result-card .eyebrow {
  font-size: 8px;
  letter-spacing: .19em;
  color: #8ca695;
}

.result-card h3 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -.05em;
  color: #edf5e9;
  margin-top: 9px;
  overflow-wrap: anywhere;
}

.result-card #result-detail {
  font-size: 11px;
  color: #9bb0bd;
  margin-top: 10px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 21px;
}

.result-actions .button {
  width: 100%;
  font-size: 11px;
}

.replay-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  background: #6cd8d608;
  border: 1px solid #6cd8d62a;
  padding: 13px 18px;
  border-radius: 12px;
}

.replay-banner .eyebrow {
  font-size: 8px;
  color: var(--cyan);
  margin-bottom: 3px;
}

.replay-banner strong {
  font-size: 13px;
  display: block;
  font-weight: 500;
}

.replay-controls {
  padding: 16px 22px 0;
}

.replay-scrubber {
  display: flex;
  gap: 15px;
  align-items: center;
}

.replay-scrubber input {
  flex: 1;
  min-width: 0;
}

.replay-position {
  white-space: nowrap;
}

#replay-position {
  font-size: 10px;
  color: #8ba5b8;
  white-space: nowrap;
}

.replay-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.replay-buttons>div {
  display: flex;
  gap: 2px;
  align-items: center;
}

.replay-buttons .icon-button {
  width: 25px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
  margin-top: 10px;
}

.standings-table th {
  color: #607b8f;
  font-size: 9px;
  font-weight: 500;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
}

.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #1f2c3a;
}

.standings-table tr:last-child td {
  border-bottom: 0;
}

.standings-table th:not(:first-child),.standings-table td:not(:first-child) {
  text-align: right;
  font-family: var(--mono);
}

.standings-table .standings-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.rank-number {
  font-family: var(--mono);
  color: #5e7a8d;
  font-size: 10px;
  width: 13px;
}

.standings-color {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}

.standings-points {
  color: var(--lime);
  font-weight: 600;
}

.table-scroll {
  overflow: auto;
}

.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 32px 0 25px;
}

.view-heading h2 {
  font-size: 26px;
  letter-spacing: -.04em;
  margin-top: 8px;
}

.view-heading p:not(.eyebrow) {
  font-size: 12px;
  color: #7f95a7;
  margin-top: 8px;
}

.heading-buttons {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}

.replay-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.replay-list-card {
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(140deg,#172431,#111b27 65%);
}

.replay-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  color: #6b8498;
}

.replay-list-card h3 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.4;
  margin-top: 25px;
  overflow-wrap: anywhere;
}

.replay-list-card .replay-winner-label {
  color: #5b798d;
  font-size: 8px;
  letter-spacing: .14em;
  margin-top: 17px;
}

.replay-list-card h3 {
  margin-top: 4px;
}

.replay-list-meta {
  color: #6a8498;
  font-family: var(--mono);
  font-size: 9px;
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.replay-list-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
}

.replay-list-actions {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #263849;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.replay-list-actions a {
  color: var(--lime);
  font-size: 11px;
  text-decoration: none;
}

.replay-list-actions a:hover {
  text-decoration: underline;
}

.archive-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 30px;
}

.archive-empty h3 {
  font-size: 22px;
  color: #b9cbd9;
}

.archive-empty p {
  font-size: 12px;
  color: #6a8499;
  margin-top: 10px;
}

.contract-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 22px;
  align-items: start;
}

.contract-content {
  padding: 29px 32px;
  color: #aebfcd;
  font-size: 12px;
  line-height: 1.85;
  min-width: 0;
}

.contract-content h1 {
  font-size: 26px;
  color: #e5eef4;
  letter-spacing: -.05em;
  line-height: 1.3;
  margin-bottom: 20px;
}

.contract-content h2 {
  font-size: 16px;
  color: #dce8f0;
  margin-top: 25px;
  margin-bottom: 11px;
}

.contract-content h3 {
  font-size: 14px;
  color: #dce8f0;
  margin-top: 19px;
  margin-bottom: 8px;
}

.contract-content p {
  margin: 11px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contract-content ul,.contract-content ol {
  padding-left: 22px;
  margin: 12px 0;
}

.contract-content li {
  margin: 5px 0;
}

.contract-content code {
  font-family: var(--mono);
  font-size: 11px;
  color: #cce4b2;
  background: #253426;
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.contract-content pre {
  background: #0a131d;
  border: 1px solid #243447;
  padding: 19px;
  border-radius: 11px;
  overflow: auto;
  line-height: 1.7;
  margin: 17px 0;
  scrollbar-width: thin;
  scrollbar-color: #304254 transparent;
}

.contract-content pre code {
  background: none;
  padding: 0;
  color: #a4cbdb;
  border-radius: 0;
  font-size: 10px;
  white-space: pre;
  overflow-wrap: normal;
}

.contract-content strong {
  color: #d4e1eb;
  font-weight: 600;
}

.contract-content a {
  color: var(--lime);
  text-underline-offset: 3px;
}

.examples-card {
  padding: 22px;
}

.example-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 15px;
}

.example-item {
  border-top: 1px solid #283747;
  padding: 16px 0;
}

.example-item:first-child {
  border-top: 0;
  padding-top: 5px;
}

.example-item:last-child {
  padding-bottom: 0;
}

.example-item a {
  font-size: 12px;
  text-decoration: none;
  color: var(--lime);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.example-item a:hover {
  text-decoration: underline;
}

.example-item p {
  font-size: 10px;
  color: #758ea2;
  margin-top: 6px;
  line-height: 1.65;
}

.contract-tip {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 24px 12px;
  color: #5f7b8f;
  font-size: 11px;
  line-height: 1.8;
}

.contract-tip>span {
  color: var(--lime);
  font-size: 22px;
  line-height: 1.2;
}

.site-footer {
  padding-top: 31px;
  padding-bottom: 26px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  color: #425c6e;
  border-top: 1px solid #1a2935;
}

.footer-separator {
  margin: 0 8px;
  color: #688151;
}

.dialog {
  color: var(--text);
  background: linear-gradient(140deg,#182635,#111b27);
  border: 1px solid #374f62;
  border-radius: 18px;
  width: 420px;
  max-width: calc(100% - 30px);
  padding: 27px;
  box-shadow: 0 20px 90px #0009;
}

.dialog::backdrop {
  background: #040b13b8;
  backdrop-filter: blur(5px);
}

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

.dialog-heading .eyebrow {
  font-size: 8px;
  color: #769384;
}

.dialog-heading h2 {
  font-size: 23px;
  letter-spacing: -.045em;
  margin-top: 7px;
}

.dialog .section-copy {
  margin-bottom: 20px;
}

.dialog .button-wide {
  margin-top: 18px;
}

.dialog-close {
  margin-top: -9px;
  margin-right: -11px;
}

.logs-dialog {
  width: 760px;
}

.logs-content {
  max-height: 65vh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #304254 transparent;
}

.logs-content h3 {
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 9px;
}

.logs-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  padding: 16px;
  background: #0b141f;
  border: 1px solid #283d50;
  border-radius: 10px;
  color: #9db5c8;
  margin: 10px 0 18px;
}

.logs-content p {
  font-size: 12px;
  color: #8ca2b5;
  margin: 12px 0;
}

.logs-content .log-truncated {
  color: var(--orange);
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  max-width: min(550px,calc(100% - 30px));
  background: #1e3340;
  border: 1px solid #4b6c79;
  box-shadow: 0 8px 40px #0007;
  border-radius: 11px;
  padding: 13px 19px;
  color: #d7e8eb;
  font-size: 12px;
  text-align: center;
}

.toast.error {
  background: #34222f;
  border-color: #765064;
  color: #ffb8c7;
}

.sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0!important;
}

.noscript {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #4a2435;
  color: white;
  padding: 16px;
  border-radius: 8px;
  z-index: 100;
}

.busy {
  animation: pulse-opacity 1s ease-in-out infinite;
}

@keyframes pulse-opacity {
  50% {
    opacity: .55;
  }
}

.arena-card:fullscreen {
  background: #0c151f;
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  align-items: stretch;
  justify-content: center;
}

.arena-card:fullscreen .canvas-wrap {
  max-height: calc(100vh - 170px);
  width: min(calc(100vh - 170px),calc(100vw - 48px));
  max-width: none;
  flex-shrink: 0;
}

.arena-card:fullscreen .arena-heading,.arena-card:fullscreen .arena-meta,.arena-card:fullscreen .arena-foot,.arena-card:fullscreen .replay-controls {
  width: min(calc(100vh - 126px),calc(100vw - 4px));
  margin-left: auto;
  margin-right: auto;
}

.arena-card:fullscreen .arena-heading h2 {
  font-size: 17px;
}

@media(min-width:1500px) {
  .canvas-wrap {
    width: min(calc(100% - 44px),660px);
    max-height: 66vh;
  }
  .intro {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .intro h1 {
    font-size: 49px;
  }
  .shell {
    max-width: 1450px;
  }
  .arena-layout {
    grid-template-columns: minmax(0,1fr) 330px;
  }
  .sidebar {
    gap: 19px;
  }
  .roster-card,.upload-card,.host-panel {
    padding: 22px;
  }
}

@media(max-width:1050px) {
  .shell {
    padding-left: 25px;
    padding-right: 25px;
  }
  .arena-layout {
    grid-template-columns: minmax(0,1fr) 282px;
    gap: 16px;
  }
  .sidebar {
    gap: 16px;
  }
  .roster-card,.upload-card,.host-panel {
    padding: 18px;
  }
  .arena-heading {
    padding: 17px 17px 0;
  }
  .arena-meta {
    padding: 14px 17px 12px;
  }
  .arena-heading h2 {
    font-size: 11px;
  }
  .arena-tools {
    gap: 7px;
  }
  .canvas-wrap {
    width: calc(100% - 34px);
  }
  .arena-foot {
    padding: 14px 17px;
    font-size: 9px;
  }
  .intro h1 {
    font-size: 39px;
  }
  .lobby-bot {
    min-width: 160px;
  }
  .contract-layout {
    grid-template-columns: minmax(0,1fr) 250px;
  }
  .contract-content {
    padding: 23px;
  }
  .view-heading h2 {
    font-size: 23px;
  }
  .replay-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .tabs-note {
    display: none;
  }
}

@media(max-width:790px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    height: 85px;
  }
  .header-actions {
    gap: 12px;
  }
  .connection {
    font-size: 10px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand small {
    font-size: 8px;
  }
  .header-actions>.button {
    font-size: 10px;
    padding: 8px 9px;
    min-height: 35px;
  }
  .intro {
    padding-top: 19px;
    padding-bottom: 26px;
  }
  .intro h1 {
    font-size: 36px;
  }
  .intro-text {
    font-size: 11px;
  }
  .intro-actions .button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .tabs {
    margin-bottom: 19px;
    gap: 25px;
  }
  .tab {
    font-size: 11px;
  }
  .arena-layout {
    grid-template-columns: minmax(0,1fr) 245px;
    gap: 13px;
  }
  .roster-card,.upload-card,.host-panel {
    padding: 15px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .palette {
    gap: 9px;
  }
  .file-zone {
    padding: 12px 9px;
    gap: 8px;
  }
  .file-symbol {
    font-size: 15px;
  }
  .file-zone strong {
    font-size: 10px;
    max-width: 145px;
  }
  .file-zone small {
    font-size: 8px;
  }
  .upload-card .button-wide {
    font-size: 9px;
    gap: 4px;
  }
  .arena-heading-left {
    gap: 7px;
  }
  .arena-heading h2 {
    max-width: 135px;
  }
  .arena-tools #board-size {
    display: none;
  }
  .arena-heading {
    padding: 14px 14px 0;
  }
  .arena-meta {
    padding: 12px 14px;
    gap: 10px;
    font-size: 8px;
  }
  .canvas-wrap {
    width: calc(100% - 28px);
  }
  .arena-foot {
    padding: 12px 14px;
    font-size: 8px;
  }
  .arena-foot #match-timing {
    display: none;
  }
  .events-card,.series-card {
    padding: 16px;
  }
  .board-empty {
    padding: 14px;
  }
  .board-empty h3 {
    font-size: 17px;
  }
  .board-empty p {
    font-size: 11px;
  }
  .board-empty .small-note {
    font-size: 8px;
    margin-top: 16px;
  }
  .empty-emblem {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 14px;
    margin-bottom: 15px;
  }
  .lobby-card {
    padding: 18px;
  }
  .lobby-bot {
    max-width: calc(50% - 6px);
    min-width: 170px;
  }
  .result-card {
    padding: 22px 16px;
  }
  .result-card h3 {
    font-size: 24px;
  }
  .result-icon {
    font-size: 29px;
  }
  .result-card #result-detail {
    font-size: 10px;
  }
  .result-actions {
    margin-top: 15px;
  }
  .result-actions .button {
    font-size: 10px;
    min-height: 35px;
  }
  .replay-controls {
    padding: 12px 13px 0;
  }
  .replay-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .replay-buttons .button {
    font-size: 10px;
  }
  .contract-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .contract-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .view-heading {
    align-items: start;
  }
  .view-heading .heading-buttons {
    flex-direction: column;
  }
  .view-heading h2 {
    font-size: 23px;
  }
  .site-footer {
    font-size: 8px;
  }
  .site-footer>span:last-child {
    display: none;
  }
}

@media(max-width:620px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-header {
    height: 79px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: .02em;
  }
  .header-actions {
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
  }
  .connection {
    font-size: 8px;
    gap: 5px;
  }
  .connection i {
    width: 4px;
    height: 4px;
  }
  .header-actions>.button {
    font-size: 9px;
    padding: 3px 0;
    min-height: 0;
    gap: 5px;
  }
  .intro {
    padding-top: 13px;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 24px;
  }
  .intro .eyebrow {
    font-size: 8px;
    letter-spacing: .14em;
  }
  .intro h1 {
    font-size: 34px;
    margin-top: 8px;
  }
  .intro-text {
    font-size: 10px;
    line-height: 1.7;
    max-width: 245px;
    margin-top: 8px;
  }
  .intro-actions {
    padding-top: 25px;
  }
  .intro-actions .button {
    padding: 8px 10px;
    font-size: 10px;
    min-height: 36px;
    gap: 5px;
  }
  .intro-actions .button>span {
    display: none;
  }
  .tabs {
    gap: 25px;
    justify-content: flex-start;
    margin-bottom: 16px;
  }
  .tab {
    font-size: 10px;
    gap: 6px;
    padding: 12px 0 14px;
  }
  .tab-tag {
    font-size: 8px;
  }
  .tabs .live-dot {
    width: 5px;
    height: 5px;
  }
  .arena-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .arena-stack {
    width: 100%;
    gap: 14px;
  }
  .arena-heading {
    padding: 15px 16px 0;
  }
  .arena-heading h2 {
    font-size: 11px;
    max-width: none;
  }
  .arena-heading-left {
    gap: 9px;
  }
  .arena-tools #board-size {
    display: inline;
  }
  .arena-meta {
    padding: 15px 16px 13px;
    font-size: 8px;
  }
  .canvas-wrap {
    width: calc(100% - 32px);
    max-height: none;
  }
  .arena-foot {
    padding: 13px 16px;
    font-size: 9px;
  }
  .arena-foot #match-timing {
    display: inline;
    font-size: 8px;
  }
  .board-empty h3 {
    font-size: 22px;
  }
  .board-empty p {
    font-size: 12px;
  }
  .board-empty .small-note {
    font-size: 9px;
    margin-top: 24px;
  }
  .empty-emblem {
    width: 56px;
    height: 56px;
    font-size: 29px;
    border-radius: 17px;
    margin-bottom: 19px;
  }
  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 14px;
    align-items: start;
  }
  .roster-card {
    grid-column: 1/-1;
    padding: 18px;
  }
  .roster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    margin-top: 18px;
  }
  .empty-roster {
    grid-column: 1/-1;
    padding: 2px 0;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: left;
  }
  .empty-roster br {
    display: none;
  }
  .empty-lines {
    margin: 0;
  }
  .upload-card {
    grid-column: 1/-1;
    padding: 19px;
  }
  .upload-card .section-copy {
    font-size: 11px;
  }
  .upload-card .field-label {
    font-size: 10px;
  }
  .color-field {
    margin-top: 13px;
  }
  .palette {
    gap: 15px;
  }
  .color-choice {
    width: 25px;
    height: 25px;
  }
  .file-zone {
    padding: 13px 15px;
    gap: 12px;
    min-height: 71px;
  }
  .file-zone strong {
    font-size: 12px;
    max-width: 270px;
  }
  .file-zone small {
    font-size: 10px;
  }
  .file-symbol {
    font-size: 22px;
  }
  .upload-card .button-wide {
    font-size: 12px;
    min-height: 44px;
  }
  .upload-hint {
    font-size: 9px;
  }
  .upload-hint .text-button {
    font-size: 11px;
  }
  .host-panel {
    grid-column: 1/-1;
    padding: 19px;
  }
  .host-panel .fields-two input,.host-panel .fields-two select {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .lobby-card {
    margin-top: 16px;
  }
  .lobby-bots {
    gap: 10px;
  }
  .lobby-bot {
    max-width: none;
    min-width: calc(50% - 6px);
    padding: 11px;
    flex-basis: calc(50% - 6px);
    flex-grow: 0;
  }
  .lobby-bot .snake-avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .lobby-bot .snake-avatar:before {
    left: 8px;
    top: 9px;
  }
  .lobby-bot .snake-avatar:after {
    right: 8px;
    top: 9px;
  }
  .lobby-bot .lobby-name {
    font-size: 10px;
  }
  .lobby-bot .lobby-meta {
    font-size: 8px;
  }
  .lobby-check {
    width: 13px;
    height: 13px;
    margin-left: 0;
    font-size: 9px;
  }
  .result-card {
    max-width: 285px;
    padding: 26px 22px;
  }
  .result-card h3 {
    font-size: 29px;
  }
  .result-card #result-detail {
    font-size: 11px;
  }
  .result-icon {
    font-size: 36px;
  }
  .result-actions .button {
    font-size: 11px;
    min-height: 38px;
  }
  .replay-banner {
    padding: 12px 14px;
    gap: 13px;
  }
  .replay-banner strong {
    font-size: 11px;
  }
  .replay-banner .button {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 35px;
  }
  .replay-controls {
    padding: 13px 16px 0;
  }
  .replay-buttons {
    justify-content: space-between;
  }
  .view-heading {
    flex-direction: column;
    gap: 17px;
    margin-top: 25px;
  }
  .view-heading h2 {
    font-size: 26px;
    line-height: 1.25;
  }
  .view-heading p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.8;
    max-width: 95%;
  }
  .view-heading .eyebrow {
    font-size: 8px;
  }
  .view-heading .heading-buttons {
    flex-direction: row;
  }
  .replay-list {
    grid-template-columns: 1fr;
  }
  .replay-list-card {
    padding: 22px;
  }
  .replay-list-card h3 {
    font-size: 24px;
  }
  .replay-list-card .replay-winner-label {
    margin-top: 22px;
  }
  .contract-content {
    padding: 23px 19px;
    font-size: 12px;
  }
  .contract-content h1 {
    font-size: 24px;
  }
  .contract-content pre {
    padding: 14px;
  }
  .contract-content pre code {
    font-size: 9px;
  }
  .contract-aside {
    grid-template-columns: 1fr;
  }
  .contract-tip {
    padding-top: 7px;
  }
  .site-footer {
    margin-top: 22px;
    padding-top: 23px;
    padding-bottom: 22px;
    font-size: 8px;
  }
  .dialog {
    padding: 23px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .logs-content pre {
    font-size: 9px;
  }
  .standings-table th,.standings-table td {
    padding-left: 4px;
    padding-right: 4px;
  }
  .arena-card:fullscreen .arena-heading {
    padding-top: 6px;
  }
  .arena-card:fullscreen .arena-heading h2 {
    font-size: 12px;
  }
}

@media(max-width:380px) {
  .shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .intro h1 {
    font-size: 29px;
  }
  .intro-text {
    max-width: 225px;
    font-size: 9px;
  }
  .intro-actions .button {
    font-size: 9px;
    padding: 7px 8px;
  }
  .tabs {
    gap: 19px;
  }
  .tab {
    font-size: 9px;
  }
  .arena-heading h2 {
    font-size: 10px;
  }
  .arena-tools {
    gap: 3px;
  }
  .arena-tools #board-size {
    font-size: 9px;
  }
  .roster {
    gap: 16px;
  }
  .lobby-bot {
    min-width: 100%;
    flex-basis: 100%;
  }
  .file-zone strong {
    max-width: 225px;
  }
  .replay-buttons {
    justify-content: center;
  }
  .arena-foot {
    font-size: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
  }
}
