@font-face {
  font-family: "Fink Heavy";
  src: url("data/fonts/fink-heavy.woff") format("woff"),
    url("data/fonts/fink-heavy.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1f1b14;
  --ink-soft: #5b5142;
  --paper: #fff6e4;
  --cream: #f6e6c9;
  --leaf: #5c8a6e;
  --sea: #377a75;
  --sun: #f2c17b;
  --coral: #e58b6b;
  --glass: rgba(255, 255, 255, 0.8);
  --border: rgba(31, 27, 20, 0.12);
  --seasonality-active: #e5d3a3;
  --seasonality-active-0: rgba(229, 211, 163, 0);
  --seasonality-active-70: rgba(229, 211, 163, 0.7);
  --seasonality-active-80: rgba(229, 211, 163, 0.8);
  --seasonality-current: #c24b44;
  --detail-label-availability: rgba(196, 225, 177, 0.65);
  --detail-label-availability-clear: rgba(196, 225, 177, 0);
  --detail-label-availability-ink: #2f4f3d;
  --detail-label-habitat: rgba(153, 198, 170, 0.55);
  --detail-label-habitat-clear: rgba(153, 198, 170, 0);
  --detail-label-habitat-ink: #2f4f3d;
  --detail-label-value: rgba(242, 193, 123, 0.55);
  --detail-label-value-clear: rgba(242, 193, 123, 0);
  --detail-label-value-ink: #6b4a2b;
  --shadow: 0 16px 28px rgba(31, 27, 20, 0.12);
  --radius: 18px;
  --page-bg: linear-gradient(140deg, #fff3d2 0%, #f4e2cb 50%, #d9efe2 100%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: -30% -10% auto;
  height: 320px;
  background: radial-gradient(circle at 20% 20%, rgba(242, 193, 123, 0.5), transparent 55%),
    radial-gradient(circle at 70% 0%, rgba(55, 122, 117, 0.35), transparent 60%),
    radial-gradient(circle at 50% 70%, rgba(229, 139, 107, 0.35), transparent 70%);
  filter: blur(12px);
  opacity: 0.85;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(31, 27, 20, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.2;
  pointer-events: none;
  z-index: -3;
}

h1,
h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: start;
  padding: 36px 6vw 18px;
}

.topbar-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.brand-title {
  font-family: "Fink Heavy", "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
  color: #8fcff8;
  -webkit-text-stroke: 1px rgba(31, 27, 20, 0.35);
  text-stroke: 1px rgba(31, 27, 20, 0.35);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.top-summary {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.progress {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 12px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.progress-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-caught-icon {
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

.availability-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-left: auto;
  justify-content: flex-end;
  --control-height: 36px;
}

.availability-control {
  display: grid;
  gap: 8px;
  align-items: center;
}

.availability-control .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.select-wrap.compact select {
  padding: 8px 10px;
  font-size: 0.85rem;
  height: var(--control-height);
}

.select-wrap.compact {
  min-width: 120px;
}

.segmented-mini .segmented-btn {
  height: var(--control-height);
  padding: 0 12px;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
}

.segmented-mini .segmented-btn:hover {
  border-color: rgba(31, 27, 20, 0.35);
}

.now-btn {
  align-self: end;
  height: var(--control-height);
  padding: 0 14px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
}

.now-btn.needs-sync {
  background: var(--seasonality-current);
  color: var(--paper);
  border-color: rgba(194, 75, 68, 0.55);
}

.now-btn.needs-sync:hover {
  border-color: rgba(194, 75, 68, 0.75);
}

.divider {
  margin: 0 6px;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 27, 20, 0.12);
  overflow: hidden;
  position: relative;
}

.progress-bar span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--leaf), var(--sun));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

.progress-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.progress-icon {
  width: 20px;
  height: 20px;
}

.progress-split strong {
  color: var(--ink);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--coral);
  color: #fff;
  touch-action: manipulation;
  font-family: inherit;
}

.btn.primary {
  box-shadow: 0 10px 18px rgba(229, 139, 107, 0.3);
}

.btn.ghost {
  background: rgba(31, 27, 20, 0.08);
  color: var(--ink);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  padding: 0 6vw 60px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.type-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.type-bar .segmented {
  justify-content: flex-start;
}

.type-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.type-bar-divider {
  width: 1px;
  height: 28px;
  background: rgba(31, 27, 20, 0.18);
  align-self: center;
}

.availability-filter {
  display: grid;
  gap: 6px;
}

.availability-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  color: var(--ink-soft);
  font-weight: 600;
}

@media (min-width: 901px) {
  .availability-filter .segmented-btn {
    height: var(--control-height);
    padding: 0 12px;
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
  }
}

.side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.search-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.search-card label {
  font-weight: 600;
  color: var(--ink-soft);
}

.search-card .search {
  display: grid;
  gap: 8px;
}

.toolbar {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 12px;
}

.toolbar label {
  font-weight: 600;
  color: var(--ink-soft);
}

.search input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 20, 0.18);
  background: #fffaf0;
  font-size: 0.95rem;
}

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

.segmented-icons .segmented-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.segmented-icons .segmented-btn img {
  width: 20px;
  height: 20px;
}

.segmented-btn {
  border: 1px solid transparent;
  background: rgba(31, 27, 20, 0.08);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  touch-action: manipulation;
  font-family: inherit;
}

.segmented-btn.active {
  background: var(--sun);
  color: #5a3b12;
  border-color: rgba(229, 139, 107, 0.3);
}

.segmented-btn:hover {
  border-color: rgba(229, 139, 107, 0.4);
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters {
  display: none;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  gap: 14px;
}

.filters.open {
  display: grid;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: var(--ink-soft);
}

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

.select-wrap {
  position: relative;
  flex: 1;
}

.select-wrap select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 20, 0.18);
  background: #fffaf0;
  font-weight: 600;
}

.select-label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--paper);
  padding: 0 6px;
  font-size: 11px;
  color: var(--ink-soft);
}

.range-wrap {
  flex: 1;
  display: grid;
  gap: 6px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.board {
  display: grid;
  gap: 12px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
}

.results-count {
  font-weight: 700;
  color: var(--ink);
}

.sort-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: auto;
}

.sort-inline .select-wrap {
  min-width: 160px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 110px));
  gap: 8px;
  justify-content: start;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  display: block;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  contain: layout paint;
}

.card.is-hidden {
  display: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(31, 27, 20, 0.16);
}

.card.long-press-active {
  animation: longPressPulse 0.32s ease;
}

.card:focus-visible {
  outline: 2px solid rgba(55, 122, 117, 0.65);
  outline-offset: 2px;
}

.card:focus {
  outline: 2px solid rgba(55, 122, 117, 0.65);
  outline-offset: 2px;
}

.card.caught {
  border-color: rgba(55, 122, 117, 0.5);
}

@keyframes longPressPulse {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
  50% {
    transform: scale(0.97);
    box-shadow: 0 12px 22px rgba(31, 27, 20, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
}

.card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(242, 193, 123, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-media picture {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
  width: 80%;
  height: 80%;
  max-width: 82px;
  max-height: 82px;
  object-fit: contain;
  display: block;
}

.card-caption {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 246, 228, 0.92);
  box-shadow: 0 4px 8px rgba(31, 27, 20, 0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  will-change: opacity, transform;
  pointer-events: none;
  z-index: 1;
}

.card:hover .card-caption,
.card:focus-visible .card-caption,
.card:focus-within .card-caption {
  opacity: 1;
  transform: translateY(0);
}


.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card-tags {
  display: none;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  background: rgba(31, 27, 20, 0.08);
  color: var(--ink);
}

.chip.now {
  background: rgba(55, 122, 117, 0.2);
  color: var(--sea);
}

.caught-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: manipulation;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.caught-toggle img {
  width: 16px;
  height: 16px;
  opacity: 0.35;
}

.caught-toggle.active {
  background: var(--sun);
}

.caught-toggle.active img {
  opacity: 0.9;
}

.caught-toggle:hover {
  transform: scale(1.05);
  background: rgba(242, 193, 123, 0.4);
  box-shadow: 0 6px 12px rgba(31, 27, 20, 0.18);
}

.caught-toggle:focus-visible {
  outline: 2px solid rgba(229, 139, 107, 0.7);
  outline-offset: 2px;
}

.detail {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 24px;
  height: fit-content;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.detail-type {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

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

.detail.is-empty .detail-actions {
  display: none;
}

.caught-toggle.large {
  position: static;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.caught-toggle.large img {
  width: 22px;
  height: 22px;
}

.icon-btn {
  border: none;
  background: rgba(31, 27, 20, 0.1);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.detail-body {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.detail-image-frame {
  background: rgba(55, 122, 117, 0.12);
  border-radius: 14px;
  padding: 10px;
}

.detail-hero img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.detail-hero .detail-image {
  opacity: 0;
  transition: opacity 180ms ease;
}

.detail-hero .detail-image.is-loaded {
  opacity: 1;
}

.detail-hero {
  display: grid;
  gap: 6px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.availability-row {
  margin-top: 8px;
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  padding: 0 4px;
  border-radius: 3px;
  background-image: linear-gradient(
    110deg,
    rgba(196, 225, 177, 0) 0%,
    rgba(196, 225, 177, 0.65) 12%,
    rgba(196, 225, 177, 0.65) 88%,
    rgba(196, 225, 177, 0) 100%
  );
  background-size: 100% 60%;
  background-position: 0 80%;
  background-repeat: no-repeat;
  color: #2f4f3d;
  font-weight: 600;
  line-height: 1.3;
}

.catch-phrase {
  margin: 0;
  padding: 2px 0;
  font-style: italic;
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--ink-soft);
  text-align: center;
}

.catch-phrase::before,
.catch-phrase::after {
  content: "\"";
}

.detail-grid {
  display: grid;
  gap: 10px;
  --detail-label-accent: var(--detail-label-availability);
  --detail-label-accent-clear: var(--detail-label-availability-clear);
  --detail-label-ink: var(--detail-label-availability-ink);
}

.detail-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.detail-grid .detail-seasonality {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  justify-items: start;
}

.detail-grid .detail-seasonality .detail-label {
  width: fit-content;
}

.detail-grid .detail-active-hours {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  justify-items: stretch;
}

.detail-grid .detail-active-hours .detail-label {
  width: fit-content;
}

.detail-row--availability {
  --detail-label-accent: var(--detail-label-availability);
  --detail-label-accent-clear: var(--detail-label-availability-clear);
  --detail-label-ink: var(--detail-label-availability-ink);
}

.detail-row--habitat {
  --detail-label-accent: var(--detail-label-habitat);
  --detail-label-accent-clear: var(--detail-label-habitat-clear);
  --detail-label-ink: var(--detail-label-habitat-ink);
}

.detail-row--value {
  --detail-label-accent: var(--detail-label-value);
  --detail-label-accent-clear: var(--detail-label-value-clear);
  --detail-label-ink: var(--detail-label-value-ink);
}

.detail-grid .detail-label {
  color: var(--detail-label-ink);
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  padding: 0 3px;
  border-radius: 3px;
  background-image: linear-gradient(
    110deg,
    var(--detail-label-accent-clear) 0%,
    var(--detail-label-accent) 12%,
    var(--detail-label-accent) 88%,
    var(--detail-label-accent-clear) 100%
  );
  background-size: 100% 60%;
  background-position: 0 80%;
  background-repeat: no-repeat;
}

.detail-grid strong {
  color: var(--ink-soft);
}

.rarity-stars {
  color: #c27b3e;
  letter-spacing: 1px;
}

.seasonality-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid rgba(31, 27, 20, 0.14);
}

.seasonality-cell {
  text-align: center;
  font-size: 0.72rem;
  padding: 4px 0;
  border: 1px solid rgba(31, 27, 20, 0.12);
  color: var(--ink-soft);
  font-weight: 600;
  position: relative;
}

.seasonality-cell.is-current {
  z-index: 1;
}

.seasonality-cell.is-current::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid rgba(194, 75, 68, 0.55);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(194, 75, 68, 0.18);
  pointer-events: none;
}

.seasonality-text {
  display: block;
  width: 100%;
  padding: 4px 0;
  border-radius: 3px;
}

.seasonality-text.is-active {
  background-image: linear-gradient(
    110deg,
    var(--seasonality-active-0) 0%,
    var(--seasonality-active-70) 12%,
    var(--seasonality-active-70) 88%,
    var(--seasonality-active-0) 100%
  );
  background-size: 94% 92%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  color: #2f4f3d;
}

.active-hours-timeline {
  position: relative;
  width: 100%;
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
}

.active-hours-labels {
  position: relative;
  display: block;
  height: 18px;
  width: 100%;
  font-size: 0.65rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.active-hours-labels .hour-label {
  position: absolute;
  left: var(--pos);
  transform: translateX(0);
  white-space: nowrap;
}

.active-hours-labels .hour-label.edge-start {
  transform: translateX(0);
}


.active-hours-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  width: 100%;
  margin-top: 2px;
}

.active-hours-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.active-hours-timeline:hover .active-hours-caption {
  opacity: 1;
  transform: translateY(0);
}

.active-hours-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(31, 27, 20, 0.35);
  z-index: 0;
}

.active-range {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: var(--start);
  width: var(--width);
  border-radius: 6px;
  background-image: linear-gradient(
    110deg,
    var(--seasonality-active-0) 0%,
    var(--seasonality-active-80) 12%,
    var(--seasonality-active-80) 88%,
    var(--seasonality-active-0) 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
}

.time-indicator {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: var(--pos);
  width: 2px;
  background: rgba(194, 75, 68, 0.65);
  box-shadow: 0 0 0 1px rgba(194, 75, 68, 0.2);
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 3;
}

.hour-tick {
  position: absolute;
  left: var(--pos);
  bottom: 0;
  width: 1px;
  background: rgba(31, 27, 20, 0.45);
  transform: translateX(-50%);
  z-index: 2;
}

.hour-tick.minor {
  height: 6px;
  opacity: 0.6;
}

.hour-tick.mid {
  height: 9px;
}

.hour-tick.major {
  height: 12px;
}

.price-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bells-icon {
  width: 18px;
  height: 18px;
}

.detail-empty {
  color: var(--ink-soft);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 20, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: none;
  z-index: 10;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1101px) {
  .topbar {
    overflow: visible;
  }

  .topbar-aside {
    position: relative;
  }

  .topbar-aside .search-card {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 25;
  }

  .side-panel {
    padding-top: var(--search-offset, 0px);
  }
}

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

  .top-summary {
    justify-self: stretch;
  }

  .availability-bar {
    margin-left: 0;
    justify-content: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.detail-open {
    overflow: hidden;
  }

  .type-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .type-bar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 27, 20, 0.18);
    margin-left: 0;
    flex-wrap: nowrap;
  }

  .type-bar-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(31, 27, 20, 0.18);
  }

  .type-bar .segmented,
  .type-bar-actions .segmented {
    flex: 1 1 100%;
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segmented .segmented-btn {
    flex: 1 1 0;
    justify-content: center;
  }


  .grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    justify-content: stretch;
  }

  .card .caught-toggle {
    display: none;
  }

  .card,
  .card picture,
  .card img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .card img {
    -webkit-user-drag: none;
  }

  .caught-toggle {
    width: 36px;
    height: 36px;
  }

  .caught-toggle img {
    width: 18px;
    height: 18px;
  }

  .detail {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    max-height: 80vh;
    overflow: auto;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    z-index: 20;
  }

  .detail.active {
    transform: translateY(0%);
  }

  .overlay {
    display: block;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 30px 6vw 18px;
  }

  .progress-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
  }

  .progress-item {
    justify-content: center;
  }
}
