* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00d4ff;
    --secondary-purple: #a855f7;
    --dark-bg: #0a0e27;
    --card-bg: rgba(15, 23, 42, 0.8);
    --tier1-color: #e0e0e0;
    --tier2-color: #4ade80;
    --tier3-color: #3b82f6;
    --tier4-color: #a855f7;
    --tier5-color: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Background Elements - Removed */

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Background Toram Images */
.background-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-sword {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 150px;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.bg-magic {
    position: absolute;
    top: 50%;
    right: 8%;
    width: 200px;
    opacity: 0.2;
    animation: rotate 30s linear infinite;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6));
}

.bg-crystal-left {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 120px;
    opacity: 0.18;
    animation: pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.bg-shield {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    opacity: 0.12;
    animation: float 10s ease-in-out infinite 2s;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.4));
}

.bg-crystal-right {
    position: absolute;
    top: 25%;
    right: 15%;
    width: 100px;
    opacity: 0.16;
    animation: pulse 5s ease-in-out infinite 1s;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#app {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
    filter: brightness(0.8);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.3) 0%, rgba(10, 14, 39, 0.7) 100%);
}

.logo-container {
    position: relative;
    display: inline-block;
    padding: 40px 60px;
    z-index: 1;
}

.toram-logo {
    margin-bottom: 20px;
}

.toram-logo-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    letter-spacing: 4px;
    position: relative;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Navigation */
.tier-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--card-bg);
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.category-btn:hover .category-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.4));
}

.category-btn:hover {
    color: var(--text-primary);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.category-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.tier-btn {
    background: var(--card-bg);
    border: 2px solid transparent;
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tier-icon-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.tier-btn:hover .tier-icon-svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 212, 255, 0.5));
}

.tier-btn.active .tier-icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.7));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

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

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

.tier-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.tier-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.tier-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tier-btn:hover .tier-icon {
    transform: scale(1.2);
}

/* Tier Icon Specific Styles */
.tier-1-icon { animation: tier1Shine 3s ease-in-out infinite; }
.tier-2-icon { animation: tier2Rotate 4s linear infinite; }
.tier-3-icon { animation: tier3Glow 2s ease-in-out infinite; }
.tier-4-icon { animation: tier4Sparkle 3s ease-in-out infinite; }
.tier-5-icon { animation: tier5Golden 2.5s ease-in-out infinite; }

@keyframes tier1Shine {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(224, 224, 224, 0.3)); }
    50% { filter: drop-shadow(0 2px 8px rgba(224, 224, 224, 0.6)); }
}

@keyframes tier2Rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes tier3Glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5)); }
    50% { filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.9)); }
}

@keyframes tier4Sparkle {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(168, 85, 247, 1)); }
}

@keyframes tier5Golden {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 1));
        transform: scale(1.05);
    }
}

/* Search */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input:focus ~ .search-icon {
    stroke: var(--primary-blue);
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}

/* Info Panel */
.info-panel {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-blue);
    filter: drop-shadow(0 2px 6px rgba(0, 212, 255, 0.4));
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Notes Section */
.notes-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.notes-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notes-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-blue);
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.5));
}

.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.note-card {
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.note-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.note-card h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 212, 255, 0.4));
}

.note-icon svg {
    width: 20px;
    height: 20px;
}

.note-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.note-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.note-card li {
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.note-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Traits Container */
.traits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.trait-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

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

.trait-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.trait-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.trait-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.trait-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.trait-tier {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-1 { background: rgba(224, 224, 224, 0.2); color: var(--tier1-color); }
.tier-2 { background: rgba(74, 222, 128, 0.2); color: var(--tier2-color); }
.tier-3 { background: rgba(59, 130, 246, 0.2); color: var(--tier3-color); }
.tier-4 { background: rgba(168, 85, 247, 0.2); color: var(--tier4-color); }
.tier-5 { background: rgba(251, 191, 36, 0.2); color: var(--tier5-color); }

.trait-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.trait-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.stat-badge {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary-blue);
}

/* Footer - Simplified */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.5) 100%);
    position: relative;
}

.footer-banner {
    display: none;
}

.footer-banner-img {
    display: none;
}

.game-info {
    margin-bottom: 40px;
}

.game-logo-footer {
    margin-bottom: 15px;
}

.footer-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

.credits {
    max-width: 900px;
    margin: 0 auto;
}

.credits-title {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 30px 0 15px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.credit-icon {
    width: 22px;
    height: 22px;
    stroke: var(--primary-blue);
    filter: drop-shadow(0 2px 6px rgba(0, 212, 255, 0.4));
}

.website-credit {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.divider {
    color: rgba(0, 212, 255, 0.3);
    margin: 25px 0;
    font-size: 0.8rem;
}

.credits p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.credits .small {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.contributors {
    line-height: 1.8;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .tier-navigation {
        gap: 10px;
    }
    
    .tier-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .traits-container {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
