/* Custom Fortnite-Inspired Premium CSS Design System */
:root {
    --bg-main: #0d0a1f;
    --bg-darker: #050308;
    --bg-glass: rgba(22, 17, 41, 0.75);
    --bg-glass-active: rgba(35, 27, 64, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(255, 255, 255, 0.2);
    
    /* Character Colors */
    --color-leader: #00c0ff;
    --color-strategy: #00e676;
    --color-community: #ff1744;
    --color-psychology: #ffea00;
    
    /* Fortnite Accents */
    --color-fortnite-orange: #ff9800;
    --color-fortnite-yellow: #f4b400;
    --color-fortnite-purple: #8c22e0;
    --color-text-light: #f5f5f7;
    --color-text-muted: #a1a1a6;
    
    /* Fonts */
    --font-luckiest: 'Luckiest Guy', cursive;
    --font-outfit: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 20% 15%, rgba(168, 85, 247, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 80% 60%, rgba(236, 72, 153, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(26, 21, 59, 0.9) 0%, transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--color-text-light);
    font-family: var(--font-outfit);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

/* Luckiest Font Class */
.luckiest-font {
    font-family: var(--font-luckiest);
    letter-spacing: 2px;
}

/* Sound Toggle Button */
.sound-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--color-text-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.sound-btn:hover {
    background: var(--bg-glass-active);
    transform: scale(1.1);
    border-color: var(--color-fortnite-yellow);
    box-shadow: 0 0 12px rgba(244, 180, 0, 0.4);
}
.sound-btn svg {
    width: 20px;
    height: 20px;
}
.hidden {
    display: none !important;
}

/* Glassmorphism Panel base */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Main Container */
.game-container {
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Screens Layout */
.screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 700px;
    text-align: center;
    padding: 40px;
}

/* Screen 1: Start Screen Styles */
.start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 700px;
    animation: fadeIn 0.8s ease-out;
}

.logo-area {
    margin-bottom: 10px;
}

.logo-sub {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--color-fortnite-orange);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
}

.logo-title {
    font-family: var(--font-luckiest);
    font-size: 5rem;
    line-height: 0.95;
    letter-spacing: 3px;
    transform: rotate(-2deg) skewX(-5deg);
    margin: 10px 0;
    background: linear-gradient(185deg, #fff 0%, #ffeb3b 45%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.text-glow {
    text-shadow: 0 0 30px rgba(255, 152, 0, 0.6);
}
.text-glow-small {
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

.lobby-card {
    padding: 24px;
    width: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.lobby-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--color-fortnite-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-fortnite-orange);
}

.countdown-timer {
    font-family: var(--font-luckiest);
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.lobby-tip {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.lobby-tip strong {
    color: var(--color-fortnite-yellow);
}

.welcome-box {
    padding: 24px;
    text-align: left;
    border-radius: 12px;
}
.welcome-box h2 {
    font-family: var(--font-luckiest);
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--color-fortnite-yellow);
}
.welcome-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Premium Buttons */
.btn {
    font-family: var(--font-luckiest);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transform: skewX(-5deg);
}

.btn-primary {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    border-bottom: 4px solid #b33d00;
}
.btn-primary:hover {
    transform: skewX(-5deg) scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.4);
}
.btn-primary:active {
    transform: skewX(-5deg) scale(0.98) translateY(1px);
    border-bottom-width: 1px;
}

.btn-secondary {
    background: linear-gradient(135deg, #8c22e0 0%, #5e119d 100%);
    color: #fff;
    border-bottom: 4px solid #3c0b65;
}
.btn-secondary:hover {
    transform: skewX(-5deg) scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(140, 34, 224, 0.4);
}
.btn-secondary:active {
    transform: skewX(-5deg) scale(0.98) translateY(1px);
    border-bottom-width: 1px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.4rem;
}
.btn-glow {
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.7);
}

/* Game HUD Styles */
.game-hud {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-logo {
    font-size: 1.6rem;
    transform: rotate(-1deg);
    background: linear-gradient(135deg, #fff 0%, #ffea00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hud-stats {
    display: flex;
    gap: 16px;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 6px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--font-luckiest);
    font-size: 1.3rem;
    line-height: 1.1;
}

.xp-box .stat-value {
    color: var(--color-fortnite-yellow);
}

.level-box .stat-value {
    color: var(--color-leader);
}

/* HUD Progress Bar & Dots */
.hud-progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    margin: 10px 0;
}

.hud-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-fortnite-purple) 0%, var(--color-leader) 100%);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-progress-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hud-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #231b40;
    border: 2px solid #0c0714;
    transition: var(--transition-smooth);
}
.hud-dot.active {
    background: var(--color-leader);
    box-shadow: 0 0 8px var(--color-leader);
    transform: scale(1.3);
}
.hud-dot.completed {
    background: var(--color-strategy);
    border-color: #0c0714;
}

/* Main Layout (Split View: Sidebar + Interactive Zone) */
.game-main {
    display: grid;
    grid-template-columns: 320px 1fr;
    flex-grow: 1;
    min-height: 550px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
}

/* Sidebar: Characters list */
.char-sidebar {
    border-right: 1px solid var(--border-glass);
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(12, 7, 20, 0.5);
}

.sidebar-title {
    font-family: var(--font-luckiest);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.characters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.character-card.active {
    opacity: 1;
    background: var(--bg-glass-active);
    transform: translateX(5px);
}

/* Character Color Glows */
.character-card.color-leader.active {
    border-left: 5px solid var(--color-leader);
    box-shadow: 0 0 15px rgba(0, 192, 255, 0.25);
}
.character-card.color-strategy.active {
    border-left: 5px solid var(--color-strategy);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.25);
}
.character-card.color-community.active {
    border-left: 5px solid var(--color-community);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.25);
}
.character-card.color-psychology.active {
    border-left: 5px solid var(--color-psychology);
    box-shadow: 0 0 15px rgba(255, 234, 0, 0.25);
}

.char-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.char-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.char-role {
    font-weight: 800;
    font-size: 0.9rem;
}

.char-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Speech Bubble Container */
.speech-bubble-container {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.speech-bubble {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
}
.speech-speaker {
    font-family: var(--font-luckiest);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}
.color-leader ~ .speech-bubble-container .speech-speaker { color: var(--color-leader); }
.color-strategy ~ .speech-bubble-container .speech-speaker { color: var(--color-strategy); }
.color-community ~ .speech-bubble-container .speech-speaker { color: var(--color-community); }
.color-psychology ~ .speech-bubble-container .speech-speaker { color: var(--color-psychology); }

.speech-bubble p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* Interactive Zone (Right side) */
.interactive-zone {
    border-radius: 0;
    border: none;
    padding: 30px;
    overflow-y: auto;
    max-height: 650px;
    display: flex;
    flex-direction: column;
}

.hud-screen {
    animation: fadeIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.section-title {
    font-family: var(--font-luckiest);
    font-size: 2.2rem;
    color: #fff;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: left;
    margin-bottom: 10px;
}

/* Dual-Step Layout (Intel vs Challenge) */
.intel-view, .challenge-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.3s ease-out;
    text-align: left;
}

.intel-view ul {
    margin-left: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intel-view li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-light);
}

/* Intel Table Styles */
.intel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.intel-table th, .intel-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.intel-table th {
    background: rgba(140, 34, 224, 0.15);
    font-weight: 800;
    color: var(--color-fortnite-yellow);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intel-table tr:last-child td {
    border-bottom: none;
}

.intel-table td strong {
    color: var(--color-leader);
}

.btn-to-challenge {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-strategy) 0%, #00b0ff 100%);
    border-bottom: 4px solid #0087c4;
    padding: 14px 28px;
    font-size: 1.1rem;
}
.btn-to-challenge:hover {
    transform: skewX(-5deg) scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.25);
}

/* Change Map Block Headers */
#map-blocks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-block-header {
    margin-top: 18px;
    margin-bottom: 2px;
    padding: 8px 14px;
    border-left: 4px solid var(--color-fortnite-purple);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-luckiest);
    letter-spacing: 1.5px;
    font-size: 1rem;
    text-transform: uppercase;
}
.map-block-header:first-child {
    margin-top: 4px;
}

/* Change Map Node Grid */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.map-node {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.map-node.active {
    background: rgba(140, 34, 224, 0.15);
    border-color: var(--color-fortnite-purple);
    box-shadow: 0 0 15px rgba(140, 34, 224, 0.25);
}
.map-node.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(140, 34, 224, 0.4);
    background: rgba(140, 34, 224, 0.25);
}

.map-node.completed {
    border-color: var(--color-strategy);
    background: rgba(0, 230, 118, 0.05);
}
.map-node.completed .node-number {
    background: var(--color-strategy);
    color: #fff;
}
.map-node.completed .node-status {
    color: var(--color-strategy);
}
.map-node.completed:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.map-node.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.node-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-luckiest);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.map-node.active .node-number {
    background: var(--color-fortnite-purple);
    color: #fff;
}

.node-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.node-status {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Mission Intro Card */
.mission-intro-card {
    background: rgba(255,255,255,0.02);
    border-left: 4px solid var(--color-fortnite-purple);
    padding: 18px;
    border-radius: 0 8px 8px 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}
.mission-intro-card h3 {
    font-family: var(--font-luckiest);
    color: var(--color-fortnite-yellow);
    margin-bottom: 8px;
    font-size: 1.3rem;
}
.mission-intro-card p {
    margin-bottom: 8px;
}
.mission-intro-card p:last-child {
    margin-bottom: 0;
}

/* Interactive Zone Inner Elements */
.interaction-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.interaction-prompt {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--color-text-light);
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
}
.option-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255,255,255,0.3);
    transform: translateX(5px);
}

.option-letter {
    font-family: var(--font-luckiest);
    background: rgba(255,255,255,0.1);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--color-fortnite-yellow);
    flex-shrink: 0;
}

/* Correct/Incorrect button states */
.option-btn.correct {
    background: rgba(0, 230, 118, 0.15) !important;
    border-color: var(--color-strategy) !important;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}
.option-btn.correct .option-letter {
    background: var(--color-strategy);
    color: #fff;
}

.option-btn.incorrect {
    background: rgba(255, 23, 68, 0.15) !important;
    border-color: var(--color-community) !important;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}
.option-btn.incorrect .option-letter {
    background: var(--color-community);
    color: #fff;
}

.option-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
}
.option-btn.disabled.correct, .option-btn.disabled.incorrect {
    opacity: 1;
}

/* Feedback & Navigation Area */
.feedback-area {
    margin-top: 15px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

.feedback-message {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 75%;
}

.btn-next {
    padding: 10px 24px;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--color-strategy) 0%, #00b0ff 100%);
    color: #fff;
    border-bottom: 3px solid #007bb0;
}

/* Drag and Drop Games: Common Styles */
.dragging {
    opacity: 0.5 !important;
    transform: scale(0.95);
}

/* Mission 2: Timeline Quest Styles */
.timeline-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.timeline-slots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.timeline-slot {
    flex: 1;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 160px;
    transition: var(--transition-smooth);
}

.timeline-slot.drag-over {
    background: rgba(140, 34, 224, 0.1);
    border-color: var(--color-fortnite-purple);
}

.slot-year {
    font-family: var(--font-luckiest);
    font-size: 0.85rem;
    color: var(--color-fortnite-yellow);
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.slot-target {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 10px;
    cursor: grab;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: var(--transition-smooth);
    width: 140px;
    user-select: none;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.3);
}

.timeline-item.placed {
    width: 100%;
    margin: 0;
    font-size: 0.75rem;
}

.timeline-actions {
    display: flex;
    justify-content: flex-end;
}

/* Mission 3: Stakeholder Battle Styles */
.stakeholder-battle {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.stakeholder-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 380px;
    gap: 16px;
}

.matrix-quadrant {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
    transition: var(--transition-smooth);
}
.matrix-quadrant.drag-over {
    background: rgba(0, 192, 255, 0.1);
    border-color: var(--color-leader);
}

.quadrant-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quadrant-target {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-grow: 1;
    min-height: 60px;
}

.stakeholder-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(0,0,0,0.15);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

.stakeholder-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: grab;
    user-select: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(33.33% - 10px);
    min-width: 210px;
    box-sizing: border-box;
}
.stakeholder-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}
.quadrant-target .stakeholder-item {
    flex: 1 1 100%;
    min-width: 100%;
    margin-bottom: 4px;
}
.sh-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--color-fortnite-yellow);
}
.sh-desc {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

.matrix-actions {
    display: flex;
    justify-content: flex-end;
}

/* Mission 4: Kotter Matching Styles */
.kotter-match {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.kotter-match-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: center;
}

.kotter-label {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--color-fortnite-yellow);
    background: rgba(244, 180, 0, 0.1);
    border: 1px solid rgba(244, 180, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
}

.kotter-dropzone {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 6px;
    transition: var(--transition-smooth);
}
.kotter-dropzone.drag-over {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--color-strategy);
}

.kotter-items-pool {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kotter-drag-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: grab;
    transition: var(--transition-smooth);
}
.kotter-drag-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.3);
}

.kotter-actions {
    display: flex;
    justify-content: flex-end;
}

/* Mission 5: Rogers Curve Challenge Styles */
.rogers-challenge {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.personas-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.persona-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8rem;
    cursor: grab;
    transition: var(--transition-smooth);
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.persona-card strong {
    font-size: 0.9rem;
    color: var(--color-fortnite-yellow);
}
.persona-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-leader);
    text-transform: uppercase;
}
.persona-card p {
    color: var(--color-text-muted);
    line-height: 1.3;
}

.persona-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.3);
}

.rogers-curve {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.curve-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
}
.curve-slot.drag-over {
    background: rgba(244, 180, 0, 0.1);
    border-color: var(--color-fortnite-yellow);
}

.curve-slot .slot-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.curve-slot .slot-dropzone {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
}

.rogers-actions {
    display: flex;
    justify-content: flex-end;
}

/* Mission 7: Lessons Learned Checkbox Grid */
.inventory-challenge {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.inventory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inventory-checkbox-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.inventory-checkbox-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.2);
}

.inventory-checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-fortnite-purple);
    cursor: pointer;
    margin-top: 2px;
}

.inventory-checkbox-card label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.inventory-checkbox-card label strong {
    font-size: 0.95rem;
    color: #fff;
}

.inventory-checkbox-card label span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Checkbox Verification Styles */
.inventory-checkbox-card.correct-selected {
    border-color: var(--color-strategy) !important;
    background: rgba(0, 230, 118, 0.08) !important;
}

.inventory-checkbox-card.incorrect-selected {
    border-color: var(--color-community) !important;
    background: rgba(255, 23, 68, 0.08) !important;
}

.inventory-actions {
    display: flex;
    justify-content: flex-end;
}

/* Screen 10: Play the Game - Final Challenge */
.final-game-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 300px;
    justify-content: center;
}

.game-setup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.game-setup h3 {
    font-family: var(--font-luckiest);
    font-size: 1.5rem;
    color: var(--color-fortnite-yellow);
}

.team-selection {
    display: flex;
    gap: 20px;
}

.btn-team {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 24px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-outfit);
    font-size: 1.1rem;
    font-weight: 800;
    transition: var(--transition-smooth);
    width: 220px;
}
.btn-team:hover {
    background: var(--bg-glass-active);
    border-color: var(--color-fortnite-purple);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(140, 34, 224, 0.3);
}

.team-icon {
    font-size: 3rem;
}

/* Game Play Arena */
.game-play {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.turn-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--color-fortnite-purple);
}

#current-team-turn {
    font-family: var(--font-luckiest);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.final-timer {
    font-family: var(--font-luckiest);
    font-size: 1.5rem;
    color: var(--color-community);
    background: rgba(255, 23, 68, 0.1);
    padding: 2px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.final-timer.warning {
    animation: pulse 0.5s infinite alternate;
}

.quiz-question-container h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.4;
}

.team-scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.score-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-card.team-blue {
    border-left: 4px solid var(--color-leader);
}
.score-card.team-red {
    border-left: 4px solid var(--color-community);
}

.team-name {
    font-weight: 800;
    font-size: 0.9rem;
}

.score-value {
    font-family: var(--font-luckiest);
    font-size: 1.2rem;
    color: var(--color-fortnite-yellow);
}

/* Victory Screen Styles */
.victory-screen {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    padding: 40px;
    align-items: center;
    justify-content: flex-start;
    animation: fadeIn 1s ease-out;
}

#victory-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.victory-banner {
    font-size: 5rem;
    line-height: 0.95;
    background: linear-gradient(185deg, #fff 0%, #ffeb3b 45%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(-3deg) skewX(-6deg);
    margin-top: 20px;
    z-index: 2;
    animation: victoryGrow 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.victory-subtitle {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--color-leader);
    margin-top: 5px;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 192, 255, 0.5);
    margin-bottom: 30px;
}

.victory-summary {
    max-width: 750px;
    width: 100%;
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.victory-summary h2 {
    font-size: 1.8rem;
    color: var(--color-fortnite-yellow);
    border-bottom: 2px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.ending-question h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.ending-question p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 12px;
}
.ending-question p strong {
    color: var(--color-strategy);
}

.xp-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid rgba(244, 180, 0, 0.2);
}

.xp-result span {
    font-size: 1.1rem;
    font-weight: 600;
}

.xp-result strong {
    font-family: var(--font-luckiest);
    font-size: 2.2rem;
    color: var(--color-fortnite-yellow);
    text-shadow: 0 0 10px rgba(244, 180, 0, 0.4);
}

.victory-actions {
    margin-top: 25px;
    z-index: 2;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 23, 68, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 23, 68, 0.8); }
}

@keyframes victoryGrow {
    0% { transform: rotate(-3deg) skewX(-6deg) scale(0.3); opacity: 0; }
    70% { transform: rotate(-3deg) skewX(-6deg) scale(1.1); }
    100% { transform: rotate(-3deg) skewX(-6deg) scale(1); opacity: 1; }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* Responsive Design */
@media (max-width: 900px) {
    body {
        padding: 10px;
    }
    .game-main {
        grid-template-columns: 1fr;
    }
    .char-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .characters-list {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    .character-card {
        flex-shrink: 0;
        width: auto;
    }
    .speech-bubble-container {
        display: none;
    }
    .timeline-slots {
        flex-direction: column;
        gap: 16px;
    }
    .timeline-slot {
        min-height: 80px;
        flex-direction: row;
        width: 100%;
    }
    .timeline-slot .slot-target {
        flex-grow: 1;
        justify-content: flex-start;
    }
    .timeline-item.placed {
        width: 100%;
    }
    .stakeholder-matrix {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        min-height: 500px;
    }
    .kotter-match-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .personas-container {
        grid-template-columns: 1fr;
    }
    .rogers-curve {
        grid-template-columns: 1fr;
    }
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SCREENSHOT PLACEHOLDERS --- */
.screenshot-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.screenshot-placeholder:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
}
.placeholder-icon {
    font-size: 1.5rem;
}
.placeholder-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.4;
    max-width: 90%;
}

/* --- GLOSSARY TERMS & GLOSSARY MODAL --- */
.glossary-term {
    color: var(--color-fortnite-yellow) !important;
    border-bottom: 1.5px dotted var(--color-fortnite-yellow);
    cursor: help;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline;
    padding: 0 2px;
}
.glossary-term:hover {
    background: rgba(244, 180, 0, 0.15);
    border-bottom-style: dashed;
    border-radius: 4px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}
.modal-content {
    background: rgba(20, 25, 35, 0.95);
    border: 2px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.modal-close-btn:hover {
    color: var(--color-fortnite-yellow);
}
#glossary-title {
    color: var(--color-fortnite-yellow);
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    font-family: inherit;
    font-weight: 800;
}
#glossary-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* ===== EINHEITLICHE EXPERIENCE-NAVIGATION ===== */
.xp-nav{
  position: fixed; top: 14px; left: 14px; z-index: 99999;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.xp-nav-link{
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Outfit', sans-serif;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  color: #f3f4f6; padding: .5rem .9rem; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(13,10,31,.72); backdrop-filter: blur(8px);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.xp-nav-link:hover{
  border-color: rgba(255,255,255,.5);
  background: rgba(30,22,60,.9); transform: translateY(-2px);
}
.xp-nav-link--accent{
  border-color: rgba(168,85,247,.5);
  box-shadow: 0 0 16px rgba(168,85,247,.25);
}
.xp-nav-link--accent:hover{
  border-color: #a855f7;
  box-shadow: 0 0 22px rgba(168,85,247,.5);
}
@media (max-width:520px){
  .xp-nav-link{ font-size: .72rem; padding: .45rem .7rem; }
}
