/* ======================================================
   CASE: SHADOW SYNDICATE
   Core Noir Stylesheet & Theme Palette
   Colors: Dark Navy, Charcoal Black, Muted Burgundy, Warm Beige, Antique Gold
====================================================== */

:root {
    --bg-dark-navy: #0e1621;
    --bg-charcoal: #171f2a;
    --card-surface: #1e293b;
    --card-surface-light: #28374d;
    --muted-burgundy: #5b2333;
    --burgundy-bright: #842e46;
    --warm-beige: #e6dfd3;
    --antique-gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --text-muted: #94a3b8;
    --border-color: #334155;
    --font-heading: 'Cinzel', 'Georgia', serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark-navy);
    color: var(--warm-beige);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background detective office ambient vignette */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(26, 38, 57, 0.6) 0%, rgba(10, 15, 23, 0.95) 85%);
    pointer-events: none;
    z-index: 0;
}

#app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Screen Management System */
.screen {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    padding: 1.5rem;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Common UI Elements */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.screen-title {
    font-family: var(--font-heading);
    color: var(--antique-gold);
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.btn-noir {
    font-family: var(--font-heading);
    background: linear-gradient(145deg, #1f2a38, #131b24);
    color: var(--warm-beige);
    border: 1px solid var(--antique-gold);
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-noir:hover {
    background: var(--antique-gold);
    color: #111;
    box-shadow: 0 0 12px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-noir:active {
    transform: translateY(1px);
}

.btn-noir-accent {
    background: linear-gradient(145deg, var(--burgundy-bright), var(--muted-burgundy));
    border-color: #ff6b81;
}

.btn-noir-accent:hover {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
}

/* Notification Toasts */
.achievement-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--card-surface);
    border: 2px solid var(--antique-gold);
    border-radius: 6px;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 360px;
}

.achievement-toast.show {
    transform: translateY(0);
}

.achievement-toast .ach-icon {
    font-size: 2rem;
}

.achievement-toast .ach-badge {
    font-size: 0.65rem;
    color: var(--antique-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.achievement-toast .ach-title {
    font-weight: bold;
    color: #fff;
    font-size: 0.95rem;
}

.achievement-toast .ach-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 18, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--card-surface);
    border: 1px solid var(--antique-gold);
    border-radius: 6px;
    padding: 1.8rem;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
    animation: modalAppear 0.25s ease-out;
}

@keyframes modalAppear {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--antique-gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-desc {
    color: var(--warm-beige);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Banner overlay */
.in-game-banner {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(14, 22, 33, 0.92);
    border: 1px solid var(--antique-gold);
    color: var(--antique-gold);
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 50;
}

.in-game-banner.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

