:root {
  --ui-panel-surface: #281d17;
  --ui-panel-surface-raised: #31241c;
  --ui-control-surface: #231914;
  --ui-control-surface-hover: #32241c;
  --ui-control-surface-active: #3e2a1f;
  --ui-border-ink: #0b0807;
  --ui-border-muted: #5e3e2e;
  --ui-border-strong: #7d4e36;
  --ui-frame-dark: #0b0807;
  --ui-frame-inner: rgba(var(--accent-rgb), 0.2);
  --ui-hard-shadow: 9px 9px 0 rgba(11, 8, 7, 0.88);
  --text-primary: #efe3d6;
  --text-secondary: #b6a89d;
  --text-tertiary: #85776d;
  --accent-rgb: 185, 118, 83;
  --accent-strong: #ca855f;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: #0b0807;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
}

.home-page {
  overflow: hidden;
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, rgba(11, 8, 7, 0.04), rgba(11, 8, 7, 0.36) 58%, rgba(11, 8, 7, 0.64)),
    linear-gradient(180deg, rgba(11, 8, 7, 0.12), rgba(11, 8, 7, 0.34));
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 4vh, 34px);
  width: min(84vw, 820px);
  padding: 24px;
}

.logo {
  display: block;
  width: min(78vw, 650px);
  height: auto;
  filter: drop-shadow(0 12px 0 rgba(11, 8, 7, 0.55)) drop-shadow(0 22px 24px rgba(11, 8, 7, 0.7));
}

.game-button {
  --btn-overlay-color: var(--ui-control-surface);
  --btn-inner-border: rgba(var(--accent-rgb), 0.16);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(76vw, 260px);
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--ui-border-muted);
  border-radius: 0;
  background: var(--btn-overlay-color);
  box-shadow:
    inset 0 0 0 1px var(--ui-border-ink),
    inset 0 1px 0 var(--btn-inner-border),
    5px 5px 0 rgba(11, 8, 7, 0.82);
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(11, 8, 7, 0.9);
  letter-spacing: 0;
  transition:
    background-color 80ms ease-out,
    box-shadow 80ms ease-out,
    transform 80ms ease-out;
}

.game-button:hover,
.game-button:focus-visible {
  --btn-overlay-color: var(--ui-control-surface-hover);
  --btn-inner-border: rgba(255, 244, 220, 0.14);
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--ui-border-ink),
    inset 0 1px 0 var(--btn-inner-border),
    5px 5px 0 rgba(11, 8, 7, 0.82);
}

.game-button:active {
  --btn-overlay-color: var(--ui-control-surface-active);
  --btn-inner-border: rgba(255, 244, 220, 0.2);
  transform: translate(2px, 2px);
  box-shadow:
    inset 0 0 0 1px var(--ui-border-ink),
    inset 0 1px 0 var(--btn-inner-border),
    3px 3px 0 rgba(11, 8, 7, 0.82);
}

.hero-footer {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3.2vh, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(92vw, 640px);
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(35, 25, 20, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(11, 8, 7, 0.72),
    4px 4px 0 rgba(11, 8, 7, 0.7);
  transform: translateX(-50%);
}

.hero-footer a,
.policy-card a:not(.game-button) {
  color: var(--text-primary);
  font-weight: 800;
  text-decoration: none;
  text-decoration-color: rgba(var(--accent-rgb), 0.64);
  text-underline-offset: 3px;
}

.hero-footer a:hover,
.hero-footer a:focus-visible,
.policy-card a:not(.game-button):hover,
.policy-card a:not(.game-button):focus-visible {
  color: var(--accent-strong);
}

.hero-footer span {
  color: var(--text-tertiary);
  opacity: 0.8;
}

.privacy-page {
  min-height: 100vh;
}

.privacy-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 60px) 18px;
  isolation: isolate;
}

.privacy-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.privacy-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 18%, rgba(11, 8, 7, 0.18), rgba(11, 8, 7, 0.76) 68%),
    rgba(11, 8, 7, 0.44);
  pointer-events: none;
}

.policy-card {
  position: relative;
  width: min(900px, 100%);
  padding: clamp(26px, 5vw, 46px);
  border: 3px solid var(--ui-frame-dark);
  outline: 2px solid var(--ui-frame-inner);
  outline-offset: -6px;
  background: var(--ui-panel-surface);
  box-shadow:
    var(--ui-hard-shadow),
    inset 0 0 0 2px rgba(var(--accent-rgb), 0.28),
    inset 0 0 0 5px var(--ui-frame-dark);
}

.policy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(var(--accent-rgb), 0.2),
    inset 0 0 0 5px rgba(11, 8, 7, 0.78);
}

.policy-card > * {
  position: relative;
  z-index: 1;
}

.policy-header,
.policy-card section {
  margin: 0 0 24px;
}

.policy-header p,
.policy-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.policy-card p + p {
  margin-top: 12px;
}

.policy-card h1,
.policy-card h2 {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.05;
  text-shadow: 1px 1px 0 rgba(11, 8, 7, 0.9);
}

.policy-card h1 {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: clamp(34px, 6vw, 58px);
}

.policy-card h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.policy-actions {
  display: flex;
  margin-top: 32px;
}

.back-button {
  min-width: min(100%, 220px);
}

@media (max-width: 560px) {
  .hero-content {
    width: 92vw;
    gap: 18px;
    padding-bottom: 86px;
  }

  .logo {
    width: min(88vw, 430px);
  }

  .game-button {
    min-height: 46px;
    font-size: 16px;
  }

  .hero-footer {
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero-footer span {
    display: none;
  }

  .policy-card {
    box-shadow:
      5px 5px 0 rgba(11, 8, 7, 0.88),
      inset 0 0 0 2px rgba(var(--accent-rgb), 0.28),
      inset 0 0 0 5px var(--ui-frame-dark);
  }

  .policy-header p,
  .policy-card p {
    font-size: 15px;
  }
}
