/* KevinGaming — 晴空糖果 + borrowed blue tokens. Not a wholesale copy of the GPT demo. */
:root {
  --ink: #15213d;
  --muted: #7e8aa5;
  --blue: #2479ff;
  --blue2: #49a0ff;
  --line: #e7edf8;
  --panel: #fff;
  --surface: #f6f9ff;
  --cream: #fffdf8;
  --pink: #ff6f91;
  --pink-deep: #f84669;
  --mint: #d8f6e8;
  --lemon: #fff1b8;
  --lavender: #ead9ff;
  --shadow: 0 18px 55px rgba(40, 80, 153, 0.085);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: #f7f9ff;
  background-image:
    radial-gradient(circle at 8% 8%, rgba(255, 182, 211, 0.22) 0 140px, transparent 141px),
    radial-gradient(circle at 92% 4%, rgba(168, 216, 255, 0.38) 0 160px, transparent 161px),
    radial-gradient(circle at 90% 90%, rgba(255, 236, 160, 0.24) 0 140px, transparent 141px),
    radial-gradient(circle at 8% 86%, rgba(186, 245, 210, 0.18) 0 120px, transparent 121px),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 55%, #fff8f2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:focus-visible,
a:focus-visible {
  outline: 3px solid #89bbff;
  outline-offset: 3px;
}

.container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #edf1fa;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-in {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  overflow: visible;
  min-width: 0;
  color: inherit;
}
.brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4fafff, #1764f4);
  box-shadow: 0 8px 16px #267eff33;
  overflow: hidden;
}
.brand-icon img {
  width: 22px;
  height: 22px;
  display: block;
}
.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.45;
  padding: 4px 8px 8px 0;
  margin: 0;
  overflow: visible;
  display: inline-block;
  white-space: nowrap;
  color: var(--ink);
}
.brand-title span { color: var(--blue); }
.tagline {
  font-size: 12px;
  font-weight: 600;
  color: #8a94ab;
  border-left: 1px solid #d4dcec;
  padding-left: 16px;
  margin-left: 7px;
  line-height: 1.4;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 700;
  color: #46516d;
  padding: 27px 0 24px;
  position: relative;
}
.nav a.active { color: #186dff; }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 4px;
  background: #3083ff;
}

/* ----- Hero / carousel ----- */
.hero-block { padding-top: 22px; }
.carousel {
  position: relative;
}
.stage {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.track {
  display: flex;
  align-items: stretch;
  gap: 0;
  transition: transform 0.35s ease;
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  height: 320px;
  min-height: 0;
  display: grid;
  grid-template-columns: 48% 52%;
  grid-template-rows: minmax(0, 1fr);
  color: #fff;
  overflow: hidden;
  position: relative;
  background: linear-gradient(115deg, #206ce3 0%, #3c9aff 51%, #eac1db 100%);
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0 52% 0 0;
  background:
    radial-gradient(circle at 43% 120%, #82c9ff66, transparent 45%),
    linear-gradient(115deg, #1554c755, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.slide-kart { background: linear-gradient(115deg, #206ce3 0%, #3c9aff 51%, #eac1db 100%); }
.slide-rail { background: linear-gradient(115deg, #1c7a9a 0%, #3aa8c9 50%, #b8e6d4 100%); }
.slide-rail::before {
  background:
    radial-gradient(circle at 43% 120%, #7fe0d066, transparent 45%),
    linear-gradient(115deg, #0f5a6e55, transparent 60%);
}
.slide-spectrum { background: linear-gradient(115deg, #3a5bdb 0%, #6b8cff 48%, #d0b6ff 100%); }
.slide-spectrum::before {
  background:
    radial-gradient(circle at 43% 120%, #b9a6ff55, transparent 45%),
    linear-gradient(115deg, #2a3cb055, transparent 60%);
}
.slide-copy {
  position: relative;
  z-index: 2;
  padding: 26px 20px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #ffffff66;
  background: #ffffff2d;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
}
.slide-copy h1 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}
.slide-copy p {
  font-size: 14px;
  line-height: 1.55;
  max-width: 20em;
  margin: 8px 0 14px;
  color: #edf5ff;
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.slide-right {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.slide-right::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -1px;
  background: linear-gradient(90deg, #368dfc 0%, transparent 12%);
  z-index: 1;
  pointer-events: none;
}
.slide-rail .slide-right::before { background: linear-gradient(90deg, #2a9bb8 0%, transparent 12%); }
.slide-spectrum .slide-right::before { background: linear-gradient(90deg, #5b73e8 0%, transparent 12%); }
.slide-art {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-actions .btn { min-height: 38px; padding: 0 20px; }
.btn {
  border: 0;
  border-radius: 99px;
  min-height: 42px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: #216cf0;
  box-shadow: 0 8px 20px #173b9a1d;
}
.slide-rail .btn-white { color: #1b6a7a; }
.slide-spectrum .btn-white { color: #3b4cb8; }
.btn-outline {
  color: #fff;
  border: 1px solid #ffffffba;
  background: #ffffff14;
}
.btn-primary {
  background: linear-gradient(110deg, #369dff, #1665f6);
  color: #fff;
  box-shadow: 0 8px 16px #2c79f22b;
}

.arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffffdc;
  border: 0;
  color: #3560a1;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 7px 18px #173b7b20;
  padding: 0;
}
.arrow:hover { background: #fff; }
.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 22px;
}
.hero-dots .dot {
  padding: 0;
  background: #d1d9e6;
  border: 0;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  cursor: pointer;
}
.hero-dots .dot.is-active {
  background: #367fff;
  width: 23px;
  border-radius: 10px;
}

/* ----- Featured (homepage) ----- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap;
  line-height: 1.3;
}
.section-head h2::before {
  content: "";
  height: 26px;
  width: 5px;
  border-radius: 8px;
  background: linear-gradient(#47aeff, #236cff);
  flex: 0 0 5px;
}
.section-head p {
  margin: 8px 0 0 17px;
  font-size: 13px;
  color: #8793ac;
}
.more {
  color: #2879ff;
  font-weight: 750;
  font-size: 13px;
  white-space: nowrap;
}
.more:hover { color: #1665f6; }

.featured { margin-bottom: 28px; }
.featured-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid #edf1fa;
  border-radius: 23px;
  padding: 16px;
  display: grid;
  grid-template-columns: 43% 1fr;
  gap: 17px;
  box-shadow: var(--shadow);
  min-width: 0;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 23px 60px #4578c528;
}
.feature-card .cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: #e6eeff;
  min-height: 0;
  display: block;
}
.feature-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}
.feature-card:hover .cover img { transform: scale(1.06); }
.cover-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  font-size: 11px;
  font-weight: 750;
  color: #fff;
  background: linear-gradient(90deg, #ff6f88, #f84669);
  padding: 5px 10px;
  border-radius: 99px;
}
.cover-badge.is-hot { background: linear-gradient(90deg, #ff8a4c, #ff5a3c); }
.game-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3px 0;
}
.game-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.3;
  overflow: visible;
}
.game-info h3 a { color: inherit; }
.game-info .desc {
  font-size: 12px;
  color: #7a849b;
  line-height: 1.7;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}
.pills span,
.chips li {
  font-size: 11px;
  border-radius: 8px;
  background: #eff5ff;
  color: #6981ac;
  padding: 4px 9px;
  font-weight: 600;
  list-style: none;
}
.feature-card .btn { min-height: 35px; font-size: 12px; padding: 0 14px; margin-top: auto; }

/* ----- Benefits ----- */
.benefits {
  margin: 8px 0 42px;
  background: #f0f5ff;
  border: 1px solid #e7efff;
  border-radius: 21px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.benefit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border-right: 1px solid #d6e2f4;
}
.benefit:last-child { border: 0; }
.benefit-icon { font-size: 26px; line-height: 1; }
.benefit b { display: block; font-size: 14px; }
.benefit p { font-size: 12px; color: #8290a8; margin: 5px 0 0; }

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid #e8eef8;
  padding: 30px 0 35px;
  background: #ffffffb2;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #8994aa;
  font-size: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #304365;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  padding: 2px 4px 4px 0;
  overflow: visible;
  white-space: nowrap;
}
.footer-brand img {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #4fafff, #1764f4);
  border-radius: 7px;
  padding: 3px;
}
.footer-note { margin: 0; }
.footer-note b { color: #304365; font-weight: 700; }

/* ----- Library / cabinet ----- */
.cabinet-wrap { padding: 32px 0 56px; }
.cabinet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.cabinet-head h1 {
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.cabinet-head h1::before {
  content: "";
  height: 26px;
  width: 5px;
  border-radius: 8px;
  background: linear-gradient(#47aeff, #236cff);
  flex: 0 0 5px;
}
.cabinet-head p {
  margin: 8px 0 0 17px;
  color: #8793ac;
  font-size: 13px;
}
.pill-count {
  display: inline-block;
  background: #eff5ff;
  color: #3a5a96;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 280px);
  justify-content: start;
  gap: 20px;
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #edf1fa;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 10px 10px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.game-card.is-live:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(40, 80, 153, 0.14);
}
a.game-card.is-live:hover .cover { transform: scale(1.06); }
a.game-card.is-live:hover .go { color: var(--blue); }
.game-card .cover-wrap,
.game-card .cover-soon {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #e6eeff;
  position: relative;
  display: block;
}
.game-card .cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}
.game-card .cover-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lemon);
}
.game-card.is-soon { cursor: default; box-shadow: 0 8px 24px rgba(40, 80, 153, 0.05); }
.game-card .meta {
  padding: 0 6px 2px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.game-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card .go {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #8aa0c0;
  transition: color 0.18s ease;
}

.glyph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
  background-color: rgba(255, 255, 255, 0.65);
}
.glyph.gift {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='1'/%3E%3Cpath d='M4 11h16M12 11v9M12 11c-2-3-5-4-6-2s1 3 6 2m0 0c2-3 5-4 6-2s-1 3-6 2'/%3E%3C/svg%3E");
}

/* ----- Game intro pages ----- */
.game-intro {
  padding: 28px 0 56px;
  max-width: 860px;
  margin: 0 auto;
  width: min(860px, calc(100% - 64px));
}
.game-intro .back {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.game-intro .back:hover { color: var(--ink); }
.intro-sheet {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #edf1fa;
}
.intro-sheet .intro-hero {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.intro-body { padding: 22px 26px 26px; }
.intro-body h1 {
  margin: 0 0 8px;
  font-size: 28px;
  white-space: nowrap;
  line-height: 1.3;
  overflow: visible;
}
.intro-body p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.chips {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}
.intro-sheet.rail .chips li { background: #e7f6f1; color: #2f564d; }
.intro-sheet.spectrum .chips li { background: #eee8ff; color: #4c3d8a; }

/* ----- About ----- */
.about-wrap { padding: 36px 0 64px; }
.about-sheet {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #edf1fa;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px 36px 36px;
}
.about-sheet h1 {
  margin: 0 0 16px;
  font-size: 28px;
  white-space: nowrap;
  line-height: 1.3;
}
.about-sheet p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #3b4966;
}
.about-sheet p:last-child { margin-bottom: 0; }

/* ----- Responsive ----- */
@media (max-width: 1120px) {
  .tagline { display: none; }
  .container { width: min(100% - 40px, 980px); }
  .slide-copy { padding-left: 56px; }
  .featured-grid { gap: 16px; }
}

@media (max-width: 800px) {
  .featured-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container,
  .game-intro { width: calc(100% - 28px); }
  .header-in { min-height: 66px; gap: 9px; }
  .brand-title { font-size: 20px; padding: 3px 6px 6px 0; letter-spacing: -0.3px; }
  .brand-icon { width: 37px; height: 37px; flex-basis: 37px; border-radius: 12px; }
  .brand-icon img { width: 19px; height: 19px; }
  .nav { gap: 15px; }
  .nav a { padding: 23px 0; font-size: 13px; }
  .nav a.active::after { bottom: 12px; }
  .hero-block { padding-top: 17px; }
  .slide {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
  }
  .slide::before { display: none; }
  .slide-right { grid-row: 1; }
  .slide-art { height: 220px; object-position: 55% 50%; }
  .slide-right::before { display: none; }
  .slide-copy {
    grid-row: 2;
    padding: 22px 24px 28px;
  }
  .slide-kart .slide-copy { background: linear-gradient(115deg, #2372e8, #449eff); }
  .slide-rail .slide-copy { background: linear-gradient(115deg, #1c7a9a, #3aa8c9); }
  .slide-spectrum .slide-copy { background: linear-gradient(115deg, #3a5bdb, #6b8cff); }
  .slide-copy h1 { font-size: 28px; }
  .slide-copy p { font-size: 13px; margin: 8px 0 13px; }
  .hero-kicker { margin-bottom: 6px; }
  .arrow { top: 110px; transform: none; }
  .arrow-prev { left: 10px; }
  .arrow-next { right: 10px; }
  .hero-dots { margin: 12px 0 18px; }
  .section-head h2,
  .cabinet-head h1 { font-size: 21px; }
  .feature-card { gap: 13px; grid-template-columns: 42% 1fr; padding: 11px; }
  .game-info h3 { font-size: 17px; }
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 18px 11px;
  }
  .benefit { justify-content: flex-start; border: 0; }
  .benefit-icon { font-size: 23px; }
  .benefit b { font-size: 12px; }
  .benefit p { font-size: 10px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
  .cabinet-wrap { padding: 20px 0 40px; }
  .catalog { grid-template-columns: repeat(auto-fill, minmax(0, 1fr)); }
  .game-card { width: 100%; }
  .intro-sheet .intro-hero { height: 180px; }
  .intro-body { padding: 18px 18px 22px; }
  .about-sheet { padding: 24px 20px 28px; }
}

@media (max-width: 390px) {
  .brand-title { font-size: 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: 12px; }
  .slide-copy h1 { font-size: 26px; }
}

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