html,
body {
  font-family: "Golos Text", "Outfit", sans-serif;
  margin: 0;
  position: relative;
  z-index: 99;
  scroll-behavior: smooth;
  color: var(--text-primary);
  background: var(--bg-page);
}
.logo img{
  max-width: 200px;
  max-height: 45px;
      text-align: center;
    margin: auto;
}
@media (min-width: 1024px) {
    .lg\:justify-end {
        justify-content: end;
    }
}

.trending-list {
  counter-reset: trend;
}

.trending-list>a {
  counter-increment: trend;
}

.trending-list .rank::before {
  content: counter(trend, decimal-leading-zero);
}

.back-to-top {
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

body::-webkit-scrollbar {
  display: none;
}

/* MORE GAMES 竖卡：标题行固定两行高度，单行标题垂直居中 */
.more-games-grid > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.more-games-grid > a > div:last-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.more-games-title-row {
  min-height: 2.5rem;
  align-items: center;
}

.more-games-title-row > p {
  min-width: 0;
  flex: 1 1 0%;
}

@media (min-width: 768px) {
  .more-games-title-row {
    min-height: 3rem;
  }
}
#copy-message {
  position: fixed;
  z-index: 999;
  bottom: 30%;
  width: 72px;
  height: 30px;
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 180, 166, 0.4);
  color: var(--color-accent, #00b4a6);
  font-size: 12px;
  text-align: center;
  line-height: 30px;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.2);
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

footer {
    margin-top: auto !important;
    position: static; 
}
::-webkit-scrollbar {
  background: var(--bg-scroll);
  border-radius: 9999px;
  height: 6px;
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 9999px;
}

header ::-webkit-scrollbar {
  height: 3px;
}

@media (max-width:768px) {}

.star i.full {
  color: var(--color-star);
}

.star i {
  color: var(--color-star-empty);
}

.star i.partial {
  background: linear-gradient(to right, var(--color-star) var(--percent, 0%), var(--color-star-empty) var(--percent, 0%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.num {
  counter-reset: mvp-trend;
}

.num a {
  counter-increment: mvp-trend;
}

.num a .number::after {
  content: counter(mvp-trend);
}

.topgame a:nth-child(2) .rank-1,
.topgame a:nth-child(3) .rank-1,
.topgame a:nth-child(5) .rank-1 {
  display: none;
}
.capitalize{
      text-transform: capitalize;
}
.classic-games>a:is(:nth-child(2), :nth-child(5), :nth-child(13), :nth-child(15), :nth-child(18))>div::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 48px;
  height: 48px;
  background: var(--img-hot) no-repeat 0 0 / contain;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 768px) {
  .classic-games>a:is(:nth-child(2), :nth-child(5), :nth-child(13), :nth-child(15), :nth-child(18))>div::after {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 1024px) {
  .classic-games>a:is(:nth-child(2), :nth-child(5), :nth-child(13), :nth-child(15), :nth-child(18))>div::after {
    width: 72px;
    height: 72px;
  }
}

.game-carousel-item {
  flex: 0 0 calc((100% - 12px) / 2);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .game-carousel-item {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (min-width: 1024px) {
  .game-carousel-item {
    flex: 0 0 calc((100% - 64px) / 5);
  }
}

.game-carousel [data-carousel-track] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-carousel [data-carousel-track]::-webkit-scrollbar {
  display: none;
}

.game-carousel [data-carousel-dots] button {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--color-dot);
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-carousel [data-carousel-dots] button.is-active {
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.game-carousel [data-carousel-dots].is-single-page {
  display: none;
}

.most-played-list>a+a {
  border-top: 1px solid var(--bg-divider);
}


.line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
@media (min-width: 768px) {
  .most-played-list>a+a {
    border-top: 0;
  }
}

.game-play-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-play-layout .game-thumbs {
  order: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

/* 移动端 8 张；Pad/PC 只显示前 6 张 */
.game-play-layout .game-thumbs > a:nth-child(n + 7) {
  display: block;
}

.game-play-layout #play-player {
  order: 2;
  width: 100%;
}

@media (min-width: 768px) {
  .game-play-layout {
    gap: 24px;
  }

  .game-play-layout .game-thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .game-play-layout .game-thumbs > a:nth-child(n + 7) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .game-play-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  /* PC：右侧竖向一列 6 张 */
  .game-play-layout .game-thumbs {
    order: 2;
    flex-shrink: 0;
    grid-template-columns: 128px;
    width: 128px;
  }

  .game-play-layout .game-thumbs > a:nth-child(n + 7) {
    display: none;
  }

  .game-play-layout #play-player {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 936px;
  }
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-thumbs>a:nth-child(n + 7) {
  display: block;
}

.text-\[var\(--text-shangsheng\)\] {
  color: var(--shangsheng);
}

@media (min-width: 768px) {
  .detail-thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-thumbs>a:nth-child(n + 7) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .detail-thumbs {
    grid-template-columns: repeat(2, 128px);
    gap: 12px;
    width: 268px;
  }

  .detail-thumbs>a:nth-child(n + 7) {
    display: none;
  }
}

.detail-hero-stage {
  position: relative;
  height: 174px;
  width: 100%;
  overflow: hidden;
}

.detail-hero-stub {
  position: absolute;
  left: 0;
  top: 70px;
  width: 100%;
  height: 104px;
  background: var(--color-primary);
  border-radius: 8px 0 0 8px;
}

.detail-hero-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 190px;
  height: auto;
  min-height: 156px;
  background: var(--color-primary);
  border-radius: 16px 8px 8px 0;
  padding: 12px;
}

.detail-hero-cover {
  position: absolute;
  left: 12px;
  top: 7px;
  width: 178px;
  height: 156px;
  border: 4px solid var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  z-index: 2;
  background: var(--bg-placeholder);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .detail-hero-stage {
    height: 280px;
  }

  .detail-hero-stub {
    top: 116px;
    width: 280px;
    height: 164px;
    border-radius: 12px 0 0 12px;
  }

  .detail-hero-panel {
    top: 40px;
    bottom: auto;
    left: 280px;
    height: 240px;
    border-radius: 48px 12px 12px 0;
    padding: 24px 24px 24px 48px;
  }

  .detail-hero-cover {
    left: 24px;
    top: 0;
    width: 256px;
    height: 256px;
    border-width: 8px;
    border-radius: 24px;
  }
}

.detail-about-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-detail-scrollbar-thumb) var(--bg-detail-scrollbar-track);
}

.detail-about-scroll::-webkit-scrollbar {
  width: 6px;
}

.detail-about-scroll::-webkit-scrollbar-track {
  background: var(--bg-detail-scrollbar-track);
  border-radius: 100px;
}

.detail-about-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-detail-scrollbar-thumb);
  border-radius: 100px;
}

.head-active {
  background-color: var(--bg-header);
}

.head-active .logo a {
  color: var(--text-inverse);
}

.head-active .h5-home i,
.head-active .burger i,
.head-active .h5-search i {
  color: var(--text-nav-muted);
}

.top-played-list {
  counter-reset: top-played;
}

.top-played-list>a {
  counter-increment: top-played;
}

.top-played-list .rank::before {
  content: counter(top-played, decimal-leading-zero);
}

.pt {
  max-width: 1200px
}

.pt h1 {
  font-size: 30px !important;
}

.pt h2,
.pt h3,
.pt h4,
.pt h3 {
  font-size: 16px;
  line-height: 22px;
}

.pt h1,
.pt h2,
.pt h3,
.pt h4,
.pt p,
.pt li {
  font-size: 16px;
  line-height: 22px;
  padding: 0 0 10px 0;
}

.pt img {
  width: 100%;
}

.pt a {
  word-break: break-all;
  color: #00b4a6;
}

#play-game:not(.is-playing) .play-cover {
  z-index: 10;
}

#play-game:not(.is-playing) #gameIframe {
  z-index: 0;
  visibility: hidden;
  pointer-events: none;
}

#play-game.is-playing .top__shading,
#play-game.is-playing .play-bg,
#play-game.is-playing .play-cover {
  display: none;
}

#play-game.is-playing #gameIframe {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  touch-action: manipulation;
}

#play-player:fullscreen,
#play-player:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  background: var(--bg-page);
}

#play-player:fullscreen #play-game,
#play-player:-webkit-full-screen #play-game {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

#play-player:fullscreen .play-bar,
#play-player:-webkit-full-screen .play-bar {
  flex-shrink: 0;
  width: 100%;
}

.like-btn.liked {
  color: var(--color-primary);
}

.like-btn.liked .like-outline {
  display: none;
}

.like-btn.liked .like-fill {
  display: block;
}

.like-btn.is-pop .like-icon {
  animation: like-pop 0.4s ease;
}

@keyframes like-pop {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.35);
  }

  65% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.pt ul {
  list-style: disc;
  margin: 0 0 0 30px;
  padding: 0;
}

.pt table {
  margin-bottom: 10px
}

.pt table,
.pt th,
.pt td {
  border: 1px solid !important;
  border-collapse: collapse !important;
  border-style: double !important;
}

.pt th,
.pt td {
  padding: 8px;
  text-align: center;
}

.topgame {
  counter-reset: topgame-counter;
}

.topgame>a {
  counter-increment: topgame-counter;
}

.topgame>a::before {
  content: counter(topgame-counter, decimal-leading-zero);
  flex-shrink: 0;
  width: 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .topgame>a::before {
    width: 2.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }
}


.pt {
  padding: 20px;
}

.pt h1 {
  line-height: 1.5 !important;
  font-size: 22px !important;
  padding: 0 0 10px 0;
  margin: 0 0 10px 0;
  font-weight: 800;
}

.pt h2 {
  position: relative;
  padding-left: 16px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.pt h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 10px;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.pt h3,
.pt h4 {
  line-height: 1.5 !important;
  font-size: 16px !important;
  padding: 0 0 10px 0;
  margin: 0 0 10px 0;
}

.pt p,
.pt li {
  line-height: 1.5 !important;
  font-size: 14px !important;
  padding: 0 0 10px 0;
}

.pt p {
  margin: 0 0 15px;
}

.pt img {
  width: 100%;
}

.pt a {
  word-break: break-all;
  color: #007bff;
}

.pt ul {
  padding-left: 20px
}

table {
  margin-bottom: 10px
}

table,
th,
td {
  border: 1px solid;
  border-collapse: collapse;
}

th,
td {
  padding: 8px;
  text-align: center;
}