/* TodoQuests: the base look and every layout. The clean look is a calm, simple to-do list; game themes (themes.css)
   only change tokens, frames, fonts and art. Every color is a token; light and dark both ship. Built phone-first:
   44 px touch targets, no double-tap zoom, no sideways page drift, safe areas respected. */
:root {
  --bg: #f6f6f3; --panel: #ffffff; --sunk: #efefea; --fg: #1b1c1f; --mute: #6b6e76; --line: #e5e5df;
  --accent: #4f5bd5; --on-accent: #fff; --good: #2f9e66; --bad: #d64545; --gold: #e0a100; --xp: #4f5bd5; --xp-gain: #b4bcf5;
  --hp: #e03131; --hp-trail: #ffc9c9; --r-c: #9aa1ad; --r-u: #37b24d; --r-r: #3b82f6; --r-l: #f59f00;
  --p0: #f76707; --p1: #1c7ed6; --p2: #2f9e44; --p3: #ae3ec9;
  --radius: 14px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; --title: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05); --check: 26px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-scheme=light]) { --bg: #111214; --panel: #1a1b1e; --sunk: #232428; --fg: #ececee; --mute: #9a9ca4; --line: #2b2c31; --accent: #8b95ff; --on-accent: #0c0d10; --good: #4cc38a; --bad: #ff6b6b; --gold: #fcc419; --xp: #8b95ff; --xp-gain: #c5cbff; --hp-trail: #5c1e1e; --shadow: none; color-scheme: dark; } }
:root[data-scheme=dark] { --bg: #111214; --panel: #1a1b1e; --sunk: #232428; --fg: #ececee; --mute: #9a9ca4; --line: #2b2c31; --accent: #8b95ff; --on-accent: #0c0d10; --good: #4cc38a; --bad: #ff6b6b; --gold: #fcc419; --xp: #8b95ff; --xp-gain: #c5cbff; --hp-trail: #5c1e1e; --shadow: none; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: clip; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 var(--font); min-height: 100vh; min-height: 100dvh; overflow-x: clip; overscroll-behavior-x: none;
  padding-bottom: calc(72px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; transition: opacity .18s; }
body.fade { opacity: 0; }
body.locked { overflow: hidden; }
@media (min-width: 820px) { body { padding-bottom: 24px; } }
input, select, textarea, button { font-size: 16px; }
h1, h2, h3 { font-family: var(--title); line-height: 1.2; }
h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 13px; margin: 26px 2px 8px; color: var(--mute); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
h3 { margin: 0 0 6px; font-size: 17px; }
a { color: var(--accent); }
img { max-width: 100%; }
.mute { color: var(--mute); }
.small { font-size: 13.5px; }
.good { color: var(--good); }
.err { color: var(--bad); min-height: 1.4em; margin: 6px 0; font-size: 14px; }
[hidden] { display: none !important; }
.ic { width: 16px; height: 16px; vertical-align: -3px; object-fit: contain; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; padding-top: calc(6px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; min-height: 54px; }
body[data-mode=game] .bar { background: var(--panel); border-bottom-color: var(--line); }
.brand { font: 800 18px var(--title); color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 800; }
.me { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sunk); border: 2px solid var(--accent); display: block; }
.me img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.me .lv { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: 800 12px/20px var(--font); text-align: center; border: 2px solid var(--panel); }
.hud { min-width: 0; flex: 0 1 220px; display: grid; gap: 4px; }
.hud-top { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 18px; }
.hud-top b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain { font: 800 11px var(--font); letter-spacing: .04em; color: #3b2a00; background: linear-gradient(90deg, var(--gold) calc(var(--left, 1) * 100%), color-mix(in srgb, var(--gold) 35%, transparent) 0); padding: 2px 7px; border-radius: 99px; white-space: nowrap; animation: chainIn .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes chainIn { from { transform: scale(.4); } }
.xpbar { position: relative; height: 9px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.xpbar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.xpbar .gain { background: var(--xp-gain); } .xpbar .fill { background: var(--xp); }
.xpbar.pulse { animation: pulse .4s; }
@keyframes pulse { 40% { transform: scaleY(1.7); box-shadow: 0 0 12px var(--xp); } }
.grow { flex: 1; }
.pills { display: flex; gap: 5px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 8px 0 4px; border-radius: 99px; background: var(--sunk); font: 700 13px var(--font); color: var(--fg); min-height: 0; border: 0; }
.pill img { width: 22px; height: 22px; object-fit: contain; }
.pill.gift { background: color-mix(in srgb, var(--gold) 28%, var(--sunk)); cursor: pointer; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
@media (max-width: 430px) { .hud { flex-basis: 96px; } .hud-top b { display: none; } .pill { padding-right: 6px; font-size: 12px; } .pill img { width: 19px; height: 19px; } .pills { gap: 3px; } }
.tabs { display: none; gap: 2px; margin-left: 10px; }
.tabs a, .bottom a { text-decoration: none; color: var(--mute); font-weight: 650; font-size: 14px; }
.tabs a { padding: 7px 12px; border-radius: 10px; }
.tabs a[aria-current=page] { color: var(--fg); background: var(--sunk); }
.bottom { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 12px; }
.bottom a svg { width: 24px; height: 24px; }
.bottom a[aria-current=page] { color: var(--accent); }
@media (min-width: 820px) { .tabs { display: flex; } .bottom { display: none; } }

/* ---------- controls ---------- */
button, .btn { font: 650 15px var(--font); border-radius: 11px; padding: 9px 15px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; min-height: 44px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.ghost, a.ghost { background: transparent; border-color: transparent; }
button.small { min-height: 40px; padding: 6px 13px; font-size: 14px; position: relative; }
button.small::after, .chip2::after, .five::after, .cl::after, .meta .tag::after { content: ""; position: absolute; inset: -4px; }
button.danger { color: var(--bad); }
button.wide { width: 100%; }
button:disabled, [aria-disabled=true] { opacity: .5; cursor: default; }
button:active:not(:disabled) { transform: scale(.97); }
:is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }
:root[data-theme]:not([data-theme=clean]) { --focus: #ffd43b; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; min-width: 0; min-height: 44px; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 20px; height: 20px; accent-color: var(--accent); }
input.big { font-size: 22px; width: 100%; padding: 14px; }
textarea { resize: vertical; width: 100%; }
label.f, div.f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--mute); margin-bottom: 14px; }
label.f > :is(input, select, textarea) { color: var(--fg); font-weight: 400; width: 100%; }
.row0 { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-weight: 500; min-height: 36px; }
.iconbtn { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; flex: none; color: var(--fg); border-radius: 12px; }
a.iconbtn { text-decoration: none; }

.page { max-width: 720px; margin: 0 auto; padding: 8px 14px 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.head { display: flex; align-items: center; gap: 6px; margin: 14px 0 14px; }
.head h1 { flex: 1; min-width: 0; }
.head .sub { display: block; font: 500 14px var(--font); color: var(--mute); margin-top: 3px; letter-spacing: 0; }
.ring { width: 46px; height: 46px; border-radius: 50%; flex: none; background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--sunk) 0); display: grid; place-items: center; transition: background .4s; }
.ring span { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 750 12px var(--font); }
.sect-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.empty { padding: 26px 18px; color: var(--mute); text-align: center; line-height: 1.5; }
.seg { display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin: 10px -2px 0; background: var(--sunk); border-radius: 12px; scrollbar-width: none; }
.seg a { flex: 1 1 0; min-width: 0; min-height: 44px; display: grid; place-items: center; text-align: center; padding: 4px 2px; border-radius: 9px; text-decoration: none; color: var(--mute); font-weight: 650; font-size: 14px; white-space: nowrap; }
.seg a.on { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }

/* ---------- quick add ---------- */
.quick { margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 5px; }
.quick:focus-within { border-color: var(--accent); }
.qrow { display: flex; gap: 6px; align-items: center; }
.quick input[type=text], .quick input[type=search] { flex: 1; border: 0; background: transparent; padding: 8px 10px; min-height: 44px; }
.quick input:focus-visible { outline: none; }
.quick .iconbtn { width: 44px; height: 44px; border-radius: 11px; }
.preview { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px; }
.preview:not(:empty) { padding: 2px 8px 6px; }
.preview span { font: 650 12.5px var(--font); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 2px 9px; border-radius: 99px; animation: chainIn .2s; }
.sizes { display: flex; gap: 3px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; font: 800 12px var(--font); color: var(--mute); background: var(--sunk); cursor: pointer; }
.chip input:checked + span { background: var(--accent); color: var(--on-accent); }
.day .quick { margin: 4px 8px 8px; box-shadow: none; background: var(--sunk); border-color: transparent; }

/* ---------- task rows ---------- */
.tasks { list-style: none; margin: 0 0 8px; padding: 0; overflow: hidden; }
.task { position: relative; border-top: 1px solid var(--line); transition: height .26s ease, opacity .26s ease; overflow: hidden; }
.task:first-child { border-top: 0; }
.task.fold { height: 0 !important; opacity: 0; border-top-color: transparent; }
.row-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 4px; background: var(--panel); touch-action: pan-y; min-height: 56px; }
.sw { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 22px; font-weight: 750; color: #fff; opacity: 0; transition: opacity .15s; }
.sw-done { background: var(--good); } .sw-done svg { width: 26px; height: 26px; stroke: #fff; }
.sw-later { background: var(--accent); justify-content: flex-end; color: var(--on-accent); }
.task.swiping .sw-done { opacity: .55; } .task.swiping .sw-later { opacity: 0; }
.task.swiping.go-done .sw-done { opacity: 1; }
.task.swiping.go-later .sw-later { opacity: 1; } .task.swiping.go-later .sw-done { opacity: 0; }
.check { flex: none; width: 48px; height: 48px; min-height: 0; padding: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; }
.check > span { width: var(--check); height: var(--check); border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mute) 60%, transparent); display: grid; place-items: center; transition: background .18s, border-color .18s, transform .1s; }
.task.pr3 .check > span { border-color: var(--bad); } .task.pr2 .check > span { border-color: var(--gold); } .task.pr1 .check > span { border-color: var(--accent); }
.check svg { width: 15px; height: 15px; stroke: var(--on-accent); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .24s ease .06s; }
.check:active > span { transform: scale(.85); }
.task.done .check > span { background: var(--good); border-color: var(--good); }
.task.done .check svg { stroke-dashoffset: 0; }
.task.pop .check > span { animation: spring .4s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes spring { 0% { transform: scale(.85); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.task .body { flex: 1; min-width: 0; cursor: pointer; padding: 4px 0; }
.task .title { overflow-wrap: anywhere; display: inline; background: linear-gradient(currentColor, currentColor) 0 55% / 0 1.5px no-repeat; transition: background-size .25s ease, color .25s; }
.task.done .title { color: var(--mute); background-size: 100% 1.5px; }
.task .meta { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 3px; font-size: 12.5px; color: var(--mute); align-items: center; }
.task .meta svg { vertical-align: -2px; margin-right: 3px; }
.meta .time { color: var(--accent); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 2px; padding: 0 8px; border-radius: 99px; background: var(--sunk); font-size: 12px; font-weight: 600; color: var(--mute); line-height: 21px; }
.tag.shared { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.coop { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.coop i { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--sunk); font: 800 10px var(--font); font-style: normal; color: var(--mute); margin-right: -8px; border: 2px solid var(--panel); }
.coop i:last-of-type { margin-right: 0; } .coop i.ok { background: var(--good); color: #fff; } .coop i.inv { opacity: .5; }
.flag { flex: none; font: 900 14px var(--font); padding: 0 6px; }
.flag.p3 { color: var(--bad); } .flag.p2 { color: var(--gold); } .flag.p1 { color: var(--accent); }
.step { flex: none; }
.donegrp { margin-top: 12px; }
.donegrp summary { cursor: pointer; color: var(--mute); font-weight: 650; padding: 10px 4px; list-style: none; min-height: 44px; }
.donegrp summary::-webkit-details-marker { display: none; }
.donegrp summary::before { content: "▸ "; } .donegrp[open] summary::before { content: "▾ "; }
.donegrp summary span { background: var(--sunk); border-radius: 99px; padding: 1px 8px; font-size: 13px; margin-left: 4px; }
.nothing { color: var(--mute); font-size: 14px; margin: 4px 6px 10px; }
.dayblock h3 { margin: 18px 4px 8px; font-size: 16px; } .dayblock h3 a { color: var(--fg); text-decoration: none; }

/* week, calendar */
.days { display: grid; gap: 10px; margin-top: 14px; }
.day { padding: 10px 0 2px; overflow: hidden; }
.day > header { display: flex; align-items: baseline; gap: 8px; padding: 0 14px 6px; }
.day > header a { color: inherit; text-decoration: none; font-family: var(--title); }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.day .tasks { border-top: 1px solid var(--line); }
.cal-wrap { padding: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 11px; color: var(--mute); text-align: center; font-weight: 700; }
.cal a { aspect-ratio: 1 / 1; border-radius: 10px; background: var(--sunk); display: grid; place-items: center; text-decoration: none; color: var(--fg); font-size: 14px; position: relative; font-weight: 600; }
.cal a.out { opacity: .35; } .cal a.today { outline: 2px solid var(--accent); }
.cal a .dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal a .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--mute); }
.cal a .dots i.d { background: var(--good); }
.cal a.clear { background: color-mix(in srgb, var(--good) 22%, var(--sunk)); }

/* lists, search, rows */
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 56px; }
.row.link { text-decoration: none; color: var(--fg); }
.row .grow { min-width: 0; overflow-wrap: anywhere; }
.row .count { font-weight: 700; color: var(--mute); }
.row .ok { color: var(--good); }
.add2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.add2 input[type=text], .add2 input[type=email] { flex: 1 1 200px; }
code.copy { display: block; padding: 12px; background: var(--sunk); border-radius: 11px; font-size: 13.5px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; margin: 8px 0; }
code.copy.big { font-size: 15px; }
.connect-cta { display: grid; gap: 2px; padding: 16px; text-decoration: none; color: var(--fg); margin-top: 8px; background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel)); }
.connect-cta span { color: var(--mute); font-size: 14px; }
.aicard { margin-top: 10px; } .aicard summary { cursor: pointer; min-height: 36px; }
.steps { padding-left: 22px; margin: 10px 0 2px; } .steps li { margin-bottom: 5px; }
.prompt { text-align: left; font-weight: 400; }
.urlbox { display: grid; gap: 4px; }

/* look gallery */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.themecard { padding: 0; overflow: hidden; text-align: left; display: grid; font-weight: 400; min-height: 0; }
.themecard img, .cleanprev { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.cleanprev { display: grid; align-content: center; gap: 9px; padding: 18px; background: linear-gradient(160deg, #fbfbf8, #ecece6); }
.cleanprev i { display: block; height: 12px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); position: relative; padding-left: 0; }
.cleanprev i::before { content: ""; position: absolute; left: -2px; top: -2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #4f5bd5; background: #fff; }
.cleanprev.big { aspect-ratio: 4 / 3; }
.themecard .lb { padding: 9px 11px 11px; display: grid; gap: 1px; }
.themecard .lb small { color: var(--mute); font-size: 12.5px; line-height: 1.3; }
.themecard.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { padding: 0 0 12px; overflow: hidden; display: grid; gap: 4px; text-align: left; font-weight: 400; }
.mode img, .mode .cleanprev { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mode b, .mode small { padding: 0 12px; } .mode small { color: var(--mute); }
@media (max-width: 380px) { .modes { grid-template-columns: 1fr; } }
.avgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.avpick { position: relative; padding: 0; min-height: 0; border-radius: 14px; overflow: hidden; background: var(--sunk); border: 3px solid transparent; cursor: pointer; display: grid; font-weight: 600; font-size: 11.5px; text-align: center; }
.avpick img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.avpick span { padding: 3px 2px 5px; line-height: 1.2; }
.avpick input { position: absolute; opacity: 0; }
.avpick:has(input:checked), .avpick.on { border-color: var(--accent); }
.classgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.clpick { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 10px; border-radius: 14px; background: var(--sunk); border: 3px solid transparent; cursor: pointer; color: var(--fg); font-weight: 400; min-height: 0; }
.clpick img { width: 52px; height: 52px; object-fit: contain; }
.clpick small { color: var(--mute); font-size: 12px; }
.clpick input { position: absolute; opacity: 0; }
.clpick:has(input:checked), .clpick.on { border-color: var(--accent); }

/* sign in */
.gate { min-height: 75vh; display: grid; place-items: center; }
.gate-in { width: min(400px, 100%); padding: 26px; text-align: center; }
.gate-in form { text-align: left; }
.logo { width: 72px; height: 72px; border-radius: 18px; }

/* ---------- sheets (bottom on a phone) ---------- */
dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--fg); width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 18px; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog h2 { margin: 0 0 12px; color: var(--fg); text-transform: none; letter-spacing: -.01em; font-size: 19px; }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 var(--kb, 0px); width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-height: calc(92dvh - var(--kb, 0px)); animation: up .28s cubic-bezier(.2, .9, .3, 1); transition: transform .2s ease; }
  dialog.sheet.dragging { transition: none; }
  @keyframes up { from { transform: translateY(100%); } }
}
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 10px; touch-action: none; position: relative; }
.grab::after { content: ""; position: absolute; inset: -14px -60px; }
/* the editor: a sticky title row with Done, a scrolling middle, a sticky footer */
dialog.sheet[open]:has(#ef) { display: flex; flex-direction: column; padding-bottom: 0; }
#ef { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-head { display: flex; gap: 10px; align-items: center; touch-action: none; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sheet-head .ttl { margin: 0; flex: 1; touch-action: auto; }
.sheet-head button { min-height: 40px; padding: 6px 18px; flex: none; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 12px 0 4px; flex: 1; min-height: 0; }
.sheet-foot { display: flex; gap: 8px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.sheet-foot .danger { margin-right: auto; }
.repdays { display: flex; gap: 6px; margin: -4px 0 12px; }
.repdays .day { width: 44px; height: 44px; border-radius: 50%; padding: 0; font-weight: 800; background: var(--sunk); border-color: transparent; }
.repdays .day.on { background: var(--accent); color: var(--on-accent); }
.checklist .iconbtn { width: 40px; height: 40px; }
/* row extras */
.meta .tag, .meta .cl { position: relative; border: 0; min-height: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.meta .cl { padding: 0 8px; border-radius: 99px; background: var(--sunk); color: var(--mute); line-height: 21px; }
.meta .ai { font-style: italic; }
.mini-cl { list-style: none; margin: -4px 0 8px 58px; padding: 0; }
.mini-cl li label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; }
.mini-cl input { width: 20px; height: 20px; }
/* the thumb-zone add button (phones, on Today) */
.hint-phone { display: none; }
@media (max-width: 819px) { .hint-phone { display: inline; } .hint-desk { display: none; } }
#fab.away { transform: translateY(140px); }
#fab { transition: transform .25s ease; }
#fab { display: none; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; padding: 0; place-items: center; background: var(--accent); color: var(--on-accent); border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
@media (max-width: 819px) {
  body:has(#main form.main-add) #fab { display: grid; }
  #main form.main-add { display: none; }
  #main:has(form.main-add) { padding-bottom: 84px; }
}
/* Today extras */
.invites { padding: 6px 14px; margin-bottom: 12px; }
.inv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; }
.inv + .inv { border-top: 1px solid var(--line); }
.inv .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.inv p { margin: 0; flex: 1 1 180px; }
.inv .acts { margin: 0; }
.dawncard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; margin-bottom: 12px; }
.dawncard img { width: 46px; height: 46px; }
.dawncard span { flex: 1; display: grid; }
.dawncard small { color: var(--mute); font-weight: 500; }
.dawncard i { font-style: normal; font-weight: 800; color: var(--accent); }
details.earlier { margin-top: 14px; }
details.earlier summary { cursor: pointer; color: var(--mute); font-weight: 650; padding: 10px 2px; min-height: 44px; }
details.earlier .sect-actions { display: flex; gap: 8px; margin: 0 0 8px; }
.todaydmg { display: block; margin-top: 2px; opacity: .85; }
.together { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.together img { width: 34px; height: 34px; }
/* Upcoming */
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 0; }
.weekstrip a { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; min-height: 56px; }
.weekstrip small { color: var(--mute); font-size: 11px; }
.weekstrip i { color: var(--accent); font-style: normal; line-height: 8px; height: 8px; letter-spacing: 1px; }
.places { display: grid; padding: 0; margin-top: 18px; }
.places a { display: grid; padding: 12px 16px; color: var(--fg); text-decoration: none; min-height: 44px; }
.places a + a { border-top: 1px solid var(--line); }
.places span { color: var(--mute); font-size: 13px; }
.preview .pt { flex-basis: 100%; font-weight: 650; font-size: 14px; padding: 2px 2px 0; }
.preview .kd { background: transparent; border: 1px dashed var(--line); }
/* rhythm dots in the game header */
#flame .dots { display: inline-flex; gap: 2px; margin-left: 2px; }
#flame .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .25; }
#flame .dots i.on { opacity: 1; background: #ffb347; }
.ttl { width: 100%; font-size: 19px; font-weight: 650; border: 0; padding: 6px 2px; margin-bottom: 8px; background: transparent; }
.ttl:focus-visible { outline: none; border-bottom: 2px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip2 { position: relative; min-height: 40px; padding: 6px 13px; border-radius: 99px; font-size: 14px; background: var(--sunk); border-color: transparent; }
.chip2.on { background: var(--accent); color: var(--on-accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 6px; } .checklist label { flex: 1; display: flex; gap: 10px; align-items: center; color: var(--fg); font-weight: 400; min-height: 40px; }
.addline { display: flex; gap: 6px; } .addline input { flex: 1; }
.more summary { cursor: pointer; font-weight: 650; color: var(--mute); min-height: 40px; display: flex; align-items: center; }
.acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.acts .danger { margin-right: auto; }
.acts.center { justify-content: center; }
.opts { display: grid; gap: 6px; }
.opt { text-align: left; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.opt input { border: 0; min-height: 0; padding: 0; background: transparent; }
#whatsnew-body { max-height: 60dvh; overflow: auto; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: flex; flex-direction: column; min-width: 240px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .2); }
.menu-list > button, .menu-list > a, .menu-list .smcp-inline { text-align: left; border: 0; background: none; padding: 0 12px; border-radius: 9px; font: 500 15px var(--font); color: var(--fg); width: 100%; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.menu-list > button:hover, .menu-list > a:hover { background: var(--sunk); }
.who { padding: 6px 12px; font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); display: grid; gap: 6px; width: min(440px, calc(100vw - 20px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 13px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: tin .25s ease-out; }
.toast button { margin-left: auto; min-height: 44px; padding: 6px 16px; background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- effects (shared) ---------- */
#fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.ripple { position: fixed; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid var(--good); animation: rip .45s ease-out forwards; }
@keyframes rip { to { transform: scale(6); opacity: 0; } }
.pt { position: fixed; width: 7px; height: 7px; margin: -3px; border-radius: 2px; animation: pt .45s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes pt { to { transform: translate(var(--x), var(--y)) rotate(200deg) scale(.3); opacity: 0; } }
.flyxp { position: fixed; z-index: 85; font: 900 15px var(--title); color: var(--xp); text-shadow: 0 1px 0 var(--panel), 0 0 8px var(--panel); white-space: nowrap; transform: translate(-50%, -50%); animation: fly .56s cubic-bezier(.5, 0, .7, .4) forwards; }
.flyxp.bonus { color: var(--gold); font-size: 13px; }
@keyframes fly { 0% { transform: translate(-50%, -50%) scale(1.3); } 25% { transform: translate(calc(-50% + var(--dx) * .1), calc(-50% - 30px)) scale(1.2); } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.5); opacity: .4; } }
.dmg { position: fixed; z-index: 85; font: 900 20px var(--title); color: #fff; -webkit-text-stroke: 1px #9b0000; text-shadow: 0 2px 0 #9b0000; transform: translateX(-50%); animation: dmg .85s ease-out forwards; }
.dmg.crit { font-size: 30px; color: #ffe066; }
.dmg b { display: block; font-size: 13px; letter-spacing: .04em; -webkit-text-stroke: 0; text-transform: uppercase; }
@keyframes dmg { 0% { transform: translate(-50%, 0) scale(.6); } 20% { transform: translate(-50%, -18px) scale(1.25); } 100% { transform: translate(-50%, -46px) scale(1); opacity: 0; } }
.moment { position: fixed; inset: 0; z-index: 86; display: grid; place-items: center; pointer-events: auto; background: rgba(0, 0, 0, .38); animation: mIn .2s ease-out; padding: 20px; }
.moment.small { background: transparent; pointer-events: none; place-items: end center; padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
.moment.calm { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(4px); }
.moment.out { animation: mOut .22s ease-in forwards; }
@keyframes mIn { from { opacity: 0; } } @keyframes mOut { to { opacity: 0; } }
.calm { text-align: center; display: grid; justify-items: center; gap: 6px; animation: bigIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.calm h2 { font-size: 24px; margin: 6px 0 0; color: var(--fg); text-transform: none; letter-spacing: -.01em; }
.calm p { margin: 0; color: var(--mute); }
.bigcheck { width: 84px; height: 84px; border-radius: 50%; background: var(--good); position: relative; animation: spring .5s cubic-bezier(.2, 1.8, .4, 1); justify-self: center; }
.bigcheck::after { content: ""; position: absolute; left: 30px; top: 18px; width: 18px; height: 34px; border: solid #fff; border-width: 0 6px 6px 0; transform: rotate(45deg); }
.big { position: relative; width: min(440px, 100%); padding: 22px; border-radius: 22px; background: var(--panel); color: var(--fg); text-align: center; display: grid; gap: 6px; justify-items: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); animation: bigIn .35s cubic-bezier(.2, 1.5, .4, 1); overflow: hidden; }
@keyframes bigIn { from { transform: scale(.7); opacity: 0; } }
.big h2 { font-size: 27px; margin: 0; color: var(--fg); text-transform: none; letter-spacing: 0; }
.big p { margin: 0; } .big .sub { color: var(--mute); font-size: 14px; } .big .stars, i.stars { color: var(--gold); font-size: 22px; letter-spacing: 2px; font-style: normal; }
.big .art { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); position: relative; z-index: 1; }
.big .art.scene { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.big .art.av { border-radius: 50%; background: var(--sunk); object-fit: cover; width: 136px; height: 136px; }
.big .art.shatter { animation: shatter 1.3s ease-in .5s forwards; }
@keyframes shatter { 40% { filter: brightness(3) drop-shadow(0 0 20px #fff); transform: scale(1.08); } 100% { filter: grayscale(1) brightness(.4); transform: scale(.92) rotate(-4deg); opacity: .55; } }
.lvnum { font: 900 66px/1 var(--title); color: var(--xp); text-shadow: 0 4px 0 color-mix(in srgb, var(--xp) 40%, #000); animation: slam .4s cubic-bezier(.2, 1.8, .4, 1) .2s both; position: relative; z-index: 1; }
@keyframes slam { from { transform: scale(3); opacity: 0; } }
.rays { position: absolute; inset: -50%; background: repeating-conic-gradient(color-mix(in srgb, var(--gold) 22%, transparent) 0 10deg, transparent 10deg 20deg); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.lootcard .flip { width: 240px; display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: 18px; background: var(--panel); border: 3px solid var(--r-c); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: cardflip .45s ease-out; text-align: center; }
.lootcard img { width: 100px; height: 100px; object-fit: contain; }
.lootcard small { color: var(--mute); font-size: 12.5px; } .lootcard em { font-size: 12.5px; color: var(--gold); font-style: normal; font-weight: 700; }
.lootcard.r-u .flip { border-color: var(--r-u); } .lootcard.r-r .flip { border-color: var(--r-r); box-shadow: 0 0 24px color-mix(in srgb, var(--r-r) 60%, transparent); } .lootcard.r-l .flip { border-color: var(--r-l); box-shadow: 0 0 40px var(--r-l); }
@keyframes cardflip { 0% { transform: translateY(60px) rotateY(90deg) scale(.6); } 60% { transform: translateY(-6px) rotateY(0) scale(1.05); } 100% { transform: none; } }
.rar { font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.r-c .rar { color: var(--r-c); } .r-u .rar { color: var(--r-u); } .r-r .rar { color: var(--r-r); } .r-l .rar { color: var(--r-l); }
.shimmer { position: fixed; inset: 0; z-index: 84; background: linear-gradient(110deg, transparent 30%, rgba(255, 220, 120, .55) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat; animation: shim 1.2s ease-in-out forwards; }
@keyframes shim { to { background-position: 200% 0; } }
.shake { animation: shake .32s; }
@keyframes shake { 15% { transform: translateX(-5px) rotate(-3deg); filter: brightness(2.2); } 30% { transform: translateX(5px) rotate(2deg); } 50% { transform: translateX(-3px); filter: brightness(1); } 75% { transform: translateX(2px); } }

/* the splash between looks */
.splash { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; animation: mIn .25s; }
.splash video { width: 100%; height: 100%; object-fit: cover; }
.splash .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.splash.bloom .flash { animation: bloom .7s ease-out forwards; }
@keyframes bloom { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: 0; } }
.splash.out { animation: mOut .6s ease-in forwards; }
.splash .skip { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .45); color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 44px; padding: 8px 20px; }
.splash .still { width: 100%; height: 100%; object-fit: cover; }

/* ---------- full-screen layers ---------- */
.screen { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: scIn .25s ease-out; }
.screen.out { animation: mOut .2s ease-in forwards; }
@keyframes scIn { from { opacity: 0; transform: translateY(12px); } }
.sc-in { max-width: 560px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; display: grid; gap: 14px; }
.scene { width: 100%; border-radius: 18px; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ob { display: grid; gap: 16px; }
.obdone { display: grid; gap: 10px; justify-items: center; }
.obdone .av { width: 160px; height: 160px; border-radius: 26px; object-fit: cover; background: var(--sunk); }
.yday { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.yday .card { padding: 10px; display: grid; justify-items: center; gap: 2px; }
.yday img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sunk); }
.yday span { font-size: 13px; color: var(--mute); }
.cards { display: flex; justify-content: center; gap: 10px; }
.dcard { width: 86px; height: 118px; padding: 0; border-radius: 13px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); border: 3px solid var(--gold); color: #fff; font: 900 30px var(--title); display: grid; place-items: center; transition: transform .3s, opacity .3s; }
.dcard.flip { animation: cflip .4s ease-in-out; background: var(--panel); } .dcard.flip img { width: 70%; } .dcard.dim { opacity: .35; }
@keyframes cflip { 50% { transform: rotateY(90deg); } }
.won { font: 800 16px var(--title); min-height: 1.4em; color: var(--gold); }
.bountyline { display: flex; gap: 10px; align-items: center; padding: 10px 12px; text-align: left; }
.bountyline img { width: 44px; height: 44px; } .bountyline small { display: block; color: var(--mute); }
.rcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rcols .card { padding: 14px; display: grid; justify-items: center; gap: 4px; }
.rcols img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--sunk); }
.rcols span { font-size: 13.5px; color: var(--mute); } .rcols .wtitle { font: 800 18px var(--title); color: var(--gold); }
.lootrow { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; } .lootrow img { width: 34px; height: 34px; border-radius: 8px; background: var(--sunk); }
.nextfoe { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; } .nextfoe img { width: 64px; height: 64px; object-fit: contain; }
.rewardsc { display: grid; gap: 12px; justify-items: center; }
.hero-art { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--sunk); }
.chestbtn { background: none; border: 0; padding: 0; min-height: 0; }
.chestbtn img { width: 200px; height: 200px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); animation: bob 1.4s ease-in-out infinite; }
.chestbtn img.shake { animation: shake .35s 2; }
.spoils { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.spoil { display: grid; justify-items: center; gap: 2px; width: 120px; padding: 10px; border-radius: 14px; background: var(--panel); border: 2px solid var(--r-c); animation: spoilIn .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.spoil img { width: 72px; height: 72px; object-fit: contain; } .spoil small { color: var(--mute); font-size: 11.5px; }
.spoil.r-u { border-color: var(--r-u); } .spoil.r-r { border-color: var(--r-r); } .spoil.r-l { border-color: var(--r-l); box-shadow: 0 0 18px var(--r-l); }
@keyframes spoilIn { from { opacity: 0; transform: translateY(30px) scale(.6); } }
.perkpick { display: grid; gap: 10px; }
.perk { display: grid; gap: 2px; padding: 14px; text-align: left; font-weight: 400; min-height: 0; } .perk b { font-size: 16px; } .perk span { color: var(--mute); }
.recap .feed { text-align: left; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 819px) { body:has(#main[data-view=today]) .toasts, body:has(#main[data-view=day]) .toasts { width: calc(100vw - 96px); left: 12px; transform: none; } }
@media (min-width: 820px) { .toasts { bottom: 24px; } }

/* bigger hit areas for the small row chips and links (the visible chip stays small) */
.meta .tag::after, .meta .cl::after { inset: -12px -3px; }
.pill.gift { position: relative; } .pill.gift::after { content: ""; position: absolute; inset: -8px -4px; }
.dayblock h3 a { display: inline-block; padding: 10px 0; }
.chip2, .sheet-head button, button.small { min-height: 44px; }
textarea.ttl { resize: none; overflow: hidden; line-height: 1.3; font-family: inherit; }
/* room under the list for the + button */
@media (max-width: 819px) { #main[data-view=today], #main[data-view=day] { padding-bottom: 84px; } }

.invbar { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px 12px 6px 8px; margin-bottom: 8px; min-height: 48px; }
.invbar .av, .inv .av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.invbar .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.invbar i { font-style: normal; font-weight: 800; color: var(--accent); }
.added { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 2px; }
.added li { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.added li button { margin-left: auto; min-height: 40px; }
.opt.keep { width: 100%; margin-top: 8px; color: var(--mute); }
.meta .prio { font-weight: 900; color: var(--bad); letter-spacing: -1px; }

.preview .pv-title { flex-basis: 100%; font-weight: 650; font-size: 14px; padding: 2px 2px 0; }
.mini-cl { position: relative; z-index: 2; background: var(--panel); border-radius: 0 0 12px 12px; padding: 2px 10px 6px 58px !important; margin: 0 !important; }
.meta .steps { display: inline-flex; align-items: center; gap: 5px; }
.meta .steps i { width: 34px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--good) var(--p), var(--sunk) var(--p)); }
.meta .parent { opacity: .85; }
.armed { outline: 2px solid var(--bad); }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; } .note { background: var(--sunk); border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* The strip under the bottom bar (the phone's gesture area and any overscroll) always wears the current look's colour. */
.bottom::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: var(--panel); pointer-events: none; }
