.jcnat-flyer {
  width: min(100%, 760px);
  margin: 0 auto;
  --jcnat-brown: #a6401d;
  --jcnat-brown-dark: #963609;
  --jcnat-brown-light: #a6401d;
  --jcnat-gold: #d39a37;
  --jcnat-cream: #f8efe2;
  --jcnat-green: #435d50;
  position: relative;
}

.jcnat-flyer__hint {
  margin: 0 0 12px;
  text-align: center;
  font-size: .92rem;
  color: #5d5048;
}

.jcnat-flyer__hint [data-jcnat-touch-hint] { display: none; }

.jcnat-flyer__stage {
  width: min(100%, 560px);
  margin: 0 auto;
  perspective: 1500px;
}

.jcnat-flyer__card {
  position: relative;
  width: 100%;
  aspect-ratio: 99 / 208;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  outline: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.jcnat-flyer__card.is-flipped { transform: rotateY(180deg); }
.jcnat-flyer__card:focus-visible { box-shadow: 0 0 0 4px rgba(99,53,31,.28); border-radius: 12px; }

.jcnat-flyer__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 14px 34px rgba(57, 39, 28, .18);
  background: var(--jcnat-cream);
}

.jcnat-flyer__face--back { transform: rotateY(180deg); }
.jcnat-flyer__face > img { width: 100%; height: 100%; object-fit: fill; display: block; pointer-events: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

.jcnat-flyer__hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(2px);
}

.jcnat-flyer__hotspot--site { --x: 10%; --y: 89.1%; --w: 80%; --h: 5.6%; }

.jcnat-flyer__agenda {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 4px 6px;
  background: var(--jcnat-brown) !important;
  border: 2px solid var(--jcnat-gold);
  box-shadow: 0 4px 10px rgba(66, 34, 18, .22);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: clamp(7px, 1.45vw, 10px);
  line-height: 1.05;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(3px);
  overflow: hidden;
}

.jcnat-flyer__agenda--front { left: 75.20%; top: 78.06%; width: 13.81%; height: 6.77%; }
.jcnat-flyer__agenda--back { left: 78.55%; top: 88.80%; width: 11.53%; height: 5.73%; }
.jcnat-flyer__agenda--front { font-size: clamp(7px, 1.45vw, 10px); }
.jcnat-flyer__agenda--back { font-size: clamp(7px, 1.30vw, 9px); }


.jcnat-flyer__phone { appearance: none; -webkit-appearance: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(2px); }
.jcnat-flyer__phone--jc { --x: 21.7%; --y: 87.1%; --w: 56.0%; --h: 2.05%; }
.jcnat-flyer__phone--nat { --x: 21.7%; --y: 89.15%; --w: 56.0%; --h: 2.05%; }

.jcnat-flyer__hotspot.is-disabled { cursor: default; pointer-events: none; }

.jcnat-flyer__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.jcnat-flyer__action,
.jcnat-flyer__phone-action,
.jcnat-flyer__phone-cancel {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.jcnat-flyer__action {
  appearance: none;
  -webkit-appearance: none;
  background: var(--jcnat-brown) !important;
  border: 2px solid var(--jcnat-gold);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(66, 34, 18, .18);
}
.jcnat-flyer__action--secondary {
  background: #f4eadc !important;
  border: 1px solid #d7b277;
  color: var(--jcnat-brown-dark) !important;
  box-shadow: 0 2px 6px rgba(66, 34, 18, .10);
}
.jcnat-flyer__status { min-height: 1.4em; flex-basis: 100%; text-align: center; font-size: .9rem; }

.jcnat-flyer__phone-sheet[hidden] { display: none; }
.jcnat-flyer__phone-sheet { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: end center; }
.jcnat-flyer__phone-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.46); }
.jcnat-flyer__phone-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 420px);
  box-sizing: border-box;
  margin: 14px;
  padding: 18px;
  border-radius: 16px;
  background: #fffaf3;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.jcnat-flyer__phone-dialog h2 { margin: 0 0 12px; font-size: 1.2rem; text-align: center; }
.jcnat-flyer__phone-action { display: block; margin: 8px 0; background: var(--jcnat-brown) !important; color: #fff !important; text-decoration: none !important; text-align: center; border: 2px solid var(--jcnat-gold); }
.jcnat-flyer__phone-cancel { width: 100%; background: #f4eadc !important; color: var(--jcnat-brown-dark) !important; border: 1px solid #d7b277; }

.jcnat-flyer.is-debug .jcnat-flyer__hotspot,
.jcnat-flyer.is-debug .jcnat-flyer__agenda,
.jcnat-flyer.is-debug .jcnat-flyer__phone {
  outline: 2px solid #d32828;
  outline-offset: -2px;
  background-color: rgba(255, 240, 0, .20) !important;
}

.jcnat-flyer-missing {
  max-width: 720px;
  margin: 20px auto;
  padding: 16px;
  border-left: 4px solid #b66a2f;
  background: #fff7ec;
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .jcnat-flyer__hint [data-jcnat-desktop-hint] { display: none; }
  .jcnat-flyer__hint [data-jcnat-touch-hint] { display: inline; }
  .jcnat-flyer__card { cursor: default; }
}

@media (max-width: 620px) {
  .jcnat-flyer { width: 100%; }
  .jcnat-flyer__stage { width: min(100%, 430px); }
  .jcnat-flyer__face { border-radius: 7px; }
  .jcnat-flyer__agenda { font-size: clamp(8px, 3vw, 12px); border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .jcnat-flyer__card { transition-duration: .01ms; }
}
