:root {
    --bg-deep: #06090d;
    --bg-panel: rgba(11, 17, 24, 0.92);
    --bg-card: rgba(16, 24, 34, 0.94);
    --border-dim: rgba(56, 242, 126, 0.24);
    --border-bright: rgba(56, 242, 126, 0.65);

    --accent: #38f27e;
    --accent-soft: rgba(56, 242, 126, 0.14);
    --amber: #ffb84d;
    --amber-soft: rgba(255, 184, 77, 0.15);
    --danger: #ff3b4e;
    --danger-soft: rgba(255, 59, 78, 0.16);
    --uv: #a855f7;
    --uv-soft: rgba(168, 85, 247, 0.2);

    --text-main: #eef4f8;
    --text-muted: #93a7b8;
    --font-sans: 'Noto Sans HK', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
    width: 100%;
    height: 100%;
    background: #020305;
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden;
    user-select: none;
    touch-action: manipulation;
}

.hidden { display: none !important; }

/* Subtle CRT / Noir film atmosphere */
.crt-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 900;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.14) 0px,
        rgba(0, 0, 0, 0.14) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.45;
}

.crt-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 899;
    background: radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

/* Main Shell */
#game-shell {
    position: relative;
    width: 100%;
    height: 100dvh;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-deep);
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}

/* School Brand Logos Pill (Top-Left) */
.school-brand-badge {
    position: absolute;
    top: 14px;
    left: 16px;
    z-index: 250;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.brand-crest {
    height: 30px;
    width: auto;
    display: block;
}

.brand-divider {
    width: 1px;
    height: 20px;
    background: rgba(20, 45, 90, 0.25);
}

.brand-ss75 {
    height: 22px;
    width: auto;
    display: block;
}

/* Floating Minimal Mute Button */
.floating-mute {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 250;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(8, 12, 18, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-dim);
    color: var(--text-main);
    font-size: 1.15rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

.floating-mute:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dossier-card.compact { max-width: 740px; }
.dossier-footer.right-only { justify-content: flex-end; }
.forensic-toolbar.compact { width: auto; min-width: 340px; padding: 8px 14px; }
.vn-actions { justify-content: flex-end; }
.file-stage, .interrogation-layout { padding-top: 24px; }

/* ==================== TOP HUD ==================== */
.top-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(6, 10, 15, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dim);
}

.hud-left, .hud-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-dot 2s infinite;
}

.hud-case {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.hud-sep { color: var(--text-muted); }

.hud-phase {
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 600;
}

.hud-timer {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--amber);
    background: rgba(255, 184, 77, 0.1);
    border: 1px solid rgba(255, 184, 77, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dim);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.hud-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hud-btn.icon-only { padding: 6px 10px; }

.badge {
    background: var(--accent);
    color: #04120a;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
}

/* ==================== SCREENS ==================== */
.screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 20;
}

.scene-bg, .login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.55) contrast(1.15) brightness(0.5);
}

.bg-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(10, 20, 16, 0.45), rgba(4, 7, 10, 0.92));
}

.bg-scrim.dark {
    background: linear-gradient(180deg, rgba(6, 9, 13, 0.72), rgba(6, 9, 13, 0.92));
}

/* ==================== BUTTONS ==================== */
.btn-primary, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #05130a;
    box-shadow: 0 0 20px rgba(56, 242, 126, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(56, 242, 126, 0.55);
}

.btn-primary:disabled, .btn-danger:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 59, 78, 0.35);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(255, 59, 78, 0.6);
}

.btn-primary.lg, .btn-danger.lg {
    padding: 13px 26px;
    font-size: 1.05rem;
}

.full-width { width: 100%; }

/* ==================== SCREEN 0: LOGIN ==================== */
.login-content {
    position: relative;
    z-index: 2;
    margin: auto;
    text-align: center;
    padding: 24px;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.agency-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    color: var(--accent);
    border: 1px solid var(--border-dim);
    background: rgba(56, 242, 126, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-code {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--amber);
    letter-spacing: 3px;
}

.case-name {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(56, 242, 126, 0.25);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

.fingerprint-station {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fp-btn {
    position: relative;
    width: 132px;
    height: 132px;
    background: none;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    touch-action: none;
}

.fp-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fp-ring-bg {
    fill: none;
    stroke: rgba(56, 242, 126, 0.2);
    stroke-width: 5;
}

.fp-ring-fg {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    filter: drop-shadow(0 0 8px var(--accent));
}

.fp-inner {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(56, 242, 126, 0.08);
    border: 1px solid var(--border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s;
}

.fp-btn.scanning .fp-inner {
    transform: scale(0.94);
    background: rgba(56, 242, 126, 0.22);
    box-shadow: 0 0 30px rgba(56, 242, 126, 0.45);
}

.fp-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 8px var(--accent));
}

.fp-fallback {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.fp-scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    opacity: 0;
}

.fp-btn.scanning .fp-scan-beam {
    opacity: 1;
    animation: beam-move 0.7s linear infinite alternate;
}

.fp-status {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.fp-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ==================== SCREEN 1: INTRO VN ==================== */
.dialogue-stage {
    position: relative;
    z-index: 2;
    margin: auto;
    width: 100%;
    max-width: 860px;
    padding: 70px 24px 24px;
}

.vn-card {
    display: flex;
    gap: 22px;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.vn-card.danger-border {
    border-color: var(--danger);
    box-shadow: 0 0 35px rgba(255, 59, 78, 0.35);
}

.vn-portrait-wrap {
    position: relative;
    width: 136px;
    height: 152px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent);
    background: #0b1118;
}

.vn-card.danger-border .vn-portrait-wrap,
.intrusion-card .vn-portrait-wrap {
    border-color: var(--danger);
}

.vn-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.85);
}

.portrait-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(56, 242, 126, 0.5);
    animation: beam-move 2.4s linear infinite;
}

.portrait-scan.danger { background: rgba(255, 59, 78, 0.65); }

.portrait-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.78);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-align: center;
    padding: 3px;
    color: var(--accent);
}

.vn-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 138px;
}

.vn-speaker {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 1px;
}

.vn-speaker.danger { color: var(--danger); }

.vn-text {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--text-main);
    min-height: 70px;
}

.hl-danger {
    color: var(--danger);
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 59, 78, 0.6);
}

.vn-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vn-step {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== SCREEN 2: TACTICAL MAP ==================== */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #070e14;
    overflow: hidden;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s;
}

.map-wrapper.zooming {
    transform: scale(3.5);
    transform-origin: 44% 45%;
    filter: blur(6px) brightness(0.45);
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    filter: contrast(1.06) brightness(0.92);
}

.tactical-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 242, 126, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 242, 126, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.radar-sweep {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    animation: sweep-y 4.5s linear infinite;
    pointer-events: none;
}

.map-route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.route-line {
    fill: none;
    stroke: var(--amber);
    stroke-width: 0.6;
    stroke-dasharray: 2 1.5;
    animation: dash-flow 1.4s linear infinite;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.pin-target { cursor: pointer; }

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent);
}

.pin-dot.danger {
    width: 20px;
    height: 20px;
    background: var(--danger);
    box-shadow: 0 0 20px var(--danger);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid var(--danger);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar-ring 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring.delay { animation-delay: 1s; }

.pin-label {
    margin-top: 12px;
    white-space: nowrap;
    background: rgba(6, 10, 15, 0.9);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}

.pin-label.danger {
    border-color: var(--danger);
    color: #fff;
    background: rgba(160, 18, 32, 0.92);
    box-shadow: 0 0 24px rgba(255, 59, 78, 0.55);
}

.map-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.96rem;
    text-align: center;
    max-width: 90%;
}

/* ==================== SCREEN 3: VICTIM DOSSIER ==================== */
.file-stage {
    padding: 70px 20px 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.dossier-card {
    width: 100%;
    max-width: 880px;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.dossier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 14px;
    gap: 12px;
}

.dossier-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.dossier-header h2 {
    font-size: 1.5rem;
    margin-top: 4px;
}

.stamp-deceased {
    color: var(--danger);
    border: 3px solid var(--danger);
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    transform: rotate(-4deg);
    box-shadow: 0 0 18px rgba(255, 59, 78, 0.3) inset;
    white-space: nowrap;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    align-items: start;
}

.photo-frame {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #030507;
    padding: 8px;
    border-radius: 10px;
}

.victim-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: grayscale(0.8) contrast(1.2);
    border-radius: 6px;
    display: block;
}

.photo-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

.dossier-info-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.98rem;
    line-height: 1.55;
}

.info-row .k {
    color: var(--text-muted);
    font-weight: 700;
}

.info-row.alert {
    background: var(--amber-soft);
    border-left: 3px solid var(--amber);
}

.info-row.highlight {
    background: var(--danger-soft);
    border-left: 3px solid var(--danger);
}

.info-row.highlight strong { color: #ffe066; }

.dossier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border-dim);
    padding-top: 14px;
    flex-wrap: wrap;
}

.footer-note {
    color: var(--accent);
    font-size: 0.95rem;
}

/* ==================== SCREEN 4: WITNESS INTERROGATION ==================== */
.interrogation-layout {
    position: relative;
    z-index: 2;
    padding: 68px 20px 20px;
    height: 100%;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

.witness-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.witness-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.witness-tab {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.witness-tab.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.witness-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.witness-avatar-box {
    width: 148px;
    height: 148px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--amber);
    background: #101822;
    display: flex;
    align-items: center;
    justify-content: center;
}

.witness-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    font-size: 2rem;
    font-weight: 900;
    color: var(--amber);
}

.witness-role {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.witness-mood {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--amber);
    background: var(--amber-soft);
    padding: 4px 10px;
    border-radius: 999px;
}

.progress-card {
    margin-top: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.35s ease;
}

.qa-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.qa-dialogue-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 20px;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-speaker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qa-speaker {
    font-weight: 900;
    color: var(--amber);
    font-size: 1.08rem;
}

.new-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #05130a;
    background: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
}

.qa-text {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-main);
}

.qa-questions-wrap {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.qa-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-btn {
    width: 100%;
    text-align: left;
    padding: 13px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s;
}

.question-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.question-btn.asked {
    border-color: rgba(56, 242, 126, 0.35);
    color: var(--text-muted);
}

.q-status {
    font-size: 0.82rem;
    white-space: nowrap;
    color: var(--accent);
}

/* ==================== SCREEN 5: DARK ROOM INVESTIGATION ==================== */
.room-stage {
    position: relative;
    width: 100%;
    height: 100%;
    background: #030406;
    overflow: hidden;
    touch-action: none;
    cursor: crosshair;
}

.room-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.88) contrast(1.08);
    transition: filter 0.35s;
}

.room-stage.mode-uv .room-bg-img {
    filter: brightness(0.45) contrast(1.3) hue-rotate(210deg) saturate(1.8);
}

/* UV Secret Layer */
.uv-floor-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.room-stage.mode-uv .uv-floor-layer {
    opacity: 1;
}

.uv-svg {
    width: 100%;
    height: 100%;
}

.uv-drag-path {
    fill: none;
    stroke: #c084fc;
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 28 16;
    filter: drop-shadow(0 0 14px #a855f7);
    opacity: 0.82;
}

.uv-splatter {
    fill: #d8b4fe;
    filter: drop-shadow(0 0 12px #a855f7);
    opacity: 0.85;
}

/* Flashlight & UV Radial Mask */
.light-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    --lx: 50%;
    --ly: 50%;
    background: radial-gradient(
        circle 155px at var(--lx) var(--ly),
        rgba(255, 248, 220, 0.04) 0%,
        rgba(0, 0, 0, 0.45) 58%,
        rgba(0, 0, 0, 0.94) 100%
    );
    transition: opacity 0.3s;
}

.room-stage.mode-uv .light-mask {
    background: radial-gradient(
        circle 145px at var(--lx) var(--ly),
        rgba(168, 85, 247, 0.14) 0%,
        rgba(24, 6, 46, 0.65) 58%,
        rgba(4, 2, 10, 0.96) 100%
    );
}

.room-stage.mode-lights .light-mask {
    opacity: 0;
}

/* Hotspots */
.room-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 58px;
    height: 58px;
    background: none;
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0.25;
    transition: opacity 0.25s, transform 0.2s;
}

.room-hotspot.illuminated,
.room-stage.mode-lights .room-hotspot,
.room-hotspot.found,
.room-hotspot.closet-hotspot:not(.locked) {
    opacity: 1;
}

.room-hotspot.uv-only {
    pointer-events: none;
    opacity: 0;
}

.room-stage.mode-uv .room-hotspot.uv-only {
    pointer-events: auto;
    opacity: 0.35;
}

.room-stage.mode-uv .room-hotspot.uv-only.illuminated,
.room-stage.mode-uv .room-hotspot.uv-only.found {
    opacity: 1;
}

.hs-ring {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    animation: spin-slow 8s linear infinite;
}

.hs-core {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}

.hs-ring.uv { border-color: #c084fc; }
.hs-core.uv { background: #c084fc; box-shadow: 0 0 16px #a855f7; }

.hs-ring.danger { border-color: var(--danger); }
.hs-core.danger { background: var(--danger); box-shadow: 0 0 16px var(--danger); }

.room-hotspot.found .hs-ring {
    border-style: solid;
    border-color: rgba(56, 242, 126, 0.5);
    animation: none;
}

.hs-label {
    position: absolute;
    top: -34px;
    white-space: nowrap;
    background: rgba(6, 10, 15, 0.92);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    pointer-events: none;
}

.hs-label.uv {
    border-color: #c084fc;
    color: #e9d5ff;
    background: rgba(34, 10, 58, 0.94);
}

.hs-label.danger {
    border-color: var(--danger);
    color: #fff;
    background: rgba(135, 16, 28, 0.94);
}

.room-banner {
    position: absolute;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(8, 13, 20, 0.92);
    border: 1px solid var(--border-bright);
    padding: 10px 16px;
    border-radius: 12px;
    max-width: min(92%, 720px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.banner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
    flex-shrink: 0;
}

.banner-text {
    font-size: 0.92rem;
    line-height: 1.45;
}

.banner-text strong { color: var(--amber); }

.forensic-toolbar {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(8, 13, 20, 0.94);
    border: 1px solid var(--border-dim);
    padding: 10px 16px;
    border-radius: 14px;
    width: min(94%, 760px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 8px 14px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn.active {
    background: var(--accent);
    color: #05130a;
    border-color: var(--accent);
}

.tool-btn.uv-btn.active {
    background: var(--uv);
    color: #fff;
    border-color: #d8b4fe;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}

.clue-counter {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.clue-counter strong {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.05rem;
}

/* ==================== SCREEN 6: INTERACTIVE CLOSET ==================== */
.closet-stage {
    position: relative;
    width: 100%;
    height: 100%;
    background: #020203;
    overflow: hidden;
}

.closet-stage.shake {
    animation: screen-shake 0.45s ease-in-out;
}

.closet-interior {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.closet-reveal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.15);
}

.closet-red-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 30, 50, 0.12), rgba(0, 0, 0, 0.65));
}

.closet-doors {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    pointer-events: none;
}

.door {
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, #1b120c, #0e0906);
    border: 1px solid #2b1d14;
    position: relative;
    transition: transform 0.08s linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.door-panel {
    width: 82%;
    height: 82%;
    border: 3px solid rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 2px,
        transparent 2px,
        transparent 14px
    );
}

.door-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 92px;
    border-radius: 7px;
    background: linear-gradient(180deg, #8b6f47, #4a3721);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    transform: translateY(-50%);
}

.door-handle.left { right: 22px; }
.door-handle.right { left: 22px; }

.door-crack-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    background: var(--danger);
    box-shadow: 0 0 30px 10px rgba(255, 45, 65, 0.55);
    opacity: 0.2;
    transition: opacity 0.2s;
}

.closet-controls {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    z-index: 20;
    width: min(92%, 520px);
    background: rgba(8, 10, 14, 0.94);
    border: 1px solid var(--danger);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 59, 78, 0.28);
}

.tension-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--amber);
    background: var(--amber-soft);
    border: 1px solid rgba(255, 184, 77, 0.4);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.tension-badge.danger {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.closet-controls h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.closet-controls p {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tension-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tension-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--danger);
    border: 3px solid #fff;
    cursor: grab;
    box-shadow: 0 0 18px var(--danger);
}

.tension-slider.latch::-webkit-slider-thumb {
    background: var(--amber);
    box-shadow: 0 0 18px var(--amber);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.closet-dialogue {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 25;
    width: min(94%, 820px);
}

/* ==================== SCREEN 7: DEDUCTION ==================== */
.deduction-stage {
    padding: 72px 20px 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.deduction-card {
    width: 100%;
    max-width: 860px;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--amber);
    letter-spacing: 2px;
}

.deduction-header h2 {
    font-size: 1.38rem;
    margin-top: 6px;
    line-height: 1.45;
}

.deduction-sub {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 0.95rem;
}

.deduction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ev-card {
    text-align: left;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.ev-card:hover { border-color: var(--accent); }

.ev-card.selected {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 242, 126, 0.25);
}

.ev-tag {
    font-size: 0.78rem;
    color: var(--amber);
    font-weight: 700;
}

.ev-label {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
}

.deduction-feedback {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.98rem;
    line-height: 1.55;
}

.deduction-feedback.error {
    background: var(--danger-soft);
    border: 1px solid var(--danger);
    color: #ffd5da;
}

.deduction-feedback.success {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: #d7ffe5;
}

.deduction-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selected-count {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* ==================== SCREEN 8: INTRUSION ==================== */
.intrusion-stage {
    margin: auto;
    width: min(94%, 820px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.intrusion-alert {
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--danger);
    letter-spacing: 2px;
    text-shadow: 0 0 14px var(--danger);
    animation: blink-fast 0.9s infinite;
}

.intrusion-card {
    border-color: var(--danger);
    background: rgba(18, 6, 10, 0.94);
}

.mystery-avatar {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 900;
    color: var(--danger);
    background: radial-gradient(circle, rgba(255, 59, 78, 0.2), #050507);
}

/* ==================== SCREEN 9: ENDING ==================== */
.ending-stage {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 24px 20px 32px;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(160, 16, 30, 0.25), #05070a 65%);
}

.ending-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: auto 0;
}

.crash-badge {
    align-self: center;
    font-family: var(--font-mono);
    color: var(--danger);
    border: 1px solid var(--danger);
    background: var(--danger-soft);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.rank-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 16px 20px;
}

.rank-badge {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #10b981);
    color: #03140b;
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 900;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.rank-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent);
}

.rank-stats {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.mysteries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mystery-box {
    background: rgba(14, 18, 25, 0.92);
    border: 1px solid rgba(255, 59, 78, 0.42);
    border-radius: 14px;
    padding: 16px;
}

.mystery-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--danger);
    margin-bottom: 4px;
}

.mystery-box h4 {
    font-size: 1.12rem;
    margin-bottom: 6px;
    color: var(--amber);
}

.mystery-box p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-main);
}

.book-promo-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, rgba(16, 32, 24, 0.94), rgba(10, 16, 22, 0.96));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 36px rgba(56, 242, 126, 0.18);
}

.book-cover-wrap {
    width: 120px;
    height: 168px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1b2a38, #090e14);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    text-align: center;
}

.bf-author { font-size: 0.72rem; color: var(--amber); }
.bf-title { font-size: 1.35rem; font-weight: 900; line-height: 1.25; color: #fff; }
.bf-tag { font-size: 0.68rem; color: var(--accent); border-top: 1px solid var(--border-dim); padding-top: 4px; width: 100%; }

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-cta-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.book-info h3 {
    font-size: 1.32rem;
    line-height: 1.35;
}

.book-info p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.ending-actions { margin-top: 6px; }

.ending-credits {
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
    padding-top: 4px;
}

/* ==================== MODALS & CLUTTER ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
}

.clue-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--amber);
    background: var(--amber-soft);
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.clue-media img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-dim);
    display: block;
}

.clue-media .uv-fallback-card {
    height: 180px;
    border-radius: 10px;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.35), #090512);
    border: 1px solid #c084fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #e9d5ff;
    font-weight: 700;
}

.clue-desc {
    font-size: 0.98rem;
    line-height: 1.65;
}

.clue-highlight {
    background: var(--danger-soft);
    border-left: 3px solid var(--danger);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: #ffd5da;
}

.clue-hui-note {
    background: var(--accent-soft);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.94rem;
    color: #d6ffe5;
}

/* Clutter Mini-Game */
.clutter-tip {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.clutter-arena {
    position: relative;
    height: 240px;
    border-radius: 12px;
    background: #0a0e13;
    border: 1px dashed var(--border-dim);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clutter-underneath {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clutter-reveal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.clutter-found-label {
    position: absolute;
    background: rgba(6, 10, 15, 0.9);
    border: 1px solid var(--amber);
    color: var(--amber);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.cardboard-box {
    position: absolute;
    padding: 18px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8f6840, #664729);
    border: 2px solid #b5895a;
    color: #fff8eb;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.cardboard-box small {
    font-weight: 400;
    opacity: 0.85;
}

.box-1 { top: 24px; left: 26px; transform: rotate(-5deg); z-index: 4; }
.box-2 { top: 70px; right: 28px; transform: rotate(6deg); z-index: 5; }
.box-3 { bottom: 20px; left: 32%; transform: rotate(-2deg); z-index: 6; }

.cardboard-box.removed {
    transform: translateY(-90px) rotate(18deg) scale(0.75);
    opacity: 0;
    pointer-events: none;
}

.clutter-status {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--amber);
}

/* ==================== NOTEBOOK DRAWER ==================== */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 450;
    display: flex;
    justify-content: flex-end;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.drawer-panel {
    position: relative;
    z-index: 2;
    width: min(92vw, 420px);
    height: 100%;
    background: #0b1118;
    border-left: 1px solid var(--border-bright);
    display: flex;
    flex-direction: column;
}

.drawer-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nb-section h4 {
    font-size: 0.88rem;
    color: var(--amber);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.nb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nb-item {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.nb-item strong { color: var(--accent); display: block; margin-bottom: 2px; }
.nb-item.static { border-left-color: var(--amber); }
.nb-item.static strong { color: var(--amber); }
.nb-empty { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

/* Toast */
.toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    background: rgba(8, 16, 12, 0.95);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes beam-move {
    0% { top: 0%; }
    100% { top: 96%; }
}

@keyframes sweep-y {
    0% { top: 0%; }
    100% { top: 100%; }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -14; }
}

@keyframes radar-ring {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

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

@keyframes blink-fast {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes screen-shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-8px, 6px); }
    40% { transform: translate(8px, -6px); }
    60% { transform: translate(-6px, -4px); }
    80% { transform: translate(6px, 5px); }
}

/* ==================== RESTRAINED NOIR OVERRIDES (MINIMAL COLOR CLUTTER) ==================== */
.vn-card, .dossier-card, .witness-card, .qa-dialogue-box, .qa-questions-wrap,
.forensic-toolbar, .modal-card, .closet-controls, .book-promo-card, .mystery-box {
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}

.vn-portrait-wrap, .witness-avatar-box {
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.vn-speaker, .qa-speaker, .mystery-num {
    color: var(--text-muted) !important;
    font-size: 0.92rem;
    letter-spacing: 1px;
}

.info-row.alert, .info-row.highlight {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.25) !important;
}

.info-row.highlight strong {
    color: var(--text-main) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stamp-deceased {
    color: #e5484d;
    border: 2px solid rgba(229, 72, 77, 0.7);
    box-shadow: none;
    transform: none;
    border-radius: 6px;
    font-size: 0.82rem;
}

.clue-highlight {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--text-main) !important;
}

.clue-hui-note {
    background: transparent !important;
    padding: 4px 0 !important;
    color: var(--text-muted) !important;
}

.hs-label {
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    background: rgba(8, 12, 16, 0.88) !important;
}

.hs-label.uv {
    border-color: rgba(192, 132, 252, 0.7) !important;
    color: #e9d5ff !important;
}

.hs-label.danger {
    border-color: rgba(229, 72, 77, 0.8) !important;
    background: rgba(120, 18, 26, 0.9) !important;
}

.pin-label {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.pin-label.danger {
    border-color: rgba(229, 72, 77, 0.85) !important;
    box-shadow: 0 0 16px rgba(229, 72, 77, 0.35) !important;
}

.book-promo-card {
    background: rgba(12, 17, 24, 0.94) !important;
}

/* ==================== RESPONSIVE (iPad Portrait & Mobile) ==================== */
@media (max-width: 820px) {
    .interrogation-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .witness-card {
        flex-direction: row;
        text-align: left;
    }
    .witness-avatar-box {
        width: 84px;
        height: 84px;
    }
    .dossier-grid {
        grid-template-columns: 1fr;
    }
    .photo-frame { max-width: 180px; margin: 0 auto; }
    .deduction-grid, .mysteries-grid {
        grid-template-columns: 1fr;
    }
    .vn-card, .book-promo-card {
        flex-direction: column;
        text-align: center;
    }
    .vn-actions { justify-content: center; gap: 16px; }
}
