:root {
  --gold: #d6a84c;
  --gold-light: #e2bc6a;
  --gold-deep: #b97f25;
  --white: #fffdf9;
  --black: #000;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-width: 320px; min-height: 100%; background: #000; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  background: #000;
}

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(225, 184, 96, .72);
  outline-offset: 4px;
}

.page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}
@supports (height: 100dvh) {
  .page { height: 100dvh; min-height: 100dvh; }
}

/* The backgrounds always keep their natural 16:9 proportions. They can crop, but they never stretch. */
.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  transform: translateZ(0);
}

/* Swapped exactly as requested: lighthouse on the age gate, forest/inlet on Coming Soon. */
.age-bg { object-position: 50% 50%; }
.landing-bg { object-position: 50% 50%; }

.age-wash,
.landing-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Clean contrast washes only — no fog, blur, card, or visible content box. */
.age-wash {
  background: linear-gradient(180deg, rgba(10, 11, 12, .26) 0%, rgba(8, 10, 11, .38) 52%, rgba(5, 7, 8, .47) 100%);
}
.landing-wash {
  background: linear-gradient(180deg, rgba(8, 10, 9, .28) 0%, rgba(7, 9, 8, .41) 52%, rgba(4, 6, 5, .50) 100%);
}

.age-content,
.landing-content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: flex;
  width: min(92vw, 830px);
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.age-content {
  height: 100%;
  justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
  transform: translateY(-1.5vh);
}

.main-logo {
  display: block;
  width: clamp(118px, 10.5vw, 172px);
  height: auto;
  margin: 0 0 24px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.34));
}
.age-main-logo { margin-bottom: 24px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: clamp(.98rem, 1.22vw, 1.16rem);
  font-weight: 900;
  letter-spacing: .27em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.56);
}

h1 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
  text-shadow: 0 3px 18px rgba(0,0,0,.65), 0 1px 2px rgba(0,0,0,.48);
}
.age-page h1 { font-size: clamp(3.2rem, 5.4vw, 5.35rem); }
.landing-page h1 { font-size: clamp(3.2rem, 5.2vw, 5.15rem); }

.lead {
  margin: 23px 0 0;
  color: rgba(255,253,249,.97);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 560;
  line-height: 1.5;
  text-shadow: 0 2px 13px rgba(0,0,0,.68), 0 1px 2px rgba(0,0,0,.42);
}

.age-actions {
  display: flex;
  width: min(100%, 520px);
  margin-top: 32px;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.gold-button,
.top-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: clamp(1.06rem, 1.35vw, 1.25rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.gold-button {
  width: 100%;
  min-height: 70px;
  padding: 0 34px;
  border: 1px solid rgba(255,229,170,.48);
  background: linear-gradient(180deg, #ddb252 0%, #ce9634 100%);
  color: #fff;
  box-shadow: 0 13px 34px rgba(64,39,6,.26), inset 0 1px 0 rgba(255,255,255,.19);
}
.gold-button:hover { transform: translateY(-2px); filter: brightness(1.035); }
.gold-button:active { transform: translateY(0); }
.gold-button span { font-size: 1.35em; font-weight: 400; transform: translateY(-1px); }

.text-option {
  appearance: none;
  position: relative;
  display: inline-block;
  padding: 0 3px 9px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: clamp(1.06rem, 1.32vw, 1.22rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.72);
  cursor: pointer;
}
.text-option::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .95;
}
.text-option:hover { color: #efd083; transform: translateY(-1px); }

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
  color: rgba(255,253,249,.98);
  font-size: clamp(.96rem, 1.15vw, 1.08rem);
  font-weight: 520;
  text-shadow: 0 2px 11px rgba(0,0,0,.66);
  cursor: pointer;
  user-select: none;
}
.remember-row input {
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 7px;
  background: rgba(0,0,0,.16);
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  cursor: pointer;
}
.remember-row input:checked {
  border-color: var(--gold-light);
  background: var(--gold-light);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.96), 0 2px 10px rgba(0,0,0,.22);
}

.site-header {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 4vw, 62px) 0;
}
.corner-brand {
  display: inline-flex;
  width: clamp(58px, 4.8vw, 82px);
}
.corner-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
}
.top-login {
  min-height: 56px;
  padding: 0 27px;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,253,249,.95);
  color: #795116;
  font-size: clamp(.96rem, 1.08vw, 1.08rem);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.top-login:hover { transform: translateY(-2px); }

.landing-content {
  height: 100%;
  justify-content: center;
  padding: max(112px, env(safe-area-inset-top)) 22px max(52px, env(safe-area-inset-bottom));
  transform: translateY(-.6vh);
}
.landing-content .main-logo { margin-bottom: 24px; }

.shop-button {
  width: min(100%, 430px);
  margin-top: 28px;
}
.support-copy {
  margin: 20px 0 0;
  color: rgba(255,253,249,.98);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 580;
  line-height: 1.48;
  text-shadow: 0 2px 12px rgba(0,0,0,.66);
}

.age-page {
  z-index: 100;
  transition: opacity .28s ease, visibility .28s ease;
}
.age-page.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.noscript-message {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.16);
}

@media (max-width: 760px) {
  html, body { background: #000 !important; }
  body { min-height: 100dvh; }
  .page { background: #000; }

  /* Mobile crops are intentionally composed rather than stretched. */
  .age-bg { object-position: 68% center; }
  .landing-bg { object-position: 42% center; }

  .age-content,
  .landing-content { width: min(94vw, 560px); }

  .age-content {
    justify-content: center;
    padding-top: max(26px, env(safe-area-inset-top));
    padding-bottom: max(25px, env(safe-area-inset-bottom));
    transform: translateY(-.7vh);
  }

  .main-logo { width: clamp(105px, 28vw, 138px); margin-bottom: 20px; }
  .age-main-logo { margin-bottom: 20px; }
  .eyebrow { margin-bottom: 14px; font-size: .86rem; letter-spacing: .23em; }
  .age-page h1 { font-size: clamp(2.7rem, 11.5vw, 3.75rem); }
  .landing-page h1 { font-size: clamp(2.85rem, 11.8vw, 3.95rem); }
  .lead { margin-top: 17px; font-size: clamp(1rem, 4.15vw, 1.16rem); }
  .desktop-break { display: none; }

  .age-actions { width: min(100%, 430px); gap: 21px; margin-top: 26px; }
  .gold-button { min-height: 60px; padding: 0 28px; font-size: 1.04rem; }
  .text-option { font-size: 1.02rem; }
  .remember-row { margin-top: 20px; font-size: .94rem; }
  .remember-row input { width: 25px; height: 25px; border-width: 2px; }

  .site-header {
    padding: max(18px, env(safe-area-inset-top)) 18px 0;
  }
  .corner-brand { width: 52px; }
  .top-login { min-height: 45px; padding: 0 16px; font-size: .88rem; }

  .landing-content {
    padding-top: max(98px, env(safe-area-inset-top));
    padding-bottom: max(38px, env(safe-area-inset-bottom));
  }
  .shop-button { width: min(100%, 380px); margin-top: 24px; }
  .support-copy { max-width: 355px; margin-top: 17px; font-size: .94rem; }
}

@media (max-width: 390px) {
  .main-logo { width: 100px; }
  .eyebrow { font-size: .80rem; }
  .age-page h1 { font-size: 2.55rem; }
  .landing-page h1 { font-size: 2.72rem; }
  .lead { font-size: .96rem; }
  .age-actions { margin-top: 22px; }
  .gold-button { min-height: 56px; }
  .remember-row { font-size: .88rem; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .age-content, .landing-content { transform: scale(.88); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
