@media (max-width: 760px) {
  .topbar {
    top: 62px;
    height: 48px;
    padding-inline: 14px;
  }

  .mode-switch button {
    padding: 7px 9px;
    font-size: 7px;
    letter-spacing: .08em;
  }

  .day-toggle {
    top: 72px;
    right: 16px;
    font-size: 7px;
  }

  .edge-title {
    top: 126px;
    left: 16px;
    max-width: 72vw;
  }

  .edge-title .kicker {
    margin-bottom: 7px;
    font-size: 7px;
    letter-spacing: .2em;
  }

  .edge-title h1 {
    font-size: clamp(34px, 9vw, 42px);
    line-height: .91;
  }

  .edge-title p {
    max-width: 225px;
    margin-top: 8px;
    font-size: 7px;
    line-height: 1.45;
    letter-spacing: .1em;
  }

  .selected {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(29svh, 230px);
    overflow: auto;
    padding: 13px 14px 12px;
    background: var(--panel);
    backdrop-filter: blur(16px);
  }

  .selected-head {
    gap: 9px;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .reset-view {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 3px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 6px;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .index {
    padding-top: 0;
    font-size: 8px;
  }

  .selected h2 {
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.08;
    min-width: 0;
    flex: 1 1 65%;
    overflow-wrap: anywhere;
  }

  .selected-meta {
    gap: 8px 12px;
    padding-top: 9px;
  }

  .meta-item span {
    margin-bottom: 3px;
    font-size: 7px;
  }

  .meta-item b {
    font-size: 8px;
    letter-spacing: .07em;
  }

  .selected-meta .meta-item:last-child {
    gap: 8px;
    padding-top: 7px;
  }

  .hint {
    right: 14px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 14px;
    display: flex;
    justify-content: center;
    gap: 0;
    font-size: 0;
    letter-spacing: .08em;
  }

  .hint span:not(:first-child) {
    display: none;
  }

  .hint span:first-child i {
    display: none;
  }

  .hint span:first-child::after {
    content: "Tap a planet or title to explore";
    font-size: 7px;
  }

  #app #mobileProjectPicker {
    position: absolute;
    right: 12px;
    bottom: max(42px, calc(env(safe-area-inset-bottom) + 34px));
    left: 12px;
    display: flex !important;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .mobile-project-picker::-webkit-scrollbar {
    display: none;
  }

  .mobile-project-choice {
    display: flex;
    min-width: 0;
    max-width: min(62vw, 230px);
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--fg);
    text-align: left;
    backdrop-filter: blur(12px);
  }

  .mobile-project-number {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .1em;
  }

  .mobile-project-title {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #app.has-selection #mobileProjectPicker,
  #app:has(.selected:not(.hidden)) #mobileProjectPicker {
    display: none !important;
  }

  #app:has(.selected:not(.hidden)) .hint {
    display: none;
  }

  .cursor-ring,
  .cursor-dot {
    display: none;
  }
}
@media (max-width: 390px) {
  .edge-title {
    top: 126px;
    max-width: 70vw;
  }

  .edge-title h1 {
    font-size: 34px;
  }

  .edge-title p {
    max-width: 190px;
    font-size: 6.5px;
  }

  .selected-meta .meta-item:last-child {
    display: none;
  }

  #app:has(.selected:not(.hidden)) .hint {
    bottom: calc(min(29svh, 230px) + 20px + env(safe-area-inset-bottom));
  }
}
