/* ============================================
   KARASJACHIJ_POKER - Glassmorphism Style
   Modern, Blur Effects, Soft Gradients
   ============================================ */

/* CSS Variables */
:root {
    /* Background - Deep gradient */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0a0f1a 0%, #1a1f3a 50%, #0f172a 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents - Warm aquatic tones */
    --accent-gold: #d4a574;
    --accent-coral: #e8956a;
    --accent-cyan: #67e8f9;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;

    /* Glow colors */
    --glow-gold: rgba(212, 165, 116, 0.4);
    --glow-coral: rgba(232, 149, 106, 0.4);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-bubbles: 5;
    --z-fish: 10;
    --z-content: 100;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(103, 232, 249, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: bg-shift 20s ease-in-out infinite;
}

@keyframes bg-shift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
        opacity: 1;
    }
    33% {
        background-position: 30% 70%, 70% 30%, 20% 80%;
        opacity: 0.8;
    }
    66% {
        background-position: 70% 30%, 30% 70%, 80% 20%;
        opacity: 0.9;
    }
}

/* Water Surface Effect - subtle top glow */
.water-surface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom,
        rgba(103, 232, 249, 0.06) 0%,
        rgba(103, 232, 249, 0.02) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 150;
}

.water-surface::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(103, 232, 249, 0.15) 30%,
        rgba(103, 232, 249, 0.2) 50%,
        rgba(103, 232, 249, 0.15) 70%,
        transparent 100%);
    animation: surface-shimmer 6s ease-in-out infinite;
}

@keyframes surface-shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Light Ray from above */
.light-ray {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 90vh;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(212, 165, 116, 0.06) 20%,
        rgba(103, 232, 249, 0.03) 50%,
        transparent 100%
    );
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 2;
    animation: ray-pulse 8s ease-in-out infinite;
}

.light-ray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 70vh;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(212, 165, 116, 0.04) 30%,
        transparent 100%
    );
    clip-path: polygon(35% 0%, 65% 0%, 100% 100%, 0% 100%);
}

@keyframes ray-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.15);
    }
}

/* Light Caustics overlay - hidden, was causing visual issues */
.caustics {
    display: none;
}

/* Particles / Plankton container */
#particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

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

/* Aquarium - Background Layer */
.aquarium {
    position: fixed;
    inset: 0;
    pointer-events: auto;
    z-index: var(--z-bubbles);
}

#fish-container {
    position: absolute;
    inset: 0;
    z-index: var(--z-fish);
    pointer-events: none;
}

#bubble-container {
    position: absolute;
    inset: 0;
    z-index: var(--z-bubbles);
    pointer-events: none;
}

/* Fish */
.fish {
    position: absolute;
    width: 80px;
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    will-change: transform;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.2));
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
}

.fish:focus {
    outline: none;
}

.fish img {
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    outline: none;
    border: none;
}

.fish.flip { transform: scaleX(-1); }
.fish.scared { opacity: 0.5; filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.1)); }
.fish.fish-small { width: 50px; }
.fish.fish-medium { width: 80px; }
.fish.fish-large { width: 110px; }

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    box-shadow: inset 0 -2px 4px rgba(255,255,255,0.1);
    animation: bubble-rise linear infinite;
    pointer-events: none;
}

@keyframes bubble-rise {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    10% { opacity: 0.5; transform: translateY(-10vh) scale(1); }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(20px) scale(0.6); opacity: 0; }
}

/* Easter Egg */
.feed-crumb {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    z-index: 200;
    pointer-events: none;
    transform: scale(0);
    transition: transform 0.2s ease;
    box-shadow: 0 0 20px var(--glow-gold);
}
.feed-crumb.visible { transform: scale(1); }

.feed-text {
    position: fixed;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.4s;
}
.feed-text.visible { opacity: 1; transform: translateY(-15px); }
.hidden { display: none; }

/* Main Content */
.main-content {
    position: relative;
    z-index: var(--z-content);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md);
    pointer-events: none;
}

.main-content > * {
    pointer-events: auto;
}

/* Header - Floating Glass Style */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 520px;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 100%
    );
    border-radius: var(--radius-xl);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 165, 116, 0.3) 50%,
        transparent 100%
    );
}

/* Logo Image */
.logo {
    margin-bottom: var(--spacing-lg);
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    filter: drop-shadow(0 4px 20px rgba(212, 165, 116, 0.3));
}

/* Fallback text logo */
.logo-text {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-coral), var(--accent-cyan));
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.bio {
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 400;
    margin-top: 50px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.bio-ua {
    color: var(--text-primary);
}

.bio-ua .name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 15px rgba(212, 165, 116, 0.5), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.bio-ua .line-1,
.bio-ua .line-2 {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.bio-ua .line-1 {
    font-size: 1.1rem;
}

.bio-ua .line-2 {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Schedule */
.schedule {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.schedule-days {
    display: flex;
    gap: 6px;
}

.schedule-day {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    background: rgba(103, 232, 249, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(103, 232, 249, 0.2);
}

.schedule-time {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.schedule-tz {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* CTA Buttons - Glassmorphism Pills */
.cta-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 400px;
    margin-bottom: var(--spacing-xl);
}

/* Staggered fade-in animation */
.cta-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-slide-in 0.6s ease forwards;
}

.cta-btn:nth-child(1) { animation-delay: 0.1s; }
.cta-btn:nth-child(2) { animation-delay: 0.2s; }
.cta-btn:nth-child(3) { animation-delay: 0.3s; }
.cta-btn:nth-child(4) { animation-delay: 0.4s; }
.cta-btn:nth-child(5) { animation-delay: 0.5s; }

@keyframes fade-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header fade-in */
.header {
    opacity: 0;
    animation: fade-in 0.8s ease 0.05s forwards;
    padding: var(--spacing-md) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@keyframes fade-in {
    to { opacity: 1; }
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cta-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Ripple effect */
.cta-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.cta-icon svg {
    width: 22px;
    height: 22px;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Arrow on right side of button */
.cta-btn::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-top: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.cta-btn:hover::after {
    opacity: 1;
    right: 16px;
    border-color: var(--text-secondary);
}

/* CTA Colors - Glassmorphism with glow */
.cta-twitch .cta-icon {
    background: rgba(145, 70, 255, 0.2);
    color: #a78bfa;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.2);
}
.cta-twitch:hover .cta-icon {
    background: rgba(145, 70, 255, 0.3);
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.4);
}

/* Live badge - hidden by default */
.live-badge {
    display: none;
    position: absolute;
    top: -8px;
    right: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #fff;
    background: #eb0400;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(235, 4, 0, 0.5);
}

.live-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin-right: 5px;
    animation: live-dot 1s ease-in-out infinite;
}

/* Show badge when live */
.cta-twitch.is-live .live-badge {
    display: flex;
    align-items: center;
}

.cta-twitch.is-live {
    border-color: rgba(235, 4, 0, 0.4);
    box-shadow: 0 4px 30px rgba(235, 4, 0, 0.2);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes live-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cta-telegram .cta-icon {
    background: rgba(0, 136, 204, 0.2);
    color: #67e8f9;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.2);
}
.cta-telegram:hover .cta-icon {
    background: rgba(0, 136, 204, 0.3);
    box-shadow: 0 0 30px rgba(0, 136, 204, 0.4);
}

.cta-chat .cta-icon {
    background: rgba(232, 149, 106, 0.2);
    color: var(--accent-coral);
    box-shadow: 0 0 20px rgba(232, 149, 106, 0.2);
}
.cta-chat:hover .cta-icon {
    background: rgba(232, 149, 106, 0.3);
    box-shadow: 0 0 30px rgba(232, 149, 106, 0.4);
}

.cta-support .cta-icon {
    background: rgba(103, 232, 249, 0.2);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(103, 232, 249, 0.2);
}
.cta-support:hover .cta-icon {
    background: rgba(103, 232, 249, 0.3);
    box-shadow: 0 0 30px rgba(103, 232, 249, 0.4);
}

.cta-donate .cta-icon {
    background: rgba(244, 114, 182, 0.2);
    color: var(--accent-pink);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.2);
}
.cta-donate:hover .cta-icon {
    background: rgba(244, 114, 182, 0.3);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.4);
}

/* Disclaimer - Clean text */
.disclaimer-text {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: var(--spacing-md) var(--spacing-lg);
    opacity: 0.7;
}

/* Footer */
.footer-seabed {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding: var(--spacing-sm) 0 0 0;
    flex-shrink: 0;
}

/* Poker Chips */
.poker-chips {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 50;
}

.chip {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.chip::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.chip-red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-color: rgba(255, 200, 200, 0.4);
}

.chip-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: rgba(200, 220, 255, 0.4);
}

.chip-green {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: rgba(200, 255, 200, 0.4);
}

.chip-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8860b 100%);
    border-color: rgba(255, 230, 180, 0.5);
}

.chip-black {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-color: rgba(200, 200, 200, 0.3);
}

@media (min-width: 768px) {
    .chip {
        width: 40px;
        height: 40px;
    }
    .chip::after {
        width: 16px;
        height: 16px;
    }
}

.official-info {
    position: relative;
    z-index: var(--z-content);
    max-width: 440px;
    margin: 0 auto;
}

.legal-details {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.legal-details summary {
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-md);
    list-style: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.legal-details summary .info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.legal-details summary:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.legal-details summary::-webkit-details-marker { display: none; }
.legal-details summary::after { content: ' ▼'; font-size: 0.6rem; }
.legal-details[open] summary::after { content: ' ▲'; }

.legal-content {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-content p { margin-bottom: var(--spacing-sm); }
.legal-content strong { color: var(--text-primary); }

.legal-note {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Desktop */
@media (min-width: 768px) {
    .header {
        padding: var(--spacing-xl);
    }
    .logo img {
        max-height: 80px;
    }
    .logo-text { font-size: 2.5rem; }
    .bio { font-size: 1.05rem; }
    .bio-ua .name { font-size: 1.3rem; }
    .cta-container {
        max-width: 440px;
        gap: var(--spacing-md);
    }
    .cta-btn {
        padding: var(--spacing-lg) var(--spacing-xl);
    }
    .cta-icon { width: 48px; height: 48px; }
    .cta-icon svg { width: 24px; height: 24px; }
    .cta-title { font-size: 1rem; }
    .fish.fish-small { width: 60px; }
    .fish.fish-medium { width: 100px; }
    .fish.fish-large { width: 130px; }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .header {
        max-width: 520px;
    }
    .cta-container {
        max-width: 480px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fish, .bubble { animation: none; transition: none; }
    .logo { animation: none; }
    .cta-btn { transition: none; }
}

/* Touch Devices */
@media (hover: none) {
    .cta-btn:hover {
        background: var(--glass-bg);
        border-color: var(--glass-border);
        transform: none;
    }
    .cta-btn:active {
        background: var(--glass-bg-hover);
        transform: scale(0.98);
    }
}

/* Safari backdrop-filter fallback */
@supports not (backdrop-filter: blur(20px)) {
    .header,
    .cta-btn,
    .disclaimer,
    .legal-details,
    .feed-text {
        background: rgba(15, 23, 42, 0.95);
    }
}

/* ============================================
   Avatar / Mascot
   ============================================ */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 20px rgba(212, 165, 116, 0.4));
    animation: avatar-float 4s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(212, 165, 116, 0.3) 0%,
        rgba(232, 149, 106, 0.2) 40%,
        transparent 70%);
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Follower count badge */
.follower-count {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(145, 70, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.follower-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.follower-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

/* Bubble ring around avatar */
.avatar-bubbles {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.avatar-bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    box-shadow: inset 0 -1px 2px rgba(255,255,255,0.2);
    animation: orbit-bubble linear infinite;
}

.avatar-bubble:nth-child(1) {
    animation-duration: 8s;
    width: 6px;
    height: 6px;
}
.avatar-bubble:nth-child(2) {
    animation-duration: 10s;
    animation-delay: -2s;
    width: 5px;
    height: 5px;
}
.avatar-bubble:nth-child(3) {
    animation-duration: 12s;
    animation-delay: -4s;
    width: 7px;
    height: 7px;
}
.avatar-bubble:nth-child(4) {
    animation-duration: 9s;
    animation-delay: -6s;
    width: 4px;
    height: 4px;
}
.avatar-bubble:nth-child(5) {
    animation-duration: 11s;
    animation-delay: -3s;
    width: 6px;
    height: 6px;
}

@keyframes orbit-bubble {
    0% {
        transform: rotate(0deg) translateX(70px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
    }
    75% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) translateX(70px) rotate(-360deg);
        opacity: 0.3;
    }
}

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

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

@media (min-width: 768px) {
    .avatar-container {
        width: 140px;
        height: 140px;
    }
}

/* ============================================
   Seabed / Footer Decorations
   ============================================ */
.seabed {
    position: relative;
    height: 120px;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

/* Sand Base */
.sand {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top,
        #8b7355 0%,
        #a08060 50%,
        #c4a77d 80%,
        transparent 100%);
    border-radius: 50% 50% 0 0 / 20px 20px 0 0;
    opacity: 0.6;
}

.sand::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10%;
    right: 10%;
    height: 15px;
    background: radial-gradient(ellipse at center,
        rgba(139, 115, 85, 0.4) 0%,
        transparent 70%);
}

/* Seaweed */
.seaweed {
    position: absolute;
    bottom: 15px;
    width: 12px;
    height: 60px;
    background: linear-gradient(to top,
        #2d5a27 0%,
        #3d7a37 50%,
        #4a9a4a 100%);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: seaweed-sway 4s ease-in-out infinite;
    opacity: 0.7;
}

.seaweed::before,
.seaweed::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 35px;
    background: linear-gradient(to top,
        #3d7a37 0%,
        #4a9a4a 100%);
    border-radius: 50% 50% 0 0;
}

.seaweed::before {
    bottom: 10px;
    left: -8px;
    transform: rotate(-15deg);
}

.seaweed::after {
    bottom: 20px;
    right: -8px;
    transform: rotate(15deg);
}

.seaweed-1 {
    left: 3%;
    height: 55px;
    animation-delay: 0s;
}

.seaweed-2 {
    left: 18%;
    height: 70px;
    animation-delay: -1.5s;
}

.seaweed-3 {
    right: 8%;
    height: 50px;
    animation-delay: -0.8s;
}

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

/* Starfish */
.starfish {
    position: absolute;
    bottom: 20px;
    left: 45%;
    width: 35px;
    height: 35px;
    opacity: 0.85;
    z-index: 5;
}

.starfish::before {
    content: '⭐';
    font-size: 28px;
    filter: hue-rotate(-30deg) saturate(1.5) brightness(0.85);
    display: block;
    transform: rotate(18deg);
    transition: transform 0.3s ease;
}

.starfish:hover::before {
    transform: rotate(38deg) scale(1.1);
}

/* Snail - static */
.snail {
    position: absolute;
    bottom: 18px;
    left: 10%;
    width: 40px;
    height: 35px;
    opacity: 0.9;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.snail::before {
    content: '🐌';
    font-size: 28px;
    display: block;
    filter: brightness(0.95);
}

.snail:hover {
    transform: translateX(5px);
}

/* Pebbles */
.pebble {
    position: absolute;
    bottom: 8px;
    border-radius: 50% 40% 45% 55%;
    opacity: 0.45;
    z-index: 2;
}

.pebble-1 {
    left: 15%;
    width: 18px;
    height: 12px;
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
    transform: rotate(-15deg);
}

.pebble-2 {
    left: 38%;
    width: 14px;
    height: 10px;
    background: linear-gradient(135deg, #6a6a6a 0%, #4a4a4a 100%);
    transform: rotate(10deg);
    bottom: 10px;
}

.pebble-3 {
    left: 52%;
    width: 20px;
    height: 14px;
    background: linear-gradient(135deg, #5e5e5e 0%, #3e3e3e 100%);
    transform: rotate(-5deg);
}

/* Shell */
.shell {
    position: absolute;
    bottom: 15px;
    left: 30%;
    width: 40px;
    height: 35px;
    z-index: 15;
}

.shell::before {
    content: '🐚';
    font-size: 26px;
    display: block;
    filter: hue-rotate(20deg) brightness(0.9) saturate(1.2);
    transition: transform 0.3s ease, filter 0.3s ease;
    line-height: 1;
}

.shell-2::before {
    font-size: 24px;
    filter: hue-rotate(180deg) brightness(0.9) saturate(1.1);
}

.shell:hover::before {
    transform: scale(1.1) rotate(-5deg);
    filter: hue-rotate(20deg) brightness(1) saturate(1.3);
}

.shell-2:hover::before {
    transform: scale(1.1) rotate(-5deg);
    filter: hue-rotate(180deg) brightness(1) saturate(1.2);
}

.pearl {
    position: absolute;
    top: 6px;
    left: 14px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f5f0e8 30%, #e8e0d0 60%, #d4c8b0 100%);
    border-radius: 50%;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.1),
        inset 2px 2px 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shell:hover .pearl {
    transform: scale(1.2);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        inset 0 -2px 3px rgba(0, 0, 0, 0.1),
        inset 2px 2px 3px rgba(255, 255, 255, 0.9);
}

/* Poker Chips in Seabed */
.seabed .chip {
    bottom: 10px;
    opacity: 0.65;
    z-index: 8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.seabed .chip:hover {
    opacity: 0.9;
}

.seabed .chip-red {
    left: 58%;
    transform: rotate(-12deg);
}

.seabed .chip-blue {
    left: 65%;
    bottom: 12px;
    transform: rotate(8deg);
}

.seabed .chip-green {
    left: 72%;
    bottom: 8px;
    transform: rotate(-5deg);
}

.seabed .chip-gold {
    left: 79%;
    bottom: 12px;
    transform: rotate(15deg);
}

.seabed .chip-black {
    left: 86%;
    bottom: 18px;
    transform: rotate(-8deg);
}

/* Mobile adjustments for seabed - Small phones (320-480px) */
@media (max-width: 480px) {
    .seabed {
        height: 90px;
    }

    .sand {
        height: 30px;
    }

    /* Seaweed - smaller and repositioned */
    .seaweed {
        height: 40px;
        width: 8px;
    }

    .seaweed-1 {
        left: 5%;
    }

    .seaweed-2 {
        left: 20%;
        height: 50px;
    }

    .seaweed-3 {
        right: 10%;
        height: 38px;
    }

    /* Starfish */
    .starfish {
        right: 20%;
        bottom: 20px;
    }

    .starfish::before {
        font-size: 20px;
    }

    /* Snail */
    .snail {
        left: 10%;
        bottom: 15px;
    }

    .snail::before {
        font-size: 20px;
    }

    /* Shell */
    .shell {
        left: 38%;
        bottom: 12px;
    }

    .shell::before {
        font-size: 22px;
    }

    /* Pebbles - fewer visible */
    .pebble {
        opacity: 0.4;
    }

    .pebble-1 {
        left: 8%;
        width: 14px;
        height: 10px;
    }

    .pebble-2 {
        left: 50%;
        width: 12px;
        height: 8px;
    }

    .pebble-3 {
        right: 30%;
        width: 16px;
        height: 11px;
    }

    /* Poker chips - compact layout */
    .seabed .chip {
        width: 22px;
        height: 22px;
        opacity: 0.5;
    }

    .seabed .chip-red {
        left: 60%;
    }

    .seabed .chip-blue {
        left: 68%;
    }

    .seabed .chip-green {
        left: 76%;
        bottom: 12px;
    }

    .seabed .chip-gold {
        right: 5%;
        bottom: 8px;
    }

    .seabed .chip-black {
        right: 2%;
        bottom: 18px;
    }
}

/* Tablet/Large phone adjustments (481-767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .seabed {
        height: 110px;
    }

    .sand {
        height: 38px;
    }

    .seaweed {
        height: 55px;
        width: 10px;
    }

    .seaweed-2 {
        height: 65px;
    }

    .starfish {
        right: 28%;
    }

    .starfish::before {
        font-size: 26px;
    }

    .snail::before {
        font-size: 24px;
    }

    .shell {
        left: 35%;
    }

    .shell::before {
        font-size: 24px;
    }

    .seabed .chip {
        width: 26px;
        height: 26px;
    }
}

/* Desktop adjustments (768px+) */
@media (min-width: 768px) {
    .seabed {
        height: 140px;
    }

    .sand {
        height: 50px;
    }

    .seaweed {
        height: 70px;
        width: 14px;
    }

    .seaweed-2 {
        height: 85px;
    }

    .starfish::before {
        font-size: 35px;
    }

    .snail::before {
        font-size: 28px;
    }

    .shell::before {
        font-size: 30px;
    }

    .seabed .chip {
        width: 32px;
        height: 32px;
    }
}

/* Large desktop (1024px+) */
@media (min-width: 1024px) {
    .seabed {
        height: 160px;
    }

    .sand {
        height: 55px;
    }

    .seaweed {
        height: 80px;
        width: 16px;
    }

    .seaweed-2 {
        height: 95px;
    }

    .starfish::before {
        font-size: 40px;
    }

    .snail::before {
        font-size: 32px;
    }

    .shell::before {
        font-size: 34px;
    }
}
