:root {
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24324a;
  background: #e9eef8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #e9eef8;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #e9eef8;
}

button,
a {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

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

.page-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #f4f6fb;
  box-shadow: 0 0 32px rgba(40, 57, 89, 0.12);
}

.bookmark-tip {
  display: flex;
  min-height: 44px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #246ed1;
  font-size: 14px;
  font-weight: 700;
}

.bookmark-tip__star {
  color: #ffd36b;
  font-size: 18px;
  line-height: 1;
}

.brand-hero {
  padding: 24px 18px 18px;
  color: #1c3154;
  background: #dfeeff;
  border-bottom: 1px solid #c8dcf5;
}

.brand-hero__identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-hero__logo {
  display: block;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(46, 118, 205, 0.2);
  object-fit: cover;
}

.brand-hero__identity p,
.brand-hero__identity h1,
.brand-hero__identity span {
  margin: 0;
  letter-spacing: 0;
}

.brand-hero__identity p {
  color: #2f79c9;
  font-size: 11px;
  font-weight: 900;
}

.brand-hero__identity h1 {
  margin-top: 3px;
  color: #172b4d;
  font-size: 29px;
  line-height: 1.2;
}

.brand-hero__identity span {
  display: block;
  margin-top: 6px;
  color: #667895;
  font-size: 13px;
}

.hero-strip {
  display: grid;
  height: 92px;
  margin-top: 20px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-strip img {
  display: block;
  width: 100%;
  height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  object-fit: cover;
}

main {
  padding: 12px 0 30px;
}

.content-section {
  margin-top: 12px;
  padding: 20px 18px 22px;
  border-top: 1px solid #dfe5ef;
  border-bottom: 1px solid #dfe5ef;
  background: #fff;
}

.section-title {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  color: #344563;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
}

.section-title > span {
  position: relative;
  width: 44px;
  height: 1px;
  background: #c8d8ee;
}

.section-title > span::after {
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7fa8dc;
  content: "";
}

.section-title > span:first-child::after {
  right: 0;
}

.section-title > span:last-child::after {
  left: 0;
}

.entry-row {
  display: grid;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

.entry-row + .entry-row {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e8edf4;
}

.entry-row__logo,
.copy-symbol {
  width: 56px;
  height: 56px;
  border-radius: 8px;
}

.entry-row__logo {
  display: block;
  object-fit: cover;
}

.copy-symbol {
  display: grid;
  place-items: center;
  color: #fff;
  background: #5d4fb4;
  font-size: 20px;
  font-weight: 800;
}

.entry-row__content {
  min-width: 0;
}

.entry-row__content strong,
.entry-row__content span {
  display: block;
}

.entry-row__content strong {
  overflow: hidden;
  color: #2a3954;
  font-size: 15px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-row__content span {
  overflow: hidden;
  margin-top: 3px;
  color: #7b879b;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-button {
  display: inline-flex;
  min-width: 64px;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.action-button.primary {
  color: #fff;
  background: #246ed1;
  box-shadow: 0 5px 12px rgba(36, 110, 209, 0.24);
}

.action-button.secondary {
  color: #fff;
  background: #5d4fb4;
  box-shadow: 0 5px 12px rgba(93, 79, 180, 0.2);
}

.action-button:active,
.quick-links a:active,
.game-grid a:active,
.bottom-action:active {
  transform: translateY(1px);
}

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

.quick-links a {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.quick-links__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 7px 14px rgba(56, 75, 111, 0.16);
}

.icon-home {
  background: #2b7fd5;
}

.icon-activity {
  background: #e45d78;
}

.icon-partner {
  background: #d49325;
}

.icon-help {
  background: #42a07d;
}

.quick-links strong {
  max-width: 100%;
  overflow: hidden;
  color: #526079;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.game-grid a {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.game-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #eef3f9;
  box-shadow: 0 7px 15px rgba(47, 66, 100, 0.1);
  object-fit: cover;
}

.game-grid span {
  max-width: 100%;
  overflow: hidden;
  color: #3a4862;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-action {
  display: flex;
  width: calc(100% - 36px);
  min-height: 50px;
  margin: 22px auto 0;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 8px;
  color: #fff;
  background: #246ed1;
  box-shadow: 0 9px 20px rgba(36, 110, 209, 0.22);
  font-size: 15px;
  font-weight: 800;
}

.bottom-action span {
  font-size: 19px;
}

footer {
  display: flex;
  min-height: 74px;
  padding: 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid #dfe5ef;
  color: #8a96aa;
  background: #edf1f7;
  font-size: 11px;
  font-weight: 800;
}

footer img {
  display: block;
  border-radius: 6px;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 50%;
  bottom: 28px;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 7px;
  color: #fff;
  background: rgba(30, 43, 65, 0.94);
  font-size: 13px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

.toast.is-error {
  background: #ad3f4b;
}

.noscript-message {
  position: fixed;
  z-index: 11;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border: 1px solid #c9d9eb;
  border-radius: 7px;
  text-align: center;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.16);
}

.noscript-message a {
  color: #246ed1;
  font-weight: 800;
}

.action-button:focus-visible,
.quick-links a:focus-visible,
.game-grid a:focus-visible,
.bottom-action:focus-visible,
.noscript-message a:focus-visible {
  outline: 3px solid rgba(36, 110, 209, 0.3);
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .bookmark-tip {
    font-size: 13px;
  }

  .brand-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-hero__logo {
    width: 66px;
    height: 66px;
  }

  .brand-hero__identity h1 {
    font-size: 25px;
  }

  .content-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .entry-row {
    gap: 9px;
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .entry-row__logo,
  .copy-symbol {
    width: 50px;
    height: 50px;
  }

  .action-button {
    min-width: 58px;
    padding: 0 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
