/* ============================================
   SCAMULATOR - styles.css
   A happstoner5420 Games Production
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --danger: #ff4444;
    --warning: #ffaa00;
    --info: #00aaff;
    --dark-bg: #0a0a0f;
    --panel-bg: #12141a;
    --panel-border: #1e2030;
    --card-bg: #181a24;
    --text-primary: #e8e8e8;
    --text-secondary: #888;
    --text-muted: #555;
    --win11-blue: #0078d4;
    --win11-bg: #f3f3f3;
    --win11-taskbar: #1c1c1c;
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-red: 0 0 20px rgba(255, 68, 68, 0.3);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    cursor: default;
    user-select: none;
}

/* === SCREENS === */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

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

/* === MAIN MENU === */
.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 170, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 68, 68, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #080810 0%, #0a0a1a 50%, #0d0d20 100%);
    z-index: 0;
}

.menu-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.menu-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.menu-logo {
    margin-bottom: 50px;
}

.logo-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #00ff88, #00aaff, #ff4444);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.title-highlight {
    font-weight: 900;
}

.game-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.game-disclaimer {
    font-size: 12px;
    color: var(--danger);
    margin-top: 8px;
    font-style: italic;
    opacity: 0.8;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.menu-btn {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 50px;
    min-width: 320px;
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.15));
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn:active {
    transform: translateY(0);
}

.exit-btn {
    border-color: var(--danger);
    color: var(--danger);
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.05));
}

.exit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.25), rgba(255, 68, 68, 0.15));
    box-shadow: var(--glow-red);
}

.exit-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.2), transparent);
}

.btn-icon {
    margin-right: 8px;
}

.menu-footer {
    color: var(--text-muted);
    font-size: 13px;
}

/* === INFO SCREENS (How to Play, Credits) === */
.info-screen {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.info-screen h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
}

.info-content {
    text-align: left;
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--panel-border);
}

.info-section h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.info-section ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Credits */
.credits-content {
    text-align: center;
    margin-bottom: 30px;
}

.credit-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--panel-border);
}

.credit-section h3 {
    font-size: 16px;
    color: var(--info);
    margin-bottom: 8px;
}

.credit-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.credit-section p:not(.credit-name) {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === EXIT SCREEN === */
.exit-container {
    text-align: center;
    padding: 40px;
}

.exit-message h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.exit-message p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.exit-credit {
    margin-top: 30px;
    color: var(--text-muted);
    font-style: italic;
}

/* === LOADING SCREEN === */
.loading-container {
    text-align: center;
    padding: 40px;
}

.loading-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-bar {
    width: 400px;
    height: 8px;
    background: var(--panel-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--info));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loading-tip {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* === GAME SCREEN === */
#game-screen {
    overflow-y: auto;
    overflow-x: auto;
}

#game-screen.active {
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.game-topbar {
    height: 48px;
    background: linear-gradient(180deg, #1a1c28, #14161e);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.agent-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 255, 136, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 30px;
}

.call-timer, .money-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.timer-icon, .money-icon {
    font-size: 18px;
}

.timer-label, .money-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-value {
    color: var(--warning);
    font-weight: 700;
}

.money-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.topbar-btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Main Game Area */
.game-main {
    flex: 1;
    display: flex;
    overflow: auto;
    min-height: 0;
}

/* Left Panel */
.game-left-panel {
    width: 220px;
    background: var(--panel-bg);
    border-right: 1px solid var(--panel-border);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    min-height: 0;
}

/* Victim Card */
.victim-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    text-align: center;
}

.victim-avatar {
    font-size: 50px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.3));
}

.victim-info h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.victim-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 3px 0;
}

/* Meters */
.meters-container {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--panel-border);
}

.meter {
    margin-bottom: 10px;
}

.meter:last-child {
    margin-bottom: 0;
}

.meter label {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.meter-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.trust-fill {
    background: linear-gradient(90deg, #22c55e, #00ff88);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.suspicion-fill {
    background: linear-gradient(90deg, #f97316, #ff4444);
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

.panic-fill {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.progress-fill {
    background: linear-gradient(90deg, #0ea5e9, #00ff88);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.meter-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    float: right;
    margin-top: 2px;
}

/* Scam Tools */
.scam-tools {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--panel-border);
}

.scam-tools h4 {
    font-size: 13px;
    color: var(--warning);
    margin-bottom: 10px;
}

.tool-btn {
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: var(--warning);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.tool-btn:hover {
    background: rgba(255, 170, 0, 0.18);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.15);
    transform: translateX(3px);
}

.tool-btn:last-child {
    margin-bottom: 0;
}

.tool-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Collected Info */
.collected-info {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--panel-border);
}

.collected-info h4 {
    font-size: 13px;
    color: var(--info);
    margin-bottom: 10px;
}

.info-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span {
    color: var(--text-secondary);
    float: right;
}

.info-item.collected span {
    color: var(--primary);
    font-weight: 700;
}

/* === CENTER - VICTIM MONITOR === */
.game-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #151520, #0a0a0f);
    padding: 20px;
    min-width: 0;
    overflow: auto;
    min-height: 0;
}

.victim-monitor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-frame {
    background: #1a1a2e;
    border-radius: 12px;
    border: 3px solid #2a2a3e;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.monitor-top-bar {
    height: 32px;
    background: linear-gradient(180deg, #2a2a3e, #222238);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.monitor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.monitor-dot.red { background: #ff5f57; box-shadow: 0 0 6px rgba(255, 95, 87, 0.4); }
.monitor-dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255, 189, 46, 0.4); }
.monitor-dot.green { background: #28c840; box-shadow: 0 0 6px rgba(40, 200, 64, 0.4); }

.monitor-title {
    margin-left: 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

#victim-screen {
    display: block;
    background: #000;
}

.monitor-stand {
    width: 120px;
    height: 30px;
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* === RIGHT PANEL - DIALOG === */
.game-right-panel {
    width: 300px;
    background: var(--panel-bg);
    border-left: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 100vh;
}

/* Phone Display */
.phone-display {
    padding: 8px;
    border-bottom: 1px solid var(--panel-border);
}

.phone-frame {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid var(--panel-border);
    text-align: center;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.phone-icon {
    font-size: 20px;
}

#call-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.phone-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
}

.wave-bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: waveAnim 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 20px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 28px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 14px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 10px; animation-delay: 0.7s; }

@keyframes waveAnim {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

/* Dialog Box */
.dialog-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 300px;
}

.dialog-box {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dialog-box::-webkit-scrollbar {
    width: 4px;
}

.dialog-box::-webkit-scrollbar-track {
    background: transparent;
}

.dialog-box::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 2px;
}

.dialog-msg {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 90%;
    word-wrap: break-word;
    animation: msgSlideIn 0.3s ease;
}

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

.dialog-msg.victim {
    background: linear-gradient(135deg, #2a2a3e, #222238);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text-secondary);
}

.dialog-msg.victim::before {
    content: '👤 Victim: ';
    font-weight: 700;
    color: var(--info);
    font-size: 11px;
}

.dialog-msg.player {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.08));
    border: 1px solid rgba(0, 255, 136, 0.2);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}

.dialog-msg.player::before {
    content: '🎭 You: ';
    font-weight: 700;
    color: var(--primary);
    font-size: 11px;
}

.dialog-msg.system {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    align-self: center;
    text-align: center;
    font-size: 12px;
    color: var(--warning);
    font-style: italic;
    max-width: 100%;
}

.dialog-msg.narrator {
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid rgba(0, 170, 255, 0.15);
    align-self: center;
    text-align: center;
    font-size: 11px;
    color: var(--info);
    font-style: italic;
    max-width: 100%;
    opacity: 0.8;
}

/* Response Choices */
.response-choices {
    padding: 8px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 160px;
    overflow-y: auto;
}

.choice-btn {
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.15);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    line-height: 1.3;
}

.choice-btn:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.choice-btn.risky {
    background: rgba(255, 68, 68, 0.06);
    border-color: rgba(255, 68, 68, 0.15);
}

.choice-btn.risky:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.1);
}

.choice-btn .choice-risk {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 3px;
    display: block;
}

/* === RESULT SCREENS === */
.result-screen {
    text-align: center;
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
}

.win-bg {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 170, 255, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.2);
}

.lose-bg {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 170, 0, 0.1));
    border: 2px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 0 60px rgba(255, 68, 68, 0.2);
}

.result-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    margin-bottom: 30px;
}

.win-bg .result-title {
    color: var(--primary);
}

.lose-bg .result-title {
    color: var(--danger);
}

.result-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.result-stat:last-child {
    border-bottom: none;
}

.result-stat .stat-label {
    color: var(--text-secondary);
}

.result-stat .stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.result-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}

.result-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.result-buttons .menu-btn {
    min-width: 200px;
    font-size: 14px;
    padding: 12px 30px;
}

/* === SCROLLBAR STYLING === */
.game-left-panel::-webkit-scrollbar,
.response-choices::-webkit-scrollbar,
.game-right-panel::-webkit-scrollbar,
.game-main::-webkit-scrollbar,
.game-center::-webkit-scrollbar,
#game-screen::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.game-left-panel::-webkit-scrollbar-track,
.response-choices::-webkit-scrollbar-track,
.game-right-panel::-webkit-scrollbar-track,
.game-main::-webkit-scrollbar-track,
.game-center::-webkit-scrollbar-track,
#game-screen::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.game-left-panel::-webkit-scrollbar-thumb,
.response-choices::-webkit-scrollbar-thumb,
.game-right-panel::-webkit-scrollbar-thumb,
.game-main::-webkit-scrollbar-thumb,
.game-center::-webkit-scrollbar-thumb,
#game-screen::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-dark), var(--panel-border));
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.15);
}

.game-left-panel::-webkit-scrollbar-thumb:hover,
.response-choices::-webkit-scrollbar-thumb:hover,
.game-right-panel::-webkit-scrollbar-thumb:hover,
.game-main::-webkit-scrollbar-thumb:hover,
.game-center::-webkit-scrollbar-thumb:hover,
#game-screen::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}

/* Firefox scrollbar styling */
.game-left-panel,
.response-choices,
.game-right-panel,
.game-main,
.game-center,
#game-screen,
.dialog-box {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) rgba(0, 0, 0, 0.2);
}

/* === ANIMATIONS === */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 2px); }
    50% { transform: translate(3px, -2px); }
    75% { transform: translate(-2px, -3px); }
}

.shake {
    animation: screenShake 0.4s ease;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .game-left-panel {
        width: 200px;
    }
    .game-right-panel {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .game-title {
        font-size: 48px;
    }
    .game-left-panel {
        width: 180px;
    }
    .game-right-panel {
        width: 250px;
    }
}

/* Confirm dialog overlay */
/* Sound toggle button */
.sound-toggle-btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    padding: 6px 16px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.sound-toggle-btn:hover {
    background: rgba(0, 255, 136, 0.18);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-box {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
}

.confirm-box h3 {
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 18px;
}

.confirm-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-buttons .menu-btn {
    min-width: 120px;
    font-size: 13px;
    padding: 10px 20px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
    align-self: flex-start;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-6px); opacity: 1; }
}
