/* /test3 responsive hero carousel plus mobile shortcut and LIVE refinements. */

/* Desktop uses the same three-slide state machine while retaining its original hero sizing. */
@media (min-width: 901px) {
  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__slides,
  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__slide {
    position: absolute;
    inset: 0;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__slide {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .45s ease;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
    transform: translateX(-50%);
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__dot {
    width: 7px !important;
    min-width: 0 !important;
    height: 7px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .48) !important;
    box-shadow: none !important;
    cursor: pointer;
    pointer-events: auto;
    transition: width .2s ease, background-color .2s ease;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__dot.is-active {
    width: 22px !important;
    background: #c7ff32 !important;
    box-shadow: 0 0 11px rgba(199, 255, 50, .38) !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__dot:focus-visible {
    outline: 2px solid #8ffcff !important;
    outline-offset: 3px !important;
  }
}

@media (max-width: 900px) {
  /* Shortcut row: filter mark + floor numbers only. */
  html.gm-test2-page body.gm-test2-motion .floor-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html.gm-test2-page body.gm-test2-motion .floor-nav > .floor-nav__item,
  html.gm-test2-page body.gm-test2-motion .floor-nav #gm2-catsbtn {
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html.gm-test2-page body.gm-test2-motion .floor-nav > .floor-nav__item {
    grid-row: 1 !important;
  }

  html.gm-test2-page body.gm-test2-motion .floor-nav > .floor-nav__item:nth-of-type(2) { grid-column: 2 !important; }
  html.gm-test2-page body.gm-test2-motion .floor-nav > .floor-nav__item:nth-of-type(3) { grid-column: 3 !important; }
  html.gm-test2-page body.gm-test2-motion .floor-nav > .floor-nav__item:nth-of-type(4) { grid-column: 4 !important; }

  html.gm-test2-page body.gm-test2-motion .floor-nav #gm2-catsbtn {
    grid-row: 1 !important;
    grid-column: 1 !important;
  }

  html.gm-test2-page body.gm-test2-motion .floor-nav__copy,
  html.gm-test2-page body.gm-test2-motion #gm2-catsbtn .gm2-sc-lb,
  html.gm-test2-page body.gm-test2-motion .floor-nav__icon .gm2-floor-ico,
  html.gm-test2-page body.gm-test2-motion .floor-nav__item > svg {
    display: none !important;
  }

  html.gm-test2-page body.gm-test2-motion .floor-nav__icon,
  html.gm-test2-page body.gm-test2-motion #gm2-catsbtn .gm2-sc-box {
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border: 1px solid rgba(73, 57, 112, .18) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #6254a8 !important;
    box-shadow: 0 5px 16px rgba(31, 22, 55, .06) !important;
    transform: none !important;
  }

  html.gm-test2-page body.gm-test2-motion .floor-nav__icon .gm2-floor-num {
    display: block !important;
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-catsbtn .gm2-sc-box svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    transform: none !important;
  }

  /* Light-mode selection is simple and high-contrast. */
  html:not(.gm-dark).gm-test2-page body.gm-test2-motion .floor-nav__item--active .floor-nav__icon {
    border-color: #6d3bd1 !important;
    background: #6d3bd1 !important;
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(109, 59, 209, .2) !important;
  }

  /* Dark-mode selection keeps the existing fluorescent neon cue. */
  html.gm-dark.gm-test2-page body.gm-test2-motion .floor-nav__icon,
  html.gm-dark.gm-test2-page body.gm-test2-motion #gm2-catsbtn .gm2-sc-box {
    border-color: rgba(111, 77, 190, .55) !important;
    background: #131122 !important;
    color: #b7abfa !important;
    box-shadow: none !important;
  }

  html.gm-dark.gm-test2-page body.gm-test2-motion .floor-nav__item--active .floor-nav__icon {
    border-color: #d9ff5e !important;
    background: linear-gradient(180deg, #d9ff5e, #b7ef23) !important;
    color: #141221 !important;
    box-shadow: 0 0 0 2px rgba(217, 255, 94, .13), 0 0 20px rgba(199, 255, 50, .3) !important;
  }

  /* LIVE ticker: retain the word "레어", remove only its enclosing pill. */
  html.gm-test2-page body.gm-test2-motion #gm-live-feed.gm2-ticker .gm2-ticker-track .gm-feed-item i {
    display: inline !important;
    min-width: 0 !important;
    margin: 0 3px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #a61d83 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    text-shadow: none !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm-live-feed.gm2-ticker .gm-feed-item i::before,
  html.gm-test2-page body.gm-test2-motion #gm-live-feed.gm2-ticker .gm-feed-item i::after {
    content: none !important;
    display: none !important;
  }

  html.gm-dark.gm-test2-page body.gm-test2-motion #gm-live-feed.gm2-ticker .gm2-ticker-track .gm-feed-item i {
    color: #ff4fd8 !important;
    text-shadow: 0 0 8px rgba(255, 79, 216, .45) !important;
  }

  /* Three-slide mobile hero. */
  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel,
  html.gm-dark.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    width: 100% !important;
    height: clamp(300px, 46vw, 380px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .11) !important;
    border-radius: 18px !important;
    background: #050718 !important;
    box-shadow: 0 12px 30px rgba(5, 3, 18, .2) !important;
  }

  html:not(.gm-dark).gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel {
    border-color: rgba(35, 27, 61, .14) !important;
    box-shadow: 0 12px 28px rgba(44, 28, 74, .13) !important;
  }

  .gm-mobile-carousel__slides,
  .gm-mobile-carousel__slide {
    position: absolute;
    inset: 0;
  }

  .gm-mobile-carousel__slide {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
  }

  .gm-mobile-carousel__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .45s ease;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__image,
  html.gm-dark.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm-mobile-carousel__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: saturate(1.02) contrast(1.03) brightness(.92) !important;
    transform: none !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__shade,
  html.gm-dark.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__shade {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background:
      linear-gradient(90deg, rgba(4, 6, 24, .98) 0 31%, rgba(4, 6, 24, .92) 48%, rgba(4, 6, 24, .46) 73%, rgba(4, 6, 24, .12) 100%),
      linear-gradient(180deg, rgba(4, 6, 24, .1), rgba(4, 6, 24, .3)) !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__content {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 66% !important;
    max-width: 66% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 20px 18px 34px !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__eyebrow {
    max-width: 100% !important;
    padding: 5px 10px 5px 9px !important;
    overflow: hidden !important;
    font-size: 9px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel h1 {
    margin-top: 10px !important;
    font-size: clamp(22px, 6.2vw, 30px) !important;
    line-height: 1.08 !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel p {
    display: -webkit-box !important;
    max-width: 100% !important;
    margin-top: 9px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    color: rgba(239, 238, 255, .82) !important;
    font-size: 11px !important;
    line-height: 1.48 !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__actions {
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 7px !important;
    margin-top: 13px !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__actions button {
    width: auto !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__actions button:nth-child(2) {
    display: none !important;
  }

  .gm-mobile-carousel__dots {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
  }

  .gm-mobile-carousel__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition: width .2s ease, background-color .2s ease;
  }

  .gm-mobile-carousel__dot.is-active {
    width: 18px;
    background: #c7ff32;
    box-shadow: 0 0 10px rgba(199, 255, 50, .36);
  }

  .gm-mobile-carousel__dot:focus-visible {
    outline: 2px solid #8ffcff;
    outline-offset: 3px;
  }
}

@media (max-width: 520px) {
  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel,
  html.gm-dark.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel {
    aspect-ratio: 6 / 5 !important;
    height: auto !important;
    min-height: 300px !important;
    max-height: none !important;
    margin: 6px 0 10px !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel .gm2-hero__content {
    width: 68% !important;
    max-width: 68% !important;
    padding: 17px 15px 32px !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel h1 {
    font-size: clamp(21px, 6.4vw, 25px) !important;
  }

  html.gm-test2-page body.gm-test2-motion #gm2-hero.gm-mobile-carousel p {
    font-size: 10.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-mobile-carousel__slide,
  .gm-mobile-carousel__dot {
    transition: none !important;
  }
}
