:root {
    --night: #120f33;
    --dusk: #2a1a5e;
    --card: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .16);
    --text: #f4f1ff;
    --muted: #bdb6e0;
    --moon: #fbeec1;
    --orange: #f58220;
    --orange-dark: #d96a0c;
    --red: #e0314b;
    --green: #4fd69c;
    --round: 18px;
}

* { box-sizing: border-box; }

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 70%, #40206f 100%) fixed;
    font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--moon); }

.sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-size: 100% 900px;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
        radial-gradient(1px 1px at 27% 42%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent),
        radial-gradient(1px 1px at 58% 31%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 71% 9%, #fff, transparent),
        radial-gradient(1px 1px at 8% 66%, #fff, transparent),
        radial-gradient(1px 1px at 34% 78%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 63% 62%, #fff, transparent),
        radial-gradient(1px 1px at 89% 47%, #fff, transparent),
        radial-gradient(1px 1px at 93% 83%, #fff, transparent);
}

.moon {
    position: absolute;
    top: 40px;
    right: 7vw;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff8df, var(--moon) 60%, #e8d28e);
    box-shadow: 0 0 70px 18px rgba(251, 238, 193, .28);
}

.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 20px 36px;
}

.hero-small { padding-bottom: 20px; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--moon);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(3rem, 11vw, 6.2rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.02em;
}

.lead {
    max-width: 34rem;
    margin: 18px 0 0;
    font-size: 1.2rem;
    color: var(--muted);
}

.tally { margin: 22px 0 0; font-size: 1.05rem; }

.tally strong {
    color: var(--orange);
    font-size: 2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.ticker { margin: 4px 0 0; color: var(--muted); min-height: 1.6em; }
.ticker span { color: var(--moon); font-weight: 700; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 40px;
    align-items: start;
}

.card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--round);
    background: var(--card);
    backdrop-filter: blur(6px);
}

.card h2 { margin: 0; font-size: 1.7rem; font-weight: 800; }
.sub { margin: 2px 0 18px; color: var(--muted); }

label { display: block; margin-bottom: 6px; font-weight: 600; }

input[type=text], input[type=search] {
    display: block;
    width: 100%;
    padding: 13px 15px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: rgba(0, 0, 0, .28);
    font: inherit;
}

input:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid var(--moon);
    outline-offset: 2px;
}

.g-recaptcha { margin-bottom: 16px; min-height: 78px; }

.button {
    display: inline-block;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    color: #241100;
    background: var(--orange);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}

.button:hover { background: #ff9638; transform: translateY(-1px) rotate(-.6deg); }
.button:active { background: var(--orange-dark); transform: none; }
.button-wide { width: 100%; font-size: 1.1rem; }

.button-ghost {
    color: var(--text);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 600;
}

.button-ghost:hover { background: rgba(255, 255, 255, .1); }

.fine { margin: 16px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }

.notice { margin: 0 0 16px; padding: 12px 15px; border-radius: 12px; font-weight: 600; }
.notice-bad { color: #ffd9de; background: rgba(224, 49, 75, .22); box-shadow: inset 0 0 0 1px var(--red); }
.notice-good { color: #d6ffee; background: rgba(79, 214, 156, .18); box-shadow: inset 0 0 0 1px var(--green); }

.sticker { display: block; width: min(210px, 60%); margin: 0 auto 18px; transform: rotate(-5deg); transition: transform .2s ease; }
.sticker:hover { transform: rotate(3deg) scale(1.04); }
.sticker img { display: block; width: 100%; height: auto; }

.charges { margin: 0 0 8px; padding: 0; list-style: none; color: var(--muted); }
.charges li::before { content: "\2717"; margin-right: 8px; color: var(--red); font-weight: 900; }

.stamp {
    position: absolute;
    right: 22px;
    bottom: 74px;
    margin: 0;
    padding: 2px 12px;
    border: 3px solid var(--red);
    border-radius: 8px;
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-11deg);
    opacity: .9;
    pointer-events: none;
}

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

.gauge {
    position: relative;
    height: 16px;
    margin-top: 18px;
    border-radius: 99px;
    background: rgba(0, 0, 0, .3);
    overflow: hidden;
}

.gauge-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--moon) 55%, var(--orange) 70%, var(--red));
    transition: width 1.3s cubic-bezier(.2, .7, .2, 1);
}

.gauge-live .gauge-fill { transition: width .07s linear; }

.button:disabled { opacity: .85; cursor: default; transform: none; }

.mic-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.gauge-limit { position: absolute; top: 0; bottom: 0; left: 60%; width: 2px; background: #fff; }

.reading { margin: 10px 0 0; color: var(--muted); font-weight: 600; }

.foot { padding: 0 20px 30px; text-align: center; font-size: .8rem; }
.foot a { color: var(--muted); }

.presentation {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background: var(--night);
    cursor: pointer;
    animation: rainbow 6s linear infinite;
}

.presentation[hidden] { display: none; }
.presentation img { width: 100%; max-width: 1400px; height: auto; }
.presentation p { color: #fff; opacity: .7; }

@keyframes rainbow {
    0% { background: #1a1050; }
    33% { background: #5a1460; }
    66% { background: #0f4a6b; }
    100% { background: #1a1050; }
}

.search { display: block; max-width: 26rem; margin-top: 22px; }
.search span { display: block; margin-bottom: 6px; font-weight: 600; }
.search input { margin: 0; }

.names {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 20px 48px;
}

.name {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--text);
    background: var(--card);
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
}

.name:hover { border-color: var(--moon); }
.name.is-on { color: #241100; background: var(--orange); border-color: var(--orange); font-weight: 700; }
.name[hidden] { display: none; }

@media (max-width: 760px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding-top: 56px; }
    .moon { top: -52px; right: -34px; width: 110px; height: 110px; }
    .card { padding: 22px; }
    .stamp { right: 14px; bottom: 70px; font-size: 1.2rem; }
}

@media (max-width: 400px) {
    .g-recaptcha { transform: scale(.88); transform-origin: left top; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
