:root {
    --bg: #0b0810;
    --bg-2: rgba(255,255,255,0.04);
    --bg-3: rgba(255,255,255,0.07);
    --card-bg: rgba(18,14,26,0.6);
    --card-bg-hover: rgba(26,20,36,0.75);
    --card-border: rgba(255,255,255,0.08);
    --card-border-hover: rgba(157,78,221,0.3);

    --accent: #7b2cbf;
    --accent-light: #9d4edd;
    --accent-dark: #5a189a;
    --accent-glow: rgba(157, 78, 221, 0.25);

    --text: #f3eef7;
    --text-muted: rgba(243,238,247,0.55);
    --text-soft: rgba(243,238,247,0.78);

    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;

    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'Monocraft';
    src: url('https://cdn.jsdelivr.net/gh/IdreesInc/Monocraft@main/dist/Monocraft-ttf/Monocraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 12% 8%, rgba(123,44,191,0.12), transparent 70%),
        radial-gradient(ellipse 55% 45% at 88% 18%, rgba(58,42,140,0.10), transparent 70%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.4) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11,8,16,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(11,8,16,0.96);
    border-bottom-color: rgba(255,255,255,0.12);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: var(--text);
}

.logo-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 32px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0.3) 0%,
            rgba(0,0,0,0.6) 50%,
            rgba(10, 10, 10, 1) 100%),
        url('image/1.webp') center/cover no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(123, 44, 191, 0.10);
    border: 1px solid rgba(123, 44, 191, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.75rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .accent {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--bg-2);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-title .accent {
    color: var(--accent-light);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.cards-grid {
    display: grid;
    gap: 24px;
}

.cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(123, 44, 191, 0.12);
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.card p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent-light), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-year {
    flex: 0 0 120px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--accent-light);
    text-align: center;
    letter-spacing: -0.5px;
}

.timeline-content {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: var(--card-border-hover);
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-soft);
    line-height: 1.65;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: var(--card-border-hover);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg-2);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    background: rgba(11,8,16,0.9);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    color: var(--text);
}

.project-status.active  { border-color: rgba(34, 197, 94, 0.4); color: var(--success); }
.project-status.planned { border-color: rgba(234, 179, 8, 0.4); color: var(--warning); }

.project-content { padding: 24px; }

.project-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-footer {
    position: relative;
    background: rgba(11,8,16,0.95);
    border-top: 1px solid var(--card-border);
    padding: 56px 0 24px;
    overflow: visible;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.2s;
}

.footer-logo:hover {
    color: var(--accent-light);
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-link:hover img {
    opacity: 1;
}

.footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-disclaimer {
        max-width: 100%;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section   { padding: 60px 0; }

    .main-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(11,8,16,0.98);
        padding: 20px;
        border-top: 1px solid var(--card-border);
    }

    .main-nav.active { display: block; }
    .main-nav ul     { flex-direction: column; gap: 16px; }
    .menu-toggle     { display: block; }

    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        gap: 16px;
    }

    .timeline-item::before { left: 20px; }
    .timeline-year { font-size: 1.8rem; text-align: left; }
}

.lore-hero-section { padding: 140px 0 80px; background: var(--bg); }
.lore-hero-content { max-width: 800px; }

.lore-main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.lore-main-title .accent {
    color: var(--accent-light);
}

.lore-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.reveal-blur {
    opacity: 0;
    transform: translate3d(-34px, 20px, 0);
    filter: blur(8px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.reveal-blur-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.lore-grid { display: grid; gap: 16px; margin-bottom: 80px; }

.lore-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--card-border);
}

.lore-card:hover { transform: translateY(-3px); border-color: var(--card-border-hover); }
.lore-card-large { grid-column: 1 / -1; min-height: 500px; }
.lore-card-bg    { position: absolute; inset: 0; z-index: 0; }

.lore-card-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.lore-card-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.75rem;
    opacity: 0.35;
    margin-bottom: 16px;
}

.lore-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.lore-card-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.9;
}

.lore-timeline-section { margin-top: 80px; }

@media (max-width: 768px) {
    .lore-hero-section { padding: 100px 0 60px; }
    .lore-main-title   { font-size: 2.2rem; }
    .lore-card         { min-height: 320px; }
    .lore-card-large   { min-height: 380px; }
    .lore-card-content { padding: 24px; }
    .lore-card-year    { font-size: 2rem; }
}

.chronicles { background: var(--bg); }

.chronicle-featured {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 420px;
    transition: border-color 0.3s;
}

.chronicle-featured:hover {
    border-color: var(--card-border-hover);
}

.chronicle-featured .chronicle-cover {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 0;
}

.chronicle-featured .chronicle-body {
    position: relative;
    z-index: 2;
    min-height: 420px;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg,
        transparent 30%,
        rgba(10, 10, 10, 0.55) 60%,
        rgba(10, 10, 10, 0.92) 100%);
}

.chronicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.chronicle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.chronicle:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
}

.chronicle-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-2);
}

.chronicle-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.chronicle:hover .chronicle-cover img {
    transform: scale(1.06);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.9) 100%);
    pointer-events: none;
}

.era-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', serif;
    font-weight: 700;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    letter-spacing: -4px;
    line-height: 1;
}

.cover-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    z-index: 2;
}

.chronicle-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.chronicle-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tag-current {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.tag-current::before {
    content: '●';
    margin-right: 6px;
    font-size: 0.6rem;
}

.chronicle-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.3px;
}

.chronicle-featured .chronicle-title { font-size: 2rem; }

.chronicle-text {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chronicle-featured .chronicle-text {
    -webkit-line-clamp: 4;
    max-width: 520px;
}

.chronicle-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot-stat {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chronicle-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s;
}

.chronicle-link span { transition: transform 0.2s; }
.chronicle-link:hover { color: #fff; }
.chronicle-link:hover span { transform: translateX(4px); }

@media (max-width: 768px) {
    .chronicle-featured { min-height: 360px; }
    .chronicle-featured .chronicle-body { min-height: 360px; padding: 24px; }
    .chronicle-featured .chronicle-title { font-size: 1.5rem; }
    .era-watermark { font-size: 5rem; }
}

.wardrobe-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.wardrobe-header { margin-bottom: 32px; }

.wardrobe-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.wardrobe-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    line-height: 1.65;
}

.wardrobe-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 60px;
}

.wardrobe-main-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.wardrobe-upload-section { min-height: 480px; }

.wardrobe-dropzone {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 480px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wardrobe-dropzone:hover { background: rgba(123, 44, 191, 0.04); }
.wardrobe-dropzone.dragover {
    background: rgba(123, 44, 191, 0.08);
    border-color: var(--accent);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    width: 100%;
}

.dropzone-icon {
    width: 72px;
    height: 72px;
    background: rgba(123, 44, 191, 0.12);
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.dropzone-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.dropzone-hint {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.dropzone-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-2);
}

.preview-remove {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.9);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.preview-remove:hover {
    background: rgb(220, 38, 38);
    transform: scale(1.05);
}

.wardrobe-controls {
    padding: 24px 32px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.control-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.model-toggle,
.animation-toggle {
    display: flex;
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}

.toggle-btn,
.anim-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active,
.anim-btn.active {
    background: var(--accent);
    color: white;
}

.toggle-btn:hover:not(.active),
.anim-btn:hover:not(.active) { color: var(--text); }

.wardrobe-command-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.command-status {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.status-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

.status-icon.waiting {
    background: rgba(123, 44, 191, 0.12);
    color: var(--accent-light);
}

.status-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.status-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.command-box { display: flex; flex-direction: column; gap: 12px; }

.command-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.command-code {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
}

.command-code code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: var(--accent-light);
    word-break: break-all;
}

.command-copy {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.command-copy:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.command-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.command-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--card-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.command-loading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.command-error {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
}

.error-icon { color: #ef4444; flex-shrink: 0; }

.command-error p {
    margin: 0;
    color: #ef4444;
    font-size: 0.92rem;
}

.btn-generate {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate:hover:not(:disabled) {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wardrobe-instruction {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 32px;
}

.wardrobe-instruction h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.instruction-step { display: flex; gap: 20px; }

.step-number {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    color: #ffffff;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.wardrobe-troubleshoot {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px;
}

.wardrobe-troubleshoot h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.troubleshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.troubleshoot-item {
    padding: 22px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    transition: border-color 0.3s;
}

.troubleshoot-item:hover {
    border-color: var(--card-border-hover);
}

.troubleshoot-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.troubleshoot-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.hidden { display: none; }

#skinCanvas {
    display: block;
    width: 300px;
    height: 400px;
    max-width: 100%;
    background: transparent;
    cursor: grab;
    image-rendering: pixelated;
}

#skinCanvas:active { cursor: grabbing; }

@media (max-width: 900px) {
    .wardrobe-grid { grid-template-columns: 1fr; }
    .wardrobe-upload-section,
    .wardrobe-dropzone { min-height: 360px; }
}

@media (max-width: 768px) {
    .wardrobe-page { padding-top: 80px; }
    .instruction-steps,
    .troubleshoot-grid { grid-template-columns: 1fr; }
    .control-row { flex-direction: column; align-items: flex-start; }
}

.initiation {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

.initiation-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.initiation-steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.initiation-step {
    display: grid;
    grid-template-columns: 72px 1fr 40px;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--card-border);
    transition: background var(--transition);
    position: relative;
}

.initiation-step:first-child { border-top: 1px solid var(--card-border); }

.initiation-step:hover {
    background: rgba(123, 44, 191, 0.04);
}

.step-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    max-width: 600px;
}

.step-arrow {
    font-size: 1.3rem;
    color: var(--text-muted);
    text-align: center;
}

.initiation-step:last-child .step-arrow {
    color: var(--success);
    font-size: 1.5rem;
}

.initiation-cta { text-align: center; margin-top: 56px; }
.initiation-cta .btn { padding: 16px 36px; font-size: 1rem; }

.cta-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .initiation-step {
        grid-template-columns: 56px 1fr;
        gap: 16px;
        padding: 22px 0;
    }
    .step-number { font-size: 1.6rem; }
    .step-content h3 { font-size: 1.1rem; }
    .step-arrow { display: none; }
}

.gradient-page { padding-top: 120px; padding-bottom: 80px; }
.gradient-hero { margin-bottom: 32px; }

.gradient-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.gradient-title .accent {
    color: var(--accent-light);
}

.g-skip {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.g-skip:focus { left: 0; }

.g-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.g-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.g-card-title { font-size: 0.92rem; font-weight: 700; }
.g-card-title-sm {
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text); margin-bottom: 14px;
}
.g-count, .g-format-label {
    font-size: 0.72rem; font-weight: 700; color: var(--accent-light);
}

.g-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.g-toggle {
    padding: 6px 14px;
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.g-toggle:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.g-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.g-toggle-mono { font-family: 'JetBrains Mono', monospace; }

.g-preview-box {
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 28px 20px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.g-preview-wrap { position: relative; width: 100%; text-align: center; }

.g-preview {
    font-family: 'Monocraft', 'Courier New', monospace !important;
    font-size: clamp(26px, 5vw, 56px);
    line-height: 1.2;
    word-break: break-word;
    white-space: pre-wrap;
    margin: 0;
    letter-spacing: 0;
}

.g-preview .g-space { color: transparent; }

.g-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    color: transparent;
    caret-color: var(--text);
    text-align: center;
    font-size: clamp(26px, 5vw, 56px);
    line-height: 1.2;
    font-family: 'Monocraft', 'Courier New', monospace !important;
    word-break: break-word;
    white-space: pre-wrap;
}

.g-preview-wrap.is-hex .g-preview,
.g-preview-wrap.is-hex .g-input {
    font-family: 'JetBrains Mono', monospace !important;
    letter-spacing: 0;
}

.g-gradient-bar-wrap { padding: 0 4px; }

.g-gradient-bar {
    position: relative;
    height: 48px;
    border-radius: var(--radius-sm);
    cursor: crosshair;
    border: 1px solid var(--card-border);
}

.g-marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    transform: translate(-50%,-50%);
    cursor: grab;
    transition: transform 0.15s;
}

.g-marker:hover { transform: translate(-50%,-50%) scale(1.1); }

.g-marker.dragging {
    cursor: grabbing;
    transform: translate(-50%,-50%) scale(1.15);
}

.g-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 16px;
    align-items: start;
}

.g-presets { margin-bottom: 14px; }

.g-presets-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.g-presets-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.g-preset {
    width: 100%;
    height: 30px;
    min-width: 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.g-preset::after {
    content: attr(data-name);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.g-preset:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.g-preset.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--accent);
}

.g-preset:hover::after { opacity: 1; }

.g-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.g-action-btn {
    height: 40px;
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.g-action-btn:hover {
    background: rgba(123,44,191,0.12);
    border-color: var(--accent);
    color: var(--accent-light);
}

.g-action-btn svg { width: 16px; height: 16px; }

.g-colors-list { display: flex; flex-direction: column; gap: 8px; }

.g-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-2);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.g-color-row:hover { border-color: var(--card-border); }

.g-swatch-wrap { flex-shrink: 0; }

.g-swatch {
    width: 36px;
    height: 36px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0;
    background: none;
    cursor: pointer;
}

.g-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.g-swatch::-webkit-color-swatch { border: none; border-radius: 5px; }
.g-swatch::-moz-color-swatch { border: none; border-radius: 5px; }

.g-hex-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.g-pos-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 36px;
    text-align: right;
}

.g-del-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.g-del-btn:hover:not(:disabled) {
    background: rgba(239,68,68,0.15);
    color: var(--danger);
}

.g-del-btn:disabled { opacity: 0.2; cursor: not-allowed; }
.g-del-btn svg { width: 14px; height: 14px; }

.g-formats { display: flex; flex-direction: column; gap: 8px; }

.g-format {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.g-format:hover { background: rgba(255,255,255,0.06); }

.g-format.active {
    background: rgba(123,44,191,0.25);
    border-color: var(--accent);
}

.g-format-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.g-format-desc { font-size: 0.7rem; color: var(--text-muted); }
.g-format.active .g-format-desc { color: rgba(255,255,255,0.8); }
.g-format-hint { margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.g-code-box {
    background: rgba(8,6,12,0.6);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text);
    min-height: 80px;
    max-height: 200px;
    overflow: auto;
    word-break: break-all;
    user-select: all;
    margin-bottom: 12px;
}

.g-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.g-copy-btn {
    height: 42px;
    padding: 0 18px;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.g-copy-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.g-copy-btn.copied { background: var(--success); border-color: var(--success); }
.g-copy-btn svg { width: 16px; height: 16px; }

.g-warning {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.25);
    border-radius: var(--radius-sm);
    color: #facc15;
    font-size: 0.85rem;
}

.g-warning[hidden] { display: none; }

.g-more {
    margin-top: 16px;
    border-top: 1px solid var(--card-border);
    padding-top: 12px;
}

.g-more summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.g-more summary::-webkit-details-marker { display: none; }
.g-more summary svg { width: 16px; height: 16px; transition: transform 0.2s; }
.g-more[open] summary svg { transform: rotate(180deg); }

.g-more-body {
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.g-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.g-cmd-input {
    background: var(--bg-2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    outline: none;
}

.g-cmd-input:focus {
    border-color: var(--accent);
}

.g-hint { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

.g-hint code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-light);
}

.g-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.g-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

@media (max-width: 900px) {
    .g-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .g-card { padding: 16px; }
    .g-preview-box { padding: 20px 12px; }
    .g-actions { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb {
    background: rgba(123,44,191,0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(123,44,191,0.6); }

@media (prefers-reduced-transparency: reduce) {
    .g-card, .card, .site-header, .site-footer,
    .g-code-box, .g-preview-box,
    .chronicle, .chronicle-featured,
    .wardrobe-main-card, .wardrobe-command-card,
    .wardrobe-instruction, .wardrobe-troubleshoot,
    .timeline-content, .project-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #14101c;
    }
    body::before, body::after { opacity: 0.5; }
}

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #5a189a, #240046);
    opacity: 0.5;
    animation: particle-float 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle { display: none; }
}

@media (max-width: 768px) {
    .particle { display: none; }
}

.site-footer {
    position: relative;
    overflow: visible;
}

.flying-dragon {
    position: absolute;
    bottom: 100%;
    left: -80px;
    z-index: 10;
    width: 80px;
    height: 60px;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    animation: dragon-fly 14s linear infinite;
}

.flying-dragon:hover {
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.3)) brightness(1.1);
}

@keyframes dragon-fly {
    0%   { left: -80px;  transform: translateY(0) rotate(-2deg); }
    20%  { transform: translateY(-8px) rotate(2deg); }
    40%  { transform: translateY(4px) rotate(-1deg); }
    60%  { transform: translateY(-6px) rotate(2deg); }
    80%  { transform: translateY(3px) rotate(-1deg); }
    100% { left: 100%;   transform: translateY(0) rotate(-2deg); }
}

.flying-dragon .wing {
    transform-origin: 20px 30px;
    animation: wing-flap 0.4s ease-in-out infinite alternate;
}

@keyframes wing-flap {
    from { transform: rotate(-15deg) scaleY(0.9); }
    to   { transform: rotate(10deg) scaleY(1.1); }
}

.flying-dragon.react {
    animation-play-state: paused !important;
    filter: drop-shadow(0 0 15px rgba(255,120,0,0.7)) brightness(1.3);
}

.flying-dragon.react .dragon-fire { opacity: 1; animation: fire-burst 1.2s ease-out forwards; }
.flying-dragon.react .dragon-roar { opacity: 1; animation: roar-pop 1s ease-out forwards; }
.flying-dragon.react .wing { animation-duration: 0.15s; }

.dragon-fire {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 50px;
    height: 20px;
    opacity: 0;
    pointer-events: none;
}

.dragon-roar {
    position: absolute;
    left: 20px;
    top: -10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ff5722;
    text-shadow: 1px 1px 0 #7b2cbf;
    opacity: 0;
    pointer-events: none;
}

@keyframes fire-burst {
    0%   { opacity: 0; transform: scale(0.3); }
    20%  { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: translateX(-60px) scale(0.5); }
}

@keyframes roar-pop {
    0%   { opacity: 0; transform: translate(-20px, -20px) scale(0.5); }
    30%  { opacity: 1; transform: translate(-30px, -45px) scale(1.1); }
    100% { opacity: 0; transform: translate(-40px, -70px) scale(0.7); }
}

.falling-symbol {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ff5722;
    text-shadow: 1px 1px 0 #7b2cbf;
    opacity: 1;
    animation: symbol-fall 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes symbol-fall {
    0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(140px) rotate(320deg) scale(0.3); opacity: 0; }
}

.falling-symbol.red    { color: #ff0000; }
.falling-symbol.orange { color: #ff5722; }
.falling-symbol.yellow { color: #ffeb3b; }
.falling-symbol.purple { color: #9d4edd; }
.falling-symbol.white  { color: #fff; }

@media (max-width: 768px) {
    .flying-dragon {
        width: 50px;
        height: 38px;
        left: -50px;
    }
    .dragon-roar { font-size: 0.9rem; }
    .falling-symbol { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .flying-dragon, .falling-symbol { display: none; }
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    display: inline-block;
}

.confetti {
    position: fixed;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 10000;
    border-radius: 1px;
    animation: confetti-fall 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--cx), var(--cy)) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-0.5deg); }
    75% { transform: translateX(5px) rotate(0.5deg); }
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.loader-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.loader-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0;
    animation: loader-title-in 1s ease-out 0.5s forwards;
}

@keyframes loader-title-in {
    from { opacity: 0; letter-spacing: 6px; }
    to   { opacity: 1; letter-spacing: 3px; }
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    border-top-color: var(--accent-light);
    opacity: 0;
    animation: loader-spinner-in 0.6s ease-out 1s forwards, loader-spin 1s linear infinite;
}

@keyframes loader-spinner-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .loader-spinner { animation: none; }
    .site-loader { transition: opacity 0.2s ease; }
}

.monthly-awards {
    padding-top: 60px;
    padding-bottom: 80px;
}

.awards-month {
    text-align: center;
    margin-bottom: 32px;
}

.awards-month-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(123, 44, 191, 0.08);
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.award-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.award-card:hover {
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
}

.award-avatar {
    width: 190px;
    height: 190px;
    margin: 0 auto 18px;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.3s;
    position: relative;
}

.award-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

.award-card:hover .award-avatar {
    transform: scale(1.05);
}

.award-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.award-winner {
    font-family: 'Monocraft', 'Courier New', monospace;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0;
    word-break: break-word;
}

.award-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.awards-cta {
    text-align: center;
}

@media (max-width: 900px) {
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .awards-grid { grid-template-columns: 1fr; }
    .award-avatar { width: 84px; height: 84px; }
    .award-winner { font-size: 1.15rem; }
}