/* AssemBoost reviews — Crownstone palette (same tokens as the store theme) */
:root {
  --page: #0F0A18;
  --surface: #150E21;
  --surface-hi: #1B1229;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --violet: #8B3DFF;
  --violet-soft: #B58CFF;
  --pink: #FB90F6;
  --gold: #F5C542;
  --text: #FFFFFF;
  --body: rgba(255, 255, 255, .86);
  --muted: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .45);
  --font: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 85% -180px, rgba(139, 61, 255, .22), transparent 70%),
    var(--page);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.hide-sm { display: inline; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 10, 24, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--violet); color: #fff; }
.btn.primary:hover { background: #9A55FF; }
.btn.ghost { border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: rgba(255,255,255,.3); }
.btn img { width: 18px; height: 18px; }
.btn:focus-visible, .more:focus-visible, .proof:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 48px;
  padding: 88px 0 40px;
}
.hero h1 { margin: 0; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.2; font-weight: 800; }
.lead { max-width: 520px; margin: 20px 0 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }

.hero-count { display: flex; flex-direction: column; align-items: flex-end; text-align: left; }
.hero-count strong {
  font-size: clamp(64px, 10vw, 128px); line-height: 1; font-weight: 800;
  color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.count-label { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.count-meta { margin-top: 4px; font-size: 13px; color: var(--faint); min-height: 1.4em; }

/* ---------- board ---------- */
.board { padding: 40px 0 80px; }
.board-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.board-head h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rule { flex: 1; height: 1px; background: var(--line); }

.grid { display: flex; gap: 12px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px 20px 16px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--line);
  transition: border-color .15s ease, background-color .15s ease;
}
.card:hover { background: var(--surface-hi); border-color: var(--line-2); }
.card.fresh { border-inline-start-color: var(--gold); }
.card.enter { animation: enter .35s ease-out both; }
@keyframes enter { from { opacity: 0; } }

.stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; line-height: 1; }
.stars .off { color: rgba(255,255,255,.15); }

.body {
  margin: 0; color: var(--body); font-size: 15.5px; line-height: 1.85;
  white-space: pre-line; overflow-wrap: anywhere; text-align: right;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.card.open .body { -webkit-line-clamp: unset; display: block; }
.body .emoji { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -0.3em; object-fit: contain; }
.body .mention { color: var(--violet-soft); }
.more { align-self: flex-start; border: 0; background: none; padding: 0; cursor: pointer; color: var(--violet-soft); font-size: 13px; font-weight: 600; margin-top: -8px; }

.byline {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint); min-width: 0;
}
.avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: #2A1C40; color: var(--violet-soft);
}
.byline b { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.byline .sep { opacity: .5; }
.byline time { white-space: nowrap; }
.src { flex: none; margin-inline-start: auto; display: inline-flex; color: var(--faint); }
.src img, .src svg { width: 15px; height: 15px; opacity: .55; }
a.src:hover img { opacity: 1; }

/* ---------- states ---------- */
.state { text-align: center; color: var(--faint); font-size: 14px; padding: 32px 0; min-height: 40px; }
.skeleton { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: fade 1.2s ease-in-out infinite alternate; }
@keyframes fade { to { opacity: .45; } }
#sentinel { height: 1px; }

/* ---------- footer & toast ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }

.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 50;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; cursor: pointer;
  background: var(--surface-hi); border: 1px solid rgba(245,197,66,.35);
  color: var(--text); font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.8);
  transition: transform .25s ease-out, opacity .2s ease-out;
}
.toast::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-end: 10px; vertical-align: middle; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 36px; }
  .hero-count { align-items: flex-start; text-align: right; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .btn { padding: 0 14px; }
  .btn.ghost { width: 44px; padding: 0; }
  .lead { font-size: 16px; }
  .foot { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
