:root {
  color-scheme: dark;
  --bg: #07090b;
  --panel: rgba(13, 17, 20, 0.78);
  --panel-strong: rgba(18, 23, 27, 0.9);
  --line: rgba(229, 184, 95, 0.22);
  --gold: #e8bf67;
  --gold-strong: #ffd98a;
  --cyan: #50d6ff;
  --text: #f4f0e6;
  --muted: #9da7ad;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(3, 5, 7, 0.18), #07090b 52%),
    url("./assets/bg-desktop.png") top center / 100% auto no-repeat,
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

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

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.notice,
.site-card,
.game-grid a,
.tool-row a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 28, 33, 0.86), rgba(10, 13, 16, 0.72));
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 14px;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6ca73, #876325);
  color: #111;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
}

.top-actions a {
  min-width: 62px;
  padding: 10px 13px;
  border-radius: 6px;
  color: #d8dde0;
  font-size: 14px;
  text-align: center;
}

.top-actions a:hover,
.service-link {
  background: rgba(232, 191, 103, 0.12);
  color: var(--gold-strong);
}

.hero-banner {
  margin: 34px 0 22px;
  overflow: hidden;
  border: 1px solid rgba(232, 191, 103, 0.22);
  border-radius: 8px;
  background: rgba(8, 11, 13, 0.7);
  box-shadow: var(--shadow);
}

.hero-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.hero-desc {
  max-width: 620px;
  margin-bottom: 28px;
  color: #c7ced1;
  font-size: 17px;
  line-height: 1.75;
}

.site-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 14px 16px;
  border-radius: 8px;
}

.notice span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(232, 191, 103, 0.16);
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
}

.notice-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.notice p {
  width: max-content;
  min-width: 100%;
  margin: 0;
  color: var(--gold-strong);
  line-height: 1.6;
  white-space: nowrap;
  animation: notice-marquee 16s linear infinite;
}

@keyframes notice-marquee {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

.section {
  margin-bottom: 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head a,
.game-banner a {
  padding: 10px 14px;
  border: 1px solid rgba(232, 191, 103, 0.28);
  border-radius: 8px;
  color: var(--gold-strong);
  font-size: 14px;
}

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

.site-card {
  display: grid;
  grid-template-rows: 58px 22px;
  min-height: 132px;
  align-content: space-between;
  justify-items: center;
  gap: 16px;
  padding: 16px 10px 14px;
  overflow: hidden;
  border-radius: 8px;
  text-align: center;
}

.site-card .logo-badge,
.game-grid .mini-logo {
  display: grid;
  place-items: center;
  color: var(--gold-strong);
  font-weight: 900;
}

.site-card .logo-badge {
  width: 90px;
  max-width: 100%;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.site-card .logo-image {
  padding: 0;
}

.site-card .logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-card strong {
  display: block;
  width: 100%;
  min-height: 20px;
  overflow: hidden;
  color: #f4f0e6;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card small {
  display: none;
}

.game-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  margin: 42px 0 18px;
  padding: 26px;
  border: 1px solid rgba(232, 191, 103, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 9, 11, 0.9), rgba(6, 9, 11, 0.5)),
    url("./assets/banner-games.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.game-banner p {
  max-width: 520px;
  margin: 10px 0 0;
  color: #c6cdd1;
  line-height: 1.65;
}

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

.game-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border-radius: 8px;
}

.game-grid .mini-logo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 191, 103, 0.36);
  border-radius: 8px;
  background: rgba(232, 191, 103, 0.12);
}

.game-grid strong {
  font-size: 16px;
}

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

.tool-row a {
  display: grid;
  min-height: 70px;
  place-items: center;
  border-radius: 8px;
  color: #e3e8ea;
  font-weight: 700;
}

footer {
  padding: 22px 0 0;
  color: #7f8a90;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 5, 7, 0.18), #07090b 48%),
      url("./assets/bg-mobile.png") top center / 100% auto no-repeat,
      var(--bg);
  }

  .site-shell {
    width: min(100% - 24px, 460px);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    min-height: auto;
  }

  .brand {
    min-width: 0;
    padding: 8px 10px;
  }

  .brand small {
    display: none;
  }

  .top-actions {
    gap: 0;
    padding: 4px;
  }

  .top-actions a {
    min-width: 42px;
    padding: 9px 8px;
    font-size: 12px;
  }

  .top-actions a:nth-child(3) {
    display: none;
  }

  .hero-banner {
    margin: 22px 0 16px;
  }

  .hero-banner img {
    aspect-ratio: 2.15 / 1;
    object-position: center;
  }

  h2 {
    font-size: 23px;
  }

  .hero-desc {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .notice {
    align-items: flex-start;
    margin-bottom: 26px;
  }

  .section-head {
    align-items: center;
  }

  .section-head a,
  .game-banner a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .site-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .site-card {
    grid-template-rows: 48px 17px;
    min-height: 112px;
    gap: 14px;
    padding: 12px 5px 10px;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .game-grid .mini-logo {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .site-card .logo-badge {
    width: 100%;
    max-width: 68px;
    height: 48px;
    padding: 0;
    font-size: 11px;
  }

  .site-card .logo-image {
    padding: 4px;
  }

  .site-card strong {
    display: block;
    width: 100%;
    min-height: 16px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-card small {
    display: none;
  }

  .game-banner {
    min-height: 150px;
    margin-top: 32px;
    padding: 18px;
  }

  .game-banner p {
    max-width: 230px;
    font-size: 13px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-grid a {
    min-height: 68px;
    padding: 10px;
  }

  .game-grid strong {
    font-size: 13px;
  }

  .tool-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
