/* BillBored. Soft, round and sunny: cream-yellow skies, pastel cards, chunky Nunito, 3D icons. */
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #0e1216;
  --ink-2: #4d5258;
  --muted: #8b9096;
  --line: #ececec;
  --bg: #ffffff;
  --cream: #fffaea;
  --sun: #ffd348;
  --sun-2: #ffe792;
  --sun-deep: #f5b400;
  --purple: #7d52f4;
  --blue: #4785ff;
  --green: #0db564;
  --green-2: #7fcf8f;
  --pink: #ff5d8f;
  --red: #e5484d;
  --lav: #e7e3ff;
  --sky: #dfeaff;
  --peach: #ffe4d1;
  --rose: #ffe1ec;
  --mint: #dcf4e5;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 10px 30px rgba(14, 18, 22, .07);
  --shadow-2: 0 4px 14px rgba(14, 18, 22, .08);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.num { font-family: "Rubik", "Nunito", sans-serif; font-variant-numeric: tabular-nums; }
.i3d { width: 1em; height: 1em; object-fit: contain; display: inline-block; vertical-align: -0.15em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: min(var(--wrap), calc(100% - 28px)); }
.nav-in { display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px; border-radius: 999px; background: rgba(255, 252, 240, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 6px 24px rgba(120, 90, 0, .08), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.logo img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(255, 211, 72, .28); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 900; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-2); font-size: 20px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 900; font-size: 16px; text-decoration: none; line-height: 1.1; transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .i3d { font-size: 22px; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #e3ac00, 0 10px 22px rgba(245, 180, 0, .25); }
.btn-sun:hover { background: #ffdb63; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #000, 0 10px 22px rgba(14, 18, 22, .2); }
.btn-ink:hover { background: #22282e; }
.btn-soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-soft:hover { box-shadow: inset 0 0 0 2px #d6d6d6; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 0 #078a4b, 0 10px 22px rgba(13, 181, 100, .25); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 18px; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn-wallet { min-width: 140px; }
.btn-wallet.on { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--sun); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; margin-top: -84px; padding: 150px 0 90px; background: linear-gradient(180deg, #f8e3a0 0%, #fbedbd 38%, #fff8e3 72%, #fff 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 900; }
.hero h1 .spark { position: relative; white-space: nowrap; }
.hero h1 .spark::after { content: ""; position: absolute; right: -46px; top: -18px; width: 44px; height: 44px; background: url("/img/doodle-spark.svg") no-repeat center / contain; }
.hero .lead { font-size: 20px; color: var(--ink-2); max-width: 540px; margin: 0 0 30px; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 9px 22px 9px 9px; box-shadow: var(--shadow); }
.chip .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; }
.chip .dot .i3d { font-size: 28px; }
.chip b { display: block; font-size: 24px; line-height: 1; font-weight: 800; }
.chip small { display: block; color: var(--muted); font-weight: 800; font-size: 13px; }
.dot-purple { background: var(--lav); } .dot-green { background: var(--mint); } .dot-sun { background: #fff1bf; } .dot-blue { background: var(--sky); } .dot-pink { background: var(--rose); }

.hero-art { position: relative; aspect-ratio: 1 / .92; }
.hero-art .halo { position: absolute; inset: 6% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .92) 0 1.6px, transparent 2.4px) 0 0 / 13px 13px; -webkit-mask: radial-gradient(circle, #000 52%, transparent 71%); mask: radial-gradient(circle, #000 52%, transparent 71%); opacity: .9; }
.hero-art .mascot { position: absolute; left: 50%; top: 50%; width: 52%; transform: translate(-50%, -52%); filter: drop-shadow(0 24px 30px rgba(140, 90, 0, .22)); animation: bob 5s ease-in-out infinite; }
.float { position: absolute; width: 17%; filter: drop-shadow(0 12px 16px rgba(120, 80, 0, .16)); animation: drift 6s ease-in-out infinite; }
.float.f1 { left: 4%; top: 14%; transform: rotate(-12deg); animation-delay: -1s; }
.float.f2 { right: 3%; top: 8%; width: 19%; animation-delay: -2.5s; }
.float.f3 { left: 0; bottom: 18%; width: 15%; animation-delay: -3.5s; }
.float.f4 { right: 2%; bottom: 14%; width: 21%; animation-delay: -.5s; }
.float.f5 { left: 40%; bottom: 0; width: 12%; animation-delay: -4s; }
.float.f6 { left: 26%; top: 0; width: 11%; animation-delay: -2s; }
.bubble { position: absolute; right: 6%; top: 42%; background: #fff; border-radius: 22px 22px 22px 6px; padding: 12px 16px; font-weight: 900; font-size: 15px; box-shadow: var(--shadow); max-width: 190px; line-height: 1.25; animation: drift 7s ease-in-out infinite; }
.bubble small { display: block; color: var(--muted); font-weight: 800; font-size: 12px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, -52%); } 50% { transform: translate(-50%, -56%); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-art .mascot, .float, .bubble, .marquee-track { animation: none !important; } }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.sec { padding: 90px 0; }
.sec-tight { padding: 60px 0; }
.sec-head { max-width: 660px; margin: 0 0 40px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec h2, .h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 900; }
.sec p.sub { font-size: 18px; color: var(--ink-2); margin: 0; font-weight: 600; }
.kicker { display: inline-flex; align-items: center; gap: 6px; background: #ffe58a; color: #6b4e00; font-weight: 900; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.doodle-bolt { display: inline-block; width: 28px; height: 40px; background: url("/img/doodle-bolt.svg") no-repeat center / contain; vertical-align: top; margin-left: 4px; }

/* play: preview panel */
.play { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.panel { position: relative; background: #fff; border-radius: var(--r-xl); box-shadow: 0 20px 60px rgba(70, 80, 120, .12); padding: 22px; }
.panel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.panel-top i { width: 11px; height: 11px; border-radius: 50%; background: #ffd0d0; } .panel-top i:nth-child(2) { background: #ffe6a6; } .panel-top i:nth-child(3) { background: #c9efd6; }
.panel-top span { margin-left: 8px; font-weight: 800; color: var(--muted); font-size: 13px; }

/* feature cards */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feat { position: relative; border-radius: var(--r-xl); padding: 30px 30px 26px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.feat h3 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.02em; font-weight: 900; padding-right: 40px; }
.feat p { margin: 0; color: var(--ink-2); font-weight: 600; max-width: 470px; }
.feat .plus { position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(14, 18, 22, .38); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.feat .more { display: none; margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.feat.open .more { display: block; }
.feat.open .plus { transform: rotate(45deg); }
.feat-art { margin-top: auto; padding-top: 22px; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.feat-art .bub { width: 82px; height: 82px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.feat-art .bub .i3d { font-size: 50px; }
.feat-art .big { font-size: 130px; margin-left: auto; }
.feat.lav { background: var(--lav); } .feat.sky { background: var(--sky); } .feat.peach { background: var(--peach); } .feat.rose { background: var(--rose); }
.feat .mini-pills { display: flex; flex-direction: column; gap: 8px; }
.mini-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-weight: 900; font-size: 14px; color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.mini-pill .i3d { font-size: 22px; }

/* tilted cards marquee */
.marquee { overflow: hidden; padding: 30px 0 40px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tcard { width: 270px; flex: none; border-radius: 26px; padding: 22px 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.tcard:nth-child(odd) { transform: rotate(-4deg) translateY(8px); } .tcard:nth-child(even) { transform: rotate(3deg); } .tcard:nth-child(3n) { transform: rotate(-1deg) translateY(-6px); }
.tcard .q { font-size: 44px; line-height: .6; color: rgba(14, 18, 22, .18); font-weight: 900; height: 18px; }
.tcard p { margin: 0; font-weight: 700; font-size: 16px; }
.tcard .foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(14, 18, 22, .08); padding-top: 12px; margin-top: auto; }
.tcard .foot .i3d { font-size: 34px; }
.tcard .foot b { display: block; font-size: 14px; } .tcard .foot small { display: block; color: var(--ink-2); font-weight: 700; font-size: 12px; }
.tcard .shot { height: 130px; border-radius: 16px; overflow: hidden; background: #f3f3f3; }
.tcard .shot img { width: 100%; height: 100%; object-fit: cover; }

/* green pill mission */
.mission { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #d6f0db; border-radius: 260px 60px 60px 260px; overflow: hidden; min-height: 420px; }
.mission-art { position: relative; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5) 0 9px, transparent 10px) 0 0 / 64px 64px, #bfe7c8; display: grid; place-items: center; }
.mission-art img.main { width: 62%; filter: drop-shadow(0 20px 26px rgba(0, 80, 30, .2)); }
.mission-art .float { width: 20%; }
.mission-body { background: var(--green-2); color: #fff; padding: 56px 54px; border-radius: 60px 60px 60px 0; display: flex; flex-direction: column; justify-content: center; position: relative; }
.mission-body::before { content: ""; position: absolute; left: -38px; top: 0; width: 40px; height: 54px; background: var(--green-2); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.mission-body h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); }
.mission-body p { color: rgba(255, 255, 255, .95); font-weight: 600; margin: 0 0 14px; }
.mission-body .kicker { align-self: flex-start; background: var(--sun); color: var(--ink); }
.btn-ghost-w { align-self: flex-start; margin-top: 10px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); background: transparent; }

/* levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.level { border-radius: var(--r-lg); padding: 22px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.level .i3d { font-size: 64px; margin-bottom: 6px; }
.level b { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.level small { color: var(--ink-2); font-weight: 800; }
.level .lv { position: absolute; right: 16px; top: 16px; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f3f3f3; color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; right: 18px; top: 16px; font: 900 14px "Rubik"; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); }
.step .i3d { font-size: 54px; margin-bottom: 12px; }
.step b { display: block; font-size: 19px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 15px; }

/* social doodles */
.social { background: #f4f2ff url("/img/doodle-bg.svg") repeat center / 520px; border-radius: 60px 60px 0 0; padding: 70px 0; }
.social-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.social-art { position: relative; display: grid; place-items: center; }
.social-art .disc { width: 78%; aspect-ratio: 1; border-radius: 50%; background: #e3defc; display: grid; place-items: center; }
.social-art .disc img { width: 70%; }
.social-art .float { width: 22%; }
.social h2 { color: var(--blue); }
.socials { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.socials a { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s; }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 26px; height: 26px; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: var(--shadow-2); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 900; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-weight: 600; }

/* footer */
.site-foot { background: #fff; border-top: 1px solid var(--line); padding: 54px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.site-foot p { color: var(--ink-2); font-size: 14px; font-weight: 600; max-width: 360px; }
.site-foot h4 { margin: 4px 0 12px; font-size: 14px; color: var(--muted); font-weight: 800; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-foot ul a { text-decoration: none; font-weight: 700; font-size: 14px; }
.site-foot ul a:hover { text-decoration: underline; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: 13px; font-weight: 700; }
.foot-bar a { color: var(--ink-2); }

/* ================================================================ app */
.app-body { background: #fffdf7; min-height: 100vh; }
.app-top { background: linear-gradient(180deg, #fbedbd 0%, #fff8e3 60%, rgba(255, 253, 247, 0) 100%); margin-top: -84px; padding: 110px 0 10px; }
.app-main { padding: 10px 0 120px; min-height: 60vh; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 22px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin: 0; line-height: 1.05; font-weight: 900; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); font-weight: 600; }
.notice { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 16px 20px; box-shadow: var(--shadow-2); margin-bottom: 20px; font-weight: 700; color: var(--ink-2); }
.notice > .i3d { font-size: 40px; flex: none; }
.notice b { color: var(--ink); }
.notice.warn { background: #fff7dc; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 2px var(--line); }
.fchip .i3d { font-size: 20px; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.sorts { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 2px var(--line); }
.sorts button { border: 0; background: none; border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.sorts button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }

.bills { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.bill { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.bill:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(14, 18, 22, .1); }
.bill-shot { position: relative; height: 170px; background: var(--tint, #f4f4f4); overflow: hidden; }
.bill-shot img.photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bill-shot .kind { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 5px 11px 5px 7px; font-weight: 900; font-size: 13px; }
.bill-shot .kind .i3d { font-size: 20px; }
.bill-shot .stamp { position: absolute; right: 12px; top: 12px; font-weight: 900; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; }
.bill-shot .stamp.gray { background: #8b9096; }
.bill-shot .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 90px; }
.bill-in { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bill-amt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bill-amt b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bill-amt small { color: var(--muted); font-weight: 800; font-size: 13px; }
.bill-note { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.bill-who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-top: auto; }
.bill-who small { color: var(--muted); font-weight: 700; margin-left: auto; font-size: 12px; }
.bar { height: 12px; border-radius: 999px; background: #f1efe7; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 999px; background: linear-gradient(90deg, #ffd348, #ffb800); transition: width .6s ease; }
.bar.done i { background: linear-gradient(90deg, #35d07f, #0db564); }
.bar-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--ink-2); }

.ava { --s: 40px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #ffe792, #ffc4d6); }
.ava-l { font-weight: 900; font-size: calc(var(--s) * .42); color: rgba(14, 18, 22, .55); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.empty { text-align: center; background: #fff; border-radius: var(--r-xl); padding: 50px 24px; box-shadow: var(--shadow); }
.empty > .i3d { font-size: 110px; margin: 0 auto 10px; }
.empty h3 { font-size: 26px; margin: 0 0 6px; font-weight: 900; }
.empty p { color: var(--ink-2); font-weight: 600; max-width: 520px; margin: 0 auto 20px; }

.skel { background: linear-gradient(90deg, #f3f1ea 25%, #faf8f2 37%, #f3f1ea 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r-lg); min-height: 330px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* bill page */
.billpage { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 900; }
.photo-big { border-radius: var(--r-lg); overflow: hidden; background: #f4f4f4; cursor: zoom-in; }
.photo-big img { width: 100%; max-height: 720px; object-fit: contain; background: #f7f7f7; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f6f4ee; font-weight: 800; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.pill .i3d { font-size: 18px; }
.pill.ok { background: var(--mint); color: #087a43; }
.pill.warn { background: #fff1c2; color: #7a5a00; }
.pill.bad { background: #ffe1e1; color: #a12a2a; }
.big-amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.poster { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.poster b { display: block; font-size: 17px; } .poster small { color: var(--muted); font-weight: 700; }

.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f6f4ee; border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.pay-tabs button { border: 0; background: none; border-radius: 999px; padding: 10px; font-weight: 900; color: var(--ink-2); }
.pay-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-2); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.presets button { border: 0; border-radius: 14px; background: #f6f4ee; padding: 11px 4px; font-weight: 900; font-size: 15px; }
.presets button[aria-pressed="true"] { background: var(--sun); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 900; font-size: 14px; }
.field small { color: var(--muted); font-weight: 700; }
.input { width: 100%; border: 0; border-radius: 16px; background: #f6f4ee; padding: 14px 16px; font-weight: 800; font-size: 17px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sun-deep); background: #fff; }
textarea.input { resize: vertical; min-height: 84px; font-weight: 700; font-size: 15px; }
.money-in { position: relative; } .money-in::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--muted); font-size: 18px; } .money-in .input { padding-left: 32px; }
.sum { display: grid; gap: 6px; background: #fffaea; border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum div b { color: var(--ink); }
.sum .total { border-top: 1px dashed #e7d9a5; padding-top: 8px; font-size: 16px; }
.say { margin: 12px 0 0; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.say.ok { color: #087a43; } .say.bad { color: var(--red); }
.payers { display: grid; gap: 10px; }
.payer { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.payer .amt { margin-left: auto; font-family: "Rubik"; font-weight: 600; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.fineprint { color: var(--muted); font-size: 13px; font-weight: 700; margin: 10px 0 0; }

/* upload */
.up-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.up-step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-2); font-weight: 800; font-size: 14px; color: var(--muted); }
.up-step i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f1efe7; font: 900 13px "Rubik"; color: var(--ink-2); }
.up-step.on { color: var(--ink); } .up-step.on i { background: var(--sun); color: var(--ink); }
.up-step.done i { background: var(--green); color: #fff; }
.upgrid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.drop { display: grid; place-items: center; text-align: center; border: 3px dashed #eadfbd; border-radius: var(--r-xl); background: #fffaea; padding: 50px 20px; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: #fff3c9; border-color: var(--sun-deep); }
.drop > .i3d { font-size: 90px; margin-bottom: 10px; }
.drop b { font-size: 20px; } .drop p { color: var(--ink-2); font-weight: 600; margin: 6px 0 0; }
.editor { background: #2a2d33; border-radius: var(--r-xl); padding: 14px; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.tool { border: 0; border-radius: 12px; padding: 9px 13px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.tool[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.tool:disabled { opacity: .4; }
.editor-bar .sp { flex: 1; }
.stage { position: relative; display: grid; place-items: center; background: repeating-conic-gradient(#33373e 0 25%, #2c3036 0 50%) 0 0 / 22px 22px; border-radius: 16px; overflow: hidden; touch-action: none; }
.stage canvas { max-width: 100%; height: auto; display: block; cursor: crosshair; }
.editor-tip { color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 13px; margin: 10px 4px 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 14px; color: var(--ink-2); margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.kind-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.kind-pick button { border: 0; border-radius: 16px; padding: 10px 6px; background: #f6f4ee; font-weight: 800; font-size: 12.5px; display: grid; justify-items: center; gap: 4px; }
.kind-pick button .i3d { font-size: 30px; }
.kind-pick button[aria-pressed="true"] { background: var(--sun); box-shadow: 0 3px 0 #e3ac00; }
.xlink { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow-2); margin-bottom: 14px; }
.xlink .grow { flex: 1; min-width: 0; }
.xlink b { display: block; } .xlink small { color: var(--muted); font-weight: 700; }
.btn-x { background: #000; color: #fff; }
.btn-x svg { width: 18px; height: 18px; }

/* leaderboard */
.lead-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: 22px; }
.podium { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 22px 16px; text-align: center; display: grid; justify-items: center; gap: 6px; text-decoration: none; position: relative; }
.podium.p1 { background: linear-gradient(180deg, #fff3c4, #fff); padding-top: 34px; }
.podium .medal { position: absolute; top: -18px; font-size: 40px; }
.podium b { font-size: 17px; } .podium .num { font-size: 22px; font-weight: 700; }
.rows { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid #f3f1ea; text-decoration: none; }
.row:first-child { border-top: 0; }
.row .rk { font: 800 16px "Rubik"; color: var(--muted); text-align: center; }
.row .nm { display: flex; align-items: center; gap: 10px; font-weight: 900; min-width: 0; }
.row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .cr { font: 700 18px "Rubik"; }
.tier { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #fff3c4; font-weight: 900; font-size: 12px; color: #6b4e00; white-space: nowrap; }
.tier .tier-i { font-size: 18px; }

/* profile */
.prof { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.prof h1 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: #fffaea; border-radius: 20px; padding: 14px 16px; }
.stat b { display: block; font: 700 24px "Rubik"; }
.stat small { color: var(--ink-2); font-weight: 800; }
.tier-progress { margin-top: 16px; }

/* sheet (wallet chooser, lightbox) */
.sheet { position: fixed; inset: 0; z-index: 100; background: rgba(14, 18, 22, .45); display: grid; place-items: center; padding: 20px; }
.sheet-in { width: min(440px, 100%); background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); max-height: 90vh; overflow: auto; }
.sheet-in h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.sheet-in p { color: var(--ink-2); font-weight: 600; }
.sheet-list { display: grid; gap: 8px; margin-top: 14px; }
.sheet-list button { display: flex; justify-content: space-between; align-items: center; border: 0; background: #f6f4ee; border-radius: 16px; padding: 14px 16px; font-weight: 900; }
.sheet-list button img { width: 28px; height: 28px; }
.sheet-foot { margin-top: 16px; display: flex; justify-content: flex-end; }
.btn-soft:not(.btn) { border: 0; background: #f6f4ee; border-radius: 999px; padding: 10px 18px; font-weight: 900; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(14, 18, 22, .88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; }

/* phone tab bar (app) */
.tabbar { display: none; }

/* legal pages */
.legal { max-width: 780px; padding: 40px 0 90px; }
.legal h1 { font-size: 42px; letter-spacing: -.03em; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-grid, .play, .billpage, .upgrid, .social-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .mission { grid-template-columns: 1fr; border-radius: 48px; }
  .mission-art { min-height: 300px; }
  .mission-body { border-radius: 0 0 48px 48px; }
  .mission-body::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; background: #fffdf3; border-radius: 26px; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .12); margin: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 17px; }
  .menu-btn { display: grid; place-items: center; }
  .nav-cta .hide-sm { display: none; }
  .feats { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .app .nav-links { display: none !important; }
  .app .menu-btn { display: none; }
  .app .nav-cta { margin-left: auto; }
  .photo-big img { max-height: 62vh; }
  .app-main { padding-bottom: 110px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: rgba(255, 253, 243, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .14); padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom) * .5); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-weight: 900; font-size: 11px; color: var(--ink-2); padding: 6px 0; border-radius: 18px; }
  .tabbar a .i3d { font-size: 26px; }
  .tabbar a[aria-current="page"] { background: #fff1bf; color: var(--ink); }
  .lead-podium { grid-template-columns: 1fr; }
  .lead-podium .p1 { order: -1; }
  .row { grid-template-columns: 34px 1fr auto; }
  .row .tier { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 .spark::after { display: none; }
  .hero .lead { font-size: 18px; }
  .btn-lg { padding: 15px 22px; font-size: 17px; }
  .sec { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .feat { padding: 24px; }
  .feat-art .big { font-size: 96px; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo { font-size: 19px; }
  .btn-wallet { min-width: 0; padding: 10px 14px; font-size: 14px; }
  .card { padding: 18px; border-radius: 26px; }
  .big-amt { font-size: 38px; }
  .prof h1 { font-size: 26px; }
  .stat b { font-size: 20px; }
}
