/* The redesigned pages (landing, games, profile, creator). Ported from the approved preview by docs/landing-preview/port-css.pl.
   Everything lives under the .rd wrapper and every class starts with rd-, so none of it can touch Bootstrap or the older site styles.
   Light is sky, dark is indigo, following data-bs-theme (see js/theme.js). */
.rd {
  --bg: #eef6ff;
  --ink: #0d2138;
  --soft: #3d526c;
  --mute: #5b7089;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.62);
  --line: #c5daf0;
  --accent: #f97316;
  --accent-deep: #c2410c;
  --on-accent: #ffffff;
  --link: #c2410c;
  --chart: #38bdf8;
  --panel: #2b2d31;
  --panel-deep: #1e1f22;
  --panel-row: #40424a;
  --panel-text: #f2f3f5;
  --panel-grey: #949ba4;
  --tile: #ffffff;
  --tile-edge: #8fb9e8;
  --tile-ink: #0f2540;
  --bonus: #ffd9b8;
  --bonus-edge: #e0640c;
  --bonus-ink: #8a3604;
  --shadow: 0 18px 40px -18px rgba(13, 33, 56, 0.35);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI Variable Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
[data-bs-theme="dark"] .rd {
  --bg: #08040f;
  --ink: #f5f1ff;
  --soft: #bfb3d9;
  --mute: #8e82ad;
  --card: #150c28;
  --card-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #fd9425;
  --accent-deep: #fd9425;
  --on-accent: #1a0f00;
  --link: #fd9425;
  --chart: #38bdf8;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.rd a { color: var(--link); }
.rd h1, .rd h2, .rd h3 { font-family: var(--font-head); text-wrap: balance; margin: 0; letter-spacing: -0.02em; color: var(--ink); }
.rd p { margin: 0; }
.rd [hidden] { display: none !important; }

/* Layout: a short page. Hero with a live-sign mock, two utility panels, Weave on its own, a games grid, a profile band, four trust cards, one closing call. */
/* Like the real site: sky is the main look for everybody. Indigo (night) only comes from the sun/moon button, which is remembered in this browser. */

.rd .rd-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* preview ribbon */

/* nav */

/* buttons */
.rd .rd-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px var(--font-body); text-decoration: none; padding: 14px 24px; border-radius: 12px; }
.rd .rd-btn.rd-primary { background: var(--accent-deep); color: var(--on-accent); box-shadow: 0 10px 24px -10px var(--accent-deep); }
.rd .rd-btn.rd-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card-soft); }
.rd .rd-link-more { font-weight: 600; text-decoration: none; }
.rd .rd-link-more::after { content: " \2192"; }

.rd .rd-eyebrow { font: 600 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }

/* hero */
.rd .rd-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding-block: 56px 72px; }
.rd .rd-hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; margin-block: 14px 20px; }
.rd .rd-hero h1 em { font-style: normal; color: var(--link); }
.rd .rd-hero .rd-lead { font-size: clamp(17px, 2vw, 21px); color: var(--soft); max-width: 34em; }
.rd .rd-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.rd .rd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
.rd .rd-chip { font: 600 13px var(--font-mono); padding: 7px 11px; border-radius: 8px; background: var(--card-soft); border: 1px solid var(--line); color: var(--link); }
.rd .rd-chips .rd-all { font-weight: 600; font-size: 14px; margin-inline-start: 4px; }

/* discord-style mocks */
.rd .rd-dc { background: var(--panel); color: var(--panel-text); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); font-size: 15px; }
.rd .rd-dc .rd-server { background: var(--panel-deep); margin: -14px -14px 12px; padding: 14px 18px; border-radius: 18px 18px 0 0; font: 700 16px var(--font-head); }
.rd .rd-dc .rd-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--panel-grey); }
.rd .rd-dc .rd-row.rd-live { background: var(--panel-row); color: var(--panel-text); font-weight: 700; font-size: 17px; padding: 13px 12px; }
.rd .rd-dc .rd-row .rd-lock { margin-inline-start: auto; font-size: 13px; opacity: 0.8; }
.rd .rd-dc .rd-cat { font: 700 11px var(--font-body); letter-spacing: 0.08em; color: var(--panel-grey); padding: 14px 12px 4px; }
.rd .rd-dc .rd-ico { width: 18px; text-align: center; flex: none; }
.rd .rd-dc .rd-embed { background: #2f3136; border-left: 4px solid var(--accent); border-radius: 6px; padding: 12px 14px; margin-top: 8px; }
.rd .rd-dc .rd-embed b { display: block; font-size: 16px; margin-bottom: 4px; }
.rd .rd-dc .rd-embed span { color: #c7cad1; }
.rd .rd-dc .rd-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rd .rd-dc .rd-btns i { font-style: normal; background: #4e5058; padding: 7px 14px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.rd .rd-dc .rd-msg { display: flex; gap: 12px; align-items: flex-start; }
.rd .rd-dc .rd-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffac2a, #dc2a0a); flex: none; }
.rd .rd-dc .rd-who { font-weight: 700; }
.rd .rd-dc .rd-tag { font-size: 10px; font-weight: 700; background: #5865f2; border-radius: 4px; padding: 2px 5px; margin-inline-start: 6px; vertical-align: 2px; }
.rd .rd-chart { background: var(--panel-deep); border-radius: 12px; padding: 14px 14px 12px; margin-top: 12px; }
.rd .rd-chart small { color: var(--panel-grey); font-weight: 600; font-size: 12px; }
.rd .rd-bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: 10px; }
.rd .rd-bars i { flex: 1; background: var(--chart); border-radius: 4px 4px 2px 2px; display: block; }

/* feature rows */
.rd .rd-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 64px; border-top: 1px solid var(--line); }
.rd .rd-panel.rd-flip .rd-copy { order: 2; }
.rd .rd-panel h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-block: 10px 14px; }
.rd .rd-panel .rd-sub { color: var(--soft); font-size: 18px; max-width: 30em; }
.rd .rd-panel ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.rd .rd-panel li { padding-inline-start: 22px; position: relative; font-weight: 500; }
.rd .rd-panel li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.rd .rd-panel .rd-note { color: var(--mute); font-size: 14px; margin-top: -10px; margin-bottom: 22px; }

/* weave */
.rd .rd-weave { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.rd .rd-weave .rd-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.rd .rd-weave .rd-top b { font: 700 20px var(--font-head); }
.rd .rd-weave .rd-top span { font: 600 12px var(--font-mono); color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }
.rd .rd-tiles { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.rd .rd-tile { aspect-ratio: 0.88; background: var(--tile); border-radius: 10px; box-shadow: 0 4px 0 var(--tile-edge), 0 8px 14px -8px rgba(13, 33, 56, 0.4); display: grid; place-items: center; font: 700 clamp(15px, 2.6vw, 28px) var(--font-head); color: var(--tile-ink); position: relative; }
.rd .rd-tile.rd-bonus { background: var(--bonus); box-shadow: 0 4px 0 var(--bonus-edge), 0 8px 14px -8px rgba(13, 33, 56, 0.4); color: var(--bonus-ink); }
.rd .rd-tile sub { position: absolute; right: 5px; bottom: 3px; font: 500 9px var(--font-body); opacity: 0.7; }
.rd .rd-weave .rd-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.rd .rd-pill { font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 99px; background: var(--card-soft); border: 1px solid var(--line); color: var(--soft); }

/* games */
.rd .rd-games { padding-block: 64px; border-top: 1px solid var(--line); }
.rd .rd-games h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-block: 10px 28px; }
.rd .rd-grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rd .rd-game { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.rd .rd-game code { font: 600 13px var(--font-mono); color: var(--link); }
.rd .rd-game h3 { font-size: 22px; margin-block: 8px 6px; }
.rd .rd-game p { color: var(--soft); font-size: 15px; }
.rd .rd-games .rd-more { margin-top: 26px; }

/* more band */
.rd .rd-more-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 32px; box-shadow: var(--shadow); }
.rd .rd-more-band h3 { font-size: 26px; margin-block: 6px 6px; }
.rd .rd-more-band p { color: var(--soft); max-width: 36em; }
.rd .rd-mini-card { width: 230px; background: var(--panel-deep); color: var(--panel-text); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.rd .rd-mini-card .rd-top { display: flex; gap: 10px; align-items: center; }
.rd .rd-mini-card .rd-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #6366f1); }
.rd .rd-mini-card b { display: block; font-family: var(--font-head); }
.rd .rd-mini-card small { color: var(--panel-grey); }
.rd .rd-mini-card .rd-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rd .rd-mini-card .rd-tags i { font-style: normal; font-size: 12px; padding: 4px 9px; border-radius: 99px; background: #3a3c44; }

/* trust cards */
.rd .rd-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 56px 24px; }
.rd .rd-trust div { background: var(--card-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.rd .rd-trust b { display: block; font: 700 18px var(--font-head); margin-bottom: 6px; }
.rd .rd-trust span { color: var(--soft); font-size: 14px; }

/* closing */
.rd .rd-close { text-align: center; padding-block: 72px 56px; }
.rd .rd-close h2 { font-size: clamp(30px, 4.4vw, 50px); }
.rd .rd-close .rd-cta-row { justify-content: center; }
.rd .rd-foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding-block: 8px 40px; font-size: 14px; }
.rd .rd-foot-links a { color: var(--mute); text-decoration: none; }

@media (max-width: 860px) {
  .rd .rd-hero, .rd-panel { grid-template-columns: 1fr; gap: 36px; }
  .rd .rd-panel.rd-flip .rd-copy { order: 0; }
  .rd .rd-grid6 { grid-template-columns: repeat(2, 1fr); }
  .rd .rd-trust { grid-template-columns: repeat(2, 1fr); }
  .rd .rd-more-band { grid-template-columns: 1fr; }
  .rd .rd-mini-card { width: 100%; max-width: 320px; }
  .rd .rd-hero { padding-block: 32px 48px; }
  .rd .rd-panel, .rd-games { padding-block: 48px; }
}
@media (max-width: 520px) {
  .rd .rd-grid6, .rd-trust { grid-template-columns: 1fr; }
}

/* ---- games: dropdown extras, hub and game pages ---- */
.rd a.rd-game { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.rd a.rd-game:hover { border-color: var(--link); transform: translateY(-2px); }
.rd a.rd-game:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rd a.rd-game { transition: none; } .rd a.rd-game:hover { transform: none; } }

.rd .rd-crumbs { font-size: 14px; color: var(--mute); padding-top: 4px; }
.rd .rd-crumbs a { color: var(--mute); }
.rd .rd-gp-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-block: 36px 64px; }
.rd .rd-gp-hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; margin-block: 12px 16px; }
.rd .rd-gp-hero .rd-lead { font-size: clamp(17px, 2vw, 21px); color: var(--soft); max-width: 32em; }
.rd .rd-cmd-chip { display: inline-block; font: 600 14px var(--font-mono); padding: 7px 12px; border-radius: 8px; background: var(--card-soft); border: 1px solid var(--line); color: var(--link); margin-top: 18px; }
.rd .rd-gp-sec { padding-block: 56px; border-top: 1px solid var(--line); }
.rd .rd-gp-sec h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; margin-bottom: 24px; }
.rd ol.rd-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 46em; }
.rd ol.rd-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.rd ol.rd-steps li::before { content: counter(s); font: 700 15px var(--font-mono); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--link); }
.rd ol.rd-steps b { display: block; margin-bottom: 2px; }
.rd ol.rd-steps span { color: var(--soft); }
.rd .rd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.rd .rd-fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.rd .rd-fact small { display: block; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute); margin-bottom: 6px; }
.rd .rd-fact b { font: 700 20px var(--font-head); }
.rd .rd-fact span { display: block; color: var(--soft); font-size: 14px; margin-top: 4px; }
.rd .rd-cmds { display: grid; }
.rd .rd-cmds div { display: flex; gap: 8px 18px; align-items: baseline; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rd .rd-cmds code { font: 600 14px var(--font-mono); color: var(--link); min-width: 210px; }
.rd .rd-cmds span { color: var(--soft); flex: 1; min-width: 220px; }
.rd .rd-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; max-width: 46em; }
.rd .rd-cta-band { margin-block: 8px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); }
.rd .rd-cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.rd .rd-cta-band p { color: var(--soft); }
.rd .rd-more-games { display: flex; gap: 10px; flex-wrap: wrap; }
.rd .rd-more-games a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-soft); color: var(--ink); }
.rd .rd-more-games a:hover { background: var(--card); }
.rd .rd-hub-head { padding-block: 24px 8px; }
.rd .rd-hub-head h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; margin-block: 12px 14px; }
.rd .rd-hub-head .rd-lead { font-size: clamp(17px, 2vw, 21px); color: var(--soft); max-width: 36em; }
.rd .rd-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 32px 24px; }
.rd .rd-hub-grid .rd-game { display: flex; flex-direction: column; gap: 0; }
.rd .rd-hub-grid .rd-game .rd-meta { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--mute); }
.rd .rd-hub-grid .rd-game .rd-go { color: var(--link); font-weight: 600; font-size: 14px; margin-top: 10px; }
.rd .rd-hub-grid .rd-game .rd-go::after { content: " \2192"; }
.rd .rd-dc .rd-big { font: 700 44px var(--font-mono); letter-spacing: 0.06em; text-align: center; padding: 14px 0 6px; }
.rd .rd-dc .rd-line { color: #c7cad1; font-size: 14px; margin-top: 4px; }
.rd .rd-dc .rd-digits { font: 700 34px var(--font-mono); letter-spacing: 0.18em; text-align: center; padding: 14px 0 6px; color: #ffd9b8; }
@media (max-width: 860px) {
  .rd .rd-gp-hero { grid-template-columns: 1fr; gap: 36px; padding-block: 24px 40px; }
  .rd .rd-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .rd .rd-gp-sec { padding-block: 40px; }
}
@media (max-width: 520px) { .rd .rd-hub-grid { grid-template-columns: 1fr; } .rd .rd-cmds code { min-width: 0; } }

/* phone and small tablet: logo, log in and the look button on the first row, the links on their own row beneath */
@media (max-width: 860px) {
}

/* ---- profile preview ---- */
.rd .rd-btn.rd-dark { background: rgba(255, 255, 255, 0.1); color: #f2f3f5; border: 1px solid rgba(255, 255, 255, 0.2); }
.rd .rd-pf { --pf: #f97316; padding-bottom: 32px; }
.rd .rd-pf-head { background: var(--panel-deep); color: var(--panel-text); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.rd .rd-pf-banner { height: 150px; background: radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.22), transparent 38%), radial-gradient(circle at 82% 70%, rgba(0, 0, 0, 0.28), transparent 45%), linear-gradient(120deg, var(--pf), #4f46e5 85%); }
.rd .rd-pf-body { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 22px; align-items: end; padding: 0 28px 14px; }
.rd .rd-pf-avatar { width: 108px; height: 108px; border-radius: 50%; margin-top: -54px; border: 6px solid var(--panel-deep); background: linear-gradient(135deg, #38bdf8, #6366f1); }
.rd .rd-pf-id { min-width: 0; padding-top: 14px; }
.rd .rd-pf-id h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; color: #fff; }
.rd .rd-pf-tagline { color: #c7cad1; margin-top: 4px; }
.rd .rd-pf-stats { color: var(--panel-grey); font-size: 14px; margin-top: 6px; }
.rd .rd-pf-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 14px; }
.rd .rd-pf-actions .rd-btn { padding: 11px 20px; font-size: 15px; }
.rd .rd-pf-actions .rd-btn.rd-primary { background: var(--pf); color: #14110d; box-shadow: none; }
.rd .rd-pf-badges { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 28px 18px; align-items: center; }
.rd .rd-pf-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: #2f3138; color: #e3e5e8; }
.rd .rd-pf-badge i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.rd .rd-pf-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #c7cad1; text-decoration: none; padding: 6px 4px; }
.rd .rd-pf-link:hover { color: #fff; }
.rd .rd-pf-tabs { display: flex; gap: 4px; padding: 0 20px; border-top: 1px solid #34363d; overflow-x: auto; scrollbar-width: none; }
.rd .rd-pf-tabs::-webkit-scrollbar { display: none; }
.rd .rd-pf-tabs button { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--panel-grey); font: 600 15px var(--font-body); padding: 15px 14px 12px; cursor: pointer; white-space: nowrap; }
.rd .rd-pf-tabs button:hover { color: #fff; }
.rd .rd-pf-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--pf); }
.rd .rd-pf-tabs button:focus-visible { outline: 2px solid var(--pf); outline-offset: -4px; border-radius: 8px; }
.rd .rd-pf-panel { padding-top: 20px; }
.rd .rd-pf-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.rd .rd-pf-stack { display: grid; gap: 20px; min-width: 0; }
.rd .rd-pf-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.rd .rd-pf-card h2 { font: 600 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.rd .rd-pf-card p { color: var(--ink); }
.rd .rd-pf-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rd .rd-pf-more { appearance: none; background: none; border: 0; padding: 0; color: var(--link); font: 600 14px var(--font-body); cursor: pointer; }
.rd .rd-pf-more:hover { text-decoration: underline; }
.rd .rd-pf-card p.rd-pf-muted { color: var(--mute); font-size: 14px; margin-top: 10px; }
.rd .rd-pf-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.rd .rd-pf-group small { width: 76px; font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.rd .rd-pf-pill { padding: 6px 13px; border-radius: 99px; font-weight: 600; font-size: 14px; background: color-mix(in srgb, var(--pf) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--pf) 38%, var(--line)); color: var(--ink); }
.rd .rd-ph { border-radius: 12px; aspect-ratio: 4 / 3; }
.rd .rd-ph.rd-a { background: linear-gradient(135deg, #fbbf24, #f97316 60%, #7c3aed); }
.rd .rd-ph.rd-b { background: linear-gradient(135deg, #38bdf8, #1d4ed8 70%, #0f172a); }
.rd .rd-ph.rd-c { background: linear-gradient(135deg, #34d399, #047857 65%, #064e3b); }
.rd .rd-ph.rd-d { background: linear-gradient(135deg, #f472b6, #be185d 65%, #4c1d95); }
.rd .rd-ph.rd-e { background: linear-gradient(135deg, #a78bfa, #6d28d9 70%, #1e1b4b); }
.rd .rd-ph.rd-f { background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #b45309); }
.rd .rd-ph.rd-g { background: linear-gradient(135deg, #7dd3fc, #0ea5e9 60%, #0c4a6e); }
.rd .rd-ph.rd-h { background: linear-gradient(135deg, #fda4af, #e11d48 65%, #881337); }
.rd .rd-pf-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rd .rd-pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rd .rd-pf-jam { display: flex; gap: 14px; align-items: center; }
.rd .rd-pf-jam .rd-art { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, #f43f5e, #7c3aed 60%, #0ea5e9); flex: none; }
.rd .rd-pf-jam b { display: block; }
.rd .rd-pf-jam span { color: var(--soft); font-size: 14px; }
.rd .rd-pf-faces { display: flex; }
.rd .rd-pf-faces i { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--card); margin-inline-start: -10px; display: block; }
.rd .rd-pf-faces i:first-child { margin-inline-start: 0; }
.rd .rd-pf-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rd .rd-pf-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rd .rd-pf-list li:last-child { border-bottom: 0; }
.rd .rd-pf-list li > i { width: 44px; height: 44px; border-radius: 50%; flex: none; display: block; }
.rd .rd-pf-list b { display: block; }
.rd .rd-pf-list small { font-weight: 500; color: var(--mute); margin-inline-start: 8px; }
.rd .rd-pf-list span { color: var(--soft); font-size: 14px; }
.rd .rd-pf-list.rd-comments li { align-items: flex-start; }
.rd .rd-pf-compose { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--soft); }
.rd .rd-pf-compose .rd-btn { padding: 10px 18px; font-size: 15px; }
.rd .rd-pf-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rd .rd-pf-numbers b { display: block; font: 700 34px var(--font-head); line-height: 1.05; }
.rd .rd-pf-numbers span { color: var(--soft); font-size: 14px; }
.rd .rd-pf-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 8px; }
.rd .rd-pf-bars i { flex: 1; background: var(--pf); border-radius: 5px 5px 2px 2px; display: block; }
.rd .rd-pf-level { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rd .rd-pf-level span { color: var(--soft); font-size: 14px; }
.rd .rd-pf-meter { height: 10px; border-radius: 99px; background: var(--line); margin-top: 12px; overflow: hidden; }
.rd .rd-pf-meter i { display: block; height: 100%; background: var(--pf); border-radius: 99px; }
@media (max-width: 860px) {
  .rd .rd-pf-body { grid-template-columns: 1fr; padding-inline: 20px; }
  .rd .rd-pf-avatar { width: 92px; height: 92px; margin-top: -46px; }
  .rd .rd-pf-id { padding-top: 0; }
  .rd .rd-pf-actions { padding-top: 6px; }
  .rd .rd-pf-badges { padding-inline: 20px; }
  .rd .rd-pf-cols { grid-template-columns: 1fr; }
  .rd .rd-pf-grid { grid-template-columns: repeat(2, 1fr); }
  .rd .rd-pf-group small { width: 100%; }
}


/* ---- banner button and popup ---- */
.rd .rd-pf-bannerwrap { position: relative; }
.rd .rd-pf-banner { background-size: cover; background-position: center; }
.rd .rd-pf-banner-edit { position: absolute; right: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(12, 12, 18, 0.62); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); font: 600 13px var(--font-body); cursor: pointer; backdrop-filter: blur(6px); }
.rd .rd-pf-banner-edit:hover { background: rgba(12, 12, 18, 0.82); }
.rd .rd-pf-banner-edit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rd .rd-pf-banner-edit .rd-lock { display: none; opacity: 0.85; }
.rd [data-plan="free"] .rd-pf-banner-edit .rd-lock { display: block; }
.rd .rd-pf-dialog { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 22px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.rd .rd-pf-dialog::backdrop { background: rgba(8, 10, 22, 0.62); }
.rd .rd-bd-inner { position: relative; padding: 28px; }
.rd .rd-bd-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--soft); font: 400 26px/1 var(--font-body); cursor: pointer; }
.rd .rd-bd-x:hover { background: var(--card-soft); color: var(--ink); }
.rd .rd-bd-x:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.rd .rd-pf-dialog h2 { font-size: 24px; line-height: 1.15; margin-bottom: 8px; padding-right: 36px; }
.rd .rd-bd-lead { color: var(--soft); }
.rd .rd-bd-drop { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 18px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; background: var(--card-soft); }
.rd .rd-bd-drop:hover, .rd-bd-drop.rd-over { border-color: var(--link); }
.rd .rd-bd-drop span { color: var(--soft); }
.rd .rd-bd-drop small { color: var(--mute); }
.rd .rd-bd-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.rd .rd-bd-drop:has(+ .rd-bd-file:focus-visible) { border-color: var(--link); outline: 2px solid var(--link); outline-offset: 3px; }
.rd .rd-bd-preview { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.rd .rd-bd-preview-img { aspect-ratio: 3 / 1; background-size: cover; background-position: center; }
.rd .rd-bd-msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: #dc2626; }
[data-bs-theme="dark"] .rd .rd-bd-msg { color: #fca5a5; }
.rd .rd-bd-small { color: var(--mute); font-size: 13px; margin-top: 4px; }
.rd .rd-bd-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.rd .rd-bd-actions .rd-btn { padding: 11px 20px; font-size: 15px; }
.rd .rd-bd-actions .rd-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.rd .rd-bd-spacer { flex: 1; }
.rd .rd-bd-lock { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--link); margin-bottom: 14px; }

/* ---- welcome screen (profile type) and creator profile ---- */
.rd .rd-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd .rd-fork { padding-block: 24px 48px; }
.rd .rd-fork h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin-block: 10px 12px; }
.rd .rd-fork .rd-lead { font-size: 19px; color: var(--soft); }
.rd .rd-fork-form { margin-top: 28px; }
.rd .rd-fork-grid { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rd .rd-fork-opt { position: relative; display: block; }
.rd .rd-fork-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.rd .rd-fork-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px; border-radius: 22px; border: 2px solid var(--line); background: var(--card); transition: border-color 0.15s, box-shadow 0.15s; }
.rd .rd-fork-opt:hover .rd-fork-card { border-color: color-mix(in srgb, var(--link) 55%, var(--line)); }
.rd .rd-fork-opt input:checked + .rd-fork-card { border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent); }
.rd .rd-fork-opt input:focus-visible + .rd-fork-card { outline: 3px solid var(--link); outline-offset: 3px; }
.rd .rd-fork-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--link); }
.rd .rd-fork-title { font: 700 26px var(--font-head); letter-spacing: -0.02em; }
.rd .rd-fork-sub { color: var(--soft); }
.rd .rd-fork-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.rd .rd-fork-list li { padding-inline-start: 22px; position: relative; font-weight: 500; }
.rd .rd-fork-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.rd .rd-fork-foot { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--mute); }
.rd .rd-fork-types { border: 0; padding: 0; margin: 24px 0 0; }
.rd .rd-fork-types legend { font: 600 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); padding: 0; margin-bottom: 10px; }
.rd .rd-type-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rd .rd-type-row label { position: relative; }
.rd .rd-type-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rd .rd-type-row span { display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card-soft); font-weight: 600; font-size: 15px; }
.rd .rd-type-row input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rd .rd-type-row input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }
.rd .rd-fork-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.rd .rd-fork-note { color: var(--mute); font-size: 14px; }
.rd .rd-fork-peek { margin-top: 28px; color: var(--mute); font-size: 14px; }

.rd .rd-cta-big { display: inline-flex; align-items: center; gap: 8px; }
.rd .rd-only-you { margin-inline-start: 6px; font: 600 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: #34363d; color: #c7cad1; }
.rd .rd-next-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rd .rd-next-when { display: block; font: 700 28px var(--font-head); letter-spacing: -0.02em; }
.rd .rd-next-title { display: block; color: var(--soft); margin-top: 2px; }
.rd .rd-next-count { display: block; color: var(--link); font-weight: 600; margin-top: 4px; }
.rd .rd-feat { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; }
.rd .rd-feat-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, #0ea5e9, #6d28d9 60%, #0f172a); display: grid; place-items: center; overflow: hidden; }
.rd .rd-feat-thumb.rd-a { background: linear-gradient(135deg, #fbbf24, #f97316 55%, #7c3aed); }
.rd .rd-feat-thumb.rd-b { background: linear-gradient(135deg, #34d399, #047857 60%, #064e3b); }
.rd .rd-feat-thumb.rd-c { background: linear-gradient(135deg, #f43f5e, #7c3aed 60%, #0ea5e9); }
.rd .rd-play { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); display: grid; place-items: center; }
.rd .rd-play::after { content: ""; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.rd .rd-note { font-size: 52px; color: rgba(255, 255, 255, 0.9); }
.rd .rd-feat-info { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.rd .rd-feat-info span { color: var(--soft); font-size: 14px; }
.rd .rd-feat-info .rd-btn, .rd-feat-card .rd-btn { padding: 10px 18px; font-size: 15px; margin-top: 6px; }
.rd .rd-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd .rd-feat-card { display: grid; gap: 8px; justify-items: start; }
.rd .rd-feat-card .rd-feat-thumb { width: 100%; }
.rd .rd-feat-card span { color: var(--soft); font-size: 14px; }
.rd .rd-linkhub { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rd .rd-linkhub a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-soft); color: var(--ink); text-decoration: none; }
.rd .rd-linkhub a:hover { border-color: var(--link); }
.rd .rd-linkhub a::after { content: "\2192"; color: var(--link); font-weight: 700; margin-inline-start: auto; order: 3; }
.rd .rd-linkhub span { color: var(--soft); font-size: 14px; order: 2; margin-inline-start: auto; margin-inline-end: 8px; }
.rd .rd-srv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rd .rd-srv-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #6366f1, #0ea5e9); color: #fff; display: grid; place-items: center; font: 700 18px var(--font-head); flex: none; }
.rd .rd-srv-head b { display: block; font: 700 20px var(--font-head); }
.rd .rd-srv-head span { color: var(--soft); font-size: 14px; }
.rd .rd-srv .rd-btn { padding: 11px 20px; font-size: 15px; margin-top: 14px; }
.rd .rd-fans { list-style: none; margin: 0; padding: 0; display: grid; }
.rd .rd-fans li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); counter-increment: rank; }
.rd .rd-fans li:last-child { border-bottom: 0; }
.rd .rd-fans li::before { content: counter(rank); width: 22px; font: 700 14px var(--font-mono); color: var(--mute); text-align: center; }
.rd .rd-fans { counter-reset: rank; }
.rd .rd-fans i { width: 38px; height: 38px; border-radius: 50%; flex: none; display: block; }
.rd .rd-fans b { display: block; }
.rd .rd-fans span { color: var(--soft); font-size: 13px; }
.rd .rd-sched { list-style: none; margin: 0; padding: 0; display: grid; }
.rd .rd-sched li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rd .rd-sched li:last-child { border-bottom: 0; }
.rd .rd-sched .rd-when { font: 700 20px var(--font-head); }
.rd .rd-sched span { color: var(--soft); }
.rd .rd-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rd .rd-statgrid b { display: block; font: 700 40px var(--font-head); line-height: 1.05; letter-spacing: -0.02em; }
.rd .rd-statgrid span { color: var(--soft); font-size: 14px; }
.rd .rd-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rd .rd-hbars li { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.rd .rd-hbars li > div { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rd .rd-hbars li i { display: block; height: 100%; border-radius: 99px; background: var(--pf); }
.rd .rd-hbars b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .rd .rd-fork-grid { grid-template-columns: 1fr; }
  .rd .rd-feat { grid-template-columns: 1fr; }
  .rd .rd-content-grid { grid-template-columns: 1fr; }
  .rd .rd-statgrid { grid-template-columns: 1fr; gap: 12px; }
  .rd .rd-hbars li { grid-template-columns: 100px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) { .rd .rd-fork-card { transition: none; } }


/* ---- the home page's showcase, ledger, closing panel and buttons (ported from the preview's src/shared.css by one-off script) ---- */
/* ---- bottom of the home page: why Sigil as a numbered list, and the closing "three steps" panel ---- */
.rd .rd-ledger { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; padding-block: 64px 24px; }
.rd .rd-ledger-head { position: sticky; top: 28px; }
.rd .rd-ledger-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; margin-block: 12px 14px; }
.rd .rd-ledger-head p { color: var(--soft); font-size: 18px; max-width: 20em; }
.rd .rd-ledger-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rd .rd-ledger-list li { --t: #60a5fa; position: relative; overflow: hidden; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--t) 30%, var(--line));
  background: linear-gradient(100deg, color-mix(in srgb, var(--t) 16%, var(--card)) 0%, var(--card) 62%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.rd .rd-ledger-list li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--t); opacity: 0.85; }
.rd .rd-ledger-list li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--t) 60%, var(--line)); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--t) 55%, transparent); }
.rd .rd-ledger-list .rd-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--t); background: color-mix(in srgb, var(--t) 20%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 35%, transparent); }
.rd .rd-ledger-list h3 { font-size: 23px; }
.rd .rd-ledger-list p { margin-top: 4px; color: var(--soft); font-size: 17px; max-width: 34em; }
.rd .rd-ledger-list .rd-n { font: 700 46px/1 var(--font-head); letter-spacing: -0.04em; color: color-mix(in srgb, var(--t) 38%, transparent); transition: color 0.25s ease; }
.rd .rd-ledger-list li:hover .rd-n { color: color-mix(in srgb, var(--t) 80%, transparent); }
.rd .rd-ledger-list code, .rd .rd-go code { font: 600 0.9em var(--font-mono); color: var(--link); }
@media (max-width: 560px) { .rd .rd-ledger-list li { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; } .rd .rd-ledger-list .rd-n { display: none; } }

.rd .rd-go { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; margin-block: 56px 72px; padding: clamp(28px, 5vw, 60px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 100% at 0% 100%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--card); }
.rd .rd-go h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; margin-block: 12px 0; max-width: 12em; }
.rd .rd-go .rd-cta-row { margin-top: 32px; }
.rd .rd-go-note { margin-top: 18px; color: var(--soft); font-size: 15px; }
.rd .rd-go-steps { list-style: none; margin: 0; padding: 0; }
.rd .rd-go-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 30px; }
.rd .rd-go-steps li:last-child { padding-bottom: 0; }
.rd .rd-go-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: 0.55; }
.rd .rd-go-steps .rd-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 17px var(--font-head); color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.rd .rd-go-steps b { display: block; font: 700 19px var(--font-head); padding-top: 2px; }
.rd .rd-go-steps .rd-t { color: var(--soft); font-size: 15px; }

/* ---- the "Add to your server" buttons: a rounded rectangle that breathes a warm glow, with a soft glint crossing it every few seconds ---- */
.rd .rd-btn.rd-beacon { --b1: #c2410c; --b2: #f97316; position: relative; overflow: hidden; isolation: isolate; gap: 10px; border-radius: 14px; padding: 15px 28px; color: var(--on-accent);
  background: linear-gradient(120deg, var(--b1), var(--b2)); box-shadow: 0 10px 28px -10px var(--b1), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: beacon-breathe 3.2s ease-in-out infinite; transition: transform 0.2s ease; }
[data-bs-theme="dark"] .rd .rd-btn.rd-beacon { --b1: #fd9425; --b2: #ffb83d; }
.rd .rd-btn.rd-beacon::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 28%; transform: translateX(-160%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: beacon-glint 4.4s ease-in-out infinite; }
.rd .rd-btn.rd-beacon:hover { transform: translateY(-2px); }
.rd .rd-btn.rd-beacon:active { transform: translateY(0); }
.rd .rd-btn.rd-beacon:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.rd .rd-btn.rd-beacon .rd-mark-i { flex: none; }
.rd .rd-btn.rd-beacon .rd-arr { display: inline-block; transition: transform 0.2s ease; }
.rd .rd-btn.rd-beacon:hover .rd-arr { transform: translateX(5px); }
@keyframes beacon-breathe { 0%, 100% { box-shadow: 0 10px 28px -10px var(--b1), inset 0 1px 0 rgba(255, 255, 255, 0.35); } 50% { box-shadow: 0 14px 40px -8px var(--b1), 0 0 30px 2px color-mix(in srgb, var(--b1) 50%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35); } }
@keyframes beacon-glint { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(520%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .rd .rd-btn.rd-beacon, .rd .rd-btn.rd-beacon::after { animation: none; } }
@media (max-width: 860px) { .rd .rd-ledger, .rd .rd-go { grid-template-columns: 1fr; gap: 32px; } .rd .rd-ledger-head { position: static; } }

/* ---- hero showcase: the mock fades away to the right and the next one arrives, one feature at a time ---- */
.rd .rd-showcase { position: relative; display: grid; gap: 16px; }
.rd .rd-sc-stage { display: grid; }
.rd .rd-sc-slide { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s; }
.rd .rd-sc-slide.rd-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }
.rd .rd-sc-slide.rd-out { opacity: 0; visibility: visible; transform: translateX(46px); transition-delay: 0s; }
.rd .rd-sc-slide.rd-instant { transition: none; }
.rd .rd-sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-inline: 6px; }
.rd .rd-sc-caption { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; color: var(--soft); font-size: 15px; }
.rd .rd-sc-caption b { color: var(--ink); font: 700 16px var(--font-head); }
.rd .rd-sc-caption code { font: 600 13px var(--font-mono); color: var(--link); }
.rd .rd-sc-dots { display: flex; gap: 8px; align-items: center; }
.rd .rd-sc-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; background: color-mix(in srgb, var(--ink) 28%, transparent); transition: width 0.3s ease, background 0.3s ease; }
.rd .rd-sc-dots button::before { content: ""; position: absolute; inset: -8px -3px; }
.rd .rd-sc-dots button[aria-current="true"] { width: 26px; background: var(--accent); }
.rd .rd-sc-dots button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

/* the mocks inside it */
.rd .rd-dc .rd-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.rd .rd-dc .rd-btns i.rd-on { background: #5865f2; }
.rd .rd-dc .rd-btns i.rd-wave { background: #5865f2; }
.rd .rd-dc .rd-btns i u { text-decoration: none; opacity: 0.85; margin-inline-start: 4px; }
.rd .rd-wcard { position: relative; overflow: hidden; margin-top: 10px; border-radius: 12px; padding: 20px 22px; display: flex; align-items: center; gap: 18px; min-height: 124px;
  background: radial-gradient(120% 150% at 0% 0%, #6d3df0 0%, transparent 55%), radial-gradient(90% 130% at 100% 100%, #f97316 0%, transparent 62%), linear-gradient(135deg, #2b1a73, #1b1550); }
.rd .rd-wc-ring { flex: none; width: 88px; height: 88px; border-radius: 50%; padding: 4px; background: conic-gradient(#fd9425, #ffc552, #8b5cf6, #38bdf8, #fd9425); box-shadow: 0 0 34px rgba(253, 148, 37, 0.55); animation: wc-spin 8s linear infinite; }
.rd .rd-wc-ring i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 4px solid #1b1550; background: linear-gradient(135deg, #38bdf8, #6366f1); animation: wc-spin 8s linear infinite reverse; }
.rd .rd-wc-text { min-width: 0; display: grid; gap: 3px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.rd .rd-wc-text small { font: 600 12px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.rd .rd-wc-text b { font: 700 28px/1.1 var(--font-head); }
.rd .rd-wc-text span { color: rgba(255, 255, 255, 0.88); font-size: 14px; }
.rd .rd-wc-spark { position: absolute; color: #ffd9a0; font-size: 14px; animation: wc-twinkle 3s ease-in-out infinite; }
.rd .rd-wc-spark.rd-s1 { top: 12px; right: 22px; }
.rd .rd-wc-spark.rd-s2 { bottom: 16px; right: 74px; font-size: 20px; animation-delay: -1s; }
.rd .rd-wc-spark.rd-s3 { top: 44px; right: 96px; font-size: 10px; animation-delay: -2s; }
@keyframes wc-spin { to { transform: rotate(360deg); } }
@keyframes wc-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.rd .rd-sc-letters { display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; justify-content: center; margin: 14px 0 10px; }
.rd .rd-sc-letters i { font-style: normal; display: grid; place-items: center; height: 56px; border-radius: 10px; background: var(--tile); color: var(--tile-ink); box-shadow: 0 4px 0 var(--tile-edge); font: 700 26px var(--font-head); }
.rd .rd-sc-letters i.rd-bonus { background: var(--bonus); color: var(--bonus-ink); box-shadow: 0 4px 0 var(--bonus-edge); }
.rd .rd-sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.rd .rd-sc-stats div { background: var(--panel-deep); border-radius: 10px; padding: 10px 12px; }
.rd .rd-sc-stats b { display: block; font: 700 20px var(--font-head); }
.rd .rd-sc-stats span { color: var(--panel-grey); font-size: 12px; }
.rd .rd-sc-profile { display: flex; gap: 12px; align-items: center; padding: 4px 0; }
.rd .rd-sc-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #6366f1); flex: none; }
.rd .rd-sc-profile b { display: block; font: 700 20px var(--font-head); }
.rd .rd-sc-profile small { color: var(--panel-grey); }
.rd .rd-sc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rd .rd-sc-tags i { font-style: normal; font-size: 13px; padding: 5px 11px; border-radius: 99px; background: #3a3c44; }

/* small cards that hang out into the page margins on wide screens, so the extra width is used */
.rd .rd-peek { display: none; position: absolute; z-index: 2; background: var(--panel-deep); color: var(--panel-text); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; }
.rd .rd-peek b { display: block; font: 700 18px var(--font-head); }
.rd .rd-peek span { color: var(--panel-grey); }
.rd .rd-peek i { display: block; height: 6px; border-radius: 99px; margin-top: 8px; background: rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.rd .rd-peek i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 50%); background: linear-gradient(90deg, #fd9425, #ffc552); border-radius: inherit; }
.rd .rd-peek-level { left: -56px; bottom: 54px; min-width: 190px; animation: peek-float 6s ease-in-out infinite; }
.rd .rd-peek-streak { right: -34px; top: -22px; animation: peek-float 6s ease-in-out -3s infinite; }
@keyframes peek-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 1360px) { .rd .rd-peek { display: block; } }
@media (min-width: 1500px) {
  .rd .rd-wrap { max-width: 1400px; }
  .rd .rd-hero { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
  .rd .rd-grid6 { grid-template-columns: repeat(6, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rd .rd-sc-slide, .rd .rd-sc-slide.rd-out { transform: none; transition-duration: 0.01s; }
  .rd .rd-wc-ring, .rd .rd-wc-ring i, .rd .rd-wc-spark, .rd .rd-peek-level, .rd .rd-peek-streak { animation: none; }
}


/* On wide screens the home page uses more of the width (the top bar and the page share the same container). */
@media (min-width: 1500px) {
  body.landing .container { max-width: 1480px; }
}
