:root {
    --theme-green: #1b4d3e;
    --theme-burgundy: #5c1a1a;
    --theme-gold: #d4af37;
    --theme-cream: #f5e6d3;
    --theme-dark: #0f1419;
    --theme-wood: #3d2817;
    --text-light: #f5e6d3;
    --text-dark: #1a1a1a;
    --text-secondary: #a08968;
    --success-color: #2ecc71;
    --danger-color: #8b1e1e;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-large: 0 12px 24px rgba(0, 0, 0, 0.8);
}

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

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', serif;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        linear-gradient(135deg, var(--theme-green) 0%, var(--theme-dark) 100%);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(92, 26, 26, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#app {
    height: 100vh;
    position: relative;
}

/* Screens */
.screen {
    display: none;
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Start Screen */
.title-card {
    text-align: center;
    padding: 4rem 3rem;
    background: 
        linear-gradient(135deg, rgba(92, 26, 26, 0.95) 0%, rgba(27, 77, 62, 0.95) 100%);
    border: 8px double var(--theme-gold);
    border-radius: 20px;
    box-shadow: 
        var(--shadow-large),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    max-width: 600px;
}

.title-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

.game-title {
    font-size: 5.5rem;
    color: var(--theme-gold);
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8),
        2px 2px 20px rgba(212, 175, 55, 0.5);
    letter-spacing: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    -webkit-text-stroke: 2px var(--theme-burgundy);
    paint-order: stroke fill;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1rem;
}

.music-toggle {
    margin-top: 2rem;
}

/* Difficulty Selection Screen */
.difficulty-card {
    max-width: 1100px;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(92, 26, 26, 0.95) 0%, rgba(27, 77, 62, 0.95) 100%);
    border: 8px double var(--theme-gold);
    border-radius: 20px;
    box-shadow: var(--shadow-large), inset 0 0 60px rgba(0, 0, 0, 0.3);
}

.difficulty-title {
    font-size: 3rem;
    color: var(--theme-gold);
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    font-weight: 900;
}

.difficulty-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    font-style: italic;
    opacity: 0.9;
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.difficulty-option {
    padding: 2rem;
    background: linear-gradient(135deg, var(--theme-wood) 0%, var(--theme-burgundy) 100%);
    border: 4px solid var(--theme-gold);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.difficulty-option::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.difficulty-option:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #fff;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.6);
}

.difficulty-option.highlighted {
    border-width: 5px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.4);
}

.difficulty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.difficulty-option h3 {
    font-size: 1.5rem;
    color: var(--theme-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 1.5rem;
}

.difficulty-badge.easy {
    background: #2ecc71;
    color: var(--text-dark);
}

.difficulty-badge.medium {
    background: var(--theme-gold);
    color: var(--text-dark);
}

.difficulty-badge.hard {
    background: #e74c3c;
    color: var(--text-light);
}

.difficulty-features {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.difficulty-features li {
    padding: 0.6rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.difficulty-features li:last-child {
    border-bottom: none;
}

/* Loading Screen */
.loading-card {
    text-align: center;
    padding: 3rem;
    background: rgba(27, 77, 62, 0.8);
    border: 6px double var(--theme-gold);
    border-radius: 15px;
    box-shadow: var(--shadow-large);
}

.spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--theme-gold);
    border-right-color: var(--theme-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

.loading-detail {
    color: var(--theme-gold);
    font-style: italic;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 3px solid var(--theme-gold);
    background: var(--theme-burgundy);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 7px;
    pointer-events: none;
}

.btn:hover {
    background: var(--theme-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.btn-primary {
    background: var(--theme-gold);
    color: var(--text-dark);
    font-weight: bold;
}

.btn-primary:hover {
    background: #c5a028;
    border-color: #c5a028;
}

.btn-secondary {
    background: var(--theme-wood);
    border-color: var(--text-secondary);
}

.btn-tertiary {
    background: rgba(41, 128, 185, 0.3);
    border-color: #3498db;
    color: var(--text-light);
}

.btn-tertiary:hover {
    background: rgba(41, 128, 185, 0.5);
    border-color: #5dade2;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: var(--danger-color);
    border-color: #b84545;
}

.btn-danger:hover {
    background: #721616;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-light);
    border-radius: 5px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Game Screen Layout */
.game-layout {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-green) 100%);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--theme-burgundy) 0%, var(--theme-wood) 100%);
    border-bottom: 4px solid var(--theme-gold);
    box-shadow: var(--shadow);
    position: relative;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(212, 175, 55, 0.3);
}

.case-info h2 {
    color: var(--theme-gold);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.location-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--theme-green);
    border: 2px solid var(--theme-gold);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.actions {
    display: flex;
    gap: 1rem;
}

/* Suspects Section */
.suspects-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.suspects-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.suspects-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.suspects-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

/* Character Circles */
.character-circles {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.character-wrapper {
    position: relative;
}

.character-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--theme-gold);
    background-color: var(--theme-burgundy);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.character-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

.character-circle:hover {
    transform: scale(1.15) translateY(-5px);
    border-color: #fff;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(212, 175, 55, 0.6);
    z-index: 100;
}

.character-circle.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--theme-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-green) 100%);
}

/* Character Hover Card */
.character-hover-card {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-wood) 100%);
    border: 4px solid var(--theme-gold);
    border-radius: 15px;
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.character-hover-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--theme-gold);
}

.character-wrapper:hover .character-hover-card {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.character-hover-card h4 {
    color: var(--theme-gold);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.character-hover-card .description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    opacity: 0.95;
}

.character-hover-card .alibi {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--theme-gold);
}

.character-hover-card .alibi strong {
    color: var(--theme-gold);
}

.character-hover-card .interrogate-hint {
    text-align: center;
    padding: 0.6rem;
    background: var(--theme-gold);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Main Game Area */
.game-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem; /* Minimal padding */
    gap: 0.5rem; /* Compact gap */
    overflow-y: auto;
}

.right-panel {
    width: 420px;
    min-width: 350px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--theme-wood) 0%, var(--theme-burgundy) 100%);
    border-left: 4px solid var(--theme-gold);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Scene Display */
.scene-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    overflow: visible;
    min-height: 0;
}

.scene-display {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        repeating-linear-gradient(
            45deg,
            var(--theme-wood),
            var(--theme-wood) 10px,
            #2d1f12 10px,
            #2d1f12 20px
        );
    border: 4px solid var(--theme-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        var(--shadow-large),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.scene-display::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

.scene-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    z-index: 1;
}

.scene-placeholder {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 3px dashed var(--theme-gold);
}

.scene-placeholder p:first-child {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

#roomDescription {
    font-size: 1rem;
    color: var(--theme-gold);
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Room Navigation */
.room-navigation {
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-wood) 100%);
    padding: 0.6rem; /* More compact padding */
    border-radius: 10px;
    border: 3px solid var(--theme-gold);
    box-shadow: var(--shadow);
    flex: 0 0 auto; /* Don't grow, stay compact */
}

.room-navigation h3 {
    color: var(--theme-gold);
    margin-bottom: 0.5rem; /* Smaller margin */
    text-align: center;
    font-size: 1rem; /* Smaller font */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.room-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; /* Smaller margin */
}

.view-toggle {
    padding: 0.4rem 0.8rem;
    background: var(--theme-burgundy);
    border: 2px solid var(--theme-gold);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    background: var(--theme-gold);
    color: var(--theme-dark);
    transform: translateY(-2px);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.4rem; /* More compact gap */
}

.room-map {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(85, 61, 20, 0.3) 100%);
    border: 3px solid var(--theme-gold);
    border-radius: 10px;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.6rem;
}

.map-room {
    position: relative;
    background: linear-gradient(135deg, var(--theme-wood) 0%, var(--theme-burgundy) 100%);
    border: 2px solid var(--theme-gold);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.map-room:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.map-room.current {
    background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-burgundy) 100%);
    border-color: #fff;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.8);
    }
}

.map-room-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.map-room-name {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.room-btn {
    padding: 0.4rem 0.5rem; /* More compact padding */
    background: var(--theme-green);
    border: 2px solid var(--theme-gold);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem; /* Smaller font */
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
}

.room-btn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 7px;
    pointer-events: none;
}

.room-btn:hover {
    background: var(--theme-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.room-btn.active {
    background: var(--theme-gold);
    color: var(--text-dark);
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Murder Room Highlighting */
.room-btn.murder-room {
    background: linear-gradient(135deg, #8B0000, #B22222);
    border: 2px solid #FF4444;
    box-shadow: 
        0 0 20px rgba(139, 0, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    animation: pulseRed 2s infinite;
}

.room-btn.murder-room:hover {
    background: linear-gradient(135deg, #B22222, #DC143C);
    border-color: #FF6666;
}

.room-btn.murder-room.active {
    background: linear-gradient(135deg, #DC143C, #FF4444);
    border-color: #FF6666;
    box-shadow: 
        0 0 30px rgba(220, 20, 60, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes pulseRed {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(139, 0, 0, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(220, 20, 60, 0.9),
            0 4px 12px rgba(0, 0, 0, 0.5);
    }
}

.map-room.murder-room-map {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(178, 34, 34, 0.3));
    border: 2px solid #8B0000;
    box-shadow: 
        0 0 15px rgba(139, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-room.murder-room-map:hover {
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.4), rgba(220, 20, 60, 0.4));
    border-color: #DC143C;
}

/* Removed Suspects Panel - now using hover cards */

/* Room Hotspots */
.room-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    border: 3px solid var(--theme-gold);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.hotspot:hover {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, transparent 70%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
    animation: none;
}

.hotspot.discovered {
    opacity: 0.5;
    border-color: rgba(212, 175, 55, 0.5);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
        transform: scale(1.05);
    }
}

.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--theme-burgundy);
    color: var(--text-light);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    border: 2px solid var(--theme-gold);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
}

/* Scene Quick Actions - Floating Toolbar */
.scene-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 50;
}

.scene-action-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 0, 0, 0.9);
    border: 2px solid var(--theme-gold);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(4px);
}

.scene-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(212, 175, 55, 0.6);
    border-color: #FFD700;
    background: rgba(178, 34, 34, 0.95);
}

.scene-action-btn:active {
    transform: scale(0.95);
}

/* Clue Board */
.clue-board {
    flex: 0 0 auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--theme-gold);
    max-height: 40%;
    overflow-y: auto;
}

.clue-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.clue-board-header h3 {
    margin: 0;
    color: var(--theme-gold);
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.clue-count {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: var(--theme-burgundy);
    border: 2px solid var(--theme-gold);
    border-radius: 12px;
}

.clue-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.no-clues {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.no-clues p {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.no-clues small {
    font-size: 0.85rem;
    opacity: 0.7;
}

.clue-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.4) 0%, rgba(85, 61, 20, 0.4) 100%);
    border: 2px solid var(--theme-gold);
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.clue-card:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border-color: var(--theme-gold);
}

.clue-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.clue-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

.clue-icon-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--theme-gold);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.clue-icon-emoji {
    font-size: 1.5rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

.clue-title {
    flex: 1;
    color: var(--theme-gold);
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.clue-location {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
}

.clue-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.clue-expandable {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.clue-expanded {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    border-left: 3px solid var(--theme-gold);
}

/* Chat Panel */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    min-height: 0;
}

.chat-panel.full-height {
    height: 100%;
}

.chat-panel h3 {
    color: var(--theme-gold);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid var(--theme-gold);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
    min-height: 150px;
}

/* Quick Questions */
.quick-questions-container {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.quick-question-toggle {
    width: 100%;
    padding: 0.5rem 1rem;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid var(--theme-burgundy);
    border-radius: 6px;
    color: var(--theme-gold);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.quick-question-toggle:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: var(--theme-gold);
}

.quick-questions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

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

.quick-q-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--theme-burgundy);
    border-radius: 4px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.quick-q-btn:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: var(--theme-gold);
    color: var(--theme-gold);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.message {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.message p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message p + p {
    margin-top: 0.8rem;
}

.message strong.highlight {
    color: var(--theme-gold);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.message .clue-item-inline {
    margin: 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid var(--theme-gold);
    line-height: 1.5;
}

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

.message.user {
    background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-wood) 100%);
    margin-left: 2rem;
    text-align: right;
    border: 2px solid var(--theme-gold);
    border-right: 4px solid var(--theme-gold);
}

.message.assistant {
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-wood) 100%);
    margin-right: 2rem;
    border: 2px solid var(--theme-gold);
    border-left: 4px solid var(--theme-gold);
}

.message.system {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.25) 50%, rgba(212, 175, 55, 0.15) 100%);
    border: 2px solid var(--theme-gold);
    font-style: italic;
    text-align: center;
    font-weight: 600;
    color: var(--theme-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Chat Input */
.chat-input-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-shrink: 0;
    position: relative;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 0.5rem 1rem;
    background: var(--theme-green);
    border: 2px solid var(--theme-gold);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quick-btn:hover {
    background: var(--theme-burgundy);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.chat-input-box {
    display: flex;
    gap: 0;
    background: rgba(15, 20, 25, 0.8);
    border: 2px solid var(--theme-gold);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chat-input-box:focus-within {
    border-color: var(--theme-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    background: rgba(15, 20, 25, 0.95);
}

#chatInput, #characterChatInput {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

#chatInput:focus, #characterChatInput:focus {
    outline: none;
}

#chatInput::placeholder, #characterChatInput::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.btn-send {
    padding: 0.75rem 1.5rem;
    background: var(--theme-gold);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-send:hover {
    background: #d4af37;
    transform: scale(1.05);
}

.btn-send:active {
    transform: scale(0.95);
}

/* Input Suggestions Dropdown */
.input-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    background: rgba(15, 20, 25, 0.98);
    border: 2px solid var(--theme-gold);
    border-radius: 12px;
    padding: 0.75rem;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.3);
    animation: slideUp 0.3s ease;
}

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

.input-suggestions.active {
    display: block;
}

.suggestion-category {
    margin-bottom: 0.75rem;
}

.suggestion-category:last-child {
    margin-bottom: 0;
}

.suggestion-category-title {
    font-size: 0.8rem;
    color: var(--theme-gold);
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-item {
    padding: 0.6rem 0.75rem;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    margin-bottom: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-item:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: var(--theme-gold);
    transform: translateX(3px);
}

.suggestion-icon {
    font-size: 1.1rem;
    min-width: 20px;
}

/* Input Suggestions Mobile */
@media (max-width: 768px) {
    .input-suggestions {
        max-height: 200px;
        padding: 0.5rem;
    }
    
    .suggestion-category-title {
        font-size: 0.75rem;
    }
    
    .suggestion-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .suggestion-icon {
        font-size: 1rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-wood) 100%);
    border: 6px double var(--theme-gold);
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 3px solid var(--theme-gold);
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    color: var(--theme-gold);
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

/* Notebook */
.notebook-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--theme-gold);
}

.tab-btn {
    padding: 0.9rem 1.8rem;
    background: var(--theme-green);
    border: none;
    border-bottom: 4px solid transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    background: var(--theme-burgundy);
    transform: translateY(-2px);
}

.tab-btn.active {
    border-bottom-color: var(--theme-gold);
    background: var(--theme-burgundy);
    box-shadow: 0 -2px 10px rgba(212, 175, 55, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--theme-gold);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 2rem;
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px dashed var(--theme-gold);
}

/* Accusation Form */
.warning {
    background: linear-gradient(135deg, rgba(139, 30, 30, 0.3) 0%, rgba(139, 30, 30, 0.5) 100%);
    padding: 1.2rem;
    border-radius: 12px;
    border: 3px solid var(--danger-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 30, 30, 0.4);
}

.accusation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--theme-gold);
    margin-bottom: 0.7rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.form-select {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 20, 25, 0.6);
    border: 3px solid var(--theme-gold);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    background: rgba(15, 20, 25, 0.9);
}

.form-select option {
    background: var(--theme-wood);
    padding: 0.5rem;
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 20, 25, 0.6);
    border: 3px solid var(--theme-gold);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    resize: vertical;
    min-height: 80px;
}

.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    background: rgba(15, 20, 25, 0.9);
}

.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Result Message */
.result-message {
    text-align: center;
    padding: 2.5rem;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .right-panel {
        width: 380px;
        min-width: 320px;
    }
    
    .character-circle {
        width: 65px;
        height: 65px;
    }
    
    .character-hover-card {
        width: 260px;
        padding: 1rem;
    }
}

/* Mobile Responsive */
/* ========================================
   GALLERY STYLES
   ======================================== */

.gallery-container {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(92, 26, 26, 0.95) 0%, rgba(27, 77, 62, 0.95) 100%);
    border: 8px double var(--theme-gold);
    border-radius: 20px;
    box-shadow: var(--shadow-large), inset 0 0 60px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-title {
    font-size: 2.5rem;
    color: var(--theme-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.gallery-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-loading,
.gallery-empty,
.gallery-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.gallery-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--theme-gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-green) 100%);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.3;
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-play {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--theme-gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border: 2px solid var(--theme-gold);
    border-radius: 10px;
    background: rgba(92, 26, 26, 0.8);
}

.gallery-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.gallery-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.gallery-card-title {
    font-size: 1.3rem;
    color: var(--theme-gold);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.gallery-card-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-card-synopsis {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.9;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.gallery-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gallery-card-victim {
    font-size: 0.9rem;
    color: var(--theme-gold);
    font-style: italic;
    padding: 0.5rem;
    background: rgba(92, 26, 26, 0.3);
    border-left: 3px solid var(--theme-gold);
    border-radius: 4px;
}

.gallery-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Gallery Scrollbar */
.gallery-grid::-webkit-scrollbar {
    width: 10px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--theme-gold);
    border-radius: 5px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #c49f2f;
}

@media (max-width: 768px) {
    .gallery-container {
        width: 95%;
        height: 95vh;
        padding: 1rem;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-card {
        height: auto;
        min-height: 420px;
    }

    .gallery-card-image {
        height: 180px;
    }

    .gallery-card-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .game-title {
        font-size: 3rem;
        letter-spacing: 0.3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
    
    .difficulty-card {
        padding: 2rem 1.5rem;
    }
    
    .difficulty-title {
        font-size: 2.2rem;
    }
    
    .difficulty-subtitle {
        font-size: 1rem;
    }
    
    .difficulty-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .difficulty-option {
        padding: 1.5rem;
    }
    
    .difficulty-icon {
        font-size: 3rem;
    }
    
    .difficulty-option h3 {
        font-size: 1.3rem;
    }

    .game-main {
        flex-direction: column;
    }

    .left-panel {
        height: 50vh;
        min-height: 300px;
    }

    .right-panel {
        width: 100%;
        min-width: unset;
        max-width: unset;
        height: 55vh;
        min-height: 450px;
        border-left: none;
        border-top: 4px solid var(--theme-gold);
    }

    .top-bar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .suspects-section {
        width: 100%;
    }
    
    .character-circles {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Quick Questions Mobile */
    .quick-questions {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .quick-q-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        white-space: normal;
        text-align: center;
        gap: 0.6rem;
    }
    
    .character-circle {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }
    
    .character-hover-card {
        width: 240px;
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .actions {
        width: 100%;
        justify-content: space-between;
    }

    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scene-quick-actions {
        gap: 0.4rem;
    }
    
    .scene-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .chat-messages {
        min-height: 150px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .character-circle {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }
    
    .character-circles {
        gap: 0.5rem;
    }
    
    .top-bar {
        padding: 0.75rem;
    }
    
    .right-panel {
        height: 60vh;
    }
    
    .left-panel {
        height: 40vh;
    }
    
    .scene-display {
        border-width: 4px; /* Thinner border on mobile */
    }
    
    .scene-quick-actions {
        top: 5px;
        right: 5px;
        gap: 0.3rem;
    }
    
    .scene-action-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        border-width: 2px;
    }
    
    .character-hover-card {
        width: 90vw;
        max-width: 280px;
        padding: 0.8rem;
    }
    
    .suspects-label {
        font-size: 1rem;
    }
    
    .suspects-hint {
        font-size: 0.7rem;
    }
}

/* Additional Styling */
.clue-item {
    padding: 0.9rem;
    margin-bottom: 0.8rem;
    background: var(--theme-green);
    border: 2px solid var(--theme-gold);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.clue-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.weapon-item {
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    background: var(--theme-burgundy);
    border: 2px solid var(--theme-gold);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Dialogue Choices */
.dialogue-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.dialogue-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--theme-burgundy) 0%, var(--theme-wood) 100%);
    border: 2px solid var(--theme-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
}

.dialogue-choice:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    border-color: var(--theme-gold);
}

.dialogue-choice:active {
    transform: translateX(3px);
}

.dialogue-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dialogue-text {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.dialogue-choice.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--theme-dark);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-gold) 0%, var(--theme-burgundy) 100%);
    border-radius: 6px;
    border: 2px solid var(--theme-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c5a028 0%, var(--theme-burgundy) 100%);
}

/* Clue Markers System */
.clue-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.clue-marker {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: radial-gradient(circle, var(--theme-gold) 0%, var(--theme-burgundy) 100%);
    border: 3px solid var(--theme-gold);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                0 0 40px rgba(212, 175, 55, 0.4),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: clue-pulse 2s ease-in-out infinite;
}

.clue-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.9),
                0 0 60px rgba(212, 175, 55, 0.6),
                inset 0 0 15px rgba(255, 255, 255, 0.5);
    animation: none;
}

.clue-marker-tooltip {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-dark);
    color: var(--theme-gold);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--theme-gold);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.clue-marker:hover .clue-marker-tooltip {
    opacity: 1;
    bottom: 125%;
}

@keyframes clue-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                    0 0 40px rgba(212, 175, 55, 0.4),
                    inset 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                    0 0 60px rgba(212, 175, 55, 0.6),
                    inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* Clue Detail Modal */
.clue-modal-content {
    max-width: 600px;
}

.clue-detail-content {
    padding: 1rem;
}

.clue-detail-box {
    background: linear-gradient(135deg, var(--theme-wood) 0%, var(--theme-burgundy) 100%);
    border: 4px solid var(--theme-gold);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.clue-detail-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--theme-gold);
}

.clue-location {
    display: inline-block;
    background: var(--theme-green);
    color: var(--theme-gold);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--theme-gold);
    font-size: 1rem;
    font-weight: bold;
}

.clue-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: left;
}

.clue-detail-description p {
    margin-bottom: 1rem;
}

/* Evidence Markers on Scene */
.evidence-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--theme-gold);
    background-color: rgba(0, 0, 0, 0.3); /* Slight background for visibility */
    backdrop-filter: blur(2px);
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.8),
        0 0 40px rgba(212, 175, 55, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: evidencePulse 2s infinite;
    z-index: 100; /* High z-index to appear above everything */
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 1),
        0 0 60px rgba(212, 175, 55, 0.6),
        0 6px 12px rgba(0, 0, 0, 0.7);
    border-color: #FFD700;
    z-index: 20;
}

.evidence-marker.discovered {
    border-color: #4CAF50;
    box-shadow: 
        0 0 15px rgba(76, 175, 80, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.5);
    animation: none;
    opacity: 0.7;
}

.evidence-marker.discovered:hover {
    opacity: 1;
    border-color: #66BB6A;
    box-shadow: 
        0 0 25px rgba(76, 175, 80, 0.9),
        0 6px 12px rgba(0, 0, 0, 0.7);
}

.evidence-emoji {
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

@keyframes evidencePulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(212, 175, 55, 0.8),
            0 0 40px rgba(212, 175, 55, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 6px 12px rgba(0, 0, 0, 0.7);
    }
}

/* Accusation Result Styles */
.accusation-result-content {
    animation: fadeIn 0.5s ease;
}

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

#accusationResultSection {
    margin-top: 1rem;
}

.accusation-result-content strong {
    color: var(--theme-gold);
}

.accusation-result-content .btn {
    margin-top: 1rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

