:root {
  --denim-950: #101827;
  --denim-900: #172337;
  --denim-800: #22334d;
  --cream: #fff8ed;
  --cream-deep: #f3e4d2;
  --ink: #273247;
  --muted-ink: #687083;
  --blush: #d97992;
  --blush-dark: #b95773;
  --saddle: #a77454;
  --white-soft: rgba(255, 248, 237, 0.92);
  --shadow: 0 30px 80px rgba(4, 9, 18, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--denim-950);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--cream);
  font-family: ui-rounded, "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 121, 146, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 82%, rgba(167, 116, 84, 0.16), transparent 24rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 5px),
    linear-gradient(145deg, var(--denim-800), var(--denim-950) 68%);
}

body::before {
  position: fixed;
  z-index: 5;
  inset: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  border: 1px dashed rgba(255, 248, 237, 0.24);
  border-radius: 24px;
  content: "";
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding:
    max(42px, calc(env(safe-area-inset-top) + 24px))
    max(28px, calc(env(safe-area-inset-right) + 22px))
    max(26px, calc(env(safe-area-inset-bottom) + 18px))
    max(28px, calc(env(safe-area-inset-left) + 22px));
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 248, 237, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.page-shell::before {
  top: -102px;
  left: -82px;
  box-shadow: 0 0 0 22px rgba(255, 248, 237, 0.025), 0 0 0 48px rgba(255, 248, 237, 0.018);
}

.page-shell::after {
  right: -96px;
  bottom: -110px;
  box-shadow: 0 0 0 22px rgba(255, 248, 237, 0.025), 0 0 0 48px rgba(255, 248, 237, 0.018);
}

.sky-detail {
  position: absolute;
  color: rgba(255, 248, 237, 0.32);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.sky-detail-left {
  top: 19%;
  left: 8%;
  transform: rotate(12deg);
}

.sky-detail-right {
  top: 12%;
  right: 10%;
  transform: rotate(-9deg) scale(0.75);
}

.age-gate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 430px);
  margin: 0 auto;
}

.brand-header {
  margin-bottom: 22px;
  text-align: center;
}

.brand-kicker {
  margin: 0 0 3px;
  color: rgba(255, 248, 237, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.brand-name {
  margin: 0;
  color: var(--cream);
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(2.65rem, 12vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.2);
}

.brand-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 132px;
  margin: 12px auto 0;
  color: var(--blush);
}

.brand-rule span {
  width: 47px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.brand-rule span:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.brand-rule i {
  font-size: 0.5rem;
  font-style: normal;
  transform: rotate(45deg);
}

.gate-card {
  position: relative;
  padding: 48px 30px 32px;
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04)),
    var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 0 0 6px var(--cream), inset 0 0 0 7px rgba(167, 116, 84, 0.28);
}

.gate-card::before,
.gate-card::after {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 30px;
  background: var(--denim-900);
  content: "";
  transform: translateY(-50%);
}

.gate-card::before {
  left: -1px;
  border-radius: 0 18px 18px 0;
}

.gate-card::after {
  right: -1px;
  border-radius: 18px 0 0 18px;
}

.age-seal {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--cream);
  background: var(--denim-800);
  border: 4px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(16, 24, 39, 0.24), inset 0 0 0 1px rgba(255, 248, 237, 0.35);
  transform: translate(-50%, -50%);
}

.age-seal span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.age-seal sup {
  margin-top: -13px;
  font-size: 0.72rem;
  font-weight: 800;
}

.welcome-line {
  margin: 0 0 9px;
  color: var(--saddle);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 8.5vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 span {
  color: var(--blush-dark);
  font-family: ui-rounded, system-ui, sans-serif;
  font-weight: 500;
}

.gate-copy {
  max-width: 310px;
  margin: 0 auto 25px;
  color: var(--muted-ink);
  font-size: 0.97rem;
  line-height: 1.62;
}

.continue-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 56px;
  padding: 15px 22px;
  color: #fffaf3;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.005em;
  text-decoration: none;
  background: linear-gradient(180deg, #df8fa3, var(--blush));
  border: 1px solid rgba(126, 45, 69, 0.24);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(185, 87, 115, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.continue-button:hover {
  background: linear-gradient(180deg, #e598ab, #d1728b);
  box-shadow: 0 13px 26px rgba(185, 87, 115, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.continue-button:active {
  box-shadow: 0 6px 14px rgba(185, 87, 115, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(0);
}

.continue-button:focus-visible,
.site-footer button:focus-visible,
.terms-note button:focus-visible,
.dialog-close:focus-visible,
.dialog-link:focus-visible {
  outline: 3px solid rgba(217, 121, 146, 0.58);
  outline-offset: 4px;
}

.button-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.continue-button:hover .button-arrow {
  transform: translateX(3px);
}

.terms-note {
  margin: 16px 10px 0;
  color: #8d8990;
  font-size: 0.72rem;
  line-height: 1.5;
}

.terms-note button,
.site-footer button {
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.terms-note button {
  text-decoration-color: rgba(39, 50, 71, 0.3);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: rgba(255, 248, 237, 0.52);
  font-size: 0.7rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer button {
  min-height: 32px;
}

.site-footer button:hover {
  color: var(--cream);
}

.site-footer p {
  margin: 2px 0 0;
}

.info-dialog {
  width: min(calc(100% - 36px), 430px);
  max-height: min(78svh, 620px);
  padding: 0;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(167, 116, 84, 0.28);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.info-dialog::backdrop {
  background: rgba(8, 13, 23, 0.76);
  backdrop-filter: blur(6px);
}

.dialog-inner {
  position: relative;
  padding: 34px 28px 30px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted-ink);
  font-size: 1.55rem;
  line-height: 1;
  background: rgba(34, 51, 77, 0.07);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--ink);
  background: rgba(34, 51, 77, 0.12);
}

.dialog-kicker {
  margin: 0 0 8px;
  color: var(--blush-dark);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.19em;
}

.info-dialog h2 {
  margin: 0 44px 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.info-dialog p {
  color: var(--muted-ink);
  font-size: 0.9rem;
  line-height: 1.62;
}

.dialog-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--blush-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 380px), (max-height: 720px) {
  .page-shell {
    padding-top: max(32px, calc(env(safe-area-inset-top) + 18px));
  }

  .brand-header {
    margin-bottom: 16px;
  }

  .brand-name {
    font-size: 2.55rem;
  }

  .brand-rule {
    margin-top: 8px;
  }

  .gate-card {
    padding: 42px 23px 25px;
  }

  .gate-copy {
    margin-bottom: 20px;
    font-size: 0.91rem;
  }

  .site-footer {
    margin-top: 18px;
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding-top: 58px;
    padding-bottom: 32px;
  }

  .gate-card {
    padding: 52px 42px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
