/* game-renderer.css — shared styles for replay + live visualizer */

/* Players grid */
#players-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex: 1;
  min-width: 0;
}

/* 1v1: stack players vertically like XMage (opponent on top, you on bottom) */
#players-grid.players-1v1 {
  grid-template-columns: 1fr;
}

@media (max-width: 800px) {
  #players-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .player-body {
    flex-direction: column;
  }

  .side-zones {
    width: auto;
    border-right: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  }

  .side-zones .cards-row {
    flex-direction: row;
  }

  #stack-section {
    width: auto;
  }

  #stack-section .cards-row {
    flex-direction: row;
  }

  #stack-section .card-thumb {
    width: 80px;
  }

  .battlefield-zone {
    min-height: 120px;
  }
}

.player-card {
  border: 1px solid #0f3460;
  border-radius: 8px;
  background: #16213e;
  overflow: hidden;
}

.player-card.eliminated {
  opacity: 0.5;
}

/* Player accent colors with tinted backgrounds */
.player-card.player-0 {
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-left: 3px solid #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), #16213e 40%);
}
.player-card.player-1 {
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 3px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), #16213e 40%);
}
.player-card.player-2 {
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left: 3px solid #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), #16213e 40%);
}
.player-card.player-3 {
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 3px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), #16213e 40%);
}
.player-name.player-0 { color: #3b82f6; }
.player-name.player-1 { color: #ef4444; }
.player-name.player-2 { color: #22c55e; }
.player-name.player-3 { color: #f59e0b; }
.action-player-0 { color: #3b82f6; font-weight: 600; }
.action-player-1 { color: #ef4444; font-weight: 600; }
.action-player-2 { color: #22c55e; font-weight: 600; }
.action-player-3 { color: #f59e0b; font-weight: 600; }

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0e0e0;
}

.player-name.has-priority {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Active turn: accent-colored outline on entire player card */
.player-card.player-0.active-turn { border: 2px solid #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.3); }
.player-card.player-1.active-turn { border: 2px solid #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.3); }
.player-card.player-2.active-turn { border: 2px solid #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.3); }
.player-card.player-3.active-turn { border: 2px solid #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }

.player-life {
  font-size: 0.85rem;
  color: #a0a0b8;
}

.player-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.player-model {
  font-size: 0.65rem;
  color: #888;
  font-family: monospace;
}

.player-cost {
  font-size: 0.65rem;
  color: #a8d9a5;
  font-family: monospace;
}

.player-counters {
  font-size: 0.75rem;
  color: #a0a0b8;
  padding: 0.15rem 0.75rem;
}

/* Player body: side zones + main zones horizontal layout */
.player-body {
  display: flex;
  gap: 0.5rem;
}

.side-zones {
  width: 95px;
  flex-shrink: 0;
  border-right: 1px dashed rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.main-zones {
  flex: 1;
  min-width: 0;
}

/* Battlefield minimum height: space for creatures row + lands row */
.battlefield-zone {
  min-height: 240px;
}

/* Zones */
.zone {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.zone:last-child {
  border-bottom: 0;
}

/* Side zones: compact styling with stacked/overlapping cards */
.side-zones .zone {
  padding: 0.3rem 0.4rem;
}

.side-zones .zone-title {
  font-size: 0.6rem;
}

.side-zones .cards-row {
  flex-direction: column;
}

/* Stack cards with overlap in side zones (like Java graveyard) */
.side-zones .cards-grid-sm {
  gap: 0;
}

.side-zones .card-thumb-sm {
  width: 70px;
}

/* Graveyard zone colored border */
.graveyard-zone {
  border-bottom: 2px solid rgba(168, 85, 247, 0.3) !important;
}

/* Hand zone colored border */
.hand-zone {
  border-bottom: 2px solid rgba(59, 130, 246, 0.3) !important;
}

.zone-title {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a0a0b8;
  margin-bottom: 0.3rem;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Card chips */
.card-chip {
  border: 1px solid rgba(150, 195, 205, 0.2);
  background: rgba(44, 64, 72, 0.8);
  color: #e0e0e0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  line-height: 1.4;
  cursor: default;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.card-chip:hover {
  border-color: #e94560;
}

.card-chip.tapped {
  opacity: 0.6;
  font-style: italic;
}

.card-chip.tapped::before {
  content: "\u27F3 ";
  font-style: normal;
}

.card-chip .pt {
  color: #a8d9a5;
  margin-left: 2px;
}

.card-chip .chip-owner {
  color: #888;
  font-size: 0.85em;
}

.zone-empty {
  font-size: 0.7rem;
  color: #555;
  font-style: italic;
}

/* Battlefield card thumbnails */
.cards-grid {
  gap: 6px;
  align-items: flex-start;
}

.card-thumb {
  position: relative;
  width: 80px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(150, 195, 205, 0.2);
  transition: border-color 0.15s;
  cursor: default;
  flex-shrink: 0;
}

.card-thumb:hover {
  border-color: #e94560;
  z-index: 1;
}

.card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  aspect-ratio: 146 / 204;
  background: rgba(44, 64, 72, 0.8);
}

.card-thumb.tapped {
  transform: rotate(90deg);
  margin: 16px 16px;
}

.card-thumb-pt {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #a8d9a5;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 64, 72, 0.8);
  color: #e0e0e0;
  font-size: 0.5rem;
  text-align: center;
  padding: 4px;
  word-break: break-word;
}

/* Token card styled fallback */
.card-thumb-fallback.token-fallback {
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(180deg, rgba(120, 80, 200, 0.4), rgba(44, 64, 72, 0.9));
  border: 1px solid rgba(168, 130, 255, 0.3);
}

.token-label {
  font-size: 0.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 170, 255, 0.8);
  font-weight: 700;
}

.token-name {
  font-size: 0.55rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.2;
}

.token-pt {
  font-size: 0.6rem;
  font-weight: 700;
  color: #a8d9a5;
  margin-top: auto;
}

/* Small thumbnails for hand/graveyard/exile */
.card-thumb-sm {
  width: 65px;
}

.cards-grid-sm {
  gap: 4px;
}

/* Battlefield zone with land/nonland split */
.battlefield-zone .land-row {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Stacked land card */
.land-stack {
  position: relative;
}

.land-count-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.85);
  color: #e0e0e0;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
  z-index: 1;
}

/* Section titles */
.section-title {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a0a0b8;
  margin-bottom: 0.4rem;
}

/* Stack (left sidebar next to battlefields) */
#stack-section {
  width: 120px;
  flex-shrink: 0;
  padding: 0.5rem;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  align-self: stretch;
}

#stack-section .cards-row {
  flex-direction: column;
  gap: 6px;
}

#stack-section .card-thumb {
  width: 100%;
}

/* Card preview (follows mouse cursor) */
#card-preview {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid #0f3460;
  border-radius: 8px;
  background: rgba(22, 33, 62, 0.97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  pointer-events: none;
}

#card-preview img:not(.mana-icon) {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.card-cost {
  flex-shrink: 0;
}

.card-type {
  font-size: 0.75rem;
  color: #a0a0b8;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-rules {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #c0c0d0;
  font-family: system-ui, -apple-system, sans-serif;
  flex: 1;
}

.card-stats {
  font-size: 0.75rem;
  color: #a8d9a5;
  text-align: right;
  margin-top: 4px;
}

@media (max-width: 600px) {
  #card-preview {
    grid-template-columns: 100px 1fr;
  }
}

/* Mana symbols */
.mana-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  margin: 0 1px;
}

.card-cost .mana-icon {
  width: 16px;
  height: 16px;
}

.card-rules .mana-icon {
  width: 13px;
  height: 13px;
}

/* Diff highlight animations */
@keyframes card-enter-glow {
  0% {
    border-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  }
  100% {
    border-color: rgba(150, 195, 205, 0.2);
    box-shadow: none;
  }
}

.card-chip.card-entered,
.card-thumb.card-entered {
  animation: card-enter-glow 1.5s ease-out;
}

@keyframes card-ghost-fade {
  0% {
    opacity: 0.7;
    border-color: #e94560;
    box-shadow: 0 0 6px rgba(233, 69, 96, 0.4);
  }
  70% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
    overflow: hidden;
  }
}

.card-chip.card-ghost {
  animation: card-ghost-fade 2s ease-out forwards;
  border-color: #e94560;
  text-decoration: line-through;
  pointer-events: none;
}

.card-thumb.card-ghost {
  animation: card-ghost-fade 2s ease-out forwards;
  border-color: #e94560;
  pointer-events: none;
  filter: grayscale(0.5);
}

@keyframes life-pulse-up {
  0% { color: #4caf50; transform: scale(1.15); }
  100% { color: #a0a0b8; transform: scale(1); }
}

@keyframes life-pulse-down {
  0% { color: #e94560; transform: scale(1.15); }
  100% { color: #a0a0b8; transform: scale(1); }
}

.life-changed-up {
  animation: life-pulse-up 1.2s ease-out;
  display: inline-block;
}

.life-changed-down {
  animation: life-pulse-down 1.2s ease-out;
  display: inline-block;
}

.life-up {
  color: #4caf50;
  font-weight: 600;
}

.life-down {
  color: #e94560;
  font-weight: 600;
}

@keyframes tap-highlight {
  0% {
    box-shadow: 0 0 6px rgba(168, 217, 165, 0.6);
    border-color: #a8d9a5;
  }
  100% {
    box-shadow: none;
    border-color: rgba(150, 195, 205, 0.2);
  }
}

.card-chip.card-tap-changed,
.card-thumb.card-tap-changed {
  animation: tap-highlight 1.2s ease-out;
}

/* Positioned mode (OBS overlay) */
.position-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.position-card {
  position: absolute;
  border: 1px solid rgba(95, 196, 214, 0.45);
  background: rgba(95, 196, 214, 0.15);
  color: #dff7fb;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.15;
  padding: 2px 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  user-select: none;
}

.position-card.tapped {
  border-style: dashed;
  opacity: 0.8;
  transform: rotate(90deg);
}

.position-card.small {
  font-size: 0;
  padding: 0;
}

.position-card.wrap-name {
  white-space: normal;
  word-break: break-word;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.positioned-mode {
  position: fixed;
  inset: 0;
  padding: 0;
}

.positioned-mode .game-header-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 5;
  pointer-events: none;
}

.positioned-mode #players-grid {
  display: none !important;
}

.positioned-mode #stack-section {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: auto;
  max-width: 80vw;
  background: rgba(22, 33, 62, 0.92);
}

/* Timestamp on every log entry */
.entry-ts {
  font-family: monospace;
  font-size: 0.75em;
  color: #555;
  margin-right: 0.35rem;
  cursor: default;
  user-select: none;
}

/* LLM event display in action log */
.llm-event {
  margin: 2px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.llm-thought {
  border-left: 3px solid #888;
  padding: 8px 12px;
  margin: 6px 0;
  background: rgba(136, 136, 136, 0.08);
  border-radius: 0 6px 6px 0;
}

.llm-thought .llm-player {
  font-weight: 600;
  font-size: 0.9rem;
}

.llm-thought .llm-reasoning {
  color: #d0d0e0;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.llm-thinking-block {
  margin: 6px 0;
  font-size: 0.75rem;
}

.llm-thinking-block summary {
  color: #c084fc;
  cursor: pointer;
  font-style: italic;
  padding: 2px 0;
}

.llm-thinking-text {
  color: #a78bfa;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  max-height: 20rem;
  overflow-y: auto;
  margin-top: 4px;
  padding: 8px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  line-height: 1.4;
}

.llm-compact {
  color: #888;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 1px 0;
}

.llm-compact .llm-player {
  font-weight: 600;
}

/* Inline tool result (expandable) within merged LLM events */
.llm-tool-detail {
  font-size: 0.72rem;
  color: #888;
  margin: 2px 0;
}

.llm-tool-detail summary {
  cursor: pointer;
  font-family: monospace;
  padding: 1px 0;
  list-style: disclosure-closed;
  word-break: break-all;
}

.llm-tool-detail summary::-webkit-details-marker {
  color: #666;
}

.llm-tool-detail[open] summary {
  list-style: disclosure-open;
}

.llm-tool-detail pre {
  margin: 4px 0 4px 16px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #b0b0c0;
  max-height: 12rem;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.llm-meta {
  color: #666;
  font-size: 0.7rem;
  font-style: italic;
  padding: 1px 0;
}

.llm-cost {
  color: #666;
  font-size: 0.65rem;
  font-family: monospace;
  margin-left: 6px;
}

/* Player-colored left borders and background tints for LLM thoughts */
.llm-thought.llm-player-0 { border-left-color: #3b82f6; background: rgba(59, 130, 246, 0.06); }
.llm-thought.llm-player-1 { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.06); }
.llm-thought.llm-player-2 { border-left-color: #22c55e; background: rgba(34, 197, 94, 0.06); }
.llm-thought.llm-player-3 { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.06); }

/* Action log lines (shared by live + replay) */
.action-line {
  padding: 0.15rem 0;
  color: #c0c0d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.action-line:last-child {
  border-bottom: 0;
}

/* Chat message styling in action log */
.chat-line {
  padding: 0.15rem 0.4rem;
  color: #c0c0d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-style: italic;
  background: rgba(20, 184, 166, 0.08);
  border-left: 2px solid rgba(20, 184, 166, 0.5);
}

.chat-line .chat-from {
  font-style: normal;
  font-weight: 600;
}

/* Badge labels for chat and thinking */
.chat-badge,
.thinking-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: baseline;
  font-style: normal;
  line-height: 1.4;
}

.chat-badge {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
}

.thinking-badge {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

/* Game log panel (shared by live + replay) */
.game-log {
  padding: 0.75rem 1rem;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  position: sticky;
  top: 0.5rem;
}

.game-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.game-log-list {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Blunder annotations */
.annotation-block {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid;
  font-size: 0.9rem;
}

.annotation-block.severity-questionable {
  background: rgba(148, 163, 184, 0.08);
  border-left-color: #94a3b8;
}

.annotation-block.severity-minor {
  background: rgba(251, 191, 36, 0.08);
  border-left-color: #fbbf24;
}

.annotation-block.severity-moderate {
  background: rgba(249, 115, 22, 0.08);
  border-left-color: #f97316;
}

.annotation-block.severity-major {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.annotation-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 4px;
}

.annotation-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.annotation-badge.severity-questionable {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.annotation-badge.severity-minor {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.annotation-badge.severity-moderate {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.annotation-badge.severity-major {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}


.annotation-description {
  color: #e0e0f0;
  line-height: 1.4;
  margin-bottom: 4px;
}

.annotation-details {
  font-size: 0.72rem;
  margin-top: 4px;
}

.annotation-details summary {
  color: #a0a0b8;
  cursor: pointer;
  font-size: 0.7rem;
}

.annotation-field {
  color: #c0c0d0;
  margin: 2px 0;
  line-height: 1.4;
}

.annotation-field strong {
  color: #a0a0b8;
}

/* Timeline annotation markers */
.annotation-markers {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  pointer-events: none;
}

.annotation-marker {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.annotation-marker:hover {
  transform: translate(-50%, -50%) scale(1.5);
}

.annotation-marker.severity-questionable {
  background: #94a3b8;
}

.annotation-marker.severity-minor {
  background: #fbbf24;
}

.annotation-marker.severity-moderate {
  background: #f97316;
}

.annotation-marker.severity-major {
  background: #ef4444;
}

/* Harness epoch (small metadata) */
#epoch-info {
  font-size: 0.6rem;
  color: #666;
  font-family: monospace;
}

#epoch-banner {
  font-size: 0.85rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

#blunder-summary {
  font-size: 0.8rem;
  color: #f97316;
  font-weight: 600;
}

#blunder-summary .old-analysis-tag {
  color: #a0a0b8;
  font-size: 0.7rem;
  font-weight: 400;
  font-style: italic;
}

/* Phase bar between player battlefields */
#phase-bar {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: #a0a0b8;
  padding: 0.3rem 0.75rem;
  background: rgba(15, 52, 96, 0.3);
  border: 1px solid rgba(15, 52, 96, 0.5);
  border-radius: 6px;
}

.game-result-line {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #e0e0f0;
  padding: 0.75rem 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #0f3460;
}

.hidden {
  display: none !important;
}
