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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow-x: hidden;
    user-select: none;
}

/* Game Overlay and Welcome Screen */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.welcome-screen {
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    max-width: 600px;
    width: 90%;
}

.logo h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

.avatar {
    font-size: 4em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.player-details h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mode-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.mode-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.mode-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.mode-btn h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.mode-btn p {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Game HUD */
.game-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    font-size: 3em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-name {
    font-weight: bold;
    font-size: 1.2em;
}

.level {
    font-size: 0.9em;
    color: #FFD700;
}

.experience {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xp-bar {
    width: 100px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00);
    width: 0%;
    transition: width 0.5s ease;
}

.hud-center {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.mission-info h3 {
    margin-bottom: 5px;
    color: #FFD700;
}

.mission-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    width: 0%;
    transition: width 0.5s ease;
}

.hud-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-display {
    text-align: center;
}

.score-label {
    font-size: 0.9em;
    opacity: 0.8;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.achievements {
    position: relative;
}

.achievement-popup {
    position: absolute;
    top: -150px;
    right: 0;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: #000;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    min-width: 250px;
    animation: achievementSlide 0.5s ease-out;
}

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

.achievement-popup.show {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-icon {
    font-size: 2em;
}

.achievement-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.9em;
}

/* Main Container */
.container {
    max-width: 1600px;
    margin: 100px auto 20px;
    padding: 20px;
}

.example-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.example-btn {
    padding: 15px 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.example-btn:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.example-btn.active {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: #000;
    border-color: #FFD700;
    transform: scale(1.05);
}

.demo-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.animation-container {
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.controls-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.difficulty-selector select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: white;
    padding: 5px 10px;
    backdrop-filter: blur(10px);
}

.difficulty-selector option {
    background: #333;
    color: white;
}

.control-group {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

.help-tip {
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.help-tip:hover {
    opacity: 1;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.slider {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.5));
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid white;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    cursor: pointer;
    border: 2px solid white;
}

.value-display {
    min-width: 70px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 8px;
}

.param-feedback {
    font-size: 0.8em;
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    min-height: 20px;
}

.param-feedback.good {
    background: rgba(0,255,0,0.2);
    color: #90EE90;
}

.param-feedback.warning {
    background: rgba(255,165,0,0.2);
    color: #FFA500;
}

.param-feedback.bad {
    background: rgba(255,0,0,0.2);
    color: #FF6B6B;
}

/* Performance Metrics */
.performance-metrics {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.performance-metrics h4 {
    margin-bottom: 15px;
    text-align: center;
    color: #FFD700;
}

.metrics-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-label {
    min-width: 80px;
    font-size: 0.9em;
    font-weight: bold;
}

.metric-bar {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.metric-fill.stability { background: linear-gradient(90deg, #ff6b6b, #4ecdc4); }
.metric-fill.speed { background: linear-gradient(90deg, #45b7d1, #96ceb4); }
.metric-fill.accuracy { background: linear-gradient(90deg, #f9ca24, #f0932b); }

.metric-value {
    min-width: 40px;
    text-align: right;
    font-weight: bold;
}

.overall-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
}

.score-grade {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.score-grade.A { color: #00ff00; }
.score-grade.B { color: #90EE90; }
.score-grade.C { color: #FFD700; }
.score-grade.D { color: #FFA500; }
.score-grade.F { color: #ff6b6b; }

/* Interactive Controls Styles */
.interactive-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
}

.pedal {
    width: 90px;
    height: 130px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 15px;
    border: 3px solid #ecf0f1;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.pedal:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

.pedal:active,
.pedal.pressed {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.pedal.brake.pressed {
    background: linear-gradient(145deg, #e67e22, #d35400);
}

.pedal-label {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.pedal-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.joystick-container {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #34495e 0%, #2c3e50 100%);
    border-radius: 50%;
    position: relative;
    border: 4px solid #ecf0f1;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.4);
}

.joystick {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.1s ease;
}

.joystick:active {
    cursor: grabbing;
}

.throttle-slider {
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    width: 40px;
    height: 180px;
    background: linear-gradient(to top, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
    outline: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* System Specific Styles */
.car-road {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(90deg, #333 0%, #555 50%, #333 100%);
    border-top: 4px solid #ffff00;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.3);
}

.car {
    position: absolute;
    bottom: 40px;
    left: 200px;
    width: 100px;
    height: 50px;
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    border-radius: 15px 15px 8px 8px;
    transition: transform 0.1s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.car::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 15px;
    right: 15px;
    height: 20px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.car::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    right: 10px;
    height: 8px;
    background: #2c3e50;
    border-radius: 4px;
}

.speedometer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 160px;
    height: 160px;
    border: 6px solid #FFD700;
    border-radius: 50%;
    background: radial-gradient(circle, #2c3e50 0%, #34495e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    font-weight: bold;
}

.drone-area {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 70%, #8FBC8F 100%);
    border-radius: 15px;
    overflow: hidden;
}

.drone {
    position: absolute;
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 15px;
    transition: all 0.1s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.drone::before,
.drone::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 8px;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.drone::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.propeller {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: spin 0.1s linear infinite;
    border: 3px solid #34495e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.temperature-system {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db 0%, #e74c3c 100%);
    border-radius: 15px;
    overflow: hidden;
}

.thermometer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 280px;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid #2c3e50;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.mercury {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #e74c3c, #f39c12);
    border-radius: 25px;
    transition: height 0.3s ease;
}

.pendulum-system {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    overflow: hidden;
}

.pendulum-base {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 40px;
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 20px;
    border: 3px solid white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.pendulum-pivot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #ecf0f1;
    border-radius: 50%;
    border: 3px solid #2c3e50;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.pendulum-rod {
    position: absolute;
    top: 35px;
    left: 50%;
    width: 8px;
    height: 280px;
    background: linear-gradient(to bottom, #bdc3c7, #95a5a6);
    transform-origin: top center;
    transition: transform 0.1s ease;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pendulum-bob {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #e74c3c, #c0392b);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Chart Container */
.chart-container {
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    height: 350px;
    margin-bottom: 30px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

.chart-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chart-btn:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    transform: translateY(-2px);
}

/* Challenges Panel */
.challenges-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.challenge-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.challenge-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.challenge-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #FFD700;
}

.challenge-description {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.challenge-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.challenge-reward {
    color: #00ff00;
    font-weight: bold;
}

/* Status Display */
.status-display {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.status-display div {
    margin-bottom: 8px;
    font-size: 14px;
}

.control-instruction {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(145deg, rgba(255,215,0,0.2), rgba(255,165,0,0.2));
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(255,215,0,0.3);
    color: #FFD700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Info Panel */
.info-panel {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.info-panel h3 {
    margin-bottom: 10px;
    color: #FFD700;
    text-align: center;
}

.info-panel p {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

.pid-values {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.pid-value {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.pid-value:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.pid-value .label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.pid-value .value {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

/* Floating Hints */
.floating-hints {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
}

.hint-bubble {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    max-width: 300px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    position: relative;
    animation: hintFloat 3s ease-in-out infinite;
}

@keyframes hintFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hint-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #3498db;
}

.hint-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hint-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .demo-area {
        grid-template-columns: 1fr;
    }
    
    .game-hud {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .container {
        margin-top: 120px;
    }
}

@media (max-width: 768px) {
    .example-selector {
        grid-template-columns: 1fr 1fr;
    }
    
    .interactive-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .performance-metrics {
        padding: 15px;
    }
    
    .metrics-grid {
        gap: 10px;
    }
    
    .hint-bubble {
        max-width: 250px;
        font-size: 14px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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