:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(91, 117, 151, .22);
  --line-strong: rgba(91, 117, 151, .38);
  --panel: rgba(255, 255, 255, .76);
  --field: rgba(248, 251, 255, .9);
  --accent: #c93a3a;
  --accent-deep: #8f1f26;
  --good: #13956a;
  --danger: #d34d56;
  --seat-taken: #c7ced8;
  --shadow-border:
    0 0 0 1px rgba(0, 0, 0, .055),
    0 1px 2px -1px rgba(0, 0, 0, .07),
    0 2px 5px rgba(0, 0, 0, .045);
  --shadow-border-hover:
    0 0 0 1px rgba(0, 0, 0, .08),
    0 2px 4px -1px rgba(0, 0, 0, .08),
    0 5px 12px rgba(0, 0, 0, .06);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(780px 440px at 50% -120px, rgba(255, 148, 135, .38), transparent 64%),
    radial-gradient(560px 360px at 82% 80px, rgba(255, 214, 155, .22), transparent 62%),
    linear-gradient(180deg, #fff7f6 0%, #fffafa 34%, #ffffff 100%);
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 58%),
    radial-gradient(900px 200px at 50% 210px, rgba(201,58,58,.11), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }

h1,
h2,
h3 { text-wrap: balance; }

p,
label,
.status,
.combo-option { text-wrap: pretty; }

main {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
  padding-bottom: 54px;
}

.hero {
  padding: 44px 0 24px;
  text-align: center;
}

.hero-copy {
  max-width: 700px;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 58px);
  /* Extra leading prevents descenders such as the y in "buy" from clipping. */
  line-height: 1.14;
  padding-bottom: .08em;
  overflow: visible;
  font-weight: 500;
  letter-spacing: -.8px;
  color: #111827;
  text-wrap: balance;
}

.tagline {
  margin: 14px auto 0;
  max-width: 540px;
  color: #475467;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0;
  text-wrap: pretty;
}

.app-shell,
.results-section {
  position: relative;
}

.card {
  border-radius: 32px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.76),
    inset 0 1px 0 rgba(255,255,255,.78),
    0 18px 46px rgba(35, 67, 106, .1),
    0 1px 2px rgba(24, 41, 65, .05);
  backdrop-filter: blur(20px) saturate(1.12);
  overflow: hidden;
}

.card-body {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 14px;
}

.group {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-border), inset 0 1px 0 rgba(255,255,255,.72);
  transition-property: box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.group:hover {
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-border-hover), inset 0 1px 0 rgba(255,255,255,.78);
}

.group:nth-child(3) {
  grid-column: 1 / -1;
  width: min(100%, 680px);
  margin-inline: auto;
}
.group:last-child {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #405069;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.group-icon {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label {
  display: block;
  min-width: 0;
  color: #405069;
  font-size: 12px;
  font-weight: 750;
}

.field-hint {
  color: var(--muted);
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-height: 36px;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(32, 58, 92, .07);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input[type="date"],
input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.15;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  min-height: 1.15em;
  text-align: left;
}

select {
  cursor: pointer;
  appearance: none;
  padding-right: 30px;
}

.select-wrap { position: relative; }

.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

input:hover,
select:hover { border-color: rgba(201, 58, 58, .44); }

input:focus,
select:focus {
  outline: none;
  border-color: rgba(201, 58, 58, .9);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 58, 58, .13), inset 0 1px 2px rgba(32, 58, 92, .04);
}

input::placeholder { color: #78859a; }

.zip-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.zip-row input {
  margin-top: 0;
  flex: 1 1 auto;
}

.location-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--accent-deep);
  background: var(--field);
  box-shadow: inset 0 1px 2px rgba(32, 58, 92, .07);
  transition-property: border-color, box-shadow, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.location-btn svg { width: 17px; height: 17px; }
.location-btn:hover { border-color: rgba(201, 58, 58, .5); background: #fff; }
.location-btn:active:not(:disabled) { transform: scale(.94); }
.location-btn:disabled { opacity: .55; cursor: progress; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 7px 14px rgba(143, 31, 38, .16);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition-property: transform, filter, box-shadow;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.btn-primary svg { width: 16px; height: 16px; }
.btn-primary:hover:not(:disabled) { transform: scale(1.025); filter: saturate(1.08); }
.btn-primary:active:not(:disabled) { transform: scale(.96); }
.btn-primary:disabled { opacity: .72; cursor: progress; transform: none; }

.btn-small {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #44556d;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-border), inset 0 1px 0 rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
  transition-property: transform, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.btn-small:hover {
  background: #fff;
  box-shadow: var(--shadow-border-hover), inset 0 1px 0 rgba(255,255,255,.86);
}
.btn-small:active:not(:disabled) { transform: scale(.96); }
.btn-small:disabled { opacity: .48; cursor: not-allowed; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.cta-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}
.cta-row .btn-primary { min-width: min(100%, 340px); }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #405069;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  min-height: 28px;
}

.accessible-check { margin: 8px 0 4px; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--field);
  transition: border-color .15s ease, background-color .15s ease;
}

.check:hover .check-box { border-color: rgba(201, 58, 58, .55); }

.check input:checked + .check-box {
  border-color: var(--accent);
  background: var(--accent);
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.check input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.status:empty { display: none; margin: 0; }
.status.is-success { color: var(--good); font-weight: 750; }
.status.is-error { color: var(--danger); font-weight: 750; }

.spinner {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(201, 58, 58, .2);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}

.btn-primary .spinner {
  width: 15px;
  height: 15px;
  border-color: rgba(255, 255, 255, .42);
  border-top-color: #fff;
}

@keyframes spin { to { transform: rotate(360deg); } }

.combo { position: relative; }

.combo-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 15px;
  background: rgba(255,255,255,.95);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.06),
    0 22px 42px rgba(36, 65, 106, .18),
    0 2px 8px rgba(36, 65, 106, .1);
  backdrop-filter: blur(16px);
}

.combo-menu[hidden] { display: none; }

.combo-option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  transition-property: background-color, color, transform;
  transition-duration: 140ms;
  transition-timing-function: ease-out;
}

.combo-option:hover,
.combo-option:focus,
.combo-option.is-active,
.combo-option[aria-selected="true"] {
  background: rgba(201, 58, 58, .1);
  color: var(--accent-deep);
}

.combo-option:active { transform: scale(.96); }

.seat-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.preferences-group .seat-help { margin-top: 14px; }

/* The Shift-to-erase modifier isn't available on touch, so hide the hint on
   touch devices and on narrow (mobile) layouts. */
@media (hover: none) and (pointer: coarse), (max-width: 700px) {
  .seat-help-erase { display: none; }
}

.seat-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen {
  width: min(460px, 100%);
  height: 18px;
  margin-bottom: 9px;
  display: grid;
  place-items: start center;
  padding-top: 2px;
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  color: rgba(49,64,87,.58);
  background: linear-gradient(180deg, #fffafa, #ffd7d2);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.88), inset 0 -8px 12px rgba(190, 50, 50, .16);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .22em;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(12px, 1fr));
  gap: 2px;
  width: min(420px, 100%);
  padding: 9px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(234,242,249,.9), rgba(222,232,244,.84));
  box-shadow: inset 0 2px 8px rgba(34, 65, 104, .1);
  user-select: none;
  touch-action: none;
}

.seat-cell {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(108, 131, 161, .42);
  border-radius: 3px 3px 5px 5px;
  color: transparent;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(44, 77, 118, .12);
}

/* Hover only on devices with a real pointer, so touch drags don't leave the
   last seat stuck in a highlighted state after the finger lifts. */
@media (hover: hover) {
  .seat-cell:hover {
    border-color: var(--accent);
    background: #fff1ef;
  }
}

.seat-cell.selected {
  border-color: var(--accent-deep);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.grid-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.grid-status { justify-content: center; text-align: center; }

.results-section {
  padding: 42px 0 0;
}

.summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 14px;
  color: #405069;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-border), inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(36, 65, 106, .07);
  text-align: center;
}

.summary.is-muted { color: var(--muted); }
.summary:empty { display: none; }

#results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 15px;
}

#results > .summary {
  grid-column: 1 / -1;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 28px 16px 36px;
  border-radius: 18px;
  color: #475467;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-border), inset 0 1px 0 rgba(255,255,255,.72);
  text-align: center;
}

.empty-art {
  width: 106px;
  height: auto;
  color: rgba(88, 115, 148, .48);
}

.empty-state p {
  max-width: 38ch;
  margin: 0;
  font-size: 13px;
}

.github-link {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #4b1f23;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-border), inset 0 1px 0 rgba(255,255,255,.8), 0 14px 24px rgba(108, 27, 31, .14);
  backdrop-filter: blur(16px);
  transition-property: transform, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.github-link:hover {
  color: var(--accent-deep);
  box-shadow: var(--shadow-border-hover), inset 0 1px 0 rgba(255,255,255,.84), 0 14px 24px rgba(108, 27, 31, .14);
}
.github-link:active { transform: scale(.96); }
.github-link svg { width: 18px; height: 18px; }

.result {
  min-width: 0;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-border), inset 0 1px 0 rgba(255,255,255,.78), 0 18px 38px rgba(35, 67, 106, .09);
  backdrop-filter: blur(16px);
  animation: enter-up 380ms cubic-bezier(.2, 0, 0, 1) both;
}

.result-body {
  display: flex;
  gap: 11px;
}

.result-poster {
  flex: none;
  width: 56px;
  height: 84px;
  border-radius: 9px;
  object-fit: cover;
  background: linear-gradient(180deg, #dce7f2, #b9c7d8);
  box-shadow: 0 10px 24px rgba(34, 58, 87, .16);
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}

.result-details {
  flex: 1 1 auto;
  min-width: 0;
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.result-title {
  margin: 0;
  color: #121b2a;
  font-size: 14px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -.03em;
}

.result-distance {
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(201, 58, 58, .1);
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.result-addr {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.result-movie {
  margin: 8px 0 0;
  color: #1f2a3b;
  font-size: 12px;
  font-weight: 850;
}

.result-submeta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(104, 130, 164, .18);
  border-radius: 999px;
  color: #42546c;
  background: rgba(244, 248, 252, .84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 800;
}

.tag-icon {
  display: inline-flex;
  width: 11px;
  height: 11px;
  color: var(--accent);
}

.tag-icon svg { width: 100%; height: 100%; }

.result-open {
  color: var(--good);
  font-size: 11px;
  font-weight: 850;
}

.result-amenities {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.real-seat-map {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(104, 130, 164, .18);
  border-radius: 22px;
  background: rgba(245, 249, 253, .8);
  box-shadow: inset 0 1px 3px rgba(36, 65, 106, .08);
}

.real-seat-map-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  color: #405069;
  font-size: 11px;
  font-weight: 850;
}

.real-seat-map-title span:last-child {
  color: var(--muted);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.real-seat-map-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(104, 130, 164, .24);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #edf4fb);
  box-shadow: inset 0 2px 5px rgba(36, 65, 106, .08);
}

.real-seat-map-stage.has-background { background: #f7fbff; }

.real-seat-map-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  outline: 1px solid rgba(0, 0, 0, .1);
  outline-offset: -1px;
}

.real-screen {
  width: min(460px, 76%);
  margin: 8px auto 10px;
  padding: 3px 0 4px;
  border-radius: 999px;
  color: rgba(49,64,87,.58);
  background: linear-gradient(180deg, #fffafa, #ffd7d2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.84);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
}

.real-seat {
  position: absolute;
  overflow: hidden;
  border: 1px solid #a7b2c1;
  border-radius: 3px 3px 5px 5px;
  color: transparent;
  background: #fff;
}

.real-seat.available { background: #fff; border-color: #9fabbb; }
.real-seat.unavailable { background: var(--seat-taken); border-color: #adb5c0; }

.real-seat.matched {
  border-color: var(--accent-deep);
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 58, 58, .23);
}

.seat-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.legend-item { display: inline-flex; align-items: center; gap: 5px; }

.legend-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid #9fabbb;
  border-radius: 3px 3px 5px 5px;
  background: #fff;
}

.legend-swatch.unavailable { background: var(--seat-taken); border-color: #adb5c0; }
.legend-swatch.matched { background: var(--accent); border-color: var(--accent-deep); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pagination[hidden] { display: none; }

.pagination-label {
  min-width: 76px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 13px 9px 15px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 7px 14px rgba(143, 31, 38, .16);
  font-size: 13px;
  font-weight: 650;
  transition-property: transform, filter, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.buy-btn:hover { transform: translateY(-1px); filter: saturate(1.06); }
.buy-btn:active { transform: scale(.96); }

.status,
.result-open,
.summary,
input[type="number"],
input[type="date"],
input[type="time"] {
  font-variant-numeric: tabular-nums;
}

.enter-item {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation: enter-up 440ms cubic-bezier(.2, 0, 0, 1) forwards;
}

.enter-item-1 { animation-delay: 20ms; }
.enter-item-2 { animation-delay: 120ms; }
.enter-item-3 { animation-delay: 220ms; }

@keyframes enter-up {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

  .enter-item,
  .result {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .btn-primary,
  .btn-small,
  .buy-btn,
  .github-link,
  .combo-option {
    transition-duration: 0ms;
  }
}

@media (max-width: 980px) {
  .card-body { grid-template-columns: 1fr; }
  .group:nth-child(3) { grid-row: auto; }
  #results { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  main {
    width: min(100% - 24px, 1120px);
    /* Leave room so the fixed GitHub button never overlaps the last controls. */
    padding-bottom: 76px;
  }

  .hero {
    padding: 32px 0 22px;
  }

  h1 { font-size: 34px; }

  .tagline { margin-top: 12px; }

  .card-body { padding: 12px; gap: 10px; }
  .card { border-radius: 25px; }
  .group { padding: 12px; border-radius: 13px; }

  .group-title {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .grid,
  .grid.thirds { grid-template-columns: 1fr; }

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

  .location-group .full,
  .movie-group .full {
    grid-column: 1 / -1;
  }

  .preferences-group .grid.thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  label {
    font-size: 11px;
  }

  input,
  select {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 10px;
    /* iOS Safari zooms focused form controls below 16px. */
    font-size: 16px;
  }

  .select-wrap::after {
    bottom: 13px;
  }

  .accessible-check {
    margin: 12px 0 10px;
  }

  .check {
    gap: 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .check-box {
    width: 18px;
    height: 18px;
    border-radius: 7px;
  }

  .check input:checked + .check-box::after {
    left: 5px;
    top: 2px;
  }

  .preferences-group .seat-help {
    margin: 10px 0 8px;
    font-size: 11px;
    line-height: 1.35;
  }

  .seat-grid {
    width: min(300px, 100%);
    padding: 7px;
    gap: 1.5px;
  }

  .screen {
    width: min(330px, 100%);
    height: 15px;
    margin-bottom: 7px;
    font-size: 7.5px;
  }

  .results-section { padding-top: 34px; }
  .result-body { align-items: flex-start; }
  .result-poster { width: 52px; height: 78px; }
  .github-link { right: 12px; bottom: 12px; }
}

@media (max-width: 380px) {
  /* Native date controls need more width than two columns provide on small phones. */
  .location-group .grid {
    grid-template-columns: 1fr;
  }

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

  .preferences-group .grid.thirds label:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e8edf4;
    --muted: #9aa7b8;
    --line: rgba(148, 170, 196, .18);
    --line-strong: rgba(148, 170, 196, .32);
    --panel: rgba(22, 27, 36, .74);
    --field: rgba(30, 37, 48, .92);
    --accent: #e2605a;
    --accent-deep: #c1403f;
    --good: #35c491;
    --danger: #f27b83;
    --seat-taken: #3a4250;
  }

  body {
    color: var(--ink);
    background:
      radial-gradient(780px 440px at 50% -120px, rgba(180, 52, 46, .34), transparent 64%),
      radial-gradient(560px 360px at 82% 80px, rgba(150, 110, 55, .18), transparent 62%),
      linear-gradient(180deg, #12151c 0%, #0f1218 40%, #0b0d12 100%);
  }

  body::before {
    background:
      linear-gradient(180deg, rgba(11, 13, 18, 0) 0%, #0b0d12 58%),
      radial-gradient(900px 200px at 50% 210px, rgba(210, 70, 66, .16), transparent 70%);
  }

  h1 { color: var(--ink); }
  .tagline { color: #b8c3d3; }

  .card {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .06),
      inset 0 1px 0 rgba(255, 255, 255, .05),
      0 18px 46px rgba(0, 0, 0, .55);
  }

  .group {
    background: rgba(255, 255, 255, .035);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .04);
  }
  .group:hover {
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  .group-title,
  label,
  .check,
  .summary,
  .real-seat-map-title { color: #c2cddc; }

  input,
  select { background: var(--field); color: var(--ink); }
  input:focus,
  select:focus { background: #1b2230; }
  input::placeholder { color: #6f7c92; }

  .location-btn { background: var(--field); }
  .location-btn:hover { background: #1b2230; }

  .btn-small {
    color: #cdd8e6;
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .btn-small:hover { background: rgba(255, 255, 255, .1); }

  .check-box { background: rgba(255, 255, 255, .06); }

  .combo-menu {
    background: rgba(22, 27, 36, .97);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 22px 42px rgba(0, 0, 0, .5);
  }
  .combo-option { color: var(--ink); }

  .seat-grid {
    border-color: rgba(255, 255, 255, .05);
    background: linear-gradient(180deg, rgba(42, 50, 63, .9), rgba(30, 37, 48, .86));
  }
  .seat-cell {
    background: #2b3340;
    border-color: rgba(150, 167, 190, .28);
    box-shadow: none;
  }
  @media (hover: hover) {
    .seat-cell:hover { background: #3a2523; border-color: var(--accent); }
  }

  .screen,
  .real-screen {
    color: rgba(206, 216, 230, .62);
    background: linear-gradient(180deg, #2b3340, #5c2b2b);
  }

  .summary,
  .empty-state {
    color: #c2cddc;
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .04);
  }
  .empty-art { color: rgba(150, 170, 196, .4); }

  .result {
    background: rgba(255, 255, 255, .045);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 38px rgba(0, 0, 0, .45);
  }
  .result-title { color: #eef2f8; }
  .result-movie { color: #dde5f0; }

  .tag {
    color: #c2cddc;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(150, 170, 196, .16);
    box-shadow: none;
  }

  .real-seat-map {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(150, 170, 196, .14);
  }
  .real-seat-map-stage,
  .real-seat-map-stage.has-background {
    background: linear-gradient(180deg, #1b222d, #141a24);
    border-color: rgba(150, 170, 196, .18);
  }
  .real-seat { background: #cdd6e2; border-color: #aeb8c6; }
  .real-seat.available { background: #d7deea; border-color: #b7c0cd; }
  .real-seat.unavailable { background: var(--seat-taken); border-color: #4a5464; }
  .legend-swatch { background: #d7deea; border-color: #b7c0cd; }

  .github-link {
    color: #f2caca;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 24px rgba(0, 0, 0, .5);
  }
}
