/* Charity — dark, clean, three sections: Explore · Launched · Launch coin. Figtree. */
:root {
  --bg: #0d0f0e; --bg-2: #131614; --card: #181c19; --card-2: #1f2521; --line: #242a26; --line-2: #343b36;
  --text: #f2f4f0; --muted: #98a099; --accent: #2bd27a; --accent-2: #22b868; --accent-ink: #06130b;
  --lime: #cdf58a; --lime-ink: #10381f; --red-bg: #3a1b1b; --red: #ffb0b0; --ok-bg: #11311f; --ok: #9df0bf;
  --radius: 16px; --nav-h: 72px; --wrap: 1180px; --ease: cubic-bezier(.2, .8, .2, 1);
  /* card depth: a hairline of light along the top edge, a tight contact shadow and a soft long one; the hover stack lifts it */
  --depth: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .45), 0 16px 36px -16px rgba(0, 0, 0, .7);
  --depth-hi: inset 0 1px 0 rgba(255, 255, 255, .09), 0 2px 4px rgba(0, 0, 0, .4), 0 34px 70px -22px rgba(0, 0, 0, .8), 0 0 0 1px rgba(43, 210, 122, .28);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; font-family: 'Figtree', 'Trebuchet MS', Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--card-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* motion: one language, used everywhere */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: pulse 1.8s ease-in-out infinite; }

/* pills + buttons */
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; line-height: 1.3; }
.tag.lime { background: var(--lime); color: var(--lime-ink); }
.tag.dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); }
.chip { display: inline-block; background: var(--lime); color: var(--lime-ink); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), background .2s, border-color .25s, color .25s, opacity .2s, box-shadow .3s var(--ease); }
/* every button: lifts on hover, squashes on press, a ripple from the press point; primary gets a light sweep,
   ghost fills from the left; an icon inside nudges along */
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; transition: transform .45s var(--ease); }
.btn::after { content: ''; position: absolute; z-index: -1; left: var(--rx, 50%); top: var(--ry, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; }
.btn.rip::after { animation: btn-rip .6s var(--ease); }
@keyframes btn-rip { from { transform: scale(0); opacity: .28; } to { transform: scale(40); opacity: 0; } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .1s; }
.btn svg { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.btn:hover svg { transform: translateX(3px) rotate(-6deg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary::before { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn.primary:hover { background: #3be28c; box-shadow: 0 10px 26px -8px rgba(43, 210, 122, .65); }
.btn.primary:hover::before { transform: translateX(120%); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost::before { background: var(--card-2); transform: scaleX(0); transform-origin: left; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.ghost:hover::before { transform: scaleX(1); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.link:hover { color: var(--accent); }

/* nav */
/* the top bar (js/navbar.js): full width at the top, a floating blurred pill once the page scrolls */
.rn-spacer { display: block; height: var(--nav-h); }
.rn { position: fixed; inset: 0 0 auto; z-index: 50; padding: 10px 16px 0; pointer-events: none; }
.rn-body, .rn-mobile { pointer-events: auto; }
.rn-body { position: relative; z-index: 60; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1280px; min-width: 800px; margin: 0 auto; padding: 8px 16px; border-radius: 999px; background: transparent; transform: translateY(0); transition: width .7s cubic-bezier(.2, .9, .25, 1), transform .7s cubic-bezier(.2, .9, .25, 1), background .4s, box-shadow .4s, backdrop-filter .4s; }
.rn.visible .rn-body { width: 40%; transform: translateY(20px); background: rgba(10, 10, 10, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 68px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .1) inset; }
.rn-logo { position: relative; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; white-space: nowrap; }
.rn-logo img { width: 32px; height: 32px; }
.rn-items { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; pointer-events: none; }
.rn-item { position: relative; z-index: 20; padding: 8px 16px; border-radius: 999px; color: #d4d4d4; text-decoration: none; pointer-events: auto; transition: color .2s; }
.rn-item:hover, .rn-item:focus-visible { color: #fff; outline: 0; }
.rn-item.on { color: var(--accent); }
.rn-pill { position: absolute; z-index: 10; top: 50%; height: 36px; margin-top: -18px; border-radius: 999px; background: #262626; opacity: 0; transition: left .35s cubic-bezier(.3, 1.2, .5, 1), width .35s cubic-bezier(.3, 1.2, .5, 1), opacity .2s; }
.rn-items.hovering .rn-pill { opacity: 1; }
.rn-right { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; }
.rn-btn { position: relative; display: inline-block; padding: 8px 16px; border: 0; border-radius: 8px; background: #fff; color: #000; font: inherit; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.rn-btn:hover { transform: translateY(-2px); }
.rn-btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 24px rgba(43, 210, 122, .12), 0 0 0 1px rgba(43, 210, 122, .2), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.rn-btn.secondary { background: transparent; color: #fff; }
.rn-btn.wallet-btn.is-connected { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
/* the dropdown: one box under the hovered menu, sliding and resizing between them on a spring */
.rn-drop { position: absolute; top: calc(100% + 4px); left: 50%; padding-top: 16px; transform: translateX(-50%); pointer-events: none; transition: left .45s cubic-bezier(.3, 1.25, .5, 1); }
.rn-drop.instant { transition: none; }
.rn-drop-box { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2); background: #000; backdrop-filter: blur(4px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .4), 0 8px 10px -6px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(10px) scale(.85); transform-origin: top center; transition: opacity .25s, transform .45s cubic-bezier(.3, 1.4, .5, 1), width .45s cubic-bezier(.3, 1.25, .5, 1), height .45s cubic-bezier(.3, 1.25, .5, 1); }
.rn-drop.instant .rn-drop-box { transition: opacity .25s, transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.rn-drop.open { pointer-events: auto; }
.rn-drop.open .rn-drop-box { opacity: 1; transform: none; }
.rn-drop-in { position: relative; }
.rn-panel { position: absolute; top: 0; left: 0; width: max-content; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.rn-panel.on { opacity: 1; visibility: visible; transition: opacity .25s .05s; }
.rn-links { display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.rn-hl { color: #e5e5e5; text-decoration: none; transition: color .2s; }
.rn-hl:hover { color: var(--accent); }
.rn-products { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 16px; font-size: 14px; }
.rn-product { display: flex; gap: 8px; color: inherit; text-decoration: none; }
.rn-product img { flex: none; width: 140px; height: 70px; border-radius: 6px; object-fit: cover; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.rn-product:hover img { transform: scale(1.04); }
.rn-product h4 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #fff; }
.rn-product p { margin: 0; max-width: 10rem; font-size: 13px; color: #d4d4d4; }
.rn-product:hover h4 { color: var(--accent); }
/* phones */
.rn-mobile { position: relative; z-index: 50; display: none; flex-direction: column; width: 100%; max-width: calc(100vw - 2rem); margin: 0 auto; padding: 8px 0; border-radius: 2rem; transform: translateY(0); transition: width .7s cubic-bezier(.2, .9, .25, 1), transform .7s cubic-bezier(.2, .9, .25, 1), padding .5s, border-radius .5s, background .4s, box-shadow .4s; }
.rn.visible .rn-mobile { width: 90%; padding: 8px 12px; border-radius: 4px; transform: translateY(20px); background: rgba(10, 10, 10, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 24px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 0 rgba(255, 255, 255, .1) inset; }
.rn-mhead { display: flex; align-items: center; justify-content: space-between; }
.rn-toggle { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; background: none; color: #fff; cursor: pointer; }
.rn-toggle svg { width: 24px; height: 24px; }
.rn-mmenu { position: absolute; inset: 64px 0 auto; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 16px; border-radius: 8px; background: #0a0a0a; box-shadow: 0 0 24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.rn-mobile.open .rn-mmenu { opacity: 1; visibility: visible; transition: opacity .2s; }
.rn-mmenu > a { color: #d4d4d4; text-decoration: none; font-weight: 600; }
.rn-mmenu > a.on { color: var(--accent); }
.rn-mbtns { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.rn-mbtns .rn-btn { width: 100%; padding: 12px 16px; }
@media (max-width: 1023px) { .rn-body { display: none; } .rn-mobile { display: flex; } }
@media (prefers-reduced-motion: reduce) { .rn-body, .rn-mobile, .rn-drop, .rn-drop-box, .rn-pill { transition-duration: 0s !important; } }
.wallet-btn.is-connected { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; }

/* floating claim */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(520px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); z-index: 80; transform: translateX(100%); transition: transform .4s var(--ease); overflow: auto; padding: 24px 28px 48px; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-head h2 { font-size: 22px; }
.drawer .x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; display: grid; place-items: center; }
.drawer .x:hover { border-color: var(--text); }
.dstep { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dstep:last-child { border-bottom: 0; }
.dstep h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.dstep h3 .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; }
.dstep.done h3 .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dstep.locked { opacity: .45; pointer-events: none; }
.dstep p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* hero */
.hero { padding: 64px 0 28px; }
.hero h1 { font-size: 64px; max-width: 900px; }
.hero .sub { font-size: 19px; color: var(--muted); max-width: 620px; margin-top: 16px; }
.hero .count { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero .count b { color: var(--text); }
.toolbar { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; height: 48px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 18px; background: var(--card); transition: border-color .2s; }
.toolbar .search:focus-within { border-color: var(--accent); }
.toolbar .search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.toolbar .search input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; min-width: 0; }
.select { position: relative; display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px 0 18px; font-weight: 700; gap: 10px; background: var(--card); }
.select select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.select svg { width: 10px; height: 10px; }
.select svg path { fill: currentColor; }
.add-row { display: flex; gap: 10px; }
.add-row input { height: 48px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 18px; font-size: 15px; background: var(--card); min-width: 280px; outline: 0; transition: border-color .2s; }
.add-row input:focus { border-color: var(--accent); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 28px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: var(--depth); transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s, opacity .55s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); box-shadow: var(--depth-hi); }
.card .pic { position: relative; aspect-ratio: 3 / 2; background: var(--bg-2); overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .pic img { transform: scale(1.04); }
/* a scrim at the foot of the photo gives the picture depth and seats the badge */
.card .pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 15, 14, .5), transparent 55%); pointer-events: none; }
.card .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--line-2); letter-spacing: -0.04em; }
.card .badge { position: absolute; z-index: 1; left: 12px; bottom: 12px; background: rgba(13, 15, 14, .78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; width: 0; transition: width 1s var(--ease); }
.card .raised { font-weight: 700; font-size: 14px; margin-top: auto; }
.card .raised span { color: var(--muted); font-weight: 500; }
.more-row { display: flex; justify-content: center; margin-top: 32px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* coin cards (launched) */
.coin-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; text-decoration: none; color: inherit; box-shadow: var(--depth); transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s, opacity .55s var(--ease); }
.coin-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); box-shadow: var(--depth-hi); }
/* cards tilt toward the pointer and catch a little light (.tilt and --tx/--ty come from app.js), so they read as objects */
.card::after, .coin-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(360px circle at calc(50% + var(--tx, 0) * 45%) calc(50% + var(--ty, 0) * 45%), rgba(255, 255, 255, .09), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 2; }
.card.tilt::after, .coin-card.tilt::after { opacity: 1; }
.card.tilt, .coin-card.tilt { transform: perspective(900px) rotateY(calc(var(--tx, 0) * -6deg)) rotateX(calc(var(--ty, 0) * 6deg)) translateY(-6px) scale(1.015); transition: transform .12s linear, border-color .3s, background .3s, box-shadow .3s; transition-delay: 0s; }
.card.tilt .pic img { transform: translate(calc(var(--tx, 0) * -7px), calc(var(--ty, 0) * -7px)) scale(1.08); }
.coin-card img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--bg-2); }
.coin-card b.sym { font-size: 20px; letter-spacing: -0.02em; }
.coin-card .title { font-size: 14px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-card .nums { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.coin-card .nums b { color: var(--text); }

/* generic boxes, forms, stats */
.page { padding: 48px 0 120px; }
.page h1 { font-size: 44px; }
.page .lead { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 680px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box + .box { margin-top: 16px; }
.box h2 { font-size: 20px; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 15px; background: var(--bg); outline: 0; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input[type="file"] { padding: 10px; }
.field small { color: var(--muted); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.msg { margin-top: 12px; font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); display: none; animation: fade-up .3s var(--ease); }
.msg.show { display: block; }
.msg.err { background: var(--red-bg); color: var(--red); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; background: var(--lime); color: var(--lime-ink); padding: 12px 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; }
.code button { height: 32px; padding: 0 12px; font-size: 13px; border-color: var(--lime-ink); color: var(--lime-ink); }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.stat:last-child { border-bottom: 0; }
.stat b { font-size: 15px; color: var(--text); text-align: right; }
.preview { display: grid; grid-template-columns: 160px 1fr; gap: 16px; margin-top: 16px; align-items: start; background: var(--bg); border-radius: 12px; padding: 12px; border: 1px solid var(--line); animation: fade-up .35s var(--ease); }
.preview .pic { border-radius: 10px; overflow: hidden; aspect-ratio: 3/2; background: var(--bg-2); }
.preview .pic img { width: 100%; height: 100%; object-fit: cover; }
.preview h3 { font-size: 17px; }
.preview .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.preview .bar { margin-top: 12px; }
.preview .raised { margin-top: 8px; font-weight: 700; font-size: 13px; }
/* the picture upload (js/upload.js) */
.fu { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 12px; padding: 40px 20px; cursor: pointer; border: 1px dashed var(--line-2); background: #000; outline: 0; }
.fu:focus-visible { border-color: var(--accent); }
.fu .fu-input { display: none; }
.fu-grid { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse at center, #fff, transparent); mask-image: radial-gradient(ellipse at center, #fff, transparent); pointer-events: none; }
.fu-grid > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1px; width: calc(41 * 41px); margin-left: 50%; translate: -50% 0; transform: scale(1.05); background: #171717; }
.fu-grid i { display: flex; width: 40px; height: 40px; flex: none; border-radius: 2px; background: #0a0a0a; }
.fu-grid i.b { box-shadow: 0 0 1px 3px #000 inset; }
.fu-body { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fu-title { position: relative; z-index: 20; margin: 0; font-size: 16px; font-weight: 700; color: #d4d4d4; }
.fu-hint { position: relative; z-index: 20; margin: 8px 0 0; font-size: 15px; color: #a3a3a3; }
.fu-slot { position: relative; width: 100%; max-width: 576px; margin: 40px auto 0; }
.fu-card, .fu-outline { position: relative; z-index: 40; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 128px; height: 128px; margin: 16px auto 0; border-radius: 6px; }
.fu-card { flex-direction: column; gap: 4px; background: #171717; color: #d4d4d4; box-shadow: 0 10px 50px rgba(0, 0, 0, .1); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), opacity .3s, box-shadow .3s; }
.fu-card svg { width: 16px; height: 16px; }
.fu-drop { display: none; font-size: 14px; color: #525252; }
.fu.drag .fu-drop { display: block; animation: fade-up .25s var(--ease); }
.fu-outline { position: absolute; inset: 0; z-index: 30; margin-top: 16px; border: 1px dashed var(--accent); opacity: 0; transition: opacity .3s; }
.fu:hover .fu-card, .fu.drag .fu-card { transform: translate(20px, -20px); opacity: .9; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.fu:hover .fu-outline, .fu.drag .fu-outline { opacity: 1; }
.fu.has .fu-outline { display: none; }
.fu-file { position: relative; z-index: 40; display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px auto 0; padding: 16px; border-radius: 6px; background: #171717; text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.fu-file img { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; }
.fu-meta { flex: 1; min-width: 0; }
.fu-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fu-row p { margin: 0; }
.fu-name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: #d4d4d4; }
.fu-size { flex: none; padding: 4px 8px; border-radius: 8px; background: #262626; color: #fff; font-size: 14px; }
.fu-row.sub { margin-top: 8px; font-size: 14px; color: #a3a3a3; flex-wrap: wrap; gap: 6px 16px; }
.fu-type { padding: 2px 4px; border-radius: 6px; background: #262626; }
@media (prefers-reduced-motion: reduce) { .fu-card { transition: none; } .fu:hover .fu-card { transform: none; } }
.coin-pic { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); }
.results { position: absolute; left: 0; right: 0; top: 54px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; z-index: 20; max-height: 360px; overflow: auto; display: none; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: fade-up .25s var(--ease); }
.results.open { display: block; }
.results button { display: grid; grid-template-columns: 48px 1fr; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); align-items: center; }
.results button:hover { background: var(--card-2); }
.results img, .results .ph { width: 48px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--bg-2); }
.results b { display: block; font-size: 14px; }
.results span { font-size: 12px; color: var(--muted); }

/* two-column app pages */
.two { display: grid; grid-template-columns: 1fr 400px; gap: 40px; margin-top: 32px; align-items: start; }
.two .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: var(--bg-2); }
.two .pic img { width: 100%; height: 100%; object-fit: cover; }
.story { margin-top: 20px; font-size: 16px; color: var(--muted); white-space: pre-line; }
.side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.symbol { display: inline-flex; align-items: center; gap: 12px; }
.symbol img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.symbol b { font-size: 24px; letter-spacing: -0.02em; }
.symbol span { color: var(--muted); display: block; font-size: 13px; }
.ca { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin-top: 12px; word-break: break-all; border: 1px solid var(--line); }
.ca button { margin-left: auto; height: 28px; padding: 0 10px; font-size: 12px; }
.comments .c { padding: 14px 0; border-bottom: 1px solid var(--line); animation: fade-up .35s var(--ease); }
.comments .c .who { font-weight: 700; font-size: 14px; }
.comments .c .who span { color: var(--muted); font-weight: 500; margin-left: 8px; font-size: 12px; }
.comments .c p { margin-top: 4px; font-size: 15px; color: var(--text); white-space: pre-line; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.table small { color: var(--muted); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; }
.band-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 1000px) {
  .two { grid-template-columns: 1fr; }
  .side { position: static; }
  .band-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 16px; }
  .page h1 { font-size: 30px; }
  .row2 { grid-template-columns: 1fr; }
  .preview { grid-template-columns: 1fr; }
  .add-row input { min-width: 0; width: 100%; }
  .drawer { padding: 20px 18px 40px; }
  .band-stats { grid-template-columns: 1fr; }
}

/* phones and touch screens: a live backdrop blur under the fixed nav (and on card badges) re-blurs whatever scrolls
   beneath it on every frame, which is most of the scroll lag on phones; a near-solid fill looks the same */
@media (max-width: 1023px), (hover: none) {
  .rn.visible .rn-mobile, .rn.visible .rn-body { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 10, 10, .94); }
  .card .badge { backdrop-filter: none; background: rgba(13, 15, 14, .88); }
  .rn-drop-box { backdrop-filter: none; }
}
