:root {
  --pistachio: #e6eed6;
  --pistachio-deep: #cbd9b0;
  --ink: #22301f;
  --ink-soft: #52624c;
  --radish: #d62e63;
  --radish-deep: #9c1d46;
  --butter: #ffd95e;
  --butter-soft: #fff1bf;
  --plate: #fffcf4;
  --leaf: #2f6a2c;
  --font-round:
    ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --gutter: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-bottom: 150px;
  background: var(--pistachio);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--pistachio);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app {
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 20px) var(--gutter) 0;
}

.screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--safe-top) - 20px);
}

.title {
  margin: 0;
  font-family: var(--font-round);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  outline: none;
}

.title--small {
  font-size: 27px;
}

.lede {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 34ch;
}

.hint {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.form-error {
  color: var(--radish-deep);
  font-weight: 600;
}

.form-error:empty {
  display: none;
}

.cloche {
  display: block;
  fill: currentColor;
}

.cloche__lid {
  transform-box: fill-box;
  transform-origin: 90% 100%;
}

.cloche--hero {
  width: 112px;
  height: 112px;
  color: var(--radish);
}

.cloche--peek {
  width: 20px;
  height: 20px;
  color: var(--radish);
}

.cloche--peek .cloche__lid,
.cloche--boot .cloche__lid {
  animation: peek 2.8s ease-in-out infinite;
}

.cloche--celebrate {
  width: 132px;
  height: 132px;
  color: var(--radish);
}

.cloche--celebrate .cloche__lid {
  transform-origin: 50% 100%;
  animation: lift 1.1s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s both;
}

@keyframes peek {
  0%,
  55%,
  100% {
    transform: none;
  }
  68%,
  82% {
    transform: translateY(-8%) rotate(-14deg);
  }
}

@keyframes lift {
  0% {
    transform: none;
  }
  45% {
    transform: translateY(-34%) rotate(-8deg);
  }
  70% {
    transform: translateY(-22%) rotate(5deg);
  }
  100% {
    transform: translateY(-26%);
  }
}

.boot {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 70dvh;
  color: var(--ink-soft);
  font-family: var(--font-round);
}

.cloche--boot {
  width: 72px;
  height: 72px;
  color: var(--radish);
}

.noscript {
  padding: 24px;
  text-align: center;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--radish);
  color: #fff;
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 6px 0 var(--radish-deep);
  transition:
    transform 80ms ease-out,
    box-shadow 80ms ease-out;
}

.cta:active:not(:disabled, [aria-disabled='true']) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--radish-deep);
}

.cta:disabled,
.cta[aria-disabled='true'] {
  background: var(--pistachio-deep);
  color: var(--ink-soft);
  box-shadow: 0 6px 0 #b3c495;
}

.cta--big {
  min-height: 66px;
  font-size: 22px;
}

.cta__plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--radish);
  font-size: 26px;
  line-height: 1;
}

.text-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button--quiet {
  margin-right: -8px;
  color: var(--ink-soft);
}

.pill {
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--pistachio-deep);
  border-radius: 999px;
  background: var(--plate);
  font-weight: 700;
}

.pill--small {
  justify-self: start;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  font-size: 15px;
}

.pill--danger {
  border-color: var(--radish);
  background: var(--radish);
  color: #fff;
}

.back {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--plate);
  box-shadow: 0 3px 0 var(--pistachio-deep);
}

.back svg,
.calendar__nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin: auto calc(var(--gutter) * -1) 0;
  padding: 28px var(--gutter) calc(var(--safe-bottom) + 22px);
  background: linear-gradient(to bottom, rgb(230 238 214 / 0), var(--pistachio) 26px);
  pointer-events: none;
}

.dock > * {
  pointer-events: auto;
}

.dock__hint {
  min-height: 1.45em;
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
}

.dock__hint:empty {
  display: none;
}

.dock .form-error {
  text-align: center;
}

.screen--login {
  padding-bottom: calc(var(--safe-bottom) + 28px);
}

.login-hero {
  margin: 12px 0 18px;
}

.login-hero .back {
  margin: -8px 0 8px;
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 15px;
  font-weight: 700;
}

.field__row {
  position: relative;
  display: block;
}

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid var(--pistachio-deep);
  border-radius: 16px;
  background: var(--plate);
  font-size: 18px;
}

.field__row .field__input {
  padding-right: 80px;
}

.field__input:focus {
  border-color: var(--ink);
  outline: none;
}

.field__toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 64px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--pistachio);
  font-size: 15px;
  font-weight: 700;
}

.login-form .cta {
  margin-top: 6px;
}

.field__input--code {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.login-email {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 12px;
}

.login-links .text-button {
  padding: 0;
}

.login-links .text-button:disabled {
  text-decoration: none;
}

.reassure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 16px;
  border-radius: 18px;
  background: var(--butter-soft);
  font-size: 15px;
}

.reassure svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.home-header {
  margin-bottom: 22px;
}

.note {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--butter-soft);
  font-size: 15px;
}

.note--alert {
  display: grid;
  gap: 12px;
  justify-items: start;
  background: var(--butter);
  font-size: 17px;
  font-weight: 700;
}

.wish-list {
  display: grid;
  gap: 22px;
}

.home-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 36px;
}

.home-footer + .dock {
  margin-top: 0;
}

.card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--plate);
  box-shadow: 0 6px 0 var(--pistachio-deep);
}

.card__media {
  position: relative;
}

.photo {
  width: 100%;
  object-fit: cover;
  background: var(--pistachio-deep);
}

.photo--empty {
  display: grid;
  place-items: center;
  background: var(--butter-soft);
  color: var(--radish);
}

.photo--empty .cloche {
  width: 40%;
  max-width: 72px;
  height: auto;
  aspect-ratio: 1;
}

.card__photo {
  aspect-ratio: 16 / 8;
}

.card__body {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}

.card__name {
  margin: 0;
  font-family: var(--font-round);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}

.card__summary {
  font-size: 17px;
}

.card__hint {
  color: var(--leaf);
  font-size: 15px;
  font-weight: 600;
}

.card__meta {
  color: var(--ink-soft);
  font-size: 15px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 15px;
  font-weight: 800;
}

.badge--watching {
  background: var(--plate);
}

.badge--paused {
  background: var(--plate);
  color: var(--ink-soft);
}

.badge--paused .cloche {
  width: 20px;
  height: 20px;
}

.badge--booked {
  padding: 0 16px;
  background: var(--butter);
  font-size: 18px;
  transform: rotate(-3deg);
}

.booked-when {
  display: grid;
  margin: 2px 0 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--butter-soft);
}

.booked-when__date {
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 800;
}

.booked-when__time {
  font-size: 18px;
  font-weight: 600;
}

.card--ended {
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: none;
  background: rgb(255 252 244 / 0.6);
}

.card__thumb {
  flex: none;
  width: 92px;
  align-self: stretch;
  min-height: 100px;
  opacity: 0.75;
  filter: saturate(0.4);
}

.card--ended .card__body {
  gap: 2px;
  padding: 14px 16px;
}

.card--ended .card__name {
  font-size: 19px;
}

.card__state {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.confirm {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--pistachio);
}

.confirm__question {
  font-weight: 700;
}

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

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 12px 8px;
  text-align: center;
  color: var(--ink-soft);
}

.empty__art {
  margin-bottom: 6px;
}

.empty__title {
  color: var(--ink);
  font-family: var(--font-round);
  font-size: 24px;
  font-weight: 800;
}

.empty p:not(.empty__title) {
  max-width: 30ch;
}

.skeleton {
  height: 280px;
  border-radius: 28px;
  background: linear-gradient(100deg, var(--plate) 40%, #f4f6ec 50%, var(--plate) 60%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

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

.search {
  position: relative;
  display: block;
  margin-top: 18px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  pointer-events: none;
}

.search__input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px 0 52px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--plate);
  font-size: 19px;
  -webkit-appearance: none;
  appearance: none;
}

.search__input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--butter);
}

.results {
  padding: 18px 0 calc(var(--safe-bottom) + 32px);
}

.results__note {
  padding: 8px 4px;
  color: var(--ink-soft);
}

.results__note--busy::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--radish);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.results__label {
  margin: 0 4px 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.venue-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.venue-option {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--plate);
  box-shadow: 0 4px 0 var(--pistachio-deep);
  text-align: left;
}

.venue-option:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--pistachio-deep);
}

.venue-option__photo {
  flex: none;
  width: 116px;
  min-height: 96px;
  height: auto;
}

.venue-option__text {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 16px;
}

.venue-option__name {
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.venue-option__place {
  font-size: 16px;
  font-weight: 600;
}

.venue-option__price,
.price-tag {
  color: var(--leaf);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.screen--details {
  padding-bottom: 0;
}

.hero {
  position: relative;
  margin: calc((var(--safe-top) + 20px) * -1) calc(var(--gutter) * -1) 0;
}

.hero__photo {
  aspect-ratio: 16 / 10;
  border-radius: 0 0 32px 32px;
}

.hero .back {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  left: 16px;
  box-shadow: 0 3px 0 rgb(34 48 31 / 0.25);
}

.details-header {
  padding: 18px 0 4px;
}

.details-header__place {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

.block {
  padding-top: 26px;
}

.block__title {
  margin: 0 0 12px;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 800;
}

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

.chip {
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--pistachio-deep);
  border-radius: 999px;
  background: var(--plate);
  font-size: 17px;
  font-weight: 600;
}

.chip[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--butter);
  font-weight: 800;
}

.until {
  margin-top: 20px;
}

.until__label {
  margin-bottom: 10px;
  font-weight: 700;
}

.field--date {
  margin-top: 14px;
}

.field--date .field__input {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  line-height: 52px;
}

.calendar {
  margin-top: 16px;
  padding: 14px 12px 16px;
  border-radius: 24px;
  background: var(--plate);
}

.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar__title {
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 800;
}

.calendar__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pistachio);
}

.calendar__nav:disabled {
  opacity: 0.3;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  justify-items: center;
}

.calendar__dow {
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.calendar__day {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 17px;
  font-weight: 600;
}

.calendar__day[aria-current='date'] {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.calendar__day:disabled {
  color: #b7bfae;
}

.calendar__day[aria-pressed='true'] {
  background: var(--radish);
  color: #fff;
  font-weight: 800;
}

.calendar .hint {
  margin: 10px 6px 0;
}

.days {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 16px;
}

.days__toggle {
  flex: 1;
  max-width: 48px;
  aspect-ratio: 1;
  border: 2px solid var(--pistachio-deep);
  border-radius: 50%;
  background: var(--plate);
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 800;
}

.days__toggle[aria-pressed='true'] {
  border-color: var(--radish);
  background: var(--radish);
  color: #fff;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.time-choice {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 12px 16px;
  border: 2px solid var(--pistachio-deep);
  border-radius: 20px;
  background: var(--plate);
  text-align: left;
}

.time-choice[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--butter);
}

.time-choice__label {
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 800;
}

.time-choice__detail {
  color: var(--ink-soft);
  font-size: 15px;
}

.time-choice[aria-pressed='true'] .time-choice__detail {
  color: var(--ink);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 300px;
  padding: 8px;
  border-radius: 999px;
  background: var(--plate);
}

.stepper__button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--pistachio);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.stepper__button:disabled {
  opacity: 0.35;
}

.stepper__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stepper__number {
  font-family: var(--font-round);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.stepper__unit {
  color: var(--ink-soft);
  font-size: 17px;
}

.charges {
  margin-top: 28px;
  border-radius: 22px;
  font-size: 16px;
}

.charges--checking,
.charges--unknown {
  padding: 14px 16px;
  background: var(--plate);
  color: var(--ink-soft);
}

.charges--none {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
  font-weight: 700;
}

.charges--none::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--leaf);
}

.charges--heads-up {
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
  background: var(--butter);
  font-size: 17px;
}

.charges__title {
  margin: 0;
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 800;
}

.charges__fine {
  font-size: 14px;
}

.agree {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--plate);
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.agree__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--plate);
}

.agree__box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--plate);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agree[aria-pressed='true'] {
  background: var(--ink);
  color: var(--plate);
}

.agree[aria-pressed='true'] .agree__box {
  border-color: var(--plate);
  background: var(--leaf);
}

.screen--done {
  align-items: center;
  text-align: center;
}

.done-art {
  margin: 48px 0 12px;
}

.screen--done .lede {
  max-width: 30ch;
}

.done-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--plate);
  box-shadow: 0 6px 0 var(--pistachio-deep);
  text-align: left;
}

.done-card__photo {
  flex: none;
  width: 120px;
  min-height: 100px;
}

.done-card__text {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 16px;
}

.done-card__name {
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 800;
}

.done-card__meta {
  color: var(--ink-soft);
  font-size: 15px;
}

.screen--done .dock {
  width: calc(100% + var(--gutter) * 2);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .app {
    max-width: 1040px;
    padding-top: calc(var(--safe-top) + 32px);
  }

  .screen {
    min-height: calc(100dvh - var(--safe-top) - 32px);
  }

  .title {
    font-size: clamp(40px, 2.4vw + 22px, 56px);
  }

  .title--small {
    font-size: clamp(30px, 1.4vw + 20px, 40px);
  }

  .lede {
    font-size: 19px;
    max-width: 44ch;
  }

  .screen--home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'header dock'
      'notice notice'
      'list list'
      'footer footer';
    align-content: start;
    column-gap: 32px;
  }

  .screen--home .home-header {
    grid-area: header;
    margin-bottom: 28px;
  }

  .screen--home .home-notice {
    grid-area: notice;
  }

  .screen--home .note {
    max-width: 640px;
  }

  .screen--home .wish-list {
    grid-area: list;
  }

  .screen--home .home-footer {
    grid-area: footer;
    padding-bottom: calc(var(--safe-bottom) + 32px);
  }

  .screen--home .dock {
    grid-area: dock;
    align-self: start;
    position: static;
    margin: 4px 0 0;
    padding: 0;
    background: none;
  }

  .screen--home .dock .cta {
    width: auto;
    padding: 0 32px;
  }

  .wish-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px 24px;
  }

  .card__photo {
    aspect-ratio: 16 / 10;
  }

  .card__name {
    font-size: 25px;
  }

  .empty {
    grid-column: 1 / -1;
    padding-top: 48px;
  }

  .skeleton {
    grid-column: 1 / -1;
  }

  .search {
    max-width: 640px;
  }

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

  .venue-option {
    flex-direction: column;
    height: 100%;
  }

  .venue-option__photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .venue-option__text {
    align-content: start;
    padding: 14px 18px 18px;
  }

  .venue-option__name {
    font-size: 21px;
  }

  .screen--details {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero {
    margin: 0;
  }

  .hero__photo {
    aspect-ratio: 2 / 1;
    border-radius: 28px;
  }

  .hero .back {
    top: 14px;
  }

  .screen--login,
  .screen--done {
    width: 100%;
    max-width: 480px;
    min-height: 0;
    margin: 4vh auto calc(var(--safe-bottom) + 32px);
    padding: 36px 40px 40px;
    border-radius: 32px;
    background: var(--plate);
    box-shadow: 0 8px 0 var(--pistachio-deep);
  }

  .screen--login .title,
  .screen--done .title {
    font-size: 38px;
  }

  .screen--login .login-hero {
    margin-top: 0;
  }

  .screen--login .cloche--hero {
    width: 88px;
    height: 88px;
  }

  .screen--login .field__toggle {
    background: var(--pistachio);
  }

  .screen--done .done-art {
    margin-top: 8px;
  }

  .screen--done .done-card {
    background: var(--pistachio);
    box-shadow: none;
  }

  .screen--done .dock {
    position: static;
    width: 100%;
    margin: 0;
    padding: 28px 0 0;
    background: none;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
  }

  .app {
    max-width: 1240px;
  }

  .wish-list,
  .venue-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px), (orientation: landscape) and (max-height: 500px) and (min-width: 640px) {
  .screen--details {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      'hero choices'
      'header choices'
      'charges choices'
      'charges dock';
    column-gap: clamp(28px, 4vw, 64px);
    align-items: start;
    min-height: 0;
    padding-bottom: calc(var(--safe-bottom) + 32px);
  }

  .screen--details .hero {
    grid-area: hero;
    margin: 0;
  }

  .screen--details .hero__photo {
    aspect-ratio: 16 / 10;
    border-radius: 28px;
  }

  .screen--details .hero .back {
    top: 14px;
  }

  .screen--details .details-header {
    grid-area: header;
  }

  .screen--details .details-choices {
    grid-area: choices;
  }

  .screen--details .details-choices > .block:first-child {
    padding-top: 0;
  }

  .screen--details .details-charges {
    grid-area: charges;
  }

  .screen--details .details-charges .charges {
    margin-top: 20px;
  }

  .screen--details .dock {
    grid-area: dock;
    position: static;
    margin: 0;
    padding: 32px 0 0;
    background: none;
  }

  .screen--details .dock__hint {
    text-align: left;
  }
}

/* landscape phones: keep the short screen for content instead of a pinned button */
@media (orientation: landscape) and (max-height: 500px) {
  .app {
    padding-top: calc(var(--safe-top) + 20px);
  }

  .title,
  .screen--login .title,
  .screen--done .title {
    font-size: 32px;
  }

  .dock {
    position: static;
    margin-top: 24px;
    background: none;
  }

  .card__photo {
    aspect-ratio: 16 / 7;
  }

  .screen--login,
  .screen--done {
    margin-top: 8px;
    padding: 28px 32px 32px;
  }

  .screen--login .login-hero {
    display: none;
  }

  .screen--login .login-hero:has(.back) {
    display: block;
  }

  .screen--done .done-art {
    margin-top: 0;
  }

  .cloche--celebrate {
    width: 80px;
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
