:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f5efe6;
  font-family: "ZCOOL KuaiLe", "Microsoft JhengHei", sans-serif;
  color: #6b5a45;
  /* 小朋友點卡片常常會多按幾下或按久一點，這三個屬性避免手機瀏覽器跳出
     長按選單、反白選字、預設的藍/灰觸控高亮閃爍，感覺才會像一個 app 而不是網頁 */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.hero {
  text-align: center;
  padding: 40px 20px 12px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 40px);
  color: #a08a6d;
}

.hero p {
  margin: 0;
  font-size: 16px;
  color: #b3a289;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 32px auto;
  padding: 0 20px 40px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border-radius: 24px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 0 rgba(160, 138, 109, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.update-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #ffb5c0;
  color: #6b3846;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(160, 138, 109, 0.2);
}

.game-card:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(160, 138, 109, 0.15);
}

.game-card img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.game-card .name {
  font-size: 20px;
  font-weight: bold;
  color: #a08a6d;
}

.game-card .desc {
  font-size: 13px;
  text-align: center;
  color: #b3a289;
  line-height: 1.5;
}

.footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #c4b8a3;
}

.footer p {
  margin: 0 0 4px;
}

.footer .copyright {
  margin-bottom: 0;
  font-size: 12px;
}
