:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #64748b;
  --line: #d7dee8;
  --panel: #ffffff;
  --canvas: #f4f7f9;
  --soft: #eef6f6;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #b7791f;
  --warn: #b45309;
  --danger: #b91c1c;
  --shadow: 0 10px 24px rgba(20, 31, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body[data-search-page="hunter"] {
  background:
    linear-gradient(90deg, rgba(15, 10, 5, 0.9) 0%, rgba(15, 10, 5, 0.62) 45%, rgba(15, 10, 5, 0.34) 100%),
    url("/assets/hunter-floor-map.png") center top / cover fixed no-repeat,
    #21160d;
}

body[data-auth-page="login"] {
  background:
    linear-gradient(90deg, rgba(15, 10, 5, 0.88) 0%, rgba(15, 10, 5, 0.58) 44%, rgba(15, 10, 5, 0.24) 100%),
    url("/assets/login-background.png") center center / cover fixed no-repeat,
    #21160d;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 560px) minmax(max-content, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 254, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

nav a {
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.arcade-search {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.arcade-search input {
  min-height: 44px;
  padding-right: 12px;
  border-color: #b9c7d6;
  background: #ffffff;
}

.arcade-search button {
  min-width: 86px;
}

.hunter-link {
  min-height: 44px;
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7c2d12;
  color: #ffffff;
}

.hunter-link:hover,
.hunter-link[aria-current="page"] {
  background: #9a3412;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 40;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-suggestion-list {
  max-height: 360px;
  overflow-y: auto;
}

.search-suggestion,
.search-suggestion-more {
  width: 100%;
  min-height: 48px;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.search-suggestion:hover,
.search-suggestion:focus,
.search-suggestion-more:hover,
.search-suggestion-more:focus {
  background: #eef6f6;
  color: var(--ink);
}

.search-suggestion strong {
  font-size: 14px;
}

.search-suggestion span,
.search-suggestion-more span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-suggestion-more {
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: 900;
}

.account-circle {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.account-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-circle.is-authenticated {
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
}

.account-circle.large {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  font-size: 22px;
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
}

body[data-cms-slug="home"] main {
  width: 100%;
}

.hero {
  min-height: min(680px, calc(100vh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: center;
  padding: 64px 24px 52px;
}

.home-hero {
  min-height: min(760px, calc(100vh - 68px));
  grid-template-columns: minmax(0, 900px);
  justify-content: start;
  overflow: hidden;
  padding: clamp(76px, 11vw, 138px) clamp(18px, 7vw, 96px) clamp(72px, 10vw, 128px);
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.64) 44%, rgba(5, 8, 12, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.38), rgba(5, 8, 12, 0.1)),
    url("/assets/home-arcade-background.png") center / cover no-repeat;
  color: #ffffff;
}

.hero-copy {
  max-width: 780px;
}

.home-hero .hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #fbbf24;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
}

.lead {
  max-width: 720px;
  margin-top: 20px;
  color: #405166;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.home-hero .lead {
  color: #f1f5f9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

.home-hero h1 {
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.68);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover,
button:hover {
  background: var(--accent-dark);
}

.button.secondary,
.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button.light {
  width: fit-content;
  align-self: center;
  background: #ffffff;
  color: var(--ink);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-visual {
  min-height: 340px;
  display: grid;
  place-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: min(220px, 58vw);
  height: auto;
}

.hero-visual div {
  width: min(260px, 80%);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  text-align: center;
}

.hero-visual strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.hero-visual span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 38px 24px;
  background: #17212b;
  color: #ffffff;
}

.info-band h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 12px;
}

.info-band p,
.signal-list {
  color: #d6e1ea;
  line-height: 1.6;
}

.signal-list {
  margin: 0;
  padding-left: 20px;
}

.signal-list li + li {
  margin-top: 8px;
}

.signal-list.dark {
  color: #334155;
}

.page-hero {
  padding: 64px 24px 42px;
}

.page-hero.compact {
  padding-bottom: 24px;
}

body[data-search-page="hunter"] .page-hero {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

body[data-search-page="hunter"] .page-hero .eyebrow {
  color: #fbbf24;
}

body[data-search-page="hunter"] .page-hero .lead {
  color: #f8fafc;
}

body[data-auth-page="login"] .page-hero {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.62);
}

body[data-auth-page="login"] .page-hero .eyebrow {
  color: #fbbf24;
}

body[data-auth-page="login"] .page-hero .lead {
  color: #f8fafc;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.public-grid,
.workspace {
  padding: 24px;
}

.feature-grid,
.content-grid,
.signup-layout {
  padding: 24px;
}

body[data-cms-slug="home"] .feature-grid {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.feature-grid,
.content-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.login-panel,
.account-panel {
  max-width: 560px;
}

body[data-auth-page="login"] .login-panel,
body[data-auth-page="login"] .account-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.google-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink);
}

.google-button:hover {
  background: #eef6f6;
}

.google-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.provider-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 900;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  padding: 0;
  background: #eef6f6;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1;
}

.password-toggle:hover,
.password-toggle:focus,
.password-toggle[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.code-form {
  margin-top: 12px;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
}

.account-summary strong,
.account-summary span {
  display: block;
  overflow-wrap: anywhere;
}

.account-summary span {
  margin-top: 4px;
  color: var(--muted);
}

.account-home {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-note {
  margin-top: 10px;
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.login-required {
  max-width: 620px;
}

.account-workspace,
.admin-workspace {
  grid-column: 2;
  display: grid;
  gap: 18px;
}

.admin-workspace {
  margin-top: 12px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sitemap-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sitemap-card h3 {
  margin: 0;
  font-size: 19px;
}

.sitemap-card p {
  color: var(--muted);
  line-height: 1.48;
}

.sitemap-card strong {
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.sitemap-kind {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ecfeff;
  color: #155e75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-tabs a:hover,
.admin-tabs a:focus {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #eef6f6;
}

.workspace-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.workspace-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.account-summary.compact {
  margin: 0;
}

.workspace-switcher {
  display: grid;
  gap: 14px;
  justify-content: stretch;
}

.workspace-switcher-group {
  display: grid;
  gap: 6px;
}

.workspace-switcher-group strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-switcher a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 9px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-switcher a:hover,
.workspace-switcher a:focus,
.workspace-switcher a[aria-current="page"] {
  border-color: var(--accent);
  background: #eef6f6;
  color: var(--accent-dark);
}

.workspace-detail {
  display: grid;
  gap: 18px;
}

.workspace-record-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.server-import-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.server-import-panel h3 {
  margin: 0;
  font-size: 18px;
}

.server-import-list {
  display: grid;
  gap: 8px;
}

.server-import-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.server-import-file div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.server-import-file strong,
.server-import-file span {
  overflow-wrap: anywhere;
}

.server-import-file span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workspace-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-form-grid label:has(textarea),
.workspace-form-grid .checkbox-row {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.records-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.record-grid {
  display: grid;
  gap: 12px;
}

.record-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.record-card.is-muted {
  opacity: 0.72;
  background: #f8fafc;
}

.record-card h3 {
  margin: 0;
  font-size: 20px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-button {
  border-color: #fecaca;
  color: var(--danger);
}

.danger-button:hover,
.danger-button:focus {
  background: #fef2f2;
  color: var(--danger);
}

.audit-list {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.audit-list summary {
  color: #334155;
  cursor: pointer;
  font-weight: 900;
}

.audit-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.record-json {
  margin: 8px 0 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.search-results-layout {
  padding: 24px;
}

.results-list {
  display: grid;
  gap: 12px;
}

.search-result-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.search-result-card:hover {
  border-color: var(--accent);
}

.search-result-card h2 {
  margin: 0;
  font-size: 22px;
}

.result-meta,
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.game-detail {
  max-width: 980px;
  padding: 64px 24px;
}

.game-history {
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: #ffffff;
  line-height: 1.6;
}

.game-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.game-facts div {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.game-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-facts dd {
  margin: 7px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.game-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.known-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.known-facts div {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.known-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.known-facts dd {
  margin: 7px 0 0;
  font-weight: 800;
}

.cabinet-records {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(24px, 4vw, 38px);
}

.section-heading p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.5;
}

.cabinet-list {
  display: grid;
  gap: 12px;
}

.cabinet-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cabinet-card h3 {
  margin: 0;
  font-size: 20px;
}

.form-panel {
  max-width: 760px;
}

.request-notes {
  padding: 24px;
  border-left: 4px solid var(--accent);
}

.request-notes h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 38px);
}

.page-band {
  margin-top: 24px;
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.panel,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel h2,
.panel h3 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.panel-copy {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 18px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 14px) 52% / 6px 6px no-repeat,
    #ffffff;
}

.hunter-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.hunter-panel {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.field-with-suggestions {
  position: relative;
  display: grid;
  gap: 5px;
}

.hunter-suggestions {
  top: calc(100% + 5px);
  z-index: 50;
}

.scope-toggle {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.scope-toggle legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scope-toggle label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.scope-toggle input {
  width: 18px;
  min-height: 18px;
}

.hunter-map-wrap {
  display: grid;
  gap: 14px;
}

.hunter-map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #b9c7d6;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(229, 218, 193, 0.78), rgba(231, 205, 161, 0.68)),
    rgba(233, 241, 243, 0.86);
  backdrop-filter: blur(5px);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.map-grid::before {
  content: "";
  position: absolute;
  inset: 13% 8% 16% 10%;
  border: 2px solid rgba(15, 118, 110, 0.35);
  border-radius: 48% 38% 42% 48%;
  transform: skewX(-10deg);
}

.map-pins {
  position: absolute;
  inset: 0;
}

.map-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  transform: translate(-50%, -100%);
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  padding: 0;
  background: #7c2d12;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
  font-size: 12px;
  line-height: 1;
}

.map-pin:hover,
.map-pin:focus {
  background: #0f766e;
}

.map-empty {
  position: absolute;
  inset: auto 18px 18px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 800;
}

.hunter-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.hunter-results-header h2 {
  font-size: clamp(24px, 4vw, 38px);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
}

.hunter-results-header p {
  color: #f8fafc;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.54);
}

.hunter-results {
  display: grid;
  gap: 12px;
}

.hunter-result-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hunter-result-card.is-selected {
  border-color: #7c2d12;
  box-shadow: 0 0 0 3px rgba(124, 45, 18, 0.14), var(--shadow);
}

.hunter-result-card h3 {
  margin: 0;
  font-size: 20px;
}

.hunter-result-card a {
  color: var(--ink);
  text-decoration: none;
}

.hunter-result-card a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.form-message {
  min-height: 20px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.form-message.error {
  color: var(--danger);
}

.workspace {
  border-top: 1px solid var(--line);
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-header h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  font-size: 34px;
  line-height: 1;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.panel-wide {
  grid-column: span 2;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 900;
  font-size: 12px;
}

.tag.warn {
  background: #fffbeb;
  color: var(--warn);
}

@media (max-width: 1040px) {
  .hero,
  .info-band,
  .public-grid,
  .feature-grid,
  .content-grid,
  .signup-layout,
  .login-layout,
  .hunter-layout,
  .account-dashboard,
  .workspace-detail-layout {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
  }

  .account-workspace,
  .admin-workspace {
    grid-column: 1;
  }

  .sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hunter-panel {
    position: static;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .arcade-search {
    grid-column: span 1;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .panel-wide {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .workspace-header {
    align-items: flex-start;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .arcade-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }

  .hero,
  .public-grid,
  .feature-grid,
  .content-grid,
  .signup-layout,
  .login-layout,
  .account-dashboard,
  .workspace-detail-layout,
  .page-hero,
  .workspace {
    padding: 20px 16px;
  }

  .workspace-form-grid {
    grid-template-columns: 1fr;
  }

  .records-header {
    display: grid;
    align-items: start;
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .game-detail,
  .search-results-layout {
    padding: 20px 16px;
  }

  .game-facts {
    grid-template-columns: 1fr;
  }

  .known-facts {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .hunter-layout {
    padding: 20px 16px;
  }

  .hunter-map {
    min-height: 340px;
  }

  .hunter-results-header {
    display: grid;
    align-items: start;
  }

  .info-band {
    padding: 30px 16px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  body[data-cms-slug="home"] .home-hero {
    min-height: min(720px, calc(100vh - 64px));
    padding: 56px 16px 64px;
    background-position: 42% center;
  }
}
