@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2");
}

:root {
  --panel: #5c534c;
  --panel-deep: #3f3834;
  --ink: #f6f3ee;
  --cyan: #6eebff;
  --orange: #ff7a1a;
  --pill: #d36b2e;
  --line: rgba(255, 255, 255, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--panel);
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

button { cursor: pointer; }

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

::selection {
  background: var(--orange);
  color: #1a1210;
}

.poster {
  position: relative;
  min-height: 100dvh;
  background: var(--panel);
  overflow: hidden;
}

.wave {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 3;
  pointer-events: none;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-left { left: -28px; }
.wave-right { right: -28px; }
.wave-seam { display: none; }

.poster-grid { position: relative; z-index: 1; }

.copy, .fine {
  padding-inline: 3.35rem;
  text-align: center;
}

.copy { padding-top: 1.7rem; }
.fine { padding-bottom: 2.2rem; }

.brand {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2.7rem, 12vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  margin: 1rem 0 0;
  color: var(--cyan);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
  text-wrap: pretty;
}

.when {
  margin-top: 1.15rem;
}

.when p {
  margin: 0.15rem 0;
  color: var(--cyan);
  font-size: 1.28rem;
  font-weight: 800;
}

.rule {
  height: 1px;
  margin: 1.15rem auto;
  border: 0;
  background: var(--line);
  width: min(100%, 16rem);
}

.spots { margin-top: 0.2rem; }

.obs {
  display: inline-block;
  margin: 0;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: var(--pill);
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.spots-count {
  margin: 0.35rem 0 0;
  color: var(--cyan);
  font-size: clamp(4.6rem, 22vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.spots-count.is-word {
  font-size: clamp(2.4rem, 11vw, 3.5rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.spots-label {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.swish-label {
  margin: 1.2rem 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.phone {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(1.35rem, 5.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.text-btn, .text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pay {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}

.pay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--cyan);
  border-radius: 999px;
  background: transparent;
  color: var(--cyan);
  text-decoration: none;
}

.pay-btn:first-child {
  background: var(--cyan);
  color: #17323a;
}

.pay-btn strong { font-size: 1.12rem; font-weight: 800; }
.pay-btn span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }

.pay-btn:hover, .member-btn:hover { transform: translateY(-1px); }

.member-btn {
  display: block;
  margin: 1.15rem auto 0;
  padding: 0.85rem 1.15rem;
  border: 2px solid var(--cyan);
  border-radius: 1.25rem;
  color: var(--cyan);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.hint, .manual, .closed {
  color: rgba(246, 243, 238, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hint { margin: 0.85rem 0 0; }
.manual { margin: 0; }
.closed { margin: 1rem 0 0; font-weight: 700; }

.prices p {
  margin: 0.15rem 0;
  color: var(--cyan);
  font-size: 1.12rem;
  font-weight: 700;
}

.note {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  white-space: pre-wrap;
}

.updated, .admin-link {
  margin: 0.85rem 0 0;
  color: rgba(246, 243, 238, 0.68);
  font-size: 0.8rem;
}

.admin-link { text-align: right; }
.admin-link a { color: inherit; }

.status {
  margin: 2rem 0;
  color: var(--cyan);
  font-weight: 700;
}

.photo {
  margin: 1.2rem 3.35rem 0;
  height: 42vh;
  min-height: 220px;
  max-height: 460px;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #3a2a22;
}

.photo img, .photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo img.is-default-crop, .photo-preview.is-default-crop {
  object-position: 70% 46%;
  transform: scale(2.35);
  transform-origin: 70% 46%;
}

.noscript {
  margin: 0;
  padding: 1rem 3rem 2rem;
  text-align: center;
}

@media (min-width: 880px) {
  body { background: #161311; }

  .poster {
    max-width: 1080px;
    margin: 0 auto;
    min-height: 100dvh;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .poster-grid {
    display: grid;
    grid-template-columns: minmax(340px, 560px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100dvh;
  }

  .copy { grid-area: 1 / 1; padding-top: 2.4rem; }
  .fine { grid-area: 2 / 1; align-self: end; padding-bottom: 2rem; }

  .photo {
    grid-area: 1 / 2 / span 2;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .wave-seam {
    display: block;
    left: 560px;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay-btn, .member-btn { transition: none; }
  .pay-btn:hover, .member-btn:hover { transform: none; }
}

.admin-page { background: #161311; }

.admin-shell { max-width: 640px; }

.admin {
  position: relative;
  z-index: 1;
  padding: 1.5rem 3.2rem 3rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.admin .brand { font-size: clamp(2.2rem, 8vw, 3.1rem); }

.admin-lede { text-align: left; font-size: 1rem; }

.card {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem 1.2rem;
  border-radius: 1.2rem;
  background: rgba(28, 22, 19, 0.28);
  text-align: left;
}

.card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.card input, .card textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  background: var(--panel-deep);
  color: var(--ink);
}

.card textarea { resize: vertical; }

.card input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--panel-deep) inset;
}

.btn-primary, .btn-secondary, .stepper button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary, .btn-secondary {
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.btn-primary { background: var(--orange); color: #1c120c; }
.btn-secondary { background: transparent; color: var(--cyan); border: 2px solid var(--cyan); }

.btn-primary:disabled, .btn-secondary:disabled, .stepper button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stepper {
  display: grid;
  grid-template-columns: 4.5rem 1fr 4.5rem;
  gap: 0.6rem;
  align-items: center;
}

.stepper button {
  height: 4.5rem;
  background: var(--cyan);
  color: #17323a;
  font-size: 2.4rem;
  line-height: 1;
}

.stepper-readout { text-align: center; }

.stepper-readout p { margin: 0; }

#spots-now {
  color: var(--cyan);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 0.9;
}

.stats {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.stats dt { font-weight: 700; }

.stats dd {
  margin: 0;
  color: var(--cyan);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.form-error, .form-ok { margin: 0.8rem 0 0; font-weight: 700; }
.form-error { color: #ffd0c2; }
.form-ok { color: var(--cyan); }

.photo-frame {
  height: 180px;
  margin-top: 0.8rem;
  border-radius: 0.9rem;
  background: #3a2a22;
  overflow: hidden;
}

.card input[type="file"] {
  padding: 0.55rem;
  background: transparent;
}

.qr {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: white;
}

.qr svg { width: min(280px, 70vw); height: auto; display: block; }

.qr-caption, .qr-url {
  margin: 0.7rem 0 0;
  text-align: center;
}

.qr-caption { font-weight: 800; }
.qr-url { font-size: 0.82rem; overflow-wrap: anywhere; color: rgba(246, 243, 238, 0.8); }

@media print {
  body.admin-page { background: white !important; }
  .wave, .admin-top, #login, #editor > :not(#qr-sheet), .no-print { display: none !important; }
  .poster, .admin-shell, .admin, .qr-sheet {
    background: white !important;
    box-shadow: none !important;
    max-width: none !important;
    color: black !important;
  }
  .qr-sheet h2, .qr-caption, .qr-url { color: black !important; }
  .qr svg { width: 80mm; }
}
