/* English-specific layout and typography overrides. */
@media (min-width: 1200px) {
  .lang-ko .season-hero-copy {
    align-items: center;
  }

  .lang-ko .season-hero-title {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.48rem;
    letter-spacing: 0.096rem;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    text-align: center;
  }

  .lang-ko .hero-part,
  .lang-ko .content-part,
  .lang-ko .copy-decoration,
  .lang-ko .upgrade-part {
    font-family: 'Source Han Serif CN', 'Noto Serif CJK SC', serif;
  }

  .lang-ko .season-hero-subtitle {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    width: 5.4rem;
    font-size: 0.24rem;
    letter-spacing: 0.048rem;
    text-align: center;
  }

  .lang-ko .content-title {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.48rem;
    letter-spacing: 0.06rem;
  }

  .lang-ko .content-subtitle {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    width: 8.5rem;
    max-width: 100%;
    font-size: 0.18rem;
    letter-spacing: 0.015rem;
    white-space: normal;
  }

  .lang-ko .upgrade-subtitle {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    width: 6.669rem;
    font-size: 0.18rem;
    letter-spacing: 0.02rem;
  }

  .lang-ko .img-logo {
    width: 3.14rem;
    height: auto;
    margin-top: 0.13rem;
  }

  .lang-ko .text-official-recharge,
  .lang-ko .text-enter-official,
  .lang-ko .text-promo,
  .lang-ko .nav-item-label {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    letter-spacing: 0.02em;
  }

  .lang-ko .text-official-recharge {
    flex-basis: 0.62rem;
  }

  .lang-ko .recharge-promo {
    flex-basis: 1.72rem;
    width: 1.72rem;
  }

  .lang-ko .text-promo {
    font-size: 0.16rem;
    white-space: nowrap;
  }

  .lang-ko .enter-official {
    flex-basis: 1.75rem;
    gap: 0.1rem;
  }

  .lang-ko .text-enter-official {
    flex-basis: auto;
    font-size: 0.22rem;
  }

  .lang-ko .nav-item-label {
    font-size: 0.2rem;
    letter-spacing: 0;
  }

  .lang-ko .img-navigation-button.is-active:not(.nav-top) > .nav-item-label {
    font-size: 0.25rem;
    margin-left: 0;
  }

  .lang-ko .img-slogan {
    width: 9.88rem;
    max-width: 100%;
  }

  .lang-ko .img-download-game {
    width: 3.8rem;
  }

  .lang-ko .img-more {
    width: 3.8rem;
  }

  .lang-ko .hero-button-content {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.26rem;
    letter-spacing: 0.02rem;
  }

  .lang-ko .img-download-game .hero-button-content {
    transform: translateX(-2%);
  }

  .lang-ko .img-more .hero-button-content {
    transform: translateY(3%);
  }

  .lang-ko .buttons {
    align-items: center;
  }

  .lang-ko .season-hero-copy,
  .lang-ko .content-container,
  .lang-ko .welfare-layout,
  .lang-ko .upgrade-layout {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  }
}

@media (min-width: 1200px) {
  .lang-ko > .sidebar {
    top: 1.69rem;
    bottom: auto;
    left: 0;
    width: 4.13rem;
    height: 9.11rem;
    padding: 0;
    background: url('https://xd.cindy-sites.com/game-activities/torchlight-ss14/com/p1/assets/sidebar-bg@2x.png') center / 100% 100% no-repeat;
  }

  .lang-ko > .sidebar .season-navigation {
    position: absolute;
    top: 0.38rem;
    left: 0.42rem;
    width: 3.25rem;
    gap: 0;
    background: none;
  }

  .lang-ko > .sidebar .nav-item-label {
    visibility: visible;
  }

  .lang-ko > .sidebar .nav-top {
    display: flex;
    width: 3.1rem;
    height: 0.79rem;
    margin: 0;
    padding: 0 0.12rem;
  }

  .lang-ko > .sidebar .img-navigation-button:not(.nav-top) {
    width: 3.1rem;
    height: 0.79rem;
    margin: 0;
    padding: 0 0.12rem;
  }

  .lang-ko > .sidebar .img-navigation-button.nav-1 {
    margin-top: 0.18rem;
  }

  .lang-ko > .sidebar .img-navigation-button.is-active:not(.nav-top) {
    display: flex;
    width: 3.25rem;
    height: 0.83rem;
    margin-block: 0;
    transform: none;
  }

  .lang-ko > .sidebar .img-navigation-button.nav-1.is-active {
    margin-top: 0.18rem;
  }

  .lang-ko > .sidebar .video {
    position: absolute;
    top: 5.82rem;
    left: 0.55rem;
    width: 2.38rem;
    height: 1.5rem;
    min-height: 1.5rem;
    background: url('https://xd.cindy-sites.com/game-activities/torchlight-ss14/com/p1/assets/ko/sidebar-ko@2x.png') -0.55rem -6.1rem / 4.13rem 9.11rem no-repeat;
  }

  .lang-ko > .sidebar .img-video-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .lang-ko > .reward-panel {
    display: block;
    right: 0.38rem;
    bottom: 0.38rem;
    width: 2.46rem;
    height: 7.17rem;
  }

  .lang-ko > .reward-panel .img-reward-details {
    position: relative;
    top: -0.6rem;
    display: block;
    width: 2.46rem;
    height: auto;
    max-height: 7.17rem;
    object-fit: contain;
  }

  .lang-ko > .reward-panel .img-reward-bonus {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: auto;
    height: 1.5rem;
    transform: translateX(-50%);
    opacity: 1;
    cursor: pointer;
  }

  .lang-ko > .reward-panel.is-collapsed .img-reward-details {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.45rem);
  }

  .lang-ko > .reward-panel.is-collapsed .img-reward-bonus {
    opacity: 1;
  }
}

.lang-ko .hero-m-promo {
  display: block;
  width: 1.3rem;
  height: 0.28rem;
  padding: 0;
  object-fit: fill;
}

.lang-ko .hero-m-video,
.lang-ko .hero-m-gift {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.lang-ko .hero-m-slogan {
  max-width: min(7.5rem, 100vw);
}

.lang-ko .hero-m-download,
.lang-ko .hero-m-more {
  width: 4.12rem;
}

  .lang-ko .hero-m-cta .hero-button-content {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.28rem;
    font-weight: 500;
    letter-spacing: 0.02rem;
  }

  .lang-ko .hero-m-download .hero-button-content {
    transform: translate(-2%, 3%);
  }

  .lang-ko .content-carousel-item img,
  .lang-ko .welfare-carousel-item img {
    object-fit: contain;
    background: transparent;
  }

@media (max-width: 1199px) {
  .lang-ko .hero-m-divider {
    margin-left: 0.29rem;
  }

  .lang-ko .hero-m-promo {
    width: 1.3rem;
    height: 0.28rem;
  }

  .lang-ko .hero-m-media {
    width: calc(2.6743882rem + 0.026892rem + 1.661rem);
  }

  .lang-ko .hero-m-video,
  .lang-ko .hero-m-gift {
    color: inherit;
  }

  .lang-ko .hero-m-video {
    width: 2.6743882rem;
    height: 1.7866706rem;
  }

  .lang-ko .hero-m-gift {
    width: 1.661rem;
    height: 1.5297821rem;
  }

  .lang-ko .hero-m-gift:not(.is-docked) {
    margin-top: 0.086058rem;
    margin-left: 0.436892rem;
  }

  .lang-ko .hero-m-slogan {
    width: 9rem;
    max-width: 100vw;
    object-fit: contain;
  }

  .lang-ko .hero-m-download,
  .lang-ko .hero-m-more {
    width: 4.4496rem;
    max-width: 88vw;
  }

  .lang-ko .hero-m-download {
    transform: translateX(0.25rem);
  }

  .lang-ko .hero-m-more {
    transform: translateX(-0.25rem);
  }

  .lang-ko .hero-m-cta .hero-button-content {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.28rem;
    font-weight: 500;
    letter-spacing: 0.02rem;
    white-space: nowrap;
  }

  .lang-ko .hero-m-download .hero-button-content {
    transform: translate(-2%, 3%);
  }

  .lang-ko .hero-m-more .hero-button-content {
    transform: translateY(3%);
  }

  .lang-ko .season-hero-mobile-copy {
    left: 4%;
    width: 92%;
    white-space: normal;
  }

  .lang-ko .season-hero-mobile-title {
    max-width: 100%;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.44rem;
    font-weight: 700;
    line-height: 0.53rem;
    letter-spacing: 0.088rem;
    text-wrap: balance;
  }

  .lang-ko .season-hero-mobile-subtitle {
    max-width: 100%;
    margin-top: 0.06rem;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.24rem;
    line-height: 0.32rem;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .lang-ko .content-title,
  .lang-ko .welfare-title,
  .lang-ko .upgrade-title {
    width: 92%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.38rem;
    line-height: 0.48rem;
    letter-spacing: 0.025rem;
    white-space: normal;
    text-wrap: balance;
  }

  .lang-ko .content-subtitle,
  .lang-ko .welfare-subtitle,
  .lang-ko .upgrade-subtitle {
    width: 90%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    margin-right: auto;
    margin-left: auto;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.21rem;
    line-height: 0.29rem;
    letter-spacing: 0.008rem;
    white-space: normal;
    text-wrap: pretty;
  }

  .lang-ko .content-subtitle {
    text-align: center;
  }

  .lang-ko .welfare-heading {
    width: 92%;
    margin-right: auto;
    margin-left: auto;
  }

  .lang-ko .welfare-subtitle-note {
    display: block;
    margin-top: 0.06rem;
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
    font-size: 0.23958rem;
    line-height: 0.26rem;
    letter-spacing: 0;
    white-space: normal;
  }

  .lang-ko .upgrade-title {
    font-size: 0.42rem;
    line-height: 0.50rem;
  }

  .lang-ko .upgrade-subtitle {
    font-size: 0.21rem;
    line-height: 0.29rem;
  }

  .lang-ko .content-carousel-item img,
  .lang-ko .welfare-carousel-item img {
    object-fit: contain;
    background: transparent;
  }
}

@media (max-width: 1199px) {
  .lang-ko .hero-m-recharge {
    font-size: 0.19rem;
  }

  .lang-ko .gift-modal-reward {
    top: 50%;
    left: 50%;
    width: min(100vw, 96.25vh);
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    transform: translate(-50%, -50%);
  }

}

/* Localized CJK typography */
.lang-ko { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; }
@media (min-width: 1200px) { .lang-ko .season-hero-copy, .lang-ko .content-container, .lang-ko .welfare-layout, .lang-ko .upgrade-layout { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; } .lang-ko .season-hero-title, .lang-ko .season-hero-subtitle, .lang-ko .content-title, .lang-ko .content-subtitle, .lang-ko .upgrade-title, .lang-ko .upgrade-subtitle, .lang-ko .welfare-title, .lang-ko .welfare-subtitle, .lang-ko .hero-button-content { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; } .lang-ko .season-hero-title, .lang-ko .season-hero-subtitle, .lang-ko .content-title, .lang-ko .content-subtitle, .lang-ko .welfare-title, .lang-ko .welfare-subtitle, .lang-ko .welfare-subtitle-note, .lang-ko .upgrade-title, .lang-ko .upgrade-subtitle, .lang-ko .hero-button-content { letter-spacing: 0; } }
@media (max-width: 1199px) {
  .page.lang-ko:is(.is-nav-open, .is-nav-closing) > .sidebar .img-navigation-button.is-active > .nav-item-label {
    margin-left: 0;
  }

  .lang-ko .season-hero-mobile-title { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; font-size: 0.484rem; font-weight: 500; line-height: 0.53rem; letter-spacing: 0.048rem; }
  .lang-ko .season-hero-mobile-subtitle { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; font-size: 0.3168rem; line-height: 0.32rem; letter-spacing: 0; }
  .lang-ko .content-title, .lang-ko .welfare-title, .lang-ko .upgrade-title { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; font-size: 0.528rem; font-weight: 500; line-height: 0.52rem; }
  .lang-ko .content-title { letter-spacing: 0.048rem; }
  .lang-ko .welfare-title, .lang-ko .upgrade-title { letter-spacing: 0.048rem; }
  .lang-ko .content-subtitle, .lang-ko .welfare-subtitle, .lang-ko .upgrade-subtitle { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; font-size: 0.30096rem; font-weight: 400; margin-top: 0.148005rem; line-height: 0.36rem; }
  .lang-ko .content-subtitle { letter-spacing: 0; }
  .lang-ko .welfare-subtitle, .lang-ko .welfare-subtitle-note, .lang-ko .upgrade-subtitle { letter-spacing: 0; }
  .lang-ko .hero-part, .lang-ko .content-part, .lang-ko .copy-decoration, .lang-ko .upgrade-part { font-family: 'Source Han Serif CN', 'Noto Serif CJK SC', serif; }
}

.language-switcher {
  position: absolute;
  z-index: 4;
  color: #eee8dc;
  font-family: 'Source Han Serif CN', 'Noto Serif CJK SC', serif;
  line-height: 1;
}

.language-switcher__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0.43rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.language-switcher__chevron {
  width: 0.12rem;
  height: 0.12rem;
  margin-top: -0.06rem;
  margin-right: 0.1rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #868686;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.language-switcher__trigger[aria-expanded="true"] .language-switcher__chevron {
  margin-top: 0.06rem;
  transform: rotate(225deg);
}

.language-switcher__options {
  position: absolute;
  z-index: 10;
  top: 150%;
  right: 0.08rem;
  box-sizing: border-box;
  width: max-content;
  padding: 0.1rem 0.2rem;
  border: 1px solid #3d3d3d;
  border-top: 1px solid #868686;
  background: rgb(20 14 21 / 76%);
  -webkit-backdrop-filter: blur(0.08rem);
  backdrop-filter: blur(0.08rem);
}

.language-switcher__options[hidden] {
  display: none !important;
}

.language-switcher__options a {
  display: flex;
  align-items: center;
  min-height: 0.34rem;
  color: #868686;
  font: inherit;
  font-size: 0.24rem;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher__options a[aria-current="page"] {
  color: #fff;
}

.language-switcher__trigger:focus-visible,
.language-switcher__options a:focus-visible {
  outline: 1px solid #d1b77d;
  outline-offset: 2px;
}

@media (min-width: 1200px) {
  .page > .top-nav {
    z-index: 4;
  }

  .top-nav > .right-actions {
    margin-right: 0;
  }

  .language-switcher--desktop {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.26rem;
    width: auto;
    font-size: 0.22rem;
  }

  .language-switcher--desktop .language-switcher__trigger {
    width: auto;
    min-height: 0.43rem;
    justify-content: flex-start;
    gap: 0.22rem;
    font-size: inherit;
  }

  .language-switcher--desktop .language-switcher__chevron {
    margin-right: 0;
  }

  .language-switcher--desktop .language-switcher__options a {
    width: 100%;
    min-height: 0.44rem;
    font-size: inherit;
    justify-content: center;
  }

  .language-switcher--mobile {
    display: none;
  }
}

@media (max-width: 1199px) {
  .language-switcher--desktop {
    display: none;
  }

  .language-switcher--mobile {
    top: 1.8rem;
    right: 0.2rem;
    width: auto;
    font-size: 0.3rem;
  }

  .language-switcher--mobile .language-switcher__chevron {
    margin-left: 0.3rem;
  }

  .language-switcher__trigger {
    min-height: 0.43rem;
  }

  .language-switcher__options {
    right: 0.1rem;
  }

  .language-switcher__options a {
    min-height: 0.54rem;
    justify-content: center;
  }
}

.lang-ko .language-switcher {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}
