/* ============================================================================
   site.css — my.enigmats
   Direction: Printed wedding stationery (warm paper + ink + tactile cards)
   Drop-in replacement for the whole file.
   ============================================================================ */

/* -----------------------------
   1) TOKENS
------------------------------ */

:root{
  /* Paper + Ink */
  --paper: #f4efe6;
  --paper-2: #efe6d7;
  --paper-3: #fbf7f0;

  --ink: #161616;
  --ink-soft: rgba(22,22,22,0.78);
  --ink-muted: rgba(22,22,22,0.62);

  --rule: rgba(22,22,22,0.14);
  --rule-strong: rgba(22,22,22,0.22);

  /* Brand */
  --brand: #0a4497;
  --brand-deep: #08356f;
  --wine: #8b1e2d;

  /* Surfaces */
  --panel: rgba(255,255,255,0.78);
  --panel-2: rgba(248,246,241,0.76);
  --card: rgba(255,255,255,0.88);

  /* Shadows */
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.12);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.10);
  --shadow-sm: 0 6px 14px rgba(0,0,0,0.08);

  /* Radius */
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Type */
  --heading-font: "Cormorant Garamond", ui-serif, Georgia, serif;
  --body-font: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout */
  --content-width: 1120px;
  --pad: 24px;

  /* Buttons */
  --btn-h: 42px;
}

/* -----------------------------
   2) BASE
------------------------------ */

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0;
  min-height:100svh;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 50% -220px, rgba(255,255,255,0.92), transparent 60%),
    radial-gradient(900px 650px at 18% 14%, rgba(10,68,151,0.10), transparent 62%),
    radial-gradient(900px 650px at 82% 18%, rgba(139,30,45,0.08), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}

img, video{ max-width:100%; height:auto; display:block; }
a{ color: inherit; }
a:hover{ opacity:0.96; }

/* headings */
h1,h2,h3,h4,h5{
  font-family: var(--heading-font);
  letter-spacing: 0.03em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
h1{
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.0rem);
  line-height: 1.05;
  text-wrap: balance;
}
h2{
  font-size: clamp(1.25rem, 1.05rem + 1.1vw, 1.8rem);
  line-height: 1.15;
  text-wrap: balance;
}
h3{ font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.35rem); }

p{
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  line-height: 1.72;
}
.lede{
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.14rem);
  line-height: 1.85;
  text-wrap: pretty;
}
.center{ text-align:center; }

/* -----------------------------
   3) GLOBAL TEXTURE OVERLAYS (subtle)
------------------------------ */

.home-page{
  position: relative;
  isolation: isolate;
}

/* grain */
.home-page::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("/public/assets/textures/grain.png");
  background-repeat: repeat;
  background-size: 280px;
  opacity: 0.08;          /* keep it felt, not seen */
  pointer-events: none;
  z-index: 0;
}

/* sparkle + vignette */
.home-page::after{
  content:"";
  position: fixed;
  inset: 0;
  background-image:
    url("/public/assets/textures/sparkle.png"),
    radial-gradient(circle at center, transparent 62%, rgba(0,0,0,0.07) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center center;
  background-size: 1400px, cover;
  opacity: 0.10;          /* do NOT go higher unless you want obvious glitter */
  pointer-events: none;
  z-index: 0;
}

/* -----------------------------
   4) LAYOUT / SHELL
------------------------------ */

.wrap{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--pad);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page{
  width: calc(100% - 24px);
  max-width: var(--content-width);
  margin: max(12px, calc(env(safe-area-inset-top, 0px) + 12px)) auto
          max(16px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  padding: 0;
  position: relative;
  z-index: 1;
}

header{ text-align:center; padding: 28px 0 18px; }

.brand-mark{
  width: clamp(234px, 42vw, 416px);
  margin: 0 auto 10px;
}

/* -----------------------------
   5) PANELS (hero/section/reception/final/footer)
------------------------------ */

.hero,
.section,
.reception-selection-box,
.final-cta,
.site-footer{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.10);
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,0.70), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.hero{
  padding: clamp(18px, 3.2vw, 34px);
  overflow: hidden;
}

.hero__head{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.kicker{
  text-align:center;
  margin: 14px auto 0;
  font-family: var(--heading-font);
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.45rem);
  color: var(--ink);
}

.section{
  margin-top: 16px;
  padding: clamp(14px, 2vw, 20px);
}

.section__title{
  text-align:center;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.reception-selection-box{
  margin-top: 16px;
  padding: 18px 16px;
  text-align:center;
}

.final-cta{
  margin-top: 16px;
  padding: 16px 14px;
  text-align:center;
}

.site-footer{
  margin-top: 18px;
  padding: 16px 0 20px;
  text-align: center;
}

.site-footer a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

/* -----------------------------
   6) HERO MODULES
------------------------------ */

.my-enigmats__carousel{
  width: min(360px, 100%);
  overflow: hidden;
}

.my-enigmats__carousel-stack{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.my-enigmats__carousel-stack img{
  position:absolute;
  inset:0;
  width:80%;
  height:80%;
  object-fit: contain;
  object-position: top center;
  opacity:0;
  transition: opacity 0.35s ease;
}

.my-enigmats__carousel-stack img.is-active{ opacity:1; }

.price-pill{
  text-align:center;
  margin-top: 12px;
  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 1.0rem + 0.35vw, 1.32rem);
  color: var(--ink);
}

.price-pill a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: linear-gradient(180deg, #fbf7f0, #efe6d7);
  text-decoration:none;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.55);
}

/* -----------------------------
   7) BUTTONS (ink-stamped)
------------------------------ */

.cta-row{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: var(--btn-h);
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-family: var(--body-font);
  font-weight: 850;
  letter-spacing: 0.03em;
  border: 1px solid rgba(0,0,0,0.16);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0,0,0,0.12);
}

.btn--primary{
  color: #fff;
  border-color: rgba(0,0,0,0.12);
  background: linear-gradient(180deg, rgba(10,68,151,0.98), rgba(8,53,111,0.98));
  box-shadow: 0 14px 26px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn--ghost{
  color: var(--ink);
  background: linear-gradient(180deg, #fbf7f0, #efe6d7);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.55);
}

/* -----------------------------
   8) GAME GRID
------------------------------ */

.game-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (min-width: 1040px){
  .game-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px){
  .game-grid{ grid-template-columns: 1fr; }
}

/* default “card” baseline */
.card{
  border-radius: var(--radius-lg);
}

.game-card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,246,241,0.84));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.60);
  overflow: hidden;
}

.card__title{
  margin: 0 0 6px;
  color: var(--ink);
}

.card__copy{
  margin: 0 0 8px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* -----------------------------
   9) VINTAGE TICKET CARDS (the “alive” feel)
   Apply by adding class="ticket" to .game-card (you already do)
------------------------------ */

.ticket{
  --t-paper: #f2eadb;
  --t-paper-2: #eadfcb;
  --t-ink: #1c1c1c;
  --t-accent: var(--wine);

  position: relative;
  padding: 16px 16px 14px;
  color: var(--t-ink);

  background:
    /* micro engraving */
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.028) 0px,
      rgba(0,0,0,0.028) 1px,
      transparent 1px,
      transparent 5px
    ),
    /* faint crosshatch */
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.016) 0px,
      rgba(0,0,0,0.016) 1px,
      transparent 1px,
      transparent 7px
    ),
    /* paper lift + vignette */
    radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,0.70), transparent 62%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,0.10), transparent 55%),
    linear-gradient(180deg, var(--t-paper), var(--t-paper-2));

  border: 1px solid rgba(0,0,0,0.16);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.12),
    0 6px 12px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

/* worn edges + specks */
.ticket::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(90% 75% at 50% 40%, transparent 60%, rgba(0,0,0,0.10) 100%),
    radial-gradient(220px 160px at 18px 18px, rgba(0,0,0,0.08), transparent 62%),
    radial-gradient(220px 160px at calc(100% - 18px) 18px, rgba(0,0,0,0.07), transparent 62%),
    radial-gradient(240px 180px at 18px calc(100% - 18px), rgba(0,0,0,0.06), transparent 62%),
    radial-gradient(240px 180px at calc(100% - 18px) calc(100% - 18px), rgba(0,0,0,0.06), transparent 62%),
    radial-gradient(circle at 18% 28%, rgba(0,0,0,0.10) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 34%, rgba(0,0,0,0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 66%, rgba(0,0,0,0.09) 0 1px, transparent 2px),
    radial-gradient(circle at 41% 78%, rgba(0,0,0,0.08) 0 1px, transparent 2px);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

/* soft “coated stock” highlight */
.ticket::after{
  content:"";
  position:absolute;
  inset:-30% -20%;
  pointer-events:none;
  background: radial-gradient(closest-side at 28% 18%, rgba(255,255,255,0.22), transparent 62%);
  opacity: 0.55;
  transform: rotate(-10deg);
}

/* scalloped edge (webkit). fallback is just rounded */
.ticket{
  -webkit-mask:
    radial-gradient(10px 10px at 10px 10px, transparent 9px, #000 10px) 0 0/20px 20px,
    radial-gradient(10px 10px at calc(100% - 10px) 10px, transparent 9px, #000 10px) 0 0/20px 20px,
    radial-gradient(10px 10px at 10px calc(100% - 10px), transparent 9px, #000 10px) 0 0/20px 20px,
    radial-gradient(10px 10px at calc(100% - 10px) calc(100% - 10px), transparent 9px, #000 10px) 0 0/20px 20px,
    linear-gradient(#000 0 0);
}

/* tiny “imperfect stack” feel */
.home-page .game-card.ticket:nth-child(odd){ transform: rotate(-0.35deg); }
.home-page .game-card.ticket:nth-child(even){ transform: rotate(0.25deg); }

/* inside frame */
.ticket__frame{
  position: relative;
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background:
    radial-gradient(110% 80% at 50% 10%, rgba(255,255,255,0.55), transparent 62%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.35),
    inset 0 0 0 6px rgba(0,0,0,0.05);
}

/* admit band */
.ticket__band{
  position: relative;
  border-radius: 12px;
  padding: 10px 12px;
  text-align:center;
  background:
    linear-gradient(180deg, rgba(244, 152, 165, 0.2), rgba(242, 109, 126, 0.1)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.10) 1px, transparent 1px, transparent 9px);
  border: 1px solid rgba(139,30,45,0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

/* if you use ticket__admit */
.ticket__admit{
  font-family: var(--heading-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  color: var(--wine);
}

/* if you use ticket__one for the title line */
.ticket__one{
  display:block;
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* perforation */
.ticket__perforation{
  position: relative;
  margin: 12px 0 10px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.30), transparent);
}
.ticket__perforation::after{
  content:"";
  position:absolute;
  inset:-6px 0;
  background: radial-gradient(circle, rgba(0,0,0,0.26) 1px, transparent 2px) 0 50%/10px 10px repeat-x;
  opacity: 0.35;
}

/* ticket body text should be ink, not muted gray */
.ticket .card__copy{
  color: rgba(22,22,22,0.72);
  margin: 0 0 8px;
}
.ticket .card__copy strong{ color: rgba(22,22,22,0.92); }

/* serial */
.ticket__serial{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(22,22,22,0.58);
}

/* if icons exist, make them “printed” */
.ticket .game-card__icon img{
  filter: saturate(0.92) contrast(1.05);
  opacity: 0.92;
}

/* -----------------------------
   10) FEATURE CARD (Wedding Dash hero)
------------------------------ */

.game-card__hero-wrap{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.game-card__hero-image{
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.game-card__ribbon{
  position:absolute;
  top: 16px;
  right: -44px;
  background: linear-gradient(180deg, #fbf7f0, #efe6d7);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.14);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 52px;
  transform: rotate(32deg);
  box-shadow: var(--shadow-sm);
}

/* -----------------------------
   11) RECEPTION PANEL DETAILS
------------------------------ */

.reception-selection-box__price-ribbon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.16);
  background: linear-gradient(180deg, #fbf7f0, #efe6d7);
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.55);
}

/* -----------------------------
   12) SPLASH + LIGHTBOX
------------------------------ */

.home-splash{
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, var(--paper-3), var(--paper));
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.home-splash__logo{
  width: clamp(225px, 60vw, 520px);
}

.home-splash--hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox[aria-hidden="false"]{ display:flex; }

.lightbox img{
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox img.is-visible{ opacity:1; }

.lightbox button{
  position:absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(180deg, #fbf7f0, #efe6d7);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.16);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
}

/* -----------------------------
   13) PRICING PAGE (minimal, matches paper)
------------------------------ */

.pkg-page{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem);
  display:flex;
  flex-direction:column;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  color: var(--ink);
}

.pkg-card{
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,0.70), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,246,241,0.82));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.10);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.55);
}

/* -----------------------------
   14) RESPONSIVE
------------------------------ */

@media (max-width: 720px){
  .wrap{ padding: 20px 16px 32px; }
  header{ padding: 24px 0 14px; }
  .page{ width: calc(100% - 16px); }
  .hero,.section,.reception-selection-box,.final-cta,.site-footer{ border-radius: var(--radius-lg); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn{ transition: none; }
  .btn:hover{ transform: none; }
}

/* -----------------------------
   15) Homepage font lock
------------------------------ */

.home-page,
.home-page * {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif !important;
}

/* -----------------------------
   16) Homepage CTA polish
------------------------------ */

.home-page .cta-row {
  gap: 8px !important;
  margin-top: 12px !important;
}

.home-page .cta-row .btn {
  min-height: 36px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  background: #f2ebdd !important;
  color: #1f2a33 !important;
  box-shadow: none !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

.home-page .cta-row .btn:hover {
  background: #ebe1d0 !important;
  transform: none !important;
}

/* -----------------------------
   17) Sentimental tone lock
------------------------------ */

.home-page {
  background:
    radial-gradient(1200px 760px at 50% -240px, rgba(255,255,255,0.72), transparent 62%),
    #f3efe7 !important;
  color: #2a2a2a !important;
}

.home-page .page {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
}

.home-page .hero,
.home-page .section,
.home-page .reception-selection-box,
.home-page .final-cta {
  background:
    radial-gradient(130% 90% at 50% 8%, rgba(255,255,255,0.68), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(245,240,231,0.86)) !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.55) !important;
  backdrop-filter: none !important;
}

.home-page .game-grid .game-card,
.home-page .game-grid--reception .game-card {
  box-shadow:
    0 6px 14px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.52) !important;
}
