:root {
  --blue: #0267F9;
  --blue-deep: #0148B5;
  --fur: #E5832F;
  --fur-light: #FF8A3D;
  --fur-deep: #B85E14;
  --cream: #FFF3DF;
  --cream-2: #FFE8C4;
  --ink: #0B1220;
  --ink-soft: #3A4152;
  --white: #FFFFFF;
  --ok: #17B26A;
  --err: #E5484D;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5;
  background-image: radial-gradient(rgba(11,18,32,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.display { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.mono { font-family: "JetBrains Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
a { color: inherit; }
b, strong { font-weight: 700; }
code { font-family: "JetBrains Mono", monospace; font-size: 0.9em; background: var(--cream-2); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: 0.55; cursor: progress; }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 3px solid var(--ink); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.navlinks { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.navlinks a { text-decoration: none; opacity: 0.75; }
.navlinks a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--fur); }
@media (max-width: 760px) { .navlinks { display: none; } }
.btn {
  border: 3px solid var(--ink); border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 15px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .08s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.fur { background: var(--fur-light); }
.btn.blue { background: var(--blue); color: var(--white); }
.btn.connected { background: var(--ok); color: var(--white); }

/* ---------- hero ---------- */
.hero { background: var(--blue); color: var(--white); border-bottom: 3px solid var(--ink); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 64px 22px 48px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding: 40px 22px 24px; } }
.gm { font-size: 22px; color: var(--fur-light); text-transform: lowercase; display: inline-block; transform: rotate(-3deg); }
.gm::after { content: " ☀"; }
.gm.night::after { content: " ☾"; }
#status.live { color: #8CFFB9; }
.pets { margin-top: 22px; font-size: 14px; opacity: 0.92; }
.pets .mono { font-weight: 700; color: var(--fur-light); font-size: 16px; }
.linkbtn { background: none; border: none; color: var(--white); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--fur-light); text-underline-offset: 3px; padding: 0; }
.linkbtn:hover { color: var(--fur-light); }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 0.95; margin: 20px 0 16px; text-transform: uppercase; }
.hero h1 .fur { color: var(--fur-light); -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
.hero p.lede { font-size: 18px; max-width: 520px; margin: 0 0 26px; opacity: 0.95; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-dog { width: 100%; max-width: 480px; filter: drop-shadow(8px 10px 0 rgba(11,18,32,0.9)); cursor: pointer; position: relative; z-index: 2; user-select: none; -webkit-user-drag: none; }
.hero-dog:active { transform: scale(0.97) rotate(-1deg); }
.hero-dog.happy { animation: happy .5s ease; }
@keyframes happy { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-18px) rotate(-3deg) scale(1.03); } 60% { transform: translateY(0) rotate(2deg); } 100% { transform: translateY(0) rotate(0); } }
.bg-dog { position: absolute; width: 70px; opacity: 0.35; filter: grayscale(0.2) drop-shadow(3px 3px 0 var(--ink)); pointer-events: none; z-index: 1; }
.bg-dog.bd1 { top: -6%; right: 8%; animation: float 7s ease-in-out infinite; }
.bg-dog.bd2 { bottom: -4%; left: 4%; width: 90px; animation: float 9s ease-in-out infinite reverse; }
.bg-dog.bd3 { top: 55%; left: -4%; width: 54px; animation: float 6s ease-in-out infinite 1s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
.bob { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.wobble { animation: wobble 5s ease-in-out infinite; }
.sticker.s2.wobble { animation-delay: 1.2s; } .sticker.s3.wobble { animation-delay: 2.4s; }
@keyframes wobble { 0%,100% { rotate: 0deg; } 25% { rotate: 3deg; } 75% { rotate: -3deg; } }
.sticker { z-index: 3; }
/* ---------- reveal / pop ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .22s; } .reveal.d3 { animation-delay: .34s; } .reveal.d4 { animation-delay: .46s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.pop { opacity: 0; transform: scale(.92) translateY(10px); animation: pop .55s cubic-bezier(.2,.9,.3,1.3) .5s forwards; }
.pop.d1 { animation-delay: .62s; } .pop.d2 { animation-delay: .74s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.in-view { animation: reveal .6s cubic-bezier(.2,.8,.2,1) both; }
.rainbow { background: linear-gradient(90deg, var(--fur-light), var(--blue), #5EE3A4, var(--fur-light)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }
.wag { display: inline-block; animation: wag 1s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wag { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.ticker-2 { background: var(--fur-light); color: var(--ink); }
.ticker-2 .ticker-track span b { color: var(--blue); }
.ticker-track.rev { animation-direction: reverse; animation-duration: 40s; }
/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border: 2px solid var(--ink); border-radius: 3px; animation: fall linear forwards; }
.confetti img { position: absolute; top: -60px; width: 48px; animation: fall linear forwards; filter: drop-shadow(2px 2px 0 var(--ink)); }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
.stat .v.bump { animation: bump .4s ease; }
@keyframes bump { 30% { transform: scale(1.06); color: var(--fur-deep); } }
@media (prefers-reduced-motion: reduce) { .bob, .wobble, .bg-dog, .rainbow, .wag, .ticker-track { animation: none !important; } .reveal, .pop { opacity: 1; transform: none; animation: none; } }

.sticker {
  position: absolute; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px;
  padding: 8px 12px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-sm); transform: rotate(-6deg);
}
.sticker.s1 { top: 6%; left: 0; }
.sticker.s2 { bottom: 10%; right: 0; transform: rotate(5deg); background: var(--fur-light); }
.sticker.s3 { top: 40%; right: -6px; transform: rotate(8deg); background: var(--white); }
@media (max-width: 860px) { .sticker.s3 { display: none; } }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap; border-bottom: 3px solid var(--ink); }
.ticker-track { display: inline-block; padding: 10px 0; animation: scroll 32s linear infinite; font-weight: 700; font-size: 13.5px; }
.ticker-track span { margin: 0 24px; }
.ticker-track span b { color: var(--fur-light); }
@keyframes scroll { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: -28px auto 0; position: relative; z-index: 2; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; margin-top: 16px; } }
.stat { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.stat .v { font-size: 30px; font-weight: 800; margin-top: 4px; }
.stat .v small { font-size: 14px; color: var(--ink-soft); margin-left: 6px; }

/* ---------- sections ---------- */
section { padding: 64px 0 24px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 8px; line-height: 1.05; }
.lede { color: var(--ink-soft); max-width: 600px; margin: 0 0 28px; font-size: 16px; }

/* ---------- bowls ---------- */
.bowls { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; justify-items: center; }
.bowl { width: 100%; max-width: 520px; }
@media (min-width: 1040px) { .bowls { grid-template-columns: repeat(3, 1fr); } .bowl { max-width: none; } }
.bowl { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 14px; }
.bowl::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--accent); border-radius: 18px 18px 0 0; }
.bowl-top { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; }
.bowl { transition: transform .15s, box-shadow .15s; }
.bowl:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.bowl-dog { width: 96px; height: 96px; object-fit: contain; flex: none; margin: -30px 0 -10px -8px; transition: transform .2s; filter: drop-shadow(0 4px 0 rgba(11,18,32,.15)); }
.bowl:hover .bowl-dog { animation: wiggle .6s ease; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.08); } 75% { transform: rotate(10deg) scale(1.08); } }
.bowl-stats dd.accent { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%,100% { text-shadow: 0 0 0 rgba(255,138,61,0); } 50% { text-shadow: 0 0 12px rgba(255,138,61,.75); } }
.bowl-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-soft); }
.bowl-name { margin: 2px 0 4px; font-size: 24px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bowl-name .pays { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.bowl-name .pays b { background: var(--accent); color: var(--ink); padding: 2px 8px; border-radius: 999px; border: 2px solid var(--ink); }
.bowl-blurb { margin: 0; font-size: 14px; color: var(--ink-soft); }
.bowl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; }
.bowl-stats dt { font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.bowl-stats dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; word-break: break-word; }
.accent { color: var(--fur-deep); }
.bowl-you { display: grid; gap: 6px; font-size: 14px; }
.bowl-you > div { display: flex; justify-content: space-between; border-bottom: 2px dashed var(--cream-2); padding-bottom: 4px; }
.bowl-you span { color: var(--ink-soft); }
.clicky { cursor: pointer; text-decoration: underline dotted; }
.cooldown { font-size: 13px; min-height: 0; }
.cooldown:not(:empty) { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; }
.cd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fur); margin-right: 6px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.field { display: flex; gap: 8px; }
.field input { flex: 1; border: 3px solid var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 16px; font-family: "JetBrains Mono", monospace; background: var(--white); min-width: 0; }
.field input:focus { outline: none; box-shadow: 0 0 0 3px rgba(2,103,249,0.35); }
.field .max { border: 3px solid var(--ink); border-radius: 12px; background: var(--cream-2); font-weight: 800; padding: 0 14px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btns button, .compound button {
  border: 3px solid var(--ink); border-radius: 12px; padding: 11px 10px; font-weight: 800; font-size: 14px; background: var(--white);
  box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btns button:hover:not(:disabled), .compound button:hover:not(:disabled) { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btns button:active:not(:disabled) { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btns .primary { background: var(--fur-light); grid-column: span 2; font-size: 16px; }
.btns .ghost { background: var(--cream); }
.compound { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.compound select { border: 3px solid var(--ink); border-radius: 10px; padding: 8px 10px; font-family: inherit; font-weight: 700; background: var(--white); }
.compound button { background: var(--blue); color: var(--white); flex: 1; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.step .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 40px; color: var(--blue); line-height: 1; }
.step h3 { margin: 8px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- fee ---------- */
.fee-card { background: var(--ink); color: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center; box-shadow: 6px 6px 0 var(--fur); }
@media (max-width: 860px) { .fee-card { grid-template-columns: 1fr; } }
.fee-card img { width: 100%; max-width: 320px; border-radius: 16px; border: 3px solid var(--cream); }
.fee-big { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 72px; line-height: 1; color: var(--fur-light); }
.fee-card p { font-size: 15px; opacity: 0.95; }
.fee-card a { color: var(--fur-light); }
.fee-meta { display: grid; gap: 6px; font-size: 12px; margin-top: 12px; }
.fee-meta div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; word-break: break-all; }
.fee-meta span:first-child { opacity: 0.6; }

/* ---------- faq ---------- */
.faq details { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 0 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details li { color: var(--ink-soft); font-size: 15px; }
.faq details > *:not(summary) { margin-top: 0; }
.faq details > p:last-child, .faq details > ul:last-child { padding-bottom: 16px; }
.fn { display: grid; grid-template-columns: 220px 1fr; gap: 10px; padding: 6px 0; border-top: 2px dashed var(--cream-2); font-size: 14px; }
.fn code { white-space: nowrap; }
@media (max-width: 600px) { .fn { grid-template-columns: 1fr; } }

/* ---------- log ---------- */
.log { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; max-height: 260px; overflow: auto; font-size: 13.5px; }
.log:empty::before { content: "Nothing yet. The dog is waiting."; color: var(--ink-soft); }
.log-row { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--cream-2); }
.log-time { color: var(--ink-soft); font-family: "JetBrains Mono", monospace; font-size: 12px; flex: none; }
.log-row.ok .log-msg { color: var(--ok); font-weight: 600; }
.log-row.err .log-msg { color: var(--err); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--cream); border: 3px solid var(--cream); border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 14px; max-width: 92vw; transition: all .2s; z-index: 50; box-shadow: var(--shadow-sm); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: var(--ok); } .toast.err { border-color: var(--err); }
.toast a { color: var(--fur-light); }

/* ---------- footer ---------- */
footer { background: var(--blue); color: var(--white); border-top: 3px solid var(--ink); margin-top: 48px; }
footer .wrap { padding: 36px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 14px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer a { color: var(--white); }
footer .disclaimer { opacity: 0.85; font-size: 13px; }
footer img { width: 120px; }

/* ---------- register page ---------- */
.reg { max-width: 720px; margin: 40px auto; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.reg label { display: block; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 18px 0 6px; }
.reg input { width: 100%; border: 3px solid var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 16px; font-family: "JetBrains Mono", monospace; }
.reg .hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.warn { background: var(--cream-2); border: 3px solid var(--ink); border-radius: 14px; padding: 14px 16px; font-size: 14px; margin: 18px 0; }
.warn b { color: var(--err); }
.regstate { font-size: 14px; background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 12px; margin-top: 14px; word-break: break-all; }

/* ---------- dog stuff ---------- */
.step { position: relative; overflow: visible; }
.step-art { position: absolute; top: -26px; right: 14px; width: 84px; transform: rotate(8deg); filter: drop-shadow(3px 3px 0 rgba(11,18,32,.2)); transition: transform .2s; }
.step:hover .step-art { transform: rotate(-6deg) scale(1.1) translateY(-4px); }
.has-tag { position: relative; }
.tag-art { position: absolute; top: -34px; right: 12px; width: 62px; transform: rotate(10deg); transform-origin: 50% 8%; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%,100% { transform: rotate(10deg); } 50% { transform: rotate(-6deg); } }
.inline-art { height: .9em; vertical-align: -0.1em; transform: rotate(-10deg); display: inline-block; }
.bg-dog.bd4 { top: 10%; left: 2%; width: 64px; opacity: .55; animation: float 8s ease-in-out infinite .6s; }
.bg-dog.bd5 { bottom: 12%; right: -2%; width: 48px; opacity: .45; animation: float 7.5s ease-in-out infinite 2s; }
.connect-wrap { position: relative; display: inline-block; }
.hat-on { position: absolute; top: -22px; left: 50%; width: 48px; transform: translateX(-50%) translateY(-30px) rotate(-8deg); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.4,1), opacity .3s; pointer-events: none; z-index: 2; }
body.is-connected .hat-on { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-8deg); }
section#bowls, section#how, section#faq { background-image: url("assets/paw.svg"), url("assets/paw.svg"); background-repeat: no-repeat; background-size: 120px, 80px; background-position: 96% 8%, 3% 92%; }
section#bowls { background-image: url("assets/paw.svg"); background-size: 140px; background-position: 98% 2%; }
@media (max-width: 760px) { section#bowls, section#how, section#faq { background-image: none; } }
.faq summary::before { content: ""; display: inline-block; width: 22px; height: 22px; background: url("assets/paw.svg") center/contain no-repeat; margin-right: 10px; flex: none; transform: rotate(-15deg); }
.faq summary { justify-content: flex-start; } .faq summary::after { margin-left: auto; }
.stamp { position: fixed; left: 50%; top: 42%; width: 260px; transform: translate(-50%,-50%) scale(3) rotate(20deg); opacity: 0; pointer-events: none; z-index: 70; filter: drop-shadow(8px 8px 0 rgba(11,18,32,.35)); }
.stamp.slam { animation: slam 1.8s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%,-50%) scale(3) rotate(20deg); } 18% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-12deg); } 24% { transform: translate(-50%,-50%) scale(1.06) rotate(-10deg); } 75% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-12deg); } 100% { opacity: 0; transform: translate(-50%,-60%) scale(1) rotate(-12deg); } }
.paws { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.paws img { position: absolute; width: 34px; opacity: 0; animation: pawfade 1.6s ease-out forwards; }
@keyframes pawfade { 0% { opacity: 0; transform: scale(.4) rotate(var(--r)); } 15% { opacity: .85; transform: scale(1) rotate(var(--r)); } 100% { opacity: 0; transform: scale(1) rotate(var(--r)) translateY(-6px); } }
.log:empty::before { content: "Nothing yet. The dog is waiting. 🦴"; }

/* ---------- mobile pass ---------- */
html, body { overflow-x: hidden; }
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  nav .wrap { padding: 10px 16px; }
  .brand { font-size: 17px; } .brand img { width: 36px; height: 36px; }
  .btn { padding: 9px 14px; font-size: 14px; }
  #connectBtn { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero .wrap { padding: 32px 16px 16px; gap: 20px; }
  .hero h1 { font-size: clamp(40px, 13vw, 60px); }
  .hero p.lede { font-size: 16px; }
  .hero-art { min-height: 0; margin-top: 8px; }
  .hero-dog { max-width: 300px; }
  .bg-dog { display: none; }
  .sticker { font-size: 12px; padding: 6px 10px; }
  .sticker.s1 { top: -4px; left: 4px; } .sticker.s2 { bottom: 0; right: 4px; }
  .hat-on { display: none; }
  .ticker-track { font-size: 12px; }
  .stats { gap: 12px; margin-top: 16px; }
  .stat { padding: 14px 16px; box-shadow: var(--shadow-sm); }
  .stat .v { font-size: 24px; }
  .tag-art { width: 48px; top: -26px; right: 8px; }
  section { padding: 44px 0 12px; }
  h2 { font-size: clamp(26px, 8vw, 34px); }
  .bowl { padding: 16px; box-shadow: var(--shadow-sm); gap: 12px; }
  .bowl-dog { width: 80px; height: 80px; margin: -22px 0 -8px -6px; }
  .bowl-name { font-size: 21px; }
  .btns button, .compound button { padding: 12px 8px; font-size: 14px; }
  .compound { font-size: 12px; }
  .compound select { flex: 1; }
  .step { padding: 18px; } .step-art { width: 64px; top: -20px; right: 10px; }
  .fee-card { padding: 20px; gap: 16px; box-shadow: 5px 5px 0 var(--fur); }
  .fee-card img { max-width: 200px; }
  .fee-big { font-size: 56px; }
  .fee-meta div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { font-size: 15px; padding: 14px 0; }
  .log { max-height: 220px; font-size: 13px; }
  .stamp { width: 200px; }
  .toast { bottom: 14px; font-size: 13px; padding: 10px 14px; }
  footer .wrap { padding: 28px 16px; }
  .reg { margin: 20px auto; padding: 20px; box-shadow: var(--shadow-sm); }
}
@media (max-width: 420px) {
  .bowl-stats { grid-template-columns: 1fr; }
  .btns { grid-template-columns: 1fr; } .btns .primary { grid-column: span 1; }
  .field input { font-size: 16px; padding: 12px; }
  .cta .btn { width: 100%; justify-content: center; }
}

/* ---------- feed the bowls ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feed { background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 16px; }
.feed img { width: 72px; flex: none; transform: rotate(-8deg); }
.feed h3 { margin: 0 0 4px; font-size: 20px; }
.feed p { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.feed button { border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 800; background: var(--fur-light); box-shadow: 3px 3px 0 var(--ink); }
.feed button:hover:not(:disabled) { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

/* ---------- wallet chooser ---------- */
.modal { position: fixed; inset: 0; background: rgba(11,18,32,.55); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal-card { position: relative; background: var(--cream); border: 3px solid var(--ink); border-radius: 22px; padding: 26px 22px 18px; max-width: 420px; width: 100%; box-shadow: var(--shadow); text-align: center; }
.modal-x { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 28px; font-weight: 800; line-height: 1; }
.modal-dog { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; margin: -62px auto 6px; display: block; background: var(--fur-light); }
.modal-card h3 { margin: 4px 0 6px; font-size: 24px; }
.modal-card p { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.modal-btns { display: grid; gap: 10px; }
.modal-btns a, .modal-btns button { display: block; border: 3px solid var(--ink); border-radius: 12px; padding: 12px; font-weight: 800; font-size: 15px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.modal-btns a.mm { background: var(--fur-light); }
.modal-foot { margin-top: 14px !important; font-size: 12px !important; word-break: break-all; }

/* ---------- first-load paws ---------- */
.loader { position: fixed; inset: 0; background: var(--cream); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .45s ease, visibility .45s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-paws { display: flex; gap: 18px; height: 60px; align-items: flex-end; }
.loader-paws img { width: 44px; opacity: 0; animation: pawstep 1.8s ease-in-out infinite; }
.loader-paws img:nth-child(odd) { transform: translateY(-14px) rotate(-14deg); }
.loader-paws img:nth-child(even) { transform: translateY(0) rotate(12deg); }
.loader-paws img:nth-child(1) { animation-delay: 0s; } .loader-paws img:nth-child(2) { animation-delay: .25s; } .loader-paws img:nth-child(3) { animation-delay: .5s; }
.loader-paws img:nth-child(4) { animation-delay: .75s; } .loader-paws img:nth-child(5) { animation-delay: 1s; } .loader-paws img:nth-child(6) { animation-delay: 1.25s; }
@keyframes pawstep { 0% { opacity: 0; scale: .6; } 15% { opacity: 1; scale: 1; } 60% { opacity: 1; } 100% { opacity: 0; scale: .9; } }
.loader-dog { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--fur-light); box-shadow: var(--shadow-sm); animation: bob 2.2s ease-in-out infinite; }
.loader-text { font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) { .loader-paws img { animation: none; opacity: .8; } .loader-dog { animation: none; } }
.modal-btns .wallet-opt { display: flex; align-items: center; gap: 12px; text-align: left; }
.modal-btns .wallet-opt img { width: 28px; height: 28px; border-radius: 8px; }
.modal-btns .wallet-opt.disabled { opacity: .55; }
.modal-btns .wallet-opt small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-soft); }
.modal-group { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-align: left; margin: 6px 0 -2px; }
.modal-btns a.mm { background: var(--fur-light); }
.modal-btns .wc { background: var(--blue); color: var(--white); }
.modal-btns .wc small { display: block; font-weight: 600; font-size: 12px; opacity: .85; }

/* hidden attribute must win over display:flex */
.modal[hidden], .loader[hidden], [hidden] { display: none !important; }
