/* Memecoin Help app kit v1.0.0. Blue = good, orange = warning, never red. */
:root { --pwa-bg: #0b0b0b; --pwa-ink: #e8edf5; --pwa-mute: #9aa7bd; --pwa-line: rgba(255,255,255,.12); --pwa-blue: #3b82f6; --pwa-blue-d: #2563eb; --pwa-orange: #fb923c; --pwa-acc: #fb923c; }
.pwa-btn { font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 10px; padding: 9px 14px; background: var(--pwa-blue-d); color: #fff; border: 1px solid transparent; line-height: 1.2; }
.pwa-btn.pwa-ghost { background: transparent; color: var(--pwa-ink); border-color: var(--pwa-line); }
.pwa-link { background: none; border: 0; color: var(--pwa-blue-d); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 0; text-decoration: underline; }

/* install banner */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 99990; max-width: 460px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; background: var(--pwa-bg); color: var(--pwa-ink); border: 1px solid var(--pwa-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.pwa-banner-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.pwa-banner-t strong { font-size: 15px; } .pwa-banner-t span { font-size: 13px; color: var(--pwa-mute); line-height: 1.35; }
.pwa-banner-b { display: flex; gap: 8px; }
@media (min-width: 769px) { .pwa-banner { left: auto; right: 20px; bottom: 76px; margin: 0; } }

/* checklist progress + items */
.pwa-prog { margin: 14px 0 12px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #0f172a; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.pwa-prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pwa-prog-t { font-weight: 700; }
.pwa-prog-note { margin-top: 6px; font-size: 13px; color: #475569; }
.pwa-meter { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin-top: 8px; }
.pwa-meter > span { display: block; height: 100%; width: 0; background: var(--pwa-blue); border-radius: 99px; transition: width .25s ease; }
.pwa-prog.pwa-complete { border-color: var(--pwa-blue); background: #eff6ff; }
ul.pwa-cl li { padding-left: 32px !important; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: opacity .15s; }
ul.pwa-cl li:focus-visible { outline: 2px solid var(--pwa-blue); outline-offset: 2px; border-radius: 6px; }
ul.pwa-cl li.pwa-done { opacity: .72; }
ul.pwa-cl li.pwa-done:before { background: var(--pwa-blue-d) !important; border-color: var(--pwa-blue-d) !important; color: #fff !important; content: "\2713" !important; font-size: 12px !important; font-weight: 800; line-height: 12px !important; text-align: center; }
ul.pwa-cl li.pwa-done { text-decoration: line-through; text-decoration-color: rgba(100,116,139,.6); }

/* quiz history */
.pwa-qhist { margin: 16px 0; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #0f172a; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.pwa-qhist h4 { margin: 0 0 8px; font-size: 15px; }
.pwa-qrow { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 5px 0; border-top: 1px solid #e2e8f0; font-size: 14px; }
.pwa-qrow:first-of-type { border-top: 0; }
.pwa-qtier { font-weight: 600; flex: 1 1 160px; } .pwa-qscore { color: var(--pwa-blue-d); font-weight: 700; } .pwa-qwhen { color: #64748b; }

/* sheet */
html.pwa-lock { overflow: hidden; }
.pwa-backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.6); z-index: 99996; }
.pwa-sheet { position: fixed; z-index: 99997; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; -webkit-overflow-scrolling: touch; background: var(--pwa-bg); color: var(--pwa-ink); border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pwa-line); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
@media (min-width: 769px) { .pwa-sheet { left: auto; right: 20px; bottom: 20px; width: 400px; max-height: 80vh; border-radius: 16px; border: 1px solid var(--pwa-line); } }
.pwa-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.pwa-sheet h2 { margin: 0; font-size: 20px; color: #fff; }
.pwa-sheet h3 { margin: 18px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pwa-orange); }
.pwa-sub { margin: 2px 0 0; font-size: 13px; color: var(--pwa-mute); }
.pwa-x { background: none; border: 0; color: var(--pwa-ink); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 6px; }
.pwa-row { display: block; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--pwa-line); border-radius: 12px; color: var(--pwa-ink) !important; text-decoration: none !important; }
.pwa-row strong { display: block; font-size: 15px; color: #fff; } .pwa-row span { font-size: 13px; color: var(--pwa-mute); }
.pwa-row .pwa-meter { background: rgba(255,255,255,.14); }
.pwa-ibox { margin-top: 18px; padding: 12px; border: 1px solid var(--pwa-line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pwa-ibox span { font-size: 13px; color: var(--pwa-mute); }
.pwa-wipe { display: block; margin-top: 16px; color: var(--pwa-mute); font-size: 13px; }

/* desktop pill / mobile tabs */
.pwa-pill { position: fixed; right: 20px; bottom: 20px; z-index: 99980; display: none; font: 600 14px system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #fff; background: var(--pwa-bg); border: 1px solid var(--pwa-line); border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.pwa-tabs { display: none; }
@media (min-width: 769px) { .pwa-pill { display: block; } }
@media (max-width: 768px) {
  body.pwa-has-tabs { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .pwa-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99985; display: flex; background: var(--pwa-bg); border-top: 1px solid var(--pwa-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .pwa-tabs a, .pwa-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: none; border: 0; color: var(--pwa-mute); font: 500 11px system-ui, -apple-system, Segoe UI, Roboto, sans-serif; text-transform: none; letter-spacing: 0; text-decoration: none; cursor: pointer; }
  .pwa-tabs a[aria-current="page"] { color: var(--pwa-acc); background: rgba(255,255,255,.07); }
}
@media (display-mode: standalone) { body { -webkit-tap-highlight-color: transparent; } }
@media print { .pwa-tabs, .pwa-pill, .pwa-banner, .pwa-sheet, .pwa-backdrop, .pwa-prog-note { display: none !important; } }
