/* v7.0 - Modern Flow Animation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== FLOWING GRADIENT BACKGROUNDS ===== */
.flowing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f0e8 50%, #faf8f5 100%);
    animation: gradient-flow 12s ease infinite;
}

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

.flowing-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 85%, rgba(230, 182, 48, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(230, 182, 48, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(230, 182, 48, 0.04) 0%, transparent 40%);
    animation: orbs-flow 25s ease-in-out infinite;
}

@keyframes orbs-flow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(30px, 15px) scale(1.05); }
}

.flowing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: blob-float 25s ease-in-out infinite;
}

.flowing-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 182, 48, 0.15), rgba(230, 182, 48, 0.02));
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.flowing-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 182, 48, 0.12), rgba(230, 182, 48, 0.01));
    bottom: -100px;
    right: -100px;
    animation-delay: -8s;
}

.flowing-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 215, 110, 0.1), rgba(230, 182, 48, 0.01));
    top: 40%;
    right: 10%;
    animation-delay: -16s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(60px, -40px) rotate(120deg); }
    66% { transform: translate(-40px, 60px) rotate(240deg); }
}

/* ===== MOUSE PARTICLES ===== */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: #e6b630;
    box-shadow: 0 0 4px #e6b630;
    z-index: 99999;
}

.cursor-particle {
    animation: particleFade 1.2s linear forwards;
}

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

/* ===== SPARKLE STARS ✨ ===== */
.sparkle-star {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    animation: sparkle-pulse 1.2s ease-out forwards;
}

.sparkle-star::before {
    content: '✦';
    font-size: 14px;
    color: #e6b630;
    text-shadow: 
        0 0 6px #e6b630,
        0 0 12px #f5d76e,
        0 0 20px #ffffff;
    animation: star-twinkle 0.3s ease-in-out infinite alternate;
}

.sparkle-star.gold::before {
    color: #f5d76e;
}

.sparkle-star.white::before {
    color: #ffffff;
    text-shadow: 
        0 0 6px #ffffff,
        0 0 12px #e6b630;
}

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

@keyframes star-twinkle {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* ===== TRAIL LINE ===== */
.trail-line {
    position: fixed;
    pointer-events: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e6b630, #f5d76e, #ffffff);
    background-size: 200% 100%;
    border-radius: 2px;
    transform-origin: left center;
    z-index: 9997;
    animation: trail-fade 0.5s ease-out forwards;
    box-shadow: 0 0 8px rgba(230, 182, 48, 0.6);
}

@keyframes trail-fade {
    0% {
        opacity: 0.9;
        background-position: 100% 0;
    }
    100% {
        opacity: 0;
        background-position: 0% 0;
    }
}

@keyframes soft-rise-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes soft-drop-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== GLASS MORPHISM ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 182, 48, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(230, 182, 48, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-card-glow {
    position: relative;
}

.glass-card-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(230,182,48,0.4), rgba(245,215,110,0.2), rgba(230,182,48,0.1));
    background-size: 200% 200%;
    animation: glass-shimmer 4s ease infinite;
    z-index: -1;
    opacity: 0.5;
}

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

/* Flowing border animation */
.glass-border-flow {
    position: relative;
}

.glass-border-flow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, 
        #e6b630, #f5d76e, #e6b630, #d4a520, #e6b630);
    background-size: 300% 300%;
    animation: border-flow 4s linear infinite;
    z-index: -2;
    opacity: 0.5;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== WAVE ANIMATION ===== */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,60 C200,120 400,0 600,60 C800,120 1000,0 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 1200px 100%;
    animation: wave-move 8s linear infinite;
}

.wave:nth-child(2) {
    bottom: 5px;
    opacity: 0.5;
    animation-delay: -2s;
    animation-duration: 12s;
}

.wave:nth-child(3) {
    bottom: 10px;
    opacity: 0.3;
    animation-delay: -4s;
    animation-duration: 16s;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes surface-rise {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

:root {
    --platinum: #ece9e2;
    --dark-platinum: #d6ae47;
    --dark-platinum-strong: #b78b25;
    --light-platinum: #f7f4ee;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-muted: rgba(255, 249, 240, 0.65);
    --text-dark: #221f1a;
    --text-light: #746c62;
    --border: rgba(160, 138, 98, 0.22);
    --border-strong: rgba(160, 138, 98, 0.34);
    --cream-white: #fbfaf7;
    --cream-light: #f4ede2;
    --shadow-soft: 0 18px 48px rgba(78, 63, 39, 0.08);
    --shadow-card: 0 24px 60px rgba(67, 54, 34, 0.12);
    --shadow-lift: 0 28px 72px rgba(67, 54, 34, 0.16);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --content-width: 1240px;
    --font-display: 'Bahnschrift', 'DIN Condensed', 'Arial Narrow', 'Impact', sans-serif;
    --font-title: 'Bahnschrift', 'Aptos Display', sans-serif;
    --font-cjk-display: 'YouSheBiaoTiHei', 'PangMenZhengDao', 'Alimama ShuHeiTi', 'REEJI-CHAO', 'Source Han Sans CN Heavy', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei UI', sans-serif;
    --font-cjk-title: 'YouSheBiaoTiHei', 'PangMenZhengDao', 'Alimama ShuHeiTi', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-platinum);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at top, rgba(214, 174, 71, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

body.fullpage {
    overflow: hidden;
    height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-top: 0;
    padding: 18px 0;
    position: fixed;
    top: 18px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    z-index: 1000;
    box-shadow: 0 14px 40px rgba(50, 40, 24, 0.08);
    border-radius: 22px;
    animation: soft-rise-in 0.7s ease both;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 22px;
    min-height: 52px;
}

.nav-logo {
    color: #e6b630;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(230, 182, 48, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(230, 182, 48, 0.08);
    border-color: rgba(230, 182, 48, 0.45);
}

.nav-toggle-icon {
    color: #2c2c2c;
    overflow: visible;
}

.nav-toggle-line {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    background: rgba(214, 174, 71, 0.12);
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dark-platinum), transparent);
    opacity: 0.9;
}

/* Main Content */
.main {
    padding: 88px 0 96px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 78px 48px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    margin-bottom: 72px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 249, 242, 0.66));
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    animation: surface-rise 0.7s ease both;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20% auto auto -10%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 174, 71, 0.18), transparent 70%);
    filter: blur(18px);
}

.profile-image {
    display: flex;
    justify-content: center;
}

.profile-image svg {
    color: var(--dark-platinum);
}

.hero-title {
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0;
    line-height: 1.02;
}

.hero-motto {
    font-size: 18px;
    color: var(--text-light);
    max-width: 620px;
    text-wrap: balance;
}

/* Navigation Buttons */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 36px 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,247,236,0.7));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-button:hover {
    border-color: rgba(214, 174, 71, 0.42);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lift);
}

.nav-button svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    stroke: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-button:hover svg {
    stroke: var(--dark-platinum);
    transform: scale(1.15) rotate(5deg);
}

.nav-button span {
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-button:hover span {
    color: var(--dark-platinum);
}

.nav-button:active {
    transform: translateY(-6px) scale(0.98);
    box-shadow: 0 8px 20px rgba(183, 139, 37, 0.15);
}

.nav-button:active svg {
    transform: scale(1.1) rotate(0deg);
}

/* Sponsors Section */
.sponsors {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.sponsors h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.72);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 150px;
    aspect-ratio: 2/1;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sponsor-logo:hover {
    border-color: rgba(214, 174, 71, 0.42);
    background-color: rgba(255,255,255,0.92);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover img {
    transform: scale(1.05);
}

.sponsor-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(160, 138, 98, 0.14);
    padding: 36px 0 54px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 84px;
    opacity: 0.92;
    animation: soft-rise-in 0.75s ease 0.08s both;
}

/* Blog & Races Pages */
.page-header {
    padding: 34px 32px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 24px;
    margin-bottom: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,248,238,0.68));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: surface-rise 0.6s ease both;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--text-dark);
    line-height: 1.08;
}

.posts-container {
    display: grid;
    gap: 28px;
    margin-top: 28px;
    padding: 0;
}

.post-card {
    border: 1px solid rgba(255,255,255,0.56);
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,248,238,0.74));
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: surface-rise 0.6s ease both;
}

.post-card:hover {
    border-color: rgba(214, 174, 71, 0.4);
    box-shadow: var(--shadow-card);
    transform: translateY(-8px);
}

.post-title {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 750;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: var(--dark-platinum);
}

.post-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-content {
    color: var(--text-dark);
    line-height: 1.85;
    margin-top: 16px;
    font-size: 15px;
    opacity: 0.92;
}

.post-card:hover .post-content {
    opacity: 1;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content h2 {
    font-size: 20px;
    margin: 20px 0 10px 0;
    color: var(--text-dark);
}

.post-content h3 {
    font-size: 16px;
    margin: 15px 0 8px 0;
    color: var(--text-dark);
}

.post-content ul,
.post-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content code {
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.post-content pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 15px;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.empty-state {
    text-align: center;
    padding: 72px 28px;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,248,238,0.72));
    box-shadow: var(--shadow-soft);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--border);
}

/* Contact Page */
.contact-form {
    max-width: 760px;
    margin: 0 auto;
}

.contact-info {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.contact-item {
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,248,238,0.7));
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: surface-rise 0.6s ease both;
}

.contact-item:hover {
    border-color: rgba(214, 174, 71, 0.4);
    background-color: rgba(255,255,255,0.96);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-item p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.contact-item a {
    color: var(--dark-platinum);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(160, 138, 98, 0.22);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    background: rgba(255,255,255,0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(214, 174, 71, 0.48);
    box-shadow: 0 0 0 4px rgba(214, 174, 71, 0.12), 0 4px 12px rgba(183, 139, 37, 0.08);
    background: rgba(255,255,255,0.96);
    transform: translateY(-2px) scale(1.005);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--dark-platinum);
    color: #ffffff;
    padding: 13px 22px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 18px rgba(183, 139, 37, 0.14);
    border: 1px solid rgba(160, 138, 98, 0.18);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(183, 139, 37, 0.22);
    background: var(--dark-platinum-strong);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(183, 139, 37, 0.18);
}

.edit-btn {
    background-color: var(--dark-platinum);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background-color: #a88060;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(183, 139, 37, 0.25);
}

.edit-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(183, 139, 37, 0.15);
}

.edit-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(183, 139, 37, 0.15);
}

.cancel-btn {
    background-color: #999;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #777;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
    border: 1px solid rgba(160, 138, 98, 0.18);
    box-shadow: 0 8px 18px rgba(90, 70, 32, 0.08);
}

.secondary-btn:hover {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 12px 24px rgba(90, 70, 32, 0.12);
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--light-platinum);
}

.login-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
}

.login-form input:focus {
    outline: none;
    border-color: var(--dark-platinum);
}

.login-btn {
    background-color: var(--dark-platinum);
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #a88060;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Admin Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.admin-title {
    font-size: 28px;
    color: var(--text-dark);
}

.logout-btn {
    background-color: var(--dark-platinum);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #a88060;
}

.admin-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-to-site-btn {
    background-color: var(--dark-platinum);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.back-to-site-btn:hover {
    background-color: #a88060;
}

.admin-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.admin-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab.active {
    color: var(--dark-platinum);
    border-bottom-color: var(--dark-platinum);
}

.admin-tab:hover {
    color: var(--text-dark);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.post-form {
    max-width: 800px;
    margin-bottom: 40px;
}

.editor-ai-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 24px;
    align-items: start;
}

.editor-ai-layout .post-form {
    max-width: none;
}

.ai-assistant-panel {
    position: sticky;
    top: 178px;
    display: flex;
    min-height: 640px;
    max-height: calc(100vh - 198px);
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ai-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.ai-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 34px;
    overflow: hidden;
}

.ai-brand-logo {
    display: block;
    width: auto;
    height: 28px;
    max-height: 28px;
    object-fit: contain;
}

.ai-brand-title {
    display: block;
    width: auto;
    height: 26px;
    max-height: 26px;
    max-width: 180px;
    object-fit: contain;
}

.ai-ghost-btn {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-dark);
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-ghost-btn:hover:not(:disabled) {
    border-color: var(--dark-platinum);
    color: var(--dark-platinum);
}

.ai-ghost-btn:disabled,
.ai-send-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ai-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    overflow-y: auto;
    background: #f8f8f8;
}

.ai-message {
    width: fit-content;
    max-width: 90%;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    background: #ffffff;
    box-shadow: none;
    animation: fadeInUp 0.25s ease;
}

.ai-message-assistant {
    align-self: flex-start;
    background: #ffffff;
}

.ai-message-user {
    align-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    background: rgba(26, 115, 232, 0.08);
}

.ai-message-role {
    display: none;
}

.ai-message-content {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.ai-message-content p,
.ai-message-content ul,
.ai-message-content ol,
.ai-message-content pre,
.ai-message-content blockquote {
    margin: 0 0 10px;
}

.ai-message-content > :last-child {
    margin-bottom: 0;
}

.ai-message-content code {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 2px 5px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
    font-size: 12px;
}

.ai-message-content pre {
    overflow-x: auto;
    background: #242424;
    border-radius: 6px;
    padding: 12px;
}

.ai-message-content pre code {
    background: transparent;
    color: #ffffff;
    padding: 0;
}

.ai-chat-form {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.ai-input-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    background: #ffffff;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.ai-input-box:focus-within {
    border-color: #d1d5db;
    box-shadow: none;
}

.ai-input-main-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    align-items: flex-start;
    gap: 8px;
}

.ai-chat-form textarea {
    display: block;
    width: 100%;
    resize: none;
    min-height: 24px;
    max-height: 170px;
    height: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    scrollbar-width: auto;
}

.ai-chat-form textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ai-chat-form textarea::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.24);
    border-radius: 999px;
}

.ai-chat-form textarea::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-form textarea:focus {
    outline: none;
}

.ai-chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 8px;
}

.ai-input-spacer {
    flex: 1;
}

.ai-thinking-mode-selector {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    backdrop-filter: blur(5px);
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    width: 95px;
    min-width: 95px;
    justify-content: space-between;
    margin-right: 2px;
    color: #666;
    outline: none;
}

.ai-thinking-mode-selector:hover,
.ai-thinking-mode-selector:focus,
.ai-thinking-mode-selector:focus-visible,
.ai-thinking-mode-selector.open {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.ai-thinking-mode-selector .dropdown-arrow {
    font-size: 10px;
    color: #7a8c9e;
    transition: transform 0.3s ease;
}

.ai-thinking-mode-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.thinking-mode-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
    color: #666;
}

.ai-thinking-mode-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 0;
    min-width: 140px;
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    z-index: 1000;
    padding: 5px 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.ai-thinking-mode-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.thinking-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 10px;
}

.thinking-option:hover {
    background: rgba(26, 115, 232, 0.08);
}

.thinking-option.selected {
    background: transparent;
}

.thinking-option .option-text {
    font-size: 13px;
    color: #2c3e50;
}

.thinking-option .option-check {
    opacity: 0;
    color: #666;
    font-size: 14px;
}

.thinking-option.selected .option-check {
    opacity: 0;
}

.thinking-option.thinking-toggle-option {
    justify-content: space-between;
    padding: 8px 15px;
    cursor: default;
}

.thinking-option.thinking-toggle-option:hover {
    background: transparent;
}

.thinking-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.thinking-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.thinking-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 22px;
}

.thinking-switch .slider::before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.thinking-switch input:checked + .slider {
    background-color: rgba(26, 115, 232, 0.85);
}

.thinking-switch input:checked + .slider::before {
    transform: translateX(18px);
}

.ai-send-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--dark-platinum);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-send-button:hover:not(:disabled) {
    background: #a88060;
}

.ai-send-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.ai-send-button.loading {
    opacity: 0.95;
    cursor: pointer;
}

.ai-status {
    min-height: 18px;
    font-size: 12px;
    color: var(--text-light);
}

.reasoning-content {
    font-size: 14px;
    margin-bottom: 12px;
    padding: 0;
    border-left: none;
    background-color: transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.reasoning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    color: #666;
    font-weight: 400;
    font-size: 14px;
}

.reasoning-header:hover {
    background: transparent;
    color: #111;
}

.reasoning-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
}

.reasoning-content.collapsed .reasoning-arrow {
    transform: rotate(-90deg);
}

.reasoning-body {
    padding: 0 15px 12px;
    color: #666;
    line-height: 1.7;
}

.reasoning-content.collapsed .reasoning-body {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-platinum);
}

.form-group textarea {
    resize: vertical;
    min-height: 300px;
    font-family: 'Courier New', monospace;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

/* Responsive */
@media (max-width: 768px) {
    .editor-ai-layout {
        grid-template-columns: 1fr;
    }

    .ai-assistant-panel {
        position: static;
        min-height: 520px;
        max-height: none;
    }

    .nav {
        position: relative;
        min-height: 56px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        gap: 18px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-radius: 20px;
        box-shadow: var(--shadow-card);
        z-index: 1100;
    }

    .nav-link {
        font-size: 15px;
    }

    .nav-link.active::after {
        bottom: -3px;
    }

    .nav-auth {
        margin-left: 0;
        padding-top: 6px;
        border-top: 1px solid rgba(230, 182, 48, 0.12);
    }

    .user-btn,
    .login-btn {
        width: 100%;
        text-align: left;
    }

    .user-btn {
        padding: 10px 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .user-dropdown {
        display: block;
        position: static;
        margin-top: 10px;
        background: transparent;
        border: none;
        border-radius: 0;
        min-width: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .user-dropdown a {
        padding: 10px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero,
    .page-header,
    .post-card,
    .post-detail,
    .comment-form,
    .comment-item,
    .account-section,
    .contact-item,
    .empty-state,
    .modal-content {
        border-radius: 20px;
    }

    .main {
        padding: 72px 0 80px;
    }

    .nav-buttons {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        padding: 18px 16px;
    }

    .header {
        top: 8px;
        border-radius: 18px;
    }

    .nav {
        padding: 0 16px;
    }

    .hero {
        padding: 56px 22px;
    }

    .post-card,
    .post-detail,
    .account-section,
    .contact-item {
        padding: 22px;
    }

    .hero-title {
        font-size: 24px;
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 20, 13, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,248,238,0.86));
    margin: 4% auto;
    padding: 32px;
    border-radius: 28px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lift);
    border: 1px solid rgba(255,255,255,0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid rgba(160, 138, 98, 0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
}

.modal-tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.modal-tab.active {
    color: var(--text-dark);
    background: rgba(214, 174, 71, 0.14);
}

.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

/* Post Detail Page */
.post-detail {
    margin-bottom: 60px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,248,238,0.76));
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: surface-rise 0.65s ease both;
}

.post-detail-title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.08;
}

.post-detail-date {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-detail-content {
    color: var(--text-dark);
    line-height: 1.95;
    font-size: 17px;
}

.post-detail-content p {
    margin-bottom: 15px;
}

.post-detail-content h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: var(--text-dark);
}

.post-detail-content h3 {
    font-size: 20px;
    margin: 20px 0 10px 0;
    color: var(--text-dark);
}

.post-detail-content ul,
.post-detail-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.post-detail-content li {
    margin-bottom: 8px;
}

.post-detail-content code {
    background-color: rgba(214, 174, 71, 0.12);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.post-detail-content pre {
    background-color: rgba(38, 31, 20, 0.92);
    color: #f7f2e8;
    padding: 18px 20px;
    border-radius: 18px;
    overflow-x: auto;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.post-detail-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid rgba(160, 138, 98, 0.16);
    padding-top: 40px;
    margin-top: 40px;
}

.comments-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.comment-form {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,248,238,0.72));
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.56);
    box-shadow: var(--shadow-soft);
}

.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(160, 138, 98, 0.22);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    resize: vertical;
    min-height: 120px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.8);
}

.comment-form textarea:focus {
    outline: none;
    border-color: rgba(214, 174, 71, 0.48);
    box-shadow: 0 0 0 4px rgba(214, 174, 71, 0.12);
}

.login-prompt {
    text-align: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,248,238,0.72));
    border-radius: 22px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.56);
    box-shadow: var(--shadow-soft);
    animation: soft-rise-in 0.72s ease both;
}

.login-prompt a {
    color: var(--dark-platinum);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.verification-prompt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    animation: soft-rise-in 0.72s ease both;
}

.verification-prompt-center {
    text-align: center;
    align-items: center;
}

.verification-prompt-center .verification-notice-tag {
    align-self: center;
}

.verification-prompt-center .verification-actions {
    justify-content: center;
}

.verification-prompt h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 22px;
}

.verification-prompt h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 22px;
}

.verification-prompt .verification-notice-tag {
    align-self: flex-start;
}

.verification-prompt .verification-actions {
    margin-top: 4px;
}

.verification-prompt .message {
    margin-top: 4px;
}

.verification-notice {
    margin-bottom: 30px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.56);
    background: linear-gradient(180deg, rgba(255,248,238,0.94), rgba(255,241,221,0.78));
    box-shadow: var(--shadow-soft);
    animation: soft-rise-in 0.72s ease both;
}

.verification-notice p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.verification-notice h3,
.verification-panel h1 {
    margin: 0;
    color: var(--text-dark);
}

.verification-notice-tag,
.verification-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(183, 139, 37, 0.12);
    color: var(--dark-platinum-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.verification-notice h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.verification-notice-warning {
    border-left: 4px solid rgba(183, 139, 37, 0.9);
}

.verification-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.verification-panel {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    padding: 36px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(125, 97, 44, 0.12);
    animation: soft-rise-in 0.78s ease both;
}

.verification-panel-success {
    border-left: 4px solid rgba(72, 154, 92, 0.85);
}

.verification-panel-error {
    border-left: 4px solid rgba(194, 75, 75, 0.9);
}

.verification-panel p {
    margin-top: 16px;
    font-size: 16px;
}

.verification-panel-copy {
    color: var(--text-light);
}

.verification-panel-state {
    margin: 12px 0 0;
    color: rgba(72, 58, 34, 0.78);
    font-size: 15px;
    line-height: 1.7;
}

.verification-link-btn {
    min-width: 140px;
}

.verification-panel-hero {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    animation: soft-rise-in 0.78s ease 0.05s both;
}

.verification-panel-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    background: var(--dark-platinum);
    box-shadow: 0 14px 30px rgba(183, 139, 37, 0.24);
    flex: 0 0 auto;
}

.verification-panel-success::before,
.verification-panel-error::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.44), transparent 36%);
}

.verification-panel-success .verification-panel-icon {
    background: #4f8f5f;
    box-shadow: 0 14px 30px rgba(79, 143, 95, 0.22);
}

.verification-panel-error .verification-panel-icon {
    background: #b85a5a;
    box-shadow: 0 14px 30px rgba(184, 90, 90, 0.22);
}

.verification-panel-copy-wrap {
    flex: 1;
    min-width: 0;
}

.verification-panel h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.verification-panel-note {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(160, 138, 98, 0.14);
    backdrop-filter: blur(10px);
    animation: soft-rise-in 0.78s ease 0.08s both;
}

.verification-panel-note p {
    margin: 0;
    color: var(--text-dark);
}

.verification-actions-centered {
    margin-top: 22px;
    justify-content: flex-start;
}

.comment-verification-banner {
    margin-bottom: 30px;
    animation: soft-rise-in 0.72s ease both;
}

.comment-verification-banner h3 {
    margin: 0;
}

.verification-actions-centered .submit-btn {
    min-width: 148px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-comments {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.comment-item {
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,248,238,0.72));
    box-shadow: var(--shadow-soft);
    animation: surface-rise 0.55s ease both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-item:hover {
    transform: translateX(6px) scale(1.01);
    box-shadow: 0 12px 32px rgba(183, 139, 37, 0.15);
    border-color: rgba(214, 174, 71, 0.4);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,248,238,0.85));
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.comment-author {
    color: var(--text-dark);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
}

.delete-comment-btn {
    background-color: #c74747;
    color: #ffffff;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.delete-comment-btn:hover {
    background-color: #b71c1c;
}

.comment-content {
    color: var(--text-dark);
    line-height: 1.6;
    word-break: break-word;
}

/* Account Page */
.account-container {
    max-width: 760px;
    margin: 0 auto;
}

.account-verification-banner {
    margin-bottom: 24px;
    animation: soft-rise-in 0.72s ease both;
}

.account-verification-banner .verification-actions {
    margin-top: 18px;
}

.account-section {
    margin-bottom: 40px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.56);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,248,238,0.74));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: surface-rise 0.6s ease both;
}

.account-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-form .form-group {
    margin-bottom: 0;
}

.message {
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
    margin-top: 15px;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* Navigation Auth */
.nav-auth {
    margin-left: auto;
}

.user-menu {
    position: relative;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: transparent;
}

.user-btn {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(160, 138, 98, 0.18);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.user-btn:hover {
    color: var(--text-dark);
    border-color: rgba(214, 174, 71, 0.36);
    background: rgba(255, 255, 255, 0.92);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    border: 1px solid rgba(160, 138, 98, 0.16);
    border-radius: 18px;
    min-width: 190px;
    padding: 8px;
    box-shadow: var(--shadow-card);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-menu.user-menu-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-dropdown a {
    display: block;
    padding: 11px 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.user-dropdown a:hover {
    background: rgba(214, 174, 71, 0.12);
}

.user-dropdown .logout-inline-form {
    margin: 0;
}

.user-dropdown .logout-inline-form button {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-align: left;
    border-radius: var(--radius-md);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.user-dropdown .logout-inline-form button:hover {
    background: rgba(214, 174, 71, 0.12);
}

.user-dropdown a.active {
    color: #e6b630;
    font-weight: 600;
}

.user-dropdown a:nth-child(1) {
    animation: soft-drop-in 0.24s ease both;
}

.user-dropdown a:nth-child(2) {
    animation: soft-drop-in 0.28s ease 0.02s both;
}

.user-dropdown a:nth-child(3) {
    animation: soft-drop-in 0.32s ease 0.04s both;
}

.user-dropdown .logout-inline-form:nth-child(3) button {
    animation: soft-drop-in 0.32s ease 0.04s both;
}

.login-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 10px 16px;
    border: 1px solid rgba(160, 138, 98, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 10px 20px rgba(90, 70, 32, 0.08);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(90, 70, 32, 0.12);
    background: #ffffff;
}

.nav-links.nav-links-open {
    display: flex;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-top {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-middle {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line-bottom {
    transform: translateY(-5px) rotate(-45deg);
}

/* Post Card Link */
.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-link:hover .post-card {
    border-color: var(--dark-platinum);
    box-shadow: 0 12px 32px rgba(230, 182, 48, 0.2);
    transform: translateY(-6px) scale(1.01);
}

/* Article Editor */
.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.editor-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.5);
}

.editor-toolbar-group .wysiwyg-btn {
    margin: 0;
}

.wysiwyg-select {
    min-width: 92px;
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-dark) 50%),
        linear-gradient(135deg, var(--text-dark) 50%, transparent 50%);
    background-position:
        calc(100% - 14px) 13px,
        calc(100% - 9px) 13px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wysiwyg-select:hover {
    background-color: #fafafa;
}

.wysiwyg-select:active {
    transform: translateY(1px);
}

.wysiwyg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wysiwyg-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.wysiwyg-btn:hover,
.wysiwyg-select:hover,
.wysiwyg-select:focus {
    border-color: var(--dark-platinum);
    box-shadow: 0 0 0 3px rgba(230, 182, 48, 0.16);
    outline: none;
}

/* 按钮激活状态 - 当格式正在应用时 */
.wysiwyg-btn.active {
    background: linear-gradient(135deg, #e6b630 0%, #d4a628 100%);
    border-color: #d4a628;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(230, 182, 48, 0.3);
}

.wysiwyg-btn.active svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* 按钮按下效果 */
.wysiwyg-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 2px rgba(230, 182, 48, 0.2);
}

/* 按钮禁用状态 */
.wysiwyg-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.wysiwyg-btn:disabled:hover {
    border-color: #e0e0e0;
    box-shadow: none;
}

/* 键盘焦点样式 - 更明显的可访问性 */
.wysiwyg-btn:focus-visible {
    outline: 2px solid #e6b630;
    outline-offset: 2px;
    border-color: #e6b630;
}

.wysiwyg-select:focus-visible {
    outline: 2px solid #e6b630;
    outline-offset: 2px;
    border-color: #e6b630;
}

/* 按钮图标悬停动画 */
.wysiwyg-btn:hover svg {
    transform: scale(1.1);
}

.wysiwyg-btn svg {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.wysiwyg-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom,
        transparent 0%,
        #d0d0d0 20%,
        #d0d0d0 80%,
        transparent 100%);
    margin: 0 4px;
}

.wysiwyg-editor {
    min-height: 450px;
    padding: 20px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    color: var(--text-dark);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wysiwyg-editor:focus {
    border-color: #d0d0d0;
    box-shadow: 0 0 0 3px rgba(230, 182, 48, 0.08);
}

.wysiwyg-editor:empty::before {
    content: attr(data-placeholder);
    color: #9aa3ad;
}

.wysiwyg-editor p,
.wysiwyg-editor ul,
.wysiwyg-editor ol,
.wysiwyg-editor blockquote,
.wysiwyg-editor pre {
    margin: 0 0 14px;
}

.wysiwyg-editor blockquote {
    padding-left: 14px;
    border-left: 4px solid var(--dark-platinum);
    color: var(--text-light);
}

.wysiwyg-editor pre {
    padding: 14px 16px;
    border-radius: 10px;
    background: #222;
    color: #f7f7f7;
    overflow-x: auto;
}

.wysiwyg-editor code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f3f3;
}

.wysiwyg-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 按钮加载状态 */
.wysiwyg-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.wysiwyg-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

/* 移动端优化 */
@media (max-width: 768px) {
    .wysiwyg-toolbar {
        gap: 4px;
        padding: 10px 12px;
    }

    .wysiwyg-btn {
        height: 40px;
        width: 40px;
    }

    .wysiwyg-btn svg {
        width: 20px;
        height: 20px;
    }

    .wysiwyg-select {
        height: 40px;
        font-size: 14px;
    }

    .wysiwyg-separator {
        display: none;
    }
}

.rx-font-sans {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.rx-font-serif {
    font-family: "Georgia", "Times New Roman", "Songti SC", serif !important;
}

.rx-font-mono {
    font-family: "Consolas", "Monaco", "Courier New", monospace !important;
}

.rx-font-system {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.rx-font-msyahei {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
}

.rx-font-songti {
    font-family: "SimSun", "宋体", serif !important;
}

.rx-font-kaiti {
    font-family: "KaiTi", "楷体", serif !important;
}

.rx-font-fangsong {
    font-family: "FangSong", "仿宋", serif !important;
}

.rx-font-simhei {
    font-family: "SimHei", "黑体", sans-serif !important;
}

.rx-font-stkaiti {
    font-family: "STKaiti", "华文楷体", "KaiTi", serif !important;
}

.rx-font-stfangsong {
    font-family: "STFangsong", "华文仿宋", "FangSong", serif !important;
}

.rx-font-arial {
    font-family: Arial, sans-serif !important;
}

.rx-font-times {
    font-family: "Times New Roman", Times, serif !important;
}

.rx-font-georgia {
    font-family: Georgia, serif !important;
}

.rx-font-verdana {
    font-family: Verdana, sans-serif !important;
}

.rx-size-12 { font-size: 12px !important; }
.rx-size-14 { font-size: 14px !important; }
.rx-size-16 { font-size: 16px !important; }
.rx-size-18 { font-size: 18px !important; }
.rx-size-20 { font-size: 20px !important; }
.rx-size-24 { font-size: 24px !important; }
.rx-size-28 { font-size: 28px !important; }
.rx-size-32 { font-size: 32px !important; }
.rx-size-36 { font-size: 36px !important; }

/* Editor toolbar select styles */
.editor-toolbar-select {
    position: relative;
    display: inline-block;
    margin: 0 4px;
}

.editor-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    min-width: 100px;
    padding: 0 8px 0 12px;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    user-select: none;
}

.editor-select-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.editor-select-button.open .editor-select-arrow {
    transform: rotate(180deg);
}

.editor-select-button:hover {
    border-color: var(--dark-platinum);
    box-shadow: 0 0 0 3px rgba(230, 182, 48, 0.16);
}

.editor-select-button:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 1px;
}

.editor-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.editor-select-option {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.editor-select-option:hover {
    background-color: rgba(230, 182, 48, 0.1);
}

.editor-select-option:active {
    background-color: rgba(230, 182, 48, 0.2);
}

.editor-select-option.selected {
    background-color: rgba(230, 182, 48, 0.15);
    font-weight: 600;
}


/* Card entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes characterZoomIn {
    from {
        opacity: 0;
        transform: skewX(5deg) scale(0.918) translateX(30px);
    }
    to {
        opacity: 1;
        transform: skewX(5deg) scale(1.08) translateX(0);
    }
}

.post-card {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.15s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.25s; }
.post-card:nth-child(5) { animation-delay: 0.3s; }
.post-card:nth-child(6) { animation-delay: 0.35s; }

.nav-button {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-button:nth-child(1) { animation-delay: 0.1s; }
.nav-button:nth-child(2) { animation-delay: 0.15s; }
.nav-button:nth-child(3) { animation-delay: 0.2s; }
.nav-button:nth-child(4) { animation-delay: 0.25s; }

/* ============================================
   FULLPAGE SCROLL STYLES
   ============================================ */

.fullpage-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.fullpage-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(30px) scale(0.95);
    perspective: 1000px;
}

.fullpage-section.active {
    display: flex;
    z-index: 100;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fullpage-section.exit {
    animation: section-exit 0.5s ease forwards;
}

@keyframes section-exit {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.9); }
}

/* Hide header, footer when not in fullpage mode (shown on other pages) */
body:not(.fullpage) .header,
body:not(.fullpage) .footer {
    display: block;
}

/* For index page - hide container in fullpage mode */
body.fullpage .container {
    display: none;
}

/* Show header on fullpage mode but as overlay */
body.fullpage .header {
    display: block;
    position: fixed;
    top: 18px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow: 0 18px 46px rgba(48, 38, 23, 0.12);
}

/* ============================================
   SECTION 0: LOGO INTRO
   ============================================ */

#section-logo {
    position: relative;
    overflow: hidden;
}

.logo-intro-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.logo-intro-image {
    width: 350px;
    height: 350px;
    animation: logo-zoom-in 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               logo-float 3s ease-in-out 1.2s infinite;
}

.logo-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(230, 182, 48, 0.6));
}

@keyframes logo-zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
        filter: drop-shadow(0 0 0 rgba(230, 182, 48, 0));
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(230, 182, 48, 0.8));
    }
}

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

.logo-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 182, 48, 0.2) 0%, rgba(230, 182, 48, 0.05) 40%, transparent 70%);
    animation: logo-glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logo-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.logo-sparkles {
    position: absolute;
    width: 450px;
    height: 450px;
    pointer-events: none;
}

.logo-sparkles span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e6b630;
    border-radius: 50%;
    box-shadow: 0 0 10px #e6b630, 0 0 25px #f5d76e;
    animation: sparkle-pop 1.5s ease-out infinite;
    opacity: 0;
}

.logo-sparkles span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0.2s; }
.logo-sparkles span:nth-child(2) { top: 15%; right: 15%; animation-delay: 0.4s; }
.logo-sparkles span:nth-child(3) { bottom: 20%; left: 10%; animation-delay: 0.6s; }
.logo-sparkles span:nth-child(4) { bottom: 15%; right: 20%; animation-delay: 0.8s; }
.logo-sparkles span:nth-child(5) { top: 50%; left: 5%; animation-delay: 1s; }

@keyframes sparkle-pop {
    0% { opacity: 0; transform: scale(0); }
    30% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* ============================================
   SECTION 1: PROFILE
   ============================================ */

#section-profile {
    position: relative;
    overflow: hidden;
}

.profile-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(230, 182, 48, 0.3) 0%, rgba(102, 126, 234, 0.1) 30%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

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

.profile-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--dark-platinum);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.8s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.8s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.2s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; }
.particle:nth-child(11) { left: 25%; animation-delay: 3.5s; }
.particle:nth-child(12) { left: 75%; animation-delay: 4s; }

@keyframes particle-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.profile-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.profile-image-large {
    width: 280px;
    height: 280px;
    margin-bottom: 40px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(230, 182, 48, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

.profile-image-large svg {
    width: 100%;
    height: 100%;
}

.profile-title {
    font-size: 64px;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: 4px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 0 30px rgba(230, 182, 48, 0.3);
    position: relative;
}

.profile-title::after {
    content: 'RacerXie';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: transparent;
    background: linear-gradient(90deg, var(--dark-platinum), #f5d76e, var(--dark-platinum));
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0.5;
}

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

/* ============================================
   SECTION 2: MOTTO
   ============================================ */

#section-motto {
    position: relative;
}

.motto-content {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.motto-text {
    font-size: 52px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.5;
    animation: fadeInScale 1s ease-out 0.2s both;
    overflow: hidden;
    position: relative;
}

.motto-text span {
    display: inline-block;
    animation: typewriter 0.8s steps(20) forwards;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typewriter {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
}

.motto-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 0.5s both;
    transform-origin: center;
}

.motto-decoration {
    animation: fadeInUp 1s ease-out 0.5s both, line-expand 1s ease-out 1.2s both;
}

@keyframes line-expand {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e6b630, transparent);
    transform: scaleX(0);
    animation: line-fill 0.6s ease-out forwards;
}

.decoration-line:first-child {
    animation-delay: 0.8s;
}

.decoration-line:last-child {
    animation-delay: 1.2s;
}

@keyframes line-fill {
    to { transform: scaleX(1); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.motto-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: var(--dark-platinum);
}

.decoration-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e6b630;
    box-shadow: 0 0 20px #e6b630;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================
   SECTION 3: NAVIGATION BUTTONS
   ============================================ */

#section-nav {
    position: relative;
}

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

.nav-section-title {
    font-size: 32px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.nav-buttons-fullpage {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-button-fullpage {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid rgba(230, 182, 48, 0.25);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none;
    color: #2c2c2c;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(230, 182, 48, 0.15);
    animation: fadeInUp 0.8s ease-out;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.nav-button-fullpage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(230, 182, 48, 0.1) 50%, transparent 60%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.nav-button-fullpage:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.nav-button-fullpage:nth-child(1) { animation-delay: 0.3s; }
.nav-button-fullpage:nth-child(2) { animation-delay: 0.4s; }
.nav-button-fullpage:nth-child(3) { animation-delay: 0.5s; }

.nav-button-fullpage:hover {
    border-color: #e6b630;
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 60px rgba(230, 182, 48, 0.25);
}

.nav-button-fullpage svg {
    stroke: #e6b630;
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.nav-button-fullpage:hover svg {
    transform: scale(1.15) translateZ(20px);
}

.nav-button-fullpage span {
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
    transform: translateZ(10px);
}

.nav-button-fullpage:hover span {
    color: #e6b630;
}

/* ============================================
   SECTION 4: SPONSORS
   ============================================ */

#section-sponsors {
    position: relative;
}

.sponsors-content {
    text-align: center;
    max-width: 1100px;
    padding: 0 40px;
}

.sponsors-title {
    font-size: 36px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.sponsors-grid-fullpage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.sponsor-item {
    aspect-ratio: 2/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 1px solid rgba(230, 182, 48, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(230, 182, 48, 0.08);
    position: relative;
    overflow: hidden;
    animation: stagger-in 0.6s ease-out both;
}

.sponsor-item:nth-child(1) { animation-delay: 0.1s; }
.sponsor-item:nth-child(2) { animation-delay: 0.15s; }
.sponsor-item:nth-child(3) { animation-delay: 0.2s; }
.sponsor-item:nth-child(4) { animation-delay: 0.25s; }
.sponsor-item:nth-child(5) { animation-delay: 0.3s; }
.sponsor-item:nth-child(6) { animation-delay: 0.35s; }
.sponsor-item:nth-child(7) { animation-delay: 0.4s; }
.sponsor-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes stagger-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sponsor-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(230, 182, 48, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sponsor-item:hover::after {
    opacity: 1;
}

.sponsor-item:hover {
    border-color: rgba(230, 182, 48, 0.5);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(230, 182, 48, 0.2);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-item:hover img {
    transform: scale(1.08);
}

.no-sponsors {
    grid-column: 1 / -1;
    color: var(--text-light);
    text-align: center;
    padding: 60px 0;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scroll-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(230, 182, 48, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e6b630;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-dot:hover {
    background: rgba(230, 182, 48, 0.6);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(230, 182, 48, 0.4);
}

.scroll-dot.active {
    background: #e6b630;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(230, 182, 48, 0.5);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 182, 48, 0.6); }
    50% { box-shadow: 0 0 30px rgba(230, 182, 48, 0.9); }
}

.scroll-dot.active::before {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .profile-image-large {
        width: 200px;
        height: 200px;
    }

    .profile-title {
        font-size: 42px;
    }

    .motto-text {
        font-size: 32px;
    }

    .nav-button-fullpage {
        width: 150px;
        height: 150px;
    }

    .nav-button-fullpage svg {
        width: 36px;
        height: 36px;
    }

    .nav-section-title {
        font-size: 24px;
    }

    .scroll-indicator {
        right: 15px;
    }

    .scroll-dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   MODERN HOME REDESIGN
   ============================================ */

body.home-page {
    background:
        radial-gradient(circle at top left, rgba(214, 174, 71, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(214, 174, 71, 0.08), transparent 24%),
        var(--light-platinum);
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 96px;
    height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
}

body.home-page .container {
    position: relative;
    z-index: 2;
}

body.home-page .footer {
    margin-top: 0;
    padding-top: 24px;
}

.home-page-shell {
    padding-top: 104px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 32px 0;
    opacity: 0;
    transform: translateY(22px) scale(0.99);
    filter: blur(3px);
    transition: opacity 0.62s ease, transform 0.62s ease, filter 0.62s ease;
    scroll-margin-top: 96px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

.home-section.is-visible,
.home-section:first-child {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.home-hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 36px;
    align-items: center;
    position: relative;
    min-height: calc(100svh - 160px);
}

.home-hero-grid::before,
.home-hero-grid::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg, rgba(214, 174, 71, 0.08), rgba(214, 174, 71, 0.24), rgba(214, 174, 71, 0.08));
    filter: blur(1px);
}

.home-hero-grid::before {
    left: 2%;
    top: 18%;
    width: 340px;
    height: 12px;
    opacity: 0.9;
    transform: rotate(-11deg);
}

.home-hero-grid::after {
    right: 4%;
    bottom: 18%;
    width: 280px;
    height: 12px;
    opacity: 0.78;
    transform: rotate(-11deg);
}

.home-hero-copy {
    padding: 32px 0 32px 8px;
    position: relative;
    z-index: 2;
    animation: section-block-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-kicker,
.home-section-kicker,
.home-column-head,
.home-status-tag,
.home-story-meta,
.home-link-icon {
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-kicker,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-platinum-strong);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-kicker::before,
.home-section-kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: rgba(214, 174, 71, 0.45);
}

.home-title {
    font-size: 5.15rem;
    line-height: 0.95;
    letter-spacing: 0;
    color: var(--text-dark);
    max-width: 12.8ch;
    margin-bottom: 18px;
    animation: section-title-in 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-intro {
    max-width: 620px;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 22px;
    animation: section-block-in 0.9s ease 0.08s both;
}

.home-slogan {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
}

.home-slogan::after {
    content: '';
    width: 84px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dark-platinum), rgba(214, 174, 71, 0));
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.home-cta {
    min-width: 150px;
    justify-content: center;
}

.home-text-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0 4px;
}

.home-text-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: rgba(214, 174, 71, 0.45);
    transform: scaleX(0.2);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.home-text-link:hover::after {
    transform: scaleX(1);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-bottom: 18px;
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-hero-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(214, 174, 71, 0.12);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    animation: chip-rise-in 0.72s ease both;
}

.home-stat-card,
.home-empty-card,
.home-story-card,
.home-link-card,
.home-sponsor-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.home-stat-card {
    border-radius: var(--radius-sm);
    padding: 18px 18px 16px;
    animation: section-block-in 0.8s ease both;
}

.home-stat-card span {
    display: block;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.home-stat-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    color: var(--text-dark);
}

.home-hero-panel {
    display: grid;
    gap: 18px;
    justify-items: stretch;
}

.home-profile-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 20px;
    align-items: stretch;
    padding: 20px;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,248,238,0.78)),
        linear-gradient(90deg, rgba(214, 174, 71, 0.12), rgba(255,255,255,0));
    border: 1px solid rgba(214, 174, 71, 0.18);
    box-shadow: var(--shadow-card);
    min-height: 420px;
    position: relative;
    overflow: hidden;
    animation: panel-slab-in 0.96s cubic-bezier(0.18, 0.75, 0.2, 1) both;
}

.home-profile-card::before {
    content: '';
    position: absolute;
    inset: 28px -18px auto auto;
    width: 74%;
    height: 120px;
    border-top: 1px solid rgba(214, 174, 71, 0.2);
    border-bottom: 1px solid rgba(214, 174, 71, 0.16);
    transform: rotate(-12deg);
    pointer-events: none;
}

.home-hero-emblem {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(160deg, rgba(255,255,255,0.7), rgba(245, 233, 207, 0.72)),
        repeating-linear-gradient(-12deg, rgba(214, 174, 71, 0.12) 0 2px, transparent 2px 18px);
    border: 1px solid rgba(214, 174, 71, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
    animation: panel-slab-in 0.9s cubic-bezier(0.18, 0.75, 0.2, 1) both;
}

.home-hero-ring {
    position: absolute;
    inset: 26px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(214, 174, 71, 0.24);
}

.home-hero-ring::before,
.home-hero-ring::after {
    content: '';
    position: absolute;
    left: 16%;
    right: 16%;
    height: 2px;
    border-radius: 999px;
    background: rgba(183, 139, 37, 0.32);
    transform: rotate(-12deg);
}

.home-hero-ring::before {
    top: 34%;
}

.home-hero-ring::after {
    bottom: 34%;
}

.home-hero-emblem img {
    width: min(78%, 240px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(214, 174, 71, 0.34));
    position: relative;
    z-index: 1;
}

.home-profile-copy {
    padding: 22px 8px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.home-status-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(183, 139, 37, 0.12);
    color: var(--dark-platinum-strong);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-profile-copy h2 {
    font-size: 28px;
    line-height: 1.22;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.home-profile-copy p {
    color: var(--text-light);
    line-height: 1.8;
}

.home-track-line {
    display: grid;
    gap: 8px;
    margin-top: 28px;
}

.home-track-line span {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(183, 139, 37, 0.58), rgba(214, 174, 71, 0.1), transparent);
}

.home-track-line span:nth-child(2) {
    width: 78%;
}

.home-track-line span:nth-child(3) {
    width: 56%;
}

.home-column-head {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.home-section-head {
    max-width: 720px;
    margin-bottom: 18px;
}

.home-section:not(.home-section-hero) {
    align-items: center;
}

.home-section:not(.home-section-hero) .home-section-head {
    margin-bottom: 26px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.home-section:not(.home-section-hero) .home-section-head h2 {
    margin-bottom: 12px;
}

.home-section:not(.home-section-hero) .home-section-head p {
    max-width: 60ch;
}

.home-section-head h2 {
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.02;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.home-section-head p {
    color: var(--text-light);
    line-height: 1.75;
    max-width: 52ch;
}

.home-story-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 4px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.home-story-column {
    display: grid;
    gap: 14px;
}

.home-story-column + .home-story-column {
    margin-top: 2px;
}

.home-story-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: var(--radius-sm);
    padding: 18px 18px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: card-slide-left 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(125, 97, 44, 0.14);
    border-color: rgba(214, 174, 71, 0.3);
}

.home-story-card-alt {
    background: rgba(255, 249, 239, 0.82);
    animation-name: card-slide-right;
}

.home-story-index {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(214, 174, 71, 0.12);
    color: var(--dark-platinum-strong);
    font-weight: 700;
}

.home-story-meta {
    display: inline-flex;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.home-story-body h3 {
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.home-story-body p {
    color: var(--text-light);
    line-height: 1.8;
}

.home-story-arrow {
    color: var(--dark-platinum-strong);
    font-size: 22px;
    font-weight: 700;
}

.home-empty-card {
    border-radius: var(--radius-sm);
    padding: 24px;
    color: var(--text-light);
    text-align: center;
}

.home-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.home-link-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 18px 18px 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: card-slide-up 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    min-height: 168px;
}

.home-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(125, 97, 44, 0.14);
    border-color: rgba(214, 174, 71, 0.32);
}

.home-link-button {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.home-link-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(214, 174, 71, 0.12);
    color: var(--dark-platinum-strong);
    font-size: 12px;
    font-weight: 700;
}

.home-link-card h3 {
    font-size: 19px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.home-link-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.home-link-card span {
    color: var(--dark-platinum-strong);
    font-weight: 700;
}

.home-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 4px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.home-sponsor-card {
    min-height: 124px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    padding: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: card-slide-up 0.78s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(125, 97, 44, 0.12);
}

.home-sponsor-card a,
.home-sponsor-card img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.scroll-indicator {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(214, 174, 71, 0.24);
    box-shadow: 0 0 0 0 rgba(214, 174, 71, 0.18);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    padding: 0;
}

.scroll-dot.active {
    transform: scale(1.3);
    background: var(--dark-platinum);
    box-shadow: 0 0 0 7px rgba(214, 174, 71, 0.08);
}

@keyframes section-block-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes section-title-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes chip-rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panel-slab-in {
    from {
        opacity: 0;
        transform: translateX(36px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes card-slide-left {
    from {
        opacity: 0;
        transform: translateX(-28px) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes card-slide-right {
    from {
        opacity: 0;
        transform: translateX(28px) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes card-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    width: 160px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(214, 174, 71, 0.26), transparent);
    filter: blur(1px);
    opacity: 0.9;
    opacity: 0.72;
    pointer-events: none;
}

.home-section::after {
    content: '';
    position: absolute;
    right: 8%;
    bottom: 12%;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(214, 174, 71, 0.14);
    transform: rotate(12deg);
    pointer-events: none;
}

.home-section-hero::before {
    top: 16%;
}

.home-section-editorial::after {
    right: 10%;
    bottom: 8%;
    width: 94px;
    height: 94px;
}

.home-section-links::after {
    right: 14%;
    bottom: 10%;
    width: 110px;
    height: 110px;
}

.home-section-partners::after {
    right: 12%;
    bottom: 14%;
    width: 88px;
    height: 88px;
}

@media (max-width: 1024px) {
    .home-hero-grid,
    .home-story-grid,
    .home-links-grid,
    .home-sponsor-grid {
        grid-template-columns: 1fr;
    }

    .home-section {
        min-height: auto;
        padding: 20px 0;
    }

    .home-hero-grid {
        min-height: auto;
    }

    .home-title {
        font-size: 4.9rem;
        max-width: 100%;
    }

    .home-page-shell {
        gap: 24px;
    }

    .home-profile-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero-emblem {
        min-height: 260px;
    }
}

@media (min-width: 1025px) {
    .home-section:not(.home-section-hero) .home-section-head {
        max-width: 760px;
    }

    .home-section:not(.home-section-hero) .home-section-head p {
        max-width: 56ch;
        margin-left: auto;
        margin-right: auto;
    }

    .home-section:not(.home-section-hero) {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .home-page-shell {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .header {
        top: 8px;
        left: 12px;
        right: 12px;
    }

    body.home-page {
        scroll-snap-type: none;
        scroll-padding-top: 84px;
    }

    .home-page-shell {
        padding-top: 84px;
        gap: 12px;
    }

    .home-section {
        min-height: auto;
        align-items: flex-start;
        padding: 12px 0 16px;
        scroll-margin-top: 84px;
        transform: translateY(14px) scale(0.995);
        opacity: 1;
        filter: none;
        transition: none;
    }

    .home-title {
        font-size: 3.2rem;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .home-intro {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 12px;
    }

    .home-slogan {
        display: flex;
        font-size: 20px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .home-slogan::after {
        flex: 1 1 36px;
        min-width: 36px;
    }

    /* Disable blur on home cards */
    .home-stat-card,
    .home-empty-card,
    .home-story-card,
    .home-link-card,
    .home-sponsor-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }

    /* Reduce blur on navigation elements */
    .header,
    .nav,
    .modal-content,
    .user-dropdown,
    .nav-links {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Disable blur on content cards */
    .post-card,
    .race-card,
    .contact-card,
    .admin-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.96);
    }

    /* Disable background animations */
    .flowing-bg {
        animation: none;
        background: linear-gradient(180deg, #faf8f5 0%, #f5f0e8 100%);
    }

    .flowing-bg::before {
        animation: none;
        opacity: 0.5;
    }

    .flowing-blob {
        animation: none;
        opacity: 0.2;
        filter: blur(60px);
    }

    /* Editorial section layout for 6 items */
    .home-update-board {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .home-update-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .home-update-item {
        min-height: 100px;
        padding: 14px;
    }

    .home-update-item h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    /* Lazy loading animations */
    .home-update-item,
    .home-route-card,
    .home-sponsor-card {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .home-update-item.content-loaded,
    .home-route-card.content-loaded,
    .home-sponsor-card.content-loaded {
        opacity: 1;
        transform: translateY(0);
    }

    .home-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .home-hero-tags {
        gap: 8px;
    }

    .home-hero-emblem {
        min-height: 170px;
    }

    .home-profile-card {
        padding: 12px;
        gap: 10px;
    }

    .home-profile-copy {
        padding: 4px 2px 6px;
    }

    .home-profile-copy h2 {
        font-size: 22px;
    }

    .home-section::before,
    .home-section::after {
        opacity: 0.18;
        animation: none;
    }

    .scroll-indicator {
        display: none;
    }

    .home-hero-grid,
    .home-story-grid,
    .home-links-grid,
    .home-sponsor-grid {
        gap: 10px;
    }

    .home-hero-grid,
    .home-story-grid,
    .home-links-grid,
    .home-sponsor-grid,
    .home-profile-card {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        padding: 8px 0 0;
    }

    .home-kicker,
    .home-section-kicker {
        margin-bottom: 10px;
        font-size: 11px;
        gap: 8px;
    }

    .home-kicker::before,
    .home-section-kicker::before {
        width: 24px;
    }

    .home-actions {
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
    }

    .home-cta {
        min-width: 0;
        flex: 1 1 100%;
    }

    .home-text-link {
        width: 100%;
        padding: 4px 0 0;
    }

    .home-hero-tags span {
        padding: 7px 10px;
    }

    .home-hero-tags span,
    .home-story-card,
    .home-link-card,
    .home-sponsor-card,
    .home-empty-card {
        animation-duration: 0.45s;
    }

    .home-story-column {
        gap: 10px;
    }

    .home-story-card,
    .home-link-card {
        padding: 14px;
        gap: 12px;
    }

    .home-story-card:hover,
    .home-link-card:hover,
    .home-sponsor-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }

    .home-story-card,
    .home-link-card {
        grid-template-columns: 1fr;
    }

    .home-story-arrow,
    .home-link-card span {
        justify-self: start;
    }

    .scroll-dot {
        width: 10px;
        height: 10px;
    }

    .home-section-head {
        margin-bottom: 14px;
    }

    .home-section:not(.home-section-hero) .home-section-head {
        margin-bottom: 16px;
    }

    .home-section-head h2 {
        font-size: clamp(24px, 8vw, 34px);
        margin-bottom: 8px;
    }

    .home-section-head p {
        font-size: 14px;
        line-height: 1.65;
        max-width: 100%;
    }

    .home-story-grid,
    .home-links-grid,
    .home-sponsor-grid {
        margin-top: 0;
    }

    .home-sponsor-card {
        min-height: 84px;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 2.65rem;
    }

    .home-slogan {
        font-size: 18px;
    }

    .home-stat-card {
        padding: 14px;
    }

    .home-hero-emblem {
        min-height: 150px;
    }
}

/* ============================================
   HOME REWRITE - FOUR SCROLLING STAGES
   ============================================ */

body.home-page .footer {
    display: none;
}

.home-page-shell {
    padding-top: 96px;
}

.home-section {
    min-height: 100svh;
    padding: 18px 0 28px;
    align-items: center;
}

.home-section::before,
.home-section::after,
.home-hero-grid::before,
.home-hero-grid::after {
    display: none;
}

.home-stage {
    width: 100%;
    min-height: calc(100svh - 138px);
    display: grid;
    align-items: center;
    position: relative;
}

.home-kicker,
.home-section-kicker,
.home-column-head,
.home-update-type,
.home-route-index {
    letter-spacing: 0;
    text-transform: none;
}

.home-kicker,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--dark-platinum-strong);
    font-size: 13px;
    font-weight: 800;
}

.home-kicker::before,
.home-section-kicker::before {
    content: '';
    width: 40px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark-platinum);
}

.home-hero-stage {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    grid-template-areas:
        "copy visual"
        "metrics metrics";
    gap: 26px 44px;
}

.home-hero-copy {
    grid-area: copy;
    padding: 0;
    z-index: 2;
}

.home-title {
    max-width: 10ch;
    margin: 0 0 18px;
    color: var(--text-dark);
    font-size: 6.2rem;
    line-height: 0.94;
    letter-spacing: 0;
}

.home-slogan {
    display: block;
    margin: 0;
    color: var(--dark-platinum-strong);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
}

.home-slogan::after {
    display: none;
}

.home-actions {
    margin: 0;
    gap: 12px;
}

.home-cta {
    min-width: 136px;
}

.home-race-visual {
    grid-area: visual;
    min-height: 430px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(214, 174, 71, 0.24);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 232, 0.7)),
        repeating-linear-gradient(-13deg, rgba(214, 174, 71, 0.1) 0 2px, transparent 2px 22px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
}

.home-race-visual::before {
    content: '';
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(183, 139, 37, 0.18);
    border-radius: var(--radius-sm);
}

.home-race-visual::after {
    content: '';
    position: absolute;
    left: -20%;
    right: -12%;
    top: 50%;
    height: 74px;
    background: linear-gradient(90deg, transparent, rgba(214, 174, 71, 0.24), rgba(183, 139, 37, 0.1), transparent);
    transform: rotate(-14deg);
}

.home-race-visual img {
    width: min(58%, 260px);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 24px 34px rgba(125, 97, 44, 0.24));
}

.home-speed-mark {
    position: absolute;
    left: 24px;
    top: 20px;
    color: rgba(34, 31, 26, 0.08);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    z-index: 1;
}

.home-lane {
    position: absolute;
    left: 14%;
    right: 10%;
    height: 3px;
    border-radius: 999px;
    background: rgba(183, 139, 37, 0.32);
    transform: rotate(-14deg);
    z-index: 1;
}

.home-lane-one {
    bottom: 28%;
}

.home-lane-two {
    bottom: 22%;
    left: 24%;
    right: 18%;
    opacity: 0.62;
}

.home-metric-strip {
    grid-area: metrics;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-metric {
    min-height: 112px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(214, 174, 71, 0.16);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.home-metric span {
    color: var(--text-dark);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 0.9;
}

.home-metric strong {
    max-width: 6em;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.35;
    text-align: right;
}

.home-editorial-stage,
.home-route-stage,
.home-partner-stage {
    gap: 22px;
}

.home-section-head {
    max-width: 740px;
    margin: 0;
}

.home-section:not(.home-section-hero) .home-section-head {
    margin: 0;
    text-align: left;
}

.home-section-head h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 4.5rem;
    line-height: 0.95;
    letter-spacing: 0;
}

.home-section-head p {
    max-width: 56ch;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.75;
}

.home-update-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-update-column {
    min-height: 430px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 174, 71, 0.14);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
    align-content: start;
}

.home-update-column-accent {
    background: rgba(255, 248, 236, 0.82);
}

.home-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
}

.home-column-head a {
    color: var(--dark-platinum-strong);
    font-size: 13px;
    text-decoration: none;
}

.home-update-item {
    min-height: 150px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-update-item:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 174, 71, 0.36);
    box-shadow: 0 20px 42px rgba(125, 97, 44, 0.12);
}

.home-update-number {
    position: absolute;
    right: 18px;
    top: 12px;
    color: rgba(183, 139, 37, 0.16);
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
}

.home-update-type {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--dark-platinum-strong);
    font-size: 12px;
    font-weight: 800;
}

.home-update-item h3 {
    margin: 0 0 10px;
    padding-right: 54px;
    color: var(--text-dark);
    font-size: 1.35rem;
    line-height: 1.25;
}

.home-update-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.home-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-route-card {
    min-height: 330px;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(214, 174, 71, 0.16);
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-route-card::before {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    top: 88px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(183, 139, 37, 0.5), transparent);
}

.home-route-card:hover {
    transform: translateY(-5px);
    border-color: rgba(214, 174, 71, 0.34);
    box-shadow: var(--shadow-card);
}

.home-route-index {
    color: rgba(183, 139, 37, 0.42);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.home-route-card h3 {
    margin: 58px 0 14px;
    color: var(--text-dark);
    font-size: 2rem;
    line-height: 1;
}

.home-route-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.75;
}

.home-route-action {
    margin-top: auto;
    color: var(--dark-platinum-strong);
    font-weight: 800;
}

.home-partner-stage .home-section-head {
    max-width: 700px;
}

.home-sponsor-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-sponsor-card,
.home-empty-card {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(214, 174, 71, 0.16);
    box-shadow: var(--shadow-soft);
}

.home-sponsor-card {
    min-height: 150px;
}

.home-sponsor-card img {
    max-height: 82px;
}

.home-empty-card {
    padding: 28px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .home-page-shell {
        padding-top: 90px;
    }

    .home-section {
        min-height: auto;
        padding: 20px 0 34px;
    }

    .home-stage {
        min-height: auto;
    }

    .home-hero-stage {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "visual"
            "metrics";
        gap: 20px;
    }

    .home-title {
        max-width: 100%;
        font-size: 4.8rem;
    }

    .home-race-visual {
        min-height: 320px;
    }

    .home-section-head h2 {
        font-size: 3.7rem;
    }

    .home-update-board,
    .home-route-grid,
    .home-sponsor-grid {
        grid-template-columns: 1fr;
    }

    .home-update-column {
        min-height: auto;
    }

    .home-route-card {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    body.home-page {
        height: auto;
        min-height: 100svh;
        overflow-y: visible;
        overflow-x: hidden;
        overscroll-behavior-y: auto;
        scroll-snap-type: none;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .home-page-shell {
        padding-top: 82px;
    }

    .home-section {
        min-height: auto;
        padding: 14px 0 28px;
        overflow: visible;
    }

    .home-stage {
        min-height: auto;
    }

    .home-title {
        font-size: 3.25rem;
        line-height: 1;
    }

    .home-slogan {
        font-size: 1.45rem;
    }

    .home-actions {
        width: 100%;
    }

    .home-cta {
        flex: 1 1 100%;
        min-width: 0;
    }

    .home-race-visual {
        min-height: 230px;
    }

    .home-speed-mark {
        font-size: 3.3rem;
    }

    .home-metric-strip {
        grid-template-columns: 1fr;
    }

    .home-metric {
        min-height: 86px;
        align-items: center;
    }

    .home-metric span {
        font-size: 2.4rem;
    }

    .home-section-head h2 {
        font-size: 2.8rem;
    }

    .home-section-head p {
        font-size: 15px;
    }

    .home-update-column,
    .home-route-card {
        padding: 16px;
    }

    .home-update-item {
        min-height: auto;
        padding: 16px;
    }

    .home-update-number {
        font-size: 2.1rem;
    }

    .home-route-card {
        min-height: 220px;
    }

    .home-route-card::before {
        left: 16px;
        right: 16px;
    }

    .home-route-card h3 {
        margin-top: 46px;
        font-size: 1.7rem;
    }

    .home-sponsor-card {
        min-height: 104px;
    }
}

@media (max-width: 480px) {
    body.home-page {
        scroll-snap-type: none;
    }

    .home-title {
        font-size: 2.65rem;
    }

    .home-section-head h2 {
        font-size: 2.25rem;
    }
}

/* ============================================
   HOME PREMIUM MOTORSPORT TREATMENT
   ============================================ */

.home-page-shell {
    padding-top: 92px;
}

.home-section {
    padding: 0;
}

.home-stage {
    min-height: calc(100svh - 112px);
}

.home-hero-stage {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    grid-template-areas:
        "copy visual"
        "metrics visual";
    gap: 24px 48px;
}

.home-cover-stage {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    gap: 48px;
    overflow: hidden;
}

.home-cover-name {
    position: relative;
    z-index: 2;
}

.home-cover-name::before {
    content: 'CHALLENGE';
    position: absolute;
    left: -8px;
    top: -62px;
    color: rgba(34, 31, 26, 0.045);
    font-size: clamp(4rem, 9vw, 7.8rem);
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    pointer-events: none;
}

.home-cover-code {
    display: block;
    margin-bottom: 18px;
    color: var(--dark-platinum-strong);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    animation: soft-rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-cover-name h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(4.8rem, 9vw, 8rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: 0;
    position: relative;
    text-shadow: 12px 12px 0 rgba(214, 174, 71, 0.08);
    animation: soft-rise-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
}

.home-cover-line {
    width: min(76%, 520px);
    height: 10px;
    margin-top: 34px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--dark-platinum-strong), rgba(214, 174, 71, 0.16), transparent);
    transform: skewX(-24deg);
    position: relative;
    animation: soft-rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.home-cover-line::after {
    content: '';
    position: absolute;
    left: 34%;
    top: 18px;
    width: 46%;
    height: 3px;
    border-radius: 999px;
    background: rgba(34, 31, 26, 0.18);
}

.home-cover-image {
    min-height: min(68svh, 620px);
    border-radius: var(--radius-sm);
    border: 0;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255, 248, 236, 0.78)),
        linear-gradient(112deg, transparent 0 38%, rgba(34, 31, 26, 0.12) 38% 42%, transparent 42% 100%),
        linear-gradient(118deg, transparent 0 52%, rgba(214, 174, 71, 0.28) 52% 66%, transparent 66% 100%);
    box-shadow: 0 38px 90px rgba(67, 54, 34, 0.16);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    transform: skewX(-5deg);
}

.home-cover-image::before,
.home-cover-image::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.home-cover-image::before {
    inset: 24px;
    border: 1px solid rgba(183, 139, 37, 0.28);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.home-cover-image::after {
    left: -24%;
    right: -16%;
    bottom: 20%;
    height: 140px;
    background:
        linear-gradient(90deg, transparent, rgba(183, 139, 37, 0.42), rgba(34, 31, 26, 0.08), transparent);
    transform: rotate(-17deg);
    z-index: 1;
}

.home-cover-image span {
    color: rgba(34, 31, 26, 0.12);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    transform: skewX(5deg);
    position: relative;
    z-index: 3;
}

.home-cover-image span::before,
.home-cover-image span::after {
    content: '';
    position: absolute;
    height: 5px;
    border-radius: 999px;
    background: rgba(183, 139, 37, 0.28);
    transform: skewX(-18deg);
}

.home-cover-image span::before {
    width: 70%;
    left: -10%;
    top: -18px;
}

.home-cover-image span::after {
    width: 46%;
    right: -8%;
    bottom: -20px;
}

.home-cover-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
    transform: skewX(5deg) scale(1.08);
    position: relative;
    z-index: 2;
    filter: saturate(0.96) contrast(1.03);
    animation: characterZoomIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.home-title {
    max-width: 8.5ch;
    margin: 0;
    font-size: 7.6rem;
    line-height: 0.82;
    font-weight: 950;
    text-transform: uppercase;
}

.home-title span {
    display: block;
}

.home-title span:nth-child(2) {
    color: var(--dark-platinum-strong);
}

.home-slogan {
    margin-top: 26px;
    color: var(--text-dark);
    font-size: 2.15rem;
    font-weight: 900;
}

.home-race-visual {
    min-height: min(68svh, 620px);
    align-self: stretch;
    border: 0;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 248, 236, 0.92)),
        linear-gradient(115deg, transparent 0 45%, rgba(214, 174, 71, 0.2) 45% 58%, transparent 58% 100%),
        repeating-linear-gradient(-14deg, rgba(183, 139, 37, 0.13) 0 2px, transparent 2px 28px);
    box-shadow: 0 32px 80px rgba(67, 54, 34, 0.14);
}

.home-race-visual::before {
    inset: 26px;
    border-color: rgba(183, 139, 37, 0.26);
}

.home-race-visual::after {
    top: auto;
    bottom: 21%;
    height: 112px;
    background: linear-gradient(90deg, transparent, rgba(183, 139, 37, 0.42), rgba(214, 174, 71, 0.08), transparent);
    transform: rotate(-16deg);
}

.home-race-visual img {
    width: min(64%, 330px);
    transform: translateY(12px);
}

.home-speed-mark {
    left: 22px;
    top: 16px;
    color: rgba(34, 31, 26, 0.08);
    font-size: clamp(4.5rem, 12vw, 9rem);
}

.home-lane {
    background: rgba(34, 31, 26, 0.2);
}

.home-metric-strip {
    align-self: end;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(183, 139, 37, 0.28);
    border-bottom: 1px solid rgba(183, 139, 37, 0.16);
}

.home-metric {
    min-height: 104px;
    padding: 18px 18px 16px;
    border: 0;
    border-right: 1px solid rgba(183, 139, 37, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-metric:last-child {
    border-right: 0;
}

.home-metric span {
    font-size: 3.6rem;
}

.home-section-head h2 {
    font-size: 6.4rem;
    line-height: 0.84;
    font-weight: 950;
    text-transform: uppercase;
}

.home-section-head h2 span {
    display: block;
}

.home-section-head h2 span:nth-child(2) {
    color: var(--dark-platinum-strong);
}

.home-editorial-stage,
.home-route-stage,
.home-partner-stage {
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    gap: 42px;
}

.home-update-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(183, 139, 37, 0.22);
    border-bottom: 1px solid rgba(183, 139, 37, 0.16);
}

.home-update-column {
    min-height: 520px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 0;
}

.home-update-column + .home-update-column {
    border-left: 1px solid rgba(183, 139, 37, 0.18);
}

.home-column-head {
    min-height: 64px;
    margin: 0;
    border-bottom: 1px solid rgba(183, 139, 37, 0.16);
}

.home-update-item {
    min-height: 210px;
    padding: 26px 0;
    border: 0;
    border-bottom: 1px solid rgba(183, 139, 37, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-update-item:hover {
    transform: translateX(8px);
    border-color: rgba(183, 139, 37, 0.24);
    box-shadow: none;
}

.home-update-number {
    right: 0;
    top: 24px;
    color: rgba(183, 139, 37, 0.18);
    font-size: 4rem;
}

.home-update-type {
    margin-bottom: 18px;
}

.home-update-item h3 {
    padding-right: 78px;
    font-size: 1.8rem;
    line-height: 1.08;
}

.home-route-grid {
    gap: 14px;
}

.home-route-card {
    min-height: 440px;
    padding: 24px;
    border: 1px solid rgba(183, 139, 37, 0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255, 248, 236, 0.38)),
        linear-gradient(135deg, transparent 0 56%, rgba(214, 174, 71, 0.12) 56% 100%);
    box-shadow: none;
}

.home-route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(67, 54, 34, 0.13);
}

.home-route-index {
    font-size: 4rem;
}

.home-route-card h3 {
    margin: auto 0 10px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.9;
    text-transform: uppercase;
}

.home-route-card p {
    color: var(--dark-platinum-strong);
    font-weight: 900;
}

.home-route-action {
    margin-top: 42px;
    padding-top: 16px;
    border-top: 1px solid rgba(183, 139, 37, 0.2);
}

.home-sponsor-grid {
    align-self: center;
    gap: 0;
    border-top: 1px solid rgba(183, 139, 37, 0.16);
    border-left: 1px solid rgba(183, 139, 37, 0.16);
}

.home-sponsor-card,
.home-empty-card {
    border: 0;
    border-right: 1px solid rgba(183, 139, 37, 0.16);
    border-bottom: 1px solid rgba(183, 139, 37, 0.16);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.home-sponsor-card {
    min-height: 180px;
}

@media (prefers-reduced-motion: reduce) {
    .home-cover-image img,
    .home-cover-code,
    .home-cover-name h1,
    .home-cover-line {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .home-cover-stage,
    .home-hero-stage,
    .home-editorial-stage,
    .home-route-stage,
    .home-partner-stage {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-hero-stage {
        grid-template-areas:
            "copy"
            "visual"
            "metrics";
    }

    .home-cover-name h1 {
        font-size: 5.4rem;
    }

    .home-cover-image {
        min-height: 360px;
        transform: none;
    }

    .home-title {
        font-size: 5.4rem;
        max-width: 100%;
    }

    .home-race-visual {
        min-height: 360px;
    }

    .home-section-head h2 {
        font-size: 4.4rem;
    }

    .home-update-column {
        min-height: auto;
    }

    .home-route-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .home-page-shell {
        padding-top: 78px;
    }

    .home-section {
        min-height: auto;
        padding: 18px 0 34px;
    }

    .home-title {
        font-size: 3.8rem;
        line-height: 0.86;
    }

    .home-cover-name h1 {
        font-size: 3.9rem;
    }

    .home-cover-image {
        min-height: 260px;
    }

    .home-slogan {
        margin-top: 18px;
        font-size: 1.35rem;
    }

    .home-race-visual {
        min-height: 260px;
    }

    .home-metric-strip {
        grid-template-columns: 1fr;
        border-bottom: 0;
    }

    .home-metric {
        min-height: 76px;
        border-right: 0;
        border-bottom: 1px solid rgba(183, 139, 37, 0.16);
    }

    .home-metric span {
        font-size: 2.6rem;
    }

    .home-section-head h2 {
        font-size: 3.2rem;
    }

    .home-update-board {
        grid-template-columns: 1fr;
    }

    .home-update-column {
        padding: 0;
    }

    .home-update-column + .home-update-column {
        border-left: 0;
    }

    .home-update-item {
        min-height: 150px;
        padding: 22px 0;
    }

    .home-update-item h3 {
        font-size: 1.35rem;
        padding-right: 58px;
    }

    .home-update-number {
        font-size: 2.8rem;
    }

    .home-route-grid {
        grid-template-columns: 1fr;
    }

    .home-route-card {
        min-height: 210px;
    }

    .home-route-card h3 {
        font-size: 2.7rem;
    }

    .home-sponsor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home-cover-name h1 {
        font-size: 3.15rem;
    }

    .home-title {
        font-size: 3.05rem;
    }

    .home-section-head h2 {
        font-size: 2.65rem;
    }
}

/* Premium contact page */
.contact-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin: 18px auto 32px;
    max-width: 1080px;
    min-height: 260px;
    padding: clamp(32px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(183, 139, 37, 0.22);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0 52%, rgba(214, 174, 71, 0.08) 52% 100%),
        linear-gradient(180deg, rgba(255, 251, 244, 0.86), rgba(247, 244, 238, 0.7));
    box-shadow: 0 28px 72px rgba(67, 54, 34, 0.1);
}

.contact-hero::before,
.contact-hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.contact-hero::before {
    inset: 28px 30px auto auto;
    width: min(42vw, 460px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(183, 139, 37, 0.42));
}

.contact-hero::after {
    right: -70px;
    bottom: -110px;
    width: 360px;
    height: 220px;
    border: 1px solid rgba(183, 139, 37, 0.22);
    transform: skewX(-18deg);
}

.contact-hero-copy,
.contact-hero-mark {
    position: relative;
    z-index: 1;
}

.contact-kicker {
    display: block;
    margin-bottom: 18px;
    color: var(--dark-platinum-strong);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-hero h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(3.4rem, 8vw, 7.2rem);
    font-weight: 950;
    line-height: 0.86;
}

.contact-hero-mark {
    align-self: start;
    color: rgba(183, 139, 37, 0.18);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 950;
    line-height: 0.8;
}

.contact-info {
    max-width: 1080px;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(183, 139, 37, 0.22);
    border-left: 1px solid rgba(183, 139, 37, 0.22);
    background: rgba(255, 255, 255, 0.34);
}

.contact-item {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(120px, 0.8fr) minmax(180px, 1fr) 100px;
    align-items: center;
    gap: 20px;
    min-height: 118px;
    padding: 24px 28px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid rgba(183, 139, 37, 0.22);
    border-bottom: 1px solid rgba(183, 139, 37, 0.22);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 236, 0.48)),
        linear-gradient(135deg, transparent 0 64%, rgba(214, 174, 71, 0.1) 64% 100%);
    box-shadow: none;
    color: var(--text-dark);
    text-decoration: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: surface-rise 0.55s ease both;
}

.contact-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--dark-platinum);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.contact-item:hover {
    border-color: rgba(183, 139, 37, 0.32);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 236, 0.62)),
        linear-gradient(135deg, transparent 0 58%, rgba(214, 174, 71, 0.16) 58% 100%);
    box-shadow: none;
    transform: translateX(8px);
}

.contact-item:hover::before,
.contact-item-primary::before {
    opacity: 1;
}

.contact-index {
    color: rgba(183, 139, 37, 0.36);
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 950;
    line-height: 0.9;
}

.contact-label {
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-value {
    color: var(--text-dark);
    font-size: clamp(1.55rem, 3.3vw, 2.55rem);
    font-weight: 950;
    line-height: 1;
}

.contact-action {
    justify-self: end;
    padding-top: 8px;
    border-top: 1px solid rgba(183, 139, 37, 0.3);
    color: var(--dark-platinum-strong);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.14em;
}

@media (max-width: 768px) {
    .contact-hero {
        grid-template-columns: 1fr;
        min-height: 210px;
        margin-top: 0;
        padding: 30px 22px;
    }

    .contact-hero-mark {
        position: absolute;
        right: 20px;
        top: 24px;
        font-size: 3.2rem;
    }

    .contact-hero h1 {
        font-size: 3.6rem;
    }

    .contact-info {
        border-left: 0;
    }

    .contact-item {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 10px 14px;
        min-height: 132px;
        padding: 20px 16px;
        border-left: 1px solid rgba(183, 139, 37, 0.22);
    }

    .contact-index {
        grid-row: span 3;
        font-size: 2.4rem;
    }

    .contact-value {
        font-size: 1.35rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .contact-action {
        justify-self: start;
        padding-top: 7px;
    }

    .contact-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 3rem;
    }

    .contact-kicker {
        font-size: 0.68rem;
    }

    .contact-item {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 18px 12px;
        gap: 8px 10px;
    }

    .contact-index {
        font-size: 2rem;
    }

    .contact-value {
        font-size: 1.05rem;
    }

    .contact-label {
        font-size: 0.82rem;
    }

    .contact-action {
        font-size: 0.62rem;
        padding-top: 5px;
    }
}

/* Modern type scale pass */
.home-cover-name::before {
    top: -42px;
    font-size: clamp(3rem, 6vw, 5.4rem);
}

.home-cover-code,
.contact-kicker {
    font-size: 0.78rem;
}

.home-cover-name h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.02;
    text-shadow: 7px 7px 0 rgba(214, 174, 71, 0.07);
}

.home-cover-line {
    height: 6px;
    margin-top: 24px;
}

.home-cover-image,
.home-race-visual {
    min-height: min(58svh, 500px);
}

.home-cover-image span {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.home-title {
    max-width: 11ch;
    font-size: clamp(3.1rem, 6.2vw, 5.2rem);
    line-height: 0.95;
}

.home-slogan {
    margin-top: 20px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
}

.home-speed-mark {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

.home-metric {
    min-height: 88px;
}

.home-metric span {
    font-size: 2.35rem;
}

.home-section-head h2 {
    font-size: clamp(2.25rem, 4.8vw, 4rem);
    line-height: 0.98;
}

.home-update-column {
    min-height: 430px;
}

.home-update-item {
    min-height: 160px;
}

.home-update-number,
.home-route-index {
    font-size: 2.4rem;
}

.home-update-item h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.home-route-card {
    min-height: 300px;
}

.home-route-card h3 {
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    line-height: 1;
}

.contact-hero {
    min-height: 150px;
    padding: clamp(22px, 3vw, 34px);
}

.contact-hero h1 {
    font-size: clamp(1.85rem, 3.4vw, 3rem);
    line-height: 1;
}

.contact-hero-mark {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.contact-item {
    grid-template-columns: 64px minmax(120px, 0.75fr) minmax(180px, 1fr) 88px;
    min-height: 96px;
    padding: 20px 24px;
}

.contact-index {
    font-size: 2rem;
}

.contact-value {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
}

@media (max-width: 1024px) {
    .home-cover-name h1,
    .home-title {
        font-size: clamp(2.75rem, 8vw, 4.4rem);
    }

    .home-section-head h2 {
        font-size: clamp(2.1rem, 6vw, 3.4rem);
    }
}

@media (max-width: 768px) {
    .home-cover-name h1,
    .home-title {
        font-size: clamp(2.25rem, 10vw, 3.2rem);
    }

    .home-section-head h2 {
        font-size: clamp(1.9rem, 8vw, 2.65rem);
    }

    .home-cover-image,
    .home-race-visual {
        min-height: 230px;
    }

    .home-metric span {
        font-size: 1.9rem;
    }

    .home-update-item h3 {
        font-size: 1.1rem;
    }

    .home-update-number,
    .home-route-index {
        font-size: 2rem;
    }

    .home-route-card h3 {
        font-size: 1.75rem;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero-mark {
        font-size: 2.3rem;
    }

    .contact-item {
        min-height: 106px;
    }

    .contact-index {
        font-size: 1.7rem;
    }

    .contact-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .home-cover-name h1,
    .home-title {
        font-size: 2.35rem;
    }

    .home-section-head h2 {
        font-size: 2rem;
    }

    .home-slogan {
        font-size: 1.05rem;
    }

    .contact-hero h1 {
        font-size: 2.15rem;
    }

    .contact-value {
        font-size: 1.1rem;
    }
}

/* Unified public pages */
body:not(.home-page) .main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 128px 0 92px;
}

body:not(.home-page) .page-header,
.post-detail,
.comments-section,
.account-section,
.login-container,
.verification-panel,
.empty-state {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(183, 139, 37, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 236, 0.5)),
        linear-gradient(135deg, transparent 0 68%, rgba(214, 174, 71, 0.08) 68% 100%);
    box-shadow: 0 20px 56px rgba(67, 54, 34, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body:not(.home-page) .page-header {
    position: relative;
    margin: 10px 0 28px;
    padding: 30px 34px;
    overflow: hidden;
}

body:not(.home-page) .page-header::before {
    content: 'XCY';
    position: absolute;
    right: 28px;
    top: 20px;
    color: rgba(183, 139, 37, 0.14);
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 950;
    line-height: 1;
}

body:not(.home-page) .page-header::after {
    content: '';
    display: block;
    width: 88px;
    height: 3px;
    margin-top: 16px;
    background: var(--dark-platinum);
    transform: skewX(-24deg);
}

body:not(.home-page) .page-header h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
}

.posts-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 0;
}

.post-card-link {
    height: 100%;
}

.post-card {
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(183, 139, 37, 0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255, 248, 236, 0.48)),
        linear-gradient(135deg, transparent 0 66%, rgba(214, 174, 71, 0.09) 66% 100%);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card::before {
    content: '';
    width: 42px;
    height: 3px;
    margin-bottom: 22px;
    background: rgba(183, 139, 37, 0.7);
    transform: skewX(-24deg);
}

.post-card:hover,
.post-card-link:hover .post-card {
    border-color: rgba(183, 139, 37, 0.34);
    box-shadow: 0 28px 70px rgba(67, 54, 34, 0.12);
    transform: translateY(-6px) scale(1.01);
}

.post-card:active,
.post-card-link:active .post-card {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 12px 30px rgba(67, 54, 34, 0.1);
}

.post-title {
    margin-bottom: 10px;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 850;
    line-height: 1.2;
}

.post-date {
    margin-bottom: 14px;
    color: var(--dark-platinum-strong);
    font-size: 0.72rem;
    font-weight: 800;
}

.post-content {
    display: -webkit-box;
    margin-top: auto;
    overflow: hidden;
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.72;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.post-content h2,
.post-content h3,
.post-content ul,
.post-content ol,
.post-content pre {
    display: none;
}

.post-detail {
    max-width: 1080px;
    margin: 10px auto 36px;
    padding: clamp(26px, 5vw, 44px);
}

.post-detail-title {
    max-width: 780px;
    margin-bottom: 14px;
    font-size: clamp(2rem, 4.4vw, 3.15rem);
    font-weight: 900;
    line-height: 1.08;
}

.post-detail-date {
    color: var(--dark-platinum-strong);
    font-weight: 800;
}

.post-detail-content {
    max-width: 1080px;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.9;
}

.post-detail-content h2 {
    font-size: 1.45rem;
}

.post-detail-content h3 {
    font-size: 1.2rem;
}

.comments-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px;
    border-top: 1px solid rgba(183, 139, 37, 0.2);
}

.comments-section h2,
.account-section h2 {
    margin-bottom: 18px;
    font-size: 1.25rem;
    font-weight: 850;
}

.comment-form,
.login-prompt,
.comment-item,
.account-verification-banner {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(183, 139, 37, 0.16);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.comment-item {
    padding: 18px 20px;
}

.comment-form textarea,
.form-group input,
.form-group textarea,
.form-group select,
.login-form input,
.account-form input {
    border-radius: var(--radius-sm);
    border-color: rgba(183, 139, 37, 0.24);
    background: rgba(255, 255, 255, 0.74);
}

.comment-form textarea:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.login-form input:focus,
.account-form input:focus {
    border-color: rgba(183, 139, 37, 0.55);
    box-shadow: 0 0 0 4px rgba(214, 174, 71, 0.1), 0 4px 12px rgba(183, 139, 37, 0.08);
    transform: translateY(-1px) scale(1.005);
}

.submit-btn,
.login-btn,
.secondary-btn,
.verification-link-btn {
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0;
    box-shadow: none;
}

.submit-btn:hover,
.login-btn:hover,
.secondary-btn:hover,
.verification-link-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(67, 54, 34, 0.15);
}

.submit-btn:active,
.login-btn:active,
.secondary-btn:active,
.verification-link-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(67, 54, 34, 0.12);
}

.account-container {
    max-width: 900px;
}

.account-section {
    margin-bottom: 18px;
    padding: 26px;
}

.info-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(183, 139, 37, 0.14);
}

.info-item:last-child {
    border-bottom: 0;
}

.info-item label {
    margin: 0;
    color: var(--text-light);
    font-size: 0.82rem;
}

.info-item p {
    color: var(--text-dark);
    font-weight: 750;
}

.login-container {
    max-width: 420px;
    margin: 88px auto;
    padding: 34px;
}

.login-title,
.verification-panel h1 {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.12;
}

.login-form {
    gap: 14px;
}

.verification-panel {
    max-width: 880px;
    margin: 20px auto;
    padding: clamp(26px, 5vw, 42px);
}

.verification-panel-hero {
    gap: 22px;
}

.verification-panel-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    font-size: 1.6rem;
}

.verification-panel-badge {
    color: var(--dark-platinum-strong);
    font-size: 0.74rem;
    font-weight: 850;
}

.verification-panel-copy,
.verification-panel-state,
.verification-panel-note p {
    font-size: 0.96rem;
    line-height: 1.75;
}

.modal-content {
    border-radius: var(--radius-sm);
    border-color: rgba(183, 139, 37, 0.2);
}

.empty-state {
    padding: 54px 24px;
}

@media (max-width: 768px) {
    body:not(.home-page) .main {
        padding: 104px 0 72px;
    }

    body:not(.home-page) .page-header {
        padding: 24px 22px;
    }

    body:not(.home-page) .page-header h1 {
        font-size: 2.05rem;
    }

    .posts-container {
        grid-template-columns: 1fr;
    }

    .post-card {
        min-height: 210px;
        padding: 22px;
    }

    .post-detail,
    .comments-section,
    .account-section,
    .verification-panel,
    .login-container {
        padding: 22px;
    }

    .post-detail-title {
        font-size: 2rem;
    }

    .comments-section {
        margin-top: 0;
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .verification-panel-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body:not(.home-page) .main {
        padding-top: 96px;
    }

    body:not(.home-page) .page-header h1,
    .post-detail-title {
        font-size: 1.75rem;
    }

    .post-title,
    .comments-section h2,
    .account-section h2 {
        font-size: 1.12rem;
    }
}

/* Compact blog and race lists */
body.list-page .posts-container {
    grid-template-columns: 1fr;
    gap: 12px;
}

body.list-page .post-card {
    min-height: 0;
    padding: 18px 20px;
}

body.list-page .post-card::before {
    width: 34px;
    height: 2px;
    margin-bottom: 14px;
}

body.list-page .post-title {
    margin-bottom: 8px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.24;
}

body.list-page .post-date {
    margin-bottom: 8px;
}

body.list-page .post-content {
    margin-top: 0;
    font-size: 0.9rem;
    line-height: 1.58;
    -webkit-line-clamp: 2;
}

@media (max-width: 768px) {
    body.list-page .post-card {
        min-height: 0;
        padding: 16px 18px;
    }
}

/* Contact-style top panels for non-home pages */
body:not(.home-page) .page-header,
.post-detail,
.login-container,
.verification-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(183, 139, 37, 0.22);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0 54%, rgba(214, 174, 71, 0.08) 54% 100%),
        linear-gradient(180deg, rgba(255, 251, 244, 0.86), rgba(247, 244, 238, 0.7));
    box-shadow: 0 24px 64px rgba(67, 54, 34, 0.09);
}

body:not(.home-page) .page-header {
    display: grid;
    align-items: end;
    min-height: 190px;
    margin-bottom: 26px;
    padding: clamp(28px, 4vw, 46px);
}

body:not(.home-page) .page-header::before,
.post-detail::before,
.login-container::before,
.verification-panel::before {
    content: '';
    position: absolute;
    inset: 28px 30px auto auto;
    width: min(42vw, 420px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(183, 139, 37, 0.42));
    pointer-events: none;
}

body:not(.home-page) .page-header::after,
.post-detail::after,
.login-container::after,
.verification-panel::after {
    content: 'XCY';
    position: absolute;
    right: 30px;
    top: 28px;
    color: rgba(183, 139, 37, 0.18);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 0.8;
    pointer-events: none;
}

body:not(.home-page) .page-header h1,
.post-detail-title,
.login-title,
.verification-panel h1 {
    position: relative;
    z-index: 1;
}

body:not(.home-page) .page-header h1 {
    max-width: 720px;
    font-size: clamp(2.25rem, 5.2vw, 4.4rem);
    line-height: 1;
}

.post-detail {
    padding-top: clamp(84px, 10vw, 116px);
}

.login-container,
.verification-panel {
    padding-top: clamp(76px, 9vw, 104px);
}

.post-detail-date,
.verification-panel-badge {
    position: relative;
    z-index: 1;
}

.post-detail-title::after,
.login-title::after,
.verification-panel h1::after {
    content: '';
    display: block;
    width: 88px;
    height: 3px;
    margin-top: 16px;
    background: var(--dark-platinum);
    transform: skewX(-24deg);
}

@media (max-width: 768px) {
    body:not(.home-page) .page-header {
        min-height: 150px;
        padding: 28px 22px;
    }

    body:not(.home-page) .page-header h1 {
        font-size: 2.5rem;
    }

    body:not(.home-page) .page-header::after,
    .post-detail::after,
    .login-container::after,
    .verification-panel::after {
        right: 20px;
        top: 24px;
        font-size: 2.3rem;
    }

    .post-detail {
        padding-top: 76px;
    }

    .login-container,
    .verification-panel {
        padding-top: 72px;
    }
}

@media (max-width: 480px) {
    body:not(.home-page) .page-header h1 {
        font-size: 2.15rem;
    }
}

/* Shared page hero source: same component as contact */
.page-hero {
    margin-top: 10px;
}

body:not(.home-page) .contact-hero {
    min-height: 140px;
    margin-bottom: 22px;
    padding: clamp(20px, 2.8vw, 32px);
    animation: surface-rise 0.6s ease 0.06s both;
}

body:not(.home-page) .contact-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.02;
}

body:not(.home-page) .contact-hero-mark {
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
}

body:not(.home-page) .page-header {
    display: none;
}

.post-detail,
.login-container,
.verification-panel {
    overflow: visible;
}

.post-detail::before,
.post-detail::after,
.login-container::before,
.login-container::after,
.verification-panel::before,
.verification-panel::after,
.post-detail-title::after,
.login-title::after,
.verification-panel h1::after {
    content: none;
    display: none;
}

.post-detail,
.login-container,
.verification-panel {
    padding-top: clamp(24px, 4vw, 38px);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,248,236,0.5)),
        linear-gradient(135deg, transparent 0 68%, rgba(214, 174, 71, 0.08) 68% 100%);
}

.post-detail-date {
    margin-bottom: 20px;
}

.login-container {
    margin-top: 0;
}

.verification-panel {
    margin-top: 0;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 126px;
        margin-top: 0;
    }

    body:not(.home-page) .contact-hero {
        min-height: 126px;
        padding: 22px 18px;
    }

    body:not(.home-page) .contact-hero h1 {
        font-size: clamp(1.65rem, 8vw, 2.35rem);
    }

    .post-detail,
    .login-container,
    .verification-panel {
        padding-top: 22px;
    }
}

/* Motorsport title typography */
.home-cover-name h1,
.home-title,
.home-section-head h2,
.home-route-card h3,
.contact-hero h1,
.contact-hero-mark,
.contact-index,
.home-update-number,
.home-route-index {
    font-family: var(--font-display);
    font-stretch: condensed;
    letter-spacing: 0;
}

.post-title,
.post-detail-title,
.login-title,
.verification-panel h1,
.comments-section h2,
.account-section h2,
.contact-label,
.contact-value,
.home-slogan,
.home-column-head,
.home-update-item h3 {
    font-family: var(--font-title);
    letter-spacing: 0;
}

.contact-hero h1,
.home-cover-name h1,
.home-title,
.home-section-head h2 {
    text-transform: none;
}

.contact-hero-mark {
    text-transform: uppercase;
}

/* Chinese title refinement */
.home-cover-name h1,
.home-slogan,
.contact-hero h1,
.post-title,
.post-detail-title,
.login-title,
.verification-panel h1,
.comments-section h2,
.account-section h2,
.home-update-item h3,
.contact-label,
.contact-value {
    font-family: var(--font-cjk-display);
    font-weight: 850;
    letter-spacing: 0.01em;
    font-synthesis: none;
}

.home-slogan,
.post-title,
.post-detail-title,
.comments-section h2,
.account-section h2,
.home-update-item h3,
.contact-label,
.contact-value {
    font-family: var(--font-cjk-title);
}

.contact-hero h1,
.home-cover-name h1 {
    font-weight: 900;
}

.home-title,
.home-section-head h2,
.contact-hero-mark,
.contact-index,
.home-update-number,
.home-route-index {
    font-family: var(--font-display);
}

/* Racing feel for Chinese display text */
.home-cover-name h1,
.contact-hero h1 {
    display: inline-block;
    transform: skewX(-8deg) scaleX(0.94);
    transform-origin: left bottom;
    text-shadow:
        0.08em 0.08em 0 rgba(214, 174, 71, 0.16),
        0.16em 0.16em 0 rgba(34, 31, 26, 0.035);
}

.home-slogan,
.post-title,
.post-detail-title,
.home-update-item h3 {
    transform: skewX(-4deg);
    transform-origin: left center;
}

body.home-page .home-column-head a,
body.home-page .home-empty-card,
body.home-page .home-update-type,
body.home-page .home-route-card p,
body.home-page .home-route-action {
    font-family: var(--font-cjk-title);
    font-synthesis: none;
    transform: skewX(-4deg);
    transform-origin: left center;
}

.nav .nav-link,
.nav .login-btn,
.nav .user-btn,
.nav .user-dropdown a {
    font-family: var(--font-cjk-title);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.01em;
    font-synthesis: none;
    text-transform: none;
    transform: skewX(-4deg);
    transform-origin: left center;
}

.nav .nav-link:hover,
.nav .nav-link.active {
    transform: skewX(-4deg) translateY(-1px);
}

body.home-page .home-section-head h2 {
    font-family: var(--font-display);
    font-synthesis: none;
    transform: skewX(-4deg);
    transform-origin: left center;
}

.nav .nav-link,
.nav .login-btn,
.nav .user-btn,
.nav .user-dropdown a,
body.home-page .home-column-head a,
body.home-page .home-empty-card,
body.home-page .home-update-type,
body.home-page .home-route-card p,
body.home-page .home-route-action {
    display: inline-block;
}

.contact-hero h1::after,
.home-cover-name h1::after {
    content: '';
    display: block;
    width: 42%;
    height: 4px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--dark-platinum-strong), rgba(214, 174, 71, 0));
    transform: skewX(-24deg);
}

@media (max-width: 768px) {
    .home-cover-name h1,
    .contact-hero h1 {
        transform: skewX(-6deg) scaleX(0.96);
    }
}
.logout-inline-form {
    margin: 0;
}

.logout-inline-form button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

/* 素材库弹窗 */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.media-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

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

.media-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.media-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.media-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-light);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-modal-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.media-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.media-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px dashed #d0d0d0;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-upload-area:hover {
    border-color: #e6b630;
    background: linear-gradient(135deg, #fffef8 0%, #faf8f0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 182, 48, 0.1);
}

.media-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #e6b630 0%, #d4a628 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(230, 182, 48, 0.3);
}

.media-upload-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(230, 182, 48, 0.4);
    background: linear-gradient(135deg, #f0c040 0%, #e0b030 100%);
}

.media-upload-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(230, 182, 48, 0.3);
}

.media-upload-btn:active {
    transform: translateY(0);
}

.media-upload-hint {
    font-size: 13px;
    color: var(--text-light);
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.media-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.media-item:hover {
    border-color: #e6b630;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-item.selected {
    border-color: #e6b630;
    box-shadow: 0 0 0 3px rgba(230, 182, 48, 0.2);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.media-item:hover .media-item-overlay {
    opacity: 1;
}

.media-item-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6b630;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.media-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.media-item-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

.media-item-badge.local {
    background: #6b7280;
}

.media-item-delete svg {
    width: 18px;
    height: 18px;
}

.media-item:hover .media-item-delete {
    opacity: 1;
}

.media-item-delete:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

.media-item-delete:active {
    transform: scale(0.95);
}

.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.media-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .media-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

/* Home page section 2: slogan-only speed poster */
.home-section-hero {
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 46%, rgba(230, 182, 48, 0.18), transparent 28%),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.76), transparent 24%),
        radial-gradient(circle at 82% 72%, rgba(245, 215, 110, 0.16), transparent 30%);
    overflow: hidden;
}

.home-section-hero::before {
    opacity: 0.72;
    background:
        repeating-linear-gradient(112deg, transparent 0 28px, rgba(183, 139, 37, 0.1) 29px 31px, transparent 32px 92px),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    animation: sloganTrackRush 6s linear infinite;
}

.home-section-hero::after {
    opacity: 0.58;
    background:
        radial-gradient(circle, rgba(183, 139, 37, 0.24) 0 1px, transparent 2px) 0 0 / 52px 52px,
        radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px) 25px 18px / 88px 88px;
    mix-blend-mode: multiply;
    animation: sloganSparkDrift 9s linear infinite;
}

.home-section-hero .home-hero-stage {
    min-height: min(78svh, 760px);
    grid-template-columns: 1fr;
    grid-template-areas: "copy";
    place-items: center;
    position: relative;
}

.home-section-hero .home-hero-stage::before,
.home-section-hero .home-hero-stage::after {
    content: '';
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    pointer-events: none;
}

.home-section-hero .home-hero-stage::before {
    width: min(84vw, 980px);
    height: min(84vw, 980px);
    border: 1px solid rgba(183, 139, 37, 0.2);
    box-shadow:
        inset 0 0 70px rgba(255, 255, 255, 0.44),
        0 0 90px rgba(214, 174, 71, 0.16);
    animation: sloganRingPulse 4.8s ease-in-out infinite;
}

.home-section-hero .home-hero-stage::after {
    width: min(66vw, 720px);
    height: 12px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), rgba(214, 174, 71, 0.46), transparent);
    filter: blur(8px);
    transform: rotate(-11deg);
    animation: sloganBeamSweep 2.6s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.home-slogan-only {
    grid-area: copy;
    width: min(100%, 1180px);
    padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 70px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.home-slogan-only::before {
    content: 'RACERXIE';
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -53%);
    color: rgba(183, 139, 37, 0.08);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(5.4rem, 18vw, 19rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 0.75;
    white-space: nowrap;
    z-index: -1;
    animation: sloganGhostFloat 7s ease-in-out infinite;
}

.home-slogan-en {
    margin: 0 0 clamp(18px, 3vw, 30px);
    color: rgba(34, 31, 26, 0.82);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(1.45rem, 4.8vw, 5.3rem);
    font-weight: 900;
    letter-spacing: clamp(0.06em, 1vw, 0.2em);
    line-height: 0.92;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 44px rgba(183, 139, 37, 0.16);
    animation: sloganDropIn 0.9s cubic-bezier(0.18, 0.88, 0.22, 1.08) both;
}

.home-slogan-zh {
    max-width: none;
    margin: 0;
    color: var(--text-dark);
    display: inline-block;
    font-family: var(--font-cjk-title);
    font-size: clamp(3.4rem, 11vw, 12.5rem);
    font-weight: 850;
    letter-spacing: 0.01em;
    line-height: 0.96;
    font-synthesis: none;
    text-transform: none;
    transform: skewX(-4deg);
    transform-origin: center;
    text-shadow:
        0.08em 0.08em 0 rgba(214, 174, 71, 0.16),
        0.16em 0.16em 0 rgba(34, 31, 26, 0.035),
        0 24px 60px rgba(183, 139, 37, 0.14);
    animation: sloganPunchIn 1s cubic-bezier(0.16, 0.9, 0.2, 1.12) 0.12s both;
}

.home-slogan-beam {
    width: min(78vw, 720px);
    height: 4px;
    margin: clamp(24px, 4vw, 46px) auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(183, 139, 37, 0.18), var(--dark-platinum), rgba(183, 139, 37, 0.18), transparent);
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(214, 174, 71, 0.28);
    transform-origin: center;
    animation: sloganBeamIgnite 1.1s ease 0.42s both, sloganBeamGlow 1.8s ease-in-out 1.4s infinite;
}

.home-slogan-only + .home-race-visual,
.home-slogan-only ~ .home-metric-strip {
    display: none;
}

@keyframes sloganTrackRush {
    from { transform: translate3d(-8%, 0, 0); }
    to { transform: translate3d(8%, 0, 0); }
}

@keyframes sloganSparkDrift {
    from { background-position: 0 0, 25px 18px; }
    to { background-position: 104px -52px, 201px -70px; }
}

@keyframes sloganRingPulse {
    0%, 100% { transform: scale(0.94) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.04) rotate(7deg); opacity: 1; }
}

@keyframes sloganBeamSweep {
    0% { opacity: 0; transform: translateX(-36vw) rotate(-11deg) scaleX(0.35); }
    18%, 68% { opacity: 0.9; }
    100% { opacity: 0; transform: translateX(36vw) rotate(-11deg) scaleX(1); }
}

@keyframes sloganGhostFloat {
    0%, 100% { transform: translate(-50%, -53%) skewX(-9deg); }
    50% { transform: translate(-50%, -48%) skewX(-4deg); }
}

@keyframes sloganDropIn {
    from { opacity: 0; transform: translateY(-34px) scaleX(1.16); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scaleX(1); filter: blur(0); }
}

@keyframes sloganPunchIn {
    from { opacity: 0; transform: translateY(38px) skewX(-4deg) scale(0.86); filter: blur(12px); }
    to { opacity: 1; transform: translateY(0) skewX(-4deg) scale(1); filter: blur(0); }
}

@keyframes sloganBeamIgnite {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes sloganBeamGlow {
    0%, 100% { opacity: 0.64; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

@media (max-width: 768px) {
    .home-section-hero .home-hero-stage {
        min-height: 62svh;
    }

    .home-slogan-only {
        padding-inline: 10px;
    }

    .home-slogan-only::before {
        font-size: clamp(4rem, 23vw, 8rem);
        white-space: normal;
    }

    .home-slogan-en {
        letter-spacing: 0.08em;
    }

    .home-slogan-zh {
        font-size: clamp(3rem, 16vw, 6.8rem);
        letter-spacing: -0.07em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-section-hero::before,
    .home-section-hero::after,
    .home-section-hero .home-hero-stage::before,
    .home-section-hero .home-hero-stage::after,
    .home-slogan-only::before,
    .home-slogan-en,
    .home-slogan-zh,
    .home-slogan-beam {
        animation: none;
    }
}
