:root {
  color-scheme: light;
  --bg: #f8f6fc;
  --panel: #fffdff;
  --ink: #302544;
  --muted: #685e75;
  --line: #e9e1f1;
  --accent: #62428f;
  --tint: #ebdff9;
  --hero-a: #eee3fb;
  --hero-b: #f8e6f4;
  --pup: #dabdf2;
  --pup-light: #f5e6ff;
  --pup-dark: #9c76bd;
  --shadow: 0 12px 35px #49326c0c;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
:root[data-theme=peach] { --bg:#fff8f4; --panel:#fffdfb; --ink:#492b31; --muted:#795e64; --line:#f0e2db; --accent:#8d435c; --tint:#f8dfdb; --hero-a:#fce6d6; --hero-b:#fbe2e7; --pup:#efbbb1; --pup-light:#fff0df; --pup-dark:#bd7778; }
:root[data-theme=mint] { --bg:#f4faf6; --panel:#fcfffd; --ink:#253d36; --muted:#526c62; --line:#dcece3; --accent:#326854; --tint:#dcefe4; --hero-a:#dcefe1; --hero-b:#eef1d9; --pup:#b9daca; --pup-light:#e9f9e9; --pup-dark:#77a896; }
:root[data-theme=sky] { --bg:#f4f8ff; --panel:#fcfdff; --ink:#233954; --muted:#536881; --line:#dfE8f5; --accent:#375e91; --tint:#dceafa; --hero-a:#dcecff; --hero-b:#ece4fc; --pup:#bad4f9; --pup-light:#edf5ff; --pup-dark:#7799c7; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; }
h1,h2,h3,p { margin:0; }
a { color:inherit; text-decoration:none; }
img { display:block; width:100%; }
button,input,select { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.58; cursor:default; }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.topbar { background:var(--panel); border-bottom:1px solid var(--line); }
.top-inner { width:min(100% - 44px, 1120px); height:76px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.brand { display:inline-flex; gap:11px; align-items:center; font-size:1.04rem; font-weight:760; letter-spacing:-.03em; flex-shrink:0; }
.brand-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:14px; background:var(--tint); }
.brand-mark img { width:28px; }
.brand-sub { color:var(--accent); }
.account { display:inline-flex; align-items:center; min-width:0; gap:9px; border:1px solid var(--line); border-radius:999px; padding:4px 11px 4px 4px; background:var(--bg); color:var(--ink); font-size:.85rem; font-weight:700; }
.account span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.avatar { display:grid; flex:none; place-items:center; width:30px; height:30px; border-radius:50%; color:var(--accent); background:var(--tint); }
.wrap { width:min(100% - 44px, 1040px); margin:38px auto 0; padding-bottom:125px; }
.hero { position:relative; isolation:isolate; display:grid; align-items:center; grid-template-columns:1fr minmax(205px, 35%); overflow:hidden; min-height:275px; gap:15px; padding:31px clamp(23px, 5vw, 55px); border:1px solid var(--line); border-radius:32px; background:linear-gradient(112deg,var(--hero-a),var(--hero-b)); }
.hero h1, .screen-title h1, .signin h1 { font-family:Georgia,serif; font-weight:500; line-height:1.05; letter-spacing:-.055em; font-size:clamp(2.5rem,5vw,4.2rem); overflow-wrap:anywhere; }
.hero p { margin-top:12px; color:var(--muted); line-height:1.55; }
.kicker { display:block; color:var(--accent); font-weight:750; font-size:.78rem; letter-spacing:.13em; text-transform:uppercase; margin-bottom:13px; }
.hero-art { position:relative; min-height:204px; display:grid; place-items:center; pointer-events:none; }
.orbit { position:absolute; width:199px; height:199px; border:1px solid #fff9; border-radius:50%; box-shadow:0 0 0 16px #fff3,0 0 0 32px #fff2; }
.spark { position:absolute; color:var(--accent); font-size:1.55rem; line-height:1; top:19%; right:12%; opacity:.75; }
.spark.two { top:auto; right:auto; left:8%; bottom:22%; font-size:1.1rem; }
.spark.three { top:13%; right:auto; left:17%; font-size:.85rem; }
.puppy { position:relative; width:130px; height:115px; transform:rotate(-8deg); box-shadow:inset -12px -11px 0 #0000000a,0 13px 15px #2710421a; border-radius:48% 48% 45% 45%; background:var(--pup); }
.puppy::before,.puppy::after { content:""; position:absolute; width:34px; height:66px; top:9px; border-radius:48% 55% 60% 52%; background:var(--pup-dark); }
.puppy::before { left:-12px; transform:rotate(28deg); }
.puppy::after { right:-12px; transform:rotate(-28deg); }
.puppy-face { position:absolute; z-index:1; inset:6px; border-radius:45%; background:radial-gradient(ellipse at 34% 50%,var(--ink) 0 4%,transparent 5%),radial-gradient(ellipse at 66% 50%,var(--ink) 0 4%,transparent 5%),radial-gradient(ellipse at 50% 77%,var(--pup-light) 0 27%,transparent 28%); }
.puppy-face::before { content:""; position:absolute; width:17px; height:12px; left:50%; top:61%; translate:-50%; border-radius:55% 55% 65% 65%; background:var(--ink); }
.puppy-face::after { content:""; position:absolute; width:18px; height:9px; left:50%; top:72%; translate:-50%; border-bottom:2px solid var(--ink); border-radius:0 0 50% 50%; }
.overview { margin-top:22px; display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.3fr); gap:20px; align-items:start; }
.column { display:grid; gap:20px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:24px; padding:24px; box-shadow:var(--shadow); min-width:0; }
.panel h2 { font-size:1.14rem; letter-spacing:-.025em; }
.panel p,.screen-title p { color:var(--muted); line-height:1.55; }
.panel-title { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.balance { padding-top:21px; }
.balance-value { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; line-height:1.05; margin:9px 0 9px; }
.balance-value strong { font-family:Georgia,serif; font-size:clamp(2.6rem,6vw,4rem); color:var(--accent); font-weight:500; letter-spacing:-.05em; }
.balance-value span { color:var(--muted); }
.actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:9px 15px; border-radius:12px; border:1px solid transparent; background:var(--accent); color:#fff; font-weight:700; font-size:.91rem; text-align:center; }
.button.secondary { color:var(--accent); background:var(--tint); }
.button.quiet { color:var(--accent); background:transparent; border-color:var(--line); }
.button:hover:enabled,.button:where(a):hover { filter:brightness(.93); }
.text-link { font-weight:750; color:var(--accent); font-size:.88rem; }
.text-link:hover { text-decoration:underline; }
.list { list-style:none; margin:0; padding:0; }
.row { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:11px; align-items:center; padding:12px 0; border-top:1px solid var(--line); }
.row-icon { width:37px; height:37px; display:grid; place-items:center; background:var(--tint); border-radius:12px; color:var(--accent); font-weight:750; }
.row-title { font-weight:700; overflow-wrap:anywhere; }
.meta { display:block; color:var(--muted); font-size:.84rem; margin-top:3px; line-height:1.4; }
.delta { font-variant-numeric:tabular-nums; color:var(--accent); font-weight:750; text-align:right; }
.empty { border:1px dashed var(--line); border-radius:16px; padding:19px; background:var(--bg); }
.nav { position:fixed; z-index:2; bottom:max(14px,env(safe-area-inset-bottom)); left:50%; translate:-50%; display:grid; grid-template-columns:repeat(3,1fr); gap:5px; width:min(380px,100% - 32px); padding:6px; border:1px solid var(--line); border-radius:22px; background:var(--panel); box-shadow:0 8px 36px #34214a24; }
.nav a { display:flex; justify-content:center; align-items:center; gap:7px; min-height:49px; border-radius:16px; color:var(--muted); font-size:.92rem; font-weight:650; }
.nav a[aria-current=page],.nav a:hover { background:var(--tint); color:var(--accent); }
.nav-icon { display:block; width:18px; height:18px; background:currentColor; mask:center / contain no-repeat var(--icon); }
[data-page=home] { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7v9h-6v-6H9v6H3z'/%3E%3C/svg%3E"); }
[data-page=shop] { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l1 12H3zM8 9V7a4 4 0 0 1 8 0v2'/%3E%3C/svg%3E"); }
[data-page=settings] { --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16M8 4v4m8 2v4m-6 2v4'/%3E%3C/svg%3E"); }
.screen-title { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:14px; margin:3px 0 24px; }
.screen-title p { margin-top:9px; }
.shop-grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); }
.reward-card { display:grid; align-content:start; gap:12px; }
.reward-card h2 { overflow-wrap:anywhere; }
.reward-card .button { justify-self:start; }
.settings { display:grid; gap:18px; max-width:650px; }
form { display:grid; gap:14px; }
label { display:grid; gap:6px; font-size:.91rem; font-weight:710; }
input:not([type=radio]) { min-width:0; width:100%; min-height:43px; padding:9px 12px; border-radius:11px; border:1px solid var(--line); background:var(--bg); color:var(--ink); }
fieldset { border:0; padding:0; margin:6px 0; min-width:0; }
legend { padding:0; margin-bottom:8px; font-weight:720; }
.swatches { display:grid; grid-template-columns:repeat(auto-fit,minmax(103px,1fr)); gap:8px; }
.swatch { display:flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:12px; padding:9px; background:var(--bg); cursor:pointer; }
.swatch input { margin:0; accent-color:var(--accent); }
.swatch:has(:checked) { border-color:var(--accent); color:var(--accent); }
.swatch-color { width:13px; height:13px; border-radius:50%; border:1px solid #0002; background:var(--swatch); }
.signin { max-width:465px; margin:clamp(20px,7vw,80px) auto 0; padding:clamp(23px,4vw,36px); }
.signin p { margin:13px 0 21px; }
.signin .brand-mark { margin-bottom:15px; }
.signin .button { width:100%; }
#error,.form-error,.offline { color:#8f2f47; }
.form-error { font-size:.92rem; margin:0; }
.offline { margin-bottom:13px; }
dialog { width:min(460px,100% - 32px); border:1px solid var(--line); border-radius:23px; padding:24px; color:var(--ink); background:var(--panel); }
dialog::backdrop { background:#221a36a0; }
dialog h2 { font-size:1.35rem; margin-bottom:14px; }
dialog p { color:var(--muted); }
dialog .actions { justify-content:flex-end; margin-top:4px; }
#toast { position:fixed; z-index:3; left:50%; bottom:93px; translate:-50%; width:max-content; max-width:calc(100% - 32px); padding:11px 17px; border-radius:14px; color:#fff; background:var(--accent); box-shadow:var(--shadow); }
@media (max-width:670px) {
  .wrap { margin-top:20px; }
  .top-inner { height:63px; }
  .hero { grid-template-columns:1fr minmax(90px,33%); gap:0; min-height:210px; padding:22px; }
  .hero-art { min-height:145px; scale:.66; }
  .overview { grid-template-columns:1fr; gap:14px; margin-top:14px; }
  .column { gap:14px; }
  .panel { padding:18px; }
}
@media (max-width:380px) {
  .top-inner,.wrap { width:calc(100% - 28px); }
  .hero { grid-template-columns:minmax(0,1fr) 76px; padding:17px; }
  .hero-art { scale:.48; }
  .hero h1 { font-size:2.15rem; }
}
[data-swatch=lavender] { --swatch:#d4b8f0; }
[data-swatch=peach] { --swatch:#f2bbad; }
[data-swatch=mint] { --swatch:#a9d8be; }
[data-swatch=sky] { --swatch:#afcef5; }
.avatar { overflow:hidden; }
.avatar img { height:100%; object-fit:cover; }
.profile-picture { display:flex; flex-wrap:wrap; align-items:center; gap:13px; }
.profile-picture .avatar { width:57px; height:57px; font-size:1.28rem; }
.profile-picture input[type=file] { min-height:0; max-width:100%; padding:7px; }
.profile-picture .button { margin-top:7px; min-height:36px; }