:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --surface-3: #f8fbfd;
  --text: #16202a;
  --muted: #627286;
  --line: #d6e0ea;
  --accent: #cf3030;
  --accent-2: #207f73;
  --warning: #8a6500;
  --ok: #1d6b3b;
  --shadow: 0 16px 40px rgba(25, 41, 58, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.topbar-inner,
main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #111820;
  border-radius: 50%;
  background:
    linear-gradient(#d72e2e 0 46%, #111820 46% 54%, #ffffff 54% 100%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}

.mark::after {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid #111820;
  border-radius: 50%;
  background: #ffffff;
}

nav,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
button,
input,
select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 8px 12px;
}

.nav-link,
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  text-decoration: none;
}

.nav-link.primary,
button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.nav-link:hover,
button:hover {
  border-color: #9fb0c0;
  background: #f9fbfd;
}

.nav-link.primary:hover,
button.primary:hover {
  border-color: #ad2828;
  background: #ad2828;
}

.nav-link.icon-only {
  width: 42px;
  padding: 8px;
}

.nav-link.icon-only svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.mobile-discord-link {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.topbar.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input,
select {
  width: min(360px, 100%);
}

main {
  display: grid;
  gap: 18px;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0;
  line-height: 1;
}

.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}

.lead strong {
  color: var(--text);
  font-weight: 900;
}

section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mask-control {
  display: block;
  justify-self: end;
  min-width: min(220px, 100%);
}

.mini-label {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mask-control select {
  width: 100%;
  min-height: 40px;
  border-color: #cbd9d2;
  padding: 7px 10px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.08);
  font-size: 13px;
  font-weight: 750;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 13px 16px;
}

.section-body {
  padding: 16px;
}

.actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  justify-content: stretch;
}

.actions input {
  width: 100%;
}

.actions button {
  width: auto;
  white-space: nowrap;
}

.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 12px;
}

.pokemon-card {
  display: grid;
  position: relative;
  overflow: hidden;
  gap: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pokemon-card.is-available {
  border-color: #2b9458;
}

.pokemon-card.is-locked {
  border-color: #d0a01a;
}

.pokemon-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.08);
}

.pokemon-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  align-items: center;
  padding: 10px 11px;
}

.sprite-wrap {
  display: grid;
  position: relative;
  width: 76px;
  height: 76px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5faf7 48%, #e9f2ee 100%);
}

.sprite-wrap img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(30, 42, 36, 0.18));
}

.shiny-star {
  position: absolute;
  top: 4px;
  right: 5px;
  color: #d09200;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 211, 92, 0.85);
}

.header-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.header-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.header-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-line > span:not(.gender-icon) {
  flex: 0 1 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offered-name-line {
  align-items: flex-end;
}

.offered-name-line strong {
  font-size: 15px;
}

.offered-species-line {
  gap: 5px;
}

.header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  background: #edf1ee;
  color: #45544e;
}

.info-chip.nature {
  background: #edf3fb;
  color: #285fa8;
}

.info-chip.shiny {
  background: #fff3cd;
  color: var(--warning);
}

.gender-icon {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.gender-icon img {
  display: block;
  width: 17px;
  height: 17px;
}

.gender-icon.gender-inline {
  width: 17px;
  height: 17px;
  border: 0;
  background: transparent;
}

.gender-icon.gender-inline img {
  width: 17px;
  height: 17px;
}

.gender-icon.male {
  border-color: #b6d1ef;
  background: #eef6ff;
  color: #1d67ad;
}

.gender-icon.female {
  border-color: #efbfd1;
  background: #fff1f6;
  color: #b9326d;
}

.gender-icon.genderless,
.gender-icon.either {
  border-color: #d7d5e6;
  background: #f5f4fb;
  color: #665a9c;
}

.gender-icon.gender-inline {
  border: 0;
  background: transparent;
}

.pokemon-details {
  width: 100%;
  border-top: 1px solid var(--line);
  border-collapse: collapse;
  background: var(--surface-3);
  table-layout: fixed;
}

.pokemon-details th,
.pokemon-details td {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 6px 9px;
  text-align: left;
}

.pokemon-details th:last-child,
.pokemon-details td:last-child {
  border-right: 0;
}

.pokemon-details th {
  color: var(--muted);
  background: #eef4f1;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pokemon-details td {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pokemon-details .item-display {
  max-width: 100%;
}

.item-display {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.item-sprite {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.item-sprite img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  object-fit: contain;
}

.item-sprite.is-empty {
  background: #f3f6f8;
}

.item-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-section {
  border-top: 1px solid var(--line);
  padding: 8px 10px;
}

.section-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stat-list {
  display: grid;
  gap: 3px;
}

.stat-row {
  display: grid;
  grid-template-columns: 28px 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.stat-value {
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.stat-bar {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.stat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.stat-ev {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.stat-ev.invested {
  color: #9a6b00;
}

.ev-line {
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.move-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  min-width: 0;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.trade-summary {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f8f6 100%);
  padding: 8px 10px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-sprite {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #d7e1db;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5faf7 48%, #e9f2ee 100%);
}

.footer-sprite img {
  width: 46px;
  height: 46px;
  image-rendering: pixelated;
  object-fit: contain;
}

.footer-sprite.fallback {
  color: var(--muted);
  font-weight: 900;
}

.footer-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.footer-label {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-line strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-line > span:not(.footer-label):not(.gender-icon) {
  flex: 0 0 auto;
}

.footer-line .gender-icon {
  width: 19px;
  height: 19px;
  font-size: 12px;
}

.pokemon-grid.mask-horizontal {
  grid-template-columns: 1fr;
}

.pokemon-card.mask-horizontal {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-width: 2px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pokemon-card.mask-horizontal:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.08);
}

.pokemon-card.mask-horizontal.is-available {
  border-color: #2b9458;
}

.pokemon-card.mask-horizontal.is-locked {
  border-color: #d0a01a;
}

.horizontal-sprite-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd 0%, #f4f8f6 100%);
}

.horizontal-sprite-frame {
  display: grid;
  position: relative;
  width: 96px;
  height: 104px;
  margin: 10px 8px 4px;
  place-items: center;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5faf7 48%, #e9f2ee 100%);
}

.horizontal-sprite-frame img {
  width: 76px;
  height: 76px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(30, 42, 36, 0.14));
}

.horizontal-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 28px;
  border-top: 1px solid var(--line);
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pokeball-dot {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid #2d3940;
  border-radius: 50%;
  background: linear-gradient(#f15c4a 0 47%, #2d3940 48% 55%, #ffffff 56% 100%);
}

.pokeball-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 5px;
  height: 5px;
  border: 1px solid #2d3940;
  border-radius: 50%;
  background: #ffffff;
}

.horizontal-table-wrap {
  position: relative;
  min-width: 0;
  overflow-x: auto;
}

.horizontal-info-table {
  width: 100%;
  height: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.horizontal-label-col {
  width: 80px;
}

.horizontal-data-col {
  width: auto;
}

.horizontal-info-table th,
.horizontal-info-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 9px;
  text-align: left;
  vertical-align: middle;
}

.horizontal-info-table tr:last-child th,
.horizontal-info-table tr:last-child td {
  border-bottom: 0;
}

.horizontal-info-table th:last-child,
.horizontal-info-table td:last-child {
  border-right: 0;
}

.horizontal-info-table th {
  background: #eef4f1;
  color: var(--muted);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.horizontal-info-table td {
  overflow: hidden;
  background: #fbfcfb;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-info-table tr:nth-child(even) td {
  background: var(--surface-3);
}

.horizontal-info-table .horizontal-date {
  white-space: normal;
}

.horizontal-info-table .horizontal-evs {
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.horizontal-info-table .item-display,
.horizontal-wanted {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
  vertical-align: middle;
}

.horizontal-wanted {
  flex-wrap: wrap;
}

.horizontal-wanted-level {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.horizontal-wanted-level::before {
  content: "/";
  margin-right: 6px;
  color: #9aa7a1;
}

.horizontal-info-table .item-sprite {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #ffffff;
}

.horizontal-info-table .item-sprite img {
  width: 20px;
  height: 20px;
}

.horizontal-wanted-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-wanted-sprite {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d7e1db;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5faf7 54%, #e9f2ee 100%);
}

.horizontal-wanted-sprite img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  object-fit: contain;
}

.horizontal-wanted-sprite.fallback {
  color: var(--muted);
  font-weight: 900;
}

.horizontal-error-row td {
  background: #fff9e8;
  white-space: normal;
}

.horizontal-scroll-hint {
  display: none;
}

.pokemon-grid.mask-mobile {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.pokemon-card.mask-mobile {
  border-width: 1px;
}

.mobile-trade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.mobile-side {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.mobile-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-side strong,
.mobile-side span:not(.mobile-sprite):not(.mobile-label):not(.gender-icon) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-side strong {
  font-size: 13px;
  line-height: 1.2;
}

.mobile-name-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-side span:not(.mobile-sprite):not(.mobile-label):not(.gender-icon) {
  color: var(--muted);
  font-size: 11px;
}

.mobile-species-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-sprite {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid #d7e1db;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5faf7 48%, #e9f2ee 100%);
}

.mobile-sprite img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  object-fit: contain;
}

.mobile-sprite.fallback {
  color: var(--muted);
  font-weight: 900;
}

.mobile-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
}

.empty {
  border: 1px dashed #c8d2cc;
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.status-line {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .mask-control {
    justify-self: start;
  }

  .pokemon-card.mask-horizontal {
    grid-template-columns: 1fr;
  }

  .horizontal-sprite-panel {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    justify-items: start;
    border-right: 0;
    border-bottom: 1px solid #aeb8bc;
    padding: 8px;
  }

  .horizontal-sprite-frame {
    width: 86px;
    height: 86px;
    margin: 0;
  }

  .horizontal-level {
    width: auto;
    padding: 0;
  }

  .horizontal-info-table {
    min-width: 620px;
  }

  .horizontal-scroll-hint {
    display: block;
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    width: 36px;
    height: 19px;
    border: 1px solid #cbd9d2;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16' fill='none' stroke='%234f6159' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 8 8l4 4'/%3E%3Cpath d='M8 8h16'/%3E%3Cpath d='m20 4 4 4-4 4'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 12px;
    box-shadow: 0 5px 12px rgba(23, 32, 28, 0.14);
    opacity: 0.82;
    pointer-events: none;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .mobile-discord-link {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 0;
    width: 42px;
  }

  .menu-toggle {
    display: inline-grid;
    flex: 0 0 auto;
    gap: 4px;
    place-items: center;
    width: 42px;
  }

  nav {
    display: none;
    align-items: stretch;
    flex-direction: column;
    grid-column: 1 / -1;
    width: 100%;
  }

  nav .desktop-discord-link {
    display: none;
  }

  .topbar.nav-open nav {
    display: flex;
  }

  .nav-link,
  input,
  select,
  main button {
    width: 100%;
  }

  .mobile-discord-link {
    width: 42px;
  }

  .actions {
    width: 100%;
  }

  .actions button {
    width: auto;
  }

  .mask-control {
    justify-self: stretch;
    min-width: 0;
  }

  .mask-control select {
    min-width: 0;
  }

  .section-head {
    align-items: center;
  }
}
