@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@500;700&family=Noto+Sans+TC:wght@400;500;700;900&display=swap");
@import url("./tokens.css");

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

a {
  color: var(--coral-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 74px; /* space for fixed bottom nav */
}

/* Content that reads as a single column regardless of screen size — forms,
   settings, simple lists — caps at a comfortable reading width even once
   .app itself has widened for tablet/desktop (below). Only .event-list/
   .day-group (the event feed) actually want the extra width, to lay cards
   out in a grid instead of one long column; everything else gets cramped-
   looking full-width inputs and cards if left to stretch that wide. */
.page-content {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.app--no-nav {
  padding-bottom: 0;
}

/* ---------- Top bar ---------- */

/* Wraps topbar + (optional inline search) + page-header on list pages so
   they stick together: pinned at the top of the viewport, and slid out of
   view on scroll-down / back in on scroll-up (see wireStickyHeader() in
   src/app.js) — so 搜尋/篩選 are reachable with a small upward swipe instead
   of scrolling all the way back to the top. */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding-bottom: 6px;
  transition: transform 0.25s ease;
}
.sticky-header--hidden {
  transform: translateY(-100%);
}

.topbar {
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark b {
  color: var(--coral);
  font-weight: inherit;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex: 0 0 auto;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  color: var(--text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.page-header {
  padding: 10px 18px 6px;
}

.page-header--with-back {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.page-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.page-title--sm {
  font-size: 19px;
  font-weight: 900;
}

/* One horizontally-scrolling line instead of wrapping onto a second row —
   keeps the sticky header short so more posters fit above the fold. */
.filter-row {
  display: flex;
  gap: 6px;
  margin: 2px -18px 0;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar {
  display: none;
}

/* 音樂／劇場／喜劇 (wireSectionTabs in src/app.js) — big text tabs, the
   page's primary split, so they sit above the smaller filter chips. */
.section-tabs {
  display: flex;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}
.section-tab {
  position: relative;
  border: none;
  background: transparent;
  padding: 6px 0 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}
.section-tab[aria-selected="true"] {
  color: var(--ink);
}
.section-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--coral);
}

.chip {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: var(--text);
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  color: var(--bg);
  background: var(--ink);
  font-weight: 700;
}

/* ---------- Slide-down inline search (index.html) ---------- */

.search-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease;
}
.search-panel--open {
  max-height: 64px;
}
.search-panel__inner {
  padding: 4px 18px 12px;
}

/* ---------- Cards / list ---------- */

/* 2026-10-15 redesign (mockup A, 海報牆): every card is a poster — cover
   image on top with the date and favorite/exclude buttons overlaid, text
   below. Cards sit in a grid at every width (two columns on a phone), all
   the same size — no "NEXT UP" hero (Max: the first show isn't special,
   it was just earliest). A day's label spans the grid as a full-width heading. */
.day-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 18px 12px;
  align-items: stretch; /* cards in a row share one height; .event-foot pins to the bottom */
}

.day-label {
  grid-column: 1 / -1;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 4px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 8px 16px 18px;
}
/* favorites/calendar lists hold cards directly, no day groups */
.event-list:has(> .event-card),
.cal-day-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 18px 12px;
  align-items: stretch; /* cards in a row share one height; .event-foot pins to the bottom */
}

.event-card[data-ticket-url^="http"] {
  cursor: pointer;
}
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.event-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-2);
}
.event-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* No cover (寬宏/年代, organizer never uploaded one, or the image 404s):
   a per-event gradient with the title set big, never a broken-image icon. */
.event-cover__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  color: #fff;
  overflow: hidden;
  overflow-wrap: anywhere;
  background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 60) 70% 28%));
}

.event-date {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 9px;
  padding: 5px 8px 4px;
  text-align: center;
  font-family: var(--font-label);
  line-height: 1.05;
}

.event-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.event-actions .icon-circle {
  width: 30px;
  height: 30px;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
}
.event-actions .icon-circle[aria-pressed="true"] {
  color: var(--coral);
}

.event-card--muted .event-cover {
  opacity: 0.45;
}
.event-card--muted .event-title {
  color: var(--muted);
}

/* Skeleton loading state (index.html's initial event-list markup, replaced once loadEvents() resolves). */
.skeleton-block {
  background: var(--border);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { background: var(--border); }
  50% { background: var(--surface-2); }
}

.event-date__day {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.event-date__weekday {
  font-size: 9px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.06em;
}

.event-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-perf {
  font-size: 10px;
  font-weight: 700;
  background: var(--coral-bg);
  color: var(--coral-ink);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

.tag-origin {
  font-size: 10px;
  font-weight: 700;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

.tag-neutral {
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

.badge-onsale {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-lottery {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  background: var(--coral-bg);
  color: var(--coral-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.btn-remind {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.badge-new {
  font-size: 10px;
  font-weight: 800;
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.badge-pinned {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  align-self: flex-start;
}

.event-meta {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.event-price {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
}
.event-price .muted {
  color: var(--muted);
  font-weight: 400;
}

.pill-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pill-arrow svg {
  stroke: #fff;
}

.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* ---------- Footer / hidden-count bar ---------- */

.hidden-bar {
  flex: 0 0 auto;
  margin: 0 18px 12px;
  height: 44px;
  background: var(--surface);
  border-radius: 14px;
  border: none;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text);
  width: calc(100% - 36px);
}
.hidden-bar strong {
  font-weight: 700;
}
.hidden-bar__cta {
  color: var(--coral-ink);
  font-weight: 700;
}

/* ---------- Bottom tab bar ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 74px;
  background: var(--scrim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  z-index: 30;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
}

.nav-item--active {
  color: var(--ink);
  font-weight: 700;
}
.nav-item--active .nav-item__pill {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fab {
  position: absolute;
  /* -50px (its own height) + a 4px gap keeps it floating fully above the bar
     — found live (2026-09-20): -22px let the FAB's bottom ~28px sink into
     the bar itself, landing right on top of 設定 (the last nav item), which
     visually blocked its label/icon and likely ate its taps too since the
     FAB comes later in the DOM. */
  top: -54px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--bg);
  box-shadow: 0 4px 16px rgba(255, 61, 90, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab svg {
  stroke: #fff;
}

/* ---------- Forms ---------- */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 12px;
  font-weight: 800;
}

.field-input {
  border: none;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}
textarea.field-input {
  padding-top: 12px;
  align-items: flex-start;
}

.btn-primary {
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  padding: 13px;
}

.btn-dark {
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  padding: 13px;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  padding: 13px;
}

.chip-selectable {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  border: none;
}
.chip-selectable[aria-pressed="true"] {
  color: var(--coral-ink);
  background: var(--coral-bg);
  font-weight: 800;
  box-shadow: none;
}

/* ---------- Cards used in Settings / Hidden / Review ---------- */

.card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

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

.status-ok {
  font-size: 11px;
  font-weight: 800;
  color: var(--lime-ink);
}

.status-warn {
  font-size: 11px;
  font-weight: 800;
  color: var(--warn);
}

/* ---------- Overlays: exclude menu, confirm dialog, undo toast (M5) ---------- */

.overlay-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 5, 0.5);
  z-index: 40;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.2);
  padding: 10px 0 26px;
  z-index: 41;
  max-height: 80vh;
  overflow-y: auto;
}

.sheet-handle {
  width: 38px;
  height: 5px;
  background: var(--border-strong);
  border-radius: 99px;
  margin: 6px auto 12px;
}

.sheet-header {
  padding: 0 22px 14px;
}
/* Filter sheet: handle + title + 完成 + search stay pinned while the list scrolls. */
.sheet-top {
  position: sticky;
  top: -10px; /* cancels .sheet's own padding-top so nothing peeks above it */
  z-index: 1;
  background: var(--bg);
  margin-top: -10px;
  padding-top: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.sheet-header--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-done {
  border: none;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  flex: 0 0 auto;
}

.sheet-header__title {
  font-size: 14px;
  font-weight: 900;
}
.sheet-header__sub {
  font-size: 12px;
  color: var(--muted);
}

.sheet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 22px;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}
.sheet-option__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sheet-option__icon--accent {
  background: var(--coral-bg);
  color: var(--coral-ink);
}
.sheet-option__label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}

.dialog-box {
  position: fixed;
  left: 26px;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  padding: 24px;
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dialog-box__title {
  font-size: 17px;
  font-weight: 900;
}
.dialog-box__body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 96px;
  max-width: 444px;
  margin: 0 auto;
  background: oklch(20% 0.01 55);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 42;
}
.toast__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.toast__undo {
  font-size: 13px;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.toast__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
}
.toast__bar-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 3px;
  animation: toast-countdown 5s linear forwards;
}
@keyframes toast-countdown {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* ---------- Favorites calendar view (2026-09-18) ---------- */

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 14px;
}
.cal-header__label {
  font-size: 15px;
  font-weight: 800;
}

.cal-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.cal-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  aspect-ratio: 1;
  border: none;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: inherit;
  color: var(--text);
}
.cal-cell__day {
  font-size: 13px;
  font-weight: 700;
}
.cal-cell__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}
.cal-cell--empty {
  background: transparent;
  box-shadow: none;
}
.cal-cell:disabled {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}
.cal-cell:disabled .cal-cell__day {
  font-weight: 500;
}
.cal-cell--today {
  box-shadow: inset 0 0 0 1.5px var(--coral);
}
.cal-cell--selected {
  background: var(--coral-bg);
  color: var(--coral-ink);
  box-shadow: none;
}
.cal-cell--selected .cal-cell__dot {
  background: var(--coral-ink);
}

.cal-day-events {
  margin-top: 18px;
}

/* ---------- Responsive: tablet / desktop (2026-09-18) ---------- */
/* LiveRadar was built mobile-first (SPEC: phone is the primary device) — these
   breakpoints let the same markup/JS scale up instead of sitting as a narrow
   480px column with huge empty margins on a wider screen. Two things widen:
   .app itself, and the event feed (.event-list/.day-group), which switches
   from one stacked column to a grid so more shows are visible per screen —
   exactly where the "wasted space" problem is worst and the payoff for more
   width is highest. Everything else that reads as a single column (forms,
   settings, simple lists — see .page-content above) stays capped at a
   comfortable reading width so it doesn't turn into giant stretched-out
   inputs just because the shell around it got wider. */

@media (min-width: 800px) {
  .app {
    max-width: 820px;
  }

  .day-group,
  .event-list:has(> .event-card),
  .cal-day-events {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px 16px;
  }
  .bottom-nav,
  .sheet {
    max-width: 820px;
  }
}

@media (min-width: 1200px) {
  .app {
    max-width: 1180px;
    padding-bottom: 0; /* the bottom nav becomes a left sidebar below — no bottom clearance needed */
    padding-left: 96px;
  }
  .app--no-nav {
    padding-left: 0; /* no sidebar on sub-pages that never had a bottom nav either */
  }

  /* Bottom tab bar -> left sidebar rail. A tab bar pinned to the bottom edge
     is a mobile/touch convention — on a wide desktop viewport it reads as an
     odd, disconnected strip you have to look away from the content to reach.
     A fixed vertical rail keeps navigation one glance away regardless of how
     tall the page is, which is the more familiar desktop pattern. */
  .bottom-nav {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    max-width: none;
    width: 96px;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
  }
  .nav-item {
    flex: 0 0 auto;
    width: 100%;
  }
  .fab {
    position: absolute;
    top: 32px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Typography: the same font sizes as mobile start to look small against
     cards that are now 300-400px wide instead of filling a 480px column
     edge-to-edge — a modest bump restores the original proportions instead
     of just "the same page, but with more air around the text". Left at the
     tablet tier (800-1199px) untouched since those cards are still close to
     mobile width. */
  .wordmark {
    font-size: 22px;
  }
  .icon-btn,
  .back-btn {
    width: 40px;
    height: 40px;
  }
  .page-title {
    font-size: 34px;
  }
  .event-title {
    font-size: 15px;
  }
}

/* Hover feedback for mouse/trackpad pointers only (hover:hover excludes
   touchscreens) — without this guard, a tap on a touch device leaves the
   ":hover" style "stuck" on until the user taps elsewhere, which is exactly
   the kind of thing that makes a touch-first UI feel broken on a phone.
   Applies at every width, not just the desktop breakpoint above — a mouse
   plugged into a small window still benefits from it. */
@media (hover: hover) and (pointer: fine) {
  .event-cover img {
    transition: transform 0.3s ease;
  }
  .event-card:hover .event-cover img {
    transform: scale(1.04);
  }

  .icon-btn:hover,
  .back-btn:hover,
  .icon-circle:hover,
  .pill-arrow:hover {
    filter: brightness(0.94);
  }

  .btn-remind:hover {
    border-color: var(--coral);
    color: var(--coral);
  }

  .chip:hover {
    border-color: var(--border-strong);
  }
  .chip-selectable:hover {
    filter: brightness(0.97);
  }

  .btn-primary:hover,
  .btn-dark:hover {
    filter: brightness(1.08);
  }
  .btn-ghost:hover {
    background: var(--surface-2);
  }

  .nav-item:hover {
    color: var(--coral-ink);
  }

  .sheet-option:hover {
    background: var(--surface-2);
  }

  .fab:hover {
    filter: brightness(1.06);
  }

  .cal-cell:not(:disabled):hover {
    filter: brightness(0.97);
  }
}
