/* ============================================================
   АТОМИКС — Стили лендинга (index.html)
   ============================================================ */

/* ---------- ФОНОВЫЙ CANVAS ---------- */
#bgCanvas {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ---------- ЛЕНДИНГ ---------- */
#landing {
    position: fixed; inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* -------- Header -------- */
#landing header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-top: -12px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.logo { display: flex; align-items: center; }
.logo-img {
    height: 202px;
    width: auto;
    display: block;
    margin-top: -30px;
    filter: drop-shadow(0 0 24px rgba(77, 255, 204, 0.4));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-img:hover {
    filter: drop-shadow(0 0 28px rgba(77, 255, 204, 0.6));
    transform: scale(1.03);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.sound-btn {
    width: 44px; height: 44px;
    padding: 0;
    background: rgba(8, 40, 50, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 220, 255, 0.35);
    border-radius: 50%;
    color: #aef0ff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.sound-btn:hover {
    border-color: rgba(120, 255, 220, 0.8);
    box-shadow: 0 0 30px rgba(77, 255, 204, 0.3);
    color: #fff;
}
.sound-btn svg {
    width: 20px; height: 20px;
    position: absolute;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.sound-btn .icon-off { opacity: 0; transform: scale(0.7); }
.sound-btn.muted .icon-on { opacity: 0; transform: scale(0.7); }
.sound-btn.muted .icon-off { opacity: 1; transform: scale(1); }

#login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(8, 40, 50, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 220, 255, 0.35);
    border-radius: 30px;
    color: #aef0ff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#login-btn:hover {
    border-color: rgba(120, 255, 220, 0.8);
    box-shadow: 0 0 30px rgba(77, 255, 204, 0.3);
    color: #fff;
}
#login-btn .user-icon {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    position: relative;
}
#login-btn .user-icon::before {
    content: '';
    position: absolute;
    top: 2.5px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
}
#login-btn .user-icon::after {
    content: '';
    position: absolute;
    bottom: 1.5px; left: 50%;
    transform: translateX(-50%);
    width: 9px; height: 5px;
    border-radius: 5px 5px 0 0;
    background: currentColor;
}

/* -------- Hero -------- */
.hero {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px 40px;
    position: relative;
    z-index: 2;
}
.hero-eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 8px;
    color: rgba(140, 230, 255, 0.6);
    margin-bottom: 24px;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 4.2vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow:
        0 0 40px rgba(77, 255, 204, 0.35),
        0 0 80px rgba(120, 200, 255, 0.2);
    margin-bottom: 22px;
    white-space: nowrap;
    padding: 0 20px;
}
.hero-title span {
    background: linear-gradient(135deg, #4dffcc 0%, #88ccff 50%, #cc88ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(14px, 1.3vw, 17px);
    color: rgba(200, 230, 255, 0.65);
    font-weight: 300;
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 60px;
}

/* -------- Кнопка-атом -------- */
.play-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.play-btn {
    position: relative;
    width: 220px; height: 220px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.play-btn:hover { transform: scale(1.07); }
.play-btn:active { transform: scale(0.97); }
.play-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.play-btn .orbit {
    transform-origin: 110px 110px;
    animation: rotateOrbit 12s linear infinite;
}
.play-btn .orbit.o2 { animation-duration: 16s; animation-direction: reverse; }
.play-btn .orbit.o3 { animation-duration: 20s; }
.play-btn:hover .orbit { animation-duration: 5s; }
.play-btn:hover .orbit.o2 { animation-duration: 7s; }
.play-btn:hover .orbit.o3 { animation-duration: 9s; }
@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.play-btn .core {
    animation: corePulse 2.4s ease-in-out infinite;
    transform-origin: 110px 110px;
}
@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.85; }
}
.play-btn .ring { animation: ringPulse 3s ease-in-out infinite; }
@keyframes ringPulse {
    0%   { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(1.6);  opacity: 0; }
}
.play-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 8px;
    color: #4dffcc;
    text-shadow: 0 0 20px rgba(77, 255, 204, 0.6);
    transition: all 0.3s ease;
}
.play-btn:hover + .play-label {
    color: #fff;
    text-shadow: 0 0 30px rgba(77, 255, 204, 0.9);
}
.play-hint {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(140, 200, 230, 0.4);
    text-transform: uppercase;
}

/* -------- Footer -------- */
#landing footer {
    padding: 0 40px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.feat-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 0 0 26px;
    font-size: 12px;
    color: rgba(140, 200, 230, 0.4);
    letter-spacing: 1px;
    flex-wrap: wrap;
}
.feat-strip .feat { display: flex; align-items: center; gap: 10px; }
.feat-strip .feat b { color: rgba(180, 235, 255, 0.85); font-weight: 500; }
.feat-strip .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4dffcc;
    box-shadow: 0 0 10px #4dffcc;
}
.site-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(120, 220, 255, 0.08);
    flex-wrap: wrap;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    background: rgba(8, 40, 50, 0.5);
    border: 1px solid rgba(120, 220, 255, 0.25);
    border-radius: 24px;
    color: #aef0ff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-btn:hover {
    border-color: #4dffcc;
    color: #fff;
    box-shadow: 0 0 22px rgba(77, 255, 204, 0.3);
    transform: translateY(-1px);
}
.contact-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.socials { display: flex; align-items: center; gap: 10px; }
.social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: rgba(200, 235, 255, 0.75);
    border: 1px solid rgba(120, 220, 255, 0.2);
    background: rgba(8, 40, 50, 0.4);
    transition: all 0.3s ease;
}
.social-btn:hover { color: #fff; transform: translateY(-2px); }
.social-btn.tg:hover { border-color: #4db8ff; box-shadow: 0 0 18px rgba(77, 184, 255, 0.55); }
.social-btn.vk:hover { border-color: #4d88ff; box-shadow: 0 0 18px rgba(77, 136, 255, 0.55); }
.social-btn.dc:hover { border-color: #a78bfa; box-shadow: 0 0 18px rgba(167, 139, 250, 0.55); }
.social-btn.yt:hover { border-color: #ff5555; box-shadow: 0 0 18px rgba(255, 85, 85, 0.55); }
.copyright {
    font-size: 11px;
    color: rgba(140, 200, 230, 0.4);
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

/* -------- Адаптив -------- */
@media (max-height: 900px) {
    .hero-eyebrow { margin-bottom: 16px; }
    .hero-title { margin-bottom: 16px; }
    .hero-sub { margin-bottom: 40px; }
    .play-btn { width: 190px; height: 190px; }
    .logo-img { height: 170px; }
}
@media (max-height: 780px) {
    #landing header { padding: 0 30px; }
    .hero-eyebrow { font-size: 10px; letter-spacing: 6px; margin-bottom: 12px; }
    .hero-title { font-size: clamp(18px, 3.4vw, 40px); margin-bottom: 12px; }
    .hero-sub { font-size: 14px; margin-bottom: 30px; max-width: 460px; }
    .play-btn { width: 160px; height: 160px; }
    .play-label { font-size: 14px; letter-spacing: 6px; }
    .play-hint { font-size: 10px; }
    .feat-strip { padding-bottom: 16px; gap: 40px; }
    .site-bar { padding: 12px 0 16px; }
    .logo-img { height: 145px; margin-top: -20px; }
}
@media (max-height: 640px) {
    #landing header { padding: 0 20px; margin-top: -6px; }
    .logo-img { height: 118px; margin-top: -14px; }
    .hero-eyebrow { display: none; }
    .hero-title { font-size: clamp(16px, 3vw, 28px); }
    .hero-sub { display: none; }
    .play-btn { width: 130px; height: 130px; }
    .play-label { font-size: 12px; letter-spacing: 5px; }
    .play-hint { display: none; }
    .feat-strip { display: none; }
}
@media (max-width: 900px) { .feat-strip { gap: 30px; } }
@media (max-width: 600px) {
    #landing header { padding: 0 20px; }
    #landing footer { padding: 0 20px; }
    .logo-img { height: 164px; margin-top: -20px; }
    .play-btn { width: 180px; height: 180px; }
    .play-label { font-size: 14px; letter-spacing: 6px; }
    .hero-sub { margin-bottom: 44px; }
    .site-bar { flex-direction: column; align-items: center; gap: 14px; padding: 16px 0 20px; }
    .feat-strip { gap: 20px; font-size: 11px; padding-bottom: 20px; }
    .copyright { order: 3; font-size: 10px; }
}
/* ============================================
   ФОНОВЫЕ ПЕРСОНАЖИ
   Стоят по бокам, позади контента.
   ============================================ */
#landing-characters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;                    /* ниже контента */
    overflow: hidden;
}

#char-grandpa,
#char-girl {
    position: absolute;
    bottom: 0;
    pointer-events: none;          /* не мешают кликам */
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 0 40px rgba(77, 255, 204, 0.35))
            drop-shadow(0 20px 50px rgba(0, 0, 0, 0.65));
    opacity: 0;
    transform-origin: bottom center;
}

/* ============================================
   ДЕДУШКА — слева, крупный, над футером
   ============================================ */
#char-grandpa {
    left: 2vw;
    height: 82vh;
    max-height: 860px;
    bottom: 65px;                  /* ← над футером */
    animation: charEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* ============================================
   ВНУЧКА — справа, меньше, над футером
   ============================================ */
#char-girl {
    right: 2vw;
    height: 56vh;
    max-height: 580px;
    bottom: 65px;                  /* ← над футером */
    animation: charEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

/* ---- Вход ---- */
@keyframes charEnter {
    0%   { opacity: 0; transform: translateY(70px) scale(0.94); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Лёгкое «дыхание» ---- */
@keyframes grandpaFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@keyframes girlFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ============================================
   КОНТЕНТ — ВЫШЕ ПЕРСОНАЖЕЙ
   (если у тебя другие классы — поправь селекторы)
   ============================================ */
.landing-content,
#landing-content,
.hero,
.landing-hero,
main {
    position: relative;
    z-index: 10;
}

/* Верхняя панель с ником/звуком */
.top-bar,
#top-bar,
.landing-top,
header {
    position: relative;
    z-index: 20;
}

/* ============================================
   АДАПТИВ
   ============================================ */

/* Большие мониторы — оставляем как есть */
@media (min-width: 1600px) {
    #char-grandpa { height: 86vh; }
    #char-girl   { height: 60vh; }
}

/* Средние — сдвигаем к краям, уменьшаем */
@media (max-width: 1280px) {
    #char-grandpa { left: 0; height: 74vh; }
    #char-girl   { right: 0; height: 52vh; }
}

/* Малые ноутбуки — сильно уменьшаем */
@media (max-width: 1000px) {
    #char-grandpa { height: 62vh; opacity: 0.9; }
    #char-girl   { height: 44vh; opacity: 0.9; }
}

/* Планшеты — прячем внучку, дедушка полупрозрачный */
@media (max-width: 820px) {
    #char-grandpa { height: 54vh; opacity: 0.75; }
    #char-girl   { display: none; }
}

/* Мобильные — прячем обоих */
@media (max-width: 600px) {
    #landing-characters { display: none; }
}
/* ============================================
   СЛОГАН
   ============================================ */
.landing-title {
    text-align: center;
    margin: 20px 0 40px;
}

.landing-slogan-main {
    font-family: 'Orbitron', sans-serif;
        font-size: clamp(20px, 3.85vw, 45px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(77, 255, 204, 0.6),
        0 0 40px rgba(77, 255, 204, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.6);
    margin: 0 0 18px;
    animation: sloganGlow 3.5s ease-in-out infinite;
}

@keyframes sloganGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(77, 255, 204, 0.6),
            0 0 40px rgba(77, 255, 204, 0.35),
            0 4px 12px rgba(0, 0, 0, 0.6);
    }
    50% {
        text-shadow:
            0 0 30px rgba(77, 255, 204, 0.9),
            0 0 60px rgba(77, 255, 204, 0.55),
            0 4px 12px rgba(0, 0, 0, 0.6);
    }
}

.landing-slogan-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(14px, 1.8vw, 22px);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    color: rgba(200, 235, 255, 0.85);
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-slogan-sub span {
    opacity: 0;
    transform: translateY(8px);
    animation: wordAppear 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    text-shadow: 0 0 12px rgba(136, 220, 255, 0.4);
}

.landing-slogan-sub span:nth-child(1) { animation-delay: 0.8s; color: #88ffcc; }
.landing-slogan-sub span:nth-child(2) { animation-delay: 1.0s; color: #88ddff; }
.landing-slogan-sub span:nth-child(3) { animation-delay: 1.2s; color: #cc88ff; }

@keyframes wordAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильный */
@media (max-width: 600px) {
    .landing-slogan-main { letter-spacing: 1px; }
    .landing-slogan-sub { letter-spacing: 1.5px; gap: 6px; }
}