html, body { margin: 0; background: #0a0a0a; }
.rb-landing {
  --rb-pad: clamp(20px, 5vw, 88px);
  --rb-paper: #f5f5f5;
  --rb-accent: #19a39a;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  inline-size: 100%;
  min-block-size: max(420px, 100vh);
  min-block-size: max(420px, 100svh);
  overflow: hidden;
  box-sizing: border-box;
  background: #0a0a0a;
  color: var(--rb-paper);
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.rb-landing *, .rb-landing *::before, .rb-landing *::after { box-sizing: border-box; }
.rb-landing [hidden] { display: none !important; }
.rb-landing ::selection { background: #c4ddeb; color: #0a0a0a; }
.rb-material, .rb-material::after, .rb-fabric, .rb-cloth, .rb-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.rb-material {
  --rb-key-light: #89d7e1;
  --rb-rim-light: #398e88;
  z-index: -1; overflow: hidden; pointer-events: none; isolation: isolate;
  filter: brightness(.85);
  background: radial-gradient(ellipse 62% 81% at 105% 115%, var(--rb-rim-light), transparent 72%),
    color-mix(in srgb, var(--rb-key-light) 52%, #101214);
}
.rb-fabric { mix-blend-mode: multiply; }
.rb-material::after {
  content: "";
  background: linear-gradient(180deg, rgb(5 6 7 / .79), transparent 25%, transparent 90%, rgb(5 6 7 / .12)),
    radial-gradient(ellipse 40% 63% at 105% 110%, color-mix(in srgb, var(--rb-rim-light) 51%, transparent), transparent 78%),
    radial-gradient(ellipse 72% 70% at 50% 39%, rgb(5 6 7 / .40), transparent 89%);
}
.rb-poster { object-fit: cover; }
.rb-fallback .rb-fabric::after {
  content: ""; position: absolute; inset: 0;
  opacity: var(--rb-wave-opacity, .5);
  background: repeating-linear-gradient(323deg,
    rgb(0 0 0 / .40) var(--rb-wave-offset, -62%),
    rgb(0 0 0 / .40) calc(var(--rb-wave-offset, -62%) + 12%),
    rgb(232 232 232 / .32) calc(var(--rb-wave-offset, -62%) + 33%),
    rgb(0 0 0 / .40) calc(var(--rb-wave-offset, -62%) + 62%));
}
.rb-header {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  margin-inline: var(--rb-pad); padding-block: clamp(12px, 2.25vh, 23px);
}
.rb-landing :is(a,button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  width: auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: inherit; font: inherit; letter-spacing: normal;
  text-decoration: none; text-transform: none; cursor: pointer; box-shadow: none;
}
.rb-landing :is(a,button,input,select):focus-visible, .rb-hero:focus-visible {
  outline: 2px solid #e2f3ff; outline-offset: 4px;
}
.rb-landing .rb-home {
  justify-self: start; width: clamp(56px, 5vw, 68px); max-width: 100%;
}
.rb-home img { display: block; width: 100%; height: auto; }
.rb-links { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 50px); }
.rb-nav :is(button,a), .rb-landing .rb-access, .rb-landing .rb-motion, .rb-landing .rb-dismiss {
  font-size: .875rem; line-height: 1.3;
}
.rb-nav a { font-weight: 500; }
.rb-links :is(a,button) { position: relative; color: #e0e2e3; }
.rb-links :is([aria-current], [aria-expanded="true"], :hover) { color: white; }
.rb-links :is([aria-current], [aria-expanded="true"], :hover)::after {
  position: absolute; content: ""; inset-inline: 0; bottom: 5px; height: 1px; background: currentColor;
}
.rb-landing .rb-access {
  justify-self: end; padding-inline: clamp(14px, 1.6vw, 26px); border-radius: 99px;
  background: var(--rb-accent); color: #0a0a0a; white-space: nowrap;
}
.rb-landing .rb-access:hover, .rb-landing .rb-access[aria-expanded="true"] { background: #36b5ac; }
.rb-landing .rb-menu { display: none; }
.rb-hero {
  align-self: center; justify-self: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  max-width: 100%; padding: 14px var(--rb-pad); text-align: center; outline: none;
}
.rb-hero-copy { display: grid; justify-items: center; gap: 6px; max-width: 100%; }
.rb-hero h1 {
  margin: 0; color: var(--rb-paper); font-family: inherit; font-size: clamp(23px, 3.55vw, 42px);
  font-weight: 400; line-height: 1.15; letter-spacing: -.032em; text-wrap: balance;
}
.rb-hero h1 span { display: inline-block; }
.rb-invite-lead {
  margin: 0; color: #e8edef; font-size: clamp(.9375rem, 1.45vw, 1.0625rem); line-height: 1.45;
}
.rb-invite-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  width: min(100%, 320px); gap: 8px; margin-top: 8px;
}
.rb-landing .rb-invite-actions button {
  padding: 6px 12px; border: 1px solid transparent; border-radius: 99px;
  font-size: .875rem; line-height: 1.2;
}
.rb-landing .rb-invite-actions .rb-invite-discover { background: #22292c; color: #f5f5f5; }
.rb-landing .rb-invite-actions .rb-invite-discover:hover { background: #303a3e; }
.rb-landing .rb-invite-redeem { background: var(--rb-accent); color: #0a0a0a; }
.rb-landing .rb-invite-redeem:hover { background: #36b5ac; }
.rb-footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-inline: var(--rb-pad); padding-block: 12px clamp(16px, 3vh, 34px);
}
.rb-landing .rb-settings-toggle, .rb-landing .rb-motion {
  border-radius: 99px; padding: 0 16px; gap: 10px;
  background: #202629; color: #e8edef; font-size: .875rem;
}
.rb-landing .rb-motion { min-width: 133px; margin-inline-start: auto; }
.rb-landing :is(.rb-motion,.rb-settings-toggle):hover,
.rb-landing .rb-settings-toggle[aria-expanded="true"] { background: #3a474d; }
.rb-light-tools { display: inline-flex; gap: 8px; }
.rb-light-panel {
  position: absolute; bottom: calc(100% - 3px); left: 0;
  width: min(310px, 100%); padding: 14px 18px;
  max-height: max(165px, calc(100vh - 120px)); overflow-y: auto;
  border-radius: 12px; background: #101415; color: #f5f5f5;
  box-shadow: 0 12px 30px rgb(0 0 0 / .48);
  font-size: .875rem; line-height: 1.4;
}
.rb-light-heading, .rb-temp-row, .rb-temp-ends, .rb-color-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.rb-light-heading h2 { margin: 0; color: inherit; font: inherit; font-weight: 650; }
.rb-light-heading button { font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rb-temp-row { margin-top: 4px; }
.rb-hex, .rb-temp-row output, .rb-temp-ends { color: #cbd2d4; font-variant-numeric: tabular-nums; }
.rb-temp-ends { margin-bottom: 10px; }
.rb-hex, .rb-temp-ends { font-size: .75rem; }
.rb-landing .rb-light-panel input[type="range"] { display: block; width: 100%; height: 28px; margin: 2px 0; accent-color: #c4ddeb; cursor: pointer; }
.rb-mesh-shape { display: grid; gap: 5px; margin: 4px 0 14px; }
.rb-mesh-shape select {
  width: 100%; min-height: 42px; padding: 6px 10px; font: inherit;
  border: 1px solid #879093; border-radius: 6px; background: #1b2022; color: #f5f5f5;
}
.rb-mesh-status { margin: 4px 0 12px; color: #cbd2d4; }
.rb-motion-short { display: none; }
.rb-color-row { min-height: 46px; margin: 0; cursor: pointer; }
.rb-color-row .rb-hex { margin-left: auto; }
.rb-color-row input[type="color"] {
  display: block; width: 39px; height: 32px; flex: none; margin: 0;
  border: 1px solid #879093; border-radius: 5px; background: #131718; padding: 3px; cursor: pointer;
}
.rb-color-row input::-webkit-color-swatch-wrapper { padding: 0; }
.rb-color-row input::-webkit-color-swatch { border: 0; border-radius: 2px; }
.rb-motion-symbol { width: 9px; height: 10px; border-inline: 2px solid currentColor; }
.rb-landing[data-paused="true"] .rb-motion-symbol {
  height: 0; width: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0;
}
.rb-note, .rb-landing .rb-links.rb-expanded {
  position: absolute; right: 0; top: calc(100% + 9px); z-index: 2;
  padding: 22px; width: min(310px, 100%); border-radius: 12px;
  background: #101314; color: #f5f5f5;
  box-shadow: 0 12px 30px rgb(0 0 0 / .48);
}
.rb-note h2 { margin: 0; color: inherit; font: 600 1.0625rem/1.3 Inter,"Segoe UI",Arial,sans-serif; }
.rb-note p { margin: 9px 0 6px; font-size: .9375rem; line-height: 1.5; color: #e1e6e7; }
.rb-landing .rb-dismiss { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .rb-landing { --rb-pad: clamp(12px, 4.5vw, 25px); }
  .rb-header { grid-template-columns: minmax(0,1fr) auto auto; gap: clamp(10px, 3vw, 18px); }
  .rb-links { display: none; }
  .rb-landing .rb-links.rb-expanded { display: flex; width: auto; min-width: 150px; gap: 0; align-items: stretch; flex-direction: column; padding: 6px 14px; }
  .rb-expanded :is(button,a) { justify-content: flex-start; }
  .rb-links :is([aria-current], [aria-expanded="true"], :hover)::after { display: none; }
  .rb-landing .rb-menu { display: inline-flex; padding-inline: 4px; }
  .rb-hero h1 { max-width: 24rem; font-size: clamp(23px, 5.3vw, 32px); }
  .rb-landing.rb-editing { min-block-size: 560px; }
  .rb-editing .rb-footer { display: grid; grid-template-columns: auto auto auto 1fr; gap: 8px; padding-block-start: 4px; }
  .rb-editing .rb-light-tools { display: contents; }
  .rb-editing .rb-settings-toggle { grid-area: 1 / 1; justify-self: start; }
  .rb-editing .rb-motion-toggle { grid-area: 1 / 2; }
  .rb-editing .rb-mesh-toggle { grid-area: 1 / 3; }
  .rb-editing .rb-motion { grid-area: 1 / 4; }
  .rb-editing .rb-light-panel { position: static; grid-area: 2 / 1 / 3 / -1; width: 100%; max-height: none; padding: 8px 14px; }
  .rb-editing .rb-hero { gap: 10px; padding-block: 4px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .rb-landing { min-block-size: 100svh; }
  .rb-header, .rb-footer { padding-block: 5px; }
  .rb-hero { gap: 8px; padding-block: 6px; }
}
@media (max-width: 440px) {
  .rb-footer, .rb-light-tools, .rb-editing .rb-footer { gap: 4px; }
  .rb-landing .rb-footer :is(.rb-settings-toggle,.rb-motion) { min-width: 0; padding-inline: 7px; }
  .rb-landing .rb-footer .rb-motion { gap: 4px; padding-inline: 6px; white-space: nowrap; }
  .rb-motion-label { display: none; }
  .rb-motion-short { display: inline; }
}
@media (max-width: 350px) {
  .rb-landing .rb-access { padding-inline: 12px; }
  .rb-landing .rb-invite-actions button { padding-inline: 5px; }
}
