/* ============================================
   CALL THE COPS - AAA GAME STYLES
   happystoner5420 Games
   ============================================ */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto Condensed', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    user-select: none;
    -webkit-user-select: none;
}

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

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

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

/* ============================================
   MAIN MENU
   ============================================ */
#main-menu {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 30%, #16213e 60%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

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

.city-skyline {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background:
        linear-gradient(0deg, #0a0a0a 0%, transparent 100%),
        repeating-linear-gradient(90deg,
            transparent 0px, transparent 30px,
            #1a1a2e 30px, #1a1a2e 32px,
            transparent 32px, transparent 80px),
        repeating-linear-gradient(90deg,
            transparent 0px, transparent 15px,
            rgba(255,200,50,0.05) 15px, rgba(255,200,50,0.05) 17px,
            transparent 17px, transparent 50px);
    filter: blur(1px);
}

.street-lights {
    position: absolute;
    bottom: 10%;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 80px,
        rgba(255, 150, 50, 0.6) 80px, rgba(255, 150, 50, 0.6) 85px,
        transparent 85px, transparent 160px);
    box-shadow: 0 0 30px rgba(255, 150, 50, 0.3);
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 95% { opacity: 1; }
    96% { opacity: 0.4; }
    97% { opacity: 1; }
    98% { opacity: 0.6; }
    100% { opacity: 1; }
}

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

.game-title-container {
    text-align: center;
    margin-bottom: 10px;
}

.game-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    color: #ff3333;
    text-shadow:
        0 0 10px rgba(255, 50, 50, 0.8),
        0 0 30px rgba(255, 50, 50, 0.4),
        0 0 60px rgba(255, 50, 50, 0.2),
        3px 3px 0 #800000;
    letter-spacing: 4px;
    animation: titlePulse 2s infinite alternate;
}

@keyframes titlePulse {
    from { text-shadow: 0 0 10px rgba(255,50,50,0.8), 0 0 30px rgba(255,50,50,0.4), 3px 3px 0 #800000; }
    to { text-shadow: 0 0 20px rgba(255,50,50,1), 0 0 60px rgba(255,50,50,0.6), 0 0 100px rgba(255,0,0,0.3), 3px 3px 0 #800000; }
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch1 3s infinite;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch2 3s infinite;
}

@keyframes glitch1 {
    0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    92% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
    94% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -1px); }
    96% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 1px); }
}

@keyframes glitch2 {
    0%, 88%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    90% { clip-path: inset(40% 0 30% 0); transform: translate(2px, -2px); }
    93% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 1px); }
    96% { clip-path: inset(5% 0 80% 0); transform: translate(1px, 2px); }
}

.game-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: clamp(14px, 2.5vw, 24px);
    color: #ff8800;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 5px;
}

.menu-phone-container {
    width: 150px;
    height: 200px;
    margin: 10px 0;
    filter: drop-shadow(0 0 20px rgba(255, 100, 0, 0.3));
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    max-width: 90vw;
}

.menu-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 14px 30px;
    border: 2px solid rgba(255, 100, 50, 0.6);
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 40, 0.95) 100%);
    color: #ff8855;
    cursor: pointer;
    transition: all 0.2s ease;
    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(255, 100, 50, 0.1), transparent);
    transition: left 0.4s ease;
}

.menu-btn:hover {
    background: linear-gradient(180deg, rgba(255, 100, 50, 0.2) 0%, rgba(255, 50, 30, 0.15) 100%);
    border-color: #ff5533;
    color: #ffaa77;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 80, 40, 0.3), inset 0 0 20px rgba(255, 80, 40, 0.05);
}

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

.menu-btn:active {
    transform: scale(0.98);
}

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

.exit-btn {
    border-color: rgba(150, 50, 50, 0.6);
    color: #cc5555;
}

.exit-btn:hover {
    border-color: #ff3333;
    color: #ff6666;
    background: linear-gradient(180deg, rgba(150, 30, 30, 0.2) 0%, rgba(100, 20, 20, 0.15) 100%);
    box-shadow: 0 0 20px rgba(255, 40, 40, 0.3);
}

.menu-footer {
    margin-top: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* ============================================
   HOW TO PLAY & CREDITS OVERLAY
   ============================================ */
.overlay-panel {
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.97) 0%, rgba(10, 10, 25, 0.99) 100%);
    border: 1px solid rgba(255, 100, 50, 0.3);
    padding: 30px 40px;
    max-width: 700px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 80, 40, 0.03);
}

.panel-title {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #ff5533;
    letter-spacing: 6px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 80, 40, 0.5);
}

.instructions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.instruction-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 100, 50, 0.15);
    padding: 20px 15px;
    text-align: center;
    transition: border-color 0.3s;
}

.instruction-block:hover {
    border-color: rgba(255, 100, 50, 0.4);
}

.instruction-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.instruction-block h3 {
    font-family: 'Oswald', sans-serif;
    color: #ff8855;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.instruction-block p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Credits */
.credits-panel {
    max-width: 500px;
}

.credits-content {
    margin-bottom: 25px;
}

.credits-logo {
    font-size: 30px;
    color: #ffd700;
    margin-bottom: 10px;
}

.credits-studio {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #ff8855;
    letter-spacing: 3px;
}

.credits-presents {
    font-size: 12px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.4);
    margin: 8px 0;
}

.credits-game-name {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #ff3333;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
}

.credits-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 100, 50, 0.5), transparent);
    margin: 20px auto;
}

.credits-role {
    margin: 15px 0;
}

.role-title {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.role-name {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    color: #ff8855;
    letter-spacing: 1px;
}

.credits-thanks {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

.credits-year {
    font-size: 14px;
    color: rgba(255, 200, 100, 0.5);
    margin-top: 5px;
}

/* ============================================
   GAME SCREEN — TWO COLUMN LAYOUT
   ============================================ */
#game-screen {
    flex-direction: column;
    background: #080810;
}

#game-screen.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

/* Game body below HUD: payphone left, content right */
#game-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 0;
}

/* LEFT COLUMN — Giant Payphone */
#payphone-column {
    width: 42%;
    min-width: 260px;
    max-width: 520px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #06060e 0%, #0a0a14 100%);
    border-right: 1px solid rgba(255,100,50,0.12);
    overflow: hidden;
    padding: 6px;
    position: relative;
}

#payphone-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#payphone-svg-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* RIGHT COLUMN — Situation + Phone */
#situation-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* VISUAL NOVEL SITUATION PANEL */
#situation-panel {
    flex: 0 0 auto;
    max-height: 320px;
    background:
        linear-gradient(180deg, rgba(6,6,16,0.98) 0%, rgba(8,8,20,0.97) 100%);
    border-bottom: 1px solid rgba(255,100,50,0.18);
    padding: 8px 12px 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* AAA Scene Container */
#scene-container {
    width: 100%;
    height: 180px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.6),
        inset 0 0 30px rgba(0,0,0,0.4),
        0 0 1px rgba(255,200,100,0.2);
    border: 1px solid rgba(255,100,50,0.15);
    position: relative;
}

#scene-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Film grain overlay effect */
#scene-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Vignette effect */
#scene-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Decorative corner accents on situation panel */
#situation-panel::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px;
    width: 22px; height: 22px;
    border-top: 2px solid rgba(255,120,40,0.45);
    border-left: 2px solid rgba(255,120,40,0.45);
    pointer-events: none;
}
#situation-panel::after {
    content: '';
    position: absolute;
    bottom: 18px; right: 10px;
    width: 22px; height: 22px;
    border-bottom: 2px solid rgba(255,120,40,0.45);
    border-right: 2px solid rgba(255,120,40,0.45);
    pointer-events: none;
}

.situation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,100,50,0.16);
}

.sit-icon {
    font-size: 17px;
    opacity: 0.65;
}

.sit-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 6px;
    color: rgba(255,140,40,0.65);
    text-transform: uppercase;
}

.situation-text {
    font-family: 'Special Elite', cursive;
    font-size: 14px;
    line-height: 1.6;
    color: #ddd6c4;
    text-shadow: 0 0 24px rgba(200,160,80,0.07);
    flex: 1;
    overflow-y: auto;
    transition: opacity 0.5s;
}

.situation-text::-webkit-scrollbar { width: 4px; }
.situation-text::-webkit-scrollbar-track { background: transparent; }
.situation-text::-webkit-scrollbar-thumb { background: rgba(255,100,50,0.3); border-radius: 2px; }

/* PHONE PANEL — dialpad + dialog */
#phone-panel {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, rgba(10,10,22,0.98) 0%, rgba(8,8,18,0.99) 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#phone-controls-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 6px 15px;
    overflow-y: auto;
}

/* PHONE STEP BUTTONS (Pickup, Insert Coin, Coin Return) */
#phone-step-buttons {
    display: flex;
    gap: 5px;
    width: 240px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.phone-step-btn {
    flex: 1;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 4px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 4px;
    text-transform: uppercase;
    position: relative;
}

.pickup-btn {
    background: linear-gradient(180deg, #2a4a6a 0%, #1a3a5a 50%, #0a2a4a 100%);
    color: #88ccff;
    box-shadow: 0 2px 6px rgba(0, 80, 160, 0.4);
    border: 1px solid rgba(100, 180, 255, 0.3);
}

.pickup-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #3a5a7a 0%, #2a4a6a 50%, #1a3a5a 100%);
    box-shadow: 0 2px 10px rgba(50, 150, 255, 0.5);
}

.pickup-btn.active {
    background: linear-gradient(180deg, #228B22 0%, #006400 100%);
    color: #aaffaa;
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.4);
    border-color: rgba(100, 255, 150, 0.5);
}

.coin-btn {
    background: linear-gradient(180deg, #6a5a2a 0%, #5a4a1a 50%, #4a3a0a 100%);
    color: #ffdd88;
    box-shadow: 0 2px 6px rgba(160, 120, 0, 0.4);
    border: 1px solid rgba(255, 200, 100, 0.3);
}

.coin-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #7a6a3a 0%, #6a5a2a 50%, #5a4a1a 100%);
    box-shadow: 0 2px 10px rgba(255, 200, 50, 0.5);
}

.coin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.coin-count {
    display: block;
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

.return-btn {
    background: linear-gradient(180deg, #5a3a3a 0%, #4a2a2a 50%, #3a1a1a 100%);
    color: #ffaaaa;
    box-shadow: 0 2px 6px rgba(160, 50, 50, 0.4);
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.return-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #6a4a4a 0%, #5a3a3a 50%, #4a2a2a 100%);
    box-shadow: 0 2px 10px rgba(255, 80, 80, 0.5);
}

.return-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Phone Book Button */
.phonebook-btn {
    background: linear-gradient(180deg, #2a4a3a 0%, #1a3a2a 50%, #0a2a1a 100%);
    color: #88ffcc;
    box-shadow: 0 2px 6px rgba(0, 160, 100, 0.4);
    border: 1px solid rgba(100, 255, 180, 0.3);
}

.phonebook-btn:hover {
    background: linear-gradient(180deg, #3a5a4a 0%, #2a4a3a 50%, #1a3a2a 100%);
    box-shadow: 0 2px 10px rgba(50, 255, 150, 0.5);
}

/* Phone Book List Styles */
.phonebook-list {
    padding: 5px;
}

.phonebook-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffdd66;
    text-align: center;
    letter-spacing: 2px;
    padding: 8px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255, 200, 100, 0.3);
}

.phonebook-entry {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    align-items: center;
}

.phonebook-entry:hover {
    background: rgba(255, 200, 100, 0.1);
    border-color: rgba(255, 200, 100, 0.3);
}

.pb-name {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.pb-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #33ff33;
    text-shadow: 0 0 5px rgba(50, 255, 50, 0.5);
    background: rgba(0, 50, 0, 0.5);
    padding: 3px 8px;
    border-radius: 3px;
}

.pb-cost {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.pb-cost.free {
    background: rgba(0, 200, 50, 0.2);
    color: #66ff66;
    border: 1px solid rgba(0, 255, 100, 0.3);
}

.pb-cost.paid {
    background: rgba(200, 150, 0, 0.2);
    color: #ffcc66;
    border: 1px solid rgba(255, 200, 100, 0.3);
}

.pb-desc {
    grid-column: 1 / -1;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* --- HUD --- */
#game-hud {
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.98) 0%, rgba(15, 15, 30, 0.95) 100%);
    border-bottom: 2px solid rgba(255, 100, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    flex-shrink: 0;
}

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

/* Quarters display in HUD */
.quarters-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 3px;
}

.quarters-stat .hud-label {
    color: rgba(255, 215, 0, 0.6);
}

.quarters-value {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.case-stat {
    gap: 6px;
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 180, 120, 0.18);
}

.conviction-stat {
    background: rgba(200, 150, 40, 0.08);
    border-color: rgba(240, 190, 90, 0.25);
}

.innocent-stat {
    background: rgba(150, 180, 210, 0.08);
    border-color: rgba(185, 210, 235, 0.22);
}

.case-value {
    font-size: 18px;
    color: #f2d59b;
}

.innocent-stat .case-value {
    color: #cfe4f7;
}

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

.hud-label {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.hud-value {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ff8855;
}

.hud-max {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.hp-bar-container, .false-meter-container {
    width: 120px;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.hp-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00cc44, #44ff66);
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(0, 200, 50, 0.4);
}

.false-meter {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff8800, #ff3300);
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(255, 50, 0, 0.4);
}

.hud-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 100, 50, 0.3);
    color: #ff8855;
    cursor: pointer;
    transition: all 0.2s;
}

.hud-btn:hover {
    background: rgba(255, 100, 50, 0.15);
    border-color: #ff5533;
}

/* #event-description is now .situation-text in #situation-panel (visual novel) */
#event-description.situation-text {
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    line-height: 1.85;
    color: #ddd6c4;
}

/* --- PHONE CONTROLS INSIDE #phone-controls-area --- */
#phone-display {
    width: 240px;
    height: 42px;
    background: #0c180c;
    border: 2px solid #1a2a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    color: #33ff33;
    text-shadow: 0 0 10px rgba(50, 255, 50, 0.6);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7),
                0 0 6px rgba(50, 200, 50, 0.1);
    border-radius: 3px;
    flex-shrink: 0;
}

#dialpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 240px;
    flex-shrink: 0;
}

.dial-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    padding: 12px 8px;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 50%, #1a1a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dial-btn:hover {
    background: linear-gradient(180deg, #4a4a5a 0%, #3a3a4a 50%, #2a2a3a 100%);
    border-color: rgba(255, 150, 50, 0.3);
}

.dial-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 100%);
}

.dial-letters {
    display: block;
    font-size: 8px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-top: 2px;
}

#phone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 240px;
    flex-shrink: 0;
}

.phone-action-btn {
    flex: 1;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.call-btn {
    background: linear-gradient(180deg, #228B22 0%, #006400 100%);
    color: #aaffaa;
    box-shadow: 0 2px 8px rgba(0, 100, 0, 0.4);
}

.call-btn:hover {
    background: linear-gradient(180deg, #2aaa2a 0%, #008800 100%);
    box-shadow: 0 2px 12px rgba(0, 150, 0, 0.6);
}

.hangup-btn {
    background: linear-gradient(180deg, #aa2222 0%, #881111 100%);
    color: #ffaaaa;
    box-shadow: 0 2px 8px rgba(100, 0, 0, 0.4);
}

.hangup-btn:hover {
    background: linear-gradient(180deg, #cc3333 0%, #aa1111 100%);
    box-shadow: 0 2px 12px rgba(150, 0, 0, 0.6);
}

.phone-action-btn.return-btn {
    background: linear-gradient(180deg, #5a4a2a 0%, #4a3a1a 100%);
    color: #ffdd88;
    box-shadow: 0 2px 8px rgba(100, 80, 0, 0.4);
    flex: 1 1 100%;
    font-size: 9px;
    padding: 4px 8px;
}

.phone-action-btn.return-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #6a5a3a 0%, #5a4a2a 100%);
    box-shadow: 0 2px 12px rgba(150, 120, 0, 0.6);
}

.phone-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- 911 DIALOG PANEL: fills #phone-panel when active --- */
#dialog-panel {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 22, 0.99) 0%, rgba(5, 5, 16, 0.99) 100%);
    border: none;
    border-top: 2px solid rgba(255, 50, 50, 0.5);
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 40px rgba(200, 0, 0, 0.08);
}

#dialog-panel.hidden {
    display: none;
}

.dialog-header {
    background: linear-gradient(90deg, #cc0000, #ff0000, #cc0000);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: pulseRed 1.5s infinite alternate;
    flex-shrink: 0;
}

@keyframes pulseRed {
    from { background: linear-gradient(90deg, #aa0000, #cc0000, #aa0000); }
    to { background: linear-gradient(90deg, #cc0000, #ff0000, #cc0000); }
}

.dialog-911 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dialog-status {
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    animation: blink 1s infinite;
}

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

#dialog-messages {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.dialog-msg {
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.4;
    animation: msgFade 0.3s ease;
    max-width: 95%;
}

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

.msg-dispatch {
    background: rgba(0, 50, 150, 0.3);
    border-left: 3px solid #3388ff;
    color: #aaccff;
    align-self: flex-start;
}

.msg-player {
    background: rgba(0, 100, 50, 0.3);
    border-right: 3px solid #33cc66;
    color: #aaffcc;
    align-self: flex-end;
    text-align: right;
}

.msg-system {
    background: rgba(150, 50, 0, 0.3);
    border-left: 2px solid #ff8833;
    color: #ffcc88;
    align-self: center;
    text-align: center;
    font-style: italic;
    font-size: 10px;
}

#dialog-choices {
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 180px;
    overflow-y: auto;
    flex-shrink: 0;
}

.dialog-choice {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 100, 50, 0.2);
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    line-height: 1.3;
}

.dialog-choice:hover {
    background: rgba(255, 100, 50, 0.15);
    border-color: rgba(255, 100, 50, 0.5);
    color: #ffaa77;
}

/* All choices look the same - no hints for player */

/* ============================================
   BATTLE SCREEN
   ============================================ */
#battle-screen {
    background: radial-gradient(ellipse at center, #2a1a1a 0%, #1a0a0a 50%, #0a0505 100%);
    position: relative;
}

.battle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.battle-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.battle-header {
    text-align: center;
}

.battle-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    color: #ff3333;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(255, 50, 50, 0.6);
    animation: battlePulse 0.5s infinite alternate;
}

@keyframes battlePulse {
    from { transform: scale(1); }
    to { transform: scale(1.02); }
}

.battle-arena {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 50, 50, 0.2);
}

.fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.fighter-sprite {
    width: 120px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fighter-info {
    text-align: center;
    width: 100%;
}

.fighter-name {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    color: #ff8855;
}

.fighter-hp-bar {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 5px 0;
    overflow: hidden;
}

.fighter-hp {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00cc44, #44ff66);
    transition: width 0.5s ease;
}

.enemy-hp {
    background: linear-gradient(90deg, #cc0000, #ff4444);
}

.fighter-hp-text {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.battle-vs {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 50, 50, 0.5);
}

.battle-log {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    max-height: 100px;
    overflow-y: auto;
    font-family: 'Special Elite', cursive;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
}

.battle-log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-damage { color: #ff6644; }
.log-heal { color: #44ff66; }
.log-defend { color: #4488ff; }
.log-special { color: #ffcc00; }
.log-miss { color: #888; }

.battle-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.battle-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 10px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.attack-btn {
    background: linear-gradient(180deg, rgba(200, 50, 50, 0.3) 0%, rgba(150, 30, 30, 0.3) 100%);
    border-color: rgba(255, 80, 80, 0.5);
    color: #ff8888;
}

.attack-btn:hover {
    background: linear-gradient(180deg, rgba(255, 50, 50, 0.4) 0%, rgba(200, 30, 30, 0.4) 100%);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.3);
}

.defend-btn {
    background: linear-gradient(180deg, rgba(50, 100, 200, 0.3) 0%, rgba(30, 70, 150, 0.3) 100%);
    border-color: rgba(80, 130, 255, 0.5);
    color: #88aaff;
}

.defend-btn:hover {
    background: linear-gradient(180deg, rgba(50, 100, 255, 0.4) 0%, rgba(30, 70, 200, 0.4) 100%);
    box-shadow: 0 0 15px rgba(50, 100, 255, 0.3);
}

.special-btn {
    background: linear-gradient(180deg, rgba(200, 180, 50, 0.3) 0%, rgba(150, 130, 30, 0.3) 100%);
    border-color: rgba(255, 220, 80, 0.5);
    color: #ffdd88;
}

.special-btn:hover {
    background: linear-gradient(180deg, rgba(255, 220, 50, 0.4) 0%, rgba(200, 180, 30, 0.4) 100%);
    box-shadow: 0 0 15px rgba(255, 220, 50, 0.3);
}

.item-btn {
    background: linear-gradient(180deg, rgba(50, 200, 100, 0.3) 0%, rgba(30, 150, 70, 0.3) 100%);
    border-color: rgba(80, 255, 130, 0.5);
    color: #88ffaa;
}

.item-btn:hover {
    background: linear-gradient(180deg, rgba(50, 255, 100, 0.4) 0%, rgba(30, 200, 70, 0.4) 100%);
    box-shadow: 0 0 15px rgba(50, 255, 100, 0.3);
}

.battle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   NEWSPAPER SCREEN
   ============================================ */
#newspaper-screen {
    background: rgba(0, 0, 0, 0.85);
    z-index: 300;
}

.newspaper-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-height: 90vh;
}

/* ============================================
   AAA NEWSPAPER STYLES
   ============================================ */
.newspaper {
    width: 700px;
    max-width: 95vw;
    max-height: 76vh;
    overflow-y: auto;
    /* Aged newsprint look */
    background:
        repeating-linear-gradient(0deg, transparent 0px, transparent 23px, rgba(0,0,0,0.025) 23px, rgba(0,0,0,0.025) 24px),
        linear-gradient(160deg, #f2ead2 0%, #ede3c4 40%, #e8dbb8 70%, #f0e8d0 100%);
    color: #1a1a1a;
    padding: 28px 32px 32px;
    box-shadow:
        8px 8px 32px rgba(0,0,0,0.6),
        2px 2px 0 rgba(0,0,0,0.15),
        inset 0 0 80px rgba(139,110,60,0.08);
    position: relative;
    border: 1px solid #c8b888;
}

/* Paper edge fold effect */
.newspaper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(180,150,80,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(139,110,50,0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Top thick rule border */
.newspaper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
}

.newspaper-header {
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
    border-bottom: 4px double #1a1a1a;
    margin-bottom: 6px;
}

/* Masthead top meta bar */
.newspaper-meta-bar {
    display: flex;
    justify-content: space-between;
    font-family: 'Special Elite', cursive;
    font-size: 9px;
    color: #555;
    letter-spacing: 2px;
    border-bottom: 1px solid #888;
    border-top: 1px solid #888;
    padding: 3px 0;
    margin-bottom: 6px;
}

.newspaper-date {
    font-family: 'Special Elite', cursive;
    font-size: 10px;
    color: #555;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.newspaper-title {
    font-family: 'Special Elite', cursive;
    font-size: 48px;
    color: #0a0a0a;
    letter-spacing: 2px;
    line-height: 1;
    margin: 4px 0 2px;
    text-shadow:
        1px 1px 0 rgba(0,0,0,0.12),
        -1px 0 0 rgba(0,0,0,0.05);
}

.newspaper-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: 9px;
    letter-spacing: 5px;
    color: #666;
    text-transform: uppercase;
    border-top: 1px solid #888;
    padding-top: 4px;
    margin-top: 4px;
}

.newspaper-edition {
    font-family: 'Special Elite', cursive;
    font-size: 9px;
    color: #888;
    letter-spacing: 2px;
    margin-top: 2px;
}

.newspaper-divider {
    height: 1px;
    background: #333;
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.newspaper-divider.thick {
    border: none;
    height: 5px;
    background: none;
    border-top: 3px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    margin: 10px 0 12px;
}

.newspaper-body {
    position: relative;
    z-index: 1;
    column-rule: 1px solid rgba(0,0,0,0.15);
}

/* Photo placeholder box (replaces people SVG art) */
.news-photo-box {
    width: 100%;
    height: 85px;
    background:
        repeating-linear-gradient(45deg, #d8ceb0, #d8ceb0 2px, #e0d6b8 2px, #e0d6b8 8px);
    border: 1px solid #b0a080;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    color: #8a7a60;
}

.news-photo-box-label {
    font-family: 'Special Elite', cursive;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7a6a50;
}

.news-photo-box-icon {
    font-size: 22px;
    opacity: 0.45;
}

.news-article {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.18);
    break-inside: avoid;
}

.news-headline {
    font-family: 'Special Elite', cursive;
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.25;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
}

.news-deck {
    font-family: 'Special Elite', cursive;
    font-size: 11px;
    color: #333;
    font-style: italic;
    margin-bottom: 6px;
    line-height: 1.5;
}

.news-subheadline {
    font-family: 'Special Elite', cursive;
    font-size: 11px;
    color: #555;
    font-style: italic;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.news-byline {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dotted #aaa;
}

.news-body {
    font-family: 'Special Elite', cursive;
    font-size: 13px;
    color: #222;
    line-height: 1.75;
    column-count: 2;
    column-gap: 22px;
    column-rule: 1px solid rgba(0,0,0,0.12);
    text-align: justify;
    hyphens: auto;
}

.news-body.single-column {
    column-count: 1;
}

/* Drop cap for lead story */
.news-body.lead-story::first-letter {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 0.8;
    float: left;
    margin: 0 6px 0 0;
    color: #1a1a1a;
    font-family: 'Special Elite', cursive;
}

.news-outcome {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 3px 10px;
    margin-top: 10px;
    display: inline-block;
    border-left: 3px solid;
}

.outcome-arrested {
    background: rgba(30,80,30,0.12);
    color: #1a4a1a;
    border-color: #2a6a2a;
}

.outcome-escaped {
    background: rgba(80,20,20,0.12);
    color: #4a1a1a;
    border-color: #882222;
}

.outcome-false {
    background: rgba(70,60,10,0.12);
    color: #3a3010;
    border-color: #776620;
}

.no-news {
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    color: #888;
    text-align: center;
    padding: 50px 20px;
    font-style: italic;
    border: 1px dashed #c0b090;
    margin: 20px 0;
}

.newspaper-close {
    background: rgba(30, 30, 50, 0.95) !important;
}

/* ============================================
   GAME OVER SCREEN
   ============================================ */
#gameover-screen {
    background: radial-gradient(ellipse at center, #2a0a0a 0%, #1a0505 50%, #0a0000 100%);
}

.endgame-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    position: relative;
}

.siren-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: sirenFlash 1s infinite;
}

@keyframes sirenFlash {
    0%, 100% { background: rgba(0, 0, 255, 0.05); }
    50% { background: rgba(255, 0, 0, 0.05); }
}

.endgame-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    letter-spacing: 8px;
}

.gameover-title {
    color: #ff2222;
    text-shadow: 0 0 20px rgba(255, 30, 30, 0.8), 0 0 60px rgba(255, 0, 0, 0.3);
    animation: gameoverPulse 1s infinite alternate;
}

@keyframes gameoverPulse {
    from { opacity: 0.7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.win-title {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 200, 0, 0.3);
    animation: winPulse 1s infinite alternate;
}

@keyframes winPulse {
    from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    to { text-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 200, 0, 0.5); }
}

.endgame-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 500px;
}

.endgame-stats {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 100, 50, 0.3);
    padding: 15px 25px;
    text-align: center;
    min-width: 120px;
}

.stat-box.gold {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.stat-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ff8855;
}

.stat-box.gold .stat-value {
    color: #ffd700;
}

.endgame-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.gold-btn {
    border-color: rgba(255, 215, 0, 0.6) !important;
    color: #ffd700 !important;
}

.gold-btn:hover {
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
}

/* ============================================
   WIN SCREEN
   ============================================ */
#win-screen {
    background: radial-gradient(ellipse at center, #2a2a0a 0%, #1a1a05 50%, #0a0a00 100%);
}

.badge-container {
    width: 150px;
    height: 150px;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0.5; }
}

/* ============================================
   DAMAGE FLASH & EFFECTS
   ============================================ */
.damage-flash {
    animation: damageFlash 0.3s ease;
}

@keyframes damageFlash {
    0%, 100% { filter: none; }
    50% { filter: brightness(3) saturate(0); }
}

.shake {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 100, 50, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 100, 50, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    #payphone-area {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    #payphone-svg-container {
        width: 100px;
        height: 140px;
    }

    #dialog-panel {
        width: 95%;
        right: 2.5%;
        top: 65px;
    }

    .battle-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructions-content {
        grid-template-columns: 1fr;
    }

    .endgame-stats {
        flex-direction: column;
        gap: 10px;
    }

    .news-body {
        column-count: 1;
    }
}
