@font-face {
  font-family: 'Canterbury';
  src: url('../fonts/Canterbury.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GNF';
  src: url('../fonts/GNF.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-void: #0A0A0D;
  --bg-surface: #121217;
  --border: #22222B;
  --text-1: #F2F2F5;
  --text-2: #8E8EA0;
  --text-muted: #555566;
  --accent: #F4B41A;
  --accent-ink: #0A0A0D;

  --font-display: 'Canterbury', 'GNF', monospace;
  --font-body: 'GNF', 'JetBrains Mono', monospace;
  --font-mono: 'GNF', 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg-void) url('../gun_menu_choose_bg.png') center center / cover no-repeat fixed;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: none;
  cursor: url('../cursor.png') 2 2, auto;
}

a { color: inherit; text-decoration: none; cursor: url('../cursor.png') 2 2, pointer; }
button { font-family: inherit; cursor: url('../cursor.png') 2 2, pointer; background: none; border: 0; color: inherit; }

.container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Header & Footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 84px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 120ms ease-out;
}
.nav-link:hover, .nav-link.is-active { color: var(--accent); font-weight: 600; }

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  flex-shrink: 0;
}
.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-1);
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 190;
}
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: rgba(12, 12, 16, 0.98);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(-100%);
  transition: transform 180ms ease-out;
  z-index: 200;
}
.mobile-sidebar.is-open {
  transform: translateX(0);
}
body.sidebar-open .trailer-box iframe {
  visibility: hidden;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-close {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-2);
  padding: 4px 8px;
}
.sidebar-close:hover { color: var(--accent); }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-nav .nav-link {
  padding: 12px 10px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer {
  background: rgba(10, 10, 13, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  min-height: 84px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Typography */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}
.h1-page {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin: 10px 0 24px;
}
.h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.h2-sm {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 0 0 8px;
}
.h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 6px; }
.lead { font-size: 1.0625rem; color: var(--text-2); line-height: 1.65; margin: 0; max-width: 540px; }
.body-muted { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.meta-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}
.meta-accent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0;
}

.hairline { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* Buttons & Micro-interactions */
.btn-primary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  background: transparent;
  border: 0;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: transform 120ms ease-out, filter 120ms ease-out;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  z-index: -1;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bone_frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-sm { padding: 13px 24px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

.accent-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 120ms ease-out;
}
.accent-link:hover { opacity: 0.8; }

.social-links { display: flex; gap: 20px; font-size: 0.875rem; color: var(--text-2); }
.social-links a:hover { color: var(--text-1); }

main { position: relative; z-index: 1; }

/* Pages (SSR: body has WP .page class, never hide it) */
.page-wrap { padding-top: 72px; padding-bottom: 96px; }

/* Home */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
  padding-top: 96px;
  padding-bottom: 104px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }

.trailer-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: 0;
}
.trailer-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bone_frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 4;
}
.trailer-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
}

.bone-frame-box {
  position: relative;
  isolation: isolate;
  background: transparent;
  aspect-ratio: 13 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bone-frame-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  z-index: -1;
}
.frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}
.hero-sprite { width: 62%; height: 76%; object-fit: contain; z-index: 1; }

.band-surface { background: rgba(10, 10, 13, 0.52); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 88px 0; }
.features-visual { display: flex; flex-direction: column; gap: 36px; }
.features-head { display: flex; flex-direction: column; gap: 10px; }
.visual-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.v-card {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  padding: 54px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 120ms ease-out, filter 120ms ease-out;
}
.v-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 13, 0.86);
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  z-index: -1;
}
.v-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bone_frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.v-card:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.home-news {
  padding-top: 88px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.v-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  background: rgba(10, 10, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.v-maps { padding: 0; background: transparent; border: 0; gap: 10px; }
.v-maps img { width: 32%; height: 100%; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }
.v-sprite { height: 100%; max-width: 46%; object-fit: contain; image-rendering: pixelated; }
.v-weapon-img { max-width: 88%; max-height: 92%; object-fit: contain; image-rendering: pixelated; }
.v-caption { display: flex; align-items: center; gap: 16px; }
.v-num { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: var(--accent); flex-shrink: 0; }
.editorial-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.editorial-left { display: flex; flex-direction: column; gap: 16px; }
.editorial-list { display: flex; flex-direction: column; }
.editorial-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.editorial-row:first-child { padding-top: 0; }
.editorial-row:last-child { border-bottom: 0; padding-bottom: 0; }
.row-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.875rem; color: var(--accent); padding-top: 2px; }

.teaser-strip {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.teaser-slots { display: flex; gap: 16px; flex-shrink: 0; }
.teaser-links { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }

/* Inventory Slots */
.inv-slot {
  position: relative;
  width: 104px;
  height: 104px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-sm { width: 68px; height: 68px; flex-shrink: 0; }
.slot-border { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; z-index: 0; }
.slot-sprite { position: relative; z-index: 1; width: 64%; height: 64%; object-fit: contain; image-rendering: pixelated; }

/* Tabs */
.tab-bar { display: flex; gap: 24px; flex-wrap: wrap; }
.tab-btn { font-size: 0.875rem; color: var(--text-2); padding: 6px 0; transition: color 120ms ease-out; }
.tab-btn:hover, .tab-btn.is-active { color: var(--accent); font-weight: 600; }

/* Bestiary (Animated GIF Gallery) */
.bestiary-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.bestiary-card {
  padding: 58px 40px 105px;
  gap: 16px;
}
.bestiary-gif-box {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: #121217;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.bestiary-gif-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.bestiary-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bestiary-card-body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Armory (Weapon Builds Gallery) */
.armory-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.armory-card {
  padding: 68px 54px 115px;
  gap: 18px;
}
.armory-shot-box {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-surface);
}
.armory-shot-box img {
  width: 100%;
  aspect-ratio: 1024 / 608;
  object-fit: cover;
  display: block;
}
.armory-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.armory-card-body p {
  margin: 0;
  font-size: 0.875rem;
}
.armory-specs {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.armory-specs strong {
  color: var(--text-1);
}

/* Maps & Leaderboards (In-Game World Map + Points) */
.world-map-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 36px;
  align-items: start;
}
.world-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1020 / 796;
  padding: 0;
  background: transparent;
}
.world-map-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bone_frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 6;
}
.world-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
}
.map-points-layer {
  position: absolute;
  inset: 0;
}
.map-point {
  position: absolute;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px;
  transition: transform 120ms ease-out;
}
.map-point:hover {
  transform: translate(-50%, 50%) scale(1.12);
  z-index: 4;
}
.map-point.is-active {
  transform: translate(-50%, 50%) scale(1.2);
  z-index: 5;
}
.map-marker-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}
.map-point.is-active .map-marker-img {
  filter: drop-shadow(0 0 10px rgba(244, 180, 26, 0.95));
}
.map-point-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.1;
  padding: 2px 6px;
  background: rgba(10, 10, 13, 0.86);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-1);
  white-space: nowrap;
}
.map-point.is-active .map-point-label {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.map-info-card {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  padding: 54px 38px 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.map-info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 13, 0.84);
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  z-index: -1;
}
.map-info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bone_frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.map-info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-preview-box {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-surface);
}
.map-preview-box img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.lb-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-style: solid;
  border-width: 22px 26px;
  border-image: url('../lobby_panel.png') 108 86 fill / 22px 26px stretch;
  padding: 18px 22px;
  background: rgba(10, 10, 13, 0.45);
}
.lb-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 13, 0.70);
  pointer-events: none;
  z-index: 0;
}
.lb-panel > * {
  position: relative;
  z-index: 1;
}
.lb-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.lb-controls .tab-btn {
  color: #C8C8D6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.lb-controls .tab-btn.is-active {
  color: var(--accent);
}
.search-box {
  position: relative;
  isolation: isolate;
  width: 300px;
  padding: 12px 24px;
}
.search-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 10, 14, 0.94);
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  z-index: -1;
}
.search-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../bone_frame.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
  transition: filter 120ms ease-out;
}
.search-box:focus-within::after {
  filter: drop-shadow(0 0 6px rgba(244, 180, 26, 0.65));
}
.search-input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.search-input::placeholder { color: #9C9CB0; }
.search-input:focus { outline: none; }
.table-wrap { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.lb-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  padding: 14px 12px;
  border-bottom: 1px solid rgba(244, 180, 26, 0.35);
}
.lb-table td {
  padding: 16px 12px;
  color: var(--text-1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
}
.lb-table td.col-player { font-family: var(--font-body); font-weight: 500; }
.lb-table tr.is-top td.col-rank { color: var(--accent); font-weight: 700; }
.lb-table tr.is-expandable { cursor: pointer; transition: background 120ms ease-out; }
.lb-table tr.is-expandable:hover { background: rgba(255, 255, 255, 0.03); }
.expand-arrow { display: inline-block; margin-left: 8px; color: var(--accent); font-size: 0.85em; transition: transform 120ms ease-out; }
.is-open .expand-arrow { transform: rotate(90deg); }
.squad-detail-row td { background: rgba(10, 10, 13, 0.65); padding: 14px 24px 18px 48px; }
.squad-members { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; }
.squad-member { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-2); border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.squad-member strong { color: var(--text-1); font-family: var(--font-body); font-weight: 500; }

/* Devlog */
.devlog-featured { display: grid; grid-template-columns: 460px 1fr; gap: 56px; align-items: center; }
.devlog-thumb { width: 100%; }
.devlog-boss-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  z-index: 1;
}
.devlog-copy { display: flex; flex-direction: column; gap: 16px; }
.devlog-archive { display: flex; flex-direction: column; }
.archive-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 8px 0; }

/* Bug Report */
.bug-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: start; }
.bug-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; color: var(--text-2); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-status { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); margin: 0; }
.bug-side { display: flex; flex-direction: column; gap: 16px; }

.visual-cards > *,
.bestiary-gallery > *,
.armory-gallery > *,
.world-map-layout > *,
.devlog-featured > *,
.bug-grid > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero, .editorial-split, .visual-cards, .world-map-layout, .bestiary-grid, .mob-detail, .armory-grid, .armory-gallery, .devlog-featured, .bug-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bestiary-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .header-inner { gap: 16px; }
  .main-nav { gap: 12px 18px; }
  .teaser-strip { flex-direction: column; align-items: flex-start; gap: 28px; }
  .archive-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .page-wrap { padding-top: 36px; padding-bottom: 56px; }

  .header-inner { min-height: 64px; padding: 10px 0; gap: 12px; }
  .brand { font-size: 1.3rem; gap: 8px; }
  .brand-icon { width: 30px; height: 30px; }
  .main-nav { display: none; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.72rem; }
  .nav-toggle-btn { display: flex; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
  }

  .hero { padding-top: 36px; padding-bottom: 48px; gap: 32px; }
  .hero-actions { gap: 18px; }
  .band-surface { padding: 48px 0; }
  .home-news { padding-top: 48px; padding-bottom: 56px; gap: 24px; }
  .v-card { padding: 44px 28px 68px; }

  .bestiary-gallery { grid-template-columns: 1fr; gap: 22px; }
  .bestiary-card { padding: 52px 30px 78px; }
  .armory-card { padding: 48px 30px 84px; }

  .world-map-layout { gap: 24px; }
  .map-point { gap: 2px; padding: 1px; }
  .map-marker-img { width: 18px; height: 18px; }
  .map-point-label { display: block; font-size: 0.5rem; padding: 1px 4px; line-height: 1; }
  .map-info-card { padding: 46px 26px 74px; }

  .lb-panel { border-width: 14px 16px; padding: 14px 10px; }
  .lb-controls { gap: 14px; }
  .tab-bar { gap: 14px; }
  .search-box { width: 100%; padding: 12px 20px; }
  .lb-table th, .lb-table td { padding: 8px 4px; font-size: 0.68rem; }
  .lb-table td.col-player { word-break: normal; overflow-wrap: anywhere; }
}

/* WordPress SSR & SEO additions */
picture { display: contents; }
img { max-width: 100%; height: auto; }
.v-maps img { height: 100%; }
.v-foes .v-sprite { width: auto; height: 100%; max-width: 46%; }
.v-builds .v-weapon-img { width: auto; height: auto; max-width: 88%; max-height: 92%; }
.world-map-img { height: 100%; }
.devlog-boss-img { height: 100%; }
.v-card { padding: 58px 40px 76px; }
.bestiary-card { padding: 62px 42px 118px; }
.armory-card { padding: 68px 54px 132px; }
.map-info-card { padding: 66px 42px 96px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 14px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs-sep { color: var(--text-muted); }

/* YouTube Click Facade (LCP / INP optimization) */
.yt-facade {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0A0A0D;
  cursor: pointer;
  overflow: hidden;
  -webkit-mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
  mask: url('../bone_frame_mask.png') center / 100% 100% no-repeat;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.86);
  transition: filter 160ms ease-out, transform 200ms ease-out;
}
.yt-facade:hover img {
  filter: brightness(1);
  transform: scale(1.02);
}
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(10, 10, 13, 0.88);
  border: 2px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease-out, background 120ms ease-out;
}
.yt-play-btn::after {
  content: '';
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--accent);
}
.yt-facade:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(10, 10, 13, 0.96);
}

/* Contact Form 7 styling matching .bug-form */
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wpcf7 form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.wpcf7 input[type="submit"] {
  align-self: flex-start;
  padding: 18px 34px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid #2b2314;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 120ms ease-out, filter 120ms ease-out;
}
.wpcf7 input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.wpcf7-response-output {
  margin: 8px 0 0 !important;
  padding: 10px 14px !important;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border-color: var(--accent) !important;
  color: var(--text-1);
}
