:root {
    --primary: #2b2d42;
    --secondary: #1a1b26;
    --accent: #ff4655;
    --accent-hover: #ff6b77;
    --text-primary: #e2e2e2;
    --text-secondary: #a0a0a0;
    --card-bg: #2d2f3d;
    --border-color: #3a3c4a;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.top-bar {
    background: var(--secondary);
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.messenger-container {
    display: flex;
    height: calc(100vh - 60px);
    background: var(--primary);
}

.chat-area {
    flex: 3;
    background: var(--primary);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.rightbar {
    width: 380px;
    background: var(--secondary);
    padding: 1.5rem;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.turn-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.turn-nav button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.turn-nav button:hover:not(:disabled) {
    background: var(--accent);
    transform: translateY(-1px);
}

.turn-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#turnIndicator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.chat-bubble {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.story {
    border-left: 4px solid var(--accent);
}

.chat-bubble.choices {
    background: rgba(255, 70, 85, 0.1);
    border-left: 4px solid var(--accent);
}

.choice {
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.choice:hover {
    background: var(--accent);
    transform: translateX(5px);
}

.choice.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 8px 0 var(--accent);
}

.choice.custom-input {
    cursor: default;
}

.choice-input {
    width: 100%;
    padding: 1rem;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.choice-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 70, 85, 0.2);
}

.choice-input::placeholder {
    color: var(--text-secondary);
}

.character-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.char-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.char-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.char-player {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.char-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.bar-group {
    margin: 0.8rem 0;
}

.bar-label {
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.bar-outer {
    background: var(--secondary);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.bar-inner {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    text-align: center;
}

.stat-grid div {
    background: var(--secondary);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.stat-grid span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.stat-grid b {
    color: var(--accent);
}

.char-section {
    margin: 1rem 0;
}

.section-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.skills-list, .equip-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-card {
    background: var(--secondary);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.skill-name {
    color: var(--accent);
    font-weight: 500;
}

.skill-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.equip-item {
    background: var(--secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    margin: 0.2rem;
    border: 1px solid var(--border-color);
}

.char-money {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--warning);
}

#characterSelect {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

#characterSelect option {
    background: var(--card-bg);
    color: var(--text-primary);
}

@media (max-width: 1200px) {
    .rightbar {
        width: 320px;
    }
    
    .chat-area {
        padding: 1.5rem;
    }
    
    .character-card {
        padding: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .rightbar {
        width: 300px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .char-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    .messenger-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 60px);
    }
    
    .rightbar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 1rem;
    }
    
    .chat-area {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .top-bar {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .objective-btn {
        padding: 6px 12px;
        font-size: 13px;
        margin-right: 1rem;
    }
    
    .character-card {
        padding: 1rem;
    }
    
    .chat-bubble {
        padding: 1.2rem;
    }
    
    .choice {
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .topbar-right-group {
        width: 100%;
        justify-content: space-between;
    }
    
    #characterSelectContainer {
        flex: 1;
        margin-left: 1rem;
    }
    
    #characterSelect {
        width: 100%;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .turn-player-label {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .chat-bubble {
        font-size: 0.95rem;
    }
    
    .choice-input {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    
    .choice-send-btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    .objective-btn {
        width: auto;
        min-width: 80px;
        padding: 6px 14px;
        font-size: 13px;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.6rem;
    }
    
    .topbar-right-group {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    #characterSelectContainer {
        margin-left: 0;
        width: 100%;
    }
    
    .objective-btn {
        width: auto;
        min-width: 70px;
        padding: 5px 10px;
        font-size: 12px;
        margin-right: 0.3rem;
    }
    
    .chat-area {
        padding: 0.8rem;
    }
    
    .rightbar {
        padding: 0.8rem;
    }
    
    .character-card {
        padding: 0.8rem;
    }
    
    .char-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .stat-grid div {
        padding: 0.4rem;
    }
    
    .chat-bubble {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .choice {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .choice-input {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .choice-send-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .turn-player-label {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .objective-content {
        width: 95%;
        margin: 1rem;
    }
    
    .objective-header h2 {
        font-size: 1.2rem;
    }
    
    .quest-name {
        font-size: 1.1rem;
    }
    
    .quest-description {
        font-size: 0.9rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .messenger-container {
        height: -webkit-fill-available;
    }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .choice, 
    .choice-send-btn,
    .objective-btn,
    .close-btn,
    .turn-nav button {
        min-height: 44px;
    }
    
    .choice-input {
        min-height: 44px;
    }
    
    .stat-grid div {
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.turn-player-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 12px 0 rgba(255,70,85,0.25);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(255,70,85,0.25), 0 1px 2px rgba(0,0,0,0.15);
    animation: glowTurnLabel 1.2s ease-in-out;
}

@keyframes glowTurnLabel {
    0% { box-shadow: 0 0 0 0 rgba(255,70,85,0.5); }
    70% { box-shadow: 0 0 16px 8px rgba(255,70,85,0.25); }
    100% { box-shadow: 0 2px 12px 0 rgba(255,70,85,0.25); }
}

/* Custom Scrollbar Styles */
.chat-area, .rightbar, body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--secondary);
}

/* Chrome, Edge, Safari */
.chat-area::-webkit-scrollbar, .rightbar::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 10px;
    background: var(--secondary);
    border-radius: 8px;
}

.chat-area::-webkit-scrollbar-thumb, .rightbar::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent) 60%, var(--accent-hover) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px 0 rgba(255,70,85,0.15);
    min-height: 40px;
}

.chat-area::-webkit-scrollbar-thumb:hover, .rightbar::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.chat-area::-webkit-scrollbar-track, .rightbar::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 8px;
}

/* Hide scrollbar buttons */
.chat-area::-webkit-scrollbar-button, .rightbar::-webkit-scrollbar-button, body::-webkit-scrollbar-button {
    display: none;
}

/* Hide scrollbar corner */
.chat-area::-webkit-scrollbar-corner, .rightbar::-webkit-scrollbar-corner, body::-webkit-scrollbar-corner {
    background: transparent;
}

.choice-send-btn {
    background: linear-gradient(135deg, #22c55e 60%, #4ade80 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    margin-left: 0.2rem;
    cursor: pointer;
    box-shadow: 0 0 8px 0 #22c55e80, 0 2px 8px 0 #0002;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    display: inline-block;
}

.choice-send-btn:hover, .choice-send-btn:focus {
    background: linear-gradient(135deg, #4ade80 60%, #22c55e 100%);
    box-shadow: 0 0 16px 2px #4ade80cc, 0 2px 8px 0 #0002;
    transform: translateY(-2px) scale(1.04);
}

.choice-send-btn.loading {
    background: #4ade80;
    cursor: wait;
    position: relative;
    color: transparent;
}

.choice-send-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.consolelog-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: var(--secondary);
    padding: 32px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#consoleLog {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.console-entry {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,70,85,0.08);
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.console-action {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.console-char-card {
    background: var(--secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    color: var(--text-primary);
    font-size: 0.98rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.console-char-header {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

.console-char-player {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.console-char-meta, .console-char-rep, .console-char-stats, .console-char-attr, .console-char-section, .console-char-money {
    font-size: 0.97rem;
    color: var(--text-secondary);
}

.console-char-section b {
    color: var(--text-primary);
}

.console-skill {
    background: var(--card-bg);
    color: var(--accent);
    border-radius: 4px;
    padding: 2px 7px;
    margin-right: 4px;
    font-weight: 500;
    font-size: 0.97rem;
}

.console-skill-meta {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.console-equip {
    background: var(--secondary);
    color: var(--text-primary);
    border-radius: 4px;
    padding: 2px 7px;
    margin-right: 4px;
    font-size: 0.97rem;
    border: 1px solid var(--border-color);
}

.console-char-money {
    color: var(--success);
    font-weight: 600;
    margin-top: 4px;
}

.console-empty {
    color: var(--text-secondary);
    font-style: italic;
    padding: 18px 0 0 0;
    text-align: center;
}

.backend-flex-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    min-height: 100vh;
    background: var(--primary);
}

.backend-left, .backend-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.inputjson-container {
    height: 100vh;
    box-sizing: border-box;
    border-radius: 0 0 10px 0;
    box-shadow: none;
    max-width: 100%;
    padding: 40px 32px 32px 32px;
    background: var(--secondary);
    gap: 18px;
}

.inputjson-container h2 {
    margin-bottom: 18px;
}

.inputjson-container textarea {
    width: 100%;
    min-height: 180px;
    font-size: 1.05rem;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    margin-bottom: 16px;
    resize: vertical;
}

.inputjson-container button {
    padding: 10px 24px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.inputjson-container button:hover {
    background-color: var(--accent-hover);
}

.consolelog-container {
    height: 100vh;
    box-sizing: border-box;
    border-radius: 0 0 0 10px;
    max-width: 100%;
    padding: 40px 32px 32px 32px;
    background: var(--secondary);
    gap: 18px;
    overflow-x: auto;
}

.console-copy-btn {
    margin-bottom: 10px;
    width: 100%;
    background: var(--card-bg);
    color: var(--success);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(34,197,94,0.08);
    transition: background 0.2s, color 0.2s;
}
.console-copy-btn:hover {
    background: var(--success);
    color: #fff;
}

.console-json {
    background: var(--primary);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 18px 16px;
    font-size: 1.02rem;
    line-height: 1.5;
    overflow-x: auto;
    min-height: 300px;
    max-height: 70vh;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
    .backend-flex-container {
        flex-direction: column;
    }
    .inputjson-container, .consolelog-container {
        height: auto;
        padding: 24px 8px 24px 8px;
        border-radius: 0;
    }
    .console-json {
        min-height: 180px;
        max-height: 40vh;
    }
}

/* Objective Button */
.objective-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 1.5rem;
}

.objective-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Objective Modal */
.objective-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.objective-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.objective-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.objective-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.objective-body {
    padding: 20px;
}

.quest-info {
    color: #fff;
}

.quest-name {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #4a9eff;
}

.quest-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.quest-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
}

.quest-detail {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.quest-detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: bold;
    color: #4a9eff;
    min-width: 80px;
    margin-right: 10px;
}

.detail-value {
    color: #e0e0e0;
    flex: 1;
}

.topbar-right-group {
    display: flex;
    align-items: center;
    gap: 0;
    float: right;
    height: 100%;
}

#characterSelectContainer {
    margin-left: 0;
}

.skill-note-input input {
    background: var(--secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--accent);
    border-radius: 7px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    margin-right: 0.5rem;
    outline: none;
    box-shadow: 0 2px 8px 0 rgba(255,70,85,0.10);
    transition: border 0.2s, box-shadow 0.2s;
}
.skill-note-input input:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}
.skill-note-input button {
    background: linear-gradient(135deg, var(--success) 60%, #22c55e 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 7px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    box-shadow: 0 0 4px 0 var(--success), 0 1px 4px 0 #0002;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    outline: none;
    margin-left: 1rem;
    margin-top: 0;
    display: inline-block;
}
.skill-note-input button:hover, .skill-note-input button:focus {
    background: linear-gradient(135deg, #22c55e 60%, var(--success) 100%);
    box-shadow: 0 0 16px 2px var(--success), 0 2px 8px 0 #0002;
    transform: translateY(-2px) scale(1.04);
}

.custom-tooltip {
    position: absolute;
    z-index: 9999;
    background: var(--secondary);
    color: var(--text-primary);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.25), 0 1.5px 8px 0 var(--accent);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0.97;
    max-width: 320px;
    word-break: break-word;
    border: 1.5px solid var(--accent);
    transition: opacity 0.15s;
}

/* Enemy Card Styles */
.enemy-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.enemy-card.boss {
    border-left: 4px solid var(--danger);
}

.enemy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.enemy-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--danger);
}

.enemy-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.enemy-status {
    margin-top: 0.8rem;
}

.enemy-hp-bar {
    background: var(--secondary);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.3rem;
}

.enemy-hp-inner {
    height: 100%;
    background: var(--danger);
    border-radius: 4px;
    transition: width 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
