html, body { margin: 0; height: 100%; overflow: hidden; background: #2b4a2e; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
canvas { display: block; }

#overlay { position: fixed; inset: 0; background: rgba(10, 25, 12, 0.55); display: flex;
  align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
#overlay[hidden] { display: none; }
#card { position: relative; background: #fff; color: #1f2a20; border-radius: 22px; width: 100%; max-width: 400px;
  max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 26px 24px 20px;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); animation: pop 0.22s ease-out; }
@keyframes pop { from { transform: translateY(16px) scale(0.97); opacity: 0; } }
#card h2 { margin: 0 0 6px; font-size: 26px; }
#card h3 { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: #5b6b5c; }
#card .lead { font-size: 18px; margin: 4px 0 12px; }
#card .small { font-size: 14px; color: #5b6b5c; margin: 14px 0 0; }
#card ul { text-align: left; padding-left: 20px; margin: 8px 0; }
#card li { margin: 7px 0; }
#card button { font: 700 18px system-ui, sans-serif; border: 0; border-radius: 999px; cursor: pointer; }
#card .gold { background: #ffd166; color: #222; width: 100%; padding: 14px; margin-top: 14px; }
#card .gold:active { transform: scale(0.98); }
#card .link { background: none; color: #3a6b3f; padding: 10px; margin-top: 4px; font-weight: 600; font-size: 15px; }
#card .x { position: absolute; top: 8px; right: 10px; background: none; font-size: 30px; line-height: 1;
  color: #8a978b; padding: 6px 10px; }
#card .share { background: #f3f6f1; border-radius: 12px; padding: 10px; margin: 8px 0 0; white-space: pre-wrap;
  font: 17px/1.5 system-ui, "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
#card .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; font-size: 12px; color: #5b6b5c; }
#card .stats b { display: block; font-size: 26px; color: #1f2a20; }
#card .dist div { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; }
#card .dist span { width: 76px; text-align: right; color: #5b6b5c; flex: none; }
#card .dist i { font-style: normal; background: #8fd17a; color: #1f2a20; text-align: right; padding: 2px 8px;
  border-radius: 6px; box-sizing: border-box; min-width: 28px; font-weight: 700; }
#card a { color: #3a6b3f; }
