
.js .fg-scenes.is-live .fg-cards.has-forge .fg-cards__forge{
   width:calc(36px + 80px + 24px );
   height:116px;
}
.js .fg-scenes.is-beside .fg-scene.is-compact .fg-cards.has-forge .fg-card__mark{
   width:56px;
  height:56px;
}
.js .fg-scenes.is-beside .fg-scene .fg-card__body{
      flex: 1 1 auto;
    min-height: 0;
    overflow-y: hidden;
    overscroll-behavior: contain;
}
.js .fg-scenes.is-live .fg-cards.has-forge .fg-card__mark{
  width:80px;
  height:80px;
}
.js .fg-scenes.is-live .fg-cards.has-forge .fg-card__head{
      grid-template-columns: 80px minmax(0,1fr);
}
.js .fg-scenes.is-beside .fg-card{
    display:none;
    flex-direction:column;
    height:100%;
    max-height:560px;
    overflow:hidden;
}
.js .fg-scenes.is-beside .fg-card.is-on{
    display:flex;
}
.js .fg-scenes.is-live .fg-acc:not(.is-shown):hover{
  background:#EFF1F4;
}
.js .fg-scenes.is-live .fg-card__id{
      padding-right: calc(3 * 36px + (3 - 1) * 12px + 24px);
}
.fg-acc.is-shown{
  background:#D1F5EA;
}

.fg-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: clamp(3rem, 7vw, 7rem)
}

.fg-head>h2 {
    grid-column: span 7;
    margin: 0
}

.fg-head__aside {
    grid-column: 9/13;
    align-self: end
}

.fg-scenes {
    display: grid;
    gap: clamp(4rem, 9vw, 9rem)
}

.fg-scene {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    position: relative;
    scroll-margin-top: 2rem
}

.fg-scene__head {
    grid-column: 1/6;
    grid-row: 1
}

.fg-scene__num {
        display: block;
    margin-bottom: 16px;
    color: transparent;
    background-image: linear-gradient(#2D807B,rgba(45,128,123,.45));
    -webkit-background-clip: text;
    background-clip: text;
    
}

.fg-scene__title {
    margin: 0 0 16px;
}

.fg-scene__intro {
    margin: 0
}

.fg-scene__photo {
    grid-column: 7/13;
    grid-row: 1/3;
    position: sticky;
    top: 2rem;
    margin: 0;
    aspect-ratio: 1/1.15;
    overflow: hidden;
    background: #dedbd1
}

.fg-scene__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover
}

.fg-scene__list {
    grid-column: 1/6;
    grid-row: 2;
    list-style: none;
    padding: 0;
}

.fg-scene__list li{
   margin:0;
}

.fg-scene__list li + li{
       border-top: 1px solid #E0E3E8;
}

.fg-acc {
        position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) 24px;
    column-gap: 16px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.fg-acc__icon,
.fg-acc__go,
.fg-acc__x {
    width: 24px;
    height: 24px
}

.fg-acc__go,
.fg-acc__x {
    grid-column: 3;
    grid-row: 1;
}

.fg-acc__go {
    display: block;
}

.fg-acc__x {
    display: none;
    margin-left: -1px;
}

.js .fg-scenes.is-beside .fg-acc.is-shown .fg-acc__go {
    display: none;
}

.js .fg-scenes.is-beside .fg-acc.is-shown .fg-acc__x {
    display: block;
}

.fg-acc__text {
    min-width: 0
}

.fg-acc__name,
.fg-acc__tag {
    display: block
}

.fg-acc__tag {
    margin-top: 4px;
}

.fg-acc__go {
    transition: transform .2s
}

.fg-acc:hover .fg-acc__go,
.fg-acc:focus-visible .fg-acc__go {
    transform: translateX(4px)
}

.fg-cards {
    display: grid;
    grid-template-rows: minmax(0,1fr);
    grid-column: 7/13;
    grid-row: 1/3;
    position: sticky;
    top: 2rem;
    min-height: 560px;
    z-index: 1
}

.fg-card {
    display: none;
    padding: 24px;
    min-height: 100%;
    box-sizing: border-box
}
.fg-card::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top left,#13294B,#06041F);
    pointer-events: none;
}

.fg-card.is-on {
    display: block
}
.js .fg-scenes.is-live .fg-card {
    grid-area: 1/1;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility 0s linear .18s;
}
.js .fg-scenes.is-live .fg-card.is-on {
    visibility: visible;
    opacity: 1;
    transition: opacity .18s ease;
}
.js .fg-scenes.is-live .fg-pop .fg-card:not(.is-on) {
    display: none;
}

.fg-card__head {
        display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    column-gap: 24px;
    align-items: center;
}

.fg-card__mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 auto
}

/* Reference-style forge: the visible icon is drawn by the particle canvas. */
.fg-cards.has-forge .fg-card__icon {
    visibility: hidden;
}

/* Same dark-surface icon role as the reference file. */
.fg-cards.has-forge .fg-card__mark {
    color: #47D7AC;
}

.fg-cards__forge {
    position: absolute;
    inset: 0 auto auto 0;
    z-index: 2;
    width: 100%;
    height: 112px;
    pointer-events: none;
}

.fg-card__icon {
    max-width: 48px;
    max-height: 48px
}

.fg-card__name,
.fg-card__tag,
.fg-card__desc {
    margin-block: 0
}

.fg-card__tag {
    margin-top: .4rem
}

.fg-card__body {
        min-width: 0;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #4E5E78;
}

.js .fg-scenes.is-beside .fg-scene.is-compact .fg-card {
    padding: 24px;
}
.js .fg-scenes.is-beside .fg-scene.is-compact .fg-card__head {
    column-gap: 16px;
}
.js .fg-scenes.is-beside .fg-scene.is-compact .fg-card__body.is-clipped {
    overflow-y: auto;
}
.fg-card__body::-webkit-scrollbar {
    width: 6px;
}
.fg-card__body::-webkit-scrollbar-track {
    margin-top: 32px;
    background: rgba(255,255,255,.1);
    border-radius: 3px;
}
.fg-card__body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.4);
    border-radius: 3px;
}
@supports not selector(::-webkit-scrollbar) {
    .fg-card__body {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.4) rgba(255,255,255,.1);
    }
}
.js .fg-scenes.is-live .fg-card__body.is-clipped {
    -webkit-mask-image: linear-gradient(to bottom,#000 calc(100% - 48px),transparent);
    mask-image: linear-gradient(to bottom,#000 calc(100% - 48px),transparent);
}
.js .fg-scenes.is-beside .fg-cards.is-entering .fg-card.is-on {
    animation: fg-card-rise .42s cubic-bezier(.25,1,.5,1);
}
@keyframes fg-card-rise {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* Reference stage sizing: the card must have a definite stage height before
   its body can overflow and become the clipped scroller. */
@media (min-width:1280px) {
    .js .fg-scenes.is-live .fg-scene {
        min-height: clamp(320px, calc(100vh - 72px - 2 * 16px), 760px);
        grid-template-rows: auto 1fr;
    }
    .js .fg-scenes.is-live .fg-scene > .fg-cards {
        grid-column: 7/13;
        grid-row: 1/3;
        align-self: start;
        position: sticky;
        top: 88px;
        height: clamp(320px, calc(100vh - 72px - 2 * 16px), 760px);
        z-index: 2;
    }
    .js .fg-scenes.is-beside .fg-scene > .fg-cards {
        height: clamp(320px, calc(100vh - 72px - 2 * 16px), 760px);
        min-height: 0;
        grid-template-rows: minmax(0,1fr);
    }
    .js .fg-scenes.is-beside .fg-scene.has-card .fg-scene__photo {
        visibility: hidden;
    }
    .js .fg-scenes.is-beside .fg-scene .fg-card {
        min-height: 0;
        max-height: none;
    }
    .js .fg-scenes.is-beside .fg-scene .fg-card__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: hidden;
        overscroll-behavior: contain;
    }
}

.fg-acc__spec {
        display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 24px;
    row-gap: 24px;
    margin: 28px 0 0;
}
.fg-card .fg-acc__spec > div{
  min-width:0;
}
.fg-card .fg-acc__spec dt.t-label, .fg-card .fg-acc__helps .t-label{
      display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    
}
.fg-card .fg-acc__spec dd{
       margin: 8px 0 0;
  
}
.fg-acc__helps {
    border-top: 1px solid #393451;
    padding-top: 1rem
}

.fg-acc__helps ul {
    padding-left: 1.2rem
}

.fg-card.is-on .fg-card__icon {
    animation: fg-icon-forge 2.8s ease-in-out infinite;
    transform-origin: center
}

.fg-cards.is-paused .fg-card__icon {
    animation-play-state: paused
}

@keyframes fg-icon-forge {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: .78
    }

    50% {
        transform: scale(1.12) rotate(8deg);
        opacity: 1
    }
}

.fg-close,
.fg-expand,
.fg-pause {
    position: absolute;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 1px solid #5b5675;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    cursor: pointer;
    right: calc(24px + 36px + 12px);
    top: 46px;
    bottom: auto;
  backdrop-filter:blur(10px);
  transition:color 160ms ease;
  color:#FFF;
  display:flex;
  align-items:center;
  justify-content:center;
}
/* pause: sirf popup mein neeche-right */
.fg-pop .fg-pause {
  top: auto;
  bottom: 24px;
  right: 36px;
}

/* popup card ke neeche pause ke liye jagah */
.fg-pop .fg-card {
  padding-bottom: calc(24px + 36px + 12px);
}
.fg-close {
    right: 24px;
}

.fg-expand {
    right: calc(24px + 2 * (36px + 12px ));
}

.fg-close[hidden],
.fg-expand[hidden],
.fg-pause[hidden] {
    display: none
}

.fg-pause__on {
    display: none
}

.fg-pause[aria-pressed="true"] .fg-pause__off {
    display: none
}

.fg-pause[aria-pressed="true"] .fg-pause__on {
    display: block
}

.fg-cards__forge {
    display: none
}

.fg-cards.has-forge .fg-cards__forge {
    display: block;
}

.fg-pop {
    width: min(840px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
    z-index: 20
}

.fg-pop[open],
.fg-pop.is-open {
    display: block
}

.fg-pop::backdrop {
    background: rgba(9, 7, 34, .78)
}

.fg-pop .fg-cards {
    max-height: inherit;
    grid-template-rows: minmax(0, 1fr)
}

.fg-pop .fg-card {
    display: flex;
    flex-direction: column;
    min-height: 0
}

.fg-pop .fg-card__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: hidden;
    overscroll-behavior: contain
}

.fg-pop .fg-close {
    display: flex
}

@media(max-width:1279px) {
    .fg-head {
        display: block
    }

    .fg-head__aside {
        margin-top: 1.5rem
    }

    .fg-scene {
        display: grid;
        grid-template-columns: minmax(0,1fr);
        row-gap: 24px;
    }

    .fg-scene__head,
    .fg-scene__photo,
    .fg-scene__list {
        grid-column: 1/-1;
        grid-row: auto;
    }

    .fg-scene__photo {
        display: block;
        position: relative;
        top: auto;
        aspect-ratio: 21/9;
    }

    .fg-scene__head {
        margin-bottom: 1.5rem
    }

    .fg-scene__list {
        margin: 12px -16px 0;
    }

    .js .fg-scenes.is-pop .fg-scene > .fg-cards {
        display: none;
    }

    .fg-card {
        min-height: 0
    }

    .fg-card:not(.is-on) {
        display: none
    }

    .fg-scenes.is-live .fg-card {
        display: none
    }

    .fg-scenes.is-live .fg-card.is-on {
        display: block
    }

    .fg-expand {
        display: flex
    }

   .fg-scene > .fg-cards .fg-pause {
    display: none;
   }
}

/* sirf apna .fg-acc rule yahan rakha hai; card padding / mark / icon size ab neeche 767px block (reference) se aate hain */
@media(max-width:600px) {
    .fg-acc {
        grid-template-columns: 26px 1fr 20px;
        gap: 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    .fg-acc__go {
        transition: none
    }

    .fg-card.is-on .fg-card__icon {
        animation: none
    }
}

.fg-explore.fg-locked {
    overflow: hidden;
    scrollbar-gutter: stable
}

.js .fg-scenes.is-beside .fg-scene .fg-cards.can-expand .fg-expand {
    display: flex
}

.js .fg-scenes.is-live .fg-cards.has-forge .fg-cards__forge {
    width: calc(36px + 80px + 24px);
    height: 116px;
    visibility: hidden;
}

.js .fg-scenes.is-live .fg-cards.has-forge.has-card .fg-cards__forge {
    visibility: visible;
}

/* ===== reference: popup/cards on tablet and mobile (KEEP AT THE VERY END) ===== */
@media (max-width: 1023px) {
  .fg-pop { width: min(840px, calc(100% - 2 * 32px)); }
}

@media (max-width: 767px) {
  .fg-pop {
    width: calc(100% - 2 * 24px);
    max-height: calc(100vh - 2 * 16px);
    max-height: calc(100dvh - 2 * 16px);
  }

  .fg-scene .fg-scene__title { font-size: 20px; line-height: 28px; }
  .fg-scene__photo { aspect-ratio: 16/9; }

  .fg-card { padding: 24px; }
  .fg-card__head { column-gap: 16px; }
  .js .fg-scenes.is-live .fg-cards.has-forge .fg-card__head { grid-template-columns: 56px minmax(0, 1fr); }
  .js .fg-scenes.is-live .fg-cards.has-forge .fg-card__mark { width: 56px; height: 56px; }

  /* title ke liye sirf close button ki jagah (pause neeche hai) */
  .js .fg-scenes.is-live .fg-card__id { padding-right: calc(36px + 24px); }

  /* controls: close icon ke beech mein (24 + 56/2 - 18 = 34), pause neeche */
  .fg-close { right: 24px; top: var(--fg-ctl-top, 34px); }
  .fg-cards .fg-pause { right: 24px; bottom: 16px; }
  .js .fg-scenes.is-live .fg-cards.has-forge .fg-card { padding-bottom: calc(16px + 36px + 12px); }

  .js .fg-scenes.is-live .fg-cards.has-forge .fg-cards__forge {
    width: calc(24px + 56px + 16px);
    height: var(--fg-forge-h, calc(24px + 56px));
  }

  .fg-card .fg-card__name { font-size: 20px; line-height: 28px; }
  .fg-card .fg-card__tag { margin-top: 4px; font-size: 14px; line-height: 22px; }
  .fg-card .fg-acc__spec { grid-template-columns: minmax(0, 1fr); }
}
/* popup: deck normal flow mein, aur dialog ki height se bada na ho */
.fg-pop .fg-cards {
  position: relative;
  top: auto;
  min-height: 0;
  margin: 0;
}

/* popup card: flex column, taaki sirf body scroll ho (reference jaisa) */
.js .fg-scenes.is-live .fg-pop .fg-card.is-on {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.js .fg-scenes.is-live .fg-pop .fg-card__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}