:root {
    --bg-color: #030305;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.4);
    --blob-1: #ff3b7c;
    --blob-2: #4a00e0;
    --blob-3: #00d2ff;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-organic: cubic-bezier(0.6, 0.04, 0.4, 0.96);
    --duration-slow: 1.2s;
    --duration-med: 0.8s;
    --duration-fast: 0.5s;

    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    cursor: none;
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.hidden { display: none; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.select-none { user-select: none; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.top-8 { top: 2rem; }
.right-8 { right: 2rem; }
.bottom-8 { bottom: 2rem; }
.left-8 { left: 2rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-\[10px\] { font-size: 10px; }

.font-light { font-weight: 300; }
.font-mono { font-family: 'Courier New', Courier, monospace; }

.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.5em\] { letter-spacing: 0.5em; }
.tracking-widest { letter-spacing: 0.15em; }

.leading-relaxed { line-height: 1.625; }

.text-white { color: #fff; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }

.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

.hover-opacity-100:hover { opacity: 1; }

.transition-opacity { transition-property: opacity; }
.duration-500 { transition-duration: 500ms; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-2 { width: 0.5rem; }
.w-12 { width: 3rem; }
.h-2 { height: 0.5rem; }
.h-\[1px\] { height: 1px; }

.rounded-full { border-radius: 9999px; }

.bg-white { background-color: #fff; }
.bg-gray-500 { background-color: var(--gray-500); }

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform;
    mix-blend-mode: screen;
    animation: float 24s infinite alternate var(--ease-organic);
}

.blob-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--blob-1), transparent 70%);
    top: -10vw;
    left: -10vw;
    animation-delay: 0s;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--blob-2), transparent 70%);
    bottom: -20vw;
    right: -10vw;
    animation-delay: -6s;
}

.blob-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--blob-3), transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(8vw, -10vh) scale(1.15) rotate(3deg); }
    50% { transform: translate(-6vw, 12vh) scale(0.92) rotate(-2deg); }
    75% { transform: translate(12vw, -6vh) scale(1.08) rotate(4deg); }
    100% { transform: translate(-4vw, 8vh) scale(1.05) rotate(-1deg); }
}

.serif-cn {
    font-family: 'Noto Serif SC', serif;
}

.main-title {
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: 200;
    mix-blend-mode: overlay;
    white-space: nowrap;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity var(--duration-fast) var(--ease-out-expo),
                transform var(--duration-fast) var(--ease-out-expo),
                box-shadow var(--duration-fast) var(--ease-out-expo);
}

.glass-panel:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background-color 0.3s var(--ease-out-expo);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                border-color 0.4s var(--ease-out-expo),
                background 0.4s var(--ease-out-expo);
}

.parallax-wrap {
    will-change: transform;
}

.deco-line {
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
    position: absolute;
    left: 50%;
    top: 0;
}

#mobile-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
    cursor: auto;
}

#mobile-blocker.active {
    opacity: 1;
    visibility: visible;
}

.blocker-content {
    text-align: center;
    max-width: 80%;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
    position: relative;
}

.blocker-content::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 5px;
    height: 5px;
    background: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.animate-pulse {
    animation: pulse 2s var(--ease-in-out-quart) infinite;
}

.entrance-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.entrance-hidden-scale {
    opacity: 0;
    transform: scale(0.92);
}

.entrance-hidden-left {
    opacity: 0;
    transform: translateX(-24px);
}

.entrance-hidden-right {
    opacity: 0;
    transform: translateX(24px);
}

.entrance-fade-in-up {
    animation: fadeInUp var(--duration-med) var(--ease-out-expo) forwards;
}

.entrance-fade-in-scale {
    animation: fadeInScale var(--duration-slow) var(--ease-out-expo) forwards;
}

.entrance-fade-in-left {
    animation: fadeInLeft var(--duration-med) var(--ease-out-expo) forwards;
}

.entrance-fade-in-right {
    animation: fadeInRight var(--duration-med) var(--ease-out-expo) forwards;
}

.entrance-blob-in {
    animation: blobIn 1.8s var(--ease-out-expo) forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-24px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(24px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes blobIn {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 0.6; transform: scale(1); }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
    cursor: auto;
}

.modal-overlay * {
    cursor: auto;
}

.modal-overlay .modal-btn {
    cursor: pointer;
}

.modal-overlay .modal-btn:disabled {
    cursor: not-allowed;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.modal-card {
    position: relative;
    width: min(640px, 88vw);
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 44px;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.8s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
    box-shadow:
        0 0 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modal-card::-webkit-scrollbar {
    width: 4px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.modal-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-step.hidden {
    display: none;
}

.modal-step.exit {
    animation: stepExit 0.35s var(--ease-out-expo) forwards;
}

.modal-step.enter {
    display: flex;
    animation: stepEnter 0.6s var(--ease-out-expo) forwards;
}

@keyframes stepExit {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

@keyframes stepEnter {
    0% { opacity: 0; transform: translateY(16px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 59, 124, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 59, 124, 0.2);
    animation: iconPulse 3s var(--ease-in-out-quart) infinite;
}

.modal-icon-wrapper.step-2 {
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.2);
    animation: iconPulseCyan 3s var(--ease-in-out-quart) infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 124, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(255, 59, 124, 0); }
}

@keyframes iconPulseCyan {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(0, 210, 255, 0); }
}

.modal-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--blob-1);
}

.modal-icon-wrapper.step-2 .modal-icon-svg {
    color: var(--blob-3);
}

.modal-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.85);
}

.modal-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-section.centered {
    align-items: center;
    text-align: center;
    gap: 16px;
}

.cost-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.network-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
}

.text-accent {
    color: #ff3b7c;
    font-weight: 700;
}

.text-cyan {
    color: #00d2ff;
    font-weight: 500;
}

.text-green {
    color: #4ade80;
    font-weight: 600;
}

.text-gold {
    color: #fbbf24;
    font-weight: 600;
}

.text-purple {
    color: #a78bfa;
    font-weight: 500;
}

.text-red {
    color: #ef4444;
}

.text-red-em {
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.text-dim {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.warning-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
}

.warning-icon {
    width: 20px;
    height: 20px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.82rem;
    line-height: 1.8;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.75);
}

.modal-btn {
    width: 100%;
    padding: 14px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: all 0.5s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.modal-btn:not(:disabled):hover::before {
    opacity: 1;
}

.modal-btn:not(:disabled):hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.modal-btn.confirm-btn {
    border-color: rgba(0, 210, 255, 0.2);
    background: rgba(0, 210, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.modal-btn.confirm-btn:not(:disabled):hover {
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 210, 255, 0.1);
}

.modal-btn.confirm-btn::before {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.06), transparent);
}

.btn-timer {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.6;
    transition: opacity 0.3s var(--ease-out-expo);
    position: absolute;
    right: 44px;
}

.modal-btn:not(:disabled) .btn-timer {
    opacity: 1;
    color: #4ade80;
}

.modal-back-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Noto Serif SC', serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    padding: 8px;
    transition: color 0.4s var(--ease-out-expo);
    margin-top: -8px;
}

.modal-back-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

.version-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.version-badge {
    font-family: 'Space Grotesk', monospace;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 36px;
    position: relative;
}

.version-badge::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), transparent, rgba(255, 59, 124, 0.1));
    z-index: -1;
    opacity: 0.5;
}

.version-warning {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.wiki-trigger{position:fixed;bottom:32px;right:32px;z-index:100;display:flex;align-items:center;gap:8px;padding:8px 18px;background:rgba(15,23,42,0.7);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.08);border-radius:24px;color:#94a3b8;font-size:0.78rem;font-weight:400;letter-spacing:0.15em;cursor:pointer;text-decoration:none;transition:all 0.4s ease}.wiki-trigger:hover{color:#e2e8f0;border-color:rgba(45,212,191,0.4);background:rgba(15,23,42,0.85)}.wiki-trigger .dot{width:5px;height:5px;border-radius:50%;background:#2dd4bf}
