/* ---------- shared: reveal on scroll, row, page head ---------- */
.rise { opacity:1; transform:none; }
.rise.in { opacity:1; transform:none; }
.row { display:flex; gap:10px; flex-wrap:wrap; }
.poop { animation:none; }
.last { cursor:pointer; transition:transform .25s; } .last:hover { transform:rotate(0) scale(1.02); }
.page-head { padding:44px 0 18px; } .page-head h1 { font-size:clamp(40px,5.5vw,68px); margin-bottom:8px; }
.page-head p { font-size:18px; color:#3a332a; margin:0; max-width:640px; }
.card { background:#fff; border:3px solid var(--ink); border-radius:20px; padding:20px; }
.btn-ghost-red { color:#c0172d; }
.btn-ink.is-in { background:var(--lime); color:var(--ink); font-family:ui-monospace,monospace; }
.btn[disabled] { opacity:.45; pointer-events:none; }
.foot { display:grid; grid-template-columns:1fr auto; gap:14px 30px; }
.foot p { margin:4px 0 0; font-weight:400; color:#cfc6b4; } .foot nav { display:flex; gap:16px; flex-wrap:wrap; align-items:start; }
.foot nav a { text-decoration:none; } .foot nav a:hover { color:var(--lime); }
.foot small { grid-column:1/-1; color:#9d9482; font-weight:400; }

/* ---------- modal + wallet picker + toast ---------- */
.modal { position:fixed; inset:0; z-index:50; background:#16130fb3; backdrop-filter:blur(3px); display:grid; place-items:center; padding:16px; animation:fade .2s; }
.modal.out { opacity:0; transition:opacity .2s; }
.modal-card { position:relative; width:min(440px,100%); background:var(--paper); border:3px solid var(--ink); border-radius:24px; padding:26px; box-shadow:8px 8px 0 var(--pink); animation:pop .28s cubic-bezier(.2,1.4,.4,1); }
.modal-card h3 { margin:0 0 6px; font-size:26px; letter-spacing:-.5px; }
.modal-sub { margin:0 0 16px; color:var(--mut); font-size:14px; overflow-wrap:anywhere; }
.modal-x { position:absolute; top:12px; right:14px; border:0; background:none; font-size:28px; cursor:pointer; line-height:1; }
.wallet-list { display:grid; gap:10px; margin-bottom:12px; }
.wallet { display:grid; grid-template-columns:40px 1fr auto; align-items:center; gap:12px; padding:12px 14px; background:#fff; border:2.5px solid var(--ink); border-radius:16px; font:800 17px system-ui; cursor:pointer; box-shadow:3px 3px 0 var(--pink); transition:transform .12s, box-shadow .12s; text-align:left; }
.wallet:hover { transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--pink); }
.wallet small { font:600 12px ui-monospace,monospace; color:#1a9a4a; }
.wallet.busy small { color:var(--brown); animation:pulse 1s infinite; }
.wallet-ic { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; font-size:24px; background:#f3ecdc; overflow:hidden; } .wallet-ic img { width:100%; }
.wallet-none { background:#fff; border:2.5px dashed var(--ink); border-radius:16px; padding:16px; } .wallet-none p { margin:6px 0 12px; color:var(--mut); }
.modal-fine { font-size:12px; color:var(--mut); margin:0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:80; background:var(--ink); color:var(--lime); font-weight:800; padding:12px 20px; border-radius:999px; box-shadow:4px 4px 0 var(--pink); animation:up .3s; }
.toast.out { opacity:0; transition:opacity .4s; }

/* ---------- ceremonies ---------- */
.cer { position:fixed; inset:0; z-index:70; display:grid; place-items:center; padding:16px; background:radial-gradient(circle at 50% 40%, #3a2a16, #0d0a07 70%); animation:fade .3s; overflow:auto; }
.cer.out { opacity:0; transition:opacity .3s; }
.cer-rays { position:fixed; inset:-50vmax; background:repeating-conic-gradient(from 0deg, #ffd23f14 0 10deg, transparent 10deg 20deg); animation:rot 40s linear infinite; pointer-events:none; }
.cer.gold .cer-rays { background:repeating-conic-gradient(from 0deg, #ffd23f40 0 10deg, transparent 10deg 20deg); }
.cer-card { position:relative; width:min(420px,100%); background:var(--paper); border:3px solid var(--ink); border-radius:26px; padding:22px; text-align:center; box-shadow:0 0 0 6px #ffd23f, 10px 10px 0 6px var(--pink); animation:drop .7s cubic-bezier(.3,1.5,.5,1); }
.cer.gold .cer-card { animation:drop .7s cubic-bezier(.3,1.5,.5,1), glow 1.6s ease-in-out infinite alternate; }
.cer-kicker { font:800 12px ui-monospace,monospace; letter-spacing:1.5px; text-transform:uppercase; color:var(--brown); margin:0; }
.cer-title { margin:4px 0 12px; font-size:30px; letter-spacing:-1px; }
.cer-pic { aspect-ratio:1; border-radius:18px; border:3px solid var(--ink); background:#2a251e center/cover; position:relative; overflow:hidden; }
.cer-pic.sealed { background:repeating-linear-gradient(45deg,#2a251e 0 14px,#3a3226 14px 28px); animation:shake .25s infinite; }
.cer-pic.open { animation:flip .7s; }
.cer-seal { position:absolute; inset:0; display:grid; place-items:center; color:var(--lime); font:800 14px ui-monospace,monospace; letter-spacing:1px; }
.cer-pic.open .cer-seal { display:none; }
.cer-stars { display:flex; justify-content:center; gap:6px; font-size:34px; margin:12px 0 2px; color:#00000022; }
.cer-stars .on { color:#ffb800; text-shadow:0 0 12px #ffd23f; animation:starIn .45s cubic-bezier(.2,1.8,.4,1); }
.cer-tier { font:900 22px system-ui; margin:4px 0; }
.cer-tier.stamp { display:inline-block; padding:4px 16px; border:3px solid var(--ink); border-radius:10px; transform:rotate(-4deg); animation:stamp .35s cubic-bezier(.2,1.6,.4,1); background:#fff; }
.cer-tier.t4, .cer-tier.t5 { background:#ffd23f; } .cer-tier.t3 { background:var(--lime); }
.cer-line { color:#3a332a; margin:6px 0 16px; }
.cer .row { justify-content:center; }
.cer-flush { grid-template-columns:auto auto; justify-content:center; align-content:center; gap:60px; }
.cer-flush.glug::before { content:"GLUG… GLUG… GLUUUG"; position:fixed; top:12%; left:50%; transform:translateX(-50%); font:900 clamp(22px,4vw,44px) system-ui; color:#4fa3d8; letter-spacing:4px; animation:glug 3s forwards; white-space:nowrap; }
@keyframes glug { 0% { opacity:0; transform:translateX(-50%) scale(.6); } 20%,80% { opacity:1; transform:translateX(-50%) scale(1); } 100% { opacity:0; transform:translateX(-50%) translateY(-30px); } }
.cer-bowl { position:relative; width:300px; height:300px; border-radius:50%; background:#f4f1ea; border:10px solid #fff; box-shadow:0 0 0 4px var(--ink), inset 0 0 40px #0004; display:grid; place-items:center; }
.cer-water { position:absolute; inset:24px; border-radius:50%; background:radial-gradient(circle, #1e5c8a, #4fa3d8 60%, #a6dcf5); overflow:hidden; }
.swirl { position:absolute; inset:0; border-radius:50%; border:6px solid transparent; border-top-color:#ffffffaa; animation:rot 1s linear infinite; }
.s2 { inset:20px; animation-duration:.7s; } .s3 { inset:44px; animation-duration:.5s; } .s4 { inset:66px; animation-duration:.35s; }
.cer-poop { position:relative; width:150px; height:150px; border-radius:24px; border:3px solid var(--ink); background:#2a251e center/cover; }
.cer-bubble { position:absolute; top:-30px; left:50%; transform:translateX(-50%); background:#fff; border:3px solid var(--ink); border-radius:16px; padding:8px 14px; font-weight:800; white-space:nowrap; max-width:320px; overflow:hidden; text-overflow:ellipsis; animation:bubble 3s forwards; }
.cer-receipt { width:min(340px,100%); background:#fffef8; color:var(--ink); padding:22px 22px 34px; font-family:ui-monospace,monospace; text-align:center; clip-path:polygon(0 0,100% 0,100% 100%,95% 97%,90% 100%,85% 97%,80% 100%,75% 97%,70% 100%,65% 97%,60% 100%,55% 97%,50% 100%,45% 97%,40% 100%,35% 97%,30% 100%,25% 97%,20% 100%,15% 97%,10% 100%,5% 97%,0 100%); animation:print 1.2s 2.8s cubic-bezier(.2,.9,.3,1) backwards; transform-origin:top; }
.cer-receipt .cer-title { font-family:system-ui; font-size:22px; }
.cer-dots { border-top:2px dashed #0005; margin:10px 0; }
.cer-small { margin:2px 0; font-size:13px; color:var(--mut); }
.cer-amount { display:block; font-size:40px; font-weight:900; margin:6px 0; color:#1a7a3a; }
.cer-amount.done { animation:stamp .35s; }

@keyframes fade { from { opacity:0; } }
@keyframes pop { from { opacity:0; transform:scale(.85); } }
@keyframes up { from { opacity:0; transform:translate(-50%,20px); } }
@keyframes drop { from { opacity:0; transform:translateY(-120px) rotate(-6deg); } }
@keyframes shake { 50% { transform:translateX(2px) rotate(.5deg); } }
@keyframes flip { 0% { transform:rotateY(90deg); } 100% { transform:none; } }
@keyframes starIn { from { transform:scale(3) rotate(-90deg); opacity:0; } }
@keyframes stamp { from { transform:scale(2.4) rotate(-12deg); opacity:0; } }
@keyframes glow { to { box-shadow:0 0 0 6px #ffd23f, 0 0 60px 20px #ffd23f88; } }
@keyframes down { 0% { transform:rotate(0) scale(1); } 100% { transform:rotate(1080deg) scale(0); opacity:.2; } }
@keyframes bubble { 0%,60% { opacity:1; } 100% { opacity:0; transform:translate(-50%,-20px); } }
@keyframes print { from { transform:scaleY(0); opacity:0; } }
@media (max-width:760px) { .cer-flush { grid-template-columns:1fr; justify-content:stretch; gap:20px; justify-items:center; } .cer-bowl { width:220px; height:220px; } .cer-poop { width:110px; height:110px; } }

/* ---------- mine page ---------- */
.mine { display:grid; grid-template-columns:1fr 1.1fr; gap:22px; align-items:start; }
.rig { background:var(--ink); color:#fff; border-radius:24px; border:3px solid var(--ink); padding:20px; box-shadow:8px 8px 0 var(--pink); }
.rig h3 { margin:0 0 4px; color:var(--lime); font:800 13px ui-monospace,monospace; letter-spacing:1.5px; text-transform:uppercase; }
.gauge { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
.gauge div { background:#2a251e; border-radius:14px; padding:12px; } .gauge span { font-size:12px; color:#bdb3a0; text-transform:uppercase; font-weight:700; }
.gauge b { display:block; font:800 24px ui-monospace,monospace; color:#fff; }
.hashline { font:13px ui-monospace,monospace; color:#7dff9b; background:#0d0a07; border-radius:12px; padding:10px 12px; height:96px; overflow:hidden; white-space:nowrap; }
.hashline i { display:block; font-style:normal; opacity:.75; } .hashline i.hit { color:var(--lime); opacity:1; font-weight:800; }
.toggle { display:inline-flex; border:2.5px solid var(--ink); border-radius:999px; background:#fff; padding:3px; box-shadow:3px 3px 0 var(--pink); }
.toggle button { border:0; background:none; font:800 15px system-ui; padding:7px 14px; border-radius:999px; cursor:pointer; }
.toggle button.on { background:var(--lime); box-shadow:inset 0 0 0 2px var(--ink); }
.receipt { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:14px 0; }
.receipt div { background:#fff; border:2.5px solid var(--ink); border-radius:14px; padding:12px; }
.receipt span { font-size:12px; font-weight:700; color:var(--mut); text-transform:uppercase; } .receipt b { display:block; font:800 22px ui-monospace,monospace; }
.receipt small { color:var(--mut); }
.receipt .hot { background:var(--lime); }
.go { width:100%; font-size:22px; padding:16px; }
.go.running { background:var(--ink); color:var(--lime); box-shadow:4px 4px 0 var(--pink); }
.go.running::after { content:''; width:16px; height:16px; margin-left:12px; border:3px solid #fff4; border-top-color:var(--lime); border-radius:50%; animation:rot .7s linear infinite; }
.poopometer { height:20px; border:2.5px solid var(--ink); border-radius:999px; overflow:hidden; background:#fff; margin-top:6px; }
.poopometer i { display:block; height:100%; width:0; background:repeating-linear-gradient(45deg,var(--brown) 0 10px,#9a6430 10px 20px); transition:width .25s; animation:slide 1s linear infinite; background-size:28px 28px; }
.mine-tip { font-size:14px; color:var(--mut); margin:10px 0 0; }
.steps-mini { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.steps-mini span { font:700 12px ui-monospace,monospace; padding:6px 10px; border-radius:999px; border:2px solid #fff3; color:#bdb3a0; }
.steps-mini span.on { border-color:var(--lime); color:var(--lime); }
@keyframes slide { to { background-position:28px 0; } }

/* ---------- pen / specimens ---------- */
.pen-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.pet { background:#fff; border:3px solid var(--ink); border-radius:20px; overflow:hidden; }
.pet img { width:100%; aspect-ratio:1; object-fit:cover; display:block; background:#f3ecdc; }
.pet-body { padding:12px 14px 14px; }
.pet-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px 8px; font-weight:900; font-size:18px; } .pet-top .rarity-stars { color:var(--brown); }
.hp { height:10px; border:2px solid var(--ink); border-radius:99px; overflow:hidden; margin:8px 0 4px; } .hp i { display:block; height:100%; background:#2bd46a; }
.hp.mid i { background:#ffb800; } .hp.low i { background:#ff4d4d; }
.pet small { color:var(--mut); }
.pet .row { margin-top:10px; } .pet .btn { padding:6px 12px; font-size:14px; flex:1; }
.btn-flush { background:#4fa3d8; color:#fff; }
.empty { text-align:center; padding:50px 20px; } .empty em { font-size:70px; font-style:normal; display:block; animation:wobble 2s infinite; }
.lookup { display:flex; gap:10px; max-width:460px; }
.lookup input { flex:1; font:800 20px ui-monospace,monospace; padding:10px 16px; border:3px solid var(--ink); border-radius:999px; background:#fff; min-width:0; }
.spec { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:22px; align-items:start; }
.spec > * { min-width:0; overflow-wrap:anywhere; }
.spec img { width:100%; border-radius:22px; border:3px solid var(--ink); box-shadow:8px 8px 0 var(--pink); background:#f3ecdc; }
.traits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.traits > * { min-width:0; overflow-wrap:anywhere; }
.traits div { background:#fff; border:2.5px solid var(--ink); border-radius:12px; padding:8px 12px; } .traits span { font-size:11px; font-weight:700; text-transform:uppercase; color:var(--mut); } .traits b { display:block; }
.flushed { text-align:center; padding:40px; } .flushed em { font-size:80px; font-style:normal; display:block; }

/* ---------- how it works ---------- */
.toc { display:flex; gap:8px; flex-wrap:wrap; position:sticky; top:66px; z-index:3; padding:10px 0; background:linear-gradient(var(--bg) 80%, transparent); }
.toc a { font-weight:800; font-size:14px; text-decoration:none; padding:6px 12px; border:2px solid var(--ink); border-radius:999px; background:#fff; }
.toc a:hover { background:var(--lime); }
.split { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:14px 0; }
.split div { border:3px solid var(--ink); border-radius:16px; padding:14px; background:#fff; } .split b { font:900 34px ui-monospace,monospace; display:block; }
.split .z { background:var(--ink); color:#fff; } .split .z b { color:var(--lime); }
.loop { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; counter-reset:l; }
.loop div { background:#fff; border:3px solid var(--ink); border-radius:16px; padding:14px; position:relative; counter-increment:l; }
.loop div::before { content:counter(l); position:absolute; top:-12px; left:-8px; width:28px; height:28px; border-radius:50%; background:var(--pink); color:#fff; font-weight:900; display:grid; place-items:center; border:2.5px solid var(--ink); }
.loop em { font-style:normal; font-size:28px; } .loop b { display:block; margin:4px 0 2px; } .loop p { margin:0; font-size:14px; color:#3a332a; }
table.t { width:100%; border-collapse:separate; border-spacing:0; background:#fff; border:3px solid var(--ink); border-radius:16px; overflow:hidden; margin:10px 0; }
.t td, .t th { padding:10px 14px; text-align:left; border-bottom:1.5px solid #0001; } .t th { background:var(--ink); color:var(--lime); font-size:13px; text-transform:uppercase; }
.t tr:last-child td { border:0; }
.safe { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.safe div { background:#fff; border:3px solid var(--ink); border-radius:18px; padding:16px; } .safe em { font-size:28px; font-style:normal; } .safe > div > b { display:block; margin:6px 0 4px; font-size:18px; } .safe p { margin:0; color:#3a332a; font-size:15px; }
.warn { background:#ffefef !important; }
.addr { font:13px ui-monospace,monospace; word-break:break-all; }
@media (max-width:900px) {
  .mine, .spec { grid-template-columns:1fr; } .loop, .split { grid-template-columns:repeat(2,1fr); } .safe { grid-template-columns:1fr; }
  .toc { top:110px; overflow-x:auto; flex-wrap:nowrap; } .toc a { white-space:nowrap; }
}

.gap-top { margin-top:14px; } .gap-top-l { margin-top:34px; } .gap-bottom { margin-bottom:20px; }
.row-between { justify-content:space-between; align-items:center; } .center-row { text-align:center; margin:20px 0; } .modal-row { margin-top:10px; }
.wallet-name { display:flex; flex-direction:column; line-height:1.2; } .wallet-rdns { font:500 11px ui-monospace,monospace; color:var(--mut); }
.btn-ink.bad-chain { background:#ff4d4d; color:#fff; }

/* ---------- standard wallet modal (RainbowKit-style, deliberately plain) ---------- */
.wm { position:fixed; inset:0; z-index:90; background:rgba(0,0,0,.45); backdrop-filter:blur(2px); display:grid; place-items:center; padding:16px; animation:fade .15s; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.wm.out { opacity:0; transition:opacity .18s; }
.wm-box { display:grid; grid-template-columns:300px 360px; background:#fff; color:#1a1b1f; border-radius:24px; overflow:hidden; box-shadow:0 8px 32px rgba(0,0,0,.32); animation:wmIn .22s cubic-bezier(.2,1,.3,1); max-height:calc(100vh - 32px); }
.wm-left { padding:18px 14px; border-right:1px solid rgba(0,0,0,.06); overflow:auto; display:flex; flex-direction:column; }
.wm-head { display:flex; justify-content:space-between; align-items:center; padding:0 6px 10px; }
.wm-head h3 { margin:0; font-size:18px; font-weight:800; letter-spacing:0; }
.wm-x { width:28px; height:28px; border-radius:50%; border:0; background:rgba(0,0,0,.06); cursor:pointer; font-size:12px; color:#3c3f44; }
.wm-x:hover { background:rgba(0,0,0,.1); }
.wm-group { margin:12px 6px 6px; font-size:14px; font-weight:700; color:#0e76fd; }
.wm-row { display:flex; align-items:center; gap:12px; width:100%; padding:7px 8px; border:0; background:none; border-radius:12px; cursor:pointer; text-align:left; font:inherit; color:inherit; transition:background .12s, transform .12s; }
.wm-row:hover, .wm-row:focus-visible { background:rgba(0,0,0,.05); outline:none; }
.wm-row:active { transform:scale(.98); }
.wm-ic { width:30px; height:30px; border-radius:8px; overflow:hidden; flex:none; display:grid; place-items:center; background:#f2f2f4; }
.wm-ic img { width:100%; height:100%; object-fit:cover; }
.wm-letter { color:#fff; font-weight:800; font-size:15px; }
.wm-name { display:flex; flex-direction:column; min-width:0; flex:1; } .wm-name b { font-size:16px; font-weight:700; }
.wm-name small { font-size:12px; color:#868989; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wm-get { font-size:12px; font-weight:800; color:#0e76fd; background:rgba(14,118,253,.1); padding:4px 10px; border-radius:999px; }
.wm-fine { margin:auto 6px 0; padding-top:14px; font-size:11px; color:#868989; }
.wm-right { padding:26px 28px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:4px; background:#fbfbfc; }
.wm-right h4 { margin:0 0 14px; font-size:18px; font-weight:800; }
.wm-info { display:flex; gap:14px; text-align:left; margin-bottom:16px; width:100%; } .wm-info b { font-size:14px; } .wm-info p { margin:2px 0 0; font-size:13px; color:#6b6e73; line-height:1.4; }
.wm-emoji { font-size:26px; width:44px; height:44px; border-radius:12px; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.08); display:grid; place-items:center; flex:none; }
.wm-btn { margin-top:6px; display:inline-block; padding:9px 18px; border-radius:999px; background:#0e76fd; color:#fff; font-weight:800; font-size:14px; text-decoration:none; border:0; cursor:pointer; font-family:inherit; transition:transform .12s; }
.wm-btn:hover { transform:scale(1.03); } .wm-ghost { background:rgba(14,118,253,.1); color:#0e76fd; }
.wm-ring { position:relative; width:84px; height:84px; border-radius:24px; display:grid; place-items:center; margin-bottom:14px; }
.wm-ring::before { content:''; position:absolute; inset:-5px; border-radius:28px; border:3px solid transparent; border-top-color:#0e76fd; border-right-color:#0e76fd; animation:rot 1s linear infinite; }
.wm-ring.wm-fail::before { animation:none; border-color:#ff494a; }
.wm-big { width:72px; height:72px; border-radius:18px; font-size:30px; }
.wm-sub { margin:0 0 8px; color:#6b6e73; font-size:14px; }
@keyframes wmIn { from { opacity:0; transform:scale(.96) translateY(8px); } }
@media (max-width:720px) {
  .wm { place-items:end center; padding:0; }
  .wm-box { grid-template-columns:1fr; width:100%; border-radius:24px 24px 0 0; animation:wmUp .25s cubic-bezier(.2,1,.3,1); }
  .wm-right { display:none; } .wm.wm-busy .wm-right { display:flex; } .wm.wm-busy .wm-left { display:none; }
}
@keyframes wmUp { from { transform:translateY(100%); } }
.wm-acts { display:flex; gap:8px; justify-content:center; }
.wm-acct { grid-template-columns:1fr; width:min(360px,100%); padding:28px 18px 18px; text-align:center; position:relative; justify-items:center; }
.wm-x-abs { position:absolute; top:14px; right:14px; }
.wm-avatar { width:74px; height:74px; border-radius:50%; display:grid; place-items:center; font-size:36px; margin-bottom:10px; box-shadow:inset 0 0 0 3px rgba(255,255,255,.4); }
.wm-addr { margin:0; font-size:18px; font-weight:800; } .wm-bal { margin:2px 0 14px; color:#868989; font-weight:600; }
.wm-warn { background:#ff494a; margin:0 0 12px; }
.wm-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; width:100%; }
.wm-tile { display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 6px; border:0; border-radius:14px; background:rgba(0,0,0,.05); cursor:pointer; font:inherit; color:#1a1b1f; transition:transform .12s, background .12s; }
.wm-tile:hover { background:rgba(0,0,0,.08); transform:scale(1.03); } .wm-tile span { font-size:18px; } .wm-tile b { font-size:13px; }
@media (max-width:720px) { .wm-acct { width:100%; } }
.wm [hidden] { display:none !important; }
@media (max-width:600px) {
  .nav { display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; min-width:0; scrollbar-width:thin; }
  .nav-btn { flex:0 0 auto; }
  .nav-btn { padding:6px 9px; font-size:13px; box-shadow:2px 2px 0 var(--pink); }
}
section[id] { scroll-margin-top:130px; } @media (max-width:900px) { section[id] { scroll-margin-top:170px; } }
[hidden] { display:none !important; }

/* ceremonies v2 */
.cer-flushside { display:flex; flex-direction:column; align-items:center; gap:14px; }
.cer-status { color:#fff; font-weight:800; margin:0; min-height:1.5em; }
.cer-flush:not(.done) { grid-template-columns:auto; }
.cer-poop.wobble { animation:wob 1.2s ease-in-out infinite; }
.cer-poop.spin-down { animation:down 3.2s cubic-bezier(.6,0,.9,.6) forwards; }
.bub { position:absolute; bottom:-10px; width:10px; height:10px; border-radius:50%; background:#ffffff88; animation:bub 2.4s ease-in infinite; }
.cer-coins { position:fixed; inset:0; pointer-events:none; z-index:2; }
.cer-coin { position:absolute; top:58%; font-size:28px; animation:coin 1.4s cubic-bezier(.3,.6,.4,1) backwards; opacity:0; }
.cer-flies { position:absolute; inset:0; pointer-events:none; }
.fly { position:absolute; left:50%; top:50%; font-style:normal; font-size:20px; animation:orbit 3s linear infinite; }
.cer-pic.flash::after { content:''; position:absolute; inset:0; background:#fff; animation:flash .6s forwards; }
.cer-seal { flex-direction:column; gap:4px; display:flex; align-items:center; justify-content:center; } .cer-seal b { font-size:26px; letter-spacing:6px; } .cer-seal small { color:#ffd23f; }
.cer-chip { display:inline-block; font-size:13px; font-weight:700; background:#fff3c4; border:2px solid var(--ink); border-radius:999px; padding:4px 12px; margin:0 0 14px; }
.cer-card .row[hidden] { display:none; }
.eng { margin:10px 0 0; font:700 12px ui-monospace,monospace; color:#bdb3a0; }
@keyframes wob { 50% { transform:rotate(-6deg) scale(1.04); } }
@keyframes bub { from { transform:translateY(0); opacity:.9; } to { transform:translateY(-260px); opacity:0; } }
@keyframes coin { 0% { opacity:0; transform:translate(0,0) scale(.4); } 20% { opacity:1; } 100% { opacity:0; transform:translate(28vw,-30vh) scale(1.1) rotate(540deg); } }
@keyframes orbit { from { transform:rotate(0) translateX(90px) rotate(0); } to { transform:rotate(360deg) translateX(90px) rotate(-360deg); } }
@keyframes flash { from { opacity:.9; } to { opacity:0; } }
@media (max-width:760px) { @keyframes coin { 0% { opacity:0; } 20% { opacity:1; } 100% { opacity:0; transform:translate(0,22vh) rotate(540deg); } } }
.feed-menu { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; padding:10px; background:#fff8e1; border:2px dashed var(--ink); border-radius:12px; animation:pop .2s; }
.feed-menu small { width:100%; font-size:12px; color:var(--mut); }
.btn-mini { padding:5px 10px !important; font-size:13px !important; flex:1 1 auto !important; }
.btn-flush.armed { background:#ff4d4d; animation:shake .2s infinite; }
.pet.munch { animation:munch .6s; } .pet.gone { animation:gone .9s forwards; }
@keyframes munch { 30% { transform:scale(1.05) rotate(-2deg); } 60% { transform:scale(.97) rotate(2deg); } }
@keyframes gone { to { transform:scale(.2) rotate(720deg); opacity:0; } }

/* Bounded mobile layout and truthful search activity. */
.mine > *, .hero > *, .gauge > *, .receipt > *, .stat { min-width:0; }
.coin-card, .step, .poop { min-width:0; }
.coin-card b { overflow-wrap:anywhere; font-size:clamp(23px,4vw,32px); }
.stat b, .gauge b, .receipt b { overflow-wrap:anywhere; }
.poopometer.searching i { width:28%; animation:searchSweep 1.2s ease-in-out infinite; }
.search-note { margin:6px 0 0; font-size:12px; color:var(--mut); }
.pending-picture { aspect-ratio:1; display:grid; place-items:center; background:#f3ecdc; font-weight:800; }
.toast { max-width:calc(100vw - 28px); overflow-wrap:anywhere; text-align:center; }
.cer { overflow-y:auto; max-height:100dvh; }
.cer-card, .cer-receipt { max-width:calc(100vw - 32px); }
@keyframes searchSweep { 0%,100% { transform:translateX(0); } 50% { transform:translateX(245%); } }
@media (max-width:420px) {
  .toggle { max-width:100%; }
  .toggle button { min-width:0; padding:7px 9px; font-size:13px; }
  .go { font-size:18px; white-space:normal; }
  .gauge b, .receipt b { font-size:19px; }
  .pen-grid { grid-template-columns:minmax(0,1fr); }
  .foot { grid-template-columns:1fr; }
}
.cer-hint{font-size:12px;background:#fff4c2;border:2px dashed var(--ink);border-radius:10px;padding:6px 8px;margin:6px 0}
.cer-seal .cer-count{display:block;font-size:64px;line-height:1;letter-spacing:0;color:#c8ff3d;text-shadow:0 0 18px rgba(200,255,61,.6)}
.cer-seal .cer-count.pop{animation:cer-pop .9s ease-out}
@keyframes cer-pop{0%{transform:scale(1.6);opacity:0}25%{transform:scale(1);opacity:1}100%{transform:scale(.92);opacity:.85}}
@media (prefers-reduced-motion:reduce){.cer-seal .cer-count.pop{animation:none}}
/* flush v3: vortex, orbit, plunge, splash, ripples, handle, flies */
.cer-vortex{position:absolute;inset:-10%;border-radius:50%;background:conic-gradient(from 0deg,#a6dcf5,#2d77ad 25%,#8fd0f0 40%,#1e5c8a 65%,#a6dcf5);opacity:.35;animation:rot 6s linear infinite;transition:opacity .8s}
.cer-hole{position:absolute;left:50%;top:50%;width:0;height:0;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#06121c 35%,#0b2c45 60%,transparent 72%);transition:width 1.2s ease,height 1.2s ease}
.cer-ring{position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px;border-radius:50%;border:3px solid #ffffffcc;opacity:0}
.cer-orbit{position:relative;display:grid;place-items:center;z-index:1}
.cer-poop{transition:border-radius .8s,transform .8s}
.cer-handle{position:absolute;top:18px;right:-26px;width:46px;height:12px;border-radius:6px;background:#d9d4c7;border:3px solid var(--ink);transform-origin:8px 50%;z-index:2}
.cer-buzz{position:absolute;inset:-30px;pointer-events:none;z-index:3;transition:transform 1s ease-in,opacity 1s}
.cer-splash{position:absolute;left:50%;top:50%;width:0;height:0;z-index:3;pointer-events:none}
.cer-splash i{position:absolute;width:12px;height:16px;margin:-8px -6px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:#8fd0f0;border:2px solid #fff;opacity:0}
.cer-flush.swirling .cer-vortex{opacity:.95;animation-duration:1.1s}
.cer-flush.swirling .swirl{animation-duration:.45s}
.cer-flush.swirling .cer-hole{width:34%;height:34%}
.cer-flush.swirling .cer-handle{animation:handle .5s ease-out}
.cer-flush.swirling .cer-orbit{animation:rot 1.6s linear infinite}
.cer-flush.swirling .cer-poop{border-radius:50%;transform:translateX(52px) scale(.62) rotate(-25deg);animation:suck 1.6s ease-in-out infinite}
.cer-flush.swirling .cer-buzz{transform:scale(2.2) rotate(40deg);opacity:0}
.cer-flush.plunge .cer-orbit{animation:rot .5s linear infinite}
.cer-flush.plunge .cer-poop{animation:plunge .9s cubic-bezier(.5,0,.9,.4) forwards}
.cer-flush.plunge .cer-splash i{animation:splash .8s .75s ease-out forwards}
.cer-flush.plunge .cer-ring{animation:ring 1.4s .85s ease-out 2}
.cer-flush.plunge .cer-hole{width:0;height:0;transition-delay:1.2s}
@keyframes handle{40%{transform:rotate(38deg)}}
@keyframes suck{50%{transform:translateX(44px) scale(.55,.7) rotate(-35deg)}}
@keyframes plunge{0%{transform:translateX(52px) scale(.62) rotate(-25deg)}100%{transform:translateX(0) scale(0) rotate(-540deg);opacity:.3}}
@keyframes splash{0%{opacity:1;transform:rotate(var(--a)) translateY(0) scale(.6)}70%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(-150px) scale(1)}}
@keyframes ring{0%{opacity:.9;transform:scale(.3)}100%{opacity:0;transform:scale(11)}}
@media (prefers-reduced-motion:reduce){.cer-flush.swirling .cer-orbit,.cer-flush.plunge .cer-orbit,.cer-vortex{animation:none}}
.cer-mood{position:absolute;left:-78px;bottom:-14px;width:110px;height:auto;z-index:4;pointer-events:none;filter:drop-shadow(0 4px 6px #0006)}
.cer-mood.pop{animation:moodpop .35s ease-out}
@keyframes moodpop{from{transform:scale(.6) rotate(-10deg);opacity:.3}}
@media (max-width:760px){.cer-mood{left:-40px;width:84px}}
@media (max-width:420px){.cer-mood{left:-10px;bottom:-30px;width:70px}}
.cer-flies .fly{transition:opacity .9s ease}.cer-flies .fly.off{opacity:0}
