/* HOME-106 反馈修订：独立玩法页（/games/<key>/）的外壳样式。
 * 与原 /games/ 组合页 <style> 内容一致（那边不变），这里抽成共享文件供 5 个页面引用。
 */
:root {
  --bg: #000;
  --panel: #0a0a0a;
  --line: #1e1e1e;
  --text: #e8e8e8;
  --dim: #8a8a8a;
  --accent: #7aa2f7;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
header.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
header.top h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
}
header.top .sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--dim);
}
.btn {
  appearance: none;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: #333; background: #111; }
.btn.primary {
  background: #14243d;
  border-color: #23406b;
  color: #cfe0ff;
}
.stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 16px 20px;
  min-height: 240px;
  margin-top: 16px;
}
.stage.blur {
  filter: blur(7px) contrast(.6);
  opacity: .3;
  pointer-events: none;
  user-select: none;
}
#camo-note {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--dim);
  font-size: 13px;
}
#camo-note.show { display: block; }
.hint { color: var(--dim); font-size: 14px; margin: 0; }
/* 页内弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}
.modal-box {
  width: 100%;
  max-width: 340px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px;
}
.modal-title { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.modal-text { margin: 0 0 14px; font-size: 14px; color: #cfcfcf; white-space: pre-wrap; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; }
/* toast */
.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: #16213a;
  border: 1px solid #2b3d63;
  color: #d6e2ff;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 1000;
  opacity: 0;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }
#tabs[hidden] { display: none !important; }
@media (max-width: 480px) {
  .wrap { padding: 16px 12px 40px; }
  header.top h1 { font-size: 18px; }
}
