:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5f6c7a;
  --line: #dbe2ea;
  --teal: #18a999;
  --coral: #ef6b55;
  --yellow: #f4c84a;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 14%, rgba(24, 169, 153, 0.12), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(239, 107, 85, 0.12), transparent 26%),
    var(--bg);
  font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(219, 226, 234, 0.82);
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px) 42px;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.96;
  font-weight: 950;
}

.hero-copy p {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.75;
}

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

.game-card {
  min-height: 540px;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-preview {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 46px 46px;
}

.straight-preview {
  background-color: #dff5ef;
}

.curved-preview {
  background-color: #fff3d1;
}

.game-content {
  padding: 24px;
}

.game-status {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.game-content h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 950;
}

.game-content p:not(.game-status) {
  min-height: 56px;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.play-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22);
}

.play-button:hover,
.play-button:focus-visible {
  background: #0b1117;
  outline: 3px solid rgba(24, 169, 153, 0.38);
  outline-offset: 3px;
}

.arrow-line {
  position: absolute;
  height: 18px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 10px 0 rgba(23, 32, 42, 0.08);
}

.arrow-line.horizontal {
  width: 72%;
  top: 34%;
  left: 14%;
}

.arrow-line.vertical {
  width: 52%;
  top: 60%;
  left: 34%;
  transform: rotate(90deg);
  background: var(--coral);
}

.arrow-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  border: 5px solid #ffffff;
}

.dot-one {
  top: 27%;
  left: 18%;
}

.dot-two {
  right: 18%;
  bottom: 25%;
}

.arrow-head {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 30px solid var(--ink);
}

.head-one {
  top: calc(34% - 9px);
  right: 12%;
}

.head-two {
  bottom: 19%;
  left: 42%;
  transform: rotate(90deg);
}

.curve {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 18px solid var(--coral);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.curve-one {
  top: 46px;
  left: 30px;
  transform: rotate(25deg);
}

.curve-two {
  right: 22px;
  bottom: 38px;
  border-color: var(--teal);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(-18deg);
}

.tile-chip {
  position: absolute;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(23, 32, 42, 0.14);
}

.tile-chip.rotate {
  left: 22%;
  bottom: 22%;
  border-color: var(--coral);
}

.tile-chip.exit {
  top: 28%;
  right: 25%;
  border-color: var(--teal);
}

.tile-chip.exit::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 5px solid currentColor;
  border-radius: 50%;
}

.tile-chip.block {
  right: 12%;
  bottom: 18%;
  background: var(--ink);
}

.updates {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 42px clamp(18px, 5vw, 72px) 70px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.updates h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

.updates p {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.update-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.update-list strong {
  color: var(--teal);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    max-width: 720px;
  }

  .game-card {
    min-height: 470px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 30px;
  }

  .game-grid,
  .updates {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 430px;
    grid-template-rows: 210px auto;
  }

  .game-content {
    padding: 20px;
  }
}
