/* ============================================
   INFINITE WHITE WHALE ROOMS · $IWWR
   A Sentient Whale Dreams in White Corridors
   ============================================ */

:root {
    /* The Abyss */
    --void-black: #000000;
    --abyss-deep: #020208;
    --abyss-mid: #050510;
    --abyss-light: #0a0a1a;
    
    /* Bioluminescence */
    --bio-cyan: #00ffd5;
    --bio-blue: #00a8ff;
    --bio-purple: #8b5cf6;
    --bio-pink: #ec4899;
    --bio-white: #e0f7ff;
    --bio-green: #10b981;
    
    /* Whale Consciousness */
    --whale-glow: rgba(0, 255, 213, 0.15);
    --whale-pulse: rgba(0, 168, 255, 0.1);
    
    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shine: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Removed global transitions for performance - apply only where needed */

body {
    font-family: var(--font-display);
    background: var(--void-black);
    color: var(--bio-white);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: crosshair;
    transition: filter 0.5s ease;
}

/* Depth transition overlay */
.depth-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s ease;
}

/* Swimming depth effects */
body[data-depth="surface"] .depth-overlay {
    background: transparent;
    box-shadow: none;
}

body[data-depth="deep"] .depth-overlay {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 20, 40, 0.2) 50%,
        rgba(0, 10, 30, 0.4) 100%
    );
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

body[data-depth="abyss"] .depth-overlay {
    background: linear-gradient(180deg, 
        rgba(0, 10, 30, 0.2) 0%, 
        rgba(0, 5, 20, 0.5) 50%,
        rgba(0, 0, 10, 0.7) 100%
    );
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.5);
}

body[data-depth="hadal"] .depth-overlay {
    background: linear-gradient(180deg, 
        rgba(0, 5, 20, 0.4) 0%, 
        rgba(0, 0, 15, 0.7) 50%,
        rgba(0, 0, 5, 0.9) 100%
    );
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.7);
}

/* Particle density increases with depth */
body[data-depth="deep"] #particles {
    opacity: 1.2;
}

body[data-depth="abyss"] #particles {
    opacity: 1.4;
}

body[data-depth="hadal"] #particles {
    opacity: 1.6;
}

/* Pressure vignette effect */
.pressure-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.5s ease;
}

body[data-depth="deep"] .pressure-vignette {
    box-shadow: inset 0 0 80px rgba(0, 0, 30, 0.3);
}

body[data-depth="abyss"] .pressure-vignette {
    box-shadow: inset 0 0 120px rgba(0, 0, 20, 0.5);
}

body[data-depth="hadal"] .pressure-vignette {
    box-shadow: inset 0 0 180px rgba(0, 0, 10, 0.7);
}

/* Depth indicator bubbles that float up faster as you go deeper */
.depth-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.depth-bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: bubble-rise linear infinite;
    will-change: transform, opacity;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100vh) scale(1) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    25% {
        transform: translateY(75vh) scale(0.9) translateX(10px);
    }
    50% {
        transform: translateY(50vh) scale(0.8) translateX(-5px);
    }
    75% {
        transform: translateY(25vh) scale(0.7) translateX(8px);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-50px) scale(0.5) translateX(0);
        opacity: 0;
    }
}

/* Surface light rays - fade as you descend */
.surface-light {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: 
        linear-gradient(180deg, 
            rgba(255, 255, 255, 0.03) 0%,
            transparent 40%
        ),
        repeating-linear-gradient(
            100deg,
            transparent 0px,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 2px,
            transparent 100px
        );
    opacity: 1;
    transition: opacity 0.8s ease;
}

body[data-depth="deep"] .surface-light {
    opacity: 0.4;
}

body[data-depth="abyss"] .surface-light {
    opacity: 0.1;
}

body[data-depth="hadal"] .surface-light {
    opacity: 0;
}

/* Water caustics at surface */
body[data-depth="surface"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse 800px 200px at 30% 10%, rgba(0, 255, 213, 0.03), transparent),
        radial-gradient(ellipse 600px 150px at 70% 15%, rgba(139, 92, 246, 0.02), transparent);
    animation: caustics 8s ease-in-out infinite alternate;
}

@keyframes caustics {
    0% {
        transform: translateX(-20px) skewX(-2deg);
    }
    100% {
        transform: translateX(20px) skewX(2deg);
    }
}

/* Depth transition indicator on scroll */
.depth-transition-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(circle at center, rgba(0, 255, 213, 0.2), transparent 70%);
    opacity: 0;
    animation: depth-flash 0.5s ease-out;
}

@keyframes depth-flash {
    0% { opacity: 0.5; }
    100% { opacity: 0; }
}

/* ============================================
   WHALE ORACLE - LISTEN TO THE WHALE
   ============================================ */

.whale-oracle-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(0, 255, 213, 0.3);
    border-radius: 50px;
    cursor: pointer;
    z-index: 500;
    transition: all 0.4s ease;
    animation: oracleFloat 4s ease-in-out infinite;
}

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

.whale-oracle-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--bio-cyan);
    box-shadow: 
        0 0 30px rgba(0, 255, 213, 0.3),
        0 0 60px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.oracle-icon {
    font-size: 1.8rem;
    animation: whaleWiggle 3s ease-in-out infinite;
}

@keyframes whaleWiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.oracle-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--bio-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Oracle Overlay */
.whale-oracle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.whale-oracle-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.oracle-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.oracle-close:hover {
    color: var(--bio-cyan);
    transform: rotate(90deg);
}

/* Oracle Whale */
.oracle-whale {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.oracle-whale::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    animation: divineAura 6s ease-in-out infinite;
}

.oracle-whale::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: 
        conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.05), transparent, rgba(0, 255, 213, 0.05), transparent);
    pointer-events: none;
    animation: divineRays 20s linear infinite;
    border-radius: 50%;
}

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

@keyframes divineRays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Artistic SVG Whale - Oracle */
.oracle-whale-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: oracle-float 10s ease-in-out infinite;
}

@keyframes oracle-float {
    0%, 100% { transform: translateY(0) rotate(-0.3deg); }
    50% { transform: translateY(-18px) rotate(0.3deg); }
}

/* Divine rays rotating slowly */
.divine-rays {
    animation: rays-rotate 60s linear infinite;
    transform-origin: 300px 150px;
}

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

/* Halos pulsing */
.halo {
    animation: halo-pulse 5s ease-in-out infinite;
    transform-origin: center;
}

.halo-1 { animation-delay: 0s; }
.halo-2 { animation-delay: 0.3s; }
.halo-3 { animation-delay: 0.6s; }

@keyframes halo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; stroke-width: 1px; }
    50% { transform: scale(1.03); opacity: 0.5; stroke-width: 2px; }
}

/* Oracle body breathing - simplified */
.oracle-body {
    opacity: 0.95;
}

/* Energy veins flowing */
.energy-veins path {
    stroke-dasharray: 400;
    animation: vein-flow 5s linear infinite;
}

.energy-veins path:nth-child(1) { animation-delay: 0s; }
.energy-veins path:nth-child(2) { animation-delay: 1.6s; }
.energy-veins path:nth-child(3) { animation-delay: 3.2s; }

@keyframes vein-flow {
    0% { stroke-dashoffset: 400; opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { stroke-dashoffset: -400; opacity: 0; }
}

/* Star particles twinkling */
.star-particles circle {
    animation: star-twinkle 3s ease-in-out infinite;
}

.star-particles circle:nth-child(odd) { animation-delay: 0.5s; }
.star-particles circle:nth-child(3n) { animation-delay: 1s; }
.star-particles circle:nth-child(4n) { animation-delay: 1.5s; }

@keyframes star-twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

/* All-seeing eye effects */
.whale-eye-group ellipse:first-child {
    animation: eye-cosmic-pulse 4s ease-in-out infinite;
}

@keyframes eye-cosmic-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 8px #00ffd5);
    }
    50% { 
        filter: drop-shadow(0 0 20px #00ffd5) drop-shadow(0 0 35px #00ffd5);
    }
}

/* Hover interaction - simplified */
.oracle-whale-svg:hover .oracle-body {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7));
    transition: filter 0.3s ease;
}

.oracle-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--bio-cyan);
    text-align: center;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--bio-cyan);
}

.oracle-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Chat Area */
.oracle-chat {
    flex: 1;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oracle-message {
    display: flex;
    gap: 12px;
    animation: messageAppear 0.5s ease-out forwards;
}

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

.oracle-message.whale {
    align-self: flex-start;
}

.oracle-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-prefix {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.oracle-message.user .message-prefix {
    color: var(--bio-purple);
}

.message-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.oracle-message.whale .message-text {
    background: rgba(0, 255, 213, 0.1);
    border: 1px solid rgba(0, 255, 213, 0.2);
    color: var(--bio-white);
}

.oracle-message.user .message-text {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--bio-white);
}

.message-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.message-typing span {
    width: 8px;
    height: 8px;
    background: var(--bio-cyan);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.message-typing span:nth-child(2) { animation-delay: 0.2s; }
.message-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* Input */
.oracle-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.oracle-input {
    flex: 1;
    padding: 15px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--bio-white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.oracle-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.oracle-input:focus {
    border-color: var(--bio-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.2);
}

.oracle-send {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bio-cyan), var(--bio-blue));
    border: none;
    border-radius: 50%;
    color: var(--void-black);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oracle-send:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 213, 0.5);
}

/* Hint Buttons */
.oracle-hints {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.oracle-hints > span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.hint-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hint-btn:hover {
    border-color: var(--bio-cyan);
    color: var(--bio-cyan);
    background: rgba(0, 255, 213, 0.1);
}

/* ============================================
   FIXED UI ELEMENTS - Stay during scroll
   ============================================ */

#ocean-canvas,
#particles,
.sonar-rings,
.pod-network,
.echo-container {
    position: fixed;
    pointer-events: none;
}

/* ============================================
   WHALE EYE TRACKER
   ============================================ */

.whale-eye-container {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 120px;
    height: 80px;
    z-index: 100;
    pointer-events: none;
}

.whale-eye-outer {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1520 0%, #051015 100%);
    border-radius: 50% / 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(0, 255, 213, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 213, 0.1);
    overflow: hidden;
    position: relative;
}

.whale-eye-inner {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #1a3040 0%, #0a1520 50%, #000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.1s ease-out;
}

.whale-eye-pupil {
    width: 25px;
    height: 35px;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    border-radius: 50%;
    position: relative;
    transition: transform 0.05s ease-out;
}

.whale-eye-pupil::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    background: rgba(0, 255, 213, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bio-cyan);
}

.whale-eye-reflection {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 15px;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.whale-eye-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 255, 213, 0.15) 0%, transparent 70%);
    opacity: 0.7;
}

.whale-eye-outer.blink {
    animation: blink 0.15s ease-in-out;
}

@keyframes blink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* ============================================
   BREATHING INDICATOR
   ============================================ */

.breathing-indicator {
    position: fixed;
    top: 50px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    z-index: 100;
    font-family: var(--font-mono);
}

.breath-bar {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.breath-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bio-cyan), var(--bio-blue));
    border-radius: 2px;
    animation: breathFill 60s linear infinite;
    box-shadow: 0 0 10px var(--bio-cyan);
}

@keyframes breathFill {
    0% { width: 0%; }
    95% { width: 100%; }
    100% { width: 0%; }
}

.breath-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
}

.breath-timer {
    font-size: 0.8rem;
    color: var(--bio-cyan);
}

.surfacing-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(200, 230, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    animation: surface 3s ease-in-out forwards;
}

@keyframes surface {
    0% { opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ============================================
   DEPTH PRESSURE GAUGE
   ============================================ */

.pressure-gauge {
    position: fixed;
    bottom: 50px;
    left: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    font-family: var(--font-mono);
}

.pressure-meter {
    width: 20px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.pressure-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: linear-gradient(180deg, var(--bio-pink), var(--bio-purple), var(--bio-cyan));
    border-radius: 0 0 10px 10px;
    transition: height 0.5s ease-out;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.pressure-markers {
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
}

.pressure-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-left: 5px;
}

.pressure-value {
    font-size: 0.75rem;
    color: var(--bio-purple);
    text-shadow: 0 0 10px var(--bio-purple);
}

/* ============================================
   POD NETWORK VISUALIZATION
   ============================================ */

.pod-network {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.pod-line {
    stroke: url(#pod-gradient);
    stroke-width: 1;
    fill: none;
    opacity: 0;
    animation: podPulse 3s ease-in-out infinite;
}

@keyframes podPulse {
    0%, 100% { opacity: 0; stroke-dashoffset: 1000; }
    50% { opacity: 0.6; stroke-dashoffset: 0; }
}

/* ============================================
   ECHOLOCATION CLICK RIPPLES
   ============================================ */

.echo-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    overflow: hidden;
}

.echo-ripple {
    position: absolute;
    border: 2px solid var(--bio-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: echoExpand 2s ease-out forwards;
    box-shadow: 
        0 0 20px var(--bio-cyan),
        inset 0 0 20px rgba(0, 255, 213, 0.1);
}

.echo-ripple::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(0, 255, 213, 0.5);
    border-radius: 50%;
}

@keyframes echoExpand {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 600px; height: 600px; opacity: 0; }
}

.echo-ping {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bio-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pingFade 0.5s ease-out forwards;
    box-shadow: 0 0 30px var(--bio-cyan);
}

@keyframes pingFade {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.click-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    animation: hintPulse 2s ease-in-out infinite;
}

.click-hint span {
    color: var(--bio-cyan);
    animation: hintDot 1s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes hintDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   WHALE HEARTBEAT
   ============================================ */

.heartbeat-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.heartbeat-pulse {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--bio-pink) 0%, transparent 70%);
    border-radius: 50%;
    animation: heartbeat 10s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 8%, 16%, 100% { transform: scale(1); opacity: 0.3; }
    4%, 12% { transform: scale(1.4); opacity: 1; }
}

.heartbeat-bpm {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--bio-pink);
    opacity: 0.7;
}

/* ============================================
   BLOWHOLE SPRAY
   ============================================ */

.whale-container {
    margin: 2rem auto;
    position: relative;
    display: inline-block;
}

.whale-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.8;
}

.blowhole-spray {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    pointer-events: none;
    opacity: 0;
}

.blowhole-spray.active {
    animation: sprayBurst 2s ease-out forwards;
}

.spray-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--bio-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bio-cyan);
}

@keyframes sprayBurst {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ============================================
   WHALE STATS
   ============================================ */

.whale-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--bio-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

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

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.sonar-rings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vmax;
    height: 100vmax;
    pointer-events: none;
    z-index: 0;
}

.sonar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--bio-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: sonar-expand 8s ease-out infinite;
}

@keyframes sonar-expand {
    0% { width: 0; height: 0; opacity: 0.5; }
    100% { width: 150%; height: 150%; opacity: 0; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.header {
    text-align: center;
    padding: 3rem 0 4rem;
    position: relative;
}

/* Main Title - Large and Visible */
.main-title {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px #ffffff,
        0 0 20px var(--bio-cyan),
        0 0 40px var(--bio-cyan),
        0 0 80px rgba(0, 255, 213, 0.5);
    animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { 
        text-shadow: 
            0 0 10px #ffffff,
            0 0 20px var(--bio-cyan),
            0 0 40px var(--bio-cyan),
            0 0 80px rgba(0, 255, 213, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 15px #ffffff,
            0 0 30px var(--bio-cyan),
            0 0 60px var(--bio-cyan),
            0 0 100px rgba(0, 255, 213, 0.7);
    }
}

.main-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

/* X Button - Clean & Visible */
.social-links {
    margin: 1rem 0;
}

.x-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.x-button:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.x-button .x-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
    display: block;
    fill: #ffffff;
}

/* Fixed X Button - Top Left */
.fixed-x-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.fixed-x-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.fixed-x-button .x-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    fill: #ffffff;
}

/* Live Transmission Section */
.live-transmission-section {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.live-transmission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bio-cyan), var(--bio-purple), var(--bio-cyan), transparent);
    animation: transmission-line 3s linear infinite;
}

@keyframes transmission-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.transmission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
    animation: live-pulse 1.5s ease-in-out infinite;
}

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

.transmission-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--bio-cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.transmission-content {
    padding: 1rem 0;
}

.transmission-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: #ffffff;
    line-height: 1.8;
    text-align: center;
    animation: transmission-fade 0.5s ease-out;
}

@keyframes transmission-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.transmission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.transmission-time {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(0, 255, 213, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 30px rgba(0, 255, 213, 0.3); }
}

@keyframes countdown-urgent {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.7), 0 0 35px rgba(255, 140, 0, 0.4);
        transform: scale(1.05);
    }
}

.transmission-depth {
    color: var(--bio-cyan);
}

/* Artistic SVG Whale - Main Page */
.whale-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: whale-float 8s ease-in-out infinite;
}

@keyframes whale-float {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

.whale-body-main {
    animation: body-pulse 4s ease-in-out infinite;
}

@keyframes body-pulse {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 1; }
}

/* Energy lines animation */
.energy-line {
    stroke-dasharray: 300;
    animation: energy-flow 4s linear infinite;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 1.3s; }
.line-3 { animation-delay: 2.6s; }

@keyframes energy-flow {
    0% { stroke-dashoffset: 300; opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { stroke-dashoffset: -300; opacity: 0; }
}

/* Aura rings pulsing */
.aura-ring {
    animation: aura-pulse 6s ease-in-out infinite;
    transform-origin: center;
}

.aura-1 { animation-delay: 0s; }
.aura-2 { animation-delay: 0.5s; }
.aura-3 { animation-delay: 1s; }

@keyframes aura-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.5; }
}

/* Bio-luminescent spots twinkling */
.bio-spot {
    animation: bio-twinkle 2s ease-in-out infinite;
}

.bio-spot:nth-child(odd) { animation-delay: 0.5s; }
.bio-spot:nth-child(even) { animation-delay: 1s; }

@keyframes bio-twinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Eye cosmic glow - simplified for performance */
.whale-eye-outer {
    filter: drop-shadow(0 0 8px #00ffd5);
}

.whale-eye-spark {
    animation: spark-pulse 2s ease-in-out infinite;
}

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

/* Hover effects - simplified */
.whale-svg:hover .whale-body-main {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
    transition: filter 0.3s ease;
}

@keyframes whale-swim {
    0%, 100% { transform: translateX(-10px) translateY(0) rotate(-1deg); }
    25% { transform: translateX(5px) translateY(-5px) rotate(0.5deg); }
    50% { transform: translateX(10px) translateY(0) rotate(1deg); }
    75% { transform: translateX(-5px) translateY(5px) rotate(-0.5deg); }
}

.consciousness-text {
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    background: linear-gradient(135deg, var(--glass-bg) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    position: relative;
}

.consciousness-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--bio-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bio-green);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.signal-strength {
    margin-left: auto;
    color: var(--bio-cyan);
    letter-spacing: 2px;
}

.typing-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--bio-white);
    opacity: 0.9;
    line-height: 1.7;
    min-height: 50px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: var(--bio-cyan);
    margin-left: 2px;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

.tagline {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag-glow {
    color: var(--bio-cyan);
    text-shadow: 0 0 10px var(--bio-cyan);
    font-weight: 600;
    font-size: 1.1rem;
}

.tag-name {
    color: rgba(255, 255, 255, 0.7);
}

.frequency {
    color: var(--bio-purple);
    animation: freq-pulse 2s ease-in-out infinite;
}

@keyframes freq-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bio-cyan), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--whale-glow),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 213, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 213, 0.1),
        inset 0 1px 0 var(--glass-shine);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-scenario {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--bio-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-scenario::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--bio-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--bio-cyan);
    animation: dot-pulse 2s ease-in-out infinite;
}

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

.card-depth {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--bio-purple);
    opacity: 0.7;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    word-break: break-all;
}

.card-transmission {
    font-size: 0.95rem;
    color: var(--bio-white);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--glass-border);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-family: var(--font-mono);
}

.card-miner {
    color: var(--bio-blue);
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.card-votes {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--bio-cyan);
}

.card-votes svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Load More */
.load-more-container {
    text-align: center;
    padding: 3rem 0;
}

.load-more-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--bio-cyan);
    background: transparent;
    border: 1px solid rgba(0, 255, 213, 0.3);
    padding: 1.25rem 3rem;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--whale-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.load-more-btn:hover {
    border-color: var(--bio-cyan);
    box-shadow: 
        0 0 30px rgba(0, 255, 213, 0.2),
        inset 0 0 30px rgba(0, 255, 213, 0.05);
    transform: translateY(-3px);
}

.load-more-btn:hover::before {
    opacity: 1;
}

.sonar-ping {
    width: 10px;
    height: 10px;
    background: var(--bio-cyan);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--bio-cyan);
}

.sonar-ping::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--bio-cyan);
    border-radius: 50%;
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.btn-depth {
    color: var(--bio-purple);
    font-size: 0.75rem;
    opacity: 0.7;
}

.load-more-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-whale-swim {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.swimming-whale {
    animation: swimAcross 8s ease-in-out infinite;
}

.swimming-whale.delay-1 {
    animation-delay: -2.5s;
}

.swimming-whale.delay-2 {
    animation-delay: -5s;
}

@keyframes swimAcross {
    0%, 100% { transform: translateX(-20px) translateY(0) scaleX(-1); }
    25% { transform: translateX(0) translateY(-5px) scaleX(-1); }
    50% { transform: translateX(20px) translateY(0) scaleX(-1); }
    75% { transform: translateX(0) translateY(5px) scaleX(-1); }
}

.footer-ticker {
    color: var(--bio-cyan);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
}

.footer a {
    color: var(--bio-cyan);
    text-decoration: none;
}

.footer a:hover {
    text-shadow: 0 0 10px var(--bio-cyan);
}

.coordinates {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2em;
}

/* Card Animations */
.card {
    opacity: 0;
    transform: translateY(40px);
}

.card.visible {
    animation: card-rise 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes card-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whale-eye-container {
        width: 80px;
        height: 50px;
        top: 20px;
        right: 20px;
    }
    
    .whale-eye-inner {
        width: 40px;
        height: 40px;
    }
    
    .whale-eye-pupil {
        width: 18px;
        height: 25px;
    }
    
    .breathing-indicator {
        top: 20px;
        left: 20px;
    }
    
    .breath-bar {
        width: 100px;
    }
    
    .pressure-gauge {
        display: none;
    }
    
    .heartbeat-container {
        bottom: 180px;
        right: 20px;
    }
    
    .whale-oracle-toggle {
        bottom: 80px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .oracle-label {
        display: none;
    }
    
    .container {
        padding: 1rem;
    }
    
    .ascii-art {
        font-size: 0.25rem;
    }
    
    .whale-ascii {
        font-size: 0.3rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .whale-stats {
        gap: 1.5rem;
        padding: 0.75rem 1rem;
    }
    
    .click-hint {
        display: none;
    }
    
    .oracle-whale-ascii {
        font-size: 0.15rem;
    }
}

@media (max-width: 480px) {
    .ascii-art {
        display: none;
    }
    
    .header::after {
        content: 'INFINITE WHITE ROOMS';
        display: block;
        font-family: var(--font-mono);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--bio-cyan);
        text-shadow: 0 0 20px var(--bio-cyan);
        letter-spacing: 0.2em;
        margin-bottom: 1rem;
    }
    
    .whale-ascii {
        font-size: 0.25rem;
    }
    
    .whale-stats {
        flex-direction: column;
        gap: 1rem;
        border-radius: 12px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--abyss-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 213, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 213, 0.4);
}

::selection {
    background: rgba(0, 255, 213, 0.3);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--bio-cyan);
    outline-offset: 2px;
}
