:root {
    --bg1: #020611;
    --bg2: #0a1a2f;
    --text: #eaf2ff;
    --muted: #8fa3c7;
    --blue: #6ec1ff;
    --glass: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
    overflow-x: hidden;
}

#stars,
#network {
    position: fixed;
    inset: 0;
    z-index: -2;
}

#network {
    z-index: -1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.brandline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

#krayCanvas {
    width: 360px;
    height: 120px;
    display: block;
}

.brand-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.brand-static {
    font-size: 3.6rem;
    letter-spacing: 4px;
    color: var(--blue);
    white-space: nowrap;
}

.subtitle {
    margin-top: 8px;
    font-size: 1.2rem;
    color: var(--blue);
}

.hint {
    margin-top: 28px;
    opacity: .65;
}

.section {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.h2 {
    margin: 0 0 12px;
    font-size: 2.2rem;
}

.p {
    margin: 0;
    color: var(--muted);
    max-width: 900px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.cards {
    flex-direction: row;
    gap: 28px;
    flex-wrap: wrap;
}

.card {
    width: 300px;
    padding: 28px;
    border-radius: 18px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    text-align: left;
    box-shadow: 0 0 30px rgba(110, 193, 255, 0.10);
}

.card h3 {
    margin: 0 0 12px;
}

.card p {
    margin: 8px 0;
    color: var(--muted);
}

.card-kray {
    border: 1px solid rgba(110, 193, 255, 0.55);
}

.card-cry {
    border: 1px dashed rgba(110, 193, 255, 0.30);
}

.bottom {
    min-height: 100vh;
}

.redirect {
    width: min(520px, 92vw);
    padding: 38px;
    border-radius: 24px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 45px rgba(110, 193, 255, 0.18), inset 0 0 0 1px rgba(110, 193, 255, 0.35);
}

.redirect-title {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.redirect-domain {
    color: var(--blue);
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 14px auto 10px;
}

svg {
    transform: rotate(-90deg);
}

circle {
    fill: none;
    stroke-width: 8;
}

circle:first-child {
    stroke: rgba(255, 255, 255, 0.14);
}

#progress-circle {
    stroke: var(--blue);
    stroke-dasharray: 389;
    stroke-dashoffset: 389;
}

.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue);
}

.redirect-hint {
    margin-top: 10px;
    color: var(--muted);
}

@media (max-width: 700px) {
    .brandline {
        flex-direction: column;
        gap: 10px;
    }
    .brand-right {
        align-items: center;
        text-align: center;
    }
    .brand-static {
        font-size: 3.0rem;
    }
}

html {
    scroll-behavior: auto;
}

.legal-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg1), var(--bg2));
    color: var(--text);
}

.legal-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.legal-card {
    width: 100%;
    max-width: 920px;
    padding: 48px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 50px rgba(110, 193, 255, 0.15), inset 0 0 0 1px rgba(110, 193, 255, 0.35);
}

.legal-card h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 36px;
    font-size: 2.4rem;
    letter-spacing: 1px;
    color: var(--blue);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: var(--blue);
}

.legal-section p {
    margin: 10px 0;
    line-height: 1.7;
    color: var(--muted);
}

.legal-section .highlight {
    margin-top: 16px;
    padding: 14px 18px;
    border-left: 3px solid var(--blue);
    background: rgba(110, 193, 255, 0.08);
    color: var(--text);
}

.legal-back {
    text-align: center;
    margin-top: 40px;
}

.legal-back a {
    color: var(--blue);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.9;
}

.legal-back a:hover {
    text-decoration: underline;
}

.footer {
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer a {
    color: var(--blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .legal-card {
        padding: 28px;
    }
    .legal-card h1 {
        font-size: 2rem;
    }
}

#counterWrapper {
    cursor: pointer;
    user-select: none;
}

#soundToggle {
    position: fixed;
    top: 22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 20px rgba(110, 193, 255, 0.25), inset 0 0 0 1px rgba(110, 193, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--blue);
    cursor: pointer;
    z-index: 20;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#soundToggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(110, 193, 255, 0.45), inset 0 0 0 1px rgba(110, 193, 255, 0.6);
}