/* ====== games 游戏页共享样式（基于 common.css 变量）
 * 各游戏页 <style> 在 <link> 之后加载，可覆盖本文件同名基；修饰类控制差异。
 * 族说明：.overlay 有两族——全屏模态(jump/merge/sheep，本文件)；棋盘内嵌(2048/match3，保留页面本地)。
 */
/* 折叠玩法说明（7 页共用；summary padding / rules margin 各页保留特化行） */
.rules { font-size: 12px; color: var(--text-muted); }
.rules summary { cursor: pointer; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.rules-body { background: #fff; border-radius: 8px; padding: 8px 12px; line-height: 1.8; color: var(--text-secondary); }

/* 模式切换（2048/match3/sheep 用 .mode-bar.pill 白底条带；checkers/jump 用基 + 本地 padding） */
.mode-bar { display: flex; gap: 6px; }
.mode-bar.pill { width: 100%; background: #fff; border-radius: 10px; padding: 4px; box-shadow: var(--shadow-sm); }
.mode-btn { flex: 1; padding: 9px 2px; border: none; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; min-height: 44px; transition: all .15s; }
.mode-btn.active { background: var(--primary); color: #fff; }
.mode-btn.solid { background: #fff; box-shadow: var(--shadow-sm); }

/* 分数条（2048 用 .lg 大款；match3/merge 用 .sm 小款） */
.score-row { display: flex; gap: 8px; }
.score-box { background: #bbada0; border-radius: var(--radius-sm); text-align: center; }
.score-box .label { font-size: 10px; color: #eee4da; text-transform: uppercase; letter-spacing: 1px; }
.score-box .value { font-size: var(--font-xl); font-weight: 700; color: #fff; }
.score-box.lg { padding: 6px 14px; min-width: 72px; }
.score-box.sm { padding: 4px 12px; min-width: 64px; }
.score-box.sm .value { font-size: var(--font-lg); }

/* 全屏模态遮罩（jump/merge/sheep；.overlay-box 子样式如 .emoji-icon/.final-score 由各页本地保留） */
.overlay { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.5); z-index: 999; align-items: center; justify-content: center; padding: 24px; }
.overlay.show { display: flex; }
.overlay-box { background: #fff; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; max-width: 300px; width: 100%; box-shadow: var(--shadow-md); animation: scaleIn .25s ease; }
@keyframes scaleIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
