﻿* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 1400px;
  background: #06172d;
  color: #f4f1e8;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

body {
  overflow-x: hidden;
}

body.is-video-modal-open {
  overflow: hidden;
}

.common-header {
  position: relative;
  z-index: 10000;
  min-width: 1400px;
}

.stage {
  position: relative;
  left: 50%;
  width: 1920px;
  margin-left: -960px;
}

.visual-section {
  position: relative;
  width: 1920px;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-section {
  height: 1131px;
  background-image: url("../assets/hero-bg.jpg");
}

.hero-play {
  position: absolute;
  top: 680px;
  left: 848px;
  width: 223px;
  height: 145px;
  cursor: pointer;
  background: url("../assets/play-button.png") center center no-repeat;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-play:hover,
.hero-play:focus-visible {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.12);
}

.reward-video-link {
  display: inline-block;
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.reward-video-link:hover,
.reward-video-link:focus-visible {
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.2);
}

.hero-intro {
  position: absolute;
  top: 1048px;
  left: 320px;
  width: 1280px;
  color: #e8f0ff;
  font: 600 22px/30px "Microsoft YaHei", "微软雅黑", sans-serif;
  text-align: center;
}

.hero-intro p {
  margin: 0;
}

.reward-section {
  height: 1425px;
  background-image: url("../assets/reward-bg.jpg");
}

.reward-copy {
  position: absolute;
  color: #dce8fb;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 20px;
  line-height: 1.7;
}

.reward-copy p {
  margin: 0;
  white-space: nowrap;
}

.reward-label {
  /* display: flex; */
  align-items: center;
  /* justify-content: center; */
  width: 138px;
  height: 43px;
  background-image: url("../assets/reward-label.png");
  background-position: 0 0;
  background-repeat: no-repeat;
  color: #564244;
  font-size: 18px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
}

.reward-time {
  top: 123px;
  left: 304px;
  width: 138px;
}

.reward-time p,
.reward-area p {
  position: absolute;
  top: 0;
  left: 154px;
}

.reward-area {
  top: 174px;
  left: 304px;
  width: 138px;
}

.reward-rule {
  top: 229px;
  left: 304px;
  width: 1454px;
  font-size: 18px;
  line-height: 32px;
}

.reward-rule .reward-label {
  position: absolute;
  top: 0;
  left: 0;
}

.reward-rule p {
  width: 1300px;
  margin: 0 0 8px 154px;
  white-space: normal;
}

.reward-overlay {
  position: absolute;
  left: 0;
  width: 1920px;
  color: #c8ddf1;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 18px;
  text-align: center;
}

.reward-grid {
  color: #c8ddf1;
  font-size: 18px;
}

.reward-all {
  top: 470px;
}

.reward-area-prize {
  top: 985px;
}

.reward-grid {
  display: grid;
  grid-template-columns: 280px 680px;
  position: absolute;
  left: 620px;
  width: 960px;
  line-height: 1.4;
}

.reward-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.reward-grid-all {
  top: 111px;
  grid-template-rows: auto;
  line-height: 25px;
}

.reward-grid-all > div:nth-child(-n + 6) {
  padding-top: 18px;
  padding-bottom: 18px;
}

.reward-grid-all > div:nth-child(n + 7) {
  padding-top: 12px;
  padding-bottom: 12px;
}

.reward-grid-area {
  top: 148px;
  grid-template-rows: repeat(3, 49px);
}

.reward-grid-area > div {
  height: 49px;
}

.ranking-section {
  height: 1524px;
  background-image: url("../assets/ranking-bg.jpg");
}

.rank-actions {
  position: absolute;
  top: 199px;
  left: 0;
  width: 1920px;
  height: 75px;
}

.rank-action {
  position: absolute;
  top: 0;
  width: 425px;
  height: 75px;
  padding-top: 20px;
  color: #263456;
  font: 600 27px/35px "Microsoft YaHei", "微软雅黑", sans-serif;
  text-align: center;
  cursor: pointer;
  background: url("../assets/rank-button.png") center center no-repeat;
  opacity: 0.62;
}

.rank-action:first-child {
  left: 500px;
}

.rank-action:last-child {
  left: 995px;
}

.rank-action.is-active {
  opacity: 1;
}

.ranking-section.is-area-mode .rank-action.is-active::after {
  position: absolute;
  bottom: -21px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -12px;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-bottom: 14px solid #414663;
  content: "";
}

.rank-intro {
  position: absolute;
  top: 139px;
  left: 0;
  width: 1920px;
  margin: 0;
  color: #dce8fb;
  font: 22px/30px "Microsoft YaHei", "微软雅黑", sans-serif;
  text-align: center;
}

.area-tabs {
  position: absolute;
  top: 294px;
  left: 307px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 1305px;
  height: 48px;
  padding: 0 24px;
  background: #414663;
  white-space: nowrap;
}

.ranking-section:not(.is-area-mode) .area-tabs {
  display: none;
}

.area-tab {
  padding: 0;
  border: 0;
  color: #e9e8ef;
  font: 18px/48px "Microsoft YaHei", "微软雅黑", sans-serif;
  cursor: pointer;
  background: transparent;
}

.area-tab.is-active,
.area-tab:hover {
  color: #f6d98d;
}

.rank-table {
  position: absolute;
  top: 415px;
  left: 342px;
  width: 1237px;
  color: #c8ddf1;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 18px;
  text-align: center;
}

.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: 172px 545px 348px 172px;
}

.rank-head.is-world,
#rank-list.is-world .rank-row {
  grid-template-columns: 156px 205px 441px 291px 144px;
}

.rank-head {
  height: 53px;
  color: #e7e9f0;
  font-weight: 600;
  line-height: 53px;
  background: rgba(51, 58, 91, 0.9);
}

.rank-head > div,
.rank-row > div {
  border-right: 2px solid rgba(100, 114, 149, 0.64);
}

.rank-head > div:last-child,
.rank-row > div:last-child {
  border-right: 0;
}

#rank-list {
  background: rgba(66, 77, 113, 0.62);
}

.rank-row {
  height: 86px;
  line-height: 1.35;
  border-top: 2px solid rgba(100, 114, 149, 0.64);
}

.rank-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
}

.rank-row small {
  display: block;
  width: 100%;
  color: #c8ddf1;
  font-size: 18px;
  line-height: 1.4;
}

.rank-row span {
  display: block;
  width: 100%;
}

.rank-cell-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  width: 100%;
  row-gap: 2px;
  line-height: 1.35;
}

.rank-cell-list span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-status {
  position: absolute;
  top: 488px;
  left: 0;
  width: 1920px;
  margin: 0;
  color: rgba(240, 241, 250, 0.78);
  font-size: 18px;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-modal[hidden],
.video-modal__player[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 80px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 160px));
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid #414663;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.video-modal__player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.video-modal__close {
  position: absolute;
  top: -46px;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 0 0px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #fff;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: rgba(65, 70, 99, 0.9);
}
