body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin: 0;
    padding: 0;
}

html {
    touch-action: manipulation;
}

#game-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #34495e;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #f1c40f;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 36px;
    margin-bottom: 20px;
}

/* Run map styling */
#run-map {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

#run-map h2 {
    margin-bottom: 10px;
    color: #d4af37;
}

#node-map-container {
    position: relative;
    height: 370px; /* Reduced height for minimalist Ant Design style */
    width: 100%;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ant Design Steps Styling */
.antd-steps {
    display: flex;
    width: 90%;
    max-width: 900px;
    justify-content: space-between;
    align-items: flex-start;
    height: 70px;
    padding: 0 20px;
    position: relative;
}

.antd-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
    z-index: 2;
    transition: margin 0.3s ease;
}

.antd-step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: #333;
    border: 2px solid #555;
    position: relative;
    z-index: 3; /* Higher than lines */
    transition: all 0.3s ease;
}

.antd-step-title {
    display: none;
}

.antd-step[data-status="current"] .antd-step-title {
    color: #1890ff;
    font-weight: bold;
}

.antd-step[data-status="available"] .antd-step-title {
    color: #faad14;
}

.antd-step-checkmark {
    color: white;
    font-size: 14px;
    z-index: 3;
}

.antd-step-type-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2c3e50;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
}

/* Only show on finished nodes */
.antd-step[data-status="finished"] .antd-step-type-indicator {
    display: flex;
}

.antd-step[data-type="start"] .antd-step-type-indicator {
    content: "🏠";
}

.antd-step[data-type="battle"] .antd-step-type-indicator {
    content: "⚔️";
}

.antd-step[data-type="elite"] .antd-step-type-indicator {
    content: "👹";
}

.antd-step[data-type="shop"] .antd-step-type-indicator {
    content: "🛒";
}

.antd-step[data-type="rest"] .antd-step-type-indicator {
    content: "🏕️";
}

.antd-step[data-type="event"] .antd-step-type-indicator {
    content: "❓";
}

.antd-step[data-type="treasure"] .antd-step-type-indicator {
    content: "💎";
}

/* Status-based styling */
.antd-step[data-status="finished"] .antd-step-icon {
    background-color: #52c41a;
    border-color: #73d13d;
}

.antd-step[data-status="current"] .antd-step-icon {
    background-color: #1890ff;
    border-color: #40a9ff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(24, 144, 255, 0.5);
    width: 50px;
    height: 50px;
    font-size: 22px;
}

.antd-step[data-status="available"] .antd-step-icon {
    background-color: #faad14;
    border-color: #ffc53d;
    animation: pulse 1.5s infinite alternate;
    cursor: pointer;
}

/* Update step lines to handle branching */
.antd-step-line {
    position: absolute;
    height: 3px;
    background-color: #6673fb;
    box-shadow: 0 0 10px rgba(102, 115, 251, 0.5);
    width: calc(100% - 44px);
    left: calc(50% + 22px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Node types - keep the same colors for consistency */
.antd-step[data-type="start"] .antd-step-icon {
    background-color: #3498db;
}

.antd-step[data-type="battle"] .antd-step-icon {
    background-color: #e74c3c;
}

.antd-step[data-type="elite"] .antd-step-icon {
    background-color: #c0392b;
}

.antd-step[data-type="shop"] .antd-step-icon {
    background-color: #2ecc71;
}

.antd-step[data-type="rest"] .antd-step-icon {
    background-color: #f39c12;
}

.antd-step[data-type="event"] .antd-step-icon {
    background-color: #9b59b6;
}

/* Boss node */
.antd-step[data-is-boss="true"] .antd-step-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.7);
    border: 2px solid #c0392b;
}

/* Tooltip styling - smaller and nicer */
.antd-step-icon .node-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(22, 22, 22, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    width: 80px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    border: 1px solid #444;
    text-align: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.antd-step-icon:hover .node-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.antd-step-icon .node-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(22, 22, 22, 0.9) transparent transparent transparent;
}

.antd-step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.antd-step-icon .node-tooltip h4 {
    margin: 0;
    font-size: 10px;
    font-weight: bold;
}

/* Animation keyframes */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(250, 173, 20, 0.5); }
    100% { transform: scale(1.1); box-shadow: 0 0 10px rgba(250, 173, 20, 0.8); }
}

/* Node styling */
.map-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background-color: #333;
    border: 2px solid #555;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.map-node:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Tooltip styling - smaller and nicer */
.map-node .node-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(22, 22, 22, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    width: 80px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    border: 1px solid #444;
    text-align: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-node:hover .node-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.map-node .node-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(22, 22, 22, 0.9) transparent transparent transparent;
}

.map-node .node-tooltip h4 {
    margin: 0;
    font-size: 10px;
    font-weight: bold;
}

.map-node .node-tooltip p {
    margin: 2px 0 0 0;
    font-size: 10px;
    opacity: 0.8;
}

/* Current node emphasis */
.map-node[data-current="true"] {
    width: 70px;
    height: 70px;
    font-size: 26px;
    border-width: 3px;
    border-color: #ffd700;
    background-color: #444;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: currentNodePulse 2s infinite alternate;
    z-index: 20;
}

@keyframes currentNodePulse {
    0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); transform: translate(-50%, -50%) scale(1); }
    100% { box-shadow: 0 0 25px rgba(255, 215, 0, 1); transform: translate(-50%, -50%) scale(1.1); }
}

/* Node types */
.map-node[data-type="start"] {
    background-color: #3498db;
}

.map-node[data-type="battle"] {
    background-color: #e74c3c;
}

.map-node[data-type="elite"] {
    background-color: #c0392b;
}

.map-node[data-type="shop"] {
    background-color: #2ecc71;
}

.map-node[data-type="rest"] {
    background-color: #f39c12;
}

.map-node[data-type="event"] {
    background-color: #9b59b6;
}

/* Boss node */
.map-node[data-is-boss="true"] {
    background-color: #191970;
    border-color: #4169e1;
    width: 50px;
    height: 50px;
    font-size: 22px;
}

/* Visited node */
.map-node[data-visited="true"] {
    border-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

/* Available node */
.map-node[data-available="true"] {
    animation: pulse 1.5s infinite alternate;
    cursor: pointer;
}

/* Node path */
.node-path {
    position: absolute;
    height: 3px;
    border: none;
    border-top: 3px dashed #666;
    z-index: 5;
    transform-origin: 0 50%;
}

.node-path.active {
    border-top-color: #00ff00;
    border-top-width: 4px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Status styling */
#status {
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Make the HP container divs take full width */
#status > div:nth-child(1), 
#status > div:nth-child(2) {
    width: 100%;
}

#status p {
    font-size: 18px;
    margin: 10px 0;
}

.hp-bar {
    height: 20px;
    background-color: #e74c3c;
    border-radius: 10px;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
    width: 100%; /* Ensure full width */
}

.hp-bar-fill {
    height: 100%;
    background-color: #2ecc71;
    border-radius: 10px;
    transition: width 0.5s;
}

.hp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Action buttons styling */
#actions {
    margin: 20px 0;
}

#actions button {
    font-size: 36px;
    padding: 15px;
    margin: 10px;
    background-color: #3498db;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#actions button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

#actions button:active {
    transform: scale(0.95);
}

#actions button:nth-child(4),
#actions button:nth-child(5) {
    background-color: #e67e22;
    border-radius: 10px;
    width: auto;
    height: auto;
    font-size: 18px;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
}

#actions button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Planned actions styling */
#planned-actions {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

#planned-actions div {
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    margin: 0 2px;
}

#planned-actions div:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Action row styling */
.action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.action-label {
    width: 120px;
    text-align: right;
    margin-right: 15px;
    font-weight: bold;
    font-size: 18px;
}

/* Style enemy moves label to be red */
#enemy-planned-actions .action-label {
    color: #e74c3c; /* Red text for Enemy Moves */
    font-weight: bold;
}

/* Resolution log styling */
#resolution-log, #battle-log {
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#resolution-log p, #battle-log p {
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.player-win {
    background-color: rgba(46, 204, 113, 0.2);
    border-left: 4px solid #2ecc71;
}

.enemy-win {
    background-color: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
}

.tie {
    background-color: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
}

/* Enemy effect styles */
.enemy-effect {
    background-color: rgba(192, 57, 43, 0.2);
    border-left: 4px solid #c0392b;
    color: #e74c3c;
    padding: 8px 12px;
    margin: 6px 0;
    animation: pulseLight 1.5s infinite alternate;
}

.round-separator {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    margin: 10px 0;
    border-top: 1px dashed #3498db;
    border-bottom: 1px dashed #3498db;
}

/* Debuff effect styles */
.debuff-effect {
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 4px solid #c0392b;
    color: #e74c3c;
}

.debuff-expired {
    background-color: rgba(46, 204, 113, 0.15);
    border-left: 4px solid #27ae60;
    color: #2ecc71;
}

@keyframes pulseLight {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Additional styles for burn effects */
.burn-effect, .burn-applied {
    background-color: rgba(241, 196, 15, 0.2);
    border-left: 4px solid #f39c12;
    color: #f39c12;
}

/* Game over styling */
#game-over {
    padding: 20px;
    background-color: #2c3e50;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

#game-over button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

#game-over button:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* Final battle log styling */
#final-battle-log {
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#final-battle-log h3 {
    color: #f1c40f;
    margin-top: 0;
}

#final-battle-log p {
    font-size: 18px;
    margin: 8px 0;
    padding: 5px;
    border-radius: 5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Inventory styling */
#inventory-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #3498db;
    border-radius: 10px;
    display: inline-block;
}

@keyframes hpChange {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hp-change {
    animation: hpChange 0.5s ease;
    background-color: #e67e22;
}

/* Battle shake animation */
@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-2px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(2px, -2px) rotate(1deg);
    }

    30% {
        transform: translate(-2px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(2px, 2px) rotate(1deg);
    }

    50% {
        transform: translate(-2px, -2px) rotate(-1deg);
    }

    60% {
        transform: translate(2px, -2px) rotate(0deg);
    }

    70% {
        transform: translate(-2px, 2px) rotate(-1deg);
    }

    80% {
        transform: translate(-2px, -2px) rotate(1deg);
    }

    90% {
        transform: translate(2px, -2px) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.battle-shake {
    animation: shake 0.5s ease;
}

/* Battle comparison styling */
.battle-compare {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    margin: 10px auto;
    padding: 10px;
    background-color: #34495e;
    border-radius: 10px;
    max-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.battle-compare span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 5px;
}

.player-action {
    background-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.enemy-action {
    background-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Victory message styling */
.victory-message {
    font-size: 22px !important;
    font-weight: bold;
    text-align: center;
    padding: 10px !important;
    border: 2px solid #f1c40f;
    background-color: rgba(46, 204, 113, 0.3) !important;
    margin: 15px auto !important;
    animation: pulse 1.5s infinite;
}

.enemy-desc {
    font-style: italic;
    font-size: 14px;
    color: #e74c3c;
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    background-color: rgba(231, 76, 60, 0.1);
    display: inline-block;
}

.inventory-item {
    display: inline-block;
    padding: 2px 4px;
    margin: 0 2px;
    border-radius: 4px;
}

.inventory-item.consumable {
    cursor: pointer;
    background-color: rgba(87, 60, 39, 0.2);
    border: 1px dashed #573c27;
    transition: all 0.2s ease;
}

.inventory-item.consumable:hover {
    background-color: rgba(87, 60, 39, 0.4);
    transform: translateY(-2px);
}

.inventory-item.consumable:active {
    background-color: rgba(87, 60, 39, 0.6);
    transform: translateY(0);
}

.inventory-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.inventory-item[data-applies-to="Rock"] {
    color: #f39c12;
    background-color: rgba(243, 156, 18, 0.2);
}

.inventory-item[data-applies-to="Paper"] {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.2);
}

.inventory-item[data-applies-to="Scissors"] {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.2);
}

/* Item selection screen styling */
#item-selection {
    padding: 20px;
    background-color: #2c3e50;
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

#item-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    flex-direction: row;
}

.item-option {
    background-color: #34495e;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.item-effect.special-relic {
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(241, 196, 15, 0.2);
    border-left: 4px solid #f1c40f;
    animation: relicShine 3s infinite;
}

@keyframes relicShine {
    0% { background-color: rgba(241, 196, 15, 0.2); }
    50% { background-color: rgba(241, 196, 15, 0.4); }
    100% { background-color: rgba(241, 196, 15, 0.2); }
}

/* Styling for relic items to make them look special */
.item-option.relic {
    background-color: #2c3e50;
    border: 2px solid #f1c40f;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.item-option.relic:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.6);
    background-color: #2a3b4d;
}

.item-option.relic h3 {
    color: #f39c12;
    text-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

.item-option.relic:before {
    content: "✨";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(241, 196, 15, 0.7));
}

.item-option {
    position: relative; /* For the relic star positioning */
}

.item-option:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: #f1c40f;
}

.item-option h3 {
    color: #f1c40f;
    margin-top: 0;
    font-size: 18px;
}

.item-option p {
    color: #ecf0f1;
    font-size: 14px;
}

.item-applies-to {
    margin-top: 10px;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.item-applies-to[data-applies-to="Rock"] {
    background-color: rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

.item-applies-to[data-applies-to="Paper"] {
    background-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.item-applies-to[data-applies-to="Scissors"] {
    background-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

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

/* Enemy actions styling */
#enemy-actions {
    display: flex;
    gap: 10px;  /* Match player moves gap */
    margin: 10px 0;
}

#enemy-actions div {
    width: 70px;  /* Increase size to match player moves */
    height: 70px; /* Increase size to match player moves */
    background: #2c3e50;
    border: 2px solid #e74c3c; /* Red border for enemy moves */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* Match player move font size */
    color: #ecf0f1;
    transition: all 0.3s;
    animation: none !important;
    margin: 10px; /* Match player moves margin */
}

/* Hidden enemy moves should have a unique style */
.hidden-action {
    background: #34495e !important;
    border: 2px solid #e74c3c !important; /* Keep red border to match enemy theme */
    color: #7f8c8d !important;
    cursor: default;
}

/* Hover effect similar to player moves */
#enemy-actions div:not(.hidden-action):hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Match player moves styling for consistency */
#planned-actions div {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: #3498db;
    border-radius: 10px;
    font-size: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep flip animation only for reveal */
.flip-in {
    animation: flipIn 0.4s ease-out forwards;
}

@keyframes flipIn {
    from {
        transform: rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Node options display for choice selection */
.node-options-info {
    font-family: 'Amatic SC', cursive;
    font-size: 28px;
    text-align: center;
    margin: 20px 0 10px;
    color: #e6d8af;
    text-shadow: 2px 2px 3px #000;
}

.node-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px auto;
    flex-wrap: wrap;
    max-width: 900px;
}

.node-option {
    display: flex;
    width: 280px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.node-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.node-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.node-option:hover::after {
    opacity: 1;
}

.node-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #444;
    border: 2px solid #6673fb;
    box-shadow: 0 0 10px rgba(102, 115, 251, 0.5);
    flex-shrink: 0;
}

.node-option-details {
    flex: 1;
}

.node-option-details h3 {
    margin: 0 0 1px 0;
    font-size: 21px;
}

.node-option-details p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

/* Type-specific styling */
.node-option[data-type="battle"] .node-option-icon {
    background-color: #6e392d;
    border-color: #c95c3c;
    box-shadow: 0 0 10px rgba(201, 92, 60, 0.5);
}

.node-option[data-type="elite"] .node-option-icon {
    background-color: #652424;
    border-color: #ff4f4f;
    box-shadow: 0 0 10px rgba(255, 79, 79, 0.5);
}

.node-option[data-type="shop"] .node-option-icon {
    background-color: #355e3b;
    border-color: #5fb977;
    box-shadow: 0 0 10px rgba(95, 185, 119, 0.5);
}

.node-option[data-type="rest"] .node-option-icon {
    background-color: #3d566e;
    border-color: #69b0ff;
    box-shadow: 0 0 10px rgba(105, 176, 255, 0.5);
}

.node-option[data-type="event"] .node-option-icon {
    background-color: #5e3d6e;
    border-color: #c969ff;
    box-shadow: 0 0 10px rgba(201, 105, 255, 0.5);
}

.node-option[data-type="treasure"] .node-option-icon {
    background-color: #6e5d3d;
    border-color: #ffd869;
    box-shadow: 0 0 10px rgba(255, 216, 105, 0.5);
}

.node-option[data-is-boss="true"] .node-option-icon {
    border-width: 3px;
    background-color: #461e1e;
    border-color: #ff2a2a;
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.7);
    animation: pulse 1.5s infinite;
}

/* Usable item styling */
.usable-item {
    background-color: rgba(46, 204, 113, 0.3) !important;
    border: 1px solid #2ecc71;
    padding: 3px 6px !important;
    border-radius: 4px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    position: relative;
    animation: potionPulse 2s infinite alternate;
}

.usable-item:hover {
    background-color: rgba(46, 204, 113, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.4);
}

.usable-item:active {
    transform: translateY(0);
    box-shadow: none;
}

.usable-item::before {
    content: "🧪";
    margin-right: 3px;
}

.log-header {
    padding-left: 10px;
    padding-right: 10px;
}

#resolution-log, #battle-log {
    margin: 20px 10px;
}

@keyframes potionPulse {
    0% { box-shadow: 0 0 3px rgba(46, 204, 113, 0.4); }
    100% { box-shadow: 0 0 8px rgba(46, 204, 113, 0.8); }
}

/* Add styling for roast messages */
.enemy-roast {
    color: #ff4444;
    font-style: italic;
    margin: 5px 0;
    animation: burn 1s ease-in-out;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

@keyframes burn {
    0% { opacity: 0; transform: translateX(20px); }
    50% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; }
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .node-options {
        flex-direction: column;
        align-items: center;
    }
    
    .node-option {
        width: 90%;
        max-width: 350px;
    }
}

/* Shop item styling */
.item-option.leave-shop {
    background-color: #7f8c8d;
    border-color: #95a5a6;
}

.item-option.leave-shop:hover {
    background-color: #95a5a6;
    border-color: #bdc3c7;
}

.price {
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Rest site option styling */
.rest-option {
    position: relative;
    transition: all 0.3s ease;
}

.rest-option:hover {
    transform: translateY(-5px);
}

.current-hp {
    color: #e74c3c;
    font-weight: bold;
}

.rest-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rest-option.disabled:hover {
    transform: none;
}

.note {
    font-style: italic;
    color: #e74c3c;
    font-size: 0.9em;
}

/* Event choice styling - enhanced to look like buttons */
.event-choice {
    background-color: #34495e;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 10px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #ecf0f1;
    text-align: center;
    display: inline-block;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-choice:hover {
    transform: translateY(-5px);
    background-color: #2c3e50;
    border-color: #2ecc71;
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
}

.event-choice:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Event image styling */
.event-image-container {
    margin: 30px auto;
    width: 500px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: #000;
}

/* Shop image styling */
.shop-image-container {
    margin: 30px auto;
    width: 500px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
    position: relative;
    background: url('assets/events/shop.png');
    background-size: cover;
    background-position: center;
    background-color: #000;
    animation: shopGlow 3s infinite alternate;
}

@keyframes shopGlow {
    0% {
        box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
    }
    100% {
        box-shadow: 0 8px 24px rgba(52, 152, 219, 0.7);
    }
}

/* Event type-specific background images */
.event-image-container[data-event="cursed_forge"] {
    background: url('assets/events/cursed-forge.jpeg');
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.event-image-container[data-event="mysterious_trader"] {
    background: url('assets/events/mysterious-trader.png');
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.event-image-container[data-event="healing_spring"] {
    background: url('assets/events/healing-spring.jpeg');
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.event-image-container[data-event="treasure"] {
    background: url('assets/events/treasure.png');
    background-size: cover;
    background-position: center;
    background-color: #000;
}

/* Remove glow effects for event images */
.event-image-container::after {
    display: none;
}

.event-image-container[data-event="cursed_forge"]::after {
    display: none;
}

.event-image-container[data-event="mysterious_trader"]::after {
    display: none;
}

.event-image-container[data-event="healing_spring"]::after {
    display: none;
}

/* Event style overrides */
#item-selection[data-context="event"] #item-selection-heading {
    color: #e67e22;
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
    font-size: 28px;
    margin-bottom: 5px;
}

#item-selection[data-context="event"] #item-selection-message {
    font-size: 18px;
    margin-bottom: 20px;
    background-color: rgba(230, 126, 34, 0.1);
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.event-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

.event-choice {
    background-color: rgba(52, 73, 94, 0.7);
    border: 1px solid #2c3e50;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.event-choice:hover {
    background-color: rgba(52, 73, 94, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-result {
    background-color: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    font-size: 18px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

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

/* Node types styling */
.node-option[data-type="battle"] {
    background-color: rgb(61 41 39 / 43%);
    border-color: #e74c3c;
}

.node-option[data-type="elite"] {
    background-color: rgba(192, 57, 43, 0.2);
    border-color: #c0392b;
}

.node-option[data-type="shop"] {
    background-color: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
}

.node-option[data-type="rest"] {
    background-color: rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
}

.node-option[data-type="event"] {
    background-color: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
}

.node-option[data-type="treasure"] {
    background-color: rgba(241, 196, 15, 0.2);
    border-color: #f1c40f;
}

.node-option[data-is-boss="true"] {
    border-color: #e74c3c;
    background-image: linear-gradient(to bottom, #e74c3c20, #e74c3c40);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

/* Item rarity styling */
.item-option.common {
    border-color: #3498db;
}

.item-option.uncommon {
    border-color: #2ecc71;
}

.item-option.rare {
    border-color: #9b59b6;
}

/* Disable style */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Disabled buttons due to debuff */
.disabled-by-debuff {
    background-color: #7f8c8d !important;
    opacity: 0.7;
    cursor: not-allowed !important;
    box-shadow: none !important;
    position: relative;
}

.disabled-by-debuff::before {
    content: "❌";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: #c0392b;
}

.disabled-by-debuff:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Upgraded item style */
.item-option h3[data-upgraded="true"]::after {
    content: " ⭐";
    color: #f1c40f;
}
/* Elite battle styling */
.elite-battle #battle-screen {
    box-shadow: 0 0 20px rgba(128, 0, 128, 0.6);
}

.elite-battle #enemy-name {
    color: #9932cc;
    text-shadow: 0 0 5px rgba(153, 50, 204, 0.7);
}

/* Final boss battle styling (already in the CSS) */
.final-boss #battle-screen {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.7);
}

.final-boss #enemy-name {
    color: #e74c3c;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

/* Debuff styling */
#debuff-container {
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #c0392b;
    border-radius: 10px;
    display: inline-block;
    animation: pulse 2s infinite;
    text-align: left;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#debuff-container.hidden {
    display: none !important;
    animation: none;
}

.debuff-icon {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.debuff-name {
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    margin-right: 10px;
}

.debuff-description {
    font-style: italic;
    color: #f2f2f2;
}

.debuff-notification {
    background-color: rgba(192, 57, 43, 0.2);
    border-left: 4px solid #c0392b;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    animation: fadeIn 0.5s;
}

.debuff-effect {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 5px;
    font-size: 14px;
}

/* Unified styling for both action containers */
#enemy-actions,
#planned-actions {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    justify-content: center;
}

/* Unified styling for action boxes */
#enemy-actions div,
#planned-actions div,
#opponent-actions div {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s;
    margin: 10px;
}

/* Specific styling for player moves */
#planned-actions div {
    background-color: #3498db;
    border: 2px solid #3498db;
    color: #ecf0f1;
    cursor: pointer;
}

/* Specific styling for enemy moves */
#enemy-actions div {
    background-color: #2c3e50;
    border: 2px solid #e74c3c;
    color: #ecf0f1;
}

/* Hover effects */
#planned-actions div:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#enemy-actions div:not(.hidden-action):hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* Hidden enemy moves */
.hidden-action {
    background: #34495e !important;
    border: 2px solid #e74c3c !important;
    color: #7f8c8d !important;
    cursor: default;
}

/* Battle log divider styling */
.battle-log-divider {
    margin: 15px 0;
    border-top: 2px dashed #f1c40f;
    padding-top: 10px;
}

.new-run-marker {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border-left: 4px solid #f1c40f;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

.battle-separator {
    margin: 15px 0;
    border-top: 2px solid rgba(52, 152, 219, 0.5);
    padding-top: 10px;
}

.battle-marker {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 4px solid #3498db;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
}

/* Style for elite battle markers */
.battle-marker[data-battle-type="Elite"] {
    background-color: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border-left: 4px solid #9c27b0;
}

/* Style for boss battle markers */
.battle-marker[data-battle-type="Boss"] {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

/* Log header styling */
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.log-header h3 {
    color: #3498db;
    margin: 0;
}

.clear-log-btn {
    background-color: #e74c3c;
    border: none;
    border-radius: 5px;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-log-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Style for battle markers */
.battle-marker[data-battle-type="Boss"] {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

/* Round separator styling */
.round-separator {
    margin: 10px 0;
    border-top: 1px dashed rgba(52, 152, 219, 0.3);
    padding-top: 5px;
}

.round-marker {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-left: 2px solid #3498db;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0;
    padding: 4px;
    border-radius: 5px;
}

/* Rest site image styling */
.rest-site-image {
    margin: 30px auto;
    width: 500px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none !important;
    position: relative;
    background: url('assets/events/rest-site.png');
    background-size: cover;
    background-position: center;
    background-color: #000;
}

/* Remove glow effect for rest site */
.rest-site-image::after {
    display: none;
}

/* Style the rest site context */
#item-selection[data-context="rest"] #item-selection-heading {
    color: #2ecc71;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    font-size: 28px;
    margin-bottom: 5px;
}

#item-selection[data-context="rest"] #item-selection-message {
    font-size: 18px;
    margin-bottom: 20px;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Style the shop context */
#item-selection[data-context="shop"] #item-selection-heading {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    font-size: 28px;
    margin-bottom: 5px;
}

#item-selection[data-context="shop"] #item-selection-message {
    font-size: 18px;
    margin-bottom: 20px;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Style the treasure context */
#item-selection[data-context="treasure"] #item-selection-heading {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
    font-size: 28px;
    margin-bottom: 5px;
}

#item-selection[data-context="treasure"] #item-selection-message {
    font-size: 18px;
    margin-bottom: 20px;
    background-color: rgba(241, 196, 15, 0.1);
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .antd-steps {
        margin: 0 10px;
    }
    
    .antd-step-title {
        display: none;
    }
    
    .antd-step-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .antd-step-line {
        top: 19px;
        right: calc(-50% + 19px);
        width: calc(100% - 38px);
    }
    
    .antd-step-type-indicator {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .event-image-container,
    .shop-image-container {
        width: 90%;
        height: 300px;
    }
}

/* Multiplayer Styles */
#game-modes {
  margin-bottom: 20px;
  text-align: center;
}

.game-mode-btn {
  display: inline-block;
  background-color: #573c27;
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #2a1e13;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #2a1e13;
  margin: 0 10px;
}

.game-mode-btn:hover {
  background-color: #704e35;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2a1e13;
}

.game-mode-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2a1e13;
}

#connection-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Ensure .hidden works on #connection-panel */
#connection-panel.hidden {
  display: none !important;
}

#create-room, #join-room {
  width: 100%;
  max-width: 400px;
  margin: 10px 0;
  padding: 15px;
  background-color: rgba(87, 60, 39, 0.7);
  border-radius: 8px;
  text-align: center;
}

#create-room h2, #join-room h2 {
  margin-top: 0;
  font-size: 24px;
  color: #e8d9b5;
}

#room-code-display {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

#room-code {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 5px;
  color: #ffd866;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#room-code-input {
  width: 150px;
  padding: 10px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 3px;
  margin: 10px 0;
  background-color: #e8d9b5;
  border: 2px solid #573c27;
  border-radius: 5px;
  text-transform: uppercase;
}

.game-button {
  display: inline-block;
  background-color: #573c27;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #2a1e13;
  margin: 10px 5px;
  text-decoration: none;
}

.game-button:hover {
  background-color: #704e35;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2a1e13;
}

.game-button:active, .game-button:disabled {
  background-color: #44301e;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2a1e13;
}

#connection-status {
  margin-top: 20px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  text-align: center;
}

#status-message {
  font-weight: bold;
  color: #ffd866;
}

#multiplayer-battle {
  width: 100%;
}

#countdown-display {
  text-align: center;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin: 10px 0;
  animation: pulse 1s infinite alternate;
}

#countdown-display h3 {
  margin: 0;
  font-size: 24px;
  color: #ffd866;
}

#countdown {
  font-size: 36px;
  font-weight: bold;
  color: #ff6188;
}

.move-btn, .util-btn {
  padding: 10px 15px;
  margin: 5px;
  font-size: 18px;
  background-color: #573c27;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #2a1e13;
}

.move-btn:hover, .util-btn:hover {
  background-color: #704e35;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2a1e13;
}

.move-btn:active, .util-btn:active,
.move-btn:disabled, .util-btn:disabled {
  background-color: #44301e;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2a1e13;
  opacity: 0.7;
}

.move-btn {
  font-size: 24px;
  width: 60px;
  height: 60px;
}

/* Style for unlock button */
.unlock-btn {
  background-color: #e74c3c !important;
  border-color: #c0392b !important;
}

.unlock-btn:hover {
  background-color: #c0392b !important;
}

#back-to-main {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  #connection-panel {
    padding: 10px;
  }
  
  #create-room, #join-room {
    padding: 10px;
  }
  
  .game-button, .move-btn, .util-btn {
    padding: 8px 12px;
    font-size: 16px;
  }
  
  #room-code {
    font-size: 24px;
  }
  
  #room-code-input {
    width: 120px;
    font-size: 20px;
  }
}

.firebase-notification {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  background-color: rgba(255, 218, 102, 0.3);
  border-left: 4px solid #ffda66;
  border-radius: 5px;
  color: #ffda66;
  text-align: center;
}

.firebase-notification p {
  margin: 0;
  font-size: 14px;
}

/* Opponent's planned actions */
#opponent-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.empty-slot {
  background-color: rgba(44, 62, 80, 0.5) !important;
  border: 2px dashed #7f8c8d !important;
  color: transparent !important;
}

#planned-actions .empty-slot:hover {
  transform: none !important;
  cursor: default !important;
  box-shadow: none !important;
}

.current-comparison {
  box-shadow: 0 0 15px #f1c40f !important;
  transform: scale(1.1) !important;
  z-index: 10;
  position: relative;
  animation: pulseBright 1s infinite alternate !important;
}

@keyframes pulseBright {
  0% {
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.7);
  }
  100% {
    box-shadow: 0 0 20px rgba(241, 196, 15, 1);
  }
}


.hidden {
    display: none;
}

/* Style for the copy button */
.copy-btn {
  background-color: #573c27;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  margin-left: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.copy-btn:hover {
  background-color: #704e35;
  transform: translateY(-2px);
}

.copy-btn:active {
  background-color: #44301e;
  transform: translateY(0);
}

.copy-btn.success {
  background-color: #27ae60;
  animation: pulse 0.5s ease-in-out;
}

/* Connection notification */
.connection-notification {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
  font-size: 14px;
  animation: fadeInOut 5s forwards;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
}

.connection-notification p {
  margin: 0;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Audio Controls */
.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.audio-btn {
    background: var(--btn-bg-color, #50342c);
    color: var(--btn-text-color, #f0f0e0);
    border: 2px solid var(--btn-border-color, #352318);
    font-size: 1.2rem;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.audio-btn:hover {
    background: var(--btn-hover-color, #6a453b);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.audio-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Volume slider when needed */
.volume-slider {
    width: 80px;
    margin: 0 10px;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: var(--slider-bg-color, #352318);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--slider-thumb-color, #f0f0e0);
    cursor: pointer;
    border: 2px solid var(--btn-border-color, #352318);
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--slider-thumb-color, #f0f0e0);
    cursor: pointer;
    border: 2px solid var(--btn-border-color, #352318);
}

@media (max-width: 768px) {
    .audio-btn {
        font-size: 1rem;
        padding: 4px 8px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* Existing styles... */

/* Battle mode styles - for streamlined battle UI */
#status.battle-mode {
    display: flex;
    justify-content: space-between;
    background-color: rgba(52, 73, 94, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#status.battle-mode > div {
    flex: 1;
    margin: 0 10px;
}

#status.battle-mode #player-currency,
#status.battle-mode #currency-container,
#status.battle-mode #inventory-container,
#status.battle-mode #round-number {
    display: none !important;
}

#status.battle-mode p:not(:has(.hp-bar)) {
    display: none;
}

#status.battle-mode .hp-bar {
    height: 25px;
    margin-bottom: 5px;
    animation: pulseLight 2s infinite;
}

/* Hide action selection during battle-mode */
#status.battle-mode ~ #battle-screen #actions button {
    opacity: 0.3;
    pointer-events: none;
}

/* Add focus styling to log during battle resolution */
#status.battle-mode ~ #battle-screen #resolution-log {
    border: 2px solid #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

/* This class will be used when returning from battle */
.battle-end #game-modes,
.battle-end #inventory-container,
.battle-end #currency-container {
    display: block;
}

/* Existing styles continue... */

#status.battle-mode ~ #battle-screen #actions button {
    opacity: 0.3;
    pointer-events: none;
}

/* Hide battle log during combat resolution */
#status.battle-mode ~ #battle-screen #resolution-log {
    display: none;
}

/* Create space for a temporary visual that will show only the current comparison */
#status.battle-mode ~ #battle-screen .active-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    min-height: 80px;
    font-size: 1.5em;
}

#status.battle-mode ~ #battle-screen .active-comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    min-height: 80px;
    font-size: 1.5em;
}

.active-comparison .player-action,
.active-comparison .enemy-action {
    font-size: 3em;
    margin: 0 20px;
    animation: pulse 1s infinite;
}

.active-comparison .vs-text {
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.active-comparison.hidden {
    display: none;
}

/* Create space for a temporary visual that will show only the current comparison */
#status.battle-mode ~ #battle-screen .active-comparison {
    display: none;
}

.active-comparison .player-action,
.active-comparison .enemy-action {
    display: none;
}

.active-comparison .vs-text {
    display: none;
}

.active-comparison.hidden {
    display: none;
}

/* Toast notification for roasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.toast-notification {
    background-color: #34495e;
    color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    max-width: 350px;
    min-width: 250px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
    pointer-events: all;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.error {
    background-color: #c0392b;
    border-left: 5px solid #e74c3c;
}

.toast-notification.success {
    background-color: #27ae60;
    border-left: 5px solid #2ecc71;
}

.toast-notification.roast {
    background-color: #d35400;
    border-left: 5px solid #e67e22;
}

.toast-notification .toast-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.toast-notification .toast-message {
    margin: 0;
}

.toast-notification .toast-icon {
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}

.toast-notification .toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.toast-notification .toast-close:hover {
    opacity: 1;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0; }
}

.toast-notification .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.toast-notification .toast-progress-bar {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    width: 100%;
    animation: toast-progress 5s linear forwards;
}