@font-face {
  font-family: Unbounded;
  src: url('/assets/unbounded.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Onest;
  src: url('/assets/onest-cyrillic.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0400-052F;
  font-weight: 100 900;
}
@font-face {
  font-family: Onest;
  src: url('/assets/onest-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --ink: #073370;
  --blue: #1679ac;
  --muted: #426078;
  --paper: #f8f6f0;
  --orange: #d15a22;
  --line: #c7d4da;
  --display: Unbounded, sans-serif;
  --body: Onest, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 var(--body);
  background: #dfe8ec;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button {
  touch-action: manipulation;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--display);
  text-wrap: balance;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-shell {
  max-width: 1080px;
  min-height: 100svh;
  margin: auto;
  background: var(--paper) url('/assets/paper.png') center/cover;
  position: relative;
  padding: 30px 66px 0;
  overflow: hidden;
}
.page-shell:before {
  content: '';
  position: absolute;
  top: 90px;
  left: -70px;
  width: 200px;
  height: 250px;
  background: url('/assets/paint-blue.png') center/contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.page-shell:after {
  content: '';
  position: absolute;
  right: -110px;
  top: 170px;
  width: 230px;
  height: 360px;
  background: url('/assets/paint-orange.png') center/contain no-repeat;
  opacity: 0.8;
  pointer-events: none;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 11px/1.3 var(--display);
  letter-spacing: 0.025em;
}
.brand svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.5;
}
.masthead-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}
.intro {
  position: relative;
  text-align: center;
  margin: 42px 0 28px;
}
.intro h1 {
  font-size: clamp(28px, 3.8vw, 43px);
  font-weight: 650;
  line-height: 1.26;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.intro h1 span {
  color: var(--blue);
}
.intro p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 0;
}
.postmark {
  position: absolute;
  width: 135px;
  right: -25px;
  top: -25px;
  opacity: 0.7;
  transform: rotate(12deg);
  pointer-events: none;
}
.steps {
  display: flex;
  justify-content: center;
  gap: 45px;
  list-style: none;
  padding: 0;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: 13px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.steps li span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.steps [aria-current] {
  color: var(--ink);
  font-weight: 650;
}
.steps [aria-current] span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
main {
  position: relative;
  z-index: 1;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-top h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 0;
}
.section-top > span {
  font-size: 12px;
  color: var(--muted);
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.style-option {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  text-align: left;
  min-width: 0;
}
.film-photo {
  display: block;
  position: relative;
  aspect-ratio: 1.21;
  transition: transform 0.25s ease-out;
}
.film-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 17px 10px;
}
.film-border {
  position: absolute;
  inset: 0;
  background: url('/assets/film-frame.png') center/100% 100%;
  pointer-events: none;
}
.style-option:nth-child(1) .film-photo {
  transform: rotate(-4deg);
}
.style-option:nth-child(2) .film-photo {
  transform: rotate(3deg);
}
.style-option:nth-child(3) .film-photo {
  transform: rotate(-2deg);
}
.style-option:hover .film-photo,
.style-option.selected .film-photo {
  transform: rotate(0) translateY(-4px);
}
.choice-mark {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: none;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 17px;
}
.selected .choice-mark {
  display: grid;
}
.style-name {
  display: block;
  font: 550 13px/1.5 var(--display);
  margin-top: 16px;
}
.style-description {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.selection-note {
  text-align: center;
  font-size: 13px;
  margin: 29px 0 13px;
  color: var(--muted);
}
.primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 440px;
  min-height: 56px;
  padding: 14px 22px;
  margin: 0 auto;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  font: 500 14px/1.5 var(--display);
  transition: background 0.2s;
}
.primary:hover:enabled {
  background: #145989;
}
.primary > span:last-child {
  margin-left: auto;
  font-size: 22px;
}
.primary svg {
  flex-shrink: 0;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}
.availability {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 25px 0 30px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.availability.full .status-dot {
  background: var(--orange);
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  gap: 14px;
}
.prototype {
  font-size: 12px;
  padding: 15px 0 22px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}
.prototype strong {
  font-weight: 600;
}
.prototype p {
  margin: 5px 0;
}
.prototype div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
  font-size: 12px;
}
.camera-frame {
  position: relative;
  max-width: 390px;
  aspect-ratio: 4/5;
  margin: 0 auto 20px;
  background: #dce7ea;
  border: 10px solid white;
  box-shadow: 0 12px 26px #07337015;
  overflow: hidden;
}
.camera-frame video,
.camera-frame > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.camera-frame > img {
  transform: none;
}
.face-guide {
  position: absolute;
  width: 59%;
  height: 63%;
  border: 1px dashed #fff;
  left: 20.5%;
  top: 12%;
  border-radius: 48%;
  box-shadow: 0 0 0 200px #07337020;
}
.camera-caption {
  position: absolute;
  bottom: 20px;
  left: 10%;
  width: 80%;
  font-size: 12px;
  text-align: center;
  color: white;
  background: #073370dc;
  border-radius: 8px;
  padding: 8px;
}
.camera-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  background: #e1eaf0;
  color: var(--muted);
  padding: 30px;
}
.camera-off svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}
.error {
  padding: 13px 18px;
  background: #fae9df;
  color: #883610;
  border-radius: 10px;
  font-size: 14px;
  max-width: 500px;
  margin: 14px auto;
}
.photo-consent {
  max-width: 400px;
  margin: 0 auto 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.secondary {
  display: block;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
  width: 100%;
  max-width: 440px;
  color: var(--ink);
  margin: 10px auto 0;
}
.ticket {
  max-width: 390px;
  background: #fff;
  margin: 0 auto 22px;
  padding: 25px;
  box-shadow: 0 10px 30px #07337012;
  transform: rotate(-1deg);
  text-align: center;
}
.ticket-label {
  font: 11px var(--display);
  color: var(--muted);
}
.ticket h2 {
  font-size: 22px;
  margin: 15px 0;
}
.ticket-image {
  aspect-ratio: 1.2;
  overflow: hidden;
}
.ticket-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticket p {
  margin: 18px 0 12px;
  font-size: 16px;
}
.ticket-style {
  display: block;
  border-top: 1px dashed var(--line);
  padding-top: 15px;
  font-size: 12px;
}
.waiting > p {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
/* Screen coordinates are based on the actual aperture, never on the wide viewport. */
.screen-body {
  background: #005e93;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.screen-circle {
  position: relative;
  width: min(94svh, 94vw);
  aspect-ratio: 1;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
  container-type: inline-size;
}
.idle-screen {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(circle closest-side, #000 94%, transparent 100%);
}
.idle-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screen-invitation {
  position: absolute;
  z-index: 2;
  top: 69%;
  left: 25%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3cqw;
  color: #005e93;
  margin: 0;
  padding: 0;
  border: 0;
}
.screen-slogan {
  margin: 0;
  font: 600 3cqw/1.18 var(--display);
  color: #fff;
  letter-spacing: -0.025em;
  text-align: left;
}
.screen-slogan span {
  display: block;
  white-space: nowrap;
}
.screen-message {
  flex: 1;
  min-width: 0;
}
.screen-call {
  margin: 1.8cqw 0 0;
  color: #fff;
  font: 400 2.2cqw/1.3 var(--body);
  text-align: left;
}
.screen-qr {
  flex: 0 0 18cqw;
  width: 18cqw;
  border-radius: 1.2cqw;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  background: #fff;
  color: #005e93;
  padding-bottom: 0.5cqw;
}
.screen-qr img {
  display: block;
  width: 18cqw;
  height: 18cqw;
}
.screen-qr span {
  display: block;
  font: 500 1.5cqw/1.2 var(--body);
}
.screen-session {
  position: absolute;
  inset: 0;
}
.screen-session::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #005e93 url('/assets/screen-costume-poster-blue-v2.png') center/cover;
  mask-image: radial-gradient(circle closest-side, #000 94%, transparent 100%);
}
.screen-session > img {
  position: absolute;
  inset: 9.5% 21% auto;
  width: 58%;
  height: 58%;
  object-fit: contain;
  object-position: center;
  background: #f5f5f3;
}
.screen-session #source-image {
  transition:
    filter 1.8s ease-out,
    transform 6s ease-out;
}
.screen-session #result-image {
  opacity: 0;
  transition:
    opacity 1.8s ease-out,
    filter 2s ease-out;
  filter: blur(18px);
}
.screen-session.transforming #source-image {
  filter: blur(22px) saturate(0.3);
  transform: scale(1);
}
.screen-session.revealed #result-image {
  opacity: 1;
  filter: sepia(0.3) saturate(1.35);
}
.screen-session.revealed[data-style='meetingspb_outfit_02'] #result-image {
  filter: hue-rotate(25deg) saturate(1.6);
}
.screen-session.revealed[data-style='meetingspb_outfit_06'] #result-image {
  filter: hue-rotate(165deg) saturate(1.3);
}
#wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.screen-caption {
  position: absolute;
  top: 10%;
  left: 13%;
  width: 74%;
  text-align: center;
  color: white;
  text-shadow: 0 2px 15px #001834;
}
.screen-caption > span {
  font-size: 2cqw;
  background: #073370e8;
  padding: 1cqw 2cqw;
  border-radius: 20px;
}
.screen-caption h2 {
  font-size: 4.3cqw;
  line-height: 1.3;
  margin: 2.8cqw 0 0;
}
.screen-caption p {
  font-size: 1.7cqw;
  margin-top: 1.5cqw;
  display: inline-block;
  background: #073370e8;
  padding: 0.6cqw 1.5cqw;
  border-radius: 20px;
}
.countdown {
  position: absolute;
  bottom: 3.5%;
  left: 33%;
  width: 34%;
  display: flex;
  gap: 1cqw;
  align-items: center;
  justify-content: center;
  color: #005e93;
  background: #e6f5ff;
  border-radius: 40px;
  padding: 0.4cqw 1cqw;
}
.countdown span {
  font-size: 1.6cqw;
  white-space: nowrap;
  line-height: 1;
}
.countdown strong {
  font: 600 2.5cqw/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.screen-offline {
  position: absolute;
  top: 5%;
  bottom: auto;
  z-index: 3;
  left: 20%;
  width: 60%;
  background: #fff;
  text-align: center;
  padding: 10px;
  font-size: 2cqw;
  border-radius: 12px;
}
.screen-tools {
  position: fixed;
  inset: 10px 18px auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #c3d4df;
  font-size: 11px;
  z-index: 3;
}
.screen-tools button {
  background: #17394e;
  border: 0;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
}
@media (min-width: 800px) {
  #capture,
  #waiting {
    max-width: 650px;
    margin: auto;
  }
}
.page-shell {
  padding: 22px 22px 0;
  max-width: 480px;
}
.masthead-note {
  font-size: 10px;
}
.brand {
  font-size: 9px;
  gap: 7px;
}
.brand svg {
  width: 32px;
  height: 32px;
}
.intro {
  margin: 37px 0 25px;
}
.intro h1 {
  font-size: 28px;
  line-height: 1.3;
}
.intro p {
  font-size: 14px;
}
.postmark {
  width: 85px;
  right: -54px;
  top: -35px;
  opacity: 0.5;
}
.page-shell:before {
  width: 150px;
  left: -95px;
  top: 25px;
}
.page-shell:after {
  right: -160px;
  top: 145px;
}
.steps {
  gap: 22px;
  margin: 25px 0 29px;
  font-size: 11px;
}
.steps li {
  gap: 6px;
}
.steps li span {
  width: 23px;
  height: 23px;
}
.section-top {
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 8px;
}
.section-top h2 {
  font-size: 15px;
}
.section-top > span {
  font-size: 10px;
  max-width: 65px;
  text-align: right;
}
.style-grid {
  gap: 11px;
}
.film-photo {
  aspect-ratio: 0.82;
}
.film-photo > img {
  padding: 10px 5px;
}
.style-name {
  font-size: 10px;
  line-height: 1.45;
  margin-top: 11px;
  min-height: 29px;
}
.style-description {
  font-size: 10px;
  line-height: 1.4;
}
.choice-mark {
  width: 24px;
  height: 24px;
  font-size: 13px;
  right: -3px;
  bottom: -3px;
}
.selection-note {
  margin-top: 24px;
  font-size: 12px;
}
.primary {
  font-size: 12px;
  min-height: 54px;
}
.hint {
  font-size: 11px;
}
.availability {
  font-size: 11px;
  margin: 22px 0;
}
footer {
  font-size: 9px;
  padding: 18px 0;
}
.prototype {
  font-size: 11px;
}
.prototype div {
  flex-wrap: wrap;
  gap: 13px;
}
.camera-frame {
  max-width: 300px;
}
.camera-caption {
  font-size: 10px;
}
.section-top .text-button {
  font-size: 11px;
  flex-shrink: 0;
}
.ticket {
  padding: 20px;
}
.screen-tools > span {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* The visitor is always a phone-first flow, including the desktop preview. */
.page-shell {
  max-width: 480px;
  overflow: clip;
}
.intro {
  margin: 28px 0 20px;
}
.intro h1 {
  font-size: 27px;
}
.intro p {
  font-size: 14px;
}
.steps {
  margin: 23px 0 25px;
}
.style-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 14px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
  overscroll-behavior-x: contain;
}
.style-option {
  flex: 0 0 64%;
  scroll-snap-align: center;
  padding: 4px 0;
}
.film-photo {
  aspect-ratio: 1.16;
}
.film-photo > img {
  padding: 15px 8px;
}
.style-name {
  font-size: 12px;
  min-height: 0;
  margin-top: 12px;
}
.style-description {
  font-size: 12px;
  margin-top: 5px;
}
.choice-mark {
  width: 29px;
  height: 29px;
  font-size: 16px;
}
.capture-dock {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: var(--paper) url('/assets/paper.png') center/cover;
  padding: 12px 0 max(10px, env(safe-area-inset-bottom));
  margin-top: 5px;
}
.selection-note {
  margin: 0 0 10px;
}
.primary {
  font-size: 12px;
  min-height: 54px;
}
.hint {
  margin: 8px 0 0;
}
.section-top .text-button {
  min-height: 44px;
  display: flex;
  align-items: center;
}
body[data-stage='capture'] .intro,
body[data-stage='waiting'] .intro {
  display: none;
}
body[data-stage='capture'] .steps,
body[data-stage='waiting'] .steps {
  margin-top: 28px;
}
.camera-frame {
  width: 100%;
  max-width: 390px;
  max-height: 54svh;
  aspect-ratio: 4/5;
}
.prototype .text-button,
.prototype a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 601px) {
  .page-shell {
    box-shadow: 0 12px 45px #07337015;
  }
  .screen-tools > span {
    display: inline;
  }
}

/* Supplied full-length costumes stay uncropped in the mobile selection strip. */
.outfit-preview {
  display: block;
  position: relative;
  aspect-ratio: 937 / 1678;
  background: #fff;
  border-radius: 12px;
  outline: 1px solid var(--line);
  outline-offset: 0;
}
.outfit-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.selected .outfit-preview {
  outline: 2px solid var(--ink);
}
.style-option:hover .outfit-preview {
  outline-color: var(--blue);
}
.outfit-preview .choice-mark {
  right: 8px;
  bottom: 8px;
}
.page-shell > main > .intro {
  margin-top: 12px;
}

.style-option {
  flex-basis: min(64%, 27svh);
}

/* Smaller transparent outfits; touch scrolling stays native and supports momentum. */
.style-grid {
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.style-option {
  flex-basis: min(54%, 21svh);
}
.outfit-preview {
  background: transparent;
  outline-color: transparent;
}
.outfit-preview img {
  padding: 8px;
}
.result-actions {
  margin: 0 auto 18px;
  max-width: 390px;
  text-align: center;
}
.result-actions a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-actions img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 16px auto;
}
.ticket-image:has(img[src^='/api/results']) {
  aspect-ratio: 1;
}
.ticket-image img[src^='/api/results'] {
  object-fit: contain;
}
.screen-session.revealed[data-demo='false'] #result-image {
  filter: none;
}

.screen-mode-toggle {
  position: fixed;
  z-index: 4;
  bottom: 22px;
  left: 22px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #a5d7ee;
  border-radius: 12px;
  background: #003f68;
  color: #fff;
  font: 500 13px var(--body);
}
.screen-mode-toggle[aria-pressed='true'] {
  background: #e6f5ff;
  color: #005e93;
}
.screen-mode-error {
  position: fixed;
  bottom: 74px;
  left: 22px;
  width: 210px;
  color: #fff;
  font-size: 13px;
}
