/* Original artwork and surface styles from Home2MobileTopicFeed.module.css.
   The standalone tile grid is defined at the end of this file. */
@font-face {
  font-family: "Home Topic Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/inter-latin-900-normal.woff2') format('woff2');
}

@font-face {
  font-family: "Preview Badge Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/inter-latin-800-normal.woff2') format('woff2');
}

  .rail {
    position: relative;
    margin-block-start: 12px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    gap: 10px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / .11);
    border-radius: 23px;
    background:
      radial-gradient(ellipse at 22% 0%, rgb(255 255 255 / .045), transparent 62%),
      linear-gradient(150deg, rgb(12 12 12 / .9), rgb(0 0 0 / .88) 58%, rgb(4 4 4 / .94));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .035), 0 10px 24px rgb(0 0 0 / .42);
    -webkit-backdrop-filter: blur(20px) saturate(.25);
    backdrop-filter: blur(20px) saturate(.25);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: 8px;
    /* Browsing stays where the finger leaves it; selection requires a tap. */
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
  }

  .rail::-webkit-scrollbar {
    display: none;
  }

  .railExtent {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    padding: 8px;
    overflow: clip;
  }

  .railTrack {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: max-content;
    gap: 10px;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .topic {
    position: relative;
    z-index: 1;
    isolation: isolate;
    flex: 0 0 auto;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 13px 2px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #888;
    font: 400 24px/1 "Just Me Again Down Here", "Mynerve", "Comic Sans MS", cursive;
    text-transform: uppercase;
    white-space: nowrap;
    scroll-snap-align: center;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Interpolating inherited color rerasterizes the SVG-filtered artwork on
       every frame. Selection color changes once; only the glass/pan animate. */
    transition: none;
  }

  .selection {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 0;
    height: 44px;
    border: 1px solid rgb(255 255 255 / .13);
    border-radius: 17px;
    background: linear-gradient(160deg, rgb(255 255 255 / .085), rgb(255 255 255 / .018));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .035), 0 2px 8px rgb(0 0 0 / .24);
    opacity: 0;
    overflow: hidden;
    transform-origin: 0 0;
    will-change: transform;
    pointer-events: none;
  }

  .selectionGlow,
  .selectionSheen {
    position: absolute;
    pointer-events: none;
    opacity: 0;
  }

  .selectionGlow {
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(ellipse at 50% 0%, rgb(226 255 244 / .24), transparent 70%),
      linear-gradient(145deg, rgb(255 255 255 / .09), transparent 60%);
    box-shadow: inset 0 0 0 1px rgb(233 255 248 / .3), inset 0 1px 12px rgb(220 255 239 / .12);
  }

  .selectionSheen {
    inset: -30% -100%;
    background: linear-gradient(112deg, transparent 39%, rgb(255 255 255 / .025) 45%, rgb(239 255 249 / .24) 50%, rgb(255 255 255 / .035) 55%, transparent 61%);
    transform: translate3d(-42%, 0, 0);
  }

  .tile {
    container-type: inline-size;
    flex: 0 0 clamp(148px, 42vw, 186px);
    width: clamp(148px, 42vw, 186px);
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1236 / 1208;
    padding: 0;
    overflow: hidden;
    border-radius: 9.385% / 9.603%;
    background: #040505;
    text-align: left;
  }

  .allTopic {
    align-self: stretch;
    flex: 0 0 96px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: linear-gradient(-75deg, #040505, #0e0e0e);
    font: 900 20px / 1 "Home Topic Inter", "Inter", sans-serif;
  }

  .allTopicLabel {
    display: inline-block;
    transform: rotate(-90deg);
  }

  .tileBackdrop {
    position: absolute;
    z-index: 0;
    left: -15.615%;
    top: -10.017%;
    width: 162.945%;
    height: 117.467%;
    background: linear-gradient(-74.75983045306972deg, #040505 24.753%, #0e0e0e 104.47%);
    pointer-events: none;
  }

  .tileLabel {
    position: absolute;
    display: block;
    margin: 0;
    color: inherit;
    font: 900 10.356cqw / normal "Home Topic Inter", "Inter", sans-serif;
    letter-spacing: normal;
    white-space: nowrap;
    pointer-events: none;
  }

  .tileLayer {
    display: contents;
  }

  .tileComposition {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .tileFilterDefs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
  }

  .tileImage,
  .tileImageCrop {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
    transform-origin: center;
  }

  .tileImage {
    object-fit: cover;
  }

  .tileNativeBurn {
    display: none;
  }

  /* WebKit cannot consistently filter HTML with local SVG image sources.
     Its native darkening blend keeps the original artwork visible; other
     engines retain Figma's exact arithmetic blend. */
  @supports (mix-blend-mode: plus-darker) {
    .tileComposition {
      filter: none !important;
    }

    .tileNativeBurn {
      display: block;
      mix-blend-mode: color-burn;
    }
  }

  .tileImageCrop {
    overflow: hidden;
    mix-blend-mode: plus-lighter;
  }

  .tileCropImage {
    position: absolute;
    top: 0;
    left: -0.02%;
    width: 100.04%;
    height: 113.36%;
    max-width: none;
    pointer-events: none;
  }

  .tileVectors {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }

  .topic[aria-pressed="true"],
  .topic[data-home2-topic-highlighted="true"] {
    color: #f5f5f5;
  }

  .rail:has([data-home2-topic-highlighted="true"]) .topic[aria-pressed="true"]:not([data-home2-topic-highlighted="true"]) {
    color: #888;
  }

  .topic:focus-visible {
    outline: 2px solid rgb(255 255 255 / .7);
    outline-offset: -3px;
  }

  .topic:active {
    color: #ffffff;
  }

/* Windows-style tile layout, with the source artwork kept in square frames. */
.root {
  max-width: 880px;
}

.rail {
  display: block;
  min-height: 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  overscroll-behavior-x: auto;
  scroll-snap-type: none;
  touch-action: auto;
}

.railExtent {
  --tile-bleed: 8px;
  display: block;
  width: 100%;
  max-width: 588px;
  margin-inline: auto;
  padding: var(--tile-bleed);
  overflow: visible;
  container-type: inline-size;
}

.railTrack {
  --tile-gap: 10px;
  --tile-size: calc((100cqw - var(--tile-gap)) / 2);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 4px;
  transform: none;
  will-change: auto;
}

.home-preview-rail {
  min-width: 0;
  margin: -11px -5px 7px;
  padding: 11px 5px 5px;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-inline: 5px;
}

.home-preview-rail::-webkit-scrollbar { display: none; }

.home-preview-track {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.9cqw, 17px);
  inline-size: max-content;
}

.home-preview-rail[data-dragging],
.home-preview-rail[data-dragging] .home-preview-tile {
  cursor: grabbing;
  user-select: none;
}

.home-preview-tile {
  position: relative;
  flex: 0 0 clamp(104px, 24cqw, 142px);
  min-width: 0;
  aspect-ratio: 708 / 253;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(12px, 2.8cqw, 17px);
  background: linear-gradient(to right, #000, #111);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.home-preview-art {
  position: absolute;
  display: block;
  pointer-events: none;
}

.home-preview-glitch-wordmark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 93.0791%;
  aspect-ratio: 659 / 124;
  overflow: hidden;
  border-radius: 9.4082% / 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.home-preview-glitch-wordmark .home-preview-art {
  top: -53.125%;
  left: 0;
  width: 117.14%;
  height: 206.25%;
}

.home-preview-tile--promtexe .home-preview-art {
  top: 50%;
  left: 50%;
  width: 79.2373%;
  height: auto;
  transform: translate(-50%, -50%);
}

.home-preview-tile--vi {
  overflow: visible;
}

.gta-vi-icon {
  position: absolute;
  display: block;
  pointer-events: none;
}

.gta-vi-icon > img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-preview-tile--vi .gta-vi-icon {
  top: 50%;
  left: 7.2034%;
  width: 32.6271%;
  height: 66.4032%;
  transform: translateY(-50%);
}

.home-preview-guide-wordmark {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 36%;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.home-preview-vi-light,
.gta-guide-purchase-glow {
  --vi-glow-pink: #fb11ac;
  --vi-glow-violet: #6361b3;
  opacity: .54;
  animation: home-preview-vi-breathe 7.2s ease-in-out infinite;
  pointer-events: none;
}

.home-preview-vi-light {
  --vi-glow-gradient: linear-gradient(to bottom, var(--vi-glow-pink), var(--vi-glow-violet) 32.6923%, #020202);
  position: absolute;
  inset: 0;
}

.home-preview-vi-light::before,
.home-preview-vi-light::after {
  position: absolute;
  background: var(--vi-glow-gradient);
  content: '';
}

.home-preview-vi-light::before {
  inset: -22% -24%;
  opacity: .44;
  -webkit-mask-image: radial-gradient(ellipse, #000 15%, transparent 69%);
  mask-image: radial-gradient(ellipse, #000 15%, transparent 69%);
}

.home-preview-vi-light::after {
  inset: 0;
  opacity: .82;
  -webkit-mask: url('/assets/home-preview/vi-mask.png') center / 100% 100% no-repeat;
  mask: url('/assets/home-preview/vi-mask.png') center / 100% 100% no-repeat;
}

.home-preview-tile[data-preview-source] .home-preview-vi-light { animation-play-state: paused; }

@keyframes home-preview-vi-breathe {
  0%, 100% { opacity: .32; }
  50% { opacity: .8; }
}

/* The site notification pill, scaled to the smaller preview card. */
.home-preview-new {
  position: absolute;
  z-index: 1;
  top: -8px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 10.5px;
  font: 800 10px/1 "Preview Badge Inter", Inter, sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .98);
  background: rgba(31, 31, 33, .98);
  box-shadow: 0 8px 12px -6px rgba(0, 0, 0, .9), 0 2px 5px rgba(0, 0, 0, .5);
  transform: rotate(-4deg);
  animation: home-preview-new-tilt 11s ease-in-out infinite;
  pointer-events: none;
}

.home-preview-new::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 0 2px rgb(255 255 255 / .85), 0 0 5px rgb(255 255 255 / .45);
  opacity: .2;
  animation: home-preview-new-glow 6.6s ease-in-out infinite;
  content: attr(data-label);
}

.home-preview-tile[data-preview-source] .home-preview-new,
.home-preview-tile[data-preview-source] .home-preview-new::after { animation-play-state: paused; }

@keyframes home-preview-new-tilt {
  0%, 10%, 100% { transform: rotate(-4deg); }
  52%, 60% { transform: rotate(2deg); }
}

@keyframes home-preview-new-glow {
  0%, 100% { opacity: .12; }
  50% { opacity: .72; }
}

.home-preview-tile[data-preview-source] { visibility: hidden; }

.home-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.home-preview::backdrop { background: transparent; }

.home-preview-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: #080808;
  transform-origin: top left;
}

.home-preview-back {
  position: absolute;
  top: calc(8px + max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  left: calc(8px + max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px)) + var(--tg-content-safe-area-inset-left, 0px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
}

.home-preview-back::before {
  width: 11px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
  content: "";
}

.home-preview-copy { width: min(100%, 36ch); text-align: center; }
.home-preview-copy h2 { margin: 0 0 8px; font: 900 24px/1.1 'Home Topic Inter', Inter, sans-serif; }
.home-preview-copy p { margin: 0; font-size: 14px; line-height: 1.55; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: var(--tile-size);
  gap: var(--tile-gap);
}

.tile-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tile-carousel-viewport {
  display: flex;
  /* Keep the tiles aligned with the lower row and leave room for their glow. */
  margin: calc(-1 * var(--tile-bleed));
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.tile-carousel-viewport::-webkit-scrollbar { display: none; }

.tile-carousel-viewport[data-dragging] { scroll-snap-type: none; }

.tile-carousel-viewport[data-dragging],
.tile-carousel-viewport[data-dragging] .tile-face {
  cursor: grabbing;
  user-select: none;
}

.tile-carousel-viewport .topic.tile,
.tile-carousel-viewport .tile-face {
  touch-action: pan-x pan-y;
}

/* Only the full-width pages are snap points in this carousel. */
.tile-carousel-viewport .topic.tile {
  scroll-snap-align: none;
}

.tile-carousel-viewport .tile-back-content {
  overscroll-behavior-x: auto;
}

.tile-carousel-page {
  flex: 0 0 100%;
  min-width: 0;
  padding: var(--tile-bleed);
  scroll-snap-align: start;
  grid-template-rows: repeat(2, var(--tile-size));
  grid-template-areas:
    "tall first"
    "tall second";
}

.tile-carousel-page--mirrored {
  grid-template-areas:
    "first tall"
    "second tall";
}

.tile-carousel-page > :nth-child(1) { grid-area: tall; }
.tile-carousel-page > :nth-child(2) { grid-area: first; }
.tile-carousel-page > :nth-child(3) { grid-area: second; }

.aliens-tile {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background:
    radial-gradient(ellipse 36% 35% at 50% 62%, rgb(0 0 0 / .9) 52%, rgb(0 0 0 / .62) 74%, transparent),
    radial-gradient(ellipse 50% 43% at 50% 62%, rgb(255 255 255 / .055), transparent),
    linear-gradient(145deg, #111, #070707 72%);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.aliens-tile:focus-visible {
  outline: 2px solid rgb(255 255 255 / .6);
  outline-offset: -3px;
}

.aliens-tile::before {
  position: absolute;
  inset: auto 19% 5%;
  height: 14%;
  background: radial-gradient(ellipse closest-side, #000 24%, rgb(0 0 0 / .67) 56%, transparent);
  content: '';
  pointer-events: none;
}

.aliens-tile-label {
  position: absolute;
  inset: 11.5% 8% auto;
  z-index: 2;
  display: grid;
  gap: 2px;
  text-align: center;
}

.aliens-tile-title {
  color: #fff;
  font: 400 clamp(12px, 7.65cqw, 22px) / 1.05 'Home Article Vina Sans', sans-serif;
  text-transform: uppercase;
  text-shadow: 0 -.21em .46em rgb(255 255 255 / .29);
}

.aliens-tile-byline {
  color: rgb(255 255 255 / .68);
  font: 500 clamp(10px, 6cqw, 14px) / 1.2 system-ui, sans-serif;
  letter-spacing: .01em;
}

.aliens-tile-artwork {
  position: absolute;
  inset: 21% 13% auto;
  z-index: 1;
  display: block;
  width: 74%;
  height: auto;
  mask-image: radial-gradient(ellipse farthest-corner, #000 55%, transparent 70%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .aliens-tile-artwork {
    animation: aliens-tile-lift 7s ease-in-out infinite;
  }

  .aliens-tile::before {
    animation: aliens-tile-shadow 7s ease-in-out infinite;
  }
}

@keyframes aliens-tile-lift {
  0%, 12%, 88%, 100% { transform: none; }
  50% { transform: translateY(-2px) scale(1.035); }
}

@keyframes aliens-tile-shadow {
  0%, 12%, 88%, 100% { transform: none; opacity: 1; }
  50% { transform: scaleX(1.07); opacity: .82; }
}

:root:has(.paid-club-dialog[open]) { overflow-y: hidden; }
:root:has(.paid-club-dialog[open][data-preserve-scrollbar]) { scrollbar-gutter: stable; }

.paid-club-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding:
    calc(12px + max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px))
    calc(12px + max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px)) + var(--tg-content-safe-area-inset-right, 0px))
    calc(12px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px))
    calc(12px + max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px)) + var(--tg-content-safe-area-inset-left, 0px));
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}

.paid-club-dialog[open] {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
}

.paid-club-dialog::backdrop { background: transparent; }

.paid-club-shade {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .82);
  pointer-events: none;
}

.paid-club-panel {
  --paid-club-radius: clamp(26px, 11.5vw, 48px);
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
  max-height: 100%;
  aspect-ratio: 7 / 12;
  border-radius: var(--paid-club-radius);
  background:
    radial-gradient(ellipse 100% 56% at 0 0, #0d0d0d, transparent 92%),
    radial-gradient(ellipse 78% 54% at 100% 100%, #090909, transparent 94%),
    linear-gradient(155deg, #060606, #020202 60%, #040404);
  box-shadow: 0 20px 68px rgb(0 0 0 / .64);
  overflow: hidden;
}

.paid-club-top-fade {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 76px;
  border-radius: var(--paid-club-radius) var(--paid-club-radius) 0 0;
  background: linear-gradient(180deg, #080808 15%, rgb(8 8 8 / .9) 56%, transparent);
  opacity: 0;
  pointer-events: none;
}

.paid-club-scroll {
  position: absolute;
  inset: 0;
  overflow: hidden auto;
  border-radius: inherit;
  /* Keep the portrait's composited layers inside the panel while scrolling. */
  clip-path: inset(0 round var(--paid-club-radius));
  overscroll-behavior-y: none;
  touch-action: pan-y;
  scrollbar-width: none;
}

.paid-club-scroll::-webkit-scrollbar { display: none; }
.paid-club-scroll:focus-visible { outline: 2px solid rgb(255 255 255 / .5); outline-offset: -4px; }

.paid-club-hero {
  position: relative;
  aspect-ratio: .94;
  max-height: 64%;
}

.paid-club-heading {
  position: absolute;
  inset: clamp(19px, 6vw, 27px) 68px auto clamp(23px, 7vw, 33px);
  z-index: 1;
  display: grid;
  gap: 2px;
}

.paid-club-heading h2 {
  margin: 0;
  color: #f5f5f5;
  font: 400 clamp(16px, 4.8vw, 21px) / 1.05 'Home Article Vina Sans', sans-serif;
  text-transform: uppercase;
  text-shadow: 0 -2px 9px rgb(255 255 255 / .2);
}

.paid-club-heading p {
  margin: 0;
  color: rgb(255 255 255 / .68);
  font: 500 clamp(10px, 2.75vw, 11.5px) / 1.24 system-ui, sans-serif;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px #000;
}

.paid-club-portrait {
  position: absolute;
  inset: 0;
  container-type: size;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}

.paid-club-portrait-frame {
  position: absolute;
  top: -10%;
  left: 57%;
  width: min(157%, 164cqh);
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.paid-club-portrait::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    radial-gradient(ellipse 54% 22% at 7% 7%, rgb(0 0 0 / .76) 38%, transparent),
    radial-gradient(ellipse 26% 19% at 95% 4%, rgb(0 0 0 / .48), transparent);
}

.paid-club-portrait-frame > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.paid-club-portrait-photo {
  filter: saturate(.62) brightness(.79);
  transform: translate(-.35%, -1.1%);
  opacity: .94;
}

.paid-club-portrait-lines { opacity: 0; mix-blend-mode: screen; }
.paid-club-portrait[data-lines-ready] .paid-club-portrait-photo { opacity: 0; }
.paid-club-portrait[data-lines-ready] .paid-club-portrait-lines { opacity: .88; }

@media (prefers-reduced-motion: no-preference) {
  .paid-club-dialog[open] [data-animate-portrait] img {
    opacity: .9;
    mask-size: 300% 100%;
    mask-repeat: no-repeat;
    animation: paid-club-portrait-reveal 2.45s cubic-bezier(.38, 0, .21, 1) both;
  }

  .paid-club-dialog[open] [data-animate-portrait] .paid-club-portrait-photo {
    mask-image: linear-gradient(104deg, transparent 44%, #000 61%);
  }

  .paid-club-dialog[open] [data-animate-portrait] .paid-club-portrait-lines {
    mask-image: linear-gradient(104deg, #000 45%, transparent 61%);
  }
}

@keyframes paid-club-portrait-reveal {
  0%, 23% { mask-position: 100% 50%; }
  91%, 100% { mask-position: 0% 50%; }
}

.paid-club-story,
.paid-club-contents {
  display: grid;
  padding-inline: clamp(23px, 7vw, 33px);
  color: #c7c7c7;
  font-size: clamp(15px, 4vw, 16px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.paid-club-story { gap: 30px; padding-block: 10px 38px; }

.paid-club-intro-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.paid-club-story section { display: grid; gap: 10px; }
.paid-club-story h3,
.paid-club-contents h3,
.paid-club-contents h4,
.paid-club-story p { margin: 0; }

.paid-club-story h3,
.paid-club-contents h3,
.paid-club-contents h4 {
  color: #f5f5f5;
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.paid-club-story section:first-child h3,
.paid-club-contents > h3 {
  font-size: clamp(23px, 6.7vw, 29px);
  letter-spacing: -.04em;
}

.paid-club-story strong { color: #f5f5f5; }

.paid-club-story .paid-club-story-goal {
  margin-block-start: 4px;
  padding: 15px 17px;
  border-radius: 14px;
  background: linear-gradient(145deg, #151515, #0d0d0d);
  color: #ededed;
}

.paid-club-contents { gap: 12px; padding-bottom: 38px; }
.paid-club-contents > h3 { margin-bottom: 3px; }

.paid-club-contents-group {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-radius: 14px;
  background: linear-gradient(145deg, #151515, #0d0d0d);
}

.paid-club-contents-group dl { display: grid; gap: 14px; margin: 0; }

.paid-club-contents-group :is(dl > div, dd li) {
  position: relative;
  padding-inline-start: 20px;
}

.paid-club-contents-group :is(dl > div, dd li)::before {
  position: absolute;
  inset-block-start: .38em;
  inset-inline-start: 0;
  width: 12px;
  height: 13px;
  background: url('/assets/private-club-subpoint.png') center / contain no-repeat;
  filter: drop-shadow(0 0 2px rgb(255 255 255 / .42));
  content: '';
}

.paid-club-contents-group dt { margin-bottom: 3px; color: #ededed; font-weight: 700; }
.paid-club-contents-group dd { margin: 0; }
.paid-club-contents-group dd p { margin: 0; }
.paid-club-contents-group dd p + p { margin-top: 8px; }

.paid-club-contents-group dd ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.paid-club-contents-group dd li { padding-inline-start: 16px; }
.paid-club-contents-group dd li::before { inset-block-start: .46em; width: 9px; height: 10px; }
.paid-club-contents-group dd strong { color: #ededed; }

.paid-club-subscribe {
  --subscribe-cycle: 6.5s;
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(68%, 224px);
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #181818;
  font: 700 15px / 1.25 Inter, sans-serif;
  text-align: center;
}

.paid-club-subscribe-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(155deg, #fff, #f7f7f7 50%, #e3e3e6);
  pointer-events: none;
}

.paid-club-subscribe:is(:active, [data-pressed]) .paid-club-subscribe-surface {
  filter: brightness(.955);
}

.paid-club-subscribe--compact {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 6px 14px;
  font-size: 12px;
}

.paid-club-subscribe--priced {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-width: min(100%, 162px);
  padding-inline: 12px;
}

.paid-club-subscribe-price {
  justify-self: center;
  color: #59595e;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.paid-club-subscribe-label { white-space: nowrap; }
.paid-club-subscribe-label > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .paid-club-subscribe-surface {
    transition: transform 190ms cubic-bezier(.22, .78, .3, 1), filter 170ms ease-out;
  }

  .paid-club-subscribe:is(:active, [data-pressed]) .paid-club-subscribe-surface {
    transform: translateY(1px) scale(.975);
    transition-duration: 90ms;
  }

  .paid-club-dialog[open] .paid-club-subscribe-surface::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, transparent 23%, rgb(255 255 255 / .9) 50%, transparent 77%);
    animation: paid-club-subscribe-sheen var(--subscribe-cycle) ease-in-out infinite;
    pointer-events: none;
    content: '';
  }

  .paid-club-dialog[open] .paid-club-subscribe-label > span {
    animation: paid-club-subscribe-letter var(--subscribe-cycle) ease-in-out infinite;
    animation-delay: calc(52ms * var(--letter-index));
  }

  .paid-club-subscribe:is(:active, [data-pressed]) .paid-club-subscribe-label > span {
    animation-play-state: paused;
  }
}

@keyframes paid-club-subscribe-sheen {
  0%, 24% { transform: translateX(-100%); }
  49%, 100% { transform: translateX(100%); }
}

@keyframes paid-club-subscribe-letter {
  0%, 31%, 36%, 100% { transform: none; opacity: 1; }
  33.5% { transform: perspective(72px) rotateX(54deg); opacity: .82; }
}

.paid-club-close {
  position: absolute;
  inset: 15px 15px auto auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(19 19 19 / .96);
  color: #d6d6d6;
  -webkit-tap-highlight-color: transparent;
}

.paid-club-close::before,
.paid-club-close::after {
  grid-area: 1 / 1;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  content: '';
}

.paid-club-close::after { transform: rotate(-45deg); }
.paid-club-close:active { background: #252525; }
.paid-club-close:focus-visible { outline: 2px solid rgb(255 255 255 / .6); outline-offset: -3px; }

.tile-placeholder {
  position: relative;
  container-type: inline-size;
  display: grid;
  place-items: center;
  border-radius: 17px;
}

.tile-placeholder > .tile-front {
  transform: none;
  pointer-events: none;
}

.tile-carousel-page--mirrored > .tile-placeholder:last-child .artworkFrame,
.tile-carousel-page--mirrored > .tile-placeholder:last-child .tileBackdrop {
  transform: scaleX(-1);
}

.tile-placeholder-message {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .22em;
  padding-inline: 8px;
  color: #ddd;
  font: 800 clamp(11px, 7.4cqw, 19px) / 1.25 'Preview Badge Inter', Inter, sans-serif;
  text-align: center;
}

.tile-placeholder-dots {
  display: inline-flex;
  gap: .15em;
  transform: translateY(.2em);
}

.tile-placeholder-dots > span {
  width: .19em;
  height: .19em;
  border-radius: 50%;
  background: #f2fbff;
  box-shadow: 0 0 .38em rgb(228 246 255 / .64);
  opacity: .5;
  animation: tile-placeholder-dot-glow 4.8s ease-in-out infinite;
}

.tile-placeholder-dots > span:nth-child(2) { animation-delay: 1.6s; }
.tile-placeholder-dots > span:nth-child(3) { animation-delay: 3.2s; }

@keyframes tile-placeholder-dot-glow {
  0%, 33.33%, 100% { opacity: .5; }
  15% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-placeholder-dots > span { animation: none; }
}

.tile-carousel-pagination {
  --tile-dot-slot: 32px;
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 3px;
}

.tile-carousel-dot {
  display: grid;
  place-items: center;
  width: var(--tile-dot-slot);
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tile-carousel-dot::after {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: #666;
  content: "";
}

.tile-carousel-dot[aria-current="true"]::after {
  width: 16px;
  background: #e8e8e8;
}

@supports selector(:has(*)) {
  .tile-carousel-pagination::after {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 6px;
    border-radius: 6px;
    background: #e8e8e8;
    transform: translate(calc(-50% + (var(--tile-page-progress, 0) - .5) * var(--tile-dot-slot)), -50%);
    pointer-events: none;
    content: '';
  }

  .tile-carousel-dot[aria-current="true"]::after {
    width: 6px;
    background: #666;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-preview-vi-light,
  .gta-guide-purchase-glow,
  .home-preview-new,
  .home-preview-new::after { animation: none; }
}

.topic.tile {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 17px;
  touch-action: pan-y;
}

.artworkFrame {
  position: absolute;
  isolation: isolate;
  display: block;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 1236 / 1208;
  transform: translateY(-50%);
  overflow: hidden;
  border-radius: inherit;
}

/* Filter the continuous background while retaining the artwork's square canvas. */
.artworkFrame:has(.tileCompositionFull) {
  top: 0;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
}

.tileCompositionFull .tileBackdrop {
  inset: 0;
  width: 100%;
  height: 100%;
}

.tileCenteredArtwork {
  position: absolute;
  /* Center without a transform so WebKit blends the eyes with the full backdrop. */
  top: calc(50% - 48.86731391585761cqw);
  left: 0;
  width: 100%;
  aspect-ratio: 1236 / 1208;
}

.tileCompositionFull .tileLabel {
  text-transform: none;
}

/* This tile opens a guide directly. Only the outer entrance moves the artwork. */
.tile-carousel-page > .topic.tile.direct-guide-tile {
  perspective: none;
}

.direct-guide-tile .tile-front {
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transform: none;
}

.roblox-guide.gta-guide {
  --gta-guide-logo-overhang: calc(92 * 100cqw / 1582);
  min-height: max(100vh, var(--guide-viewport-height, 0px), var(--purchase-viewport-height, 0px));
  min-height: max(100dvh, var(--guide-viewport-height, 0px), var(--purchase-viewport-height, 0px));
  padding-block-end: calc(clamp(144px, 22svh, 192px) + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  scroll-margin-block-start: calc(12px + max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
}

.gta-guide-step-view { z-index: 1; }

.gta-guide-step-view[data-step-collapsing] {
  min-height: 0;
  overflow: hidden;
  overflow: clip;
}

.gta-guide > .roblox-guide-toolbar {
  margin-block-end: calc(12px + var(--gta-guide-logo-overhang));
}

.gta-guide-banner {
  position: relative;
  aspect-ratio: 1582 / 349;
  margin: 0;
}

.gta-guide-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(139 * 100cqw / 1582);
  background: #0b0a09;
}

.gta-guide-poster > img {
  position: absolute;
  top: -11.89%;
  left: -.01%;
  width: 100.01%;
  max-width: none;
  height: 152.72%;
}

.gta-guide-banner-logo {
  position: absolute;
  z-index: 1;
  top: calc(-1 * var(--gta-guide-logo-overhang));
  left: 0;
  width: calc(309 * 100% / 1582);
  height: auto;
  pointer-events: none;
}

.gta-guide-masthead .roblox-guide-case,
.gta-guide-masthead .roblox-guide-case-copy {
  background: transparent;
}

.gta-guide .roblox-case-rubric img {
  width: 20px;
}

.artworkFrame:has(> .guide-tile-headline) {
  --guide-tile-art-unit: calc(100cqw / 993);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.gta-tile .gta-vi-icon {
  z-index: 1;
  inset: 0;
  width: 58%;
  aspect-ratio: 231 / 168;
  margin: auto;
}

.guide-tile-headline,
.guide-tile-wordmark,
.guide-tile-caption,
.guide-tile-copyright {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.guide-tile-headline {
  top: calc(638 * 100% / 1981);
  left: calc(64 * 100% / 993);
  width: calc(865 * 100% / 993);
  color: #fff;
  font: 400 calc(76 * var(--guide-tile-art-unit)) / 1.05 'Home Article Vina Sans', sans-serif;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 calc(-16 * var(--guide-tile-art-unit)) calc(35 * var(--guide-tile-art-unit)) rgb(255 255 255 / .29);
}

.guide-tile-wordmark {
  top: calc(1194 * 100% / 1981);
  left: calc(319 * 100% / 993);
  width: calc(399 * 100% / 993);
  height: auto;
  mix-blend-mode: screen;
  mix-blend-mode: plus-lighter;
}

.guide-tile-caption {
  top: calc(1347 * 100% / 1981);
  inset-inline: 8%;
  color: #b7c2c4;
  font: 700 calc(42 * var(--guide-tile-art-unit)) / 1.25 'Home Article Sansation', sans-serif;
  text-align: center;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guide-tile-copyright {
  top: calc(1801 * 100% / 1981);
  left: calc(303 * 100% / 993);
  width: calc(431 * 100% / 993);
  height: auto;
}

.gta-tile > .home-preview-new {
  top: -5px;
  right: auto;
  left: 10px;
}

.newsTileLockup {
  position: absolute;
  z-index: 1;
  inset: 13.5% 0 auto;
  display: grid;
  justify-items: center;
  color: #bcbcbc;
  font: 900 7.15cqw / 1 'Home Topic Inter', Inter, sans-serif;
  letter-spacing: .07em;
  white-space: nowrap;
  pointer-events: none;
}

.newsTileWordmark {
  display: block;
  width: 62%;
  height: auto;
  margin-block-start: -1.5cqw;
}

.robloxTileSummary {
  inset-inline: 5%;
  text-wrap: balance;
}

.robloxTileDollar {
  color: #60ca77;
}

.robloxTileAvatar {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 50%;
  height: auto;
  margin: auto;
  pointer-events: none;
}

.selection {
  will-change: auto;
}


