/* ==========================================================================
   3RB RISK - Global Domination Stylesheet
   Luxury War Room Aesthetic, Wooden Command Table, Realistic 3D Elements
   // momen.evil
   ========================================================================== */

:root {
  --risk-gold: #f59e0b;
  --risk-gold-light: #fbbf24;
  --risk-gold-dark: #b45309;
  --risk-red: #ef4444;
  --risk-blue: #0284c7;
  --risk-green: #10b981;
  --risk-yellow: #eab308;
  --risk-purple: #9333ea;
  --risk-orange: #ea580c;
  --risk-border-gold: rgba(245, 158, 11, 0.4);
  --risk-bg-dark: #070b13;
  --risk-panel-bg: rgba(13, 20, 36, 0.95);
  --risk-table-felt: #1a2332;
}

/* Container */
.risk-game-root {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: radial-gradient(circle at center, #172338 0%, #070a12 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Cairo', 'Readex Pro', sans-serif;
  user-select: none;
  color: #fff;
}

/* Top Command Bar */
.risk-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(9, 14, 25, 0.94);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(14px);
  z-index: 30;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  height: 56px;
  box-sizing: border-box;
}

.risk-hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.risk-hud-brand .risk-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--risk-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  object-fit: cover;
}

.risk-hud-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .risk-hud-title {
    display: none;
  }
}

.risk-hud-title span {
  color: var(--risk-gold);
}

/* Phase Navigation Bar */
.risk-phase-pill-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 3px;
  gap: 4px;
}

.risk-phase-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.risk-phase-step.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.6));
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.risk-phase-step .step-icon {
  width: 15px;
  height: 15px;
}

/* Action Buttons in HUD */
.risk-hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.risk-hud-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.risk-hud-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--risk-gold);
  background: rgba(245, 158, 11, 0.2);
}

.risk-hud-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-color: #fbbf24;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4);
}

.risk-hud-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6);
}

.risk-hud-btn.danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border-color: #f87171;
}

.risk-hud-btn.active-feature {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

.risk-hud-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.risk-badge-count {
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Main Playing Arena Layout */
.risk-main-arena {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
  height: calc(100% - 56px);
  width: 100%;
}

/* Sidebar with Continents & Players */
.risk-sidebar {
  width: 305px;
  background: rgba(10, 15, 26, 0.94);
  border-inline-end: 1.5px solid rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
}

.risk-sidebar.collapsed {
  width: 0 !important;
  border-inline-end: none;
  transform: translateX(110%);
  pointer-events: none;
  opacity: 0;
}

.risk-sidebar-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  box-sizing: border-box;
}

.risk-sidebar-header-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--risk-gold-light);
  letter-spacing: -0.2px;
}

.risk-sidebar-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}

.risk-sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fca5a5;
}

.risk-sidebar-toggle-btn {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 25;
  background: rgba(13, 20, 36, 0.94);
  border: 1.5px solid var(--risk-border-gold);
  color: var(--risk-gold-light);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.risk-sidebar-toggle-btn:hover {
  background: var(--risk-gold);
  color: #000;
  transform: translateY(-1px);
}

.risk-sidebar-section {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.risk-sidebar-section.risk-roster-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 10px 4px 10px;
}

.risk-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--risk-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* Continents Bonus List - Ultra-Compact 3-Column Grid */
.risk-continents-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.risk-continent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 0.64rem;
  transition: all 0.2s;
  min-width: 0;
  min-height: 20px;
}

.risk-continent-item.controlled {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.risk-continent-info {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.risk-continent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.risk-continent-name {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.62rem;
}

.risk-continent-bonus {
  font-weight: 800;
  color: var(--risk-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 0 3px;
  border-radius: 4px;
  font-size: 0.62rem;
  flex-shrink: 0;
}

/* Players Roster in Sidebar */
.risk-players-roster {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  padding: 2px 2px 6px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.4) rgba(0, 0, 0, 0.25);
}

.risk-players-roster::-webkit-scrollbar {
  width: 4px;
}

.risk-players-roster::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.risk-players-roster::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

.risk-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
  min-height: 42px;
  box-sizing: border-box;
}

.risk-player-card.active-turn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.09));
  border-color: var(--risk-gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.risk-player-card.eliminated {
  opacity: 0.35;
  filter: grayscale(1);
  text-decoration: line-through;
}

.risk-pcard-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.risk-pcard-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.risk-pcard-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #555;
}

.risk-pcard-color-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
}

.risk-pcard-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.risk-pcard-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  max-width: 100%;
  line-height: 1.25;
  unicode-bidi: plaintext;
  text-align: start;
}

.risk-you-tag {
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.25);
  color: var(--risk-gold-light);
  border: 1px solid var(--risk-gold);
  border-radius: 4px;
  padding: 0 4px;
  margin-inline-start: 4px;
  display: inline-block;
  vertical-align: middle;
}

.risk-pcard-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.risk-pcard-stat-pill {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 6px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Board Center Viewport with Responsive Scale-to-Fit */
.risk-board-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(20, 31, 52, 0.45) 0%, rgba(6, 9, 16, 0.96) 100%),
              url('/assets/risk/board_texture.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.95);
  width: 100%;
  height: 100%;
}

/* Master Fixed Resolution Board Canvas (1376 x 768 native texture resolution) */
.risk-board-table {
  position: absolute;
  width: 1376px;
  height: 768px;
  background-image: url('/assets/risk/board_texture.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.15);
  transform-origin: center center;
  flex-shrink: 0;
  transition: transform 0.12s ease-out;
}

/* SVG Connection Lines Overlay */
.risk-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1376px;
  height: 768px;
  pointer-events: none;
  z-index: 2;
}

.risk-connection-line {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: all 0.3s ease;
}

.risk-connection-line.sea-route {
  stroke: rgba(245, 158, 11, 0.7);
  stroke-dasharray: 6 6;
  stroke-width: 2.4;
  animation: riskSeaRouteFlow 2s linear infinite;
}

@keyframes riskSeaRouteFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.risk-connection-line.highlighted {
  stroke: #fbbf24;
  stroke-width: 4.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px #f59e0b);
}

/* Territory Interactive Nodes Container */
.risk-territory-nodes-container {
  position: absolute;
  inset: 0;
  width: 1376px;
  height: 768px;
  pointer-events: auto;
  z-index: 5;
}

/* 3D Territory Interactive Node */
.risk-territory-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 74px;
  z-index: 6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.risk-territory-node:hover {
  transform: translate(-50%, -50%) translateY(-6px) scale(1.15);
  z-index: 25;
}

.risk-figurine-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-figurine-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.85));
  transition: transform 0.2s ease;
}

.risk-figurine-pedestal {
  position: absolute;
  bottom: 0px;
  width: 42px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35) 0%, rgba(0, 0, 0, 0.85) 100%);
  border: 2px solid currentColor;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9), 0 0 12px currentColor;
  z-index: -1;
}

.risk-army-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 3px #000;
  z-index: 5;
}

.risk-capital-badge {
  position: absolute;
  top: -12px;
  left: -4px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95));
  animation: riskFloatCrown 2s infinite ease-in-out alternate;
  z-index: 6;
}

@keyframes riskFloatCrown {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.risk-node-label {
  position: absolute;
  bottom: -18px;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(10, 15, 26, 0.88);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

/* Node Highlight States */
.risk-territory-node.selected-source .risk-figurine-pedestal {
  border-color: #fbbf24;
  box-shadow: 0 0 20px #f59e0b, 0 0 40px rgba(245, 158, 11, 0.8);
  animation: riskPulseGold 1.5s infinite;
}

.risk-territory-node.selected-source .risk-army-count-badge {
  border-color: #fbbf24;
  box-shadow: 0 0 16px #f59e0b;
}

.risk-territory-node.valid-target .risk-figurine-pedestal {
  border-color: #ef4444;
  box-shadow: 0 0 18px #ef4444;
  animation: riskPulseRed 1.2s infinite;
}

.risk-territory-node.valid-fortify .risk-figurine-pedestal {
  border-color: #3b82f6;
  box-shadow: 0 0 18px #3b82f6;
  animation: riskPulseBlue 1.2s infinite;
}

.risk-territory-node.fogged {
  opacity: 0.25;
  filter: grayscale(1) blur(1px);
  pointer-events: none;
}

@keyframes riskPulseGold {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px #f59e0b); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 18px #fbbf24); }
}

@keyframes riskPulseRed {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px #ef4444); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 16px #f87171); }
}

@keyframes riskPulseBlue {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px #3b82f6); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 16px #60a5fa); }
}

/* Dedicated Tactical Action Guidance Sub-Bar (Never blocks territories) */
.risk-action-subbar {
  height: 32px;
  min-height: 32px;
  background: linear-gradient(90deg, #070b14 0%, #0e172a 50%, #070b14 100%);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 25;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.risk-action-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.risk-action-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--risk-gold);
  color: var(--risk-gold-light);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.risk-action-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.risk-action-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.risk-action-controls .risk-hud-btn {
  padding: 3px 10px;
  font-size: 0.74rem;
  height: 24px;
}

/* Steam RISK Style Battle Modal */
.risk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.risk-battle-box {
  background: linear-gradient(145deg, #151e30, #0a0e1a);
  border: 2px solid var(--risk-gold);
  border-radius: 24px;
  padding: 24px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.85), 0 0 32px rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.risk-battle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.risk-battle-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--risk-gold);
  margin: 0;
}

/* Duel Combatants Roster (Steam Risk Style) */
.risk-duel-combatants {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.risk-duel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.risk-commander-portrait-wrap {
  position: relative;
  width: 90px;
  height: 90px;
}

.risk-commander-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--risk-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9);
}

.risk-commander-dice-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.risk-commander-dice-badge.defender {
  background: #0284c7;
}

.risk-duel-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.risk-duel-territory {
  font-size: 0.82rem;
  color: var(--risk-gold-light);
  font-weight: 700;
}

.risk-duel-armies {
  font-size: 1.25rem;
  font-weight: 900;
  padding: 2px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid currentColor;
}

.risk-duel-vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.risk-duel-vs-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--risk-gold);
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

/* Win Odds Progress Bar */
.risk-odds-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.risk-odds-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
}

.risk-odds-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.risk-odds-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* 3D Dice Rolling Arena */
.risk-dice-arena {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  min-height: 105px;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.risk-dice-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.risk-die-img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease;
}

.risk-die-img.rolling {
  animation: diceRollTumble 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes diceRollTumble {
  0% { transform: rotate(0deg) scale(0.85); }
  25% { transform: rotate(-25deg) scale(1.25); }
  50% { transform: rotate(35deg) scale(0.9); }
  75% { transform: rotate(-12deg) scale(1.15); }
  100% { transform: rotate(0deg) scale(1); }
}

.risk-battle-casualty-banner {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--risk-gold);
  color: #fff;
}

/* Conquer Army Move Slider Modal */
.risk-conquer-box {
  background: linear-gradient(145deg, #1b2638, #0f172a);
  border: 2px solid #10b981;
  border-radius: 22px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.35);
}

.risk-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.risk-conquer-slider {
  width: 100%;
  accent-color: #10b981;
  height: 8px;
  cursor: pointer;
}

/* Photorealistic Cards Drawer */
.risk-cards-drawer {
  background: linear-gradient(145deg, #141d2e, #0c1220);
  border: 2px solid var(--risk-gold);
  border-radius: 22px;
  padding: 24px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.85);
}

.risk-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  padding: 10px 0;
}

.risk-card-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
  aspect-ratio: 160 / 240;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  background: #0d1424;
}

.risk-card-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #fbbf24;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

.risk-card-item.selected {
  border-color: #fbbf24;
  box-shadow: 0 0 20px #f59e0b;
  transform: translateY(-8px) scale(1.04);
}

.risk-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.risk-card-territory-match-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Battle Log Drawer */
.risk-log-drawer {
  background: linear-gradient(145deg, #141d2e, #0c1220);
  border: 2px solid var(--risk-gold);
  border-radius: 22px;
  padding: 22px;
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.risk-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 55vh;
  padding: 4px;
}

.risk-log-item {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.risk-log-item.conquer {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.risk-log-item.attack {
  border-color: rgba(239, 68, 68, 0.4);
}

/* Tutorial / Rules Guide Modal */
.risk-rules-modal-box {
  background: linear-gradient(145deg, #162033, #0c1220);
  border: 2px solid var(--risk-gold);
  border-radius: 24px;
  padding: 24px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.9);
}

.risk-rules-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  text-align: start;
}

.risk-rules-sec-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--risk-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.risk-rules-sec-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Combat Screen Shake & Trajectory Beam */
.risk-screen-shake {
  animation: riskScreenShakeAnim 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes riskScreenShakeAnim {
  0% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-5px, 2px, 0) rotate(-0.4deg); }
  30% { transform: translate3d(6px, -3px, 0) rotate(0.4deg); }
  45% { transform: translate3d(-4px, 3px, 0) rotate(-0.2deg); }
  60% { transform: translate3d(4px, -2px, 0) rotate(0.2deg); }
  75% { transform: translate3d(-2px, 1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.risk-attack-trajectory-beam {
  stroke: rgba(239, 68, 68, 0.45);
  stroke-width: 9;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.risk-attack-trajectory-arrow {
  stroke: #ff2b2b;
  stroke-width: 4.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
  animation: riskAttackLaserFlow 0.5s linear infinite;
  filter: drop-shadow(0 0 6px #ff0055);
}

@keyframes riskAttackLaserFlow {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}

/* Target Crosshair Reticle */
.risk-territory-node.is-attack-target .risk-figurine-pedestal {
  border-color: #ef4444;
  box-shadow: 0 0 26px #ef4444, inset 0 0 12px #b91c1c;
}

.risk-territory-node.is-attack-target::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 3px dashed #ef4444;
  border-radius: 50%;
  animation: riskCrosshairSpin 4s linear infinite;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.75);
  pointer-events: none;
}

@keyframes riskCrosshairSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Casualty Damage Numbers */
.risk-floating-casualty {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 900;
  pointer-events: none;
  z-index: 100;
  text-shadow: 0 0 12px #000, 0 3px 6px #000;
  animation: floatCasualtyUp 1.25s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
  white-space: nowrap;
}

.risk-floating-casualty.attacker {
  color: #f87171;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.9), 0 2px 4px #000;
}

.risk-floating-casualty.defender {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.9), 0 2px 4px #000;
}

@keyframes floatCasualtyUp {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -24px) scale(1.35); }
  75% { opacity: 0.95; transform: translate(-50%, -52px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(0.85); }
}

/* Muzzle Flash */
.risk-cannon-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 120, 0, 0.45) 0%, rgba(239, 68, 68, 0.2) 40%, transparent 70%);
  pointer-events: none;
  animation: riskMuzzleFlash 0.35s ease-out forwards;
  border-radius: 24px;
}

@keyframes riskMuzzleFlash {
  0% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Battle Camera Zooming and Battlefield Combat Zone */
.risk-board-table.battle-camera-zoomed {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 50px rgba(239, 68, 68, 0.35);
}

.risk-territory-node.battle-attacker-focus .risk-figurine-pedestal {
  border-color: #ef4444;
  box-shadow: 0 0 25px #ef4444, 0 0 50px rgba(239, 68, 68, 0.9);
  animation: riskAttackerCharge 0.8s infinite alternate;
}

.risk-territory-node.battle-defender-focus .risk-figurine-pedestal {
  border-color: #38bdf8;
  box-shadow: 0 0 25px #38bdf8, 0 0 50px rgba(56, 189, 248, 0.9);
  animation: riskDefenderShield 0.8s infinite alternate;
}

@keyframes riskAttackerCharge {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px #ef4444); }
  100% { transform: scale(1.18); filter: drop-shadow(0 0 24px #f87171); }
}

@keyframes riskDefenderShield {
  0% { transform: scale(1); filter: drop-shadow(0 0 8px #38bdf8); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 22px #7dd3fc); }
}

/* Battlefield Clashing Swords / Impact Point */
.risk-battle-clash-epicenter {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  animation: riskClashPulse 1s infinite alternate;
}

.risk-battle-clash-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 16px #f59e0b) drop-shadow(0 0 30px #ef4444);
  animation: riskClashRotate 1.5s ease-in-out infinite alternate;
}

.risk-battle-clash-shockwave {
  position: absolute;
  inset: -15px;
  border: 2.5px solid rgba(245, 158, 11, 0.8);
  border-radius: 50%;
  animation: riskShockwaveExpand 1.2s infinite;
}

@keyframes riskClashPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); }
  100% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes riskClashRotate {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}

@keyframes riskShockwaveExpand {
  0% { transform: scale(0.4); opacity: 1; border-color: #ef4444; }
  100% { transform: scale(2.2); opacity: 0; border-color: #fbbf24; }
}

/* Gunfire Muzzle Sparks & Battlefield Cannon Smoke */
.risk-battlefield-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff 0%, #fbbf24 40%, #ef4444 80%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  animation: sparkBurst 0.45s ease-out forwards;
}

@keyframes sparkBurst {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 20px)), calc(-50% + var(--dy, -20px))) scale(1.6); opacity: 0; }
}

.risk-battlefield-smoke {
  position: absolute;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.6) 0%, rgba(120, 120, 120, 0.3) 50%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 22;
  animation: smokePuff 0.85s ease-out forwards;
}

@keyframes smokePuff {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.8; }
  100% { transform: translate(-50%, -70px) scale(2.4); opacity: 0; }
}

/* Semi-transparent battle modal so zoomed board is visible */
.risk-modal-overlay#riskBattleModal {
  background: rgba(4, 7, 15, 0.4);
  backdrop-filter: blur(1.5px);
  align-items: flex-start;
  padding-top: 14px;
}

.risk-battle-box.minimized {
  position: absolute;
  bottom: 14px;
  top: auto;
  transform: none;
  opacity: 0.96;
}

.risk-battle-box.minimized .risk-duel-combatants,
.risk-battle-box.minimized .risk-odds-bar-wrap {
  display: none;
}

/* ==========================================================================
   Responsive & Discord Compact Layout Rules (< 1050px or .risk-compact)
   Guarantees 100% Edge-to-Edge Board, Zero Cut-offs, No Overlaps
   ========================================================================== */

.risk-compact .risk-hud-title {
  display: none !important;
}

.risk-compact .risk-top-hud {
  height: 44px;
  padding: 3px 6px;
  gap: 4px;
}

.risk-compact .risk-hud-brand {
  gap: 4px;
}

.risk-compact .risk-hud-brand .risk-logo-icon {
  width: 26px;
  height: 26px;
}

.risk-compact .risk-phase-pill-bar {
  padding: 2px 3px;
  gap: 2px;
}

.risk-compact .risk-phase-step {
  padding: 2px 6px;
  font-size: 0.68rem;
  gap: 3px;
}

.risk-compact .risk-phase-step .step-icon {
  width: 11px;
  height: 11px;
}

.risk-compact .risk-hud-actions {
  gap: 3px;
}

.risk-compact .risk-hud-btn {
  padding: 3px 6px;
  font-size: 0.68rem;
  gap: 3px;
  border-radius: 6px;
}

.risk-compact .risk-hud-btn.primary {
  padding: 3px 8px;
  font-size: 0.70rem;
}

.risk-compact .risk-badge-count {
  padding: 0 4px;
  font-size: 0.65rem;
}

.risk-compact .risk-action-subbar {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.risk-compact .risk-action-badge {
  padding: 1px 6px;
  font-size: 0.7rem;
}

.risk-compact .risk-action-hint {
  font-size: 0.74rem;
}

.risk-compact .risk-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 290px;
  z-index: 45;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.92);
  background: rgba(8, 13, 23, 0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.risk-compact .risk-sidebar.collapsed {
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  width: 290px !important;
}

.risk-compact .risk-board-viewport {
  width: 100% !important;
  flex: 1;
}

.risk-compact .risk-sidebar:not(.collapsed) + .risk-board-viewport .risk-sidebar-toggle-btn,
.risk-compact .risk-sidebar:not(.collapsed) ~ .risk-board-viewport .risk-sidebar-toggle-btn {
  display: none !important;
}

.risk-compact .risk-continents-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.risk-compact .risk-continent-item {
  padding: 2px 3px;
  font-size: 0.62rem;
  min-height: 18px;
}

.risk-compact .risk-continent-name {
  font-size: 0.60rem;
}

.risk-compact .risk-continent-bonus {
  font-size: 0.60rem;
  padding: 0 2px;
}

.risk-compact .risk-players-roster {
  gap: 3px;
  padding: 2px 2px 4px 2px;
}

.risk-compact .risk-player-card {
  padding: 3px 5px;
  min-height: 38px;
  gap: 3px;
  border-radius: 6px;
}

.risk-compact .risk-pcard-avatar-wrap {
  width: 28px;
  height: 28px;
}

.risk-compact .risk-pcard-name {
  font-size: 0.74rem;
  max-width: 135px;
}

.risk-compact .risk-pcard-stat-pill {
  font-size: 0.64rem;
  padding: 1px 3px;
}

/* Also apply via @media query for standalone testing */
@media (max-width: 1050px) {
  .risk-hud-title {
    display: none !important;
  }
  .risk-top-hud {
    height: 44px;
    padding: 3px 6px;
    gap: 4px;
  }
  .risk-hud-brand {
    gap: 4px;
  }
  .risk-hud-brand .risk-logo-icon {
    width: 26px;
    height: 26px;
  }
  .risk-phase-pill-bar {
    padding: 2px 3px;
    gap: 2px;
  }
  .risk-phase-step {
    padding: 2px 6px;
    font-size: 0.68rem;
    gap: 3px;
  }
  .risk-phase-step .step-icon {
    width: 11px;
    height: 11px;
  }
  .risk-hud-actions {
    gap: 3px;
  }
  .risk-hud-btn {
    padding: 3px 6px;
    font-size: 0.68rem;
    gap: 3px;
    border-radius: 6px;
  }
  .risk-hud-btn.primary {
    padding: 3px 8px;
    font-size: 0.70rem;
  }
  .risk-badge-count {
    padding: 0 4px;
    font-size: 0.65rem;
  }
  .risk-action-subbar {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }
  .risk-action-badge {
    padding: 1px 6px;
    font-size: 0.7rem;
  }
  .risk-action-hint {
    font-size: 0.74rem;
  }
  .risk-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 290px;
    z-index: 45;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.92);
    background: rgba(8, 13, 23, 0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }
  .risk-sidebar.collapsed {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
    width: 290px !important;
  }
  .risk-board-viewport {
    width: 100% !important;
    flex: 1;
  }
  .risk-sidebar:not(.collapsed) + .risk-board-viewport .risk-sidebar-toggle-btn,
  .risk-sidebar:not(.collapsed) ~ .risk-board-viewport .risk-sidebar-toggle-btn {
    display: none !important;
  }
}

@media (max-width: 580px) {
  .risk-phase-step span {
    display: none;
  }
  .risk-phase-step {
    padding: 4px 8px;
  }
  .risk-hud-btn span:first-child {
    font-size: 0.85rem;
  }
}

/* Real-time Turn Timer Badge in Top HUD */
.risk-hud-timer-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.risk-hud-timer-badge .timer-icon {
  font-size: 0.95rem;
}

.risk-hud-timer-badge .timer-value {
  color: var(--risk-gold-light);
  font-family: monospace;
  font-size: 1rem;
}

.risk-hud-timer-badge .timer-unit {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.risk-hud-timer-badge.warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.risk-hud-timer-badge.critical {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.28);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.65);
  animation: riskPulseRed 0.8s infinite alternate;
}

/* Floating Zoom Reset Button */
.risk-zoom-reset-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 14px;
  z-index: 25;
  background: rgba(13, 20, 36, 0.94);
  border: 1.5px solid var(--risk-border-gold);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(245, 158, 11, 0.3);
  transition: all 0.25s ease;
  font-family: inherit;
  display: none;
  align-items: center;
  gap: 6px;
}

.risk-zoom-reset-btn.visible {
  display: flex !important;
  animation: fadeIn 0.2s ease;
}

.risk-zoom-reset-btn:hover {
  background: var(--risk-gold);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Risk-specific Dramatic Countdown Overlay (Positioned at top center so it NEVER covers map territories) */
.risk-game-root .center-turn-countdown-overlay {
  position: absolute;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid #ef4444;
  border-radius: 40px;
  padding: 6px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 68, 68, 0.6);
  animation: riskEmergencyPulse 0.8s infinite alternate ease-in-out;
}

.risk-game-root .center-turn-countdown-overlay .countdown-num-disc {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ef4444, #991b1b);
  border: 2px solid #fecaca;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
}

.risk-game-root .center-turn-countdown-overlay .countdown-sub-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fef2f2;
  white-space: nowrap;
}

@keyframes riskEmergencyPulse {
  from { transform: translateX(-50%) scale(1); filter: brightness(1); }
  to { transform: translateX(-50%) scale(1.04); filter: brightness(1.2); }
}

