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

:root {
    /* Color Palette */
    --text-white: #FFFFFF;
    --titan-green: #00FF41;
    --glass-dark: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --amber: #FFB000;
    --gold: #FFD700;
}

/* --- GLOBAL TITAN ATMOSPHERE (V5.0 Update) --- */
body {
    font-family: 'Inter', sans-serif;
    
    /* Base Color: Deepest Black */
    background-color: #050505;
    
    /* The "Titan Glow": subtle center light (Green Top, Blue Bottom), fading to black edges */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(0, 124, 240, 0.08) 0%, transparent 60%);
        
    /* Lock background so it doesn't scroll with content */
    background-attachment: fixed;
    background-size: cover;
    
    color: var(--text-white);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* REMOVED: body::before (Dark overlay no longer needed with clean gradient background) */

/* ===== LAYER 1: AVATAR (Center Bottom) ===== */
.avatar-image {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    height: 85vh;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.4));
    animation: fadeInUp 1s ease-out, pulse-glow 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(0, 255, 65, 0.7));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== LAYER 2: FLOATING HUD ===== */
.hud-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* ===== MOBILE: Archetype Header (Hidden on Desktop) ===== */
.archetype-header-mobile {
    display: none;
    position: fixed;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    z-index: 12;
    pointer-events: none;
    text-align: center;
}

/* ===== TOP HEADER: Player Name & Archetype ===== */
.header-section {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 11;
    pointer-events: none;
    opacity: 0;
    animation: slideDownFadeIn 0.8s ease-out forwards;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.player-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0.9;
}

.archetype-identity {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 12px 0 0 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.archetype-identity.patient-zero-effect {
    font-size: 4rem;
    margin: 12px 0 0 0;
    color: #39FF14;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0px 0px 2px rgba(57, 255, 20, 0.5);
    white-space: nowrap;
}

/* Radioactive Glow Animation */
@keyframes viral-pulse-glow {
    0% {
        text-shadow: 
            0 0 20px #39FF14,
            0 0 40px #39FF14,
            0 0 60px #39FF14,
            0 0 80px rgba(57, 255, 20, 0.6);
    }
    50% {
        text-shadow: 
            0 0 30px #00FFFF,
            0 0 60px #00FFFF,
            0 0 100px #00FFFF,
            0 0 150px rgba(0, 255, 255, 0.7),
            0 0 200px rgba(0, 255, 255, 0.4);
    }
    100% {
        text-shadow: 
            0 0 20px #39FF14,
            0 0 40px #39FF14,
            0 0 60px #39FF14,
            0 0 80px rgba(57, 255, 20, 0.6);
    }
}

/* Instability Flicker - Random opacity drops */
@keyframes viral-instability {
    0%, 85% { opacity: 1; }
    86% { opacity: 0.8; }
    87% { opacity: 1; }
    88% { opacity: 0.8; }
    89% { opacity: 1; }
    90%, 100% { opacity: 1; }
}

/* ===== TOP LEFT: OVR DISPLAY (Standalone) ===== */
.ovr-display {
    position: fixed;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 11;
    pointer-events: none;
    opacity: 0;
    animation: slamFadeIn 0.5s ease-out forwards;
}

@keyframes slamFadeIn {
    from {
        opacity: 0;
        transform: scale(1.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ovr-value {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 10.35rem;
    color: var(--text-white);
    line-height: 0.8;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: -4px;
    text-align: center;
}

.ovr-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9775rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ===== LEFT SIDE: STATS BLOCK (Vertical Data Column) ===== */
.stats-block {
    position: fixed;
    top: 210px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 11;
    pointer-events: none;
    text-align: left;
    opacity: 0;
    animation: slideInLeftFadeIn 1.2s ease-out 0.3s forwards;
    padding: 8px 0;
}

.stats-block.stats-left {
    top: 210px;
    left: 24px;
}

.stat-item-vertical {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.84rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    opacity: 0.85;
}

@keyframes slideInRightFadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    opacity: 0.95;
    margin-left: 4px;
}

/* ===== BOTTOM: XP BAR (HUD Element) ===== */
.health-bars-container {
    position: fixed;
    bottom: 105px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 500px;
    max-width: 90vw;
    z-index: 12;
    pointer-events: none;
    opacity: 0;
    animation: slideUpFadeInBars 1.0s ease-out 0.8s forwards;
}

@keyframes slideUpFadeInBars {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.health-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.health-bar-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.xp-label-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.xp-numbers {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: #00ff9d;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

.health-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.xp-bar-container {
    height: 16px;
    border-radius: 8px;
}

.health-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.xp-bar-fill {
    background: linear-gradient(90deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 8px;
    box-shadow: 
        0 0 10px rgba(74, 144, 226, 0.6),
        0 0 20px rgba(74, 144, 226, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

/* Streak badge above XP bar - Glass Pill Style */
.streak-badge-xp {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0.95;
}

.streak-badge-xp .streak-icon {
    font-size: 0.85rem;
    filter: hue-rotate(15deg) saturate(1.5);
}

.streak-badge-xp .streak-text {
    font-size: 0.65rem;
}

/* ===== GLASSMORPHISM CARDS ===== */
.glass-card {
    position: absolute;
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 20px;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.glass-card:active {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.2);
}

.highlight-card {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.2);
}

.card-header {
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-align: center;
    width: 100%;
}

.card-mid-right .card-header {
    margin-bottom: 4px;
}

.card-mid-right .card-title {
    margin-bottom: 0;
}

/* ===== MID-LEFT: DAILY OBJECTIVES (Lower Third) ===== */
.card-mid-left {
    bottom: 190px;
    left: 24px;
    top: auto;
    min-width: 140px;
    max-width: 22vw;
    min-height: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: slideInLeftFadeIn 1.0s ease-out 0.5s forwards;
}

@keyframes slideInLeftFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.objective-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--titan-green);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.objective-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--text-white);
    opacity: 0.9;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.xp-badge {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--titan-green);
    margin-left: 4px;
}

/* ===== MID-RIGHT: PRIMARY MISSION (Lower Third) ===== */
.card-mid-right {
    bottom: 190px;
    right: 24px;
    top: auto;
    min-width: 96px;
    max-width: 13vw;
    width: 60%;
    min-height: 160px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: slideInRightFadeIn 1.0s ease-out 0.6s forwards;
}

.mission-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.mission-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    text-align: center;
}

.mission-reward {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.reward-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-white);
    opacity: 0.8;
}

.reward-value {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--titan-green);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.mission-status {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--amber);
    text-shadow: 0 0 15px rgba(255, 176, 0, 0.6);
    text-align: center;
}

.blinking-amber {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== TOP RIGHT: READINESS ORB (Clickable Link) ===== */
.readiness-orb-link {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 120px;
    height: 120px;
    z-index: 11;
    text-decoration: none;
    opacity: 0;
    animation: slideInRightFadeIn 1.2s ease-out 0.3s forwards;
}

.readiness-orb-container {
    width: 100%;
    height: 100%;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.readiness-orb-link:hover .readiness-orb-container {
    transform: scale(1.05);
}

.readiness-orb-link:active .readiness-orb-container {
    transform: scale(0.95);
}

.readiness-orb-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.orb-bg {
    transition: stroke 0.3s ease;
}

.orb-progress {
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.3s ease;
    stroke: #00FF41; /* Default green */
}

/* Color states for readiness orb */
.readiness-orb-container.orb-green .orb-progress {
    stroke: #00FF41;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
}

.readiness-orb-container.orb-yellow .orb-progress {
    stroke: #FFB000;
    filter: drop-shadow(0 0 8px rgba(255, 176, 0, 0.6));
}

.readiness-orb-container.orb-red .orb-progress {
    stroke: #FF4444;
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.6));
}

.readiness-orb-container.orb-default .orb-progress {
    stroke: rgba(255, 255, 255, 0.3);
    filter: none;
}

.readiness-orb-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    justify-content: center;
    pointer-events: none;
}

.readiness-percentage {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.readiness-percent-sign {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
    opacity: 0.8;
    margin-left: 2px;
}

/* ===== TOP RIGHT: SYSTEM GUIDE PANEL ===== */
.system-guide-panel {
    position: fixed;
    top: 160px;
    right: 24px;
    min-width: 180px;
    max-width: 240px;
    min-height: 100px;
    z-index: 11;
    opacity: 0;
    animation: slideInRightFadeIn 1.2s ease-out 0.4s forwards;
}

.system-guide-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.system-guide-content .mission-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-guide-content .mission-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

/* ===== PROTOCOL STATUS LABEL (Immediately Below Readiness Orb) ===== */
.protocol-status-label {
    position: fixed;
    top: 125px;
    right: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    animation: slideInRightFadeIn 1.2s ease-out 0.5s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 120px;
}

.status-indicator {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

/* ===== SYSTEM GUIDE BANNER (Notification Banner - Under PATIENT ZERO) ===== */
.system-guide-banner {
    position: fixed;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    animation: slideDownFadeIn 1.0s ease-out 0.6s forwards;
    max-width: 600px;
    width: 90%;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ===== SCHEDULE CARD STYLING ===== */
.card-mid-right .card-header {
    margin-bottom: 6px;
}

.card-mid-right .card-title {
    margin-bottom: 0;
    font-size: 0.6rem;
}

.schedule-content {
    text-align: center;
    padding: 4px 0;
    flex-grow: 1;
    width: 100%;
}

.schedule-item {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 6px;
    word-wrap: break-word;
    text-align: center;
}

.schedule-details {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    line-height: 1.4;
    color: #aaa;
    word-wrap: break-word;
    text-align: center;
}

/* ===== BOTTOM DOCK (Action Bar) ===== */
.bottom-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
    opacity: 0;
    animation: slideUpFadeInBars 1.0s ease-out 0.8s forwards;
}

.dock-button {
    width: 56px;
    height: 56px;
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dock-button:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
}

.dock-button:active {
    transform: translateY(0) scale(0.95);
}

.dock-icon {
    font-size: 1.6rem;
    filter: grayscale(0.2);
    transition: filter 0.2s ease;
}

.dock-button:hover .dock-icon {
    filter: grayscale(0);
}

.dock-main-button {
    text-decoration: none;
}

.dock-main-button .action-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 48px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #00ff9d;
    color: #00ff9d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 280px;
    box-shadow: 
        0 0 25px rgba(0, 255, 157, 0.5),
        0 0 50px rgba(0, 255, 157, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-main-button .action-btn:hover {
    background: rgba(0, 255, 157, 0.1);
    box-shadow: 
        0 0 35px rgba(0, 255, 157, 0.7),
        0 0 70px rgba(0, 255, 157, 0.5),
        0 6px 25px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    border-color: #00ff9d;
}

.dock-main-button .action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== RESPONSIVE DESIGN (Mobile/HUD Styling Applied Globally) ===== */
/* All screen sizes use the mobile/HUD layout - no desktop-specific overrides */

@media (max-width: 768px) {
    /* Show Archetype Header on Mobile */
    .archetype-header-mobile {
        display: block;
        margin-bottom: 2px;
    }
    
    .header-section {
        top: 48px;
        padding: 0;
        background: transparent;
    }
    
    .player-name {
        font-size: 1rem;
        letter-spacing: 1.5px;
        margin-top: 2px;
    }
    
    .archetype-identity {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .archetype-identity.patient-zero-effect {
        font-size: 2rem;
        margin: 4px 0 0 0;
        color: #39FF14;
        letter-spacing: 2px;
        text-shadow: 0px 0px 2px rgba(57, 255, 20, 0.5);
    }
    
    .ovr-display {
        top: 16px;
        left: 16px;
    }
    
    .ovr-value {
        font-size: 6.325rem;
    }
    
    .ovr-label {
        font-size: 0.9775rem;
    }
    
    /* Stats repositioned to avatar head height */
    .stats-block.stats-left {
        top: 200px;
    }
    
    .stat-item-vertical {
        font-size: 0.8rem;
    }
    
    /* Cards in lower third */
    .card-mid-left,
    .card-mid-right {
        bottom: 180px;
        top: auto;
    }
    
    .avatar-image {
        bottom: 120px;
    }
    
    .health-bars-container {
        bottom: 95px;
    }
    
    .system-guide-banner {
        top: 160px;
    }
    
    /* Readiness Orb positioning on mobile */
    .readiness-orb-link {
        top: 16px;
        right: 16px;
        width: 100px;
        height: 100px;
    }
    
    .readiness-percentage {
        font-size: 1.6rem;
    }
    
    .readiness-percent-sign {
        font-size: 0.85rem;
    }
    
    /* Stats on left side - avatar head height */
    .stats-block.stats-left {
        top: 200px;
        left: 16px;
    }
    
    .stat-item-vertical {
        font-size: 0.8rem;
    }
    
    .system-guide-panel {
        top: 132px;
        right: 16px;
        min-width: 160px;
        max-width: 200px;
    }
    
    /* Protocol status label - Mobile positioning */
    .protocol-status-label {
        top: 125px;
        right: 20px;
        font-size: 0.6rem;
        width: 100px;
    }
    
    .system-guide-banner {
        top: 160px;
        font-size: 0.6rem;
        padding: 5px 12px;
        max-width: 85%;
        width: 85%;
    }
    
    .card-mid-right {
        width: 55%;
        min-width: 90px;
    }
    
    .health-bars-container {
        width: 400px;
    }
    
    .bottom-dock {
        bottom: 16px;
        gap: 8px;
    }
    
    .dock-button {
        width: 48px;
        height: 48px;
    }
    
    .dock-icon {
        font-size: 1.4rem;
    }
    
    .dock-main-button .action-btn {
        font-size: 0.8rem;
        padding: 12px 32px;
        min-width: 200px;
    }
    
    .readiness-orb-link {
        width: 100px;
        height: 100px;
    }
    
    .health-bars-container {
        width: 280px;
        bottom: 85px;
        top: auto;
    }
    
    .card-mid-left,
    .card-mid-right {
        bottom: 170px;
        top: auto;
    }
    
    .avatar-image {
        bottom: 110px;
    }
    
    /* Lower third positioning */
    .card-mid-left,
    .card-mid-right {
        bottom: 170px;
        top: auto;
        min-width: 140px;
        max-width: 35vw;
        min-height: 130px;
        height: 130px;
        padding: 8px 10px;
    }
    
    .card-mid-left {
        left: 12px;
    }
    
    .card-mid-right {
        right: 12px;
    }
    
    /* Readiness Orb mobile adjustments */
    
    .readiness-percentage {
        font-size: 1.4rem;
    }
    
    .readiness-percent-sign {
        font-size: 0.75rem;
    }

    .avatar-image {
        max-width: 100vw;
        bottom: 0px;
    }
}

@media (max-width: 480px) {
    /* Show Archetype Header on Small Mobile */
    .archetype-header-mobile {
        display: block;
        font-size: 0.45rem;
        top: 1px;
        margin-bottom: 1px;
    }
    
    .header-section {
        top: 44px;
        padding: 0;
        background: transparent;
    }
    
    .player-name {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-top: 1px;
    }
    
    .archetype-identity {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
    
    .archetype-identity.patient-zero-effect {
        font-size: 1.7rem;
        margin: 3px 0 0 0;
        color: #39FF14;
        letter-spacing: 2px;
        text-shadow: 0px 0px 2px rgba(57, 255, 20, 0.5);
    }
    
    .ovr-display {
        top: 12px;
        left: 12px;
    }
    
    .ovr-value {
        font-size: 4.6rem;
    }
    
    .ovr-label {
        font-size: 0.9775rem;
    }
    
    /* Stats repositioned to avatar head height */
    .stats-block.stats-left {
        top: 190px;
    }
    
    .stat-item-vertical {
        font-size: 0.75rem;
    }
    
    /* Cards in lower third */
    .card-mid-left,
    .card-mid-right {
        bottom: 170px;
        top: auto;
    }
    
    .avatar-image {
        bottom: 110px;
    }
    
    .health-bars-container {
        bottom: 85px;
    }
    
    .system-guide-banner {
        top: 160px;
    }
    
    /* Readiness Orb small mobile adjustments */
    .readiness-orb-link {
        top: 12px;
        right: 12px;
        width: 80px;
        height: 80px;
    }
    
    .bottom-dock {
        bottom: 12px;
        gap: 6px;
    }
    
    .dock-button {
        width: 44px;
        height: 44px;
    }
    
    .dock-icon {
        font-size: 1.2rem;
    }
    
    .dock-main-button .action-btn {
        font-size: 0.75rem;
        padding: 10px 24px;
        min-width: 180px;
        letter-spacing: 1.5px;
    }
    
    .protocol-status-label {
        top: 125px;
        right: 20px;
        font-size: 0.55rem;
        width: 90px;
    }
    
    .system-guide-banner {
        top: 160px;
        font-size: 0.55rem;
        padding: 4px 10px;
        max-width: 85%;
        width: 85%;
    }
    
    .readiness-percentage {
        font-size: 1.2rem;
    }
    
    .readiness-percent-sign {
        font-size: 0.65rem;
    }
    
    /* Stats on left side under OVR */
    .stats-block.stats-left {
        top: 190px;
        left: 12px;
    }
    
    .system-guide-panel {
        top: 108px;
        right: 12px;
        min-width: 130px;
        max-width: 160px;
    }
    
    /* Streak badge positioning */
    .streak-badge-container {
        top: 200px;
        right: 12px;
        padding: 3px 6px;
        border-radius: 10px;
        gap: 3px;
    }
    
    .streak-icon {
        font-size: 0.65rem;
    }
    
    .streak-text {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .stat-item-vertical {
        font-size: 0.6rem;
    }
    
    .stats-block.stats-left {
        top: 210px;
        left: 12px;
    }
    
    .system-guide-panel {
        top: 108px;
        right: 12px;
        min-width: 140px;
        max-width: 180px;
    }
    
    .health-bars-container {
        width: 250px;
        bottom: 95px;
        top: auto;
    }
    
    .avatar-image {
        bottom: 75px;
    }
    
    /* Lower third positioning - small mobile */
    .card-mid-left,
    .card-mid-right {
        bottom: 135px;
        top: auto;
        min-width: 140px;
        max-width: 42vw;
        min-height: 140px;
        height: 140px;
        padding: 8px 10px;
    }
    
    .card-mid-left {
        left: 8px;
    }
    
    .card-mid-right {
        right: 8px;
    }
    
    .stats-block.stats-left {
        top: 190px;
    }
    
    .stat-item-vertical {
        font-size: 0.75rem;
    }
    
    .avatar-image {
        bottom: 100px;
    }
    
    .health-bars-container {
        bottom: 75px;
    }
    
    .stats-block.stats-left {
        top: 190px;
        font-size: 0.75rem;
    }
    
    .stat-item-vertical {
        font-size: 0.75rem;
    }
    
    .system-guide-banner {
        top: 160px;
    }
    
    .card-mid-left,
    .card-mid-right {
        bottom: 160px;
        top: auto;
    }

    .card-title {
        font-size: 0.65rem;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(0, 255, 65, 0.3);
    color: var(--text-white);
}

/* ===== SCROLLBAR (if needed) ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.4);
}