/* Murder Mystery Detective Game - Manila Case File Styles */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:wght@400;700&display=swap');

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: white;
    min-height: 100vh;
    background-color: #000000;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

/* Mobile devices - vertical image */
@media (max-width: 768px) {
    body {
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('/images/background-mobile.jpg');
    }
}

/* Desktop/tablet - horizontal image */
@media (min-width: 769px) {
    body {
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
            url('/images/background-desktop.jpg');
    }
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

/* Header and Logo */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-logo {
    max-width: 250px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
    transition: all 0.3s ease;
}

.game-logo:hover {
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.5));
    transform: scale(1.05);
}
.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(to right, 
#fbbf24, 
#f97316, 
#eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}
.subtitle {
    font-size: 1.25rem;
    color: #d6d3d1;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}
.gradient-line {
    height: 4px;
    background: linear-gradient(to right, 
#fbbf24, 
#f97316);
    border-radius: 2px;
    width: 16rem;
    margin: 1rem auto;
}

/* Card Styles - Original */
.card {
    background: rgba(41, 37, 36, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Buttons - Original Style */
.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    color: #1a1a1a;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.btn-primary,
.btn-secondary,
.live-events-btn {
    text-decoration: none !important;
}

/* Difficulty Screen */
.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center; /* Centers grid items */
}

/* Add this media query for tablets and smaller */
@media (max-width: 768px) {
    .difficulty-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        max-width: 400px; /* Limit width for better appearance */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Optional: For mid-size tablets, show 2 columns with last item centered */
@media (min-width: 769px) and (max-width: 1024px) {
    .difficulty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Target the last card (Master Detective) to span full width and center */
    .difficulty-card:last-child {
        grid-column: 1 / -1; /* Span both columns */
        max-width: 400px;
        margin: 0 auto;
    }
}

.difficulty-card {
    background: rgba(41, 37, 36, 0.95);
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.difficulty-card.selected {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

/* Manila Case File Styles */
.case-file-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 140px);
    margin: 60px auto 0;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.manila-folder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8d4a1 0%, #d4bc89 100%);
    border-radius: 5px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Folder Tabs */
.folder-tabs {
    position: absolute;
    top: -40px;
    left: 50px;
    display: flex;
    gap: 10px;
}

.folder-tab {
    background: linear-gradient(135deg, #c7a876 0%, #b39766 100%);
    padding: 10px 25px;
    border-radius: 10px 10px 0 0;
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    color: #2c2c2c;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.folder-tab.active {
    background: linear-gradient(135deg, #e8d4a1 0%, #d4bc89 100%);
    padding: 12px 30px;
    font-size: 1.1rem;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.3);
}

.folder-tab:hover:not(.active) {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Case Content */
.case-content {
    position: absolute;
    inset: 20px;
    background: #f5f0e6;
    border-radius: 3px;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    color: #2c2c2c;
}

/* Tab Content */
.tab-content {
    display: none;
    height: 100%;
}

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

/* Case Title */
.case-title {
    font-family: 'Special Elite', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Section Headers */
.section-header {
    font-family: 'Special Elite', cursive;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-bottom: 2px solid #d4bc89;
    padding-bottom: 5px;
}

/* Overview Tab */
.case-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.victim-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.victim-card {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.victim-photo {
    width: 120px;
    height: 150px;
    background: #2a2a2a;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.victim-photo::after {
    content: '✝';
    font-size: 3rem;
    color: #444;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.case-details {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Preliminary Findings Section */
.preliminary-findings-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.forensic-report {
    background: #fff;
    border: 2px solid #8b0000;
    border-radius: 3px;
    padding: 20px;
    position: relative;
    box-shadow: 
        inset 0 0 10px rgba(139, 0, 0, 0.05),
        0 2px 5px rgba(0, 0, 0, 0.1);
}

.report-stamp {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #8b0000;
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(5deg);
    opacity: 0.5;
    letter-spacing: 2px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.report-item {
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}

.report-item:last-child,
.report-item:nth-last-child(2) {
    border-bottom: none;
}

.report-item.full-width {
    grid-column: 1 / -1;
}

.report-item strong {
    display: block;
    font-family: 'Special Elite', cursive;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.report-item span {
    display: block;
    font-family: 'Courier Prime', monospace;
    color: #2c2c2c;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Mobile responsiveness for forensic report */
@media (max-width: 768px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
    
    .report-stamp {
        font-size: 0.7rem;
        top: 5px;
        right: 10px;
    }
}

.report-text {
    margin-top: 10px;
    font-style: italic;
    line-height: 1.6;
}

/* Investigation Tab */
.case-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 100%;
}

/* Suspects Section */
.suspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.suspect-card {
    background: white;
    border: 1px solid #ddd;
    padding: 12px;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 180px;
}

.suspect-card:nth-child(even) {
    transform: rotate(1deg);
}

.suspect-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.suspect-card.selected {
    border: 3px solid #fbbf24;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.suspect-photo {
    width: 100%;
    height: 80px;
    background: #2a2a2a;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suspect-photo::after {
    content: '?';
    position: absolute;
    font-size: 4rem;
    font-weight: bold;
    color: #444;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
    font-family: 'Special Elite', cursive;
}

.suspect-name {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.suspect-role {
    font-size: 0.75rem;
    color: #666;
}

.suspect-alibi {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.2;
}

/* Paper Clip */
.paper-clip {
    position: absolute;
    top: -5px;
    right: 10px;
    width: 25px;
    height: 50px;
    border: 3px solid #c0c0c0;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    transform: rotate(10deg);
}

/* Evidence Section */
.evidence-section {
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed #999;
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

.evidence-item {
    padding: 5px 0;
    font-size: 0.95rem;
    border-bottom: 1px dotted #ccc;
    margin-bottom: 5px;
}

.evidence-placeholder {
    color: #999;
    font-style: italic;
}

/* Notes Section */
.notes-section {
    background: #fffef5;
    border: 1px solid #ddd;
    padding: 20px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-image: repeating-linear-gradient(
        #fffef5,
        #fffef5 25px,
        #e8e8e8 25px,
        #e8e8e8 26px
    );
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.game-message {
    background: rgba(212, 188, 137, 0.2);
    border-left: 3px solid #d4bc89;
}

.player-message {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
    margin-left: 20px;
}

.system-message {
    background: rgba(20, 184, 166, 0.1);
    border-left: 3px solid #14b8a6;
    font-style: italic;
}

/* Share Buttons */
.share-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.share-btn span:first-child {
    font-size: 1.2rem;
}

/* Facebook share button already has inline styles, but you can add more here if needed */

/* Input Container */
.input-container {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #d4bc89;
    border-radius: 5px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.95rem;
    background: white;
    color: #2c2c2c;
}

.send-btn {
    padding: 10px 20px;
    background: #d4bc89;
    border: none;
    border-radius: 5px;
    font-family: 'Special Elite', cursive;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c2c2c;
}

.send-btn:hover {
    background: #c7a876;
    transform: translateY(-1px);
}

/* Accusation Tab */
.accusation-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.accusation-warning {
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid #f97316;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    font-size: 1.1rem;
}

.accusation-form {
    margin: 40px 0;
}

.accusation-form label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Special Elite', cursive;
}

.suspect-dropdown {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #d4bc89;
    border-radius: 5px;
    background: white;
    font-family: 'Courier Prime', monospace;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.btn-accusation {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Special Elite', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-accusation:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Coffee Cup Animation */
.coffee-cup {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 100;
}

.cup-body {
    font-size: 3rem;
    position: absolute;
    bottom: 0;
}

.steam {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0;
    animation: steam-rise 3s infinite;
}

.steam:nth-child(1) {
    left: 5px;
    animation-delay: 0s;
}

.steam:nth-child(2) {
    left: 15px;
    animation-delay: 1s;
}

.steam:nth-child(3) {
    left: 25px;
    animation-delay: 2s;
}

@keyframes steam-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-40px) scale(1.5);
        opacity: 0;
    }
}

/* Activate steam when finding clues */
.coffee-cup.active .steam {
    animation-play-state: running;
}

/* Stats Bar */
.stats-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(41, 37, 36, 0.95);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-family: 'Courier Prime', monospace;
}

.stat-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-file-container {
    height: calc(100vh - 200px);
    margin: 120px auto 0;
}

#game-screen {
        padding-top: 10px;
    }
    
    .folder-tabs {
        left: 10px;
        gap: 5px;
        top: -35px; 
    }
    
    .folder-tab {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .folder-tab.active {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .case-content {
        padding: 20px 15px;
    }
    
    .case-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-overview {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        padding: 10px 20px;
        gap: 20px;
        font-size: 0.9rem;
    }
    
    .coffee-cup {
        bottom: 80px;
        right: 10px;
        transform: scale(0.8);
    }
}

/* Smaller phones - even more space */
@media (max-width: 480px) and (orientation: portrait) {
    .case-file-container {
        height: calc(100vh - 220px);
        margin: 140px auto 0;
    }
}

/* Very small screens - maximum space */
@media (max-width: 375px) and (orientation: portrait) {
    .case-file-container {
        height: calc(100vh - 240px);
        margin: 160px auto 0;
    }
}

/* Landscape - less aggressive since more width available */
@media (max-width: 768px) and (orientation: landscape) {
    .case-file-container {
        margin: 80px auto 0;
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Game Screen Specific Styles - Typewriter Fonts */
#game-screen {
    font-family: 'Courier Prime', monospace;
padding-top: 20px;
}

#game-screen .btn-primary,
#game-screen .btn-secondary,
#game-screen .btn-accusation {
    font-family: 'Special Elite', cursive;
}

#game-screen input,
#game-screen textarea,
#game-screen select {
    font-family: 'Courier Prime', monospace;
}

/* Manila Folder Elements */
.folder-tab,
.section-header,
.case-title,
.send-btn,
.accusation-form label {
    font-family: 'Special Elite', cursive;
}

.case-content,
.chat-input,
.suspect-dropdown,
.message,
.evidence-item,
.report-text {
    font-family: 'Courier Prime', monospace;
}

/* Gradient utilities - Original Icons */
.difficulty-icon {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.yellow-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.teal-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 3rem;
}

.purple-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 3rem;
}

/* Header and Title Styles */
.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.subtitle {
    color: #d6d3d1;
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.gradient-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, #fbbf24, #f97316, #fbbf24, transparent);
    margin: 2rem auto;
    max-width: 600px;
}

/* Email Modal */
.email-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: rgba(41, 37, 36, 0.95);
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    border: 2px solid rgba(251, 191, 36, 0.3);
    color: white;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.email-modal-card {
    max-width: 400px;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
}

.form-group input::placeholder {
    color: #a8a29e;
}

.form-group input:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(0, 0, 0, 0.5);
}

.skip-link {
    background: none;
    border: none;
    color: #a8a29e;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.skip-link:hover {
    color: #fbbf24;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
     -webkit-appearance: none;
    appearance: none;
    border: 2px solid #d4bc89;
    border-radius: 4px;
    background-color: transparent;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #fbbf24;
    border-color: #fbbf24;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-group label {
    color: #d6d3d1;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.btn-secondary {
    background: transparent;
    color: #d6d3d1;
    border: 2px solid rgba(212, 188, 137, 0.5);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #d4bc89;
    color: #fbbf24;
    transform: translateY(-2px);
}

/* End Game Screen */
#endgame-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    padding: 1rem;
}

.ending-container {
    width: 100%;
    max-width: 800px;
}

.ending-card {
    animation: fadeIn 0.5s ease-out;
}

.endgame-content {
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.endgame-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.endgame-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d6d3d1;
}

.endgame-message {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #a8a29e;
}

.solution-reveal {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.solution-reveal h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.ready-message {
    font-size: 1.125rem;
    margin: 2rem 0;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.live-events-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.live-events-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #d6d3d1;
    border: 2px solid rgba(212, 188, 137, 0.5);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: #d4bc89;
    color: #fbbf24;
    transform: translateY(-2px);
}

/* Accusation History */
.accusation-item {
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px dotted #ccc;
}

.no-accusations {
    color: #999;
    font-style: italic;
}

/* Text alignment utility */
.text-center {
    text-align: center;
}

/* Difficulty Icons */
.difficulty-icon {
    display: inline-block;
    margin-bottom: 1rem;
}

/* Loading States - Original */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

/* Voice Controls */
.voice-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: row; /* Changed to row for horizontal layout */
    gap: 10px;
    z-index: 100;
}

.voice-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(41, 37, 36, 0.9);
    border: 2px solid rgba(251, 191, 36, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    transform: scale(1.1);
}

.voice-btn.active {
    background: rgba(251, 191, 36, 0.4);
    border-color: #fbbf24;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Mobile-specific positioning */
@media (max-width: 768px) {
    .voice-controls {
        /* Move to top left instead of bottom right */
        top: 10px;
        left: 10px;
        bottom: auto;
        right: auto;
        gap: 8px;
        /* Stack vertically on mobile for better space usage */
        flex-direction: column;
    }
    
    .voice-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Adjust stats bar on mobile to not overlap */
    .stats-bar {
        bottom: 10px;
        left: 10px;
        right: auto;
        padding: 8px 15px;
        gap: 15px;
        font-size: 0.85rem;
    }
}

/* Music button specific styling */
#music-toggle.active {
    background: rgba(20, 184, 166, 0.4);
    border-color: #14b8a6;
}

#music-toggle:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: #14b8a6;
}

/* User Menu Styles - Keep dashboard button on top right */
.user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.user-menu-btn {
    background: rgba(41, 37, 36, 0.9);
    border: 2px solid rgba(251, 191, 36, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

/* Mobile adjustments for user menu */
@media (max-width: 768px) {
    .user-menu {
        top: 10px;
        right: 10px;
    }
    
    .user-menu-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

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

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

/* Fix for end game screen scrolling */
#endgame-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    padding: 1rem;
    overflow-y: auto; /* Add this */
}

.ending-container {
    width: 100%;
    max-width: 800px;
    max-height: 90vh; /* Add this */
    overflow-y: auto; /* Add this */
}

/* Mobile fix for endgame */
@media (max-width: 768px) {
    .ending-container {
        max-height: 85vh;
    }
    
    .endgame-content {
        padding: 1rem; /* Reduce padding on mobile */
    }
}

/* User Menu Styles */
.user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.user-menu-btn {
    background: rgba(41, 37, 36, 0.9);
    border: 2px solid rgba(251, 191, 36, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

#user-avatar {
    font-size: 1.2rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(41, 37, 36, 0.95);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    min-width: 160px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .user-menu {
        top: 10px;
        right: 10px;
    }
    
    .user-menu-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: rgba(41, 37, 36, 0.98);
    border-radius: 1rem;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: #a8a29e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

.history-filters {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #fbbf24;
}

.history-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
}

.history-stat {
    text-align: center;
}

.history-stat .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fbbf24;
}

.history-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #a8a29e;
    margin-top: 0.25rem;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.history-entry {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.history-entry:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(251, 191, 36, 0.3);
}

.history-entry-main {
    display: grid;
    gap: 0.5rem;
}

.history-case-name {
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
}

.history-case-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #a8a29e;
}

.history-case-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-entry-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: bold;
}

.status-solved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-in-progress {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.history-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.no-history {
    text-align: center;
    padding: 3rem;
    color: #a8a29e;
}

@media (max-width: 768px) {
    .modal-container {
        max-height: 90vh;
    }
    
    .history-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .history-entry {
        grid-template-columns: 1fr;
    }
    
    .history-entry-status {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }
}
