:root {
  --black: #050604;
  --ink: #0b0f0a;
  --panel: #12170f;
  --panel-2: #1a2115;
  --olive: #536238;
  --olive-2: #2f3a25;
  --brass: #d39a3f;
  --ember: #d86a22;
  --bone: #f0dfb8;
  --muted: #b9aa83;
  --red: #7d241a;
  --line: rgba(211, 154, 63, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 6, 4, 0.86), rgba(5, 6, 4, 0.94)),
    repeating-linear-gradient(0deg, rgba(211, 154, 63, 0.04) 0 1px, transparent 1px 4px),
    var(--black);
  color: var(--bone);
  font-family: "Courier New", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(83, 98, 56, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(83, 98, 56, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
}

.hero,
main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 4.75rem clamp(1rem, 3vw, 3rem) 3rem;
  overflow: hidden;
  border-bottom: 3px solid var(--line);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.45);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 4, 0.95) 0%, rgba(5, 6, 4, 0.74) 38%, rgba(5, 6, 4, 0.22) 78%),
    linear-gradient(0deg, rgba(5, 6, 4, 0.96) 0%, transparent 46%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  position: absolute;
  top: 1rem;
  left: clamp(1rem, 3vw, 3rem);
  right: clamp(1rem, 3vw, 3rem);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a,
.button {
  min-height: 2.2rem;
  padding: 0.62rem 0.8rem;
  border: 2px solid var(--line);
  background: rgba(10, 14, 9, 0.82);
  color: var(--bone);
  font: 700 0.78rem/1 "Courier New", Consolas, monospace;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.62);
}

.site-nav a:hover,
.button:hover,
.time-block:hover {
  border-color: var(--bone);
  color: #fff4cf;
}

.hero-copy {
  width: min(42rem, 100%);
  padding: 1rem;
  border-left: 4px solid var(--brass);
  background: linear-gradient(90deg, rgba(5, 6, 4, 0.78), rgba(5, 6, 4, 0));
}

.kicker,
.stamp,
.ration-time,
.status-strip span,
.recipe-steps span {
  color: var(--brass);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Courier New", Consolas, monospace;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.9);
}

h1 {
  max-width: 38rem;
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 6.4vw, 5.6rem);
  line-height: 0.96;
  color: var(--bone);
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.1;
}

h4 {
  margin-bottom: 0.5rem;
  color: var(--brass);
  font-size: 0.88rem;
}

p,
li,
small {
  color: rgba(240, 223, 184, 0.86);
  line-height: 1.55;
}

.subtitle {
  max-width: 35rem;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.1rem;
}

.status-strip span {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(211, 154, 63, 0.5);
  background: rgba(83, 98, 56, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  cursor: pointer;
}

.button.primary {
  background: var(--red);
  border-color: var(--ember);
}

.button.ghost {
  background: rgba(10, 14, 9, 0.88);
}

.briefing-band,
.field-notes-section,
.split-section,
.hour-section,
.compound-section,
.sermon-section,
.game-section,
.rations-section,
.recipe-section,
.creed-section {
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}

.briefing-band,
.recipe-section {
  background:
    linear-gradient(180deg, rgba(18, 23, 15, 0.95), rgba(5, 6, 4, 0.98)),
    repeating-linear-gradient(45deg, rgba(211, 154, 63, 0.04) 0 2px, transparent 2px 12px);
}

.section-heading,
.briefing-grid,
.field-notes-grid,
.hour-console,
.compound-grid,
.sermon-grid,
.game-launch,
.ration-board,
.recipe-grid,
.recipe-steps {
  max-width: 78rem;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.briefing-card,
.field-notes-grid article,
.loadout-card,
.ration-board article,
.hour-brief,
.compound-map,
.compound-notes article,
.sermon-terminal,
.sermon-side,
.game-panel,
.creed-console,
.recipe-panel,
.recipe-steps article,
.recipe-art,
.operator-card {
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 33, 21, 0.96), rgba(9, 12, 8, 0.98));
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.52);
}

.briefing-card {
  min-height: 13.5rem;
  padding: 1rem;
}

.briefing-card h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.08;
}

.field-notes-section {
  background:
    linear-gradient(180deg, rgba(5, 6, 4, 0.98), rgba(12, 16, 10, 0.98)),
    repeating-linear-gradient(90deg, rgba(83, 98, 56, 0.08) 0 2px, transparent 2px 16px);
}

.field-notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.field-notes-grid article {
  min-height: 12rem;
  padding: 0.9rem;
}

.field-notes-grid h3 {
  margin-top: 0.35rem;
}

.split-section {
  max-width: 84rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 1rem;
  align-items: start;
}

.split-section .section-heading {
  grid-column: 1 / -1;
  width: 100%;
}

.timeline {
  display: grid;
  gap: 0.65rem;
}

.time-block {
  width: 100%;
  min-height: 4.35rem;
  padding: 0.8rem;
  border: 2px solid rgba(211, 154, 63, 0.32);
  background: rgba(12, 17, 10, 0.96);
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.52);
}

.time-block span {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.time-block.active {
  border-color: var(--ember);
  background: linear-gradient(135deg, rgba(125, 36, 26, 0.96), rgba(47, 58, 37, 0.96));
}

.panel-stage {
  min-height: 21rem;
  border: 2px solid var(--line);
  border-left-width: 6px;
  background:
    linear-gradient(rgba(5, 6, 4, 0.76), rgba(5, 6, 4, 0.76)),
    repeating-linear-gradient(135deg, rgba(211, 154, 63, 0.08) 0 2px, transparent 2px 14px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.52);
}

.routine-panel {
  display: none;
  padding: 1.1rem;
}

.routine-panel.active {
  display: block;
}

.routine-panel ul,
.recipe-panel ul {
  padding-left: 1.1rem;
}

.hour-section {
  background:
    linear-gradient(180deg, rgba(8, 12, 7, 0.98), rgba(5, 6, 4, 0.98)),
    repeating-linear-gradient(90deg, rgba(211, 154, 63, 0.035) 0 2px, transparent 2px 14px);
}

.hour-console {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.hour-button {
  position: relative;
  min-height: 3.4rem;
  padding: 0.55rem 0.35rem;
  border: 2px solid rgba(211, 154, 63, 0.34);
  background: rgba(12, 17, 10, 0.96);
  color: var(--bone);
  cursor: pointer;
  font: 900 0.86rem/1 "Courier New", Consolas, monospace;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.52);
}

.hour-button span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.hour-button.active,
.hour-button:hover {
  border-color: var(--ember);
  background: linear-gradient(135deg, rgba(125, 36, 26, 0.96), rgba(47, 58, 37, 0.96));
}

.hour-button.current {
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}

.hour-button.current::after {
  content: "NOW";
  position: absolute;
  top: -0.55rem;
  right: -0.45rem;
  padding: 0.18rem 0.3rem;
  background: var(--ember);
  color: var(--black);
  font-size: 0.58rem;
  font-weight: 900;
}

.hour-brief {
  min-height: 100%;
  padding: 1rem;
  border-left-width: 6px;
  background:
    linear-gradient(rgba(5, 6, 4, 0.72), rgba(5, 6, 4, 0.88)),
    repeating-linear-gradient(135deg, rgba(211, 154, 63, 0.07) 0 2px, transparent 2px 14px);
}

.hour-brief h3 {
  margin-top: 0.45rem;
  color: var(--bone);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
}

.hour-brief ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.hour-brief li {
  margin-bottom: 0.42rem;
}

[data-inspect-title] {
  cursor: context-menu;
}

.inspect-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 106, 34, 0.18), transparent 28rem),
    rgba(0, 0, 0, 0.78);
  perspective: 900px;
}

.inspect-overlay.active {
  display: grid;
}

.inspect-card {
  width: min(54rem, 100%);
  min-height: 20rem;
  position: relative;
  padding: 1.2rem;
  border: 3px solid rgba(216, 106, 34, 0.8);
  background:
    linear-gradient(180deg, rgba(27, 19, 12, 0.98), rgba(8, 8, 6, 0.98)),
    repeating-linear-gradient(0deg, rgba(240, 223, 184, 0.05) 0 1px, transparent 1px 5px);
  box-shadow:
    10px 10px 0 rgba(0, 0, 0, 0.62),
    inset 0 0 2rem rgba(216, 106, 34, 0.16);
  transform: rotateX(8deg) rotateY(-9deg) rotateZ(-1deg);
  animation: inspectIn 220ms ease-out;
}

.inspect-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 0.58fr);
  gap: 1rem;
  align-items: stretch;
}

.inspect-art {
  min-height: 14rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0.75rem;
  border: 2px solid rgba(211, 154, 63, 0.36);
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 106, 34, 0.2), transparent 60%),
    rgba(0, 0, 0, 0.34);
}

.inspect-art.hidden {
  display: none;
}

.inspect-art img {
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  image-rendering: auto;
}

.inspect-copy {
  min-width: 0;
}

.inspect-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--line);
  background: var(--red);
  color: var(--bone);
  cursor: pointer;
  font-weight: 900;
}

#inspectTitle {
  margin: 0.6rem 2.4rem 0.8rem 0;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
}

#inspectText {
  min-height: 9rem;
  color: var(--bone);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

#inspectText::after {
  content: "_";
  color: var(--brass);
  animation: caretBlink 700ms steps(1, end) infinite;
}

.inspect-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 1rem;
}

.inspect-meter span {
  height: 0.55rem;
  background: var(--brass);
  box-shadow: 0 0 0.7rem rgba(216, 106, 34, 0.42);
}

@keyframes inspectIn {
  from {
    opacity: 0;
    transform: rotateX(18deg) rotateY(-18deg) translateY(1.2rem) scale(0.92);
  }
  to {
    opacity: 1;
    transform: rotateX(8deg) rotateY(-9deg) rotateZ(-1deg);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.compound-section {
  background:
    linear-gradient(180deg, rgba(5, 6, 4, 0.98), rgba(11, 15, 10, 0.98)),
    radial-gradient(circle at 42% 58%, rgba(216, 106, 34, 0.16), transparent 24rem);
}

.compound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.45fr);
  gap: 1rem;
  align-items: stretch;
}

.compound-map {
  margin: 0;
  padding: 0.85rem;
}

.compound-map img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(211, 154, 63, 0.28);
  background: rgba(0, 0, 0, 0.36);
}

.compound-map figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.compound-notes {
  display: grid;
  gap: 0.85rem;
}

.compound-notes article {
  padding: 0.9rem;
}

.sermon-section {
  background:
    linear-gradient(180deg, rgba(7, 5, 4, 0.98), rgba(14, 10, 7, 0.98)),
    radial-gradient(circle at 50% 50%, rgba(216, 106, 34, 0.18), transparent 28rem);
}

.sermon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.sermon-terminal {
  position: relative;
  min-height: 21rem;
  display: grid;
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border-color: rgba(216, 106, 34, 0.78);
  background:
    linear-gradient(rgba(10, 7, 5, 0.78), rgba(10, 7, 5, 0.92)),
    repeating-linear-gradient(0deg, rgba(240, 223, 184, 0.05) 0 1px, transparent 1px 5px);
  box-shadow:
    6px 6px 0 rgba(0, 0, 0, 0.58),
    inset 0 0 0 2px rgba(211, 154, 63, 0.2),
    inset 0 0 3rem rgba(216, 106, 34, 0.16);
}

.sermon-terminal::before,
.sermon-terminal::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.sermon-terminal::before {
  inset: 0;
  border: 1px solid rgba(240, 223, 184, 0.16);
}

.sermon-terminal::after {
  left: -10%;
  right: -10%;
  bottom: -35%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(216, 106, 34, 0.22), transparent 62%);
  animation: chapelGlow 3.2s ease-in-out infinite;
}

.sermon-top {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 900;
}

.sermon-symbol {
  position: relative;
  width: 5.6rem;
  height: 5.6rem;
  margin: 0 auto 1.2rem;
  border: 2px solid rgba(211, 154, 63, 0.46);
  box-shadow: 0 0 1.3rem rgba(216, 106, 34, 0.28);
}

.sermon-symbol::before,
.sermon-symbol::after,
.sermon-symbol span {
  content: "";
  position: absolute;
  background: var(--brass);
  box-shadow: 0 0 1rem rgba(216, 106, 34, 0.65);
}

.sermon-symbol::before {
  width: 0.7rem;
  height: 3.8rem;
  left: 50%;
  top: 0.85rem;
  transform: translateX(-50%);
}

.sermon-symbol::after {
  width: 3.1rem;
  height: 0.7rem;
  left: 50%;
  top: 2rem;
  transform: translateX(-50%);
}

.sermon-symbol span {
  width: 2.5rem;
  height: 0.45rem;
  left: 50%;
  top: 3.55rem;
  transform: translateX(-50%);
  opacity: 0.78;
}

#rotatingQuote {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  min-height: 6.5rem;
  margin: 0 auto;
  color: var(--bone);
  font-size: clamp(1.25rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.92),
    0 0 1.1rem rgba(216, 106, 34, 0.42);
}

.sermon-terminal.quote-shift #rotatingQuote {
  animation: quoteFlicker 520ms steps(2, end);
}

.sermon-side {
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(26, 33, 21, 0.96), rgba(12, 8, 6, 0.98));
}

@keyframes chapelGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.25rem);
  }
}

@keyframes quoteFlicker {
  0% {
    opacity: 0.25;
    transform: translateY(0.25rem);
  }
  40% {
    opacity: 1;
  }
  70% {
    opacity: 0.45;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.rations-section {
  background:
    linear-gradient(180deg, rgba(5, 6, 4, 0.98), rgba(13, 17, 11, 0.98)),
    radial-gradient(circle at 75% 20%, rgba(216, 106, 34, 0.13), transparent 24rem);
}

.game-section {
  background:
    linear-gradient(rgba(5, 6, 4, 0.78), rgba(5, 6, 4, 0.94)),
    url("assets/compound-overview.png") center / cover;
}

.game-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 3px solid rgba(216, 106, 34, 0.74);
  background:
    linear-gradient(90deg, rgba(6, 8, 5, 0.9), rgba(19, 25, 14, 0.82)),
    repeating-linear-gradient(135deg, rgba(211, 154, 63, 0.08) 0 2px, transparent 2px 14px);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.6),
    inset 0 0 2rem rgba(216, 106, 34, 0.16);
}

.game-launch h3 {
  margin: 0.45rem 0 0.45rem;
  color: var(--bone);
  font-size: clamp(1.5rem, 4vw, 2.7rem);
}

.game-launch p {
  max-width: 48rem;
  margin: 0;
}

.arcade-button {
  min-width: min(100%, 18rem);
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1.2rem);
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.86)),
    url("assets/compound-overview.png") center / cover;
}

.game-modal.active {
  display: grid;
}

body.game-open {
  overflow: hidden;
}

.game-modal-shell {
  position: relative;
  width: min(98vw, 98rem);
  max-height: 98vh;
  display: grid;
  grid-template-columns: minmax(28rem, 1fr) minmax(17rem, 0.28fr);
  gap: clamp(0.75rem, 2vw, 1.2rem);
  align-items: stretch;
  padding: clamp(0.65rem, 2vw, 1.15rem);
  border: 4px solid rgba(216, 106, 34, 0.88);
  background:
    linear-gradient(180deg, rgba(7, 9, 6, 0.94), rgba(2, 2, 2, 0.96)),
    repeating-linear-gradient(0deg, rgba(240, 223, 184, 0.05) 0 1px, transparent 1px 6px);
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.72),
    inset 0 0 0 2px rgba(255, 244, 207, 0.12),
    inset 0 0 3rem rgba(216, 106, 34, 0.2);
  overflow: auto;
  animation: arcadeIn 260ms ease-out;
}

.game-close {
  position: absolute;
  z-index: 3;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--bone);
  background: var(--red);
  color: var(--bone);
  font-weight: 900;
  cursor: pointer;
}

.pope-rage {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(216, 106, 34, 0.24), transparent 34rem),
    rgba(0, 0, 0, 0.34);
}

.pope-rage.active {
  display: grid;
  animation: rageBackdrop 1850ms ease-out forwards;
}

.pope-rage img {
  width: min(72vmin, 45rem);
  image-rendering: auto;
  filter:
    drop-shadow(0 0 1.5rem rgba(255, 244, 207, 0.42))
    drop-shadow(0 0 3.5rem rgba(216, 106, 34, 0.8));
  animation: popeRageZoom 1850ms cubic-bezier(0.12, 0.98, 0.2, 1) forwards;
}

.pope-rage-text {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: min(92%, 72rem);
  transform: translateX(-50%);
  color: #fff4cf;
  font-size: clamp(2rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    5px 5px 0 #050604,
    -3px 3px 0 #7d241a,
    0 0 1.4rem rgba(216, 106, 34, 0.95),
    0 0 3rem rgba(255, 64, 30, 0.65);
  animation: rageTextPunch 1850ms steps(5, end) forwards;
}

.game-board-wrap {
  position: relative;
  border: 3px solid rgba(216, 106, 34, 0.75);
  background:
    linear-gradient(rgba(5, 6, 4, 0.74), rgba(5, 6, 4, 0.86)),
    repeating-linear-gradient(45deg, rgba(211, 154, 63, 0.08) 0 2px, transparent 2px 12px);
  box-shadow:
    8px 8px 0 rgba(0, 0, 0, 0.6),
    inset 0 0 2rem rgba(216, 106, 34, 0.16);
  padding: clamp(0.35rem, 1.2vw, 0.7rem);
}

.game-board {
  width: min(90vmin, 62rem);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(0.08rem, 0.38vw, 0.22rem);
  margin: 0 auto;
  touch-action: none;
}

.gem {
  position: relative;
  border: 2px solid rgba(211, 154, 63, 0.32);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 244, 207, 0.12), transparent 48%),
    rgba(9, 12, 8, 0.92);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.5),
    3px 3px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transform: translateZ(0);
  transition:
    transform 190ms cubic-bezier(0.2, 0.9, 0.2, 1.2),
    border-color 150ms ease,
    box-shadow 150ms ease,
    filter 180ms ease;
  animation: gemSettle 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-board.standby .gem {
  filter: grayscale(0.35) brightness(0.72);
}

.game-board.standby .gem::before {
  content: "LOCK";
  position: absolute;
  inset: auto 0.18rem 0.18rem auto;
  z-index: 1;
  padding: 0.12rem 0.18rem;
  background: rgba(125, 36, 26, 0.9);
  color: var(--bone);
  font-size: clamp(0.42rem, 1.2vw, 0.58rem);
  font-weight: 900;
}

.game-board.blast {
  animation: boardBlast 460ms ease-out;
}

.gem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  image-rendering: auto;
  pointer-events: none;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1.25), filter 160ms ease;
}

.gem.dragging {
  z-index: 2;
  border-color: var(--bone);
  filter: brightness(1.18);
  transform: translate(var(--drag-x, 0), var(--drag-y, 0)) scale(1.12);
  box-shadow:
    0 0 1.3rem rgba(255, 244, 207, 0.55),
    0 0 2.4rem rgba(216, 106, 34, 0.5),
    inset 0 0 0 2px rgba(255, 244, 207, 0.4);
}

.gem.drag-target {
  border-color: #20d6ff;
  box-shadow:
    0 0 1.2rem rgba(32, 214, 255, 0.75),
    inset 0 0 1rem rgba(32, 214, 255, 0.24);
  transform: scale(0.94);
}

.gem.swapping {
  z-index: 2;
  animation: swapPop 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gem.special-row,
.gem.special-column,
.gem.special-bomb {
  border-color: #fff4cf;
  box-shadow:
    0 0 1.1rem rgba(216, 106, 34, 0.72),
    inset 0 0 1rem rgba(216, 106, 34, 0.32);
}

.gem.special-row::before,
.gem.special-column::before,
.gem.special-bomb::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.gem.special-row::before {
  background: linear-gradient(90deg, transparent 0 18%, rgba(255, 244, 207, 0.95) 19% 24%, rgba(216, 106, 34, 0.88) 25% 75%, rgba(255, 244, 207, 0.95) 76% 81%, transparent 82%);
  animation: specialPulse 900ms ease-in-out infinite;
}

.gem.special-column::before {
  background: linear-gradient(180deg, transparent 0 18%, rgba(255, 244, 207, 0.95) 19% 24%, rgba(32, 214, 255, 0.82) 25% 75%, rgba(255, 244, 207, 0.95) 76% 81%, transparent 82%);
  animation: specialPulse 900ms ease-in-out infinite;
}

.gem.special-bomb::before {
  inset: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 244, 207, 0.9) 0 16%, rgba(255, 54, 103, 0.72) 17% 34%, rgba(216, 106, 34, 0.54) 35% 52%, transparent 53%);
  animation: bombPulse 760ms ease-in-out infinite;
}

.gem.selected {
  border-color: var(--bone);
  box-shadow:
    0 0 0.85rem rgba(216, 106, 34, 0.65),
    inset 0 0 0 2px rgba(255, 244, 207, 0.5);
}

.gem.selected img {
  transform: scale(1.12) rotate(-4deg);
}

.gem.hint {
  border-color: var(--bone);
  box-shadow:
    0 0 1rem rgba(216, 106, 34, 0.86),
    inset 0 0 0 2px rgba(255, 244, 207, 0.6);
  animation: hintWobble 900ms ease-in-out infinite;
}

.gem.hint-target {
  border-color: rgba(216, 106, 34, 0.9);
}

.gem.clearing {
  z-index: 4;
  overflow: visible;
  animation: gemBlast 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gem.clearing::before,
.gem.clearing::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(circle, rgba(255, 244, 207, 0.98) 0 12%, rgba(255, 209, 62, 0.9) 13% 27%, rgba(255, 76, 32, 0.65) 28% 45%, rgba(32, 214, 255, 0.34) 46% 62%, transparent 63%);
  mix-blend-mode: screen;
  animation: explosionRing 620ms ease-out forwards;
}

.gem.clearing::after {
  inset: -34%;
  background:
    conic-gradient(from 20deg, transparent 0 8%, rgba(255, 244, 207, 0.95) 9% 13%, transparent 14% 22%, rgba(32, 214, 255, 0.85) 23% 27%, transparent 28% 38%, rgba(255, 54, 103, 0.82) 39% 43%, transparent 44% 58%, rgba(255, 184, 28, 0.95) 59% 63%, transparent 64% 100%);
  animation-delay: 40ms;
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--spark-size) * 2.8);
  height: var(--spark-size);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--spark-color), #fff4cf);
  box-shadow:
    0 0 0.75rem var(--spark-color),
    0 0 1.4rem rgba(255, 244, 207, 0.42);
  transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(0);
  animation: sparkFly 760ms cubic-bezier(0.13, 0.9, 0.16, 1) forwards;
}

.game-quote {
  position: relative;
  width: 100%;
  min-height: 5.3rem;
  display: grid;
  place-items: center;
  margin: 0.85rem 0;
  padding: clamp(0.85rem, 2vw, 1.3rem);
  border: 3px solid rgba(216, 106, 34, 0.86);
  background:
    linear-gradient(180deg, rgba(20, 12, 7, 0.96), rgba(7, 5, 4, 0.96)),
    repeating-linear-gradient(90deg, rgba(240, 223, 184, 0.08) 0 2px, transparent 2px 10px);
  color: var(--bone);
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  font-weight: 900;
  line-height: 1.32;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
  box-shadow:
    0 0 1.8rem rgba(216, 106, 34, 0.34),
    inset 0 0 1.2rem rgba(216, 106, 34, 0.12);
  opacity: 0;
  pointer-events: none;
}

.game-quote.show {
  animation: quotePop 4200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.combo-callout {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #fff4cf;
  font-size: clamp(1.8rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    5px 5px 0 #050604,
    -3px 3px 0 #7d241a,
    0 0 1.2rem rgba(216, 106, 34, 0.9);
  opacity: 0;
  pointer-events: none;
}

.combo-callout.show {
  animation: comboSmash 1450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-panel {
  padding: 1rem;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 1rem 0;
}

.game-stats div {
  padding: 0.55rem;
  border: 1px solid rgba(211, 154, 63, 0.34);
  background: rgba(0, 0, 0, 0.3);
}

.game-stats span,
.game-stats strong {
  display: block;
}

.game-stats span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.game-stats strong {
  color: var(--bone);
  font-size: 1.15rem;
}

.game-start {
  width: 100%;
  margin-bottom: 0.65rem;
}

#gameShuffle {
  width: 100%;
}

@keyframes gemBlast {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.32) rotate(8deg);
    filter: saturate(2.5) brightness(1.65);
  }
  58% {
    opacity: 1;
    transform: scale(0.92) rotate(-7deg);
    filter: saturate(2) brightness(1.3);
  }
  100% {
    opacity: 0;
    transform: scale(0.18) rotate(-18deg);
  }
}

@keyframes swapPop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.16) rotate(3deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes specialPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes bombPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.86) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.12) rotate(14deg);
  }
}

@keyframes comboSmash {
  0% {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.62) rotate(-4deg);
  }
  16%,
  72% {
    opacity: 1;
  }
  28% {
    transform: translateY(0) scale(1.05) rotate(1deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-1rem) scale(1.02) rotate(0deg);
  }
}

@keyframes gemSettle {
  from {
    opacity: 0;
    transform: translateY(-0.55rem) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hintWobble {
  0%,
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  22% {
    transform: translateX(-0.28rem) rotate(-5deg) scale(1.08);
  }
  48% {
    transform: translateX(0.28rem) rotate(5deg) scale(1.08);
  }
  70% {
    transform: translateX(0) rotate(0deg) scale(1.12);
  }
}

@keyframes sparkFly {
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(calc(var(--spark-distance) * 0.72)) scale(1.18);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(var(--spark-distance)) scale(0.12);
  }
}

@keyframes boardBlast {
  0% {
    filter: brightness(1);
  }
  30% {
    filter: brightness(1.75) saturate(2.2);
    transform: scale(1.012);
  }
  58% {
    filter: brightness(1.25) saturate(1.5);
    transform: scale(0.996);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes arcadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popeRageZoom {
  0% {
    opacity: 0;
    transform: scale(0.18) translateY(3rem);
  }
  14% {
    opacity: 1;
    transform: scale(1.2) translateY(0);
  }
  22% {
    transform: scale(1.62) translate(-0.8rem, 0.35rem) rotate(-2deg);
  }
  32% {
    transform: scale(1.82) translate(0.65rem, -0.25rem) rotate(2deg);
  }
  44% {
    transform: scale(1.72) translate(-0.45rem, 0.2rem) rotate(-1deg);
  }
  68% {
    opacity: 1;
    transform: scale(1.9) translate(0.4rem, 0) rotate(1deg);
  }
  100% {
    opacity: 0;
    transform: scale(2.12) translateY(-0.35rem);
  }
}

@keyframes rageTextPunch {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(2rem) scale(0.72);
  }
  12%,
  82% {
    opacity: 1;
  }
  20% {
    transform: translateX(-50%) translate(-0.4rem, 0) scale(1.08);
  }
  34% {
    transform: translateX(-50%) translate(0.55rem, -0.2rem) scale(1);
  }
  48% {
    transform: translateX(-50%) translate(-0.25rem, 0.2rem) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-0.8rem) scale(1.02);
  }
}

@keyframes rageBackdrop {
  0% {
    opacity: 0;
  }
  12%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes explosionRing {
  from {
    opacity: 1;
    transform: scale(0.2) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: scale(1.45) rotate(24deg);
  }
}

@keyframes quotePop {
  0% {
    opacity: 0;
    transform: translateY(0.55rem) scale(0.96);
  }
  12%,
  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-0.4rem) scale(0.98);
  }
}

.ration-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.ration-board article {
  min-height: 22rem;
  padding: 0.85rem;
}

.ration-board img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 0.8rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(211, 154, 63, 0.26);
}

.recipe-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: stretch;
}

.recipe-art {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.recipe-art img {
  width: min(25rem, 100%);
}

.recipe-panel {
  padding: 1rem;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.recipe-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.recipe-steps article {
  padding: 0.9rem;
}

.serving-note {
  max-width: 78rem;
  margin: 1rem auto 0;
  padding: 0.85rem;
  border-left: 4px solid var(--brass);
  background: rgba(83, 98, 56, 0.2);
}

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

.operator-card {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.operator-art {
  min-height: 24rem;
  display: grid;
  place-items: end center;
  background:
    linear-gradient(rgba(5, 6, 4, 0.58), rgba(5, 6, 4, 0.8)),
    repeating-linear-gradient(90deg, rgba(211, 154, 63, 0.08) 0 2px, transparent 2px 16px);
  border: 1px solid rgba(211, 154, 63, 0.28);
  overflow: hidden;
}

.operator-art img {
  width: min(19rem, 92%);
  max-height: 34rem;
  object-fit: contain;
  object-position: bottom center;
}

.operator-copy {
  padding: 0.5rem;
}

.loadout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.loadout-card {
  min-height: 12rem;
  padding: 0.9rem;
}

.loadout-card img {
  width: 100%;
  height: 11rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(211, 154, 63, 0.24);
}

.loadout-card:nth-child(3) img {
  object-position: top center;
}

.mustache-card img {
  object-fit: contain;
  padding: 1.7rem 0.4rem;
}

.creed-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(12, 17, 10, 0.94), rgba(5, 6, 4, 0.98)),
    radial-gradient(circle at 50% 100%, rgba(216, 106, 34, 0.18), transparent 24rem);
}

.creed-copy,
.creed-console {
  max-width: 38rem;
}

.creed-copy {
  justify-self: end;
}

.creed-console {
  padding: 1rem;
}

.console-top {
  display: flex;
  gap: 0.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(211, 154, 63, 0.28);
}

.console-top span {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--brass);
}

#creedLine {
  min-height: 6rem;
  margin: 1rem 0;
  color: var(--bone);
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.35;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #030403;
  border-top: 2px solid var(--line);
}

footer a,
footer p {
  margin: 0;
  font-size: 0.8rem;
}

.fire-mode .hero::after {
  background:
    linear-gradient(90deg, rgba(5, 6, 4, 0.9) 0%, rgba(76, 25, 15, 0.62) 42%, rgba(216, 106, 34, 0.16) 78%),
    linear-gradient(0deg, rgba(5, 6, 4, 0.96) 0%, transparent 46%);
}

@media (max-width: 1000px) {
  .briefing-grid,
  .field-notes-grid,
  .ration-board,
  .loadout,
  .recipe-steps,
  .ingredient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .hour-console,
  .compound-grid,
  .sermon-grid,
  .game-launch,
  .game-modal-shell,
  .recipe-grid,
  .creed-section,
  .operator-card {
    grid-template-columns: 1fr;
  }

  .creed-copy {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 10.5rem;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 4, 0.22), rgba(5, 6, 4, 0.78) 42%, rgba(5, 6, 4, 0.98)),
      linear-gradient(90deg, rgba(5, 6, 4, 0.9), rgba(5, 6, 4, 0.2));
  }

  .hero-media img {
    object-position: 62% 50%;
  }

  .site-nav {
    justify-content: flex-start;
    max-height: 8.5rem;
    overflow-y: auto;
  }

  .hero-copy {
    padding: 0.85rem;
  }

  .briefing-grid,
  .field-notes-grid,
  .hour-grid,
  .ration-board,
  .loadout,
  .recipe-steps,
  .ingredient-grid {
    grid-template-columns: 1fr;
  }

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

  .hour-button {
    min-height: 3rem;
  }

  .inspect-card {
    transform: rotateX(4deg) rotateY(-4deg);
  }

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

  .inspect-art {
    min-height: 11rem;
  }

  .operator-art {
    min-height: 20rem;
  }

  .loadout-card img {
    height: 9rem;
  }

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

  .game-modal {
    padding: 0.35rem;
  }

  .game-modal-shell {
    width: 100%;
    max-height: 98vh;
    padding: 0.55rem;
  }

  .game-board {
    width: min(94vw, 74vh);
  }

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

  .hero-actions,
  footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
