:root {
  color-scheme: dark;
  --navy: #111522;
  --navy-deep: #0b101b;
  --panel: #1b2130;
  --line: #353d4d;
  --red: #c91c3c;
  --red-hover: #e03250;
  --coral: #ff5663;
  --pink: #efa1ae;
  --text: #f8f5f6;
  --muted: #aeb2bd;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 44px)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 14px; background: white; color: #111522; font-weight: 700; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.site-header { min-height: 78px; padding: 6px max(22px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy); border-bottom: 1px solid #ffffff16; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 62px; width: auto; max-width: none; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-header nav > a:not(.nav-book) { color: #d7d8df; border-bottom: 2px solid transparent; padding: 11px 0 9px; white-space: nowrap; }
.site-header nav > a:not(.nav-book):hover { color: white; border-color: var(--coral); }
.nav-book { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--red); color: white; white-space: nowrap; }
.nav-book:hover { background: var(--red-hover); }

.eyebrow { margin: 0; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 12px 18px; min-height: 44px; border-radius: 2px; font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; }
.button-gold { background: var(--red); color: white; }
.button-gold:hover:not(:disabled) { background: var(--red-hover); }
.button-outline { background: transparent; color: white; border: 1px solid #7c8596; }
.button-outline:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.text-link { border: 0; background: transparent; color: var(--pink); padding: 8px 0; font-size: 12px; font-weight: 800; }
.text-link:hover, footer a:hover { color: white; }

.booth-section { padding: 12px 0 72px; background: #111622; border-bottom: 1px solid #ffffff12; }
.booth-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; margin-inline: auto; }
.camera-panel, .settings-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 20px; }
.camera-panel { background: #252e40; border-color: #475368; }
.camera-topline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 15px; color: #c9cbd1; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.live-label { justify-self: start; color: white; white-space: nowrap; }
.camera-title { justify-self: center; margin: 0; color: white; font: 400 clamp(20px, 2.2vw, 28px)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; text-align: center; white-space: nowrap; }
.camera-title em { color: var(--pink); font-weight: 400; }
.camera-top-actions { display: inline-flex; align-items: center; justify-self: end; gap: 20px; }
.fullscreen-toggle { border: 1px solid #697183; background: transparent; color: white; padding: 6px 9px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.fullscreen-toggle:hover { border-color: var(--pink); color: var(--pink); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; background: var(--coral); }
.viewfinder { position: relative; width: min(100%, 820px, max(100px, calc((100dvh - 370px) * 1.5))); margin-inline: auto; aspect-ratio: 3/2; overflow: hidden; background: radial-gradient(circle at center, #343b4d, #121823 70%); border: 1px solid #495163; }
.viewfinder video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.viewfinder.not-mirrored video { transform: none; }
.custom-preview { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.camera-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; padding: 20px; text-align: center; background: radial-gradient(circle at center, #30394a, #111722 72%); }
.camera-placeholder strong { font-family: Georgia, 'Times New Roman', serif; font-size: 25px; font-weight: 400; }
.camera-icon { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid var(--pink); border-radius: 50%; color: var(--pink); font-size: 46px; line-height: 1; }
.camera-placeholder .button { min-width: 174px; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; background: #090c14a8; color: white; font: 400 clamp(70px, 15vw, 170px) Georgia, serif; }
.flash { position: absolute; inset: 0; pointer-events: none; background: white; opacity: 0; }
.flash.active { animation: flash .55s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.camera-controls { display: flex; flex-wrap: wrap; gap: 10px; width: min(100%, 820px, max(100px, calc((100dvh - 370px) * 1.5))); margin: 16px auto 0; }
.camera-controls .button { flex: 1; }
.camera-choice { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 180px; min-height: 44px; padding: 0 12px; border: 1px solid #7c8596; color: var(--muted); font-size: 11px; font-weight: 800; }
.camera-choice select { flex: 1; min-width: 0; border: 0; padding: 11px 2px; background: transparent; color: white; font-size: 11px; font-weight: 800; text-overflow: ellipsis; cursor: pointer; }
.camera-choice select:focus-visible { outline-offset: 1px; }
.camera-status { width: min(100%, 820px, max(100px, calc((100dvh - 370px) * 1.5))); color: var(--muted); font-size: 11px; line-height: 1.5; margin: 13px auto 0; min-height: 17px; }
body.booth-expanded { overflow: hidden; }
body.modal-open { overflow: hidden; }
.camera-panel:fullscreen, .camera-panel.is-expanded { display: flex; flex-direction: column; width: 100vw; height: 100dvh; max-width: none; padding: 20px; border: 0; border-radius: 0; background: var(--navy); overflow: auto; }
.camera-panel.is-expanded { position: fixed; inset: 0; z-index: 1000; }
.camera-panel:fullscreen .viewfinder, .camera-panel.is-expanded .viewfinder { flex: 0 0 auto; width: min(100%, calc((100dvh - 185px) * 1.5)); max-width: none; height: auto; margin: auto; }
.camera-panel:fullscreen .camera-controls, .camera-panel.is-expanded .camera-controls { width: min(100%, 1080px); max-width: none; margin: 12px auto 0; }
.camera-panel:fullscreen .camera-status, .camera-panel.is-expanded .camera-status { width: min(100%, 1080px); text-align: center; }

.settings-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 28px minmax(0, 1fr); gap: 18px; align-items: center; width: 100%; padding: 24px; }
.settings-copy { min-width: 0; }
.settings-panel h2 { font: 400 29px/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; margin: 10px 0; }
.settings-description { color: #c8c9d0; font-size: 11px; line-height: 1.5; margin: 0; max-width: 310px; }
.preset-picker { position: relative; z-index: 2; min-width: 0; }
.preset-toggle { width: 100%; justify-content: space-between; }
.preset-toggle span { color: var(--pink); font-size: 17px; line-height: .5; }
.preset-menu { position: absolute; z-index: 20; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(760px, calc(100vw - 40px)); max-height: min(640px, calc(100dvh - 48px)); overflow: auto; padding: 17px; border: 1px solid #657187; background: #202a3b; box-shadow: 0 20px 50px #0008; }
.preset-menu .eyebrow { margin-bottom: 14px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preset-option { display: block; min-width: 0; padding: 6px; border: 1px solid #586276; background: #263144; color: white; text-align: left; font-size: 10px; font-weight: 700; line-height: 1.3; }
.preset-option:hover, .preset-option:focus-visible { border-color: var(--pink); }
.preset-option[aria-pressed="true"] { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.preset-option img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 6px; object-fit: contain; background: repeating-conic-gradient(#50596a 0 25%, #384255 0 50%) 0 0 / 14px 14px; }
.overlay-or { color: var(--muted); font: italic 18px Georgia, serif; text-align: center; }
.upload-box { min-width: 0; border: 1px dashed #697183; padding: 10px; }
.upload-label { width: 100%; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box input:focus-visible + .upload-label { outline: 2px solid var(--coral); outline-offset: 3px; }
.overlay-selection { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; min-height: 32px; border-top: 1px solid var(--line); padding-top: 10px; }
.overlay-selection p { flex: 1; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; }
.overlay-selection .text-link { white-space: nowrap; }
.result-modal:not([open]) { display: none; }
.result-modal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); align-items: center; gap: 26px; width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #e8cfd5; border-radius: 4px; background: #f7eaed; color: #271d23; overflow: auto; box-shadow: 0 24px 90px #0008; }
.result-modal::backdrop { background: #050813d9; backdrop-filter: blur(4px); }
.result-modal > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #191b27; box-shadow: 0 9px 24px #0003; }
.result-modal > img { -webkit-touch-callout: default; user-select: auto; }
.ios-save-tip { padding: 12px 14px; border-left: 3px solid var(--red); background: #ffffffad; }
.result-content { min-width: 0; }
.result-content h2 { font: 400 clamp(30px, 3vw, 43px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; margin: 13px 0; }
.result-content p:not(.eyebrow) { color: #685e63; font-size: 13px; line-height: 1.5; }
.result-actions { display: grid; gap: 10px; margin-top: 24px; }
.result-actions .button { width: 100%; }
.result-actions .button-outline { color: #271d23; border-color: #8c7880; }

.how-section { padding-block: 90px 100px; }
.how-section h2, .full-copy h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.055em; }
.how-section h2 { font-size: clamp(39px, 4.2vw, 57px); margin: 15px 0 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 38px; }
.how-grid article { border-top: 1px solid #ba3950; padding-top: 18px; }
.how-grid span { color: var(--coral); font: 19px Georgia, serif; }
.how-grid h3 { font: 400 26px Georgia, serif; margin: 23px 0 10px; }
.how-grid p, .small-note { color: var(--muted); font-size: 13px; line-height: 1.65; }
.small-note { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 20px; font-size: 11px; }
.small-note a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

.full-section { background: #f7eaed; color: #211b20; padding: 100px 0; }
.full-section .eyebrow, .result-modal .eyebrow { color: #a82642; }
.full-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.full-copy h2 { font-size: clamp(44px, 4.8vw, 67px); line-height: 1.05; margin: 20px 0; }
.full-copy h2 em { color: #c44b66; font-weight: 400; }
.full-copy > p:not(.eyebrow) { color: #5f565d; line-height: 1.7; max-width: 460px; }
.full-copy .button { margin-top: 22px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-grid article { overflow: hidden; border: 1px solid #e0cdd2; background: #fff8f9; }
.feature-grid img { display: block; width: 100%; height: 180px; object-fit: cover; background: #232b3b; }
.feature-card-copy { padding: 16px 18px 19px; }
.feature-grid h3 { font: 400 19px Georgia, serif; margin: 0 0 6px; }
.feature-grid p { color: #675d63; font-size: 11px; line-height: 1.5; margin: 0; }
.feature-note { margin: 10px 0 0; color: #6b6067; font-size: 10px; text-align: right; }

footer { background: var(--navy-deep); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 12px; }
.footer-inner img { width: auto; height: 62px; }
.footer-inner a { color: var(--pink); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
.info-page { min-height: calc(100dvh - 180px); padding-block: 55px 85px; }
.info-page h1 { font: 400 clamp(36px, 6vw, 58px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; margin: 12px 0 20px; }
.info-page h2 { font: 400 27px/1.2 Georgia, 'Times New Roman', serif; margin: 34px 0 9px; }
.info-page p, .info-page li { max-width: 760px; color: #d3d5dc; font-size: 15px; line-height: 1.7; }
.info-page a:not(.button) { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.info-page .button { margin-top: 14px; }
.info-page .eyebrow { color: var(--coral); }
.info-page details { max-width: 800px; border-top: 1px solid var(--line); padding: 15px 0; }
.info-page details:last-of-type { border-bottom: 1px solid var(--line); }
.info-page summary { cursor: pointer; color: white; font-weight: 700; font-size: 16px; }
.info-page details p { margin-bottom: 3px; }
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flash.active { animation: none; }
}

@media (max-width: 950px) {
  .full-layout { grid-template-columns: 1fr; }
  .full-layout { gap: 42px; }
  .site-header nav { gap: 17px; }
  .settings-panel { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); }
  .settings-copy { grid-column: 1 / -1; }
  .preset-picker { grid-column: 1; }
  .preset-menu { left: 0; transform: none; width: min(760px, calc(100vw - 60px)); }
  .overlay-or { grid-column: 2; }
  .upload-box { grid-column: 3; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 30px, 1200px); }
  .site-header { min-height: 64px; padding: 5px 15px; }
  .brand img { height: 50px; }
  .site-header nav > a:not(.nav-book) { display: none; }
  .nav-book { padding: 10px 13px; font-size: 10px; }
  .nav-book span { display: none; }
  .booth-section { padding: 12px 0 60px; }
  .camera-panel, .settings-panel { padding: 14px; }
  .settings-panel { grid-template-columns: 1fr; gap: 13px; }
  .preset-menu { width: min(440px, calc(100vw - 60px)); }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-copy, .preset-picker, .overlay-or, .upload-box, .overlay-selection { grid-column: 1; }
  .overlay-or { font-size: 15px; }
  .camera-topline { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; font-size: 8px; }
  .live-label { grid-column: 1; grid-row: 1; }
  .camera-title { grid-column: 1 / -1; grid-row: 2; font-size: clamp(15px, 4.2vw, 18px); white-space: normal; }
  .camera-top-actions { grid-column: 2; grid-row: 1; }
  .camera-top-actions { gap: 8px; }
  .camera-top-actions > span { display: none; }
  .fullscreen-toggle { font-size: 9px; padding: 7px; }
  .camera-placeholder { gap: 10px; }
  .camera-placeholder strong { font-size: 21px; }
  .camera-icon { width: 53px; height: 53px; font-size: 38px; }
  .camera-controls .button { flex-basis: 100%; }
  .camera-choice { flex-basis: 100%; }
  .result-modal { grid-template-columns: 1fr; gap: 15px; padding: 16px; }
  .result-content h2 { font-size: 30px; margin: 7px 0; }
  .result-content p:not(.eyebrow) { margin: 8px 0; }
  .result-actions { margin-top: 14px; }
  .how-section, .full-section { padding-block: 68px; }
  .how-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-grid img { height: 210px; }
  .how-grid { gap: 25px; }
  .how-grid h3 { margin-top: 14px; }
  .full-copy h2 { font-size: 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-height: 540px) {
  .camera-placeholder { gap: 5px; padding: 5px; }
  .camera-placeholder .camera-icon { display: none; }
  .camera-placeholder strong { font-size: 16px; }
  .camera-placeholder .button { min-width: 0; min-height: 34px; max-width: calc(100% - 8px); padding: 7px 10px; font-size: 10px; }
}
@media (max-height: 450px) {
  .camera-placeholder strong { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1100px) {
  .site-header { display: none; }
  .booth-section { padding-top: 0; }
  .booth-section .wrap { width: 100%; }
  .booth-layout { gap: 8px; }
  .camera-panel, .camera-panel:fullscreen, .camera-panel.is-expanded { display: flex; flex-direction: column; width: 100%; height: 100dvh; min-height: 0; padding: 6px; border: 0; overflow: hidden; }
  .camera-topline { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); flex: none; min-height: 23px; gap: 6px; margin-bottom: 3px; }
  .live-label { grid-column: 1; grid-row: 1; }
  .camera-title { grid-column: 2; grid-row: 1; font-size: clamp(13px, 2vw, 17px); white-space: nowrap; }
  .camera-top-actions { grid-column: 3; grid-row: 1; }
  .viewfinder, .camera-panel:fullscreen .viewfinder, .camera-panel.is-expanded .viewfinder { flex: 0 0 auto; width: min(100%, calc((100dvh - 120px) * 1.5)); max-width: none; height: auto; margin: auto; }
  .camera-controls, .camera-panel:fullscreen .camera-controls, .camera-panel.is-expanded .camera-controls { flex: none; flex-wrap: nowrap; width: min(100%, 480px); max-width: none; gap: 6px; margin: 4px auto 0; }
  .camera-controls .button, .camera-choice { flex: 1 1 0; min-width: 0; min-height: 34px; }
  .camera-controls .button { padding: 7px 10px; }
  .camera-choice span { display: none; }
  .camera-choice select { padding-block: 7px; }
  .camera-status, .camera-panel:fullscreen .camera-status, .camera-panel.is-expanded .camera-status { flex: none; width: min(100%, 480px); min-height: 11px; margin: 3px auto 0; font-size: 9px; line-height: 1.2; }
  .camera-panel.camera-ready .camera-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media print {
  @page { size: 6in 4in; margin: 0; }
  html, body { background: white; margin: 0; padding: 0; width: 6in; height: 4in; }
  .site-header, main, footer, .result-modal { display: none !important; }
  .print-only { display: block !important; width: 6in; height: 4in; }
  .print-only img { display: block; width: 6in; height: 4in; object-fit: contain; }
}
