/* CSSD Simulator - Styling System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Share+Tech+Mono&display=swap');

:root {
  --bg-dark: #0b0f19;
  --bg-panel: rgba(17, 24, 39, 0.75);
  --border-light: rgba(255, 255, 255, 0.08);

  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);

  --neon-red: #ff3b30;
  --neon-red-glow: rgba(255, 59, 48, 0.35);

  --neon-green: #34c759;
  --neon-green-glow: rgba(52, 199, 89, 0.35);

  --neon-gold: #ffcc00;
  --neon-gold-glow: rgba(255, 204, 0, 0.35);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --font-hud: 'Outfit', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-hud);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image:
    radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
}

#app-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

@media(min-width: 1440px) {
  #app-container {
    border-radius: 16px;
    height: 95vh;
  }
}

/* Loading & Splash Screen */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background: #090d16;
}

.screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Main Menu styling */
#main-menu-screen {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95) 0%, #060913 100%);
  padding: 2rem;
  text-align: center;
}

.title-container {
  margin-bottom: 3rem;
  animation: pulse-title 4s infinite alternate;
}

.title-container h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  margin-bottom: 0.5rem;
}

.title-container p {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* Name Input Styling */
.name-input-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.name-input-container label {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.name-input-container input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--font-hud);
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.name-input-container input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: rgba(15, 23, 42, 0.85);
}

.btn {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.4s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  opacity: 0.8;
}

.btn-secondary:hover {
  opacity: 1;
}

.btn-danger {
  border-color: rgba(255, 59, 48, 0.3);
}

.btn-danger:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 15px var(--neon-red-glow);
}

.lang-switch-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn.active {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Role / Career Selection Screen */
#role-selection-screen {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95) 0%, #060913 100%);
  padding: 2rem;
  overflow-y: auto;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}

.role-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.role-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--theme-color, var(--neon-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.role-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-color, var(--neon-cyan));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.role-card:hover::after {
  transform: scaleX(1);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.role-icon {
  font-size: 1.8rem;
  color: var(--theme-color, var(--neon-cyan));
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.role-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.role-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.role-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--theme-color, var(--neon-cyan));
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 20, 0.85);
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-body h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--neon-cyan);
}

.modal-body ol,
.modal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* Settings Form elements */
.settings-group {
  margin-bottom: 1.5rem;
}

.settings-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.volume-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* HUD Header (Game View) */
#hud-header {
  height: 60px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 5;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hud-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.hud-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hud-stat-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.hud-stat-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hud-stat-val {
  color: #fff;
  font-weight: 600;
}

#hospital-health-bar {
  width: 120px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

#health-fill {
  height: 100%;
  width: 100%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green-glow);
  transition: width 0.3s ease, background 0.3s ease;
}

/* Main Gameplay Split Screen */
#gameplay-layout {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  background: #080c14;
}

@media(max-width: 768px) {
  #gameplay-layout {
    flex-direction: column;
  }
}

/* Canvas Area (Left Side) */
#canvas-container {
  flex-grow: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#canvas-container canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 750 / 480;
  width: auto;
  height: auto;
}

/* Controls Panel (Right Side) */
#controls-panel {
  width: 380px;
  min-width: 380px;
  background: rgba(13, 18, 30, 0.85);
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 3;
}

@media(max-width: 768px) {
  #controls-panel {
    width: 100%;
    height: 40%;
    min-width: auto;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
}

.panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.panel-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--theme-color, var(--neon-cyan));
}

.panel-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.panel-content {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Level Introduction/Instruction Card */
.task-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
}

.task-card h4 {
  font-size: 0.95rem;
  color: var(--theme-color, var(--neon-cyan));
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-card p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Log console inside Panel */
.log-console {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-entry {
  color: var(--text-secondary);
  line-height: 1.3;
}

.log-entry.info {
  color: var(--neon-cyan);
}

.log-entry.warn {
  color: var(--neon-gold);
}

.log-entry.error {
  color: var(--neon-red);
}

.log-entry.success {
  color: var(--neon-green);
}

/* Action Area in Panel */
.panel-actions {
  padding: 1.25rem;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Quiz Overlay Interface */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.quiz-question {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-hud);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option-btn.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.quiz-option-btn.correct {
  border-color: var(--neon-green);
  background: rgba(52, 199, 89, 0.12);
  color: #fff;
}

.quiz-option-btn.incorrect {
  border-color: var(--neon-red);
  background: rgba(255, 59, 48, 0.12);
  color: #fff;
}

/* Manager Scenario Selection Card */
.scenario-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.scenario-option-btn {
  background: rgba(255, 204, 0, 0.03);
  border: 1px solid rgba(255, 204, 0, 0.15);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-hud);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.scenario-option-btn:hover {
  border-color: var(--neon-gold);
  background: rgba(255, 204, 0, 0.08);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.15);
}

/* Scenario Feedback Box */
.feedback-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid var(--border-color, var(--neon-cyan));
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slide-in 0.3s ease;
}

/* Interactive Dials & Controls (for Decontamination / Sterilization parameters) */
.dial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0.5rem 0;
}

.dial-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.dial-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.dial-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.dial-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dial-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.1s ease;
}

.dial-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  border-color: var(--neon-cyan);
}

/* Win / Fail Screen reports */
#game-over-screen {
  background: radial-gradient(circle at center, rgba(30, 10, 10, 0.98) 0%, #0a0303 100%);
  z-index: 20;
}

#game-over-screen.success-view {
  background: radial-gradient(circle at center, rgba(10, 30, 20, 0.98) 0%, #030a05 100%);
}

.report-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 550px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: scale-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.report-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

#game-over-screen.success-view .report-icon {
  color: var(--neon-green);
  text-shadow: 0 0 30px var(--neon-green-glow);
}

#game-over-screen:not(.success-view) .report-icon {
  color: var(--neon-red);
  text-shadow: 0 0 30px var(--neon-red-glow);
}

.report-card h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.report-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.score-summary {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}

.score-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.score-line:last-child {
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

.score-line-label {
  color: var(--text-secondary);
}

.score-line-val {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

/* Animations */
@keyframes pulse-title {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.02);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsive Media Queries */
@media (max-width: 768px) {
  #app-container {
    max-height: none;
    height: 100vh;
    border: none;
    border-radius: 0;
  }

  .title-container h1 {
    font-size: 2.2rem;
    letter-spacing: 0.08em;
  }

  .title-container p {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .menu-buttons {
    max-width: 90%;
    padding: 0 1rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Roles career grid */
  .roles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
    max-height: 65vh;
    overflow-y: auto;
  }

  .role-card {
    min-height: 160px;
    padding: 1rem;
  }

  .role-card p {
    margin-bottom: 0.75rem;
  }

  /* HUD Header adjustments */
  #hud-header {
    padding: 0 0.75rem;
    height: 55px;
  }

  .hud-left {
    gap: 0.75rem;
  }

  .hud-title {
    font-size: 0.9rem;
  }

  .hud-stats {
    gap: 0.5rem;
  }

  .hud-stat-box {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .hud-stat-label {
    font-size: 0.7rem;
  }

  #hospital-health-bar {
    width: 60px;
  }

  /* Split screen gameplay container */
  #gameplay-layout {
    flex-direction: column;
    height: calc(100% - 55px);
  }

  #canvas-container {
    width: 100%;
    height: 60%;
    max-height: 60vh;
    background: #090d16;
  }

  #controls-panel {
    width: 100%;
    height: 40%;
    min-height: 40%;
    max-height: 40vh;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }

  .panel-header {
    padding: 0.75rem 1rem;
  }

  .panel-header h2 {
    font-size: 1rem;
  }

  .panel-content {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .task-card {
    padding: 0.75rem;
  }

  .task-card h4 {
    font-size: 0.85rem;
  }

  .task-card p {
    font-size: 0.8rem;
  }

  /* Report Card */
  .report-card {
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
  }

  .report-card h2 {
    font-size: 1.8rem;
  }

  .report-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .score-summary {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .score-line {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .title-container h1 {
    font-size: 1.8rem;
  }

  .title-container {
    margin-bottom: 2rem;
  }

  #hospital-health-bar {
    width: 45px;
  }

  .hud-stat-box {
    padding: 0.2rem 0.4rem;
  }
}