/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background:#0b0b0f;
  color:#fff;
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}

/* ===== SCROLL SNAP WRAPPER ===== */
.page {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HERO BACKGROUND ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0,0,0) scale(1.03);
}

.and-bg { background-image: url("img/hero1_large.webp"); }
.boob-bg { background-image: url("img/hero2_large.webp"); }

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.08),
    rgba(0,0,0,0.65)
  );
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
  z-index: 3;
  user-select: none;
}

/* ===== CARD CONTAINER ===== */
.cards {
  position: relative;
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  z-index: 2;
  padding: 0 6vw;
}

/* ===== CARD ===== */
.card {
  position: relative;
  width: 240px;
  height: 340px;
  perspective: 1200px;
  cursor: pointer;
  transition: transform 0.75s ease;
  transform-style: preserve-3d;
  isolation: isolate;
}

.card:hover {
  transform: scale(1.03);
}

/* ===== LOGIN HINT ===== */
.top-right-hint{
  position: fixed;
  top: calc(20px + env(safe-area-inset-top));
  right: calc(48px + env(safe-area-inset-right));
  z-index: 50;
}

.login-hint{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}

.login-hint:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.login-hint.is-logged{
  opacity: .85;
}

/* ===== CARD GLOW (INSIDE SURFACE) ===== */
.card::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events:none;
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 1;
}

.card-inner{
  position: relative;
  z-index: 2;
}

/* ===== PERK GLOW ===== */
.card.glow-perk::before{
  opacity: 1;
  background:
    radial-gradient(520px 260px at 25% 20%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(420px 260px at 75% 80%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  animation: cardGlowPulse 2.8s ease-in-out infinite;
}

/* ===== IDLE PLAY GLOW ===== */
.card.glow-idle::before{
  opacity: 1;
  background:
    radial-gradient(520px 260px at 30% 15%, rgba(255,255,255,0.14), transparent 62%),
    radial-gradient(420px 260px at 70% 85%, rgba(255,255,255,0.08), transparent 55%);
  animation: cardGlowPulse 3.5s ease-in-out infinite;
}

/* Keep glow animation even on hover */
.cards .card:hover::before{
  opacity: 1;
}

@keyframes cardGlowPulse{
  0%,100% { opacity: .65; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.01); }
}

/* ===== OUTER HALO ===== */
.card::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.75s ease;
}

/* THEME COLORS */
.hero[data-theme="and"] .card::after {
  box-shadow:
    0 0 0 1px rgba(170,140,255,0.18),
    0 0 18px 6px rgba(170,140,255,0.18),
    0 0 34px 12px rgba(170,140,255,0.12);
}

.hero[data-theme="boob"] .card::after {
  box-shadow:
    0 0 0 1px rgba(130,220,255,0.18),
    0 0 18px 6px rgba(130,220,255,0.18),
    0 0 34px 12px rgba(130,220,255,0.12);
}

/* Never glow before flip */
.card:not(.flipped)::after {
  opacity: 0;
  box-shadow: none;
}

/* Only allow halo on chosen glowing card */
.card.glow-perk.flipped::after,
.card.glow-idle.flipped::after {
  opacity: 1;
}

/* Hover halo ONLY for active glowing card */
.cards .card.glow-perk:hover::after,
.cards .card.glow-idle:hover::after {
  opacity: 1;
}

/* ===== CARD FLIP ===== */
.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.25,.8,.25,1);
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* ===== CARD FACES ===== */
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden; 
}
/* ===== FULL-CARD ART LAYER (fills card, no stretch) ===== */
/* Use ::before so your existing glow (::before on .card) still behaves */
.card-face::before{
  content:"";
  position:absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;          /* <- fills card, may crop edges (no empty areas) */
  pointer-events: none;
  z-index: 0;                       /* behind text */
  opacity: 1;
}

/* Keep face content above the art */
.card-face > *{
  position: relative;
  z-index: 2;
}

/* UNLOCKED: use theme logo as the full-card art */
.card.is-unlocked .card-face::before{
  background-image: var(--logo);
}

/* LOCKED: use lock as art, but don't crop it */
.card.is-locked .card-face::before{
  background-image: url("/img/lock.webp");
  background-size: contain;         /* lock should never crop */
  opacity: 0.9;
}

/* AFTER FLIP: make the art transparent on the front face */
.card.is-unlocked .card-front::before{
  opacity: 0.18;                    /* tune: 0.12–0.25 */
}

/* Optional: make lock slightly softer on the front too */
.card.is-locked .card-front::before{
  opacity: 0.55;
}



/* ===== THEMES ===== */
.hero[data-theme="and"] {
  --logo: url("img/AND_logo.webp");
  --frontA: rgba(36,28,48,0.92);
  --frontB: rgba(20,16,28,0.92);
  --backTint: rgba(30,22,38,0.85);
  --border: rgba(255,255,255,0.18);
}

.hero[data-theme="boob"] {
  --logo: url("img/BOOB_logo.webp");
  --frontA: rgba(10,16,24,0.88);
  --frontB: rgba(6,10,16,0.88);
  --backTint: rgba(10,16,24,0.82);
  --border: rgba(180,220,255,0.22);
}

.hero .card-face {
  border-color: var(--border);
}

.card-back {
  background-color: var(--backTint);
}

.card-front {
  background: linear-gradient(180deg, var(--frontA), var(--frontB));
  transform: rotateY(180deg);
}


.card-front h3 {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.card-front p {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ===== FOOTER ===== */
.footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 6vw;
  background: #08080c;
}

.footer-inner {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-copy h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.footer-copy p {
  max-width: 56ch;
  opacity: 0.82;
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.btn-quiet {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
}

.btn-quiet:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
}

/* ===== MOBILE ===== */
@media (max-width: 820px) {
  .cards {
    flex-direction: column;
    gap: 14px;
    padding: 0 5vw;
  }

  .card {
    width: min(84vw, 300px);
    height: 180px;
    perspective: 1000px;
  }

  .card-face {
    border-radius: 14px;
    padding: 16px;
  }

  .card-front h3 { font-size: 1rem; }
  .card-front p  { font-size: 0.82rem; }
}
/* ===== 18+ AGE GATE ===== */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* JS will enable if needed */
}

.agegate.is-open { display: block; }

.agegate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.agegate-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  border-radius: 16px;
  padding: 22px 20px;
  background: rgba(12,12,18,0.94);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.agegate-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.agegate-modal p {
  opacity: 0.85;
  line-height: 1.45;
}

.agegate-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  color: #0b0b0f;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-primary:hover { background: rgba(255,255,255,1); }

.agegate-remember {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  opacity: 0.75;
  user-select: none;
  font-size: 0.92rem;
}