@import "./roblox-fold.css";
@import "./roblox-build-with-ai.css";
@import "./roblox-project-breakdown.css";
@import "./roblox-purchase.css";

.guide-slot {
  display: flow-root;
}

.guide-slot[data-switching] {
  overflow-anchor: none;
}

/* WebKit chooses the document's anchor before a purchase panel starts moving. */
:root:has(#roblox-guide:not([hidden]), .gta-guide:not([hidden])) {
  overflow-anchor: none;
}

.roblox-guide {
  --purchase-viewport-height: 0px;
  width: min(calc(100% - 18px), 560px);
  min-height: max(var(--guide-viewport-height, 0px), var(--purchase-viewport-height, 0px));
  margin: clamp(16px, 5vw, 28px) auto 0;
  padding-block-end: 8px;
  scroll-margin-block-start: 12px;
  container-type: inline-size;
  color: #fff;
  font: 900 14px / 1.3 'Home Topic Inter', Inter, sans-serif;
}

.roblox-guide[data-closing] {
  overflow-anchor: none;
  pointer-events: none;
}

.roblox-guide[data-awaiting-scroll] {
  visibility: hidden;
}

.roblox-guide[data-step-opening],
.disign-guide[data-case-open] {
  min-height: max(100dvh, var(--guide-viewport-height, 0px));
}

.roblox-guide:is([data-viewport-preserved], [data-purchase-resizing]) {
  overflow-anchor: none;
}

.roblox-guide[data-step-opening] {
  overflow-anchor: none;
}

.roblox-guide-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 12px;
}

.roblox-guide-close,
.roblox-guide-case-back {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #353535;
  border-radius: 999px;
  background: #121212;
  color: inherit;
  font-size: 12px;
  touch-action: manipulation;
  transition: transform 140ms ease, background-color 140ms ease;
}

.roblox-guide-close { margin-inline-start: auto; min-width: 76px; }

.roblox-guide-case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b0b0b;
  white-space: nowrap;
}

.roblox-guide-close:active,
.roblox-guide-case-back:active {
  transform: scale(.96);
  background: #1c1c1c;
}

.roblox-guide-edge-toolbar {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  pointer-events: none;
  --edge-safe-top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --edge-safe-bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  --edge-travel: 8px;
}

.roblox-guide-edge-toolbar[data-visible]:not([inert]) > button:not([inert]) {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition-delay: 0s;
}

.roblox-guide-edge-close,
.roblox-guide-edge-back {
  position: absolute;
  width: max(24px, var(--edge-width));
  height: var(--edge-height);
  top: clamp(calc(var(--edge-safe-top) + var(--edge-height) / 2 + 8px), var(--edge-top),
    calc(100% - var(--edge-safe-bottom) - var(--edge-height) / 2 - 12px));
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: white;
  touch-action: manipulation;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(var(--edge-slide), -50%, 0);
  transition: transform 260ms cubic-bezier(.22,.65,.3,1), opacity 220ms ease, visibility 0s 260ms;
  -webkit-tap-highlight-color: transparent;
}

.roblox-guide-edge-close {
  --edge-width: clamp(20px, calc(var(--guide-left, 18px) + 1px), 27px);
  --edge-height: calc(var(--edge-width) * 673 / 111);
  --edge-top: 77%;
  --edge-slide: calc(-1 * var(--edge-travel));
  --edge-art: url('/assets/guide-edge-close.svg');
  --edge-type-size: calc(var(--edge-width) * .74);
  left: max(1px, env(safe-area-inset-left, 0px), calc(var(--guide-left, 18px) - var(--edge-width) + 2px));
}

.roblox-guide-edge-back {
  --edge-width: clamp(20px, calc(var(--guide-right, 18px) + 1px), 27px);
  --edge-height: calc(var(--edge-width) * 711 / 115);
  --edge-top: 66%;
  --edge-slide: var(--edge-travel);
  --edge-art: url('/assets/guide-edge-back.svg');
  --edge-type-size: calc(var(--edge-width) * .41);
  right: max(1px, env(safe-area-inset-right, 0px), calc(var(--guide-right, 18px) - var(--edge-width) + 2px));
}

.roblox-guide-edge-toolbar > button::before {
  position: absolute;
  inset-block: 0;
  width: var(--edge-width);
  background: var(--edge-art) center / contain no-repeat;
  content: '';
  /* Keep the artwork in its own paint layer while the label breathes. */
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: filter 150ms ease;
}

.roblox-guide-edge-close::before { left: 0; }
.roblox-guide-edge-back::before { right: 0; }

.roblox-guide-edge-label {
  --edge-text-glow: 0 0 .8px rgb(255 255 255 / .48), 0 0 2px rgb(255 255 255 / .14);
  --edge-text-glow-bright: 0 0 1px rgb(255 255 255 / .8), 0 0 3px rgb(255 255 255 / .3);
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  font: 700 var(--edge-type-size) / 1 'Partner Druk Wide', sans-serif;
  text-shadow: var(--edge-text-glow);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.roblox-guide-edge-close .roblox-guide-edge-label { left: calc(var(--edge-width) * .45); }
.roblox-guide-edge-back .roblox-guide-edge-label { left: calc(100% - var(--edge-width) / 2); }

.roblox-guide-edge-arrow {
  font: 700 10px / 1 Inter, sans-serif;
  transform: rotate(90deg);
}

@media (hover: hover) {
  .roblox-guide-edge-toolbar > button:hover::before { filter: brightness(1.5); }
}

.roblox-guide-edge-toolbar > button:active::before { filter: brightness(1.9); }

.roblox-guide-steps {
  --roblox-guide-step-gap: clamp(12px, 6cqw, 22px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--roblox-guide-step-gap);
}

.roblox-guide-step,
.roblox-guide-view {
  border-radius: clamp(18px, 7.5cqw, 28px);
}

.roblox-guide-step {
  background: linear-gradient(115deg, #0e0e0e, #030404);
  scroll-margin-block-start: 12px;
}

.roblox-guide-view {
  position: relative;
  margin-block-start: 10px;
}

.roblox-guide-overview { display: flow-root; }

.roblox-guide[data-course='classic'] {
  --gta-guide-logo-overhang: 4cqw;
}

.roblox-guide[data-course='classic'] > .roblox-guide-toolbar {
  margin-block-end: calc(12px + var(--gta-guide-logo-overhang));
}

.roblox-guide-banner .gta-guide-poster > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.roblox-guide-banner > .gta-guide-banner-logo {
  left: 3%;
  width: 17%;
  filter: drop-shadow(0 3px 5px rgb(0 0 0 / .45));
}

.roblox-guide[data-case-collapsing] {
  overflow-anchor: none;
}

:is(#roblox-guide, #roblox-builder-guide, #gta-vi-guide) .roblox-guide-step {
  background: none;
}

.roblox-guide-summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(100px, 41cqw, 154px);
  padding: 16px 22%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  font-size: clamp(12px, 3.9cqw, 16px);
  list-style: none;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.roblox-guide-summary::-webkit-details-marker {
  display: none;
}

.roblox-guide-summary:focus-visible {
  outline: 2px solid transparent;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 2px #fff;
}

:is(#roblox-guide, #roblox-builder-guide, #gta-vi-guide) .roblox-guide-summary {
  display: block;
  min-height: 0;
  padding: 0;
  background: linear-gradient(115deg, #0e0e0e, #030404);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

:is(#roblox-guide, #roblox-builder-guide, #gta-vi-guide) .roblox-guide-summary:focus-visible {
  box-shadow: none;
}

:is(#roblox-guide, #roblox-builder-guide) .roblox-guide-summary:disabled {
  opacity: 1;
  cursor: default;
}

:is(#roblox-guide, #roblox-builder-guide) .roblox-guide-summary[data-guide-card-pending] {
  visibility: hidden;
  opacity: 0;
}

.roblox-guide-summary [data-guide-card-image-unavailable] {
  visibility: hidden;
}

.roblox-guide-card-face {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(100px, 41cqw, 154px);
  padding: 16px 22%;
  overflow: hidden;
  border-radius: clamp(18px, 7.5cqw, 28px);
  background: #0e0e0e linear-gradient(115deg, #0e0e0e, #030404) center / cover no-repeat;
  color: #fff;
  font: 900 clamp(12px, 3.9cqw, 16px) / 1.3 'Home Topic Inter', Inter, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

:is(#roblox-guide, #roblox-builder-guide, #gta-vi-guide) .roblox-guide-summary:not([data-cover]) > .roblox-guide-card-face {
  width: 100%;
}

.roblox-guide-card-face[data-cover] {
  aspect-ratio: 16 / 9;
  text-shadow: 0 1px 3px #000, 0 2px 8px #000;
}

.roblox-guide-card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roblox-guide-card-face > span:last-child { position: relative; }

[data-telegram-desktop] :is(#roblox-guide, #roblox-builder-guide) .roblox-guide-summary[data-cover] {
  aspect-ratio: 16 / 9;
}

[data-telegram-desktop] :is(#roblox-guide, #roblox-builder-guide) .roblox-guide-summary[data-cover] > .roblox-guide-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

:is(#roblox-guide, #roblox-builder-guide, #gta-vi-guide) .roblox-guide-summary:focus-visible .roblox-guide-card-face,
.roblox-case-next:focus-visible .roblox-guide-card-face {
  outline: 2px solid #bad5ff;
  outline-offset: -3px;
}

.roblox-guide-close:focus-visible,
.roblox-guide-case-back:focus-visible,
.roblox-guide-edge-toolbar > button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.roblox-guide-number {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 10%;
  transform: translateY(-50%);
  font-size: clamp(40px, 15cqw, 56px);
  line-height: 1;
}

.roblox-guide-card-face[data-cover-title]:not([data-cover-unavailable]) .roblox-guide-number {
  inset: 8% 6% auto auto;
  padding: 4px 8px;
  transform: none;
  border-radius: 8px;
  background: rgb(255 255 255 / .9);
  color: #172031;
  font-size: clamp(16px, 6cqw, 28px);
  text-shadow: none;
}

.roblox-guide-card-face[data-cover-title] > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.roblox-guide-card-face[data-cover-title][data-cover-unavailable] > span:last-child {
  top: 50%;
  left: 22%;
  width: 56%;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  transform: translateY(-50%);
}

.roblox-guide-case {
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
  background: url('/assets/reader-background.webp') center / cover no-repeat, linear-gradient(96deg, #0c0c0c, #040505);
}

.roblox-guide-case .roblox-case-dek {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.roblox-guide-case-copy {
  --roblox-reader-gutter: clamp(18px, 5.6cqw, 32px);
  padding: 14px var(--roblox-reader-gutter) 34px;
  background:
    radial-gradient(ellipse 95% 260px at right top, rgb(148 89 55 / .13), transparent),
    linear-gradient(110deg, rgb(255 255 255 / .025), transparent 75%);
  overflow-wrap: anywhere;
}

.roblox-guide-text-chapter .roblox-guide-case-copy {
  min-height: clamp(180px, 58cqw, 270px);
}

.roblox-guide-text-chapter .roblox-guide-case-copy > .roblox-guide-case-title:first-child {
  margin-block-start: 0;
}

.roblox-guide-case .roblox-guide-case-title {
  display: block;
  margin: 0 0 16px;
  font-size: clamp(25px, 7.6cqw, 36px);
  line-height: 1.13;
}

.roblox-guide-case-collapse {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  overflow-wrap: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.roblox-guide-case-collapse:focus-visible {
  outline: 2px solid #bad5ff;
  outline-offset: 3px;
}

.roblox-guide-case-title img {
  flex: none;
  width: 1.35em;
  height: auto;
}

.roblox-case-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.roblox-case-rubric { display: flex; align-items: center; gap: 8px; min-width: 0; }
.roblox-case-rubric img { flex: none; width: 17px; height: auto; }

@container (max-width: 260px) {
  .roblox-case-header { grid-template-columns: minmax(0, 1fr); }
  .roblox-case-languages { justify-self: end; }
}

.roblox-guide-case-copy[data-language-changing] { overflow-anchor: none; }

.roblox-case-eyebrow {
  color: #c1d5f3;
  font-size: 11px;
  letter-spacing: .05em;
}

.roblox-case-languages {
  --language-button-width: 44px;
  display: flex;
}

.roblox-case-languages button {
  position: relative;
  width: var(--language-button-width);
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aab3c1;
  font-size: 12px;
}

.roblox-case-languages button[aria-pressed="true"] {
  color: #dbe9ff;
}

.roblox-case-languages button[aria-pressed="true"]::after {
  position: absolute;
  inset: auto calc(50% - 7px) 8px;
  height: 2px;
  border-radius: 2px;
  background: #8fb3e4;
  content: '';
}

.roblox-case-languages[data-animate-languages] { position: relative; }
.roblox-case-languages[data-animate-languages] button { flex: 0 0 var(--language-button-width); }
.roblox-case-languages[data-animate-languages] button[aria-pressed="true"]::after { content: none; }

.roblox-case-languages[data-animate-languages][data-active-language]::after {
  position: absolute;
  left: calc((var(--language-button-width) - 14px) / 2);
  bottom: 8px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #8fb3e4;
  transform: translateX(calc(var(--language-index, 0) * var(--language-button-width)));
  pointer-events: none;
  content: '';
}

@media (prefers-reduced-motion: no-preference) {
  .roblox-case-languages[data-animate-languages]::after {
    transition: transform 210ms cubic-bezier(.22,.7,.25,1);
  }
  .roblox-case-languages[data-animate-languages] button {
    transition: color 150ms ease, transform 130ms ease-out;
  }
  .roblox-case-languages[data-animate-languages] button:active { transform: scale(.96); }
}

.roblox-case-amount { white-space: nowrap; }
#roblox-guide-case :lang(es) .roblox-case-amount { white-space: normal; }

.roblox-guide-case .roblox-guide-case-copy .roblox-case-dek {
  margin: 0 0 24px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #758ea9;
  color: #c6d1df;
  font-size: 14px;
  line-height: 1.55;
}

.roblox-case-content { max-width: 65ch; }
.roblox-case-lead { font-size: 17px; line-height: 1.62; }
.roblox-case-game-image {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 16px 18px;
  border-radius: 12px;
}

.roblox-case-section + .roblox-case-section { margin-top: 30px; }

#roblox-guide-case .roblox-case-section h3,
#roblox-guide-case .roblox-case-ai h3 { margin: 0 0 9px; }

.roblox-case-citation { font-size: .75em; line-height: 0; }

.roblox-case-citation a,
.roblox-case-sources a {
  color: #bad5ff;
  text-underline-offset: .18em;
}

.roblox-case-ai,
.roblox-recommendation-pairs-panel {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  background: linear-gradient(145deg, #0e0e0e, #040505);
}

@media (prefers-reduced-motion: no-preference) {
  :is(.roblox-case-ai, .roblox-recommendation-pairs-panel)[data-reading-lit]::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgb(255 255 255 / .04), transparent 72%);
    pointer-events: none;
    content: '';
    animation: roblox-reading-tone 1000ms ease-out both;
  }
}

@keyframes roblox-reading-tone {
  0%, 100% { opacity: 0; }
  30% { opacity: 1; }
}

.roblox-case-ai {
  margin: 28px 0;
  padding: 16px 18px;
}

.content-reader-body .roblox-case-ai h3 {
  font-size: clamp(20px, 6cqw, 24px);
  line-height: 1.18;
}

.content-reader-body .roblox-case-ai p {
  color: #c4c9d0;
  line-height: 1.64;
}

.roblox-case-ai:has(+ .roblox-case-editorial) { margin-bottom: 16px; }

.roblox-case-editorial {
  margin: 0 0 28px;
  padding: 2px 0 2px 12px;
  border-inline-start: 2px solid #6d8cbb;
  color: #d3deed;
  font-size: 15px;
  line-height: 1.6;
}

.roblox-case-editorial-signature {
  display: block;
  width: 112px;
  max-width: 100%;
  height: auto;
  margin-bottom: 5px;
}

.roblox-case-sources { margin: 0; padding-inline-start: 22px; font-size: 14px; }
.roblox-case-sources li { margin-bottom: 10px; }

.roblox-case-sources .roblox-case-source-note {
  margin: 3px 0 0;
  color: #aab3c1;
  font-size: 13px;
}

.roblox-case-next {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-block-start: 24px;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  touch-action: manipulation;
}

.roblox-case-next:focus-visible { outline: none; }
.roblox-case-next:active .roblox-guide-card-face { opacity: .85; }
.roblox-case-next-label { color: #a5bfe1; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.roblox-case-next-description { color: #c6d1df; font-size: 13px; line-height: 1.45; }

.roblox-case-previous {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  margin-block-start: 24px;
  padding: 11px clamp(12px, 4.4cqw, 22px);
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 9% 0%, rgb(153 177 208 / .12), transparent 68%) padding-box,
    linear-gradient(145deg, #15191f, #0d1014 74%) padding-box,
    linear-gradient(135deg, #526174, #2b333d 52%, #323c48) border-box;
  box-shadow: inset 0 1px 0 rgb(232 241 255 / .06), 0 4px 12px rgb(0 0 0 / .23);
  color: #eef4ff;
  font: inherit;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.roblox-case-next + .roblox-case-previous { margin-block-start: 10px; }

.roblox-case-previous-copy { display: grid; gap: 4px; }
.roblox-case-previous-label { color: #b0bed1; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.roblox-case-previous-title { font-size: 16px; font-weight: 700; line-height: 1.2; }

.roblox-case-previous-arrow {
  display: block;
  justify-self: center;
  width: 19px;
  height: 30px;
  object-fit: contain;
  transform: rotate(90deg);
  filter: drop-shadow(0 0 1.5px rgb(181 214 255 / .38));
  transition: transform 170ms ease, filter 170ms ease;
  pointer-events: none;
}

.roblox-case-previous:focus-visible { outline: 2px solid #bad5ff; outline-offset: 3px; }
.roblox-case-previous:active {
  border-color: rgb(159 197 248 / .29);
  box-shadow: inset 0 3px 10px rgb(0 0 0 / .65), 0 1px 3px rgb(0 0 0 / .2);
}

@media (hover: hover) {
  .roblox-case-previous:hover:not(:active) {
    border-color: rgb(159 197 248 / .38);
    box-shadow: inset 0 1px 0 rgb(222 236 255 / .12), 0 0 7px rgb(118 164 224 / .21);
  }
  .roblox-case-previous:hover .roblox-case-previous-arrow {
    transform: translateX(-2px) rotate(90deg);
    filter: drop-shadow(0 0 2.5px rgb(181 214 255 / .55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .roblox-case-previous,
  .roblox-case-previous-arrow { transition: none; }
  .roblox-case-previous:hover .roblox-case-previous-arrow { transform: rotate(90deg); }
}

.roblox-guide-paid {
  margin-block-start: calc(clamp(34px, 21.6cqw, 78px) - var(--roblox-guide-step-gap));
  container-type: inline-size;
}

#roblox-paid-step-01 hr {
  margin-block: 24px;
  border: 0;
  border-block-start: 1px solid #292929;
}

#roblox-paid-step-01 section > ol {
  margin-block: .8em;
  padding-inline-start: 1.55em;
}

#roblox-paid-step-01 figure img {
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .roblox-guide-close,
  .roblox-guide-case-back,
  .roblox-guide-edge-toolbar > button,
  .roblox-guide-edge-toolbar > button::before {
    transition: none;
  }
}

.roblox-recommendation-copy {
  max-width: 65ch;
}

.roblox-recommendation-copy > .roblox-case-dek {
  margin-bottom: 20px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #758ea9;
  color: #c6d1df;
}

.roblox-recommendation-copy > .roblox-case-dek + p {
  margin-top: 0;
}

.roblox-recommendation-figure {
  margin: 20px 0 24px;
}

.roblox-recommendation-figure button,
.roblox-recommendation-zoom-view button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #151920;
  cursor: zoom-in;
}

.roblox-recommendation-figure button {
  overflow: hidden;
  border-radius: 12px;
}

.roblox-recommendation-figure img,
.roblox-recommendation-zoom-view img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.roblox-recommendation-crop {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--crop-ratio);
  overflow: hidden;
}

.roblox-recommendation-crop > img {
  position: absolute;
  max-width: none;
}

.roblox-recommendation-carousel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 8px;
  color: #ecf1fa;
  font-size: 14px;
  font-weight: 700;
}

.roblox-recommendation-carousel-controls {
  display: flex;
  flex: none;
}

.roblox-recommendation-carousel-controls button {
  --arrow-angle: 90deg;
  --arrow-travel: -2px;
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 44px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.roblox-recommendation-carousel-controls button:focus-visible {
  outline: none;
}

.roblox-recommendation-carousel-controls button:focus-visible::after {
  position: absolute;
  inset: auto 13px 5px;
  height: 2px;
  border-radius: 2px;
  background: #bad5ff;
  content: '';
}

.roblox-recommendation-carousel-controls button[data-arrow="next"] {
  --arrow-angle: -90deg;
  --arrow-travel: 2px;
}

.roblox-recommendation-carousel-controls img {
  width: 17px;
  height: 28px;
  object-fit: contain;
  opacity: .78;
  transform: translateX(var(--arrow-shift, 0px)) rotate(var(--arrow-angle));
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.roblox-recommendation-carousel-controls button:disabled {
  cursor: default;
}

.roblox-recommendation-carousel-controls button:disabled img { opacity: .26; }

.roblox-recommendation-carousel-controls[data-moving="back"] button[data-arrow="back"],
.roblox-recommendation-carousel-controls[data-moving="next"] button[data-arrow="next"] {
  z-index: 1;
}

.roblox-recommendation-carousel-controls[data-moving="back"] button[data-arrow="back"] img,
.roblox-recommendation-carousel-controls[data-moving="next"] button[data-arrow="next"] img {
  --arrow-shift: var(--arrow-travel);
  opacity: 1;
  filter: drop-shadow(0 0 3px rgb(191 220 255 / .8)) drop-shadow(0 0 7px rgb(115 164 255 / .6));
}

@media (hover: hover) and (pointer: fine) {
  .roblox-recommendation-carousel-controls button:enabled:hover img {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roblox-recommendation-carousel-controls img {
    transform: rotate(var(--arrow-angle));
    transition: none;
  }
}

.roblox-recommendation-carousel .roblox-recommendation-carousel-track {
  --slide-width: min(74cqw, 360px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide-width);
  gap: 10px;
  margin: 0 calc(-1 * var(--roblox-reader-gutter));
  padding: 0 var(--roblox-reader-gutter) 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--roblox-reader-gutter);
  scrollbar-width: none;
  list-style: none;
}

.roblox-recommendation-carousel-track::-webkit-scrollbar { display: none; }

.roblox-recommendation-carousel .roblox-recommendation-carousel-track > li {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.roblox-recommendation-carousel-track[data-diagram] button {
  aspect-ratio: 1;
  background: #000;
}

.roblox-recommendation-slide-title {
  display: block;
  margin-block-start: 5px;
  color: #dce5f3;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.roblox-recommendation-chart { margin-block-start: 16px; }

.roblox-recommendation-figure figcaption,
.roblox-recommendation-zoom figcaption,
.content-reader-body .roblox-recommendation-note {
  margin-top: 8px;
  color: #b7c3d2;
  font-size: 13px;
  line-height: 1.55;
}

.roblox-recommendation-copy a {
  color: #bad5ff;
  text-underline-offset: .18em;
}

.roblox-recommendation-pairs-panel {
  margin: 12px 0 0;
  padding: 16px clamp(14px, 4.8cqw, 20px);
}

.roblox-recommendation-pairs {
  display: grid;
  gap: 16px;
  margin: 0;
}

.roblox-recommendation-pairs dt {
  color: #f0f1f3;
  font-weight: 700;
  line-height: 1.3;
}

.roblox-recommendation-pairs dd {
  margin: 3px 0 0;
  color: #c2c8d0;
  line-height: 1.56;
}

.roblox-recommendation-table-footer {
  display: grid;
  gap: 4px;
  margin-block-start: 14px;
}

.roblox-recommendation-table-footer .roblox-recommendation-note {
  margin: 0;
}

.content-reader-body .roblox-recommendation-table-credit {
  margin: 0;
  color: #aab5c4;
  font-size: 12px;
  line-height: 1.5;
}

.roblox-recommendation-table-credit .roblox-case-citation {
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.roblox-recommendation-table-credit a {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
}

.roblox-recommendation-steps {
  padding-inline-start: 24px;
}

.roblox-recommendation-steps li + li {
  margin-top: 12px;
}

.roblox-recommendation-copy .roblox-case-ai h3 {
  margin: 0 0 8px;
}

.roblox-recommendation-practice {
  margin-block: 24px;
}

.roblox-recommendation-sources {
  margin-block: 20px 28px;
  border: 1px solid #292e36;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 0% 0%, rgb(169 192 223 / .08), transparent 68%),
    linear-gradient(140deg, #15181d, #101216 78%);
  box-shadow: inset 0 1px 0 rgb(235 242 255 / .035);
}

.roblox-guide-case:has(.roblox-recommendation-sources) { overflow-anchor: none; }

.roblox-sources-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: #f0f3f7;
  font: 700 14px / 1.4 Inter, sans-serif;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease;
}

.roblox-sources-toggle:active { background-color: rgb(255 255 255 / .04); }
.roblox-sources-toggle:focus-visible { outline: 2px solid #adc5e3; outline-offset: -3px; }

.roblox-sources-toggle::before {
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #aab9ca;
  border-bottom: 1.5px solid #aab9ca;
  transform: rotate(-45deg);
  transition: transform 200ms ease;
  content: '';
}

.roblox-sources-toggle[aria-expanded="true"]::before { transform: translateY(-2px) rotate(45deg); }

.roblox-sources-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow-anchor: none;
  transition: grid-template-rows 230ms cubic-bezier(.24,.62,.28,1), opacity 170ms ease;
}

.roblox-sources-toggle[aria-expanded="true"] + .roblox-sources-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.roblox-sources-clip {
  min-block-size: 0;
  overflow: hidden;
}

.roblox-layout-sources {
  --purchase-disclosure-duration: 300ms;
  --purchase-disclosure-ease: cubic-bezier(.23, .72, .28, 1);
}

.roblox-layout-sources > .roblox-sources-panel {
  opacity: 1;
  transition: grid-template-rows var(--purchase-disclosure-duration) var(--purchase-disclosure-ease);
}

.roblox-layout-sources[data-disclosure-instant] > .roblox-sources-panel { transition: none; }

.roblox-sources-clip > .roblox-case-sources {
  padding: 0 14px 10px 35px;
}

@media (prefers-reduced-motion: reduce) {
  .roblox-sources-toggle,
  .roblox-sources-toggle::before,
  .roblox-layout-sources > .roblox-sources-panel,
  .roblox-sources-panel { transition: none; }
}

.roblox-guide .roblox-recommendation-sources.roblox-compositor-sources { transition: none; }

.roblox-compositor-sources > .roblox-sources-panel {
  position: relative;
  display: block;
  grid-template-rows: none;
  height: 0;
  overflow: hidden;
  opacity: 1;
  transition: none;
}

.roblox-compositor-sources > .roblox-sources-toggle[aria-expanded="true"] + .roblox-sources-panel {
  grid-template-rows: none;
  height: auto;
  opacity: 1;
}

.roblox-compositor-sources > .roblox-sources-toggle::before { transition: none; }
.roblox-compositor-sources[data-roblox-fold-raster] > .roblox-sources-toggle,
.roblox-compositor-sources[data-roblox-fold-raster] > .roblox-sources-panel > .roblox-sources-clip {
  transform: translateZ(0);
}
.roblox-sources-toggle[data-roblox-fold-control]::before { content: none; }
.roblox-fold-chevron { flex: none; pointer-events: none; }

.roblox-fold-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

.roblox-fold-window > .roblox-sources-clip {
  width: 100%;
  will-change: transform;
}

.roblox-recommendation-zoom {
  width: min(1080px, calc(100% - 12px));
  max-height: calc(100dvh - 24px);
  padding: 8px;
  color: #f3f5f8;
  font: 400 14px / 1.5 Inter, sans-serif;
}

.roblox-recommendation-zoom figure {
  margin: 0;
}

.roblox-recommendation-zoom-close {
  display: block;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 8px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1c2430;
  font-size: 24px;
}

.roblox-recommendation-zoom-view {
  max-height: 70dvh;
  overflow: auto;
  overscroll-behavior: contain;
}

.roblox-recommendation-zoom-view button[aria-pressed="true"] {
  width: max-content;
  cursor: zoom-out;
}

.roblox-recommendation-zoom-view button[aria-pressed="true"][data-crop] {
  width: max(100%, var(--crop-natural-width));
}

.roblox-recommendation-zoom-view button[aria-pressed="true"]:not([data-crop]) img {
  width: auto;
  max-width: none;
}

.roblox-guide-paid-navigation { margin-block-start: 28px; }

.roblox-step-card-note {
  display: block;
  margin-block-start: 4px;
  color: #bcbcbc;
  font: 500 11px / 1.4 'Roblox Purchase Inter', Inter, sans-serif;
  text-transform: none;
}

.roblox-guide-paid-navigation {
  display: grid;
  gap: 8px;
}

.roblox-guide-paid-navigation .roblox-paid-step-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-content: center;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #39565a;
  border-radius: 10px;
  background: linear-gradient(140deg, #203135, #131a1d);
  color: #ddf5f5;
  font: 700 13px / 1.4 'Roblox Purchase Inter', Inter, sans-serif;
  text-align: center;
}

.roblox-guide-paid-navigation .roblox-case-previous {
  border-color: #3a3b3d;
  background: linear-gradient(140deg, #1b1c1e, #101112);
  color: #eee;
}

.roblox-paid-step-link > span:first-child {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.roblox-paid-step-link > span:empty { display: none; }
.roblox-paid-step-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.roblox-guide-course-offer { padding: 0 12px 12px; }
[data-course-offer-anchor] > .roblox-guide-course-offer {
  margin-inline: calc(-1 * var(--roblox-reader-gutter, 20px));
}
:is(#roblox-guide, #roblox-builder-guide) .roblox-guide-summary[data-cover] > .roblox-guide-card-face { width: 100%; }

.roblox-step-continuation-surface,
.roblox-step-continuation-frame,
.roblox-step-continuation-label,
.roblox-step-continuation-background {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.roblox-step-continuation-frame { z-index: 1; overflow: hidden; }
.roblox-step-continuation-background { pointer-events: none; }
.roblox-step-continuation-label { z-index: 3; }
.roblox-step-continuation-surface { z-index: 4; overflow: hidden; }
.roblox-step-continuation-card { pointer-events: none; }
