:root {
  --bg: #f4f4f2;
  --ink: #101010;
  --muted: #666;
  --line: #ececec;
  --card: #fff;
  --black: #171717;
  --shadow: 0 10px 22px rgba(0, 0, 0, .11);
  --blue: #347df4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  overflow-y: scroll;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.page {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 22px 34px;
}

.top-card {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 98px;
  margin: 0 -22px 20px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .96);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  backdrop-filter: blur(12px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand-logo {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffe08c;
  background:
    radial-gradient(circle at 62% 28%, rgba(255, 245, 170, .72), transparent 24%),
    linear-gradient(135deg, #d82a1f, #7d1b12 52%, #2b0c08);
  font-size: 29px;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  overflow: hidden;
  color: #111;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-copy small {
  color: #222;
  font-size: 23px;
  letter-spacing: 0;
}

.top-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
}

.top-action {
  min-width: 128px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #252525, #101010);
  text-decoration: none;
  font-size: 24px;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.top-action::before {
  margin-right: 7px;
}

#contactBtn::before {
  content: "●";
  font-size: 14px;
}

#shareBtn::before {
  content: "↗";
  font-size: 20px;
}

.hero-card {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 35%, rgba(255, 255, 255, .36), transparent 18%),
    radial-gradient(circle at 72% 35%, rgba(255, 255, 255, .12), transparent 28%),
    linear-gradient(108deg, #101a3a 0%, #071129 52%, #1b2a60 100%);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 42%, rgba(255, 255, 255, .18), transparent 9%),
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 48%);
}

.hero-card.has-image::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, .36), transparent 54%);
}

.hero-text {
  position: absolute;
  right: 7%;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  text-align: center;
  color: #e9edf5;
  text-shadow: 0 4px 10px rgba(0, 0, 0, .6);
}

.hero-text span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  color: #a9d8ff;
  font-size: 28px;
  font-weight: 850;
}

.hero-text strong {
  display: block;
  color: #e6ebf4;
  font-size: 55px;
  line-height: 1.08;
  font-weight: 950;
}

.hero-balls {
  position: absolute;
  left: 9%;
  bottom: 26px;
  z-index: 2;
  display: flex;
  gap: 12px;
}

.hero-balls i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #343434;
  background: radial-gradient(circle at 34% 28%, #fff, #d5d6d8);
  font-style: normal;
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.black-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 14px;
}

.black-btn {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #eef6ff;
  background: linear-gradient(180deg, #202020, #111);
  text-decoration: none;
  font-size: 32px;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.notice-bar {
  min-height: 72px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #3f3f3f, #222);
  font-size: 27px;
  font-weight: 720;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.notice-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-size: 22px;
  font-weight: 950;
}

.notice-bar span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card {
  margin-top: 16px;
  padding: 18px 22px 28px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.cat-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 0;
}

.cat-btn {
  height: 78px;
  border: 0;
  border-radius: 15px;
  color: #8d949c;
  background: #fff;
  font-size: 27px;
  font-weight: 860;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.cat-btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, #282828, #171717);
}

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

.nav-card {
  position: relative;
  min-height: 164px;
  padding: 20px 20px 20px 172px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .07);
}

.nav-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 112px;
  height: 112px;
  overflow: hidden;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  text-decoration: none;
  font-size: 28px;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-info h2 {
  margin: 0 0 12px;
  overflow: hidden;
  color: #111;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-info p {
  margin: 0;
  overflow: hidden;
  color: #666;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.open-btn {
  justify-self: end;
  min-width: 148px;
  height: 45px;
  margin-top: 16px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #151515;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .22);
}

.open-btn::before {
  content: "↗";
  margin-right: 5px;
  font-size: 16px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 18px;
  margin-top: 34px;
}

.game-card {
  position: relative;
  min-width: 0;
}

.game-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: var(--shadow);
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-cover:not(.has-image)::after {
  content: attr(data-title);
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: 950;
}

.try-btn {
  position: absolute;
  top: -13px;
  right: 8px;
  z-index: 3;
  min-width: 122px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid #dceeff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #5c95ff, #2d73ec);
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.game-name {
  margin: 18px 0 0;
  overflow: hidden;
  color: #111;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.load-more {
  display: block;
  width: 210px;
  height: 54px;
  margin: 34px auto 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.load-more[hidden] {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .86);
  color: #fff;
  font-weight: 800;
  pointer-events: none;
  transition: .2s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.site-footer {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .page {
    max-width: 560px;
    padding: 0 12px 24px;
  }

  .top-card {
    min-height: 72px;
    margin: 0 -12px 14px;
    padding: 12px 16px;
    border-radius: 0 0 14px 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    font-size: 15px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-action {
    min-width: 78px;
    height: 42px;
    border-radius: 10px;
    font-size: 15px;
  }

  .hero-card {
    min-height: 174px;
    border-width: 2px;
    border-radius: 14px;
  }

  .hero-text {
    right: 6%;
  }

  .hero-text span {
    margin-bottom: 8px;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 16px;
  }

  .hero-text strong {
    font-size: 32px;
  }

  .hero-balls {
    left: 8%;
    bottom: 16px;
    gap: 8px;
  }

  .hero-balls i {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .black-actions {
    gap: 10px;
    margin: 12px 0 10px;
  }

  .black-btn {
    min-height: 50px;
    border-radius: 12px;
    font-size: 21px;
  }

  .notice-bar {
    min-height: 48px;
    padding: 0 16px;
    gap: 12px;
    border-radius: 12px;
    font-size: 18px;
  }

  .notice-icon {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .content-card {
    margin-top: 12px;
    padding: 14px 13px 20px;
    border-radius: 14px;
  }

  .cat-tabs {
    gap: 9px;
    margin-bottom: 14px;
  }

  .cat-btn {
    height: 54px;
    border-radius: 11px;
    font-size: 18px;
  }

  .site-grid {
    gap: 12px;
  }

  .nav-card {
    min-height: 106px;
    padding: 13px 12px 12px 94px;
    border-radius: 12px;
  }

  .nav-logo {
    left: 12px;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    font-size: 17px;
  }

  .nav-info h2 {
    margin-bottom: 7px;
    font-size: 18px;
  }

  .nav-info p {
    font-size: 15px;
  }

  .open-btn {
    min-width: 92px;
    height: 30px;
    margin-top: 9px;
    border-radius: 7px;
    font-size: 13px;
  }

  .game-grid {
    gap: 25px 12px;
    margin-top: 24px;
  }

  .game-cover {
    border-radius: 10px;
  }

  .try-btn {
    top: -9px;
    right: 4px;
    min-width: 72px;
    height: 34px;
    border-width: 2px;
    font-size: 14px;
  }

  .game-name {
    margin-top: 10px;
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .top-card {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-action {
    min-width: 66px;
    font-size: 13px;
  }

  .hero-card {
    min-height: 136px;
  }

  .hero-text strong {
    font-size: 25px;
  }

  .black-btn {
    min-height: 46px;
    font-size: 18px;
  }

  .notice-bar {
    min-height: 42px;
    font-size: 15px;
  }

  .content-card {
    padding: 12px 10px 18px;
  }

  .cat-btn {
    height: 46px;
    font-size: 15px;
  }

  .site-grid {
    gap: 10px;
  }

  .nav-card {
    min-height: 92px;
    padding: 10px 10px 10px 76px;
  }

  .nav-logo {
    left: 9px;
    width: 56px;
    height: 56px;
  }

  .nav-info h2 {
    font-size: 15px;
  }

  .nav-info p {
    font-size: 13px;
  }

  .open-btn {
    min-width: 74px;
    height: 27px;
    font-size: 12px;
  }

  .game-grid {
    gap: 22px 9px;
  }

  .try-btn {
    min-width: 64px;
    height: 30px;
    font-size: 12px;
  }

  .game-name {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 13px;
  }

  .top-action {
    min-width: 58px;
    height: 38px;
    font-size: 12px;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }

  .nav-card {
    min-height: 88px;
  }
}
