@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

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

:root {
    --primary: #ff2a6d;
    --secondary: #05d9e8;
    --accent: #f9f002;
    --green: #39ff14;
    --purple: #d300c5;
    --dark: #0d0221;
    --darker: #05010d;
}

/* ==========================================
   MOBILE SPLASH SCREEN
   ========================================== */
.mobile-splash {
    display: none; /* Hidden by default, shown via JS on mobile */
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #05010d 0%, #0d0221 50%, #1a0a2e 100%);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-splash.active {
    display: flex;
}

.mobile-splash-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 350px;
    position: relative;
    z-index: 2;
}

.mobile-splash-glitch {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: mobileGlitch 3s infinite;
    margin-bottom: 10px;
}

@keyframes mobileGlitch {
    0%, 90%, 100% { opacity: 1; transform: translateX(0); }
    92% { opacity: 0.8; transform: translateX(-2px); }
    94% { opacity: 0.9; transform: translateX(2px); }
    96% { opacity: 0.7; transform: translateX(-1px); }
}

.mobile-splash-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.mobile-splash-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 4px;
    padding: 8px 15px;
    border: 1px solid var(--accent);
    display: inline-block;
    margin-bottom: 25px;
    background: rgba(249, 240, 2, 0.1);
}

.mobile-splash-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.mobile-splash-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-social-link {
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-link svg {
    width: 22px;
    height: 22px;
}

.mobile-social-link:active {
    transform: scale(0.95);
    background: rgba(5, 217, 232, 0.2);
}

.mobile-splash-bypass {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--green);
    background: transparent;
    border: 2px solid var(--green);
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.mobile-splash-bypass:active {
    background: var(--green);
    color: #000;
    transform: scale(0.98);
}

.mobile-splash-warning {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 42, 109, 0.7);
    letter-spacing: 1px;
}

.mobile-splash-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* Hide splash on desktop */
@media (min-width: 769px) {
    .mobile-splash { display: none !important; }
}

/* Theme Variations */
[data-theme="blood"] {
    --primary: #ff0040;
    --secondary: #ff4444;
    --accent: #ffaa00;
}
[data-theme="ghost"] {
    --primary: #00fff2;
    --secondary: #7b68ee;
    --accent: #ffffff;
}
[data-theme="gold"] {
    --primary: #ffd700;
    --secondary: #ff8c00;
    --accent: #fffacd;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker);
    color: #fff;
    overflow-x: hidden;
    cursor: none;
}

/* Cursor */
.cursor {
    width: 30px; height: 30px;
    border: 2px solid var(--primary);
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, border-color 0.2s ease;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.cursor-dot {
    width: 4px; height: 4px;
    background: var(--secondary);
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
}
.cursor.hover { transform: scale(1.5) rotate(45deg); border-color: var(--accent); }

/* Scanlines & Effects */
.scanlines {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9998;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

.crt {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9997;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

/* Glitch Mode */
body.glitch-mode { animation: glitchBody 0.3s infinite; }
@keyframes glitchBody {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg) saturate(2); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg) saturate(0.5); }
    100% { filter: hue-rotate(360deg); }
}

/* Rain */
#rain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.4; }

/* Cyber Grid */
.cyber-grid {
    position: fixed; bottom: 0; left: 0; right: 0; height: 40vh;
    background: linear-gradient(to bottom, transparent 0%, var(--darker) 100%),
        repeating-linear-gradient(90deg, rgba(5,217,232,0.1) 0px, rgba(5,217,232,0.1) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(5,217,232,0.1) 0px, rgba(5,217,232,0.1) 1px, transparent 1px, transparent 80px);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom; z-index: 1;
    animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 0 0, 0 80px, 0 80px; } }

/* HUD */
.hud-corner { position: fixed; width: 80px; height: 80px; border: 1px solid var(--secondary); opacity: 0.3; z-index: 100; }
.hud-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.hud-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.hud-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.hud-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }
.hud-text {
    position: fixed; font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem; color: var(--secondary);
    text-shadow: 0 0 5px var(--secondary);
    opacity: 0.5; z-index: 100; letter-spacing: 0.1em;
}
.hud-text-tl { top: 110px; left: 25px; writing-mode: vertical-rl; }
.hud-text-br { bottom: 110px; right: 25px; writing-mode: vertical-rl; }

/* Data Stream */
.data-stream {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    font-family: 'Share Tech Mono', monospace; font-size: 0.55rem;
    color: var(--green); text-shadow: 0 0 5px var(--green);
    opacity: 0.4; z-index: 100; line-height: 1.4; text-align: right;
}

/* Audio Toggle */
.audio-toggle {
    position: fixed; top: 80px; right: 20px;
    background: transparent; border: 1px solid var(--primary);
    color: var(--primary); font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem; padding: 6px 12px; cursor: pointer; z-index: 1001;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.audio-toggle .audio-off { display: none; }
.audio-toggle.muted .audio-on { display: none; }
.audio-toggle.muted .audio-off { display: inline; }

/* Theme Switcher */
.theme-switcher {
    position: fixed; top: 115px; right: 20px;
    display: flex; flex-direction: column; gap: 5px; z-index: 1001;
}
.theme-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5); font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem; padding: 4px 10px; cursor: pointer; transition: all 0.3s;
}
.theme-btn.active, .theme-btn:hover {
    border-color: var(--primary); color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Glitch Button */
.glitch-btn {
    position: fixed; top: 235px; right: 20px;
    background: var(--primary); border: none;
    color: var(--darker); font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem; font-weight: 700; padding: 6px 12px; cursor: pointer; z-index: 1001;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s;
}
.glitch-btn:hover { background: var(--accent); }
.glitch-btn.active { animation: glitchBtn 0.2s infinite; }
@keyframes glitchBtn { 0%,100% { transform: translate(0); } 50% { transform: translate(2px,-2px); } }

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 20px 5%; display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; background: linear-gradient(to bottom, rgba(5,1,13,0.9), transparent);
}
.nav-logo {
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.3rem;
    color: var(--primary); text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}
.nav-logo span { color: var(--secondary); text-shadow: 0 0 10px var(--secondary); }
.nav-jp { font-size: 0.6rem; color: var(--accent); text-shadow: 0 0 5px var(--accent); display: block; letter-spacing: 0.2em; }
.nav-links { display: flex; gap: 30px; }
.nav-link {
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem;
    color: var(--secondary); text-decoration: none; letter-spacing: 0.15em;
    text-transform: uppercase; position: relative; padding: 5px 0;
}
.nav-link::before { content: '//'; margin-right: 5px; color: var(--primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); box-shadow: 0 0 10px var(--primary); transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Kanji - Underground Secret Triggers (Sharp Glitch Style) */
.kanji-float {
    position: absolute; font-size: 8rem; font-weight: 100;
    font-family: 'Share Tech Mono', monospace;
    color: rgba(249,240,2,0.06); pointer-events: auto; z-index: 10;
    cursor: pointer; transition: all 0.3s ease; user-select: none;
    animation: kanjiFloat 20s ease-in-out infinite, kanjiBlink 4s ease-in-out infinite;
    letter-spacing: -0.1em;
    transform: scaleX(0.7) skewX(-3deg);
    filter: blur(0.3px);
    text-shadow: 
        1px 0 0 rgba(255,42,109,0.3),
        -1px 0 0 rgba(5,217,232,0.3);
}
.kanji-float:hover {
    color: rgba(249,240,2,0.6);
    text-shadow: 
        2px 0 0 rgba(255,42,109,0.5),
        -2px 0 0 rgba(5,217,232,0.5),
        0 0 20px var(--accent),
        0 0 40px var(--accent);
    transform: scaleX(0.7) skewX(-3deg) scale(1.1);
    filter: blur(0px);
}
.kanji-float.sequence-active {
    color: rgba(5,217,232,0.9) !important;
    text-shadow: 
        3px 0 0 rgba(255,42,109,0.7),
        -3px 0 0 rgba(57,255,20,0.7),
        0 0 40px var(--secondary),
        0 0 80px var(--secondary);
    animation: kanjiPulse 0.5s ease, kanjiGlitch 0.1s ease infinite;
    filter: blur(0px);
}
@keyframes kanjiPulse {
    0%, 100% { transform: scaleX(0.7) skewX(-3deg) scale(1); }
    50% { transform: scaleX(0.7) skewX(-3deg) scale(1.3); }
}
@keyframes kanjiGlitch {
    0%, 100% { transform: scaleX(0.7) skewX(-3deg) translate(0); }
    25% { transform: scaleX(0.7) skewX(-5deg) translate(2px, -1px); }
    50% { transform: scaleX(0.7) skewX(-1deg) translate(-2px, 1px); }
    75% { transform: scaleX(0.7) skewX(-4deg) translate(1px, -2px); }
}
@keyframes kanjiBlink {
    0%, 40%, 100% { 
        opacity: 0;
    }
    50%, 90% { 
        opacity: 1;
        color: rgba(249,240,2,0.2);
        text-shadow: 
            2px 0 0 rgba(255,42,109,0.4),
            -2px 0 0 rgba(5,217,232,0.4),
            0 0 15px var(--accent);
    }
}
.kanji-1 { top: 10%; left: 5%; animation-delay: 0s, 0s; }
.kanji-2 { top: 60%; right: 10%; animation-delay: 0s, 1.3s; }
.kanji-3 { bottom: 20%; left: 20%; animation-delay: 0s, 2.6s; }
@keyframes kanjiFloat {
    0%,100% { transform: scaleX(0.7) skewX(-3deg) translateY(0) rotate(-2deg); }
    50% { transform: scaleX(0.7) skewX(-3deg) translateY(-20px) rotate(2deg); }
}

/* Sections */
section {
    min-height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center; padding: 100px 5%;
}

/* Hero */
.hero { overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,42,109,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(5,217,232,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(211,0,197,0.1) 0%, transparent 60%);
}
.hero-content { text-align: center; z-index: 10; position: relative; }
.hero-jp {
    font-size: clamp(0.8rem, 2vw, 1.2rem); color: var(--accent);
    text-shadow: 0 0 20px var(--accent); letter-spacing: 0.8em;
    margin-bottom: 1rem; opacity: 0; animation: fadeIn 1s ease 0.5s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero-title {
    font-family: 'Orbitron', sans-serif; font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 900; line-height: 0.9; animation: titleGlitch 0.5s ease 0.3s forwards; opacity: 0;
}
@keyframes titleGlitch {
    0% { opacity: 0; transform: translateX(-50px); clip-path: inset(0 100% 0 0); }
    50% { clip-path: inset(0 0 0 0); }
    100% { opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0); }
}
.title-line-1 {
    display: block; color: var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 80px var(--primary);
}
.title-line-2 {
    display: block; color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary), 0 0 40px var(--secondary);
    margin-left: 10%;
}
.hero-subtitle {
    font-family: 'Share Tech Mono', monospace; font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: rgba(255,255,255,0.6); letter-spacing: 0.4em; margin-top: 1.5rem;
    opacity: 0; animation: fadeIn 1s ease 1s forwards;
}
.hero-subtitle span { color: var(--green); text-shadow: 0 0 10px var(--green); }
.hero-btn { margin-top: 2rem; opacity: 0; animation: fadeIn 1s ease 1.2s forwards; }

/* Glitch Container */
.glitch-container { position: relative; }
.glitch-container::before, .glitch-container::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; opacity: 0.8;
}
.glitch-container::before {
    color: var(--secondary); animation: glitch1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(-3px);
}
.glitch-container::after {
    color: var(--primary); animation: glitch2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); transform: translate(3px);
}
@keyframes glitch1 {
    0%,100% { transform: translate(0); } 20% { transform: translate(-3px,3px); }
    40% { transform: translate(-3px,-3px); } 60% { transform: translate(3px,3px); }
    80% { transform: translate(3px,-3px); }
}
@keyframes glitch2 {
    0%,100% { transform: translate(0); } 20% { transform: translate(3px,-3px); }
    40% { transform: translate(3px,3px); } 60% { transform: translate(-3px,-3px); }
    80% { transform: translate(-3px,3px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0; animation: fadeIn 1s ease 1.5s forwards;
    z-index: 10;
}
.scroll-text {
    font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
    letter-spacing: 0.3em; color: var(--secondary); text-shadow: 0 0 10px var(--secondary);
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.5); opacity: 0.5; } }

/* Visualizer */
.visualizer {
    position: absolute; bottom: 160px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 3px; align-items: flex-end; height: 60px; z-index: 5;
}
.viz-bar {
    width: 4px; background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 2px; transition: height 0.1s;
}

/* Section Headers */
.section-header { margin-bottom: 60px; opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.section-header.visible { opacity: 1; transform: translateY(0); }
.section-label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem;
    letter-spacing: 0.3em; color: var(--primary); text-shadow: 0 0 10px var(--primary); margin-bottom: 0.8rem;
}
.section-label::before { content: '[ '; color: var(--secondary); }
.section-label::after { content: ' ]'; color: var(--secondary); }
.section-title {
    font-family: 'Orbitron', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700; line-height: 1.1;
}
.section-title span { color: var(--accent); text-shadow: 0 0 20px var(--accent); }

/* Filter Bar */
.filter-bar { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5); font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem; padding: 8px 20px; cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    border-color: var(--primary); color: var(--primary); text-shadow: 0 0 10px var(--primary);
}

/* Cards Grid */
.showcase-container { max-width: 1400px; width: 100%; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.cyber-card {
    background: linear-gradient(135deg, rgba(255,42,109,0.05), rgba(5,217,232,0.05));
    border: 1px solid var(--primary); position: relative; padding: 35px;
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
    opacity: 0; transform: translateY(60px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1); cursor: pointer;
}
.cyber-card.visible { opacity: 1; transform: translateY(0); }
.cyber-card.hidden { display: none; }
.cyber-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 25px; height: 25px;
    background: var(--primary); clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.cyber-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 25px; height: 25px;
    background: var(--secondary); clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.cyber-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(5,217,232,0.3), inset 0 0 60px rgba(5,217,232,0.05);
    transform: translateY(-10px);
}
.card-number {
    position: absolute; top: 12px; right: 40px;
    font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900;
    color: rgba(255,42,109,0.1); line-height: 1;
}
.card-icon {
    width: 50px; height: 50px; border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    font-size: 1.3rem; color: var(--accent); text-shadow: 0 0 10px var(--accent);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.card-jp { font-size: 0.7rem; color: var(--primary); margin-bottom: 8px; opacity: 0.7; }
.card-title {
    font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: 600;
    margin-bottom: 10px; color: var(--secondary); text-shadow: 0 0 10px var(--secondary);
}
.card-desc { color: rgba(255,255,255,0.6); line-height: 1.5; font-size: 0.9rem; margin-bottom: 15px; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card-tags span {
    background: rgba(255,42,109,0.2); border: 1px solid var(--primary);
    padding: 3px 10px; font-size: 0.65rem; font-family: 'Share Tech Mono', monospace;
    color: var(--primary);
}

/* Terminal */
.terminal-section { background: var(--dark); }
.terminal-container { max-width: 900px; width: 100%; }
.terminal {
    background: rgba(0,0,0,0.8); border: 1px solid var(--secondary);
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 0 30px rgba(5,217,232,0.2);
}
.terminal-header {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    padding: 10px 15px; display: flex; align-items: center; gap: 15px;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--darker); }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27ca40; }
.terminal-title { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--darker); }
.terminal-body { padding: 20px; max-height: 300px; overflow-y: auto; }
.terminal-line { margin-bottom: 8px; font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; }
.prompt { color: var(--green); }
.output { color: rgba(255,255,255,0.8); }
.error { color: var(--primary); }
.success { color: var(--green); text-shadow: 0 0 10px var(--green); }
.special { 
    color: var(--accent); text-shadow: 0 0 15px var(--accent);
    font-weight: bold;
}
.terminal-input-line {
    padding: 15px 20px; border-top: 1px solid rgba(5,217,232,0.2);
    display: flex; align-items: center; gap: 10px;
}
.terminal-input {
    flex: 1; background: transparent; border: none; outline: none;
    font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: #fff;
}

/* Hack Section */
.hack-section { background: var(--darker); }
.hack-container { max-width: 700px; width: 100%; }
.hack-game { text-align: center; }
.hack-display {
    display: flex; justify-content: space-between; margin-bottom: 20px;
    font-family: 'Share Tech Mono', monospace; font-size: 1rem;
}
.hack-timer span { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.hack-score span { color: var(--green); text-shadow: 0 0 10px var(--green); }
.hack-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
    margin-bottom: 25px; max-width: 400px; margin-left: auto; margin-right: auto;
}
.hack-cell {
    aspect-ratio: 1; background: rgba(5,217,232,0.1); border: 1px solid var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Share Tech Mono', monospace; font-size: 0.9rem;
    color: var(--secondary); cursor: pointer; transition: all 0.2s;
}
.hack-cell:hover { background: rgba(5,217,232,0.3); transform: scale(1.05); }
.hack-cell.selected { background: var(--primary); color: var(--darker); border-color: var(--primary); }
.sequence-label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
    color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.sequence-display {
    display: flex; justify-content: center; gap: 8px; min-height: 40px;
    margin-bottom: 20px;
}
.sequence-item {
    width: 40px; height: 40px; background: rgba(255,42,109,0.2);
    border: 1px solid var(--primary); display: flex; align-items: center; justify-content: center;
    font-family: 'Share Tech Mono', monospace; font-size: 0.85rem; color: var(--primary);
}
.sequence-item.matched { background: var(--green); border-color: var(--green); color: var(--darker); }

/* Stats */
.stats-section { background: var(--darker); position: relative; }
.stats-section::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px; border: 1px solid rgba(255,42,109,0.1);
    border-radius: 50%; animation: rotateSlow 60s linear infinite;
}
@keyframes rotateSlow { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1000px; z-index: 10; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
    text-align: center; padding: 35px 15px; position: relative;
    opacity: 0; transform: scale(0.8); transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
}
.stat-item.visible { opacity: 1; transform: scale(1); }
.stat-item::before {
    content: ''; position: absolute; inset: 0; border: 1px solid var(--primary);
    clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
    opacity: 0.5;
}
.stat-number {
    font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; color: var(--secondary); text-shadow: 0 0 20px var(--secondary), 0 0 40px var(--secondary);
}
.stat-label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
    letter-spacing: 0.2em; color: var(--primary); margin-top: 12px; text-shadow: 0 0 5px var(--primary);
}
.stat-jp { font-size: 0.6rem; color: rgba(255,255,255,0.3); margin-top: 5px; }

/* Interactive */
.interactive { background: var(--dark); }
.interactive-container {
    max-width: 1100px; width: 100%; display: grid;
    grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .interactive-container { grid-template-columns: 1fr; } }
.hologram-container { display: flex; justify-content: center; align-items: center; height: 350px; }
.hologram { width: 220px; height: 220px; position: relative; animation: holoFloat 4s ease-in-out infinite; }
@keyframes holoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.holo-ring { position: absolute; border: 2px solid var(--secondary); border-radius: 50%; animation: holoSpin 10s linear infinite; }
.holo-ring:nth-child(1) { inset: 0; }
.holo-ring:nth-child(2) { inset: 20px; border-color: var(--primary); animation-duration: 15s; animation-direction: reverse; }
.holo-ring:nth-child(3) { inset: 40px; border-color: var(--accent); animation-duration: 20s; }
@keyframes holoSpin { from { transform: rotateX(70deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateZ(360deg); } }
.holo-core {
    position: absolute; inset: 55px;
    background: radial-gradient(circle, rgba(5,217,232,0.3), transparent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900;
    color: var(--secondary); text-shadow: 0 0 20px var(--secondary);
}
.holo-scanline {
    position: absolute; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation: holoScan 2s ease-in-out infinite;
}
@keyframes holoScan { 0%,100% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; } }
.interactive-text { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.interactive-text.visible { opacity: 1; transform: translateX(0); }
.about-desc { color: rgba(255,255,255,0.6); margin-top: 1.2rem; line-height: 1.7; font-size: 0.95rem; }
.about-jp {
    color: var(--secondary); margin-top: 0.8rem;
    font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
    text-shadow: 0 0 10px var(--secondary);
}

/* Contact */
.contact-section { background: var(--darker); }
.contact-container { max-width: 600px; width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem;
    color: var(--primary); display: block; margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%; background: rgba(5,217,232,0.05); border: 1px solid var(--secondary);
    padding: 12px 15px; color: #fff; font-family: 'Rajdhani', sans-serif;
    font-size: 1rem; outline: none; transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 15px rgba(255,42,109,0.3);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.transmission-status {
    margin-top: 20px; font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem; text-align: center;
}
.transmission-status.success { color: var(--green); text-shadow: 0 0 10px var(--green); }
.transmission-status.error { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* Cyber Button */
.cyber-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 25px; background: transparent; border: 2px solid var(--primary);
    color: var(--primary); font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer;
    position: relative; overflow: hidden; margin-top: 1.5rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s; text-shadow: 0 0 10px var(--primary);
}
.cyber-btn::before {
    content: ''; position: absolute; inset: 0;
    background: var(--primary); transform: translateX(-100%);
    transition: transform 0.3s; z-index: -1;
}
.cyber-btn:hover::before { transform: translateX(0); }
.cyber-btn:hover { color: var(--darker); text-shadow: none; }
.btn-arrow { transition: transform 0.3s; }
.cyber-btn:hover .btn-arrow { transform: translateX(5px); }

/* AI Chat */
.ai-chat {
    position: fixed; bottom: 80px; right: 20px; width: 320px; height: 400px;
    background: rgba(5,1,13,0.95); border: 1px solid var(--secondary);
    border-radius: 10px; display: none; flex-direction: column; z-index: 1002;
    box-shadow: 0 0 30px rgba(5,217,232,0.3);
}
.ai-chat.active { display: flex; }
.ai-chat-header {
    padding: 12px 15px; background: linear-gradient(90deg, var(--primary), var(--secondary));
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: var(--darker);
    border-radius: 10px 10px 0 0;
}
.ai-close { background: none; border: none; color: var(--darker); font-size: 1.2rem; cursor: pointer; }
.ai-chat-body { flex: 1; padding: 15px; overflow-y: auto; }
.ai-message {
    margin-bottom: 12px; padding: 10px 12px; border-radius: 8px;
    font-size: 0.85rem; line-height: 1.4; max-width: 85%;
}
.ai-message.bot {
    background: rgba(5,217,232,0.1); border: 1px solid var(--secondary);
    color: var(--secondary);
}
.ai-message.user {
    background: rgba(255,42,109,0.1); border: 1px solid var(--primary);
    color: var(--primary); margin-left: auto;
}
.ai-chat-input {
    display: flex; gap: 8px; padding: 12px;
    border-top: 1px solid rgba(5,217,232,0.2);
}
.ai-chat-input input {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--secondary);
    padding: 8px 12px; color: #fff; font-size: 0.85rem; outline: none; border-radius: 5px;
}
.ai-chat-input button {
    background: var(--primary); border: none; color: var(--darker);
    padding: 8px 15px; cursor: pointer; font-weight: 700; border-radius: 5px;
}
.ai-toggle {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; font-size: 1.5rem; cursor: pointer; z-index: 1002;
    box-shadow: 0 0 20px rgba(255,42,109,0.5);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(5,1,13,0.95);
    display: none; align-items: center; justify-content: center; z-index: 10000;
}
.lightbox.active { display: flex; }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.lightbox-content { max-width: 90%; max-height: 90%; }

/* Konami */
.konami-overlay {
    position: fixed; inset: 0; background: rgba(5,1,13,0.98);
    display: none; align-items: center; justify-content: center; z-index: 100000;
}
.konami-overlay.active { display: flex; }
.konami-content {
    text-align: center; animation: konamiPop 0.5s ease;
}
@keyframes konamiPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.konami-content h2 {
    font-family: 'Orbitron', sans-serif; font-size: 2.5rem;
    color: var(--accent); text-shadow: 0 0 30px var(--accent);
    margin-bottom: 1rem;
}
.konami-content p { font-size: 1.2rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.konami-jp { color: var(--primary) !important; text-shadow: 0 0 10px var(--primary); }

/* Footer */
footer {
    padding: 80px 5%; background: var(--darker); text-align: center;
    border-top: 1px solid rgba(255,42,109,0.2);
}
.footer-title { font-family: 'Orbitron', sans-serif; font-size: clamp(1.3rem, 3vw, 2.5rem); font-weight: 700; }
.footer-title span { color: var(--primary); text-shadow: 0 0 20px var(--primary); }
.footer-jp {
    font-size: 0.9rem; color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary); letter-spacing: 0.4em; margin-top: 0.8rem;
}
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.social-link {
    width: 45px; height: 45px; border: 1px solid var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--secondary);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.3s; text-decoration: none;
}
.social-link:hover {
    background: var(--primary); border-color: var(--primary);
    color: var(--darker); transform: translateY(-5px);
}
.footer-line {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    margin: 50px 0 25px;
}
.copyright {
    font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
    color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
}
.copyright span { color: var(--primary); }

/* Loading */
.loader {
    position: fixed; inset: 0; background: var(--darker); z-index: 100000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
    font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900;
    color: var(--primary); text-shadow: 0 0 30px var(--primary);
    animation: loadPulse 1s ease-in-out infinite;
}
.loader-logo span { color: var(--secondary); text-shadow: 0 0 30px var(--secondary); }
.loader-jp { font-size: 1.2rem; color: var(--accent); margin-top: 0.5rem; letter-spacing: 0.5em; }
@keyframes loadPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.loader-bar {
    width: 250px; height: 3px; background: rgba(255,255,255,0.1);
    margin-top: 2rem; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.loader-progress {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: loading 2s ease forwards; box-shadow: 0 0 15px var(--primary);
}
@keyframes loading { from { width: 0; } to { width: 100%; } }
.loader-text {
    font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
    letter-spacing: 0.25em; color: var(--secondary); margin-top: 15px;
    text-shadow: 0 0 10px var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .theme-switcher, .audio-toggle { display: none; }
    .glitch-btn { right: 20px; }
    .data-stream { display: none; }
    .hud-corner, .hud-text { display: none; }
    .social-bar { display: none; }
}

/* Floating Social Bar */
.social-bar {
    position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 10px; z-index: 1001;
}
.social-bar-link {
    width: 45px; height: 45px; background: rgba(13, 2, 33, 0.8);
    border: 1px solid var(--secondary); display: flex;
    align-items: center; justify-content: center; color: var(--secondary);
    text-decoration: none; transition: all 0.3s; position: relative;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.social-bar-link:hover {
    background: var(--primary); border-color: var(--primary);
    color: var(--darker); transform: translateX(5px) scale(1.1);
    box-shadow: 0 0 20px var(--primary), -5px 0 30px var(--primary);
}
.social-bar-link::after {
    content: attr(data-tooltip); position: absolute; left: 60px;
    background: var(--primary); color: var(--darker);
    padding: 5px 12px; font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; white-space: nowrap; opacity: 0;
    pointer-events: none; transition: all 0.3s;
    clip-path: polygon(5px 0, 100% 0, 100% 100%, 5px 100%, 0 50%);
}
.social-bar-link:hover::after { opacity: 1; left: 55px; }

/* Particle Canvas */
#particles {
    position: fixed; inset: 0; z-index: 3; pointer-events: none;
}

/* Mouse Trail Canvas */
#mouseTrail {
    position: fixed; inset: 0; z-index: 4; pointer-events: none;
}

/* Achievement Toast */
.achievement-toast {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--darker), rgba(13,2,33,0.95));
    border: 2px solid var(--accent); padding: 15px 30px;
    display: flex; align-items: center; gap: 15px; z-index: 10002;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 0 30px var(--accent), inset 0 0 30px rgba(249, 240, 2, 0.1);
    cursor: pointer; pointer-events: auto;
}
.achievement-toast.show { top: 100px; }
.achievement-icon { font-size: 2rem; animation: achieveBounce 0.5s ease infinite; }
@keyframes achieveBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.achievement-title {
    font-family: 'Orbitron', sans-serif; font-size: 0.7rem;
    color: var(--accent); letter-spacing: 0.2em; text-shadow: 0 0 10px var(--accent);
}
.achievement-desc {
    font-family: 'Share Tech Mono', monospace; font-size: 0.9rem;
    color: #fff; margin-top: 3px;
}

/* Click Counter */
.click-counter {
    position: fixed; bottom: 20px; left: 20px;
    background: rgba(13, 2, 33, 0.8); border: 1px solid var(--green);
    padding: 8px 15px; z-index: 1001; font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; display: flex; gap: 8px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.counter-label { color: rgba(255,255,255,0.5); }
.counter-value { color: var(--green); text-shadow: 0 0 10px var(--green); }

/* Secret Message Overlay */
.secret-message {
    position: fixed; inset: 0; background: rgba(5, 1, 13, 0.98);
    z-index: 100001; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.5s;
}
.secret-message.active { opacity: 1; visibility: visible; }
.secret-content { text-align: center; }
.secret-glitch {
    font-family: 'Orbitron', sans-serif; font-size: 3rem; font-weight: 900;
    color: var(--green); text-shadow: 0 0 50px var(--green);
    animation: secretGlitch 0.5s infinite;
}
@keyframes secretGlitch {
    0%,100% { text-shadow: 0 0 50px var(--green), 2px 2px var(--primary), -2px -2px var(--secondary); }
    50% { text-shadow: 0 0 50px var(--green), -2px 2px var(--secondary), 2px -2px var(--primary); }
}
.secret-content p { margin: 20px 0; font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.secret-code {
    font-family: 'Share Tech Mono', monospace; font-size: 1rem !important;
    color: var(--accent) !important; background: rgba(249, 240, 2, 0.1);
    padding: 15px 30px; border: 1px dashed var(--accent);
    display: inline-block; margin: 20px 0 !important;
}
.secret-jp { color: var(--primary) !important; font-size: 1rem !important; }

/* CRT Toggle */
.crt-toggle {
    position: fixed; bottom: 80px; left: 20px;
    background: rgba(13, 2, 33, 0.8); border: 1px solid var(--secondary);
    color: var(--secondary); padding: 10px; cursor: pointer; z-index: 1001;
    font-size: 1.2rem; transition: all 0.3s;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.crt-toggle:hover { background: var(--secondary); color: var(--darker); }
.crt-toggle.active { background: var(--primary); border-color: var(--primary); color: var(--darker); }

/* CRT Disabled State */
body.crt-disabled .scanlines,
body.crt-disabled .crt { display: none; }

/* Logo Click Animation */
.nav-logo.clicked {
    animation: logoSpin 0.5s ease;
}
@keyframes logoSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); text-shadow: 0 0 50px var(--primary); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Title Secret Hover */
.hero-title:hover .title-line-1 {
    animation: titleGlitch 0.3s infinite;
}
@keyframes titleGlitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
    100% { transform: translate(0); }
}

/* Typed Text Effect for Secret */
.typed-text::after {
    content: '|'; animation: blink 0.7s infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* Matrix Mode */
body.matrix-mode { background: #000 !important; }
body.matrix-mode * { color: #00ff00 !important; border-color: #00ff00 !important; }
body.matrix-mode .primary { color: #00ff00 !important; }
body.matrix-mode .cyber-btn { background: #00ff00 !important; color: #000 !important; }
/* Mint Link Glow */
.social-bar-link.mint-link {
    border-color: var(--accent);
    color: var(--accent);
    animation: mintPulse 2s infinite;
}
.social-bar-link.mint-link:hover {
    background: var(--accent);
    color: var(--darker);
    box-shadow: 0 0 30px var(--accent);
}
@keyframes mintPulse {
    0%, 100% { box-shadow: 0 0 5px var(--accent); }
    50% { box-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent); }
}

/* Codes Button */
.codes-btn {
    position: fixed; bottom: 140px; left: 20px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border: none; padding: 12px 15px; cursor: pointer; z-index: 1001;
    display: flex; align-items: center; gap: 8px;
    font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
    color: #fff; transition: all 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    animation: codesGlow 3s infinite;
}
.codes-btn:hover { transform: scale(1.1); }
@keyframes codesGlow {
    0%, 100% { box-shadow: 0 0 10px var(--primary); }
    50% { box-shadow: 0 0 25px var(--primary), 0 0 40px var(--purple); }
}
.codes-icon { font-size: 1.2rem; }
.codes-count {
    background: var(--accent); color: var(--darker);
    padding: 2px 8px; font-weight: bold;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

/* OG Pass Modal */
.og-pass-modal {
    position: fixed; inset: 0; background: rgba(5, 1, 13, 0.95);
    z-index: 100002; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s;
    backdrop-filter: blur(10px);
}
.og-pass-modal.active { opacity: 1; visibility: visible; }
.og-pass-content {
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.95), rgba(5, 1, 13, 0.98));
    border: 2px solid var(--accent); padding: 40px;
    max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto;
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 0 50px rgba(249, 240, 2, 0.3), inset 0 0 50px rgba(249, 240, 2, 0.05);
}
.og-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: var(--accent);
    font-size: 2rem; cursor: pointer; transition: all 0.3s;
}
.og-close:hover { color: var(--primary); transform: rotate(90deg); }
.og-header { text-align: center; margin-bottom: 30px; }
.og-badge {
    font-size: 4rem; margin-bottom: 10px;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px var(--accent)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 30px var(--accent)); }
}
.og-title {
    font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.og-subtitle {
    font-family: 'Share Tech Mono', monospace; font-size: 0.9rem;
    color: var(--secondary); letter-spacing: 0.3em; margin-top: 5px;
}
.og-description {
    text-align: center; margin-bottom: 25px;
}
.og-description p { margin: 10px 0; color: rgba(255,255,255,0.7); }
.og-description span { color: var(--accent); font-weight: bold; }
.og-jp { font-size: 0.8rem; color: var(--primary) !important; }

/* Progress Bar */
.og-progress { margin-bottom: 25px; }
.og-progress-bar {
    height: 8px; background: rgba(255,255,255,0.1);
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    overflow: hidden;
}
.og-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    transition: width 0.5s ease;
    box-shadow: 0 0 20px var(--accent);
}
.og-progress-text {
    font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
    color: var(--accent); text-align: center; margin-top: 10px;
    letter-spacing: 0.1em;
}

/* Codes List */
.og-codes-list {
    display: grid; gap: 10px; margin-bottom: 25px;
}
.og-code-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s;
}
.og-code-item.unlocked {
    border-color: var(--green);
    background: rgba(57, 255, 20, 0.1);
}
.og-code-item.locked {
    opacity: 0.5;
}
.og-code-name {
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}
.og-code-value {
    font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
    color: var(--green); letter-spacing: 0.1em;
}
.og-code-locked {
    color: rgba(255,255,255,0.3); font-size: 0.75rem;
}
.og-code-copy {
    background: var(--green); border: none; color: var(--darker);
    padding: 5px 10px; font-size: 0.7rem; cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.og-code-copy:hover { background: var(--accent); }

/* OG Actions */
.og-actions {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.og-copy-all, .og-discord, .og-twitter {
    font-size: 0.75rem !important; padding: 10px 15px !important;
}
.og-copy-all:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.og-discord { background: #5865F2 !important; }
.og-discord:hover { background: #4752c4 !important; }
.og-twitter { background: #000 !important; border: 1px solid #fff !important; }
.og-twitter:hover { background: #1DA1F2 !important; border-color: #1DA1F2 !important; }

/* Mint Section */
.og-mint-section {
    margin-top: 30px; padding-top: 30px;
    border-top: 1px solid var(--accent);
    text-align: center;
}
.og-mint-unlocked {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem;
    color: var(--accent); margin-bottom: 15px;
    animation: mintUnlocked 1s infinite;
}
@keyframes mintUnlocked {
    0%, 100% { text-shadow: 0 0 20px var(--accent); }
    50% { text-shadow: 0 0 40px var(--accent), 0 0 60px var(--primary); }
}
.og-mint-congrats {
    font-size: 1.1rem; color: #fff; margin: 10px 0;
}
.og-mint-jp {
    font-size: 0.9rem; color: var(--primary); margin-bottom: 20px;
}
.og-mint-terminal-hint {
    background: rgba(0,0,0,0.5); border: 1px solid var(--green);
    padding: 20px; margin: 20px 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.hint-label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
    color: var(--green); letter-spacing: 0.15em; margin-bottom: 15px;
    text-shadow: 0 0 10px var(--green);
}
.hint-command {
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.hint-command code {
    font-family: 'Share Tech Mono', monospace; font-size: 1.2rem;
    color: var(--accent); background: rgba(249, 240, 2, 0.1);
    padding: 12px 25px; border: 1px dashed var(--accent);
    letter-spacing: 0.1em;
}
.copy-cmd-btn {
    background: var(--green); border: none; color: var(--darker);
    font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
    padding: 8px 15px; cursor: pointer; font-weight: bold;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    transition: all 0.3s;
}
.copy-cmd-btn:hover { background: var(--accent); }
.og-go-terminal {
    margin-top: 20px;
    background: linear-gradient(90deg, var(--green), var(--secondary)) !important;
    font-size: 1rem !important; padding: 15px 35px !important;
}
.og-go-terminal:hover {
    box-shadow: 0 0 30px var(--green);
}
.og-claim-info {
    margin-top: 25px; padding: 20px;
    background: rgba(57, 255, 20, 0.1);
    border: 2px solid var(--green);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.claim-code {
    font-family: 'Share Tech Mono', monospace; font-size: 1.3rem;
    color: var(--green); letter-spacing: 0.15em;
    padding: 15px; background: rgba(0,0,0,0.5);
    border: 1px dashed var(--green); margin-bottom: 15px;
    text-shadow: 0 0 10px var(--green);
}
.og-claim-info p {
    color: rgba(255,255,255,0.8); margin-bottom: 15px;
}

/* Twitter Share Floating Button */
.twitter-share-btn {
    position: fixed; bottom: 200px; left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none; color: #fff; padding: 12px 18px; cursor: pointer; z-index: 1001;
    transition: all 0.3s; display: flex; align-items: center; gap: 8px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.5);
}
.twitter-share-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 0 30px rgba(118, 75, 162, 0.8), -5px 0 20px rgba(102, 126, 234, 0.5);
}
.share-text {
    font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.2em; text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.share-arrow {
    font-size: 1rem; transition: transform 0.3s;
}
.twitter-share-btn:hover .share-arrow { transform: translateX(3px); }

/* All Unlocked Celebration */
body.all-unlocked-celebration::before {
    content: ''; position: fixed; inset: 0;
    background: radial-gradient(circle at center, rgba(249,240,2,0.3), transparent 70%);
    z-index: 99999; pointer-events: none;
    animation: celebrationPulse 0.5s ease-out forwards;
}
@keyframes celebrationPulse {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2); }
}

/* Mint Celebration */
body.mint-celebration::before {
    content: ''; position: fixed; inset: 0;
    background: radial-gradient(circle at center, rgba(57,255,20,0.4), transparent 60%);
    z-index: 99999; pointer-events: none;
    animation: mintCelebration 1s ease-out forwards;
}
body.mint-celebration::after {
    content: '🎉'; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem; z-index: 100000; pointer-events: none;
    animation: mintEmoji 1s ease-out forwards;
}
@keyframes mintCelebration {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes mintEmoji {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-20deg); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(10deg); }
    60% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-5deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(0deg); }
}

/* ==========================================
   GAME OVER MODAL
   ========================================== */
.game-over-modal {
    position: fixed; inset: 0;
    background: rgba(5, 1, 13, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100005;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}
.game-over-modal.active { opacity: 1; visibility: visible; }

.game-over-content {
    text-align: center;
    padding: 50px;
    position: relative;
}

.game-over-glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        3px 3px 0 var(--secondary),
        -3px -3px 0 var(--accent);
    animation: glitchText 0.3s infinite;
    letter-spacing: 0.1em;
}
.game-over-glitch.success {
    color: var(--green);
    text-shadow: 
        0 0 10px var(--green),
        0 0 20px var(--green),
        0 0 40px var(--green);
    animation: none;
}

@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

.game-over-jp {
    font-size: 2rem;
    color: var(--accent);
    margin: 10px 0 30px;
    opacity: 0.8;
}

.game-over-score {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 25px;
}
.score-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3em;
}
.score-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.game-over-stats {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}
.game-over-stats span {
    display: block;
    margin: 5px 0;
}
.game-over-stats .highlight {
    color: var(--secondary);
}

.game-over-btn {
    font-size: 1rem !important;
    padding: 15px 40px !important;
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
}
.game-over-btn:hover {
    box-shadow: 0 0 30px var(--primary);
}

/* ==========================================
   WEB3 MINT MODAL
   ========================================== */
.web3-modal {
    position: fixed; inset: 0;
    background: rgba(5, 1, 13, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100003;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}
.web3-modal.active { opacity: 1; visibility: visible; }

.web3-modal-content {
    background: linear-gradient(135deg, rgba(13, 2, 33, 0.98), rgba(5, 1, 13, 0.99));
    border: 2px solid var(--secondary);
    padding: 40px;
    max-width: 500px; width: 90%;
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 0 60px rgba(5, 217, 232, 0.3), inset 0 0 60px rgba(5, 217, 232, 0.05);
    animation: modalPulse 3s ease-in-out infinite;
}
@keyframes modalPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(5, 217, 232, 0.3), inset 0 0 60px rgba(5, 217, 232, 0.05); }
    50% { box-shadow: 0 0 80px rgba(5, 217, 232, 0.5), inset 0 0 80px rgba(5, 217, 232, 0.1); }
}

.web3-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: var(--secondary);
    font-size: 2rem; cursor: pointer; transition: all 0.3s;
}
.web3-close:hover { color: var(--primary); transform: rotate(90deg); }

.web3-header {
    text-align: center; margin-bottom: 30px;
}
.web3-logo {
    font-size: 4rem; color: var(--secondary);
    text-shadow: 0 0 30px var(--secondary);
    animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.web3-header h2 {
    font-family: 'Orbitron', sans-serif; font-size: 1.8rem;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 10px 0 5px;
}
.web3-subtitle {
    font-family: 'Share Tech Mono', monospace; font-size: 0.8rem;
    color: var(--accent); letter-spacing: 0.3em;
}

/* Step Indicator */
.step-indicator {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 25px;
}
.step {
    width: 30px; height: 30px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif; font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.step.active {
    border-color: var(--secondary); color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}
.step.completed {
    border-color: var(--green); background: var(--green);
    color: var(--darker);
}
.step-line {
    width: 40px; height: 2px;
    background: rgba(255,255,255,0.2);
}
.step-line.active { background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.step-line.completed { background: var(--green); }

.web3-step h3 {
    font-family: 'Orbitron', sans-serif; font-size: 1.2rem;
    color: #fff; text-align: center; margin-bottom: 10px;
}
.web3-step > p {
    text-align: center; color: rgba(255,255,255,0.6);
    margin-bottom: 25px; font-size: 0.9rem;
}
.web3-step.hidden { display: none; }

/* Wallet Options */
.wallet-options {
    display: flex; flex-direction: column; gap: 12px;
}
.wallet-btn {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 15px 20px;
    cursor: pointer; transition: all 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.wallet-btn:hover {
    background: rgba(5, 217, 232, 0.1);
    border-color: var(--secondary);
    transform: translateX(5px);
}
.wallet-btn img, .wallet-btn svg {
    width: 40px; height: 40px;
}
.wallet-btn span {
    font-family: 'Rajdhani', sans-serif; font-size: 1.1rem;
    color: #fff; font-weight: 600;
}

.wallet-status {
    margin-top: 20px; text-align: center;
    font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
}
.wallet-status.error { color: var(--primary); }
.wallet-status.success { color: var(--green); }

/* Mint Details */
.mint-details {
    display: flex; gap: 20px; margin-bottom: 25px;
}
.mint-preview { flex: 0 0 140px; }
.nft-preview {
    width: 140px; height: 140px;
    background: linear-gradient(135deg, var(--dark), var(--darker));
    border: 2px solid var(--primary);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.nft-preview::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,42,109,0.2) 50%, transparent 60%);
    animation: nftShine 2s linear infinite;
}
@keyframes nftShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.nft-glitch {
    font-size: 3rem; color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
    animation: nftPulse 2s ease-in-out infinite;
}
@keyframes nftPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.nft-label {
    font-family: 'Share Tech Mono', monospace; font-size: 0.7rem;
    color: var(--accent); margin-top: 10px;
}

.mint-info { flex: 1; }
.info-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
}
.info-row span:first-child { color: rgba(255,255,255,0.5); }
.info-row span:last-child { color: #fff; }
.wallet-address {
    color: var(--secondary) !important;
    font-size: 0.75rem;
}
.mint-price {
    color: var(--green) !important;
    font-weight: bold; font-size: 1.1rem !important;
    text-shadow: 0 0 10px var(--green);
}

.mint-confirm-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary)) !important;
    font-size: 1.1rem !important; padding: 15px !important;
    margin-top: 10px;
}
.mint-confirm-btn:hover {
    box-shadow: 0 0 30px var(--secondary);
}
.mint-disclaimer {
    text-align: center; font-size: 0.75rem;
    color: rgba(255,255,255,0.4); margin-top: 15px;
    font-family: 'Share Tech Mono', monospace;
}

/* Success State */
.mint-success { text-align: center; }
.success-icon {
    font-size: 5rem;
    animation: successBounce 1s ease infinite;
}
@keyframes successBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.mint-success h3 {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem;
    color: var(--green); margin: 15px 0 5px;
    text-shadow: 0 0 20px var(--green);
}
.success-jp {
    color: var(--primary); font-size: 0.9rem; margin-bottom: 25px;
}
.tx-info {
    background: rgba(0,0,0,0.3);
    padding: 15px; margin-bottom: 25px;
    font-family: 'Share Tech Mono', monospace; font-size: 0.85rem;
}
.tx-hash {
    color: var(--secondary); text-decoration: none;
    margin-left: 10px;
}
.tx-hash:hover { text-decoration: underline; }

.success-actions {
    display: flex; gap: 15px; justify-content: center;
}
.opensea-btn {
    background: #2081E2 !important;
}
.share-mint-btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

/* Supply Counter */
.supply-counter {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}
.supply-counter #mintedCount {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Loading State */
.web3-loading {
    position: absolute; inset: 0;
    background: rgba(5, 1, 13, 0.95);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 10;
}
.web3-loading.hidden { display: none; }
.loading-spinner {
    width: 60px; height: 60px;
    border: 3px solid rgba(5, 217, 232, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.web3-loading p {
    margin-top: 20px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--secondary);
}

/* Achievement Toast Update */
.achievement-toast .achievement-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem; color: var(--green);
    background: rgba(57, 255, 20, 0.1);
    padding: 5px 10px; margin-top: 5px;
    border: 1px dashed var(--green);
}

/* Achievement Share Button */
.achievement-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border: 1px solid var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.achievement-share-btn:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 20px var(--secondary);
    transform: scale(1.02);
}

.achievement-share-btn .share-icon {
    font-size: 1rem;
    font-weight: bold;
}

/* Share Prompt Overlay */
.share-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    backdrop-filter: blur(10px);
}

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

.share-prompt {
    text-align: center;
    padding: 40px;
    border: 2px solid var(--primary);
    background: rgba(13, 2, 33, 0.98);
    box-shadow: 
        0 0 40px rgba(255, 42, 109, 0.4),
        inset 0 0 40px rgba(255, 42, 109, 0.1);
    max-width: 420px;
    animation: promptPulse 2s ease-in-out infinite;
}

@keyframes promptPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 42, 109, 0.4), inset 0 0 40px rgba(255, 42, 109, 0.1); }
    50% { box-shadow: 0 0 60px rgba(255, 42, 109, 0.6), inset 0 0 50px rgba(255, 42, 109, 0.2); }
}

.share-prompt-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary);
    margin-bottom: 10px;
}

.share-prompt-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.share-prompt-cta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 30px;
}

.share-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-prompt-btn {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-prompt-btn.share-yes {
    background: var(--primary);
    color: #000;
}

.share-prompt-btn.share-yes:hover {
    background: #fff;
    box-shadow: 0 0 30px var(--primary);
    transform: scale(1.05);
}

.share-prompt-btn.share-yes .share-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.share-prompt-btn.share-no {
    background: transparent;
    color: #555;
    border: 1px solid #333;
}

.share-prompt-btn.share-no:hover {
    color: #888;
    border-color: #555;
}

/* ==========================================
   MOBILE RESPONSIVE - Full Optimization
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title { font-size: clamp(2rem, 8vw, 4rem); }
    .hero-subtitle { font-size: clamp(0.9rem, 3vw, 1.2rem); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-container, .terminal-container, .hack-container { padding: 0 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hide heavy elements */
    .cursor, .cursor-dot { display: none !important; }
    .data-stream { display: none; }
    .hud-corner, .hud-text { display: none; }
    .particles, #particles { display: none; }
    #mouseTrail { display: none; }
    .kanji-float { display: none; } /* Hide floating kanji on mobile */
    
    /* Navigation */
    .nav-links { display: none; }
    .theme-switcher { display: none; }
    .audio-toggle { 
        right: 10px; top: 10px; 
        width: 35px; height: 35px; font-size: 0.9rem;
    }
    .glitch-btn { 
        right: 55px; top: 10px; 
        padding: 8px 12px; font-size: 0.7rem;
    }
    
    /* Hide click counter on mobile - conflicts with social bar */
    .click-counter { display: none; }
    
    /* Hero Section */
    .hero { padding: 100px 20px 80px; min-height: auto; }
    .hero-title { 
        font-size: clamp(1.8rem, 10vw, 3rem); 
        letter-spacing: 2px;
        line-height: 1.1;
    }
    .hero-subtitle { 
        font-size: clamp(0.8rem, 3vw, 1rem); 
        padding: 0 10px;
        line-height: 1.4;
        margin-top: 15px;
    }
    .hero-jp {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    .hero-cta { flex-direction: column; gap: 15px; margin-top: 25px; }
    .cyber-btn { width: 100%; max-width: 280px; }
    
    /* Stats */
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; padding: 0 15px;
    }
    .stat-box { padding: 15px 10px; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
    
    /* Projects */
    .projects-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 15px; }
    .section-title { font-size: 1.5rem; }
    
    /* Terminal */
    .terminal-container { padding: 0 15px; }
    .terminal { font-size: 0.75rem; padding: 15px; height: 300px; }
    #terminalInput { font-size: 14px; } /* Prevents iOS zoom */
    
    /* Hack Game */
    .hack-container { padding: 0 15px; }
    .hack-display { font-size: 2rem; padding: 20px; }
    .hack-target { font-size: 0.9rem; }
    .hack-buttons { gap: 8px; }
    .hack-btn { padding: 12px 20px; font-size: 0.8rem; min-width: 50px; }
    
    /* Interactive Cards */
    .interactive-container { 
        grid-template-columns: 1fr !important; 
        gap: 20px; padding: 0 15px;
    }
    
    /* Contact */
    .contact-container { padding: 0 15px; }
    .contact-form { padding: 20px; }
    .form-input, .form-textarea { font-size: 16px; } /* Prevents iOS zoom */
    
    /* Social Bar - Bottom on mobile */
    .social-bar {
        position: fixed;
        left: 50%; top: auto; bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        background: rgba(13, 2, 33, 0.98);
        padding: 12px 20px;
        border-radius: 30px;
        border: 1px solid var(--secondary);
        gap: 12px;
        z-index: 9999;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }
    .social-bar-link {
        width: 36px; height: 36px;
        border: none; background: transparent;
    }
    .social-bar-link::after { display: none; }
    .social-bar-link:active { transform: scale(0.9); }
    
    /* Codes Button */
    .codes-btn {
        bottom: 80px; right: 15px;
        width: 48px; height: 48px;
        font-size: 0.6rem;
        z-index: 9998;
    }
    
    /* Footer */
    .footer { padding: 30px 15px; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    /* OG Pass Modal */
    .og-pass-content {
        width: 95%; max-height: 85vh;
        padding: 20px 15px;
    }
    .og-title { font-size: 1.5rem; }
    .og-codes-list { gap: 8px; }
    .og-code-item { padding: 10px; font-size: 0.7rem; }
    
    /* Web3 Modal */
    .web3-modal-content {
        width: 95%; max-height: 90vh;
        padding: 20px 15px;
    }
    .wallet-options { flex-direction: column; }
    .wallet-btn { width: 100%; }
    .mint-details { flex-direction: column; }
    .mint-preview, .mint-info { width: 100%; }
    
    /* Achievement Toast - Mobile */
    .achievement-toast {
        left: 15px; right: 15px;
        top: 80px; bottom: auto;
        transform: none;
        max-width: none;
        padding: 15px 50px 15px 15px; /* Room for close btn */
        cursor: pointer; /* Tap to dismiss */
        pointer-events: auto; /* Ensure clickable */
        z-index: 10002;
        flex-wrap: wrap;
    }
    .achievement-toast.show { 
        top: 80px; bottom: auto;
        animation: toastSlideIn 0.4s ease-out;
    }
    @keyframes toastSlideIn {
        from { top: -100px; opacity: 0; }
        to { top: 80px; opacity: 1; }
    }
    .achievement-toast::after {
        content: '✕';
        position: absolute;
        top: 50%; right: 15px;
        transform: translateY(-50%);
        font-size: 1.4rem;
        color: var(--accent);
        opacity: 1;
        pointer-events: none; /* Don't block clicks */
        background: rgba(0,0,0,0.5);
        width: 30px; height: 30px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 4px;
        border: 1px solid var(--accent);
    }
    .achievement-toast .achievement-text {
        max-width: calc(100% - 60px);
    }
    .achievement-toast .achievement-code {
        width: 100%;
        margin-top: 8px;
        font-size: 0.65rem;
    }
    
    /* OG Modal - Mobile close area */
    .og-pass-content {
        position: relative;
    }
    .og-close {
        position: absolute;
        top: 10px; right: 10px;
        width: 44px; height: 44px;
        font-size: 1.5rem;
        background: rgba(0,0,0,0.8);
        border: 2px solid var(--accent);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        border-radius: 4px;
    }
    
    /* Web3 Modal - Mobile close */
    .web3-close {
        width: 44px; height: 44px;
        font-size: 1.5rem;
        background: rgba(0,0,0,0.8);
        border: 2px solid var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }
    
    /* Scroll indicator */
    .scroll-indicator { bottom: 100px; }
    
    /* Game Over Modal */
    .game-over-modal-content {
        width: 90%; padding: 25px 20px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.75rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-box { padding: 12px 8px; }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.6rem; }
    .hack-btn { padding: 10px 15px; font-size: 0.75rem; }
    .social-bar { gap: 8px; padding: 10px 15px; }
    .social-bar-link { width: 32px; height: 32px; }
    .codes-btn { width: 44px; height: 44px; bottom: 75px; }
    .achievement-toast { 
        left: 10px; right: 10px; 
        padding: 12px 45px 12px 12px;
    }
    .achievement-toast .achievement-icon { font-size: 1.5rem; }
    .achievement-toast .achievement-title { font-size: 0.6rem; }
    .achievement-toast .achievement-desc { font-size: 0.75rem; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects that don't work on touch */
    .cyber-card:hover { transform: none; }
    .cyber-btn:hover::before { width: 0; }
    .project-card:hover { transform: none; }
    
    /* Make tap targets larger */
    .hack-btn { min-height: 48px; }
    .cyber-btn { min-height: 48px; }
    .wallet-btn { min-height: 56px; }
    
    /* Add active states instead */
    .cyber-btn:active { transform: scale(0.95); }
    .hack-btn:active { transform: scale(0.95); background: var(--primary); }
    .project-card:active { transform: scale(0.98); }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 60px 20px; }
    .hero-title { font-size: 2rem; }
    .og-pass-content, .web3-modal-content { max-height: 95vh; }
}

/* ==========================================
   UNDERGROUND PORTAL - EPIC TRANSITION
   ========================================== */
.underground-portal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.underground-portal.active {
    opacity: 1;
    visibility: visible;
}

/* Corruption/static noise layer */
.portal-glitch {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,42,109,0.03) 2px,
            rgba(255,42,109,0.03) 4px
        );
    z-index: 1;
}

.underground-portal.active .portal-glitch {
    animation: portalCorruption 0.1s infinite;
}

@keyframes portalCorruption {
    0% { 
        transform: translate(0); 
        filter: hue-rotate(0deg);
        background-position: 0 0;
    }
    25% { 
        transform: translate(-2px, 2px); 
        background-position: 0 -3px;
    }
    50% { 
        transform: translate(2px, -2px); 
        filter: hue-rotate(90deg);
        background-position: 3px 0;
    }
    75% { 
        transform: translate(-2px, -2px); 
        background-position: -3px 3px;
    }
    100% { 
        transform: translate(0); 
        filter: hue-rotate(0deg);
        background-position: 0 0;
    }
}

/* RGB split effect layer */
.portal-rgb {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.underground-portal.active .portal-rgb::before,
.underground-portal.active .portal-rgb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
}

.underground-portal.active .portal-rgb::before {
    background: rgba(255,0,0,0.1);
    animation: rgbShiftR 0.15s infinite;
}

.underground-portal.active .portal-rgb::after {
    background: rgba(0,255,255,0.1);
    animation: rgbShiftC 0.15s infinite;
}

@keyframes rgbShiftR {
    0%, 100% { transform: translate(-3px, 0); }
    50% { transform: translate(3px, 0); }
}

@keyframes rgbShiftC {
    0%, 100% { transform: translate(3px, 0); }
    50% { transform: translate(-3px, 0); }
}

/* Sparks container */
.portal-sparks {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
    animation: sparkFly 0.8s ease-out forwards;
}

@keyframes sparkFly {
    0% { 
        opacity: 1; 
        transform: translate(0, 0) scale(1);
    }
    100% { 
        opacity: 0; 
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* Main content */
.portal-content {
    text-align: center;
    z-index: 20;
    opacity: 0;
    transform: scale(0.8);
    animation: portalContentIn 0.5s ease 0.2s forwards;
}

@keyframes portalContentIn {
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.portal-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    color: var(--secondary);
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--secondary), 0 0 40px var(--secondary);
    animation: portalTextGlitch 0.1s infinite;
}

@keyframes portalTextGlitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

.portal-kanji {
    font-size: clamp(5rem, 20vw, 15rem);
    font-weight: 100;
    color: transparent;
    background: linear-gradient(180deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--primary)) drop-shadow(0 0 60px var(--primary));
    animation: portalKanjiPulse 0.5s ease-in-out infinite, portalKanjiGlitch 0.15s infinite;
    position: relative;
}

.portal-kanji::before,
.portal-kanji::after {
    content: '地下';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-kanji::before {
    animation: kanjiGlitchLeft 0.2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.portal-kanji::after {
    animation: kanjiGlitchRight 0.2s infinite;
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

@keyframes kanjiGlitchLeft {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-5px, 2px); }
    60% { transform: translate(5px, -2px); }
}

@keyframes kanjiGlitchRight {
    0%, 100% { transform: translate(0); }
    40% { transform: translate(5px, 2px); }
    80% { transform: translate(-5px, -2px); }
}

@keyframes portalKanjiPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px var(--primary)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 50px var(--primary)) drop-shadow(0 0 80px var(--purple)); }
}

@keyframes portalKanjiGlitch {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
}

.portal-enter {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 2rem;
    letter-spacing: 0.3em;
    text-shadow: 0 0 10px var(--secondary);
    animation: portalEnterBlink 0.3s infinite;
}

@keyframes portalEnterBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Horizontal tear lines - the rip effect */
.portal-tear {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    z-index: 30;
    overflow: visible;
}

.portal-tear-top {
    top: 50%;
    transform: translateY(-50%);
}

.portal-tear-bottom {
    top: 50%;
    transform: translateY(-50%);
}

.portal-tear-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--secondary) 20%,
        #fff 40%,
        var(--primary) 60%,
        var(--secondary) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 20px var(--secondary),
        0 0 40px var(--primary),
        0 0 60px var(--secondary);
    animation: tearLinePulse 0.2s infinite;
}

@keyframes tearLinePulse {
    0%, 100% { opacity: 1; height: 3px; }
    50% { opacity: 0.8; height: 5px; }
}

/* The actual tearing panels */
.portal-panel {
    position: absolute;
    left: 0;
    right: 0;
    background: #000;
    z-index: 25;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.portal-panel-top {
    top: 0;
    height: 50%;
    transform-origin: top center;
    border-bottom: 2px solid var(--primary);
}

.portal-panel-bottom {
    bottom: 0;
    height: 50%;
    transform-origin: bottom center;
    border-top: 2px solid var(--secondary);
}

/* Grunge texture on panels */
.portal-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.01) 2px,
            rgba(255,255,255,0.01) 4px
        );
    pointer-events: none;
}

/* Tearing state */
.underground-portal.tearing .portal-panel-top {
    transform: translateY(-105%) rotate(-2deg);
}

.underground-portal.tearing .portal-panel-bottom {
    transform: translateY(105%) rotate(2deg);
}

.underground-portal.tearing .portal-tear-line {
    animation: tearLineExplode 0.5s ease-out forwards;
}

@keyframes tearLineExplode {
    0% { 
        height: 3px; 
        opacity: 1;
        box-shadow: 0 0 20px var(--secondary), 0 0 40px var(--primary);
    }
    50% {
        height: 20px;
        opacity: 1;
        box-shadow: 0 0 50px var(--secondary), 0 0 100px var(--primary), 0 0 150px #fff;
    }
    100% { 
        height: 200px; 
        opacity: 0;
        box-shadow: 0 0 100px var(--secondary), 0 0 200px var(--primary);
    }
}

/* Screen shake on tear */
.underground-portal.tearing {
    animation: portalShake 0.3s ease-out;
}

@keyframes portalShake {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-10px, 5px); }
    20% { transform: translate(10px, -5px); }
    30% { transform: translate(-8px, -5px); }
    40% { transform: translate(8px, 5px); }
    50% { transform: translate(-5px, 3px); }
    60% { transform: translate(5px, -3px); }
    70% { transform: translate(-3px, -2px); }
    80% { transform: translate(3px, 2px); }
    90% { transform: translate(-1px, 1px); }
}
