/* Accra Life. Mobile first. */

:root {
    --ink: #14201a;
    --ink-2: #3a4a41;
    --muted: #64736a;
    --line: #dce5dd;
    --bg: #eef2ec;
    --card: #ffffff;

    --green: #006b3f;
    --green-d: #004d2c;
    --green-l: #dcefe3;
    --gold: #fcb900;
    --gold-d: #7a5800;
    --gold-l: #fff3c9;
    --red: #ce1126;
    --red-l: #fde4e7;
    --blue: #1d6fa5;
    --orange: #e8731a;
    --pink: #c2255c;

    --radius: 16px;
    --shadow: 0 1px 0 rgba(20, 32, 26, .04), 0 10px 26px -14px rgba(20, 32, 26, .22);

    --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
    --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -.01em;
}

h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }

p { margin: 0 0 .7em; }
a { color: var(--green); }
img, svg { max-width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App shell ---------- */

.wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px calc(var(--nav-h) + 26px);
}

.stack > * + * { margin-top: 14px; }
.stack-sm > * + * { margin-top: 8px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: 1fr; }

@media (min-width: 760px) {
    .grid2 { grid-template-columns: 1fr 1fr; }
    .grid3 { grid-template-columns: repeat(3, 1fr); }
    .span2 { grid-column: span 2; }
}

/* ---------- HUD ---------- */

.hud {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 9px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.hud-inner { max-width: 980px; margin: 0 auto; }

.hud-top { display: flex; align-items: center; gap: 10px; }

.who { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; min-width: 0; flex: 1; }

.avatar {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
    font-size: 24px;
    background: var(--green-l);
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.avatar-lg { width: 72px; height: 72px; font-size: 42px; }
.avatar-sm { width: 34px; height: 34px; font-size: 20px; border-width: 1.5px; }

.who-text { min-width: 0; line-height: 1.15; }
.who-text strong { display: block; font-family: var(--font-display); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lvl { font-size: .78rem; color: var(--muted); font-weight: 700; }

.xp { height: 5px; background: var(--line); border-radius: 9px; margin-top: 4px; overflow: hidden; width: 110px; max-width: 100%; }
.xp > i { display: block; height: 100%; background: var(--gold); border-radius: 9px; transition: width .4s; }

.hud-right { display: flex; align-items: center; gap: 8px; }

.pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--gold-l);
    border: 1.5px solid var(--gold);
    color: #3a2a00;
    font-family: var(--font-display);
    font-weight: 750;
    font-size: .98rem;
    text-decoration: none;
    white-space: nowrap;
}

.bell {
    position: relative; width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%; background: #f2f5f1; text-decoration: none; font-size: 18px;
}

.badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center;
    background: var(--red); color: #fff;
    border-radius: 99px; font-size: 11px; font-weight: 800; line-height: 1;
}
.badge:empty, .badge[data-n="0"] { display: none; }

.vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }

.vital { display: flex; align-items: center; gap: 5px; min-width: 0; --c: var(--green); }
.vital[data-vital="health"] { --c: #d6293e; }
.vital[data-vital="energy"] { --c: #e0a100; }
.vital[data-vital="hunger"] { --c: var(--orange); }
.vital[data-vital="happiness"] { --c: var(--pink); }

.vi { font-size: 15px; flex: none; }
.vital .bar { flex: 1; height: 8px; background: #e6ece6; border-radius: 9px; overflow: hidden; }
.vital .bar > i { display: block; height: 100%; background: var(--c); border-radius: 9px; transition: width .4s; }
.vital b { font-size: .72rem; width: 22px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vital.low .bar > i { background: var(--red); }
.vital.low b { color: var(--red); }

@media (max-width: 420px) {
    .vital b { display: none; }
    .xp { width: 80px; }
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(6, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    min-height: var(--nav-h);
    text-decoration: none; color: var(--muted);
    font-size: .7rem; font-weight: 800;
}

.nav a .ni { font-size: 22px; line-height: 1; filter: grayscale(.55); }
.nav a.active { color: var(--green); }
.nav a.active .ni { filter: none; }
.nav a.active::before {
    content: ''; position: absolute; top: 0; left: 24%; right: 24%; height: 3px;
    background: var(--gold); border-radius: 0 0 4px 4px;
}
.nav .badge { top: 6px; right: calc(50% - 26px); }

@media (min-width: 900px) {
    body.has-nav { padding-left: 92px; }

    .nav {
        top: 0; right: auto; bottom: 0; width: 92px;
        display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
        border-top: 0; border-right: 1px solid var(--line);
        padding: 14px 6px;
    }
    .nav a { min-height: 66px; border-radius: 14px; }
    .nav a.active { background: var(--green-l); }
    .nav a.active::before { display: none; }
    .nav .badge { top: 8px; right: 14px; }
    .wrap { padding-bottom: 40px; }
}

/* ---------- Dumsor banner ---------- */

.banner {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: .93rem;
}
.banner-dumsor { background: #1c2230; color: #ffe9a8; }
.banner-dumsor span.ico { font-size: 20px; animation: flicker 3.6s infinite; }

@keyframes flicker {
    0%, 100% { opacity: 1; }
    42% { opacity: 1; }
    44% { opacity: .25; }
    46% { opacity: 1; }
    48% { opacity: .35; }
    52% { opacity: 1; }
}

.alert { padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: .93rem; }
.alert-error { background: var(--red-l); color: #8b0b1b; }
.alert-ok { background: var(--green-l); color: #04492a; }

/* ---------- Cards ---------- */

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.card-flush { padding: 0; overflow: hidden; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-head h2 { font-size: 1.15rem; }
.sec-sub { color: var(--muted); font-size: .88rem; margin: -6px 0 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 99px;
    background: #eef2ec; color: var(--ink-2);
    font-size: .78rem; font-weight: 800; white-space: nowrap;
}
.chip-gold { background: var(--gold-l); color: var(--gold-d); }
.chip-green { background: var(--green-l); color: var(--green-d); }
.chip-red { background: var(--red-l); color: #8b0b1b; }
.chip-dark { background: #1c2230; color: #ffe9a8; }

/* ---------- Scene ---------- */

.scene { --sky1: #7ec8f5; --sky2: #cfeafc; --far: rgba(20, 60, 40, .22); --near: #2b5a43; --win: #bcd7e6; --sea: #5aa7cf; --sand: #ecd9a4; --hill: #6fae7d; --hill2: #4f9163; --sun: #ffd34d; --ground: #3d6b52; }

.scene-art { position: relative; height: 150px; overflow: hidden; background: linear-gradient(var(--sky1), var(--sky2)); }
.scene-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scene--dawn { --sky1: #f8a66a; --sky2: #ffe2ac; --far: rgba(90, 50, 40, .25); --near: #3a5b46; --win: #ffd9a0; --sun: #fff3b0; }
.scene--morning { --sky1: #6ec1f2; --sky2: #cdeafc; }
.scene--afternoon { --sky1: #4aa8ea; --sky2: #b6e0f7; --sun: #fff1a0; }
.scene--evening { --sky1: #ee7c4c; --sky2: #fbc874; --far: rgba(80, 30, 40, .28); --near: #2f4a3b; --win: #ffd45a; --sun: #ffe08a; --sea: #d98d5f; }
.scene--night { --sky1: #17224f; --sky2: #3b4f8f; --far: rgba(10, 16, 40, .5); --near: #0f1d22; --win: #ffd45a; --sea: #1f3b66; --sand: #8d8466; --hill: #254733; --hill2: #1b3a2a; --sun: #f4f1d6; --ground: #14261d; }
.scene--late { --sky1: #0a1030; --sky2: #1b2a5c; --far: rgba(5, 8, 25, .55); --near: #0a1418; --win: #ffd45a; --sea: #142a4b; --sand: #6f6850; --hill: #1c3a2a; --hill2: #142c20; --sun: #f4f1d6; --ground: #0f1d16; }

.scene--dumsor .scene-art::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(8, 12, 28, .55);
    pointer-events: none;
}
.scene--dumsor { --win: #2b3340 !important; }
.scene--dumsor .lit { fill: #2b3340 !important; }

.win { fill: var(--win); }
.lit { fill: #ffd45a; }
.far { fill: var(--far); }
.near { fill: var(--near); }
.sea { fill: var(--sea); }
.sand { fill: var(--sand); }
.hill { fill: var(--hill); }
.hill2 { fill: var(--hill2); }
.ground { fill: var(--ground); }
.sun { fill: var(--sun); }

.scene-meta { padding: 14px 16px 16px; }
.scene-meta h1 { display: flex; align-items: center; gap: 9px; }
.scene-meta h1 .big { font-size: 1.9rem; }
.scene-meta .district { color: var(--muted); font-weight: 700; margin: 2px 0 9px; }

/* ---------- Tiles, buttons ---------- */

.tiles { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles.two { grid-template-columns: 1fr 1fr; } }

.tile {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
    padding: 12px; background: #fff;
    border: 1.5px solid var(--line); border-radius: 14px;
}
.tile.is-locked { background: #f7f9f6; }
.tile.is-locked .tile-emoji { filter: grayscale(1); opacity: .6; }

.tile-emoji {
    width: 48px; height: 48px; display: grid; place-items: center;
    font-size: 28px; background: var(--green-l); border-radius: 13px;
}
.tile-body { min-width: 0; }
.tile-body h3 { margin-bottom: 1px; }
.tile-body p { margin: 0 0 6px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.tile-note { font-size: .82rem; font-weight: 700; color: var(--red); margin: 6px 0 0; }

@media (max-width: 560px) {
    .tile { grid-template-columns: 48px 1fr; }
    .tile > .btn, .tile > form, .tile > .tile-actions { grid-column: 1 / -1; }
    .tile > .btn { width: 100%; }
}

.tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
    font: inherit; font-weight: 800; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 9px 16px;
    border: 0; border-radius: 12px;
    background: var(--green); color: #fff;
    cursor: pointer; text-decoration: none;
    transition: transform .08s, background .15s;
}
.btn:hover { background: var(--green-d); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.is-cooling, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: #2a1e00; }
.btn-gold:hover { background: #e5a800; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #f4f7f3; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #a50e1f; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .cd { font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */

label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 4px; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], textarea, select {
    width: 100%; font: inherit; color: inherit;
    padding: 12px 14px;
    background: #fff; border: 1.5px solid #cbd6cc; border-radius: 12px;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(252, 185, 0, .55); border-color: var(--gold); }
textarea { resize: vertical; min-height: 80px; }
.field { margin-bottom: 14px; }
.hint { color: var(--muted); font-size: .83rem; margin-top: 4px; }

.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick label {
    margin: 0; display: grid; place-items: center; aspect-ratio: 1;
    font-size: 26px; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer;
}
.avatar-pick input:checked + label { border-color: var(--green); background: var(--green-l); box-shadow: 0 0 0 3px rgba(0, 107, 63, .18); }
.avatar-pick input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Lists ---------- */

.rows > * { padding: 11px 0; border-top: 1px solid var(--line); }
.rows > *:first-child { border-top: 0; padding-top: 0; }
.rows > *:last-child { padding-bottom: 0; }

.person { display: flex; align-items: center; gap: 10px; }
.person .name { font-weight: 800; }
.person .sub { font-size: .8rem; color: var(--muted); }

.money-in { color: var(--green); font-weight: 800; }
.money-out { color: var(--red); font-weight: 800; }

.empty { text-align: center; color: var(--muted); padding: 18px 8px; font-size: .95rem; }

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tabs a {
    flex: none; padding: 8px 14px; border-radius: 99px;
    background: #fff; border: 1.5px solid var(--line);
    color: var(--ink-2); font-weight: 800; font-size: .9rem; text-decoration: none;
}
.tabs a.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Progress ---------- */

.meter { height: 8px; background: #e6ece6; border-radius: 9px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--green); border-radius: 9px; }

.goal { display: grid; grid-template-columns: 40px 1fr auto; gap: 11px; align-items: center; }
.goal .gi { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; background: var(--gold-l); border-radius: 12px; }
.goal.is-done .gi { background: var(--green-l); }
.goal h3 { font-size: .98rem; }
.goal p { margin: 0 0 5px; font-size: .84rem; color: var(--muted); }

/* ---------- Chat ---------- */

.chat { display: flex; flex-direction: column; height: 380px; }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 8px; display: flex; flex-direction: column; gap: 7px; overscroll-behavior: contain; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; font-size: .92rem; }

.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.msg .avatar { width: 30px; height: 30px; font-size: 17px; border-width: 1.5px; }
.msg .bubble { background: #f0f4ef; border-radius: 14px 14px 14px 4px; padding: 7px 11px; min-width: 0; }
.msg .who-line { font-size: .74rem; font-weight: 800; color: var(--muted); }
.msg .body { overflow-wrap: anywhere; font-size: .95rem; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--green); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.mine .who-line { color: rgba(255, 255, 255, .75); }

.chat-form { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }

.here-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Toasts ---------- */

.toasts {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
    z-index: 100; display: flex; flex-direction: column; gap: 8px;
    width: min(94vw, 520px); pointer-events: none;
}
@media (min-width: 900px) { .toasts { bottom: 24px; } }

.toast {
    pointer-events: auto;
    padding: 12px 15px; border-radius: 14px;
    background: #14201a; color: #fff;
    font-weight: 700; font-size: .93rem; line-height: 1.38;
    box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .55);
    border-left: 5px solid var(--gold);
    animation: toast-in .2s ease-out;
}
.toast.error { background: #5a0a14; border-left-color: #ff6b7c; }
.toast.ok { border-left-color: #59d88c; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }

@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Map ---------- */

#map { height: min(58vh, 480px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); z-index: 1; }

.pin {
    width: 34px; height: 34px; display: grid; place-items: center;
    background: #fff; border: 2.5px solid var(--green); border-radius: 50%;
    font-size: 18px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.pin.here { background: var(--gold); border-color: #2a1e00; transform: scale(1.2); }

.popup h3 { margin-bottom: 2px; }
.popup .btn { margin: 3px 3px 0 0; }

.loc-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; }
.loc-card.is-here { border-color: var(--gold); background: #fffbe9; }
.travel-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Landing and auth ---------- */

.site { min-height: 100vh; display: flex; flex-direction: column; }

.landing-top { display: flex; justify-content: space-between; align-items: center; max-width: 1060px; margin: 0 auto; padding: 14px 18px; width: 100%; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo .star { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--gold); border-radius: 9px; font-size: 16px; }

.hero { max-width: 1060px; margin: 0 auto; padding: 22px 18px 6px; width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 5.2rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; max-width: 12ch; }
.hero p.lead { font-size: 1.15rem; max-width: 36ch; color: var(--ink-2); margin: 16px 0 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }

.road { position: relative; height: 74px; margin-top: 18px; overflow: hidden; }
.road::before { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 10px; background: #26332b; }
.road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 52px); }
.trotro { position: absolute; bottom: 22px; font-size: 54px; line-height: 1; animation: drive 14s linear infinite; transform: scaleX(-1); }
@keyframes drive { from { left: -80px; } to { left: 100%; } }

.live { max-width: 1060px; margin: 14px auto 0; padding: 0 18px; width: 100%; }
.live-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
.live-box { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.live-box .big { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; }
.live-box .lbl { color: var(--muted); font-weight: 700; font-size: .88rem; }

.features { max-width: 1060px; margin: 26px auto 0; padding: 0 18px; width: 100%; }
.features h2 { font-size: 1.7rem; margin-bottom: 14px; max-width: 20ch; }
.feature-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.feature .fe { font-size: 30px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 4px 0 0; font-size: .95rem; }

.site-foot { margin-top: auto; padding: 30px 18px 22px; text-align: center; color: var(--muted); font-size: .85rem; }

.auth { max-width: 460px; margin: 4vh auto 0; padding: 0 16px 40px; width: 100%; }
.auth .card { padding: 22px; }
.auth h1 { margin-bottom: 4px; }

/* ---------- Admin ---------- */

table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t th { color: var(--muted); font-size: .8rem; }
.table-wrap { overflow-x: auto; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1.1; }

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

.scene--night .canopy, .scene--late .canopy { filter: brightness(.55); }
.scene--dumsor .canopy { filter: brightness(.5); }
