* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    /* Base mud texture with uneven patches */
    radial-gradient(ellipse 300px 200px at 20% 30%, rgba(60, 45, 30, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 400px 250px at 70% 20%, rgba(50, 38, 25, 0.85) 0%, transparent 65%),
    radial-gradient(ellipse 250px 300px at 80% 60%, rgba(55, 42, 28, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 350px 180px at 30% 70%, rgba(45, 35, 22, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 280px 220px at 60% 80%, rgba(52, 40, 26, 0.85) 0%, transparent 65%),
    /* Dark mud base */
    linear-gradient(160deg, #2d2418 0%, #1f1810 20%, #16120c 40%, #0f0c08 60%, #181410 80%, #252018 100%);
  background-attachment: fixed;
  background-size: auto, auto, auto, auto, auto, 100% 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Bullet holes scattered around */
    /* Small bullet holes */
    radial-gradient(circle at 15% 15%, #0a0805 0%, #0a0805 8px, transparent 10px),
    radial-gradient(circle at 25% 45%, #0a0805 0%, #0a0805 6px, transparent 8px),
    radial-gradient(circle at 75% 25%, #0a0805 0%, #0a0805 7px, transparent 9px),
    radial-gradient(circle at 85% 55%, #0a0805 0%, #0a0805 5px, transparent 7px),
    radial-gradient(circle at 35% 75%, #0a0805 0%, #0a0805 9px, transparent 11px),
    radial-gradient(circle at 65% 85%, #0a0805 0%, #0a0805 6px, transparent 8px),
    radial-gradient(circle at 10% 60%, #0a0805 0%, #0a0805 7px, transparent 9px),
    radial-gradient(circle at 90% 10%, #0a0805 0%, #0a0805 8px, transparent 10px),
    radial-gradient(circle at 45% 25%, #0a0805 0%, #0a0805 5px, transparent 7px),
    radial-gradient(circle at 55% 45%, #0a0805 0%, #0a0805 6px, transparent 8px),
    radial-gradient(circle at 20% 85%, #0a0805 0%, #0a0805 7px, transparent 9px),
    radial-gradient(circle at 80% 75%, #0a0805 0%, #0a0805 8px, transparent 10px),
    
    /* Grenade craters - larger impact marks */
    /* Crater 1 - top left area */
    radial-gradient(ellipse 80px 60px at 8% 12%, #080605 0%, #0d0a07 30%, #15100a 50%, transparent 70%),
    radial-gradient(ellipse 100px 80px at 5% 15%, transparent 40%, rgba(30, 23, 15, 0.5) 60%, transparent 80%),
    
    /* Crater 2 - right side */
    radial-gradient(ellipse 120px 90px at 92% 35%, #080605 0%, #0d0a07 30%, #15100a 50%, transparent 70%),
    radial-gradient(ellipse 140px 110px at 95% 38%, transparent 40%, rgba(28, 21, 14, 0.6) 60%, transparent 80%),
    
    /* Crater 3 - bottom area */
    radial-gradient(ellipse 90px 70px at 40% 92%, #080605 0%, #0d0a07 30%, #15100a 50%, transparent 70%),
    radial-gradient(ellipse 110px 85px at 43% 95%, transparent 40%, rgba(32, 24, 16, 0.5) 60%, transparent 80%),
    
    /* Crater 4 - center left */
    radial-gradient(ellipse 70px 80px at 18% 65%, #080605 0%, #0d0a07 30%, #15100a 50%, transparent 70%),
    
    /* Debris and mud splatter */
    radial-gradient(circle at 12% 18%, rgba(40, 30, 20, 0.6) 0%, transparent 15px),
    radial-gradient(circle at 88% 32%, rgba(38, 28, 18, 0.5) 0%, transparent 20px),
    radial-gradient(circle at 42% 88%, rgba(42, 32, 22, 0.55) 0%, transparent 18px),
    radial-gradient(circle at 20% 68%, rgba(35, 26, 17, 0.5) 0%, transparent 12px),
    
    /* Additional bullet holes with debris rings */
    radial-gradient(circle at 5% 50%, #0a0805 0%, #0a0805 4px, rgba(20, 15, 10, 0.4) 8px, transparent 15px),
    radial-gradient(circle at 95% 80%, #0a0805 0%, #0a0805 5px, rgba(22, 17, 12, 0.4) 10px, transparent 18px),
    radial-gradient(circle at 50% 5%, #0a0805 0%, #0a0805 6px, rgba(18, 14, 9, 0.4) 12px, transparent 20px),
    radial-gradient(circle at 70% 90%, #0a0805 0%, #0a0805 4px, rgba(25, 19, 13, 0.4) 8px, transparent 14px),
    radial-gradient(circle at 30% 35%, #0a0805 0%, #0a0805 5px, rgba(20, 15, 10, 0.4) 10px, transparent 16px),
    
    /* Mud cracks and texture overlay */
    repeating-linear-gradient(45deg, transparent 0px, transparent 100px, rgba(20, 15, 10, 0.1) 100px, rgba(20, 15, 10, 0.1) 102px),
    repeating-linear-gradient(-45deg, transparent 0px, transparent 150px, rgba(18, 13, 9, 0.08) 150px, rgba(18, 13, 9, 0.08) 152px),
    
    /* Heavy noise texture for dirt/mud */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='mud'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23mud)'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, auto, 400px 400px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Vignette effect for depth */
    radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(5, 4, 3, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 15px 80px;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

h1 {
  font-family: 'Black Ops One', cursive;
  font-size: 2.8rem;
  color: #d4c5a8;
  text-shadow:
    0 0 5px rgba(180, 160, 120, 0.4),
    0 0 15px rgba(140, 120, 90, 0.3),
    2px 2px 0 #000,
    3px 3px 10px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
  margin-top: 0;
  letter-spacing: 6px;
  text-transform: uppercase;
  position: relative;
  padding: 0 40px;
}

h1::before {
  display: none;
}

h1::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(180, 150, 100, 0.6) 20%, rgba(140, 120, 90, 0.4) 50%, rgba(180, 150, 100, 0.6) 80%, transparent);
  margin: 15px auto 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

h1 .bullet-hole {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0a0805 20%, #15100a 40%, transparent 60%);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

h1 .bullet-hole:nth-child(1) { width: 12px; height: 12px; top: 15px; left: 20px; }
h1 .bullet-hole:nth-child(2) { width: 8px; height: 8px; top: 45px; left: 5px; }
h1 .bullet-hole:nth-child(3) { width: 10px; height: 10px; top: 8px; right: 25px; }
h1 .bullet-hole:nth-child(4) { width: 6px; height: 6px; bottom: 35px; right: 10px; }
h1 .bullet-hole:nth-child(5) { width: 9px; height: 9px; top: 50%; left: 0px; }

.row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  justify-content: center;
}

.section-label {
  font-size: 1.1rem;
  color: #d4c5a8;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.5);
  font-family: 'Roboto Mono', monospace;
  position: relative;
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(180deg, rgba(40, 32, 24, 0.9) 0%, rgba(25, 20, 15, 0.95) 100%);
  border: 1px solid rgba(180, 150, 100, 0.3);
  border-radius: 4px;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(180, 150, 100, 0.4);
}

.section-label::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.section-label::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.attack-section, .defence-section {
  text-align: center;
}

.attack-section .section-label {
  color: #ff6b6b;
  text-shadow:
    0 0 5px rgba(255, 107, 107, 0.6),
    0 0 10px rgba(255, 107, 107, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 107, 107, 0.4);
  background: linear-gradient(180deg, rgba(60, 20, 20, 0.8) 0%, rgba(40, 15, 15, 0.9) 100%);
}

.attack-section .section-label::before,
.attack-section .section-label::after {
  border-color: rgba(255, 107, 107, 0.5);
}

.defence-section .section-label {
  color: #6bc5ff;
  text-shadow:
    0 0 5px rgba(107, 197, 255, 0.6),
    0 0 10px rgba(107, 197, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.9);
  border-color: rgba(107, 197, 255, 0.4);
  background: linear-gradient(180deg, rgba(20, 40, 60, 0.8) 0%, rgba(15, 30, 45, 0.9) 100%);
}

.defence-section .section-label::before,
.defence-section .section-label::after {
  border-color: rgba(107, 197, 255, 0.5);
}

.attack, .defence {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: 'Black Ops One', cursive;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  top: 0;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px
  );
}

/* Tactical button corners */
.attack::before, .defence::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid;
  clip-path: polygon(
    10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px,
    2px 10px, 2px calc(100% - 2px), calc(100% - 10px) calc(100% - 2px), calc(100% - 2px) calc(100% - 10px), calc(100% - 2px) 2px, 10px 2px
  );
  pointer-events: none;
}

.attack {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #8b2635 0%, #6b1c28 50%, #4a141c 100%);
  color: #ffb3b3;
  border: none;
  box-shadow:
    0 4px 0 #2a0a0f,
    0 6px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.attack::before {
  border-color: rgba(255, 107, 107, 0.5);
}

.attack:hover {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #a32d3d 0%, #7d222f 50%, #5a1820 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #2a0a0f,
    0 8px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.attack:active, .attack.selected {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #5a1820 0%, #4a141c 50%, #3a1015 100%);
  transform: translateY(4px);
  box-shadow:
    0 0 0 #2a0a0f,
    0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.attack.selected {
  box-shadow:
    0 0 0 #2a0a0f,
    0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 107, 107, 0.5);
}

.defence {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #2d5a7d 0%, #1e4a6b 50%, #153a52 100%);
  color: #b3e0ff;
  border: none;
  box-shadow:
    0 4px 0 #0d2535,
    0 6px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.defence::before {
  border-color: rgba(107, 197, 255, 0.5);
}

.defence:hover {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #3a6f96 0%, #2a5a7d 50%, #1e4a6b 100%);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #0d2535,
    0 8px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.defence:active, .defence.selected {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #1e4a6b 0%, #153a52 50%, #0f2d40 100%);
  transform: translateY(4px);
  box-shadow:
    0 0 0 #0d2535,
    0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.defence.selected {
  box-shadow:
    0 0 0 #0d2535,
    0 2px 5px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(107, 197, 255, 0.5);
}

.defence:disabled {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px),
    linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 50%, #151515 100%);
  color: #555;
  cursor: not-allowed;
  box-shadow:
    0 4px 0 #0a0a0a,
    0 6px 10px rgba(0, 0, 0, 0.3);
}

.defence:disabled::before {
  border-color: rgba(100, 100, 100, 0.3);
}

.dice-battle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.dice-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  min-height: 70px;
  align-items: center;
}

.vs-row {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  color: #c9b896;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 4px;
  opacity: 0.9;
  position: relative;
  padding: 5px 15px;
  background: rgba(40, 32, 24, 0.7);
  border: 1px solid rgba(180, 150, 100, 0.3);
  border-radius: 2px;
}

.vs-row::before,
.vs-row::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: rgba(180, 150, 100, 0.5);
}

.vs-row::before {
  left: 5px;
}

.vs-row::after {
  right: 5px;
}

.dice {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 6px;
}

.dice::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 8px 8px 50% 50%;
  pointer-events: none;
}

.dice-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}

.dice-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
}

.dice-dot.active {
  background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.7) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dice.attack-dice {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(145deg, #8b2635, #4a141c);
  border: 2px solid rgba(255, 107, 107, 0.4);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 107, 107, 0.2);
}

.dice.defence-dice {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(145deg, #2d5a7d, #153a52);
  border: 2px solid rgba(107, 197, 255, 0.4);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(107, 197, 255, 0.2);
}

.dice.lost {
  filter: grayscale(70%) brightness(0.6);
  opacity: 0.7;
}

.dice.unused {
  filter: grayscale(90%) brightness(0.4);
  opacity: 0.5;
}

.selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.result-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 250px;
}

.fundraiser {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 25px;
  text-align: center;
  font-family: 'Black Ops One', cursive;
  font-size: 1rem;
  color: #d4c5a8;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.5);
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, rgba(60, 50, 40, 0.95) 0%, rgba(40, 32, 24, 1) 100%);
  border-top: 2px solid rgba(180, 150, 100, 0.4);
  box-shadow:
    0 -4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.fundraiser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(180, 150, 100, 0.2);
  margin: 4px;
  pointer-events: none;
}

.fundraiser a {
  color: #8fbc8f;
  text-decoration: none;
  border-bottom: 2px solid rgba(143, 188, 143, 0.4);
  transition: all 0.2s ease;
  text-shadow:
    0 0 5px rgba(143, 188, 143, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

.fundraiser a:hover {
  color: #90ee90;
  border-bottom-color: rgba(144, 238, 144, 0.8);
  text-shadow:
    0 0 10px rgba(144, 238, 144, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

.attackLoss, .defenceLoss, .bothLoss {
  font-family: 'Black Ops One', cursive;
  font-size: 1.3rem;
  width: 200px;
  height: 70px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: slideIn 0.3s ease;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 2px;
  clip-path: polygon(
    8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px
  );
}

.attackLoss::before, .defenceLoss::before, .bothLoss::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid;
  clip-path: polygon(
    8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px,
    2px 8px, 2px calc(100% - 2px), calc(100% - 8px) calc(100% - 2px), calc(100% - 2px) calc(100% - 8px), calc(100% - 2px) 2px, 8px 2px
  );
  pointer-events: none;
}

.attackLoss {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #8b2635 0%, #4a141c 100%);
  color: #ffb3b3;
  border: none;
  box-shadow:
    0 4px 0 #2a0a0f,
    0 6px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 15px rgba(255, 107, 107, 0.3);
}

.attackLoss::before {
  border-color: rgba(255, 107, 107, 0.5);
}

.defenceLoss {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #2d5a7d 0%, #153a52 100%);
  color: #b3e0ff;
  border: none;
  box-shadow:
    0 4px 0 #0d2535,
    0 6px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 15px rgba(107, 197, 255, 0.3);
}

.defenceLoss::before {
  border-color: rgba(107, 197, 255, 0.5);
}

.bothLoss {
  background:
    repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
    linear-gradient(180deg, #6b4c7d 0%, #3d2d4a 100%);
  color: #e0c3ff;
  border: none;
  box-shadow:
    0 4px 0 #2a1f33,
    0 6px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 15px rgba(200, 150, 255, 0.3);
}

.bothLoss::before {
  border-color: rgba(200, 150, 255, 0.5);
}

.attackLoss::after, .defenceLoss::after, .bothLoss::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 8px 8px 50% 50%;
  pointer-events: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.battle-zone {
  background:
    /* Brushed metal texture */
    repeating-linear-gradient(90deg, transparent 0px, rgba(255, 255, 255, 0.02) 1px, transparent 2px),
    repeating-linear-gradient(0deg, transparent 0px, rgba(0, 0, 0, 0.1) 1px, transparent 3px),
    /* Metal gradient */
    linear-gradient(180deg, #2a3035 0%, #1e2328 15%, #252b30 50%, #1a1f23 85%, #15191c 100%);
  border: 2px solid #3a4045;
  border-radius: 4px;
  padding: 25px 35px;
  margin: 10px 0;
  width: 400px;
  min-height: 480px;

  box-shadow:
    /* Inner bevel */
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    /* Outer shadow */
    0 10px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px #0d0f12,
    0 0 0 3px #1a1d22,
    0 0 0 4px #3a4045;
  position: relative;
  z-index: 2;
}

/* Metal rivets */
.battle-zone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(0, 255, 100, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

/* Rivet corners */
.battle-zone .rivet {
  position: absolute;
  width: 12px;
  height: 12px;
  background:
    radial-gradient(circle at 30% 30%, #5a6065 0%, #3a4045 40%, #252a30 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.battle-zone .rivet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 30% 30%, #6a7075 0%, #4a5055 100%);
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Tablet and smaller */
@media (max-width: 768px) {
  .container {
    padding: 15px 12px 70px;
    min-height: 100vh;
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.2rem;
    letter-spacing: 4px;
    padding: 0 25px;
    margin-bottom: 15px;
  }

  h1 .bullet-hole:nth-child(1) { width: 10px; height: 10px; top: 10px; left: 12px; }
  h1 .bullet-hole:nth-child(2) { width: 6px; height: 6px; top: 30px; left: 2px; }
  h1 .bullet-hole:nth-child(3) { width: 8px; height: 8px; top: 5px; right: 18px; }
  h1 .bullet-hole:nth-child(4) { width: 5px; height: 5px; bottom: 25px; right: 6px; }
  h1 .bullet-hole:nth-child(5) { width: 7px; height: 7px; top: 50%; left: -5px; }

  .battle-zone {
    width: 100%;
    max-width: 360px;
    padding: 20px 20px;
    min-height: 420px;
  }

  .battle-zone .rivet {
    width: 10px;
    height: 10px;
  }

  .battle-zone .rivet::after {
    width: 5px;
    height: 5px;
  }

  .section-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  .attack, .defence {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }

  .row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .dice {
    width: 45px;
    height: 45px;
    border-radius: 8px;
  }

  .dice-row {
    gap: 12px;
    min-height: 50px;
  }

  .vs-row {
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 3px 10px;
  }

  .attackLoss, .defenceLoss, .bothLoss {
    font-size: 1rem;
    width: 160px;
    height: 55px;
  }

  .selection {
    min-height: 240px;
  }

  .fundraiser {
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 10px 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 10px 10px 70px;
  }

  h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    padding: 0 15px;
    margin-bottom: 12px;
  }

  h1::after {
    margin-top: 8px;
  }

  h1 .bullet-hole:nth-child(1) { width: 7px; height: 7px; top: 6px; left: 8px; }
  h1 .bullet-hole:nth-child(2) { width: 4px; height: 4px; top: 24px; left: 2px; }
  h1 .bullet-hole:nth-child(3) { width: 5px; height: 5px; top: 4px; right: 12px; }
  h1 .bullet-hole:nth-child(4) { width: 3px; height: 3px; bottom: 18px; right: 4px; }
  h1 .bullet-hole:nth-child(5) { width: 5px; height: 5px; top: 50%; left: -6px; }

  .battle-zone {
    padding: 15px 12px;
    max-width: 100%;
    min-height: 380px;
  }

  .battle-zone .rivet {
    width: 8px;
    height: 8px;
  }

  .battle-zone .rivet::after {
    width: 4px;
    height: 4px;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .attack, .defence {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .dice {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    padding: 3px;
  }

  .dice-row {
    gap: 10px;
    min-height: 45px;
  }

  .vs-row {
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 2px 8px;
  }

  .attackLoss, .defenceLoss, .bothLoss {
    font-size: 0.9rem;
    width: 140px;
    height: 50px;
  }

  .selection {
    min-height: 220px;
  }

  .fundraiser {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 8px 15px;
  }
}

/* Small mobile */
@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .attack, .defence {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .row {
    gap: 8px;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .dice {
    width: 40px;
    height: 40px;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .container {
    padding: 30px 20px 80px;
  }

  h1 {
    font-size: 4.5rem;
    letter-spacing: 10px;
  }

  h1::before {
    font-size: 0.8rem;
  }

  .battle-zone {
    width: 500px;
    padding: 50px 60px;
    min-height: 560px;
  }

  .attack, .defence {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .row {
    gap: 20px;
    margin-bottom: 40px;
  }

  .section-label {
    font-size: 1.3rem;
    letter-spacing: 7px;
  }

  .dice {
    width: 75px;
    height: 75px;
    border-radius: 12px;
  }

  .dice-row {
    gap: 25px;
    min-height: 85px;
  }

  .attackLoss, .defenceLoss, .bothLoss {
    font-size: 1.5rem;
    width: 240px;
    height: 80px;
  }
}

/* ============================
   SEO & ACCESSIBILITY STYLES
   ============================ */

/* Visually hidden - accessible to screen readers but not visible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tool Description */
.tool-description {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  color: #c9b896;
  text-align: center;
  max-width: 400px;
  margin: 0 0 25px 0;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  opacity: 0.9;
}

/* FAQ Section */
.faq-section {
  width: 100%;
  max-width: 400px;
  margin-top: 40px;
  padding: 25px;
  background:
    repeating-linear-gradient(90deg, transparent 0px, rgba(255, 255, 255, 0.02) 1px, transparent 2px),
    repeating-linear-gradient(0deg, transparent 0px, rgba(0, 0, 0, 0.1) 1px, transparent 3px),
    linear-gradient(180deg, #2a3035 0%, #1e2328 15%, #252b30 50%, #1a1f23 85%, #15191c 100%);
  border: 2px solid #3a4045;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px #0d0f12,
    0 0 0 3px #1a1d22,
    0 0 0 4px #3a4045;
  position: relative;
  z-index: 2;
}

.faq-title {
  font-family: 'Black Ops One', cursive;
  font-size: 1.4rem;
  color: #d4c5a8;
  text-align: center;
  margin: 0 0 20px 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.5);
}

.faq-item {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(180, 150, 100, 0.2);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-item summary {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  color: #d4c5a8;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  position: relative;
  padding-right: 25px;
  transition: color 0.2s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.faq-item summary:hover {
  color: #e8dcc0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #c9b896;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: #b8a880;
  line-height: 1.6;
  margin: 0 0 15px 0;
  padding-left: 5px;
  opacity: 0.9;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-section {
    margin-top: 30px;
    padding: 20px;
    max-width: 360px;
  }
  
  .faq-title {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  
  .faq-item summary {
    font-size: 0.85rem;
  }
  
  .faq-item p {
    font-size: 0.8rem;
  }
  
  .tool-description {
    font-size: 0.85rem;
    max-width: 360px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .faq-section {
    margin-top: 25px;
    padding: 15px;
    max-width: 100%;
  }
  
  .faq-title {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
  }
  
  .faq-item summary {
    font-size: 0.8rem;
    padding: 10px 0;
  }
  
  .faq-item p {
    font-size: 0.75rem;
  }
  
  .tool-description {
    font-size: 0.8rem;
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 15px;
  }
}

/* ====== TOTAL CASUALTIES COUNTER - Military Nixie Tube Style ====== */
.casualty-counter {
  margin: 24px auto 0;
  text-align: center;
  max-width: 400px;
}

.counter-label {
  font-family: 'Stardos Stencil', 'Roboto Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #5a6e4a;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(90, 255, 60, 0.3);
}

.counter-housing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border: 2px solid #2a2a2a;
  border-radius: 6px;
  padding: 8px 16px;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.8),
    0 0 12px rgba(0,0,0,0.5),
    0 0 2px rgba(90, 255, 60, 0.1);
  gap: 3px;
  position: relative;
}

.counter-housing::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent);
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}

.counter-digit {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #4aff3a;
  text-shadow:
    0 0 8px rgba(74, 255, 58, 0.8),
    0 0 20px rgba(74, 255, 58, 0.4),
    0 0 40px rgba(74, 255, 58, 0.2);
  width: 24px;
  text-align: center;
  position: relative;
}

.counter-digit.dim {
  color: #1a3a15;
  text-shadow: none;
}

.counter-separator {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  color: #2a5a22;
  width: 10px;
  text-align: center;
}

.counter-skull {
  font-size: 1.4rem;
  margin-left: 10px;
  filter: drop-shadow(0 0 4px rgba(74, 255, 58, 0.5));
}

/* Red variant for when casualties spike */
.counter-digit.red {
  color: #ff3a3a;
  text-shadow:
    0 0 8px rgba(255, 58, 58, 0.8),
    0 0 20px rgba(255, 58, 58, 0.4),
    0 0 40px rgba(255, 58, 58, 0.2);
  transition: color 0.3s, text-shadow 0.3s;
}

.counter-digit.tick {
  animation: digit-tick 0.3s ease-out;
}

@keyframes digit-tick {
  0% { transform: translateY(-4px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}
