/* ==========================================================================
   Carmentis Faucet — blockchain theme
   ========================================================================== */

:root {
    --green: #06b57b;
    --green-bright: #2ff2a8;
    --green-soft: rgba(6, 181, 123, 0.14);
    --green-line: rgba(6, 181, 123, 0.35);
    --navy: #0a043c;
    --bg: #050a18;
    --bg-2: #08122a;
    --surface: rgba(13, 27, 42, 0.62);
    --surface-strong: rgba(13, 27, 42, 0.9);
    --border: rgba(148, 255, 214, 0.10);
    --border-strong: rgba(148, 255, 214, 0.22);
    --text: #e8fff6;
    --text-dim: #8fa8a0;
    --text-faint: #58706a;
    --amber: #ffb547;
    --red: #ff5d73;
    --radius: 18px;
    --radius-sm: 10px;
    --mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

/* components setting `display` must still honour the hidden attribute */
[hidden] { display: none !important; }

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

body {
    min-height: 100vh;
    font-family: var(--sans);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(6, 181, 123, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(10, 4, 60, 0.9), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* subtle grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 255, 214, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 255, 214, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    z-index: 0;
}

#network-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}

.mono { font-family: var(--mono); }

.page {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px 48px;
}

/* ---------- top bar ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.brand img { filter: drop-shadow(0 0 12px rgba(6, 181, 123, 0.6)); }
.brand strong { color: var(--green-bright); font-weight: 700; }

.network-badge {
    padding: 3px 9px;
    border: 1px solid var(--green-line);
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-bright);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.explorer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s, border-color .2s;
}
.explorer-link:hover { color: var(--green-bright); border-color: var(--green-line); }

.node-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    color: var(--text-dim);
}
.node-status[data-state="ok"] .pulse-dot { background: var(--green-bright); }
.node-status[data-state="error"] .pulse-dot { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 93, 115, 0.6); }
.node-status[data-state="loading"] .pulse-dot { background: var(--amber); }

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 0 rgba(47, 242, 168, 0.6);
    animation: pulse 1.8s infinite;
    flex: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 242, 168, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(47, 242, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 242, 168, 0); }
}

/* ---------- hero ---------- */
.hero { padding: 12px 0 36px; max-width: 820px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--green-bright);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow-line { width: 28px; height: 1px; background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); }

h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, var(--green-bright), var(--green) 45%, #7cf5d0 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.lead {
    margin: 0 0 30px;
    max-width: 640px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--text-dim);
}
.lead strong { color: var(--text); font-weight: 600; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.stat::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--green-bright), transparent);
}
.stat-value { font-size: 1.25rem; font-weight: 600; color: var(--text); transition: color .3s; }
.stat-value.bump { animation: bump .6s ease; }
@keyframes bump { 40% { color: var(--green-bright); transform: translateY(-2px); } }
.stat-label { font-size: 0.74rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- layout ---------- */
.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: start;
}

.card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--green-bright) 80%, transparent 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin 6s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.step-index {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--green-line);
    border-radius: 8px;
    color: var(--green-bright);
    background: var(--green-soft);
    font-size: 0.78rem;
}

/* ---------- form ---------- */
.field { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
label .hint { color: var(--text-faint); font-weight: 400; }

textarea, input[type="text"], input[type="number"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(3, 8, 20, 0.65);
    color: var(--text);
    font-size: 0.92rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 64px; max-height: 220px; line-height: 1.45; word-break: break-all; }
textarea::placeholder, input::placeholder { color: var(--text-faint); }
textarea:focus, input[type="text"]:focus, input[type="number"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(6, 181, 123, 0.16);
    background: rgba(3, 8, 20, 0.85);
}
.invalid { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(255, 93, 115, 0.12) !important; }

.amount-input { position: relative; }
.amount-input input { padding-right: 70px; font-size: 1.15rem; font-weight: 600; }
.amount-input .unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-bright);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}
input[type="number"]::-webkit-inner-spin-button { opacity: 0.3; }

input[type="range"] {
    width: 100%;
    margin: 14px 0 10px;
    accent-color: var(--green);
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--green) var(--fill, 0%), rgba(148, 255, 214, 0.12) var(--fill, 0%));
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 5px rgba(47, 242, 168, 0.18), 0 0 18px rgba(47, 242, 168, 0.7);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border: none;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 5px rgba(47, 242, 168, 0.18), 0 0 18px rgba(47, 242, 168, 0.7);
    cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all .2s;
}
.chip:hover, .chip.active { color: var(--bg); background: var(--green-bright); border-color: var(--green-bright); }

.allowance { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.allowance-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(148, 255, 214, 0.1); overflow: hidden; }
.allowance-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
    box-shadow: 0 0 10px var(--green-bright);
    transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.allowance-text { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.allowance[data-state="exhausted"] .allowance-bar span { background: var(--red); box-shadow: none; }
.allowance[data-state="exhausted"] .allowance-text { color: var(--red); }

.captcha { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.captcha-image {
    width: 180px;
    height: 56px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0d1b2a;
}
.captcha-image svg { display: block; width: 100%; height: 100%; }
.captcha-image.loading { background: linear-gradient(90deg, #0d1b2a, #13283c, #0d1b2a); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.captcha input { text-transform: none; letter-spacing: 0.2em; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .2s;
}
.icon-btn:hover { color: var(--green-bright); border-color: var(--green); transform: rotate(-30deg); }

.form-error {
    margin: -4px 0 16px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 93, 115, 0.4);
    border-radius: var(--radius-sm);
    background: rgba(255, 93, 115, 0.08);
    color: #ffb3bf;
    font-size: 0.86rem;
    animation: slide-in .25s ease;
}

.cta {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-bright) 100%);
    color: #02150e;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(6, 181, 123, 0.8);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(47, 242, 168, 0.9); }
.cta:disabled { cursor: progress; filter: saturate(.6) brightness(.8); transform: none; }
.cta-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(2, 21, 14, 0.3);
    border-top-color: #02150e;
    border-radius: 50%;
    animation: rotate .7s linear infinite;
}
.cta.loading .cta-spinner { display: inline-block; }
@keyframes rotate { to { transform: rotate(360deg); } }

.fine-print { margin: 12px 0 0; text-align: center; font-size: 0.78rem; color: var(--text-faint); }

/* ---------- tracker ---------- */
.tracker { animation: slide-in .35s ease; }
.tracker-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.tracker-amount { font-size: 2rem; font-weight: 700; color: var(--green-bright); text-shadow: 0 0 24px rgba(47, 242, 168, 0.4); }
.tracker-key { font-size: 0.78rem; color: var(--text-dim); word-break: break-all; }

.pipeline { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.pipeline li {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 0 0 22px 0;
    color: var(--text-faint);
    transition: color .3s;
}
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li::before {
    content: '';
    position: absolute;
    left: 10px; top: 24px; bottom: 2px;
    width: 2px;
    background: rgba(148, 255, 214, 0.1);
}
.pipeline li:last-child::before { display: none; }
.pipeline li.done::before { background: linear-gradient(180deg, var(--green-bright), var(--green)); }
.pipeline .node {
    flex: none;
    width: 22px; height: 22px;
    border: 2px solid rgba(148, 255, 214, 0.2);
    border-radius: 6px;
    transform: rotate(45deg) scale(.8);
    background: var(--bg);
    transition: all .3s;
}
.pipeline strong { display: block; font-size: 0.92rem; }
.pipeline small { font-size: 0.78rem; }
.pipeline li.done, .pipeline li.active { color: var(--text); }
.pipeline li.done .node { border-color: var(--green-bright); background: var(--green-bright); box-shadow: 0 0 14px var(--green-bright); }
.pipeline li.active .node { border-color: var(--green-bright); animation: node-pulse 1.2s ease-in-out infinite; }
.pipeline li.failed { color: var(--red); }
.pipeline li.failed .node { border-color: var(--red); background: var(--red); box-shadow: 0 0 14px var(--red); }
@keyframes node-pulse { 50% { box-shadow: 0 0 0 6px rgba(47, 242, 168, 0.2); background: rgba(47, 242, 168, 0.35); } }

.tracker-detail {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(3, 8, 20, 0.5);
    font-size: 0.85rem;
    color: var(--text-dim);
    word-break: break-all;
}
.tracker-detail:empty { display: none; }
.tracker-detail a { color: var(--green-bright); }
.tracker-detail.success { border-color: var(--green-line); color: var(--text); }
.tracker-detail.error { border-color: rgba(255, 93, 115, 0.4); color: #ffb3bf; }

.timeout-bar { height: 3px; margin-bottom: 18px; border-radius: 3px; background: rgba(148, 255, 214, 0.08); overflow: hidden; }
.timeout-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber)); transition: width 1s linear; }

.ghost-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.ghost-btn:hover { border-color: var(--green); color: var(--green-bright); }

/* ---------- live chain ---------- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid var(--green-line);
    border-radius: 999px;
    color: var(--green-bright);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
}
.activity-sub { margin: -8px 0 20px; font-size: 0.82rem; line-height: 1.5; color: var(--text-faint); }

.chain {
    list-style: none;
    margin: 0;
    padding: 0 4px 0 0;
    max-height: 640px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 255, 214, 0.2) transparent;
}

.chain-empty { padding: 30px 0; text-align: center; color: var(--text-faint); font-size: 0.88rem; }

.block {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 104px;
    gap: 14px;
    align-items: center;
    padding: 0 0 18px;
}
.block.enter { animation: block-in .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes block-in {
    from { opacity: 0; transform: translateY(-16px) scale(.97); }
    to { opacity: 1; transform: none; }
}

/* the chain link between blocks */
.block::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--green-line) 0 4px, transparent 4px 8px);
}
.block:last-child::before { display: none; }

.cube {
    position: relative;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--green-line);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(6, 181, 123, 0.22), rgba(6, 181, 123, 0.04));
    color: var(--green-bright);
}
.cube svg { width: 22px; height: 22px; }
.block[data-status="queued"] .cube,
.block[data-status="published"] .cube { border-color: rgba(255, 181, 71, 0.45); color: var(--amber); background: linear-gradient(145deg, rgba(255, 181, 71, 0.2), rgba(255, 181, 71, 0.03)); }
.block[data-status="published"] .cube svg { animation: rotate 2.4s linear infinite; }
.block[data-status="failed"] .cube { border-color: rgba(255, 93, 115, 0.45); color: var(--red); background: linear-gradient(145deg, rgba(255, 93, 115, 0.18), rgba(255, 93, 115, 0.03)); }
.block[data-status="confirmed"] .cube { box-shadow: 0 0 18px -4px var(--green-bright); }

.block-body {
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(3, 8, 20, 0.45);
    transition: border-color .3s, background .3s;
}
.block:hover .block-body { border-color: var(--border-strong); background: rgba(3, 8, 20, 0.7); }
.block-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.block-amount { font-family: var(--mono); font-weight: 700; color: var(--text); }
.block-time { font-size: 0.74rem; color: var(--text-faint); white-space: nowrap; }
.block-key, .block-hash {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--text-dim);
}
.block-hash { color: var(--text-faint); }
.block-hash a { color: var(--green); text-decoration: none; }
.block-hash a:hover { text-decoration: underline; }
.block-error { margin-top: 4px; font-size: 0.74rem; color: #ffb3bf; }

.block > .badge { justify-self: end; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-confirmed { color: var(--green-bright); background: var(--green-soft); border: 1px solid var(--green-line); }
.badge-queued, .badge-published {
    color: var(--amber);
    border: 1px solid rgba(255, 181, 71, 0.35);
    background: linear-gradient(90deg, rgba(255, 181, 71, 0.08), rgba(255, 181, 71, 0.2), rgba(255, 181, 71, 0.08));
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}
.badge-failed { color: var(--red); background: rgba(255, 93, 115, 0.1); border: 1px solid rgba(255, 93, 115, 0.35); }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-faint);
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--green-bright); }
.footer-issuer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .page { padding: 16px 16px 32px; }
    .card { padding: 20px; }
    .captcha { grid-template-columns: 1fr auto; }
    .captcha input { grid-column: 1 / -1; }
    .captcha-image { width: 100%; }
    .node-status-label { display: none; }
    .block { grid-template-columns: 36px 1fr; }
    .block > .badge { grid-column: 2; justify-self: start; margin-top: -6px; }
    .cube { width: 36px; height: 36px; }
    .block::before { left: 17px; top: 36px; }
}

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