:root {
  --shell-ink: #151b1e;
  --shell-slate: #1b252b;
  --shell-chalk: #f3f1ea;
  --shell-mist: #b9c3c5;
  --shell-border: #506068;
  --shell-brass: #caa45d;
  --shell-red: #b83d32;
}

html { scroll-padding-top: 112px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px max(5vw, 24px);
  border-bottom: 1px solid rgba(202, 164, 93, .22);
  background: rgba(27, 37, 43, .97);
  color: var(--shell-chalk);
  backdrop-filter: blur(10px);
}

.site-header .nav-name {
  flex: 0 0 auto;
  max-width: none;
  color: var(--shell-chalk);
  font: 750 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 34px);
  margin-left: auto;
  font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.site-header nav > a {
  display: inline-flex;
  align-items: center;
  color: #d9dfe1;
  white-space: nowrap;
}

.site-header nav > a:hover,
.site-footer nav > a:hover,
.site-footer nav > button:hover,
.site-header nav > button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-header nav > a:focus-visible,
.site-header nav > button:focus-visible,
.site-footer nav > a:focus-visible,
.site-footer nav > button:focus-visible,
.cookie-banner :focus-visible,
.steam-dialog :focus-visible {
  outline: 3px solid var(--shell-brass);
  outline-offset: 4px;
}

.site-header .nav-steam {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0 0 24px;
  border: 0;
  border-left: 1px solid var(--shell-border);
  background: transparent;
  color: var(--shell-chalk);
  font: 650 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.nav-steam span { margin-left: 12px; color: var(--shell-brass); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
  padding: 32px max(5vw, 24px);
  border-top: 1px solid #455057;
  background: #11191d;
  color: var(--shell-mist);
}

.site-footer .studio { color: var(--shell-chalk); font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; font-size: 14px; }
.site-footer nav a, .site-footer nav button { color: inherit; }
.site-footer nav button { padding: 0; border: 0; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer small { font-size: 12px; }

.steam-dialog {
  position: fixed;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 42px 32px 32px;
  border: 1px solid #647077;
  border-top: 3px solid var(--shell-brass);
  background: var(--shell-ink);
  color: var(--shell-chalk);
  box-shadow: 0 24px 80px #0008;
}

.steam-dialog::backdrop { background: #0a111bcc; }
.steam-dialog h2 { margin-bottom: 20px; font-size: 32px; }
.steam-dialog > p:not(.eyebrow) { color: var(--shell-mist); font-size: 16px; }
.steam-dialog .button { width: 100%; }
.dialog-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--shell-chalk); font-size: 28px; cursor: pointer; }
.dialog-secondary { display: block; width: fit-content; margin: 20px auto 0; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

.cookie-banner {
  position: fixed;
  z-index: 60;
  inset: auto 0 0;
  padding: 16px clamp(16px, 3vw, 32px);
  border-top: 1px solid #647077;
  background: #0d1418;
  color: var(--shell-chalk);
  box-shadow: 0 -10px 32px #0006;
}

.cookie-banner[hidden] { display: none; }
.cookie-modal { display: flex; width: min(1120px, 100%); align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; }
.cookie-modal h2 { margin: 0 0 5px; color: var(--shell-chalk); font: 650 16px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; }
.cookie-modal p { margin: 0 0 6px; color: var(--shell-mist); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.cookie-modal a { color: var(--shell-chalk); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.cookie-actions button { min-height: 44px; padding: 10px 15px; border: 1px solid #849095; background: transparent; color: var(--shell-chalk); font: 600 14px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.cookie-actions button[data-cookie-action="accept"] { border-color: #bd6553; background: #a63a30; }
.cookie-actions button:hover { border-color: var(--shell-chalk); }

.privacy-page { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 96px; }
.privacy-page .policy-meta { margin: 14px 0 26px; color: var(--shell-mist); font-size: 14px; }
.privacy-page h1 { margin: 0; border: 0; padding: 0; color: var(--shell-chalk); font: 700 clamp(36px, 5vw, 58px)/1.08 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.04em; text-transform: none; }
.privacy-page h2 { margin: 42px 0 16px; border-top: 1px solid #455057; padding-top: 24px; color: var(--shell-chalk); font: 650 clamp(22px, 3vw, 30px)/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.025em; text-transform: none; }
.privacy-page .privacy-subhead { margin: 24px 0 10px; color: var(--shell-brass); font: 650 17px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; }
.privacy-page p, .privacy-page li { color: var(--shell-mist); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; opacity: 1; text-align: left; }
.privacy-page p { margin: 0 0 16px; }
.privacy-page ul { margin: 0 0 20px; padding-left: 1.3rem; }
.privacy-page li { margin: 0 0 8px; }
.privacy-page strong { color: var(--shell-chalk); }
.privacy-page a:not(.button) { color: #d8e2e3; text-decoration: underline; text-underline-offset: 3px; }
.privacy-page table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 22px 0 36px; font-size: 14px; }
.privacy-page th, .privacy-page td { padding: 11px 12px; border: 1px solid #455057; text-align: left; vertical-align: top; }
.privacy-page th { color: var(--shell-chalk); background: #202a2f; }
.privacy-page td { color: var(--shell-mist); }
.not-found { display: grid; min-height: 55vh; align-content: center; gap: 18px; padding-block: 72px; }
.not-found .eyebrow { margin: 0; color: var(--shell-brass); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.not-found h1 { color: var(--shell-chalk); font-size: clamp(38px, 6vw, 68px); letter-spacing: -.045em; }
.not-found p { max-width: 600px; color: var(--shell-mist); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

@media (max-width: 640px) {
  html { scroll-padding-top: 106px; }
  .site-header { row-gap: 10px; padding: 11px 20px 12px; }
  .site-header .nav-name { max-width: none; font-size: 12px; }
  .site-header nav { order: 2; flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; margin: 0; font-size: 13px; }
  .site-header nav > a { display: inline-flex; font-size: 13px; }
  .site-header .nav-steam { min-height: 36px; padding: 0; border: 0; font-size: 13px; }
  .nav-steam span { margin-left: 5px; }
  .site-footer { justify-content: center; padding: 28px 20px; text-align: center; }
  .site-footer nav { justify-content: center; gap: 16px 20px; }
  .cookie-modal { align-items: stretch; flex-direction: column; gap: 12px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions button { width: 100%; padding-inline: 8px; }
  .privacy-page { width: calc(100% - 40px); padding-block: 48px 72px; }
  .privacy-page table { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
