:root {
  --bg-start: #05070d;
  --bg-end: #081426;
  --surface: #e7edf6;
  --text: #0f172a;
  --muted: #43506a;
  --line: #c9d5e6;
  --brand: #4f7bff;
  --brand-2: #6b5dff;
  --hero-text: #f1f5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: radial-gradient(120% 140% at 85% 8%, #102544 0%, transparent 45%),
    linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 10, 23, 0.92);
  border-bottom: 1px solid rgba(126, 153, 255, 0.24);
  backdrop-filter: blur(8px);
}

.top-strip-inner {
  overflow-x: auto;
}

.site-header {
  padding: 2.2rem 0 2rem;
  color: var(--hero-text);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 58px;
  width: max-content;
  padding: 0.35rem 0;
}

.icon-button {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-button img {
  width: clamp(168px, 26vw, 280px);
  height: auto;
  display: block;
  pointer-events: none;
}

.icon-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  letter-spacing: 0.02em;
  font-weight: 800;
  line-height: 1.2;
}

.hero-tagline {
  margin: 0;
  color: #c5d8ff;
  font-weight: 600;
  font-size: 1.4rem;
}

.hero-subtitle {
  max-width: 56ch;
  margin: 0.8rem 0 1.2rem;
  color: #d8e5ff;
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-tech-pattern {
  position: relative;
  height: 220px;
  border: 1px solid rgba(149, 182, 255, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(61, 102, 255, 0.1), rgba(82, 166, 255, 0.04));
  overflow: hidden;
}

.hero-tech-pattern::before,
.hero-tech-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-tech-pattern::before {
  background: repeating-linear-gradient(90deg,
      rgba(168, 199, 255, 0.2) 0 1px,
      transparent 1px 18px);
  opacity: 0.35;
}

.hero-tech-pattern::after {
  background: repeating-linear-gradient(0deg,
      rgba(123, 163, 255, 0.2) 0 1px,
      transparent 1px 22px);
  mix-blend-mode: screen;
}

main {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 2.2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 24px rgba(9, 20, 36, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(9, 20, 36, 0.12);
  background-color: #edf3fb;
}

h2,
h3,
p,
li,
a,
small {
  border-color: transparent;
}

.card h2 {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  color: #111827;
  display: inline-block;
  border-bottom: 3px solid var(--brand);
  padding-bottom: 0.2rem;
}

.game-card h3 {
  margin-top: 0;
}

ul {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.cta-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(186, 205, 255, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.cta-button {
  padding: 0.7rem 1.1rem;
  color: #e8f0ff;
  background: rgba(79, 123, 255, 0.14);
  font-weight: 700;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: rgba(118, 155, 255, 0.28);
  box-shadow: 0 8px 20px rgba(40, 87, 201, 0.35);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.game-card {
  width: 100%;
  border: 1px solid #d8e4ff;
  border-radius: 12px;
  padding: 1rem 0.8rem 0.8rem;
  background: linear-gradient(180deg, #f0f5fc, #e2eaf5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(42, 76, 168, 0.18);
}

.game-card-media {
  text-align: center;
}

.game-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.game-card h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2b4b;
  text-align: center;
}

.game-thumb {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.game-thumb-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #121d3a, #0b1326);
  color: #e9f4ff;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
}

.play-button {
  margin-top: 0.4rem;
  padding: 0.6rem 1rem;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: rgba(255, 255, 255, 0.15);
}

.play-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 9px 18px rgba(74, 104, 255, 0.38);
}

.ad-slot {
  border: 1px dashed #9fb9d9;
  border-radius: 8px;
  background: #dee8f6;
  color: #1d4e89;
  text-align: center;
  padding: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(177, 198, 233, 0.28);
  padding: 1rem 0 1.5rem;
  color: #d5e2ff;
}


@media (max-width: 1080px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 2.6rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-tech-pattern {
    height: 130px;
  }

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