/* PREFECTURE DE POLICE - DOSSIERS CRIMINELS (1940s DETECTIVE NOIR STYLE) */

:root {
    --bg-main: #0c0b0a; /* Dark charcoal/asphalt */
    --bg-card: rgba(24, 22, 20, 0.95); /* Deep dark brown-charcoal */
    --bg-card-header: rgba(36, 33, 30, 0.98);
    --bg-chat-bubble-suspect: #f5eedc; /* Faded yellow typewriter paper */
    --bg-chat-bubble-player: #2c2824; /* Muted vintage dark wool */
    
    --color-text-primary: #ebdcb9; /* Warm parchment cream */
    --color-text-secondary: #8e846f; /* Dusty sepia */
    --color-accent-filament: #f0a22a; /* Incandescent bulb warm orange */
    --color-success-muted: #8ca376; /* Faded stamp green */
    --color-danger-muted: #a63f3f; /* Faded ink stamp red */
    
    --border-paper: 1px solid rgba(235, 220, 185, 0.15);
    --border-accent: 1px solid rgba(240, 162, 42, 0.3);
    
    --shadow-filament: 0 0 15px rgba(240, 162, 42, 0.12);
    
    --font-typewriter: 'Special Elite', system-ui, -apple-system, sans-serif;
    --font-analog: 'Courier Prime', monospace;
}

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

body.noir-theme {
    background-color: var(--bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-analog);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* VENETIAN BLINDS SHADOW OVERLAY */
.venetian-blinds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 55%, 
        rgba(0, 0, 0, 0.5) 55%, 
        rgba(0, 0, 0, 0.5) 60%, 
        rgba(0, 0, 0, 0) 60%
    );
    background-size: 100% 75px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.45;
}

.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0),
        radial-gradient(rgba(0, 0, 0, 0.3) 2px, transparent 0);
    background-size: 10px 10px, 30px 30px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* APP HEADER */
.app-header {
    height: 65px;
    background-color: #12100f;
    border-bottom: 2px solid #221f1c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo h1 {
    font-family: var(--font-typewriter);
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 1px;
    color: var(--color-text-primary);
}

.blinking-lamp {
    width: 10px;
    height: 10px;
    background-color: var(--color-accent-filament);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent-filament);
    animation: gaslamp 6s infinite ease-in-out;
}

/* HEADER CONTROLS & LANGUAGE SELECTOR */
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-analog);
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(235, 220, 185, 0.1);
    padding: 4px 10px;
    border-radius: 2px;
}

.lang-btn {
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    font-weight: bold;
}

.lang-btn:hover {
    color: var(--color-text-primary);
}

.lang-btn.active {
    color: var(--color-accent-filament);
    text-shadow: 0 0 4px rgba(240, 162, 42, 0.4);
}

.lang-divider {
    color: rgba(235, 220, 185, 0.1);
    font-size: 10px;
    pointer-events: none;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-analog);
    font-size: 12px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 2px;
    font-weight: bold;
}

.status-badge.green {
    background-color: rgba(140, 163, 118, 0.15);
    color: var(--color-success-muted);
    border: 1px solid rgba(140, 163, 118, 0.3);
}

.session-id {
    color: var(--color-text-secondary);
    font-family: var(--font-typewriter);
    font-size: 11px;
}

/* MAIN LAYOUT */
.app-container {
    flex: 1;
    display: grid;
    grid-template-columns: 330px 1fr 350px;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* CARD SYSTEM (MANILA DETECTIVE FILES) */
.card {
    background-color: var(--bg-card);
    border: var(--border-paper);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(235, 220, 185, 0.3);
}

.card-header {
    background-color: var(--bg-card-header);
    padding: 10px 15px;
    border-bottom: 2px solid #221f1c;
}

.card-header h2 {
    font-family: var(--font-typewriter);
    font-size: 12px;
    color: var(--color-text-primary);
    font-weight: normal;
    text-transform: uppercase;
}

/* SIDEBARS */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 4px;
}

.sidebar::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(235, 220, 185, 0.1);
    border-radius: 1px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-filament);
}

/* DOSSIER SELECTOR */
.selector-card {
    border: var(--border-paper);
}

.selector-content {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-dropdown {
    width: 100%;
    background-color: #0c0b0a;
    border: 1px solid rgba(235, 220, 185, 0.2);
    border-radius: 2px;
    padding: 8px 10px;
    color: var(--color-text-primary);
    font-family: var(--font-analog);
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-dropdown:focus {
    border-color: var(--color-accent-filament);
}

.case-price-tag {
    font-family: var(--font-typewriter);
    font-size: 9px;
    color: var(--color-success-muted);
}

/* LEFT SIDEBAR SPECIFICS - POLAROID DOSSIER */
.dossier-card {
    border: var(--border-accent);
    box-shadow: var(--shadow-filament);
}

.avatar-container {
    width: 82%;
    margin: 15px auto 5px auto;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background-color: #f2ebd9; /* Polaroid paper background */
    padding: 10px 10px 30px 10px; /* Polaroid bottom border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    transform: rotate(-1.5deg);
    border: 1px solid rgba(0,0,0,0.1);
}

.suspect-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.15) brightness(0.95);
    border: 1px solid rgba(0,0,0,0.1);
}

.photo-border {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-typewriter);
    font-size: 10px;
    color: #4c4033;
    content: "SUSPECT 804";
}

.dossier-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    line-height: 1.5;
}

.info-row .label {
    color: var(--color-text-secondary);
    font-size: 11px;
}

.info-row .value {
    font-weight: bold;
}

.info-row .value.highlighted {
    color: var(--color-text-primary);
}

.info-row .value.warning {
    color: var(--color-accent-filament);
}

/* PATIENCE / INTERROGATION TENSION CARD */
.patience-card {
    border: var(--border-paper);
}

.patience-gauge-container {
    margin: 15px 18px 5px 18px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(235, 220, 185, 0.1);
}

.patience-gauge {
    height: 100%;
    background: var(--color-accent-filament);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.patience-stats {
    display: flex;
    justify-content: space-between;
    margin: 12px 18px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-typewriter);
    font-size: 20px;
    color: var(--color-text-primary);
}

.stat-label {
    font-size: 10px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.patience-warning {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    padding: 0 18px 18px 18px;
    border-top: 1px solid rgba(235, 220, 185, 0.05);
    padding-top: 12px;
}

/* INTERROGATION CHAT PANEL */
.chat-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-card {
    flex: 1;
    border: var(--border-paper);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-title {
    font-family: var(--font-typewriter);
    font-size: 12px;
    color: var(--color-text-primary);
}

.sound-control {
    font-family: var(--font-typewriter);
    font-size: 11px;
    color: var(--color-accent-filament);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 2px;
    background-color: rgba(240, 162, 42, 0.05);
    border: 1px solid rgba(240, 162, 42, 0.2);
    transition: all 0.2s ease;
}

.sound-control:hover {
    background-color: rgba(240, 162, 42, 0.15);
    border-color: rgba(240, 162, 42, 0.4);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #090807; /* Dark room background */
}

/* INTERROGATION TRANSCRIPT BUBBLES */
.msg-wrapper {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: msgFadeIn 0.35s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.msg-wrapper.suspect {
    align-self: flex-start;
}

.msg-wrapper.player {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-wrapper.system {
    align-self: center;
    max-width: 90%;
    margin: 10px 0;
}

.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(235, 220, 185, 0.2);
    filter: sepia(0.2) contrast(1.1);
}

.msg-bubble {
    padding: 12px 18px;
    border-radius: 2px;
    font-size: 13.5px;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Suspect Message: Vintage typewritten paper sheet snippet */
.msg-wrapper.suspect .msg-bubble {
    background-color: var(--bg-chat-bubble-suspect);
    border-left: 3px solid var(--color-accent-filament);
    color: #2b251f; /* Faded dark ink */
    font-family: var(--font-typewriter);
    border-top-left-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Detective Message: Charcoal typewriter style */
.msg-wrapper.player .msg-bubble {
    background-color: var(--bg-chat-bubble-player);
    border-right: 3px solid var(--color-text-secondary);
    color: #eae5da;
    font-family: var(--font-analog);
    border-top-right-radius: 0;
    border: 1px solid rgba(235, 220, 185, 0.05);
}

.msg-wrapper.system .msg-bubble {
    background-color: rgba(240, 162, 42, 0.03);
    border: 1px dashed rgba(240, 162, 42, 0.2);
    color: var(--color-accent-filament);
    font-family: var(--font-typewriter);
    font-size: 11px;
    text-align: center;
    padding: 8px 14px;
}

.msg-meta {
    font-family: var(--font-typewriter);
    font-size: 9px;
    color: var(--color-text-secondary);
    margin-top: 6px;
    display: block;
}

.msg-wrapper.suspect .msg-meta {
    color: #63574a;
}

.msg-wrapper.player .msg-meta {
    text-align: right;
}

/* Chat Embedded Polaroid Clue Visual */
.chat-clue-visual {
    margin-top: 12px;
    background-color: #f7f2e5;
    padding: 8px 8px 24px 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transform: rotate(1deg);
    width: 250px;
    max-width: 100%;
}

.chat-clue-visual img {
    width: 100%;
    height: auto;
    filter: sepia(0.2) contrast(1.1);
    display: block;
}

.chat-clue-title {
    color: #473a2b;
    font-family: var(--font-typewriter);
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    margin-top: 8px;
}

/* INPUT AREA (TYPEWRITER KEYS FEED) */
.chat-input-area {
    padding: 15px 20px;
    background-color: var(--bg-card-header);
    border-top: 2px solid #221f1c;
}

.chat-form {
    display: flex;
    gap: 12px;
}

.chat-form input {
    flex: 1;
    background-color: #080706;
    border: 1px solid rgba(235, 220, 185, 0.2);
    border-radius: 2px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-family: var(--font-analog);
    font-size: 13.5px;
    transition: all 0.3s ease;
}

.chat-form input:focus {
    outline: none;
    border-color: var(--color-accent-filament);
}

/* GLOW BUTTON (MECHANICAL KEY STYLE) */
.glow-button {
    background: linear-gradient(180deg, #36322e, #1c1a18);
    border: 1px solid rgba(235, 220, 185, 0.2);
    border-radius: 2px;
    padding: 10px 24px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 11px;
    color: var(--color-text-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.glow-button:hover:not(:disabled) {
    border-color: var(--color-accent-filament);
    background: linear-gradient(180deg, #423d38, #262320);
}

.glow-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* RIGHT SIDEBAR PIECES OF CONVICTION (POLAROIDS ON BOARD) */
.clues-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.clue-item {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(235, 220, 185, 0.05);
    border-radius: 2px;
    display: flex;
    gap: 12px;
    padding: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.clue-status-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--color-danger-muted);
}

.clue-preview {
    width: 60px;
    height: 60px;
    background-color: #f7f2e5; /* Polaroid backing */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.lock-icon {
    font-size: 14px;
    color: #473a2b;
}

.clue-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
    transition: opacity 0.5s ease;
}

.clue-img.hidden {
    display: none;
}

.clue-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clue-details h3 {
    font-family: var(--font-typewriter);
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

.clue-desc {
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.clue-state {
    font-family: var(--font-typewriter);
    font-size: 8px;
    font-weight: bold;
    margin-top: 6px;
    color: var(--color-danger-muted);
}

/* UNLOCKED CLUE STATE */
.clue-item.unlocked {
    border-color: rgba(140, 163, 118, 0.2);
    background-color: rgba(140, 163, 118, 0.02);
}

.clue-item.unlocked .clue-status-indicator {
    background-color: var(--color-success-muted);
}

.clue-item.unlocked .lock-icon {
    display: none;
}

.clue-item.unlocked .clue-img.hidden {
    display: block;
}

.clue-item.unlocked .clue-details h3 {
    color: var(--color-success-muted);
}

.clue-item.unlocked .clue-desc {
    color: var(--color-text-primary);
}

.clue-item.unlocked .clue-state {
    color: var(--color-success-muted);
}

/* CONFRONTATION CARD */
.command-card {
    margin-top: auto;
    border: var(--border-paper);
}

.command-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.command-info {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.action-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-accent-filament);
    background-color: rgba(240, 162, 42, 0.05);
    border-radius: 2px;
    font-family: var(--font-typewriter);
    font-size: 11px;
    color: var(--color-accent-filament);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    background-color: var(--color-accent-filament);
    color: #000;
    box-shadow: 0 0 15px rgba(240, 162, 42, 0.3);
}

.action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(235, 220, 185, 0.1);
    color: var(--color-text-secondary);
    box-shadow: none;
}

/* END GAME MODAL OVERLAY (OLD PHOTO / TRANSCRIPT ALBUM LOOK) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 11, 10, 0.95);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 500px;
    max-width: 90%;
    background-color: #1a1816;
    border: 2px solid rgba(235, 220, 185, 0.15);
    border-radius: 2px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-title {
    font-family: var(--font-typewriter);
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 2px;
}

.modal-title.win {
    color: var(--color-success-muted);
}

.modal-title.lose {
    color: var(--color-danger-muted);
}

.modal-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-family: var(--font-analog);
}

.modal-visual-container {
    width: 80%;
    aspect-ratio: 16/10;
    background-color: #ebdcb9;
    padding: 8px 8px 30px 8px; /* Polaroid frame look */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: rotate(1deg);
    border: 1px solid rgba(0,0,0,0.1);
}

.modal-visual-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
}

.modal-btn {
    margin-top: 10px;
    padding: 12px 30px;
}

/* SOUND INITIATOR BOTTOM BAR */
.sound-init-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1816;
    border: 1px solid var(--color-accent-filament);
    box-shadow: var(--shadow-filament);
    padding: 10px 20px;
    border-radius: 2px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-typewriter);
    font-size: 11px;
    color: var(--color-accent-filament);
    transition: opacity 0.3s ease;
}

.sound-init-bar.hidden {
    opacity: 0;
    pointer-events: none;
}

.sound-init-bar button {
    background-color: var(--color-accent-filament);
    color: #000;
    border: none;
    padding: 3px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
}

/* KEYFRAMES & ANIMATIONS */
@keyframes gaslamp {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 6px var(--color-accent-filament); }
    50% { opacity: 1; box-shadow: 0 0 16px var(--color-accent-filament); }
}

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

/* RESPONSIVE ADAPTABILITY */
@media (max-width: 1100px) {
    .app-container {
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto auto;
        overflow-y: auto;
    }
    
    .right-sidebar {
        grid-column: 1 / span 2;
        flex-direction: row !important;
        gap: 15px;
    }
    
    .clues-card, .command-card {
        flex: 1;
    }
    
    body.noir-theme {
        overflow-y: auto;
    }
}

/* Tablet and Smartphone Layout Adaptations */
@media (max-width: 768px) {
    body.noir-theme {
        overflow-y: auto;
        height: auto;
        width: 100%;
    }
    
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 12px;
        gap: 16px;
    }
    
    .sidebar {
        overflow-y: visible;
        height: auto;
    }
    
    .left-sidebar {
        order: 1; /* Suspect dossier at the top for context */
    }
    
    .chat-panel {
        order: 2; /* Main chat container */
        height: 520px; /* Locked height on mobile to scroll correctly */
    }
    
    .right-sidebar {
        order: 3; /* Clues and Accusation at the bottom */
        grid-column: 1;
        flex-direction: column !important;
        gap: 16px;
    }
    
    .app-header {
        padding: 10px 15px;
        flex-direction: column;
        height: auto;
        gap: 8px;
    }
    
    .header-logo h1 {
        font-size: 13px;
        text-align: center;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .session-id {
        display: none; /* Hide technical arch number on small screens to save space */
    }
}

/* Smartphone Portrait Modes */
@media (max-width: 480px) {
    .app-container {
        padding: 8px;
        gap: 12px;
    }
    
    .sound-init-bar {
        width: 92%;
        font-size: 10px;
        padding: 8px 12px;
    }
    
    .chat-messages {
        padding: 12px;
        gap: 12px;
    }
    
    .msg-wrapper {
        max-width: 92%;
    }
    
    .msg-bubble {
        font-size: 12.5px;
        padding: 10px 14px;
        line-height: 1.5;
    }
    
    .avatar-container {
        width: 65%; /* Shrink Polaroid photo and center on mobile */
        margin: 12px auto 8px auto;
    }
    
    .stat-num {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .chat-form {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .chat-form input {
        font-size: 12px;
        padding: 9px 12px;
    }
    
    .glow-button {
        width: auto;
        padding: 9px 15px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .clue-item {
        padding: 8px;
        gap: 10px;
    }
    
    .clue-preview {
        width: 50px;
        height: 50px;
    }
}
