/* The Revision Bank's own look: bright, playful and quick to read. Loaded only by
   layouts/revision.php, on top of app.css. Every page works without JavaScript; motion is
   only added for people whose device has not asked for less of it. */

.rb-site {
  --rb-sun: 38 100% 56%;
  --rb-coral: 352 95% 64%;
  --rb-mint: 158 72% 42%;
  --rb-sky: 199 92% 52%;
  --rb-grape: 262 83% 62%;
  --rb-ink: 230 57% 39%;
  --rb-right: 145 63% 40%;
  --rb-wrong: 352 82% 55%;
  --rb-shadow: 0 1px 2px hsl(230 30% 20% / 0.06), 0 8px 24px -10px hsl(230 40% 25% / 0.18);
  --rb-shadow-lift: 0 2px 4px hsl(230 30% 20% / 0.08), 0 22px 40px -16px hsl(230 50% 30% / 0.35);
  --rb-radius: 1.25rem;
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
}
.rb-site.dark {
  --rb-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 26px -12px rgb(0 0 0 / 0.6);
  --rb-shadow-lift: 0 2px 4px rgb(0 0 0 / 0.35), 0 24px 44px -16px rgb(0 0 0 / 0.75);
}
.rb-site body {
  background:
    radial-gradient(60rem 30rem at 110% -10%, hsl(var(--rb-grape) / 0.10), transparent 60%),
    radial-gradient(50rem 26rem at -10% 10%, hsl(var(--rb-sky) / 0.10), transparent 60%),
    hsl(var(--background));
  background-attachment: fixed;
}
.rb-site h1, .rb-site h2, .rb-site h3, .rb-site .card-title, .rb-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.rb-site .rb-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.rb-site .rb-main h2 { font-size: 1.35rem; font-weight: 700; }
.rb-site .card { border-radius: var(--rb-radius); box-shadow: var(--rb-shadow); }

/* ---- Header ---- */
.rb-site .site-nav { backdrop-filter: saturate(1.6) blur(10px); background: hsl(var(--background) / 0.78); }
.rb-site .rb-links a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; transition: background 0.2s, color 0.2s, transform 0.2s; }
.rb-site .rb-links a .icon { width: 1rem; height: 1rem; }
.rb-site .rb-links a:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); transform: translateY(-1px); }
.rb-site .rb-links a[data-current] { background: linear-gradient(135deg, hsl(var(--rb-grape) / 0.16), hsl(var(--rb-sky) / 0.16)); }

/* ---- Buttons: chunky and pressable ---- */
.rb-site .rb-main .btn:not(.btn-quiet):not(.btn-danger) {
  background: linear-gradient(180deg, hsl(var(--primary) / 0.92), hsl(var(--primary)));
  box-shadow: 0 4px 0 hsl(var(--primary-hover)), 0 10px 20px -10px hsl(var(--primary) / 0.7);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
}
.rb-site .rb-main .btn:not(.btn-quiet):not(.btn-danger):hover { filter: brightness(1.08); transform: translateY(-1px); }
.rb-site .rb-main .btn:not(.btn-quiet):not(.btn-danger):active { transform: translateY(3px); box-shadow: 0 1px 0 hsl(var(--primary-hover)); }
.rb-site .rb-main .btn-quiet { background: hsl(var(--card)); transition: transform 0.15s, border-color 0.2s, background 0.2s; }
.rb-site .rb-main .btn-quiet:hover { transform: translateY(-1px); border-color: hsl(var(--primary) / 0.45); }
.rb-site .btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.rb-btn-sun { --primary: var(--rb-sun); --primary-hover: 30 95% 42%; --primary-foreground: 230 50% 12%; }
.rb-btn-light { background: #fff !important; color: hsl(var(--rb-ink)) !important; box-shadow: 0 4px 0 hsl(230 30% 80%), 0 12px 24px -12px rgb(0 0 0 / 0.5) !important; }
.dark .rb-btn-light { color: hsl(230 57% 30%) !important; }

/* ---- Hero ---- */
.rb-hero2 {
  position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2rem; color: #fff;
  background: linear-gradient(130deg, hsl(250 75% 42%) 0%, hsl(232 80% 50%) 45%, hsl(199 90% 46%) 100%);
  box-shadow: 0 30px 60px -30px hsl(240 80% 30% / 0.7);
  isolation: isolate;
}
.rb-hero2::before, .rb-hero2::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.rb-hero2::before { width: 26rem; height: 26rem; right: -8rem; top: -10rem; background: radial-gradient(circle, hsl(var(--rb-coral) / 0.55), transparent 65%); }
.rb-hero2::after { width: 22rem; height: 22rem; left: -6rem; bottom: -12rem; background: radial-gradient(circle, hsl(var(--rb-sun) / 0.45), transparent 65%); }
.rb-hero2 h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem) !important; }
.rb-hero2 h1 em { font-style: normal; background: linear-gradient(90deg, #ffe27a, #ffb4c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rb-hero2 .rb-lead { margin: 0.9rem 0 1.4rem; max-width: 34rem; color: rgb(255 255 255 / 0.85); font-size: 1.05rem; }
.rb-kicker { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 9999px; background: rgb(255 255 255 / 0.16); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.rb-kicker .icon { width: 1rem; height: 1rem; color: #ffe27a; }
.rb-hero2 .btn-quiet { background: rgb(255 255 255 / 0.12) !important; border-color: rgb(255 255 255 / 0.35); color: #fff; }
.rb-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; padding: 0; }
.rb-stats div { padding: 0.55rem 0.95rem; border-radius: 1rem; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.18); }
.rb-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rb-stats dt { font-size: 0.75rem; color: rgb(255 255 255 / 0.78); }
.rb-collage { position: relative; height: 19rem; }
.rb-collage .rb-tile { position: absolute; width: 11rem; overflow: hidden; border-radius: 1.2rem; box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.55); border: 3px solid rgb(255 255 255 / 0.9); background: #fff; }
.rb-collage .rb-tile svg { display: block; width: 100%; height: auto; }
.rb-collage .rb-tile:nth-child(1) { left: 4%; top: 6%; rotate: -8deg; }
.rb-collage .rb-tile:nth-child(2) { right: 4%; top: 0; rotate: 7deg; }
.rb-collage .rb-tile:nth-child(3) { left: 30%; top: 44%; rotate: -2deg; width: 12.5rem; z-index: 1; }
.rb-bubble { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.8rem; border-radius: 9999px; background: #fff; color: hsl(230 40% 15%); font-weight: 800; font-size: 0.85rem; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5); }
.rb-bubble .icon { width: 1rem; height: 1rem; }
.rb-bubble-points { right: 2%; bottom: 14%; color: hsl(145 63% 30%); }
.rb-bubble-streak { left: 0; bottom: 6%; color: hsl(20 90% 45%); }
.rb-bubble-badge { right: 34%; top: -2%; color: hsl(262 70% 45%); }
@media (max-width: 54rem) {
  .rb-hero2 { grid-template-columns: minmax(0, 1fr); }
  .rb-collage { height: 13rem; }
  .rb-collage .rb-tile { width: 8rem; }
  .rb-collage .rb-tile:nth-child(3) { width: 9rem; left: 34%; top: 30%; }
}

/* ---- Section headings ---- */
.rb-sec { margin-top: 2.75rem; }
.rb-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.rb-sec-head h2 { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.rb-sec-head h2 .rb-dot { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 0.7rem; color: #fff; background: linear-gradient(135deg, hsl(var(--rb-grape)), hsl(var(--rb-sky))); }
.rb-sec-head h2 .rb-dot .icon { width: 1.1rem; height: 1.1rem; }
.rb-more { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; text-decoration: none; }
.rb-more .icon { width: 1rem; height: 1rem; transition: transform 0.2s; }
.rb-more:hover .icon { transform: translateX(3px); }
.rb-sub { margin: 0.2rem 0 0; color: hsl(var(--muted-foreground)); }

/* ---- Ways to practise ---- */
.rb-ways2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.rb-way2 {
  --c: var(--rb-grape);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.35rem; border-radius: var(--rb-radius); color: inherit; text-decoration: none;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--rb-shadow);
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.25s, border-color 0.25s;
}
.rb-way2::after { content: ""; position: absolute; right: -2.5rem; top: -2.5rem; width: 7rem; height: 7rem; border-radius: 50%; background: hsl(var(--c) / 0.14); transition: transform 0.4s; }
.rb-way2:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--rb-shadow-lift); border-color: hsl(var(--c) / 0.5); }
.rb-way2:hover::after { transform: scale(1.6); }
.rb-way2 .rb-way-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.4rem; border-radius: 1rem; color: #fff; background: hsl(var(--c)); box-shadow: 0 8px 18px -8px hsl(var(--c)); transition: transform 0.35s cubic-bezier(.2,.9,.3,1.5); }
.rb-way2:hover .rb-way-icon { transform: scale(1.12) rotate(-8deg); }
.rb-way2 .rb-way-icon .icon { width: 1.4rem; height: 1.4rem; }
.rb-way2 strong { font-family: var(--font-display); font-size: 1.12rem; }
.rb-way2 span.small { color: hsl(var(--muted-foreground)); }
.rb-c-grape { --c: var(--rb-grape); } .rb-c-sun { --c: var(--rb-sun); } .rb-c-coral { --c: var(--rb-coral); } .rb-c-mint { --c: var(--rb-mint); } .rb-c-sky { --c: var(--rb-sky); }

/* ---- Subject cards with drawings ---- */
.rb-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); }
.rb-scard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rb-radius);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--rb-shadow);
  color: inherit; text-decoration: none; transition: transform 0.3s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.3s;
}
.rb-scard .rb-art { overflow: hidden; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--from, #4338ca), var(--to, #38bdf8)); }
.rb-scard .rb-art svg { display: block; width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(.2,.9,.3,1.2); }
.rb-scard:hover { transform: translateY(-6px); box-shadow: var(--rb-shadow-lift); }
.rb-scard:hover .rb-art svg { transform: scale(1.08) rotate(-1.5deg); }
.rb-scard .rb-scard-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 0.95rem 0.95rem; }
.rb-scard strong { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; }
.rb-scard .rb-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; color: hsl(var(--muted-foreground)); font-size: 0.78rem; }
.rb-scard .rb-meta b { color: hsl(var(--foreground)); font-weight: 700; }
.rb-scard-soon { opacity: 0.6; filter: saturate(0.4); }
.rb-scard-soon:hover { opacity: 0.9; filter: none; }
.rb-pill-18 { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.15rem 0.5rem; border-radius: 9999px; background: #fff; color: hsl(25 90% 35%); font-size: 0.72rem; font-weight: 800; box-shadow: 0 4px 10px -4px rgb(0 0 0 / 0.4); }
.rb-scard-all { align-items: center; justify-content: center; gap: 0.6rem; min-height: 12rem; padding: 1rem; text-align: center; border-style: dashed; background: linear-gradient(135deg, hsl(var(--rb-grape) / 0.08), hsl(var(--rb-sky) / 0.08)); }
.rb-scard-all .rb-way-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; color: #fff; background: linear-gradient(135deg, hsl(var(--rb-grape)), hsl(var(--rb-sky))); transition: transform 0.3s; }
.rb-scard-all:hover .rb-way-icon { transform: translateX(4px); }

/* ---- Segmented tabs and chips ---- */
.rb-site .rb-chips { gap: 0.45rem; }
.rb-site .rb-chip { padding: 0.45rem 1rem; font-weight: 600; border-width: 1.5px; transition: transform 0.18s, border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.rb-site .rb-chip:hover { transform: translateY(-2px); }
.rb-site .rb-chip[data-current] { background: linear-gradient(135deg, hsl(var(--rb-grape)), hsl(232 80% 55%)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px hsl(var(--rb-grape)); }
.rb-site .rb-chip small { opacity: 0.75; font-weight: 700; }
.rb-site .rb-chip-sm { padding: 0.25rem 0.7rem; }
.rb-scroll { flex-wrap: nowrap !important; overflow-x: auto; padding: 0.3rem 0.1rem 0.6rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.rb-scroll > * { scroll-snap-align: start; }

/* ---- Page heads ---- */
.rb-pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.rb-pagehead .rb-head-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; flex: none; border-radius: 1.1rem; color: #fff; background: hsl(var(--c, var(--rb-grape))); box-shadow: 0 12px 24px -12px hsl(var(--c, var(--rb-grape))); rotate: -6deg; }
.rb-pagehead .rb-head-icon .icon { width: 1.7rem; height: 1.7rem; }
.rb-pagehead p { margin: 0.2rem 0 0; color: hsl(var(--muted-foreground)); }

/* ---- Subject banner ---- */
.rb-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 1.5rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.75rem; color: #fff;
  background: linear-gradient(130deg, var(--from, #3730a3), var(--to, #38bdf8));
  box-shadow: 0 26px 50px -28px var(--from, #3730a3);
}
.rb-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(30rem 16rem at 0% 120%, rgb(0 0 0 / 0.28), transparent 60%); pointer-events: none; }
.rb-banner > * { position: relative; }
.rb-banner h1 { color: #fff; }
.rb-banner p { color: rgb(255 255 255 / 0.88); max-width: 40rem; }
.rb-banner .rb-crumbs a { color: rgb(255 255 255 / 0.85); }
.rb-banner .rb-art-big { overflow: hidden; border-radius: 1.2rem; border: 3px solid rgb(255 255 255 / 0.85); rotate: 4deg; box-shadow: 0 18px 34px -16px rgb(0 0 0 / 0.6); }
.rb-banner .rb-art-big svg { display: block; width: 100%; height: auto; }
.rb-banner .rb-banner-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.rb-banner .rb-banner-stats span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 9999px; background: rgb(255 255 255 / 0.18); font-weight: 700; font-size: 0.85rem; }
.rb-banner .rb-banner-stats .icon { width: 1rem; height: 1rem; }
.rb-banner .rb-banner-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
@media (max-width: 46rem) { .rb-banner { grid-template-columns: minmax(0, 1fr); } .rb-banner .rb-art-big { display: none; } }
.rb-crumbs { margin: 0 0 0.4rem; font-size: 0.85rem; }

/* ---- Topic list ---- */
.rb-topics { display: flex; flex-direction: column; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.rb-topics a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.7rem; border-radius: 0.7rem; color: inherit; text-decoration: none; font-size: 0.9rem; transition: background 0.2s, transform 0.2s; }
.rb-topics a:hover { background: hsl(var(--muted)); transform: translateX(3px); }
.rb-topics a[data-current] { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary-text)); font-weight: 700; }
.rb-topics a span:last-child { flex: none; min-width: 2rem; padding: 0 0.45rem; border-radius: 9999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); font-size: 0.75rem; font-weight: 700; text-align: center; line-height: 1.5rem; }
.rb-side-pick { display: none; }
@media (max-width: 54rem) {
  .rb-side-topics { display: none; }
  .rb-side-pick { display: block; }
}

/* ---- Question list ---- */
.rb-qlist { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.rb-qcard {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 1rem; color: inherit; text-decoration: none;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rb-qcard:hover { transform: translateX(4px); border-color: hsl(var(--primary) / 0.45); box-shadow: var(--rb-shadow); }
.rb-qcard .rb-qtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.rb-qcard .rb-qstem { font-weight: 600; line-height: 1.35; }
.rb-qcard .rb-qtags { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.rb-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 9999px; background: hsl(var(--muted)); font-weight: 600; }
.rb-tag .icon { width: 0.85rem; height: 0.85rem; }
.rb-qcard .rb-go { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); transition: background 0.2s, color 0.2s, transform 0.2s; }
.rb-qcard:hover .rb-go { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); transform: scale(1.1); }
.rb-qcard .rb-go .icon { width: 1rem; height: 1rem; }

/* A ring showing how many people get it right. */
.rb-ring {
  --p: 0; --rc: var(--rb-mint);
  flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: conic-gradient(hsl(var(--rc)) calc(var(--p) * 1%), hsl(var(--muted)) 0);
  font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.rb-ring > span { display: grid; place-items: center; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; background: hsl(var(--card)); }
.rb-ring-new { --rc: var(--rb-grape); background: hsl(var(--rb-grape) / 0.14); color: hsl(var(--rb-grape)); }
.rb-ring-new > span { background: none; }
.rb-ring-hi { --rc: var(--rb-right); } .rb-ring-mid { --rc: var(--rb-sun); } .rb-ring-lo { --rc: var(--rb-wrong); }
.rb-ring-lg { width: 7.5rem; height: 7.5rem; font-size: 1.6rem; font-family: var(--font-display); }
.rb-ring-lg > span { width: calc(100% - 16px); height: calc(100% - 16px); }

.rb-pages { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 1rem; }

/* ---- Answer options ---- */
.rb-site .rb-options { gap: 0.65rem; }
.rb-site .rb-option {
  align-items: center; padding: 0.85rem 1rem; border: 2px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card));
  box-shadow: 0 3px 0 hsl(var(--border)); font-size: 1rem; transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.15s;
}
.rb-site label.rb-option:hover { border-color: hsl(var(--primary) / 0.55); transform: translateY(-2px); box-shadow: 0 5px 0 hsl(var(--primary) / 0.25); }
.rb-site label.rb-option:active { transform: translateY(2px); box-shadow: 0 1px 0 hsl(var(--border)); }
.rb-site label.rb-option:has(input:checked), .rb-site .rb-chosen { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.09); box-shadow: 0 3px 0 hsl(var(--primary)); }
.rb-site .rb-letter { width: 2.1rem; height: 2.1rem; border-width: 2px; font-size: 0.9rem; font-family: var(--font-display); transition: transform 0.25s cubic-bezier(.2,.9,.3,1.6), background 0.2s; }
.rb-site label.rb-option:has(input:checked) .rb-letter { transform: scale(1.15) rotate(-8deg); }
.rb-site .rb-right { border-color: hsl(var(--rb-right)); background: hsl(var(--rb-right) / 0.12); box-shadow: 0 3px 0 hsl(var(--rb-right)); }
.rb-site .rb-right .rb-letter { border-color: hsl(var(--rb-right)); background: hsl(var(--rb-right)); color: #fff; }
.rb-site .rb-wrong { border-color: hsl(var(--rb-wrong)); background: hsl(var(--rb-wrong) / 0.1); box-shadow: 0 3px 0 hsl(var(--rb-wrong)); }
.rb-site .rb-wrong .rb-letter { border-color: hsl(var(--rb-wrong)); background: hsl(var(--rb-wrong)); color: #fff; }
.rb-site .rb-para { font-size: 1.08rem; line-height: 1.6; }
.rb-site .rb-picture { border-radius: 1rem; box-shadow: var(--rb-shadow); }

/* Right / wrong verdict */
.rb-verdict { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; border-radius: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.rb-verdict .rb-verdict-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: #fff; }
.rb-verdict .icon { width: 1.4rem; height: 1.4rem; }
.rb-verdict-right { background: hsl(var(--rb-right) / 0.14); color: hsl(var(--success-text)); }
.rb-verdict-right .rb-verdict-icon { background: hsl(var(--rb-right)); }
.rb-verdict-wrong { background: hsl(var(--rb-wrong) / 0.12); color: hsl(var(--destructive-text)); }
.rb-verdict-wrong .rb-verdict-icon { background: hsl(var(--rb-wrong)); }
.rb-why { display: flex; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 1rem; background: hsl(var(--rb-sun) / 0.13); }
.rb-why .icon { flex: none; width: 1.3rem; height: 1.3rem; color: hsl(32 95% 45%); }
.rb-why p { margin: 0; }

/* Question page */
.rb-qhead { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rb-qbox { padding: clamp(1.1rem, 3vw, 1.75rem); }
.rb-stat-card { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.rb-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; width: 100%; }
.rb-stat-grid div { padding: 0.5rem; border-radius: 0.8rem; background: hsl(var(--muted)); }
.rb-stat-grid b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.rb-stat-grid span { font-size: 0.72rem; color: hsl(var(--muted-foreground)); }

/* ---- Question of the day ---- */
.rb-qotd { position: relative; border: 0 !important; }
.rb-qotd::before {
  content: ""; position: absolute; inset: 0; z-index: 0; padding: 2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, hsl(var(--rb-sun)), hsl(var(--rb-coral)), hsl(var(--rb-grape)), hsl(var(--rb-sky)), hsl(var(--rb-sun)));
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.rb-qotd > * { position: relative; z-index: 1; }
.rb-qotd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.rb-qotd-title { display: flex; align-items: center; gap: 0.7rem; }
.rb-qotd-title .rb-head-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.9rem; color: #fff; background: linear-gradient(135deg, hsl(var(--rb-sun)), hsl(var(--rb-coral))); }
.rb-qotd-title .rb-head-icon .icon { width: 1.3rem; height: 1.3rem; }
.rb-qotd-title h2 { margin: 0 !important; font-size: 1.2rem !important; }
.rb-qotd-title p { margin: 0; }
.rb-pillrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.rb-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 9999px; background: hsl(var(--muted)); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.rb-pill .icon { width: 0.95rem; height: 0.95rem; }
.rb-pill-fire { background: hsl(var(--rb-sun) / 0.2); color: hsl(var(--warning-text)); }
.rb-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.rb-rules li { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.75rem 0.5rem; border-radius: 0.9rem; background: hsl(var(--muted)); text-align: center; font-size: 0.8rem; font-weight: 600; }
.rb-rules .icon { width: 1.3rem; height: 1.3rem; color: hsl(var(--primary-text)); }
.rb-reveal-box { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 1.2rem; border-radius: 1rem; background: linear-gradient(135deg, hsl(var(--rb-sun) / 0.12), hsl(var(--rb-coral) / 0.10)); text-align: center; }
.rb-reveal-box p { margin: 0; }
.rb-mystery { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 1.3rem; color: #fff; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, hsl(var(--rb-grape)), hsl(var(--rb-coral))); box-shadow: 0 14px 28px -12px hsl(var(--rb-coral)); }
.rb-timer { display: flex; align-items: center; gap: 0.8rem; }
.rb-timer .rb-clock { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; min-width: 3.2rem; }
.rb-site progress { accent-color: hsl(var(--rb-grape)); }
.rb-bar { position: relative; flex: 1; height: 0.75rem; overflow: hidden; border-radius: 9999px; background: hsl(var(--muted)); }
.rb-bar > i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, hsl(var(--rb-mint)), hsl(var(--rb-sky)), hsl(var(--rb-grape))); transition: width 0.5s cubic-bezier(.2,.9,.3,1); }
.rb-bar-danger > i { background: linear-gradient(90deg, hsl(var(--rb-wrong)), hsl(var(--rb-sun))); }
.rb-yesterday ul { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.rb-yesterday li { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem; border-radius: 0.7rem; background: hsl(var(--muted)); font-size: 0.88rem; }
.rb-yesterday li.rb-yes { background: hsl(var(--rb-right) / 0.14); color: hsl(var(--success-text)); font-weight: 700; }
.rb-yesterday li .icon { width: 1rem; height: 1rem; margin-left: auto; }
.rb-mini-board { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; padding: 0; list-style: none; font-size: 0.85rem; }
.rb-mini-board li { display: flex; justify-content: space-between; gap: 0.5rem; }
.rb-site details.rb-more-info > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; color: hsl(var(--primary-text)); font-weight: 700; font-size: 0.85rem; }
.rb-site details.rb-more-info > summary::-webkit-details-marker { display: none; }
.rb-site details.rb-more-info > summary .icon { width: 1rem; height: 1rem; transition: transform 0.25s; }
.rb-site details.rb-more-info[open] > summary .icon { transform: rotate(180deg); }
.rb-site details.rb-more-info > div { margin-top: 0.7rem; }

/* ---- Join banner ---- */
.rb-join {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: 1.75rem; color: #fff;
  background: linear-gradient(120deg, hsl(var(--rb-coral)), hsl(330 85% 58%) 45%, hsl(var(--rb-grape)));
}
.rb-join h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 3vw, 2rem) !important; }
.rb-join p { margin: 0.35rem 0 0; color: rgb(255 255 255 / 0.9); max-width: 34rem; }
.rb-join .rb-perks { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.rb-join .rb-perks span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 9999px; background: rgb(255 255 255 / 0.18); font-size: 0.82rem; font-weight: 700; }
.rb-join .rb-perks .icon { width: 0.95rem; height: 0.95rem; }
.rb-join .btn-quiet { background: transparent !important; border-color: rgb(255 255 255 / 0.5); color: #fff; }
.rb-shape { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.35; }
.rb-shape-a { width: 9rem; height: 9rem; right: 8%; top: -4rem; background: #ffe27a; }
.rb-shape-b { width: 5rem; height: 5rem; right: 30%; bottom: -2.5rem; background: #7dd3fc; border-radius: 1.2rem; rotate: 25deg; }

/* ---- Papers ---- */
.rb-papers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.rb-paper {
  --c: var(--rb-grape);
  position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.15rem 1.15rem 1.1rem 1.4rem; overflow: hidden;
  border-radius: var(--rb-radius); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--rb-shadow);
  color: inherit; text-decoration: none; transition: transform 0.25s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.25s;
}
.rb-paper::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0.4rem; background: hsl(var(--c)); }
.rb-paper:hover { transform: translateY(-4px) rotate(0.4deg); box-shadow: var(--rb-shadow-lift); }
.rb-paper strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.rb-paper .rb-paper-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.8rem; background: hsl(var(--c) / 0.15); color: hsl(var(--c)); }
.rb-paper .rb-paper-icon .icon { width: 1.2rem; height: 1.2rem; }
.rb-paper .rb-qtags { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: auto; }
.rb-kind-PAST_PAPER { --c: var(--rb-coral); } .rb-kind-MOCK_PAPER { --c: var(--rb-grape); } .rb-kind-LICENCE_TEST, .rb-kind-MOCK_TEST { --c: var(--rb-sky); } .rb-kind-CLASS_TEST { --c: var(--rb-mint); }
.rb-paper-cover { max-width: 46rem; margin-inline: auto; overflow: hidden; padding: 0 !important; }
.rb-paper-cover .rb-cover-top { padding: 1.75rem; color: #fff; background: linear-gradient(130deg, hsl(250 75% 45%), hsl(var(--rb-sky))); }
.rb-paper-cover .rb-cover-top h1 { color: #fff; }
.rb-paper-cover .rb-cover-body { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem 1.75rem 1.75rem; }
.rb-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.rb-facts div { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.9rem 0.5rem; border-radius: 1rem; background: hsl(var(--muted)); text-align: center; }
.rb-facts .icon { width: 1.3rem; height: 1.3rem; color: hsl(var(--primary-text)); }
.rb-facts b { font-family: var(--font-display); font-size: 1.3rem; }
.rb-facts span { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.rb-cover-top .rb-qtags span { background: rgb(255 255 255 / 0.18); color: #fff; }

/* ---- Leaderboard ---- */
.rb-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 0.75rem; max-width: 36rem; margin: 1.5rem auto 0; }
.rb-podium > div { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; min-width: 0; }
.rb-podium .rb-avatar { width: 3.6rem; height: 3.6rem; font-size: 1.3rem; }
.rb-podium .rb-p1 .rb-avatar { width: 4.6rem; height: 4.6rem; font-size: 1.7rem; box-shadow: 0 0 0 4px hsl(var(--rb-sun)), 0 14px 30px -10px hsl(var(--rb-sun)); }
.rb-podium .rb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-family: var(--font-display); }
.rb-podium .rb-step { width: 100%; display: grid; place-items: center; border-radius: 1rem 1rem 0.4rem 0.4rem; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.rb-podium .rb-p1 .rb-step { height: 7rem; background: linear-gradient(180deg, hsl(var(--rb-sun)), hsl(32 95% 46%)); }
.rb-podium .rb-p2 .rb-step { height: 5rem; background: linear-gradient(180deg, hsl(215 20% 72%), hsl(215 16% 52%)); }
.rb-podium .rb-p3 .rb-step { height: 3.8rem; background: linear-gradient(180deg, hsl(25 70% 60%), hsl(22 65% 42%)); }
.rb-podium .rb-crown { width: 1.6rem; height: 1.6rem; color: hsl(var(--rb-sun)); }
.rb-avatar { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #fff; font-family: var(--font-display); font-weight: 800; background: hsl(var(--h, 260) 70% 55%); }
.rb-board2 { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.rb-board2 li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.95rem; border-radius: 1rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); transition: transform 0.2s; }
.rb-board2 li:hover { transform: translateX(4px); }
.rb-board2 .rb-rank { width: 1.8rem; text-align: center; font-family: var(--font-display); font-weight: 800; color: hsl(var(--muted-foreground)); }
.rb-board2 .rb-score-pill { padding: 0.25rem 0.7rem; border-radius: 9999px; background: hsl(var(--primary) / 0.12); color: hsl(var(--primary-text)); font-weight: 800; font-variant-numeric: tabular-nums; }
.rb-board2 li.rb-is-you { border-color: hsl(var(--rb-grape)); background: hsl(var(--rb-grape) / 0.08); }

/* ---- Daily challenge ---- */
.rb-levels { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.rb-levels .inline-form { display: block; }
.rb-levels button {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.85rem 1rem; text-align: left; cursor: pointer;
  border: 2px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card)); color: inherit; font: inherit; font-weight: 700;
  box-shadow: 0 3px 0 hsl(var(--border)); transition: transform 0.15s, border-color 0.2s, box-shadow 0.15s;
}
.rb-levels button .icon { width: 1.2rem; height: 1.2rem; color: hsl(var(--c, var(--rb-grape))); }
.rb-levels button:hover { transform: translateY(-3px); border-color: hsl(var(--c, var(--rb-grape))); box-shadow: 0 6px 0 hsl(var(--c, var(--rb-grape)) / 0.5); }
.rb-levels button:active { transform: translateY(2px); box-shadow: 0 1px 0 hsl(var(--border)); }
.rb-group-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.7rem; }
.rb-group-title .rb-dot2 { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: hsl(var(--c, var(--rb-grape))); }

/* ---- Build a test ---- */
.rb-steps { display: flex; gap: 0.4rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.rb-steps li { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: hsl(var(--muted-foreground)); }
.rb-steps li::before { content: ""; height: 0.4rem; border-radius: 9999px; background: hsl(var(--muted)); }
.rb-steps li.rb-done::before, .rb-steps li.rb-now::before { background: linear-gradient(90deg, hsl(var(--rb-grape)), hsl(var(--rb-sky))); }
.rb-steps li.rb-now { color: hsl(var(--foreground)); }
.rb-pick-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.rb-pick { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 2px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; text-decoration: none; font-weight: 700; transition: transform 0.2s cubic-bezier(.2,.9,.3,1.4), border-color 0.2s; }
.rb-pick:hover { transform: translateY(-4px) scale(1.02); border-color: hsl(var(--primary)); }
.rb-pick .rb-art { aspect-ratio: 5 / 2; overflow: hidden; }
.rb-pick .rb-art svg { display: block; width: 100%; height: auto; margin-top: -12%; }
.rb-pick span { padding: 0.55rem 0.75rem; font-size: 0.9rem; }
.rb-level-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; padding: 1rem 0.6rem; text-align: center; }
.rb-level-pick b { font-family: var(--font-display); font-size: 1.25rem; }
.rb-level-pick small { color: hsl(var(--muted-foreground)); font-weight: 600; }
.rb-level-pick.rb-off { opacity: 0.45; pointer-events: none; }
.rb-toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rb-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; border: 2px solid hsl(var(--border)); border-radius: 9999px; background: hsl(var(--card)); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: transform 0.15s, border-color 0.2s, background 0.2s; }
.rb-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rb-toggle small { color: hsl(var(--muted-foreground)); font-weight: 700; }
.rb-toggle:hover { transform: translateY(-2px); border-color: hsl(var(--primary) / 0.5); }
.rb-toggle:has(input:checked) { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.12); color: hsl(var(--primary-text)); }
.rb-toggle:has(input:checked)::before { content: "✓"; font-weight: 900; }
.rb-toggle:has(input:focus-visible) { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.rb-count { width: 3.6rem; height: 3.6rem; justify-content: center; padding: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.rb-count:has(input:checked)::before { content: none; }
.rb-count:has(input:checked) { background: linear-gradient(135deg, hsl(var(--rb-grape)), hsl(232 80% 55%)); color: #fff; border-color: transparent; transform: scale(1.08); }
.rb-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.rb-fieldset legend { padding: 0; margin-bottom: 0.7rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.rb-fieldset legend small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: hsl(var(--muted-foreground)); }
.rb-numbered { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: 0.4rem; border-radius: 50%; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 0.85rem; vertical-align: 0.1em; }

/* ---- Test runner ---- */
.rb-site .rb-runner-bar { top: 4.2rem; border: 0; background: hsl(var(--card) / 0.9); backdrop-filter: blur(10px); }
.rb-site .rb-runner-bar .rb-clock { padding: 0.35rem 0.75rem; font-family: var(--font-display); font-size: 1rem; }
.rb-site .rb-q { padding: clamp(1.1rem, 3vw, 1.75rem); }
.rb-qnum { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 800; }
.rb-qnum b { display: grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.4rem; border-radius: 0.8rem; color: #fff; background: linear-gradient(135deg, hsl(var(--rb-grape)), hsl(var(--rb-sky))); }
.rb-site .rb-square { width: 2.1rem; height: 2.1rem; border-radius: 50%; border-width: 2px; font-weight: 700; transition: transform 0.2s, background 0.2s; }
.rb-site .rb-square:hover { transform: scale(1.12); }
.rb-site .rb-square-done { background: hsl(var(--rb-mint)); border-color: hsl(var(--rb-mint)); color: #fff; }
.rb-site .rb-square-on { outline: 3px solid hsl(var(--rb-grape)); outline-offset: 2px; border-color: hsl(var(--rb-grape)); }

/* ---- Results ---- */
.rb-site .rb-score {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 2rem; color: #fff; background: linear-gradient(130deg, hsl(250 75% 45%), hsl(232 80% 52%) 50%, hsl(var(--rb-sky)));
  box-shadow: 0 30px 60px -30px hsl(240 80% 30% / 0.7);
}
.rb-site .rb-score-pass { background: linear-gradient(130deg, hsl(150 70% 32%), hsl(var(--rb-mint)) 55%, hsl(var(--rb-sky))); }
.rb-site .rb-score-fail { background: linear-gradient(130deg, hsl(345 70% 42%), hsl(var(--rb-coral)) 55%, hsl(var(--rb-sun))); }
.rb-site .rb-score .muted { color: rgb(255 255 255 / 0.82); }
.rb-scorering {
  --p: 0; position: relative; display: grid; place-items: center; width: 11rem; height: 11rem; border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgb(255 255 255 / 0.2) 0);
}
.rb-scorering > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(100% - 22px); height: calc(100% - 22px); border-radius: 50%; background: rgb(20 20 60 / 0.28); }
.rb-site .rb-score .rb-score-figure { margin: 0; font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.rb-site .rb-score .rb-score-figure small { font-size: 1.1rem; opacity: 0.8; }
.rb-scorering .rb-percent { font-weight: 800; font-size: 0.95rem; opacity: 0.9; }
.rb-score-msg { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-align: center; max-width: 34rem; }
.rb-site .rb-score .btn-quiet { background: rgb(255 255 255 / 0.12) !important; border-color: rgb(255 255 255 / 0.4); color: #fff; }
.rb-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.rb-badges span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.85rem; border-radius: 9999px; background: #fff; color: hsl(262 70% 40%); font-weight: 800; box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.5); }
.rb-site .rb-review { border-left: 5px solid hsl(var(--border)); }
.rb-site .rb-review.rb-st-right { border-left-color: hsl(var(--rb-right)); }
.rb-site .rb-review.rb-st-wrong, .rb-site .rb-review.rb-st-skipped { border-left-color: hsl(var(--rb-wrong)); }
.rb-site .rb-review.rb-st-partial { border-left-color: hsl(var(--rb-sun)); }

/* ---- Confetti (added by revision.js) ---- */
.rb-confetti { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.rb-confetti i { position: absolute; top: -2rem; width: 0.6rem; height: 0.9rem; border-radius: 2px; animation: rb-fall var(--d, 3s) cubic-bezier(.25,.6,.4,1) var(--delay, 0s) forwards; }
@keyframes rb-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 720deg)); opacity: 0.9; }
}

/* ---- Motion: only for those who have not asked for less ---- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rb-js [data-rb-reveal] { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.9,.3,1.1); transition-delay: var(--delay, 0s); }
  .rb-js [data-rb-reveal].rb-in { opacity: 1; transform: none; }
  .rb-collage .rb-tile { animation: rb-bob 6s ease-in-out infinite; }
  .rb-collage .rb-tile:nth-child(2) { animation-delay: -2s; }
  .rb-collage .rb-tile:nth-child(3) { animation-delay: -4s; }
  .rb-bubble { animation: rb-pop 0.7s cubic-bezier(.2,.9,.3,1.6) both, rb-bob 5s ease-in-out 0.7s infinite; }
  .rb-bubble-streak { animation-delay: 0.25s, 1s; }
  .rb-bubble-badge { animation-delay: 0.5s, 1.2s; }
  .rb-hero2::before { animation: rb-drift 14s ease-in-out infinite alternate; }
  .rb-hero2::after { animation: rb-drift 18s ease-in-out infinite alternate-reverse; }
  .rb-qotd::before { animation: rb-shine 6s linear infinite; }
  .rb-mystery { animation: rb-wiggle 2.4s ease-in-out infinite; }
  .rb-site .rb-q:not([hidden]) { animation: rb-slide 0.4s cubic-bezier(.2,.9,.3,1.1); }
  .rb-site label.rb-option:has(input:checked) { animation: rb-pick 0.35s cubic-bezier(.2,.9,.3,1.6); }
  .rb-verdict-right { animation: rb-pop 0.6s cubic-bezier(.2,.9,.3,1.6); }
  .rb-verdict-wrong { animation: rb-shake 0.5s; }
  .rb-site .rb-option.rb-right { animation: rb-glow 1.4s ease-out; }
  .rb-site .rb-option.rb-wrong { animation: rb-shake 0.5s 0.15s; }
  .rb-scorering { animation: rb-fill 1.6s cubic-bezier(.2,.8,.2,1) both; }
  .rb-score-figure, .rb-score-msg { animation: rb-pop 0.7s 0.9s cubic-bezier(.2,.9,.3,1.5) both; }
  .rb-badges span { animation: rb-pop 0.6s cubic-bezier(.2,.9,.3,1.7) both; animation-delay: calc(1.3s + var(--i, 0) * 0.15s); }
  .rb-ring-lg { animation: rb-fill 1.4s cubic-bezier(.2,.8,.2,1) both; }
  .rb-podium .rb-step { animation: rb-rise 0.8s cubic-bezier(.2,.9,.3,1.2) both; transform-origin: bottom; }
  .rb-podium .rb-p1 .rb-step { animation-delay: 0.35s; }
  .rb-podium .rb-p3 .rb-step { animation-delay: 0.15s; }
  .rb-podium .rb-avatar { animation: rb-pop 0.6s 0.7s cubic-bezier(.2,.9,.3,1.6) both; }
  .rb-podium .rb-crown { animation: rb-bob 2.5s ease-in-out infinite; }
  .rb-pill-fire .icon { animation: rb-flicker 1.2s ease-in-out infinite; }
  .rb-kicker .icon { animation: rb-spin-soft 4s ease-in-out infinite; }
  .rb-banner .rb-art-big { animation: rb-bob 6s ease-in-out infinite; }
}
@keyframes rb-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes rb-pop { 0% { opacity: 0; transform: scale(0.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes rb-drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-3rem, 2rem) scale(1.15); } }
@keyframes rb-shine { to { background-position: 300% 0; } }
@keyframes rb-wiggle { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; scale: 1.06; } }
@keyframes rb-slide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes rb-pick { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes rb-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes rb-glow { 0% { box-shadow: 0 0 0 0 hsl(var(--rb-right) / 0.6); } 100% { box-shadow: 0 0 0 16px hsl(var(--rb-right) / 0), 0 3px 0 hsl(var(--rb-right)); } }
@keyframes rb-fill { from { --p: 0; } }
@keyframes rb-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rb-flicker { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18) rotate(4deg); } }
@keyframes rb-spin-soft { 0%, 70%, 100% { transform: rotate(0) scale(1); } 85% { transform: rotate(25deg) scale(1.25); } }
.rb-verdict-wait { background: hsl(var(--rb-grape) / 0.12); color: hsl(var(--foreground)); font-size: 1.05rem; }
.rb-verdict-wait .rb-verdict-icon { background: hsl(var(--rb-grape)); }
.rb-join > div { position: relative; z-index: 1; }
.rb-site aside .inline-form { display: block; }
.rb-ring .icon { width: 1.1rem; height: 1.1rem; }
.rb-site .rb-chip .icon { width: 0.95rem; height: 0.95rem; }
.rb-site .meter progress, .rb-site progress {
  -webkit-appearance: none; appearance: none; width: 100%; height: 0.75rem; border: 0; border-radius: 9999px; overflow: hidden; background: hsl(var(--muted));
}
.rb-site progress::-webkit-progress-bar { background: hsl(var(--muted)); border-radius: 9999px; }
.rb-site progress::-webkit-progress-value { border-radius: 9999px; background: linear-gradient(90deg, hsl(var(--rb-mint)), hsl(var(--rb-sky)), hsl(var(--rb-grape))); transition: width 0.4s; }
.rb-site progress::-moz-progress-bar { border-radius: 9999px; background: linear-gradient(90deg, hsl(var(--rb-mint)), hsl(var(--rb-sky)), hsl(var(--rb-grape))); }
.rb-site [data-daily-bar]::-webkit-progress-value { background: linear-gradient(90deg, hsl(var(--rb-wrong)), hsl(var(--rb-sun)), hsl(var(--rb-mint))); }
.rb-site [data-daily-bar]::-moz-progress-bar { background: linear-gradient(90deg, hsl(var(--rb-wrong)), hsl(var(--rb-sun)), hsl(var(--rb-mint))); }
.rb-site .rb-runner-nav { position: sticky; bottom: 0.75rem; z-index: 5; padding: 0.6rem; border-radius: 9999px; background: hsl(var(--card) / 0.92); backdrop-filter: blur(10px); box-shadow: var(--rb-shadow-lift); }
.rb-cover-body .inline-form { display: block; }
.rb-site .rb-qbox .rb-qlist .rb-option { box-shadow: none; }
.rb-site .rb-board2 li.muted { justify-content: center; }
.rb-site a.rb-tag { color: inherit; text-decoration: none; }
.rb-site .rb-board2.rb-sec { margin-top: 1.5rem; }
.rb-topics a { align-items: center; }
.rb-ring { font-size: 0.68rem; letter-spacing: -0.03em; }
.rb-ring-lg { font-size: 1.6rem; }
.rb-paper.rb-c-grape { --c: var(--rb-grape); } .rb-paper.rb-c-sun { --c: var(--rb-sun); } .rb-paper.rb-c-coral { --c: var(--rb-coral); } .rb-paper.rb-c-mint { --c: var(--rb-mint); } .rb-paper.rb-c-sky { --c: var(--rb-sky); }
/* The score ring: the conic fill sits on a pseudo-element with its middle cut out. */
.rb-scorering { background: none; }
.rb-scorering::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgb(255 255 255 / 0.22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
}
.rb-scorering > div { position: relative; background: rgb(255 255 255 / 0.1); }
.rb-site .rb-score .rb-score-figure { white-space: nowrap; }
@media print {
  .rb-js [data-rb-reveal] { opacity: 1 !important; transform: none !important; }
  .rb-confetti, .rb-collage, .rb-runner-nav { display: none !important; }
}
.rb-levels button { background: linear-gradient(160deg, hsl(var(--c, var(--rb-grape)) / 0.10), hsl(var(--card)) 70%); }
.rb-levels button .icon { width: 2rem; height: 2rem; padding: 0.4rem; border-radius: 0.6rem; background: hsl(var(--c, var(--rb-grape))); color: #fff; }
@media (max-width: 40rem) {
  .rb-site .rb-nav { row-gap: 0.3rem; }
  .rb-site .rb-links { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -0.25rem; }
  .rb-site .rb-links::-webkit-scrollbar { display: none; }
  .rb-site .site-actions { margin-left: auto; }
  .rb-hero2 h1 { font-size: 2.1rem !important; }
  .rb-collage { display: none; }
  .rb-facts b { font-size: 1.05rem; }
}
.rb-site .rb-main .row-actions { flex-wrap: wrap; }
.rb-site .rb-main .btn { white-space: nowrap; }
@media (max-width: 26rem) { .rb-site .rb-main .btn-lg { padding: 0.75rem 1.2rem; font-size: 0.95rem; } }
.rb-site .rb-main .row-between { flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 54rem) {
  .rb-two > aside { display: contents; }
  .rb-two .rb-side-papers { order: 3; }
}
@media (max-width: 40rem) {
  .rb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .rb-scard .rb-scard-body { padding: 0.6rem 0.7rem 0.75rem; }
  .rb-scard strong { font-size: 0.92rem; }
  .rb-scard-all { min-height: 0; }
  .rb-ways2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .rb-way2 { padding: 1rem; }
  .rb-way2 span.small { display: none; }
  .rb-way2 .rb-way-icon { width: 2.5rem; height: 2.5rem; }
  .rb-qcard { padding: 0.75rem; gap: 0.7rem; }
  .rb-qcard .rb-go { display: none; }
}
.rb-site .rb-score .rb-score-figure small { color: #fff; opacity: 0.85; }
