:root {
    --bg: #0b0f14;
    --card: #111827;
    --muted: #9aa4b2;
    --text: #e5e7eb;
    --primary: #3b82f6;
    --primary-600: #2563eb;
    --error: #ef4444;
    --ring: 0 0 0 6px rgba(59, 130, 246, .15);
    --radius: 18px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .02) inset;
}

* {
    box-sizing: border-box;
    text-autospace: no-autospace;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: radial-gradient(1200px 800px at 80% -10%, rgba(59, 130, 246, .12), transparent 40%),
        radial-gradient(900px 600px at -10% 110%, rgba(99, 102, 241, .12), transparent 40%),
        var(--bg);
    color: var(--text);
    font: 15px/1.3 system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    display: grid;
    place-items: center;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: saturate(140%) blur(8px);
    padding: 28px;
    width: min(720px, 94%);
}

@media screen and (max-width: 420px) {
    .card {
        background: transparent;
        border: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 14px;
    }
}

h1 {
    font-size: 28px;
    margin: 0
}

p {
    color: var(--muted);
    margin: 8px 0;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

.loading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: var(--text);
    position: relative;
    padding-left: 4px
}

.notice-item input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all .25s ease;
    outline: none;
    background: rgba(255, 255, 255, .03);
}

.notice-item input[type=checkbox]:hover {
    border-color: var(--primary)
}

.notice-item input[type=checkbox]:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .2)
}

.notice-item input[type=checkbox]:checked::after {
    content: "✔";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    font-size: 14px;
}

.notice-item span {
    user-select: none
}

.btn {
    appearance: none;
    font-size: 16px;
    border: 0;
    cursor: pointer;
    user-select: none;
    padding: 10px 14px;
    margin-left: auto;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.1)
}

.btn:active {
    transform: translateY(0)
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(.2)
}

.muted {
    color: var(--muted);
    font-size: 13px
}

.status {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 12px 0 0;
    border: 1px solid rgba(255, 255, 255, .08);
    line-height: 1.6;
    background: rgba(255, 255, 255, .03);
}

.status.error {
    border-color: rgba(239, 68, 68, .35);
    background: rgba(239, 68, 68, .08);
}

.spinner {
    width: 16px;
    height: 16px;
    flex-grow: 0;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    margin: 18px 0
}

.notice-list {
    margin: 12px 0 0;
    padding-left: 20px
}

.notice-list li {
    margin: 8px 0;
    color: var(--text)
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #14b8a6, #06b6d4)
}

code.token {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px;
}

.bottombar {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    justify-content: space-between;
    align-items: center;
}

.turnstile {
    margin: 0 auto;
}

.turnstile-center {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

a.mute-link {
    color: var(--muted);
    text-decoration: none
}

a.mute-link:hover {
    text-decoration: underline
}
