/* VIEW-FIND canonical site stylesheet.
   Preserves the established production cascade in a single maintained file. */

:root {
  color-scheme: dark;
  --legal-bg: #11100d;
  --legal-panel: rgba(28, 25, 20, 0.94);
  --legal-text: #f4efe4;
  --legal-muted: #bdb4a3;
  --legal-line: rgba(244, 239, 228, 0.18);
  --legal-accent: #d4aa64;
}
* { box-sizing: border-box; }
html { background: var(--legal-bg); }
body.legal-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(142, 78, 47, .22), transparent 38rem),
    var(--legal-bg);
  color: var(--legal-text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
.legal-shell { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.legal-brand { color: var(--legal-accent); letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; }
.legal-page h1 { margin: 12px 0 8px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 500; }
.legal-updated { color: var(--legal-muted); margin-bottom: 32px; }
.legal-card { background: var(--legal-panel); border: 1px solid var(--legal-line); border-radius: 18px; padding: clamp(22px, 4vw, 38px); box-shadow: 0 22px 60px rgba(0,0,0,.3); }
.legal-card h2 { margin: 32px 0 8px; color: var(--legal-accent); font-size: 1.15rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 14px; }
.legal-card a { color: #f2cf91; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 15px 0; border-bottom: 1px solid var(--legal-line); text-align: left; vertical-align: top; }
.legal-table th { width: 34%; padding-right: 24px; color: var(--legal-accent); font-weight: 600; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--legal-line); border-radius: 999px; color: var(--legal-text); text-decoration: none; background: rgba(255,255,255,.04); }
.legal-button:hover { border-color: var(--legal-accent); }
.site-legal-footer {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: #090b0a;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.site-legal-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-legal-footer a:hover { color: #fff; text-decoration: underline; }
.site-legal-footer .site-legal-name { color: #d4aa64; }
@media (max-width: 620px) {
  .legal-shell { width: min(100% - 22px, 900px); padding-top: 28px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: 0; padding-bottom: 2px; }
  .legal-table td { padding-top: 0; }
  .site-legal-footer { gap: 8px; padding: 8px 10px; font-size: 10px; }
  .site-legal-footer .site-legal-name { display: none; }
}


/* Overview map shown directly after the opening hero. */
.overview-map-section {
  color: #111312;
  background: #f3eee3;
  border-top: 1px solid rgba(17,19,18,.18);
  border-bottom: 1px solid rgba(17,19,18,.18);
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  min-height: 620px;
}
.overview-map-copy {
  padding: clamp(54px, 7vw, 100px) clamp(24px, 6vw, 86px);
  align-self: center;
}
.overview-map-copy h2 {
  margin: 16px 0 22px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .98;
  letter-spacing: -.05em;
}
.overview-map-copy h2 em { color: #164b82; font-weight: 400; }
.overview-map-copy > p:not(.eyebrow) { color: #575850; max-width: 440px; font-size: 16px; line-height: 1.65; }
.overview-map-copy > a {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 30px;
  border-bottom: 1px solid #111312; letter-spacing: .11em; font-size: 10px; font-weight: 900;
}
.overview-map-wrap { min-height: 620px; background: #d8d2c6; }
#overview-map { width: 100%; height: 100%; min-height: 620px; }
.overview-map-marker-shell { background: transparent; border: 0; }
.overview-map-marker {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: #fff; background: #A22041; border: 2px solid #fffaf0;
  font-family: Arial, sans-serif; font-size: 11px; font-weight: 900;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.leaflet-popup-content { min-width: 180px; font-family: Arial, sans-serif; }
.leaflet-popup-content strong, .leaflet-popup-content small, .leaflet-popup-content a { display: block; }
.leaflet-popup-content strong { margin-bottom: 4px; font-size: 13px; }
.leaflet-popup-content small { color: #666; margin-bottom: 9px; }
.leaflet-popup-content a { color: #164b82; font-weight: 700; }
@media (max-width: 760px) {
  .overview-map-section { grid-template-columns: 1fr; min-height: 0; }
  .overview-map-copy { padding: 50px 20px 36px; }
  .overview-map-copy h2 { font-size: clamp(40px, 13vw, 58px); }
  .overview-map-wrap, #overview-map { min-height: 430px; }
  .site-legal-footer { flex-wrap: wrap; white-space: normal; }
}


/* Requested home hero layout */
.site-header{display:none!important;}
.overview-map-section{display:none!important;}
.hero{min-height:100svh;position:relative;}
.hero-copy{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-top:max(42px,env(safe-area-inset-top));}
.hero .hero-main-title{margin:0;max-width:8ch;text-transform:uppercase;}
.hero .hero-main-title strong{display:block;margin-top:.22em;}
@media(max-width:760px){
  .hero{min-height:100dvh;}
  .hero-copy{justify-content:flex-start;padding-top:max(28px,env(safe-area-inset-top));padding-bottom:36px;}
  .hero .hero-main-title{font-size:clamp(50px,15vw,78px);line-height:.88;max-width:7ch;}
  .hero .hero-main-title strong{font-size:.56em;letter-spacing:.1em;}
}


/* V31 brand alignment: same hollow signal ring used in artwork lockup. */
.hero-logo-mark{display:none!important}
.hero-brand-mark{box-sizing:border-box!important;background:transparent!important}


/* V32: centered brand lockup, restored overview map and consistent icon sizing. */
.site-header { display: none !important; }

.hero {
  min-height: 100svh !important;
  position: relative !important;
}

.hero-copy {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  padding-inline: clamp(22px, 6vw, 92px) !important;
  padding-top: max(40px, env(safe-area-inset-top)) !important;
}

.hero-brand-mark {
  box-sizing: border-box !important;
  display: block !important;
  width: clamp(44px, 4vw, 60px) !important;
  height: clamp(44px, 4vw, 60px) !important;
  flex: 0 0 auto !important;
  border: clamp(10px, .9vw, 14px) solid var(--signal, #A22041) !important;
  border-radius: 50% !important;
  background: transparent !important;
  margin: 0 auto clamp(22px, 2.2vw, 34px) !important;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.22)) !important;
}

.hero .hero-main-title {
  width: min(100%, 1180px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-wrap: balance;
}

.hero .hero-main-title span,
.hero .hero-main-title strong {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.hero .hero-main-title strong {
  margin-top: .22em !important;
}

/* Restore the map immediately below the opening hero. */
.overview-map-section {
  color: #111312 !important;
  background: #f3eee3 !important;
  border-top: 1px solid rgba(17,19,18,.18) !important;
  border-bottom: 1px solid rgba(17,19,18,.18) !important;
  display: grid !important;
  grid-template-columns: minmax(270px,.72fr) minmax(0,1.28fr) !important;
  min-height: 620px !important;
}

/* Keep every map marker and lock/location icon visually identical. */
.overview-map-marker {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.location-lock svg,
.location-card svg,
.locations-grid svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  stroke-width: 2 !important;
}

.location-lock {
  font-size: 11px !important;
  gap: 9px !important;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100dvh !important;
  }
  .hero-copy {
    justify-content: center !important;
    padding-top: max(24px, env(safe-area-inset-top)) !important;
    padding-bottom: 34px !important;
  }
  .hero-brand-mark {
    width: 42px !important;
    height: 42px !important;
    border-width: 10px !important;
    margin-bottom: 20px !important;
  }
  .hero .hero-main-title {
    font-size: clamp(48px, 14vw, 76px) !important;
    line-height: .88 !important;
  }
  .hero .hero-main-title strong {
    font-size: .56em !important;
    letter-spacing: .1em !important;
  }
  .overview-map-section {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .overview-map-copy {
    padding: 44px 20px 30px !important;
  }
  .overview-map-wrap,
  #overview-map {
    min-height: 430px !important;
  }
}

/* V33: normalize every locked-card icon and keep the hero logo centered. */
.hero-copy { align-items: center !important; text-align: center !important; }
.hero-brand-mark { margin-left: auto !important; margin-right: auto !important; }
.hero .hero-main-title,
.hero .hero-main-title span,
.hero .hero-main-title strong { text-align: center !important; }

.location-lock {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  transform: none !important;
  scale: 1 !important;
  zoom: 1 !important;
}
.location-lock > svg,
.location-lock svg {
  display: block !important;
  box-sizing: border-box !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
  transform: none !important;
  scale: 1 !important;
  stroke-width: 2 !important;
  vector-effect: non-scaling-stroke !important;
}


/* V34 — camera and completed-artwork refinements. */

/* Keep the camera experience pinned to the viewport on iOS Safari. */
html.camera-mode,
body.camera-mode {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  height: 100% !important;
}
body.camera-mode .overview-map-section {
  display: none !important;
}
.camera-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  z-index: 99999 !important;
  transform: none !important;
  isolation: isolate !important;
}
.camera-stage,
.camera-stage-poster {
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Make all non-Japanese text in the live/final poster easier to read. */
.brand-lockup-poster .brand-wordmark {
  font-size: clamp(16px, 3.4vw, 22px) !important;
  letter-spacing: .115em !important;
}
.live-poster-caption span {
  font-size: clamp(13px, 2.8vw, 17px) !important;
  font-weight: 600 !important;
}

/* Prevent the location frame from colliding with Camera / Map actions. */
.artwork-place-minimal {
  bottom: calc(122px + env(safe-area-inset-bottom)) !important;
  max-width: calc(100% - 36px) !important;
}
.detail-actions-minimal {
  min-height: calc(92px + env(safe-area-inset-bottom)) !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

/* Remove the separate Save image action. Sharing remains available. */
.pair-share-actions {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 430px !important;
}
.pair-share-actions a[download] {
  display: none !important;
}
.pair-share-actions button {
  min-height: 54px !important;
  font-size: 14px !important;
}

/* Preserve consistent lock icon sizing. */
.location-lock > svg,
.location-lock svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
}

@media (max-width: 760px) {
  .artwork-place-minimal {
    bottom: calc(116px + env(safe-area-inset-bottom)) !important;
    left: 16px !important;
  }
  .artwork-place-minimal strong {
    font-size: clamp(24px, 8vw, 34px) !important;
  }
  .detail-actions-minimal {
    min-height: calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .capture-preview-actions {
    min-height: calc(82px + env(safe-area-inset-bottom)) !important;
  }
}


/* V35 — detail layout, home-map lifecycle and final-poster legibility. */

/* Leaflet panes must never float over detail or camera screens. */
body.detail-mode .overview-map-section,
body.camera-mode .overview-map-section {
  display: none !important;
}
.view-detail {
  z-index: 10000 !important;
}
.overview-map-section {
  position: relative !important;
  inset: auto !important;
  z-index: 0 !important;
}

/* Artist's View badge is unnecessary. */
.artwork-index {
  display: none !important;
}

/* The original overlay is replaced with a separate location band above the print. */
.artwork-place-minimal {
  display: none !important;
}
.detail-location-banner {
  position: relative;
  z-index: 4;
  box-sizing: border-box;
  width: 100%;
  min-height: 94px;
  padding: 18px clamp(22px, 5vw, 76px);
  color: #f4efe4;
  background: #111312;
  border-top: 1px solid rgba(244, 239, 228, .13);
  border-bottom: 1px solid rgba(244, 239, 228, .18);
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-location-banner > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.detail-location-banner > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.detail-location-banner strong {
  color: #f4efe4;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.035em;
}
.detail-location-banner small {
  color: #c8c1b5;
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.8vw, 19px);
  line-height: 1.25;
}

/* The print now starts only after the location band. */
.artwork-stage {
  height: min(760px, calc(100svh - 158px)) !important;
  min-height: 520px !important;
}

/* One more step up in the live poster preview. The saved JPEG uses matching canvas values. */
.brand-lockup-poster {
  gap: 6px !important;
}
.brand-lockup-poster .brand-ring {
  width: 15px !important;
  height: 15px !important;
  border-width: 4px !important;
}
.brand-lockup-poster .brand-wordmark {
  font-size: clamp(19px, 4vw, 26px) !important;
  letter-spacing: .12em !important;
}
.live-poster-caption span {
  font-size: clamp(14px, 3vw, 18px) !important;
}

/* The footer artwork lettering has a taller dedicated row. */
.live-poster-preview {
  grid-template-rows: minmax(0,100fr) minmax(0,575fr) minmax(0,58fr) minmax(0,612fr) minmax(0,196fr) !important;
}
.camera-stage.is-portrait-print .live-poster-preview {
  grid-template-rows: minmax(0,100fr) minmax(0,804fr) minmax(0,58fr) minmax(0,522fr) minmax(0,196fr) !important;
}

@media (max-width: 760px) {
  .detail-location-banner {
    min-height: 82px;
    padding: 14px 18px;
    gap: 12px;
  }
  .detail-location-banner > svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .detail-location-banner strong {
    font-size: clamp(27px, 8vw, 38px);
  }
  .detail-location-banner small {
    font-size: 15px;
  }
  .artwork-stage {
    height: min(690px, calc(100svh - 146px)) !important;
    min-height: 470px !important;
  }
  .brand-lockup-poster .brand-ring {
    width: 13px !important;
    height: 13px !important;
  }
  .brand-lockup-poster .brand-wordmark {
    font-size: clamp(16px, 3.8vw, 21px) !important;
  }
  .live-poster-caption span {
    font-size: clamp(13px, 3.1vw, 17px) !important;
  }
}


/* V36 — one typography system across site, camera preview and exported artwork. */
:root {
  --font-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --font-serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --font-sans: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
}

html, body, button, input, textarea, select,
.hero-main-title, .locations-heading h2, .location-card-copy,
.location-card-copy h3, .detail-header, .detail-location-banner,
.detail-actions-minimal, .about-section, .camera-overlay,
.live-poster-preview, .site-footer, .site-legal-footer,
.paywall, .legal-page, .leaflet-container, .leaflet-popup-content {
  font-family: var(--font-display) !important;
}

/* The orange category/eyebrow labels are intentionally more legible. */
.eyebrow,
.location-card-copy > div > div > span,
.location-card-copy div > span,
.overview-map-copy .eyebrow {
  font-size: 14px !important;
  line-height: 1.15 !important;
  letter-spacing: .16em !important;
  font-weight: 700 !important;
}

/* Keep all primary labels consistent across detail, camera and result screens. */
.detail-location-banner strong,
.detail-location-banner small,
.detail-header > strong,
.camera-controls-minimal,
.detail-actions-minimal button,
.detail-actions-minimal a,
.result-actions button,
.share-button,
.live-poster-caption,
.brand-lockup-poster,
.live-poster-footer {
  font-family: var(--font-display) !important;
}

/* Export/live preview wordmark now excludes KYOTO. */
.brand-lockup-poster .brand-wordmark {
  font-size: clamp(21px, 4.4vw, 30px) !important;
  letter-spacing: .13em !important;
}

/* Footer line is unified: DATE · KYOTO, with larger supporting type. */
.live-poster-footer,
.live-poster-preview footer,
.live-poster-caption span {
  font-size: clamp(15px, 3.4vw, 20px) !important;
  letter-spacing: .11em !important;
}

.live-poster-preview canvas {
  image-rendering: auto;
}

@media (max-width: 760px) {
  .eyebrow,
  .location-card-copy > div > div > span,
  .location-card-copy div > span,
  .overview-map-copy .eyebrow {
    font-size: 12px !important;
    letter-spacing: .14em !important;
  }
  .brand-lockup-poster .brand-wordmark {
    font-size: clamp(18px, 4.6vw, 24px) !important;
  }
  .live-poster-footer,
  .live-poster-preview footer,
  .live-poster-caption span {
    font-size: clamp(14px, 3.7vw, 18px) !important;
  }
}


/* V37 — unified gothic typography and consistent poster sizing. */
:root {
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Avenir Next", Avenir, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Avenir Next", Avenir, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

html, body, button, input, textarea, select,
h1, h2, h3, h4, h5, h6,
.brand-wordmark, .brand-copy, .eyebrow,
.location-card-copy, .location-card-copy h3, .location-card-copy h3 small,
.detail-header, .detail-location-banner, .detail-location-banner strong, .detail-location-banner small,
.detail-actions-minimal, .detail-actions-minimal button, .detail-actions-minimal a,
.about-section, .artwork-details-minimal, .map-overlay-minimal,
.camera-overlay, .camera-controls-minimal, .camera-tool-button, .shutter-button,
.live-poster-preview, .live-poster-brand, .brand-lockup-poster, .brand-lockup-poster .brand-wordmark,
.live-poster-caption, .live-poster-caption span, .live-poster-footer,
.capture-preview-actions, .pair-share-actions, .pair-share-actions button, .pair-share-actions a, .share-message,
.site-footer, .site-legal-footer, .paywall, .legal-page,
.leaflet-container, .leaflet-popup-content {
  font-family: var(--font-sans) !important;
}

.eyebrow,
.location-card-copy > div > div > span,
.location-card-copy div > span,
.overview-map-copy .eyebrow {
  font-size: 15px !important;
  line-height: 1.15 !important;
  letter-spacing: .12em !important;
  font-weight: 700 !important;
}

.brand-lockup-poster {
  gap: 5px !important;
}
.brand-lockup-poster .brand-ring {
  width: 13px !important;
  height: 13px !important;
  border-width: 4px !important;
}
.brand-lockup-poster .brand-wordmark {
  font-size: clamp(18px, 3.4vw, 20px) !important;
  letter-spacing: .08em !important;
  font-weight: 700 !important;
}
.live-poster-caption span {
  font-size: clamp(12px, 2.35vw, 13.5px) !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
  font-weight: 700 !important;
}
.pair-share-actions button,
.pair-share-actions a,
.detail-actions-minimal button,
.detail-actions-minimal a,
.camera-tool-button,
.shutter-button {
  font-weight: 700 !important;
}

@media (max-width: 760px) {
  .eyebrow,
  .location-card-copy > div > div > span,
  .location-card-copy div > span,
  .overview-map-copy .eyebrow {
    font-size: 13px !important;
    letter-spacing: .1em !important;
  }
  .brand-lockup-poster .brand-wordmark {
    font-size: clamp(17px, 4vw, 18.5px) !important;
  }
  .live-poster-caption span {
    font-size: clamp(11px, 2.8vw, 12.5px) !important;
  }
}


:root {
  --camera-toolbar-height: calc(92px + env(safe-area-inset-bottom));
}

/* ---------- Detail page cleanup ---------- */
.view-detail {
  padding-top: env(safe-area-inset-top);
}

.detail-header {
  display: none !important;
}

.artwork-index,
.artwork-place-minimal {
  display: none !important;
}

.detail-location-banner {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
  background: #0d0f0e;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.detail-location-banner svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.detail-location-banner span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.detail-location-banner strong {
  font-size: clamp(32px, 7.8vw, 56px) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
}

.detail-location-banner small {
  font-size: clamp(16px, 4.2vw, 22px) !important;
  line-height: 1.2 !important;
  color: rgba(255,255,255,.88) !important;
  font-weight: 500 !important;
}

.artwork-stage {
  height: auto !important;
  min-height: 0 !important;
  background: #111312 !important;
  padding: 0 !important;
}

.artwork-stage > span,
.artwork-stage > img {
  position: relative !important;
  inset: auto !important;
}

.artwork-stage img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: min(68svh, 760px) !important;
  object-fit: contain !important;
  object-position: center 54% !important;
  margin: 0 auto !important;
}

.artwork-shade {
  display: none !important;
}

.detail-actions-minimal {
  position: static !important;
  margin: 0 !important;
  min-height: auto !important;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
  background: #080a09 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}

.detail-actions-minimal > span {
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  margin-right: auto !important;
}

.about-section-minimal {
  padding-top: 24px !important;
}

/* ---------- Camera / share consistency ---------- */
.camera-overlay {
  grid-template-rows: minmax(0, 1fr) var(--camera-toolbar-height) !important;
  height: 100dvh !important;
}

.camera-stage-poster {
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  padding: 12px 14px 10px !important;
}

.live-poster-preview {
  width: min(100%, 560px) !important;
  aspect-ratio: 1080 / 1536 !important;
  height: auto !important;
  max-height: calc(100dvh - var(--camera-toolbar-height) - 24px) !important;
  margin: 0 auto !important;
  grid-template-rows: 8.7% 34.9% 5.6% minmax(0, 1fr) 11.8% !important;
}

.live-poster-brand,
.live-poster-artwork,
.live-poster-caption,
.live-poster-camera,
.live-poster-footer {
  min-height: 0 !important;
}

.capture-preview-actions,
.camera-controls-minimal {
  height: var(--camera-toolbar-height) !important;
  min-height: var(--camera-toolbar-height) !important;
  margin: 0 !important;
  padding: 8px max(18px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
  background: #080a09 !important;
  display: grid !important;
  align-content: center !important;
}

.capture-preview-actions {
  border-top: none !important;
}

.capture-preview-actions .share-message {
  display: none !important;
}

.pair-share-actions {
  max-width: 330px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.pair-share-actions a[download] {
  display: none !important;
}

.pair-share-actions button {
  min-height: 64px !important;
  width: 100% !important;
}

/* Keep poster output typography visually balanced */
.live-poster-preview .brand-lockup-poster .brand-wordmark {
  font-size: clamp(17px, 3vw, 22px) !important;
  letter-spacing: .06em !important;
}

.live-poster-preview .live-poster-caption span {
  font-size: clamp(11px, 2.2vw, 15px) !important;
  letter-spacing: .01em !important;
}

@media (max-width: 760px) {
  .detail-location-banner {
    padding: 16px 18px 14px !important;
  }

  .detail-location-banner strong {
    font-size: clamp(28px, 8vw, 44px) !important;
  }

  .detail-location-banner small {
    font-size: clamp(14px, 4.4vw, 19px) !important;
  }

  .artwork-stage img {
    max-height: min(56svh, 520px) !important;
    object-position: center 56% !important;
  }

  .detail-actions-minimal {
    gap: 10px !important;
    padding-inline: 18px !important;
  }

  .detail-actions-minimal button,
  .detail-actions-minimal a {
    flex: 1 1 0 !important;
    min-height: 58px !important;
  }

  .camera-stage-poster {
    padding: 10px 14px 8px !important;
  }

  .live-poster-preview {
    width: min(100%, 520px) !important;
    max-height: calc(100dvh - var(--camera-toolbar-height) - 20px) !important;
  }
}


:root {
  --camera-toolbar-height: calc(92px + env(safe-area-inset-bottom));
}

/* ---------- Detail page balance ---------- */
body.detail-mode,
.view-detail,
.view-detail .detail-body,
.view-detail .about-section-minimal {
  background: #080a09 !important;
}

.view-detail {
  min-height: 100dvh !important;
}

.detail-location-banner {
  padding: 16px 20px 12px !important;
}

.detail-location-banner strong {
  font-size: clamp(30px, 7.6vw, 48px) !important;
  line-height: 1.04 !important;
}

.detail-location-banner small {
  font-size: clamp(15px, 3.8vw, 20px) !important;
}

.artwork-stage {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.artwork-stage img {
  max-height: min(58svh, 620px) !important;
  object-position: center 50% !important;
}

.detail-actions-minimal {
  padding-top: 12px !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
}

.detail-body {
  padding: 0 !important;
}

.about-section-minimal {
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom)) !important;
}

.about-section-minimal summary {
  min-height: 48px !important;
}

.artwork-details-minimal {
  padding: 10px 0 4px !important;
}

/* ---------- Camera / share / downloaded poster consistency ---------- */
.camera-overlay,
.camera-stage-poster {
  background: #080a09 !important;
}

.camera-stage-poster {
  padding: 8px 12px 6px !important;
}

.live-poster-preview {
  width: min(100%, 600px) !important;
  max-height: calc(100dvh - var(--camera-toolbar-height) - 14px) !important;
  grid-template-rows: 7.7% 31.7% 4.7% minmax(0, 1fr) 11.1% !important;
}

.live-poster-brand {
  padding-top: 4px !important;
}

.live-poster-artwork,
.live-poster-camera,
.live-poster-caption,
.live-poster-footer {
  min-height: 0 !important;
}

.live-poster-artwork > *,
.live-poster-camera > * {
  width: 100% !important;
  height: 100% !important;
}

.live-poster-artwork img,
.live-poster-camera img,
.live-poster-camera video,
.live-poster-camera canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.live-poster-caption {
  padding-inline: 10px !important;
}

.live-poster-footer {
  padding: 2px 10px 12px !important;
}

.live-poster-preview .brand-lockup-poster {
  gap: 6px !important;
}

.live-poster-preview .brand-lockup-poster .brand-ring {
  width: 14px !important;
  height: 14px !important;
}

.live-poster-preview .brand-lockup-poster .brand-wordmark {
  font-size: clamp(18px, 3.2vw, 24px) !important;
  letter-spacing: .045em !important;
}

.live-poster-preview .live-poster-caption span {
  font-size: clamp(12px, 2.3vw, 15px) !important;
  line-height: 1.15 !important;
}

.capture-preview-actions,
.camera-controls-minimal {
  padding: 6px max(18px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
}

.capture-preview-actions {
  border-top: none !important;
}

.pair-share-actions {
  max-width: 360px !important;
}

.pair-share-actions button {
  min-height: 60px !important;
}

@media (max-width: 760px) {
  .detail-location-banner {
    padding: 14px 18px 10px !important;
  }

  .artwork-stage img {
    max-height: min(54svh, 560px) !important;
  }

  .about-section-minimal {
    padding: 14px 20px calc(16px + env(safe-area-inset-bottom)) !important;
  }

  .camera-stage-poster {
    padding: 6px 10px 6px !important;
  }

  .live-poster-preview {
    width: min(100%, 560px) !important;
    max-height: calc(100dvh - var(--camera-toolbar-height) - 10px) !important;
    grid-template-rows: 7.5% 31% 4.6% minmax(0, 1fr) 11.4% !important;
  }

  .live-poster-preview .brand-lockup-poster .brand-wordmark {
    font-size: clamp(17px, 4.2vw, 21px) !important;
  }

  .live-poster-preview .live-poster-caption span {
    font-size: clamp(11px, 2.9vw, 14px) !important;
  }
}


:root {
  --poster-stage-bg: #0a0c0b;
  --poster-paper-bg: #ece5d7;
}

/* Use the available camera/share screen much more efficiently. */
.camera-overlay {
  background: var(--poster-stage-bg) !important;
}

.camera-stage-poster {
  background: var(--poster-stage-bg) !important;
  padding: 2px 6px 2px !important;
  align-items: center !important;
}

.live-poster-preview {
  --poster-max-h: calc(100dvh - var(--camera-toolbar-height) - 6px);
  width: min(calc(var(--poster-max-h) * 1080 / 1536), calc(100vw - 12px)) !important;
  height: min(var(--poster-max-h), calc((100vw - 12px) * 1536 / 1080)) !important;
  max-width: calc(100vw - 12px) !important;
  max-height: var(--poster-max-h) !important;
  margin: 0 auto !important;
  aspect-ratio: auto !important;
  grid-template-rows: 6.3% 30.2% 5% minmax(0, 46.5%) 12% !important;
  background: var(--poster-paper-bg) !important;
}

.live-poster-brand {
  padding-top: 0 !important;
}

.live-poster-preview .brand-lockup-poster {
  gap: 6px !important;
}

.live-poster-preview .brand-lockup-poster .brand-ring {
  width: 14px !important;
  height: 14px !important;
  border-width: 4px !important;
}

.live-poster-preview .brand-lockup-poster .brand-wordmark {
  font-size: clamp(16px, 3.3vw, 22px) !important;
  letter-spacing: .045em !important;
  line-height: 1 !important;
}

.live-poster-artwork,
.live-poster-camera,
.live-poster-footer,
.live-poster-caption {
  background: var(--poster-paper-bg) !important;
}

.live-poster-artwork {
  padding-inline: 10px !important;
}

.live-poster-artwork img {
  object-fit: contain !important;
  object-position: center center !important;
}

.live-poster-caption {
  padding: 0 10px !important;
}

.live-poster-caption span {
  font-size: clamp(11px, 2.3vw, 15px) !important;
  line-height: 1.15 !important;
  letter-spacing: .005em !important;
}

.live-poster-camera {
  padding-inline: 10px !important;
  overflow: hidden !important;
  background: var(--poster-paper-bg) !important;
}

.live-poster-camera > * {
  background: #dcd5c7 !important;
}

.live-poster-camera img,
.live-poster-camera video,
.live-poster-camera canvas {
  object-fit: cover !important;
  object-position: center center !important;
  background: #dcd5c7 !important;
}

.live-poster-footer {
  padding: 4px 12px 10px !important;
}

/* Use a little less space for action chrome so the poster can breathe. */
.capture-preview-actions,
.camera-controls-minimal {
  height: calc(86px + env(safe-area-inset-bottom)) !important;
  min-height: calc(86px + env(safe-area-inset-bottom)) !important;
  padding-top: 4px !important;
  padding-bottom: calc(6px + env(safe-area-inset-bottom)) !important;
}

.camera-actions-minimal {
  max-width: 320px !important;
}

.shutter-button {
  width: 62px !important;
  height: 62px !important;
}

.shutter-button > span {
  width: 48px !important;
  height: 48px !important;
}

.pair-share-actions {
  max-width: 340px !important;
}

.pair-share-actions button {
  min-height: 58px !important;
}

@media (max-width: 760px) {
  .camera-stage-poster {
    padding: 0 4px 2px !important;
  }

  .live-poster-preview {
    --poster-max-h: calc(100dvh - var(--camera-toolbar-height) - 2px);
    width: min(calc(var(--poster-max-h) * 1080 / 1536), calc(100vw - 8px)) !important;
    height: min(var(--poster-max-h), calc((100vw - 8px) * 1536 / 1080)) !important;
    max-width: calc(100vw - 8px) !important;
    grid-template-rows: 6.1% 29.6% 4.9% minmax(0, 47.3%) 12.1% !important;
  }

  .live-poster-artwork,
  .live-poster-camera {
    padding-inline: 8px !important;
  }

  .live-poster-footer {
    padding: 3px 10px 9px !important;
  }

  .live-poster-preview .brand-lockup-poster .brand-wordmark {
    font-size: clamp(15px, 5vw, 20px) !important;
  }

  .capture-preview-actions,
  .camera-controls-minimal {
    height: calc(82px + env(safe-area-inset-bottom)) !important;
    min-height: calc(82px + env(safe-area-inset-bottom)) !important;
  }
}


:root {
  --poster-paper: #f4efe4;
  --poster-ink: #171714;
  --camera-toolbar-height: calc(68px + env(safe-area-inset-bottom));
  --camera-nav-height: 0px;
  --poster-width: min(
    100vw,
    calc((100dvh - var(--camera-toolbar-height) - var(--camera-nav-height)) * 1080 / 1536)
  );
}

/*
 * V45 poster system
 * -----------------
 * The live camera, captured preview and downloaded JPEG all use the exact
 * same 1080 × 1536 master geometry. Screen elements are positioned with
 * percentages from that master instead of flexible grid rows, preventing
 * vertical stretching and typography drift on mobile browsers.
 */
.camera-overlay {
  grid-template-rows: minmax(0, 1fr) var(--camera-toolbar-height) !important;
  background: var(--poster-paper) !important;
}

.camera-stage-poster {
  position: relative !important;
  box-sizing: border-box !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: var(--poster-paper) !important;
  overflow: visible !important;
}

/* Navigation is part of the app chrome, never part of the artwork. */
.camera-back-floating {
  z-index: 40 !important;
  position: absolute !important;
  top: auto !important;
  bottom: calc(-1 * var(--camera-toolbar-height) + 10px) !important;
  left: max(6px, env(safe-area-inset-left)) !important;
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 999px !important;
  background: rgba(8, 10, 9, 0.92) !important;
  color: #f4efe4 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

.live-poster-preview {
  position: relative !important;
  display: block !important;
  flex: none !important;
  width: var(--poster-width) !important;
  height: calc(var(--poster-width) * 1536 / 1080) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100vw !important;
  max-height: calc(100dvh - var(--camera-toolbar-height) - var(--camera-nav-height)) !important;
  aspect-ratio: 1080 / 1536 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: var(--poster-paper) !important;
  overflow: hidden !important;
}


.captured-poster-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  background: var(--poster-paper) !important;
}

.live-poster-preview > * {
  position: absolute !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 1080 × 1536 master coordinates */
.live-poster-brand {
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: 12.5% !important; /* 192 / 1536 */
  display: grid !important;
  place-items: center !important;
  background: var(--poster-paper) !important;
}

.brand-lockup-poster {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: calc(var(--poster-width) * 18 / 1080) 0 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.brand-lockup-poster .brand-ring {
  width: calc(var(--poster-width) * 40 / 1080) !important;
  height: calc(var(--poster-width) * 40 / 1080) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-width: calc(var(--poster-width) * 11 / 1080) !important;
  margin: 0 0 calc(var(--poster-width) * 18 / 1080) !important;
  flex: none !important;
  box-sizing: border-box !important;
}

.brand-lockup-poster .brand-wordmark {
  color: var(--poster-ink) !important;
  font-family: "Avenir Next", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: calc(var(--poster-width) * 64 / 1080) !important;
  line-height: 1 !important;
  letter-spacing: calc(var(--poster-width) * 3.2 / 1080) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.live-poster-artwork {
  left: 2.5925926% !important; /* 28 / 1080 */
  top: 12.5% !important;   /* 192 / 1536 */
  width: 94.8148148% !important; /* 1024 / 1080 */
  height: 34.5052083% !important;  /* 530 / 1536 */
  background: #ded5c5 !important;
}

.live-poster-artwork img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

.live-poster-caption {
  left: 0 !important;
  top: 47.0052083% !important; /* 722 / 1536 */
  width: 100% !important;
  height: 4.1666667% !important; /* 64 / 1536 */
  display: grid !important;
  place-items: center !important;
  background: var(--poster-paper) !important;
}

.live-poster-caption span {
  color: #5f5a52 !important;
  font-family: "Avenir Next", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: calc(var(--poster-width) * 28 / 1080) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.live-poster-camera {
  left: 2.5925926% !important;
  top: 51.171875% !important; /* 786 / 1536 */
  width: 94.8148148% !important;
  height: 39.0625% !important; /* 600 / 1536 */
  background: #222522 !important;
}

.live-poster-camera .camera-feed,
.live-poster-camera img,
.live-poster-camera video,
.live-poster-camera canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.live-poster-footer {
  left: 0 !important;
  top: 88.28125% !important; /* 1356 / 1536 */
  width: 100% !important;
  height: 12.5% !important; /* 192 / 1536 */
  background: var(--poster-paper) !important;
}

.live-poster-footer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Controls remain outside the poster and never affect poster geometry. */
.capture-preview-actions,
.camera-controls-minimal {
  height: var(--camera-toolbar-height) !important;
  min-height: var(--camera-toolbar-height) !important;
  padding: 2px max(12px, env(safe-area-inset-right)) calc(2px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  margin: 0 !important;
  display: grid !important;
  align-content: center !important;
  background: #080a09 !important;
}

.camera-actions-minimal {
  max-width: 290px !important;
  grid-template-columns: 40px 56px 40px !important;
  gap: 16px !important;
}

.camera-tool-button {
  width: 40px !important;
  height: 40px !important;
}

.shutter-button {
  width: 56px !important;
  height: 56px !important;
}

.shutter-button > span {
  width: 42px !important;
  height: 42px !important;
}

.pair-share-actions {
  width: min(100%, 240px) !important;
  max-width: 240px !important;
  margin: 0 auto !important;
}

.pair-share-actions button {
  width: 100% !important;
  min-height: 44px !important;
}

@media (max-width: 430px) {
  :root {
    --camera-nav-height: calc(6px + env(safe-area-inset-top));
  }

  .camera-back-floating {
    width: 44px !important;
    height: 44px !important;
    left: max(4px, env(safe-area-inset-left)) !important;
    bottom: calc(-1 * var(--camera-toolbar-height) + 12px) !important;
  }

  .pair-share-actions {
    width: min(100%, 220px) !important;
    max-width: 220px !important;
  }

  .pair-share-actions button {
    min-height: 40px !important;
    font-size: 13px !important;
  }
}

/* V57: one master canvas for pre-capture, captured preview, and shared file */
.live-poster-master-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  z-index: 30 !important;
  pointer-events: none !important;
}


/* V62: persistent detail back arrow. Keep React's real close handler available. */
.view-detail > .detail-header {
  display: grid !important;
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  left: max(12px, env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: auto !important;
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  grid-template-columns: 48px !important;
  background: transparent !important;
  border: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 10050 !important;
  pointer-events: none !important;
}

.view-detail > .detail-header > strong,
.view-detail > .detail-header > span {
  display: none !important;
}

.view-detail > .detail-header .detail-back-minimal {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(8, 10, 9, .84) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .34) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Reserve room so the arrow never overlaps the location pin/title. */
.view-detail > .detail-location-banner {
  padding-left: max(82px, calc(env(safe-area-inset-left) + 82px)) !important;
}

@media (max-width: 760px) {
  .view-detail > .detail-header {
    top: max(10px, env(safe-area-inset-top)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    grid-template-columns: 46px !important;
  }

  .view-detail > .detail-header .detail-back-minimal {
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

  .view-detail > .detail-location-banner {
    padding-left: max(74px, calc(env(safe-area-inset-left) + 74px)) !important;
  }
}

/* V81 — make the capture location picker a black surface around its cards. */
#viewfind-capture-page,
#viewfind-capture-page .capture-page-shell,
#viewfind-capture-page .capture-page-scroll,
#viewfind-capture-page .capture-location-grid{
  background:#000!important;
  color:#fff!important;
}
#viewfind-capture-page .capture-page-header{
  background:#000!important;
  border-bottom-color:rgba(255,255,255,.28)!important;
  color:#fff!important;
}
#viewfind-capture-page .capture-page-header > div > span{
  display:none!important;
}
#viewfind-capture-page .capture-page-header h1{
  color:#fff!important;
}
#viewfind-capture-page .capture-page-header > button{
  background:#000!important;
  border-color:rgba(255,255,255,.55)!important;
  color:#fff!important;
}
#viewfind-capture-page .location-lock{
  font-size:14px!important;
  letter-spacing:.12em!important;
  gap:10px!important;
}


/* mobile black-screen hardening — full-screen containers are paper, not black.
   Black remains only inside intentional artwork/photo mats and controls. */
.camera-overlay {
  background:#f4efe4 url("/assets/japanese-paper_00445.jpg") center/cover no-repeat !important;
  color:#171714 !important;
}
.camera-stage-poster {
  background:#f4efe4 url("/assets/japanese-paper_00445.jpg") center/cover no-repeat !important;
}
#viewfind-capture-page,
#viewfind-capture-page .capture-page-shell,
#viewfind-capture-page .capture-page-scroll,
#viewfind-capture-page .capture-location-grid {
  background:#f4efe4 url("/assets/japanese-paper_00445.jpg") center/cover fixed no-repeat !important;
  color:#171714 !important;
}
#viewfind-capture-page .capture-page-header {
  background:rgba(244,239,228,.96) !important;
  border-bottom-color:rgba(23,23,20,.2) !important;
  color:#171714 !important;
}
#viewfind-capture-page .capture-page-header h1 { color:#171714 !important; }
#viewfind-capture-page .capture-page-header > button {
  background:#f4efe4 !important;
  border-color:rgba(23,23,20,.45) !important;
  color:#171714 !important;
}


/* V91 visual consistency
   1) Poster outer stock uses the actual washi texture.
   2) Ukiyo-e and camera/photo mats are pure black.
   3) The 15-viewpoint chooser is uniformly black. */

:root {
  --poster-paper: #f4efe4;
}

.live-poster-preview,
.live-poster-brand,
.live-poster-caption,
.live-poster-footer,
.captured-poster-image {
  background-color: #f4efe4 !important;
  background-image: url('/assets/japanese-paper_00445.jpg?v=95') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.live-poster-artwork,
.live-poster-camera {
  background: #000 !important;
}

.live-poster-artwork img {
  background: #000 !important;
}

.live-poster-camera .camera-feed,
.live-poster-camera img,
.live-poster-camera video,
.live-poster-camera canvas {
  background: #000 !important;
}

/* 15 viewpoints / capture selection: one continuous black surface. */
#viewfind-capture-page,
#viewfind-capture-page .capture-page-shell,
#viewfind-capture-page .capture-page-header,
#viewfind-capture-page .capture-page-scroll,
#viewfind-capture-page .capture-page-intro,
#viewfind-capture-page .capture-location-grid,
#viewfind-capture-page .capture-location-card,
#viewfind-capture-page .capture-location-card .location-card-copy {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}

#viewfind-capture-page .capture-page-header {
  border-bottom-color: rgba(255,255,255,.22) !important;
}

#viewfind-capture-page .capture-page-header h1,
#viewfind-capture-page .capture-page-intro p,
#viewfind-capture-page .capture-location-card .location-card-copy h3,
#viewfind-capture-page .capture-location-card .location-card-copy h3 small {
  color: #fff !important;
}

#viewfind-capture-page .capture-page-intro {
  border-bottom-color: rgba(255,255,255,.22) !important;
}

#viewfind-capture-page .capture-page-header > button {
  background: #000 !important;
  border-color: rgba(255,255,255,.55) !important;
  color: #fff !important;
}

#viewfind-capture-page .capture-location-card {
  border-color: rgba(255,255,255,.20) !important;
  box-shadow: none !important;
}

#viewfind-capture-page .capture-location-card .location-card-image {
  background: #000 !important;
}

#viewfind-capture-page .capture-location-card .location-card-copy > div > small {
  color: #8fc4ff !important;
}


/* V91 visual consistency
   1) Poster outer stock uses the actual washi texture.
   2) Ukiyo-e and camera/photo mats are pure black.
   3) The 15-viewpoint chooser is uniformly black. */

:root {
  --poster-paper: #f4efe4;
}

.live-poster-preview,
.live-poster-brand,
.live-poster-caption,
.live-poster-footer,
.captured-poster-image {
  background-color: #f4efe4 !important;
  background-image: url('/assets/japanese-paper_00445.jpg?v=95') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.live-poster-artwork,
.live-poster-camera {
  background: #000 !important;
}

.live-poster-artwork img {
  background: #000 !important;
}

.live-poster-camera .camera-feed,
.live-poster-camera img,
.live-poster-camera video,
.live-poster-camera canvas {
  background: #000 !important;
}

/* 15 viewpoints / capture selection: one continuous black surface. */
#viewfind-capture-page,
#viewfind-capture-page .capture-page-shell,
#viewfind-capture-page .capture-page-header,
#viewfind-capture-page .capture-page-scroll,
#viewfind-capture-page .capture-page-intro,
#viewfind-capture-page .capture-location-grid,
#viewfind-capture-page .capture-location-card,
#viewfind-capture-page .capture-location-card .location-card-copy {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
}

#viewfind-capture-page .capture-page-header {
  border-bottom-color: rgba(255,255,255,.22) !important;
}

#viewfind-capture-page .capture-page-header h1,
#viewfind-capture-page .capture-page-intro p,
#viewfind-capture-page .capture-location-card .location-card-copy h3,
#viewfind-capture-page .capture-location-card .location-card-copy h3 small {
  color: #fff !important;
}

#viewfind-capture-page .capture-page-intro {
  border-bottom-color: rgba(255,255,255,.22) !important;
}

#viewfind-capture-page .capture-page-header > button {
  background: #000 !important;
  border-color: rgba(255,255,255,.55) !important;
  color: #fff !important;
}

#viewfind-capture-page .capture-location-card {
  border-color: rgba(255,255,255,.20) !important;
  box-shadow: none !important;
}

#viewfind-capture-page .capture-location-card .location-card-image {
  background: #000 !important;
}

#viewfind-capture-page .capture-location-card .location-card-copy > div > small {
  color: #8fc4ff !important;
}


/* V93 — make the artwork stock unmistakably washi while preserving black app chrome. */
.live-poster-preview,
.live-poster-brand,
.live-poster-caption,
.live-poster-footer {
  background-color:#efe6d6 !important;
  background-image:
    linear-gradient(rgba(255,252,244,.12),rgba(229,217,197,.10)),
    url('/assets/japanese-paper_00445.jpg?v=95') !important;
  background-size:auto, 620px auto !important;
  background-position:center, center !important;
  background-repeat:no-repeat, repeat !important;
  background-blend-mode:normal, multiply !important;
}


/* A4 capture consistency
   The live master canvas and saved JPEG are 1080 x 1527.5 logical pixels.
   Use the same ratio before and after capture so the shutter does not change scale. */
.live-poster-preview {
  height: calc(var(--poster-width) * 1527.5 / 1080) !important;
  aspect-ratio: 1080 / 1527.5 !important;
}



/* V-production access-layer fix — paywall must sit above spot detail/capture UI. */
.paywall {
  z-index: 130000 !important;
  pointer-events: auto !important;
}
