/* ════════════════════════════════════════════════════════════
   Portal Reginaldoo (home e /launcher)
   Tudo aqui fica dentro de .rg-home, então não afeta o fórum
   nem as outras rotas. Fontes: src/components/home/fonts.ts.
   Arquivo estático: ao editar, aumente a versão em
   src/components/home/shell.tsx (HOME_CSS).
   ════════════════════════════════════════════════════════════ */

@property --rg-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* O layout raiz desenha o dock do fórum e o botão de tema em todas as
   rotas. No portal eles dão lugar à navbar própria; nas outras rotas
   continuam como sempre. */
html:has(.rg-home),
body:has(.rg-home) {
  background: #06050e;
}
html:has(.rg-home) {
  scroll-padding-top: 92px;
}
body:has(.rg-home:not(.rg-forum)) nav[aria-label="Main navigation"] {
  display: none;
}

/* ── Design system ────────────────────────────────────────── */
.rg-home {
  /* cores */
  --rg-w: 255 255 255;
  --rg-bg: #06050e;
  --rg-ink: #f6f4ff;
  --rg-ink-soft: #cfcbe8;
  --rg-ink-dim: #a29ec2;
  --rg-violet: #8b6cff;
  --rg-indigo: #5b4bff;
  --rg-blue: #4d8dff;
  --rg-orange: #ff8a2a;
  --rg-red: #ff4455;
  --rg-amber: #ffc46b;
  --rg-brand: linear-gradient(150deg, #ffa53a 0%, #ff6a2b 42%, #ff3355 100%);
  --rg-glass: linear-gradient(180deg, rgb(var(--rg-w) / 0.07), rgb(var(--rg-w) / 0.025));
  --rg-hairline: rgb(var(--rg-w) / 0.1);

  /* forma e espaço */
  --rg-gutter: clamp(16px, 4vw, 40px);
  --rg-radius-sm: 14px;
  --rg-radius: 20px;
  --rg-radius-lg: 28px;

  /* tipografia */
  --rg-display: var(--font-rg-display), var(--font-geist-sans), system-ui, sans-serif;
  --rg-body: var(--font-rg-body), var(--font-geist-sans), system-ui, sans-serif;

  /* movimento (escala do transitions.dev) */
  --duration-stagger: 40ms;
  --duration-micro: 80ms;
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-medium: 350ms;
  --duration-slow: 400ms;
  --duration-very-slow: 500ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  --learn-shift: 3px;
  --learn-spread: 8deg;
  --learn-in: 350ms;
  --learn-out: 350ms;
  --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--rg-ink);
  color-scheme: dark;
  font-family: var(--rg-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.rg-home ::selection {
  background: rgba(139, 108, 255, 0.5);
  color: #fff;
}

.rg-home :focus-visible {
  outline: 2px solid var(--rg-amber);
  outline-offset: 3px;
}

.rg-wrap {
  width: min(100% - 2 * var(--rg-gutter), 1120px);
  margin-inline: auto;
}

.rg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rg-skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #14102c;
  font-weight: 800;
  transform: translateY(-200%);
}
.rg-skip:focus {
  transform: none;
}

.rg-h2 {
  margin: 0;
  font-family: var(--rg-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.9vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--rg-ink);
}

.rg-section {
  position: relative;
  padding: clamp(26px, 4vw, 44px) 0;
}

/* ── Fundo ────────────────────────────────────────────────── */
.rg-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(44, 32, 120, 0.55) 0%, rgba(12, 10, 30, 0) 70%),
    linear-gradient(180deg, #090718 0%, #06050e 100%);
}
.rg-bg__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.rg-bg__glow {
  position: absolute;
  border-radius: 50%;
}
.rg-bg__glow--violet {
  left: -24vw;
  top: -22vh;
  width: clamp(560px, 84vw, 1150px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(91, 75, 255, 0.44), rgba(91, 75, 255, 0.13) 55%, transparent 100%);
}
.rg-bg__glow--ember {
  right: -22vw;
  top: -4vh;
  width: clamp(520px, 76vw, 1050px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.36), rgba(255, 51, 85, 0.12) 55%, transparent 100%);
}
.rg-bg__glow--blue {
  left: 16vw;
  bottom: -46vh;
  width: clamp(560px, 80vw, 1100px);
  aspect-ratio: 1.2;
  background: radial-gradient(closest-side, rgba(77, 141, 255, 0.24), transparent 100%);
}
.rg-bg__stars {
  position: absolute;
  inset: -12% 0;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 14%, rgb(var(--rg-w) / 0.95), transparent 70%),
    radial-gradient(1.1px 1.1px at 21% 62%, rgb(var(--rg-w) / 0.8), transparent 70%),
    radial-gradient(1.6px 1.6px at 33% 28%, rgba(255, 196, 107, 0.95), transparent 70%),
    radial-gradient(1.1px 1.1px at 47% 76%, rgb(var(--rg-w) / 0.75), transparent 70%),
    radial-gradient(1.3px 1.3px at 58% 9%, rgba(190, 180, 255, 0.95), transparent 70%),
    radial-gradient(1.1px 1.1px at 67% 48%, rgb(var(--rg-w) / 0.8), transparent 70%),
    radial-gradient(1.7px 1.7px at 78% 22%, rgba(255, 138, 42, 0.95), transparent 70%),
    radial-gradient(1.2px 1.2px at 88% 67%, rgb(var(--rg-w) / 0.85), transparent 70%),
    radial-gradient(1.1px 1.1px at 94% 36%, rgba(190, 180, 255, 0.9), transparent 70%),
    radial-gradient(1.3px 1.3px at 14% 88%, rgba(255, 138, 42, 0.8), transparent 70%);
  opacity: 0.8;
}
.rg-bg__stars--far {
  inset: -12% 0;
  transform: scale(-1, 1);
  background-image:
    radial-gradient(1px 1px at 5% 42%, rgb(var(--rg-w) / 0.7), transparent 70%),
    radial-gradient(1px 1px at 17% 8%, rgb(var(--rg-w) / 0.6), transparent 70%),
    radial-gradient(1px 1px at 28% 74%, rgba(190, 180, 255, 0.7), transparent 70%),
    radial-gradient(1px 1px at 41% 33%, rgb(var(--rg-w) / 0.6), transparent 70%),
    radial-gradient(1px 1px at 53% 58%, rgb(var(--rg-w) / 0.7), transparent 70%),
    radial-gradient(1px 1px at 62% 84%, rgba(255, 196, 107, 0.7), transparent 70%),
    radial-gradient(1px 1px at 73% 16%, rgb(var(--rg-w) / 0.6), transparent 70%),
    radial-gradient(1px 1px at 84% 52%, rgb(var(--rg-w) / 0.7), transparent 70%),
    radial-gradient(1px 1px at 96% 80%, rgba(190, 180, 255, 0.7), transparent 70%);
  opacity: 0.55;
}
.rg-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Logotipo ─────────────────────────────────────────────── */
.rg-logo {
  --logo: 36px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--logo);
  aspect-ratio: 1;
  border-radius: 27%;
  color: #fff;
  /* o degradê laranja da marca (--rg-brand) sem saturação: mesma luminosidade em cada parada */
  background: linear-gradient(150deg, #b4b4b4 0%, #8f8f8f 42%, #747474 100%);
  box-shadow:
    inset 0 calc(var(--logo) * 0.035) 0 rgba(255, 255, 255, 0.55),
    inset 0 calc(var(--logo) * -0.07) calc(var(--logo) * 0.14) rgba(59, 59, 59, 0.55),
    0 0 0 calc(var(--logo) * 0.04) #151515,
    0 calc(var(--logo) * 0.14) calc(var(--logo) * 0.42) rgba(170, 170, 170, 0.32);
}
.rg-logo::before {
  content: "";
  position: absolute;
  inset: 7% 9% 54% 9%;
  border-radius: 24% 24% 60% 60% / 34% 34% 46% 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}
.rg-logo svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 calc(var(--logo) * 0.025) calc(var(--logo) * 0.03) rgba(44, 44, 44, 0.45));
}
/* emblema do herói: personagem no balão com o laranja original da marca */
.rg-logo--avatar {
  background: var(--rg-brand);
  box-shadow:
    inset 0 calc(var(--logo) * 0.035) 0 rgba(255, 255, 255, 0.55),
    inset 0 calc(var(--logo) * -0.07) calc(var(--logo) * 0.14) rgba(150, 16, 40, 0.55),
    0 0 0 calc(var(--logo) * 0.04) #1b0f26,
    0 calc(var(--logo) * 0.14) calc(var(--logo) * 0.42) rgba(255, 90, 43, 0.5);
}
.rg-logo--avatar img {
  position: relative;
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 calc(var(--logo) * 0.025) calc(var(--logo) * 0.03) rgba(120, 10, 24, 0.45));
}
/* balão amarelo do "Quem sou eu?": as cores do chapéu do personagem */
.rg-logo--gold {
  background: linear-gradient(150deg, #ffd92e 0%, #f5bb10 45%, #d99a0a 100%);
  box-shadow:
    inset 0 calc(var(--logo) * 0.035) 0 rgba(255, 255, 255, 0.6),
    inset 0 calc(var(--logo) * -0.07) calc(var(--logo) * 0.14) rgba(140, 92, 0, 0.55),
    0 0 0 calc(var(--logo) * 0.04) #1a1408,
    0 calc(var(--logo) * 0.14) calc(var(--logo) * 0.42) rgba(254, 195, 13, 0.45);
}
.rg-logo--gold img {
  filter: drop-shadow(0 calc(var(--logo) * 0.025) calc(var(--logo) * 0.03) rgba(110, 70, 0, 0.45));
}
.rg-logo--sm {
  --logo: 34px;
}
.rg-logo--lg {
  --logo: clamp(104px, 13vw, 136px);
}
.rg-logo--xl {
  --logo: clamp(92px, 11.5vw, 124px);
}

/* ── Navbar ───────────────────────────────────────────────── */
.rg-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 12px var(--rg-gutter) 0;
}
.rg-nav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 10px 8px 12px;
  border-radius: var(--rg-radius);
  background: rgb(var(--rg-d, 12 10 28) / 0);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0);
  transition:
    background-color var(--duration-medium) var(--ease-smooth-out),
    box-shadow var(--duration-medium) var(--ease-smooth-out),
    backdrop-filter var(--duration-medium) var(--ease-smooth-out);
}
.rg-nav[data-scrolled="true"] .rg-nav__bar,
.rg-nav[data-open="true"] .rg-nav__bar {
  background: rgb(var(--rg-d, 11 9 26) / 0.9);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgb(var(--rg-w) / 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 40px -22px rgba(0, 0, 0, 0.9);
}
.rg-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-height: 44px;
  border-radius: 12px;
}
.rg-nav__name {
  font-family: var(--rg-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.005em;
}
.rg-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.rg-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--rg-ink-soft);
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.rg-nav__link:hover {
  color: var(--rg-strong, #fff);
  background: rgb(var(--rg-w) / 0.07);
}
.rg-nav__link[aria-current="true"] {
  color: #ffe1c2;
  background: linear-gradient(180deg, rgba(255, 138, 42, 0.26), rgba(255, 68, 85, 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 150, 70, 0.5), 0 6px 18px -10px rgba(255, 106, 43, 0.9);
}
.rg-nav__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.rg-nav__discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--rg-radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(91, 75, 255, 0.34), rgba(91, 75, 255, 0.14));
  box-shadow: inset 0 0 0 1px rgba(150, 128, 255, 0.7), 0 10px 26px -14px rgba(91, 75, 255, 1);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}
.rg-nav__discord:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(190, 176, 255, 0.95), 0 14px 30px -12px rgba(91, 75, 255, 1);
}
.rg-nav__discord:active {
  transform: scale(0.98);
  transition-duration: var(--duration-micro);
}
.rg-nav__discord-icon {
  width: 20px;
  height: 20px;
  color: #b9adff;
}
.rg-nav__discord-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.rg-nav__discord:hover .rg-nav__discord-arrow {
  transform: translate(2px, -2px);
}
.rg-nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--rg-radius-sm);
  background: rgb(var(--rg-w) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.12);
  cursor: pointer;
}
.rg-nav__toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.rg-nav__toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rg-strong, #fff);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.rg-nav__toggle-bars span:first-child {
  top: 1px;
}
.rg-nav__toggle-bars span:last-child {
  bottom: 1px;
}
.rg-nav[data-open="true"] .rg-nav__toggle-bars span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.rg-nav[data-open="true"] .rg-nav__toggle-bars span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.rg-menu {
  display: none;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 10px;
  border-radius: var(--rg-radius);
  background: rgb(var(--rg-d, 13 11 30) / 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.09), 0 24px 50px -24px rgba(0, 0, 0, 0.95);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity var(--duration-quick) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-smooth-out),
    visibility 0s linear var(--duration-quick);
}
.rg-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--duration-fast) var(--ease-smooth-out),
    transform var(--duration-fast) var(--ease-smooth-out),
    visibility 0s;
}
.rg-menu__links {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}
.rg-menu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--rg-ink);
}
.rg-menu__link:hover,
.rg-menu__link[aria-current="true"] {
  background: rgb(var(--rg-w) / 0.07);
}
.rg-menu .rg-nav__discord {
  display: flex;
  justify-content: center;
  min-height: 48px;
}

@media (max-width: 899px) {
  .rg-nav__bar {
    grid-template-columns: 1fr auto;
  }
  .rg-nav__links,
  .rg-nav__end > .rg-nav__discord {
    display: none;
  }
  .rg-nav__toggle {
    display: grid;
  }
  .rg-menu {
    display: block;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.rg-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 104px 0 56px;
}
.rg-hero__spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 124, 255, 0.17), rgba(255, 138, 42, 0.05) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-smooth-out);
}
.rg-hero__spot[data-on="true"] {
  opacity: 1;
}
.rg-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rg-hero__decor > * {
  position: absolute;
}
.rg-hero__decor svg {
  display: block;
  width: 100%;
  height: auto;
}
.rg-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.rg-orb {
  border-radius: 50%;
}
.rg-orb--a {
  left: -62px;
  top: 92px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 32% 28%, #9583ff 0%, #4d37cc 46%, #190e5a 100%);
  box-shadow: inset -20px -20px 44px rgba(8, 4, 40, 0.75), 0 0 70px rgba(91, 75, 255, 0.4);
}
.rg-orb--b {
  right: -26px;
  top: 62%;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at 32% 28%, #c2a8ff 0%, #6b41d2 50%, #2a1272 100%);
  box-shadow: inset -12px -12px 26px rgba(14, 4, 50, 0.75), 0 0 46px rgba(139, 108, 255, 0.4);
}
.rg-orb--c {
  left: 9%;
  bottom: 10%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 32% 28%, #ffd49a 0%, #ff7a2e 55%, #a02a1a 100%);
  box-shadow: 0 0 24px rgba(255, 122, 46, 0.7);
}

.rg-hero__roblox {
  left: max(3vw, calc(50% - 640px));
  top: 112px;
  --s: clamp(104px, 11.5vw, 164px);
}
.rg-hero__island {
  left: max(-34px, calc(50% - 724px));
  top: 300px;
  width: clamp(190px, 21vw, 300px);
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
}
.rg-hero__visor {
  right: max(5vw, calc(50% - 616px));
  top: 124px;
  --s: clamp(100px, 11vw, 156px);
}
.rg-hero__stairs {
  right: max(-44px, calc(50% - 736px));
  top: 318px;
  width: clamp(200px, 22.5vw, 320px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.rg-hero__chip--a {
  left: min(calc(50% + 345px), 72%);
  top: 96px;
  width: 44px;
}

.rg-roblox {
  display: block;
  width: var(--s, 150px);
  aspect-ratio: 1;
  transform: rotate(-9deg);
  filter: drop-shadow(5px 7px 0 #3a2cc0) drop-shadow(0 26px 40px rgba(60, 48, 210, 0.6));
}
.rg-roblox__mark {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, rgba(224, 219, 255, 0.96) 0%, rgba(140, 126, 255, 0.88) 46%, rgba(70, 58, 222, 0.78) 100%);
  -webkit-mask: url("/home/icons/roblox.svg") center / contain no-repeat;
  mask: url("/home/icons/roblox.svg") center / contain no-repeat;
}

.rg-visor {
  position: relative;
  display: block;
  width: var(--s, 150px);
  aspect-ratio: 1;
  border-radius: 30%;
  background: linear-gradient(150deg, #ff9d3d 0%, #f0452c 52%, #a81c38 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.42),
    inset 0 -12px 26px rgba(90, 10, 30, 0.6),
    0 26px 54px -12px rgba(255, 80, 40, 0.6);
  transform: rotate(9deg);
}
.rg-visor__glass {
  position: absolute;
  left: 22%;
  right: 11%;
  top: 27%;
  height: 34%;
  border-radius: 999px;
  background: linear-gradient(160deg, #eefcff 0%, #93d8ff 36%, #4a6dd8 100%);
  box-shadow:
    inset 0 -6px 10px rgba(20, 30, 90, 0.55),
    0 0 0 calc(var(--s, 150px) * 0.035) rgba(44, 12, 26, 0.88),
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.rg-visor__glass::after {
  content: "";
  position: absolute;
  left: 13%;
  top: 17%;
  width: 38%;
  height: 26%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.rg-chat {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s, 124px);
  aspect-ratio: 1;
  border-radius: 30%;
  color: #fff;
  background: linear-gradient(150deg, #a497ff 0%, #5b4bff 55%, #3324b4 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.46),
    inset 0 -12px 24px rgba(20, 10, 90, 0.55),
    0 24px 46px -14px rgba(91, 75, 255, 0.85);
  transform: rotate(-7deg);
}
.rg-chat img,
.rg-chat svg {
  width: 62%;
  height: auto;
  filter: drop-shadow(0 3px 4px rgba(20, 10, 90, 0.5));
}

/* emblema: logotipo + órbita */
.rg-hero__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 300px;
  height: clamp(132px, 16vw, 172px);
  margin: 0 auto;
}
.rg-hero__logo {
  position: relative;
  z-index: 2;
  display: inline-grid;
  border-radius: 27%;
  cursor: pointer;
}
.rg-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 286px;
  height: 96px;
  margin: -48px 0 0 -143px;
  padding: 3px;
  border-radius: 50%;
  transform: rotate(-15deg);
  background: conic-gradient(from 210deg, #b8b8b8, #7e7e7e 26%, #8f8f8f 52%, #6e6e6e 74%, #b8b8b8);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0.55;
}
.rg-orbit--front {
  z-index: 3;
  clip-path: inset(50% 0 0 0);
  opacity: 0.95;
}
.rg-orbiter {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: rotate(-15deg) scaleY(0.33);
}
.rg-orbiter__arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.rg-orbiter__keep {
  position: absolute;
  left: 141px;
  top: 0;
  width: 0;
  height: 0;
}
.rg-orbiter__dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f2f2f2;
  box-shadow: 0 0 0 3px rgba(190, 190, 190, 0.35), 0 0 18px 4px rgba(200, 200, 200, 0.8);
  transform: scaleY(3.03);
}

.rg-hero__title {
  margin: 4px 0 0;
  font-family: var(--rg-display);
  font-weight: 700;
  font-size: clamp(3.3rem, 12.4vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  filter: drop-shadow(0 10px 30px rgba(120, 96, 255, 0.5));
}
.rg-hero__letter {
  display: inline-block;
  /* a caixa da letra precisa cobrir a perna do "g", senão o degradê corta */
  padding: 0.06em 0 0.24em;
  margin: -0.06em 0 -0.24em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 34%, #ddd6ff 74%, #b9abff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #f0ebff;
  background: linear-gradient(180deg, rgba(139, 108, 255, 0.24), rgba(139, 108, 255, 0.09));
  box-shadow: inset 0 0 0 1px rgba(166, 146, 255, 0.5);
}
.rg-badge__icon {
  width: 20px;
  height: 20px;
  color: #b9adff;
}
.rg-badge__sep {
  color: var(--rg-amber);
}

.rg-hero__lead {
  max-width: 64ch;
  margin: 18px auto 0;
  color: var(--rg-ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 500;
  text-wrap: pretty;
}

.rg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.rg-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 376px);
  padding: 14px 18px 14px 16px;
  border-radius: var(--rg-radius);
  overflow: hidden;
  text-align: left;
  color: #fff;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-medium) var(--ease-smooth-out);
}
.rg-cta--violet {
  background: linear-gradient(135deg, #4a39e6 0%, #5d44ee 55%, #6c50f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgb(var(--rg-w) / 0.2),
    0 0 0 1px rgba(91, 75, 255, 0.55),
    0 16px 40px -16px rgba(91, 75, 255, 0.95);
}
.rg-cta--ember {
  background: linear-gradient(135deg, rgb(var(--rg-d, 52 26 26) / 0.84), rgb(var(--rg-d, 24 14 30) / 0.84));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 196, 107, 0.3),
    inset 0 0 0 1.5px rgba(255, 138, 42, 0.62),
    0 16px 40px -18px rgba(255, 106, 43, 0.8);
}
.rg-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(200px circle at var(--px, 50%) var(--py, 50%), rgb(var(--rg-w) / 0.24), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth-out);
}
.rg-cta::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -36%;
  width: 28%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(var(--rg-w) / 0.3), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}
.rg-cta:hover {
  transform: translateY(-2px);
}
.rg-cta--violet:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgb(var(--rg-w) / 0.28),
    0 0 0 1px rgba(120, 104, 255, 0.8),
    0 22px 48px -16px rgba(91, 75, 255, 1);
}
.rg-cta--ember:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 196, 107, 0.4),
    inset 0 0 0 1.5px rgba(255, 160, 70, 0.9),
    0 22px 48px -18px rgba(255, 106, 43, 1);
}
.rg-cta:hover::before {
  opacity: 1;
}
.rg-cta:active {
  transform: translateY(0) scale(0.985);
  transition-duration: var(--duration-micro);
}
.rg-cta__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgb(var(--rg-w) / 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.rg-cta--ember .rg-cta__icon {
  color: #ffb565;
  background: rgba(255, 138, 42, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.4);
}
.rg-cta__icon svg {
  width: 26px;
  height: 26px;
}
.rg-cta__title {
  display: block;
  font-family: var(--rg-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
}
.rg-cta__sub {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #f4f1ff;
}
.rg-cta .t-learn-chevron svg {
  width: 20px;
  height: 20px;
}

.rg-quick {
  display: inline-flex;
  margin-top: 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(var(--rg-w) / 0.04);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.1);
}
.rg-quick a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 clamp(12px, 2.4vw, 22px);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--rg-ink-soft);
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}
.rg-quick a + a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 28%;
  bottom: 28%;
  width: 1px;
  background: rgb(var(--rg-w) / 0.14);
}
.rg-quick a:hover {
  color: var(--rg-strong, #fff);
  background: rgb(var(--rg-w) / 0.07);
}
.rg-quick svg {
  width: 18px;
  height: 18px;
  color: var(--c);
  transition: transform var(--duration-medium) var(--ease-bounce);
}
.rg-quick a:hover svg {
  transform: scale(1.14);
}

/* ── Seta "saiba mais" (transitions.dev, learn more hover) ── */
.t-learn-chevron {
  display: inline-flex;
  transform: translateX(0);
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn-chevron svg {
  width: 16px;
  height: 16px;
}
.t-learn-arm {
  transform-box: view-box;
  transform-origin: 10px 8px;
  vector-effect: non-scaling-stroke;
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn:hover .t-learn-chevron {
  transform: translateX(var(--learn-shift));
  transition-duration: var(--learn-in);
}
.t-learn:hover .t-learn-arm {
  transition-duration: var(--learn-in);
}
.t-learn:hover .t-learn-arm-top {
  transform: rotate(var(--learn-spread));
}
.t-learn:hover .t-learn-arm-bot {
  transform: rotate(calc(var(--learn-spread) * -1));
}

/* ── Botões ───────────────────────────────────────────────── */
.rg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border-radius: var(--rg-radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #fff;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}
.rg-btn--lg {
  min-height: 52px;
  padding: 0 18px 0 20px;
  font-size: 1rem;
}
.rg-btn--violet {
  background: linear-gradient(135deg, #4c3bea, #7355f7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 26px -14px rgba(91, 75, 255, 1);
}
.rg-btn--ember {
  color: #2b0c05;
  background: linear-gradient(135deg, #ffb04d, #ff7a3a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 26px -14px rgba(255, 106, 43, 1);
}
.rg-btn--ghost {
  background: rgb(var(--rg-w) / 0.06);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.18);
}
.rg-btn:hover,
.rg-project:hover .rg-project__link {
  transform: translateY(-2px);
}
.rg-btn--ghost:hover {
  background: rgb(var(--rg-w) / 0.1);
}
.rg-btn:active {
  transform: scale(0.98);
  transition-duration: var(--duration-micro);
}
.rg-btn__icon {
  width: 20px;
  height: 20px;
}
.rg-btn__arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.rg-btn:hover .rg-btn__arrow {
  transform: translate(2px, -2px);
}

.rg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffd9b0;
  background: rgba(255, 138, 42, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 150, 70, 0.5);
}
.rg-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rg-amber);
  box-shadow: 0 0 10px var(--rg-orange);
}

/* ── Balões da história ───────────────────────────────────── */
.rg-story {
  position: relative;
  padding: clamp(20px, 4vw, 48px) 0 clamp(12px, 2.5vw, 28px);
}
.rg-story__wrap {
  position: relative;
  max-width: 940px;
}
.rg-thread {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: rgb(var(--rg-w) / 0.07);
}
.rg-thread__fill {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  transform-origin: top;
  background: linear-gradient(180deg, #8b6cff 0%, #4d8dff 36%, #ff8a2a 70%, #ff4d6a 100%);
  box-shadow: 0 0 16px rgba(139, 108, 255, 0.65);
}
.rg-story__list {
  display: grid;
  gap: clamp(26px, 5.5vw, 60px);
  margin: 0;
  padding: clamp(18px, 3vw, 32px) 0 10px;
  list-style: none;
}
.rg-bubble {
  position: relative;
  display: flex;
  width: 50%;
}
.rg-bubble--left {
  justify-content: flex-end;
  padding-right: 46px;
}
.rg-bubble--right {
  margin-left: 50%;
  padding-left: 46px;
}
.rg-bubble__dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #0d0b1e;
  box-shadow: inset 0 0 0 2px var(--c);
  transition:
    background-color var(--duration-very-slow) var(--ease-smooth-out) 320ms,
    box-shadow var(--duration-very-slow) var(--ease-smooth-out) 320ms;
}
.rg-bubble--left .rg-bubble__dot {
  right: -7px;
}
.rg-bubble--right .rg-bubble__dot {
  left: -7px;
}
.rg-bubble__card {
  position: relative;
  max-width: 400px;
  padding: 18px 24px;
  border-radius: 22px;
  background: var(--rg-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px var(--rg-hairline),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 0 color-mix(in srgb, var(--c) 70%, transparent),
    0 26px 50px -30px var(--c);
}
.rg-bubble__card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
}
.rg-bubble--left .rg-bubble__card::before {
  right: -40px;
  background: linear-gradient(90deg, transparent, var(--c));
}
.rg-bubble--right .rg-bubble__card::before {
  left: -40px;
  background: linear-gradient(270deg, transparent, var(--c));
}
.rg-bubble__card p {
  margin: 0;
  font-family: var(--rg-display);
  font-weight: 600;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.3;
  text-wrap: balance;
}
.rg-wave {
  display: inline-block;
  transform-origin: 70% 80%;
}

@media (max-width: 719px) {
  .rg-thread {
    left: 8px;
  }
  .rg-bubble,
  .rg-bubble--right {
    width: 100%;
    margin-left: 0;
    padding: 0 0 0 40px;
    justify-content: flex-start;
  }
  .rg-bubble--left .rg-bubble__dot,
  .rg-bubble--right .rg-bubble__dot {
    left: 1px;
    right: auto;
  }
  .rg-bubble__card {
    max-width: none;
    width: 100%;
  }
  .rg-bubble--left .rg-bubble__card::before,
  .rg-bubble--right .rg-bubble__card::before {
    left: -30px;
    right: auto;
    width: 26px;
    background: linear-gradient(270deg, transparent, var(--c));
  }
}

/* ── Quem sou eu? ─────────────────────────────────────────── */
.rg-about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 290px) 2px minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3.2vw, 44px);
  margin-top: 44px;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3.6vw, 46px);
  border-radius: var(--rg-radius-lg);
  background:
    linear-gradient(105deg, rgba(254, 195, 13, 0.17) 0%, rgb(var(--rg-d, 34 24 70) / 0.5) 40%, rgba(91, 75, 255, 0.2) 100%),
    rgb(var(--rg-d, 14 12 32) / 0.66);
  box-shadow:
    inset 0 0 0 1px var(--rg-hairline),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 44px 90px -56px rgba(91, 75, 255, 0.85);
}
.rg-about::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--px, 20%) var(--py, 100%), rgba(255, 210, 70, 0.12), transparent 70%);
  pointer-events: none;
}
.rg-about::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 42%;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fec30d, transparent);
}
.rg-about__mark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.rg-about__letter {
  position: absolute;
  right: 2%;
  top: -34px;
  font-family: var(--rg-display);
  font-weight: 700;
  font-size: clamp(11rem, 24vw, 17rem);
  line-height: 1;
  color: rgb(var(--rg-w) / 0.045);
  transform: rotate(8deg);
}
.rg-about__figure {
  position: relative;
  align-self: end;
  margin-top: -74px;
}
.rg-about__avatar {
  display: block;
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
}
.rg-about__stand {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 236px;
  transform: rotate(-6deg);
}
.rg-about__halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(254, 195, 13, 0.4), rgba(217, 154, 10, 0.14) 60%, transparent 100%);
}
.rg-about__blocks {
  position: absolute;
  height: auto;
}
.rg-about__blocks--a {
  right: 4%;
  bottom: 12%;
  width: 62px;
}
.rg-about__blocks--b {
  left: 6%;
  top: 14%;
  width: 46px;
}
.rg-about__rule {
  align-self: stretch;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #ffd21e 28%, #d99a0a 72%, transparent);
  transform-origin: top;
}
.rg-about__text {
  position: relative;
}
.rg-about__text p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--rg-ink-soft);
  font-weight: 500;
  text-wrap: pretty;
}

@media (max-width: 759px) {
  .rg-about {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .rg-about__figure {
    width: min(100%, 260px);
    margin-inline: auto;
  }
  .rg-about__rule {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd21e 28%, #d99a0a 72%, transparent);
    transform-origin: center;
  }
  .rg-about__text p {
    margin-inline: auto;
  }
}

/* ── Cabeçalho de seção ───────────────────────────────────── */
.rg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.rg-head .rg-h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.rg-slashes {
  display: inline-flex;
  gap: 5px;
  transform: skewX(-20deg);
}
.rg-slashes i {
  display: block;
  width: 6px;
  height: 0.82em;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffb565, #ff5a2a);
  transform-origin: bottom;
}
.rg-head__line {
  flex: 1 1 40px;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--rg-w) / 0.18), transparent);
  transform-origin: left;
}
.rg-head__aside {
  margin: 0;
  color: var(--rg-ink-dim);
  font-size: 0.95rem;
  font-weight: 600;
}
@media (max-width: 719px) {
  .rg-head__line {
    display: none;
  }
  .rg-head__aside {
    flex-basis: 100%;
  }
}

/* ── Minhas redes ─────────────────────────────────────────── */
.rg-socials {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rg-social {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 126px;
  padding: 32px 8px 14px;
  border-radius: 18px;
  text-align: center;
  background: var(--rg-glass);
  box-shadow:
    inset 0 0 0 1px var(--rg-hairline),
    inset 0 -2px 0 0 color-mix(in srgb, var(--c) 62%, transparent),
    0 20px 30px -26px var(--c);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-medium) var(--ease-smooth-out);
}
.rg-social::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--rg-angle), transparent 0 58%, var(--c) 78%, #fff 86%, var(--c) 94%, transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-smooth-out);
}
.rg-social::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(150px circle at var(--px, 50%) var(--py, 100%), color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth-out);
}
a.rg-social:hover,
a.rg-social:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgb(var(--rg-w) / 0.14),
    inset 0 -2px 0 0 var(--c),
    0 26px 36px -24px var(--c);
}
a.rg-social:hover::before,
a.rg-social:focus-visible::before,
a.rg-social:hover::after,
a.rg-social:focus-visible::after {
  opacity: 1;
}
a.rg-social:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: var(--duration-micro);
}
.rg-social-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform var(--duration-medium) var(--ease-bounce);
}
.rg-social-icon--rounded {
  border-radius: 26%;
}
.rg-social-icon--mask {
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
a.rg-social:hover .rg-social-icon {
  transform: scale(1.12);
}
.rg-social__name {
  display: grid;
  place-items: center;
  min-height: 2.4em;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
}
.rg-social__arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  color: var(--rg-ink-dim);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    color var(--duration-fast) var(--ease-smooth-out);
}
a.rg-social:hover .rg-social__arrow {
  color: var(--rg-strong, #fff);
  transform: translate(2px, -2px);
}
.rg-social__soon {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rg-ink-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.16);
}

@media (max-width: 979px) {
  .rg-socials {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .rg-socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Projetos em destaque ─────────────────────────────────── */
.rg-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.rg-project {
  perspective: 1100px;
}
.rg-project__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(112px, 13vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  height: 100%;
  min-height: 248px;
  padding: 26px clamp(18px, 2.4vw, 28px);
  border-radius: 26px;
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 520ms var(--ease-bounce),
    box-shadow var(--duration-medium) var(--ease-smooth-out);
}
.rg-project.is-tilting .rg-project__card {
  transition:
    transform 140ms linear,
    box-shadow var(--duration-medium) var(--ease-smooth-out);
}
.rg-project--violet .rg-project__card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(122, 92, 255, 0.6), transparent 56%),
    radial-gradient(90% 120% at 100% 100%, rgba(77, 141, 255, 0.38), transparent 60%),
    linear-gradient(135deg, #1c1654, #120f34);
  box-shadow:
    inset 0 0 0 1px rgba(166, 146, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 34px 64px -40px rgba(91, 75, 255, 1);
}
.rg-project--ember .rg-project__card {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 106, 43, 0.52), transparent 56%),
    radial-gradient(90% 120% at 100% 100%, rgba(255, 51, 85, 0.32), transparent 60%),
    linear-gradient(135deg, #3b1814, #1c0f1d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 164, 96, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 34px 64px -40px rgba(255, 90, 43, 1);
}
.rg-project__card::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -78%;
  height: 112%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--rg-w) / 0.12), transparent 72%);
}
.rg-project__art {
  display: grid;
  place-items: center;
  --s: clamp(96px, 11vw, 128px);
}
.rg-project__body {
  min-width: 0;
}
.rg-project h3 {
  margin: 0;
  font-family: var(--rg-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.2;
}
.rg-project__body > p:not(.rg-chip) {
  max-width: 42ch;
  margin: 8px 0 18px;
  color: rgba(244, 240, 255, 0.86);
  font-size: 0.97rem;
  font-weight: 500;
}
/* o botão é o link do cartão inteiro */
.rg-project__link {
  position: static;
}
.rg-project__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.rg-project__glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--px, 50%) var(--py, 0%), rgb(var(--rg-w) / 0.17), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-smooth-out);
}
.rg-project:hover .rg-project__glare {
  opacity: 1;
}

@media (max-width: 859px) {
  .rg-projects {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 479px) {
  .rg-project__card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    min-height: 0;
  }
  .rg-project__art {
    --s: 88px;
  }
}

/* ── O que você encontra aqui ─────────────────────────────── */
.rg-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rg-highlight {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  border-radius: var(--rg-radius);
  background: var(--rg-glass);
  box-shadow: inset 0 0 0 1px var(--rg-hairline), 0 22px 40px -34px var(--c);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-medium) var(--ease-smooth-out);
}
.rg-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--px, 0%) var(--py, 50%), color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth-out);
}
a.rg-highlight:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 26px 44px -30px var(--c);
}
a.rg-highlight:hover::after {
  opacity: 1;
}
a.rg-highlight:active {
  transform: scale(0.985);
  transition-duration: var(--duration-micro);
}
.rg-highlight__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 46%, transparent);
}
.rg-highlight__icon svg {
  width: 28px;
  height: 28px;
  transition: transform var(--duration-medium) var(--ease-bounce);
}
a.rg-highlight:hover .rg-highlight__icon svg {
  transform: scale(1.12);
}
.rg-highlight__text {
  display: block;
}
.rg-highlight__title {
  display: block;
  font-family: var(--rg-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
}
.rg-highlight__desc {
  display: block;
  margin-top: 2px;
  color: var(--rg-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}
@media (max-width: 859px) {
  .rg-highlights {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rg-join {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 36px;
  margin-top: clamp(26px, 4vw, 44px);
  padding: clamp(24px, 3.6vw, 40px);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
  background:
    radial-gradient(80% 170% at 0% 0%, rgba(91, 75, 255, 0.4), transparent 60%),
    radial-gradient(70% 170% at 100% 100%, rgba(255, 106, 43, 0.28), transparent 60%),
    rgb(var(--rg-d, 14 12 32) / 0.72);
  box-shadow: inset 0 0 0 1px var(--rg-hairline), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.rg-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgb(var(--rg-w) / 0.07), transparent 70%);
  pointer-events: none;
}
.rg-join__text {
  position: relative;
  flex: 1 1 320px;
}
.rg-join__text p {
  max-width: 52ch;
  margin: 8px 0 0;
  color: var(--rg-ink-soft);
  font-weight: 500;
}
.rg-join__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Rodapé ───────────────────────────────────────────────── */
.rg-footer {
  padding: 36px 0 34px;
  color: var(--rg-ink-dim);
  font-size: 0.9rem;
}
.rg-footer__rule {
  display: flex;
  align-items: center;
  gap: 22px;
}
.rg-footer__rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 108, 255, 0.7));
}
.rg-footer__rule span:last-child {
  background: linear-gradient(270deg, transparent, rgba(255, 138, 42, 0.6));
}
.rg-footer__rule p {
  margin: 0;
  color: var(--rg-ink-soft);
  font-weight: 700;
}
.rg-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  margin-top: 12px;
}
.rg-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
}
.rg-footer__links a,
.rg-footer__motion {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--rg-ink-dim);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 12px calc(50% + 12px);
  background-size: 0 1px;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-size var(--duration-medium) var(--ease-smooth-out);
}
.rg-footer__links a:hover,
.rg-footer__motion:hover {
  color: var(--rg-strong, #fff);
  background-size: calc(100% - 24px) 1px;
}
.rg-footer__legal {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ── Página do launcher ───────────────────────────────────── */
.rg-launch {
  position: relative;
  padding: clamp(128px, 16vw, 176px) 0 clamp(24px, 4vw, 48px);
}
.rg-launch__grid {
  display: grid;
  grid-template-columns: minmax(200px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.rg-launch__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  --s: clamp(132px, 17vw, 196px);
}
.rg-launch__stairs {
  position: absolute;
  right: -6%;
  bottom: -4%;
  width: 78%;
  height: auto;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.rg-launch__art .rg-float {
  position: relative;
}
.rg-launch__title {
  margin: 0;
  font-family: var(--rg-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rg-launch__lead {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--rg-ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  font-weight: 500;
}
.rg-launch__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.rg-launch__note {
  flex-basis: 100%;
  margin: 0 0 4px;
  padding: 12px 16px;
  border-radius: var(--rg-radius-sm);
  color: #ffe1c2;
  font-weight: 700;
  background: rgba(255, 138, 42, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 150, 70, 0.4);
}
.rg-launch__legal {
  margin: 22px 0 0;
  color: var(--rg-ink-dim);
  font-size: 0.84rem;
}
.rg-launch__back {
  margin: 18px 0 0;
}
@media (max-width: 759px) {
  .rg-launch__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rg-launch__art {
    min-height: 210px;
  }
  .rg-launch__stairs {
    width: 52%;
    right: 8%;
  }
}

/* ── Decoração do hero em telas menores ───────────────────── */
@media (max-width: 1179px) {
  .rg-hero__island {
    left: -90px;
    opacity: 0.6;
  }
  .rg-hero__stairs {
    right: -110px;
    opacity: 0.6;
  }
  .rg-hero__roblox {
    left: 2vw;
    top: 96px;
    opacity: 0.8;
  }
  .rg-hero__visor {
    right: 3vw;
    top: 100px;
    opacity: 0.8;
  }
}
@media (max-width: 819px) {
  .rg-hero__roblox,
  .rg-hero__visor,
  .rg-hero__chip--a,
  .rg-orb--c {
    display: none;
  }
  .rg-hero__island {
    left: -70px;
    top: auto;
    bottom: -10px;
    width: 180px;
    opacity: 0.45;
  }
  .rg-hero__stairs {
    right: -84px;
    top: auto;
    bottom: -6px;
    width: 190px;
    opacity: 0.45;
  }
  .rg-orb--a {
    left: -92px;
    top: 70px;
  }
  .rg-orb--b {
    right: -46px;
  }
}
@media (max-width: 519px) {
  .rg-hero {
    padding-top: 92px;
  }
  .rg-hero__island,
  .rg-hero__stairs {
    display: none;
  }
  .rg-cta {
    width: 100%;
  }
  .rg-quick a {
    font-size: 0.86rem;
    gap: 6px;
  }
}

/* ════════════════════════════════════════════════════════════
   Movimento. Só existe quando html[data-rg-motion="on"]: sem
   JavaScript, com movimento reduzido ou com as animações
   pausadas, o conteúdo aparece inteiro e parado.
   ════════════════════════════════════════════════════════════ */

/* entrada do hero */
html[data-rg-motion="on"] .rg-nav {
  animation: rg-nav-in 700ms var(--ease-smooth-out) both;
}
html[data-rg-motion="on"] .rg-hero__logo {
  animation: rg-logo-in 800ms var(--ease-bounce) 120ms both;
}
html[data-rg-motion="on"] .rg-orbit {
  animation: rg-orbit-in 900ms var(--ease-smooth-out) 420ms both;
}
html[data-rg-motion="on"] .rg-orbit--front {
  animation-name: rg-orbit-in-front;
}
html[data-rg-motion="on"] .rg-orbiter {
  animation:
    rg-fade-in 600ms var(--ease-smooth-out) 1000ms both,
    rg-orbit-depth 9s step-end 1000ms infinite;
}
html[data-rg-motion="on"] .rg-orbiter__arm {
  animation: rg-turn 9s linear 1000ms infinite;
}
html[data-rg-motion="on"] .rg-orbiter__keep {
  animation: rg-turn-back 9s linear 1000ms infinite;
}
html[data-rg-motion="on"] .rg-hero__letter {
  animation: rg-letter-in 720ms var(--ease-smooth-out) both;
  animation-delay: calc(380ms + var(--i) * 42ms);
}
html[data-rg-motion="on"] .rg-enter {
  animation: rg-rise var(--duration-very-slow) var(--ease-smooth-out) both;
  animation-delay: var(--at, 0ms);
}
html[data-rg-motion="on"] .rg-hero__decor > * {
  animation: rg-decor-in 1300ms var(--ease-smooth-out) 260ms both;
}
html[data-rg-motion="on"] .rg-hero__decor > :nth-child(2n) {
  animation-delay: 420ms;
}
html[data-rg-motion="on"] .rg-hero__decor > :nth-child(3n) {
  animation-delay: 560ms;
}

/* ambiente */
html[data-rg-motion="on"] .rg-bg__glow--violet {
  animation: rg-drift-a 24s ease-in-out infinite alternate;
}
html[data-rg-motion="on"] .rg-bg__glow--ember {
  animation: rg-drift-b 29s ease-in-out infinite alternate;
}
html[data-rg-motion="on"] .rg-bg__glow--blue {
  animation: rg-drift-c 34s ease-in-out infinite alternate;
}
html[data-rg-motion="on"] .rg-bg__stars {
  animation: rg-twinkle 6s ease-in-out infinite alternate;
}
html[data-rg-motion="on"] .rg-bg__stars--far {
  animation: rg-twinkle 9s ease-in-out -3s infinite alternate;
}
html[data-rg-motion="on"] .rg-float--a {
  animation: rg-float-a 7s ease-in-out infinite alternate;
}
html[data-rg-motion="on"] .rg-float--b {
  animation: rg-float-b 8.5s ease-in-out -2s infinite alternate;
}
html[data-rg-motion="on"] .rg-float--c {
  animation: rg-float-a 6s ease-in-out -1s infinite alternate;
}

/* revelação no scroll */
html[data-rg-motion="on"] .rg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-smooth-out),
    transform 850ms var(--ease-smooth-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
html[data-rg-motion="on"] .rg-reveal[data-reveal="left"] {
  transform: translateX(-64px) scale(0.93);
}
html[data-rg-motion="on"] .rg-reveal[data-reveal="right"] {
  transform: translateX(64px) scale(0.93);
}
html[data-rg-motion="on"] .rg-reveal[data-reveal="scale"] {
  transform: translateY(20px) scale(0.95);
}
html[data-rg-motion="on"] .rg-reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@media (max-width: 719px) {
  html[data-rg-motion="on"] .rg-reveal[data-reveal="left"]:not(.is-in),
  html[data-rg-motion="on"] .rg-reveal[data-reveal="right"]:not(.is-in) {
    transform: translate(24px, 18px) scale(0.95);
  }
  html[data-rg-motion="on"] .rg-bubble.rg-reveal:nth-child(odd):not(.is-in) {
    transform: translate(-18px, 18px) scale(0.95);
  }
}

/* quem navega por teclado chega antes do scroll: o item aparece na hora */
html[data-rg-motion="on"] .rg-reveal.rg-reveal:focus-within {
  opacity: 1;
  transform: none;
  transition-duration: 0s;
  transition-delay: 0s;
}

/* balões: flutuação depois de entrarem, ponto aceso, aceno */
html[data-rg-motion="on"] .rg-bubble.is-in .rg-bubble__card {
  animation: rg-bob 5.5s ease-in-out infinite alternate;
  animation-delay: calc(900ms + var(--n) * 650ms);
}
.rg-bubble.is-in .rg-bubble__dot,
html:not([data-rg-motion="on"]) .rg-bubble__dot {
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--c), 0 0 18px 2px var(--c);
}
html[data-rg-motion="on"] .rg-bubble.is-in .rg-wave {
  animation: rg-wave 1400ms ease-in-out 500ms 2;
}

/* linhas que se desenham */
html[data-rg-motion="on"] .rg-slashes i {
  transform: scaleY(0);
  transition: transform 520ms var(--ease-bounce) 220ms;
}
html[data-rg-motion="on"] .rg-slashes i + i {
  transition-delay: 310ms;
}
html[data-rg-motion="on"] .rg-head__line {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-smooth-out) 320ms;
}
html[data-rg-motion="on"] .rg-about__rule {
  transform: scale(0);
  transition: transform 900ms var(--ease-smooth-out) 380ms;
}
html[data-rg-motion="on"] .is-in .rg-slashes i,
html[data-rg-motion="on"] .is-in .rg-head__line,
html[data-rg-motion="on"] .is-in .rg-about__rule {
  transform: none;
}

/* interações */
html[data-rg-motion="on"] .rg-cta:hover::after {
  animation: rg-sheen 900ms var(--ease-smooth-out);
}
html[data-rg-motion="on"] a.rg-social:hover::before,
html[data-rg-motion="on"] a.rg-social:focus-visible::before {
  animation: rg-spin-angle 2.6s linear infinite;
}
html[data-rg-motion="on"] .rg-hero__logo.is-spinning .rg-logo {
  animation: rg-egg 900ms var(--ease-bounce);
}
html[data-rg-motion="on"] .rg-home.is-party .rg-orbiter__arm,
html[data-rg-motion="on"] .rg-home.is-party .rg-orbiter__keep {
  animation-duration: 1.2s;
}
html[data-rg-motion="on"] .rg-home.is-party .rg-orbiter {
  animation-duration: 600ms, 1.2s;
}
html[data-rg-motion="on"] .rg-home.is-party .rg-hero__letter {
  animation: rg-letter-hop 700ms var(--ease-bounce) 2 both;
  animation-delay: calc(var(--i) * 60ms);
}

/* pausado: nada de deslocamento ligado ao scroll ou ao ponteiro */
html:not([data-rg-motion="on"]) .rg-mv {
  transform: none !important;
}
html:not([data-rg-motion="on"]) .rg-thread__fill {
  transform: none !important;
}
html:not([data-rg-motion="on"]) .rg-project__card {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.rg-home) {
    scroll-behavior: auto;
  }
  .rg-home .t-learn-chevron,
  .rg-home .t-learn-arm {
    transition: none !important;
  }
}

@keyframes rg-nav-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rg-logo-in {
  from {
    opacity: 0;
    transform: scale(0.55) rotate(-14deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes rg-orbit-in {
  from {
    opacity: 0;
    transform: rotate(-52deg) scale(0.5);
  }
  to {
    opacity: 0.55;
    transform: rotate(-15deg) scale(1);
  }
}
@keyframes rg-orbit-in-front {
  from {
    opacity: 0;
    transform: rotate(-52deg) scale(0.5);
  }
  to {
    opacity: 0.95;
    transform: rotate(-15deg) scale(1);
  }
}
@keyframes rg-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rg-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rg-turn-back {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes rg-orbit-depth {
  0% {
    z-index: 3;
  }
  50% {
    z-index: 1;
  }
  100% {
    z-index: 1;
  }
}
@keyframes rg-letter-in {
  from {
    opacity: 0;
    transform: translateY(0.34em) scale(0.86) rotate(5deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes rg-letter-hop {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateY(-0.16em) rotate(-4deg);
  }
}
@keyframes rg-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes rg-decor-in {
  from {
    opacity: 0;
    scale: 0.82;
  }
  to {
    scale: 1;
  }
}
@keyframes rg-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(7vw, 5vh, 0) scale(1.12);
  }
}
@keyframes rg-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(-8vw, 7vh, 0) scale(0.94);
  }
}
@keyframes rg-drift-c {
  from {
    transform: translate3d(-5vw, 0, 0) scale(1);
  }
  to {
    transform: translate3d(8vw, -6vh, 0) scale(1.14);
  }
}
@keyframes rg-twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.9;
  }
}
@keyframes rg-float-a {
  from {
    transform: translateY(-7px) rotate(-2deg);
  }
  to {
    transform: translateY(7px) rotate(2deg);
  }
}
@keyframes rg-float-b {
  from {
    transform: translateY(8px) rotate(2.5deg);
  }
  to {
    transform: translateY(-8px) rotate(-1.5deg);
  }
}
@keyframes rg-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}
@keyframes rg-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20%,
  60% {
    transform: rotate(18deg);
  }
  40%,
  80% {
    transform: rotate(-10deg);
  }
}
@keyframes rg-sheen {
  0% {
    opacity: 0;
    transform: skewX(-20deg) translateX(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: skewX(-20deg) translateX(640%);
  }
}
@keyframes rg-spin-angle {
  to {
    --rg-angle: 360deg;
  }
}
@keyframes rg-egg {
  0% {
    transform: none;
  }
  45% {
    transform: rotateY(200deg) scale(1.14);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}

/* ════════════════════════════════════════════════════════════
   Fórum (/forums) com o visual do portal.
   O dock do fórum continua aparecendo aqui; só ganha o vidro do portal.
   ════════════════════════════════════════════════════════════ */
html:not(.light) body:has(.rg-forum) nav[aria-label="Main navigation"] > div:first-child,
html:not(.light) body:has(.rg-forum) nav[aria-label="Main navigation"] > div > button:first-child {
  background: linear-gradient(180deg, rgb(var(--rg-d, 40 32 92) / 0.72), rgb(var(--rg-d, 16 13 38) / 0.78)) !important;
  border-color: rgb(var(--rg-w) / 0.13) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 44px -26px rgba(91, 75, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.rg-forum__wrap {
  position: relative;
  width: min(100% - 2 * var(--rg-gutter), 920px);
  margin-inline: auto;
  padding: 118px 0 72px;
}

.rg-forum__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
}
.rg-forum__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rg-orange), var(--rg-red) 22%, var(--rg-violet) 55%, transparent);
  opacity: 0.85;
  transform-origin: left center;
}
/* faísca que corre pela linha */
.rg-forum__rule i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14%;
  width: 12%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
}
.rg-forum__side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.rg-forum__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin: 0 0 6px -6px;
  padding: 0 10px 0 4px;
  border-radius: 10px;
  color: var(--rg-ink-dim);
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out);
}
.rg-forum__back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.rg-forum__back:hover {
  color: var(--rg-ink);
  background: rgb(var(--rg-w) / 0.07);
}
.rg-forum__back:hover svg {
  transform: translateX(-2px);
}
.rg-forum__title {
  margin: 0;
  padding-bottom: 0.08em;
  font-family: var(--rg-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--rg-strong, #fff);
  filter: drop-shadow(0 10px 34px rgba(123, 97, 255, 0.55));
}
.rg-forum__letter {
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #ffffff 30%, #cfc6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rg-forum__sub {
  margin: 6px 0 0;
  color: var(--rg-ink-soft);
  font-weight: 600;
  font-size: 1.02rem;
}
.rg-forum__new {
  flex: none;
}
.rg-forum__new svg,
.rg-topic__form .rg-btn svg {
  width: 17px;
  height: 17px;
}
.rg-forum__new svg {
  transition: rotate var(--duration-medium) var(--ease-bounce);
}
.rg-forum__new:hover svg {
  rotate: 90deg;
}

/* categorias */
.rg-forum__cats {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rg-forum__cats::-webkit-scrollbar {
  display: none;
}
.rg-forum__pill {
  position: absolute;
  left: 0;
  top: 2px;
  width: 0;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 138, 42, 0.26), rgba(255, 68, 85, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 150, 70, 0.7),
    0 10px 24px -14px rgba(255, 106, 43, 0.9);
  opacity: 0;
  pointer-events: none;
}
.rg-forum__cats[data-pill="on"] .rg-forum__pill {
  opacity: 1;
  transition:
    translate 420ms var(--ease-bounce),
    width var(--duration-medium) var(--ease-smooth-out),
    opacity var(--duration-fast) var(--ease-smooth-out);
}
.rg-forum__cats[data-pill="on"] .rg-forum__cat[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
}
.rg-forum__cat {
  position: relative;
  flex: none;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--rg-ink-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--rg-glass);
  box-shadow: inset 0 0 0 1px var(--rg-hairline);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-smooth-out),
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    scale var(--duration-quick) var(--ease-smooth-out);
}
.rg-forum__cat:hover {
  color: var(--rg-strong, #fff);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.24);
}
.rg-forum__cat:active {
  scale: 0.97;
}
.rg-forum__cat[aria-pressed="true"] {
  color: #ffe2c2;
  background: linear-gradient(180deg, rgba(255, 138, 42, 0.26), rgba(255, 68, 85, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 150, 70, 0.7),
    0 10px 24px -14px rgba(255, 106, 43, 0.9);
}

/* tópicos */
.rg-forum__list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.rg-forum__empty {
  margin: 0;
  padding: 28px;
  border-radius: var(--rg-radius);
  text-align: center;
  color: var(--rg-ink-dim);
  font-weight: 600;
  background: var(--rg-glass);
  box-shadow: inset 0 0 0 1px var(--rg-hairline);
}
.rg-topic {
  --c: var(--rg-violet);
  position: relative;
  padding: 22px 24px 18px 28px;
  border-radius: var(--rg-radius);
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--c) 13%, transparent) 0%, rgb(var(--rg-d, 34 24 70) / 0.42) 38%, rgba(91, 75, 255, 0.12) 100%),
    rgb(var(--rg-d, 14 12 32) / 0.66);
  box-shadow:
    inset 0 0 0 1px var(--rg-hairline),
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 30px 60px -48px rgba(91, 75, 255, 0.9);
  transition:
    translate var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.rg-topic::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--px, 0%) var(--py, 0%),
    color-mix(in srgb, var(--c) 16%, transparent),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-smooth-out);
}
.rg-topic > .rg-topic__bar {
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 20%, transparent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent);
  transform-origin: center top;
}
.rg-topic > * {
  position: relative;
}
.rg-topic:hover,
.rg-topic[data-open="true"] {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c) 46%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 30px 60px -40px color-mix(in srgb, var(--c) 80%, transparent);
}
.rg-topic:hover {
  translate: 0 -2px;
}
.rg-topic:hover::before {
  opacity: 1;
}
.rg-topic__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.rg-topic__title {
  margin: 0;
  font-family: var(--rg-display);
  font-weight: 600;
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  line-height: 1.25;
  color: var(--rg-ink);
  text-wrap: balance;
}
.rg-topic__tags {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}
.rg-topic__cat {
  padding: 4px 11px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--c) 62%, #fff);
  font-weight: 800;
  font-size: 0.76rem;
  white-space: nowrap;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent);
}
.rg-topic__pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rg-amber);
  font-weight: 700;
  font-size: 0.78rem;
}
.rg-topic__pin svg {
  width: 13px;
  height: 13px;
}
.rg-topic__desc {
  max-width: 70ch;
  margin: 8px 0 0;
  color: var(--rg-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-wrap: pretty;
}
.rg-topic__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgb(var(--rg-w) / 0.08);
}
.rg-topic__by {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: var(--rg-ink-dim);
  font-weight: 600;
  font-size: 0.84rem;
}
.rg-topic__toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px 0 13px;
  border: 0;
  border-radius: 12px;
  color: var(--rg-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  background: rgb(var(--rg-w) / 0.07);
  box-shadow: inset 0 0 0 1px var(--rg-hairline);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out),
    scale var(--duration-quick) var(--ease-smooth-out);
}
.rg-topic__toggle svg {
  width: 15px;
  height: 15px;
}
.rg-topic__toggle:hover,
.rg-topic__toggle[aria-expanded="true"] {
  background: color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent);
}
.rg-topic__toggle:active {
  scale: 0.97;
}
.rg-topic__chev {
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.rg-topic__toggle[aria-expanded="true"] .rg-topic__chev {
  transform: rotate(180deg);
}

/* respostas: abre e fecha pela altura (grid-rows) */
.rg-topic__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--duration-medium) var(--ease-smooth-out),
    opacity var(--duration-fast) var(--ease-smooth-out);
}
.rg-topic[data-open="true"] .rg-topic__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.rg-topic__panel-inner {
  min-height: 0;
  overflow: hidden;
}
.rg-topic__panel-body {
  margin-top: 16px;
  padding: 16px 4px 6px;
  border-top: 1px solid rgb(var(--rg-w) / 0.08);
}
.rg-topic__label {
  margin: 0 0 10px;
  color: var(--rg-ink-dim);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rg-topic__note {
  margin: 0;
  padding: 6px 0;
  color: var(--rg-ink-dim);
  font-weight: 600;
  font-size: 0.86rem;
}
.rg-replies {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rg-reply {
  padding: 12px 14px;
  border-radius: var(--rg-radius-sm);
  background: rgb(var(--rg-d, 8 7 22) / 0.55);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.08);
}
.rg-reply__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rg-reply__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rg-ink);
  font-weight: 800;
  font-size: 0.86rem;
}
.rg-reply__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  color: var(--rg-ink-dim);
  background: rgb(var(--rg-w) / 0.1);
}
.rg-reply__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rg-reply__avatar svg {
  width: 13px;
  height: 13px;
}
.rg-reply__date {
  color: var(--rg-ink-dim);
  font-size: 0.78rem;
  font-weight: 600;
}
.rg-reply__text {
  margin: 6px 0 0;
  padding-left: 32px;
  color: var(--rg-ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: pre-wrap;
}
.rg-topic__form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.rg-topic__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--rg-radius-sm);
  color: var(--rg-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgb(var(--rg-d, 8 7 22) / 0.6);
  box-shadow: inset 0 0 0 1px rgb(var(--rg-w) / 0.12);
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.rg-topic__input::placeholder {
  color: var(--rg-ink-dim);
  opacity: 0.85;
}
.rg-topic__input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--rg-violet),
    0 0 0 4px rgba(139, 108, 255, 0.22);
}
.rg-topic__form .rg-btn {
  flex: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.rg-topic__form .rg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 639px) {
  .rg-forum__wrap {
    padding-top: 96px;
  }
  .rg-forum__head {
    flex-direction: column;
    align-items: stretch;
  }
  .rg-forum__side {
    align-items: stretch;
  }
  .rg-fscene {
    position: absolute;
    top: -18px;
    right: -8px;
    scale: 0.74;
    transform-origin: right top;
  }
  .rg-topic {
    padding: 18px 16px 14px 24px;
  }
  .rg-topic__top {
    flex-direction: column;
    gap: 8px;
  }
  .rg-topic__meta {
    flex-direction: column;
    align-items: stretch;
  }
  .rg-topic__toggle {
    justify-content: center;
  }
  .rg-topic__form {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg-topic,
  .rg-topic__panel,
  .rg-topic__chev,
  .rg-forum__cat,
  .rg-forum__pill,
  .rg-forum__new svg,
  .rg-topic__toggle {
    transition: none !important;
  }
}


/* ── Fórum: cena animada do cabeçalho (conversa em laço) ── */
.rg-fscene {
  position: relative;
  flex: none;
  width: 250px;
  height: 128px;
  pointer-events: none;
}
.rg-fscene__stage {
  position: absolute;
  inset: 0;
}
.rg-fscene__bubble {
  position: absolute;
  display: flex;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 16px 30px -14px var(--glow);
}
.rg-fscene__bubble--a {
  --glow: rgba(255, 106, 43, 0.95);
  left: 6px;
  top: 48px;
  width: 84px;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(150deg, #ffa24a, #ff6a2b 60%, #f0452f);
  rotate: -5deg;
  transform-origin: left bottom;
}
.rg-fscene__bubble--a i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.rg-fscene__bubble--b {
  --glow: rgba(91, 75, 255, 0.95);
  left: 98px;
  top: 12px;
  width: 120px;
  height: 62px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(150deg, #a08bff, #6f55ff 55%, #4a36d6);
  rotate: 3deg;
  transform-origin: right bottom;
}
.rg-fscene__bubble b {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: left center;
}
.rg-fscene__bubble--b b + b {
  width: 58%;
  background: rgba(255, 255, 255, 0.6);
}
.rg-fscene__bubble--c {
  --glow: rgba(10, 8, 30, 0.9);
  left: 122px;
  top: 86px;
  width: 86px;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 14px 14px 14px 5px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 16px 30px -14px var(--glow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  rotate: -2deg;
  transform-origin: left bottom;
}
.rg-fscene__bubble--c em {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffd92e, #f5a810);
}
.rg-fscene__bubble--c b {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
}
.rg-fscene__xp {
  position: absolute;
  left: 22px;
  top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #2a1a00;
  font-weight: 800;
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffe066, #fec30d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 20px -10px rgba(254, 195, 13, 0.95);
  rotate: -7deg;
}
.rg-fscene__coin {
  position: absolute;
  right: 0;
  top: 80px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #4a2f00;
  font-weight: 800;
  font-size: 0.68rem;
  background: radial-gradient(circle at 35% 30%, #fff2a8, #fec30d 55%, #d99a0a);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 10px 22px -8px rgba(254, 195, 13, 0.9);
}
.rg-fscene__spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--rg-strong, #fff);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.85;
}
.rg-fscene__spark--1 {
  left: 96px;
  top: 0;
}
.rg-fscene__spark--2 {
  right: 6px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--rg-amber);
}
.rg-fscene__spark--3 {
  left: 100px;
  top: 104px;
  width: 8px;
  height: 8px;
  background: #b9a8ff;
}

/* ── Fórum: enfeites nas laterais ── */
.rg-forum__decor {
  display: none;
}
@media (min-width: 1280px) {
  .rg-forum__decor {
    display: block;
  }
}
.rg-forum__deco,
.rg-forum__ghost {
  position: absolute;
  pointer-events: none;
}
.rg-forum__deco svg {
  display: block;
  filter: drop-shadow(0 18px 26px rgba(8, 6, 26, 0.6));
}
.rg-forum__deco--l {
  left: -150px;
  top: 300px;
}
.rg-forum__deco--r {
  right: -160px;
  top: 470px;
}
.rg-forum__ghost {
  width: 62px;
  height: 42px;
  border: 2px solid rgb(var(--rg-w) / 0.14);
  border-radius: 16px 16px 16px 5px;
}
.rg-forum__ghost--l {
  left: -118px;
  top: 560px;
  rotate: -10deg;
  border-color: rgba(255, 138, 42, 0.32);
}
.rg-forum__ghost--r {
  right: -104px;
  top: 232px;
  width: 50px;
  height: 34px;
  rotate: 9deg;
  border-radius: 14px 14px 5px 14px;
  border-color: rgba(139, 108, 255, 0.42);
}

/* ── Fórum: pontinhos de "carregando" ── */
.rg-typing {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rg-typing__dots {
  display: inline-flex;
  gap: 4px;
}
.rg-typing__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--rg-violet));
}

/* ── Fórum: movimento (só com as animações ligadas) ── */
html[data-rg-motion="on"] .rg-forum__letter {
  animation: rg-letter-in 760ms var(--ease-smooth-out) both;
  animation-delay: calc(140ms + var(--i) * 70ms);
}
html[data-rg-motion="on"] .rg-forum__rule {
  animation: rg-f-draw 1000ms var(--ease-smooth-out) 380ms both;
}
html[data-rg-motion="on"] .rg-forum__rule i {
  animation: rg-f-comet 6.5s ease-in-out 1.8s infinite;
}
html[data-rg-motion="on"] .rg-forum__deco {
  animation: rg-fade-in 900ms var(--ease-smooth-out) 700ms both;
}

/* cena: laço de 8 s */
html[data-rg-motion="on"] .rg-fscene__stage {
  animation: rg-float-a 7s ease-in-out infinite alternate;
}
html[data-rg-motion="on"] .rg-fscene__bubble--a {
  animation: rg-f-pop-a 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__bubble--b {
  animation: rg-f-pop-b 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__bubble--c {
  animation: rg-f-pop-c 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__bubble--a i {
  animation: rg-f-dot 1.1s ease-in-out infinite;
}
html[data-rg-motion="on"] .rg-fscene__bubble--a i:nth-child(2) {
  animation-delay: 140ms;
}
html[data-rg-motion="on"] .rg-fscene__bubble--a i:nth-child(3) {
  animation-delay: 280ms;
}
html[data-rg-motion="on"] .rg-fscene__bubble--b b {
  animation: rg-f-line-b 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__bubble--b b + b {
  animation-delay: 680ms;
}
html[data-rg-motion="on"] .rg-fscene__bubble--c b {
  animation: rg-f-line-c 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__xp {
  animation: rg-f-xp 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__coin {
  animation: rg-f-coin 8s var(--ease-smooth-out) 500ms infinite both;
}
html[data-rg-motion="on"] .rg-fscene__spark {
  animation: rg-f-spark 2.6s ease-in-out infinite;
}
html[data-rg-motion="on"] .rg-fscene__spark--2 {
  animation-delay: -0.9s;
}
html[data-rg-motion="on"] .rg-fscene__spark--3 {
  animation-delay: -1.7s;
}

/* cartões */
html[data-rg-motion="on"] .rg-topic__bar {
  animation: rg-f-draw-y 700ms var(--ease-smooth-out) both;
  animation-delay: calc(var(--at, 0ms) + 280ms);
}
html[data-rg-motion="on"] .rg-topic__cat {
  animation: rg-f-pop 520ms var(--ease-bounce) both;
  animation-delay: calc(var(--at, 0ms) + 340ms);
}
html[data-rg-motion="on"] .rg-topic__pin svg {
  transform-origin: 50% 10%;
  animation: rg-f-pin 6s ease-in-out 2s infinite;
}
html[data-rg-motion="on"] .rg-topic__toggle:hover .rg-topic__msg {
  animation: rg-f-bump 480ms var(--ease-bounce);
}
html[data-rg-motion="on"] .rg-topic[data-open="true"] .rg-reply {
  animation: rg-rise var(--duration-very-slow) var(--ease-smooth-out) both;
  animation-delay: calc(140ms + var(--i, 0) * 60ms);
}
html[data-rg-motion="on"] .rg-topic[data-open="true"] .rg-topic__label {
  animation: rg-rise var(--duration-slow) var(--ease-smooth-out) 60ms both;
}
html[data-rg-motion="on"] .rg-typing__dots i {
  animation: rg-f-dot 1.1s ease-in-out infinite;
}
html[data-rg-motion="on"] .rg-typing__dots i:nth-child(2) {
  animation-delay: 140ms;
}
html[data-rg-motion="on"] .rg-typing__dots i:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes rg-f-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}
@keyframes rg-f-draw-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: none;
  }
}
@keyframes rg-f-comet {
  0% {
    left: -14%;
    opacity: 0;
  }
  6% {
    opacity: 0.95;
  }
  30% {
    opacity: 0.9;
  }
  38%,
  100% {
    left: 102%;
    opacity: 0;
  }
}
@keyframes rg-f-pop {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes rg-f-bump {
  0%,
  100% {
    scale: 1;
    rotate: 0deg;
  }
  45% {
    scale: 1.28;
    rotate: -10deg;
  }
}
@keyframes rg-f-pin {
  0%,
  82%,
  100% {
    rotate: 0deg;
  }
  86% {
    rotate: 20deg;
  }
  90% {
    rotate: -14deg;
  }
  94% {
    rotate: 8deg;
  }
}
@keyframes rg-f-dot {
  0%,
  60%,
  100% {
    translate: 0 0;
    opacity: 0.55;
  }
  30% {
    translate: 0 -5px;
    opacity: 1;
  }
}
/* balão laranja: alguém digitando */
@keyframes rg-f-pop-a {
  0% {
    scale: 0;
    opacity: 0;
  }
  5% {
    scale: 1.14;
    opacity: 1;
  }
  8%,
  90% {
    scale: 1;
    opacity: 1;
  }
  96%,
  100% {
    scale: 0.5;
    opacity: 0;
  }
}
/* balão roxo: a resposta */
@keyframes rg-f-pop-b {
  0%,
  17% {
    scale: 0;
    opacity: 0;
  }
  22% {
    scale: 1.12;
    opacity: 1;
  }
  25%,
  91% {
    scale: 1;
    opacity: 1;
  }
  97%,
  100% {
    scale: 0.5;
    opacity: 0;
  }
}
@keyframes rg-f-line-b {
  0%,
  24% {
    transform: scaleX(0);
  }
  33%,
  100% {
    transform: none;
  }
}
/* balão de vidro: mais um entrando na conversa */
@keyframes rg-f-pop-c {
  0%,
  39% {
    scale: 0;
    opacity: 0;
  }
  44% {
    scale: 1.12;
    opacity: 1;
  }
  47%,
  92% {
    scale: 1;
    opacity: 1;
  }
  98%,
  100% {
    scale: 0.5;
    opacity: 0;
  }
}
@keyframes rg-f-line-c {
  0%,
  46% {
    transform: scaleX(0);
  }
  54%,
  100% {
    transform: none;
  }
}
/* recompensa da resposta */
@keyframes rg-f-xp {
  0%,
  54% {
    opacity: 0;
    scale: 0.5;
    translate: 0 16px;
  }
  59% {
    opacity: 1;
    scale: 1.14;
    translate: 0 0;
  }
  62% {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
  82% {
    opacity: 1;
    scale: 1;
    translate: 0 -6px;
  }
  92%,
  100% {
    opacity: 0;
    scale: 0.9;
    translate: 0 -16px;
  }
}
@keyframes rg-f-coin {
  0%,
  60% {
    scale: 0;
    rotate: -200deg;
  }
  66% {
    scale: 1.18;
    rotate: 12deg;
  }
  70%,
  88% {
    scale: 1;
    rotate: 0deg;
  }
  95%,
  100% {
    scale: 0;
    rotate: 90deg;
  }
}
@keyframes rg-f-spark {
  0%,
  100% {
    scale: 0.35;
    opacity: 0.2;
    rotate: 0deg;
  }
  50% {
    scale: 1;
    opacity: 0.95;
    rotate: 45deg;
  }
}

@media (max-width: 639px) {
  .rg-fscene {
    position: absolute;
    top: -18px;
    right: -8px;
    scale: 0.74;
    transform-origin: right top;
  }
}

.rg-forum__empty.rg-typing {
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   Tema do portal nas outras páginas (usuários, ranking, banco,
   estatísticas, estúdio, perfil, equipe, termos). As páginas não
   foram reescritas: um layout.tsx em cada pasta envolve o conteúdo
   com <SiteSkin>, e as regras abaixo trocam os cinzas do tema
   escuro antigo pelo vidro do portal.
   ════════════════════════════════════════════════════════════ */
html:not(.light) .rg-home.rg-skin {
  --rg-skin-panel: rgba(24, 18, 56, 0.62);
  --rg-skin-well: rgba(8, 7, 22, 0.55);
  --rg-skin-chip: rgb(var(--rg-w) / 0.08);
  --rg-skin-line: rgb(var(--rg-w) / 0.11);
  --rg-skin-line-strong: rgb(var(--rg-w) / 0.2);
  /* a escala de cinza do Tailwind ganha o tom lilás do portal */
  --color-neutral-100: #f6f4ff;
  --color-neutral-200: #e6e2fb;
  --color-neutral-300: #cfcbe8;
  --color-neutral-400: #aca7cf;
  --color-neutral-500: #918cb8;
  --color-neutral-600: #6f6a99;
}
.rg-home.rg-skin .rg-main {
  position: relative;
  min-height: 72vh;
}

/* títulos com a fonte do portal */
.rg-home.rg-skin .rg-main h1,
.rg-home.rg-skin .rg-main h2,
.rg-home.rg-skin .rg-main h3 {
  font-family: var(--rg-display);
  letter-spacing: 0;
}
.rg-home.rg-skin .rg-main h1 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: var(--rg-strong, #fff);
  font-weight: 700;
  filter: drop-shadow(0 8px 26px rgba(123, 97, 255, 0.5));
}
.rg-home.rg-skin .rg-main h1::after {
  content: "";
  display: block;
  width: min(100%, 88px);
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rg-orange), var(--rg-red) 45%, var(--rg-violet));
  transform-origin: left center;
}

/* cartão transparente com borda vira vidro */
.rg-home.rg-skin .border.dark\:bg-transparent {
  background-image: var(--rg-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* botão principal (era branco no tema escuro) */
.rg-home.rg-skin .dark\:bg-white,
.rg-home.rg-skin .dark\:hover\:bg-neutral-200:hover,
.rg-home.rg-skin .dark\:hover\:bg-white:hover {
  background-color: #6a55ff;
  background-image: linear-gradient(180deg, #907aff, #5b4bff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 26px -14px rgba(91, 75, 255, 0.95);
}
.rg-home.rg-skin .dark\:bg-white:hover {
  filter: brightness(1.1);
}
.rg-home.rg-skin .dark\:text-black,
.rg-home.rg-skin .dark\:text-neutral-900,
.rg-home.rg-skin .dark\:bg-white {
  color: #fff;
}
.rg-home.rg-skin .dark\:border-white {
  border-color: var(--rg-violet);
}

/* enfeites nas laterais (telas largas) */
.rg-skin__decor {
  position: absolute;
  inset: 0;
  width: min(100%, 1180px);
  margin-inline: auto;
  display: none;
  pointer-events: none;
}
@media (min-width: 1560px) {
  .rg-skin__decor {
    display: block;
  }
}
.rg-skin__decor .rg-forum__deco--l {
  top: 210px;
}
.rg-skin__decor .rg-forum__deco--r {
  top: 430px;
}
.rg-skin__decor .rg-forum__ghost--l {
  top: 520px;
}
.rg-skin__decor .rg-forum__ghost--r {
  top: 170px;
}

/* movimento */
html[data-rg-motion="on"] .rg-skin .rg-main h1 {
  animation: rg-rise 700ms var(--ease-smooth-out) 80ms both;
}
html[data-rg-motion="on"] .rg-skin .rg-main h1::after {
  animation: rg-f-draw 900ms var(--ease-smooth-out) 420ms both;
}

/* gerado a partir das classes de cor das páginas (cinzas do tema escuro antigo) */
.rg-home.rg-skin .dark\:bg-\[\#0c0c0e\],
.rg-home.rg-skin .dark\:bg-\[\#0c0c0e\]\/50,
.rg-home.rg-skin .dark\:bg-\[\#0e0e11\],
.rg-home.rg-skin .dark\:bg-\[\#111\] {
  background-color: var(--rg-skin-well);
}
.rg-home.rg-skin .dark\:bg-\[\#111113\],
.rg-home.rg-skin .dark\:bg-\[\#111114\],
.rg-home.rg-skin .dark\:bg-\[\#121214\],
.rg-home.rg-skin .dark\:bg-\[\#121214\]\/50,
.rg-home.rg-skin .dark\:bg-\[\#121215\],
.rg-home.rg-skin .dark\:bg-\[\#141416\],
.rg-home.rg-skin .dark\:bg-\[\#141418\],
.rg-home.rg-skin .dark\:bg-\[\#141418\]\/50,
.rg-home.rg-skin .dark\:bg-\[\#151518\],
.rg-home.rg-skin .dark\:bg-\[\#161618\],
.rg-home.rg-skin .dark\:bg-\[\#161619\],
.rg-home.rg-skin .dark\:bg-\[\#16161a\],
.rg-home.rg-skin .dark\:bg-\[\#18181b\] {
  background-color: var(--rg-skin-panel);
}
.rg-home.rg-skin .dark\:bg-\[\#18181c\],
.rg-home.rg-skin .dark\:bg-\[\#19191d\],
.rg-home.rg-skin .dark\:bg-\[\#1a1a1e\],
.rg-home.rg-skin .dark\:bg-\[\#1c1c1f\],
.rg-home.rg-skin .dark\:bg-\[\#1c1c20\],
.rg-home.rg-skin .dark\:bg-\[\#1f1f23\],
.rg-home.rg-skin .dark\:bg-\[\#202024\],
.rg-home.rg-skin .dark\:bg-\[\#202025\],
.rg-home.rg-skin .dark\:bg-\[\#202026\],
.rg-home.rg-skin .dark\:bg-\[\#222\],
.rg-home.rg-skin .dark\:bg-\[\#2a2a2e\] {
  background-color: var(--rg-skin-chip);
}
.rg-home.rg-skin .dark\:border-\[\#1a1a1c\],
.rg-home.rg-skin .dark\:border-\[\#1c1c1f\],
.rg-home.rg-skin .dark\:border-\[\#1c1c20\],
.rg-home.rg-skin .dark\:border-\[\#222\],
.rg-home.rg-skin .dark\:border-\[\#26262a\],
.rg-home.rg-skin .dark\:border-\[\#28282c\],
.rg-home.rg-skin .dark\:border-\[\#2a2a2e\],
.rg-home.rg-skin .dark\:divide-\[\#17171a\] > :not(:last-child),
.rg-home.rg-skin .dark\:divide-\[\#1a1a1c\] > :not(:last-child),
.rg-home.rg-skin .dark\:divide-\[\#1a1a1d\] > :not(:last-child),
.rg-home.rg-skin .dark\:divide-\[\#222\] > :not(:last-child) {
  border-color: var(--rg-skin-line);
}
.rg-home.rg-skin .dark\:border-\[\#2a2a30\],
.rg-home.rg-skin .dark\:border-\[\#2e2e34\],
.rg-home.rg-skin .dark\:border-\[\#333\] {
  border-color: var(--rg-skin-line-strong);
}
.rg-home.rg-skin .dark\:hover\:bg-\[\#111113\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#121214\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#141416\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#161618\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#1a1a1e\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#1f1f23\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#1f1f24\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#202025\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#252528\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#25252a\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#26262a\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#26262c\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#28282e\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#2a2a2e\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#2c2c34\]:hover,
.rg-home.rg-skin .dark\:hover\:bg-\[\#333\]:hover {
  background-color: rgb(var(--rg-w) / 0.1);
}

/* ════════════════════════════════════════════════════════════
   Tema claro. O botão de sol/lua (canto superior direito) é o
   ThemeToggle do layout; ele põe a classe "light" ou "dark" no
   <html>. Sem classe nenhuma o portal fica escuro (padrão).
   ════════════════════════════════════════════════════════════ */
html.light:has(.rg-home),
html.light body:has(.rg-home) {
  background: #f5f3fb;
}
html.light .rg-home {
  --rg-w: 34 24 84;
  --rg-d: 255 255 255;
  --rg-strong: #17122f;
  --rg-bg: #f5f3fb;
  --rg-ink: #17122f;
  --rg-ink-soft: #3f3963;
  --rg-ink-dim: #655f88;
  --rg-amber: #b45f06;
  --rg-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66));
  color-scheme: light;
}
html.light .rg-bg {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(124, 104, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fbfaff 0%, #f1eef9 100%);
}
html.light .rg-bg__glow {
  opacity: 0.4;
}
html.light .rg-bg__stars,
html.light .rg-bg__grain {
  display: none;
}
/* blocos e formas decorativas em preto e cinza */
html.light .rg-voxels,
html.light .rg-hero__decor > :not(.rg-hero__roblox):not(.rg-hero__visor) {
  filter: grayscale(1) brightness(0.58) contrast(1.05);
}
html.light .rg-forum__ghost {
  border-color: rgba(23, 18, 47, 0.3);
}
/* títulos em degradê */
html.light .rg-hero__letter,
html.light .rg-forum__letter {
  background-image: linear-gradient(180deg, #17122f 25%, #4a36d6 100%);
}
html.light .rg-hero__title,
html.light .rg-forum__title,
html.light .rg-home.rg-skin .rg-main h1 {
  filter: drop-shadow(0 8px 22px rgba(91, 75, 255, 0.22));
}
/* superfícies que eram vidro escuro com texto branco */
html.light .rg-cta--ember,
html.light .rg-btn--ghost,
html.light .rg-nav__discord {
  color: var(--rg-strong);
}
html.light .rg-topic,
html.light .rg-forum__cat,
html.light .rg-nav__bar {
  box-shadow:
    inset 0 0 0 1px rgb(var(--rg-w) / 0.12),
    0 18px 40px -30px rgba(52, 38, 130, 0.45);
}
html.light .rg-forum__cat[aria-pressed="true"],
html.light .rg-forum__cats[data-pill="on"] .rg-forum__cat[aria-pressed="true"] {
  color: #b24a00;
}
html.light .rg-topic__cat {
  color: color-mix(in srgb, var(--c) 55%, #17122f);
}
html.light .rg-fscene__spark--1 {
  background: #6a55ff;
}

/* botão de tema: na home ele divide o topo com a navbar em telas médias */
@media (min-width: 640px) and (max-width: 1320px) {
  body:has(.rg-home:not(.rg-forum)) button[aria-label="Toggle theme"] {
    top: auto;
    bottom: 20px;
  }
}

/* tema claro: textos que eram claros sobre vidro escuro */
html.light .rg-nav__link[aria-current="true"],
html.light .rg-launch__note,
html.light .rg-chip {
  color: #a84300;
}
html.light .rg-nav__discord-icon,
html.light .rg-badge__icon {
  color: #5b4bff;
}
html.light .rg-badge {
  color: var(--rg-ink);
}
html.light .rg-cta--ember .rg-cta__sub {
  color: var(--rg-ink-soft);
}
html.light .rg-cta--ember .rg-cta__icon {
  color: #c2560a;
}

/* tema claro: os cartões de projeto continuam escuros (contraste com a página) */
html.light .rg-project__card {
  --rg-w: 255 255 255;
  --rg-strong: #fff;
  --rg-ink: #f6f4ff;
  --rg-ink-soft: #cfcbe8;
  --rg-ink-dim: #a29ec2;
  --rg-amber: #ffc46b;
  color: var(--rg-ink);
}
html.light .rg-project__card .rg-chip {
  color: #ffd9b0;
}
html.light .rg-project__card .rg-btn--ghost {
  color: #fff;
}

/* tema claro: o Roblox e o Among Us do topo continuam coloridos, e o botão
   roxo do fórum mantém o brilho branco ao passar o mouse */
html.light .rg-hero__roblox,
html.light .rg-hero__visor,
html.light .rg-cta--violet {
  --rg-w: 255 255 255;
  --rg-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

/* ── Vídeo mais recente ── */
.rg-video {
  width: min(100%, 880px);
  margin: 22px auto 0;
}
.rg-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 6px;
  border-radius: var(--rg-radius-lg);
  background: linear-gradient(135deg, var(--rg-orange), var(--rg-red) 38%, var(--rg-violet) 72%, var(--rg-blue));
  box-shadow:
    0 40px 80px -46px rgba(91, 75, 255, 0.95),
    0 30px 70px -50px rgba(255, 106, 43, 0.8);
}
.rg-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--rg-radius-lg) - 6px);
  background: #000;
}
.rg-video__more {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}
