:root {
  --ink: #080607;
  --panel: #120d10;
  --wine: #5b0c20;
  --aubergine: #5d2b75;
  --ivory: #f2ede7;
  --muted: #a9a0a3;
  --line: rgba(242, 237, 231, 0.16);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--ink); color: var(--ivory); }
body { font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #dba0bd; outline-offset: 3px; }
button { color: inherit; }
[hidden] { display: none !important; }

.age-gate {
  position: relative; display: grid; min-height: 100svh; place-items: center;
  overflow: hidden; padding: 24px;
  background: linear-gradient(130deg, rgba(6,4,5,.96), rgba(21,7,13,.9)),
    url("page-01.webp") center/cover;
}
.age-gate::before {
  position: absolute; inset: 0; content: "";
  background: radial-gradient(ellipse at 50% 44%, transparent 0 16%, rgba(8,6,7,.58) 68%, rgba(8,6,7,.92) 100%);
}
.age-glow {
  position: absolute; width: min(840px,84vw); height: min(840px,84vw);
  border: 1px solid rgba(149,74,176,.22); border-radius: 50%;
  box-shadow: inset 0 0 140px rgba(91,12,32,.22), 0 0 180px rgba(93,43,117,.16);
  transform: translateY(-5%);
}
.age-card {
  position: relative; z-index: 1; width: min(620px,100%);
  padding: clamp(32px,6vw,68px); border: 1px solid rgba(242,237,231,.2);
  background: rgba(9,6,8,.78); box-shadow: 0 34px 90px rgba(0,0,0,.44);
  text-align: center; backdrop-filter: blur(18px);
}
.brand-mark {
  display: grid; width: 62px; height: 62px; margin: 0 auto 28px;
  place-items: center; border: 1px solid rgba(242,237,231,.75); border-radius: 50%;
  box-shadow: 0 0 30px rgba(129,50,86,.36);
}
.brand-mark span { font-family: Georgia,serif; font-size: 17px; letter-spacing: .07em; }
.eyebrow { margin: 0; color: #cfb7c0; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.age-card h1 {
  max-width: 520px; margin: 18px auto; font-family: Georgia,serif;
  font-size: clamp(40px,7vw,66px); font-weight: 400; letter-spacing: -.035em; line-height: .96;
}
.age-copy { max-width: 480px; margin: 0 auto; color: #c6bec0; font-size: 14px; line-height: 1.75; }
.age-actions { display: grid; gap: 12px; margin-top: 34px; }
.primary-button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 17px 21px; border: 1px solid #84304a;
  background: linear-gradient(110deg,#5b0c20,#76253e); cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
}
.primary-button span { font-size: 20px; font-weight: 400; }
.text-button { padding: 9px; border: 0; background: transparent; color: #9f9699; cursor: pointer; font-size: 12px; }
.privacy-note { margin: 24px 0 0; color: #766f71; font-size: 10px; line-height: 1.6; }
.denied-screen {
  display: grid; min-height: 100svh; place-content: center; padding: 24px;
  text-align: center; background: radial-gradient(circle,#211017,var(--ink) 60%);
}
.denied-screen h1 { margin: 4px 0; font-family: Georgia,serif; font-size: 48px; font-weight: 400; }
.denied-screen p { color: var(--muted); }

.catalog-shell {
  display: grid; min-height: 100svh; height: 100svh; grid-template-rows: 64px minmax(0,1fr) 72px;
  overflow: hidden;
  background: radial-gradient(circle at 12% 45%,rgba(93,43,117,.14),transparent 32%),
    radial-gradient(circle at 88% 38%,rgba(91,12,32,.18),transparent 34%), #080607;
}
.topbar {
  z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(18px,4vw,48px); border-bottom: 1px solid var(--line);
  background: rgba(8,6,7,.88); backdrop-filter: blur(16px);
}
.wordmark {
  display: flex; align-items: center; width: fit-content; color: var(--ivory);
  font-size: 15px; font-weight: 700; letter-spacing: .13em; text-decoration: none;
}
.wordmark-symbol {
  display: grid; width: 32px; height: 32px; margin-right: 10px; place-items: center;
  border: 1px solid rgba(242,237,231,.48); border-radius: 50%;
  font-family: Georgia,serif; font-size: 9px; letter-spacing: .04em;
}
.topbar-title { margin: 0; color: #92898c; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.topbar-actions { display: flex; justify-content: flex-end; gap: 10px; }
.topbar-actions button, .thumbnail-header button {
  padding: 8px 11px; border: 0; background: transparent; color: #b5adb0; cursor: pointer; font-size: 11px;
}
.viewer {
  position: relative; display: grid; min-height: 0;
  grid-template-columns: minmax(48px,1fr) minmax(0,1360px) minmax(48px,1fr);
  align-items: center; overflow: hidden; perspective: 1800px;
}
.ambient {
  position: absolute; top: 12%; bottom: 12%; width: 28%; border-radius: 50%;
  filter: blur(80px); opacity: .12; pointer-events: none;
}
.ambient-left { left: -16%; background: var(--aubergine); }
.ambient-right { right: -16%; background: var(--wine); }
.page-frame {
  position: relative; z-index: 1; display: grid; height: 100%; min-height: 0;
  place-items: center; padding: 22px 10px 30px;
}
.page-sheet {
  position: relative; width: min(100%,calc((100svh - 188px)*1.3862)); aspect-ratio: 2882/2079;
  overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #140e10;
  box-shadow: 0 34px 80px rgba(0,0,0,.52),0 4px 18px rgba(0,0,0,.42);
  transform-origin: center; will-change: transform,opacity;
}
.page-sheet img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.page-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,transparent 0 43%,rgba(255,255,255,.045) 49%,transparent 54% 100%);
}
.turning-next { animation: turn-next 360ms cubic-bezier(.55,0,.2,1); }
.turning-previous { animation: turn-previous 360ms cubic-bezier(.55,0,.2,1); }
@keyframes turn-next {
  0% { opacity: 1; transform: rotateY(0) translateX(0); }
  45% { opacity: .16; transform: rotateY(-14deg) translateX(-3%); }
  55% { opacity: .16; transform: rotateY(12deg) translateX(3%); }
  100% { opacity: 1; transform: rotateY(0) translateX(0); }
}
@keyframes turn-previous {
  0% { opacity: 1; transform: rotateY(0) translateX(0); }
  45% { opacity: .16; transform: rotateY(14deg) translateX(3%); }
  55% { opacity: .16; transform: rotateY(-12deg) translateX(-3%); }
  100% { opacity: 1; transform: rotateY(0) translateX(0); }
}
.swipe-hint { position: absolute; bottom: 6px; margin: 0; color: #716b6d; font-size: 9px; letter-spacing: .08em; }
.page-zone {
  z-index: 2; display: grid; width: 44px; height: 62px; place-items: center; justify-self: center;
  border: 1px solid rgba(255,255,255,.12); border-radius: 99px;
  background: rgba(17,12,14,.72); cursor: pointer; backdrop-filter: blur(12px);
}
.page-zone span { transform: translateY(-2px); font-family: Georgia,serif; font-size: 36px; }
.page-zone:disabled { cursor: default; opacity: .22; }
.catalog-controls {
  z-index: 5; display: grid; grid-template-columns: 1fr minmax(280px,520px) 1fr;
  align-items: center; padding: 0 clamp(18px,4vw,48px);
  border-top: 1px solid var(--line); background: rgba(8,6,7,.9); backdrop-filter: blur(16px);
}
.thumbnail-toggle {
  display: flex; align-items: center; width: fit-content; padding: 10px 0;
  border: 0; background: transparent; cursor: pointer; color: #aaa2a5; font-size: 11px; font-weight: 600;
}
.grid-icon { display: grid; width: 17px; margin-right: 9px; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-icon i { display: block; aspect-ratio: 1; border: 1px solid #aaa2a5; }
.progress-control { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 12px; }
.progress-control span { color: #aaa2a5; font-size: 10px; font-variant-numeric: tabular-nums; }
.progress-control input {
  width: 100%; height: 2px; margin: 0; appearance: none; cursor: pointer;
  background: linear-gradient(to right,#b25a7a 0 var(--progress),rgba(255,255,255,.16) var(--progress) 100%);
}
.progress-control input::-webkit-slider-thumb {
  width: 12px; height: 12px; appearance: none; border: 3px solid #1a1014;
  border-radius: 50%; background: #e9d8df;
}
.contact-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.contact-link { color: #c6bec0; font-size: 11px; text-decoration: none; }
.whatsapp-link { display: flex; align-items: center; }
.contact-dot {
  width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: #43d174; box-shadow: 0 0 12px rgba(67,209,116,.5);
}
.thumbnail-panel {
  position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: min(520px,92vw);
  padding: 28px; overflow: auto; border-right: 1px solid rgba(255,255,255,.12);
  background: rgba(14,9,11,.98); box-shadow: 34px 0 80px rgba(0,0,0,.46);
  transform: translateX(-104%); transition: transform 320ms cubic-bezier(.2,.75,.25,1);
}
.thumbnail-panel.is-open { transform: translateX(0); }
.thumbnail-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.thumbnail-header h2 { margin: 5px 0 0; font-family: Georgia,serif; font-size: 34px; font-weight: 400; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.thumbnail-grid button {
  position: relative; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  background: #171113; cursor: pointer;
}
.thumbnail-grid button.is-current { border-color: rgba(219,160,189,.72); }
.thumbnail-grid img { display: block; width: 100%; aspect-ratio: 2882/2079; object-fit: cover; }
.thumbnail-grid span {
  position: absolute; right: 7px; bottom: 7px; min-width: 26px; padding: 4px 5px;
  background: rgba(8,6,7,.78); font-size: 9px; font-variant-numeric: tabular-nums;
}
.panel-backdrop {
  position: fixed; z-index: 19; inset: 0; border: 0;
  background: rgba(0,0,0,.64); cursor: default; backdrop-filter: blur(3px);
}
noscript { display: block; padding: 40px; color: white; text-align: center; }

@media (max-width: 900px) {
  .catalog-shell { grid-template-rows: 58px minmax(0,1fr) 108px; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar-title, .topbar-actions button:last-child { display: none; }
  .viewer { grid-template-columns: 1fr; }
  .page-frame { grid-column: 1; grid-row: 1; padding: 14px 10px 28px; }
  .page-sheet { width: min(100%,calc((100svh - 212px)*1.3862)); }
  .page-zone {
    position: absolute; z-index: 4; bottom: 16px; width: 40px; height: 40px;
    border: 0; background: rgba(8,6,7,.72);
  }
  .page-zone-left { left: 14px; }
  .page-zone-right { right: 14px; }
  .swipe-hint { display: none; }
  .catalog-controls { grid-template-columns: auto 1fr; grid-template-rows: 42px 54px; gap: 0 18px; }
  .thumbnail-toggle { grid-column: 1; grid-row: 1; }
  .progress-control { grid-column: 2; grid-row: 1; }
  .contact-actions {
    grid-column: 1/-1; grid-row: 2; justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.08);
  }
}
@media (max-width: 560px) {
  .age-gate { padding: 14px; }
  .age-card { padding: 34px 24px; }
  .topbar { padding: 0 14px; }
  .wordmark { font-size: 12px; }
  .wordmark-symbol { width: 28px; height: 28px; font-size: 8px; }
  .topbar-actions button { padding-right: 0; }
  .page-sheet { width: calc(100vw - 20px); }
  .catalog-controls { padding: 0 16px; }
  .email-link { font-size: 10px; }
  .thumbnail-panel { padding: 22px 16px; }
  .thumbnail-grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
