/* ============================================
   NEWS PAPER SIMULATOR 2 - LA WEIRD TIMES
   AAA Quality Photo-Real UI Stylesheet
   (c) 2026 happystoner5420 Games
   ============================================ */

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --gold: #d4a843;
    --cream: #f5f0e1;
    --paper: #faf6ed;
    --paper-dark: #e8e0c8;
    --ink: #1a1208;
    --ink-light: #3d3522;
    --wood: #5c3a1e;
    --wood-light: #8b5e3c;
    --leather: #654321;
    --green-dark: #1b4332;
    --green-light: #52b788;
    --red: #c1121f;
    --shadow: rgba(0,0,0,0.4);
    --glow: rgba(233,69,96,0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(26,26,46,0.85);
    --glass-border: rgba(255,255,255,0.08);
    --panel-bg: rgba(22,33,62,0.92);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background: #0a0a1a;
    color: var(--text-primary);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c49a38; }

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

/* ============================================
   MAIN MENU
   ============================================ */
#main-menu {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 40%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.menu-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.city-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background:
        linear-gradient(0deg, rgba(10,10,26,0.9) 0%, transparent 100%),
        repeating-linear-gradient(90deg,
            transparent 0px, transparent 30px,
            rgba(255,255,255,0.02) 30px, rgba(255,255,255,0.02) 32px
        );
    filter: blur(0.5px);
}

.city-skyline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(0deg, #0a0a1a 2%, transparent 40%),
        /* Buildings silhouette */
        linear-gradient(0deg, rgba(20,20,40,1) 0%, transparent 0%) 5% 100%/3% 60% no-repeat,
        linear-gradient(0deg, rgba(25,25,50,1) 0%, transparent 0%) 10% 100%/2% 45% no-repeat,
        linear-gradient(0deg, rgba(22,22,44,1) 0%, transparent 0%) 14% 100%/4% 70% no-repeat,
        linear-gradient(0deg, rgba(20,20,40,1) 0%, transparent 0%) 20% 100%/2.5% 55% no-repeat,
        linear-gradient(0deg, rgba(28,28,56,1) 0%, transparent 0%) 25% 100%/3% 80% no-repeat,
        linear-gradient(0deg, rgba(22,22,44,1) 0%, transparent 0%) 30% 100%/2% 50% no-repeat,
        linear-gradient(0deg, rgba(24,24,48,1) 0%, transparent 0%) 35% 100%/5% 65% no-repeat,
        linear-gradient(0deg, rgba(20,20,40,1) 0%, transparent 0%) 42% 100%/3% 90% no-repeat,
        linear-gradient(0deg, rgba(26,26,52,1) 0%, transparent 0%) 48% 100%/2% 40% no-repeat,
        linear-gradient(0deg, rgba(22,22,44,1) 0%, transparent 0%) 52% 100%/4% 75% no-repeat,
        linear-gradient(0deg, rgba(20,20,40,1) 0%, transparent 0%) 58% 100%/3% 85% no-repeat,
        linear-gradient(0deg, rgba(28,28,56,1) 0%, transparent 0%) 63% 100%/2.5% 55% no-repeat,
        linear-gradient(0deg, rgba(24,24,48,1) 0%, transparent 0%) 68% 100%/3.5% 70% no-repeat,
        linear-gradient(0deg, rgba(20,20,40,1) 0%, transparent 0%) 74% 100%/2% 45% no-repeat,
        linear-gradient(0deg, rgba(26,26,52,1) 0%, transparent 0%) 78% 100%/4% 95% no-repeat,
        linear-gradient(0deg, rgba(22,22,44,1) 0%, transparent 0%) 84% 100%/3% 60% no-repeat,
        linear-gradient(0deg, rgba(20,20,40,1) 0%, transparent 0%) 89% 100%/2% 50% no-repeat,
        linear-gradient(0deg, rgba(28,28,56,1) 0%, transparent 0%) 93% 100%/3.5% 72% no-repeat;
}

.floating-papers {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.menu-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.menu-logo {
    text-align: center;
    position: relative;
}

.logo-badge {
    display: inline-block;
    padding: 4px 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 72px;
    line-height: 0.9;
    color: #fff;
    text-shadow:
        0 0 40px rgba(233,69,96,0.3),
        0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 12px;
    text-transform: uppercase;
}

.title-number {
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold) 0%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.subtitle {
    font-family: 'Old Standard TT', serif;
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tagline {
    font-family: 'Special Elite', cursive;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 300px;
}

.menu-btn {
    padding: 14px 32px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

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

.menu-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,168,67,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212,168,67,0.2);
}

.menu-btn.primary {
    background: linear-gradient(135deg, var(--accent), #c73654);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.menu-btn.primary:hover {
    background: linear-gradient(135deg, #ff5577, var(--accent));
    border-color: #ff5577;
    color: #fff;
    box-shadow: 0 4px 30px rgba(233,69,96,0.4);
}

.menu-btn.danger {
    border-color: rgba(193,18,31,0.4);
    color: #e05555;
}

.menu-btn.danger:hover {
    border-color: var(--red);
    background: rgba(193,18,31,0.15);
    color: #ff6666;
    box-shadow: 0 4px 20px rgba(193,18,31,0.3);
}

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

/* ============================================
   OVERLAY PANELS (How To Play, Credits)
   ============================================ */
.overlay-panel {
    max-width: 700px;
    margin: auto;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#how-to-play, #credits-screen {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    align-items: center;
    justify-content: center;
}

.overlay-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.how-to-content {
    margin-bottom: 30px;
}

.how-to-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--gold);
}

.how-to-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 8px;
}

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

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

.how-to-section li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.how-to-section li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Credits */
.credits-panel { text-align: center; }

.credits-logo-large {
    font-size: 64px;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.credits-panel h3 {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 28px;
    color: #fff;
}

.credits-panel h4 {
    font-family: 'Old Standard TT', serif;
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 14px;
    margin-top: 4px;
}

.credits-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto;
}

.credits-studio {
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.credits-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--accent);
    margin-top: 8px;
}

.credits-role {
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

.credits-person {
    color: var(--gold);
    font-size: 16px;
    margin-top: 4px;
}

.credits-year {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 10px;
}

.credits-quote {
    font-family: 'Special Elite', cursive;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
    font-size: 14px;
}

/* ============================================
   GAME SCREEN - TOP BAR
   ============================================ */
#game-screen {
    flex-direction: column;
    background: linear-gradient(180deg, #0d0d1f 0%, #151528 100%);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: linear-gradient(180deg, rgba(26,26,46,0.98), rgba(22,33,62,0.95));
    border-bottom: 1px solid rgba(212,168,67,0.2);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    min-height: 56px;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.paper-name {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 20px;
    color: var(--gold);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.day-counter {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.top-bar-center {
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.stat-bar {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-val {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.stat-val.money {
    color: var(--green-light);
}

.icon-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   GAME MAIN LAYOUT
   ============================================ */
.game-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 1px;
    background: rgba(0,0,0,0.3);
}

.panel {
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-panel { width: 280px; min-width: 240px; }
.center-panel { flex: 1; min-width: 400px; }
.right-panel { width: 360px; min-width: 300px; }

/* ============================================
   PANEL TABS
   ============================================ */
.panel-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tab-btn {
    flex: 1;
    padding: 10px 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

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

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(212,168,67,0.05);
}

.tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold);
    padding: 12px 14px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.scrollable-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* ============================================
   EVENTS LIST
   ============================================ */
.event-card {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.event-card:hover {
    background: rgba(255,255,255,0.06);
    border-left-color: var(--gold);
}

.event-card.breaking { border-left-color: #ff3333; }
.event-card.weird { border-left-color: #9b59b6; }
.event-card.funny { border-left-color: #f39c12; }
.event-card.dark { border-left-color: #555; }
.event-card.serious { border-left-color: #3498db; }
.event-card.celebrity { border-left-color: #e91e8c; }
.event-card.crime { border-left-color: #c0392b; }
.event-card.disaster { border-left-color: #e74c3c; }
.event-card.religion { border-left-color: #d4a843; }
.event-card.racism { border-left-color: #ff6b35; }
.event-card.slang { border-left-color: #00d4aa; }

.event-tag {
    display: inline-block;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.event-tag.breaking { background: #ff3333; color: #fff; }
.event-tag.weird { background: #9b59b6; color: #fff; }
.event-tag.funny { background: #f39c12; color: #000; }
.event-tag.dark { background: #555; color: #fff; }
.event-tag.serious { background: #3498db; color: #fff; }
.event-tag.celebrity { background: #e91e8c; color: #fff; }
.event-tag.crime { background: #c0392b; color: #fff; }
.event-tag.disaster { background: #e74c3c; color: #fff; }
.event-tag.religion { background: #d4a843; color: #000; }
.event-tag.racism { background: #ff6b35; color: #fff; }
.event-tag.slang { background: #00d4aa; color: #000; }

.event-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2px;
}

.event-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.event-use-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 9px;
    padding: 3px 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-card:hover .event-use-btn { opacity: 1; }

/* ============================================
   NPC CARDS
   ============================================ */
.npc-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}

.npc-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212,168,67,0.2);
}

.npc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(212,168,67,0.3);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.editor-avatar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    position: relative;
    overflow: hidden;
}
.editor-avatar::after {
    content: 'RT';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 14px;
    font-weight: 900;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.circulation-avatar {
    background: linear-gradient(135deg, #6c3483, #8e44ad);
    position: relative;
    overflow: hidden;
}
.circulation-avatar::after {
    content: 'DC';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.reporter1-avatar {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    position: relative;
    overflow: hidden;
}
.reporter1-avatar::after {
    content: 'JM';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.reporter2-avatar {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    position: relative;
    overflow: hidden;
}
.reporter2-avatar::after {
    content: 'VN';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.reporter3-avatar {
    background: linear-gradient(135deg, #d4a843, #b7950b);
    position: relative;
    overflow: hidden;
}
.reporter3-avatar::after {
    content: 'BT';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.npc-info { flex: 1; min-width: 0; }

.npc-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.npc-role {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.npc-mood {
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.talk-btn {
    padding: 4px 10px;
    background: rgba(233,69,96,0.2);
    border: 1px solid rgba(233,69,96,0.3);
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.talk-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================
   CHAT AREA
   ============================================ */
.chat-area {
    padding: 10px;
}

.chat-msg {
    margin-bottom: 10px;
    max-width: 95%;
}

.chat-msg.npc { margin-right: auto; }
.chat-msg.player { margin-left: auto; text-align: right; }

.chat-sender {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.chat-msg.npc .chat-sender { color: var(--gold); }
.chat-msg.player .chat-sender { color: var(--accent); }

.chat-bubble {
    display: inline-block;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 2px;
    max-width: 100%;
    text-align: left;
}

.chat-msg.npc .chat-bubble {
    background: rgba(255,255,255,0.06);
    border-left: 2px solid var(--gold);
    color: var(--text-primary);
}

.chat-msg.player .chat-bubble {
    background: rgba(233,69,96,0.15);
    border-right: 2px solid var(--accent);
    color: var(--text-primary);
}

.chat-input-area {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-input-area select {
    width: 80px;
    padding: 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--gold);
}

#chat-send-btn {
    padding: 6px 12px;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

#chat-send-btn:hover {
    background: #ff5577;
}

/* ============================================
   CENTER PANEL - WRITING AREA
   ============================================ */
.writing-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

.writing-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.writing-meta {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.writing-meta label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.writing-meta input, .writing-meta select {
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.writing-meta input:focus, .writing-meta select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212,168,67,0.1);
}

.writing-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

#story-body {
    flex: 1;
    width: 100%;
    padding: 18px 20px;
    background: rgba(0,0,0,0.15);
    border: none;
    color: var(--text-primary);
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.8;
    resize: none;
    outline: none;
}

#story-body::placeholder {
    color: rgba(255,255,255,0.2);
    font-style: italic;
}

.word-count {
    padding: 6px 20px;
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.writing-actions {
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.action-btn {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.action-btn:hover {
    border-color: var(--gold);
    background: rgba(212,168,67,0.1);
    color: var(--gold);
}

.action-btn.publish-btn {
    background: linear-gradient(135deg, var(--accent), #c73654);
    border-color: var(--accent);
    color: #fff;
}

.action-btn.publish-btn:hover {
    background: linear-gradient(135deg, #ff5577, var(--accent));
    box-shadow: 0 2px 15px rgba(233,69,96,0.3);
}

.action-btn.review-btn {
    background: rgba(212,168,67,0.15);
    border-color: rgba(212,168,67,0.3);
    color: var(--gold);
}

.action-btn.review-btn:hover {
    background: rgba(212,168,67,0.25);
}

/* ============================================
   EDITOR REVIEW BOX
   ============================================ */
.review-box {
    margin: 0 18px 12px;
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212,168,67,0.2);
    border-left: 3px solid var(--gold);
}

.review-box.hidden { display: none; }

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 2px solid var(--gold);
    position: relative;
}

.review-avatar::after {
    content: 'RT';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 12px;
    font-weight: 900;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.review-header strong {
    color: var(--gold);
    font-size: 13px;
}

.review-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
}

.review-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    padding: 12px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 12px;
    border-left: 2px solid rgba(212,168,67,0.3);
}

.review-actions {
    display: flex;
    gap: 10px;
}

.review-actions .action-btn { flex: 1; padding: 8px; font-size: 11px; }

/* ============================================
   NEWSPAPER DISPLAY
   ============================================ */
.newspaper {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.newspaper-inner {
    background: var(--paper);
    color: var(--ink);
    padding: 24px 20px;
    min-height: 100%;
    box-shadow:
        0 2px 15px rgba(0,0,0,0.3),
        inset 0 0 60px rgba(139,110,60,0.05);
    position: relative;
    font-family: 'Merriweather', serif;
}

.newspaper-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(0,0,0,0.015) 28px,
            rgba(0,0,0,0.015) 29px
        );
    pointer-events: none;
}

.np-header {
    text-align: center;
    padding-bottom: 12px;
    position: relative;
}

.np-date {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--ink-light);
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.np-masthead {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 36px;
    color: var(--ink);
    line-height: 1;
    margin: 6px 0 4px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.np-motto {
    font-family: 'Special Elite', cursive;
    font-size: 10px;
    color: var(--ink-light);
    font-style: italic;
}

.np-edition {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--ink-light);
    text-transform: uppercase;
    margin-top: 4px;
    font-family: 'Roboto', sans-serif;
}

.np-divider-thick {
    height: 3px;
    background: var(--ink);
    margin: 8px 0;
    position: relative;
}

.np-divider-thick::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
}

.np-content {
    position: relative;
    z-index: 1;
}

.np-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-light);
    font-style: italic;
    font-size: 14px;
}

.np-placeholder p { margin-bottom: 8px; }

.np-headline {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.np-byline {
    font-size: 10px;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-family: 'Roboto', sans-serif;
}

.np-category-tag {
    display: inline-block;
    font-size: 8px;
    padding: 2px 8px;
    background: var(--ink);
    color: var(--paper);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.np-divider {
    height: 1px;
    background: var(--ink);
    margin: 10px 0;
    opacity: 0.3;
}

.np-body {
    font-family: 'Merriweather', serif;
    font-size: 11px;
    line-height: 1.7;
    color: var(--ink);
    column-count: 2;
    column-gap: 16px;
    column-rule: 1px solid rgba(0,0,0,0.1);
    text-align: justify;
    hyphens: auto;
}

.np-body p {
    margin-bottom: 8px;
    text-indent: 1.5em;
}

.np-body p:first-child {
    text-indent: 0;
}

.np-body p:first-child::first-letter {
    font-size: 2.8em;
    float: left;
    line-height: 0.8;
    padding-right: 6px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: var(--ink);
}

.np-footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.2);
    font-size: 8px;
    color: var(--ink-light);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

/* Newspaper mini version for publish modal */
.newspaper.mini {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.newspaper.mini .newspaper-inner { padding: 14px; }
.newspaper.mini .np-masthead { font-size: 22px; }
.newspaper.mini .np-headline { font-size: 16px; }
.newspaper.mini .np-body { font-size: 9px; column-count: 1; }

/* ============================================
   HISTORY LIST
   ============================================ */
.history-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--gold);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(255,255,255,0.06);
}

.history-day {
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.history-headline {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2px 0;
}

.history-stats {
    font-size: 10px;
    color: var(--text-secondary);
}

.history-stats span { margin-right: 12px; }

.history-rating {
    color: var(--gold);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
}

.stat-card {
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.stat-card-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stat-card-value {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden { display: none; }

.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

/* Publish Results */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.result-item {
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.result-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.result-value {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

.stars {
    font-size: 18px;
    color: var(--gold);
    letter-spacing: 2px;
}

.humor-meter {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.humor-fill {
    height: 100%;
    background: linear-gradient(90deg, #52b788, #f39c12, #e74c3c, #9b59b6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.reactions-area {
    padding: 12px;
    background: rgba(0,0,0,0.2);
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 150px;
    overflow-y: auto;
    border-left: 3px solid var(--accent);
}

.reaction-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.reaction-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.reaction-name {
    font-weight: 700;
    color: var(--gold);
    font-size: 11px;
}

/* NPC Dialog */
.npc-dialog-box {
    max-width: 500px;
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 14px;
}

.dialog-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, #2c3e50, #34495e);
    flex-shrink: 0;
}

.dialog-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.dialog-role {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.close-btn:hover { color: var(--accent); }

.dialog-body {
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 14px;
    padding: 10px;
    background: rgba(0,0,0,0.15);
}

.dialog-msg {
    margin-bottom: 10px;
}

.dialog-msg.npc-msg .dialog-msg-text {
    background: rgba(212,168,67,0.1);
    border-left: 2px solid var(--gold);
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}

.dialog-msg.player-msg {
    text-align: right;
}

.dialog-msg.player-msg .dialog-msg-text {
    display: inline-block;
    background: rgba(233,69,96,0.15);
    border-right: 2px solid var(--accent);
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: left;
}

.dialog-input-area {
    display: flex;
    gap: 8px;
}

.dialog-input-area input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.dialog-input-area input:focus {
    border-color: var(--gold);
}

#dialog-send {
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}

#dialog-send:hover { background: #ff5577; }

/* In-game menu */
.ingame-menu-box {
    max-width: 350px;
    text-align: center;
}

.ingame-menu-box .menu-btn {
    width: 100%;
    margin-bottom: 8px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 13px;
    max-width: 350px;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    border-left: 3px solid var(--gold);
}

.toast.success { border-left-color: var(--green-light); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: #3498db; }

.toast-title {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.toast.success .toast-title { color: var(--green-light); }
.toast.error .toast-title { color: var(--red); }
.toast.info .toast-title { color: #3498db; }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

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

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

.fade-in { animation: fadeIn 0.3s ease; }

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

@media (max-width: 900px) {
    .game-main {
        flex-direction: column;
    }
    .left-panel, .right-panel {
        width: 100%;
        max-height: 250px;
    }
    .center-panel { min-width: auto; }
}
