/* 已确认的4.2.1场景比例：所有位置随场景宽高等比变化。 */
body[data-view="game"]{background:#c38e7d!important;background-image:none!important}
body[data-view="game"]:before,body[data-view="game"]:after{display:none!important}
body[data-view="game"] #app{padding-top:0}
.tabletop-shell{padding-top:0!important}
.tabletop-shell .game-sidebar{padding-top:65px}
.tabletop-shell .tabletop-hero,.tabletop-shell .board-bottom{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);pointer-events:none;margin:0!important}
.tabletop-shell .board-panel{padding:0!important;background:none!important;box-shadow:none!important;border:0!important;overflow:visible!important}
.tabletop-shell .board-scene{position:relative!important;width:100%!important;max-width:none!important;aspect-ratio:4/5!important;height:auto!important;margin:0!important;padding:0!important;transform:none!important;perspective:none!important;filter:none!important;isolation:isolate;container-type:inline-size}
.desk-scene{position:absolute;inset:0;pointer-events:none}
.desk-composite{display:block;width:100%;height:100%;pointer-events:none}
.tabletop-shell .board-area{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;filter:none!important;margin:0!important;padding:0!important;overflow:visible!important;z-index:2}
.tabletop-shell .board-area:before,.tabletop-shell .board-area:after,.tabletop-shell .board-scene:before,.tabletop-shell .board-scene:after{display:none!important}
.tabletop-shell .cell-grid{position:absolute!important;inset:0!important;display:block!important;transform:none!important;pointer-events:none}
.tabletop-shell .cell{position:absolute!important;margin:0!important;padding:0!important;min-width:0!important;min-height:0!important;transform:translate(-50%,-50%)!important;background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:auto}
.tabletop-shell .cell:before,.tabletop-shell .cell:after,.tabletop-shell .hit-anchor{display:none!important}
.tabletop-shell .cell:focus-visible{outline:2px solid #fff1a8!important;outline-offset:-3px}
.tabletop-shell .board-burst,.club-stage .board-burst{visibility:visible!important;left:50%;top:31.5%;width:28%;min-width:0;z-index:20}
.tabletop-shell .board-turn-plaque,.club-stage .board-turn-plaque{position:absolute;left:23%;right:23%;top:77.2%;bottom:auto;height:3.4%;min-height:0;z-index:21;display:flex;align-items:center;justify-content:center;gap:6px;color:#fff;background:none;box-shadow:none;font-size:clamp(12px,3.6cqw,26px);font-weight:900;letter-spacing:.04em;text-shadow:0 2px #183161;pointer-events:none;padding:0;white-space:nowrap}
.tabletop-shell .board-turn-plaque strong{font:inherit}
.desk-scoreboard{position:absolute;top:13.4%;left:35%;width:30%;padding:1.1% 1% 1.8%;z-index:10;border:2px solid #6b94d2;border-radius:clamp(12px,3cqw,24px);background:linear-gradient(150deg,#3862a7,#1c3e78);box-shadow:inset 0 2px 3px #b2c7e660,inset 0 -4px 0 #102f6555,0 4px 6px #583b3529;text-align:center}
.desk-score-values{display:flex;align-items:center;justify-content:space-around;gap:3px;font-size:clamp(20px,7.2cqw,52px);font-weight:900;line-height:1.15;letter-spacing:-.04em;text-shadow:0 2px 0 #765028,0 4px 3px #122a54}
.desk-score-values strong{font:inherit}.desk-score-values strong:first-child{color:#ffe677}.desk-score-values strong:last-child{color:#ffa893}.desk-score-values span{color:#f1f5fc;font-size:.78em}.desk-score-values.large-score{font-size:clamp(18px,5.7cqw,42px)}
.desk-score-mode{position:absolute;left:50%;bottom:-19%;transform:translateX(-50%);white-space:nowrap;padding:3px 9px;border:2px solid #7196d0;border-radius:999px;background:linear-gradient(#375b9a,#25477e);color:#d7e6fb;font-weight:800;font-size:clamp(9px,2.1cqw,16px);line-height:1.2;box-shadow:0 2px 3px #19325c55}
/* 三个按钮是原有操作节点，不参与三维场景，保持紧凑且可触摸。 */
.tabletop-shell .board-scene .toolbar{position:absolute;bottom:7.2%;left:10.5%;right:10.5%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,2cqw,16px);margin:0!important;z-index:25}
.tabletop-shell .toolbar button.secondary,.tabletop-shell .toolbar #hint{height:clamp(36px,6.4cqw,51px);min-height:36px;padding:0 6px;gap:5px;border:1px solid #ffffff4a;border-radius:10px;background:#3159a4;color:#fff8e8;font-size:clamp(13px,2.7cqw,21px);font-weight:700;text-shadow:none;box-shadow:0 2px 5px #4f342624}
.tabletop-shell .toolbar .icon{width:clamp(18px,3.5cqw,26px);height:clamp(18px,3.5cqw,26px);filter:none}
.tabletop-shell .toolbar .action-count{min-width:clamp(19px,3.5cqw,27px);height:clamp(19px,3.5cqw,27px);font-size:.78em;background:#d96354;box-shadow:none}
.tabletop-shell .toolbar button:focus-visible{outline:3px solid #ffe28c;outline-offset:3px}
.club-stage{position:relative!important;padding:0!important;min-height:0!important;height:auto!important;width:100%!important;max-width:none!important;aspect-ratio:4/5!important;overflow:hidden!important;background:#c38e7d!important;border:0!important;box-shadow:none!important;transform:none!important;perspective:none!important;container-type:inline-size}
.club-stage:before,.club-stage:after{display:none!important}
@media(max-width:1100px){.tabletop-shell .game-sidebar{padding-top:0}.tabletop-shell .game-intro{padding-top:62px}}
@media(max-width:700px){.tabletop-shell{padding-left:0!important;padding-right:0!important}.tabletop-shell .assistance-status,.tabletop-shell .game-difficulty,.tabletop-shell .game-sidebar,.tabletop-shell .status-message,.tabletop-shell .result-panel,.tabletop-shell .replay-controls{margin-left:16px!important;margin-right:16px!important}.tabletop-shell .game-sidebar{width:calc(100% - 32px)!important}.tabletop-shell .game-difficulty,.tabletop-shell .result-panel{max-width:calc(100% - 32px)!important}.tabletop-shell .game-intro{padding-left:16px;padding-right:16px}.tabletop-shell .workspace{gap:8px}}

/* 4.2.3：棋盘优先。场景横向放大20%，摆件只作边缘点缀。 */
.tabletop-shell .board-scene{aspect-ratio:1000/1390!important;overflow:hidden}
.tabletop-shell .board-burst{top:34%;width:33.6%}
.tabletop-shell .board-turn-plaque{top:83.31%;height:3.67%;font-size:clamp(15px,4.2cqw,29px)}
.tabletop-shell .desk-scoreboard{top:14.46%;left:29%;width:42%;padding:1.3% 1.2% 2.4%;border-width:3px;border-radius:clamp(17px,3.3cqw,24px);background:linear-gradient(145deg,#456db4,#1c3269 80%);box-shadow:inset 0 2px 5px #a5c3ff5c,0 6px 0 #244579,0 9px 10px #643c3d55}
.tabletop-shell .desk-score-values{font-size:clamp(35px,10.3cqw,66px);gap:5px;text-shadow:0 3px 2px #142448}
.tabletop-shell .desk-score-values.large-score{font-size:clamp(28px,8cqw,52px)}
.tabletop-shell .desk-score-mode{font-size:clamp(10px,2.8cqw,15px);padding:3px 10px;bottom:-20%;box-shadow:0 3px 0 #1c3265}
/* 沿用4.0.22蓝色渐变、亮边和深色厚度阴影；按钮仍是网页控件。 */
.tabletop-shell .board-scene .toolbar{bottom:4.2%;left:4.5%;right:4.5%;gap:clamp(10px,2cqw,14px)}
.tabletop-shell .toolbar button.secondary,.tabletop-shell .toolbar #hint{height:clamp(38px,6.1cqw,44px);min-height:38px;border-radius:12px;border:1px solid #92b5ee;background:linear-gradient(#7296df,#3f69bd 42%,#27498c);font-size:clamp(14px,3.1cqw,19px);font-weight:900;color:#fff;text-shadow:0 2px #28477c;box-shadow:inset 0 1px 2px #c3dbff80,0 3px 0 #1c376e,0 5px 5px #6e463c30}
.tabletop-shell .toolbar button.secondary:active{box-shadow:inset 0 1px 2px #c3dbff60,0 1px 0 #1c376e,0 2px 3px #6e463c30}
.tabletop-shell .toolbar .icon{width:clamp(18px,4.8cqw,22px);height:clamp(18px,4.8cqw,22px);filter:drop-shadow(0 2px #274778)}
.tabletop-shell .toolbar .action-count{min-width:clamp(21px,5.4cqw,26px);height:clamp(21px,5.4cqw,26px);background:linear-gradient(#ff9b92,#db5251);border:1px solid #ffb7a2;box-shadow:0 2px 0 #9d383a;text-shadow:0 1px #a84041}

/* 4.2.7：升高视点后的边沿位置来自相机投影，按钮为前沿留出空间。 */
.tabletop-shell .board-scene{aspect-ratio:1000/1460!important}
.tabletop-shell .board-burst{top:29.48213%}
.tabletop-shell .board-turn-plaque{top:82.38161%;height:3.5%}
.tabletop-shell .desk-scoreboard{top:13.77%}
.tabletop-shell .board-scene .toolbar{bottom:3.5%}
/* 整页使用同一暖色渐变；场景底部逐渐透明，消除硬边。 */
body[data-view="game"]{background-color:#c38e7d!important;background-image:linear-gradient(180deg,#c38e7d 0%,#c99682 45%,#dfb69e 100%)!important;background-attachment:fixed!important;background-size:100% 100%!important}
.tabletop-shell .desk-composite{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 90%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 90%,transparent 100%)}

/* 4.2.10：全页面共用一张连续桌面，透明物件和接触阴影直接叠在桌面上。 */
:root{background:#d4a591}
body,body[data-view="game"]{
 background-color:#d4a591!important;
 background-image:radial-gradient(ellipse at 18% 0%,#ffe6ca66,transparent 65%),linear-gradient(155deg,#c69180 0%,#d6a790 58%,#e4bea3 100%)!important;
 background-size:100vw 100vh!important;background-position:center top!important;background-repeat:no-repeat!important;background-attachment:fixed!important;
 overflow-x:clip;
}
/* 连续细纹独立于页面高度，滚动或切页不会切换另一张桌面照片。 */
body:before{content:''!important;display:block!important;position:fixed!important;inset:0!important;pointer-events:none!important;z-index:0!important;opacity:.075!important;background-image:url("./desk-grain.svg")!important}
body:after{display:none!important}
#app{position:relative;z-index:1}
.tabletop-shell .board-scene,.club-stage{overflow:visible!important;background:transparent!important;border-radius:0!important}
.desk-scenery{position:absolute;top:0;height:auto;max-width:none!important;pointer-events:none;z-index:0;user-select:none}
.desk-composite{position:relative;z-index:1;-webkit-mask-image:none!important;mask-image:none!important}
.club-play,.club-puzzles,.club-heading,.club-foot,.tabletop-shell .game-sidebar{position:relative;z-index:2}
/* 卡片与桌面同用暖色受光和柔影，不再用整幅桌面照片充当卡片背景。 */
.club-play,.club-puzzles,.board-choice,.level-card,.rank-results,.side-info,.game-difficulty{box-shadow:inset 0 1px 0 #fff9,0 5px 0 #b8a39540,0 14px 30px #6644351c}
/* 装饰允许延展到视口边缘，但不增加文档横向滚动宽度。 */
html{overflow-x:clip}
.desk-scenery{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 88%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 88%,transparent 100%)}
/* 接影层的远处软阴影也淡出到桌面，首页顶部不留下横向接缝。 */
.desk-scenery{-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 7%,#000 88%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0%,#000 7%,#000 88%,transparent 100%)}

/* 4.2.12：新静物沿用透明接影层，全页面切换为参考图的珊瑚桌面色。 */
:root{background:#e7a18e}
body,body[data-view="game"]{background-color:#e7a18e!important;background-image:radial-gradient(ellipse at 18% 0%,#ffe7ce66,transparent 65%),linear-gradient(155deg,#d98678 0%,#e7a18e 58%,#efbaa0 100%)!important}

/* 4.2.12：实体暖白卡片不再模糊背后的桌面摆件，避免卡片外出现矩形模糊接缝。 */
.club-play,.club-puzzles,.side-info{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}

/* 4.2.15：窄屏为悬浮导航留空，角色上移后头部仍可完整显示。 */
@media(max-width:700px){.tabletop-shell .board-scene{margin-top:22px!important}}

/* 记分板同步跟随展示角色上移，维持名字与底座的可见性。 */
.club-stage .desk-scoreboard{transform:translateY(-4.1667cqw)}
.tabletop-shell .desk-scoreboard{transform:translateY(-5cqw)}
