:root {
  --paper: #f9f3e7;
  --paper-strong: #f2e4c8;
  --ink: #1f2933;
  --ink-soft: #435163;
  --accent: #a43c2f;
  --accent-soft: #d96f5d;
  --sea: #1f5f6f;
  --gold: #f4b942;
  --card: #fffaf0;
  --line: #d9c9aa;
  --shadow: 0 18px 40px rgba(56, 30, 8, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: #18110c;
  padding: 2rem 1rem 3rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(18, 14, 11, 0.42) 0%,
      rgba(13, 9, 7, 0.6) 52%,
      rgba(8, 6, 4, 0.74) 100%),
    url("trincheiras_ww1_transparencia_50.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(244, 222, 174, 0.2), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(20, 14, 9, 0.62), rgba(10, 7, 5, 0.8) 74%);
  box-shadow:
    inset 0 1px 0 rgba(248, 210, 146, 0.14),
    inset 0 -140px 200px rgba(0, 0, 0, 0.4);
}

.bg-shape {
  position: fixed;
  z-index: -2;
  border-radius: 100%;
  filter: blur(2px);
}

.shape-a {
  width: 360px;
  height: 360px;
  top: -90px;
  left: -90px;
  background: rgba(98, 101, 107, 0.18);
}

.shape-b {
  width: 340px;
  height: 340px;
  right: -100px;
  bottom: -70px;
  background: rgba(74, 58, 42, 0.28);
}

.battle-layer {
  position: fixed;
  left: -10%;
  right: -10%;
  pointer-events: none;
  z-index: -1;
}

.horizon-smoke {
  top: 6vh;
  height: 34vh;
  background:
    radial-gradient(circle at 12% 72%, rgba(32, 34, 38, 0.52), transparent 28%),
    radial-gradient(circle at 36% 54%, rgba(27, 29, 33, 0.44), transparent 26%),
    radial-gradient(circle at 64% 58%, rgba(29, 31, 35, 0.46), transparent 30%),
    radial-gradient(circle at 88% 68%, rgba(33, 35, 39, 0.52), transparent 29%),
    radial-gradient(circle at 48% 22%, rgba(243, 173, 94, 0.12), transparent 22%);
  opacity: 0.8;
}

.blast-silhouettes {
  bottom: 43vh;
  height: 20vh;
  background:
    radial-gradient(ellipse at 14% 100%, rgba(16, 16, 16, 0.86) 0 24%, transparent 26%),
    radial-gradient(ellipse at 14% 54%, rgba(33, 32, 30, 0.5) 0 18%, transparent 42%),
    radial-gradient(circle at 14% 48%, rgba(248, 149, 61, 0.18) 0 9%, transparent 28%),
    radial-gradient(ellipse at 52% 100%, rgba(18, 18, 18, 0.88) 0 28%, transparent 30%),
    radial-gradient(ellipse at 52% 52%, rgba(34, 33, 31, 0.52) 0 20%, transparent 42%),
    radial-gradient(circle at 52% 46%, rgba(255, 163, 74, 0.2) 0 10%, transparent 29%),
    radial-gradient(ellipse at 84% 100%, rgba(15, 15, 15, 0.84) 0 23%, transparent 25%),
    radial-gradient(ellipse at 84% 56%, rgba(31, 30, 28, 0.46) 0 17%, transparent 40%),
    radial-gradient(circle at 84% 50%, rgba(246, 145, 58, 0.16) 0 9%, transparent 26%);
  opacity: 0.86;
  filter: contrast(1.06);
  animation: blastPulse 8.8s ease-in-out infinite;
}

.trench-rim {
  bottom: 12vh;
  height: 27vh;
  background-image:
    radial-gradient(ellipse at 50% 0, rgba(188, 154, 106, 0.66) 0 13px, rgba(136, 109, 75, 0.7) 14px 18px, transparent 19px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(88, 65, 43, 0.68) 58px 62px, transparent 62px 116px),
    linear-gradient(180deg, #6b5137 0%, #4a3727 28%, #2e2118 100%);
  background-size:
    64px 28px,
    100% 100%,
    100% 100%;
  background-repeat:
    repeat-x,
    no-repeat,
    no-repeat;
  background-position:
    0 0,
    0 0,
    0 0;
  clip-path: polygon(0 10%, 6% 6%, 14% 9%, 24% 5%, 35% 9%, 45% 4%, 56% 8%, 67% 6%, 78% 10%, 89% 6%, 100% 11%, 100% 100%, 0 100%);
  box-shadow:
    inset 0 8px 12px rgba(0, 0, 0, 0.25),
    0 -12px 20px rgba(0, 0, 0, 0.28);
}

.barbed-wire {
  bottom: 34vh;
  height: 90px;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(26, 26, 26, 0.85) 90px 94px, transparent 94px 168px),
    linear-gradient(8deg, transparent 47%, rgba(17, 17, 17, 0.9) 48%, rgba(17, 17, 17, 0.9) 50%, transparent 51%),
    linear-gradient(-7deg, transparent 49%, rgba(17, 17, 17, 0.9) 50%, rgba(17, 17, 17, 0.9) 52%, transparent 53%);
  background-repeat: repeat-x, repeat-x, repeat-x;
  background-size: 100% 100%, 210px 22px, 210px 22px;
  background-position: 0 0, 0 16px, 0 44px;
  opacity: 0.82;
}

.barbed-wire::before,
.barbed-wire::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background: repeating-linear-gradient(90deg,
      transparent 0 14px,
      rgba(18, 18, 18, 0.85) 14px 18px,
      transparent 18px 34px);
  mix-blend-mode: multiply;
}

.barbed-wire::before {
  top: 10px;
  transform: rotate(-6deg);
}

.barbed-wire::after {
  top: 42px;
  transform: rotate(5deg);
}

.mud-foreground {
  bottom: -2vh;
  height: 24vh;
  background-image:
    radial-gradient(circle at 8% 42%, rgba(47, 33, 22, 0.92) 0 9%, transparent 10%),
    radial-gradient(circle at 18% 58%, rgba(42, 29, 19, 0.94) 0 11%, transparent 12%),
    radial-gradient(circle at 33% 44%, rgba(52, 36, 24, 0.9) 0 10%, transparent 11%),
    radial-gradient(circle at 48% 63%, rgba(40, 28, 18, 0.94) 0 12%, transparent 13%),
    radial-gradient(circle at 62% 46%, rgba(53, 37, 25, 0.9) 0 10%, transparent 11%),
    radial-gradient(circle at 78% 58%, rgba(44, 31, 20, 0.92) 0 12%, transparent 13%),
    radial-gradient(circle at 92% 45%, rgba(50, 35, 23, 0.9) 0 9%, transparent 10%),
    repeating-linear-gradient(94deg,
      #3b2a1c 0,
      #3b2a1c 22px,
      #2d2016 22px,
      #2d2016 46px),
    linear-gradient(180deg, #473222 0%, #2a1d13 50%, #1a130d 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  clip-path: polygon(0 14%, 10% 9%, 20% 16%, 30% 11%, 40% 17%, 52% 10%, 64% 18%, 76% 12%, 88% 16%, 100% 10%, 100% 100%, 0 100%);
  box-shadow:
    inset 0 10px 16px rgba(0, 0, 0, 0.32),
    inset 0 -10px 12px rgba(0, 0, 0, 0.35);
}

.hero {
  position: relative;
  margin: 0 0 0.5rem 0;
  border: 2px solid #5d4e3a;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #e8e0cf 0%, #d9cdb5 60%, #cec0a4 100%);
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow:
    0 4px 10px rgba(56, 30, 8, 0.22),
    inset 0 1px 0 rgba(255, 250, 230, 0.55),
    inset 0 -1px 0 rgba(74, 60, 46, 0.18);
  text-align: center;
}

/* inner dashed border (matching tabs) */
.hero::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(93, 78, 58, 0.45);
  border-radius: 7px;
  pointer-events: none;
}

/* paper-grain texture (matching tabs) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 227, 185, 0.04) 0,
      rgba(255, 227, 185, 0.04) 1px,
      transparent 1px,
      transparent 3px);
  mix-blend-mode: multiply;
}

.hero-title {
  min-width: 0;
}

.hero-recruit,
.hero-balance {
  display: none;
}

.hero.has-recruit {
  display: grid;
  grid-template-columns: minmax(128px, 168px) minmax(0, 1fr) minmax(128px, 168px);
  align-items: center;
  gap: 0.8rem;
}

.hero.has-recruit .hero-title {
  grid-column: 2;
  text-align: center;
}

.hero.has-recruit .hero-recruit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  gap: 0.12rem;
  padding: 0.42rem 0.4rem 0.36rem;
  border: 1px dashed rgba(94, 66, 39, 0.45);
  border-radius: 12px;
  background: rgba(252, 245, 231, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero.has-recruit .hero-recruit[hidden] {
  display: none;
}

.hero.has-recruit .hero-balance {
  display: block;
  grid-column: 3;
  min-height: 1px;
}

.hero-recruit-avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(94, 66, 39, 0.58);
  background: #efe2cc;
  box-shadow: 0 6px 14px rgba(52, 33, 16, 0.16);
}

.hero-recruit-name {
  margin: 0.36rem 0 0;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.hero-recruit-class {
  margin: 0.1rem 0 0;
  font-size: 0.69rem;
  line-height: 1.2;
  font-weight: 600;
  color: #5a4b33;
  text-align: center;
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Courier Prime", "Courier New", Courier, monospace;
}

button,
input,
textarea,
select {
  font-family: "Courier Prime", "Courier New", Courier, monospace;
}

h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border-radius: 999px;
  background: var(--paper-strong);
  border: 1px solid #dbc9a5;
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.layout {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.block-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.3rem 0;
}

.block-tab {
  appearance: none;
  position: relative;
  border: 2px solid #5d4e3a;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #e8e0cf 0%, #d9cdb5 60%, #cec0a4 100%);
  color: #3a2e1e;
  padding: 0.65rem 0.5rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow:
    0 4px 10px rgba(56, 30, 8, 0.22),
    inset 0 1px 0 rgba(255, 250, 230, 0.55),
    inset 0 -1px 0 rgba(74, 60, 46, 0.18);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease,
    border-color 200ms ease;
  outline: 2px dashed transparent;
  outline-offset: -5px;
}

/* inner dashed border effect (like flag SVG stroke-dasharray) */
.block-tab::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(93, 78, 58, 0.45);
  border-radius: 7px;
  pointer-events: none;
}

/* subtle paper-grain texture overlay */
.block-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 227, 185, 0.04) 0,
      rgba(255, 227, 185, 0.04) 1px,
      transparent 1px,
      transparent 3px);
  mix-blend-mode: multiply;
}

.block-tab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 8px 18px rgba(56, 30, 8, 0.3),
    inset 0 1px 0 rgba(255, 250, 230, 0.6),
    inset 0 -1px 0 rgba(74, 60, 46, 0.2);
  filter: brightness(1.04);
}

.block-tab:focus-visible {
  outline: 2px solid rgba(236, 186, 107, 0.86);
  outline-offset: 2px;
}

.block-tab.active {
  background:
    linear-gradient(145deg, #f2e4c3 0%, #e4d1a6 50%, #d5c292 100%);
  border-color: #8b6d3f;
  color: #2e2010;
  box-shadow:
    0 4px 18px rgba(219, 193, 138, 0.45),
    0 2px 8px rgba(56, 30, 8, 0.2),
    inset 0 1px 0 rgba(255, 248, 220, 0.7),
    inset 0 -1px 0 rgba(139, 109, 63, 0.2);
  filter: brightness(1.06);
}

.block-tab.active::before {
  border-color: rgba(139, 109, 63, 0.55);
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

#contexto.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#contexto2.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#alistamento.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.enlist-panel {
  border: 1px solid rgba(192, 157, 103, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(23, 18, 13, 0.72), rgba(12, 10, 8, 0.67)),
    repeating-linear-gradient(90deg,
      rgba(255, 222, 166, 0.03) 0,
      rgba(255, 222, 166, 0.03) 10px,
      transparent 10px,
      transparent 24px);
  color: #e9dbc2;
  padding: 1rem;
}

.enlist-header {
  border-bottom: 1px dashed rgba(211, 182, 138, 0.45);
  margin-bottom: 0.72rem;
  padding-bottom: 0.52rem;
}

.enlist-header h2 {
  margin: 0;
}

.enlist-intro {
  margin: 0 0 0.85rem;
  color: #dbc9aa;
  text-align: justify;
}

.enlist-form {
  display: grid;
  gap: 0.55rem;
}

.enlist-form label {
  color: #f1e4cd;
  font-weight: 700;
}

.enlist-form input {
  width: 100%;
  border: 1px solid rgba(206, 173, 125, 0.62);
  border-radius: 10px;
  background: rgba(250, 241, 223, 0.95);
  color: #34281d;
  padding: 0.56rem 0.64rem;
  font-size: 0.92rem;
}

.enlist-form input:focus {
  outline: 2px solid rgba(235, 170, 82, 0.72);
  outline-offset: 1px;
}

.enlist-avatar-guide {
  margin-top: 0.18rem;
  border: 1px solid rgba(197, 163, 116, 0.38);
  border-radius: 12px;
  background: rgba(32, 25, 19, 0.44);
  overflow: hidden;
}

.enlist-avatar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: none;
  border-bottom: 1px solid rgba(197, 163, 116, 0.28);
  background:
    linear-gradient(180deg, rgba(67, 52, 39, 0.74), rgba(46, 36, 28, 0.74)),
    repeating-linear-gradient(0deg,
      rgba(255, 227, 185, 0.04) 0,
      rgba(255, 227, 185, 0.04) 1px,
      transparent 1px,
      transparent 3px);
  color: #f2e4cb;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.enlist-avatar-toggle:hover {
  filter: brightness(1.06);
}

.enlist-avatar-toggle:focus-visible {
  outline: 2px solid rgba(236, 186, 107, 0.84);
  outline-offset: -2px;
}

.enlist-avatar-toggle-label {
  letter-spacing: 0.03em;
}

.enlist-avatar-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 170ms ease;
}

.enlist-avatar-toggle[aria-expanded="false"] .enlist-avatar-toggle-icon {
  transform: rotate(-90deg);
}

.enlist-avatar-panel {
  max-height: 340px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 220ms ease, opacity 170ms ease;
}

.enlist-avatar-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.enlist-avatar-wrap {
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: rgba(35, 27, 20, 0.3);
  padding: 0.52rem;
}

.enlist-avatar-title {
  margin: 0 0 0.46rem;
  color: #f0e2cb;
  font-weight: 700;
}

.enlist-avatar-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.34rem;
  max-height: 232px;
  overflow-y: auto;
  padding-right: 0.14rem;
}

.enlist-avatar-option {
  appearance: none;
  border: 1px solid rgba(186, 156, 115, 0.56);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(43, 36, 30, 0.8), rgba(24, 20, 16, 0.86)),
    repeating-linear-gradient(0deg,
      rgba(255, 231, 194, 0.03) 0,
      rgba(255, 231, 194, 0.03) 1px,
      transparent 1px,
      transparent 3px);
  padding: 0.12rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 221, 171, 0.08);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.enlist-avatar-option:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 178, 103, 0.92);
  filter: brightness(1.03);
}

.enlist-avatar-option:focus-visible {
  outline: 2px solid rgba(228, 178, 103, 0.86);
  outline-offset: 1px;
}

.enlist-avatar-option.is-selected {
  border-color: rgba(233, 182, 104, 0.96);
  box-shadow: 0 0 0 2px rgba(224, 165, 77, 0.33), 0 6px 12px rgba(14, 10, 7, 0.34), inset 0 0 0 1px rgba(255, 226, 182, 0.14);
}

.enlist-avatar-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: cover;
  background: #2b2520;
  filter: saturate(1) contrast(1.16) sepia(0.08) brightness(1.03);
}

.enlist-submit {
  margin-top: 0.2rem;
  border: 1px solid #7f5d3f;
  border-radius: 10px;
  background: linear-gradient(180deg, #a57e56, #8f6a47);
  color: #f8edd7;
  padding: 0.54rem 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.enlist-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.enlist-feedback {
  margin: 0.66rem 0 0;
  min-height: 1.35rem;
  font-weight: 700;
}

.enlist-feedback.is-error {
  color: #f0a8a1;
}

.enlist-feedback.is-success {
  color: #a8e2b0;
}

.enlist-card {
  margin-top: 0.72rem;
  border: 1px solid rgba(150, 157, 121, 0.82);
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg,
      rgba(236, 225, 197, 0.06) 0,
      rgba(236, 225, 197, 0.06) 2px,
      transparent 2px,
      transparent 11px),
    linear-gradient(155deg, #505842, #3e4534 55%, #363d2d);
  color: #f0e6cf;
  padding: 0.72rem 0.74rem 0.7rem;
  box-shadow: 0 10px 16px rgba(10, 8, 6, 0.35), inset 0 0 0 1px rgba(244, 224, 181, 0.07);
  position: relative;
  overflow: hidden;
}

.enlist-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(120deg,
      rgba(255, 242, 210, 0.08) 0%,
      rgba(255, 242, 210, 0.02) 38%,
      rgba(0, 0, 0, 0.12) 100%);
}

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

.enlist-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
  border-bottom: 1px solid rgba(221, 201, 160, 0.25);
  padding-bottom: 0.42rem;
}

.enlist-card-kicker {
  margin: 0;
  color: #e8dbbd;
  letter-spacing: 0.07em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.enlist-card-stamp {
  border: 1px solid rgba(230, 202, 149, 0.56);
  border-radius: 999px;
  background: rgba(48, 56, 39, 0.88);
  color: #f5e8c8;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.4rem;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 235, 192, 0.12);
}

.enlist-card-shell {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 0.72rem;
  margin-top: 0.56rem;
  align-items: start;
}

.enlist-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(210, 191, 154, 0.46);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(32, 37, 27, 0.9), rgba(24, 28, 20, 0.9)),
    repeating-linear-gradient(0deg,
      rgba(245, 231, 198, 0.03) 0,
      rgba(245, 231, 198, 0.03) 1px,
      transparent 1px,
      transparent 4px);
  padding: 0.36rem;
}

.enlist-card-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  object-fit: cover;
  background: #24201a;
  border: 2px solid rgba(194, 173, 137, 0.65);
  box-shadow: 0 4px 8px rgba(12, 9, 6, 0.34), inset 0 0 0 1px rgba(246, 228, 187, 0.14);
  filter: saturate(1) contrast(1.16) sepia(0.1) brightness(1.03);
}

.enlist-card-photo-tag {
  margin: 0.28rem 0 0;
  width: 100%;
  max-width: 100%;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  color: #ddd2b5;
}

.enlist-card-body {
  min-width: 0;
}

.enlist-card-body h3 {
  margin: 0;
  color: #f8edd0;
  font-size: 1rem;
  line-height: 1.26;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.enlist-card-line {
  margin: 0;
  border-top: 1px dashed rgba(219, 199, 161, 0.26);
  padding-top: 0.29rem;
  margin-top: 0.29rem;
  display: flex;
  align-items: baseline;
  gap: 0.34rem;
  font-size: 0.84rem;
}

.enlist-card-line strong {
  color: #eadcbe;
  min-width: 7.7rem;
}

.enlist-card-line span {
  color: #fbf5e4;
  font-weight: 700;
}

.enlist-card-authline {
  margin: 0.36rem 0 0;
  padding-top: 0.32rem;
  border-top: 1px solid rgba(223, 200, 154, 0.3);
  color: #d8caab;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.context2-intro {
  border: 1px solid rgba(192, 157, 103, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(23, 18, 13, 0.72), rgba(12, 10, 8, 0.67)),
    repeating-linear-gradient(90deg,
      rgba(255, 222, 166, 0.03) 0,
      rgba(255, 222, 166, 0.03) 10px,
      transparent 10px,
      transparent 24px);
  color: #e9dbc2;
  padding: 0.95rem 1rem;
}

.context2-intro p {
  margin: 0;
  text-align: justify;
  line-height: 1.6;
}

.context2-intro p+p {
  margin-top: 0.72rem;
}

.intel-board {
  margin-top: 0.9rem;
}

.intel-board-tip {
  margin: 0 0 0.6rem;
  color: #d9c5a0;
  text-align: justify;
}

.intel-board-frame {
  border: 14px solid #5f452f;
  border-radius: 12px;
  padding: 1rem;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 223, 171, 0.12), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(255, 225, 178, 0.08), transparent 24%),
    repeating-linear-gradient(24deg,
      rgba(128, 95, 60, 0.22) 0 9px,
      rgba(95, 71, 47, 0.2) 9px 18px),
    linear-gradient(150deg, #6f5236, #5a412b);
  box-shadow:
    inset 0 0 0 2px rgba(27, 19, 13, 0.35),
    inset 0 0 36px rgba(31, 22, 14, 0.4),
    0 20px 30px rgba(9, 7, 5, 0.36);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.intel-photo-card {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  perspective: 1400px;
  transform-style: preserve-3d;
  transition: transform 180ms ease, filter 180ms ease;
  position: relative;
}

.intel-photo-card:nth-child(1) {
  transform: rotate(-2deg);
}

.intel-photo-card:nth-child(2) {
  transform: rotate(1.5deg);
}

.intel-photo-card:nth-child(3) {
  transform: rotate(-1.2deg);
}

.intel-photo-card:nth-child(4) {
  transform: rotate(1deg);
}

.intel-photo-card:hover {
  transform: translateY(-3px) rotate(0);
  filter: brightness(1.02);
}

.intel-photo-card:focus-visible {
  outline: 2px solid rgba(228, 164, 63, 0.95);
  outline-offset: 4px;
}

.intel-photo-card.is-flipped {
  transform: translateY(-4px) rotate(0);
}

.intel-photo-flip {
  display: block;
  position: relative;
  width: 100%;
  min-height: 330px;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.intel-photo-card.is-flipped .intel-photo-flip {
  transform: rotateY(180deg);
}

.intel-photo-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    0 8px 12px rgba(23, 16, 11, 0.36),
    inset 0 0 0 1px rgba(255, 248, 226, 0.5);
}

.intel-photo-front {
  background: linear-gradient(165deg, #efe2c3, #dfd0ac);
  padding: 0.45rem 0.5rem 0.62rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.intel-photo-back {
  background:
    repeating-linear-gradient(0deg,
      rgba(206, 186, 149, 0.25) 0,
      rgba(206, 186, 149, 0.25) 1px,
      rgba(241, 230, 205, 0.96) 1px,
      rgba(241, 230, 205, 0.96) 31px),
    linear-gradient(160deg, #efe3c3, #e2d2ad);
  transform: rotateY(180deg);
  padding: 0.65rem 0.66rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.42rem;
}

.intel-photo-card.is-flipped .intel-photo-back {
  box-shadow:
    0 14px 16px rgba(23, 16, 11, 0.44),
    0 0 0 3px rgba(226, 171, 77, 0.25),
    inset 0 0 0 1px rgba(255, 248, 226, 0.5);
}

.intel-photo-tag {
  display: inline-block;
  margin-bottom: 0;
  border-radius: 2px;
  padding: 0.08rem 0.38rem;
  background: rgba(241, 231, 207, 0.88);
  color: #3b2f21;
  font-weight: 700;
  font-size: 0.94rem;
}

.intel-photo-shot {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 2px;
  border: 1px solid rgba(74, 56, 38, 0.56);
  background-image:
    linear-gradient(rgba(67, 48, 30, 0.24), rgba(67, 48, 30, 0.24)),
    url("trincheiras_ww1_transparencia_50.png");
  background-size: cover;
  filter: sepia(0.88) contrast(1.05) brightness(0.78);
}

.photo-causas {
  background-image:
    linear-gradient(rgba(67, 48, 30, 0.24), rgba(67, 48, 30, 0.24)),
    url("https://cdn.britannica.com/48/71448-050-4C5EB186/Big-Four-David-Lloyd-George-architects-Italy.jpg");
  background-position: 50% 35%;
}

.photo-pontos {
  background-image:
    linear-gradient(rgba(67, 48, 30, 0.24), rgba(67, 48, 30, 0.24)),
    url("assets/britannica-tratado-versailles.jpg");
  background-position: 50% 50%;
}

.photo-consequencias {
  background-image:
    linear-gradient(rgba(67, 48, 30, 0.24), rgba(67, 48, 30, 0.24)),
    url("assets/britannica-consequencias-versailles.jpg");
  background-position: 50% 44%;
}

.photo-reacoes {
  background-image:
    linear-gradient(rgba(67, 48, 30, 0.24), rgba(67, 48, 30, 0.24)),
    url("assets/britannica-reacoes-versailles.jpg");
  background-position: 50% 42%;
}

.intel-photo-foot {
  display: block;
  margin-top: 0;
  color: #3f301f;
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.15;
}

.intel-back-title {
  color: #463625;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid rgba(126, 96, 61, 0.36);
  padding-bottom: 0.3rem;
}

.intel-back-text {
  color: #52402d;
  font-size: 0.89rem;
  line-height: 1.45;
  text-align: justify;
}

.block-panel {
  display: none;
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}

.card h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.typewriter-station {
  margin-bottom: 1rem;
  position: relative;
  --typewriter-scale: 0.52;
}

.typewriter-paper-wrap {
  max-width: 690px;
  margin: 0 auto calc(-8px - (1 - var(--typewriter-scale)) * 95px);
  padding: 0 0.8rem;
  position: relative;
  z-index: 3;
  transform: scale(var(--typewriter-scale));
  transform-origin: top center;
}

.typewriter-paper-sheet {
  border: 2px solid #ccb89a;
  border-radius: 7px 7px 4px 4px;
  background:
    repeating-linear-gradient(0deg,
      rgba(194, 178, 146, 0.2) 0,
      rgba(194, 178, 146, 0.2) 1px,
      rgba(246, 239, 220, 0.95) 1px,
      rgba(246, 239, 220, 0.95) 32px),
    linear-gradient(165deg, #f4ecd8, #efe2c4);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 247, 230, 0.45);
  padding: 0.75rem 0.85rem 0.95rem;
  transform: translateY(8px) rotate(-0.4deg);
}

.typewriter-paper-sheet .typewriter-title {
  text-align: center;
  min-height: 1.45em;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.typewriter-machine {
  max-width: 760px;
  height: 210px;
  margin: 0 auto;
  position: relative;
  --machine-scale: var(--typewriter-scale);
  --machine-height: 210px;
  transform: scale(var(--machine-scale));
  transform-origin: top center;
  margin-bottom: calc((var(--machine-scale) - 1) * var(--machine-height));
  border: 3px solid #181614;
  border-radius: 24px 24px 20px 20px;
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at 18% 86%, rgba(0, 0, 0, 0.42), transparent 48%),
    radial-gradient(circle at 82% 86%, rgba(0, 0, 0, 0.42), transparent 48%),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 11px),
    linear-gradient(180deg, #282522 0%, #1b1917 44%, #11100f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -18px 24px rgba(0, 0, 0, 0.38),
    0 18px 32px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.typewriter-machine::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(170, 141, 98, 0.28);
  filter: blur(0.2px);
}

.typewriter-machine::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60px;
  width: 88%;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.machine-carriage {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12px;
  height: 26px;
  border: 2px solid #151412;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #3b3732, #1d1b19);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.45);
}

.carriage-knob {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #10100f;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(180deg, #302d2a, #171513);
  transform: translateY(-50%);
}

.knob-left {
  left: -14px;
}

.knob-right {
  right: -14px;
}

.paper-guide {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 7px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #706756, #3f392f);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.carriage-lever {
  position: absolute;
  right: -10px;
  top: 3px;
  width: 52px;
  height: 6px;
  border-radius: 999px;
  transform: rotate(16deg);
  transform-origin: left center;
  background: linear-gradient(180deg, #9b8a69, #5f543f);
  border: 1px solid rgba(27, 24, 21, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.carriage-lever::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(180deg, #776952, #423a2e);
  border: 1px solid rgba(21, 19, 17, 0.85);
}

.machine-side {
  position: absolute;
  top: 38px;
  width: 22px;
  height: 124px;
  border-radius: 10px;
  border: 1px solid rgba(13, 12, 11, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #2e2a26, #161412);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 10px rgba(0, 0, 0, 0.46);
}

.side-left {
  left: 6%;
}

.side-right {
  right: 6%;
}

.machine-chassis {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 44px;
  height: 74px;
  border-radius: 16px 16px 12px 12px;
  border: 2px solid rgba(13, 12, 11, 0.95);
  background:
    radial-gradient(circle at 50% -40%, rgba(255, 255, 255, 0.08), transparent 56%),
    linear-gradient(180deg, #36322d 0%, #211f1c 58%, #171513 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 12px rgba(0, 0, 0, 0.35),
    0 6px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ribbon-spool {
  position: absolute;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(188, 156, 105, 0.62);
  background:
    radial-gradient(circle at center, #1a1816 0 3px, #463d32 4px 8px, #1e1b18 9px 10px, transparent 11px),
    repeating-conic-gradient(from 0deg,
      rgba(173, 141, 93, 0.72) 0deg 12deg,
      rgba(58, 52, 44, 0.92) 12deg 24deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.spool-left {
  left: 16px;
}

.spool-right {
  right: 16px;
}

.ink-ribbon {
  position: absolute;
  left: 52px;
  right: 52px;
  top: 14px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(7, 7, 7, 0.92);
  background: linear-gradient(90deg, #171615 0%, #151413 47%, #5f201b 53%, #6e2a24 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.ink-ribbon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 3px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, #9f8a62, #564938);
}

.typebars {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4px;
  height: 34px;
  border-radius: 50% 50% 14px 14px;
  background:
    repeating-linear-gradient(90deg,
      rgba(18, 17, 16, 0.96) 0,
      rgba(18, 17, 16, 0.96) 6px,
      rgba(52, 47, 42, 0.96) 6px,
      rgba(52, 47, 42, 0.96) 10px);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}

.typebars::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -10px;
  height: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(122, 106, 77, 0.85), rgba(45, 39, 32, 0.96));
  border: 1px solid rgba(15, 13, 12, 0.9);
}

.machine-brand {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  padding: 0.14rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(185, 149, 90, 0.66);
  color: rgba(218, 185, 126, 0.88);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(56, 50, 44, 0.94), rgba(29, 26, 23, 0.96));
}

.machine-keybed {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  height: 90px;
  border: 2px solid rgba(8, 8, 8, 0.95);
  border-radius: 16px 16px 12px 12px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.07), transparent 45%),
    linear-gradient(180deg, #25221f, #141311);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -8px 10px rgba(0, 0, 0, 0.4),
    0 8px 12px rgba(0, 0, 0, 0.45);
  transform: perspective(500px) rotateX(14deg);
  transform-origin: center top;
}

.keys-row {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}

.row-1 {
  top: 11px;
}

.row-2 {
  top: 31px;
  left: 18px;
  right: 18px;
}

.row-3 {
  top: 51px;
  left: 30px;
  right: 30px;
}

.key {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.98);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), transparent 35%),
    radial-gradient(circle at 50% 42%, #1f1c19 0 40%, #121110 41% 62%, #030303 63% 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 3px rgba(0, 0, 0, 0.56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.key::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 2px;
  height: 6px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8f7a58, #332b23);
  border-radius: 1px;
}

.key b {
  font-size: 6px;
  color: #d8ccb4;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  transform: translateY(-0.5px);
}

.spacebar {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 9px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(4, 4, 4, 0.94);
  background: linear-gradient(180deg, #4a443d, #201e1b);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 2px 3px rgba(0, 0, 0, 0.46);
}

.spacebar::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(215, 182, 124, 0.22);
}

.machine-feet {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 2px;
  height: 10px;
}

.machine-feet::before,
.machine-feet::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #25211d, #0f0e0d);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.52);
}

.machine-feet::before {
  left: 0;
}

.machine-feet::after {
  right: 0;
}

.typewriter-title {
  min-height: 1.35em;
}

.typewriter-title.is-typing::after,
.typewriter-title.is-done::after {
  content: "|";
  margin-left: 0.06rem;
  color: var(--accent);
}

.typewriter-title.is-typing::after {
  animation: typewriterCursor 680ms steps(1, end) infinite;
}

.typewriter-title.is-done::after {
  opacity: 0;
}

.time-badge {
  font-size: 0.8rem;
  background: #fff2cf;
  color: #624500;
  border: 1px solid #e3c36c;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

ul,
ol {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.45rem;
}

.note {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.2rem;
  margin-top: 0.35rem;
  padding: 2rem 1.6rem 2.3rem;
  margin-bottom: 2.2rem;
  border-radius: 20px;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 1400px;
  min-height: 500px;
  border: 1px solid rgba(165, 125, 78, 0.5);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 211, 141, 0.15), transparent 40%),
    radial-gradient(circle at 82% 84%, rgba(28, 20, 14, 0.22), transparent 42%),
    linear-gradient(175deg, rgba(0, 0, 0, 0.06), transparent 38%),
    repeating-linear-gradient(90deg,
      rgba(80, 54, 34, 0.9) 0,
      rgba(80, 54, 34, 0.9) 9px,
      rgba(99, 67, 42, 0.92) 9px,
      rgba(99, 67, 42, 0.92) 20px),
    linear-gradient(180deg, #59402c, #3b291c);
  box-shadow:
    inset 0 0 0 1px rgba(241, 202, 143, 0.16),
    inset 0 -16px 24px rgba(0, 0, 0, 0.2),
    0 22px 28px rgba(11, 6, 3, 0.45);
}

.dossier-grid::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.85rem;
  bottom: 0.85rem;
  border-radius: 12px;
  background:
    repeating-linear-gradient(0deg,
      rgba(241, 216, 177, 0.06) 0,
      rgba(241, 216, 177, 0.06) 1px,
      transparent 1px,
      transparent 26px),
    repeating-linear-gradient(90deg,
      rgba(241, 216, 177, 0.05) 0,
      rgba(241, 216, 177, 0.05) 1px,
      transparent 1px,
      transparent 26px);
  opacity: 0.58;
  pointer-events: none;
}

.dossier-grid::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -46px;
  height: 50px;
  border-radius: 0 0 16px 16px;
  background:
    repeating-linear-gradient(90deg,
      rgba(57, 37, 24, 0.98) 0,
      rgba(57, 37, 24, 0.98) 8px,
      rgba(70, 45, 29, 0.98) 8px,
      rgba(70, 45, 29, 0.98) 18px),
    linear-gradient(180deg, #2e1f14 0%, #170f09 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 229, 182, 0.2),
    0 18px 22px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
  pointer-events: none;
}

.dossier-grid>.typewriter-station {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  justify-self: center;
  margin: 0 auto 0.2rem;
  z-index: 6;
}

.dossier {
  --dossier-open-height: 700px;
  --dossier-tilt: 0deg;
  --dossier-y: 0px;
  --dossier-x: 0px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  justify-self: center;
  border: 3px solid #8a744f;
  border-radius: 0 14px 14px 14px;
  background: linear-gradient(165deg, #be9f72, #b18f61);
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(226, 196, 146, 0.24);
  max-height: 174px;
  overflow: hidden;
  transform: translate(var(--dossier-x), var(--dossier-y)) rotate(var(--dossier-tilt));
  transition: max-height 320ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.dossier:nth-of-type(1) {
  justify-self: start;
  --dossier-tilt: -4deg;
  --dossier-y: 30px;
  --dossier-x: -16px;
  z-index: 2;
}

.dossier:nth-of-type(2) {
  --dossier-tilt: 2deg;
  --dossier-y: 8px;
  --dossier-x: 0px;
  z-index: 3;
}

.dossier:nth-of-type(3) {
  justify-self: end;
  --dossier-tilt: -1.8deg;
  --dossier-y: 36px;
  --dossier-x: 14px;
  z-index: 4;
}

.dossier::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 20px;
  width: 58%;
  height: 34px;
  border: 3px solid #8a744f;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(165deg, #cab086, #b69768);
  box-shadow: inset 0 0 0 1px rgba(230, 202, 154, 0.28);
}

.dossier:hover {
  transform: translate(var(--dossier-x), calc(var(--dossier-y) - 3px)) rotate(var(--dossier-tilt));
}

.dossier.is-open {
  max-height: var(--dossier-open-height);
  transform: translate(var(--dossier-x), calc(var(--dossier-y) - 4px)) rotate(var(--dossier-tilt));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.38);
  z-index: 9;
}

.dossier-tab {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  height: 174px;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.folder-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.2deg);
  display: inline-block;
  width: 70%;
  text-align: center;
  padding: 0.34rem 0.58rem;
  border: 2px solid #9a825e;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg,
      rgba(146, 125, 84, 0.12) 0,
      rgba(146, 125, 84, 0.12) 1px,
      rgba(239, 227, 198, 0.9) 1px,
      rgba(239, 227, 198, 0.9) 10px),
    linear-gradient(165deg, #ecdcbf, #dbc49d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 230, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  color: #4c391e;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 4;
}

.folder-label::before {
  content: "";
}

.folder-stamp {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 6px solid rgba(109, 88, 58, 0.4);
  color: rgba(109, 88, 58, 0.58);
  padding: 0.28rem 1.2rem;
  font-size: clamp(1.12rem, 1.95vw, 1.6rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}

.dossier-paper {
  position: relative;
  margin: 0 0.55rem 0.55rem;
  border: 2px solid #d3cab4;
  border-radius: 10px;
  min-height: 285px;
  padding: 0.86rem 0.84rem 1.12rem;
  background:
    repeating-linear-gradient(0deg,
      rgba(194, 178, 146, 0.18) 0,
      rgba(194, 178, 146, 0.18) 1px,
      rgba(246, 239, 220, 0.95) 1px,
      rgba(246, 239, 220, 0.95) 38px),
    linear-gradient(145deg, #f6efd9 0%, #f1e7cd 100%);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(108%);
  opacity: 0;
  transition: transform 320ms ease, opacity 220ms ease;
}

.dossier.is-open .dossier-paper {
  transform: translateY(0);
  opacity: 1;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-title h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
}

.doc-alert {
  color: #9b4746;
  font-size: 1.25rem;
  line-height: 1;
}

.doc-badge {
  border: 3px solid #b56f6d;
  color: #b56f6d;
  border-radius: 10px;
  padding: 0.12rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.doc-rule {
  height: 3px;
  margin: 0.52rem 0 0.72rem;
  background: #d5c8aa;
}

.dossier-paper p {
  margin: 0;
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  line-height: 1.5;
  text-align: justify;
}

.doc-seal {
  position: absolute;
  right: 1.85rem;
  bottom: 1.1rem;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 5px solid rgba(191, 115, 109, 0.45);
  color: rgba(191, 115, 109, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.38rem;
  font-weight: 700;
  transform: rotate(-14deg);
  pointer-events: none;
}

#clausulas.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#mapa.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.map-panel {
  border-radius: 24px;
  padding: 1.35rem 1.25rem 1.15rem;
  border: 1px solid rgba(199, 164, 116, 0.24);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 197, 124, 0.06), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(165, 104, 67, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(31, 27, 24, 0.9), rgba(18, 16, 14, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(251, 221, 176, 0.06),
    0 22px 36px rgba(8, 6, 5, 0.52);
}

.map-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-header-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  color: #d4a853;
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.3));
}

.map-header-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-header h2 {
  margin: 0;
  color: #eee6d0;
}

.map-header-sub {
  margin: 0.15rem 0 0;
  color: #a89678;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.map-intro {
  margin: 0.88rem 0 0.94rem;
  color: #c8b79a;
  text-align: justify;
}

.map-region-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.map-region-btn {
  appearance: none;
  border: 2px solid rgba(91, 71, 52, 0.8);
  background: rgba(51, 44, 38, 0.9);
  color: #d4c6ad;
  border-radius: 14px;
  padding: 0.48rem 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.map-region-btn:hover {
  transform: translateY(-1px);
}

.map-region-btn.active {
  border-color: #d0b17f;
  background: #8f6b45;
  color: #f6ebd6;
}

.map-region-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.map-region-btn.active .map-region-count {
  background: rgba(255, 255, 255, 0.2);
}

.map-canvas-wrap {
  border-radius: 18px;
  border: 2px solid rgba(182, 155, 117, 0.38);
  overflow: hidden;
  background: #1a1a2e;
}

#strategic-map {
  width: 100%;
  height: min(62vh, 640px);
  min-height: 420px;
}

/* ── Map Legend ── */

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(182, 155, 117, 0.2);
  background: rgba(40, 35, 30, 0.7);
}

.map-legend-item {
  appearance: none;
  border: 1px solid rgba(182, 155, 117, 0.25);
  background: rgba(50, 44, 38, 0.8);
  border-radius: 10px;
  padding: 0.38rem 0.72rem 0.38rem 0.52rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  color: #d4c6ad;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.map-legend-item:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 168, 83, 0.45);
  background: rgba(70, 58, 44, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-legend-item.is-active {
  border-color: rgba(212, 168, 83, 0.6);
  background: rgba(143, 107, 69, 0.6);
  color: #f6ebd6;
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.15);
}

.map-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-region-note {
  margin: 0.72rem 0 0;
  color: #cdbb9d;
  text-align: justify;
}

/* ── Leaflet Dark Overrides ── */

.leaflet-container {
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  background: #1a1a2e;
}

.leaflet-control-zoom a {
  background: rgba(40, 35, 30, 0.92);
  color: #d4c6ad;
  border-color: rgba(182, 155, 117, 0.35);
}

.leaflet-control-zoom a:hover {
  background: rgba(143, 107, 69, 0.9);
  color: #f6ebd6;
}

.leaflet-control-attribution {
  background: rgba(20, 18, 16, 0.75) !important;
  color: #8a7d6c !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #b09a7a !important;
}

/* ── Enhanced Popups ── */

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  border: 1px solid rgba(182, 155, 117, 0.5);
  background:
    linear-gradient(180deg, #f6efd9 0%, #eee3c8 100%);
  box-shadow:
    0 12px 28px rgba(24, 18, 13, 0.4),
    inset 0 0 0 1px rgba(255, 248, 230, 0.3);
  padding: 0;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip {
  background: #eee3c8;
  border: 1px solid rgba(182, 155, 117, 0.3);
}

.map-info-card {
  min-width: 260px;
  max-width: 320px;
  position: relative;
}

.map-info-accent {
  height: 5px;
  width: 100%;
  border-radius: 0;
}

.map-info-body {
  padding: 0.85rem 1rem 0.95rem;
}

.map-info-card h4 {
  margin: 0 0 0.45rem;
  color: #3f2d22;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-info-pin {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9b6842;
}

.map-info-card p {
  margin: 0 0 0.35rem;
  color: #4b3a2c;
  text-align: left;
  line-height: 1.45;
  font-size: 0.88rem;
}

.map-info-card p:last-child {
  margin-bottom: 0;
}

.map-info-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8b490, transparent);
  margin: 0.5rem 0;
  border: none;
}

.map-info-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.35rem 0;
  color: #5a4838;
  font-size: 0.82rem;
  line-height: 1.35;
}

.map-info-detail-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.map-info-card strong {
  color: #5f4a2f;
  font-weight: 700;
}

.map-fallback {
  margin: 0;
  padding: 1rem;
  color: #2e251c;
  background: #efe7d4;
}

.clause-layout {
  display: grid;
  grid-template-columns: minmax(270px, 33%) 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(196, 167, 126, 0.45);
  box-shadow: 0 18px 34px rgba(11, 8, 6, 0.5);
}

.clause-index {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 204, 130, 0.1), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(182, 111, 72, 0.12), transparent 34%),
    linear-gradient(180deg, #1e1b18 0%, #11100f 100%);
  padding: 1.4rem 1rem 1.2rem;
  border-right: 1px solid rgba(196, 167, 126, 0.2);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.clause-index-title {
  margin: 0 0 0.2rem;
  color: #b19e83;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.clause-item {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #eee1cb;
  text-align: left;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  position: relative;
  display: grid;
  gap: 0.2rem;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.clause-item:hover {
  transform: translateX(2px);
  background: rgba(178, 137, 87, 0.12);
  border-color: rgba(205, 167, 119, 0.22);
}

.clause-item.active {
  background: linear-gradient(180deg, rgba(161, 126, 85, 0.85), rgba(136, 103, 69, 0.86));
  border-color: rgba(214, 183, 140, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(246, 223, 186, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.28);
}

.clause-item-number {
  color: #f2ca3a;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

.clause-item-title {
  display: block;
  padding-right: 1.2rem;
  line-height: 1.25;
  font-size: 0.98rem;
  font-weight: 700;
}

.clause-item-arrow {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(234, 188, 113, 0.7);
}

.clause-document {
  background:
    repeating-linear-gradient(0deg,
      rgba(205, 186, 152, 0.22) 0,
      rgba(205, 186, 152, 0.22) 1px,
      rgba(232, 222, 198, 0.97) 1px,
      rgba(232, 222, 198, 0.97) 39px),
    linear-gradient(180deg, #eadfc8 0%, #e1d5be 100%);
  padding: 1.4rem 1.5rem 1.55rem;
}

.clause-document-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.clause-document-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 2px solid #a8c2df;
  background: #d8e7f8;
  color: #2a3340;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.clause-document-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.clause-document-number {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 700;
  color: #4a392d;
  line-height: 1.05;
}

.clause-document-title {
  margin: 0.18rem 0 0;
  font-size: clamp(1.12rem, 2vw, 1.95rem);
  color: #5a4538;
}

.clause-document-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d7250;
  font-weight: 700;
}

.clause-document-quote {
  margin: 0.86rem 0 0;
  border-left: 6px solid #b04a49;
  padding: 0.08rem 0 0.08rem 1rem;
  color: #443126;
  font-size: clamp(1.05rem, 2vw, 1.9rem);
  line-height: 1.42;
  font-style: italic;
}

.clause-document-impact {
  margin-top: 1.25rem;
  border: 2px solid #cab89c;
  border-radius: 8px;
  background: rgba(244, 239, 223, 0.82);
  padding: 0.86rem 0.9rem 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 238, 0.42);
}

.clause-document-impact h4 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4b684d;
}

.clause-document-impact p {
  margin: 0.55rem 0 0;
  color: #47382e;
  line-height: 1.52;
  font-size: clamp(0.98rem, 1.55vw, 1.25rem);
  text-align: justify;
}

#participantes.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.interests-panel {
  border-radius: 28px;
  padding: 1.9rem 1.85rem 1.3rem;
  border: 1px solid rgba(199, 164, 116, 0.18);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 197, 124, 0.06), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(165, 104, 67, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(31, 27, 24, 0.9), rgba(18, 16, 14, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(251, 221, 176, 0.06),
    0 22px 36px rgba(8, 6, 5, 0.52);
}

.interests-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.interests-mark {
  color: #f0a42c;
  font-size: 1.55rem;
  line-height: 1;
}

.interests-header h2 {
  margin: 0;
  color: #eee6d0;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-family: "Special Elite", "Courier Prime", "Courier New", Courier, monospace;
}

.interests-subtitle {
  margin: 1.15rem 0 1.4rem;
  color: #b8ab93;
  font-size: 0.86rem;
  line-height: 1.32;
  max-width: none;
  width: 100%;
  text-align: justify;
}

.flag-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.45rem;
  align-items: start;
}

.flag-card {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.flag-card:hover {
  transform: translateY(-3px) scale(1.04);
}

.flag-card.active {
  filter: brightness(1.03);
}

.flag-sticker {
  display: block;
  width: min(140px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  transition: filter 180ms ease, transform 180ms ease;
}

.flag-card:hover .flag-sticker {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.flag-card.active .flag-sticker {
  filter: drop-shadow(0 4px 18px rgba(219, 193, 138, 0.5)) brightness(1.08);
  transform: scale(1.06);
}

.flag-sticker svg {
  width: 100%;
  height: auto;
  display: block;
}

.flag-country-name {
  display: block;
  color: #c9b998;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: color 160ms ease;
}

.flag-card:hover .flag-country-name {
  color: #e4d5b6;
}

.flag-card.active .flag-country-name {
  color: #f0deb7;
}

.interests-divider {
  margin-top: 1.28rem;
  height: 0;
  border-top: 4px dashed rgba(128, 103, 74, 0.36);
}

.interest-result {
  margin-top: 1.1rem;
}

.interest-result-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.interest-result h3 {
  margin: 0;
  color: #e4d5b6;
  font-size: clamp(1.12rem, 1.95vw, 1.54rem);
}

.interest-leader {
  margin: 0.2rem 0 0;
  color: #d0c4aa;
  font-weight: 700;
  font-size: 0.92rem !important;
}

.interest-role {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.18rem 0.6rem;
  background: rgba(219, 193, 138, 0.15);
  border: 1px solid rgba(219, 193, 138, 0.35);
  border-radius: 999px;
  color: #dbc18a;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interest-description {
  margin: 0.5rem 0 0;
  color: #d2c2a6;
  line-height: 1.52;
  max-width: none;
  width: 100%;
  text-align: justify;
}

.interest-objectives {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(42, 49, 47, 0.6);
  border: 1px solid rgba(199, 164, 116, 0.18);
  border-radius: 12px;
}

.interest-objectives h4 {
  margin: 0 0 0.5rem;
  color: #d0b17f;
  font-size: 0.82rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.interest-objectives ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
  list-style: none;
}

.interest-objectives li {
  position: relative;
  padding: 0.3rem 0;
  color: #c8baa0;
  line-height: 1.45;
}

.interest-objectives li::before {
  content: "▸";
  position: absolute;
  left: -1.1rem;
  color: #dbc18a;
  font-weight: 700;
}

.interest-quote {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #8f6b45;
  background: rgba(143, 107, 69, 0.12);
  border-radius: 0 8px 8px 0;
  color: #c9b998;
  font-style: italic;
  line-height: 1.5;
}

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

/* Padrao unico para todos os titulos do site */
h1,
h2,
h3,
.clause-document-number,
.clause-document-title,
.clause-item-number {
  font-size: 16px !important;
  line-height: 1.3;
}

/* Padrao para textos informativos */
p,
li,
td,
th,
summary,
blockquote,
.kicker,
.subtitle,
.interests-subtitle,
.clause-item-title,
.clause-document-label {
  font-size: 14px !important;
  line-height: 1.45;
}

/* Titulo principal do site */
.hero h1 {
  font-size: 20px !important;
}

.intro {
  margin-top: 0;
  color: var(--ink-soft);
}

.delegation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.delegation-card {
  border: 1px solid #d6c3a0;
  border-radius: 12px;
  background: #fffaf1;
  text-align: left;
  padding: 0.72rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.delegation-card h3 {
  margin: 0 0 0.3rem;
}

.delegation-card p {
  margin: 0;
  color: var(--ink-soft);
}

.delegation-card:hover,
.delegation-card.active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(56, 30, 8, 0.1);
  border-color: #b86756;
}

.delegation-details {
  margin-top: 0.7rem;
  border: 1px dashed #cfb88f;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fffefb;
}

.delegation-details h3 {
  margin: 0 0 0.4rem;
}

.delegation-details p {
  margin: 0;
}

.steps {
  margin-top: 0.85rem;
  background: #fff5df;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 0.7rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
}

.texto-base {
  background: #f9f6ee;
  border-left: 4px solid var(--sea);
  border-radius: 10px;
  padding: 0.68rem;
}

.quiz-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

details {
  border: 1px solid #dfcfb3;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: #fffdf8;
}

summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
}

details p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6f4f1e;
  background: #ffefc9;
  border: 1px solid #e6ca88;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-right: 0.35rem;
}

#questoes.card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.war-room {
  border-radius: 22px;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(199, 164, 116, 0.22);
  background:
    radial-gradient(circle at 15% 14%, rgba(255, 197, 124, 0.06), transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(165, 104, 67, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(31, 27, 24, 0.9), rgba(18, 16, 14, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(251, 221, 176, 0.06),
    0 22px 34px rgba(8, 6, 5, 0.5);
}

.war-room-brief {
  margin: 0 0 0.85rem;
  color: #d6c8ac;
}

.war-room-brief strong {
  color: #f1a629;
}

.war-score-panel {
  margin: 0 0 1.2rem;
  padding: 0.6rem 1.2rem;
  background: rgba(42, 49, 47, 0.7);
  border: 1px solid rgba(199, 164, 116, 0.22);
  border-radius: 8px;
  color: #f0e6d1;
  font-size: 1.1rem;
  display: inline-block;
}

.war-score-panel strong {
  color: #f1a629;
}

.war-room-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 1rem;
  border: 1px solid rgba(57, 72, 68, 0.7);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(42, 49, 47, 0.7);
}

.war-cabinet {
  border-radius: 12px;
  border: 1px solid rgba(67, 73, 70, 0.9);
  background: linear-gradient(180deg, rgba(83, 89, 87, 0.96), rgba(61, 66, 64, 0.98));
  overflow: hidden;
}

.war-cabinet-head {
  margin: 0;
  padding: 0.78rem 0.8rem;
  text-align: center;
  letter-spacing: 0.11em;
  color: #aab1ad;
  font-weight: 700;
  background: rgba(77, 84, 82, 0.96);
  border-bottom: 1px solid rgba(35, 39, 37, 0.75);
}

.war-drawers {
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem;
  max-height: 610px;
  overflow-y: auto;
}

.war-drawer {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(45, 51, 49, 0.9);
  padding: 0.65rem 0.7rem 0.65rem 3.1rem;
  background: rgba(100, 108, 105, 0.84);
  box-shadow: 0 4px 10px rgba(14, 17, 16, 0.28);
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.war-drawer::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1.7rem;
  height: 0.66rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #1d2222;
  box-shadow: inset 0 0 0 1px rgba(65, 72, 70, 0.7);
}

.war-drawer::after {
  content: "";
  position: absolute;
  left: 1.08rem;
  top: 50%;
  width: 1.2rem;
  height: 0.16rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(95, 106, 102, 0.86);
}

.war-drawer.is-hover {
  border-color: #d8c296;
  transform: translateY(-1px);
}

.war-drawer.is-correct {
  border-color: #9acb8e;
  background: rgba(109, 133, 101, 0.86);
}

.war-drawer.is-wrong {
  border-color: #d28d81;
  background: rgba(122, 92, 86, 0.86);
}

.war-drawer-label {
  display: inline-block;
  border: 1px solid #d6c8aa;
  background: #efe7d2;
  color: #4d4030;
  border-radius: 2px;
  padding: 0.16rem 0.44rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.38rem;
}

.war-drawer p {
  margin: 0;
  color: #d7ddda;
  font-weight: 700;
}

.war-drawer-answer {
  margin-top: 0.46rem;
  border-top: 1px dashed rgba(233, 231, 219, 0.34);
  padding-top: 0.45rem;
  color: #f2f5f3;
  min-height: 1px;
}

.war-board {
  border-radius: 12px;
  border: 1px solid rgba(93, 63, 48, 0.85);
  background: linear-gradient(180deg, #8f6f4a, #7a5f3f);
  padding: 0.7rem 0.65rem 0.75rem;
}

.war-board h3 {
  margin: 0;
  text-align: center;
  color: #3c2a1f;
  letter-spacing: 0.12em;
}

.war-intel-stack {
  margin-top: 0.58rem;
  display: grid;
  gap: 0.62rem;
}

.war-intel-card {
  position: relative;
  border: 1px solid #d5c4a1;
  border-radius: 7px;
  padding: 0.72rem 0.64rem 0.64rem;
  background: #e6dcc2;
  color: #30251d;
  box-shadow: 0 8px 12px rgba(37, 24, 15, 0.34);
  cursor: grab;
  user-select: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.war-intel-card:nth-child(2) {
  transform: rotate(2deg);
}

.war-intel-card:nth-child(3) {
  transform: rotate(-2deg);
}

.war-intel-card:nth-child(4) {
  transform: rotate(1.2deg);
}

.war-intel-card:nth-child(5) {
  transform: rotate(-1.2deg);
}

.war-intel-card:hover {
  transform: translateY(-2px) rotate(0);
}

.war-intel-card.is-selected {
  outline: 2px solid #c7473e;
  transform: translateY(-2px) rotate(0);
}

.war-intel-card.is-used {
  opacity: 0.25;
  pointer-events: none;
  filter: grayscale(0.7);
}

.war-intel-pin {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #ff8f87, #d41018);
  border: 1px solid rgba(116, 11, 15, 0.9);
  box-shadow: 0 2px 4px rgba(60, 8, 8, 0.45);
}

.war-intel-label {
  margin: 0;
  padding-bottom: 0.26rem;
  border-bottom: 1px solid rgba(99, 92, 80, 0.35);
  color: #786e63;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.war-intel-card p {
  margin: 0.4rem 0 0;
}

.war-status {
  margin: 0.72rem 0 0;
  color: #f0e2c9;
  text-align: center;
}

#desafio.card {
  background:
    linear-gradient(160deg, rgba(17, 13, 10, 0.77), rgba(31, 23, 16, 0.71)),
    linear-gradient(180deg, rgba(255, 231, 184, 0.06), transparent 38%);
  border-color: rgba(212, 181, 129, 0.33);
}

.trench-challenge {
  display: grid;
  gap: 1rem;
}

.trench-intro {
  border: 1px solid rgba(201, 162, 97, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(170deg, rgba(21, 17, 13, 0.66), rgba(12, 9, 7, 0.56)),
    repeating-linear-gradient(90deg,
      rgba(255, 229, 178, 0.025) 0,
      rgba(255, 229, 178, 0.025) 10px,
      transparent 10px,
      transparent 26px);
  padding: 1rem 1.1rem;
}

.trench-intro-title {
  display: flex;
  align-items: center;
  gap: 0.56rem;
  margin-bottom: 0.45rem;
}

.challenge-heading-icon {
  width: 30px;
  height: 30px;
  color: #d58a1f;
  flex: 0 0 auto;
}

.challenge-heading-icon path,
.challenge-heading-icon circle {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trench-intro-title h2 {
  margin: 0;
  color: #f0e6d1;
  font-size: 1rem;
}

.trench-intro p {
  margin: 0;
  color: #d0bfa0;
  line-height: 1.45;
  text-align: justify;
}

.trench-arena {
  border: 1px solid rgba(188, 150, 98, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(24, 18, 13, 0.76), rgba(13, 10, 8, 0.7)),
    repeating-linear-gradient(90deg,
      rgba(255, 223, 168, 0.03) 0,
      rgba(255, 223, 168, 0.03) 9px,
      transparent 9px,
      transparent 24px);
  padding: 0.95rem 0.95rem 1rem;
}

.trench-progress {
  position: relative;
  padding: 0.2rem 0.55rem 0.5rem;
}

.trench-progress-track,
.trench-progress-fill {
  position: absolute;
  left: 1.7rem;
  right: 1.7rem;
  top: 18px;
  height: 6px;
  border-radius: 999px;
}

.trench-progress-track {
  background:
    repeating-linear-gradient(90deg,
      rgba(107, 82, 60, 0.84) 0,
      rgba(107, 82, 60, 0.84) 14px,
      rgba(87, 66, 48, 0.84) 14px,
      rgba(87, 66, 48, 0.84) 28px);
  box-shadow:
    inset 0 0 0 1px rgba(31, 22, 15, 0.42),
    inset 0 1px 2px rgba(255, 236, 194, 0.15);
}

.trench-progress-fill {
  right: auto;
  width: 0%;
  background: linear-gradient(90deg, #dca33f, #b5741f);
  box-shadow: 0 0 12px rgba(231, 161, 62, 0.34);
  transition: width 220ms ease;
}

.trench-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.trench-step {
  position: relative;
  width: 46px;
  height: 42px;
  margin: 0 auto;
  border-radius: 8px;
  border: 2px solid #5f4635;
  background-color: #4a3627;
  background-size: 85%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 3px rgba(17, 14, 11, 0.56),
    inset 0 1px 0 rgba(245, 229, 198, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.trench-step--wire {
  background-color: #3d3024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 32h56M4 36h56' stroke='%23C1B5A6' stroke-width='2'/%3E%3Cpath d='M16 26l6 14m-8-12l6 14 M32 26l6 14m-8-12l6 14 M48 26l6 14m-8-12l6 14' stroke='%23786249' stroke-width='2.5'/%3E%3Cpath d='M4 24c6-8 12-8 18 0s12 8 18 0 12-8 18 0' stroke='%23948069' stroke-width='1.5' opacity='0.7'/%3E%3C/svg%3E");
}

.trench-step--tunnel {
  background-color: #5c4331;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='24' width='40' height='40' rx='4' fill='%231c0b02' stroke='%230a0000' stroke-width='2'/%3E%3Cpath d='M12 28h40M12 24v40M52 24v40' stroke='%234d2d18' stroke-width='3'/%3E%3Cpath d='M18 28v40M46 28v40 M24 28v40M40 28v40 M32 28v40' stroke='%23321a0b' stroke-width='2'/%3E%3Cpath d='M8 24c0-16 12-20 24-20s24 4 24 20' fill='%235e321e' stroke='%230c0000' stroke-width='2'/%3E%3Cpath d='M16 12h4m10-2h3m8 4h3M20 18h3m18-2h4' stroke='%232a1506' stroke-width='2'/%3E%3C/svg%3E");
}

.trench-step--sandbag {
  background-color: #4f3a29;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg fill='%23c8b39b' stroke='%23594b3d' stroke-width='2'%3E%3Crect x='6' y='46' width='24' height='14' rx='6'/%3E%3Crect x='34' y='46' width='24' height='14' rx='6'/%3E%3Crect x='16' y='32' width='32' height='14' rx='6'/%3E%3Crect x='10' y='18' width='20' height='14' rx='6'/%3E%3Crect x='34' y='18' width='20' height='14' rx='6'/%3E%3Crect x='22' y='4' width='20' height='14' rx='6'/%3E%3C/g%3E%3Cpath d='M12 53h4M38 53h6M22 39h8M14 25h4M38 25h5M26 11h6' stroke='%239f8870' stroke-width='1.5'/%3E%3C/svg%3E");
}

.trench-step.is-active {
  border-color: #c88417;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(184, 121, 26, 0.42),
    0 0 10px rgba(224, 170, 92, 0.46),
    inset 0 1px 0 rgba(255, 244, 216, 0.46);
}

.trench-step.is-complete {
  border-color: #bf8838;
  filter: saturate(1.08) brightness(1.04);
}

.trench-step:not(.is-active):not(.is-complete) {
  opacity: 0.9;
  filter: saturate(0.86) brightness(0.93);
}

.trench-card {
  position: relative;
  margin-top: 0.58rem;
  border: 2px solid #ccbc9c;
  border-radius: 18px;
  background:
    repeating-linear-gradient(0deg,
      rgba(212, 196, 165, 0.24) 0,
      rgba(212, 196, 165, 0.24) 1px,
      rgba(245, 236, 215, 0.96) 1px,
      rgba(245, 236, 215, 0.96) 36px),
    linear-gradient(172deg, #f2e9d2, #ebe0c4);
  box-shadow:
    0 18px 24px rgba(8, 6, 5, 0.35),
    inset 0 0 0 1px rgba(255, 248, 231, 0.7);
  padding: 2rem 1rem 1rem;
}

.trench-order {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  min-width: 168px;
  border-radius: 6px;
  border: 2px solid rgba(122, 82, 44, 0.5);
  background: linear-gradient(180deg, #9d7952, #8a6642);
  color: #efe5cf;
  padding: 0.2rem 0.8rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.trench-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #4a362b;
}

.trench-card p {
  margin: 0.75rem 0 0;
  border-top: 1px solid rgba(143, 118, 86, 0.32);
  padding-top: 0.75rem;
  color: #614939;
  line-height: 1.46;
  text-align: justify;
}

.trench-options {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.trench-option-btn {
  border: 1px solid #825c3c;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg,
      rgba(120, 89, 58, 0.9) 0,
      rgba(120, 89, 58, 0.9) 2px,
      rgba(142, 106, 71, 0.92) 2px,
      rgba(142, 106, 71, 0.92) 5px),
    linear-gradient(180deg, #8f6a47, #7f5e40);
  color: #f5e8d3;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.trench-option-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 14px rgba(25, 18, 12, 0.34);
}

.trench-option-btn.is-correct {
  border-color: #477049;
  background: linear-gradient(180deg, #5f9062, #4f7953);
}

.trench-option-btn.is-wrong {
  border-color: #8f4139;
  background: linear-gradient(180deg, #af6158, #935149);
}

.trench-option-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.trench-feedback {
  margin: 0.78rem 0 0;
  min-height: 1.35rem;
  border: 0;
  padding: 0;
  color: #503b2e;
  font-weight: 700;
  text-align: left;
}

.trench-feedback.is-error {
  color: #8b392f;
}

.trench-feedback.is-success {
  color: #3f663f;
}

.trench-final-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
}

.trench-final-item {
  border: 1px solid rgba(127, 96, 64, 0.42);
  border-radius: 10px;
  background: rgba(253, 248, 237, 0.75);
  padding: 0.62rem 0.72rem;
  color: #5d4635;
  font-weight: 700;
}

.trench-reset {
  margin-top: 0.85rem;
  border: 1px solid #7f5d3f;
  border-radius: 8px;
  background: linear-gradient(180deg, #a57e56, #8f6a47);
  color: #f8edd7;
  padding: 0.46rem 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.trench-reset:hover {
  filter: brightness(1.06);
}

.bomb-blast {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
}

.bomb-blast::before {
  content: "";
  position: absolute;
  left: -36px;
  top: -36px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 240, 1) 0 18%,
      rgba(255, 228, 140, 0.97) 19% 36%,
      rgba(255, 168, 50, 0.92) 37% 55%,
      rgba(200, 72, 20, 0.7) 56% 74%,
      rgba(200, 72, 20, 0) 75% 100%);
  filter: blur(0.5px);
  animation: bombFlash 620ms ease-out forwards;
}

.bomb-blast::after {
  content: "";
  position: absolute;
  left: -30px;
  top: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 200, 100, 0.85);
  box-shadow: 0 0 12px rgba(255, 180, 80, 0.4);
  animation: bombShock 700ms ease-out forwards;
}

.bomb-smoke {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(120, 95, 72, 0.6) 0 30%,
      rgba(80, 62, 48, 0.45) 31% 55%,
      rgba(50, 38, 30, 0.2) 56% 78%,
      rgba(39, 30, 24, 0) 79% 100%);
  animation: bombSmoke 1000ms ease-out forwards;
}

.bomb-smoke-large {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(100, 82, 64, 0.5) 0 40%,
      rgba(70, 55, 42, 0.25) 41% 70%,
      rgba(50, 38, 30, 0) 71% 100%);
  animation: smokeRise var(--smoke-dur, 1200ms) ease-out forwards;
  animation-delay: var(--smoke-delay, 0ms);
}

.bomb-spark {
  position: absolute;
  left: -3px;
  top: -3px;
  width: var(--spark-size, 5px);
  height: var(--spark-size, 5px);
  border-radius: 50%;
  background: var(--spark-color, #ffd6a6);
  box-shadow: 0 0 10px var(--spark-glow, rgba(255, 209, 122, 0.8));
  animation: bombSpark var(--spark-dur, 600ms) ease-out forwards;
  animation-delay: var(--spark-delay, 0ms);
}

.bomb-ring-secondary {
  position: absolute;
  left: -24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 220, 140, 0.65);
  box-shadow: 0 0 8px rgba(255, 180, 80, 0.25);
  animation: shockRing2 800ms ease-out forwards;
  animation-delay: 100ms;
}

.bomb-debris {
  position: absolute;
  width: var(--debris-w, 6px);
  height: var(--debris-h, 4px);
  border-radius: 1px;
  background: var(--debris-color, #8b7355);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: bombDebris var(--debris-dur, 700ms) ease-out forwards;
  animation-delay: var(--debris-delay, 0ms);
}

.bomb-afterglow {
  position: absolute;
  left: -28px;
  top: -28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 200, 100, 0.45) 0 30%,
      rgba(255, 160, 60, 0.2) 31% 60%,
      rgba(255, 120, 40, 0) 61% 100%);
  animation: bombAfterGlow 800ms ease-out forwards;
  animation-delay: 180ms;
}

.bomb-screen-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--flash-x, 50%) var(--flash-y, 50%),
      rgba(255, 240, 200, 0.55) 0%,
      rgba(255, 180, 80, 0.25) 40%,
      rgba(180, 80, 20, 0.08) 70%,
      transparent 100%);
  animation: screenFlash 280ms ease-out forwards;
}

.trench-card.is-hit,
.war-room-grid.is-hit {
  animation: panelHit 380ms ease-out;
}

.footer {
  max-width: 1050px;
  margin: 1rem auto 0;
  text-align: center;
  color: #51261e;
  padding: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp 420ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 80ms;
}

.reveal:nth-child(3) {
  animation-delay: 120ms;
}

.reveal:nth-child(4) {
  animation-delay: 160ms;
}

.reveal:nth-child(5) {
  animation-delay: 200ms;
}

.reveal:nth-child(6) {
  animation-delay: 240ms;
}

.reveal:nth-child(7) {
  animation-delay: 280ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes blastPulse {

  0%,
  100% {
    opacity: 0.76;
    filter: contrast(1.02) brightness(1);
  }

  35% {
    opacity: 0.9;
    filter: contrast(1.1) brightness(1.08);
  }

  55% {
    opacity: 0.82;
    filter: contrast(1.06) brightness(0.98);
  }
}

@keyframes bombFlash {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }

  30% {
    transform: scale(1.4);
    opacity: 0.95;
  }

  60% {
    transform: scale(2.0);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes bombShock {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }

  50% {
    transform: scale(2.2);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes bombSmoke {
  0% {
    transform: scale(0.5);
    opacity: 0.65;
  }

  40% {
    transform: scale(1.3);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes bombSpark {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  60% {
    opacity: 0.8;
  }

  100% {
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.1);
    opacity: 0;
  }
}

@keyframes shockRing2 {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }

  100% {
    transform: scale(5);
    opacity: 0;
  }
}

@keyframes bombDebris {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }

  100% {
    transform: translate(var(--debris-dx, 40px), var(--debris-dy, 60px)) rotate(var(--debris-rot, 360deg)) scale(0.3);
    opacity: 0;
  }
}

@keyframes bombAfterGlow {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  25% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes screenFlash {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes smokeRise {
  0% {
    transform: translate(var(--smoke-x, 0), 0) scale(0.4);
    opacity: 0.55;
  }

  40% {
    opacity: 0.45;
  }

  100% {
    transform: translate(var(--smoke-x, 0), var(--smoke-y, -40px)) scale(1.8);
    opacity: 0;
  }
}

@keyframes panelHit {
  0% {
    transform: translate(0, 0);
    filter: blur(0);
  }

  12% {
    transform: translate(-7px, 2px);
    filter: blur(0.5px);
  }

  25% {
    transform: translate(6px, -2px);
    filter: blur(0.3px);
  }

  37% {
    transform: translate(-5px, 1px);
    filter: blur(0);
  }

  50% {
    transform: translate(5px, -1px);
  }

  62% {
    transform: translate(-3px, 1px);
  }

  75% {
    transform: translate(3px, 0);
  }

  87% {
    transform: translate(-1px, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes wireSway {

  0%,
  100% {
    transform: rotate(var(--wire-tilt)) translateX(0);
    opacity: 0.9;
  }

  50% {
    transform: rotate(var(--wire-tilt)) translateX(1px);
    opacity: 1;
  }
}

@keyframes tunnelGlow {

  0%,
  100% {
    filter: brightness(0.95);
    box-shadow:
      inset 0 0 0 1px rgba(53, 35, 22, 0.35),
      0 0 0 rgba(193, 151, 98, 0);
  }

  50% {
    filter: brightness(1.08);
    box-shadow:
      inset 0 0 0 1px rgba(53, 35, 22, 0.35),
      0 0 7px rgba(193, 151, 98, 0.28);
  }
}

@keyframes tunnelFloorMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 6px 0;
  }
}

@keyframes sandbagSettle {

  0%,
  100% {
    transform: translateY(0);
    filter: saturate(0.94) brightness(0.98);
  }

  50% {
    transform: translateY(-1px);
    filter: saturate(1.02) brightness(1.03);
  }
}

@keyframes sandbagShade {

  0%,
  100% {
    opacity: 0.45;
    transform: scaleX(0.95);
  }

  50% {
    opacity: 0.62;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .trench-card.is-hit,
  .war-room-grid.is-hit {
    animation: none;
  }

  .trench-step--wire::before,
  .trench-step--wire::after,
  .trench-step--tunnel::before,
  .trench-step--tunnel::after,
  .trench-step--sandbag::before,
  .trench-step--sandbag::after {
    animation: none !important;
  }
}

@media (max-width: 860px) {
  .hero.has-recruit {
    grid-template-columns: minmax(110px, 132px) minmax(0, 1fr) minmax(110px, 132px);
    gap: 0.6rem;
  }

  .hero-recruit-avatar {
    width: 58px;
    height: 58px;
  }

  .hero-recruit-name {
    font-size: 0.66rem;
  }

  .hero-recruit-class {
    font-size: 0.63rem;
  }

  .blast-silhouettes {
    bottom: 41vh;
    height: 18vh;
    opacity: 0.78;
  }

  .mud-foreground {
    height: 22vh;
    bottom: -3vh;
  }

  .horizon-smoke {
    top: 5vh;
    height: 30vh;
    opacity: 0.72;
  }

  .trench-rim {
    bottom: 13vh;
    height: 24vh;
  }

  .barbed-wire {
    bottom: 33vh;
    height: 76px;
    opacity: 0.74;
    background-size: 100% 100%, 180px 20px, 180px 20px;
    background-position: 0 0, 0 14px, 0 36px;
  }

  body::after {
    opacity: 0.94;
  }

  .clause-layout {
    grid-template-columns: minmax(210px, 34%) 1fr;
  }

  .clause-index {
    padding: 1rem 0.72rem 0.9rem;
    gap: 0.55rem;
  }

  .clause-item {
    padding: 0.62rem 0.64rem;
  }

  .clause-item-title {
    font-size: 0.86rem;
  }

  .clause-document {
    padding: 1rem 0.95rem 1.1rem;
  }

  .clause-document-head {
    gap: 0.65rem;
    margin-bottom: 0.95rem;
  }

  .clause-document-icon {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .clause-document-label {
    letter-spacing: 0.15em;
    font-size: 0.72rem;
  }

  .interests-panel {
    padding: 1.25rem 1rem 1rem;
    border-radius: 18px;
  }

  .flag-row {
    gap: 0.95rem;
  }

  .flag {
    width: min(108px, 100%);
    border-width: 3px;
  }

  .war-room {
    padding: 0.92rem 0.9rem 0.85rem;
  }

  .war-room-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.72rem;
  }

  .war-drawers {
    max-height: 460px;
  }

  .context2-intro {
    padding: 0.82rem 0.86rem;
  }

  .enlist-panel {
    padding: 0.86rem;
  }

  .enlist-avatar-toggle {
    padding: 0.46rem 0.52rem;
    font-size: 0.86rem;
  }

  .enlist-avatar-panel {
    max-height: 316px;
  }

  .enlist-avatar-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-height: 216px;
  }

  .enlist-card {
    padding: 0.68rem;
  }

  .enlist-card-shell {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0.62rem;
  }

  .enlist-card-kicker {
    font-size: 0.68rem;
  }

  .enlist-card-body h3 {
    font-size: 0.94rem;
  }

  .enlist-card-line {
    font-size: 0.8rem;
  }

  .enlist-card-line strong {
    min-width: 6.8rem;
  }

  .enlist-card-photo-tag {
    font-size: 0.54rem;
  }

  .enlist-card-authline {
    font-size: 0.66rem;
  }

  .intel-board-tip {
    font-size: 0.9rem;
  }

  .intel-board-frame {
    padding: 0.84rem;
    gap: 0.8rem;
  }

  .intel-photo-flip {
    min-height: 310px;
  }

  .intel-photo-back {
    padding: 0.56rem 0.58rem;
  }

  .intel-photo-tag {
    font-size: 0.9rem;
  }

  .intel-photo-foot {
    font-size: 0.88rem;
  }

  .intel-back-text {
    font-size: 0.84rem;
  }

  .trench-intro {
    padding: 0.9rem 0.95rem;
  }

  .trench-arena {
    padding: 0.82rem 0.82rem 0.92rem;
  }

  .trench-progress-track,
  .trench-progress-fill {
    top: 16px;
    left: 1.4rem;
    right: 1.4rem;
  }

  .trench-step {
    width: 32px;
    height: 28px;
  }

  .trench-card {
    padding: 1.85rem 0.86rem 0.9rem;
  }

  .trench-card h3 {
    font-size: 1.08rem;
  }

  .trench-option-btn {
    font-size: 0.9rem;
  }

  .map-panel {
    padding: 1.05rem 0.95rem 0.95rem;
    border-radius: 18px;
  }

  .map-header-icon {
    width: 44px;
    height: 44px;
  }

  .map-region-tabs {
    margin-bottom: 0.8rem;
  }

  .map-region-btn {
    padding: 0.42rem 0.72rem;
  }

  #strategic-map {
    min-height: 360px;
    height: 50vh;
  }

  .map-legend {
    gap: 0.4rem;
    padding: 0.6rem 0.72rem;
  }

  .block-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .typewriter-station {
    --typewriter-scale: 0.6;
  }

  .typewriter-paper-wrap {
    max-width: 620px;
  }

  .typewriter-machine {
    height: 188px;
    --machine-height: 188px;
  }

  .machine-side {
    height: 112px;
  }

  .machine-chassis {
    top: 40px;
    height: 68px;
  }

  .machine-keybed {
    height: 80px;
    transform: perspective(480px) rotateX(12deg);
  }

  .ink-ribbon {
    left: 44px;
    right: 44px;
    top: 12px;
  }

  .keys-row {
    gap: 3px;
  }

  .row-1 {
    top: 9px;
  }

  .row-2 {
    top: 27px;
  }

  .row-3 {
    top: 45px;
  }

  .key {
    width: 14px;
    height: 14px;
  }

  .key::before {
    height: 5px;
    bottom: -5px;
  }

  .key b {
    font-size: 5px;
  }

  .spacebar {
    height: 10px;
    bottom: 8px;
  }

  .dossier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1.2rem 0.9rem 1rem;
    margin-bottom: 1rem;
    min-height: auto;
  }

  .dossier-grid::after {
    height: 24px;
    bottom: -22px;
  }

  .dossier {
    max-width: none;
    width: 100%;
    justify-self: stretch;
    max-height: 156px;
    --dossier-tilt: 0deg;
    --dossier-x: 0px;
    --dossier-y: 0px;
  }

  .doc-badge {
    font-size: 0.72rem;
  }

  .doc-seal {
    width: 80px;
    height: 80px;
    font-size: 1.12rem;
    right: 1.15rem;
  }

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

@media (max-width: 560px) {
  .hero.has-recruit {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.48rem;
    padding: 0.78rem 0.7rem 0.74rem;
  }

  .hero.has-recruit .hero-recruit {
    grid-column: 1;
    justify-self: start;
    width: min(170px, 100%);
  }

  .hero.has-recruit .hero-title {
    grid-column: 1;
  }

  .hero.has-recruit .hero-balance {
    display: none;
  }

  .hero-recruit-avatar {
    width: 54px;
    height: 54px;
  }

  .blast-silhouettes {
    bottom: 39vh;
    height: 15vh;
    opacity: 0.68;
    animation-duration: 10s;
  }

  .mud-foreground {
    height: 18vh;
    bottom: -2vh;
    clip-path: polygon(0 18%, 12% 12%, 24% 20%, 36% 14%, 48% 22%, 60% 14%, 72% 20%, 84% 13%, 100% 18%, 100% 100%, 0 100%);
  }

  .horizon-smoke {
    top: 4vh;
    height: 24vh;
    opacity: 0.62;
  }

  .trench-rim {
    bottom: 14vh;
    height: 20vh;
    background-size:
      54px 24px,
      100% 100%,
      100% 100%;
  }

  .barbed-wire {
    bottom: 31vh;
    height: 58px;
    opacity: 0.58;
    background-size: 100% 100%, 150px 16px, 150px 16px;
    background-position: 0 0, 0 10px, 0 26px;
  }

  .barbed-wire::before,
  .barbed-wire::after {
    height: 10px;
  }

  .barbed-wire::after {
    top: 30px;
  }

  body::before {
    background-position: center center;
  }

  body::after {
    opacity: 0.98;
  }

  .clause-layout {
    grid-template-columns: 1fr;
  }

  .clause-index {
    border-right: none;
    border-bottom: 1px solid rgba(196, 167, 126, 0.25);
    padding: 0.88rem 0.64rem 0.8rem;
    max-height: 338px;
    overflow-y: auto;
  }

  .clause-item {
    padding: 0.62rem;
  }

  .clause-item-title {
    font-size: 0.93rem;
  }

  .clause-document {
    padding: 0.88rem 0.72rem 0.92rem;
  }

  .clause-document-icon {
    width: 44px;
    height: 44px;
    padding: 7px;
  }

  .clause-document-number {
    font-size: 1.36rem;
  }

  .clause-document-title {
    font-size: 1.08rem;
  }

  .clause-document-quote {
    margin-top: 0.62rem;
    border-left-width: 5px;
    padding-left: 0.68rem;
    font-size: 1.08rem;
  }

  .clause-document-impact {
    margin-top: 0.9rem;
    padding: 0.72rem 0.64rem 0.75rem;
  }

  body {
    padding: 1.2rem 0.7rem 2rem;
  }

  .typewriter-station {
    margin-bottom: 0.85rem;
    --typewriter-scale: 0.66;
  }

  .typewriter-paper-wrap {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .typewriter-paper-sheet {
    padding: 0.6rem 0.6rem 0.72rem;
  }

  .typewriter-machine {
    height: 170px;
    --machine-height: 170px;
    border-radius: 18px 18px 12px 12px;
  }

  .machine-side {
    top: 34px;
    width: 18px;
    height: 100px;
  }

  .machine-carriage {
    top: 10px;
    height: 22px;
  }

  .carriage-knob {
    width: 18px;
    height: 18px;
  }

  .carriage-lever {
    width: 40px;
    height: 5px;
    right: -8px;
  }

  .machine-chassis {
    top: 36px;
    height: 60px;
  }

  .ribbon-spool {
    width: 18px;
    height: 18px;
    top: 8px;
  }

  .spool-left {
    left: 12px;
  }

  .spool-right {
    right: 12px;
  }

  .machine-brand {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .machine-keybed {
    left: 6%;
    right: 6%;
    height: 72px;
    bottom: 12px;
    transform: perspective(420px) rotateX(10deg);
  }

  .keys-row {
    gap: 2px;
    left: 8px;
    right: 8px;
  }

  .row-1 {
    top: 8px;
  }

  .row-2 {
    top: 24px;
    left: 13px;
    right: 13px;
  }

  .row-3 {
    top: 40px;
    left: 20px;
    right: 20px;
  }

  .key {
    width: 12px;
    height: 12px;
  }

  .key::before {
    width: 1.5px;
    height: 4px;
    bottom: -4px;
  }

  .key b {
    font-size: 4px;
  }

  .spacebar {
    height: 9px;
    bottom: 7px;
  }

  .ink-ribbon {
    left: 32px;
    right: 32px;
    top: 10px;
  }

  .block-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dossier-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.95rem 0.65rem 0.9rem;
    margin-bottom: 0.6rem;
    min-height: auto;
  }

  .dossier-grid::before {
    opacity: 0.3;
  }

  .dossier-grid::after {
    display: none;
  }

  .dossier {
    max-width: none;
    width: 100%;
    justify-self: stretch;
    max-height: 138px;
    --dossier-tilt: 0deg;
    --dossier-x: 0px;
    --dossier-y: 0px;
  }

  .folder-label {
    top: 16px;
    left: 50%;
    width: 74%;
    font-size: 0.72rem;
  }

  .folder-stamp {
    font-size: 1rem;
    border-width: 4px;
  }

  .dossier-paper {
    min-height: 248px;
    padding: 0.72rem 0.66rem 0.96rem;
  }

  .interests-panel {
    padding: 0.95rem 0.78rem 0.88rem;
    border-radius: 16px;
  }

  .interests-header h2 {
    font-size: 1.8rem;
  }

  .interests-subtitle {
    margin: 0.72rem 0 0.9rem;
    font-size: 0.86rem;
  }

  .flag-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .flag {
    width: min(124px, 100%);
  }

  .map-panel {
    padding: 0.88rem 0.7rem 0.8rem;
    border-radius: 16px;
  }

  .map-header-icon {
    width: 38px;
    height: 38px;
  }

  .map-header-sub {
    font-size: 0.72rem;
  }

  .map-region-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .map-region-btn:last-child {
    grid-column: 1 / -1;
  }

  #strategic-map {
    min-height: 320px;
    height: 46vh;
  }

  .map-legend {
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
  }

  .map-legend-item {
    font-size: 0.74rem;
    padding: 0.3rem 0.55rem 0.3rem 0.42rem;
  }

  .map-legend-swatch {
    width: 12px;
    height: 12px;
  }

  .interest-result {
    margin-top: 0.88rem;
  }

  .interest-result h3 {
    font-size: 1.06rem;
  }

  .interest-result p {
    font-size: 0.92rem;
  }

  .war-room {
    padding: 0.8rem 0.68rem 0.74rem;
    border-radius: 16px;
  }

  .war-room-grid {
    padding: 0.58rem;
    border-radius: 12px;
  }

  .context2-intro {
    padding: 0.68rem 0.66rem;
    border-radius: 14px;
  }

  .context2-intro p {
    font-size: 0.88rem;
  }

  .enlist-panel {
    padding: 0.68rem 0.66rem;
    border-radius: 14px;
  }

  .enlist-intro {
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
  }

  .enlist-form {
    gap: 0.46rem;
  }

  .enlist-form label {
    font-size: 0.86rem;
  }

  .enlist-form input {
    font-size: 0.86rem;
    padding: 0.5rem 0.52rem;
  }

  .enlist-submit {
    font-size: 0.86rem;
    padding: 0.48rem 0.58rem;
  }

  .enlist-avatar-wrap {
    padding: 0.44rem;
  }

  .enlist-avatar-toggle {
    padding: 0.42rem 0.48rem;
    font-size: 0.82rem;
  }

  .enlist-avatar-toggle-icon {
    font-size: 0.88rem;
  }

  .enlist-avatar-panel {
    max-height: 292px;
  }

  .enlist-avatar-title {
    font-size: 0.82rem;
    margin-bottom: 0.34rem;
  }

  .enlist-avatar-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.28rem;
    max-height: 196px;
  }

  .enlist-feedback {
    font-size: 0.82rem;
    margin-top: 0.56rem;
  }

  .enlist-card {
    margin-top: 0.62rem;
    padding: 0.6rem 0.58rem;
  }

  .enlist-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .enlist-card-kicker {
    font-size: 0.64rem;
  }

  .enlist-card-stamp {
    font-size: 0.58rem;
  }

  .enlist-card-shell {
    grid-template-columns: 1fr;
    gap: 0.48rem;
    margin-top: 0.46rem;
  }

  .enlist-card-head {
    max-width: 132px;
  }

  .enlist-card-photo-tag {
    font-size: 0.5rem;
  }

  .enlist-card-body h3 {
    font-size: 0.86rem;
  }

  .enlist-card-line {
    font-size: 0.78rem;
    padding-top: 0.26rem;
    margin-top: 0.24rem;
    flex-wrap: wrap;
    gap: 0.18rem;
  }

  .enlist-card-line strong {
    min-width: 0;
  }

  .enlist-card-authline {
    font-size: 0.66rem;
    margin-top: 0.3rem;
    padding-top: 0.28rem;
  }

  .intel-board-frame {
    border-width: 10px;
    padding: 0.66rem;
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  .intel-board-tip {
    font-size: 0.84rem;
    margin-bottom: 0.5rem;
  }

  .intel-photo-flip {
    min-height: 294px;
  }

  .intel-photo-tag {
    margin-bottom: 0.26rem;
    font-size: 0.82rem;
  }

  .intel-photo-foot {
    margin-top: 0.26rem;
    font-size: 0.8rem;
  }

  .intel-photo-back {
    padding: 0.5rem 0.52rem;
  }

  .intel-back-title {
    font-size: 0.86rem;
    padding-bottom: 0.2rem;
  }

  .intel-back-text {
    font-size: 0.8rem;
    line-height: 1.38;
  }

  .trench-intro {
    padding: 0.74rem 0.66rem;
    border-radius: 14px;
  }

  .trench-intro-title {
    align-items: flex-start;
    gap: 0.42rem;
  }

  .challenge-heading-icon {
    width: 26px;
    height: 26px;
  }

  .trench-intro-title h2 {
    font-size: 1rem;
    line-height: 1.22;
  }

  .trench-intro p {
    font-size: 0.9rem;
  }

  .trench-arena {
    padding: 0.7rem 0.62rem 0.74rem;
    border-radius: 14px;
  }

  .trench-progress {
    padding: 0.06rem 0.15rem 0.42rem;
  }

  .trench-progress-track,
  .trench-progress-fill {
    top: 12px;
    left: 0.92rem;
    right: 0.92rem;
    height: 4px;
  }

  .trench-steps {
    gap: 0.3rem;
  }

  .trench-step {
    width: 26px;
    height: 22px;
    border-radius: 6px;
    box-shadow:
      0 0 0 2px rgba(17, 14, 11, 0.56),
      inset 0 1px 0 rgba(245, 229, 198, 0.22);
  }

  .trench-step.is-active {
    box-shadow:
      0 0 0 2px rgba(184, 121, 26, 0.4),
      0 0 8px rgba(224, 170, 92, 0.4),
      inset 0 1px 0 rgba(255, 244, 216, 0.4);
  }

  .trench-step--wire::before {
    top: 6px;
    box-shadow: 0 4px 0 rgba(22, 21, 19, 0.9);
  }

  .trench-step--wire::after {
    top: 12px;
  }

  .trench-step--tunnel::before {
    top: 3px;
    right: 4px;
    bottom: 3px;
    left: 4px;
    border-width: 1px;
  }

  .trench-step--tunnel::after {
    right: 7px;
    bottom: 4px;
    left: 7px;
    height: 3px;
  }

  .trench-step--sandbag::before {
    right: 1px;
    bottom: 5px;
    left: 1px;
    height: 11px;
  }

  .trench-step--sandbag::after {
    right: 4px;
    bottom: 3px;
    left: 4px;
  }

  .trench-card {
    margin-top: 0.4rem;
    border-radius: 14px;
    padding: 1.75rem 0.72rem 0.72rem;
  }

  .trench-order {
    min-width: 140px;
    font-size: 0.82rem;
  }

  .trench-card h3 {
    font-size: 1rem;
  }

  .trench-card p {
    font-size: 0.9rem;
    margin-top: 0.62rem;
    padding-top: 0.62rem;
  }

  .trench-options {
    margin-top: 0.72rem;
    gap: 0.5rem;
  }

  .trench-option-btn {
    padding: 0.56rem 0.62rem;
    font-size: 0.87rem;
    border-radius: 8px;
  }

  .trench-feedback {
    font-size: 0.84rem;
    margin-top: 0.62rem;
  }

  .war-cabinet-head {
    padding: 0.56rem 0.5rem;
    font-size: 0.82rem;
  }

  .war-drawers {
    padding: 0.56rem;
    gap: 0.56rem;
    max-height: 420px;
  }

  .war-drawer {
    padding: 0.56rem 0.5rem 0.52rem 2.6rem;
  }

  .war-drawer::before {
    left: 0.63rem;
  }

  .war-drawer::after {
    left: 0.86rem;
  }

  .war-board {
    padding: 0.58rem 0.46rem 0.6rem;
  }

  .war-intel-card {
    padding: 0.62rem 0.52rem 0.56rem;
  }

  .doc-header {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .doc-badge {
    font-size: 0.64rem;
    border-width: 2px;
    padding: 0.1rem 0.4rem;
  }

  .doc-title h3 {
    font-size: 0.98rem;
  }

  .dossier-paper p {
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .doc-seal {
    width: 68px;
    height: 68px;
    font-size: 0.95rem;
    border-width: 4px;
    right: 0.72rem;
    bottom: 0.72rem;
  }

  .hero,
  .card {
    border-radius: 14px;
  }

  th,
  td {
    font-size: 0.88rem;
    padding: 0.48rem;
  }
}