/* Shared portal layout. Ads retain their existing selectors and visibility rules. */
html:root,
html[data-theme] {
  --bg-color: #fff;
  --text-primary: #252525;
  --text-secondary: #747474;
  --header-bg: #fff;
  --search-bg: #f1f1f1;
  --search-text: #353535;
  --nav-text: #505050;
  --nav-active: var(--brand);
  --accent-color: var(--brand);
  --globalColor: var(--brand);
}
.portal {
  --brand: #ff6900;
  --surface: #f7f7f7;
  --line: #ececec;
  color: var(--text-primary);
  background: #fff;
}
.portal *,
.portal input,
.portal button {
  font-family: Arial, Helvetica, sans-serif;
}
.portal .fas {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.portal button,
.portal a {
  -webkit-tap-highlight-color: transparent;
}
.portal :focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
.portal button {
  cursor: pointer;
}
.portal .main-wrapper {
  background: #fff;
  min-width: 0;
}
.portal .content-area,
.portal .main-wrapper > .main {
  max-width: 1600px !important;
  width: 100%;
  margin: 0 auto !important;
  padding: 28px 32px !important;
}
.portal .top-bar {
  box-shadow: none;
}
.portal .header-content {
  max-width: none;
  height: 76px;
  padding: 0 32px;
  gap: 22px;
  justify-content: flex-start;
}
.portal .logo {
  flex-shrink: 0;
  gap: 9px;
}
.portal .logo .logo-icon {
  width: 32px;
  height: 32px;
  background: #0362f1;
  border-radius: 8px;
}
.portal .logo .logo-text {
  color: #1a1b28;
  text-shadow: none;
  font-size: 22px;
  letter-spacing: 0;
  font-weight: 800;
}
.portal .header-right {
  flex: 1;
  justify-content: center;
  padding-right: 180px;
}
.portal .search-container {
  width: min(100%, 480px);
}
.portal .search-input {
  display: block;
  height: 44px;
  padding: 0 94px 0 44px;
  border: 0;
  border-radius: 25px;
  background: var(--search-bg);
  color: var(--search-text);
}
.portal .search-icon {
  color: #444;
}
.portal #searchBtn {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 34px;
  padding: 0 17px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.menu-toggle,
.portal .mobile-search-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  flex: 0 0 auto;
}
.portal .mobile-search-icon {
  display: none;
}
.nav-backdrop {
  display: none;
}
.portal .nav-container {
  margin: 0;
  height: auto;
}
.portal .main-nav {
  padding: 0;
  gap: 8px;
}
.portal .nav-item {
  color: var(--nav-text);
  font-weight: 500;
  font-size: 14px;
}
.portal .nav-item.active {
  color: var(--brand);
  background: #fff0e6;
}
.portal .games-section {
  position: relative;
  margin-bottom: 28px;
}
.portal .section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding-right: 110px;
}
.portal .section-header h2,
.portal .section-title,
.portal #main > h2 {
  color: var(--text-primary);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.portal .section-header h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal .games-section > .load-more-container {
  position: absolute;
  right: 0;
  top: -4px;
  margin: 0;
}
.portal .btn-more {
  border: 0;
  padding: 8px 0 8px 14px;
  background: transparent;
  color: #777;
  font-size: 13px;
  white-space: nowrap;
}
.portal .games-section .btn-more::after {
  content: " ›";
  margin-left: 5px;
  font-size: 20px;
  vertical-align: -1px;
}
.portal .games_list,
.portal .skeleton-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 18px 12px;
  margin: 0;
  padding: 0;
}
.portal .games_list > li {
  min-width: 0;
  width: 100%;
}
.portal .games-section .games_list {
  overflow: visible;
}
.portal .games-section .games_list > li:nth-child(n) {
  display: list-item;
}
.portal .games-section .games_list > .ad-li:nth-child(n) {
  display: none;
}
.portal .games-section .games_list > .ad-li.is-visible {
  display: flex;
}
.portal .games_list .game-card {
  display: block;
  color: var(--text-primary);
  box-shadow: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: auto;
  transition: transform 0.18s ease;
}
.portal .games_list .game-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}
.portal .games_list .game-thumb {
  border-radius: 9px;
  padding-bottom: 66.667%;
  background: var(--surface);
}
.portal .games_list .game-info {
  padding: 7px 1px 0;
  min-height: 0;
  text-align: left;
  justify-content: flex-start;
  background: transparent;
}
.portal .games_list .game-info span {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1px 7px;
  border-radius: 7px 0 7px 0;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.featured-section {
  margin-bottom: 28px;
}
.featured-track {
  display: grid;
  gap: 12px;
}
.featured-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  background: #eee;
}
.featured-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  transition: transform 0.3s;
}
.featured-card:hover img {
  transform: scale(1.035);
}
.featured-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 38px 14px 14px;
  background: linear-gradient(transparent, #000b);
}
.featured-caption strong {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-caption small {
  display: block;
  color: #fff;
  margin-top: 4px;
  font-size: 11px;
}
.featured-caption .featured-play {
  display: none;
}
.portal .footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 30px 24px;
  background: #fff;
  color: #858585;
}
.portal .footer-links {
  margin-bottom: 10px;
}
.portal .footer a {
  color: #626262;
}
.portal .footer p {
  font-size: 12px;
}
.portal .top_lea {
  width: 42px;
  height: 42px;
  right: 18px;
  bottom: 36px;
  box-shadow: 0 3px 15px #0002;
}
.portal .detail-container {
  max-width: none;
  padding: 0;
}
.portal .breadcrumbs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  color: #777;
}
.portal .breadcrumbs a {
  color: var(--brand);
}
.portal .game-main-card {
  border: 0;
  box-shadow: none;
  border-radius: 20px;
  padding: 40px;
  background: var(--surface);
  margin: 0 0 20px;
}
.portal .game-header {
  gap: 28px;
}
.portal .game-header-info {
  min-width: 0;
}
.portal .game-header-info h1 {
  font-size: clamp(25px, 3vw, 40px);
  color: var(--text-primary);
  overflow-wrap: anywhere;
  letter-spacing: -1px;
}
.portal .game-header-info p {
  font-size: 15px;
  color: var(--text-secondary);
}
.portal .game-icon-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}
.portal .game-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal .play-btn-container {
  text-align: center;
  margin-bottom: 30px;
}
.portal .btn-start-playing,
.portal .play-btn {
  background: var(--brand);
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  color: #fff;
  width: 100%;
  max-width: 400px;
  min-height: 52px;
  font-size: 18px;
}
.portal .btn-start-playing::before {
  content: "▶";
  margin-right: 12px;
  font-size: 14px;
}
.portal .detail-section {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 28px 0;
}
.portal .game-description {
  color: var(--text-secondary);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.portal .game-description img {
  max-width: 100%;
  height: auto;
}
.portal .show-more-link {
  color: var(--brand);
}
.portal .btn-load-more,
.portal #loadMoreBtn {
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--brand);
  background: #fff;
  padding: 12px 30px;
}
.portal .play-container {
  padding: 12px 0 40px;
  gap: 24px;
}
.portal .play-container > .game-card {
  max-width: 720px;
  padding: 42px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: none;
  transform: none;
}
.play-eyebrow {
  color: var(--brand);
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 24px;
}
.portal .game-title {
  font-size: 30px;
  margin: 20px 0 8px;
  color: var(--text-primary);
}
.portal .game-status {
  color: var(--text-secondary);
}
.portal .play-container .game-icon-wrapper {
  margin-bottom: 0;
}
.portal .ad-placeholder-top,
.portal .ad-placeholder-bottom,
.portal .ad-placeholder-category {
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  max-width: 100%;
}
.portal .ad-placeholder-top.is-visible,
.portal .ad-placeholder-bottom.is-visible {
  margin: 18px auto;
}
.portal .ad-placeholder-bottom:empty {
  display: none;
}
.portal .ad-li {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 14px 0;
  padding: 0;
}
.portal .ad-li.is-visible {
  display: flex;
}
.portal .searchBox {
  background: #fff;
  color: var(--text-primary);
  z-index: 2000;
  overflow-y: auto;
}
.portal .searchBox .main {
  max-width: 1000px !important;
  padding: 70px 24px 32px !important;
}
.portal .searchBox h2,
.portal .searchBox h3 {
  color: var(--text-primary);
}
.portal .searchMain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
}
.portal .searchMain input {
  color: var(--text-primary);
  background: transparent;
}
.portal .searchMain button {
  color: var(--brand);
  background: var(--brand);
  border-radius: 24px;
}
.portal .closeIconSearch {
  position: absolute;
  top: 18px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--surface);
  border-radius: 50%;
  color: #444;
  font-size: 26px;
}
.portal .closeIconSearch i {
  color: #444 !important;
}
@media (max-width: 1024px) {
  .portal .header-content {
    height: 64px;
    padding: 0 20px;
  }
  .portal .header-right {
    padding-right: 0;
    justify-content: flex-end;
  }
  .portal .content-area,
  .portal .main-wrapper > .main {
    padding: 20px !important;
  }
}
@media (max-width: 600px) {
  .portal .header-content {
    padding: 0 12px;
    gap: 8px;
    height: 58px;
  }
  .portal .logo .logo-text {
    font-size: 18px;
  }
  .portal .logo .logo-icon {
    width: 28px;
    height: 28px;
  }
  .portal .header-right {
    flex: 0;
    margin-left: auto;
  }
  .portal .search-container {
    display: none;
  }
  .portal .mobile-search-icon {
    display: grid;
  }
  .portal .content-area,
  .portal .main-wrapper > .main {
    padding: 14px 12px !important;
  }
  .portal .games_list,
  .portal .skeleton-grid {
    gap: 14px 10px;
  }
  .portal .games-section {
    margin-bottom: 26px;
  }
  .portal .section-header h2,
  .portal .section-title {
    font-size: 21px;
  }
  .portal .game-main-card {
    padding: 24px 18px;
  }
  .portal .game-header {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .portal .game-icon-wrapper {
    width: 112px;
    height: 112px;
  }
  .portal .game-header-info h1 {
    font-size: 27px;
  }
  .portal .game-header-info p {
    font-size: 13px;
  }
  .portal .breadcrumbs,
  .portal .breadcrumbs a,
  .portal .breadcrumbs span {
    font-size: 12px;
  }
  .portal .play-container > .game-card {
    padding: 30px 18px;
  }
  .portal .game-title {
    font-size: 26px;
  }
  .portal .footer {
    padding: 26px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal *,
  .portal *::before,
  .portal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
