/* ============================================
   PRANK CALLER DELUXE - AAA Quality Styles
   happystoner5420 Games
   ============================================ */

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

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

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

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

/* === MAIN MENU === */
.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(120, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 50, 120, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(80, 0, 80, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a1a 0%, #1a0a0a 50%, #0a0a1a 100%);
    animation: menuBgPulse 8s ease-in-out infinite;
}

@keyframes menuBgPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

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

.title-container {
    margin-bottom: 50px;
}

.game-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 52px;
    color: #ff3333;
    text-shadow: 
        0 0 10px rgba(255, 50, 50, 0.8),
        0 0 30px rgba(255, 50, 50, 0.5),
        0 0 60px rgba(255, 50, 50, 0.3),
        4px 4px 0 #660000;
    letter-spacing: 6px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(255,50,50,0.8), 0 0 30px rgba(255,50,50,0.5), 4px 4px 0 #660000; }
    100% { text-shadow: 0 0 20px rgba(255,50,50,1), 0 0 50px rgba(255,50,50,0.8), 0 0 80px rgba(255,50,50,0.4), 4px 4px 0 #660000; }
}

.game-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 36px;
    color: #ffcc00;
    text-shadow: 
        0 0 10px rgba(255, 200, 0, 0.8),
        3px 3px 0 #665500;
    margin-top: 10px;
    letter-spacing: 12px;
}

.tagline {
    font-family: 'Special Elite', cursive;
    font-size: 18px;
    color: #aaa;
    margin-top: 20px;
    font-style: italic;
}

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

.menu-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    padding: 18px 50px;
    border: 3px solid #ff3333;
    background: linear-gradient(180deg, rgba(255,50,50,0.2) 0%, rgba(150,0,0,0.3) 100%);
    color: #ff6666;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    min-width: 350px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.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 {
    background: linear-gradient(180deg, rgba(255,80,80,0.4) 0%, rgba(200,0,0,0.5) 100%);
    color: #ffffff;
    border-color: #ff6666;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,50,50,0.5), inset 0 0 20px rgba(255,50,50,0.1);
}

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

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

.exit-btn {
    border-color: #666;
    color: #999;
    background: linear-gradient(180deg, rgba(100,100,100,0.2) 0%, rgba(50,50,50,0.3) 100%);
    margin-top: 20px;
}

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

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

.menu-footer {
    color: #555;
    font-size: 12px;
    font-family: 'Special Elite', cursive;
}

/* === OVERLAY SCREENS (How to Play / Credits) === */
.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
}

.overlay-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #ff3333;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(255,50,50,0.3), inset 0 0 30px rgba(0,0,0,0.5);
}

.overlay-content h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    color: #ff3333;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255,50,50,0.5);
}

/* === HOW TO PLAY === */
.instructions {
    margin-bottom: 30px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 4px solid #ff3333;
}

.step-num {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    color: #ffcc00;
    min-width: 40px;
    text-align: center;
}

.instruction-step p {
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
}

.instruction-step strong {
    color: #ff6666;
}

.tips-box {
    background: rgba(255,200,0,0.1);
    border: 1px solid rgba(255,200,0,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.tips-box h3 {
    font-family: 'Press Start 2P', monospace;
    color: #ffcc00;
    font-size: 14px;
    margin-bottom: 15px;
}

.tips-box ul {
    list-style: none;
    padding: 0;
}

.tips-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #ddd;
    font-size: 14px;
}

.tips-box li::before {
    content: '>';
    position: absolute;
    left: 5px;
    color: #ffcc00;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
}

/* === CREDITS === */
.credits-content {
    text-align: center;
}

.credit-section {
    margin-bottom: 25px;
}

.credit-section h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #ffcc00;
    margin-bottom: 10px;
}

.credit-section h4 {
    font-size: 14px;
    color: #ff6666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.credit-section p {
    color: #ccc;
    font-size: 16px;
}

.special-thanks {
    border-top: 1px solid rgba(255,50,50,0.3);
    border-bottom: 1px solid rgba(255,50,50,0.3);
    padding: 20px 0;
}

.disclaimer {
    font-size: 11px !important;
    color: #666 !important;
    font-style: italic;
    margin-top: 20px;
}

/* === GAME SCREEN === */
#game-screen {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    padding-top: 60px;
    overflow-y: auto;
}

.game-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(40,20,10,0.8) 0%, rgba(10,5,2,1) 100%);
    z-index: 0;
}

#game-screen > * {
    position: relative;
    z-index: 1;
}

/* === RETURN TO MENU BUTTON === */
.return-menu-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #ff3333;
    color: #ff6666;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.return-menu-btn:hover {
    background: rgba(255,50,50,0.3);
    color: #fff;
}

/* === SCORE DISPLAY === */
.score-display {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.8);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
}

.score-label {
    color: #ffcc00;
}

.score-value {
    color: #fff;
    font-size: 18px;
    min-width: 60px;
    text-align: right;
}

.chaos-meter-label {
    color: #ff3333;
    margin-left: 15px;
}

.chaos-meter {
    width: 100px;
    height: 14px;
    background: #222;
    border: 1px solid #555;
    border-radius: 7px;
    overflow: hidden;
}

.chaos-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    border-radius: 7px;
    transition: width 0.5s ease;
}

/* === PHONE CONTAINER === */
.phone-container {
    width: 340px;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

#phone-svg-container {
    width: 100%;
    max-width: 350px;
}

#phone-svg-container svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
}

/* === PHONE DISPLAY === */
.phone-display {
    width: 280px;
    height: 50px;
    background: #0a2a0a;
    border: 3px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8), 0 0 10px rgba(0,255,0,0.1);
    margin-bottom: 5px;
}

.display-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0,255,0,0.8);
    letter-spacing: 4px;
    animation: displayFlicker 3s ease-in-out infinite;
}

@keyframes displayFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* === DIAL PAD === */
.dial-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 280px;
    margin-bottom: 10px;
}

.dial-btn {
    width: 80px;
    height: 65px;
    border-radius: 12px;
    border: 2px solid #555;
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 50%, #1a1a1a 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    font-family: 'Roboto', sans-serif;
}

.dial-btn:hover {
    background: linear-gradient(180deg, #5a5a5a 0%, #3a3a3a 50%, #2a2a2a 100%);
    border-color: #ff6666;
    box-shadow: 
        0 4px 15px rgba(255,50,50,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.dial-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.5),
        inset 0 2px 5px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.dial-letters {
    font-size: 9px;
    color: #888;
    letter-spacing: 2px;
    font-weight: 400;
    margin-top: -2px;
}

/* === PHONE ACTION BUTTONS === */
.phone-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 300px;
}

.action-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 12px 16px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.pickup-btn {
    background: linear-gradient(180deg, #1a5a1a, #0a3a0a);
    border-color: #00cc00;
    color: #00ff00;
    animation: pickupPulse 2s ease-in-out infinite;
}

@keyframes pickupPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0,255,0,0.3); }
    50% { box-shadow: 0 0 25px rgba(0,255,0,0.6); }
}

.pickup-btn:hover {
    background: linear-gradient(180deg, #2a7a2a, #1a5a1a);
    transform: scale(1.05);
}

.call-btn {
    background: linear-gradient(180deg, #1a5a1a, #0a3a0a);
    border-color: #00cc00;
    color: #00ff00;
}

.call-btn:hover {
    background: linear-gradient(180deg, #2a7a2a, #1a5a1a);
    box-shadow: 0 0 15px rgba(0,255,0,0.5);
}

.hangup-btn {
    background: linear-gradient(180deg, #5a1a1a, #3a0a0a);
    border-color: #cc0000;
    color: #ff3333;
}

.hangup-btn:hover {
    background: linear-gradient(180deg, #7a2a2a, #5a1a1a);
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
}

.clear-btn {
    background: linear-gradient(180deg, #4a4a1a, #3a3a0a);
    border-color: #cccc00;
    color: #ffff33;
}

.clear-btn:hover {
    background: linear-gradient(180deg, #5a5a2a, #4a4a1a);
}

.phonebook-btn {
    background: linear-gradient(180deg, #1a3a5a, #0a2a4a);
    border-color: #3399ff;
    color: #66bbff;
}

.phonebook-btn:hover {
    background: linear-gradient(180deg, #2a4a6a, #1a3a5a);
    box-shadow: 0 0 15px rgba(50,150,255,0.5);
}

/* === PHONEBOOK PANEL === */
.phonebook-panel {
    position: fixed;
    left: -400px;
    top: 60px;
    width: 360px;
    height: calc(100vh - 80px);
    background: linear-gradient(180deg, #1a1a2e 0%, #0f1a2e 100%);
    border: 2px solid #3399ff;
    border-radius: 0 15px 15px 0;
    z-index: 50;
    transition: left 0.4s ease;
    display: none;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0,0,0,0.8);
}

.phonebook-panel.open {
    left: 0;
    display: flex;
}

.phonebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(50,150,255,0.3);
}

.phonebook-header h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 13px;
    color: #3399ff;
}

.phonebook-close {
    font-size: 24px;
    background: none;
    border: none;
    color: #ff3333;
    cursor: pointer;
}

.phonebook-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pb-tab {
    flex: 1;
    padding: 10px 5px;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.pb-tab:hover, .pb-tab.active {
    color: #fff;
    border-bottom-color: #ff3333;
    background: rgba(255,50,50,0.1);
}

.phonebook-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.phonebook-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.phonebook-entry:hover {
    background: rgba(255,50,50,0.15);
    border-left-color: #ff3333;
}

.pb-entry-name {
    font-size: 13px;
    font-weight: 700;
    color: #ddd;
}

.pb-entry-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #00ff00;
}

.pb-entry-desc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* === DIALOG PANEL === */
.dialog-panel {
    flex: 1;
    max-width: 500px;
    min-width: 350px;
    min-height: 500px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #444;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 0;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
    border-bottom: 2px solid #333;
}

.caller-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.caller-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6666, #cc3333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid #ff3333;
}

.caller-name {
    display: block;
    font-weight: 900;
    font-size: 16px;
    color: #fff;
}

.caller-status {
    display: block;
    font-size: 12px;
    color: #00ff00;
    animation: statusBlink 1s ease-in-out infinite;
}

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

.call-timer {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

/* === DIALOG MESSAGES === */
.dialog-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
    position: relative;
}

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

.message-npc {
    align-self: flex-start;
    background: linear-gradient(135deg, #2a3a5a, #1a2a4a);
    color: #ddd;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(50,100,200,0.3);
}

.message-player {
    align-self: flex-end;
    background: linear-gradient(135deg, #5a2a2a, #4a1a1a);
    color: #fff;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(200,50,50,0.3);
}

.message-system {
    align-self: center;
    background: rgba(255,200,0,0.15);
    color: #ffcc00;
    font-size: 12px;
    font-style: italic;
    border: 1px solid rgba(255,200,0,0.2);
    text-align: center;
}

.message-sender {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.message-npc .message-sender { color: #6699cc; }
.message-player .message-sender { color: #ff6666; }

.typing-indicator {
    align-self: flex-start;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2a3a5a, #1a2a4a);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(50,100,200,0.3);
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #6699cc;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* === DIALOG CHOICES === */
.dialog-choices {
    padding: 15px;
    border-top: 2px solid #333;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.choice-btn {
    width: 100%;
    padding: 12px 18px;
    text-align: left;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, rgba(255,50,50,0.15) 0%, rgba(150,0,0,0.2) 100%);
    border: 1px solid rgba(255,50,50,0.3);
    color: #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

.choice-btn:hover {
    background: linear-gradient(180deg, rgba(255,80,80,0.3) 0%, rgba(200,0,0,0.4) 100%);
    border-color: #ff3333;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(255,50,50,0.2);
}

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

.choice-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #ff3333;
    margin-right: 10px;
}

/* === CONSEQUENCE OVERLAY === */
.consequence-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: consequenceFade 0.3s ease;
}

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

.consequence-content {
    background: linear-gradient(180deg, #2a1a1a, #1a0a0a);
    border: 3px solid #ff3333;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 60px rgba(255,50,50,0.4);
    animation: consequencePopIn 0.4s ease;
}

@keyframes consequencePopIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.consequence-icon {
    font-size: 72px;
    margin-bottom: 15px;
    animation: consequenceBounce 0.6s ease;
}

@keyframes consequenceBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#consequence-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 22px;
    color: #ff3333;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255,50,50,0.5);
}

#consequence-text {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.consequence-effect {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #ffcc00;
    margin-bottom: 20px;
}

/* === EXIT CONFIRM === */
.exit-content {
    text-align: center;
}

.exit-content h2 {
    font-family: 'Press Start 2P', monospace;
    color: #ff3333;
    font-size: 22px;
    margin-bottom: 15px;
}

.exit-content p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 16px;
}

.exit-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,50,50,0.4);
    border-radius: 4px;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
    #game-screen {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-container {
        width: 320px;
        min-width: 320px;
    }
    
    .dialog-panel {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    .game-subtitle {
        font-size: 20px;
    }
    
    .score-display {
        font-size: 9px;
        padding: 8px 12px;
    }
}

/* === PHONE RINGING ANIMATION === */
.phone-ringing {
    animation: phoneRing 0.3s ease-in-out infinite alternate;
}

@keyframes phoneRing {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

/* === CALL CONNECTING ANIMATION === */
.connecting-dots::after {
    content: '';
    animation: connectDots 1.5s steps(3) infinite;
}

@keyframes connectDots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* === SCREEN SHAKE === */
.screen-shake {
    animation: screenShake 0.5s ease;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-3px); }
    60% { transform: translateX(3px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-1px); }
}

/* === NOTIFICATION POPUP === */
.notification {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 15px 30px;
    z-index: 300;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #ffcc00;
    transition: top 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.notification.show {
    top: 70px;
}
