@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Silkscreen:wght@400;700&display=swap");

:root {
  --font-body: "Chakra Petch", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-display: "Silkscreen", "Chakra Petch", sans-serif;
  --bg: #101a2a;
  --panel: #16263b;
  --panel-soft: #203651;
  --line: #3f628f;
  --ink: #f7fbff;
  --muted: #b6c8df;
  --accent: #ffcb05;
  --accent-soft: #324c88;
  --accent-ink: #213253;
  --green: #9ade8a;
  --green-soft: #1a4730;
  --red: #ff9e92;
  --red-soft: #5a2424;
  --shadow: 0 22px 42px rgba(3, 8, 18, 0.46);
  --motion-fast: 120ms;
  --motion-medium: 170ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at top left, rgba(255, 203, 5, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(103, 162, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #0c1522 0%, #13233a 52%, #17263b 100%);
  background-attachment: fixed;
}

html {
  scroll-behavior: smooth;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.shell,
.setup-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
}

.setup-shell,
.screen-state {
  display: grid;
  align-content: start;
}

.setup-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: start;
  align-items: center;
  justify-items: center;
  padding-top: clamp(40px, 10vh, 88px);
}

.setup-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  width: min(860px, 100%);
}

.setup-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.setup-card,
.panel,
.summary-bar {
  background: linear-gradient(180deg, rgba(28, 46, 72, 0.96), rgba(20, 34, 54, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    var(--shadow);
  transition:
    border-color var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease),
    background-color var(--motion-medium) var(--motion-ease),
    transform var(--motion-medium) var(--motion-ease);
}

.setup-card {
  width: min(860px, 100%);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.user-runs-panel {
  margin-top: 16px;
}

.user-runs-head,
.user-run-card,
.user-run-card__main,
.user-run-card__meta,
.user-run-card__actions {
  display: flex;
  gap: 12px;
}

.user-runs-head {
  align-items: center;
  justify-content: space-between;
}

.user-runs-head h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: 0.04em;
}

.user-run-list {
  display: grid;
  gap: 12px;
}

.user-run-card {
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(86, 128, 182, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 23, 39, 0.72), rgba(18, 30, 48, 0.88));
}

.user-run-card__main {
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.user-run-card__main strong {
  overflow-wrap: anywhere;
}

.user-run-card__meta {
  flex: 0 0 auto;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.86rem;
}

.user-run-card__actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.setup-head,
.topbar,
.summary-bar,
.toolbar,
.route-editor-head,
.route-row,
.route-main,
.route-actions,
.pokemon-head,
.search-row,
.session-strip,
.action-row,
.mode-row,
.nav-strip,
.topbar-actions {
  display: flex;
  gap: 12px;
}

.setup-head {
  justify-content: center;
  text-align: center;
}

.setup-head h1,
.brand-block strong,
.board-panel-head strong,
.summary-bar strong,
.sheet-panel__head strong,
.credits-entry strong,
.guide-stop__main strong,
.guide-battle__main strong,
.session-strip strong {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.setup-head h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  text-shadow: 2px 2px 0 rgba(35, 50, 83, 0.75);
}

.setup-head,
.topbar,
.summary-bar,
.toolbar,
.route-row,
.route-actions,
.pokemon-head,
.search-row,
.session-strip,
.topbar-actions {
  align-items: center;
}

.topbar,
.summary-bar,
.toolbar,
.session-strip {
  justify-content: space-between;
}

.topbar {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(84, 122, 171, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 38, 59, 0.92), rgba(17, 29, 46, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 34px rgba(5, 10, 22, 0.3);
}

.brand-block,
.topbar-actions,
.nav-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-block strong {
  font-size: 1.08rem;
  color: var(--accent);
  text-shadow: 2px 2px 0 rgba(35, 50, 83, 0.8);
}

.brand-block .meta-pill {
  font-weight: 600;
}

.summary-bar {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-color: rgba(86, 128, 182, 0.48);
  flex-wrap: wrap;
}

.summary-bar strong {
  font-size: 0.94rem;
}

.summary-bar>div,
.route-main,
.session-strip>div {
  display: grid;
  gap: 2px;
}

.summary-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.summary-pokedex {
  flex: 1 1 100%;
  min-width: 0;
}

.summary-label,
.field span,
.route-meta,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-pill,
.nav-link,
.lang-link,
.ghost-button,
.primary-button,
.species-pill,
.type-pill {
  border-radius: 14px;
}

.meta-pill,
.lang-link {
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(44, 68, 102, 0.9), rgba(30, 49, 74, 0.92));
  border: 1px solid rgba(92, 132, 186, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link,
.ghost-button,
.primary-button,
.lang-link,
.species-pill,
.route-main,
.search-row {
  border: 0;
  cursor: pointer;
}

.nav-link,
.ghost-button {
  padding: 10px 14px;
  border: 1px solid rgba(92, 132, 186, 0.44);
  background: linear-gradient(180deg, rgba(37, 57, 87, 0.96), rgba(28, 46, 71, 0.98));
}

.nav-link,
.ghost-button,
.primary-button,
.lang-link,
.meta-pill,
.route-chip,
.info-pill,
.icon-action,
.setup-dropdown-trigger,
.route-chooser,
.entry-row,
.entry-group,
.board-panel,
.route-row,
.search-row,
.peer-chip,
.pokemon-card,
.field input,
.field select,
.field textarea,
.compact-select {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.nav-link,
.ghost-button,
.primary-button,
.lang-link,
.meta-pill,
.text-link,
.summary-label,
.route-title,
.inline-meta,
.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link.is-active,
.primary-button {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: rgba(255, 226, 116, 0.86);
  box-shadow:
    inset 0 -2px 0 rgba(171, 122, 0, 0.28),
    0 10px 18px rgba(255, 203, 5, 0.2);
}

.lang-link.is-active {
  background: #9fd1ff;
  color: #13233a;
  border-color: rgba(223, 242, 255, 0.92);
}

.ghost-button {
  color: #e8f1ff;
}

.nav-link:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.primary-button:hover:not(:disabled),
.lang-link:hover,
.icon-action:hover,
.search-row:hover,
.route-row:hover,
.entry-row:hover,
.peer-chip:hover,
.setup-dropdown-trigger:hover {
  transform: translateY(-1px);
}

.nav-link:active:not(:disabled),
.ghost-button:active:not(:disabled),
.primary-button:active:not(:disabled),
.icon-action:active,
.search-row:active,
.route-row:active {
  transform: translateY(0);
}

.primary-button {
  padding: 12px 16px;
  font-weight: 700;
}

.primary-button:disabled,
.ghost-button:disabled,
.nav-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.setup-grid,
.layout-grid {
  display: grid;
  gap: 16px;
}

.setup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.shell .layout-grid {
  flex: 1 1 auto;
}

.routes-main {
  display: grid;
  gap: 16px;
  flex: 1 1 auto;
}

.main-panel,
.side-panel,
.routes-shell,
.panel-stack,
.workspace-panel,
.route-directory,
.pokedex-panel {
  min-width: 0;
}

.routes-shell,
.panel-stack {
  display: grid;
  gap: 16px;
}

.routes-shell {
  justify-items: end;
}

.route-guide-launcher {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 72;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid rgba(86, 128, 182, 0.52);
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, rgba(28, 46, 72, 0.98), rgba(20, 34, 54, 0.98));
  box-shadow: var(--shadow);
}

.route-guide-launcher__icon {
  display: inline-grid;
  place-items: center;
}

.route-guide-launcher__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "team missed"
    "box rip";
  gap: 16px;
}

.collections-grid > .board-panel--team {
  grid-area: team;
}

.collections-grid > .board-panel--box {
  grid-area: box;
}

.collections-grid > .board-panel--missed {
  grid-area: missed;
}

.collections-grid > .board-panel--rip {
  grid-area: rip;
}

.drag-panel-grid {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 260;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.drag-panel-grid.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.drag-panel-grid__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(142, 170, 208, 0.26);
  border-radius: 22px;
  background: rgba(9, 14, 21, 0.86);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.drag-panel-grid__cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--collection-border-color, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--collection-button-bg, rgba(92, 150, 255, 0.14)) 88%, rgba(20, 28, 39, 0.94));
  color: var(--collection-option-color, var(--ink));
  pointer-events: auto;
  cursor: copy;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.drag-panel-grid__cell.is-drag-over {
  transform: translateY(-1px) scale(1.02);
  border-color: color-mix(in srgb, var(--collection-title-color, #fff) 68%, white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 22px color-mix(in srgb, var(--collection-button-bg, rgba(92, 150, 255, 0.2)) 74%, transparent);
}

.drag-panel-grid__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.drag-panel-grid__cell--team {
  --collection-title-color: #7fd0ff;
  --collection-option-color: #d8ebff;
  --collection-border-color: rgba(92, 150, 255, 0.42);
  --collection-button-bg: rgba(92, 150, 255, 0.2);
}

.drag-panel-grid__cell--box {
  --collection-title-color: #8fd8a4;
  --collection-option-color: #dbf8e3;
  --collection-border-color: rgba(96, 186, 119, 0.42);
  --collection-button-bg: rgba(96, 186, 119, 0.2);
}

.drag-panel-grid__cell--missed {
  --collection-title-color: #ffd36d;
  --collection-option-color: #fff0ba;
  --collection-border-color: rgba(224, 186, 73, 0.44);
  --collection-button-bg: rgba(224, 186, 73, 0.22);
}

.drag-panel-grid__cell--rip {
  --collection-title-color: #ff9898;
  --collection-option-color: #ffe0e0;
  --collection-border-color: rgba(214, 90, 90, 0.4);
  --collection-button-bg: rgba(214, 90, 90, 0.2);
}

.workspace-panel,
.route-directory {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--run-title {
  align-content: start;
}

.inline-field-action {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.inline-field-action input {
  flex: 1 1 auto;
}

.inline-field-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.field--compact span {
  font-size: 0.86rem;
}

.field--wide {
  width: 100%;
}

.field--span-2 {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea,
.compact-select,
.setup-dropdown-trigger {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 23, 37, 0.96), rgba(18, 29, 46, 0.98));
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 270px;
  overflow: auto;
}

.setup-dropdown {
  position: relative;
}

.setup-dropdown-trigger {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.setup-dropdown.is-open .setup-dropdown-trigger {
  border-color: rgba(255, 203, 5, 0.76);
  box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.12);
}

.setup-dropdown-caret {
  color: var(--muted);
  font-size: 0.9rem;
}

.setup-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 38, 59, 0.98), rgba(18, 31, 48, 0.98));
  box-shadow: var(--shadow);
}

.game-option {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(43, 67, 102, 0.94), rgba(31, 49, 75, 0.96));
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  line-height: 1.2;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.game-option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.game-option.is-active {
  background: var(--accent);
  border-color: rgba(255, 226, 116, 0.86);
  color: var(--accent-ink);
  box-shadow: 0 10px 18px rgba(255, 203, 5, 0.2);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.compact-select:focus {
  border-color: rgba(255, 203, 5, 0.76);
  box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.12);
}

.toolbar {
  align-items: end;
  margin-bottom: 14px;
}

.route-list,
.log-list,
.search-results,
.route-guide-list,
.open-catch-list {
  display: grid;
  gap: 10px;
}

.route-guide-panel--compact {
  padding: 14px;
  gap: 10px;
  max-height: 620px;
  overflow: hidden;
}

.route-guide-panel--compact .board-panel-head {
  align-items: start;
}

.route-guide-panel--compact .board-panel-head>div {
  min-width: 0;
}

.route-guide-panel--compact .board-panel-head strong {
  display: block;
  margin-top: 2px;
  font-size: 0.98rem;
}

.route-guide-panel--compact .ghost-button {
  padding: 8px 10px;
}

.route-guide-panel--compact .route-guide-list {
  gap: 8px;
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}

.pokedex-panel--top {
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.route-guide-modal {
  width: min(920px, 100%);
  max-height: min(84vh, 900px);
}

.summary-pokedex .pokemon-card {
  margin-top: 2px;
}

.tracker-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.active-route-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #141920;
}

.board-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 38, 59, 0.98), rgba(17, 29, 45, 0.98));
  min-height: 220px;
  align-content: start;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 14px 28px rgba(4, 10, 18, 0.22);
}

.board-panel.is-active {
  border-color: rgba(255, 203, 5, 0.8);
  background: linear-gradient(180deg, rgba(29, 47, 72, 0.98), rgba(20, 34, 54, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(255, 203, 5, 0.14);
}

:is(.board-panel--team, .panel-title--team, .entry-target-option--team, .pokemon-add-stack__button--team) {
  --collection-title-color: #7fd0ff;
  --collection-option-color: #d8ebff;
  --collection-border-color: rgba(92, 150, 255, 0.42);
  --collection-option-border-color: rgba(92, 150, 255, 0.34);
  --collection-button-bg: rgba(92, 150, 255, 0.2);
}

:is(.board-panel--box, .panel-title--box, .entry-target-option--box, .pokemon-add-stack__button--box) {
  --collection-title-color: #8fd8a4;
  --collection-option-color: #dbf8e3;
  --collection-border-color: rgba(96, 186, 119, 0.42);
  --collection-option-border-color: rgba(96, 186, 119, 0.34);
  --collection-button-bg: rgba(96, 186, 119, 0.2);
}

:is(.board-panel--missed, .panel-title--missed, .entry-target-option--missed, .pokemon-add-stack__button--missed) {
  --collection-title-color: #ffd36d;
  --collection-option-color: #fff0ba;
  --collection-border-color: rgba(224, 186, 73, 0.44);
  --collection-option-border-color: rgba(224, 186, 73, 0.34);
  --collection-button-bg: rgba(224, 186, 73, 0.22);
}

:is(.board-panel--rip, .panel-title--rip, .entry-target-option--rip, .pokemon-add-stack__button--rip) {
  --collection-title-color: #ff9898;
  --collection-option-color: #ffe0e0;
  --collection-border-color: rgba(214, 90, 90, 0.4);
  --collection-option-border-color: rgba(214, 90, 90, 0.34);
  --collection-button-bg: rgba(214, 90, 90, 0.2);
}

.board-panel--team,
.board-panel--box,
.board-panel--missed,
.board-panel--rip {
  border-color: var(--collection-border-color);
}

.board-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title {
  display: grid;
  gap: 3px;
}

.panel-title .summary-label {
  font-weight: 700;
}

.panel-title--team .summary-label,
.panel-title--box .summary-label,
.panel-title--missed .summary-label,
.panel-title--rip .summary-label {
  color: var(--collection-title-color);
}

.entry-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.entry-list:has(.search-results--tiny) {
  overflow: visible;
}

.entry-group {
  display: inline-grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 30, 47, 0.92), rgba(14, 24, 38, 0.96));
  overflow: visible;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}

.entry-group[draggable="true"] {
  cursor: grab;
}

.entry-group--missing {
  border-color: rgba(195, 96, 96, 0.6);
  background: linear-gradient(180deg, rgba(66, 29, 35, 0.88), rgba(38, 17, 21, 0.94));
}

.entry-group:hover {
  border-color: rgba(255, 203, 5, 0.46);
}

.entry-group-head {
  display: grid;
  gap: 4px;
  padding: 0 2px 2px;
  justify-items: center;
  text-align: center;
}

.entry-group-head strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.entry-group-head small {
  color: var(--muted);
  font-size: 0.8rem;
}

.entry-group-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

.entry-group--linked .entry-group-list {
  padding: 4px;
  border: 1px solid rgba(92, 150, 255, 0.16);
  border-radius: 14px;
  background: rgba(24, 32, 42, 0.7);
}

.entry-row {
  display: inline-grid;
  place-items: center;
  gap: 3px;
  min-height: 0;
  min-width: 0;
  padding: 1px 2px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  position: relative;
  z-index: 1;
  align-content: start;
  width: fit-content;
}

.entry-row[draggable="true"] {
  cursor: pointer;
}

.entry-row:hover {
  background: rgba(36, 44, 54, 0.22);
}

.entry-row.is-drag-over {
  background: rgba(92, 150, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(128, 182, 255, 0.48);
}

.entry-row.is-editing {
  place-items: center;
  overflow: visible;
}

.entry-main,
.entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-main {
  min-width: 0;
  flex: 1 1 220px;
}

.entry-main>div {
  min-width: 0;
}

.entry-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.entry-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.type-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.type-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(44, 38, 29, 0.14);
  flex: 0 0 auto;
}

.entry-actions,
.entry-editor {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.entry-editor {
  position: static;
  z-index: 8;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.entry-mini {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding-top: 8px;
  min-width: 0;
  text-align: center;
  position: relative;
}

.entry-mini--legendary {
  --legendary-aura: rgba(255, 203, 5, 0.4);
  --legendary-aura-soft: rgba(255, 203, 5, 0.16);
  --legendary-aura-image: radial-gradient(circle at center, var(--legendary-aura, rgba(255, 203, 5, 0.42)) 0%, transparent 72%);
  --legendary-aura-clip: ellipse(46% 42% at 50% 46%);
  --legendary-aura-filter: blur(16px);
}

.entry-mini img {
  width: 95px;
  height: 95px;
  image-rendering: pixelated;
}

.entry-row--legendary .entry-mini::before {
  content: "";
  position: absolute;
  inset: 4px 6px 14px;
  border-radius: 999px;
  background: var(--legendary-aura-image);
  clip-path: var(--legendary-aura-clip);
  opacity: 0.96;
  filter: var(--legendary-aura-filter);
  pointer-events: none;
  z-index: 0;
}

.entry-row--legendary .entry-mini img,
.entry-row--legendary .entry-mini__owner,
.entry-row--legendary .entry-mini__flag {
  position: relative;
  z-index: 1;
}

.entry-row--legendary .entry-mini img {
  filter:
    drop-shadow(0 0 14px var(--legendary-aura-soft, rgba(255, 203, 5, 0.18)))
    drop-shadow(0 0 24px var(--legendary-aura, rgba(255, 203, 5, 0.42)));
}

.entry-row--legendary:hover {
  background: color-mix(in srgb, var(--legendary-aura-soft, rgba(255, 203, 5, 0.2)) 88%, rgba(36, 44, 54, 0.22));
}

.entry-row--mythic .entry-mini::after {
  content: "";
  position: absolute;
  inset: 0 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--legendary-aura, rgba(255, 203, 5, 0.34)) 78%, white);
  opacity: 0.82;
  box-shadow:
    0 0 20px var(--legendary-aura-soft, rgba(255, 203, 5, 0.18)),
    0 0 28px var(--legendary-aura, rgba(255, 203, 5, 0.18)),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 0;
}

.entry-row--legendary-normal .entry-mini--legendary {
  --legendary-aura: rgba(214, 207, 191, 0.48);
  --legendary-aura-soft: rgba(214, 207, 191, 0.18);
}

.entry-row--legendary-fire .entry-mini--legendary {
  --legendary-aura: rgba(239, 177, 138, 0.56);
  --legendary-aura-soft: rgba(239, 177, 138, 0.2);
}

.entry-row--legendary-water .entry-mini--legendary {
  --legendary-aura: rgba(169, 196, 240, 0.54);
  --legendary-aura-soft: rgba(169, 196, 240, 0.19);
}

.entry-row--legendary-electric .entry-mini--legendary {
  --legendary-aura: rgba(231, 206, 109, 0.58);
  --legendary-aura-soft: rgba(231, 206, 109, 0.22);
}

.entry-row--legendary-grass .entry-mini--legendary {
  --legendary-aura: rgba(167, 207, 170, 0.54);
  --legendary-aura-soft: rgba(167, 207, 170, 0.18);
}

.entry-row--legendary-ice .entry-mini--legendary {
  --legendary-aura: rgba(159, 212, 217, 0.56);
  --legendary-aura-soft: rgba(159, 212, 217, 0.2);
}

.entry-row--legendary-fighting .entry-mini--legendary {
  --legendary-aura: rgba(216, 163, 155, 0.56);
  --legendary-aura-soft: rgba(216, 163, 155, 0.2);
}

.entry-row--legendary-poison .entry-mini--legendary {
  --legendary-aura: rgba(199, 165, 220, 0.56);
  --legendary-aura-soft: rgba(199, 165, 220, 0.2);
}

.entry-row--legendary-ground .entry-mini--legendary {
  --legendary-aura: rgba(212, 177, 131, 0.56);
  --legendary-aura-soft: rgba(212, 177, 131, 0.2);
}

.entry-row--legendary-flying .entry-mini--legendary {
  --legendary-aura: rgba(186, 182, 234, 0.54);
  --legendary-aura-soft: rgba(186, 182, 234, 0.19);
}

.entry-row--legendary-psychic .entry-mini--legendary {
  --legendary-aura: rgba(239, 171, 193, 0.58);
  --legendary-aura-soft: rgba(239, 171, 193, 0.21);
}

.entry-row--legendary-bug .entry-mini--legendary {
  --legendary-aura: rgba(191, 209, 130, 0.56);
  --legendary-aura-soft: rgba(191, 209, 130, 0.2);
}

.entry-row--legendary-rock .entry-mini--legendary {
  --legendary-aura: rgba(204, 180, 138, 0.54);
  --legendary-aura-soft: rgba(204, 180, 138, 0.18);
}

.entry-row--legendary-ghost .entry-mini--legendary {
  --legendary-aura: rgba(183, 171, 216, 0.58);
  --legendary-aura-soft: rgba(183, 171, 216, 0.21);
}

.entry-row--legendary-dragon .entry-mini--legendary {
  --legendary-aura: rgba(172, 167, 238, 0.58);
  --legendary-aura-soft: rgba(172, 167, 238, 0.21);
}

.entry-row--legendary-dark .entry-mini--legendary {
  --legendary-aura: rgba(183, 173, 167, 0.5);
  --legendary-aura-soft: rgba(183, 173, 167, 0.18);
}

.entry-row--legendary-steel .entry-mini--legendary {
  --legendary-aura: rgba(183, 195, 204, 0.54);
  --legendary-aura-soft: rgba(183, 195, 204, 0.19);
}

.entry-row--legendary-fairy .entry-mini--legendary {
  --legendary-aura: rgba(232, 179, 207, 0.58);
  --legendary-aura-soft: rgba(232, 179, 207, 0.21);
}

.entry-mini__owner {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.entry-mini__owner-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.entry-mini--editing {
  position: relative;
}

.entry-mini__location {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 23, 29, 0.92);
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-mini__location.is-missing {
  border-color: #d97575;
  color: #ffd1d1;
}

.entry-mini__flag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d97575;
  box-shadow: 0 0 0 2px rgba(217, 117, 117, 0.16);
}

.icon-action--entry-edit {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1;
  transform: none;
}

.icon-action--entry-edit:hover {
  background: transparent;
  color: #d7e4f3;
}

.icon-action--entry-edit.is-active {
  background: transparent;
  border-color: transparent;
  color: #9fc5ff;
}

.sheet-panel--entry-edit {
  width: min(520px, 100%);
  max-height: min(92vh, 940px);
  min-height: 620px;
  padding-bottom: 22px;
}

.entry-edit-modal {
  display: grid;
  gap: 10px;
  overflow: visible;
}

.entry-edit-modal__head {
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 8px;
}

.entry-edit-modal__actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.entry-edit-modal__action-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.entry-edit-modal__action-row--secondary {
  opacity: 0.96;
}

.entry-edit-modal__body {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  overflow: visible;
  position: relative;
}

.entry-detail-card {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid rgba(92, 150, 255, 0.18);
  border-radius: 16px;
  background: rgba(19, 25, 32, 0.76);
}

.entry-detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.entry-detail-card__identity-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.entry-detail-card__head img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.entry-detail-card__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.entry-detail-card__identity strong {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.entry-detail-card__link {
  color: #9fc5ff;
  text-decoration: none;
  font-size: 0.82rem;
}

.entry-detail-card__link:hover {
  text-decoration: underline;
}

.entry-detail-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-detail-pill-wrap {
  position: relative;
}

.entry-detail-pill-wrap--location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entry-detail-pill-wrap.is-open {
  z-index: 90;
}

.entry-detail-pill {
  border: 1px solid var(--line);
  cursor: pointer;
}

.entry-detail-pill--owner {
  max-width: 180px;
}

.entry-detail-pill--location {
  max-width: 220px;
}

.entry-detail-pill--location.is-missing {
  border-color: #d97575;
  color: #ffd4d4;
}

.entry-detail-pill-clear {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #dc5b68;
  border-radius: 999px;
  background: #8f232c;
  color: #ffe2e2;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(143, 35, 44, 0.22);
}

.entry-detail-pill-clear:hover {
  background: #a42a34;
  border-color: #ef7d89;
}

.entry-detail-pill-wrap__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 140;
  min-width: 460px;
  width: max-content;
  max-width: min(760px, calc(100vw - 48px));
}

.entry-target-picker,
.entry-editor-field__panel .panel-control,
.entry-editor-field__panel .entry-owner-picker,
.entry-editor-field__panel .search-results--tiny,
.entry-detail-pill-wrap__panel .entry-owner-picker {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 23, 29, 0.99);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.entry-target-picker {
  display: grid;
  gap: 6px;
}

.entry-target-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(22, 29, 37, 0.95);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.entry-target-option--team,
.entry-target-option--box,
.entry-target-option--missed,
.entry-target-option--rip {
  color: var(--collection-option-color);
  border-color: var(--collection-option-border-color);
}

.entry-detail-card__tools {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.entry-editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.entry-editor-field.is-open {
  z-index: 30;
}

.entry-editor-field__trigger {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 23, 29, 0.78);
  color: var(--ink);
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}

.entry-editor-field.is-open .entry-editor-field__trigger {
  border-color: #5c96ff;
  background: rgba(27, 35, 48, 0.96);
}

.entry-editor-field__trigger.is-missing {
  border-color: #d97575;
}

.entry-editor-field__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-editor-field__value {
  min-width: 0;
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-editor-field__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.entry-editor-field__panel .panel-control {
  position: relative;
  overflow: visible;
}

.entry-editor-field__panel .search-results--tiny,
.entry-editor-field__panel .entry-owner-picker {
  max-height: 240px;
  overflow: auto;
}

.entry-editor-field__panel .search-results--tiny {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 140;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  margin-top: 0;
}

.entry-editor-field__panel .search-row--compact {
  min-height: 70px;
  align-content: start;
  white-space: normal;
}

.entry-editor-field__panel .search-row--compact span,
.entry-editor-field__panel .search-row--compact small {
  white-space: normal;
  overflow-wrap: anywhere;
}

.entry-editor-cause {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 2px 0;
  grid-column: 1 / -1;
}

.entry-editor-cause__options {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entry-owner-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
  min-width: 280px;
}

.entry-owner-option {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #18202a;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}

.entry-owner-option:hover {
  transform: translateY(-1px);
  border-color: #5c96ff;
  background: rgba(29, 40, 54, 0.96);
}

.entry-owner-option.is-active {
  border-color: #5c96ff;
  background: rgba(92, 150, 255, 0.16);
  box-shadow: 0 8px 16px rgba(92, 150, 255, 0.18);
}

.entry-main img {
  width: 60px;
  height: 60px;
  image-rendering: pixelated;
}

.inline-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #12171d;
}

.inline-picker input {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.inline-picker input:focus {
  box-shadow: none;
}

.target-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.target-tabs--stacked {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.target-tabs--stacked .nav-link {
  width: 100%;
  justify-content: flex-start;
}

.panel-control {
  display: grid;
  gap: 8px;
  position: relative;
  min-width: 0;
  z-index: 12;
}

.mini-field {
  display: grid;
  gap: 6px;
}

.mini-field>span {
  color: var(--muted);
  font-size: 0.88rem;
}

.route-chooser {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #18202a;
}

.route-chooser:focus-within {
  border-color: #d28b42;
  box-shadow: 0 0 0 4px rgba(185, 107, 30, 0.12);
}

.route-chooser input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f4f8fc;
  outline: none;
  box-shadow: none;
}

.route-chooser input::placeholder {
  color: rgba(226, 232, 240, 0.74);
}

.panel-control--compact {
  gap: 6px;
}

.route-chooser--compact {
  min-height: 40px;
  padding: 6px 8px;
}

.route-chooser img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.route-chip,
.info-pill {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  white-space: normal;
  overflow-wrap: anywhere;
}

.inline-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.inline-meta--missing {
  color: var(--red);
  font-weight: 600;
}

.entry-row--missing {
  border-color: #7f4a4e;
  background: #26181b;
}

.selected-pokemon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pokemon-head__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.info-pill--bst {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.info-pill--bst-base {
  border-color: rgba(156, 176, 206, 0.34);
  background: linear-gradient(180deg, rgba(36, 52, 76, 0.92), rgba(27, 39, 59, 0.95));
}

.info-pill--bst-rare {
  border-color: rgba(125, 203, 232, 0.52);
  background: linear-gradient(180deg, rgba(28, 59, 82, 0.94), rgba(23, 45, 67, 0.97));
  color: #d9f6ff;
}

.info-pill--bst-elite {
  border-color: rgba(170, 140, 255, 0.58);
  background: linear-gradient(180deg, rgba(57, 41, 95, 0.95), rgba(36, 29, 66, 0.98));
  color: #f0e8ff;
  box-shadow: 0 0 0 1px rgba(170, 140, 255, 0.14);
}

.info-pill--bst-legendary {
  border-color: rgba(255, 203, 5, 0.76);
  background: linear-gradient(135deg, rgba(83, 59, 7, 0.96), rgba(133, 87, 8, 0.95));
  color: #fff3c4;
  box-shadow:
    0 0 0 1px rgba(255, 203, 5, 0.2),
    0 0 18px rgba(255, 203, 5, 0.28);
}

.info-pill--bst-mythic {
  border-color: rgba(255, 148, 230, 0.78);
  background: linear-gradient(135deg, rgba(60, 27, 83, 0.97), rgba(112, 47, 126, 0.96), rgba(33, 68, 124, 0.95));
  color: #fff1ff;
  box-shadow:
    0 0 0 1px rgba(255, 148, 230, 0.24),
    0 0 22px rgba(190, 118, 255, 0.28),
    inset 0 0 14px rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.info-pill--bst-mythic::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.28) 46%, transparent 78%);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
}

.selected-pokemon--picker {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
}

.route-row {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #141920;
  justify-content: space-between;
}

.guide-stop,
.open-catch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 37, 58, 0.96), rgba(18, 31, 48, 0.98));
  text-align: left;
}

.guide-battle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px dashed rgba(105, 143, 194, 0.5);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 46, 68, 0.64), rgba(23, 33, 50, 0.64));
  text-align: left;
}

.route-guide-panel--compact .guide-stop,
.route-guide-panel--compact .guide-battle {
  gap: 9px;
  padding: 8px 10px;
  border-radius: 14px;
}

.route-guide-panel--compact .guide-stop__main,
.route-guide-panel--compact .guide-battle__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-guide-panel--compact .guide-stop__main strong,
.route-guide-panel--compact .guide-battle__main strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.route-guide-panel--compact .guide-stop__main small,
.route-guide-panel--compact .guide-battle__main small {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

.route-guide-panel--compact .guide-stop__meta {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-stop__clear {
  min-width: 0;
  padding: 5px 7px;
  line-height: 1;
}

.route-guide-panel--compact .guide-stop__meta img {
  width: 28px;
  height: 28px;
}

.route-guide-panel--compact .guide-stop__meta .meta-pill {
  padding: 6px 8px;
  font-size: 0.74rem;
}

.route-guide-panel--compact .guide-battle__type {
  min-width: 0;
  padding: 6px 8px;
  gap: 6px;
  font-size: 0.68rem;
}

.route-guide-panel--compact .guide-battle__sprite {
  width: 18px;
  height: 18px;
}

.route-guide-panel--compact .guide-battle__sprite img {
  width: 14px;
  height: 14px;
}

.route-guide-panel--compact .guide-battle__glyph {
  font-size: 0.78rem;
}

.route-guide-panel--compact .guide-battle__cap {
  min-width: 74px;
  padding: 7px 9px;
  font-size: 0.82rem;
  line-height: 1.1;
}

.guide-battle--gym-leader {
  border-color: #d28b42;
}

.guide-battle--rival {
  border-color: #5c96ff;
}

.guide-battle--evil-team {
  border-color: #c86e6e;
}

.guide-battle--elite-four {
  border-color: #8b7ae8;
}

.guide-battle__type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 68, 102, 0.9), rgba(30, 49, 74, 0.92));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-battle__sprite {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex: 0 0 auto;
}

.guide-battle__sprite img {
  width: 16px;
  height: 16px;
}

.guide-battle__glyph {
  font-size: 0.9rem;
  line-height: 1;
}

.guide-battle__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guide-battle__main small {
  color: var(--muted);
}

.guide-battle__cap {
  min-width: 88px;
  padding: 9px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffcb05, #ffb400);
  color: #24365a;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 22px rgba(255, 203, 5, 0.24);
}

.guide-stop:hover,
.open-catch-row:hover,
.guide-battle:hover {
  border-color: rgba(255, 203, 5, 0.42);
  background: linear-gradient(180deg, rgba(30, 49, 74, 0.98), rgba(21, 36, 57, 0.98));
}

.guide-stop.is-active {
  border-color: rgba(255, 203, 5, 0.7);
  background: linear-gradient(180deg, rgba(33, 53, 81, 0.98), rgba(24, 41, 63, 0.98));
  box-shadow: 0 12px 24px rgba(255, 203, 5, 0.12);
}

.guide-stop__index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.guide-stop__main,
.open-catch-row__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guide-stop__main small,
.open-catch-row__main small {
  color: var(--muted);
}

.guide-stop__meta,
.open-catch-row__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guide-stop__meta img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.open-catch-row__sprites {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-row.is-active {
  border-color: #5c96ff;
  background: #1b2330;
  box-shadow: 0 12px 24px rgba(34, 86, 170, 0.18);
}

.route-main {
  min-width: 180px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.route-title {
  font-weight: 700;
}

.route-species {
  display: flex;
  flex: 1;
  gap: 8px;
  flex-wrap: wrap;
}

.species-pill,
.search-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.species-pill img,
.search-row img,
.pokemon-head img,
.selected-pokemon img,
.route-selection img {
  image-rendering: pixelated;
}

.species-pill img,
.search-row img {
  width: 28px;
  height: 28px;
}

.selected-pokemon img,
.route-selection img {
  width: 36px;
  height: 36px;
}

.search-results {
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.pokedex-panel .search-results {
  max-height: 288px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  background: rgba(20, 25, 32, 0.72);
}

.search-results--compact {
  max-height: 280px;
}

.search-results--tiny {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 220px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 34px rgba(44, 38, 29, 0.14);
  overflow: auto;
}

.search-row {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: #141920;
  gap: 12px;
}

.search-row.is-active {
  border-color: #5c96ff;
  background: #1b2330;
  box-shadow: 0 10px 18px rgba(34, 86, 170, 0.18);
}

.search-row__details {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.search-row__dex {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.search-row strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.pokedex-panel .search-row img {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
}

.search-row--compact {
  padding: 8px 10px;
  min-height: 62px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
}

.search-row--compact small {
  color: var(--muted);
}

.search-row--missing {
  border-style: dashed;
  border-color: rgba(255, 203, 5, 0.38);
  background: linear-gradient(180deg, rgba(57, 45, 12, 0.9), rgba(40, 31, 9, 0.94));
}

.search-row--missing.is-active {
  border-color: rgba(255, 203, 5, 0.74);
  box-shadow: 0 0 0 1px rgba(255, 203, 5, 0.16);
}

.route-selection {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  flex-wrap: wrap;
}

.route-selection--active {
  justify-content: space-between;
  flex-wrap: wrap;
}

.route-peers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.peer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1a2230;
}

.peer-chip small {
  color: var(--muted);
}

.open-catch-row .peer-chip img {
  width: 30px;
  height: 30px;
}

.empty-ball {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d7ccbb;
  box-shadow: inset 0 0 0 4px #f5eee2;
}

.empty-ball--small {
  width: 14px;
  height: 14px;
  box-shadow: inset 0 0 0 3px #f5eee2;
}

.empty-ball--large {
  width: 72px;
  height: 72px;
  box-shadow: inset 0 0 0 10px #f5eee2;
}

.pokemon-card {
  display: grid;
  gap: 14px;
  padding-top: 8px;
  animation: fade-slide-in var(--motion-medium) var(--motion-ease);
}

.pokemon-head {
  align-items: center;
  width: 100%;
}

.pokemon-head__content {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.pokemon-add-stack {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #151b23;
  flex: 0 0 auto;
}

.pokemon-add-stack__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.pokemon-add-stack__button:last-child {
  border-bottom: 0;
}

.pokemon-add-stack__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pokemon-add-stack__button:not(:disabled):hover {
  filter: brightness(1.08);
}

.pokemon-add-stack__button.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.pokemon-add-stack__button--team,
.pokemon-add-stack__button--box,
.pokemon-add-stack__button--missed,
.pokemon-add-stack__button--rip {
  background: var(--collection-button-bg);
  color: var(--collection-option-color);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.66);
  z-index: 90;
}

.sheet-panel {
  width: min(880px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 40, 62, 0.98), rgba(18, 31, 48, 0.99));
  box-shadow: var(--shadow);
}

.sheet-panel.sheet-panel--entry-edit {
  overflow: visible;
}

.sheet-panel__head {
  position: sticky;
  top: -20px;
  z-index: 2;
  margin: -20px -20px 12px;
  padding: 16px 20px 12px;
  background: linear-gradient(180deg, rgba(28, 46, 72, 0.99), rgba(22, 36, 56, 0.97));
  border-bottom: 1px solid rgba(93, 132, 186, 0.46);
}

.sheet-close-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.sheet-close-button:hover {
  transform: translateY(-1px);
  border-color: #5c96ff;
  background: #2f3945;
}

.sheet-close-button:active {
  transform: translateY(0);
}

.register-modal {
  width: min(460px, 100%);
  max-height: none;
  overflow: visible;
}

.credits-modal {
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
}

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

.credits-modal__hint {
  margin: 6px 0 0;
  max-width: 56ch;
  line-height: 1.45;
}

.credits-modal__body {
  display: grid;
  gap: 14px;
}

.credits-modal__thanks {
  margin: 0;
  line-height: 1.5;
}

.credits-list {
  display: grid;
  gap: 10px;
}

.credits-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 25, 32, 0.76);
}

.credits-entry__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.credits-entry__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.credits-entry__link {
  flex: 0 0 auto;
  white-space: nowrap;
}

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

.register-modal__hint {
  margin: 6px 0 0;
  max-width: 34ch;
  line-height: 1.45;
}

.register-modal__body {
  display: grid;
  gap: 14px;
}

.register-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 140;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(25, 43, 67, 0.98), rgba(18, 31, 48, 0.98));
  box-shadow: var(--shadow);
  color: var(--ink);
}

.toast--success {
  border-color: rgba(96, 186, 119, 0.5);
  background: rgba(25, 52, 36, 0.96);
  color: #dff7e5;
}

.toast--error {
  border-color: rgba(214, 90, 90, 0.5);
  background: rgba(68, 36, 38, 0.97);
  color: #ffe0e0;
}

.toast__message {
  display: block;
  line-height: 1.4;
}

.pokemon-card[draggable="true"] {
  cursor: grab;
}

.pokemon-head img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.pokemon-head h2 {
  margin: 2px 0 8px;
  font-size: 1.55rem;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pokemon-head__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.pokemon-head__link-icon {
  flex: 0 0 auto;
  font-size: 0.62em;
  line-height: 1;
  color: var(--muted);
  opacity: 0.82;
}

.pokemon-head__link:hover {
  color: #9fc5ff;
  text-decoration: underline;
}

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

.pokemon-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.type-matchups {
  display: grid;
  gap: 8px;
}

.type-matchups--compact {
  gap: 4px;
}

.type-matchups--collapsed {
  width: 100%;
}

.type-matchups__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  list-style: none;
  user-select: none;
}

.type-matchups__arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.type-matchups--collapsed[open] .type-matchups__arrow {
  transform: rotate(90deg);
}

.type-matchups__summary::-webkit-details-marker {
  display: none;
}

.type-matchups__summary-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.type-matchups__summary-meta {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.type-matchups__body {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.type-matchups__group {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.type-matchups__marker {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
  flex: 0 0 auto;
}

.type-matchups__group--weak .type-matchups__marker {
  color: #efb18a;
}

.type-matchups__group--resist .type-matchups__marker {
  color: #9fd0b3;
}

.type-matchups__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.type-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid #394352;
  background: #2a313b;
  color: #edf2f7;
}

.type-icon-chip--mini {
  padding: 4px 6px;
  gap: 5px;
}

.type-icon-chip--weak {
  box-shadow: inset 0 0 0 1px rgba(154, 67, 25, 0.18);
}

.type-icon-chip--resist {
  box-shadow: inset 0 0 0 1px rgba(53, 106, 57, 0.18);
}

.type-icon-chip__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.type-icon-chip--mini .type-icon-chip__icon {
  width: 16px;
  height: 16px;
}

.type-icon-chip__value {
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.type-pill {
  padding: 7px 12px;
  background: #2a313b;
  color: #edf2f7;
  border: 1px solid #394352;
}

.type-pill--normal {
  background: #ebe6dc;
  color: #625a4d;
  border-color: #d6cfbf;
}

.type-pill--fire {
  background: #fde1d2;
  color: #9a4319;
  border-color: #efb18a;
}

.type-pill--water {
  background: #dbe8ff;
  color: #2959a3;
  border-color: #a9c4f0;
}

.type-pill--electric {
  background: #fff0b8;
  color: #886900;
  border-color: #e7ce6d;
}

.type-pill--grass {
  background: #dcefd8;
  color: #356a39;
  border-color: #a7cfaa;
}

.type-pill--ice {
  background: #dbf5f5;
  color: #2f6f73;
  border-color: #9fd4d9;
}

.type-pill--fighting {
  background: #f2d5cf;
  color: #89362f;
  border-color: #d8a39b;
}

.type-pill--poison {
  background: #eddcf6;
  color: #6f3f88;
  border-color: #c7a5dc;
}

.type-pill--ground {
  background: #f1e0c8;
  color: #825c2d;
  border-color: #d4b183;
}

.type-pill--flying {
  background: #e5e3fb;
  color: #5650a1;
  border-color: #bab6ea;
}

.type-pill--psychic {
  background: #ffd9e6;
  color: #a13d63;
  border-color: #efabc1;
}

.type-pill--bug {
  background: #e8f0c9;
  color: #5a7122;
  border-color: #bfd182;
}

.type-pill--rock {
  background: #e9dfc7;
  color: #6c5735;
  border-color: #ccb48a;
}

.type-pill--ghost {
  background: #dfdaef;
  color: #554886;
  border-color: #b7abd8;
}

.type-pill--dragon {
  background: #ddd9ff;
  color: #433ea5;
  border-color: #aca7ee;
}

.type-pill--dark {
  background: #ddd7d4;
  color: #433b36;
  border-color: #b7ada7;
}

.type-pill--steel {
  background: #e1e6eb;
  color: #4f6170;
  border-color: #b7c3cc;
}

.type-pill--fairy {
  background: #fbe1ef;
  color: #9a4f76;
  border-color: #e8b3cf;
}

.type-dot--normal {
  background: #b9ae98;
}

.type-dot--fire {
  background: #ef7f43;
}

.type-dot--water {
  background: #5d8de5;
}

.type-dot--electric {
  background: #f0c63a;
}

.type-dot--grass {
  background: #78bc5a;
}

.type-dot--ice {
  background: #7dcfd0;
}

.type-dot--fighting {
  background: #b85b4d;
}

.type-dot--poison {
  background: #9b6ad6;
}

.type-dot--ground {
  background: #c6a15b;
}

.type-dot--flying {
  background: #8ca4ef;
}

.type-dot--psychic {
  background: #ee6f9b;
}

.type-dot--bug {
  background: #9db33c;
}

.type-dot--rock {
  background: #b39b57;
}

.type-dot--ghost {
  background: #6f62b3;
}

.type-dot--dragon {
  background: #5e78dc;
}

.type-dot--dark {
  background: #6f5b4b;
}

.type-dot--steel {
  background: #8f9fb0;
}

.type-dot--fairy {
  background: #df8db4;
}

.note-form {
  display: grid;
  gap: 12px;
  margin: 6px 0 18px;
}

.auth-pill {
  max-width: 220px;
}

.log-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.log-row p {
  margin: 8px 0 0;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: auto;
  padding: 10px 4px 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-footer__link--icon {
  font-size: 1.05rem;
}

.site-footer__button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.error-text {
  margin: 0;
  color: var(--red);
}

.nav-link--small,
.ghost-button--tiny,
.ghost-button--small {
  padding: 8px 10px;
}

.ghost-button--danger {
  color: #ffd7d7;
  background: rgba(143, 35, 44, 0.2);
  box-shadow: inset 0 0 0 1px rgba(220, 91, 104, 0.32);
}

.ghost-button--danger:hover {
  background: rgba(143, 35, 44, 0.34);
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #12171d;
  cursor: pointer;
}

.icon-action--edit {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #31548d;
}

.icon-action--remove {
  color: #ffd9d9;
  background: #8f232c;
  border-color: #dc5b68;
  box-shadow: 0 10px 18px rgba(143, 35, 44, 0.28);
}

.primary-button--small {
  padding: 8px 12px;
}

.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  color: currentColor;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(9, 16, 27, 0.45));
}

.sprite {
  image-rendering: pixelated;
}

.sprite--dupe {
  filter: sepia(0.6) saturate(1.8) hue-rotate(-18deg);
}

.sprite--muted {
  filter: grayscale(1) opacity(0.7);
}

.meta-pill--dupe {
  background: var(--red-soft);
  border-color: #e1b7b3;
  color: var(--red);
}

[data-drop-target] {
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

[data-drop-target].is-drag-over {
  border-color: #5c96ff;
  background: #1b2330;
  transform: translateY(-1px);
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}

.screen-state {
  min-height: 100vh;
  font-size: 1.1rem;
}

@media (max-width: 1080px) {

  .layout-grid,
  .setup-grid,
  .tracker-board,
  .collections-grid {
    grid-template-columns: 1fr;
  }

  .collections-grid {
    grid-template-areas:
      "team"
      "box"
      "missed"
      "rip";
  }

  .topbar,
  .summary-bar,
  .toolbar,
  .board-panel-head,
  .route-row,
  .route-actions,
  .session-strip {
    align-items: start;
    flex-direction: column;
  }

  .field--span-2 {
    grid-column: auto;
  }
}

@media (max-width: 720px) {

  .route-guide-launcher {
    top: auto;
    bottom: 18px;
    right: 12px;
    transform: none;
    border-radius: 16px;
  }

  .shell,
  .setup-shell {
    padding: 16px;
  }

  .nav-strip,
  .setup-topbar,
  .setup-topbar-actions,
  .topbar-actions,
  .mode-row,
  .action-row,
  .target-tabs {
    width: 100%;
  }

  .setup-topbar {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .nav-link,
  .ghost-button,
  .primary-button {
    width: 100%;
    justify-content: center;
  }

  .inline-field-action {
    flex-direction: column;
  }

  .site-footer,
  .site-footer__links,
  .credits-entry,
  .user-runs-head,
  .user-run-card,
  .user-run-card__meta,
  .user-run-card__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-run-card__actions {
    width: 100%;
  }

  .game-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .game-picker {
    grid-template-columns: 1fr;
  }
}
