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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sw-font-family-primary);
    line-height: var(--sw-leading-normal);
    color: var(--sw-white);
    background: linear-gradient(135deg, var(--sw-dark-bg-primary) 0%, var(--sw-dark-bg-secondary) 50%, var(--sw-dark-bg-tertiary) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== CSS VARIABLES (Legacy - use design tokens instead) ===== */
:root {
    --primary-gradient: linear-gradient(135deg, var(--sw-brand-primary) 0%, var(--sw-brand-secondary) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--sw-brand-accent) 0%, var(--sw-brand-highlight) 100%);
    --accent-gradient: linear-gradient(135deg, var(--sw-brand-accent) 0%, var(--sw-brand-highlight) 100%);
    --dark-gradient: linear-gradient(135deg, var(--sw-dark-bg-primary) 0%, var(--sw-dark-bg-secondary) 100%);
    --glass-bg: var(--sw-glass-background);
    --glass-border: var(--sw-glass-border);
    --shadow-light: var(--sw-shadow-sm);
    --shadow-medium: var(--sw-shadow-md);
    --shadow-heavy: var(--sw-shadow-xl);
    --border-radius: var(--sw-radius-xl);
    --transition: var(--sw-transition-base);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* ===== ENHANCED BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
}

.btn-outline:hover {
    background: #667eea;
    color: #0f0f23;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: #e2e8f0;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* ===== ENHANCED NAVIGATION ===== */
.navbar {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.nav-logo .logo-img {
    height: 40px;
}

/* Pre-Registration Section */
.pre-registration {
    padding: 6rem 0;
}

.pre-reg-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Space between rewards and form */
    align-items: center; /* Center content horizontally */
}

.pre-reg-rewards {
    width: 100%;
    max-width: 1200px;
}

.pre-reg-title {
    margin-bottom: 0.5rem;
}

.pre-reg-subtitle {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.8);
}

/* Horizontal roadmap + progress */
.roadmap-container {
    width: 100%;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35, #ffb347);
    transition: width 600ms ease;
}

/* Shimmer/sparkle overlay on progress for gacha feel */
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.35) 30%, rgba(255,255,255,0.0) 60%)
        0 0 / 200% 100% no-repeat;
    mix-blend-mode: screen;
    animation: shine-sweep 2.2s linear infinite;
}

@keyframes shine-sweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.roadmap-milestones {
    /* Responsive grid layout for milestones */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    justify-items: center;
    align-items: start;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 18px auto 0 auto;
    padding: 18px 16px 0 16px;
}

.milestone {
    position: relative;
    text-align: center;
}

/* Guide tick up to the progress bar */
.milestone::before {
    content: '';
    position: absolute;
    top: -18px; /* reaches up toward the progress bar */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    border-radius: 1px;
}

.milestone-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
}

/* Multiple icons layout - side by side */
.milestone-icon.multiple-icons {
    gap: 2px;
    padding: 4px;
}

.milestone-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Smaller images when multiple icons are present */
.milestone-icon.multiple-icons img {
    width: 22px;
    height: 22px;
}

.milestone-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Reward line under label for clarity */
.milestone-reward {
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.milestone-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 6px);
    white-space: nowrap;
    background: rgba(10,10,26,0.95);
    border: 1px solid var(--glass-border);
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    box-shadow: var(--shadow-medium);
    z-index: 2;
}

.milestone:hover .milestone-tooltip {
    display: block;
}

/* Rows no longer needed with grid spacing */
.roadmap-milestones .milestone { margin-top: 0; }
.milestone.row-up, .milestone.row-down { margin-top: 0; }
.milestone.row-up::before, .milestone.row-down::before { height: 18px; top: -18px; }

/* Achieved milestone visual state */
.milestone.achieved .milestone-icon {
    border-color: #ffb347;
    box-shadow: 0 8px 24px rgba(255, 179, 71, 0.35), 0 0 0 1px rgba(255,179,71,0.35) inset;
}
.milestone.achieved .milestone-label {
    color: #ffb347;
    font-weight: 700;
}

/* Highlight the next milestone goal */
.milestone.next-goal .milestone-icon {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.35), 0 10px 28px rgba(255,255,255,0.25);
    animation: pulse 1.6s ease-in-out infinite;
}
.milestone.next-goal .milestone-label {
    color: #ffffff;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Rarity frames and colors */
.rarity-common .milestone-icon { border-color: #9aa0a6; background: linear-gradient(180deg, rgba(154,160,166,0.18), rgba(0,0,0,0.1)); }
.rarity-rare .milestone-icon { border-color: #4aa3ff; box-shadow: 0 0 12px rgba(74,163,255,0.35); background: linear-gradient(180deg, rgba(74,163,255,0.15), rgba(0,0,0,0.08)); }
.rarity-epic .milestone-icon { border-color: #a970ff; box-shadow: 0 0 14px rgba(169,112,255,0.4); background: linear-gradient(180deg, rgba(169,112,255,0.18), rgba(0,0,0,0.08)); }
.rarity-legendary .milestone-icon { border-color: #ffd700; box-shadow: 0 0 16px rgba(255,215,0,0.45); background: linear-gradient(180deg, rgba(255,215,0,0.2), rgba(0,0,0,0.08)); }
.rarity-common .milestone-label { color: #cfd3d7; }
.rarity-rare .milestone-label { color: #7fc1ff; }
.rarity-epic .milestone-label { color: #d4b3ff; }
.rarity-legendary .milestone-label { color: #ffe487; }

/* Next Reward spotlight */
.next-reward-spotlight {
    margin: 18px 0 8px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}
.spotlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.spotlight-icon img { width: 40px; height: 40px; object-fit: contain; }
.spotlight-body { display: flex; flex-direction: column; gap: 4px; }
.spotlight-title { font-weight: 700; color: #fff; }
.spotlight-reward { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.spotlight-badge {
    padding: 6px 10px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    color: #151515;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(255, 179, 71, 0.35);
    animation: badge-pulse 1.6s ease-in-out infinite;
}
@keyframes badge-pulse { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-2px);} }

/* ===== ALLIES SHOWCASE SECTION ===== */
.allies-section {
    margin-top: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

/* Header with title and filters */
.allies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.allies-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Filter controls */
.allies-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #e2e8f0;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    min-width: 120px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.filter-input {
    min-width: 200px;
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Allies Grid */
.allies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for allies grid */
.allies-grid::-webkit-scrollbar {
    width: 8px;
}

.allies-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.allies-grid::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

.allies-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c5a 0%, #ff7c42 100%);
}

/* Ally Card Styling */
.ally-card {
    position: relative;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.ally-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ally-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 107, 53, 0.4);
}

.ally-card:hover::before {
    opacity: 1;
}

/* Ally Art Container */
.ally-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.ally-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.ally-card:hover .ally-art img {
    transform: scale(1.1);
}

/* Hover overlay with stats */
.ally-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.8) 70%, 
        rgba(0, 0, 0, 0.95) 100%
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ally-card:hover .ally-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ally-overlay-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Stats Grid */
.ally-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ally-stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.ally-stats li span {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 600;
}

.ally-stats li b {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 2px;
}

/* Ally Info */
.ally-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.ally-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
}

.ally-role,
.ally-rarity {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Role Colors */
.ally-role {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.role-dps .ally-role,
[data-role="DPS"] .ally-role {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.role-tank .ally-role,
[data-role="Tank"] .ally-role {
    background: rgba(74, 163, 255, 0.2);
    color: #4aa3ff;
    border: 1px solid rgba(74, 163, 255, 0.3);
}

.role-support .ally-role,
[data-role="Support"] .ally-role {
    background: rgba(169, 112, 255, 0.2);
    color: #a970ff;
    border: 1px solid rgba(169, 112, 255, 0.3);
}

/* Rarity Colors and Effects */
.ally-rarity {
    font-weight: 700;
}

.rarity-common,
[data-rarity="Common"] {
    --rarity-color: #9aa0a6;
}

.rarity-rare,
[data-rarity="Rare"] {
    --rarity-color: #4aa3ff;
}

.rarity-epic,
[data-rarity="Epic"] {
    --rarity-color: #a970ff;
}

.rarity-legendary,
[data-rarity="Legendary"] {
    --rarity-color: #ffd700;
}

.ally-card[data-rarity="Common"] .ally-rarity {
    background: rgba(154, 160, 166, 0.2);
    color: #9aa0a6;
    border: 1px solid rgba(154, 160, 166, 0.3);
}

.ally-card[data-rarity="Rare"] .ally-rarity {
    background: rgba(74, 163, 255, 0.2);
    color: #4aa3ff;
    border: 1px solid rgba(74, 163, 255, 0.3);
}

.ally-card[data-rarity="Epic"] .ally-rarity {
    background: rgba(169, 112, 255, 0.2);
    color: #a970ff;
    border: 1px solid rgba(169, 112, 255, 0.3);
}

.ally-card[data-rarity="Legendary"] .ally-rarity {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Rarity Border Effects */
.ally-card.rarity-common {
    border-color: rgba(154, 160, 166, 0.3);
}

.ally-card.rarity-rare {
    border-color: rgba(74, 163, 255, 0.4);
    box-shadow: 0 0 20px rgba(74, 163, 255, 0.1);
}

.ally-card.rarity-epic {
    border-color: rgba(169, 112, 255, 0.4);
    box-shadow: 0 0 20px rgba(169, 112, 255, 0.1);
}

.ally-card.rarity-legendary {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Special animation for legendary cards */
.ally-card.rarity-legendary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffb347, #ffd700);
    background-size: 200% 200%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Win animation for gacha pulls */
.ally-card.win {
    animation: celebrate 1s ease-out;
    box-shadow: 0 0 0 3px #ffd700, 0 8px 32px rgba(255, 215, 0, 0.4);
}

@keyframes celebrate {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-2deg); }
    50% { transform: scale(1.1) rotate(2deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Gacha Actions (if used) */
.gacha-actions {
    margin-top: 2rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gacha {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-gacha::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-gacha.primary {
    background: linear-gradient(135deg, #4aa3ff, #7fbcff);
    color: #0d1730;
    box-shadow: 0 4px 15px rgba(74, 163, 255, 0.3);
}

.btn-gacha.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 163, 255, 0.4);
}

.btn-gacha.secondary {
    background: linear-gradient(135deg, #a970ff, #d4b3ff);
    color: #160b2b;
    box-shadow: 0 4px 15px rgba(169, 112, 255, 0.3);
}

.btn-gacha.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(169, 112, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .allies-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .allies-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .allies-filters {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .allies-section {
        padding: 1.5rem;
    }
    
    .allies-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        max-height: 500px;
    }
    
    .allies-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-select,
    .filter-input {
        width: 100%;
    }
    
    .ally-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .ally-stats li {
        padding: 4px;
    }
    
    .ally-stats li span {
        font-size: 0.6rem;
    }
    
    .ally-stats li b {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .allies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ally-overlay {
        padding: 12px;
    }
    
    .ally-overlay-title {
        font-size: 1rem;
    }
    
    .ally-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Confetti pieces */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    opacity: 0.9;
    transform: translateY(-20px);
    will-change: transform, opacity;
    border-radius: 2px;
}

.pre-reg-form-container {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 800px;
}

.pre-reg-form .form-step h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.pre-reg-form .form-group {
    margin-bottom: 1.5rem;
}

.pre-reg-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pre-reg-form .form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.pre-reg-form .form-group input:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.reward-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* ===== PRE-GAME DAILY EVENT STYLES ===== */
.pre-game-event-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin: 3rem auto;
    max-width: 800px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
}

.event-header {
    text-align: center;
    margin-bottom: 2rem;
}

.event-header h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.event-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Login Required Section */
.login-required-section {
    text-align: center;
}

.reward-preview {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.daily-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.daily-reward-item .reward-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.6));
}

.reward-amount {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.login-text {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.login-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Daily Claim Section */
.daily-claim-section {
    text-align: center;
}

.user-welcome {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-welcome h4 {
    color: #10b981;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.user-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.currency-icon {
    width: 24px;
    height: 24px;
}

.daily-claim-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-rewards h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.reward-items {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.reward-item .reward-icon {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.7));
}

.reward-item .reward-amount {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.3rem;
}

.claim-button-container {
    text-align: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    min-width: 220px;
    transition: all 0.3s ease;
}

.btn-large:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.claim-timer {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-weight: 600;
    display: inline-block;
}

.claim-timer i {
    margin-right: 0.5rem;
}

.claim-streak {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.claim-streak h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.streak-info {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.streak-count, .total-claims {
    color: var(--text-secondary);
    font-weight: 600;
}

.streak-count span, .total-claims span {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Button Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Success Animation */
@keyframes claimSuccess {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.05) rotate(-3deg); }
    75% { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.claim-success {
    animation: claimSuccess 0.8s ease-in-out;
}

/* Reward notification animation */
@keyframes rewardFloat {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    50% { transform: translateY(-30px) scale(1); opacity: 1; }
    100% { transform: translateY(-60px) scale(1.1); opacity: 0; }
}

.reward-notification {
    position: absolute;
    pointer-events: none;
    animation: rewardFloat 2s ease-out forwards;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 0 10px currentColor;
}

/* Mobile responsiveness for daily event */
@media (max-width: 768px) {
    .pre-game-event-container {
        padding: 2rem;
        margin: 2rem auto;
    }
    
    .reward-preview {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .reward-items {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .streak-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .login-actions {
        flex-direction: column;
        align-items: center;
    }
}

.milestone-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Footer */
.footer-redesigned {
    background: #0a0a1a;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-brand-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    color: #ff6b35;
    transform: translateY(-2px);
}

.footer-links-section {
    display: flex;
    gap: 3rem;
    flex: 2;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: #ff6b35;
    padding-left: 5px;
}

.footer-newsletter-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-newsletter-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-newsletter-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.footer-newsletter-form button {
    padding: 0.8rem 1rem;
    border: none;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
}

.footer-newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 20px 0;
}

.footer-bottom-bar p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== CHARACTER DASHBOARD STYLES ===== */
.character-dashboard {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

/* Character Header */
.character-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.character-avatar {
    position: relative;
    flex-shrink: 0;
}

.character-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    transition: var(--transition);
}

.character-avatar:hover img {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.change-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.change-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.character-info {
    flex: 1;
}

.character-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.character-level {
    margin-bottom: 1.5rem;
}

.level-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.xp-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.xp-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

.xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.character-stats-summary {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-item i {
    color: #ff6b35;
    font-size: 1.2rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Stats Panel */
.stats-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

.stats-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-panel h2 i {
    color: #ff6b35;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.stat-card .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-gradient);
    margin-bottom: 1rem;
}

.stat-card .stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.stat-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-value span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4facfe;
}

.stat-upgrade {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stat-upgrade:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.skill-points {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
}

.skill-points h3 {
    color: #ff6b35;
    font-weight: 600;
}

.skill-points i {
    color: #f7931e;
    margin-right: 0.5rem;
}

/* Equipment Panel */
.equipment-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

.equipment-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-panel h2 i {
    color: #ff6b35;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.equipment-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.equipment-slot:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-2px);
}

.slot-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.slot-item {
    margin-bottom: 0.5rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-slot {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.equipped-item {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.equipped-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.item-bonus {
    font-size: 0.7rem;
    opacity: 0.9;
}

.slot-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.equipment-stats {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.equipment-stats h3 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bonus-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bonus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bonus-stat {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.bonus-value {
    color: #4facfe;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Progression Panel */
.progression-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
}

.progression-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progression-panel h2 i {
    color: #ff6b35;
}

.achievements-section {
    margin-bottom: 2rem;
}

.achievements-section h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition);
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-icon i {
    color: white;
    font-size: 1.2rem;
}

.achievement-info h4 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.achievement-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.skills-section h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skill-trees {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-tree {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.skill-tree h4 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.skill-level {
    color: #4facfe;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
}

/* Activity Panel */
.activity-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    grid-column: 1 / -1;
}

.activity-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-panel h2 i {
    color: #ff6b35;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.activity-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    min-width: 80px;
    flex-shrink: 0;
}

.activity-text {
    color: #e2e8f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-text i {
    color: #ff6b35;
    font-size: 1rem;
}

/* Equipment Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: #ff6b35;
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

.equipment-detail {
    text-align: center;
}

.equipment-detail h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.item-stats {
    margin-bottom: 2rem;
}

.stat-bonus {
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin: 0.5rem;
    display: inline-block;
}

.item-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    animation: notificationSlideIn 0.3s ease;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.notification-message {
    color: #e2e8f0;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.notification-close:hover {
    color: #ff6b35;
}

.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-warning {
    border-left: 4px solid #f39c12;
}

.notification-info {
    border-left: 4px solid #3498db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .character-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .character-stats-summary {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .character-dashboard {
        padding-top: 80px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .character-header {
        padding: 1.5rem;
    }
    
    .character-info h1 {
        font-size: 2rem;
    }
    
    .character-stats-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        gap: 1rem;
    }
    
    .stats-panel,
    .equipment-panel,
    .progression-panel,
    .activity-panel {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .character-avatar img {
        width: 80px;
        height: 80px;
    }
    
    .change-avatar-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .character-info h1 {
        font-size: 1.5rem;
    }
    
    .stats-panel h2,
    .equipment-panel h2,
    .progression-panel h2,
    .activity-panel h2 {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .equipment-slot {
        min-height: 100px;
        padding: 0.8rem;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .activity-time {
        min-width: auto;
    }
}

/* ===== LEADERBOARDS STYLES ===== */
.leaderboards-dashboard {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

/* Leaderboards Header */
.leaderboards-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.leaderboards-header h1 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.leaderboards-header h1 i {
    color: #f7931e;
    background: none;
    -webkit-text-fill-color: #f7931e;
}

.leaderboards-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Controls */
.leaderboard-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-container {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.filter-select option {
    background: #1a1a2e;
    color: white;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tab-btn i {
    font-size: 1rem;
}

/* Podium Section */
.podium-section {
    margin-bottom: 3rem;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.podium-place {
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.podium-place:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.first-place {
    order: 2;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border-color: rgba(255, 107, 53, 0.3);
    transform: scale(1.1);
}

.second-place {
    order: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.third-place {
    order: 3;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-color: rgba(79, 172, 254, 0.3);
}

.podium-rank {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
}

.first-place .podium-rank {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.second-place .podium-rank {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.third-place .podium-rank {
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.podium-crown {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #f7931e;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.first-place .podium-avatar {
    width: 100px;
    height: 100px;
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.podium-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.first-place .podium-name {
    font-size: 1.4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podium-score {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.podium-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.podium-stats span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.podium-stats i {
    color: #ff6b35;
}

/* Rankings Section */
.rankings-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    margin-bottom: 3rem;
}

.rankings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rankings-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.rankings-header h2 i {
    color: #ff6b35;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Rankings Table */
.rankings-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.rankings-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.rankings-table th.sortable {
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.rankings-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ff6b35;
}

.rankings-table th i {
    margin-left: 0.5rem;
    opacity: 0.6;
}

.rankings-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.player-row {
    transition: var(--transition);
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.player-row.online {
    border-left: 3px solid #2ecc71;
}

/* Table Cells */
.rank-cell {
    text-align: center;
    font-weight: 700;
    position: relative;
}

.rank-number {
    font-size: 1.1rem;
    color: #e2e8f0;
}

.rank-1 .rank-number {
    color: #f7931e;
    font-size: 1.3rem;
}

.rank-2 .rank-number {
    color: #667eea;
    font-size: 1.2rem;
}

.rank-3 .rank-number {
    color: #4facfe;
    font-size: 1.2rem;
}

.rank-crown {
    position: absolute;
    top: -5px;
    right: -5px;
    color: #f7931e;
    font-size: 0.8rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.player-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}

.player-status {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.player-status.online {
    color: #2ecc71;
}

.player-status.offline {
    color: rgba(255, 255, 255, 0.5);
}

.player-status i {
    font-size: 0.6rem;
}

.level-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.power-value,
.wealth-value {
    font-weight: 600;
    color: #4facfe;
    font-size: 1rem;
}

.mob-name,
.location-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.view-btn {
    background: var(--accent-gradient);
    color: white;
}

.view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.compare-btn {
    background: var(--secondary-gradient);
    color: white;
}

.compare-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.message-btn {
    background: var(--primary-gradient);
    color: white;
}

.message-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.pagination-number:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.gameplay-icon {
    max-width: 100px;
    height: auto;
    display: block; /* To remove extra space below image */
    margin: 0 auto; /* Center the image if it's in a block container */
}

.ally-grid img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== PRE-REGISTRATION REWARD ICONS ===== */
.reward-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin: 0 2px;
    border-radius: 4px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}


.milestone .reward-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced milestone styling */
.milestone {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    max-width: 140px;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.milestone:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-medium);
}

.milestone-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b35;
    margin: 8px 0 4px;
}

.milestone-reward {
    font-size: 0.75rem;
    color: #cbd5e0;
    text-align: center;
    line-height: 1.3;
}

/* Responsive adjustments for milestones */
/* Responsive milestone styles */
@media (max-width: 1024px) {
    .roadmap-milestones {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-width: 800px;
    }
    
    .milestone {
        max-width: 120px;
        min-height: 110px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .roadmap-milestones {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 400px;
    }
    
    .milestone {
        max-width: 100px;
        min-height: 100px;
        padding: 8px;
    }
    
    .milestone-icon {
        width: 40px;
        height: 40px;
    }
    
    .milestone-icon img {
        width: 18px;
        height: 18px;
    }
    
    .milestone-icon.multiple-icons img {
        width: 14px;
        height: 14px;
    }
    
    .milestone-label {
        font-size: 0.75rem;
    }
    
    .milestone-reward {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .roadmap-milestones {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        max-width: 300px;
    }
    
    .milestone {
        max-width: 90px;
        min-height: 90px;
        padding: 6px;
    }
    
    .milestone-icon {
        width: 32px;
        height: 32px;
    }
    
    .milestone-icon img {
        width: 16px;
        height: 16px;
    }
    
    .milestone-icon.multiple-icons img {
        width: 12px;
        height: 12px;
    }
    
    .milestone-label {
        font-size: 0.7rem;
    }
    
    .milestone-reward {
        font-size: 0.6rem;
    }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: #ff6b35;
    font-size: 1.3rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 1;
}

.modal-close:hover {
    color: #ff6b35;
    transform: scale(1.1);
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
    padding: 0;
    width: auto;
    height: auto;
}

.password-toggle:hover {
    color: #ff6b35;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: #ff6b35;
}

.forgot-password {
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    color: #f7931e;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-footer a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: #f7931e;
    text-decoration: underline;
}

/* Modal Animations */
@media (prefers-reduced-motion: no-preference) {
    .modal {
        animation-duration: 0.3s;
        animation-fill-mode: both;
    }
    
    .modal.show {
        animation-name: modalFadeIn;
    }
    
    .modal-content {
        animation-duration: 0.3s;
        animation-fill-mode: both;
    }
    
    .modal.show .modal-content {
        animation-name: modalSlideIn;
        animation-delay: 0.1s;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== PROGRESSION SYSTEM UI STYLES ===== */

/* Story Explanation Modal */
.story-explanation-modal {
    max-width: 600px;
    width: 95%;
}

.story-explanation-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.story-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.story-category-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
}

.story-category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.story-category-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.story-explanation-content {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.story-explanation-content h3 {
    color: #ff6b35;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.story-explanation-content h3:first-child {
    margin-top: 0;
}

.story-explanation-content p {
    margin-bottom: 1rem;
}

.story-explanation-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.story-explanation-content li {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Gameplay Guidance UI */
.gameplay-guidance-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.gameplay-guidance-container.show {
    transform: translateX(0);
}

.guidance-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guidance-header h3 {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guidance-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.guidance-toggle:hover {
    color: #ff6b35;
}

.guidance-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.objective-item {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.objective-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.objective-item.active {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.objective-title {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.objective-category {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.objective-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.objective-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.objective-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.objective-progress-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-align: right;
}

.hint-container {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 8px;
}

.hint-title {
    color: #4facfe;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hint-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Achievement System UI */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.achievement-notification.show {
    transform: translateX(0);
}

.achievement-header {
    padding: 1rem;
    background: var(--primary-gradient);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.achievement-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.achievement-title {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.achievement-body {
    padding: 1rem;
}

.achievement-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.achievement-rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.achievement-reward {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    color: #4facfe;
    font-weight: 500;
}

/* Progress Tracking UI */
.progress-tracker {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    padding: 1rem;
    min-width: 250px;
    max-width: 300px;
}

.progress-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-tracker-title {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.progress-tracker-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.progress-tracker-toggle:hover {
    color: #ff6b35;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.progress-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.progress-stat-value {
    color: #4facfe;
    font-weight: 600;
}

.progress-session-time {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Character Background Selection UI */
.background-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.background-option {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.background-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
}

.background-option.selected {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.5);
}

.background-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.background-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.background-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.background-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.background-bonuses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.background-bonus {
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: #4facfe;
    font-weight: 500;
}

/* Mobile Responsiveness for Progression UI */
@media (max-width: 768px) {
    .gameplay-guidance-container {
        width: 280px;
        right: 10px;
        top: 80px;
    }

    .achievement-notification {
        width: 300px;
        right: 10px;
    }

    .progress-tracker {
        left: 10px;
        bottom: 10px;
        min-width: 200px;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .gameplay-guidance-container {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }

    .achievement-notification {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }

    .progress-tracker {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
    }
}

/* Visual Storytelling System Styles */
#storyVisualContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
}

.story-scene-display {
    position: relative;
    width: 100%;
    height: 100%;
}

.scene-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: opacity 1s ease-in-out;
}

.character-portraits {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.character-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.character-portrait:hover {
    transform: scale(1.1);
    border-color: #4facfe;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.character-portrait.talking {
    border-color: #00f5ff;
    animation: talking-pulse 2s ease-in-out infinite;
}

@keyframes talking-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(0, 245, 255, 0.7); }
}

.story-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.narrative-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px 20px 20px;
    display: none;
    flex-direction: column;
    pointer-events: auto;
}

.narrative-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.narrative-text strong {
    color: #4facfe;
}

.narrative-text em {
    color: #00f5ff;
}

.character-mention {
    color: #ffd700;
    font-weight: bold;
}

.narrative-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.narrative-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.narrative-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.character-introduction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: auto;
}

.character-intro-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4facfe;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.3);
}

.character-portrait-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px;
    border: 4px solid #4facfe;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.character-name {
    color: #4facfe;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 5px;
}

.character-title {
    color: #00f5ff;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.character-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.character-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.character-trait {
    background: rgba(79, 172, 254, 0.2);
    border: 1px solid rgba(79, 172, 254, 0.5);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.85rem;
    color: #4facfe;
}

.close-intro-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-intro-btn:hover {
    color: #4facfe;
}

.narrative-event-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: auto;
}

.narrative-event-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4facfe;
    border-radius: 15px;
    padding: 25px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.3);
}

.event-illustration {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-title {
    color: #4facfe;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.event-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-impact {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid #4facfe;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.impact-label {
    color: #4facfe;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.impact-details {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.close-event-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.close-event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.scene-transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    pointer-events: auto;
    transition: opacity 1s ease-in-out;
}

.transition-content {
    text-align: center;
    padding: 40px;
    border: 2px solid #4facfe;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

.scene-title {
    color: #4facfe;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.scene-description {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Mobile Responsiveness for Visual Storytelling */
@media (max-width: 768px) {
    .character-portraits {
        bottom: 10px;
        left: 10px;
        gap: 10px;
    }

    .character-portrait {
        width: 60px;
        height: 60px;
    }

    .story-illustration {
        width: 300px;
        height: 200px;
    }

    .character-intro-content {
        padding: 20px;
        margin: 20px;
    }

    .narrative-event-content {
        padding: 20px;
        margin: 20px;
    }

    .narrative-text {
        font-size: 1rem;
    }

    .scene-title {
        font-size: 1.5rem;
    }

    .scene-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .character-portraits {
        gap: 8px;
    }

    .character-portrait {
        width: 50px;
        height: 50px;
    }

    .story-illustration {
        width: 250px;
        height: 150px;
    }

    .narrative-controls {
        flex-direction: column;
    }

    .transition-content {
        padding: 20px;
        margin: 10px;
    }
}
