:root {
    --ink: #1c2430;
    --muted: #5c6b7a;
    --paper: #f6f3ee;
    --card: #ffffff;
    --green: #1f9d62;
    --coral: #ff7a59;
    --sun: #ffd166;
    --line: #eadfd2;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: "Nunito", system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(255, 209, 102, 0.5), transparent 55%),
        radial-gradient(700px 380px at -10% 0%, rgba(31, 157, 98, 0.18), transparent 50%),
        var(--paper);
    min-height: 100vh;
}

a { color: var(--green); font-weight: 800; }

.topbar, .footer, .cookie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.92);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--coral);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a { color: var(--ink); text-decoration: none; }

.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.approx {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.7;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(31, 157, 98, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.banner {
    margin: 12px 28px 0;
    background: #fff7ef;
    border: 1px solid #ffd7c8;
    color: #8a4632;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.lobby {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    padding: 16px 28px 28px;
}

.stage, .panel, .card, .sheet {
    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(28, 36, 48, 0.06);
}

.stage { padding: 12px; display: grid; gap: 12px; }

.well {
    min-height: 180px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f3fbf6);
    border: 1px dashed #cfe8da;
    display: grid;
    place-items: center;
    color: var(--green);
    text-align: center;
    padding: 16px;
}

.well strong { display: block; color: var(--ink); margin-top: 6px; }
.well span { color: var(--muted); font-size: 0.88rem; }

.panel { padding: 18px; }

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filters label { font-weight: 800; font-size: 0.85rem; }
.filters select { width: auto; min-width: 150px; }

select, input {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
    background: #fff;
    color: var(--ink);
}

.pill {
    background: #fff4d6;
    color: #8a5a00;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.welcome h1 { margin: 0 0 8px; font-size: 2.4rem; letter-spacing: -0.03em; }
.welcome p, .sections p, .policy p { color: var(--muted); line-height: 1.55; }
.sections { padding: 8px 28px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sections article, .policy { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 16px 40px rgba(28, 36, 48, 0.06); }
.sections h2, .policy h2 { margin-top: 0; }
.policy { max-width: 760px; margin: 28px auto; }
.policy h1 { margin-top: 0; }
.disambiguation { font-size: 0.92rem; }

.chat {
    display: none;
    min-height: 240px;
    background: #fbfaf7;
    border-radius: 18px;
    padding: 14px;
}

.chat.show { display: block; }
.bubble { background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.bubble.system { background: #eef8f3; }

.note { color: var(--green); font-weight: 800; min-height: 1.2em; }
.host { color: var(--muted); font-size: 0.92rem; }

.page { max-width: 980px; margin: 0 auto; padding: 28px 20px 48px; }
.page h1 { text-align: center; font-size: 2.4rem; margin-bottom: 8px; }
.center { text-align: center; color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.plan { padding: 22px; text-align: center; }
.plan h2 { margin-bottom: 0; }
.price { font-size: 2rem; margin: 12px 0; }
.plan ul { list-style: none; padding: 0; color: var(--muted); line-height: 1.8; }
.toggle { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

.sheet { max-width: 460px; margin: 28px auto; padding: 28px; }
.sheet h1 { font-size: 1.6rem; text-align: center; }
.avatar {
    width: 72px; height: 72px; border-radius: 50%;
    margin: 0 auto 16px; display: grid; place-items: center;
    background: var(--green); color: #fff; font-size: 1.6rem;
}
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 6px; }
.fine { font-size: 0.92rem; color: var(--ink); line-height: 1.45; }
.success { display: none; background: #eef8f3; border-radius: 14px; padding: 12px; margin-top: 12px; }

.footer { border-top: 1px solid var(--line); margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.footer a { margin-right: 14px; }

.cookie {
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--line);
    display: none;
}
.cookie.show { display: flex; }

@media (max-width: 800px) {
    .lobby, .plans, .sections { grid-template-columns: 1fr; }
    .topbar, .footer, .cookie, .banner { padding-left: 14px; padding-right: 14px; }
    .lobby { padding: 12px; }
    .nav a.quiet { display: none; }
}
