[hidden] { display: none !important; }
:root {
  /* bright, rounded, pastel look */
  --bg: #f3f8fc;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #7b8598;
  --line: #e8edf3;
  --accent: #2bc4a4;
  --accent-ink: #ffffff;
  --warn: #f08c2e;
  --bad: #ef5a6f;
  --soft: #e6f8f4;
  --tab: rgba(255,255,255,.94);
  --shadow: 0 6px 24px rgba(40,70,110,.08);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.4 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  overflow: hidden; height: 100%; position: fixed; inset: 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 10px;
  background: var(--bg);
}
.top h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.top-right { color: var(--muted); font-size: 14px; padding-bottom: 6px; }
.view { padding: 0 16px 24px; max-width: 640px; margin: 0 auto; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--tab); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button {
  background: none; border: 0; padding: 8px 0 6px; color: var(--muted);
  font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabs button .ti { font-size: 20px; line-height: 1; }
.tabs button.on { color: var(--accent); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; margin: 0 0 14px;
}
.card h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.good { color: var(--accent); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.habit {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; border-top: 1px solid var(--line);
  padding: 12px 0; text-align: left;
}
.habit:first-of-type { border-top: 0; }
.check {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; font-size: 16px; color: transparent;
}
.habit.done .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.habit.done .hname { color: var(--muted); text-decoration: line-through; }
.habit .hname { flex: 1; }
.streak { font-size: 13px; color: var(--muted); white-space: nowrap; }
.streak.hot { color: var(--warn); font-weight: 600; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.progress.over > i { background: var(--bad); }
.btn {
  border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); width: 100%;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
.btn.sm { width: auto; padding: 8px 12px; font-size: 14px; }
.btns { display: flex; gap: 8px; }
.btns > * { flex: 1; }
label.f { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); font-size: 16px; min-width: 0;
}
textarea { min-height: 120px; resize: vertical; }
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 8px 4px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 6px 10px; font-size: 13px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.list .item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .grow div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { background: none; border: 0; color: var(--muted); font-size: 18px; padding: 4px 8px; }
.ex { border-top: 1px solid var(--line); padding: 12px 0; }
.ex:first-of-type { border-top: 0; }
.ex-name { font-weight: 600; }
.sets { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.set { display: grid; grid-template-columns: 28px 1fr 1fr 36px; gap: 6px; align-items: center; }
.set input { padding: 8px; text-align: center; }
.set .n { color: var(--muted); font-size: 13px; text-align: center; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px; }
.stat .v { font-size: 20px; font-weight: 700; }
.stat .l { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 140px; display: block; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { fill: var(--accent); opacity: .12; }
.chart .dt { fill: var(--accent); }
.chart .ax { fill: var(--muted); font-size: 10px; }
.chart .gd { stroke: var(--line); stroke-width: 1; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.flag { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.flag:first-of-type { border-top: 0; }
.flag .ic { flex: none; width: 22px; text-align: center; }
.monthnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.monthnav button { background: var(--card); border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 36px; }
.monthnav b { font-size: 18px; }
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; }
.sheet-card {
  background: var(--card); width: 100%; max-width: 640px; margin: 0 auto;
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
}
.sheet-card h3 { margin: 0 0 6px; font-size: 20px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(84px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px;
}
.lock { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; }
.lock-box { text-align: center; }
.lock-title { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 28px; min-height: 16px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dots i.f { background: var(--ink); border-color: var(--ink); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px; justify-content: center; }
.pin-pad button { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--card); font-size: 26px; }
.pin-pad button.blank { visibility: hidden; }
.lock-msg { margin-top: 16px; color: var(--bad); min-height: 20px; font-size: 14px; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.daypick button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 0; font-size: 13px; }
.daypick button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.gap { height: 10px; }

/* ---- pager ---- */
.pager {
  position: fixed; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.pager::-webkit-scrollbar { display: none; }
.page {
  flex: 0 0 100%; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-align: start;
  scroll-snap-stop: always; -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(70px + env(safe-area-inset-bottom));
}
.page > .inner { max-width: 560px; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 14px; }
.page-h h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.page-h .sub { color: var(--muted); font-size: 14px; }
.dots {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 10;
  bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 4px; border-radius: 99px;
  background: var(--tab); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.dots button { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 7px 14px; border-radius: 99px; }
.dots button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.panel { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.panel-top { position: sticky; top: 0; z-index: 2; background: var(--bg); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; border-bottom: 1px solid var(--line); }
.panel-top h1 { margin: 0; font-size: 17px; text-align: center; }
.panel-top .back { background: none; border: 0; color: var(--accent); font-size: 17px; text-align: left; padding: 6px 4px; }
.panel-top .top-right { text-align: right; padding: 0; font-size: 12px; }
.panel .view { padding-top: 14px; }

/* ---- home ---- */
.avatar-wrap { position: relative; height: 330px; margin: -6px -16px 0; }
.avatar-wrap canvas { width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.avatar-glow { position: absolute; left: 50%; bottom: 18px; width: 170px; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47,207,139,.35), transparent 70%); filter: blur(2px); }
.avatar-tag { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 13px; color: var(--muted); }
.avatar-tag b { color: var(--ink); }
.avatar-fallback { display: grid; place-items: center; height: 100%; font-size: 90px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-align: left; }
.tile .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.tile .s { font-size: 12px; color: var(--muted); }
.daytoggle { display: flex; gap: 6px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.quick button { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px; font-size: 13px; }
.quick button .qi { display: block; font-size: 22px; margin-bottom: 2px; }

/* ---- calories ---- */
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { width: 132px; height: 132px; flex: none; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); transition: stroke-dashoffset .5s; }
.ring.over .fg { stroke: var(--bad); }
.ring text { fill: var(--ink); }
.ring .rs { fill: var(--muted); font-size: 11px; }
.macro { margin-bottom: 8px; }
.macro .row { font-size: 13px; margin-bottom: 3px; }
.bigbtns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.bigbtns button { border: 0; border-radius: 16px; padding: 16px 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.bigbtns button.alt { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.bigbtns button .qi { display: block; font-size: 24px; margin-bottom: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; position: relative; padding-top: 6px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 2px; }
.bars .b i.over { background: var(--warn); }
.bars .b span { font-size: 11px; color: var(--muted); }
.bars .goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--muted); opacity: .6; }
.scanner { position: fixed; inset: 0; z-index: 45; background: #000; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 12%; right: 12%; top: 34%; height: 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.scan-ui { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); }
.scan-msg { color: #fff; text-align: center; margin-bottom: 12px; font-size: 15px; }
.scanner .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.undo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 20px; }
.stepper b { min-width: 48px; text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- money ---- */
.safe { text-align: center; padding: 18px 16px; }
.safe .l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.safe .v { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.safe .s { color: var(--muted); font-size: 14px; }
.bucket { margin-bottom: 12px; }
.bucket .row { font-size: 14px; margin-bottom: 4px; }
.bucket .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.b-need { background: #4c8dff; } .b-want { background: #f59f00; } .b-save { background: var(--accent); }
.progress.need > i { background: #4c8dff; } .progress.want > i { background: #f59f00; }
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft); border: 1px solid var(--accent); }
.swipe-stage { position: relative; height: 230px; margin: 10px 0 14px; }
.swipe-card { position: absolute; inset: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.swipe-card .amt { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.swipe-card .who { font-size: 17px; margin-top: 4px; word-break: break-word; }
.swipe-card .when { color: var(--muted); font-size: 13px; margin-top: 4px; }
.swipe-card .lab { position: absolute; top: 16px; font-weight: 800; font-size: 18px; padding: 4px 10px; border-radius: 8px; opacity: 0; border: 3px solid; }
.swipe-card .lab.l { left: 16px; color: #f59f00; transform: rotate(-12deg); }
.swipe-card .lab.r { right: 16px; color: #4c8dff; transform: rotate(12deg); }
.swipe-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.swipe-btns button { border-radius: 12px; padding: 12px 4px; font-weight: 600; border: 1px solid var(--line); background: var(--card); }
.tx-amt.in { color: var(--accent); }
.pill { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }

/* ---- pastel redesign ---- */
body { background: linear-gradient(180deg, #dff1fd 0%, #f3f8fc 260px, #f3f8fc 100%) fixed; }
.page, .panel { background: transparent; }
.panel { background: var(--bg); }
.panel-top { background: rgba(243,248,252,.96); }
.card, .tile, .quick button, .bigbtns button.alt { border: 0; box-shadow: var(--shadow); border-radius: 22px; }
.card h2 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 700; }
.page-h h1 { font-weight: 800; }
.tile .l { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.tile .v { font-weight: 800; }
.btn { border-radius: 16px; font-weight: 700; }
.btn.ghost, .btn.danger { background: var(--bg); border: 0; }
.chip { border: 0; background: #eef3f8; font-weight: 600; }
.chip.on { background: var(--accent); color: #fff; }
.seg { background: #eef3f8; border: 0; border-radius: 14px; }
.seg button.on { border-radius: 11px; }
input[type=text], input[type=number], input[type=date], input[type=password], select, textarea { background: #f3f7fb; border: 0; border-radius: 14px; }
.dots { background: rgba(255,255,255,.95); border: 0; box-shadow: 0 8px 30px rgba(40,70,110,.16); }
.sheet-card { border-radius: 28px 28px 0 0; }
.progress { height: 6px; background: #edf1f6; }
.list .item { border-top-color: #f0f3f7; }

.monthpill { display: flex; justify-content: center; margin: 2px 0 6px; }
.monthpill button { border: 0; background: #fff; box-shadow: var(--shadow); border-radius: 99px; padding: 7px 14px; font-weight: 700; color: var(--accent); font-size: 15px; }
.monthpill .arrow { background: transparent; box-shadow: none; color: var(--muted); padding: 7px 10px; }
.review-btn { position: relative; border: 0; background: #fff; color: #3b82f6; font-weight: 700; box-shadow: var(--shadow); border-radius: 12px; padding: 8px 14px; font-size: 15px; }
.review-btn .badge { position: absolute; top: -7px; right: -7px; background: var(--bad); color: #fff; font-size: 11px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 99px; padding: 0 6px; text-align: center; }
.gauge { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge .center { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge .center .l { color: var(--muted); font-size: 13px; font-weight: 600; }
.gauge .center .v { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.gauge .center .s { color: var(--muted); font-size: 13px; }
.catrow { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0f3f7; }
.catrow:first-child { border-top: 0; }
.catrow .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; }
.catrow .nm { font-weight: 600; font-size: 15px; }
.catrow .bar { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: #edf1f6; overflow: hidden; margin-top: -4px; }
.catrow .bar i { display: block; height: 100%; border-radius: 99px; }
.catrow .amt { font-size: 14px; color: var(--muted); text-align: right; }
.catrow .amt b { color: var(--ink); }
.txrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f3f7; }
.txrow:first-child { border-top: 0; }
.txrow .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.txrow .nm { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txrow .sub { color: var(--muted); font-size: 12px; }
.txrow .amt { font-weight: 700; font-size: 15px; }
.txrow .amt.in { color: #16a34a; }
.dayhead { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 2px; }
.safe-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.safe-mini div { background: #f3f7fb; border-radius: 14px; padding: 10px 8px; text-align: center; }
.safe-mini .v { font-weight: 800; font-size: 17px; }
.safe-mini .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.swipe-card .lab.d { left: 50%; bottom: 16px; top: auto; transform: translateX(-50%); color: #10b981; }
.tile { position: relative; overflow: hidden; }
.tile::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--tint, #e6f8f4); opacity: .8; }
.tile > * { position: relative; z-index: 1; }
.quick button { font-weight: 600; }
.bigbtns button { border-radius: 20px; box-shadow: 0 8px 20px rgba(43,196,164,.28); }
.bigbtns button.alt { box-shadow: var(--shadow); background: #fff; }
.habit .check { border-color: #dde4ec; }

/* home: rings on both sides, character in the middle */
.stage { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 2px; margin: 4px -8px 16px; }
.stage .col { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.stage .mid { position: relative; height: 380px; }
.stage .mid #avatarBox { position: absolute; top: 0; bottom: 34px; left: -26px; right: -26px; }
.stage .avatar-glow { bottom: 38px; width: 110px; }
.stage .avatar-tag { bottom: 0; line-height: 1.25; }
.sring { position: relative; width: 104px; height: 104px; border: 0; padding: 0; background: none; filter: drop-shadow(0 6px 14px rgba(40,70,110,.12)); }
.sring svg { width: 100%; height: 100%; display: block; }
.sring .in { position: absolute; inset: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sring .l { font-size: 10px; font-weight: 700; color: var(--muted); line-height: 1.1; }
.sring .v { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; color: var(--ink); }
.sring .s { font-size: 9.5px; color: var(--muted); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; }
@media (max-width: 370px) { .sring { width: 94px; height: 94px; } .sring .v { font-size: 15px; } }
#avatarBox canvas { width: 100% !important; height: 100% !important; display: block; touch-action: pan-y; }
.stage .mid { overflow: visible; }
