/**
 * Adventure Mode Styles - Immersive Hunting Experience
 * TSI Wildlife Call Training Application
 * Phase 6: Adventure Mode
 *
 * Ultra-realistic visual styling for adventure mode gameplay
 */

/* =========================================================================
   CSS VARIABLES
   ========================================================================= */

:root {
    /* Adventure Color Palette */
    --adventure-bg-dark: #0a0f14;
    --adventure-bg-medium: #141c24;
    --adventure-overlay: rgba(10, 15, 20, 0.85);
    --adventure-glass: rgba(255, 255, 255, 0.08);
    --adventure-glass-border: rgba(255, 255, 255, 0.12);

    /* Nature Colors */
    --forest-green: #2d5a27;
    --forest-light: #4a8c3f;
    --autumn-orange: #c4652a;
    --autumn-gold: #d4a017;
    --water-blue: #2c6e8a;
    --water-light: #5ba3c0;
    --dawn-pink: #d4789c;
    --dawn-purple: #8b6ba3;
    --sunset-red: #b84a3c;
    --sunset-orange: #e07830;

    /* UI Accent Colors */
    --call-active: #4ade80;
    --call-success: #22c55e;
    --call-warning: #f59e0b;
    --call-danger: #ef4444;
    --call-neutral: #6b7280;

    /* Typography */
    --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* =========================================================================
   BASE ADVENTURE CONTAINER
   ========================================================================= */

.adventure-container {
    position: fixed;
    inset: 0;
    background: var(--adventure-bg-dark);
    z-index: 1000;
    overflow: hidden;
    font-family: var(--font-body);
}

.adventure-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.adventure-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    pointer-events: none;
}

/* Vignette Effect */
.adventure-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 150px 50px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

/* =========================================================================
   ENVIRONMENT VISUALS
   ========================================================================= */

.environment-layer {
    position: absolute;
    inset: 0;
    transition: opacity var(--transition-slow);
}

/* Sky Gradients by Time */
.sky-dawn {
    background: linear-gradient(
        to bottom,
        #1a1a2e 0%,
        #2d1b4e 20%,
        #6b3d6b 40%,
        #d4789c 60%,
        #f4a460 80%,
        #ffcc66 100%
    );
}

.sky-morning {
    background: linear-gradient(
        to bottom,
        #4a90c2 0%,
        #87ceeb 40%,
        #b0d4e8 70%,
        #e8f4f8 100%
    );
}

.sky-midday {
    background: linear-gradient(
        to bottom,
        #2d5aa0 0%,
        #4a9cd4 40%,
        #87ceeb 100%
    );
}

.sky-dusk {
    background: linear-gradient(
        to bottom,
        #1a1a3e 0%,
        #4a2d6b 25%,
        #8b4a6b 45%,
        #d4784a 65%,
        #f4a460 85%,
        #ffcc66 100%
    );
}

.sky-night {
    background: linear-gradient(
        to bottom,
        #0a0a1a 0%,
        #1a1a2e 50%,
        #2a2a4e 100%
    );
}

/* Weather Effects */
.weather-rain {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(150, 180, 200, 0.1) 50%,
        rgba(150, 180, 200, 0.1) 51%,
        transparent 51%
    );
    background-size: 3px 100px;
    animation: rain-fall 0.5s linear infinite;
    pointer-events: none;
}

@keyframes rain-fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.weather-fog {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(180, 190, 200, 0.6) 0%,
        rgba(180, 190, 200, 0.3) 30%,
        transparent 60%
    );
    animation: fog-drift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fog-drift {
    0%, 100% { transform: translateX(-5%); opacity: 0.7; }
    50% { transform: translateX(5%); opacity: 0.9; }
}

.weather-snow {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(3px 3px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, white, transparent),
        radial-gradient(2px 2px at 60% 20%, white, transparent),
        radial-gradient(3px 3px at 80% 60%, white, transparent);
    background-size: 400px 400px;
    animation: snow-fall 3s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes snow-fall {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 400px 400px, 300px 400px, 200px 400px, 100px 400px; }
}

/* =========================================================================
   HUD - HEADS UP DISPLAY
   ========================================================================= */

.adventure-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.adventure-hud > * {
    pointer-events: auto;
}

/* Top Bar */
.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

.hud-scenario-info {
    background: var(--adventure-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    max-width: 400px;
}

.scenario-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scenario-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Environment Info */
.hud-environment {
    display: flex;
    gap: var(--space-md);
    background: var(--adventure-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
}

.env-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.env-icon {
    font-size: 1.25rem;
}

/* Progress Timer */
.hud-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.timer-value {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.timer-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Stage Progress Bar */
.stage-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.stage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--forest-light), var(--call-success));
    transition: width var(--transition-normal);
    box-shadow: 0 0 10px var(--call-success);
}

/* =========================================================================
   ANIMAL STATUS PANEL
   ========================================================================= */

.animal-status-panel {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    background: var(--adventure-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 12px;
    padding: var(--space-md);
}

.animal-status-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--adventure-glass-border);
}

.animal-icon {
    width: 40px;
    height: 40px;
    background: var(--forest-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.animal-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.animal-distance {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Status Meters */
.status-meter {
    margin-bottom: var(--space-md);
}

.status-meter:last-child {
    margin-bottom: 0;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meter-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.meter-interest .meter-fill {
    background: linear-gradient(90deg, var(--call-neutral), var(--call-success));
}

.meter-alertness .meter-fill {
    background: linear-gradient(90deg, var(--call-success), var(--call-warning), var(--call-danger));
}

.meter-distance .meter-fill {
    background: linear-gradient(90deg, var(--call-success), var(--water-light));
}

/* Behavior State */
.animal-behavior {
    text-align: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: var(--space-md);
}

.behavior-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.behavior-state {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--call-active);
    text-transform: uppercase;
}

/* =========================================================================
   CALL INTERFACE
   ========================================================================= */

.call-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

/* Call Prompt */
.call-prompt {
    text-align: center;
    animation: prompt-pulse 2s ease-in-out infinite;
}

@keyframes prompt-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.prompt-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.prompt-call {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--call-active);
    text-transform: uppercase;
}

.prompt-timing {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-xs);
}

/* Main Call Button */
.call-button-container {
    position: relative;
}

.call-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--call-active);
    background: radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.3), transparent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.call-button::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--call-active);
    border-radius: 50%;
    opacity: 0;
    animation: call-ring 2s ease-out infinite;
}

@keyframes call-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.call-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}

.call-button:active,
.call-button.recording {
    transform: scale(0.95);
    background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.4), transparent);
    border-color: var(--call-danger);
}

.call-button.recording::before {
    border-color: var(--call-danger);
}

.call-button-icon {
    font-size: 2.5rem;
}

/* Recording Indicator */
.recording-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--call-danger);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.call-button.recording + .recording-indicator {
    opacity: 1;
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: var(--call-danger);
    border-radius: 50%;
    animation: recording-pulse 1s ease-in-out infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Call Type Selector */
.call-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 600px;
}

.call-type-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--adventure-glass);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.call-type-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.call-type-btn.active,
.call-type-btn.required {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--call-active);
    color: var(--call-active);
}

.call-type-btn.recommended {
    border-color: var(--call-warning);
    color: var(--call-warning);
}

/* =========================================================================
   FEEDBACK SYSTEM
   ========================================================================= */

.feedback-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 100;
}

.feedback-score {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, var(--call-success), var(--forest-light));
    -webkit-background-clip: text;
    background-clip: text;
    animation: feedback-pop 0.5s ease-out;
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.5);
}

@keyframes feedback-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.feedback-label {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

.feedback-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
}

/* Animal Response Animation */
.animal-response {
    position: absolute;
    bottom: 40%;
    right: 20%;
    padding: var(--space-md) var(--space-lg);
    background: var(--adventure-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 12px;
    animation: response-slide 0.5s ease-out;
}

@keyframes response-slide {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.response-icon {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.response-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================================================
   NARRATIVE PANEL
   ========================================================================= */

.narrative-panel {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    text-align: center;
    padding: var(--space-lg);
    background: var(--adventure-overlay);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    animation: narrative-fade 1s ease-out;
}

@keyframes narrative-fade {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.narrative-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* =========================================================================
   STAGE TRANSITION
   ========================================================================= */

.stage-transition {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: transition-fade 0.5s ease-out;
}

@keyframes transition-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.stage-complete-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: icon-bounce 0.5s ease-out;
}

@keyframes icon-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.stage-complete-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.stage-complete-score {
    font-size: 1.25rem;
    color: var(--call-success);
}

/* =========================================================================
   RESULTS SCREEN
   ========================================================================= */

.adventure-results {
    position: absolute;
    inset: 0;
    background: var(--adventure-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    z-index: 300;
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.results-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.results-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-sm);
}

.results-score-container {
    margin-bottom: var(--space-2xl);
}

.results-score {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
}

.results-grade {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--call-success);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: var(--space-md);
}

/* Stats Grid */
.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    max-width: 600px;
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--adventure-glass);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

/* XP Award */
.xp-award {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid var(--autumn-gold);
    border-radius: 30px;
    margin-bottom: var(--space-2xl);
    animation: xp-glow 2s ease-in-out infinite;
}

@keyframes xp-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 160, 23, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 160, 23, 0.5); }
}

.xp-icon {
    font-size: 1.5rem;
}

.xp-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--autumn-gold);
}

.xp-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Action Buttons */
.results-actions {
    display: flex;
    gap: var(--space-md);
}

.results-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.results-btn-primary {
    background: var(--call-success);
    border: none;
    color: #fff;
}

.results-btn-primary:hover {
    background: var(--forest-light);
    transform: translateY(-2px);
}

.results-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.results-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   SCENARIO SELECTION MENU
   ========================================================================= */

.scenario-menu {
    position: fixed;
    inset: 0;
    background: var(--adventure-bg-dark);
    padding: var(--space-2xl);
    overflow-y: auto;
    z-index: 500;
}

.scenario-menu-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.scenario-menu-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scenario-menu-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-sm);
}

/* Species Tabs */
.species-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.species-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--adventure-glass);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.species-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.species-tab.active {
    background: var(--forest-green);
    border-color: var(--forest-light);
    color: #fff;
}

/* Scenario Cards Grid */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.scenario-card {
    background: var(--adventure-glass);
    border: 1px solid var(--adventure-glass-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--forest-light);
}

.scenario-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.scenario-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.scenario-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.scenario-difficulty {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-easy { background: var(--call-success); color: #fff; }
.difficulty-normal { background: var(--call-warning); color: #000; }
.difficulty-hard { background: var(--sunset-orange); color: #fff; }
.difficulty-expert { background: var(--call-danger); color: #fff; }

.scenario-card-content {
    padding: var(--space-lg);
}

.scenario-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.scenario-card-subtitle {
    font-size: 0.875rem;
    color: var(--call-active);
    margin-bottom: var(--space-sm);
}

.scenario-card-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.scenario-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.scenario-xp {
    color: var(--autumn-gold);
    font-weight: 600;
}

/* =========================================================================
   MOBILE RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
    .adventure-hud {
        padding: var(--space-md);
    }

    .hud-top {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hud-scenario-info {
        max-width: 100%;
    }

    .scenario-title {
        font-size: 1.25rem;
    }

    .animal-status-panel {
        position: fixed;
        right: var(--space-sm);
        top: auto;
        bottom: 240px;
        transform: none;
        width: 180px;
        padding: var(--space-sm);
    }

    .call-button {
        width: 100px;
        height: 100px;
    }

    .call-types {
        max-width: 100%;
    }

    .timer-value {
        font-size: 3rem;
    }

    .results-score {
        font-size: 5rem;
    }

    .scenario-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .call-button {
        width: 80px;
        height: 80px;
    }

    .call-type-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }

    .narrative-panel {
        padding: var(--space-md);
        margin: 0 var(--space-sm);
        max-width: calc(100% - 2 * var(--space-sm));
    }

    .narrative-text {
        font-size: 1rem;
    }
}

/* =========================================================================
   ACCESSIBILITY
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    .call-button::before,
    .weather-rain,
    .weather-fog,
    .weather-snow,
    .feedback-score,
    .recording-dot {
        animation: none;
    }
}

/* Focus States */
.call-button:focus,
.call-type-btn:focus,
.results-btn:focus,
.species-tab:focus,
.scenario-card:focus {
    outline: 2px solid var(--call-active);
    outline-offset: 2px;
}
