@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

body {
  --bg-color: #14141c;
  font-family: system-ui, sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(#2a2a3a 1px, transparent 1px);
  background-size: 24px 24px;
  transition: background-color 0.6s;
  color: #eee;
  padding: 8.5rem 13rem 10rem 12rem;
}

h1, h2, h3 { font-family: "Press Start 2P", monospace; letter-spacing: 0.02em; }

.pixel-icon { width: 32px; height: 32px; image-rendering: pixelated; margin-bottom: 0.5rem; }

#title-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #14141c;
  background-image:
    radial-gradient(#2a2a3a 1px, transparent 1px);
  background-size: 24px 24px;
}
#title-screen[hidden] { display: none; }

#title-logo { width: 240px; height: 120px; image-rendering: pixelated; }

#title-name {
  font-family: "Press Start 2P", monospace;
  font-size: 1.75rem;
  text-align: center;
  color: #eee;
  text-shadow: 3px 3px 0 #2b6cd4;
  line-height: 1.6;
}
#title-name span { display: block; font-size: 0.9rem; color: #d4b62b; }

#title-menu { display: flex; flex-direction: column; gap: 0.75rem; width: 220px; }
#title-menu button, #exit-message {
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  padding: 0.9rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 4px 4px 0 #000;
}
#title-menu button:hover { background: #444; border-color: #888; }
#title-menu button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
#exit-btn { border-color: #7a2f2f; }
#exit-message { text-align: center; box-shadow: none; border: none; }

#challenge-select {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: #14141c;
  background-image: radial-gradient(#2a2a3a 1px, transparent 1px);
  background-size: 24px 24px;
}
#challenge-select[hidden] { display: none; }
#challenge-select h2 { font-size: 1.1rem; color: #d4b62b; }
#challenge-roster { display: flex; gap: 1.5rem; }
.persona-card {
  box-sizing: border-box;
  width: 140px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}
.persona-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.persona-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.persona-card-icon {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.persona-card span {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  color: #eee;
  text-align: center;
  line-height: 1.4;
}
#challenge-back {
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  padding: 0.9rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 4px 4px 0 #000;
}
#challenge-back:hover { background: #444; border-color: #888; }
#challenge-back:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

#campaign-intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #14141c;
  background-image: radial-gradient(#2a2a3a 1px, transparent 1px);
  background-size: 24px 24px;
}
#campaign-intro[hidden] { display: none; }
#campaign-intro h2 { font-size: 1rem; color: #d4b62b; }
#campaign-intro h3 { font-size: 0.9rem; color: #eee; margin: 0; }
#campaign-intro-battle-title { color: #7ec8e3; font-style: italic; }

#campaign-intro-speech-bubble {
  position: relative;
  max-width: 320px;
  padding: 0.9rem 1.1rem;
  background: #eee;
  color: #1a1a1a;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}
#campaign-intro-speech-bubble::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid #000;
}
#campaign-intro-speech-bubble::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 11px solid #eee;
  z-index: 1;
}
#campaign-intro-line {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}
#campaign-intro .persona-card-icon {
  width: 140px;
  height: 140px;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
}
#campaign-start-match-btn {
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  padding: 0.9rem 1.5rem;
  background: #2ea043;
  color: #fff;
  border: 3px solid #1f7530;
  box-shadow: 4px 4px 0 #000;
}
#campaign-start-match-btn:hover { background: #3fc95a; }
#campaign-start-match-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

#trophy-icon { width: 64px; height: 64px; image-rendering: pixelated; margin: 0 auto 0.5rem; display: block; }

#pod-select {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: #14141c;
  background-image: radial-gradient(#2a2a3a 1px, transparent 1px);
  background-size: 24px 24px;
}
#pod-select[hidden] { display: none; }
#pod-select h2 { font-size: 1.1rem; color: #d4b62b; }
#pod-select p { font-size: 0.85rem; color: #ccc; max-width: 400px; text-align: center; }
#pod-select-roster { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.pod-card {
  box-sizing: border-box;
  width: 140px;
  padding: 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
}
.pod-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.pod-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.pod-card .inline-icon { width: 24px; height: 24px; }
#pod-select-back {
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  padding: 0.9rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 4px 4px 0 #000;
}
#pod-select-back:hover { background: #444; border-color: #888; }
#pod-select-back:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

#sidebar[hidden] { display: none; }
#sidebar {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1rem;
  background: #1c1c26;
  border-right: 3px solid #444;
  z-index: 10;
}

#sidebar #turn-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  background: #262633;
  border: 3px solid #444;
}
#sidebar #turn-badge svg { width: 18px; height: 18px; }
#sidebar #turn-count { font-family: "Press Start 2P", monospace; font-size: 0.65rem; }

#sidebar button {
  padding: 0.6rem 0.4rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 3px 3px 0 #000;
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
}
#sidebar button:not(:disabled):hover { background: #444; border-color: #888; }
#sidebar button:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }

.field-action-btn {
  display: block;
  margin: 1rem 0 0;
  padding: 0.7rem 1rem;
  width: 100%;
  background: #d4b62b;
  color: #1a1a1a;
  border: 3px solid #a88a1a;
  box-shadow: 3px 3px 0 #000;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
}
.field-action-btn:hover { background: #e8cc4a; }
.field-action-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.field-action-btn[hidden] { display: none; }
.field-action-deliver { background: #2ea043; color: #fff; border-color: #1f7530; }
.field-action-deliver:hover { background: #3fc95a; }
#sidebar button:disabled { opacity: 0.4; cursor: not-allowed; }
#sidebar #forfeit { background: #5a2020; border-color: #7a2f2f; }
#rules-btn { margin-top: auto; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  background: #1c1c26;
  color: #eee;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  border-radius: 0;
  border: 3px solid #555;
  box-shadow: 6px 6px 0 #000;
}
.modal h3 { margin-top: 1.25rem; }
.modal ul, .modal ol { padding-left: 1.25rem; }
.modal button:not(#rules-close):not(#leaderboard-close) {
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0.5rem 0 0;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 3px 3px 0 #000;
}
.modal button:not(#rules-close):not(#leaderboard-close):hover { background: #444; border-color: #888; }
.modal button:not(#rules-close):not(#leaderboard-close):disabled { opacity: 0.5; cursor: not-allowed; }
#save-results-btn, #campaign-save-results-btn { background: #2ea043; border-color: #1f7530; }
#leaderboard-list ol { padding-left: 1.5rem; }
#leaderboard-list li { margin-bottom: 0.5rem; font-size: 0.9rem; }

.modal input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.75rem 0;
  padding: 0.6rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
}
.modal input[type="text"]::placeholder { color: #888; }

#rules-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #eee;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
#settings {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
  background: #1c1c26;
  border: 3px solid #555;
  box-shadow: 6px 6px 0 #000;
  padding: 1.5rem;
}
#settings[hidden] { display: none; }
#settings label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
#settings input {
  width: 80px;
  background: #333;
  color: #eee;
  border: 2px solid #555;
  font-family: monospace;
  padding: 0.2rem;
}
#settings button {
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  padding: 0.7rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 3px 3px 0 #000;
}
#settings button:hover { background: #444; border-color: #888; }
#settings button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
#top-banner {
  position: fixed;
  top: 0;
  left: 9rem;
  right: 0;
  height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  background: #1c1c26;
  border-bottom: 3px solid #444;
  z-index: 15;
}
#top-banner .pixel-icon { width: 24px; height: 24px; margin-bottom: 0; }
#delivery-goal { font-family: "Press Start 2P", monospace; font-size: 0.9rem; color: #d4b62b; }
#game-result { font-family: "Press Start 2P", monospace; font-size: 0.9rem; color: #2ea043; margin-left: auto; }

#value-meter, #opponent-value-meter {
  position: fixed;
  left: 9rem;
  right: 0;
  height: 2rem;
  background: #333;
  border-bottom: 3px solid #444;
  z-index: 14;
  overflow: hidden;
}
#value-meter { top: 3.5rem; }
#opponent-value-meter { top: 5.5rem; }
#value-meter-fill, #opponent-value-meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s;
}
#value-meter-fill { background: #2ea043; }
#opponent-value-meter-fill { background: #d43b3b; }
#value-meter-label, #opponent-value-meter-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 #000;
  gap: 0.5rem;
}

.meter-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0;
}
.meter-tag-you { background: #2ea043; color: #fff; }
.meter-tag-opponent { background: #d43b3b; color: #fff; }

#capacity-row { display: flex; gap: 0.4rem; margin: 0.5rem 0 1rem; }
#player-shield { font-size: 0.85rem; margin-bottom: 0.75rem; }
#player-shield[hidden] { display: none; }
.capacity-icon { width: 20px; height: 20px; color: #d4b62b; }
.capacity-icon svg { width: 100%; height: 100%; }
.capacity-icon.spent { color: #555; }

#opponent-status {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #333;
}
#opponent-portrait {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#opponent-portrait img { width: 100%; height: 100%; object-fit: cover; }

@keyframes persona-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.persona-photo { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; animation: persona-bob 1.8s ease-in-out infinite; }

#opponent-status-header {
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  color: #d43b3b;
  margin-bottom: 0.5rem;
}
#opponent-shield-row[hidden] { display: none; }
#opponent-status-text .stat-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}
#opponent-capacity-row { display: flex; gap: 0.3rem; }
#opponent-capacity-row .capacity-icon { width: 16px; height: 16px; }

#opponent-dialogue {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.6rem 0.9rem;
  background: #eee;
  color: #1a1a1a;
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
}
#opponent-dialogue[hidden] { display: none; }
#opponent-dialogue.lose-line { background: #f3d9d9; }
#opponent-dialogue-line {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: center;
}

.inline-icon { display: inline-flex; width: 14px; height: 14px; vertical-align: -2px; }
.inline-icon svg { width: 100%; height: 100%; }
#delivery-goal .inline-icon, #value-meter-label .inline-icon { width: 16px; height: 16px; vertical-align: -3px; }
.inline-icon-capacity { color: #d4b62b; }
.inline-icon-insight { color: #2ea043; }
.inline-icon-value { color: #d43b3b; }
.inline-icon-draw { color: #2b6cd4; }
.inline-icon-shield { color: #7ec8e3; }

.rules-pod-list { list-style: none; padding-left: 0; }
.rules-pod-list li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.pod-swatch { display: inline-block; flex: none; width: 14px; height: 14px; margin-top: 0.15rem; border: 1px solid rgba(0, 0, 0, 0.3); }

#learning-deck-bar {
  position: fixed;
  bottom: 0;
  left: 9rem;
  right: 0;
  height: 9.5rem;
  background: #1c1c26;
  border-top: 3px solid #444;
  padding: 0.5rem 1.5rem;
  overflow-x: auto;
  z-index: 15;
}
#learning-deck-bar[hidden] { display: none; }
#learning-deck-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  color: #d4b62b;
  margin-bottom: 0.4rem;
}
#learning-deck-bar #shop { margin: 0; flex-wrap: nowrap; }

#refresh-shop-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  padding: 0.4rem 0.6rem;
  background: #333;
  color: #eee;
  border: 3px solid #555;
  box-shadow: 3px 3px 0 #000;
}
#refresh-shop-btn:not(:disabled):hover { background: #444; border-color: #888; }
#refresh-shop-btn:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
#refresh-shop-btn:disabled { opacity: 0.4; cursor: not-allowed; }

#play-field { display: flex; gap: 1.5rem; align-items: flex-start; }
.field-half {
  position: relative;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  padding: 1rem;
  border: 3px solid #333;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-half.active-turn { border-color: #d4b62b; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(212, 182, 43, 0.35) inset; }
#opponent-area.active-turn { border-color: #d43b3b; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(212, 59, 59, 0.35) inset; }

.field-half.taking-damage { animation: field-jiggle 0.5s ease-in-out; }

.damage-flash-overlay {
  position: absolute;
  inset: 0;
  background: #ff3333;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.field-half.taking-damage .damage-flash-overlay { animation: damage-flash 0.6s ease-out; }

.damage-popup {
  position: absolute;
  top: 40%;
  left: 50%;
  font-family: "Press Start 2P", monospace;
  font-size: 1.6rem;
  color: #ff3333;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
  z-index: 7;
  animation: damage-popup 1s ease-out forwards;
}

@keyframes field-jiggle {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 2px) rotate(-2deg); }
  30% { transform: translate(4px, -2px) rotate(2deg); }
  45% { transform: translate(-3px, 1px) rotate(-1deg); }
  60% { transform: translate(3px, -1px) rotate(1deg); }
  75% { transform: translate(-2px, 1px); }
}
@keyframes damage-flash {
  0% { opacity: 0.65; }
  100% { opacity: 0; }
}
@keyframes damage-popup {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 1; transform: translate(-50%, -20px); }
  100% { opacity: 0; transform: translate(-50%, -28px); }
}

#pile-row { display: flex; gap: 0.75rem; margin: 0.5rem 0 1rem; }

.pile-widget {
  position: relative;
  box-sizing: border-box;
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: #333;
  border: 3px solid #555;
  box-shadow: 3px 3px 0 #000;
  cursor: default;
}
.pile-icon { width: 32px; height: 24px; image-rendering: pixelated; }
.pile-icon svg { width: 100%; height: 100%; overflow: visible; }
.pile-count { font-family: "Press Start 2P", monospace; font-size: 0.55rem; }
.pile-popover {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 0.5rem);
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: #1c1c26;
  border: 3px solid #555;
  box-shadow: 5px 5px 0 #000;
  padding: 0.5rem;
  z-index: 25;
}
.pile-widget:hover .pile-popover { display: block; }
.pile-card { font-size: 0.75rem; padding: 0.2rem 0; border-bottom: 1px solid #333; }
.pile-card:last-child { border-bottom: none; }
.pile-card.pile-empty { opacity: 0.6; font-style: italic; }

#hand, #shop, #opponent-play-cards, #opponent-buy-cards { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
button { cursor: pointer; border: none; border-radius: 4px; font-weight: 600; }

.card-wrap { display: flex; flex-direction: column; gap: 0.3rem; }
.free-play { padding: 0.3rem; background: #8e44ec; color: #fff; font-size: 0.75rem; border: 2px solid #6a2fb0; }
.free-play:disabled { opacity: 0.4; cursor: not-allowed; }

.card {
  position: relative;
  width: 180px;
  min-height: 160px;
  padding: 0.6rem;
  padding-top: 1.6rem;
  border-radius: 0;
  border: 3px solid #000;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 5px 5px 0 #000, 5px 5px 0 1px rgba(0, 0, 0, 0.4);
}
.card:disabled { opacity: 0.4; cursor: not-allowed; }

.card-badge {
  position: absolute;
  top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.card-badge svg { width: 16px; height: 16px; }
.card-badge-insight { left: 0.4rem; color: #1f7530; }
.card-badge-capacity { right: 0.4rem; color: #8a6015; }
.card-badge-inactive { opacity: 0.35; }

.card-effect-badges { display: flex; gap: 0.5rem; margin: 0.1rem 0; }
.card-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.card-badge-inline svg { width: 14px; height: 14px; }
.card-badge-value { color: #952424; }
.card-badge-draw { color: #1c4a94; }
.card-badge-shield { color: #2c6e85; }

/* Inline resource icons (see card-ui.js withResourceIcons) darkened specifically
   inside cards, since the card badge colors above already match this palette. */
.card .inline-icon-capacity { color: #8a6015; }
.card .inline-icon-insight { color: #1f7530; }
.card .inline-icon-value { color: #952424; }
.card .inline-icon-draw { color: #1c4a94; }

.card-name { font-size: 0.95rem; font-weight: 700; color: #1a1a1a; }
.card-desc { font-size: 0.75rem; font-weight: 400; line-height: 1.25; opacity: 0.95; color: #1a1a1a; }

.card-corner {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: -4px 0 0 rgba(0, 0, 0, 0.2), 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.card-dev         { background: #86aee8; color: #1a1a1a; }
.card-bi          { background: #e69a9a; color: #1a1a1a; }
.card-ds          { background: #8fd6a3; color: #1a1a1a; }
.card-enablement  { background: #ecd583; color: #1a1a1a; }
.card-generic     { background: #eee;    color: #1a1a1a; }
.card-opponent    { background: #c19bf0; color: #1a1a1a; }
