:root {
  --page-bg: #1e1e1e;
  --header-text: #fff;
  --card-border: #d85b67;
  --card-title: #d65252;
  --card-copy: #f20f0f;
  --button-bg: #ff9f0a;
  --button-bg-hover: #ff9f0a;
  --modal-overlay: rgba(0, 0, 0, 0.72);
  --modal-panel: #10181d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 1280px;
  background: var(--page-bg);
  color: #222;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #13212a url("./assets/headerbg.jpg") center top no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrap {
  width: 1280px;
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  min-height: 136px;
}

.nav-item {
  width: 120px;
  padding: 30px 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
  transition: transform 120ms ease, opacity 120ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  transform: translateY(-2px);
}

.nav-icon {
  width: 41px;
  height: 41px;
  display: block;
  background-image: url("./assets/iconlist3.png");
  background-repeat: no-repeat;
  opacity: 0.92;
}

.icon-home { background-position: 0 0; }
.icon-transfer { background-position: -41px 0; }
.icon-gift { background-position: -82px 0; }
.icon-assist { background-position: -123px 0; }
.icon-box { background-position: -164px 0; }
.icon-user { background-position: -205px 0; }
.icon-qq { background-position: -246px 0; }

.banner {
  position: relative;
  width: 100%;
  min-width: 1280px;
  height: 525px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 191, 84, 0.16), transparent 34%),
    linear-gradient(180deg, #040607 0%, #0f171d 100%);
}

.banner-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 520ms ease-in-out;
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.banner-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #101b21;
  cursor: pointer;
}

.banner-dot.is-active {
  background: #fff;
}

.games {
  width: 1280px;
  margin: 0 auto;
  padding: 30px 0 40px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.game-card {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--card-border);
}

.empty-state h2 {
  margin: 0 0 10px;
  color: var(--card-title);
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.game-cover {
  position: relative;
  display: block;
  height: 174px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 204, 94, 0.3), rgba(31, 16, 8, 0.96) 66%),
    #221f1f;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 195, 102, 0.28),
    0 0 20px rgba(255, 137, 26, 0.28),
    0 0 48px rgba(255, 166, 0, 0.16),
    0 0 90px rgba(255, 105, 0, 0.08);
}

.game-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 252, 214, 0.95), transparent 16%),
    radial-gradient(circle at 84% 18%, rgba(255, 205, 80, 0.72), transparent 15%),
    radial-gradient(circle at 50% 72%, rgba(255, 111, 0, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 226, 0.16), rgba(255, 180, 45, 0.05) 34%, rgba(0, 0, 0, 0.3));
  opacity: 0.96;
  pointer-events: none;
}

.game-cover::after {
  content: "";
  position: absolute;
  top: -36%;
  left: -58%;
  z-index: 2;
  width: 58%;
  height: 232%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 220, 0.1), rgba(255, 255, 232, 0.92), rgba(255, 198, 86, 0.24), transparent);
  transform: rotate(16deg);
  opacity: 0.98;
  filter: blur(2px);
  pointer-events: none;
  transition: transform 520ms ease, left 520ms ease;
}

.game-cover .cover-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 186, 86, 0.18), transparent 40%),
    radial-gradient(circle at 20% 82%, rgba(255, 126, 0, 0.14), transparent 28%),
    radial-gradient(circle at 80% 84%, rgba(255, 206, 114, 0.12), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.game-cover img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter:
    saturate(1.18)
    contrast(1.1)
    brightness(1.04)
    drop-shadow(0 0 12px rgba(255, 183, 86, 0.26))
    drop-shadow(0 0 34px rgba(255, 111, 0, 0.18));
  transform: scale(1.02);
  transition: transform 420ms ease, filter 420ms ease;
}

.game-card:hover .game-cover::after {
  left: 112%;
  transform: rotate(16deg) translateX(18px);
}

.game-card:hover .game-cover img {
  filter:
    saturate(1.25)
    contrast(1.12)
    brightness(1.08)
    drop-shadow(0 0 16px rgba(255, 195, 96, 0.42))
    drop-shadow(0 0 44px rgba(255, 98, 0, 0.24));
  transform: scale(1.06);
}

.game-body {
  min-height: 184px;
  padding: 18px 18px 22px;
  background: #fff;
  border: 2px solid var(--card-border);
  
}

.game-body h2 {
  margin: 0 0 10px;
  color: #f6a429;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-shadow: none;
}

.game-body p {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3dddd;
  color: var(--card-copy);
  font-size: 14px;
  line-height: 1.6;
}

.game-actions {
  display: flex;
  gap: 12px;
  padding-top: 14px;
}

.game-actions a {
  min-width: 110px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--button-bg);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.game-actions a:hover {
  background: var(--button-bg-hover);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
}

.modal-panel {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  margin: 8vh auto 0;
  padding: 28px 28px 26px;
  background: linear-gradient(180deg, #1a2a34 0%, var(--modal-panel) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 8px;
  color: #ffb347;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.modal-panel h3 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 600;
}

.modal-qr {
  width: 230px;
  height: 230px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #fff;
}

.modal-tip {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}
