/* Spinout Arena v1.0. Copyright (c) 2026 icerix. All rights reserved. */
* {
  box-sizing: border-box;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.icon {
  border-radius: 0;
  width: 36px;
  height: 36px;
  background: #080808;
  box-shadow: none;
  font-size: 13px;
}
.icon:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.overlay {
  align-items: safe center;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  touch-action: pan-y;
  background: #080808f5;
  padding: 24px 16px;
}
.eyebrow {
  font-weight: bold;
  color: #c0c0c0;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 24px;
}
h2 {
  text-transform: uppercase;
  font-family: SpinoutPixel;
  font-size: 38px;
  line-height: 1.35;
  letter-spacing: 1px;
  color: #ffb020;
  margin: 16px 0 20px;
}
.primary,
.secondary,
.mini-button {
  border-radius: 0;
  font-weight: bold;
  box-shadow: none;
  text-shadow: none;
  color: #fff;
}
.primary {
  font-size: 15px;
  letter-spacing: 2px;
  margin-top: 18px;
  width: 100%;
  min-height: 54px;
}
.secondary {
  background: #393047;
  width: 100%;
  margin-top: 12px;
}
.primary:hover,
.mini-button:hover:enabled {
  filter: brightness(1.12);
}
.primary:active,
.mini-button:active:enabled,
.secondary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px #100d1b;
}
.hidden {
  display: none !important;
}
.class-option {
  border-radius: 0;
  text-align: center;
  padding: 10px;
  background: #080808;
  box-shadow: none;
  min-height: 104px;
}
.class-option b {
  margin: 7px 0;
  font-size: 14px;
  color: #fff;
  display: block;
}
.select-label {
  margin: 16px 0 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #ffb020;
  letter-spacing: 0;
  display: block;
}
select {
  border-radius: 0;
  width: 100%;
  font-family: SpinoutPixel;
  background: #080808;
  color: #fff;
  padding: 12px 8px;
  font-size: 11px;
  text-transform: uppercase;
}
.settings-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: block;
}
.choice {
  border-radius: 0;
  width: 100%;
  display: block;
  margin: 10px 0;
  text-align: left;
  background: #080808;
  padding: 18px;
}
.choice:hover {
  border-color: var(--green);
}
.bottom {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.meter {
  width: 190px;
  margin: 8px auto;
  height: 12px;
  border: 2px solid #eee;
  background: #080808;
  border-radius: 0;
}
.toast {
  left: 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #ffb020;
  position: absolute;
  width: 100%;
  text-align: center;
  padding: 0 12px;
  pointer-events: none;
}
.touch {
  display: none;
  position: absolute;
  bottom: 32px;
  z-index: 3;
  touch-action: none;
}
.stick {
  border-radius: 0;
  left: 22px;
  width: 106px;
  height: 106px;
  background: #080808;
  box-shadow: 4px 4px #444;
}
.dash {
  font-weight: 900;
  border-radius: 0;
  right: 24px;
  bottom: 42px;
  width: 82px;
  height: 82px;
  background: #b03020;
  color: #fff;
  box-shadow: 4px 4px #481000;
}
.skin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.mini-button {
  background: #a995cd;
  letter-spacing: 1px;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
}
.skin-preview i {
  position: absolute;
  inset: 5px;
  background: #231d35;
}
.skin-preview span {
  position: absolute;
  width: 8px;
  height: 25px;
  top: 10px;
  left: 18px;
  background: var(--skin);
}
.skin-preview span:after {
  content: "";
  position: absolute;
  width: 25px;
  height: 8px;
  left: -8px;
  top: 8px;
  background: var(--skin);
}
.skin-preview.stripes i {
  background: repeating-linear-gradient(90deg, var(--skin) 0 4px, #231d35 4px 9px);
}
.skin-preview.diamond span {
  transform: rotate(45deg);
  height: 18px;
  width: 18px;
  left: 13px;
  top: 14px;
}
.skin-preview.diamond span:after,
.skin-preview.eyes span:after {
  display: none;
}
.skin-preview.checker i {
  background: repeating-conic-gradient(var(--skin) 0% 25%, #231d35 0% 50%) 50%/12px 12px;
}
.skin-preview.eyes span {
  width: 7px;
  height: 11px;
  left: 10px;
  top: 16px;
  box-shadow: 17px 0 var(--skin);
}
.skin-preview.flame i {
  background: repeating-linear-gradient(45deg, var(--skin), var(--accent) 5px, #231d35 9px);
}
.skin-preview.code i {
  background: repeating-linear-gradient(0deg, #183723 0 5px, var(--skin) 5px 7px);
}
.skin-preview.stars i {
  background:
    radial-gradient(circle at 25% 30%, var(--accent) 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, var(--accent) 3px, #231d35 4px);
}
.progress-card .mini-button {
  grid-column: 2;
  grid-row: 1/5;
  align-self: center;
  margin: 0;
}
#record {
  margin: 20px 0 0;
  color: #aaa;
  border-top: 3px solid #444;
  padding-top: 10px;
  font-size: 10px !important;
  text-align: center;
}
@media (max-height: 650px) {
  .overlay {
    align-items: flex-start;
  }
  .class-option span:not(.glyph) {
    display: none;
  }
}
@font-face {
  font-family: SpinoutPixel;
  src: url(../fonts/SpinoutPixel.ttf) format("truetype");
  font-display: swap;
}
:root {
  --ink: #080808;
  --panel: #080808;
  --cream: #fff7df;
  --muted: #b0b0b0;
  --green: #80d010;
  --orange: #ffb020;
  --purple: #3068d0;
}
body {
  margin: 0;
  color: var(--cream);
  overflow: hidden;
  background: #080808;
  font-family: SpinoutPixel, monospace;
  text-transform: uppercase;
  font-size: 14px;
}
header {
  padding: 17px 24px;
  background: #080808;
  border-bottom: 4px solid #eeeeee;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
h1 {
  margin: 0;
  font-family: SpinoutPixel;
  font-size: 24px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 3px 3px #c03020;
}
header h1 span {
  color: #c03020 !important;
}
small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}
.icon {
  border: 2px solid white;
}
.hub-tabs button {
  background: #080808;
  border: 0;
  font-size: 13px;
  color: #aaa;
  padding: 12px 4px;
  letter-spacing: 0;
}
.hub-tabs button.active {
  font-weight: bold;
  background: #080808;
  color: #ffb020;
  border: 0;
}
.hub-tabs button.active:before {
  content: ">";
  margin-right: 5px;
}
.hub-top {
  line-height: 1.8;
  margin-top: 12px;
  color: #eee;
  border: 0;
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.hub-top .ready {
  color: #80d010;
}
.eyebrow {
  font-size: 11px;
  line-height: 1.8;
}
p {
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.9;
  color: #dedede;
}
.class-option.selected {
  border-color: #80d010;
  background: #102000;
  box-shadow: none;
}
.class-option span {
  display: block;
  font-size: 11px;
  color: #bbb;
  line-height: 1.8;
}
.class-option .glyph {
  font-family: monospace;
  color: #80d010;
}
select {
  border: 3px solid #ccc;
}
.primary,
.secondary,
.mini-button {
  font-family: SpinoutPixel;
  border: 3px solid #fff;
  background: #080808;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.5;
  padding: 14px 10px;
}
.primary:hover {
  background: #ffb020;
  color: #080808;
  filter: none;
}
.primary:before {
  content: "►";
  margin-right: 14px;
}
.secondary {
  border-color: #777;
  color: #ccc;
  font-size: 11px;
}
.primary:active,
.secondary:active,
.mini-button:active:enabled {
  transform: none;
  box-shadow: none;
  background: #3068d0;
}
.mini-button {
  border-color: #80d010;
  color: #80d010;
  font-size: 11px;
}
.choice {
  border: 3px solid #aaa;
}
.choice b {
  display: block;
  margin-bottom: 7px;
  color: #ffb020;
  font-size: 14px;
}
.choice span {
  color: #ccc;
  font-size: 12px;
  line-height: 1.8;
}
.meter i {
  display: block;
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(90deg, #80d010 0 9px, #080808 9px 12px);
}
.caption {
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0;
}
.event-hint {
  font-size: 10px;
  line-height: 1.8;
  color: #bbb;
  position: absolute;
  width: 100%;
  text-align: center;
  padding: 0 12px;
  pointer-events: none;
  top: 96px;
}
.map-readout {
  font-size: 10px;
  color: #fff;
  letter-spacing: 1px;
  position: absolute;
  width: 100%;
  text-align: center;
  pointer-events: none;
  top: 107px;
}
.stick {
  border: 3px solid #fff;
}
.knob {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  background: #ccc;
  border: 3px solid #fff;
  box-shadow: 3px 3px #444;
}
.dash {
  font-family: SpinoutPixel;
  border: 3px solid #ffb090;
  font-size: 11px;
}
.shop-item {
  padding: 15px 10px;
  text-align: center;
  background: #080808;
  border: 3px solid #555;
}
.shop-item.equipped {
  border-color: #80d010;
}
.shop-item > b {
  display: block;
  letter-spacing: 1px;
  margin: 14px 0 7px;
  font-size: 12px;
  line-height: 1.5;
}
.shop-item > small {
  display: block;
  height: 16px;
  font-size: 11px;
  letter-spacing: 0;
  color: #ffb020;
}
.skin-preview {
  width: 55px;
  height: 55px;
  background: var(--skin);
  border: 5px solid var(--accent);
  position: relative;
  margin: 3px auto 12px;
  transform: none;
  box-shadow: 6px 6px #333;
}
.progress-card {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 140px;
  column-gap: 20px;
  background: #080808;
  border: 3px solid #777;
  padding: 16px;
}
.progress-card > b {
  color: var(--cream);
  font-size: 12px;
  line-height: 1.8;
}
.progress-card p {
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.8;
}
.progress-card small {
  font-size: 11px;
  color: #ffb020;
}
.progress-bar {
  margin-top: 8px;
  grid-column: 1;
  border: 2px solid #aaa;
  background: #080808;
  height: 10px;
}
.progress-bar i {
  display: block;
  height: 100%;
  background: #80d010;
}
.time-total {
  padding: 14px;
  margin-top: 16px;
  letter-spacing: 1px;
  border: 3px solid #ffb020;
  color: #ffb020;
  font-size: 13px;
  line-height: 1.8;
}
#record {
  line-height: 1.8;
}
.skin-preview.rainbow i {
  background: linear-gradient(#f85030 20%, #ffb020 20% 40%, #80d010 40% 60%, #3068d0 60% 80%, #b030b0 80%);
}
.level-notice {
  left: 0;
  font-size: 14px;
  position: absolute;
  width: 100%;
  text-align: center;
  color: #80d010;
  pointer-events: none;
}
.kill-feed {
  position: absolute;
  bottom: 143px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #ffb020;
  font-size: 10px;
  pointer-events: none;
}
.caption {
  font-size: 8px;
}
@media (max-width: 650px) {
  .map-readout {
    font-size: 8px;
  }
  .kill-feed {
    font-size: 8px;
    bottom: 143px;
  }
}
canvas {
  display: block;
  width: 100vw;
  height: 100dvh;
  touch-action: none;
  image-rendering: auto;
}
body:after {
  background: repeating-linear-gradient(transparent 0 3px, #00000018 3px 4px);
  opacity: 0.45;
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: none;
}
.card:before {
  position: absolute;
  content: "1985";
  right: 16px;
  top: 12px;
  color: #ffb020;
  font-size: 11px;
  letter-spacing: 1px;
  display: none;
}
.eyebrow:empty,
#desc:empty {
  display: none;
}
.hub-tabs {
  padding: 2px 0 12px;
  gap: 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 2px solid #555;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.class-option b {
  margin-bottom: 0;
}
.class-option .glyph {
  font-size: 22px;
}
#record {
  margin-top: 14px;
}
.jump-button {
  right: 26px;
  min-width: 110px;
  height: 56px;
  font: 12px SpinoutPixel;
  position: absolute;
  z-index: 3;
  background: #103050;
  border: 3px solid #73bfff;
  color: #fff;
  touch-action: none;
  box-shadow: 4px 4px #061525;
}
.jump-button:disabled {
  opacity: 0.45;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (pointer: coarse) {
  .jump-button {
    right: 24px;
    width: 82px;
    font-size: 10px;
    min-width: 82px;
    height: 66px;
  }
}
#hubBadge {
  margin-left: auto;
}
.menu-footer {
  gap: 12px;
  display: flex;
  align-items: center;
  border-top: 2px solid #444;
  justify-content: center;
  margin-top: 14px;
  padding-top: 10px;
}
.copyright-text {
  text-transform: none;
  font: 10px/1.7 monospace;
  color: #aaa;
  min-width: 0;
}
.copyright-text {
  text-align: center;
}
#hubBadge:not(.ready) {
  display: none;
}
h2 {
  text-align: center;
  text-shadow: 4px 4px #b03020;
}
body[data-screen="menu"] > header,
body[data-screen="menu"] > canvas,
body[data-screen="menu"] > .bottom,
body[data-screen="menu"] > .jump-button,
body[data-screen="menu"] > .desktop-keys,
body[data-screen="menu"] > .toast,
body[data-screen="menu"] > .event-hint,
body[data-screen="menu"] > .map-readout,
body[data-screen="menu"] > .roster,
body[data-screen="menu"] > .level-notice,
body[data-screen="menu"] > .kill-feed {
  visibility: hidden;
}
body:not([data-screen="play"]):not([data-screen="countdown"]):not([data-screen="replay"]) > .touch,
body:not([data-screen="play"]):not([data-screen="countdown"]):not([data-screen="replay"]) > .desktop-keys {
  display: none;
}
.card {
  background: #080808;
  border: 4px solid #eee;
  outline: 4px solid #080808;
  box-shadow: 0 0 0 8px #3068d0;
  border-radius: 0;
  width: 100%;
  margin: auto;
  position: relative;
  max-width: 640px;
  padding: 24px 28px;
}
.hub-tabs {
  padding-bottom: 10px;
}
.hub-top {
  font-size: 12px;
}
.objective {
  font: 14px/1.6 SpinoutPixel;
  color: #fff7df;
  text-align: center;
  margin: 0 0 20px;
}
.class-option {
  border: 3px solid #555;
}
.class-option .class-ability {
  font: 11px/1.5 monospace;
  color: #ccc;
  text-transform: none;
  margin-top: 9px;
}
.class-option:hover {
  border-color: #fff;
}
.primary {
  border-color: #ffb020;
  color: #ffb020;
  background: #180e00;
}
.select-label {
  margin-top: 18px;
}
.quick-guide {
  border-top: 1px solid #555;
  margin-top: 18px;
  padding-top: 14px;
  font: 12px/1.8 monospace;
  text-transform: none;
  color: #ccc;
}
.quick-guide summary {
  cursor: pointer;
  color: #fff7df;
  font: 11px/1.8 SpinoutPixel;
  padding: 4px 0;
}
.quick-guide[open] summary {
  margin-bottom: 10px;
}
.quick-guide p {
  font: 12px/1.7 monospace;
  margin: 8px 0 0;
}
.quick-guide kbd {
  color: #80d010;
  display: inline-block;
  min-width: 115px;
}
.touch-guide {
  display: none;
}
.desktop-keys {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font: 11px/1.6 monospace;
  text-align: center;
  color: #bbb;
  pointer-events: none;
  white-space: pre-wrap;
}
.bottom {
  bottom: 43px;
}
.jump-button {
  bottom: 44px;
}
.roster {
  position: absolute;
  width: 100%;
  padding: 0 10px;
  text-align: center;
  color: #eee;
  pointer-events: none;
  font: 12px/1.8 monospace;
  top: 128px;
}
.toast {
  top: 76px;
}
.level-notice {
  top: 183px;
}
canvas:focus {
  outline: none;
}
.hud {
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (min-width: 1100px) and (pointer: fine) {
  .bottom {
    left: auto;
    right: 24px;
    transform: none;
    bottom: 150px;
    width: 200px;
    border: 2px solid #444;
    padding: 16px 10px;
  }
  .meter {
    max-width: 172px;
  }
  .roster {
    top: 170px;
    left: auto;
    right: 24px;
    width: 200px;
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;
    padding: 15px 10px;
    white-space: pre-line;
    text-align: left;
    font-size: 13px;
    line-height: 2.1;
  }
  .map-readout {
    top: 110px;
    left: auto;
    right: 24px;
    width: 200px;
    line-height: 1.8;
  }
  .toast,
  .event-hint {
    width: calc(100% - 230px);
  }
  .event-hint {
    top: 102px;
  }
  .jump-button {
    right: 24px;
    bottom: 72px;
    width: 200px;
  }
  .kill-feed {
    bottom: 58px;
    width: calc(100% - 230px);
  }
  .desktop-keys {
    right: 254px;
  }
}
@media (max-width: 650px) {
  .icon {
    width: 30px;
    height: 30px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .skin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  header {
    padding: 13px 10px;
  }
  h1 {
    font-size: 19px;
    letter-spacing: 0;
  }
  h2 {
    line-height: 1.5;
  }
  .hub-tabs button.active:before {
    margin-right: 3px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .class-option span {
    font-size: 10px;
  }
  p {
    font-size: 12px;
  }
  .shop-item > b {
    font-size: 11px;
  }
  .mini-button {
    font-size: 10px;
  }
  .progress-card {
    grid-template-columns: 1fr 100px;
    padding: 12px;
    column-gap: 10px;
  }
  .progress-card > b {
    font-size: 11px;
  }
  .progress-card p {
    font-size: 10px;
  }
  .progress-card .mini-button {
    padding: 10px 5px;
    font-size: 9px;
  }
  .primary {
    font-size: 12px;
  }
  .settings-grid select {
    font-size: 10px;
  }
  .level-notice {
    font-size: 11px;
  }
  .event-hint {
    font-size: 8px;
  }
  .toast {
    font-size: 9px;
  }
  h2 {
    font-size: 29px;
  }
  .class-option b {
    font-size: 11px;
  }
  .class-option .glyph {
    font-size: 22px;
  }
  .hub-tabs button {
    padding: 10px 1px;
    font-size: 10px;
  }
  .select-label {
    font-size: 10px;
  }
  .jump-button {
    font-size: 10px;
  }
  #record {
    font-size: 9px !important;
  }
  .menu-footer {
    gap: 8px;
  }
  .copyright-text {
    font-size: 9px;
  }
  .card {
    padding: 18px 14px;
  }
  .objective {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .class-option {
    min-height: 94px;
    padding: 8px 3px;
  }
  .class-option .class-ability {
    font-size: 10px;
  }
  .hub-top {
    gap: 7px;
    font-size: 10px;
  }
  .roster {
    font-size: 10px;
  }
  .quick-guide kbd {
    min-width: 104px;
  }
}
@media (pointer: coarse) {
  .touch {
    display: block;
  }
  .meter {
    width: 96px;
  }
  .desktop-keys {
    display: none;
  }
  .touch-guide {
    display: block;
  }
  .bottom {
    bottom: 32px;
  }
  .jump-button {
    bottom: 143px;
  }
  .quick-guide div {
    display: none;
  }
}
@media (max-height: 650px) and (pointer: fine) {
  .overlay {
    padding: 16px;
  }
  .card {
    padding: 16px 22px;
  }
  .class-option {
    min-height: 76px;
  }
  .class-option span.class-ability {
    display: block;
  }
  .objective {
    margin-bottom: 12px;
  }
  .class-option .glyph {
    font-size: 18px;
  }
  h2 {
    font-size: 28px;
    margin: 12px 0;
  }
  .quick-guide {
    margin-top: 12px;
    padding-top: 8px;
  }
  .primary {
    margin-top: 12px;
    padding: 10px;
  }
  .menu-footer {
    margin-top: 10px;
  }
}
@media (pointer: coarse) and (orientation: portrait) {
  .bottom {
    max-width: calc(100vw - 284px);
    min-width: 100px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  :root {
    --side: clamp(150px, 26vw, 240px);
    --padl: max(14px, env(safe-area-inset-left));
    --padr: max(14px, env(safe-area-inset-right));
  }
  header {
    padding: 7px var(--padr) 7px var(--padl);
  }
  .toast,
  .event-hint,
  .roster {
    left: 0;
    width: var(--side);
    text-align: left;
    padding: 0 6px 0 var(--padl);
    letter-spacing: 0;
  }
  .toast {
    top: 76px;
    font-size: 9px;
  }
  .event-hint {
    top: 98px;
    font-size: 8px;
    line-height: 1.5;
  }
  .map-readout {
    display: none;
  }
  .roster {
    top: 140px;
    font-size: 9px;
    line-height: 1.6;
  }
  .bottom {
    left: auto;
    right: var(--padr);
    top: 76px;
    bottom: auto;
    transform: none;
    width: calc(var(--side) - 28px);
  }
  .stick {
    left: var(--padl);
  }
  .dash,
  .jump-button {
    right: var(--padr);
  }
  .jump-button {
    bottom: 132px;
  }
  .level-notice {
    top: 96px;
  }
  .kill-feed {
    bottom: 22px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 350px) {
  .dash {
    width: 66px;
    height: 66px;
    bottom: 24px;
  }
  .jump-button {
    width: 66px;
    min-width: 66px;
    height: 50px;
    bottom: 100px;
    font-size: 9px;
  }
  .stick {
    bottom: 24px;
  }
}
.shop-heading {
  grid-column: 1/-1;
  margin: 14px 0 0;
  font-size: 12px;
  color: #ffb020;
  font-weight: normal;
  text-align: left;
}
.fx-preview {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border: 3px solid #fff;
  box-shadow: 4px 4px #444;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mode-card {
  text-align: left;
  padding: 10px;
  border: 3px solid #555;
  background: #080808;
  color: #fff;
  font-family: SpinoutPixel, monospace;
  box-shadow: 3px 3px #222;
}
.mode-card b {
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
  font-weight: normal;
}
.mode-card span {
  display: block;
  font: 10px/1.4 monospace;
  color: #aaa;
  text-transform: none;
}
.mode-card.selected {
  border-color: #80d010;
  background: #142004;
}
.mode-card.selected b {
  color: #b1f67e;
}
@media (min-width: 700px) {
  .mode-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
body[data-screen="menu"] #play {
  position: sticky;
  bottom: 6px;
  z-index: 2;
}
body {
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.settings-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #555;
  background: #080808;
  color: #eee;
  font:
    11px SpinoutPixel,
    monospace;
  text-align: left;
}
.setting-row b {
  color: #80d010;
  font-weight: normal;
  white-space: nowrap;
}
.setting-row.danger {
  border-color: #7a2a20;
}
.setting-row.danger b {
  color: #ff744f;
}
.tip {
  margin: 12px 0 0;
  font: 11px/1.5 monospace;
  color: #9fb8c8;
  text-align: center;
  text-transform: none;
}
@media (max-width: 650px) {
  .hub-tabs button {
    font-size: 9px;
    letter-spacing: 0;
    padding: 10px 0;
  }
}

/* Character picker: ten compact cards and a detail line for the selected one. */
.class-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.class-option {
  min-height: 0;
  padding: 9px 3px;
}
.class-option .class-ability {
  display: block;
  font: 9px/1.3 monospace;
  color: #999;
  text-transform: none;
}
.class-info {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 2px solid #333;
  font: 11px/1.6 monospace;
  color: #cfcfcf;
  white-space: pre-line;
  text-transform: none;
}
@media (max-width: 650px) {
  .class-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .class-option {
    min-height: 0;
    padding: 7px 1px;
  }
  .class-option b {
    font-size: 8px;
  }
  .class-option .class-ability {
    display: none;
  }
  .class-option .glyph {
    font-size: 17px;
  }
  .class-info {
    font-size: 10px;
  }
}

/* Design pass: tidier end screen, character stats that wrap cleanly, and compact menus on small screens. */
.summary {
  margin: 10px 0 0;
  font: 11px/1.6 monospace;
  color: #b9d7a8;
  text-transform: none;
}
.class-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 4px;
  color: #9a9a9a;
}
.class-statline span {
  white-space: nowrap;
}
@media (pointer: coarse) {
  .map-readout {
    display: none;
  }
}
@media (max-width: 650px) {
  .objective {
    display: none;
  }
  h2 {
    margin: 12px 0;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .overlay {
    padding: 8px;
  }
  .card {
    padding: 12px 16px;
  }
  h2 {
    font-size: 20px;
    margin: 6px 0;
  }
  .objective,
  .menu-footer {
    display: none;
  }
  .hub-tabs {
    padding-bottom: 6px;
  }
  .class-option {
    padding: 5px 2px;
  }
  .class-option .class-ability {
    display: none;
  }
  .mode-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .primary {
    margin-top: 8px;
    padding: 9px;
  }
}
@media (pointer: coarse) and (max-width: 350px) {
  #energyLabel {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  h2 {
    text-shadow: 2px 2px #b03020;
  }
}

/* The skill button sits on top of the defense button; on wide desktop screens the two share a row. */
.skill-button {
  background: #3a2a10;
  border-color: #ffda63;
  transform: translateY(calc(-100% - 12px));
}
@media (min-width: 1100px) and (pointer: fine) {
  .jump-button {
    width: 94px;
    min-width: 94px;
    right: 130px;
    font-size: 9px;
  }
  .skill-button {
    right: 24px;
    transform: none;
  }
}

/* Profile screen */
.profile-card {
  margin: 12px 0;
  background: #080808;
  border: 3px solid #777;
  padding: 14px 16px;
}
.profile-card > b {
  display: block;
  color: #ffb020;
  font-size: 12px;
  margin-bottom: 8px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid #2a2a2a;
  font: 12px/1.5 monospace;
  color: #eee;
}
.profile-row span:last-child {
  text-align: right;
  color: var(--cream);
}
.profile-row.dim span {
  color: #777;
}
@media (max-width: 650px) {
  .hub-tabs button {
    font-size: 10px;
    padding: 12px 1px;
  }
}

/* Skin rarities */
.shop-item .rarity {
  display: block;
  font: 9px/1.6 SpinoutPixel;
  font-style: normal;
  color: #999;
}
.shop-item > small {
  height: auto;
  min-height: 16px;
  margin-bottom: 6px;
}
.shop-item .perk {
  color: #ffd27a;
  font-size: 9px;
  line-height: 1.5;
}
.shop-item.rare {
  border-color: #73bfff;
}
.shop-item.rare .rarity {
  color: #73bfff;
}
.shop-item.epic {
  border-color: #c58bff;
}
.shop-item.epic .rarity {
  color: #c58bff;
}
.shop-item.legendary {
  border-color: #ffd700;
  box-shadow: inset 0 0 0 2px #ff9d3c;
}
.shop-item.legendary .rarity {
  color: #ffd700;
}

/* Mutator chips */
.mutator-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.mutator {
  background: #080808;
  border: 2px solid #555;
  color: #aaa;
  font: 9px SpinoutPixel;
  padding: 8px 10px;
  margin: 0;
  width: auto;
}
.mutator.on {
  border-color: #ffb020;
  color: #ffb020;
  background: #1c1403;
}
/* Optional larger touch controls */
@media (pointer: coarse) {
  body.big-touch .jump-button,
  body.big-touch .dash,
  body.big-touch .stick {
    zoom: 1.2;
  }
}

/* End-of-match summary */
.sum-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 10px;
}
.sum-tile {
  display: block;
  border: 2px solid #555;
  padding: 10px 6px;
  text-align: center;
  background: #080808;
}
.sum-tile small {
  display: block;
  color: #999;
  font: 9px/1.6 SpinoutPixel;
}
.sum-tile b {
  display: block;
  color: var(--cream);
  font: 11px/1.6 SpinoutPixel;
}
.sum-tile.good {
  border-color: #80d010;
}
.sum-tile.good b {
  color: #b1f67e;
}
.sum-tile.bad {
  border-color: #b02f20;
}
.summary details summary {
  cursor: pointer;
  color: #ffb020;
  font: 10px/2 SpinoutPixel;
}
.sum-line {
  display: block;
  padding: 3px 0;
  border-top: 1px solid #2a2a2a;
}
@media (max-width: 650px) {
  .sum-tiles {
    grid-template-columns: 1fr;
  }
}

/* Contracts */
.progress-card.active-contract {
  border-color: #ffb020;
}
.progress-card .swap-button {
  grid-column: 2;
  grid-row: 5;
  margin: 6px 0 0;
  opacity: 0.75;
}

/* Normal / League switch */
.league-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 14px;
}
.mutator-grid.off {
  opacity: 0.3;
  pointer-events: none;
}
#choices .swap-button {
  margin-top: 10px;
  opacity: 0.7;
}

/* Online rooms */
.room-code {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px;
  background: #080808;
  border: 3px solid #777;
  color: var(--cream);
  font: 22px SpinoutPixel;
  letter-spacing: 10px;
  text-align: center;
  text-transform: uppercase;
}
.room-code:focus {
  outline: none;
  border-color: #ffb020;
}
.room-code.nick {
  font-size: 14px;
  letter-spacing: 3px;
}

/* Quick chat (online): a toggle that opens a list of phrases, and a short feed of what was said */
.emotes {
  position: absolute;
  left: 12px;
  top: 34%;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.emotes button {
  margin: 0;
  padding: 0 8px;
  height: 30px;
  background: #080808;
  border: 2px solid #777;
  color: #ddd;
  font: 11px SpinoutPixel;
  text-align: left;
  white-space: nowrap;
}
.emotes .emote-toggle {
  width: 38px;
  height: 34px;
  padding: 0;
  text-align: center;
  border-color: #b1f67e;
  color: #b1f67e;
}
.emotes .emote-phrase {
  display: none;
  min-width: 132px;
}
.emotes.open .emote-phrase {
  display: block;
}
.emotes .emote-phrase i {
  display: inline-block;
  width: 16px;
  color: #777;
  font-style: normal;
}
.emotes button:hover {
  border-color: #fff;
  color: #fff;
}
.chat-feed {
  position: absolute;
  left: 58px;
  top: 34%;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  font: 11px SpinoutPixel;
  color: #fff;
}
.emotes.open + .chat-feed {
  left: 156px;
}
.chat-feed div {
  padding: 4px 7px;
  background: #080808cc;
  border-left: 3px solid #b1f67e;
  width: max-content;
  max-width: 60vw;
  animation: chat-in 0.15s ease-out;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-feed div {
    animation: none;
  }
}

/* What one more match would get, on the end screen */
.nudge {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 2px solid #ffb020;
  background: #1c1403;
  color: #ffd27a;
  font: 11px/1.6 monospace;
  text-transform: none;
}

/* Start screen: the first tap is the gesture browsers ask for before any sound, so the music is already playing
   when the menu shows. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at 50% 45%, #1b1430 0, #080808 62%), #080808;
  cursor: pointer;
  font-family: SpinoutPixel;
  text-align: center;
  user-select: none;
  transition: opacity 0.3s ease-out;
}
.splash.gone {
  opacity: 0;
  pointer-events: none;
}
.splash-logo {
  font-size: clamp(40px, 11vw, 104px);
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0.06em 0.06em #c03020;
}
.splash-logo span {
  color: #c03020;
}
.splash-sub {
  font-size: clamp(16px, 3.6vw, 34px);
  letter-spacing: 0.9em;
  margin-right: -0.9em;
  color: #b1f67e;
}
.splash-go {
  margin-top: 8vh;
  font-size: clamp(12px, 2.2vw, 18px);
  color: #ffda63;
  animation: splash-blink 1.1s steps(2, jump-none) infinite;
}
.splash-foot {
  position: absolute;
  bottom: 18px;
  font: 11px monospace;
  color: #666;
}
@keyframes splash-blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-go {
    animation: none;
  }
  .splash {
    transition: none;
  }
}

/* Tutorial: the lesson card over the arena, the menu button, and the closing summary */
.tutor {
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(520px, calc(100vw - 24px));
  padding: 10px 44px 10px 14px;
  background: #080808ee;
  border: 2px solid #ffda63;
  box-shadow: 4px 4px #000;
  text-align: center;
  pointer-events: none;
}
.tutor small {
  display: block;
  font: 10px monospace;
  letter-spacing: 1px;
  color: #999;
}
.tutor b {
  display: block;
  margin: 3px 0;
  font: 16px SpinoutPixel;
  color: #ffda63;
}
.tutor p {
  margin: 0;
  font: 13px/1.45 monospace;
  color: #fff;
  text-transform: none;
}
.tutor.ok {
  border-color: #b1f67e;
}
.tutor.ok b {
  color: #b1f67e;
  font-size: 20px;
}
.tutor button {
  position: absolute;
  top: 6px;
  right: 6px;
  margin: 0;
  padding: 4px 6px;
  background: none;
  border: 1px solid #555;
  color: #999;
  font: 9px monospace;
  pointer-events: auto;
}
#tutorBtn {
  display: block;
  margin: 10px auto 12px;
  padding: 6px 12px;
  background: none;
  border: 1px solid #555;
  color: #aaa;
  font: 10px SpinoutPixel;
  box-shadow: none;
}
#tutorBtn.hidden {
  display: none;
}
#tutorBtn.fresh {
  width: 100%;
  padding: 12px;
  background: #1d2a12;
  border: 2px solid #b1f67e;
  color: #b1f67e;
  font-size: 12px;
}
.tutor-facts {
  text-align: left;
  margin: 4px 0 12px;
}
.tutor-facts p {
  margin: 0 0 7px;
  font: 12px/1.45 monospace;
  color: #ccc;
  text-transform: none;
}
.tutor-facts b {
  color: #ffda63;
  font: 11px SpinoutPixel;
}
@media (max-width: 650px) {
  .tutor {
    top: 74px;
    padding: 7px 40px 7px 10px;
  }
  .tutor p {
    font-size: 11.5px;
  }
  .tutor b {
    font-size: 13px;
  }
}

/* The PLAY tab: four closed rows that each say what is picked and open into their choices */
.pick {
  margin: 0 0 8px;
  border: 2px solid #444;
  background: #0c0c0c;
}
.pick.hidden {
  display: none;
}
.pick > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font: 11px SpinoutPixel;
  color: #ffb020;
}
.pick > summary::-webkit-details-marker {
  display: none;
}
.pick > summary b {
  margin-left: auto;
  font: 13px SpinoutPixel;
  color: #fff;
  text-align: right;
}
.pick > summary b.on {
  color: #b1f67e;
}
.pick > summary::after {
  content: "▸";
  color: #777;
  font-size: 14px;
}
.pick[open] {
  border-color: #ffb020;
}
.pick[open] > summary {
  border-bottom: 1px solid #333;
}
.pick[open] > summary::after {
  content: "▾";
  color: #ffb020;
}
.pick > summary:hover b {
  color: #ffda63;
}
.pick > :not(summary) {
  margin: 12px;
}
.pick .mutator-grid,
.pick .league-grid {
  margin-bottom: 12px;
}
.mode-family {
  grid-column: 1 / -1;
  margin-top: 6px;
  font: 10px SpinoutPixel;
  color: #888;
}
.mode-family:first-child {
  margin-top: 0;
}
@media (max-width: 650px) {
  .pick > summary {
    padding: 11px 10px;
    font-size: 10px;
  }
  .pick > summary b {
    font-size: 11px;
  }
  .pick > :not(summary) {
    margin: 9px;
  }
}

/* Menu pages other than PLAY: no big title, sections that fold, and a shop of small tiles */
.hub-compact #kicker,
.hub-compact #title,
.hub-compact #desc {
  display: none;
}
.hub-compact #hubContent {
  margin-top: 14px;
}
.fold > div > :first-child {
  margin-top: 0;
}
.fold > div > :last-child {
  margin-bottom: 0;
}
.fold .profile-card {
  border: 0;
  padding: 0;
  background: none;
}
.fold .profile-card > b {
  display: none;
}
.fold .profile-row:first-of-type {
  border-top: 0;
}
.fold .progress-card {
  margin: 8px 0;
  padding: 11px 12px;
  border-width: 2px;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
}
.fold .progress-card .mini-button {
  padding: 8px 10px;
  font-size: 10px;
  min-width: 84px;
}
.mini-button.badge {
  display: inline-block;
  background: none;
  border: 0;
  box-shadow: none;
  color: #888;
  text-align: right;
  min-width: 0;
  padding-right: 0;
}
.fold .progress-card .swap-button {
  grid-column: 2;
  grid-row: auto;
  margin: 6px 0 0;
  background: none;
  border: 1px solid #555;
  color: #aaa;
  box-shadow: none;
}
.shop-detail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: #0c0c0c;
  border: 2px solid #ffb020;
  text-align: left;
}
.shop-detail b {
  display: block;
  font: 13px SpinoutPixel;
  color: #fff;
}
.shop-detail em,
.shop-detail small {
  display: block;
  margin-top: 3px;
}
.shop-detail .mini-button {
  margin: 0;
  white-space: nowrap;
}
.shop-detail .skin-preview,
.shop-detail .fx-preview {
  margin: 0;
}
.shop-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.shop-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 9px 4px 7px;
  border-width: 2px;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
}
.shop-tile b {
  font: 9px SpinoutPixel;
  line-height: 1.4;
}
.shop-tile small {
  font: 10px monospace;
  color: #ffb020;
}
.shop-tile.missing .skin-preview,
.shop-tile.missing .fx-preview {
  opacity: 0.55;
}
.shop-tile.picked {
  border-color: #ffb020;
  background: #1a1204;
}
.shop-tile .skin-preview,
.shop-tile .fx-preview {
  margin: 0;
  transform: scale(0.82);
}
@media (max-width: 650px) {
  .shop-detail {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px;
  }
  .shop-detail .mini-button {
    grid-column: 1 / -1;
  }
  .shop-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

/* Watching the rest of a round after being knocked out */
.spectate {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #080808ee;
  border: 2px solid #777;
  font: 11px SpinoutPixel;
  color: #fff;
  white-space: nowrap;
}
.spectate.hidden,
.spectate button.hidden {
  display: none;
}
.spectate button {
  margin: 0;
  padding: 7px 10px;
  background: #1a1204;
  border: 2px solid #ffb020;
  color: #ffb020;
  font: 10px SpinoutPixel;
  box-shadow: none;
}
@media (max-width: 650px) {
  .spectate {
    bottom: auto;
    top: 150px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 20px);
    white-space: normal;
    font-size: 10px;
  }
}

.pick .secondary {
  margin: 0 0 8px;
  width: 100%;
  line-height: 1.6;
}
.pick .secondary:last-child {
  margin-bottom: 0;
}

/* Account form in Settings */
.account-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 2px solid #ffb020;
  background: #0c0c0c;
}
.account-form input {
  width: 100%;
  padding: 11px 10px;
  background: #080808;
  border: 2px solid #555;
  color: #fff;
  font: 14px monospace;
  border-radius: 0;
}
.account-form input:focus {
  outline: none;
  border-color: #b1f67e;
}
.account-form p {
  margin: 0;
  font: 11px/1.5 monospace;
  color: #ffda63;
  text-transform: none;
}
.account-form div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-form .mini-button {
  flex: 1 1 auto;
  margin: 0;
}

/* Player name card at the top of the profile, and the name line in the online lobby */
.name-card {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 2px solid #444;
  background: #0c0c0c;
}
.name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font: 11px SpinoutPixel;
  color: #ffb020;
}
.name-line b {
  margin-left: auto;
  font: 13px SpinoutPixel;
  color: #fff;
}
.name-line .mini-button {
  margin: 0;
  padding: 6px 10px;
  font-size: 10px;
}
.name-card p {
  margin: 8px 0;
  font: 12px/1.5 monospace;
  color: #ccc;
  text-transform: none;
}
.name-card > .mini-button {
  width: 100%;
  margin: 0;
}
.name-card .account-form {
  margin-top: 8px;
}
.room-who {
  margin: 0 0 10px;
  font: 11px/1.5 SpinoutPixel;
  color: #b1f67e;
  text-align: center;
}
#choices > .account-form {
  margin-bottom: 10px;
  text-align: left;
}

/* Rankings, friends and player cards */
.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 11px;
  background: #0c0c0c;
  border: 2px solid #333;
  box-shadow: none;
  color: #eee;
  font: 11px SpinoutPixel;
  text-align: left;
}
.rank-row b {
  margin-left: auto;
  color: #ffda63;
  font-weight: normal;
  white-space: nowrap;
}
.rank-row.me {
  border-color: #b1f67e;
  background: #131c0c;
}
.rank-row.won b {
  color: #b1f67e;
}
.rank-row.lost b {
  color: #ff744f;
}
button.rank-row:hover {
  border-color: #ffb020;
}
.rank-note {
  margin: 8px 0;
  font: 11px/1.5 monospace;
  color: #9aa3ad;
  text-align: center;
  text-transform: none;
}
.rank-join {
  width: 100%;
  margin: 0 0 4px;
}
.name-card > .mini-button + .mini-button {
  margin-top: 8px;
}

/* A row of the menu that has not been unlocked yet */
.pick.locked {
  opacity: 0.5;
  pointer-events: none;
}
.pick.locked > summary::after {
  content: "";
}

/* Pro Level medals and the level road */
.medal {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
.medal.shine svg {
  filter: drop-shadow(0 0 4px #ffffff88);
}
.medal.supreme svg {
  animation: medal-glow 1.6s ease-in-out infinite alternate;
}
.medal.ahead {
  opacity: 0.28;
  filter: grayscale(1);
}
@keyframes medal-glow {
  from {
    filter: drop-shadow(0 0 3px #ffe066);
  }
  to {
    filter: drop-shadow(0 0 10px #ff3b6b);
  }
}
@media (prefers-reduced-motion: reduce) {
  .medal.supreme svg {
    animation: none;
  }
}
#hubMedal {
  margin-right: 6px;
}
.road-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  padding: 12px;
  border: 2px solid #ffb020;
  background: #0c0c0c;
  text-align: left;
}
.road-head > div {
  flex: 1;
}
.road-head b,
.road-head span,
.road-head small {
  display: block;
}
.road-head b {
  font: 12px SpinoutPixel;
  color: #ffda63;
}
.road-head span {
  margin: 4px 0;
  font: 14px SpinoutPixel;
  color: #fff;
}
.road-head small {
  margin-bottom: 6px;
  font: 11px monospace;
  color: #9aa3ad;
  text-transform: none;
}
.road-medals {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
}
.road {
  display: flex;
  flex-direction: column;
  border-left: 3px solid #333;
  margin-left: 22px;
}
.road-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px 9px 34px;
  opacity: 0.55;
  text-align: left;
}
.road-step.done,
.road-step.next {
  opacity: 1;
}
.road-level {
  position: absolute;
  left: -25px;
  min-width: 44px;
  padding: 4px 5px;
  background: #080808;
  border: 2px solid #555;
  font: 10px SpinoutPixel;
  color: #aaa;
  text-align: center;
}
.road-step.done .road-level {
  border-color: #80d010;
  color: #b1f67e;
}
.road-step.next .road-level {
  border-color: #ffb020;
  color: #ffb020;
}
.road-step > div:not(.fx-preview):not(.skin-preview) {
  flex: 1;
  padding-left: 22px;
}
.road-step small {
  display: block;
  font: 9px monospace;
  color: #888;
}
.road-step.next small {
  color: #ffb020;
}
.road-step b {
  font: 11px SpinoutPixel;
  color: #fff;
}
.road-step .skin-preview,
.road-step .fx-preview {
  margin: 0;
  flex: none;
  transform: scale(0.8);
}

.rank-note.news {
  color: #ffda63;
  border: 1px solid #ffb020;
  padding: 6px;
}
.rank-note.challenge {
  margin: -2px 0 6px;
  text-align: left;
  font-size: 10px;
}

/* The two sides of the PLAY tab */
.side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
.side-toggle button {
  margin: 0;
  padding: 13px 8px;
  background: #0c0c0c;
  border: 2px solid #444;
  box-shadow: none;
  color: #aaa;
  font: 13px SpinoutPixel;
}
.side-toggle button.active {
  background: #1a1204;
  border-color: #ffb020;
  color: #ffb020;
}
.selections.online .bots-only {
  display: none;
}
.online-box:empty {
  display: none;
}
.join-row {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}
.join-row .room-code {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
}
.join-row .mini-button {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0 18px;
}
.online-box > .primary {
  width: 100%;
  margin: 0 0 10px;
}
.online-box .room-who {
  margin: 0 0 10px;
}
.online-more {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 650px) {
  .online-more {
    grid-template-columns: 1fr;
  }
}

/* The online room */
.room {
  text-align: left;
}
.room .select-label:first-child {
  margin-top: 0;
}
.room-players {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.room-player {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #0c0c0c;
  border: 2px solid #333;
  font: 11px SpinoutPixel;
  color: #fff;
}
.room-player.me {
  border-color: #b1f67e;
}
.room-player .glyph {
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.room-player small {
  color: #9aa3ad;
  font: 10px monospace;
}
.room-player i {
  font: 9px SpinoutPixel;
  font-style: normal;
  padding: 3px 5px;
  border: 1px solid #555;
  color: #aaa;
}
.room-player small + i,
.room-player small + button {
  margin-left: auto;
}
.room-player i.you {
  border-color: #b1f67e;
  color: #b1f67e;
}
.room-player i.team-a {
  border-color: #6dff6d;
  color: #6dff6d;
}
.room-player i.team-b {
  border-color: #ff5a4f;
  color: #ff5a4f;
}
.room-player .kick {
  margin: 0;
  padding: 2px 8px;
  background: none;
  border: 1px solid #7a2a20;
  color: #ff744f;
  box-shadow: none;
  font: 12px monospace;
}
.room .choice.primary {
  width: 100%;
  margin: 2px 0 6px;
}
.room .class-grid {
  margin-bottom: 4px;
}
.room-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.league-card {
  width: 100%;
  margin: 0 0 8px;
  border-color: #ffd700;
}
.league-card b {
  color: #ffd700;
}

/* Over a panel (the room, an end screen) the quick-chat button moves down to the corner, clear of the content */
body[data-screen="upgrade"] > .emotes,
body[data-screen="matchover"] > .emotes {
  top: auto;
  bottom: 10px;
  flex-direction: column-reverse;
}
body[data-screen="upgrade"] > .chat-feed,
body[data-screen="matchover"] > .chat-feed {
  top: auto;
  bottom: 14px;
}

/* The locker */
.locker-preview {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 6px;
  border: 2px solid #444;
  image-rendering: pixelated;
}
.shop-detail .pieces {
  color: #b1f67e;
}

/* Fighters shown off: in the room, on a player card and on the end screen */
.body-pic {
  flex: none;
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  background: none;
  image-rendering: pixelated;
}
.sum-winner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.sum-winner small {
  font: 11px SpinoutPixel;
  color: #ffda63;
}
.sum-winner.me small {
  color: #b1f67e;
}
.card-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.sum-winner.hidden {
  display: none;
}

/* The card of the day and the strip of the seven days of a streak. */
.day-card {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #000000cc;
}
.day-card > div {
  width: min(560px, 100%);
  padding: 18px;
  border: 3px solid #ffda63;
  background: #0c0c0c;
  text-align: center;
}
.day-card h2 {
  margin: 0 0 12px;
  color: #ffda63;
  font-size: 22px;
}
.day-card p {
  margin: 12px 0;
  color: #cfd6e4;
  font-size: 13px;
  line-height: 1.5;
}
.day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.day-tile {
  display: block;
  padding: 6px 2px;
  border: 2px solid #444;
  color: #8a93a6;
  text-align: center;
}
.day-tile small,
.day-tile b {
  display: block;
  font-size: 10px;
}
.day-tile.done {
  border-color: #4c7a36;
  color: #b1f67e;
}
.day-tile.today {
  border-color: #ffda63;
  color: #ffda63;
  background: #2a2208;
}
.sum-chest {
  display: block;
  margin: 0 0 10px;
  padding: 8px;
  border: 2px solid #ffda63;
  color: #ffda63;
  font-size: 12px;
  text-align: center;
}

/* End of a match: the style rank, and what the next match is close to. */
.sum-style {
  display: block;
  margin: 0 0 10px;
  padding: 8px;
  border: 2px solid #555;
  color: #cfd6e4;
  font-size: 12px;
  text-align: center;
}
.sum-style.good {
  border-color: #7df9ff;
  color: #7df9ff;
}
.sum-next {
  display: block;
  margin: 0 0 10px;
  padding: 10px;
  border: 2px dashed #b1f67e;
  text-align: left;
}
.sum-next b {
  display: block;
  margin-bottom: 6px;
  color: #b1f67e;
  font-size: 13px;
}
.sum-next span {
  display: block;
  padding: 2px 0;
  color: #cfd6e4;
  font-size: 11px;
  line-height: 1.4;
}

.class-lv {
  display: block;
  margin-top: 2px;
  font-size: 9px;
}

.skill-button.super {
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 0 3px #ffd70055;
}
