:root {
  color-scheme: dark;
  --ink: #f8f6f0;
  --muted: rgba(248, 246, 240, 0.7);
  --panel: rgba(18, 18, 18, 0.74);
  --line: rgba(255, 255, 255, 0.18);
  --danger: #e72d3d;
  --danger-dark: #a70f22;
  --gold: #f0c35a;
  --shadow: rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070707;
  color: var(--ink);
}

button {
  font: inherit;
}

select {
  font: inherit;
}

.page-shell,
.age-gate,
.scare {
  position: fixed;
  inset: 0;
}

.page-shell {
  background:
    radial-gradient(circle at 18% 16%, rgba(240, 195, 90, 0.26), transparent 28rem),
    radial-gradient(circle at 86% 24%, rgba(231, 45, 61, 0.24), transparent 24rem),
    linear-gradient(135deg, #120f0d 0%, #121212 46%, #050505 100%);
}

.age-gate {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
}

.age-gate::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.age-gate[hidden] {
  display: none;
}

.gate-panel {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 48px);
  overflow: hidden;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(24px);
}

.gate-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--danger));
}

.language-picker {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 4px 4px 10px;
  color: rgba(248, 246, 240, 0.56);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.language-picker select {
  min-width: 82px;
  height: 26px;
  padding: 0 24px 0 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 3px solid rgba(240, 195, 90, 0.45);
  outline-offset: 2px;
}

.gate-mark {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  color: #111111;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(240, 195, 90, 0.1);
}

.gate-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.gate-copy {
  max-width: 36rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.gate-button {
  min-height: 52px;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.gate-button:hover {
  transform: translateY(-1px);
}

.gate-button:focus-visible {
  outline: 3px solid rgba(240, 195, 90, 0.45);
  outline-offset: 3px;
}

.gate-button-primary {
  font-weight: 800;
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  box-shadow: 0 16px 32px rgba(231, 45, 61, 0.22);
}

.gate-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.gate-button-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.scare {
  z-index: 1;
  background: #000000;
}

.scare-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.scare-video::-webkit-media-controls-enclosure {
  display: none !important;
}

@media (max-width: 560px) {
  .age-gate {
    padding: 58px 16px 16px;
  }

  .language-picker {
    top: 14px;
    right: 50%;
    transform: translateX(50%);
  }

  .gate-panel {
    padding: 28px 20px;
  }

  .gate-actions {
    grid-template-columns: 1fr;
  }

  .gate-button {
    min-height: 50px;
  }
}
