:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --tile: #f4f4f4;
  --accent: #e5484d;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --text: #f2f2f2;
    --muted: #9a9a9a;
    --line: #262626;
    --tile: #1b1b1b;
    --accent: #ff6369;
  }
}
:root[data-theme="dark"] {
  --bg: #111111;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: #262626;
  --tile: #1b1b1b;
  --accent: #ff6369;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 15px;
}
header a { text-decoration: none; color: var(--muted); }
header .logo { color: var(--text); font-weight: 700; font-size: 18px; }
header .logo span { color: var(--accent); }

.intro { padding: 32px 0 16px; }
h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 700; }
.intro p { margin: 0; color: var(--muted); }
.ticker { margin-top: 20px !important; font-size: 15px; font-variant-numeric: tabular-nums; }
.ticker b { color: var(--text); font-weight: 600; }

.bug { padding: 40px 0; border-bottom: 1px solid var(--line); }
.bug-meta { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.bug-meta b { color: var(--text); font-weight: 600; }
.bug h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 16px; }
.shot {
  display: block; width: 100%; padding: 16px; border: 0; margin: 0 0 16px; cursor: zoom-in;
  background: var(--tile); border-radius: 14px;
}
.shot img, .shot video {
  display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 6px;
}
.bug p { margin: 0 0 12px; }
.made { font-size: 15px; color: var(--muted); }
.made b { color: var(--text); font-weight: 600; }

section.money, section.submit { padding: 48px 0 8px; }
section h2 { font-size: 24px; margin: 0 0 16px; letter-spacing: -.01em; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 500; }
th:not(:first-child), td:not(:first-child) { text-align: right; }
.note { font-size: 14px; color: var(--muted); }

.submit p { color: var(--muted); margin: 0 0 20px; }
.button {
  display: inline-block; background: var(--text); color: var(--bg); text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 999px;
}

.submit .addr { margin: 14px 0 0; font-size: 15px; color: var(--muted); user-select: all; }

footer { padding: 64px 0 40px; font-size: 14px; color: var(--muted); }

dialog#viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(0, 0, 0, .94);
}
dialog#viewer::backdrop { background: rgba(0, 0, 0, .94); }
dialog#viewer[open] { display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; }
#viewer-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#viewer-media img, #viewer-media video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.close {
  position: fixed; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer;
}
