:root {
  color-scheme: dark;
  background-color: #060913;
}

body {
  background-color: #060913;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glass-effect {
  background: rgba(21, 30, 50, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
  background: linear-gradient(to right, #ffffff, #00ff88);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-container:focus-within {
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.6);
}

.morshu-left,
.morshu-right {
  position: fixed;
  top: 72%;
  width: 300px;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.morshu-left {
  left: 25px;
  transform: translateY(-50%);
}

.morshu-right {
  right: 25px;
  transform: translateY(-50%) scaleX(-1);
}

@media (max-width: 640px) {
  nav .h-20 {
    height: 4rem;
  }

  main > section:first-of-type {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  main > section:first-of-type h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.1;
  }

  main > section:first-of-type > p {
    margin-bottom: 1.75rem;
    font-size: 1rem;
  }

  #searchForm {
    padding: 0.5rem;
  }

  #searchForm button {
    min-height: 3rem;
    padding: 0.7rem 1rem;
  }

  #resultsSection {
    padding-bottom: 3rem;
  }

  #resultsSection h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  #resultsSection > div:first-child {
    align-items: stretch;
  }

  #resultsSection > div:first-child > label {
    justify-content: space-between;
  }

  #resultsSection > div:first-child select {
    min-height: 2.75rem;
  }

  #resultsSection .overflow-x-auto {
    overflow: visible;
  }

  #resultsSection table {
    min-width: 0;
  }

  #resultsSection thead {
    display: none;
  }

  #stationList {
    display: grid;
    gap: 0.75rem;
  }

  #stationList tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    background: rgba(21, 30, 50, 0.58);
  }

  #stationList tr > th,
  #stationList tr > td {
    min-width: 0;
    padding: 0.75rem 0.45rem;
    white-space: normal;
  }

  #stationList tr > th {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #stationList tr > td {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    font-size: 0.82rem;
  }

  #stationList tr > td::before {
    color: #9ca3af;
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
  }

  #stationList tr > td:last-child {
    grid-column: 1 / -1;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  #stationList tr > td:last-child a {
    overflow-wrap: anywhere;
  }

  footer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
