@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url(/assets/sg-400.woff) format('woff'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(/assets/sg-500.woff) format('woff'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url(/assets/sg-700.woff) format('woff'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(/assets/sm-400.woff) format('woff'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url(/assets/sm-700.woff) format('woff'); }
@font-face { font-family: 'Silkscreen'; font-weight: 400; font-display: swap; src: url(/assets/sk-400.woff) format('woff'); }
@font-face { font-family: 'Silkscreen'; font-weight: 700; font-display: swap; src: url(/assets/sk-700.woff) format('woff'); }
@font-face { font-family: 'Doto'; font-weight: 800; font-display: swap; src: url(/assets/dt-800.woff) format('woff'); }

:root {
  color-scheme: light;
  --sans: 'Space Grotesk', system-ui, sans-serif; --mono: 'Space Mono', ui-monospace, Menlo, monospace; --pixel: 'Silkscreen', 'Space Mono', monospace; --display: 'Doto', 'Space Mono', monospace;
  --ink: #0b0d1a; --bg: #dbe4ff; --blue: #1445ff; --blue-d: #0a2fd0; --sky: #93b1ff; --sky-l: #c9d8ff; --cream: #fffbea; --paper: #ffffff;
  --yellow: #ffe94d; --green: #12a150; --red: #e5384f; --gold: #ffcf1f; --silver: #c9d0e0; --bronze: #e8924f;
  --muted: #4a5280; --line: var(--ink); --sh: 5px 5px 0 var(--ink); --sh-s: 3px 3px 0 var(--ink);
  --ease: cubic-bezier(.2,.8,.2,1);
  font-family: var(--sans); background: var(--bg); color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0 auto; padding: 0 20px 48px; min-height: 100vh; position: relative; -webkit-font-smoothing: antialiased; font-family: var(--sans); color: var(--ink); }
a { color: var(--blue); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; }

/* ---------- dotted background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); background-image: radial-gradient(rgba(20,69,255,.28) 1.4px, transparent 1.6px); background-size: 22px 22px; animation: dots 40s linear infinite; }
.bg i { display: none; }
@keyframes dots { to { background-position: 220px 220px; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 -20px; padding: 12px 20px; background: var(--blue); border-bottom: 3px solid var(--ink); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-family: var(--pixel); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.brand-dashboard { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-dashboard:hover, .brand-duckfacts:hover { color: var(--yellow); }
.brand-by { color: rgba(255,255,255,.78); white-space: nowrap; }
.brand-duckfacts { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.brand .dot { width: 16px; height: 16px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { transform: translate(2px, 2px); box-shadow: none; } }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border: 2px solid transparent; transition: all .15s; }
.nav a:hover { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: var(--sh-s); transform: translate(-1px, -1px); }
.nav .install-action, .appnav .install-action { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: var(--sh-s); cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; transition: all .15s; }
.nav .install-action:hover, .appnav .install-action:hover { background: #fff27a; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav .install-action:active, .appnav .install-action:active { transform: translate(2px, 2px); box-shadow: none; }
.social-icon { width: 14px; height: 14px; vertical-align: -2px; fill: currentColor; }
.farcaster-icon { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }

@media (max-width: 640px) {
  body { padding-left: 14px; padding-right: 14px; }
  .topbar { align-items: center; gap: 8px; margin-left: -14px; margin-right: -14px; padding: 10px 14px 8px; }
  .topbar .brand { min-width: 0; flex: 1 1 auto; gap: 5px; font-size: 11px; line-height: 1.2; letter-spacing: .02em; }
  .topbar .brand-dashboard { gap: 7px; }
  .topbar .brand .dot { width: 13px; height: 13px; flex: 0 0 13px; }
  .topbar .nav { flex: 1 0 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 4px; padding-top: 7px; border-top: 1px dashed rgba(255,255,255,.45); }
  .topbar .nav a { min-width: 0; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px; font-size: 9px; letter-spacing: .035em; white-space: nowrap; }
  .topbar .nav .install-action { min-width: 0; min-height: 34px; padding: 7px 4px; font-size: 9px; letter-spacing: .035em; }
  .topbar .nav a .farcaster-icon { width: 13px; height: 13px; margin-right: 1px; }
  .topbar .nav .social-icon { width: 13px; height: 13px; }
}

/* ---------- panels ---------- */
.glass { position: relative; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--sh); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.spot:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--blue); color: #fff; padding: 9px 14px; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; background: var(--yellow); border: 2px solid var(--ink); color: var(--ink); }
.tag.blue { background: var(--blue); color: #fff; } .tag.green { background: #b9f5cf; } .tag.white { background: #fff; }

/* ---------- controls ---------- */
.seg { position: relative; display: inline-flex; background: #fff; border: 2px solid var(--ink); box-shadow: var(--sh-s); padding: 0; }
.seg button { position: relative; z-index: 1; background: none; border: 0; color: var(--ink); padding: 9px 16px; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; transition: color .2s; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed=true] { color: #fff; }
.seg .thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--blue); z-index: 0; transition: transform .3s var(--ease), width .3s var(--ease); }
.chip { background: #fff; border: 2px solid var(--ink); color: var(--ink); padding: 8px 12px; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--sh-s); transition: all .12s; }
.chip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.chip[aria-pressed=true] { background: var(--yellow); }
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 2px solid var(--ink); padding: 10px 16px; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none; box-shadow: var(--sh-s); transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--sky-l); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.primary:hover { background: #fff27a; }
.btn.accent { background: var(--blue); color: #fff; }
.btn.accent:hover { background: var(--blue-d); }
.btn.big { padding: 13px 20px; font-size: 13px; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.sharebtn { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #fff; border: 2px solid var(--ink); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: all .12s; }
.sharebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sharepop { position: relative; display: inline-block; }
.sharepop > summary { list-style: none; }
.sharepop > summary::-webkit-details-marker { display: none; }
.sharepop-menu { position: absolute; z-index: 70; top: calc(100% + 7px); right: 0; width: max-content; min-width: 190px; padding: 5px; border: 2px solid var(--ink); background: #fff; color: var(--ink); box-shadow: var(--sh); text-align: left; }
.sharepop-menu button { display: block; width: 100%; min-height: 38px; padding: 9px 10px; border: 0; border-bottom: 1px dashed rgba(11,13,26,.25); background: transparent; color: var(--ink); font: 700 10px var(--mono); letter-spacing: .04em; text-align: left; text-transform: uppercase; cursor: pointer; }
.sharepop-menu button:last-child { border-bottom: 0; }
.sharepop-menu button:hover, .sharepop-menu button:focus-visible { background: var(--yellow); outline: none; }
.eye-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; vertical-align: -3px; }
.eye-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.views { white-space: nowrap; color: var(--muted); }
.view-value { margin-left: 4px; }
.sharebtn:hover { background: var(--ink); color: #fff; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--blue); }
.reportbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; background: #fff; border: 2px solid var(--ink); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); font: 800 18px/1 var(--sans); transition: all .12s; }
.reportbtn:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.actionset { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.report-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(11,13,26,.64); }
.report-card { width: min(520px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; padding: 24px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.report-card h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.report-card p { margin: 8px 0 20px; color: var(--muted); line-height: 1.5; }
.report-card label { display: block; margin: 14px 0 6px; color: var(--ink); font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.report-card select, .report-card input, .report-card textarea { width: 100%; border: 2px solid var(--ink); background: #fff; color: var(--ink); padding: 11px 12px; font: 500 14px/1.4 var(--sans); }
.report-card textarea { min-height: 110px; resize: vertical; }
.report-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.report-card select:focus, .report-card input:focus, .report-card textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.report-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.report-actions .report-status { flex: 1 1 180px; color: var(--muted); font: 700 10px/1.4 var(--mono); text-transform: uppercase; }
.report-actions .report-status.error { color: var(--red); }
@media (max-width: 720px) { .report-card { padding: 18px; } .actionset { gap: 5px; } }
kbd { font: 700 11px var(--mono); padding: 1px 6px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }

/* ---------- motion helpers ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
.skel { background: repeating-linear-gradient(90deg, #e3e9ff 0 14px, #cfdaff 14px 28px); animation: slide 1s linear infinite; color: transparent !important; }
@keyframes slide { to { background-position: 28px 0; } }
.live::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--green); border: 2px solid var(--ink); animation: blink2 1.2s steps(2) infinite; }
@keyframes blink2 { 50% { background: #fff; } }
.shine { color: var(--blue); }

/* ---------- toast + confetti ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--yellow); color: var(--ink); padding: 10px 18px; border: 2px solid var(--ink); box-shadow: var(--sh-s); font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; animation: toast-in .3s var(--ease), toast-out .3s 2.1s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

footer { margin-top: 40px; padding: 16px 0 4px; border-top: 2px dashed var(--ink); color: var(--muted); font-family: var(--mono); font-size: 12px; }
footer a { color: var(--blue); font-weight: 700; }
.save-hint { color: var(--muted); font: 700 10px/1.5 var(--mono); letter-spacing: .03em; text-transform: uppercase; }

/* ---------- compact site footer ---------- */
footer.site-footer { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr); gap: 28px 56px; margin-top: 64px; padding: 28px 0 4px; border-top: 3px solid var(--ink); color: var(--muted); font-family: var(--sans); font-size: 13px; }
.site-footer-brand { display: grid; align-content: start; gap: 9px; }
.site-footer-title { color: var(--ink); font: 700 19px var(--pixel); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.site-footer-title:hover { color: var(--blue); }
.site-footer-brand p { max-width: 24ch; margin: 0; line-height: 1.45; }
.site-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.site-footer-col { display: grid; align-content: start; gap: 7px; }
.site-footer-col h2 { margin: 0 0 4px; color: var(--ink); font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-footer-col a { width: fit-content; color: var(--muted); font: 700 11px var(--mono); letter-spacing: .02em; text-decoration: none; }
.site-footer-col a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.site-footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 13px; border-top: 1px dashed rgba(11,13,26,.35); color: var(--muted); font: 700 10px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.site-footer-bottom a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Farcaster logo used inside buttons and menus on every page; without a size the PNG renders at full resolution */
.fc-share-icon { width: 15px; height: 15px; max-width: 15px; object-fit: contain; flex: 0 0 auto; vertical-align: -3px; }
.chip:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
