/* Kickstack's toybox look, at night: the website's team blue and gold on navy (site/src/style.css). */
:root {
  --bg: #0f1826;
  --panel: #172235;
  --panel-2: #1d2a40;
  --line: #2a3a52;
  --ink: #e8f0fa;
  --muted: #a2b2c6;
  --team: #3a7bd5;
  --team-bright: #6fa3ea;
  --rival: #ec7a63;
  --gold: #f2b632;
  --gold-edge: #a87a12;
  --gold-ink: #14233a;
  --ok: #5fd38a;
  --display: "Dela Gothic One", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.4 var(--body);
  overflow: hidden;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}

.menu h1 {
  margin: 0;
  font-size: 40px;
}

button {
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--team);
  color: white;
  cursor: pointer;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sandbox canvas {
  display: block;
}

.hud {
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  user-select: none;
}

.hud .dim {
  opacity: 0.6;
  font-size: 12px;
}

.hud .help {
  opacity: 0.75;
  font-size: 12px;
}

.recipe-book {
  position: fixed;
  inset: 60px 40px auto 40px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(20, 24, 30, 0.88);
  border-radius: 10px;
  user-select: none;
  z-index: 5;
}

.recipe-book .book-title {
  font-size: 18px;
  font-weight: 700;
}

.recipe-book .book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.recipe-book .recipe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.recipe-book .recipe.toward {
  border-color: rgba(255, 225, 74, 0.5);
}

.recipe-book .recipe {
  cursor: pointer;
}

.recipe-book .recipe.planned {
  outline: 2px dashed #9ec1f0;
}

.recipe-book .recipe.ready {
  border-color: #ffe14a;
  background: rgba(255, 225, 74, 0.12);
}

.recipe-book .recipe-head {
  font-weight: 600;
}

.recipe-book .key {
  display: inline-block;
  min-width: 18px;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 12px;
}

.recipe-book .layers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.recipe-book .layer {
  display: grid;
  grid-template-columns: 18px 18px;
  gap: 2px;
}

.recipe-book .cell {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.recipe-book .cell.crate {
  background: #b07a3e;
  box-shadow: inset 0 0 0 2px #7a5228;
}

.recipe-book .result {
  font-size: 13px;
}

.recipe-book .upgraded {
  font-size: 12px;
  color: #ffd76a;
}

.recipe-book .badge {
  font-size: 12px;
  font-weight: 700;
  color: #ffe14a;
}

.spectating {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(40, 30, 60, 0.75);
  color: #e6dcff;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}

.feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(420px, 90vw);
}

.feedback-form textarea {
  font: inherit;
  padding: 8px;
  border-radius: 6px;
  resize: vertical;
}

.killfeed {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  user-select: none;
}

.killfeed .kill {
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  font-size: 13px;
  animation: kill-in 0.15s ease-out;
}

.killfeed .team0 {
  color: #9ec1f0;
  font-weight: 600;
}

.killfeed .team1 {
  color: #f0a89e;
  font-weight: 600;
}

.killfeed .arrow {
  opacity: 0.7;
}

@keyframes kill-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

.net-status {
  position: fixed;
  right: 12px;
  bottom: 10px;
  opacity: 0.7;
  font-size: 12px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-card h3 {
  margin: 0;
}

select {
  font: inherit;
  padding: 4px 8px;
  border-radius: 6px;
}

.wheel {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
}

.wheel-item {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.6);
}

.wheel-item.selected {
  background: #ffe14a;
  color: #1d2733;
  font-weight: 600;
}

.wheel-hint {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.scoreboard {
  min-width: 360px;
  padding: 20px 28px;
  background: #1d2733;
  border-radius: 12px;
}

.scoreboard h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.scoreboard .team ul {
  margin: 4px 0 12px;
  padding-left: 18px;
}

.scoreboard .buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

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

input,
select {
  font: inherit;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: inherit;
}

.code-input {
  width: 7ch;
  text-transform: uppercase;
  letter-spacing: 2px;
}

button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

button.secondary:hover:not(:disabled) {
  background: var(--panel-2);
  filter: none;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.small,
select.small {
  padding: 2px 8px;
  font-size: 12px;
}

.error {
  color: #ff8a80;
}

.lobby .teams {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.lobby .team-0 {
  border-top: 3px solid #3a7bd5;
}

.lobby .team-1 {
  border-top: 3px solid #d5503a;
}

.seat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 300px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.seat.clickable {
  cursor: pointer;
}

.seat.mine {
  background: rgba(58, 123, 213, 0.25);
}

.seat.picked {
  outline: 2px solid #fff3b0;
}

/* ---- match HUD (M6) ---- */

.prompt {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffe14a;
  color: #1d2733;
  font-weight: 600;
}

.domination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.domination .point {
  position: relative;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  overflow: hidden;
  font-weight: 700;
  background: #8a8a8a;
}

.domination .point.team-0 {
  background: #3a7bd5;
}

.domination .point.team-1 {
  background: #d5503a;
}

.domination .point .progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
}

.domination .progress.team-0 {
  background: #9ec1f0;
}

.domination .progress.team-1 {
  background: #f0a89e;
}

.domination .score {
  font-weight: 700;
}

/* ---- party ---- */

.party {
  min-width: 300px;
}

.members {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

.member {
  padding: 3px 0;
}

.member .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #5fd38a;
}

.member.away {
  opacity: 0.6;
}

.member.away .dot {
  background: #888;
}

.chat {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-lines {
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  text-align: left;
}

.ready-check {
  text-align: center;
}

.banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 8px;
  background: #ffe14a;
  color: #1d2733;
  font-weight: 600;
}

/* ---- match history ---- */

.history {
  min-width: 300px;
}

.matches {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
  max-height: 280px;
  overflow-y: auto;
}

.match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.match:first-child {
  border-top: 0;
}

.match .result {
  width: 44px;
  font-weight: 700;
}

.match .what {
  flex: 1;
  font-size: 13px;
}

.match .what .dim {
  font-size: 12px;
  opacity: 0.7;
}

.result.won,
.delta.up {
  color: #5fd38a;
}

.result.lost,
.delta.down {
  color: #ff8a80;
}

.result.drawn {
  color: #f2c94c;
}

.result.left {
  color: #888;
}

.delta {
  font-variant-numeric: tabular-nums;
}

/* ---- account (M6b) ---- */
.account {
  max-width: 320px;
}

.account p {
  margin: 0;
  text-align: center;
}

.account-who,
.account-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.account .ratings {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account .ratings li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 3px 0;
}

.notice {
  color: #9be59b;
}

.reset-dialog {
  background: #1d2733;
  min-width: 300px;
}

.banner.rating {
  top: auto;
  bottom: 18px;
  background: #1d2733;
  color: #ffe14a;
  border: 1px solid #ffe14a;
  z-index: 10;
}

/* ---- match chat, quick chat and pings ---- */

.chat-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.bubble-stack {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 260px;
}

.bubble {
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2733;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: opacity 0.1s linear;
}

.bubble-stack.team0 .bubble {
  border: 2px solid #3a7bd5;
}

.bubble-stack.team1 .bubble {
  border: 2px solid #d5503a;
}

.bubble-stack.edge .bubble {
  font-size: 11px;
  opacity: 0.85;
}

.bubble .icon {
  margin-right: 4px;
}

.ping {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  --c: #ffe14a;
}

.ping.team0 {
  --c: #9ec1f0;
}

.ping.team1 {
  --c: #f0a89e;
}

.ping-ring {
  position: absolute;
  width: 44px;
  height: 22px;
  left: -22px;
  top: -11px;
  border: 3px solid var(--c);
  border-radius: 50%;
  animation: ping-ring 1s ease-out infinite;
}

.ping-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  top: -8px;
  color: var(--c);
  font-size: 22px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
  animation: ping-bob 0.6s ease-in-out infinite alternate;
}

.ping-name {
  position: absolute;
  transform: translate(-50%, 0);
  top: 14px;
  font-size: 11px;
  white-space: nowrap;
  color: var(--c);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.ping-arrow {
  display: none;
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--turn));
  color: var(--c);
  font-size: 26px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.ping.edge .ping-ring,
.ping.edge .ping-pin {
  display: none;
}

.ping.edge .ping-arrow {
  display: block;
}

.ping.edge .ping-name {
  top: 16px;
}

@keyframes ping-ring {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes ping-bob {
  to {
    top: -14px;
  }
}

.chat-log {
  position: fixed;
  left: 12px;
  bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 420px;
  pointer-events: none;
}

.chat-line {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.chat-line .name {
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}

.chat-line .team0,
.chat-input .team0 {
  color: #9ec1f0;
}

.chat-line .team1 {
  color: #f0a89e;
}

.chat-input {
  position: fixed;
  left: 12px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(420px, calc(100vw - 24px));
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
}

.chat-input input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  padding: 4px 6px;
  border: none;
  border-radius: 4px;
}

.chat-to {
  font-size: 12px;
  opacity: 0.8;
}

.scoreboard li.mutable {
  cursor: pointer;
}

/* ---- progression (M8c) ---- */

.progression {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.level-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.xp-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: #ffe14a;
}

.hats-label {
  font-size: 12px;
}

.hats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hat.worn {
  outline: 2px solid #ffe14a;
}

.hat:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  max-width: 420px;
}

.achievement {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 225, 74, 0.14);
  border: 1px solid rgba(255, 225, 74, 0.5);
  font-size: 12px;
}

.achievement span {
  opacity: 0.8;
}

.achievement.locked {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  filter: grayscale(1);
  opacity: 0.55;
}

.progress-toasts {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.toast {
  padding: 8px 18px;
  border-radius: 8px;
  background: #1d2733;
  color: #ffe14a;
  border: 1px solid #ffe14a;
  font-weight: 600;
  animation: toast-in 0.4s ease-out both;
}

.toast.achievement-toast {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f4f4f4;
  font-weight: 400;
}

.toast.achievement-toast strong {
  color: #ffe14a;
}

.level-up {
  color: #9be59b;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---- home (the menu) ---- */
/* A header bar (logo, online status, feedback, settings), then the "Play online" panel beside a
   column of everything else; one column on narrow screens. The page scrolls. */

.menu.home {
  display: block;
  height: 100vh;
  overflow-y: auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  font-size: 15px;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(58, 123, 213, 0.22), transparent 70%),
    var(--bg);
}

.app:has(.home) > .net-status {
  display: none;
}

.home .dim {
  color: var(--muted);
}

.home h2,
.home h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home h2 {
  font-size: 28px;
}

.home h3 {
  font-size: 18px;
}

.home p {
  margin: 0;
}

.home-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 14px 0;
  background: linear-gradient(var(--bg) 70%, transparent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark svg {
  display: block;
  width: 44px;
  height: auto;
}

.logo-word {
  font: 400 26px/1 var(--display);
}

.home-bar .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.home-bar .chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.home-bar .chip.online::before {
  background: var(--ok);
}

.home-bar .chip.connecting::before {
  background: var(--gold);
}

.home-bar .chip.offline {
  color: var(--rival);
  border-color: rgba(236, 122, 99, 0.5);
}

.home-bar .chip.offline::before {
  background: var(--rival);
}

.home-tools {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-left: auto;
}

.home-tools .feedback {
  margin: 0;
}

.home-tools .feedback-form,
.settings-body {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.home-tools .feedback-form .buttons {
  display: flex;
  gap: 8px;
}

.settings summary {
  list-style: none;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.settings[open] summary {
  background: var(--panel-2);
}

.settings-body {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.settings-body label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.home-side {
  display: grid;
  gap: 16px;
}

.home .menu-card {
  align-items: stretch;
  min-width: 0;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  text-align: left;
}

.home .menu-card > button {
  align-self: flex-start;
}

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

.fields label,
.name-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fields label > span,
.name-field > span,
.squad-head .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fields select {
  width: 100%;
}

.join-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.join-row .dim {
  margin-right: auto;
}

/* Play online: the big panel. */
.home .party {
  gap: 16px;
  padding: 24px;
  border-top: 4px solid var(--team);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.name-field input {
  width: 16ch;
}

.connecting {
  padding: 24px 0;
}

.party-body {
  display: grid;
  gap: 16px;
}

.squad {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel-2);
  border-radius: 12px;
}

.squad-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.squad-head .label {
  margin-right: auto;
}

.home .members {
  display: grid;
  gap: 4px;
}

.home .member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 16px;
  font-weight: 600;
}

.home .member .dot {
  margin: 0;
}

.tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(58, 123, 213, 0.25);
  color: var(--team-bright);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag.lead {
  background: rgba(242, 182, 50, 0.18);
  color: var(--gold);
}

.small-print {
  font-size: 13px;
}

.match-prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.segmented button {
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
}

.segmented button[aria-pressed="true"] {
  background: var(--team);
  color: white;
}

.segmented button:disabled {
  cursor: default;
}

.segmented button[aria-pressed="true"]:disabled {
  opacity: 0.75;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

button.cta {
  width: 100%;
  padding: 18px 24px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--gold-ink);
  font: 400 24px/1 var(--display);
  letter-spacing: 0.02em;
  box-shadow: 0 5px 0 var(--gold-edge);
  transition: transform 0.08s, box-shadow 0.08s;
}

button.cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--gold-edge);
}

button.cta:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--gold-edge);
}

.queue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(242, 182, 50, 0.1);
  box-shadow: inset 0 0 0 1px rgba(242, 182, 50, 0.45);
}

.queue-time {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.6);
    opacity: 0.5;
  }
}

.waiting {
  padding: 14px 0;
  text-align: center;
}

.home .chat {
  gap: 8px;
}

.home .chat-lines {
  min-height: 48px;
  max-height: 160px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-2);
}

.home .chat-lines:empty::before {
  content: "Party chat shows up here.";
  color: var(--muted);
}

.practice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.practice > div {
  flex: 1 1 180px;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .home .party {
    padding: 18px;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-tools {
    margin-left: 0;
  }
  .logo-word {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
  button.cta {
    transition: none;
  }
}

/* The side column's panels fill it, whatever their own widths were on the old card grid. */
.home .account,
.home .history {
  max-width: none;
  min-width: 0;
}

.home .account p {
  text-align: left;
}

/* ---- the custom lobby room ---- */

.lobby-room {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.lobby-room .home-bar {
  margin-bottom: 0;
}

.lobby-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.lobby-code {
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.lobby-rules,
.lobby-actions {
  flex-wrap: wrap;
}

.lobby-room .teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.lobby-team {
  gap: 8px;
}

.lobby-team.team-0 {
  border-top: 4px solid var(--team);
}

.lobby-team.team-1 {
  border-top: 4px solid var(--rival);
}

.lobby-room .seat {
  width: auto;
  min-height: 40px;
  box-sizing: border-box;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--panel-2);
}

.lobby-room .seat.mine {
  box-shadow: inset 0 0 0 1px var(--team);
}

.seat-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.tag.ready {
  background: rgba(95, 211, 138, 0.18);
  color: var(--ok);
}

button.danger {
  background: transparent;
  color: var(--rival);
  box-shadow: inset 0 0 0 1px rgba(236, 122, 99, 0.6);
}

button.danger:hover:not(:disabled) {
  background: rgba(236, 122, 99, 0.15);
  filter: none;
}

.lobby-actions button:first-child {
  margin-right: 0;
}

/* ---- in-match HUD ---- */
/* Match bar top centre, you bottom centre, your pad bottom right, menu top left; the kill feed
   keeps the top right and chat the bottom left. Panels are dark glass so the field shows through. */

.hud-match,
.hud-me .me,
.hud-pad .pad,
.hud-menu,
.controls,
.hud-respawn,
.hud-debug {
  user-select: none;
}

.hud-match {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  pointer-events: none;
}

.match-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.72);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.side {
  display: grid;
  gap: 4px;
  width: 170px;
}

.side-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.side-name {
  font: 400 15px/1 var(--display);
}

.side.team-0 .side-name {
  color: var(--team-bright);
}

.side.team-1 .side-name {
  color: #f0a89e;
}

.side-alive,
.side-base {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.clock {
  display: grid;
  place-content: center;
  min-width: 84px;
  padding: 0 6px;
  font: 400 28px/1 var(--display);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.clock-note {
  margin-top: 4px;
  font: 700 10px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s;
}

.bar.team-0 .bar-fill {
  background: var(--team);
}

.bar.team-1 .bar-fill {
  background: #d5503a;
}

.bar.ok .bar-fill {
  background: var(--ok);
}

.bar.warn .bar-fill {
  background: var(--rival);
}

.hud-match .domination {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.72);
}

/* You, bottom centre. */
.hud-me {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.hud-me .prompt {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  box-shadow: 0 3px 0 var(--gold-edge);
}

.me {
  display: grid;
  gap: 8px;
  min-width: 340px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.72);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.me-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.me-row .bar {
  flex: 1;
  height: 12px;
}

.me-class {
  min-width: 64px;
  font: 400 15px/1 var(--display);
}

.me-hp {
  min-width: 34px;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.me-row.chips {
  flex-wrap: wrap;
  gap: 6px;
}

.me .chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
}

.me .chip.weapon {
  background: rgba(58, 123, 213, 0.3);
}

.me .chip .ammo {
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.me .chip.crate {
  background: rgba(184, 116, 47, 0.45);
}

.me .chip.alert {
  background: var(--rival);
  color: white;
}

.me .chip.dim {
  color: var(--muted);
}

/* Your pad, bottom right. */
.hud-pad {
  position: fixed;
  right: 12px;
  bottom: 14px;
}

.pad {
  display: grid;
  gap: 8px;
  width: 280px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.72);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.pad p {
  margin: 0;
}

.pad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pad-title {
  font: 400 15px/1 var(--display);
}

.pad-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pad-layers {
  display: grid;
  gap: 4px;
}

/* Top layer drawn above the ground layer, like the stack itself. */
.pad-layers .pad-layer:first-child {
  order: 2;
}

.pad-layer {
  display: grid;
  grid-template-columns: 16px 16px;
  gap: 2px;
}

.pad-cell {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: rgba(158, 193, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(158, 193, 240, 0.3);
}

.pad-cell.full {
  background: var(--crate, #b8742f);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.pad-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
}

.pad-now {
  font-size: 15px;
  font-weight: 800;
}

.pad-now .super,
.pad-plan {
  color: var(--gold);
}

.pad-text .dim {
  color: var(--muted);
}

/* Menu, controls and the rest. */
.hud-menu {
  position: fixed;
  top: 10px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 30vw;
}

.hud-menu button {
  backdrop-filter: blur(4px);
}

.hud-menu .secondary {
  background: rgba(10, 16, 28, 0.6);
}

.controls {
  position: fixed;
  top: 96px;
  left: 12px;
  z-index: 6;
  display: grid;
  gap: 10px;
  width: min(560px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 24, 38, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.controls-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-head b {
  font: 400 18px/1 var(--display);
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 18px;
}

.controls-group {
  display: grid;
  gap: 4px;
  align-content: start;
}

.controls-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.controls-key {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}

.kbd {
  flex: none;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.hud-respawn {
  position: fixed;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 26px;
  border-radius: 16px;
  background: rgba(10, 16, 28, 0.72);
  font: 400 20px/1.1 var(--display);
  pointer-events: none;
}

.hud-respawn .dim {
  font: 600 13px/1 var(--body);
  color: var(--muted);
}

.hud-respawn .count {
  font-size: 48px;
}

.hud-debug {
  position: fixed;
  left: 12px;
  bottom: 4px;
  font-size: 11px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .side {
    width: 120px;
  }
  .me {
    min-width: 0;
  }
  .hud-pad {
    display: none;
  }
}

/* ---- menu frame: a top bar with screens, the party docked on the right (StarCraft II-like) ---- */

.menu.home {
  padding: 0;
  overflow: hidden;
}

.home-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
}

.nav-bar {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  min-height: 64px;
  background: linear-gradient(180deg, #16233a 0%, #111b2d 100%);
  border-bottom: 1px solid #2c4366;
  box-shadow: 0 1px 0 rgba(111, 163, 234, 0.15), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-bar .logo {
  align-self: center;
}

.nav-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-tab {
  position: relative;
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 400 16px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-tab:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(111, 163, 234, 0.08);
  filter: none;
}

.nav-tab[aria-selected="true"] {
  color: white;
  background: linear-gradient(180deg, transparent 40%, rgba(58, 123, 213, 0.22));
}

.nav-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--team-bright);
  box-shadow: 0 0 12px var(--team-bright);
}

.nav-bar .home-tools {
  align-self: center;
  align-items: center;
}

.nav-bar .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.nav-bar .chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.nav-bar .chip.online::before {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.nav-bar .chip.connecting::before {
  background: var(--gold);
}

.nav-bar .chip.offline {
  color: var(--rival);
  border-color: rgba(236, 122, 99, 0.5);
}

.nav-bar .chip.offline::before {
  background: var(--rival);
}

.home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
}

.home-main {
  overflow-y: auto;
  padding: 28px max(16px, 3vw) 40px;
  background:
    radial-gradient(900px 420px at 30% 0%, rgba(58, 123, 213, 0.16), transparent 70%),
    var(--bg);
}

.home-party {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px;
  background: #121c2e;
  border-left: 1px solid #2c4366;
}

.screen {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.play-screen {
  gap: 32px;
}

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

.section-head {
  display: grid;
  gap: 4px;
}

.home .section-head h2 {
  font-size: 30px;
  letter-spacing: 0.02em;
}

.home .screen .menu-card {
  border-color: #2c4366;
  background: linear-gradient(180deg, #192640, #152034);
}

/* Matchmaking: the two modes as big cards, then the options and the Find match button. */
.matchmaking {
  display: grid;
  gap: 16px;
}

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

.mode-card {
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 132px;
  padding: 18px;
  border-radius: 14px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 24, 38, 0.1), rgba(15, 24, 38, 0.92) 75%),
    url("/media/keyart-960.webp") center / cover,
    #192640;
  box-shadow: inset 0 0 0 1px #2c4366;
  font-weight: 400;
}

.mode-card.mode-domination {
  background:
    linear-gradient(180deg, rgba(15, 24, 38, 0.1), rgba(15, 24, 38, 0.92) 75%),
    url("/media/keyart-960.webp") 80% 30% / 160%,
    #192640;
}

.mode-card:hover:not(:disabled) {
  filter: brightness(1.08);
}

.mode-card[aria-checked="true"] {
  box-shadow: inset 0 0 0 2px var(--team-bright), 0 0 24px rgba(111, 163, 234, 0.3);
}

.mode-card:disabled {
  opacity: 1;
  cursor: default;
}

.mode-card:disabled:not([aria-checked="true"]) {
  opacity: 0.55;
}

.mode-name {
  font: 400 22px/1 var(--display);
}

.mode-blurb {
  font-size: 14px;
  color: var(--muted);
}

.home .offline {
  gap: 14px;
}

/* The party, docked right. */
.party-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 400 18px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-title .dim {
  font: 600 13px/1 var(--body);
}

.party-panel .name-field input {
  width: 100%;
  box-sizing: border-box;
}

.party-panel .squad {
  gap: 10px;
}

.squad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.party-panel .join-row input {
  flex: 1;
  width: auto;
}

.party-panel .chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.party-panel .chat-lines {
  flex: 1;
  max-height: none;
}

/* Loading, until the server first answers. */
.loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  height: 100vh;
  text-align: center;
  color: var(--muted);
}

.loading .logo-mark svg {
  width: 72px;
}

.loading .logo-word {
  font-size: 40px;
  color: var(--ink);
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(111, 163, 234, 0.2);
  border-top-color: var(--team-bright);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}

/* The lobby room keeps a plain header (no fade band). */
.home-bar {
  position: static;
  background: none;
}

@media (max-width: 960px) {
  .home-frame {
    height: auto;
    min-height: 100vh;
  }
  .menu.home {
    overflow-y: auto;
  }
  .nav-bar {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
  }
  .nav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .nav-tab {
    padding: 12px 14px;
    font-size: 14px;
  }
  .nav-bar .home-tools {
    margin-left: auto;
  }
  .home-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-main {
    overflow: visible;
  }
  .home-party {
    border-left: 0;
    border-top: 1px solid #2c4366;
    overflow: visible;
  }
  .mode-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .nav-bar .chip {
    display: none;
  }
}

.home .account-who,
.home .account-guest {
  align-items: flex-start;
  text-align: left;
}

/* In a match the corner status would sit on the pad card; trouble shows as the Reconnecting banner. */
.app:has(.hud-pad) > .net-status {
  display: none;
}

.side-base {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.side-base .lives {
  color: var(--ink);
  font-weight: 700;
}

.side-base .lives.out {
  color: var(--rival);
}

/* ---- party slots (Online screen) and the queue chip (top bar) ---- */

.home-body {
  grid-template-columns: minmax(0, 1fr);
}

.party-slots {
  display: grid;
  gap: 14px;
}

.slot-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.slot {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  font-weight: 400;
  color: var(--ink);
  background: linear-gradient(180deg, #1c2b47, #152034);
  box-shadow: inset 0 0 0 1px #2c4366;
}

.slot.filled {
  box-shadow: inset 0 0 0 1px #3d5c8a, 0 0 18px rgba(58, 123, 213, 0.12);
}

.slot.away {
  opacity: 0.6;
}

.slot-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--team);
  color: white;
  font: 400 24px/1 var(--display);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}

.slot-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
}

.slot-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
}

.slot.empty {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(111, 163, 234, 0.25);
  border: 0;
  outline-offset: 2px;
}

.slot.empty .slot-mark {
  background: transparent;
  color: var(--team-bright);
  box-shadow: inset 0 0 0 2px rgba(111, 163, 234, 0.45);
}

.slot.empty:hover {
  background: rgba(58, 123, 213, 0.1);
  filter: none;
}

.slot-row .leave {
  align-self: center;
  justify-self: start;
}

.party-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
}

.party-tools .join-row {
  align-items: flex-end;
}

.party-chat summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.party-chat[open] summary {
  margin-bottom: 8px;
}

.party-chat .chat-lines {
  max-height: 180px;
}

.queue-chip {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(242, 182, 50, 0.12);
  box-shadow: inset 0 0 0 1px rgba(242, 182, 50, 0.5);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.queue-chip .pulse {
  width: 10px;
  height: 10px;
}

/* Keep the top bar to one line: labels never wrap, and it tightens before anything spills. */
.nav-tab,
.nav-bar .home-tools button,
.nav-bar .settings summary {
  white-space: nowrap;
}

.nav-bar .home-tools {
  flex-wrap: nowrap;
  min-width: 0;
}

@media (max-width: 1440px) {
  .nav-bar {
    gap: 16px;
  }
  .nav-tab {
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .nav-bar .chip {
    display: none;
  }
}
