:root {
  color: #151515;
  background: #faf9f6;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #faf9f6; }
button { font: inherit; color: inherit; }
.page { width: min(100%, 680px); min-height: 100vh; margin: 0 auto; padding: 18px 16px max(26px, env(safe-area-inset-bottom)); }
.app-banner { display: flex; align-items: center; gap: 9px; border: 2px solid #151515; background: #fff; padding: 9px; margin-bottom: 14px; }
.brand-box { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #151515; border-radius: 3px; background: #ffda00; font-size: 12px; font-weight: 950; }
.brand-name { font-size: 12px; font-weight: 950; }
.open-button { margin-left: auto; border: 2px solid #151515; background: #ffda00; border-radius: 2px; padding: 5px 12px; font-size: 11px; font-weight: 950; cursor: pointer; }
.share-card { border: 2px solid #151515; background: #fff; padding: 14px; }
.comment-card { border: 2px dashed #151515; border-radius: 3px; padding: 12px; margin-bottom: 12px; }
.comment-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; }
.comment-time { margin-left: auto; color: #77766f; font-weight: 600; }
.avatar { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid #151515; border-radius: 50%; background: #ffda00; font-size: 10px; font-weight: 950; }
.comment-body { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.ranking { border: 1.5px solid #151515; border-radius: 3px; padding: 12px; }
.ranking-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category { border: 1px solid #2947ff; color: #2947ff; padding: 2px 5px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
h1 { margin: 14px 0 2px; font-size: clamp(21px, 6vw, 29px); line-height: 1.05; letter-spacing: -.03em; }
.byline { margin: 0 0 14px; color: #6f6e68; font-size: 12px; }
.rank-row { min-height: 38px; display: flex; align-items: center; gap: 10px; border: 1.5px solid #151515; border-radius: 3px; padding: 5px 8px; margin-bottom: 6px; background: #faf9f6; font-size: 14px; font-weight: 700; }
.badge { min-width: 42px; border: 2px solid #151515; border-radius: 3px; background: #eef0ff; padding: 1px 4px; text-align: center; font-size: 10px; font-weight: 950; }
.rank-row:first-child .badge { background: #ffda00; }
.ranking-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #66655f; font-size: 11px; font-weight: 800; }
.see-all { color: #2947ff; font-weight: 950; }
.get-app { width: 100%; margin-top: 14px; border: 2px solid #151515; border-radius: 2px; background: #ffda00; padding: 15px; font-size: 14px; font-weight: 950; cursor: pointer; }
.tagline { margin-top: 32vh; text-align: center; color: #77766f; font-size: 10px; }
.loading, .error { padding: 48px 18px; text-align: center; color: #66655f; }
.error strong { display: block; margin-bottom: 8px; color: #151515; font-size: 20px; }
.auth-form { display: grid; gap: 10px; border: 2px solid #171714; border-radius: 10px; background: #fffcf5; padding: 20px; margin-top: 24px; }
.auth-form input { font: inherit; min-height: 46px; border: 2px solid #171714; border-radius: 8px; padding: 10px; width: 100%; }
.auth-form label { font-weight: 800; font-size: 12px; }
.notice { line-height: 1.5; overflow-wrap: anywhere; }
.get-app { display: block; text-align: center; text-decoration: none; background: #c6fd00; }
.get-app[aria-disabled="true"], button:disabled { opacity: .55; cursor: default; }
.policy-links { display:flex; gap: 24px; margin-top: 24px; }
.policy-links a { color: #171714; }

@media (min-width: 700px) {
  .page { padding-top: 36px; }
  .share-card { padding: 18px; }
}
