/* RPG Game Styles */
/* --- Subtle RPG UI Enhancements --- */
.rpg-container {
    background-color: #222;
    color: #eee;
    padding: 32px 28px 28px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    max-width: 820px;
    margin: 48px auto;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    border: 1.5px solid #444;
}

.rpg-header {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2.5px;
    font-weight: 600;
    text-shadow: 0 2px 6px #111;
}

.rpg-section {
    margin-bottom: 28px;
    padding: 20px 18px;
    background: #292929;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid #333;
}

.rpg-label {
    font-weight: 500;
    margin-right: 10px;
    color: #ffd700;
    letter-spacing: 1px;
}

.rpg-input, .rpg-select {
    background: #222;
    color: #eee;
    border: 1.5px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 1em;
    transition: border-color 0.2s;
}
.rpg-input:focus, .rpg-select:focus {
    border-color: #ffd700;
    outline: none;
}

.rpg-button {
    background: #444;
    color: #ffd700;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.rpg-button:hover {
    background: #ffd700;
    color: #222;
    box-shadow: 0 2px 8px rgba(255,215,0,0.15);
}

.rpg-character-card {
    background: #222;
    border: 1.5px solid #444;
    border-radius: 10px;
    padding: 16px 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    transition: box-shadow 0.2s;
}
.rpg-character-card:hover {
    box-shadow: 0 4px 16px rgba(255,215,0,0.10);
}

.rpg-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 1.05em;
}

.rpg-message {
    background: #333;
    color: #ffd700;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 16px;
    text-align: center;
    font-size: 1.08em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.rpg-footer {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 1em;
    letter-spacing: 0.5px;
}

.monster-sprite {
    /* Ensure the image takes up most of the card width */
    width: 100%;
    max-width: 250px;
    height: auto;
    max-height: 200px;
    
    /* Center the image and maintain aspect ratio */
    object-fit: contain;
    object-position: center;
    
    /* Add a subtle border and shadow for better visual appeal */
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Smooth transitions for any hover effects */
    transition: transform 0.2s ease-in-out;
}

.monster-sprite:hover {
    /* Slight scale effect on hover for interactivity */
    transform: scale(1.05);
}

/* Ensure the monster card has enough space for the image */
.card-body {
    display: flex;
    flex-direction: column;
}

/* Make sure the image container doesn't interfere with other content */
.monster-image-container {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

/* Hero card actions styling */
.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.hero-actions h3 {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Ability categories styling - ultra compact */
.ability-category {
    background-color: #f8f9fa;
    border-radius: 3px;
    padding: 0.15rem;
    margin-bottom: 0.15rem;
    border-left: 2px solid;
}

.ability-category.physical {
    border-left-color: #0d6efd;
    background-color: #f0f7ff;
}

.ability-category.mental {
    border-left-color: #198754;
    background-color: #f0fff4;
}

.ability-category.social {
    border-left-color: #ffc107;
    background-color: #fffdf0;
}

.ability-category.skills {
    border-left-color: #6f42c1;
    background-color: #f8f0ff;
}

.ability-category.gold {
    border-left-color: #fd7e14;
    background-color: #fff8f0;
}

.ability-category h6 {
    font-weight: 600;
    margin-bottom: 0.08rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ability-category small {
    font-weight: 500;
    color: #495057;
    font-size: 0.75rem;
}

/* Ability grid improvements - ultra compact */
.ability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.08rem;
}

.ability-item {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.06rem 0.15rem;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    min-height: 0.8rem;
}

.ability-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.ability-icon {
    cursor: help;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 0.7rem;
    margin-left: 0.3rem;
    flex-shrink: 0;
}

.ability-icon:hover {
    opacity: 1;
}

/* Tooltip customization */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #212529;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    max-width: 250px;
    text-align: center;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .monster-sprite {
        max-width: 200px;
        max-height: 150px;
    }
    
    .hero-actions .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .ability-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.06rem;
    }
    
    .ability-category {
        padding: 0.12rem;
        margin-bottom: 0.12rem;
    }
    
    .ability-item {
        padding: 0.05rem 0.12rem;
        min-height: 0.7rem;
    }
    
    .ability-category h6 {
        font-size: 0.75rem;
        margin-bottom: 0.06rem;
    }
    
    .ability-category small {
        font-size: 0.7rem;
    }
    
    .ability-icon {
        font-size: 0.65rem;
        margin-left: 0.2rem;
    }
}

@media (max-width: 480px) {
    .ability-grid {
        grid-template-columns: 1fr;
    }
    
    .ability-category {
        padding: 0.1rem;
        margin-bottom: 0.1rem;
    }
    
    .ability-item {
        padding: 0.04rem 0.1rem;
        min-height: 0.6rem;
    }
    
    .ability-category h6 {
        font-size: 0.7rem;
        margin-bottom: 0.05rem;
    }
    
    .ability-category small {
        font-size: 0.65rem;
    }
    
    .ability-icon {
        font-size: 0.6rem;
        margin-left: 0.15rem;
    }
}

/* Character Selection Styles */
.character-selection-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 32px;
    margin-bottom: 2rem;
}

.character-slot {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.character-slot:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--bs-primary);
}

.character-slot.empty-slot {
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
}

.character-slot.empty-slot:hover {
    border-color: var(--bs-primary);
    background-color: #e3f2fd;
}

.character-class-icon {
    font-size: 3rem;
    display: block;
}

.character-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.character-class {
    color: var(--bs-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.character-stats {
    margin-bottom: 1rem;
}

/* Character Creation Styles */
.character-creation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.class-option {
    position: relative;
}

.class-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.class-card {
    display: block;
    padding: 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    height: 100%;
}

.class-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.class-card.selected {
    border-color: var(--bs-primary);
    background-color: #e3f2fd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.class-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.class-card h4 {
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.class-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.ability-tags .badge {
    font-size: 0.7rem;
}

/* Ability Distribution Styles */
.ability-distribution {
    max-width: 100%;
}

.ability-category {
    margin-bottom: 2rem;
}

.ability-category h4 {
    color: var(--bs-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.ability-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.ability-item:hover {
    background: #e9ecef;
    border-color: var(--bs-primary);
}

.ability-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    width: 30px;
    text-align: center;
}

.ability-name {
    flex: 1;
    font-weight: 500;
    margin-left: 0.5rem;
}

.ability-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ability-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--bs-primary);
}

.ability-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ability-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Additional responsive styles for character creation */
@media (max-width: 768px) {
    .class-card {
        padding: 1rem;
    }
    
    .character-selection-header,
    .character-creation-header {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ability-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .ability-controls {
        justify-content: center;
    }
}

/* Monster Description Styles */
.monster-description {
    margin-top: 1rem;
}

.monster-description .alert {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.monster-description .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #6c757d;
}

.monster-description .alert strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.monster-description .alert small {
    line-height: 1.4;
    font-style: italic;
    color: #495057;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.05);
}

/* Specific monster description themes */
.monster-description .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #f39c12;
}

.monster-description .alert-secondary {
    background: linear-gradient(135deg, #e9ecef 0%, #ced4da 100%);
    border-left: 4px solid #6c757d;
}

.monster-description .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
}

.monster-description .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
}

.monster-description .alert-dark {
    background: linear-gradient(135deg, #d1d3d4 0%, #c6c8ca 100%);
    border-left: 4px solid #343a40;
    color: #212529;
}

.monster-description .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

/* Responsive adjustments for monster descriptions */
@media (max-width: 768px) {
    .monster-description .alert {
        padding: 0.75rem;
    }
    
    .monster-description .alert strong {
        font-size: 1rem;
    }
    
    .monster-description .alert small {
        font-size: 0.8rem;
    }
}

/* Delete Character Modal Styles */
#deleteCharacterModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-bottom: none;
}

#deleteCharacterModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#deleteCharacterModal .character-preview {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#deleteCharacterModal .character-preview:hover {
    border-color: #dc3545;
    background-color: #fff5f5;
}

#deleteCharacterModal .alert-warning {
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

#deleteCharacterModal .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#deleteCharacterModal .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

#deleteCharacterModal .btn-secondary {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#deleteCharacterModal .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Modal animation */
#deleteCharacterModal .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

#deleteCharacterModal.show .modal-dialog {
    transform: scale(1);
}

/* Character icon in modal */
#deleteCharacterIcon {
    transition: all 0.3s ease;
}

#deleteCharacterModal .character-preview:hover #deleteCharacterIcon {
    transform: scale(1.1);
}

/* Error Modal Styles */
#errorModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-bottom: none;
}

#errorModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#errorModal .btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#errorModal .btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Warning Modal Styles */
#warningModal .modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-bottom: none;
}

#warningModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#warningModal .btn-primary {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #212529;
    transition: all 0.3s ease;
}

#warningModal .btn-primary:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Character Limit Modal Styles */
#characterLimitModal .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-bottom: none;
}

#characterLimitModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#characterLimitModal .btn-outline-primary {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#characterLimitModal .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

#characterLimitModal .btn-secondary {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#characterLimitModal .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Common modal animations */
#errorModal .modal-dialog,
#warningModal .modal-dialog,
#characterLimitModal .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

#errorModal.show .modal-dialog,
#warningModal.show .modal-dialog,
#characterLimitModal.show .modal-dialog {
    transform: scale(1);
}

/* Release Notes Styles */
.release-notes .card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.release-notes .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.release-notes .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1rem 1.5rem;
}

.release-notes .card-header h5 {
    font-weight: 600;
    margin: 0;
}

.release-notes .card-body {
    padding: 1.5rem;
}

.release-notes h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.release-notes ul li {
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.release-notes ul li:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.release-notes .text-muted {
    font-size: 0.875rem;
    font-style: italic;
}

/* Responsive adjustments for release notes */
@media (max-width: 768px) {
    .release-notes .card-body {
        padding: 1rem;
    }
    
    .release-notes .row {
        flex-direction: column;
    }
    
    .release-notes .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .release-notes .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Compact Release Notes for Game Cards */
.release-notes .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.release-notes .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.release-notes .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 8px 8px 0 0 !important;
    border: none;
}

.release-notes .card-header h6 {
    font-weight: 600;
    font-size: 0.9rem;
}

.release-notes .card-body {
    padding: 0.75rem;
}

.release-notes h6 {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

.release-notes ul li {
    padding: 0.125rem 0;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.release-notes ul li:hover {
    background-color: #f8f9fa;
    border-radius: 3px;
    padding-left: 0.25rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.release-notes .text-muted {
    font-size: 0.75rem;
    font-style: italic;
}

/* Mobile Release Notes Styles */
.release-notes .d-md-none .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.release-notes .d-md-none .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.release-notes .d-md-none .text-primary {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Desktop Release Notes Styles */
.release-notes .d-none.d-md-block {
    /* Additional styling for desktop version if needed */
}

.release-notes .d-none.d-md-block ul li {
    font-size: 0.8rem;
    line-height: 1.4;
}

.release-notes .d-none.d-md-block ul li i {
    width: 12px;
    text-align: center;
}

/* Enhanced mobile badges */
.release-notes .d-md-none .badge.bg-danger {
    background-color: #dc3545 !important;
}

.release-notes .d-md-none .badge.bg-info {
    background-color: #17a2b8 !important;
}

.release-notes .d-md-none .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.release-notes .d-md-none .badge.bg-success {
    background-color: #28a745 !important;
}

/* Desktop section spacing */
.release-notes .d-none.d-md-block h6.mt-3 {
    margin-top: 0.75rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Mobile badge hover effects */
.release-notes .d-md-none .badge {
    transition: all 0.2s ease;
    cursor: default;
}

.release-notes .d-md-none .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for compact release notes */
@media (max-width: 768px) {
    .release-notes .card-body {
        padding: 0.5rem;
    }
    
    .release-notes h6 {
        font-size: 0.8rem;
    }
    
    .release-notes ul li {
        font-size: 0.75rem;
    }
}

/* RPG Game Card Styles */
.rpg-game-card {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rpg-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.rpg-game-card .card-body {
    padding: 2rem;
}

.rpg-game-card .card-title {
    color: #007bff;
    font-weight: 700;
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.rpg-game-card h6 {
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e9ecef;
}

.rpg-game-card ul li {
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.rpg-game-card ul li:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.rpg-game-card .btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rpg-game-card .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Level Up Modal Styles */
#levelUpModal .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-bottom: none;
    color: white;
}

#levelUpModal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#levelUpModal .alert-success {
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
}

#levelUpModal .ability-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

#levelUpModal .ability-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

#levelUpModal .ability-card.border-primary {
    border-color: #007bff !important;
    background-color: #e3f2fd !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

#levelUpModal .ability-card.bg-primary {
    background-color: #007bff !important;
    color: white !important;
    border-color: #0056b3 !important;
}

#levelUpModal .ability-card h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#levelUpModal .ability-card .card-text {
    font-size: 0.8rem;
    margin-bottom: 0;
}

#levelUpModal .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#levelUpModal .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

#levelUpModal .btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#levelUpModal .btn-secondary {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#levelUpModal .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Modal animation */
#levelUpModal .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

#levelUpModal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive adjustments for RPG game card */
@media (max-width: 1200px) {
    .rpg-game-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .rpg-game-card .card-body {
        padding: 1rem;
    }
    
    .rpg-game-card .card-title {
        font-size: 1.25rem;
    }
    
    .rpg-game-card h6 {
        font-size: 0.9rem;
    }
    
    .rpg-game-card ul li {
        font-size: 0.8rem;
    }
    
    .rpg-game-card .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Level up modal responsive */
    #levelUpModal .ability-card {
        margin-bottom: 0.5rem;
    }
    
    #levelUpModal .ability-card h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .rpg-game-card .card-body {
        padding: 0.75rem;
    }
    
    .rpg-game-card .card-title {
        font-size: 1.1rem;
    }
    
    .rpg-game-card h6 {
        font-size: 0.85rem;
    }
    
    .rpg-game-card ul li {
        font-size: 0.75rem;
    }
    
    /* Level up modal mobile */
    #levelUpModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #levelUpModal .ability-card h6 {
        font-size: 0.8rem;
    }
    
    #levelUpModal .ability-card .card-text {
        font-size: 0.7rem;
    }
}

