:root {
  --night: #071426;
  --night-soft: #102842;
  --paper: #f4f7f3;
  --gold: #ffc943;
  --orange: #ff7a3d;
  --sky: #a9d8e8;
  --slate: #536574;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; }
body { font-family: var(--body); color: var(--night); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.gate-page { background: var(--night); overflow-x: hidden; }
.gate {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.collage {
  position: absolute;
  inset: -8px;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
  background: var(--night);
  transform: rotate(-1.2deg) scale(1.04);
}
.collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 20, 38, .28), rgba(7, 20, 38, .78)),
    radial-gradient(circle at 50% 42%, transparent 0 20%, rgba(7, 20, 38, .35) 70%);
}
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.collage img:nth-child(2n) { transform: translateY(-5%); }

.gate-panel {
  width: 100%;
  height: 20dvh;
  min-height: 150px;
  margin: 0;
  padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 8px 18px;
  background: rgba(244, 247, 243, .97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
  border-top: 4px solid var(--gold);
  animation: panel-in .55s cubic-bezier(.2, .75, .3, 1) both;
}
.gate-kicker {
  margin: 0 0 10px;
  color: #8b5a00;
  font: 800 .68rem var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.gate-panel h1, .restricted-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}
.gate-panel h1 { font-size: clamp(1.4rem, 6.5vw, 2rem); line-height: 1; letter-spacing: -.01em; }
.restricted-panel h1 { margin-bottom: 16px; letter-spacing: -.015em; line-height: .84; }
.restricted-panel > p { margin: 0; color: var(--slate); font-size: .9rem; line-height: 1.55; }

.gate-actions { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(2, minmax(66px, 1fr)); gap: 8px; }
.age-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 15px;
  border: 2px solid var(--night);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.age-button-yes { background: var(--night); color: white; box-shadow: 3px 3px 0 var(--gold); }
.age-button-no { background: transparent; color: var(--night); }
.age-button:hover { transform: translateY(-2px); }
.age-button-yes:hover { background: var(--night-soft); }
.age-button-no:hover { background: #e4e9e7; }
.gate-legal-link { align-self: start; width: fit-content; color: #62717d; font: 700 .67rem var(--mono); text-underline-offset: 3px; }
.gate-legal-link:hover { color: var(--night); }

.restricted-page {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(rgba(7, 20, 38, .9), rgba(7, 20, 38, .96)),
    url("Photo/the-west 2.webp") center / cover;
  color: var(--paper);
}
.restricted-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}
.restricted-panel { width: min(100%, 600px); }
.restricted-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font: 900 1.15rem var(--mono);
}
.restricted-panel h1 { max-width: 560px; color: white; font-size: clamp(3rem, 15vw, 5.8rem); }
.restricted-panel > p { max-width: 560px; color: #aebdca; margin-bottom: 14px; }
.restricted-exit { width: min(100%, 240px); margin-top: 20px; color: white; border-color: var(--sky); }
.restricted-exit:hover { background: var(--sky); color: var(--night); }

.legal-page { min-height: 100vh; min-height: 100dvh; padding: 28px 18px; background: var(--night); color: var(--paper); }
.legal-document { width: min(100%, 760px); margin: 0 auto; }
.legal-back { display: inline-block; margin-bottom: 40px; color: var(--sky); font: 700 .72rem var(--mono); text-underline-offset: 4px; }
.legal-document > h1 { margin: 0 0 14px; font: 900 clamp(3rem, 14vw, 6rem)/.9 var(--display); text-transform: uppercase; }
.legal-intro { max-width: 620px; margin: 0 0 38px; color: #aebdca; }
.legal-document section { padding: 22px 0; border-top: 1px solid rgba(169, 216, 232, .22); }
.legal-document h2 { margin: 0 0 8px; color: var(--gold); font: 800 .76rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.legal-document section p { margin: 0; color: #9fb0be; font-size: .85rem; line-height: 1.65; }
.legal-document section a { color: var(--sky); overflow-wrap: anywhere; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 760px) {
  .gate { align-items: end; justify-items: center; padding-bottom: 4vh; }
  .collage { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 5px; }
  .collage::after { background: linear-gradient(180deg, rgba(7,20,38,.2), rgba(7,20,38,.68)); }
  .gate-panel { width: min(calc(100% - 48px), 720px); height: auto; min-height: 150px; padding: 24px 28px; }
  .gate-panel h1 { font-size: 2.4rem; }
  .gate-actions { grid-template-columns: repeat(2, 104px); }
}

@media (max-width: 360px) {
  .gate-panel { padding-left: 12px; padding-right: 12px; gap: 6px 10px; }
  .gate-panel h1 { font-size: 1.3rem; }
  .gate-actions { grid-template-columns: repeat(2, 58px); gap: 6px; }
  .age-button { padding-left: 9px; padding-right: 9px; }
}

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