/* Own-site layer: keeps the extracted PC art direction and adds maintainable interactions. */
:root {
  --ink: #33281f;
  --ink-soft: #705d4c;
  --paper: #f7f0e4;
  --paper-deep: #efe3d2;
  --gold: #c9a467;
  --red: #c92f3f;
  --red-dark: #9e2030;
  --line: rgba(102, 78, 48, .18);
  --shadow: 0 18px 50px rgba(74, 45, 24, .16);
}
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; }
img { max-width: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link {
  position: fixed; z-index: 100000; top: 12px; left: 12px;
  padding: 10px 16px; border-radius: 4px; color: #fff;
  background: #b3272f; font: 14px/1.5 "Microsoft YaHei", sans-serif;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid #fff08d; outline-offset: 4px;
}
.NIE-topBar-menu-btn { cursor: pointer; }
.NIE-topBar-menu-btn:focus-visible { outline-color: #fff; outline-offset: -4px; }
#NIE-topBar-menu.NIE-topBar-menu-hover { overflow: visible; }
.navbox .logo:focus-visible { outline: 2px solid #fff08d; outline-offset: 3px; }
body.noscroll { overflow: hidden; }

/* Carousel elements are static in this build and controlled by site.js. */
#banner-swiper, #banner-coop-swiper { overflow: hidden; height: 100%; }
#banner-swiper .swiper-wrapper, #banner-coop-swiper .swiper-wrapper {
  display: flex; height: 100%; transition: transform .45s cubic-bezier(.22,.61,.36,1); will-change: transform;
}
#banner-swiper .swiper-slide, #banner-coop-swiper .swiper-slide {
  position: relative; flex: 0 0 100%; width: 100% !important; height: 100%;
}
#banner-swiper .banner-item, #banner-coop-swiper .banner-item { width: 100%; height: 100%; }
#banner-swiper .banner-item img, #banner-coop-swiper .banner-item img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.banner-nav .btn { cursor: pointer; }
.banner-tab-nav a { cursor: pointer; }
.banner-tab-nav a:focus-visible { outline-offset: -3px; }

/* Role selector: four portraits visible; clicking or arrow keys changes the active role. */
.role-list-swiper { overflow: hidden; }
.role-list-swiper .swiper-wrapper { display: flex; height: 100%; transition: transform .35s ease; }
.role-list-swiper .swiper-slide { flex: 0 0 25%; width: 25% !important; }
.role-list-swiper .swiper-slide { cursor: pointer; }
.role-big { transition: opacity .18s ease, transform .18s ease; }
.role-big.is-switching { opacity: 0; transform: translateY(8px); }
.role-list-swiper .swiper-slide:focus-visible .e-item { outline: 2px solid #f24853; outline-offset: 2px; border-radius: 50%; }
.role-btn[role="button"] { cursor: pointer; }

/* Accessible modal, styled to echo the warm game-portal surfaces. */
.site-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; }
.site-modal[hidden] { display: none; }
.site-modal-mask { position: absolute; inset: 0; background: rgba(23, 16, 11, .72); backdrop-filter: blur(3px); }
.site-modal-card {
  position: relative; z-index: 1; width: min(680px, calc(100vw - 32px)); max-height: min(82vh, 760px);
  overflow: auto; border: 1px solid rgba(255,255,255,.45); border-radius: 18px;
  padding: 34px 36px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow);
  font: 15px/1.85 "Microsoft YaHei", "PingFang SC", sans-serif;
}
.site-modal-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(160,126,72,.32); border-radius: 12px; pointer-events: none; }
.site-modal-card h2 { position: relative; margin: 0 0 18px; color: #62462e; font: 700 24px/1.35 "Microsoft YaHei", "PingFang SC", sans-serif; }
.site-modal-body { position: relative; }
.site-modal-body p { margin: 0 0 12px; }
.site-modal-body .code { margin: 22px 0; padding: 14px 16px; border: 1px dashed #bd9352; border-radius: 10px; color: #7a3d17; background: #fff7e7; font: 700 22px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-align: center; }
.site-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.site-modal-actions button, .site-modal-actions a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--red); font: 700 14px/1 "Microsoft YaHei", sans-serif; text-decoration: none; cursor: pointer; }
.site-modal-actions button:hover, .site-modal-actions a:hover { background: var(--red-dark); }
.site-modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; color: #62462e; background: rgba(255,255,255,.65); font-size: 28px; line-height: 1; cursor: pointer; }
.site-modal-close:hover { color: #fff; background: var(--red); transform: rotate(90deg); }
.site-toast { position: fixed; z-index: 100001; left: 50%; bottom: 34px; padding: 10px 18px; border-radius: 999px; color: #fff; background: rgba(31,23,17,.88); font: 14px/1.5 "Microsoft YaHei", sans-serif; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }
.replica-tag { position: fixed; right: 12px; bottom: 12px; z-index: 90; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(40,27,17,.62); font: 11px/1.4 "Microsoft YaHei", sans-serif; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Mobile edition: a clean, responsive companion built from the same extracted content. */
.mobile-site { display: none; }
.mobile-header {
  position: fixed; z-index: 1000; top: 0; right: 0; left: 0;
  display: flex; height: 58px; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.18);
  background: rgba(33,24,17,.9); backdrop-filter: blur(16px);
}
.mobile-brand { display: flex; align-items: center; min-height: 44px; }
.mobile-brand img { display: block; width: 132px; height: auto; }
.mobile-menu-toggle { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.mobile-menu-toggle span, .mobile-menu-toggle span::before, .mobile-menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-toggle span { position: relative; }
.mobile-menu-toggle span::before, .mobile-menu-toggle span::after { position: absolute; left: 0; content: ""; }
.mobile-menu-toggle span::before { top: -6px; }
.mobile-menu-toggle span::after { top: 6px; }
.mobile-menu-toggle[aria-expanded="true"] span { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; z-index: 999; top: 58px; right: 0; left: 0; display: grid; visibility: hidden;
  padding: 10px 18px 22px; border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(33,24,17,.98); opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { display: flex; min-height: 50px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font: 15px/1.5 "Microsoft YaHei", sans-serif; letter-spacing: .06em; text-decoration: none; }
.mobile-menu-scrim { position: fixed; z-index: 998; inset: 58px 0 0; background: rgba(0,0,0,.34); }
.mobile-hero {
  position: relative; display: flex; min-height: 430px; align-items: flex-end; overflow: hidden;
  padding: 110px 22px 34px; color: #fff; background: #513925 url("../media/hero-custom.png") center top / cover no-repeat;
}
.mobile-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(25,16,10,.06) 28%, rgba(25,16,10,.82) 100%); }
.mobile-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,16,10,.4), transparent 75%); }
.mobile-hero-copy { position: relative; z-index: 1; width: 100%; }
.mobile-kicker { display: inline-flex; min-height: 27px; align-items: center; margin-bottom: 9px; padding: 0 11px; border-radius: 999px; color: #6f4a22; background: #ffe8b5; font: 700 12px/1 "Microsoft YaHei", sans-serif; }
.mobile-hero h1 { margin: 0; font: 700 clamp(30px, 8vw, 42px)/1.18 "Microsoft YaHei", "PingFang SC", sans-serif; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.mobile-hero p { margin: 12px 0 20px; color: rgba(255,255,255,.88); font: 14px/1.7 "Microsoft YaHei", sans-serif; }
.mobile-hero a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 20px; border-radius: 999px; color: #6c3810; background: #fff1ca; font: 700 14px/1 "Microsoft YaHei", sans-serif; text-decoration: none; }
.mobile-quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -18px 14px 0; padding: 16px 14px; border-radius: 18px; background: #fffaf1; box-shadow: 0 14px 30px rgba(75,44,20,.13); position: relative; z-index: 2; }
.mobile-quicklinks a { display: grid; min-height: 66px; align-content: center; padding: 8px; border-radius: 12px; color: #583c25; background: #f5ead9; text-align: center; text-decoration: none; }
.mobile-quicklinks strong { display: block; font-size: 14px; }
.mobile-quicklinks span { display: block; margin-top: 5px; color: #8b7158; font-size: 10px; }
.mobile-section { padding: 42px 16px 0; }
.mobile-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mobile-section-head span { display: block; margin-bottom: 3px; color: #b88a45; font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .18em; }
.mobile-section-head h2 { margin: 0; color: #4f3826; font: 700 24px/1.3 "Microsoft YaHei", "PingFang SC", sans-serif; }
.mobile-section-head a, .mobile-section-head small { color: #8e6c45; font: 12px/1.4 "Microsoft YaHei", sans-serif; text-decoration: none; }
.mobile-news-list { display: grid; border-top: 1px solid var(--line); }
.mobile-news-item { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; min-height: 66px; align-items: center; border-bottom: 1px solid var(--line); color: #49372b; text-decoration: none; }
.mobile-news-item .tag { padding: 4px 7px; border-radius: 999px; color: #7b5535; background: #f4dfb0; font-size: 10px; text-align: center; }
.mobile-news-item strong { overflow: hidden; font-size: 14px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.mobile-news-item time { color: #a18870; font-size: 11px; }
.mobile-role-track, .mobile-card-track { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mobile-role-track::-webkit-scrollbar, .mobile-card-track::-webkit-scrollbar { display: none; }
.mobile-role-card { position: relative; flex: 0 0 76%; min-height: 290px; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(180deg,#4c3727,#2d2119); scroll-snap-align: start; text-decoration: none; }
.mobile-role-card img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.mobile-role-card .copy { position: absolute; inset: auto 0 0; padding: 42px 18px 18px; background: linear-gradient(transparent, rgba(24,16,10,.94)); }
.mobile-role-card .race { color: #f0cc8a; font-size: 11px; letter-spacing: .12em; }
.mobile-role-card h3 { margin: 4px 0; font-size: 23px; }
.mobile-role-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mobile-look-card { flex: 0 0 70%; overflow: hidden; border: 1px solid #eadbc8; border-radius: 16px; color: #4f3826; background: #fffaf2; text-decoration: none; scroll-snap-align: start; }
.mobile-look-card img { display: block; width: 100%; aspect-ratio: 389/224; object-fit: cover; }
.mobile-look-card div { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 8px; }
.mobile-look-card span { color: #8b5c2c; background: #f8e6bc; border-radius: 999px; padding: 3px 8px; font-size: 10px; }
.mobile-look-card strong { font-size: 14px; }
.mobile-esports-list { display: grid; gap: 8px; }
.mobile-esports-item { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: #4d3929; background: #fffaf2; font-size: 13px; line-height: 1.5; text-decoration: none; }
.mobile-esports-item span { flex: 1; }
.mobile-esports-item time { color: #a08870; font-size: 11px; }
.mobile-beauty-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mobile-beauty-item { overflow: hidden; border-radius: 14px; color: #4d3929; background: #fffaf2; text-decoration: none; }
.mobile-beauty-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.mobile-beauty-item strong, .mobile-beauty-item span { display: block; overflow: hidden; padding: 0 9px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-beauty-item strong { padding-top: 9px; font-size: 12px; }
.mobile-beauty-item span { padding-bottom: 10px; color: #9b7e62; font-size: 10px; }
.mobile-brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mobile-brand-item { overflow: hidden; border-radius: 14px; background: #fffaf2; text-decoration: none; }
.mobile-brand-item img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.mobile-brand-item span { display: block; padding: 10px 12px; color: #fff; background: #a48765; font-size: 12px; font-weight: 700; }
.mobile-social { margin-top: 42px; padding: 28px 16px; color: #fff; text-align: center; background: #3a291e; }
.mobile-social p { margin: 0 0 14px; color: #e7c796; font-size: 12px; letter-spacing: .16em; }
.mobile-social div { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.mobile-social a { color: #fff; font-size: 13px; text-decoration: none; }
.mobile-footer { padding: 30px 20px 34px; color: #fff; text-align: center; background: #19130f; }
.mobile-footer img { width: 126px; height: auto; }
.mobile-footer p { margin: 12px 0 6px; color: #e7c796; font-size: 12px; }
.mobile-footer small { color: rgba(255,255,255,.5); font-size: 10px; }

@media (max-width: 1023px) {
  html { font-size: 16px !important; }
  body { overflow-x: hidden; background: var(--paper); }
  .site-page, #NIE-topBar, .focus-list-fix, .fix-nav, .back-top { display: none !important; }
  .mobile-site { display: block; }
  .mobile-site main { overflow: hidden; }
  .mobile-menu-scrim[hidden] { display: none !important; }
  .skip-link { display: none; }
}
@media (min-width: 1024px) {
  .mobile-site { display: none !important; }
}

/* Copyright markup from the runtime fragment. */
.nie-copyright-new-inner {
  width: 1024px; margin: 0 auto; padding: 15px 0 10px;
  color: #fff; font-size: 12px; line-height: 20px; text-align: left;
}
.nie-copyright-new-inner .nie-cn-logo { display: inline-block; min-width: 300px; height: 48px; vertical-align: middle; }
.nie-copyright-new-inner .nie-cn-logo a { display: inline-block; margin-top: 2px; vertical-align: top; }
.nie-copyright-new-inner .nie-cn-logo a.a0 img { padding-right: 0; }
.nie-copyright-new-inner .nie-cn-logo img { padding: 5px 15px 0 0; border: 0; vertical-align: middle; }
.nie-copyright-new-inner .nie-cn-nav { position: relative; z-index: 1; display: inline-block; vertical-align: top; }
.nie-copyright-new-inner .nie-cn-nav i { font-style: normal; }
.nie-copyright-new-inner .nie-cn-nav i.nie-cn-nav-i2 { height: 28px; line-height: 28px; text-align: left; }
.nie-copyright-new-inner .nie-cn-nav a { color: #fff; text-decoration: none; }
.nie-copyright-new-inner .nie-cn-nav a:hover { text-decoration: underline; }
.nie-copyright-new-inner .nie-cn-nav a.nie-cn-guardianship { position: absolute; z-index: 2; top: 21px; right: 0; display: inline-block; height: 26px; padding: 0 3px; color: #fff; background: #610000; line-height: 26px; }
#NIE-copyRight a.nie-cn-guardianship { color: #fff; }

/* The desktop share row uses the extracted icon font; keep targets readable. */
#NIE-share .NIE-share-iconBtn a { min-width: 26px; min-height: 34px; cursor: pointer; }

/* Preserve the extracted flex basis: the banner keeps 4.6rem while the news list shrinks. */
.page-2 .newsbot .leftbox .banner-wrap { flex: 0 0 4.6rem; }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.focus-list-fix .f-item:focus-within .code-box { display: block; }
@media (prefers-reduced-motion: reduce) {
  .mobile-role-track, .mobile-card-track { scroll-behavior: auto; }
}

/* Post-deletion layout adjustments */
@media (min-width: 1024px) {
  .navbox { top: 0 !important; }
  .navbox .menu-list { width: 12.16rem; }
}
.page-2 .newsbot .rightbox { display: flex; flex-direction: column; }
.page-2 .newsbot .rightbox .toolwarp { margin-top: auto; }
.content-wrap { padding-bottom: .7rem; }

@media (min-width: 1024px) {
  .navbox .midbox .menu-list { width: 12.16rem; }
}


/* Beauty section is now a compact activity header after removing the player list. */
.page-rqds .rqds-cont { height: 1.58rem; background-position: center; background-size: cover; }

/* Pin the primary navigation to the very top of the viewport. */
@media (min-width: 1024px) {
  .site-page,
  .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .navbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    z-index: 999;
  }
}

/* Hard-lock the desktop navigation to the viewport top. */
@media (min-width: 1024px) {
  body { padding-top: 0 !important; }
  .site-page, .container {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
  }
  .site-page > .container > .navbox,
  .container > .navbox,
  .navbox {
    position: fixed !important;
    inset: 0 auto auto 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1000 !important;
  }
}

/* NAV-FIX-FINAL */
html, body, .site-page, .container { margin-top: 0 !important; padding-top: 0 !important; }
.navbox[style] { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; }

/* Compact news layout after the weekly strip and the final news tab were removed. */
.page-2.compact-news { width: 8.9rem; }
.page-2.compact-news .newsbot { width: 100%; margin: 0 auto; }
.page-2.compact-news .newsbot .leftbox { width: 4.78rem; flex: 0 0 4.78rem; }
.page-2.compact-news .newsbot .rightbox { width: 3.94rem; }

/* Library-only layout after removing the final guide tab. */
.page-ssgl.library-only { width: 4.5rem; }

/* Reversible temporary hiding used by both selection drawers. */
.temp-hidden-structure,
.content-temp-hidden { display: none !important; }
.temp-hidden-status { margin: 0 0 9px; color: #9b7046; font-size: 10px; text-align: center; }
a[data-link-removed="true"] { pointer-events: none !important; cursor: default !important; }
