/* 小窝本地重构游戏 · 第一批（井字棋 / 猜单词 / 西蒙说）
 * 复用 native/common.css 的 .native-game-* 视觉令牌，这里只放各游戏专属布局。 */

/* 井字棋 */
.ttt .ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 320px);
  margin: 4px auto 0;
}
.ttt .ttt-cell {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--game-line);
  border-radius: 12px;
  background: var(--game-surface);
  color: var(--text);
  font-size: clamp(24px, 8vw, 44px);
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ttt .ttt-cell:hover:not(:disabled) {
  border-color: var(--game-accent);
  background: var(--game-surface-strong);
  transform: translateY(-1px);
}
.ttt .ttt-cell:disabled { cursor: default; }
.ttt .ttt-cell.is-x { color: var(--game-accent); }
.ttt .ttt-cell.is-o { color: var(--game-accent-2); }

/* 猜单词 */
.hm .hm-hint {
  margin: 10px 0 6px;
  color: var(--muted, #8b95a7);
  font-size: 13px;
  text-align: center;
}
.hm .hm-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 10px;
}
.hm .hm-letter {
  width: 30px;
  height: 38px;
  border-bottom: 3px solid var(--game-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}
.hm .hm-letter.is-guessed {
  border-color: var(--game-accent);
  color: var(--game-accent);
}
.hm .hm-keyboard {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 360px;
  margin: 6px auto 0;
}
.hm .hm-key {
  min-height: 34px;
  border: 1px solid var(--game-line);
  border-radius: 8px;
  background: var(--game-surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.hm .hm-key:hover:not(:disabled) {
  border-color: var(--game-accent);
  background: var(--game-surface-strong);
}
.hm .hm-key:disabled { cursor: default; }
.hm .hm-key.is-right { border-color: #34d399; color: #34d399; }
.hm .hm-key.is-wrong { border-color: #fb7185; color: #fb7185; }

/* 西蒙说 */
.simon .simon-pads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: min(100%, 300px);
  margin: 8px auto 0;
}
.simon .simon-pad {
  aspect-ratio: 1;
  min-width: 0;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  opacity: .55;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
}
.simon .simon-pad:hover:not(:disabled) { opacity: .8; }
.simon .simon-pad:disabled { cursor: default; }
.simon .simon-pad.is-lit {
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(255, 255, 255, .25);
}
