/* First screen only: Brewwww! (NEW), Web draft, 9300:2785.
   Figma artboard: 1440 × 820; layout is exact at that viewport.
   All later sections keep their existing styles. */
.navigation {
  height: 76px;
  padding: 18px 4.444444vw;
}
.navigation .brand img {
  width: 57.1958px;
  height: 40px;
}
.navigation nav { gap: 24px; }
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 0;
  border-radius: 24px;
  padding: 10px 24px;
  font: 700 16px/22px 'Courier Prime', 'Courier New', monospace;
  letter-spacing: .2px;
  color: #3e2723;
  white-space: nowrap;
  transition: background-color .2s, box-shadow .2s;
}
/* Figma 9658:17086 — glass-active fill/stroke and LM_Glass effect. */
.nav-app { width: 117px; padding-inline: 16px; background: #ffffff1a; border: 1px solid #fff; box-shadow: 0 0 16px #3e272314; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-download { position: relative; display: inline-flex; flex: none; width: 117px; height: 40px; }
/* The button itself becomes the QR card; its reserved nav slot never changes. */
.nav-download .nav-app { position: absolute; top: 0; right: 0; z-index: 50; padding: 0; overflow: hidden; transition: none; }
.nav-download .nav-app.is-expanded { box-shadow: 0 12px 40px #7a4a0026; }
.download-label { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; opacity: 1; filter: blur(0px); }
.download-popover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 19px; color: var(--ink); opacity: 0; transform: scale(.5); filter: blur(8px); user-select: none; pointer-events: none; }
.download-popover[hidden] { display: none; }
.download-qr { display: block; flex: none; width: var(--download-qr-size, 211px); height: var(--download-qr-size, 211px); aspect-ratio: 1; }
.download-qr-caption { display: flex; align-items: center; justify-content: center; width:100%;text-align:center; font: 700 18px/24px 'Courier Prime', 'Courier New', monospace; letter-spacing: -.6px; white-space: nowrap; }

.layout-editing .download-popover { display: none; }
.nav-join {
  width: 117px;
  color: #fdfbf7;
  background: #c88e4e;
  box-shadow: 0 0 16px #3e272314;
}
.nav-join:not(:disabled):hover { background: #b47b3c; }
.nav-join:disabled { opacity: 1; }
.story-stage { background: #fff; }
.story-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/paper-texture.jpg') center / cover;
  opacity: calc(.14 * var(--hero-paper, 1));
  pointer-events: none;
  z-index: 0;
}
.hero-copy {
  top: calc(76px + (100% - 76px) * .3897849462);
  left: 50.034722%;
  width: auto;
  max-width: 90%;
}
.hero-copy h1 {
  color: #c88e4e;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
/* Do not briefly show the fallback collage before the user's saved layout loads. */
.hero-layout-pending .hero-copy,
.hero-layout-pending .stamp-field,
.hero-layout-pending .uploaded-layer[data-upload-section="hero"] { visibility: hidden; }
.flying-stamp {
  aspect-ratio: auto;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}
/* A transparent square turns in 3D; the stamp keeps its original silhouette. */
.stamp-square {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--stamp-size);
  height: var(--stamp-size);
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform .6s cubic-bezier(.25,.7,.2,1);
  perspective: 800px;
  container-type: inline-size;
  pointer-events: none;
}
.stamp-flipper {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform .6s cubic-bezier(.25,.7,.2,1);
}
.stamp-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.stamp-front { transform: rotateY(0deg); }
.stamp-back { transform: rotateY(180deg); }
.flying-stamp img, .flying-stamp:hover img {
  position: absolute;
  inset: 0;
  display: block;
  transform: none;
  transition: none;
}
.flying-stamp .stamp-back img, .flying-stamp:hover .stamp-back img {
  opacity: .2;
  transform: scaleX(-1);
}
.stamp-details {
  position: relative;
  width: 94%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 4cqi, 6px);
  text-align: center;
}
.stamp-name {
  width: 100%;
  color: var(--gold);
  font-size: clamp(12px, 15cqi, 23px);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.stamp-city {
  color: var(--ink);
  font-size: clamp(10px, 9cqi, 13px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.flying-stamp:is(.is-flipped,[data-flipped="true"]) { z-index: 2; }
.flying-stamp:is(.is-flipped,[data-flipped="true"]) .stamp-square {
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--rest-angle)));
}
.flying-stamp:is(.is-flipped,[data-flipped="true"]) .stamp-flipper { transform: rotateY(180deg); }
.story-bottom { display: none; }
@media (max-width: 700px) {
  .navigation { padding: 16px; height: 76px; gap: 12px; }
  .navigation .brand img { width: 48px; height: auto; }
  .navigation nav { gap: 10px; }
  .nav-button { padding: 10px 12px; font-size: 14px; letter-spacing: 0; }
  .nav-app, .nav-join { width: 117px; }
  .hero-copy { width: auto; }
  .hero-copy h1 { font-size: 28px; }
}
@media (max-width: 359px) {
  .navigation { padding-inline: 12px; gap: 8px; }
  .navigation .brand img { width: 40px; }
  .navigation nav { gap: 7px; }
  .nav-button { font-size: 13px; padding-inline: 9px; }
  .nav-app, .nav-join { width: 105px; }
  .nav-download { width: 105px; }
}

/* Absolute positioning keeps the existing hero title and stamp coordinates. */
.partner-hero-subtitle{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:min(440px,86vw);margin:24px 0 0;font:400 20px/28px 'Courier Prime',monospace;letter-spacing:0;color:#3e2723;text-align:center;text-wrap:balance}
.stamp-story:not([data-opening="complete"]) .partner-hero-subtitle{visibility:hidden}
.layout-editing .partner-hero-subtitle{visibility:visible}
