/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-panel: #0d0d14;
  --bg-card: #16161f;
  --red: #ff3b3b;
  --red-dark: #cc2020;
  --red-glow: rgba(255, 59, 59, 0.15);
  --orange: #ff8c3b;
  --yellow: #f0c040;
  --green: #40ff80;
  --text: #e0e0e0;
  --text-dim: #666;
  --text-muted: #444;
  --conventional: #e06020;
  --spillover: #cc44aa;
  --border: #1a1a2a;
  --font: 'JetBrains Mono', 'Courier New', monospace;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  overflow-x: hidden;
}

button, select {
  font-family: inherit;
}

/* === CRT OVERLAY === */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0px,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

/* === SCREEN FLASH (launch sequence) === */
#screen-flash {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 8000;
  transition: opacity 0.1s;
}

#screen-flash.flash {
  animation: screenFlash 1.5s ease-out forwards;
}

@keyframes screenFlash {
  0% { opacity: 0.95; background: white; }
  10% { opacity: 0.7; background: #fff4e0; }
  30% { opacity: 0.3; background: #ff6030; }
  60% { opacity: 0.1; background: #ff3b3b; }
  100% { opacity: 0; }
}

/* === LAYOUT === */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#header {
  position: relative;
  text-align: center;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

#btn-lang {
  position: absolute;
  top: 12px;
  right: 104px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}

#btn-lang:hover {
  border-color: var(--red);
  color: var(--text);
}

#btn-view-toggle {
  position: absolute;
  top: 12px;
  right: 60px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}

#btn-view-toggle:hover {
  border-color: var(--red);
  color: var(--text);
}

#btn-audio {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color 0.2s;
}

#btn-audio:hover {
  border-color: var(--red);
}

#btn-audio.active {
  border-color: var(--red);
  color: var(--text);
}

#header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--red);
  text-shadow: 0 0 40px rgba(255, 59, 59, 0.3);
}

.tagline {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 300;
  margin-top: 3px;
  letter-spacing: 0.05em;
}

#main {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* === PANEL === */
#panel {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 var(--red-glow);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === STEP INDICATOR === */
#step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--border);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.25;
  transition: all 0.4s ease;
}

.step.active {
  opacity: 1;
}

.step.completed {
  opacity: 0.6;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.4s ease;
}

.step.active .step-num {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.3);
}

.step.completed .step-num {
  border-color: var(--green);
  color: var(--green);
  box-shadow: none;
}

.step-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.4s;
}

.step.active .step-label {
  color: var(--text-dim);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--text-muted);
  margin: 0 6px 16px;
  opacity: 0.3;
  transition: all 0.4s;
}

.step-connector.active {
  background: var(--red);
  opacity: 0.6;
}

/* === PANEL SECTIONS === */
.panel-section {
  animation: panelReveal 0.4s ease-out;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-section h2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-num {
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
}

.hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  margin-bottom: 8px;
}

/* === PLAYER SELECT === */
#player-select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

#player-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-glow);
}

/* === COUNTRY CARD === */
.country-card {
  margin-top: 10px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1.7;
  transition: opacity 0.3s, transform 0.3s;
}

.country-card.flash-in {
  animation: cardFlash 0.4s ease-out;
}

@keyframes cardFlash {
  0% { opacity: 0; border-color: var(--red); box-shadow: 0 0 15px var(--red-glow); }
  50% { opacity: 1; border-color: var(--red); }
  100% { opacity: 1; border-color: var(--border); box-shadow: none; }
}

.country-card .card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.country-card .card-flag {
  font-size: 1.3rem;
}

.country-card .card-detail {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.country-card .card-detail span {
  color: var(--text);
  font-weight: 400;
}

.country-card .card-nuclear {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 3px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.country-card .card-non-nuclear {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.country-card .card-unavailable {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* === ARSENAL CARD SECTIONS === */
.card-arsenal-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0 8px;
}

.card-arsenal-section {
  margin-top: 2px;
}

.card-arsenal-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.card-arsenal-group {
  border-left: 2px solid var(--border);
  padding-left: 8px;
  margin-bottom: 8px;
}

.card-arsenal-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.card-weapon-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.card-weapon-count {
  color: var(--text);
  font-weight: 700;
  min-width: 22px;
  text-align: right;
  font-size: 0.65rem;
}

.card-weapon-type {
  color: var(--text-muted);
  font-size: 0.55rem;
  margin-left: auto;
}

.eff-bar {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.eff-bar-fill {
  letter-spacing: -0.03em;
}

.eff-bar-empty {
  opacity: 0.25;
  letter-spacing: -0.03em;
}

.eff-bar-pct {
  margin-left: 4px;
  font-weight: 700;
  font-size: 0.6rem;
}

/* === LAUNCH BUTTON === */
#btn-launch {
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

#btn-launch:disabled {
  opacity: 0.4;
}

#btn-launch.armed {
  background: var(--red-dark);
  color: white;
  border-color: var(--red);
  cursor: pointer;
  animation: armPulse 2s ease-in-out infinite;
}

#btn-launch.armed:hover {
  background: var(--red);
  box-shadow: 0 0 40px rgba(255, 59, 59, 0.5);
  transform: scale(1.02);
}

@keyframes armPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 59, 59, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 59, 59, 0.4); }
}

.launch-icon {
  font-size: 1.3rem;
}

.launch-warning {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* === RESET BUTTON === */
#btn-reset {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.1em;
}

#btn-reset:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* === STATS === */
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.stat-value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

/* === MAP === */
#map-container {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--bg);
}

#globe {
  width: 100%;
  height: 100%;
  background: #000005;
}

#globe.shake {
  animation: mapShake 0.6s ease-out;
}

.leaflet-container {
  background: var(--bg) !important;
  font-family: var(--font) !important;
}

/* Map shake animation */
#map.shake {
  animation: mapShake 0.6s ease-out;
}

@keyframes mapShake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-4px, 2px); }
  20% { transform: translate(3px, -3px); }
  30% { transform: translate(-3px, 1px); }
  40% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 3px); }
  60% { transform: translate(3px, -1px); }
  70% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -1px); }
  90% { transform: translate(-1px, 1px); }
}

/* === LEAFLET ZOOM CONTROLS === */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  background: var(--bg-panel) !important;
  color: var(--text-dim) !important;
  border: 1px solid var(--border) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 28px !important;
  transition: all 0.2s !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--text-muted) !important;
}

.leaflet-control-zoom-in {
  border-radius: 3px 3px 0 0 !important;
}

.leaflet-control-zoom-out {
  border-radius: 0 0 3px 3px !important;
  border-top: none !important;
}

/* === TRAJECTORY LINE === */
.trajectory-line {
  stroke-dasharray: 8, 10;
  animation: trajectoryDash 1s linear infinite;
}

@keyframes trajectoryDash {
  to { stroke-dashoffset: -18; }
}

/* === EVENT LOG === */
#event-log {
  position: relative;
  z-index: 3001;
  height: 180px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 12px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#event-log h3 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-shrink: 0;
}

#log-entries {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.missile-icon {
  transition: none;
  pointer-events: none;
}

.log-entry {
  padding: 4px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  animation: fadeInEntry 0.3s ease-out forwards;
  opacity: 0;
}

.log-entry .log-time {
  color: var(--yellow);
  margin-right: 8px;
  font-weight: 700;
  font-size: 0.7rem;
}

.log-entry.strike { color: var(--red); }
.log-entry.retaliation { color: var(--orange); }
.log-entry.mobilization { color: var(--text-dim); }
.log-entry.conventional { color: var(--conventional); }
.log-entry.spillover { color: var(--spillover); font-weight: 600; }

.log-entry.threshold {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 0;
}

@keyframes fadeInEntry {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CONFIRM MODAL === */
#confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#confirm-content {
  background: var(--bg-panel);
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 0 60px rgba(255, 59, 59, 0.15);
}

#confirm-text {
  font-size: 1.1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

#countdown {
  margin-bottom: 24px;
}

#countdown-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--red);
  text-shadow: 0 0 40px rgba(255, 59, 59, 0.6);
  animation: pulseCount 1s ease-in-out infinite;
}

@keyframes pulseCount {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

#confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#btn-confirm {
  padding: 12px 24px;
  background: var(--red-dark);
  color: white;
  border: 2px solid var(--red);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

#btn-confirm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#btn-confirm:not(:disabled):hover {
  background: var(--red);
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.5);
}

#btn-cancel {
  padding: 12px 24px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

#btn-cancel:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

/* === RESULT OVERLAY === */
#result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 1.2s ease-out;
}

#result-content {
  text-align: center;
  max-width: 600px;
  width: 90%;
  padding: 40px;
}

#result-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 20px;
  text-shadow: 0 0 60px currentColor;
}

#result-message {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 30px;
  font-weight: 300;
}

#result-stats {
  margin-bottom: 30px;
  text-align: left;
  display: inline-block;
}

.result-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.85rem;
}

.result-stat-row .label {
  color: var(--text-dim);
  font-weight: 300;
}

.result-stat-row .value {
  font-weight: 700;
}

#btn-restart {
  margin-top: 20px;
  padding: 14px 40px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text-muted);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
}

#btn-restart:hover {
  border-color: var(--text);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

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

/* === WELCOME MODAL === */
#welcome-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  animation: fadeIn 0.6s ease-out;
}

#welcome-content {
  text-align: center;
  max-width: 480px;
  width: 90%;
  padding: 48px 40px;
}

#welcome-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--red);
  text-shadow: 0 0 60px rgba(255, 59, 59, 0.4);
  margin-bottom: 6px;
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.welcome-quote {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--red-dark);
}

.welcome-body p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}

.welcome-tips {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.welcome-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.4;
}

.welcome-tip-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

#welcome-lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.welcome-lang-btn {
  padding: 8px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.welcome-lang-btn:first-child {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.welcome-lang-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.welcome-lang-btn.active {
  background: var(--red-dark);
  color: white;
  border-color: var(--red);
}

.welcome-lang-btn:not(.active):hover {
  border-color: var(--text-muted);
  color: var(--text);
}

#btn-welcome-start {
  padding: 14px 48px;
  background: var(--red-dark);
  color: white;
  border: 2px solid var(--red);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

#btn-welcome-start:hover {
  background: var(--red);
  box-shadow: 0 0 40px rgba(255, 59, 59, 0.5);
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.disclaimer {
  color: #555;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

/* === UTILITIES === */
.hidden {
  display: none !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  #main {
    flex-direction: column;
  }

  #panel {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding: 12px;
    gap: 12px;
    overflow-y: visible;
  }

  #step-indicator {
    width: 100%;
    justify-content: center;
  }

  .panel-section {
    flex: 1;
    min-width: 200px;
  }

  #panel-reset {
    width: 100%;
  }

  #map-container {
    min-height: 350px;
  }

  #event-log {
    height: 150px;
  }

  #header h1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  #panel {
    flex-direction: column;
  }

  .panel-section {
    min-width: unset;
  }

  #result-title {
    font-size: 1.8rem;
  }
}
