/* 家居小游戏：栏目入口页与两款游戏页的共用样式。
   与 content-pages.css、articles.css 同源变量；顶部品牌、主入口导航沿用既有规则，本文件不重复定义。
   栏目入口的版式（桌面双卡等权并列、手机首屏内两个横向紧凑入口）沿用已确认的版式基准。 */

:root {
  --game-cream: #f8f1e5;
  --game-paper: #fffdf9;
  --game-plum: #6d3c4a;
  --game-wine: #7b202b;
  --game-rose: #d77970;
  --game-clay: #c98761;
  --game-line: rgba(76, 56, 50, .16);
  --game-shadow: 0 22px 55px rgba(93, 62, 53, .12);
}

/* ================= 栏目入口页 ================= */

body.page-games .app { width: min(100%, 1120px); }
body.page-games main { padding: clamp(54px, 8vw, 88px) 0 46px; }

.games-masthead { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); gap: clamp(34px, 6vw, 82px); align-items: end; }
.games-masthead h1 { max-width: 720px; margin: 0; color: var(--game-wine); font: 500 clamp(50px, 7.8vw, 82px)/.99 Georgia, "Songti SC", serif; letter-spacing: -.065em; }
.games-eyebrow { margin: 0 0 15px; color: var(--game-rose); font: 800 12px/1.4 system-ui, sans-serif; letter-spacing: .18em; }
.games-intro { margin: 0 0 4px; padding: 4px 0 5px 20px; border-left: 1px solid var(--game-clay); color: #754543; font: 500 17px/1.95 Georgia, "Songti SC", serif; }
.games-intro strong { display: block; margin-bottom: 7px; color: var(--game-plum); font-size: 18px; font-weight: 500; }
.games-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; color: #756c67; font: 12px/1.7 system-ui, sans-serif; list-style: none; }
.games-facts li::before { content: "\2713"; margin-right: 7px; color: #7b8f73; font-weight: 900; }

.games-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(46px, 7vw, 72px); }
.game-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 590px; border: 1px solid rgba(76, 56, 50, .14); border-radius: 28px; background: rgba(255, 253, 249, .72); box-shadow: var(--game-shadow); }
.game-card::before { content: ""; position: absolute; z-index: 0; width: 250px; height: 250px; right: -116px; top: -125px; border: 1px solid rgba(201, 135, 97, .25); border-radius: 50%; }
.game-preview { position: relative; z-index: 1; height: 310px; padding: 24px; overflow: hidden; border-bottom: 1px solid var(--game-line); background: linear-gradient(145deg, rgba(247, 232, 221, .88), rgba(245, 239, 228, .48)); }
.preview-head { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--game-plum); font: 800 11px/1.4 system-ui, sans-serif; letter-spacing: .1em; }
.view-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid rgba(109, 60, 74, .14); border-radius: 999px; background: rgba(255, 253, 249, .72); }
.view-tabs span { padding: 5px 9px; border-radius: 999px; color: #756c67; letter-spacing: 0; }
.view-tabs .is-active { color: #fff; background: var(--game-plum); }

/* 布置游戏预览：俯视平面小样 */
.plan-board { position: absolute; left: 50%; top: 55%; width: 270px; height: 202px; transform: translate(-50%, -50%); border: 7px solid #554e49; border-radius: 5px; background: #fcfaf5; box-shadow: 0 15px 25px rgba(68, 46, 40, .13); }
.plan-board::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(93, 75, 65, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(93, 75, 65, .08) 1px, transparent 1px); background-size: 24px 24px; }
.pv-window { position: absolute; top: -7px; left: 26px; width: 152px; height: 13px; border: 2px solid #668da1; border-top: 0; background: #d9edf4; }
.pv-door { position: absolute; left: -7px; bottom: 14px; width: 42px; height: 42px; border-left: 2px solid #9b654d; border-radius: 0 0 0 40px; transform: rotate(-8deg); }
.pv-sofa { position: absolute; right: 20px; top: 54px; width: 52px; height: 106px; border: 2px solid #4f6f83; border-radius: 10px; background: #87a7bc; box-shadow: inset 0 0 0 7px #4f7692; }
.pv-rug { position: absolute; left: 76px; top: 57px; width: 104px; height: 108px; border: 2px solid #a7a5a1; background: rgba(184, 188, 187, .55); }
.pv-coffee { position: absolute; left: 106px; top: 88px; width: 42px; height: 61px; border: 2px solid #7a523c; border-radius: 5px; background: #b9835a; }
.pv-chair { position: absolute; right: 83px; bottom: 16px; width: 45px; height: 45px; border: 3px solid #a85f40; border-radius: 13px; background: #d5977b; }
.pv-tvwall { position: absolute; left: 9px; top: 52px; width: 16px; height: 105px; border: 2px solid #704c35; background: #ae805c; }
.pv-tv { position: absolute; left: 7px; top: 77px; width: 8px; height: 55px; border-radius: 2px; background: #3f474d; }
.pv-plant { position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: #809078; box-shadow: 10px 3px 0 -4px #6c7c66, -7px 5px 0 -4px #8ca086; }
.pv-hand { position: absolute; z-index: 4; right: 76px; bottom: 27px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--game-plum); box-shadow: 0 8px 16px rgba(73, 42, 51, .22); font-size: 20px; }

/* 填色游戏预览：正面客厅小样 */
.color-room { position: absolute; left: 50%; top: 57%; width: 300px; height: 213px; transform: translate(-50%, -50%); }
.cr-back { position: absolute; left: 42px; top: 16px; width: 216px; height: 160px; border: 2px solid #574f49; background: linear-gradient(90deg, #f7efe4 0 50%, #e8dbc8 50%); }
.cr-left, .cr-right { position: absolute; top: 16px; width: 44px; height: 160px; border: 2px solid #574f49; background: #f8f3e9; }
.cr-left { left: 0; transform-origin: right; transform: skewY(-26deg); border-right: 0; background: #dce5da; }
.cr-right { right: 0; transform-origin: left; transform: skewY(26deg); border-left: 0; background: #e7c3b5; }
.cr-floor { position: absolute; left: 42px; top: 176px; width: 216px; height: 37px; border: 2px solid #574f49; border-top: 0; background: repeating-linear-gradient(90deg, #d5b693 0 26px, #b98f6d 27px 28px); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.cr-window { position: absolute; left: 66px; top: 38px; width: 74px; height: 51px; border: 2px solid #574f49; background: #cfe3eb; box-shadow: inset 36px 0 0 rgba(255, 255, 255, .35); }
.cr-window::before, .cr-window::after { content: ""; position: absolute; background: #574f49; }
.cr-window::before { left: 35px; width: 2px; height: 100%; }
.cr-window::after { top: 24px; width: 100%; height: 2px; }
.cr-art { position: absolute; right: 66px; top: 39px; width: 62px; height: 38px; border: 2px solid #574f49; background: #f1d8ad; box-shadow: inset 0 0 0 8px #fff8ed; }
.cr-sofa { position: absolute; left: 82px; top: 105px; width: 137px; height: 55px; border: 2px solid #574f49; border-radius: 12px 12px 6px 6px; background: #8fa7a1; box-shadow: inset 0 13px rgba(255, 255, 255, .16); }
.cr-sofa::before { content: ""; position: absolute; left: 44px; top: 0; width: 2px; height: 37px; background: #574f49; box-shadow: 44px 0 #574f49; }
.cr-table { position: absolute; left: 126px; top: 154px; width: 62px; height: 25px; border: 2px solid #574f49; border-radius: 50%; background: #c4815f; }
.cr-lamp { position: absolute; right: 49px; top: 91px; width: 2px; height: 64px; background: #574f49; }
.cr-lamp::before { content: ""; position: absolute; left: -13px; top: -2px; width: 28px; height: 18px; border: 2px solid #574f49; border-radius: 16px 16px 5px 5px; background: #e4b44e; }
.preview-palette { position: absolute; z-index: 6; left: 50%; bottom: 15px; display: flex; gap: 8px; padding: 8px 11px; border: 1px solid var(--game-line); border-radius: 999px; background: rgba(255, 253, 249, .9); box-shadow: 0 8px 20px rgba(76, 56, 50, .13); transform: translateX(-50%); }
.preview-palette i { width: 19px; height: 19px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(48, 43, 41, .18); }
.preview-palette i:nth-child(1) { background: #8fa7a1; }
.preview-palette i:nth-child(2) { background: #c4815f; }
.preview-palette i:nth-child(3) { background: #e4b44e; }
.preview-palette i:nth-child(4) { background: #dce5da; }
.preview-palette i:nth-child(5) { background: #e7c3b5; }

.game-card-copy { position: relative; z-index: 2; display: flex; flex: 1; flex-direction: column; padding: 29px 30px 31px; }
.game-card-no { margin: 0 0 10px; color: var(--game-rose); font: 700 11px/1 system-ui, sans-serif; letter-spacing: .16em; }
.game-card-copy h2 { margin: 0; color: #6f2933; font: 500 clamp(28px, 3.4vw, 40px)/1.14 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
/* 正文吃掉卡片的剩余高度；标签与按钮之间是写死的间距，不再随剩余高度塌缩。
   两张卡等高，按钮贴底、标签在按钮上方固定距离，因此两卡的标签行与按钮天然同层级对齐。 */
.game-card-copy p { flex: 1 1 auto; margin: 16px 0 0; color: #5e5753; font: 14px/1.85 system-ui, sans-serif; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(16px, 1.6vw, 22px) 0 0; padding: 0; list-style: none; }
.game-tags li { padding: 6px 10px; border: 1px solid rgba(109, 60, 74, .14); border-radius: 999px; color: #76595a; background: #faf2ed; font: 700 11px/1.4 system-ui, sans-serif; }
.game-enter { align-self: flex-start; margin-top: clamp(20px, 2vw, 28px); padding: 15px 25px; border: 0; border-radius: 999px; color: #fffaf7; background: var(--game-plum); box-shadow: 0 10px 22px rgba(109, 60, 74, .2); text-decoration: none; font: 800 14px/1.2 system-ui, sans-serif; }
.game-enter:hover { background: #5d3140; }
.game-enter span { margin-left: 9px; }

.games-footnote { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-top: 26px; padding: 20px 2px 0; border-top: 1px solid var(--game-line); color: #756c67; font: 12px/1.75 system-ui, sans-serif; }
.games-footnote strong { color: var(--game-plum); }

@media (max-width: 900px) {
  .games-masthead { grid-template-columns: 1fr; }
  .games-intro { max-width: 620px; }
  .games-cards { grid-template-columns: 1fr; }
  .game-card { min-height: 0; }
  .game-enter { margin-top: 26px; }
}

/* 手机端：两个入口在同一首屏内同时出现，不需要上下滚动 */
@media (max-width: 760px) {
  body.page-games main { padding: 18px 0 0; }
  .games-masthead { gap: 10px; }
  .games-eyebrow { margin-bottom: 8px; font-size: 10px; }
  body.page-games h1 { font-size: clamp(34px, 9.8vw, 40px); line-height: 1.04; letter-spacing: -.045em; }
  .games-intro { padding: 1px 0 1px 12px; font-size: 13px; line-height: 1.65; }
  .games-intro strong { display: inline; margin: 0 6px 0 0; font-size: 13px; font-weight: 700; }
  .games-facts { display: none; }
  .games-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .game-card, .game-preview, .game-card-copy { min-width: 0; }
  /* 卡片以 158px 为下限、随内容自增（英文标题多绕一行时按钮仍在卡内），首屏 844px 容得下两卡 */
  .game-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 158px; height: auto; border-radius: 20px; }
  .game-preview { height: auto; min-height: 158px; align-self: stretch; padding: 10px; border-right: 1px solid var(--game-line); border-bottom: 0; }
  .preview-head, .pv-hand, .preview-palette { display: none; }
  .plan-board { top: 50%; width: 240px; height: 180px; transform: translate(-50%, -50%) scale(.42); }
  .color-room { top: 50%; transform: translate(-50%, -50%) scale(.36); }
  /* 正文列：编号→标题→标签→按钮用固定 8px 列间距排开，标题吸收剩余高度，按钮与卡底保持 13px 内边距 */
  .game-card-copy { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 13px; }
  .game-card-no { margin-bottom: 0; font-size: 9px; }
  .game-card-copy h2 { flex: 1 1 auto; font-size: 21px; line-height: 1.12; }
  .game-card-copy p { display: none; }
  .game-tags { gap: 5px; margin-top: 0; }
  .game-tags li { padding: 4px 7px; font-size: 9px; }
  .game-enter { margin-top: 0; padding: 8px 14px; font-size: 12px; }
  .games-footnote { display: none; }
}

/* ================= 两款游戏页共用 ================= */

body.page-game .app { width: min(100%, 1240px); }
body.page-game main { padding: clamp(30px, 5vw, 54px) 0 40px; }
body.page-game h1 { font-size: clamp(34px, 5vw, 52px); }

.game-lead { max-width: 720px; margin: 22px 0 0; padding: 2px 0 2px 18px; border-left: 1px solid var(--game-clay); color: #754543; font: 16px/1.8 system-ui, sans-serif; }

.game-btn { padding: 10px 16px; border: 1px solid rgba(109, 60, 74, .2); border-radius: 999px; color: #6f3340; background: rgba(255, 253, 249, .9); cursor: pointer; font: 600 13px/1.2 system-ui, sans-serif; }
.game-btn:hover:not(:disabled) { border-color: var(--game-plum); }
.game-btn:disabled { opacity: .42; cursor: default; }
.game-btn-primary { border-color: transparent; color: #fffaf7; background: var(--game-plum); }
.game-btn-primary:hover:not(:disabled) { background: #5d3140; }
.game-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 起始画面：先选视角／布局，再开始 */
.game-setup { margin: 30px 0 0; padding: 24px 24px 26px; border: 1px solid var(--game-line); border-radius: 22px; background: rgba(255, 253, 249, .68); }
.game-choice-set { margin: 0 0 20px; padding: 0; border: 0; }
.game-choice-set legend { padding: 0; color: var(--game-plum); font: 700 13px/1.4 system-ui, sans-serif; letter-spacing: .06em; }
.game-choice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.game-choice-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid rgba(109, 60, 74, .18); border-radius: 16px; background: rgba(255, 253, 249, .82); text-align: left; cursor: pointer; }
.game-choice-item[aria-pressed="true"] { border-color: var(--game-plum); background: #f7ece9; box-shadow: inset 0 0 0 1px var(--game-plum); }
.game-choice-name { color: #6f2933; font: 600 16px/1.35 Georgia, "Songti SC", serif; }
.game-choice-note { color: #6d6560; font: 12px/1.6 system-ui, sans-serif; }
.game-resume { margin: 0 0 22px; padding: 16px 18px; border: 1px solid rgba(109, 60, 74, .22); border-radius: 16px; background: #f9f0ea; }
.game-resume-text { margin: 0; color: #6f3340; font: 14px/1.7 system-ui, sans-serif; }
.game-start { margin-top: 6px; padding: 14px 26px; font-size: 14px; }

/* 工作区：电脑端左侧选择、中间画布、右侧当前对象调整 */
.game-workspace { display: grid; grid-template-columns: 236px minmax(0, 1fr) 232px; gap: 18px; margin: 26px 0 0; align-items: start; }
.game-panel { padding: 16px 16px 18px; border: 1px solid var(--game-line); border-radius: 20px; background: rgba(255, 253, 249, .74); }
.game-panel-title { margin: 0 0 12px; color: var(--game-plum); font: 600 15px/1.3 Georgia, "Songti SC", serif; }
.game-panel-subtitle { margin: 18px 0 10px; color: var(--game-plum); font: 700 12px/1.4 system-ui, sans-serif; letter-spacing: .08em; }
.game-panel-note { margin: 12px 0 0; color: #6d6560; font: 12px/1.7 system-ui, sans-serif; }

.game-sticker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.game-sticker { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border: 1px solid rgba(109, 60, 74, .14); border-radius: 14px; background: rgba(255, 253, 249, .9); cursor: pointer; }
.game-sticker:hover { border-color: var(--game-plum); }
.game-sticker-art { width: 100%; height: 42px; }
.game-sticker-name { color: #5e5753; font: 600 11px/1.3 system-ui, sans-serif; text-align: center; }

.game-color-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.game-color { aspect-ratio: 1 / 1; min-width: 0; padding: 0; border: 2px solid rgba(255, 255, 255, .9); border-radius: 8px; box-shadow: 0 0 0 1px rgba(48, 43, 41, .2); cursor: pointer; }
.game-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--game-plum); }
.game-preset-list { display: grid; gap: 8px; }
.game-preset { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(109, 60, 74, .16); border-radius: 14px; background: rgba(255, 253, 249, .9); cursor: pointer; }
.game-preset:hover { border-color: var(--game-plum); }
.game-preset-strip { display: flex; gap: 3px; }
.game-preset-chip { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(48, 43, 41, .18); }
.game-preset-name { color: #5e5753; font: 600 12px/1.3 system-ui, sans-serif; }

.game-stage { display: flex; flex-direction: column; gap: 12px; }
.game-canvas { display: block; width: 100%; height: auto; border: 1px solid var(--game-line); border-radius: 20px; background: var(--game-paper); touch-action: none; }
.game-stage-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.game-stage-hint { margin: 0; color: #6d6560; font: 12px/1.7 system-ui, sans-serif; }

.game-item { cursor: move; }
.game-item.is-selected { filter: drop-shadow(0 3px 6px rgba(76, 56, 50, .28)); }
.game-select-frame { fill: none; stroke: var(--game-plum); stroke-width: 3; stroke-dasharray: 9 7; }
.game-handle { fill: #fffdf9; stroke: var(--game-plum); stroke-width: 3; cursor: pointer; }
.color-region { cursor: pointer; }
.color-region:hover { opacity: .86; }
.color-region:focus-visible { outline: none; }
.color-region-highlight { fill: none; stroke: var(--game-plum); stroke-width: 4; stroke-dasharray: 8 6; pointer-events: none; }

.game-field { display: block; margin: 0 0 14px; }
.game-field-label { display: block; margin-bottom: 6px; color: #6d6560; font: 600 12px/1.4 system-ui, sans-serif; }
.game-range { width: 100%; accent-color: var(--game-plum); }
.game-current-row { display: flex; align-items: center; gap: 10px; }
.game-current-swatch { width: 30px; height: 30px; flex: 0 0 auto; }
.game-current-line { margin: 0; color: #5e5753; font: 600 13px/1.5 system-ui, sans-serif; }
.game-mobile-tabs { display: none; }

/* 布置游戏：家具面板「大类 → 变体」两级 */
.game-category { margin-bottom: 8px; border: 1px solid rgba(109, 60, 74, .14); border-radius: 14px; background: rgba(255, 253, 249, .9); }
.game-category-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: #5e5753; text-align: left; cursor: pointer; font: 600 12px/1.3 system-ui, sans-serif; }
.game-category-head .game-sticker-art { flex: 0 0 auto; width: 44px; height: 30px; }
.game-category-head[aria-expanded="true"] { color: var(--game-plum); }
.game-category-count { margin-left: auto; color: #8a7d76; font-weight: 500; }
.game-category-body[hidden] { display: none !important; }
.game-variant-row { display: flex; gap: 8px; padding: 0 10px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.game-variant { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; padding: 6px; border: 1px solid rgba(109, 60, 74, .14); border-radius: 12px; background: #fff; cursor: pointer; }
.game-variant:hover { border-color: var(--game-plum); }
.game-variant .game-sticker-art { width: 72px; height: 40px; }
.game-variant-name { color: #5e5753; font: 600 11px/1.3 system-ui, sans-serif; text-align: center; }

/* 布置游戏：当前物品的换色点 */
.game-part-label { display: block; margin: 10px 0 6px; color: #6d6560; font: 600 12px/1.4 system-ui, sans-serif; }
.game-color-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.game-color-dot { width: 22px; height: 22px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(48, 43, 41, .25); cursor: pointer; }
.game-color-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--game-plum); }

/* 填色游戏：放大与平移 */
.game-zoom-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.game-zoom-note { color: #6d6560; font: 12px/1.6 system-ui, sans-serif; }
.game-canvas.is-zoomed { cursor: grab; }

/* 页面底部的用途边界说明 */
.game-disclaimer { margin: 34px 0 0; padding: 18px 20px; border: 1px solid var(--game-line); border-radius: 18px; background: rgba(255, 253, 249, .6); color: #6d6560; font: 13px/1.85 system-ui, sans-serif; }
.game-disclaimer p { margin: 0 0 8px; }
.game-disclaimer p:last-child { margin-bottom: 0; }

/* hidden 属性必须压过本文件里的 display 声明，否则起始画面、工作区和弹层会同时显示 */
.game-setup[hidden], .game-workspace[hidden], .game-modal[hidden], .game-toast[hidden],
.game-adjust-body[hidden], .game-panel-note[hidden], .game-resume[hidden] { display: none !important; }

/* 弹层与提示 */
.game-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(48, 43, 41, .38); }
.game-modal-card { width: min(100%, 420px); padding: 24px 24px 20px; border-radius: 20px; background: var(--game-paper); box-shadow: 0 24px 60px rgba(48, 43, 41, .28); }
.game-modal-card h2 { margin: 0 0 12px; color: var(--game-plum); font: 500 22px/1.3 Georgia, "Songti SC", serif; }
.game-modal-card p { margin: 0; color: #5e5753; font: 14px/1.8 system-ui, sans-serif; }
.game-guide-steps { margin: 0; padding-left: 20px; color: #5e5753; font: 14px/1.85 system-ui, sans-serif; }
.game-guide-steps li { margin-bottom: 6px; }
.game-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.game-toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; max-width: calc(100% - 40px); margin: 0; padding: 12px 18px; border-radius: 999px; color: #fff; background: #4d4140; box-shadow: 0 10px 30px rgba(48, 43, 41, .25); transform: translateX(-50%); font: 13px/1.4 system-ui, sans-serif; }

/* 手机端：画布在上，家具／颜色与调整操作集中在下方可展开区域 */
@media (max-width: 860px) {
  body.page-game .app { padding-bottom: 18px; }
  .game-workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .game-stage { order: 1; }
  .game-mobile-tabs { order: 2; display: flex; gap: 8px; }
  .game-mobile-tabs .game-btn { flex: 1; }
  .game-mobile-tabs .game-btn[aria-pressed="true"] { border-color: transparent; color: #fffaf7; background: var(--game-plum); }
  .game-panel-left { order: 3; }
  .game-panel-right { order: 4; }
  .game-panel { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  body[data-game-panel="palette"] .game-panel-right,
  body[data-game-panel="adjust"] .game-panel-left,
  body[data-game-panel="none"] .game-panel { display: none; }
  .game-sticker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-stage-bar .game-btn { flex: 1 0 auto; }
}

@media print {
  .game-workspace, .game-setup, .game-toast, .game-modal { display: none !important; }
}
