:root {
  color-scheme: light;
  --ink: #245667;
  --muted: #5f8290;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --accent: #ffb84e;
  --coral: #ff7d6e;
  --aqua: #70dce9;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% 15%, rgba(255, 255, 255, 0.78) 0 9%, transparent 10%),
    radial-gradient(circle at 78% 18%, rgba(255, 184, 78, 0.22) 0 14%, transparent 15%),
    linear-gradient(180deg, #a4eff5 0%, #d8f8eb 62%, #fff1c8 100%);
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

.home {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 28px;
}

.hero {
  min-height: 30dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 2px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(34, 116, 138, 0.11);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.brand-bubble {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 17%, transparent 19%),
    linear-gradient(145deg, #d9fbff, #5ecfde);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.game-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.game-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 14px 30px rgba(35, 104, 128, 0.14);
  text-decoration: none;
}

.game-row:active {
  transform: scale(0.985);
}

.row-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #fff 0 11%, transparent 12%),
    radial-gradient(circle at 54% 54%, #ffcf57 0 36%, #ff8d2c 37% 100%);
  box-shadow:
    inset -5px -4px 0 rgba(198, 88, 22, 0.14),
    0 8px 16px rgba(255, 125, 56, 0.18);
}

.row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
}

.row-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.row-arrow {
  color: var(--coral);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

@media (max-width: 360px) {
  .home {
    padding-inline: 12px;
  }

  h1 {
    font-size: 34px;
  }

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

  .row-icon {
    width: 42px;
    height: 42px;
  }
}
