/* ========== ОРИГИНАЛЬНЫЕ СТИЛИ ========== */

body {
    margin: 0;
    font-family: 'Tektur', serif;
    background: linear-gradient(to bottom, #000428, #004e92);
    color: #fff;
    overflow-x: hidden;
}
header {
    text-align: center;
    padding: 20px;
}
.header_main {
    display: flex;
    justify-content: space-between;
}
.header_links {
    display: flex;
    align-items: center;
}
.header_links button {
    cursor: pointer;
    padding: 12px 32px;
    border-radius: 18px;
    border-width: 0px;
    font-family: 'Tektur', serif;
    font-weight: 600;
    color: #ffffff;
    background-color: #001a41;
}
.header_logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header_logo img {
    width: 70px; height: 70px;
    border-radius: 50%;
}
header h1 {
    cursor: pointer;
    font-weight: 400;
    color: #b5dcff;
    font-size: 24px;
    margin: 0;
    animation: glow 1s infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 10px #ff00dd, 0 0 20px #00ffff; }
    to   { text-shadow: 0 0 20px #00ffff, 0 0 40px #f700ff; }
}
@keyframes glowing {
    from { background-color: #080055; }
    to   { background-color: #0b003b; }
}
section {
    padding: 20px 20px;
    text-align: center;
}
.stena img { height: 230px; width: 230px; }
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
#comments { margin-top: 20px; }
.comment { padding: 10px; margin-bottom: 10px; border-left: 5px solid #28a745; }
.comment em { color: grey; margin-left: 8px; }
.comments_container { display: flex; flex-direction: column; }
.comments_container form { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.comments_container input, textarea {
    width: 350px;
    background-color: #000428;
    color: white;
    border-radius: 12px;
    border-width: 0px;
    padding: 12px;
    font-family: 'Tektur';
}
.comments_container button {
    cursor: pointer;
    padding: 12px 56px;
    border-radius: 18px;
    border-width: 0px;
    font-family: 'Tektur', serif;
    font-weight: 600;
    color: #ffffff;
    background-color: #001a41;
}
.sofa {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    width: 220px; height: 240px;
    overflow: hidden;
}
.sofa h3 { margin: 8px; }
.sofa button {
    padding: 12px 48px;
    border-radius: 18px;
    border-width: 0px;
    font-family: 'Tektur', serif;
    font-weight: 600;
    color: #ffffff;
    background-color: #003f9c;
    animation: glowing 1s infinite alternate;
}
.sofa img { width: 160px; height: 160px; }
.memes { cursor: pointer; width: 300px; height: 300px; }
.hidden { display: none; }
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    margin-top: 50px;
}

/* Звёздный фон */
body { position: relative; overflow-x: hidden; z-index: 1; }
.stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #001433 0%, #000000 100%);
}
.star {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}
header, section, footer { position: relative; z-index: 2; }
@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}


/* ========== НОВЫЕ СТИЛИ — ГЛАВНАЯ СТРАНИЦА ========== */

/* HERO */
#hero {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
    gap: 20px;
}
.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #b5dcff;
    max-width: 700px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
    text-shadow: 0 0 20px rgba(0,180,255,0.4);
}
.btn-wisdom {
    cursor: pointer;
    padding: 12px 32px;
    border-radius: 18px;
    border: none;
    font-family: 'Tektur', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background-color: #001a41;
    transition: background-color 0.2s, transform 0.1s;
}
.btn-wisdom:hover { background-color: #003080; transform: scale(1.04); }


/* ── НАВ КАРТОЧКИ — 1 в строке ── */
#nav-cards {
    padding: 20px 40px 30px;
}
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.nav-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 28px;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    cursor: pointer;
}
.nav-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255,255,255,0.12);
    border-color: rgba(100,180,255,0.4);
}
.card-icon { font-size: 2.8rem; flex-shrink: 0; }
.card-body { flex: 1; text-align: left; }
.card-body h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #b5dcff;
}
.card-body p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(200,225,255,0.7);
    line-height: 1.45;
}
.card-arrow {
    font-size: 1.6rem;
    color: rgba(180,220,255,0.4);
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}
.nav-card:hover .card-arrow { transform: translateX(6px); color: #b5dcff; }

.card-software { border-left: 4px solid #0066ff; }
.card-stena    { border-left: 4px solid #28a745; }
.card-oblako   { border-left: 4px solid #00ccff; }
.card-secret   { border-left: 4px solid #aa00ff; }


/* ── РАЗВЛЕЧЕНИЯ ── */
#fun-stuff { padding: 20px 40px 40px; }
.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #b5dcff;
    margin-bottom: 24px;
}
.fun-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.fun-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.fun-card h3 { margin: 0; font-size: 1.15rem; color: #b5dcff; }
.fun-card p  { margin: 0; font-size: 0.88rem; color: rgba(200,225,255,0.7); }

.fun-btn {
    cursor: pointer;
    padding: 11px 30px;
    border-radius: 14px;
    border: none;
    font-family: 'Tektur', serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
    background-color: #001a41;
    transition: background-color 0.2s, transform 0.1s;
}
.fun-btn:hover   { background-color: #003080; transform: scale(1.04); }
.fun-btn:disabled{ opacity: 0.5; cursor: default; transform: none; }

/* Диванометр */
.meter-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.meter-fill {
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: linear-gradient(90deg,#001a41,#0066cc);
    transition: width 0.65s cubic-bezier(.4,0,.2,1), background 0.4s;
}
.meter-label { font-size: 0.88rem; color: rgba(200,225,255,0.8); min-height: 1.2em; }

/* Беглянка — большая зона */
.escape-zone {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
}
.escape-btn {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.12s ease, top 0.12s ease;
    white-space: nowrap;
}
.escape-score { font-size: 0.82rem; color: rgba(200,225,255,0.6); margin: 0; }

/* Отмазки / гороскоп */
.excuse-box {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 16px;
    font-size: 0.9rem;
    color: #c8e1ff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.2s;
    width: 100%;
    box-sizing: border-box;
}

/* Счётчик кликов */
.click-counter {
    font-size: 3.5rem;
    font-weight: 900;
    color: #b5dcff;
    text-shadow: 0 0 24px rgba(0,150,255,0.6);
    transition: transform 0.1s;
    line-height: 1;
}
.click-rank { font-size: 0.88rem; color: rgba(200,225,255,0.7); min-height: 1.2em; }
.click-big-btn {
    padding: 16px 44px;
    font-size: 1.1rem;
    background-color: #003f9c;
    animation: glowing 1s infinite alternate;
}
.reset-btn { padding: 7px 20px; font-size: 0.78rem; background-color: rgba(255,255,255,0.08); }
.reset-btn:hover { background-color: rgba(255,255,255,0.15); }

/* Гороскоп */
.fun-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,0.35);
    color: #c8e1ff;
    font-family: 'Tektur', serif;
    font-size: 0.92rem;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
}
.fun-select option { background: #001433; }

/* Рулетка */
.spin-wheel-wrap {
    position: relative;
    display: inline-block;
}
.spin-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    color: #b5dcff;
    filter: drop-shadow(0 0 6px #00aaff);
    z-index: 2;
}
.spin-result {
    font-size: 1.05rem;
    font-weight: 700;
    color: #b5dcff;
    min-height: 1.5em;
    text-shadow: 0 0 12px rgba(0,180,255,0.5);
}


/* ── ВИРТУАЛЬНАЯ МАШИНА ── */
#vm-section {
    padding: 20px 40px 50px;
}
.vm-subtitle {
    margin: -6px 0 20px;
    font-size: 0.9rem;
    color: rgba(200,225,255,0.6);
}
.vm-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 560px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: #000d1f;
}
.vm-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,10,30,0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 14px;
    z-index: 2;
}
.vm-overlay:hover { background: rgba(0,20,60,0.85); }
.vm-launch-icon  { font-size: 3.5rem; }
.vm-launch-text  { font-size: 1.3rem; font-weight: 700; color: #b5dcff; }
.vm-launch-sub   { font-size: 0.85rem; color: rgba(180,210,255,0.55); }
.vm-close-btn    { display: block; margin: 14px auto 0; padding: 10px 28px; background: rgba(255,255,255,0.08); }
.vm-close-btn:hover { background: rgba(255,255,255,0.15); }