/* ============================================
   MEDICAL MINIGAMES STYLES
   ============================================ */

/* ============================================
   PATIENT VITALS GAME
   Check and record vital signs
   ============================================ */

.vitals-game-area {
    width: 100%;
    padding: var(--spacing-md);
}

.patient-monitor {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 3px solid #333;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.1);
}

.monitor-screen {
    background: #000;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.vital-reading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #222;
}

.vital-reading:last-child {
    border-bottom: none;
}

.vital-label {
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.vital-value {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
}

.vital-value.normal {
    color: #00ff88;
}

.vital-value.warning {
    color: #ffaa00;
}

.vital-value.critical {
    color: #ff4444;
    animation: criticalPulse 0.5s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vitals-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.vitals-btn {
    padding: 15px 20px;
    background: var(--bg-light);
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
    min-width: 150px;
    text-align: center;
}

.vitals-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.vitals-btn.correct {
    background: var(--success);
    border-color: var(--success);
}

.vitals-btn.wrong {
    background: var(--error);
    border-color: var(--error);
}

/* Help note */
.vitals-help-note {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: #94a3b8;
    font-size: 0.85rem;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Medical term tooltips */
.medical-term {
    position: relative;
    color: #60a5fa;
    border-bottom: 1px dotted #60a5fa;
    cursor: help;
}

.medical-term:hover {
    color: #93c5fd;
}

.medical-term::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
    pointer-events: none;
    line-height: 1.4;
}

.medical-term::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 101;
}

.medical-term:hover::after,
.medical-term:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Adjust tooltip position for terms in buttons */
.vitals-btn .medical-term::after {
    bottom: auto;
    top: 100%;
    margin-top: 8px;
}

.vitals-btn .medical-term::before {
    bottom: auto;
    top: 100%;
    border-top-color: transparent;
    border-bottom-color: #1e293b;
}

/* ============================================
   MEDICATION DOSING GAME
   Calculate correct dosages
   ============================================ */

/* Instructions Screen */
.dosing-instructions {
    padding: var(--spacing-lg);
    text-align: center;
}

.dosing-instructions h3 {
    color: #60a5fa;
    margin-bottom: var(--spacing-lg);
    font-size: 1.4rem;
}

.instruction-example {
    background: rgba(30, 41, 59, 0.8);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: left;
    border: 1px solid #334155;
}

.instruction-example h4 {
    color: #22c55e;
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}

.example-problem {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.example-problem p {
    margin: 4px 0;
    color: #e2e8f0;
}

.example-solution {
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-left: 3px solid #22c55e;
}

.example-solution p {
    margin: 4px 0;
    color: #e2e8f0;
}

.formula {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    color: #fbbf24;
    margin: 8px 0;
}

.calculation {
    font-size: 1.1rem;
    color: #22c55e;
}

.calculation strong {
    font-size: 1.2rem;
    color: #4ade80;
}

.start-game-btn {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.start-game-btn:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.dosing-game-area {
    width: 100%;
    padding: var(--spacing-md);
}

.prescription-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    color: #333;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
}

.rx-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0066cc;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.rx-symbol {
    font-size: 2rem;
    color: #0066cc;
    font-weight: bold;
}

.patient-info {
    font-size: 0.9rem;
    color: #666;
}

.medication-details {
    margin: var(--spacing-md) 0;
}

.med-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.med-strength {
    color: #666;
    font-size: 1rem;
}

.dosing-question {
    background: #f0f8ff;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border-left: 4px solid #0066cc;
    margin-top: var(--spacing-md);
}

.dosing-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.dose-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.dose-btn:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.dose-btn.correct {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.dose-btn.wrong {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* ============================================
   TRIAGE GAME
   Prioritize patients by severity
   ============================================ */

.triage-game-area {
    width: 100%;
    padding: var(--spacing-md);
}

.er-waiting-room {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.triage-patient {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.triage-patient:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.triage-patient.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

.triage-patient.correct {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.2);
}

.triage-patient.wrong {
    border-color: var(--error);
    background: rgba(244, 67, 54, 0.2);
}

.patient-avatar {
    font-size: 2.5rem;
}

.patient-symptoms {
    flex: 1;
}

.symptom-title {
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
}

.symptom-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.triage-levels {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.triage-level-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.triage-level-btn.critical {
    background: #ff4444;
    color: white;
}

.triage-level-btn.urgent {
    background: #ff8800;
    color: white;
}

.triage-level-btn.stable {
    background: #44aa44;
    color: white;
}

.triage-level-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.triage-patient-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.triage-levels-inline {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.triage-levels-inline .triage-level-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* ============================================
   CPR RHYTHM GAME
   Timing-based chest compressions
   ============================================ */

.cpr-game-area {
    width: 100%;
    padding: var(--spacing-md);
    text-align: center;
}

.cpr-patient {
    font-size: 5rem;
    margin: var(--spacing-md) 0;
}

.cpr-rhythm-bar {
    width: 100%;
    height: 60px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    margin: var(--spacing-lg) 0;
}

.rhythm-target {
    position: absolute;
    width: 60px;
    height: 100%;
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid var(--success);
    border-radius: var(--radius-sm);
    left: 50%;
    transform: translateX(-50%);
}

.rhythm-indicator {
    position: absolute;
    width: 8px;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    left: 0;
    transition: none;
}

.cpr-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff6666 0%, #cc0000 100%);
    border: 4px solid #990000;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 6px 0 #660000;
}

.cpr-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #660000;
}

.cpr-btn.hit {
    background: linear-gradient(180deg, #66ff66 0%, #00cc00 100%);
    border-color: #009900;
    box-shadow: 0 6px 0 #006600;
}

.cpr-btn.miss {
    background: linear-gradient(180deg, #ffaa66 0%, #cc6600 100%);
    border-color: #994400;
    box-shadow: 0 6px 0 #663300;
}

.cpr-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.cpr-stat {
    text-align: center;
}

.cpr-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.cpr-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   DIAGNOSIS GAME
   Match symptoms to conditions
   ============================================ */

.diagnosis-game-area {
    width: 100%;
    padding: var(--spacing-md);
}

.diagnosis-help-note {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: #94a3b8;
    font-size: 0.85rem;
}

.diagnosis-help-note .help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Medical terms in diagnosis - adjust for light background */
.patient-chart .medical-term {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.patient-chart .medical-term:hover {
    color: #1d4ed8;
}

.patient-chart {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    color: #333;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 2px solid #eee;
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.chart-avatar {
    font-size: 3rem;
}

.chart-info h3 {
    margin: 0;
    color: #333;
}

.chart-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.symptoms-list {
    background: #f8f8f8;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.symptoms-list h4 {
    margin: 0 0 var(--spacing-sm) 0;
    color: #333;
}

.symptoms-list ul {
    margin: 0;
    padding-left: var(--spacing-lg);
    color: #555;
}

.diagnosis-prompt {
    text-align: center;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.diagnosis-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.diagnosis-btn {
    padding: 15px 20px;
    background: var(--bg-light);
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    min-height: 50px;
    width: 100%;
}

.diagnosis-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.diagnosis-btn.correct {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.diagnosis-btn.wrong {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* ============================================
   OPERATION GAME
   Steady hand surgery game
   ============================================ */

.operation-game-area {
    width: 100%;
    padding: var(--spacing-md);
    text-align: center;
}

.operation-layout {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.operation-table {
    width: 100%;
    max-width: 320px;
    height: 280px;
    background: linear-gradient(180deg, #ffe4c4 0%, #f5d5b8 50%, #deb887 100%);
    border-radius: var(--radius-lg);
    position: relative;
    border: 3px solid #c9a076;
    overflow: hidden;
}

.patient-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: linear-gradient(180deg, #ffecd2 0%, #f5d5b8 100%);
    border-radius: 40% 40% 45% 45%;
    opacity: 0.5;
}

/* Incision styling - looks like surgical cut */
.operation-incision {
    position: absolute;
    background: linear-gradient(180deg, #8B0000 0%, #660000 50%, #4a0000 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3);
}

.operation-incision.empty {
    background: linear-gradient(180deg, #a04040 0%, #803030 50%, #602020 100%);
}

/* Red edges that trigger buzz */
.incision-edge {
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: 12px;
    background: linear-gradient(90deg, #ff0000, #cc0000);
    border-radius: 6px;
    opacity: 0.8;
    z-index: 5;
}

.incision-edge.left {
    left: -6px;
}

.incision-edge.right {
    right: -6px;
}

.incision-edge:hover {
    opacity: 1;
    box-shadow: 0 0 8px #ff0000;
}

/* Items inside incisions */
.operation-item {
    position: absolute;
    font-size: 1.3rem;
    cursor: grab;
    z-index: 10;
    transition: transform 0.15s;
    user-select: none;
}

.operation-item:hover {
    transform: scale(1.15);
}

.operation-item.dragging {
    cursor: grabbing;
    transform: scale(1.3);
    z-index: 100;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Collection tray */
.collection-tray {
    width: 100px;
    min-height: 200px;
    background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
    border: 3px solid #9ca3af;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.collection-tray.highlight {
    background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.tray-label {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid #9ca3af;
    width: 100%;
}

.tray-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-content: flex-start;
    padding: var(--spacing-xs);
}

.tray-item {
    font-size: 1.2rem;
}

.tray-count {
    font-size: 0.9rem;
    font-weight: bold;
    color: #374151;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 2px solid #9ca3af;
    width: 100%;
    text-align: center;
}

.operation-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: bold;
    animation: warningFlash 0.3s ease;
    z-index: 30;
}

@keyframes warningFlash {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.operation-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.operation-stat {
    text-align: center;
}

.operation-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

.operation-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.operation-stat-value.lives {
    color: #ff4444;
}

.operation-stat-value.removed {
    color: var(--success);
}

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

/* ============================================
   BLOOD PRESSURE GAME
   ============================================ */

.bp-game-area {
    text-align: center;
    padding: var(--spacing-md);
}

.bp-monitor {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: 0 auto var(--spacing-md);
    max-width: 250px;
    box-shadow: var(--shadow-lg);
}

.bp-screen {
    background: #000;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.bp-reading {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    color: #00ff00;
    font-weight: bold;
}

.bp-divider {
    color: #00ff00;
}

.bp-unit {
    color: #888;
    font-size: 0.9rem;
}

.bp-cuff {
    font-size: 2rem;
}

.bp-instruction {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.bp-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.bp-category-btn {
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.bp-category-btn:hover:not(:disabled) {
    transform: scale(1.02);
    border-color: var(--primary);
}

.bp-category-btn.correct {
    background: var(--success);
    border-color: var(--success);
}

.bp-category-btn.wrong {
    background: var(--danger);
    border-color: var(--danger);
}

.bp-category-btn small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.bp-progress {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   IV DRIP GAME
   ============================================ */

.iv-game-area {
    text-align: center;
    padding: var(--spacing-md);
}

.iv-bag {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.iv-order {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.iv-order h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.iv-formula {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.iv-question {
    margin-bottom: var(--spacing-md);
    font-weight: bold;
}

.iv-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.iv-answer-btn {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    font-weight: bold;
}

.iv-answer-btn:hover:not(:disabled) {
    transform: scale(1.02);
    border-color: var(--primary);
}

.iv-answer-btn.correct {
    background: var(--success);
    border-color: var(--success);
}

.iv-answer-btn.wrong {
    background: var(--danger);
    border-color: var(--danger);
}

.iv-progress {
    color: var(--text-secondary);
}

/* ============================================
   HAND HYGIENE GAME
   ============================================ */

.hygiene-game-area {
    text-align: center;
    padding: var(--spacing-md);
}

.hygiene-progress-bar {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.hygiene-step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.hygiene-step-indicator.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.hygiene-step-indicator.current {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.hygiene-instruction {
    margin-bottom: var(--spacing-md);
    font-weight: bold;
}

.hygiene-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.hygiene-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.hygiene-step-btn:hover:not(:disabled) {
    transform: scale(1.02);
    border-color: var(--primary);
}

.hygiene-step-btn .step-icon {
    font-size: 1.8rem;
}

.hygiene-step-btn .step-name {
    font-size: 0.85rem;
}

.hygiene-step-btn.wrong {
    background: var(--danger);
    animation: shake 0.3s;
}

.hygiene-status {
    color: var(--text-secondary);
}

/* ============================================
   INJECTION PREP GAME
   ============================================ */

.injection-game-area {
    text-align: center;
    padding: var(--spacing-md);
}

.medication-vial {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.vial-label {
    font-size: 0.9rem;
    background: var(--bg-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.injection-order {
    background: var(--bg-dark);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.injection-order h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.syringe-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.syringe {
    width: 60px;
    height: 150px;
    background: linear-gradient(to right, #e0e0e0, #ffffff, #e0e0e0);
    border: 2px solid #999;
    border-radius: 5px 5px 30px 30px;
    position: relative;
    overflow: hidden;
}

.syringe-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #ff9800, #ffb74d);
    transition: height 0.2s;
}

.syringe-reading {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    color: #333;
    background: rgba(255,255,255,0.8);
    padding: 2px 5px;
    border-radius: 3px;
}

.syringe.correct {
    border-color: var(--success);
    box-shadow: 0 0 20px var(--success);
}

.syringe.wrong {
    border-color: var(--danger);
    box-shadow: 0 0 20px var(--danger);
}

.dose-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.dose-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-card);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dose-btn:hover {
    background: var(--primary);
    color: white;
}

#dose-slider {
    width: 150px;
}

.confirm-dose-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-dose-btn:hover {
    transform: scale(1.05);
}

.injection-progress {
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

/* ============================================
   WOUND DRESSING GAME
   ============================================ */

.wound-game-area {
    text-align: center;
    padding: var(--spacing-md);
}

.wound-display {
    margin-bottom: var(--spacing-md);
}

.wound-type {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.wound-visual {
    font-size: 3rem;
}

.dressing-progress {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.dressing-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dressing-step.completed {
    background: var(--success);
    border-color: var(--success);
}

.dressing-step.current {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.dressing-instruction {
    margin-bottom: var(--spacing-md);
    font-weight: bold;
}

.dressing-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.dressing-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.dressing-btn:hover:not(:disabled) {
    transform: scale(1.02);
    border-color: var(--primary);
}

.dressing-btn .step-icon {
    font-size: 1.8rem;
}

.dressing-btn .step-name {
    font-size: 0.85rem;
}

.dressing-btn.wrong {
    background: var(--danger);
    animation: shake 0.3s;
}

.wound-status {
    color: var(--text-secondary);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 600px) {
    .vitals-options,
    .dosing-options {
        grid-template-columns: 1fr;
    }

    .cpr-btn {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }

    .operation-layout {
        flex-direction: column;
        align-items: center;
    }

    .operation-table {
        height: 220px;
        max-width: 280px;
    }

    .collection-tray {
        width: 80%;
        min-height: 80px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tray-label {
        width: auto;
        border-bottom: none;
        border-right: 2px solid #9ca3af;
        padding-right: var(--spacing-sm);
        margin-bottom: 0;
    }

    .tray-count {
        border-top: none;
        border-left: 2px solid #9ca3af;
        padding-left: var(--spacing-sm);
        margin-top: 0;
        width: auto;
    }

    .triage-patient {
        flex-direction: column;
        text-align: center;
    }

    .triage-levels {
        flex-direction: column;
    }
}
