@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Var";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --film: #0d0d0c;
  --film-deep: #090908;
  --film-raised: #171614;
  --film-card: #131210;
  --ivory: #f4f1eb;
  --ink-90: rgba(244, 241, 235, 0.9);
  --ink-70: rgba(244, 241, 235, 0.7);
  --ink-55: rgba(244, 241, 235, 0.55);
  --ink-35: rgba(244, 241, 235, 0.48);
  --blue: #87c7f2;
  --blue-strong: #a9d8f7;
  --hairline: rgba(244, 241, 235, 0.16);
  --hairline-strong: rgba(244, 241, 235, 0.28);
  --success: #9bd6b0;
  --danger: #f2a6a0;
  --danger-bg: rgba(124, 40, 36, 0.2);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Var", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --radius-small: 6px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--film);
  color-scheme: dark;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(135, 199, 242, 0.07), transparent 36rem),
    var(--film);
  color: var(--ink-90);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("/assets/plate-grain.webp");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

::selection {
  background: var(--blue);
  color: var(--film);
}

a {
  color: inherit;
  text-decoration-color: rgba(135, 199, 242, 0.65);
  text-underline-offset: 0.18em;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.ops-nav {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--hairline);
  background: rgba(13, 13, 12, 0.88);
  backdrop-filter: blur(12px);
}

.ops-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.ops-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ops-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.ops-brand span {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}

.ops-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink-70);
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

.ops-nav-link:hover {
  color: var(--ivory);
}

.wrap {
  width: min(100%, 600px);
  min-height: calc(100vh - 65px);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.wrap.wide,
.album-wrap {
  width: min(100%, 1180px);
}

.state-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  min-height: calc(100vh - 65px);
  text-align: center;
}

.state-page-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.state-page .lead {
  max-width: 520px;
  margin: 18px auto 30px;
}

.state-page .btn {
  width: min(100%, 360px);
}

.join-wrap,
.capture-wrap,
.host-wrap {
  width: min(100%, 1120px);
}

.film-heading {
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

h2 {
  margin: 0 0 10px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

h3 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.lead {
  margin: 0 0 26px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 16px;
  border: 1px solid rgba(135, 199, 242, 0.34);
  border-radius: 4px;
  padding: 5px 10px;
  background: rgba(135, 199, 242, 0.06);
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(23, 22, 20, 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.card::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 36px;
  height: 1px;
  background: var(--blue);
  content: "";
  opacity: 0.8;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: screen;
}

label,
.field-label {
  display: block;
  margin: 19px 0 8px;
  color: var(--ink-55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

label:first-child {
  margin-top: 0;
}

input[type="text"],
input:not([type]),
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  background: var(--film-deep);
  color: var(--ivory);
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

input[type="text"]::placeholder,
input:not([type])::placeholder {
  color: var(--ink-35);
}

input[type="text"]:focus,
input:not([type]):focus,
select:focus {
  border-color: var(--blue);
  background: #0b0b0a;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

input[type="file"] {
  width: 100%;
  min-height: 48px;
  color: var(--ink-55);
  font-size: 13px;
}

input[type="file"]::file-selector-button {
  min-height: 48px;
  margin-right: 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-small);
  padding: 0 14px;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 22px 0;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-small);
  padding: 12px 18px;
  background: var(--blue);
  color: var(--film);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.btn:hover {
  border-color: var(--ivory);
  background: var(--ivory);
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  border-color: var(--hairline);
  background: rgba(244, 241, 235, 0.08);
  color: var(--ink-35);
  cursor: not-allowed;
}

.btn.secondary {
  border-color: var(--hairline-strong);
  background: transparent;
  color: var(--ivory);
}

.btn.secondary:hover {
  border-color: var(--blue);
  background: rgba(135, 199, 242, 0.08);
  color: var(--blue-strong);
}

.btn.ghost {
  border-color: rgba(242, 166, 160, 0.38);
  background: transparent;
  color: var(--danger);
}

.btn.ghost:hover {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
  gap: 46px;
}

.join-art {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--film-raised);
}

.join-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.join-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 13, 12, 0.82));
  content: "";
}

.join-art-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
}

.join-art-caption img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.join-panel {
  align-self: center;
}

.join-panel .lead {
  margin-top: 24px;
}

.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: start;
  gap: 32px;
}

.camera-column {
  min-width: 0;
}

.camera-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(135, 199, 242, 0.06), transparent 46%),
    var(--film-deep);
  aspect-ratio: 4 / 5;
}

.camera-cta::before,
.camera-cta::after {
  position: absolute;
  width: 52px;
  height: 52px;
  border-color: rgba(244, 241, 235, 0.35);
  content: "";
  pointer-events: none;
}

.camera-cta::before {
  top: 20px;
  left: 20px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.camera-cta::after {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.camera-cta .shutter {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--ivory);
  border-radius: 50%;
  padding: 20px;
  background: var(--film-raised);
  color: var(--ivory);
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(244, 241, 235, 0.09);
  transition: transform 120ms ease, background-color 160ms ease, opacity 160ms ease;
}

.camera-cta .shutter:hover {
  border-color: var(--blue);
  background: #1d1c19;
  transform: scale(1.03);
}

.camera-cta .shutter:active {
  transform: scale(0.96);
}

.camera-cta .shutter:disabled {
  cursor: wait;
}

.camera-cta .shutter img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.camera-cta .shutter.is-busy img {
  animation: shutter-pulse 900ms ease-in-out infinite alternate;
}

@keyframes shutter-pulse {
  to { opacity: 0.38; }
}

.camera-cta video,
.camera-cta img.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-controls {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: center;
}

.capture-status {
  min-height: 28px;
  margin: 12px 0 0;
  color: var(--ink-55);
  font-size: 13px;
  text-align: center;
}

.capture-status.is-error {
  color: var(--danger);
}

.capture-status.is-success {
  color: var(--success);
}

.capture-sidebar {
  min-width: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.capture-sidebar .stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  padding: 17px 12px;
  background: rgba(23, 22, 20, 0.76);
  text-align: center;
}

.stat .num {
  overflow: hidden;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
}

.stat .label {
  margin-top: 7px;
  color: var(--ink-55);
  font-size: 11px;
  line-height: 1.35;
}

.recent-heading {
  margin: 25px 0 10px;
  color: var(--ink-70);
  font-family: var(--serif);
  font-size: 23px;
}

.filmroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 2px 12px;
  scrollbar-color: var(--hairline-strong) transparent;
}

.filmroll .frame {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 74px;
  height: 86px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 8px;
  background: var(--film-raised);
}

.filmroll .frame > img:not(.preview) {
  width: 30px;
  height: 30px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.58;
}

.filmroll .frame.filled {
  border-color: rgba(135, 199, 242, 0.45);
  padding: 0;
}

.filmroll .frame.filled img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  mix-blend-mode: normal;
  opacity: 1;
}

.filmroll .frame.pending::after {
  position: absolute;
  inset: auto 4px 4px;
  border-radius: 3px;
  padding: 3px 4px;
  background: rgba(13, 13, 12, 0.82);
  color: var(--ivory);
  content: "Developing";
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-small);
  padding: 13px 16px;
  background: var(--ivory);
  color: var(--film);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.host-dashboard {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 28px;
}

.host-column {
  min-width: 0;
}

.host-invite {
  text-align: center;
}

.host-invite .section-title {
  justify-content: center;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  padding: 18px;
  background: var(--ivory);
}

.qr-box img {
  display: block;
  width: 100%;
  max-width: 260px;
}

.code-pill {
  margin: 14px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  padding: 13px;
  background: var(--film-deep);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
}

.share-link {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  padding: 11px 12px;
  background: var(--film-deep);
  color: var(--ink-55);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-invite .btn {
  margin-top: 12px;
}

.card .btn + .btn {
  margin-top: 10px;
}

.settings-copy {
  margin: 0;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.7;
}

.settings-copy strong {
  color: var(--ivory);
  font-weight: 550;
}

.cover-preview {
  width: 100%;
  max-height: 240px;
  margin: 16px 0;
  border-radius: var(--radius-small);
  object-fit: cover;
}

.cover-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.cover-form .btn {
  width: auto;
  min-width: 154px;
  margin: 0;
}

.payment-card {
  overflow: hidden;
  border-color: rgba(135, 199, 242, 0.27);
  background:
    linear-gradient(130deg, rgba(135, 199, 242, 0.06), transparent 58%),
    rgba(23, 22, 20, 0.8);
}

.payment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payment-kicker {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.capacity-stamp {
  flex: 0 0 auto;
  border: 1px solid rgba(135, 199, 242, 0.35);
  border-radius: 4px;
  padding: 6px 9px;
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 650;
}

.payment-copy {
  margin: 14px 0 16px !important;
  font-size: 14px !important;
}

.payment-alert {
  margin: 14px 0 0;
  border: 1px solid rgba(242, 166, 160, 0.35);
  border-radius: var(--radius-small);
  padding: 11px 12px;
  background: var(--danger-bg);
  color: #f4c5c0;
  font-size: 12px;
  line-height: 1.45;
}

.payment-alert.success {
  border-color: rgba(155, 214, 176, 0.35);
  background: rgba(59, 116, 78, 0.14);
  color: var(--success);
}

.purchase-grid {
  display: grid;
  gap: 9px;
}

.purchase-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  padding: 12px;
  background: rgba(9, 9, 8, 0.48);
}

.purchase-option.preferred {
  border-color: rgba(135, 199, 242, 0.55);
}

.purchase-option span {
  display: grid;
  gap: 2px;
}

.purchase-option strong {
  color: var(--ivory);
  font-size: 13px;
}

.purchase-option small {
  color: var(--ink-55);
  font-size: 10px;
}

.purchase-option button {
  min-width: 76px;
  min-height: 48px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-small);
  padding: 9px 12px;
  background: var(--blue);
  color: var(--film);
  font-weight: 700;
  cursor: pointer;
}

.payment-fineprint {
  margin: 13px 0 0;
  color: var(--ink-55);
  font-size: 10px;
  text-align: center;
}

.album-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.album-cover {
  width: min(100%, 420px);
  max-height: 240px;
  border-radius: var(--radius);
  object-fit: cover;
}

.album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.album-toolbar .lead {
  margin: 0;
}

.album-toolbar .btn {
  width: auto;
  min-width: 220px;
  margin: 0;
}

.countdown {
  display: grid;
  justify-items: center;
  max-width: 620px;
  margin: 28px auto 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 52px 28px;
  background: rgba(23, 22, 20, 0.72);
  text-align: center;
}

.countdown::before {
  width: 52px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--blue);
  content: "";
}

.countdown .film-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--film-deep);
}

.countdown .film-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.countdown .lead {
  max-width: 46ch;
  margin-bottom: 12px;
}

.countdown .time {
  margin: 10px 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
}

.countdown .btn {
  width: auto;
  min-width: 200px;
}

.recap-video {
  width: 100%;
  margin: 10px 0 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.sample-album-date {
  margin-top: 8px;
  color: var(--ink-55);
}

.sample-album-subtitle {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.sample-album-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 6px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(135, 199, 242, 0.26);
  border-radius: 14px;
  background: rgba(135, 199, 242, 0.06);
}

.sample-album-note p {
  max-width: 78ch;
  color: var(--ink-70);
  font-size: 13px;
  line-height: 1.6;
}

.sample-album-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(135, 199, 242, 0.4);
  border-radius: 9px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 14px;
}

.gallery figure {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--film-raised);
}

.gallery figure.album-photo--landscape {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.gallery figure.album-photo--portrait {
  aspect-ratio: 3 / 4;
}

.gallery figure[hidden] {
  display: none;
}

.album-photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--film-deep);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.album-photo-trigger::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(8, 9, 9, 0.88));
  pointer-events: none;
  content: "";
}

.album-photo-trigger:focus-visible {
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

.gallery .album-photo-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  object-fit: cover;
  background: var(--film-deep);
  filter: none;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.album-photo-trigger:hover img {
  transform: scale(1.018);
}

.album-photo-caption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.album-photo-caption strong {
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 25px);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.album-photo-caption small {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(9, 10, 10, 0.58);
  color: rgba(255, 255, 255, 0.8);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.gallery figcaption {
  min-height: 42px;
  padding: 10px 14px 0;
  color: var(--ink-70);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  text-align: left;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 14px;
}

.gallery-actions form {
  flex: 1 1 auto;
}

.gallery-actions .btn {
  min-height: 48px;
  margin: 0;
  padding: 9px 11px;
  font-size: 12px;
}

.gallery-actions .danger-action {
  color: var(--danger);
}

body.album-viewer-open {
  overflow: hidden;
}

.album-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #080909;
  color: var(--ink-90);
}

.album-viewer::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.album-viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 42%, rgba(135, 199, 242, 0.05), transparent 34rem),
    #080909;
}

.album-viewer-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--hairline);
  background: rgba(8, 9, 9, 0.92);
}

.album-viewer-header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.album-viewer-header strong {
  overflow: hidden;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-viewer-header [data-viewer-time],
.album-viewer-header [data-viewer-count] {
  color: var(--ink-55);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.album-viewer-close,
.album-viewer-nav {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: rgba(25, 27, 27, 0.9);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.album-viewer-close:hover,
.album-viewer-nav:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue);
  color: #080909;
}

.album-viewer-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.album-viewer-stage {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 0;
  padding: 18px clamp(14px, 3vw, 40px);
  overflow: hidden;
  touch-action: pan-y;
}

.album-viewer-stage img {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  filter: none;
}

.album-viewer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
  background: rgba(8, 9, 9, 0.94);
}

.album-viewer-footer > p {
  max-width: 72ch;
  color: var(--ink-55);
  font-size: 12px;
  line-height: 1.5;
}

.album-viewer-footer > p[hidden] {
  display: none;
}

.album-viewer-actions,
.album-viewer-actions .gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
}

.album-viewer-actions .btn {
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
}

.album-viewer-actions[hidden] {
  display: none;
}

.footer-note {
  margin: 28px 0 0;
  color: var(--ink-55);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.status-message {
  color: var(--success);
}

.album-live-status:empty {
  display: none;
}

.album-live-status {
  color: var(--ink-90);
}

.album-live-status .album-undo {
  min-height: 44px;
  margin: 0 0 0 10px;
  padding: 8px 14px;
}

.danger-zone {
  border-color: rgba(242, 166, 160, 0.28);
}

.danger-zone::before {
  background: var(--danger);
}

.danger-zone summary {
  min-height: 48px;
  color: var(--danger);
  cursor: pointer;
}

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

.danger-form input {
  flex: 1 1 180px;
}

.danger-form .btn {
  width: auto;
  margin: 0;
}

@media (max-width: 840px) {
  .join-layout,
  .capture-layout,
  .host-dashboard {
    grid-template-columns: 1fr;
  }

  .join-layout {
    gap: 30px;
  }

  .join-art {
    min-height: 360px;
    order: 2;
  }

  .join-panel {
    order: 1;
  }

  .camera-cta {
    min-height: 480px;
    max-height: 720px;
  }

  .host-dashboard {
    gap: 4px;
  }

  .album-intro,
  .album-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .album-intro {
    align-items: stretch;
  }

  .album-cover {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .album-toolbar .btn {
    width: 100%;
  }

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

  .album-viewer-stage {
    display: flex;
    padding: clamp(8px, 2vw, 14px);
  }

  .album-viewer-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(14, 16, 16, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .album-viewer-previous {
    left: 12px;
  }

  .album-viewer-next {
    right: 12px;
  }
}

@media (max-width: 560px) {
  .ops-nav-inner {
    padding: 0 18px;
  }

  .ops-nav-link {
    font-size: 13px;
  }

  .wrap {
    padding: 38px 18px 64px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .film-heading {
    margin-bottom: 24px;
  }

  .join-art {
    min-height: 300px;
  }

  .camera-cta {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .camera-cta .shutter {
    width: 88px;
    height: 88px;
  }

  .stat-row,
  .capture-sidebar .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-invite {
    padding: 20px;
  }

  .cover-form {
    grid-template-columns: 1fr;
  }

  .cover-form .btn {
    width: 100%;
  }

  .payment-card-head {
    flex-direction: column;
  }

  .purchase-option {
    align-items: stretch;
    flex-direction: column;
  }

  .purchase-option button {
    min-height: 48px;
  }

  .sample-album-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sample-album-badge {
    justify-self: start;
  }

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

  .gallery figure {
    border-radius: 13px;
  }

  .album-photo-caption {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }

  .album-photo-caption strong {
    font-size: 17px;
  }

  .album-photo-caption small {
    min-height: 20px;
    max-width: 100%;
    padding: 0 5px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .album-viewer-header {
    grid-template-columns: minmax(0, 1fr) auto 48px;
    gap: 10px;
    min-height: 68px;
    padding: 10px 14px;
  }

  .album-viewer-header strong {
    font-size: 21px;
  }

  .album-viewer-close,
  .album-viewer-nav {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .album-viewer-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 66px;
    padding: 10px 14px;
  }

  .album-viewer-actions,
  .album-viewer-actions .gallery-actions {
    justify-content: stretch;
  }

  .album-viewer-actions form,
  .album-viewer-actions .btn {
    flex: 1 1 auto;
  }

  .countdown {
    padding: 40px 20px;
  }

  .danger-form .btn {
    width: 100%;
  }

  .toast {
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: none;
  }
}

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