:root {
  --cran: #7a1f2b;
  --cran-dark: #5c1620;
  --gold: #c9a25c;
  --cream: #f7efe1;
  --ink: #2b1d16;
  --white: #fffdf8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* top nav */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--cran);
  border-bottom: 2px solid var(--gold);
  position: relative;
  z-index: 20;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover { background: rgba(255,255,255,.08); }
.burger {
  display: none;
  background: none;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  color: var(--cream);
  font-size: 20px;
  padding: 4px 10px;
  cursor: pointer;
}
@media (max-width: 719px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cran-dark);
    border-bottom: 2px solid var(--gold);
    padding: 8px 14px 14px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-link { text-align: left; padding: 12px; font-size: 16px; }
  .nav-buy { text-align: center; margin-top: 8px; }
}

/* desktop share popover */
.share-pop[hidden] { display: none; }
.share-pop {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(43,29,22,.35);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
}
.share-pop-title { font-weight: 800; text-align: center; margin-bottom: 4px; }
.share-pop button, .share-pop a {
  background: var(--cream);
  border: 1px solid rgba(201,162,92,.6);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.share-pop .sp-close {
  background: none; border: none;
  color: #a09280; text-align: center;
  font-size: 13px; padding: 6px;
}
.wordmark {
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
}
.nav-buy {
  background: linear-gradient(180deg, #e2c282, var(--gold));
  color: var(--cran-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  padding: 11px 20px;
  white-space: nowrap;
  border: 1px solid #f2e0b8;
  box-shadow: 0 3px 12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.nav-buy:active { transform: scale(.97); }

/* legacy banner class kept for subpages */
.pg13-banner {
  background: var(--cran);
  color: var(--cream);
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
}

/* hero headline */
.hero-head { text-align: center; padding: 6px 8px 14px; }
.hero-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--cran);
  font-size: 26px;
  line-height: 1.15;
}
.hero-head p { color: #7a6a5c; font-size: 14px; margin-top: 4px; }
@media (min-width: 760px) { .hero-head h1 { font-size: 34px; } }

/* hero: the card itself, a real top-fold greeting card in 3D */
.hero { position: relative; max-width: 900px; margin: 0 auto; padding: 18px 14px 0; }
.card-stage {
  position: relative;
  perspective: 1700px;
  perspective-origin: 50% 30%;
}
.card3d {
  position: relative;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: height 1s cubic-bezier(.4, 0, .2, 1), transform 1.1s ease;
  transform-origin: top center;
}
/* card back edge peeking below: it is an object, not a photo */
.card3d::before {
  content: "";
  position: absolute;
  left: 1.5%; right: 1.5%;
  bottom: -8px;
  height: 14px;
  background: linear-gradient(180deg, #efe5d1, #ddd0b8);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 34px rgba(43,29,22,.4);
}
.card3d:not(.open) { transform: rotateX(4deg); }
.card-stage.zoom-top .card3d {
  transform: scale(1.45);
  transform-origin: 50% 12%;
}
.panel {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: var(--panelH, 300px);
  border-radius: 8px;
}
.panel.base {
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(43,29,22,.35);
  background: var(--white);
}
.panel.flap {
  z-index: 2;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(.55, 0, .3, 1);
}
.card3d.open .flap { transform: rotateX(180deg); }
/* little breathing "I am openable" hint while closed */
.card3d:not(.open) .flap { animation: peek 6s ease-in-out infinite; }
@keyframes peek {
  0%, 86%, 100% { transform: rotateX(0); }
  92% { transform: rotateX(-8deg); }
}
.face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(43,29,22,.35);
}
.face img, .face video { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.front::after {
  /* card edge sheen so it reads as paper, not a photo */
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,253,248,.55);
  border-radius: 8px;
  box-shadow: inset 0 -3px 8px rgba(43,29,22,.25), inset 0 2px 3px rgba(255,255,255,.35);
  pointer-events: none;
}
.face.back { transform: rotateX(180deg); }
.card3d:not(.open) { cursor: pointer; }

/* gift ribbon for shared-link arrivals */
.gift-ribbon {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: var(--cran);
  color: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  animation: hintpulse 1.8s ease-in-out infinite;
}

/* centerfold reveal */
.cf-hint {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  animation: hintpulse 2.2s ease-in-out infinite;
}
@keyframes hintpulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
.cf-overlay[hidden] { display: none !important; }
.cf-overlay {
  position: absolute; inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(28, 16, 12, .82);
  border-radius: 10px;
}
.cf-overlay {
  opacity: 0;
  transition: opacity .5s ease;
}
.cf-overlay.shown { opacity: 1; }
/* the unfold: clipped wrapper grows from half height to full */
.cf-unwrap {
  position: relative;
  height: calc(var(--cfh, 400px) / 2);
  overflow: hidden;
  border-radius: 6px;
  transition: height 1.1s cubic-bezier(.5, 0, .25, 1);
}
.cf-overlay.unfolded .cf-unwrap { height: var(--cfh, 400px); }
.cf-unwrap::after {
  /* fold crease shadow that fades as it opens */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
  opacity: 1;
  transition: opacity .9s ease .3s;
  pointer-events: none;
}
.cf-overlay.unfolded .cf-unwrap::after { opacity: 0; }
.cf-flipper {
  position: relative;
  height: var(--cfh, 400px);
  aspect-ratio: 900 / 1233;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.5, 0, .3, 1);
}
.cf-overlay.flipped .cf-flipper { transform: rotateY(180deg); }
.cf-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
}
.cf-face img { width: 100%; height: 100%; object-fit: cover; }
.cf-face.cf-b { transform: rotateY(180deg); }
.cf-controls { display: flex; gap: 10px; }
.cf-controls button {
  background: var(--cran);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.hero-controls {
  text-align: center;
  padding: 14px 0 4px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  background: transparent;
  color: var(--cran);
  border: 2px solid var(--cran);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.share-btn:active { transform: scale(.97); }
.sound-btn.pulse { animation: btnpulse 1.6s ease-in-out infinite; }
@keyframes btnpulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(122,31,43,.35); }
  50% { transform: scale(1.05); box-shadow: 0 6px 26px rgba(122,31,43,.6); }
}

/* naughty or nice checker: framed panel so it reads as its own feature */
.checker {
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(201,162,92,.6);
  border-top: 4px solid var(--cran);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(43,29,22,.12);
  padding: 24px 18px;
  margin: 30px auto;
  scroll-margin-top: 80px;
}
.checker h2 { font-size: 24px; }
#check-form, #check-email-form {
  display: flex; gap: 8px;
  max-width: 420px; margin: 0 auto;
}
#check-form input, #check-email-form input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 15px;
  background: var(--white);
}
#check-form button, #check-email-form button {
  background: var(--cran);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.check-result { margin-top: 18px; }
.check-verdict {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .04em;
}
.check-verdict .naughty { color: var(--cran); }
.check-verdict .nice { color: #2e7d43; }
.check-reason { font-size: 15px; margin: 6px 0 12px; }
.check-signup {
  margin: 18px auto 0;
  max-width: 460px;
  background: var(--white);
  border: 1px solid rgba(201,162,92,.6);
  border-radius: 14px;
  padding: 14px;
}
.check-signup p { font-size: 14px; margin-bottom: 10px; }

/* captions: open subtitles, outlined text, no backdrop */
.caption-bar[hidden] { display: none; }
.caption-bar {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  z-index: 7;
  width: min(94%, 600px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 1;
  transition: opacity .25s ease;
  pointer-events: none;
}
.caption-bar.swap { opacity: 0; }
.cap-who, .cap-text {
  text-shadow:
    -1px -1px 0 rgba(20,10,8,.95), 1px -1px 0 rgba(20,10,8,.95),
    -1px 1px 0 rgba(20,10,8,.95), 1px 1px 0 rgba(20,10,8,.95),
    0 2px 8px rgba(0,0,0,.6);
}
.cap-who {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.cap-who.mrs { color: #f2a9cc; }
.cap-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: #fffdf6;
}
.cap-text em { font-style: italic; }
.cap-text b { color: #ffd98a; letter-spacing: .02em; }
@media (min-width: 760px) { .cap-text { font-size: 20px; } }

/* playback controls: labeled, always reachable, above the zoomed card */
.play-controls[hidden] { display: none; }
.play-controls {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 8;
  display: flex;
  gap: 8px;
}
.play-controls button {
  background: rgba(24,13,10,.8);
  color: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.4);
}
.play-controls button:active { transform: scale(.96); }

.sound-btn {
  background: var(--cran);
  color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.sound-btn:active { transform: scale(.97); }

/* profile: framed creator panel so it reads as its own object */
.profile-wrap { max-width: 640px; margin: 26px auto 0; padding: 0 16px; }
.profile-card {
  background: var(--white);
  border: 1px solid rgba(201,162,92,.6);
  border-top: 4px solid var(--cran);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(43,29,22,.12);
  padding: 4px 4px 14px;
}
.profile-name { font-size: 22px; color: var(--ink); }
.sub-row {
  display: flex; gap: 10px;
  padding: 4px 16px 0;
}
.sub-free, .sub-paid {
  flex: 1;
  border-radius: 999px;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.sub-free {
  background: var(--cran);
  color: var(--white);
  border: 2px solid var(--gold);
}
.sub-free.done { background: #2e7d43; border-color: #2e7d43; }
.sub-paid {
  background: transparent;
  color: #a09280;
  border: 2px dashed #cbbfa9;
}
.sub-note {
  text-align: center;
  font-size: 12px;
  color: #a09280;
  padding: 8px 16px 0;
}
.profile {
  display: flex; gap: 16px;
  padding: 20px 16px;
  align-items: flex-start;
}
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}
.profile-info h1 { font-size: 22px; }
.verified { color: #3897f0; font-size: 16px; }
.handle { color: var(--cran); font-weight: 600; font-size: 14px; }
.bio { font-size: 14px; margin-top: 6px; }
.stats { display: flex; gap: 22px; margin-top: 10px; }
.stats div { text-align: center; }
.stats b { display: block; font-size: 16px; }
.stats span { font-size: 11px; color: #7a6a5c; text-transform: uppercase; letter-spacing: .05em; }

/* sections */
section { padding: 18px 16px; max-width: 640px; margin: 0 auto; }
h2 { font-size: 20px; color: var(--cran); margin-bottom: 10px; }
.hint { font-size: 13px; color: #7a6a5c; margin: -6px 0 10px; }

/* feed: vertical, one card after another, like a real creator feed */
.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.feed-card {
  width: min(100%, 400px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
}
.feed-card img, .feed-card video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feed-card img { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-2%); }
}
.feed-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  color: var(--white);
  font-size: 13px;
}
.likes { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 12px; }

/* shop */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.shop-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(43,29,22,.08);
  padding-bottom: 10px;
}
.shop-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.shop-item p { font-size: 13px; padding: 8px 10px 0; }
.shop-item b { font-size: 14px; padding: 0 10px; color: var(--cran); }
.tag.sold {
  position: absolute; top: 10px; left: -30px;
  background: var(--cran);
  color: var(--white);
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 34px;
  transform: rotate(-18deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.shop-note { margin-top: 14px; font-size: 14px; }

/* card CTA */
.card-cta { text-align: center; }
.card-img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(43,29,22,.25);
  margin: 14px auto;
}
.card-cta p { font-size: 15px; text-align: left; }
.buy-btn {
  display: block;
  background: var(--cran);
  color: var(--white);
  border: 2px solid var(--gold);
  text-decoration: none;
  font-size: 18px; font-weight: 800;
  border-radius: 999px;
  padding: 15px 20px;
  margin: 18px auto 8px;
  max-width: 340px;
  box-shadow: 0 4px 18px rgba(122,31,43,.35);
}
.buy-btn:active { transform: scale(.98); }
.tiny { font-size: 12px; color: #7a6a5c; }

/* naughty list */
.naughty { text-align: center; }
.naughty p { font-size: 14px; margin: 6px 0 12px; }
#naughty-form { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
#naughty-form input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 15px;
  background: var(--white);
}
#naughty-form button {
  background: var(--cran);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 30px 16px 40px;
  font-size: 12px;
  color: #7a6a5c;
}
footer p + p { margin-top: 6px; }
footer a { color: var(--cran); }

/* legal + contact pages */
.legal { padding-top: 20px; }
.legal h1 { color: var(--cran); font-size: 26px; margin-bottom: 4px; }
.legal h2 { font-size: 17px; margin: 18px 0 6px; }
.legal p { font-size: 15px; margin-bottom: 8px; }
.legal a { color: var(--cran); }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
}
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.contact-form button {
  background: var(--cran);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
#contact-done { font-size: 16px; margin-top: 16px; }

/* toast */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  max-width: 88vw;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  z-index: 50;
}

/* desktop: centered column, hero framed, art always complete */
@media (min-width: 760px) {
  .hero { margin-top: 18px; }
  .hero-img { border-radius: 14px; box-shadow: 0 10px 34px rgba(43,29,22,.25); }
  section, .profile { max-width: 680px; }
}
