:root {
  --bg: #e6fbc4;
  --bg-2: #d3f59a;
  --card: #fbfff3;
  --text: #143a20;
  --muted: #5b7f5f;
  --line: #d6efb4;
  --green: #22a35a;
  --green-2: #3cc46f;
  --lime: #d9f99d;
  --lime-2: #ecfccb;
  --gold: #f5b91c;
  --bad: #e2533c;
  --shadow: 0 12px 30px rgba(40, 110, 30, 0.14);
  --hd-bg: #fbfff3; --hd-text: #143a20; --hd-muted: #5b7f5f; --hd-field: #eefbd8; --hd-accent: #22a35a; --hd-accent-ink: #fff; --hd-shadow: rgba(34, 163, 90, 0.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1d12; --bg-2: #15301a; --card: #172a1a; --text: #e3f7d6; --muted: #9cc29a; --line: #24402a; --lime: #2b4a1f; --lime-2: #213a1c;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    --hd-bg: #172a1a; --hd-text: #e3f7d6; --hd-muted: #9cc29a; --hd-field: #213a24;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--text);
  font: 15px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 520px at 100% -10%, var(--bg-2), transparent 62%),
    radial-gradient(800px 480px at -10% 110%, var(--bg-2), transparent 60%), var(--bg);
}
button { font: inherit; color: inherit; cursor: pointer; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px 8px; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand span { display: grid; line-height: 1.2; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.brand small { color: var(--muted); font-size: 13px; }
.top-right { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; }
.coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe680, var(--gold) 60%, #d18f00); box-shadow: inset 0 0 0 2px #d18f00; display: inline-block; }
.pill.bump { animation: bump 0.5s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.account { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 5px; border: 0; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-2), var(--green)); color: #fff; font-weight: 800; }

.layout { max-width: 1180px; margin: 0 auto; padding: 8px 20px 40px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.pond-card { position: relative; background: linear-gradient(180deg, #b9ecff, #dff8ff 45%, var(--lime) 46%); border-radius: 32px; box-shadow: var(--shadow); overflow: hidden; border: 3px solid #fff; }
#pond { display: block; width: 100%; height: auto; }
.speech {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); max-width: 80%; z-index: 2;
  padding: 10px 16px; border-radius: 20px; background: #fff; color: #143a20; font-weight: 700; font-size: 14.5px; text-align: center;
  box-shadow: 0 8px 20px rgba(20, 60, 30, 0.18);
}
.speech::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.speech.pop { animation: pop 0.35s ease; }
@keyframes pop { from { transform: translateX(-50%) scale(0.85); opacity: 0.5; } }
.frog-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px 18px; background: var(--card); }
.frog-name { border: 0; background: none; padding: 0; font-size: 22px; font-weight: 800; text-decoration: underline dotted transparent; }
.frog-name:hover { text-decoration-color: var(--muted); }
.frog-info small { display: block; color: var(--muted); font-weight: 600; }
.xp { flex: 1; min-width: 180px; max-width: 320px; }
.xp-bar { height: 14px; border-radius: 999px; background: var(--lime-2); overflow: hidden; border: 2px solid var(--line); }
.xp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-2), var(--green)); border-radius: inherit; transition: width 0.6s ease; }
.xp small { text-align: right; margin-top: 2px; font-size: 12.5px; }

.side { background: var(--card); border-radius: 32px; box-shadow: var(--shadow); padding: 18px; border: 3px solid #fff; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--lime-2); margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(34, 163, 90, 0.35); }
.progress-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress { height: 10px; border-radius: 999px; background: var(--lime-2); overflow: hidden; margin-bottom: 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width 0.5s ease; }
.habits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.habit {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px;
  border-radius: 22px; background: var(--lime); border: 2px solid transparent; transition: background 0.2s, transform 0.15s;
}
.habit .ic { width: 46px; height: 46px; border-radius: 16px; background: #fff8; display: grid; place-items: center; font-size: 24px; }
.habit b { display: block; font-size: 15.5px; line-height: 1.25; }
.habit small { color: var(--muted); font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.habit small .coin { width: 13px; height: 13px; }
.habit .edit { border: 0; background: none; padding: 0; text-align: left; min-width: 0; }
.done-btn {
  min-width: 74px; height: 46px; border: 0; border-radius: 999px; font-weight: 800; background: var(--green); color: #fff;
  box-shadow: 0 4px 12px rgba(34, 163, 90, 0.3);
}
.habit.done { background: var(--lime-2); border-color: var(--line); }
.habit.done b { text-decoration: line-through; text-decoration-color: var(--green); opacity: 0.7; }
.habit.done .done-btn { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.habit.flash { animation: flash 0.5s ease; }
@keyframes flash { 40% { transform: scale(1.03); } }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.empty b { display: block; font-size: 34px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.sub { font-weight: 800; margin: 16px 0 8px; }

.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.item { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 20px; background: var(--lime-2); border: 2px solid transparent; text-align: center; font-weight: 700; font-size: 13.5px; }
.item svg { width: 100%; max-width: 90px; height: 70px; }
.item .price { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.item .price .coin { width: 14px; height: 14px; }
.item.owned { background: var(--lime); }
.item.on { border-color: var(--green); }
.item .state { font-size: 12px; color: var(--muted); }
.item.cant { opacity: 0.6; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px; border-radius: 18px; background: var(--lime-2); text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 800; }
.stat small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--lime-2); }
.heat i.l1, .legend .l1 { background: #bde98c; }
.heat i.l2, .legend .l2 { background: #7fd36b; }
.heat i.l3, .legend .l3 { background: #3cc46f; }
.heat i.l4, .legend .l4 { background: #1d8a4a; }
.heat i.future { background: transparent; }
.legend { display: flex; gap: 4px; align-items: center; justify-content: flex-end; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--lime-2); }
.streaks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.streaks li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--lime-2); font-weight: 600; }

.btn { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 800; background: var(--lime-2); color: var(--text); }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(34, 163, 90, 0.35); }
.btn.small { padding: 8px 14px; font-size: 13.5px; background: var(--lime); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
:is(.btn, .done-btn, .tabs button, .item, .account, .icons button, .diffs button):focus-visible { outline: 3px solid #3aa0ff; outline-offset: 2px; }

.welcome { max-width: 560px; margin: 2vh auto 40px; padding: 0 20px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.welcome svg { width: min(420px, 100%); height: auto; border-radius: 32px; background: linear-gradient(180deg, #b9ecff, #dff8ff 45%, var(--lime) 46%); box-shadow: var(--shadow); border: 3px solid #fff; }
.welcome h1 { margin: 6px 0 0; font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.welcome p { margin: 0; color: var(--muted); font-size: 16px; }
.welcome small { color: var(--muted); }

.sheet { width: min(440px, calc(100vw - 24px)); border: 0; border-radius: 28px; padding: 0; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.sheet::backdrop { background: rgba(10, 40, 15, 0.4); }
.sheet form { padding: 22px; display: grid; gap: 14px; }
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; font-size: 20px; }
.x { border: 0; background: none; font-size: 26px; color: var(--muted); }
.field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.field input { font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 14px; border: 2px solid var(--line); background: var(--lime-2); color: var(--text); outline: none; }
.field input:focus { border-color: var(--green); }
.icons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.icons button { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; background: var(--lime-2); font-size: 22px; }
.icons button[aria-pressed="true"] { border-color: var(--green); background: var(--lime); }
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.diffs button { border-radius: 14px; border: 2px solid transparent; background: var(--lime-2); padding: 9px 4px; font-weight: 800; display: grid; }
.diffs button small { font-weight: 600; color: var(--muted); }
.diffs button[aria-pressed="true"] { border-color: var(--green); background: var(--lime); }
.sheet-actions { display: flex; justify-content: space-between; gap: 8px; }
.sheet-actions .primary { margin-left: auto; }
.err { margin: 0; color: var(--bad); font-weight: 600; }

.celebrate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10, 40, 15, 0.5); padding: 20px; }
.cel-card { width: min(420px, 100%); background: var(--card); border-radius: 32px; padding: 20px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: rise 0.4s ease both; }
.cel-card svg { width: 100%; border-radius: 24px; background: linear-gradient(180deg, #b9ecff, #dff8ff 45%, var(--lime) 46%); }
.cel-card h2 { margin: 12px 0 4px; font-size: 24px; }
.cel-card p { margin: 0 0 14px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(0.95); } }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 150%); visibility: hidden;
  padding: 12px 18px; border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, visibility 0.3s; z-index: 50; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.err { background: var(--bad); color: #fff; }

/* frog animation hooks inside the svg */
.frog-g { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3s ease-in-out infinite; }
.frog-g.jump { animation: jump 0.7s ease; }
@keyframes breathe { 50% { transform: scaleY(0.97) scaleX(1.02); } }
@keyframes jump { 30% { transform: translateY(-34px) scaleY(1.06); } 60% { transform: translateY(0) scaleY(0.92); } }
.wobble { transform-box: fill-box; transform-origin: 50% 100%; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(3deg) scaleY(1.03); } }
.swim { animation: swim 4s ease-in-out infinite; }
@keyframes swim { 50% { transform: translateX(14px); } }
.fly { animation: fly 7s ease-in-out infinite; }
@keyframes fly { 25% { transform: translate(60px, -20px); } 50% { transform: translate(120px, 10px); } 75% { transform: translate(50px, 24px); } }
.glow { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.25; } }
.ripple { animation: ripple 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ripple { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.4); opacity: 0; } }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top { padding: max(12px, env(safe-area-inset-top)) 14px 6px; }
  .brand small { display: none; }
  .brand b { font-size: 16px; }
  .brand img { width: 36px; height: 36px; }
  .top-right { width: 100%; }
  .account { margin-left: auto; }
  .account #account-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .layout { padding: 6px 12px 30px; gap: 12px; }
  .side { padding: 14px; border-radius: 26px; }
  .pond-card { border-radius: 26px; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speech { font-size: 13.5px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* fly game, neighbours */
.frog-info { position: relative; }
.game-btn { background: var(--lime); }
.game-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.game { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(10, 40, 15, 0.55); }
.game-card { width: min(620px, 100%); background: var(--card); border-radius: 28px; padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.game-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin: 2px 6px 10px; }
.game-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.game-field { position: relative; border-radius: 22px; overflow: hidden; touch-action: manipulation; user-select: none; }
.game-field svg { display: block; width: 100%; height: auto; }
.fly { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; padding: 0; background: none; cursor: crosshair; font-size: 28px; line-height: 44px; text-align: center; }
.fly.got { pointer-events: none; animation: got 0.4s ease forwards; }
@keyframes got { to { transform: scale(0.2) translateY(30px); opacity: 0; } }
.plus { position: absolute; pointer-events: none; font-weight: 800; color: var(--green); animation: plus 0.7s ease forwards; }
@keyframes plus { to { transform: translateY(-30px); opacity: 0; } }
.game-tip { color: var(--muted); font-size: 13.5px; margin: 10px 6px; text-align: center; }
.game-actions { display: flex; gap: 8px; justify-content: center; }
.share-toggle { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--lime); font-weight: 700; cursor: pointer; }
.share-toggle input { width: 20px; height: 20px; accent-color: var(--green); }
.pond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.neighbour { border-radius: 20px; overflow: hidden; background: var(--lime-2); border: 2px solid transparent; }
.neighbour.mine { border-color: var(--green); }
.neighbour svg { display: block; width: 100%; height: auto; }
.neighbour div { padding: 8px 10px 10px; }
.neighbour b { display: block; font-size: 14.5px; }
.neighbour small { display: block; color: var(--muted); font-size: 12px; }
/* counted habits, badges */
.count { display: flex; align-items: center; gap: 6px; }
.count .minus { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff8; font-weight: 800; font-size: 18px; color: var(--text); }
.count .done-btn { min-width: 74px; }
.count-bar { height: 5px; border-radius: 999px; background: #fff8; overflow: hidden; margin-top: 4px; max-width: 160px; }
.count-bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 14px; border: 0; background: var(--lime); font-size: 20px; font-weight: 800; color: var(--text); }
.stepper output { min-width: 28px; text-align: center; font-size: 20px; font-weight: 800; color: var(--text); }
.stepper small { color: var(--muted); font-weight: 600; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.badge { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 18px; background: var(--lime-2); text-align: center; }
.badge .e { font-size: 28px; line-height: 1.2; }
.badge b { font-size: 12.5px; line-height: 1.2; }
.badge small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.badge.locked { opacity: 0.45; }
.badge.locked .e { filter: grayscale(1); }
.sub small { color: var(--muted); font-weight: 600; }
/* schedule, charm */
.habit.off { opacity: 0.55; }
.off-head { list-style: none; margin: 6px 4px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.days button { border-radius: 12px; border: 2px solid transparent; background: var(--lime-2); padding: 8px 0; font-weight: 800; font-size: 13px; }
.days button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.charm { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 12px; border-radius: 20px; background: linear-gradient(135deg, #e3f7ff, #eafbd8); border: 2px solid var(--line); }
.charm-art { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: #fff; }
.charm b { display: block; }
.charm small { color: var(--muted); font-size: 12.5px; }
.charm .btn { display: inline-flex; align-items: center; gap: 5px; }
.charm .btn .coin { width: 14px; height: 14px; }
.charm .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.heat i.charm-day { background: #8fd3ff; }

/* icon tiles (shared/icons.css) */
.habit .ic:has(> .ci) { background: none; }
.habit .ci { width: 46px; height: 46px; border-radius: 16px; font-size: 23px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.icons button { display: grid; place-items: center; padding: 0; }
.icons button .ci { width: 36px; height: 36px; font-size: 20px; background: none; }
.badge .ci { width: 44px; height: 44px; border-radius: 15px; font-size: 22px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.charm-art:has(> .ci) { background: none; }
.charm-art .ci { width: 48px; height: 48px; border-radius: 16px; font-size: 24px; background: #fff; }
.empty b .ci { width: 58px; height: 58px; border-radius: 19px; font-size: 30px; margin-bottom: 6px; }
.pill.fire .hdi, .fire .hdi { color: #f47b2a; }
.pill .hdi { width: 20px; height: 20px; }
.game-btn { display: inline-flex; align-items: center; gap: 6px; }
.game-btn .hdi { width: 20px; height: 20px; }
.fly { color: #23302a; }
.fly .hdi { width: 32px; height: 32px; vertical-align: middle; fill: rgba(255, 255, 255, 0.75); }
@media (prefers-color-scheme: dark) {
  .habit .ci, .badge .ci { background: color-mix(in srgb, var(--c) 22%, transparent); }
  .charm-art .ci { background: var(--card); }
}
@media (max-width: 520px) {
  .tabs button { font-size: 13.5px; padding: 10px 2px; }
}
.streaks li { align-items: center; }
.streaks li > span { display: inline-flex; align-items: center; gap: 10px; }
.streaks .ci { width: 32px; height: 32px; border-radius: 11px; font-size: 17px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.streaks .fire { gap: 4px; font-weight: 800; }
@media (min-width: 901px) {
  .pond-card { position: sticky; top: 12px; }
}

/* night sky */
.star { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.25; } }

/* frog actions */
.frog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-btn { background: #e3ecff; color: #3a4ea0; }
.focus-btn.running { background: #3a4ea0; color: #fff; font-variant-numeric: tabular-nums; }

/* mood journal */
.mood-card { padding: 12px 14px; border-radius: 22px; background: var(--lime-2); margin-bottom: 14px; display: grid; gap: 8px; }
.mood-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mood-head small { color: var(--muted); font-weight: 700; }
.mood-head span { font-weight: 800; color: var(--green); }
.mood-faces { display: flex; gap: 6px; justify-content: space-between; }
.mood-faces button { flex: 1; border: 2px solid transparent; background: var(--card); border-radius: 16px; padding: 6px 0; display: grid; place-items: center; transition: transform 0.15s; }
.mood-faces button:hover { transform: translateY(-2px); }
.mood-faces button[aria-pressed="true"] { border-color: var(--green); transform: scale(1.06); }
.mood-card:has([aria-pressed="true"]) .mood-faces button[aria-pressed="false"] { opacity: 0.55; }
#mood-note { font: inherit; padding: 9px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); outline: none; }
#mood-note:focus { border-color: var(--green); }
.mood-strip { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.mood-strip span { aspect-ratio: 1; display: grid; place-items: center; }
.mood-strip svg { width: 100%; height: 100%; }
.mood-strip .none::before { content: ""; width: 40%; height: 40%; border-radius: 50%; background: var(--line); }
.mood-notes { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.mood-notes li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 14px; background: var(--lime-2); font-size: 14px; }
.mood-notes small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.mood-notes svg { flex: none; margin-top: 2px; }

/* focus timer */
.focus-card { width: min(420px, 100%); text-align: center; }
.focus-ring { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 4px auto 10px; }
.focus-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.focus-ring .track { stroke: var(--lime-2); }
.focus-ring .prog { stroke: var(--green); stroke-dasharray: 553; stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s linear; }
.focus-center { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; display: grid; grid-template-rows: 1fr auto; background: #dff3ff; }
.focus-center svg { width: 100%; height: 100%; }
.focus-center b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 0 8px; background: var(--card); }
.focus-mins { margin: 0 0 4px; }
@media (max-width: 560px) {
  .frog-actions { flex: 1 1 100%; flex-wrap: nowrap; }
  .frog-actions .btn { flex: 1; justify-content: center; padding: 11px 10px; }
}
