:root {
  color-scheme: dark;
  --bg: #070914;
  --surface: #101624;
  --surface-2: #151d2e;
  --line: #263754;
  --text: #edf7ff;
  --muted: #9db3c7;
  --cyan: #2df7ff;
  --green: #6dff8f;
  --pink: #ff4dd8;
  --amber: #ffd166;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(45, 247, 255, 0.18), transparent 23rem),
    radial-gradient(circle at 88% 78%, rgba(255, 77, 216, 0.14), transparent 22rem),
    linear-gradient(145deg, #050711 0%, #0a1021 55%, #07121a 100%);
  color: var(--text);
}

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

.home-shell {
  width: min(1120px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
}

.hero {
  margin-bottom: clamp(32px, 7vw, 74px);
}

.eyebrow,
.game-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
}

.intro {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-heading span {
  color: var(--muted);
}

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

.game-card {
  min-height: 410px;
  display: grid;
  grid-template-rows: 180px 1fr;
  border: 1px solid rgba(45, 247, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.94), rgba(8, 13, 24, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 0 36px rgba(45, 247, 255, 0.05);
}

.game-art {
  position: relative;
  overflow: hidden;
  background-color: #060a12;
}

.snake-art {
  background:
    linear-gradient(rgba(45, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 247, 255, 0.08) 1px, transparent 1px),
    #060a12;
  background-size: 24px 24px;
}

.snake-art span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(109, 255, 143, 0.7);
}

.snake-art span:nth-child(1) {
  left: 38%;
  top: 42%;
  background: var(--cyan);
}

.snake-art span:nth-child(2) {
  left: calc(38% - 42px);
  top: 42%;
}

.snake-art span:nth-child(3) {
  right: 18%;
  top: 30%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 26px rgba(255, 77, 216, 0.8);
}

.placeholder-art {
  background:
    linear-gradient(135deg, rgba(45, 247, 255, 0.1), transparent),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 209, 102, 0.08) 20px 22px),
    #080e1a;
}

.game-content {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.game-content h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.game-content p:not(.game-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.play-link,
.disabled-link {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.play-link {
  background: linear-gradient(135deg, var(--cyan), #4f8cff);
  color: #03101a;
  box-shadow: 0 0 20px rgba(45, 247, 255, 0.26);
}

.disabled-link {
  border: 1px solid var(--line);
  color: var(--muted);
}

.is-coming {
  opacity: 0.72;
}

@media (max-width: 620px) {
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .game-card {
    min-height: auto;
  }
}
