/* ============================================================
   DEADLINE DEMOCRACY - News CMS Dashboard Theme
   ============================================================ */

:root {
    --bg-dark: #0d1117;
    --bg-panel: #161b22;
    --bg-surface: #1c2128;
    --bg-hover: #252c35;
    --border: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-yellow: #d29922;
    --accent-red: #f85149;
    --accent-purple: #bc8cff;
    --accent-orange: #d18616;
    --screecher-bg: #1a1625;
    --screecher-accent: #9b59b6;
    --choice-bg: #1a2332;
    --choice-border: #1f6feb;
    --choice-hover: #1f3554;
}

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

body {
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

/* ---- Top Bar ---- */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

/* ---- Breaking News Ticker ---- */
#ticker {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    height: 28px;
    overflow: hidden;
}

#ticker.hidden {
    display: none;
}

.ticker-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--bg-dark);
    background: var(--accent-red);
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: tickerPulse 3s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { background: var(--accent-red); }
    50% { background: #d63a35; }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}

.ticker-content {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll var(--ticker-duration, 30s) linear infinite;
    padding-left: 20px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 16px;
}

.ticker-item b {
    color: var(--accent-yellow);
}

.ticker-separator {
    color: var(--accent-red);
    padding: 0 8px;
    font-size: 0.6rem;
}

.ticker-close {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 0 10px;
    height: 100%;
    cursor: pointer;
    transition: color 0.15s;
    flex-shrink: 0;
}

.ticker-close:hover {
    color: var(--text-primary);
}

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

.logo-icon {
    font-size: 1.4rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--accent-yellow);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'Source Code Pro', monospace;
}

.top-stats {
    display: flex;
    gap: 16px;
}

.stat {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.stat span {
    font-weight: 600;
    color: var(--text-primary);
}

.cred-stat span {
    color: var(--accent-green);
}

.click-stat span {
    color: var(--accent-blue);
}

.sound-btn {
    font-size: 1.1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.sound-btn:hover {
    border-color: var(--text-secondary);
}

.timer-stat {
    border-color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

.timer-stat.hidden {
    display: none;
}

.timer-stat span {
    color: var(--accent-red);
}

.timer-stat.warning {
    animation: timerPulse 0.5s ease-in-out infinite;
}

.timer-stat.critical {
    animation: timerPulse 0.25s ease-in-out infinite;
    border-color: var(--accent-red);
    background: rgba(248, 81, 73, 0.25);
}

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

.timer-icon {
    margin-right: 4px;
}

/* ---- Main Layout ---- */
#main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ---- Story Panel ---- */
#story-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#story-header {
    padding: 12px 24px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.draft-badge {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    letter-spacing: 1px;
}

#story-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Source Code Pro', monospace;
}

#story-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px;
    line-height: 1.7;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    max-width: 800px;
}

#story-content p {
    margin-bottom: 16px;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

#story-content p:nth-child(1) { animation-delay: 0.05s; }
#story-content p:nth-child(2) { animation-delay: 0.15s; }
#story-content p:nth-child(3) { animation-delay: 0.25s; }
#story-content p:nth-child(4) { animation-delay: 0.35s; }
#story-content p:nth-child(5) { animation-delay: 0.45s; }
#story-content p:nth-child(6) { animation-delay: 0.55s; }
#story-content p:nth-child(7) { animation-delay: 0.65s; }
#story-content p:nth-child(8) { animation-delay: 0.75s; }
#story-content p:nth-child(9) { animation-delay: 0.85s; }
#story-content p:nth-child(10) { animation-delay: 0.95s; }

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

#story-content b {
    color: var(--accent-yellow);
    font-weight: 700;
}

#story-content i {
    color: var(--text-secondary);
}

/* ---- Choices Panel ---- */
#choices-panel {
    padding: 16px 48px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
}

.choice-btn {
    display: block;
    width: 100%;
    max-width: 750px;
    text-align: left;
    padding: 14px 20px;
    margin-bottom: 8px;
    background: var(--choice-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--choice-border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.choice-btn:nth-child(1) { animation-delay: 0.3s; }
.choice-btn:nth-child(2) { animation-delay: 0.4s; }
.choice-btn:nth-child(3) { animation-delay: 0.5s; }
.choice-btn:nth-child(4) { animation-delay: 0.6s; }

.choice-btn:hover,
.choice-btn.arrow-focus {
    background: var(--choice-hover);
    border-left-color: var(--accent-yellow);
    transform: translateX(4px);
}

.choice-btn:active {
    transform: translateX(2px);
}

.choice-btn .choice-number {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin-right: 8px;
}

/* ---- Screecher Sidebar ---- */
#screecher-panel {
    width: 320px;
    background: var(--screecher-bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.screecher-logo {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--screecher-accent);
    letter-spacing: 1px;
}

.screecher-trending {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

#screecher-feed {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.screecher-post {
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
    opacity: 0;
    animation: slideInRight 0.4s ease forwards;
}

.screecher-post:nth-child(1) { animation-delay: 0.1s; }
.screecher-post:nth-child(2) { animation-delay: 0.3s; }
.screecher-post:nth-child(3) { animation-delay: 0.5s; }
.screecher-post:nth-child(4) { animation-delay: 0.7s; }
.screecher-post:nth-child(5) { animation-delay: 0.9s; }

/* ---- Day Transition Overlay ---- */
.day-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 17, 23, 0.85);
    pointer-events: none;
    animation: dayFadeIn 0.3s ease forwards;
}

.day-transition-overlay.fade-out {
    animation: dayFadeOut 0.4s ease forwards;
}

.day-transition-text {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: dayTextIn 0.4s ease 0.1s forwards;
}

.day-transition-sub {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 8px;
    text-align: center;
    opacity: 0;
    animation: dayTextIn 0.3s ease 0.3s forwards;
}

@keyframes dayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes dayTextIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screecher-post:hover {
    border-color: var(--screecher-accent);
    background: rgba(155, 89, 182, 0.05);
}

.screecher-handle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--screecher-accent);
    margin-bottom: 4px;
}

.screecher-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.screecher-time {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.screecher-engagement {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    gap: 12px;
}

/* ---- Interactive Screecher ---- */
.screecher-post.interactive {
    cursor: pointer;
}

.screecher-post.interactive:hover {
    border-color: var(--screecher-accent);
    background: rgba(155, 89, 182, 0.05);
}

.screecher-post.expanded {
    background: rgba(155, 89, 182, 0.08);
    border-color: var(--screecher-accent);
}

.screecher-post.flagged-bot {
    border-color: var(--accent-red);
    background: rgba(248, 81, 73, 0.05);
}

.screecher-hint {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.6;
}

.screecher-verified {
    font-size: 0.65rem;
    color: var(--accent-blue);
    margin-left: 2px;
}

.screecher-replies {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.screecher-reply {
    padding: 6px 0 6px 12px;
    border-left: 2px solid var(--border);
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.screecher-reply-handle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--screecher-accent);
    display: block;
    margin-bottom: 2px;
}

.screecher-reply-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.screecher-bot-tag {
    font-size: 0.55rem;
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.15);
    padding: 1px 4px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.screecher-lead-reveal {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--accent-green);
    line-height: 1.4;
}

.screecher-bot-reveal {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--accent-red);
    line-height: 1.4;
}

.screecher-flag-btn {
    margin-top: 8px;
    width: 100%;
    padding: 6px 12px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 4px;
    color: var(--accent-red);
    cursor: pointer;
    transition: all 0.15s;
}

.screecher-flag-btn:hover {
    background: rgba(248, 81, 73, 0.2);
}

.screecher-reply-options {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.screecher-reply-prompt {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--accent-blue);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.screecher-reply-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    margin-bottom: 4px;
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    font-style: italic;
    background: var(--choice-bg);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent-blue);
    border-radius: 3px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.screecher-reply-btn:hover {
    border-left-color: var(--accent-yellow);
    background: var(--choice-hover);
    color: var(--text-primary);
}

.screecher-reply-result {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--accent-blue);
    line-height: 1.4;
}

/* ---- Tab Buttons ---- */
#tab-buttons {
    position: fixed;
    right: 16px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
}

#tab-buttons.hidden {
    display: none;
}

#tab-buttons button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

#tab-buttons button:hover {
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.notebook-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent-green);
    color: white;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- Notebook Panel ---- */
#notebook-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: var(--bg-panel);
    border-left: 1px solid var(--border);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease, width 0.3s ease, left 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

#notebook-panel.closed {
    transform: translateX(100%);
    box-shadow: none;
}

#notebook-panel.board-mode {
    width: 100%;
    left: 0;
    border-left: none;
    box-shadow: none;
}

.notebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.notebook-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-green);
}

.notebook-tabs {
    display: flex;
    gap: 4px;
}

.nb-tab {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.nb-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.nb-tab.active {
    color: var(--accent-green);
    border-color: var(--accent-green);
    background: rgba(63, 185, 80, 0.08);
}

.notebook-view {
    display: none;
    flex: 1;
    overflow: hidden;
}

.notebook-view.active {
    display: flex;
    flex-direction: column;
}

#notebook-view-board {
    overflow: hidden;
    flex: 1;
}

#evidence-board {
    width: 100%;
    height: 100%;
}

#notebook-view-notes {
    overflow-y: auto;
}

.notebook-close {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.notebook-close:hover {
    color: var(--text-primary);
}

.notebook-strength {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.strength-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.strength-bar-track {
    height: 10px;
    background: var(--bg-dark);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.strength-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease, background 0.3s ease;
    width: 0%;
}

.strength-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.notebook-sections {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.nb-section {
    margin-bottom: 16px;
}

.nb-section-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: 8px 8px 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.nb-empty {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 8px;
    opacity: 0.5;
}

.nb-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

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

.nb-card.nb-locked {
    opacity: 0.35;
}

.nb-card.nb-locked:hover {
    border-color: var(--border);
}

.nb-card-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.nb-card-body {
    flex: 1;
    min-width: 0;
}

.nb-card-name {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.nb-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.nb-card-meta {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.nb-card-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 8px;
    border-left: 2px solid var(--accent-yellow);
}

.nb-card.nb-evidence { border-left: 3px solid var(--accent-green); }
.nb-card.nb-source { border-left: 3px solid var(--accent-blue); }
.nb-card.nb-quote { border-left: 3px solid var(--accent-yellow); }
.nb-card.nb-lead { border-left: 3px solid var(--accent-purple); }

@media (max-width: 900px) {
    #notebook-panel {
        width: 100%;
    }
}

/* ---- Phone Panel ---- */
#phone-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100vh;
    background: var(--bg-panel);
    border-left: 1px solid var(--border);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

#phone-panel.closed {
    transform: translateX(100%);
    box-shadow: none;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.phone-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.phone-close {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.phone-close:hover {
    color: var(--text-primary);
}

.phone-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.phone-empty {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.phone-msg {
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}

.phone-msg:hover {
    border-color: var(--accent-blue);
}

.phone-msg.unread {
    border-left: 3px solid var(--accent-blue);
    background: var(--bg-hover);
}

.phone-msg.unread .phone-msg-from {
    color: var(--text-primary);
    font-weight: 700;
}

.phone-msg.unread .phone-msg-preview {
    color: var(--text-secondary);
}

.phone-msg-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    margin-right: 6px;
    vertical-align: middle;
}

.phone-msg.intel.unread .phone-msg-dot {
    background: var(--accent-green);
}

.phone-msg.read {
    opacity: 1;
    border-left: 3px solid transparent;
}

.phone-msg.read .phone-msg-from {
    color: var(--text-muted);
    font-weight: 400;
}

.phone-msg.read .phone-msg-preview {
    color: var(--text-muted);
}

.phone-msg.intel .phone-msg-from {
    color: var(--accent-green);
}

.phone-msg.intel.unread {
    border-left-color: var(--accent-green);
}

.phone-msg-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.phone-msg-from {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.phone-msg-time {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.phone-msg-type {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.phone-msg-subject {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.phone-msg-body {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: none;
}

.phone-msg.expanded .phone-msg-body {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.phone-msg-preview {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-msg.expanded .phone-msg-preview {
    display: none;
}

.phone-msg-intel {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--accent-green);
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(63, 185, 80, 0.1);
    border-radius: 3px;
    display: none;
}

.phone-msg.expanded .phone-msg-intel {
    display: block;
}

.phone-msg-type.spam { color: var(--accent-orange); }
.phone-msg-type.text { color: var(--accent-blue); }
.phone-msg-type.email { color: var(--accent-purple); }
.phone-msg-type.dm { color: var(--accent-green); }

/* Phone Tab */
#phone-tab.has-unread {
    animation: phoneBounce 2s ease-in-out infinite;
}

@keyframes phoneBounce {
    0%, 100% { transform: translateY(0); }
    15% { transform: translateY(-6px); }
    30% { transform: translateY(0); }
    45% { transform: translateY(-3px); }
    60% { transform: translateY(0); }
}

.phone-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--accent-red);
    color: white;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.phone-badge.hidden {
    display: none;
}

@media (max-width: 900px) {
    #phone-panel {
        width: 100%;
    }
}

/* ---- Random Event Overlay ---- */
#event-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

#event-overlay.hidden {
    display: none;
}

.event-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 560px;
    width: 100%;
    padding: 28px 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: eventSlideIn 0.4s ease;
}

@keyframes eventSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.event-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--bg-dark);
    background: var(--accent-red);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.event-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-body {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-choice-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    background: var(--choice-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-yellow);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.event-choice-btn:hover {
    background: var(--choice-hover);
    border-left-color: var(--accent-red);
    transform: translateX(4px);
}

.event-choice-num {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin-right: 6px;
}

.event-dismiss {
    text-align: center;
    border-left: 3px solid var(--accent-blue);
    color: var(--accent-blue);
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-dismiss:hover {
    border-left-color: var(--accent-blue);
}

/* ---- Stat Change Indicators ---- */
.stat-change {
    position: fixed;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 100;
    animation: floatUp 1.5s ease forwards;
}

.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-red); }

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}

/* ---- Title Screen ---- */
#title-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    background-image:
        linear-gradient(to bottom, rgba(13,17,23,0.3) 0%, rgba(13,17,23,0.6) 40%, rgba(13,17,23,0.92) 70%, rgba(13,17,23,1) 100%),
        url('cover.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#title-screen.hidden {
    display: none;
}

.title-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    margin-top: 30vh;
}

.title-masthead {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: var(--accent-yellow);
    line-height: 1;
    text-shadow: 0 0 40px rgba(210, 153, 34, 0.3);
}

.title-masthead-sub {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 12px;
    color: var(--text-primary);
    margin-top: 4px;
    line-height: 1;
}

.title-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 24px;
    line-height: 1.6;
}

.title-meta {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.8;
}

/* ---- Deadline Mode Toggle ---- */
.deadline-toggle {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 0;
}

.toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.2s;
    display: block;
}

.toggle-track.active {
    background: rgba(248, 81, 73, 0.3);
    border-color: var(--accent-red);
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
    display: block;
}

.toggle-track.active .toggle-thumb {
    left: 20px;
    background: var(--accent-red);
}

.toggle-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.toggle-track.active ~ .toggle-label {
    color: var(--accent-red);
}

.toggle-desc {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

#continue-btn {
    margin-top: 16px;
    padding: 14px 40px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: 2px solid var(--accent-yellow);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#continue-btn:hover {
    box-shadow: 0 0 30px rgba(210, 153, 34, 0.4);
    transform: translateY(-1px);
}

#continue-btn.hidden {
    display: none;
}

.continue-meta {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.7;
}

#start-btn {
    margin-top: 12px;
    padding: 14px 40px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#start-btn:hover {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(210, 153, 34, 0.3);
}

#gallery-btn {
    margin-top: 12px;
    padding: 10px 40px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#gallery-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

#gallery-count-badge {
    font-size: 0.7rem;
    color: var(--accent-purple);
    margin-left: 4px;
}

/* ---- Gallery Overlay ---- */
#gallery-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

#gallery-overlay.hidden {
    display: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-main-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-yellow);
}

.gallery-counter {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 900px;
}

.gallery-card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.gallery-card.unlocked {
    background: var(--bg-panel);
    border-color: var(--border);
}

.gallery-card.gallery-good {
    border-left: 3px solid var(--accent-green);
}

.gallery-card.gallery-bad {
    border-left: 3px solid var(--accent-red);
}

.gallery-card.gallery-neutral {
    border-left: 3px solid var(--accent-yellow);
}

.gallery-type-badge {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
}

.gallery-type-good {
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.1);
}

.gallery-type-bad {
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

.gallery-type-neutral {
    color: var(--accent-yellow);
    background: rgba(210, 153, 34, 0.1);
}

.gallery-card.unlocked:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-card.locked {
    background: var(--bg-surface);
    border-color: transparent;
    opacity: 0.4;
}

.gallery-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.gallery-card.locked .gallery-title {
    color: var(--text-muted);
}

.gallery-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.gallery-card.locked .gallery-tagline {
    color: var(--text-muted);
}

.gallery-stats {
    display: flex;
    gap: 12px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.gallery-close {
    margin-top: 32px;
    padding: 10px 32px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-close:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ---- Cloud Auth ---- */
.cloud-auth {
    margin-top: 16px;
}

#sign-in-btn {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#sign-in-btn:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

#signed-in-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
}

#signed-in-info.hidden {
    display: none;
}

#user-name {
    color: var(--accent-green);
}

#sign-out-btn {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    padding: 4px 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

#sign-out-btn:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.cloud-sync-indicator {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.title-sound-btn {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    padding: 8px 20px;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

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

.title-credit {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 24px;
    letter-spacing: 1px;
}

/* ---- Exit Menu Overlay ---- */
#exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

#exit-overlay.hidden {
    display: none;
}

.exit-menu {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: eventSlideIn 0.3s ease;
}

.exit-menu-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.exit-menu-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.exit-menu-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--text-secondary);
}

.exit-menu-btn:first-of-type:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.exit-menu-danger {
    color: var(--accent-red);
    border-color: rgba(248, 81, 73, 0.3);
}

.exit-menu-danger:hover {
    background: rgba(248, 81, 73, 0.1);
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
}

.menu-btn {
    font-size: 1.1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
    color: var(--text-secondary);
}

.menu-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ---- Ending Overlay ---- */
#ending-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 17, 23, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    overflow-y: auto;
    animation: fadeIn 1s ease;
}

#ending-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#ending-content {
    max-width: 650px;
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Ending type color accents */
#ending-overlay.ending-good {
    border-top: 3px solid var(--accent-green);
}

#ending-overlay.ending-good #ending-content b {
    color: var(--accent-green);
}

#ending-overlay.ending-bad {
    border-top: 3px solid var(--accent-red);
}

#ending-overlay.ending-bad #ending-content b {
    color: var(--accent-red);
}

#ending-overlay.ending-neutral {
    border-top: 3px solid var(--accent-yellow);
}

#ending-overlay.ending-neutral #ending-content b {
    color: var(--accent-yellow);
}

#ending-content b {
    color: var(--accent-yellow);
    display: block;
    font-size: 1.6rem;
    margin: 16px 0;
    font-family: 'Libre Franklin', sans-serif;
}

#ending-content i {
    color: var(--text-secondary);
    display: block;
    margin-top: 12px;
}

#restart-btn {
    margin-top: 32px;
    padding: 12px 32px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#restart-btn:hover {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

/* ---- Stats Screen ---- */
.stats-screen {
    text-align: left;
    margin-top: 24px;
    width: 100%;
}

.stats-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

.stats-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent-yellow);
    text-align: center;
    margin-bottom: 28px;
}

.stats-section {
    margin-bottom: 24px;
}

.stats-heading {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-bar-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    width: 110px;
    flex-shrink: 0;
}

.stat-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.stat-bar-value {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    width: 36px;
    text-align: right;
}

.stats-journey {
    display: flex;
    gap: 20px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
}

.stats-pos { color: var(--accent-green); }
.stats-neg { color: var(--accent-red); }
.stats-net { color: var(--text-primary); font-weight: 600; }

.stats-evidence {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stats-evidence-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stats-evidence-item {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.stats-evidence-item.found {
    color: var(--accent-green);
    border-color: rgba(63, 185, 80, 0.3);
}

.stats-evidence-item.missed {
    color: var(--text-muted);
    opacity: 0.6;
}

.stats-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.stats-day-tag {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 1px;
}

.stats-choice-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stats-summary {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.stats-summary-item {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.stats-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent-yellow);
    line-height: 1.2;
}

/* ---- Evidence Checkmarks ---- */
.evidence-line {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: var(--accent-green);
}

/* ---- Scrollbars ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    #screecher-panel {
        display: none;
    }
    #story-content {
        padding: 24px 20px;
    }
    #choices-panel {
        padding: 12px 20px 20px;
    }
    .title-masthead {
        font-size: 1.8rem;
    }
    .title-masthead-sub {
        font-size: 1.3rem;
    }
    .cloud-auth {
        display: none;
    }
}
