:root{--ink:#3b3e35;--paper:#faf5e8;--red:#ac4e3b;--green:#527567;--line:#d9ceba;--muted:#7c7c6b}*{box-sizing:border-box}body{margin:0;background:#ede8da;color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:15px}button,a,input{ -webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;min-height:44px;border-radius:5px;border:1px solid transparent;padding:10px 15px;color:var(--ink);background:transparent;transition:background .15s}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #4583a0;outline-offset:3px}button:disabled{opacity:.48;cursor:not-allowed}button:not(:disabled):active{transform:translateY(1px)}header{max-width:1380px;margin:auto;padding:22px 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:14px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:800;font-size:20px;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:400;margin-top:3px;color:var(--muted)}.stamp{font-family:serif;color:var(--red);font-size:31px;border:2px solid var(--red);line-height:1;padding:4px;transform:rotate(-6deg)}.header-actions{display:flex;gap:5px}.quiet{color:var(--muted)}.quiet:hover{background:#e3ddcc}.outline{border-color:#b9b19e;background:transparent}.outline:hover:not(:disabled){background:#e9e0cc}main{max-width:1380px;margin:auto;padding:28px 42px 0}.location{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.eyebrow{color:var(--muted);letter-spacing:2px;font-size:11px}h1{font-family:serif;font-size:31px;letter-spacing:2px;margin:8px 0 0;font-weight:700}.wallet{text-align:right;display:grid;grid-template-columns:auto auto;align-items:center;gap:0 13px}.wallet span{color:var(--muted);font-size:12px}.wallet strong{font:700 30px Georgia,serif}.wallet small{grid-column:1 / 3;font-size:10px;color:var(--muted);margin-top:4px}.game{display:grid;grid-template-columns:minmax(0,1fr) 310px;background:var(--paper);border:1px solid #c4b69d;border-radius:8px;overflow:hidden;box-shadow:0 10px 28px #5c513110;align-items:stretch}.scene-wrap{position:relative;align-self:stretch;background:#e4d2b1;min-width:0;display:flex;align-items:center;overflow:hidden}.scene-wrap>img{display:block;width:100%;height:100%;min-height:510px;object-fit:cover;object-position:center}.scene-caption{position:absolute;top:20px;left:20px;display:flex;align-items:center;gap:8px;background:#fff8e7ed;border:1px solid #b8a789;border-radius:4px;padding:8px 12px;font-size:12px}.dot{width:7px;height:7px;background:var(--green);border-radius:50%}.action-paper{padding:24px 25px;border-left:1px solid #c4b69d;background:var(--paper);min-width:0}.paper-top{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:1px;padding-bottom:17px;border-bottom:1px solid var(--line)}.paper-day{font-family:Georgia,serif;color:var(--red)}h2{font-family:serif;font-size:23px;margin:22px 0 14px}h3{font-size:18px;margin:10px 0}.story{line-height:1.9;font-size:13px;white-space:pre-line}.payline{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed var(--line);padding:15px 0;margin-top:17px}.payline span{font-size:12px;color:var(--muted)}.payline strong{font:700 25px Georgia,serif}.primary,.secondary{width:100%;background:var(--red);color:#fff5e4;font-weight:700;border-color:#964434}.primary:hover:not(:disabled){background:#913e31}.secondary{background:var(--green);border-color:#48685d}.secondary:hover:not(:disabled){background:#416456}.hint{font-size:10px;color:var(--muted);line-height:1.6;margin:9px 0 20px}.life-goal{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;padding-bottom:18px}.life-goal p{font-size:12px;color:var(--muted)}.text-button{color:var(--red);padding:8px 0;font-size:12px;min-height:40px;text-align:left}.text-button:hover{color:#773829;text-decoration:underline}.hotspot{position:absolute;background:#fff9e9ee;border:1px solid #6e614c;border-radius:4px;box-shadow:3px 4px 0 #5b483322;font-size:11px;padding:7px 10px;min-height:38px}.hotspot:before{content:"";display:inline-block;width:5px;height:5px;background:var(--red);border-radius:50%;margin-right:7px}.hotspot:hover{background:white}.bed{left:10%;bottom:14%}.clothes{right:10%;top:25%}.phone{left:44%;top:45%}.door{right:3%;bottom:17%}.feedback-strip{display:flex;gap:16px;align-items:flex-start;margin-top:17px;border-bottom:1px solid var(--line);padding:5px 0 17px;min-height:62px}.feedback-label{font-size:10px;color:var(--red);letter-spacing:2px;padding:3px 0;flex-shrink:0}.feedback-strip p{margin:0;font-size:13px;line-height:1.8;white-space:pre-line}footer{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;padding:8px 0 15px}.back-on-scene{position:absolute;bottom:20px;left:20px;background:#fff8e8;border:1px solid #8a7b64;font-size:12px}.work-overlay{position:absolute;bottom:35px;left:22%;right:20%;background:#fff4df;border:1px solid #706d56;border-radius:5px;padding:15px;display:flex;align-items:center;gap:12px;box-shadow:5px 5px 0 #40382f22}.work-overlay[hidden]{display:none}progress{accent-color:var(--red);width:100%;height:12px}.dice-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:40px;gap:22px}.dice-overlay[hidden]{display:none}.table-name{background:#fff1d8e8;color:#4e5d4f;border:1px solid #767e66;border-radius:20px;font-size:11px;padding:8px 18px;letter-spacing:2px}.dice{width:74px;height:74px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:5px;border:3px solid #493f30;border-radius:12px;background:#fcf3dc;padding:11px;box-shadow:7px 7px 0 #152f2b44;transform:rotate(-8deg)}.pip{background:#3d463e;border-radius:50%}.dice.rolling{animation:shake .18s infinite}.choose{display:flex;gap:16px}.choose button{background:#fff5dc;color:#35483e;border:3px solid #6d7f61;min-width:112px;min-height:72px;box-shadow:3px 4px 0 #283d3333}.choose button[aria-pressed=true]{background:#b94f3b;border-color:#f1d2a2;color:#fff4dd;box-shadow:0 0 0 3px #76382d}.choose strong{font-family:serif;font-size:29px;display:block;line-height:1}.choose span{font-size:10px;display:block;margin-top:8px}.round-result{font-size:12px;line-height:1.7;background:#f0eadb;border-left:3px solid var(--green);padding:10px;margin:6px 0 14px;min-height:62px;white-space:pre-line}details{border-top:1px solid var(--line);padding:12px 0 0;margin-top:14px;font-size:11px;line-height:1.8}summary{cursor:pointer;min-height:32px;font-weight:bold;list-style-position:inside}details p{font-size:11px}.auto-details .story{font-size:11px}.button-pair{display:flex;gap:8px}.button-pair>*{flex:1;min-width:0;font-size:12px;padding:10px 7px}.auto-progress{font-size:11px;color:var(--muted);margin:10px 0;white-space:pre-line}dialog{border:1px solid #ac9f87;border-radius:8px;padding:23px;background:var(--paper);color:var(--ink);width:min(570px,calc(100vw - 28px));max-height:90vh;box-shadow:0 20px 70px #1e241e40}dialog::backdrop{background:#29372c7a;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px;margin-bottom:14px}.modal-head h2{margin:8px 0 17px;font-size:23px}.modal-head button{flex-shrink:0}.modal-illustration{width:100%;border:1px solid var(--line);border-radius:5px;max-height:245px;object-fit:cover}.facts{display:grid;grid-template-columns:1fr auto;gap:12px;margin:20px 0;font-size:13px}.facts dt{color:var(--muted)}.facts dd{margin:0;font-weight:bold}.modal-actions{display:flex;gap:10px;margin-top:20px}.modal-actions>*{flex:1}.setting-row{display:flex;align-items:center;gap:12px;margin:16px 0}.setting-row input{width:20px;height:20px;accent-color:var(--green)}label.field{display:block;margin:16px 0;font-size:13px}input[type=number]{display:block;width:100%;padding:12px;background:white;border:1px solid #b5ad98;border-radius:4px;margin-top:8px;font:inherit}.dev-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dev-grid button{border:1px solid var(--line);background:#ece5d4;font-size:12px}.dev-grid button:hover{background:#e0d5bd}.notice{font-size:12px;color:var(--muted);line-height:1.8;white-space:pre-line}table{width:100%;font-size:11px;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid var(--line);padding:9px 5px}td.money{text-align:right;font-family:monospace}.ledger-scroll{max-height:45vh;overflow:auto}.closed-tag{display:inline-block;font-size:12px;border:1px solid var(--red);color:var(--red);padding:5px 12px;transform:rotate(-5deg);margin:12px 0}.error{color:#a44434;font-size:12px;line-height:1.8}.reduce-motion *{animation:none!important;transition:none!important}@keyframes shake{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(9deg) translateY(-5px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1500px){main{padding-top:35px}.scene-wrap>img{min-height:550px}}@media(max-width:1020px){header{padding:18px 24px}main{padding:24px 24px 0}.game{grid-template-columns:minmax(0,1fr) 280px}.action-paper{padding:20px}.scene-wrap>img{min-height:550px}.hotspot{font-size:10px;padding:6px}.phone{left:34%}.clothes{right:4%}}@media(max-width:760px){header{padding:14px 16px;align-items:flex-start}.brand{font-size:15px;letter-spacing:0;gap:7px}.brand small{font-size:8px;letter-spacing:0}.stamp{font-size:23px;padding:3px}.header-actions{gap:1px;flex-wrap:wrap;justify-content:flex-end;max-width:175px}.header-actions button{font-size:11px;padding:6px 8px;min-height:38px}main{padding:20px 14px 0}.location{align-items:flex-start;margin-bottom:15px}h1{font-size:23px;letter-spacing:1px}.eyebrow{font-size:9px;letter-spacing:1px}.wallet{gap:0 5px;display:flex;flex-direction:column;align-items:flex-end}.wallet span{font-size:10px}.wallet strong{font-size:25px}.wallet small{font-size:8px}.game{grid-template-columns:1fr}.scene-wrap>img{height:auto;min-height:0;aspect-ratio:1000/650;object-fit:contain}.scene-caption{top:10px;left:10px;padding:5px 8px;font-size:10px}.hotspot{font-size:9px;min-height:35px;padding:6px}.phone{left:39%;top:44%}.clothes{right:7%;top:24%}.door{right:2%;bottom:8%}.bed{left:4%;bottom:11%}.action-paper{border-left:0;border-top:1px solid #c4b69d;padding:20px}.paper-top{padding-bottom:12px}h2{margin:16px 0 12px;font-size:22px}.story{font-size:13px}.payline{margin-top:12px;padding:12px 0}.life-goal{margin-top:20px;padding-top:18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 12px}.life-goal>.eyebrow{grid-column:1 / 3}.life-goal h3{font-size:17px}.life-goal p{grid-column:1;margin:0}.life-goal button{grid-column:2;grid-row:2 / 4}.hint{margin-bottom:14px}.dice-overlay{padding-top:12px;gap:12px}.table-name{font-size:9px;padding:5px 10px}.dice{width:52px;height:52px;padding:7px;gap:4px;border-radius:8px}.choose{gap:12px}.choose button{min-width:84px;min-height:53px;padding:6px}.choose strong{font-size:23px}.choose span{font-size:9px;margin-top:4px}.back-on-scene{left:10px;bottom:10px;font-size:10px;min-height:34px;padding:5px 9px}.work-overlay{left:13%;right:13%;bottom:18px;padding:10px;font-size:11px}.feedback-strip{gap:10px}.feedback-strip p{font-size:12px}footer{font-size:9px;gap:8px}footer button{font-size:10px}dialog{padding:18px}.dev-grid{grid-template-columns:1fr 1fr}}

/* Focused review fixes: two genuinely shrinkable columns and neutral pending die. */
.facts{grid-template-columns:minmax(110px,1fr) minmax(0,1fr);line-height:1.65}.facts dt,.facts dd{min-width:0;overflow-wrap:anywhere}.facts dd{text-align:right}.dice-neutral{grid-column:1/-1;grid-row:1/-1;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;font-weight:bold}@media(max-width:760px){.facts{grid-template-columns:minmax(110px,.95fr) minmax(0,1.05fr);column-gap:16px}.facts dd{white-space:normal}}

/* Scene art revision 2. The actions sit below the scene, never in a management sidebar. */
[hidden]{display:none!important}
body{background:#f0ecdf;color:#303c34;font-size:14px}
header{max-width:1280px;padding:17px 28px;border-bottom:1px solid #d3ccbc}
main{max-width:1280px;padding:20px 28px 0}
.brand{font-size:20px;letter-spacing:1.5px}.brand small{letter-spacing:2px}
h1{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:26px;letter-spacing:1px;margin-top:5px}
.location{margin-bottom:16px}.wallet strong{font-size:30px}
.game{display:block;border:1px solid #beb6a5;border-radius:10px;background:#fcf8ef;box-shadow:0 14px 40px #34342a12}
.scene-wrap{display:block;height:548px;min-height:0;background:#d6c6a8;isolation:isolate}
.scene-wrap>img{height:100%;width:100%;min-height:0;aspect-ratio:auto;object-fit:cover;object-position:center 54%}
.scene-caption{left:18px;top:16px;background:#fffcf0f2;box-shadow:0 2px 12px #17201b20;z-index:2}
.hotspot{font-size:12px;min-height:44px;box-shadow:0 3px 12px #251d2330;border-color:#e7d9bd;background:#fffbeeF2;padding:9px 13px;backdrop-filter:blur(5px)}
.bed{left:8%;bottom:17%}.phone{left:61%;top:47%}.clothes{right:13%;top:24%}.door{right:2.5%;bottom:24%}
.action-paper{padding:18px 24px 20px;border:0;border-top:1px solid #d5c9b0;background:#fcf8ef}
.paper-top{padding-bottom:10px;letter-spacing:1.5px;font-size:10px}
#homeActions{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:32px;padding-top:16px;align-items:start}
.action-paper h2{margin:0 0 8px;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:19px}
.action-paper .story{font-size:12px;line-height:1.85;margin:0}
.payline{margin:0 0 10px;padding:0;border:0;min-height:25px}.payline strong{font-size:25px}.payline span{font-size:12px}
.primary,.secondary{border-radius:6px;min-height:45px;font-size:13px;letter-spacing:.5px}
.hint{margin:8px 0 0;font-size:11px}.life-goal{border:0;border-left:1px solid #dfd7c4;margin:0;padding:0 0 0 26px}.life-goal h3{margin:6px 0;font-size:17px}.life-goal p{font-size:11px;margin:0}.life-goal .text-button{min-height:35px;padding:5px 0;margin-bottom:2px}.life-goal>.secondary{margin-top:2px;min-height:40px;font-size:11px}
.feedback-strip{margin-top:12px;padding-bottom:12px}.feedback-strip p{font-size:12px}.feedback-label{padding-top:4px}
.back-on-scene{left:18px;bottom:18px;min-height:44px;background:#fffbefef;border-color:#d8c8a8;z-index:3;box-shadow:0 2px 12px #152d2830}
.work-overlay{left:40%;right:5%;bottom:40px;padding:18px;background:#fff9ecef;border-color:#d5c6a9;box-shadow:0 5px 18px #3a261b35;font-size:12px}.work-overlay>span{white-space:nowrap}
.dice-overlay{padding:0;justify-content:flex-end;gap:16px;padding-bottom:42px;z-index:2}
.table-name{position:absolute;top:16px;right:18px;border:1px solid #d7c9a9;background:#fffbefed;color:#304f44;font-size:10px;padding:9px 14px;letter-spacing:1px;border-radius:5px}
.dice{width:68px;height:68px;border-color:#eee0c4;box-shadow:5px 8px 12px #072b285e;transform:rotate(-7deg)}
.choose{gap:14px}.choose button{min-width:116px;min-height:70px;background:#fffae8;border:2px solid #d8c6a6;border-radius:7px;box-shadow:0 5px 14px #082b2940}.choose button[aria-pressed=true]{background:#ae513b;border-color:#f4d69e;box-shadow:0 0 0 2px #6b342bb0,0 5px 14px #082b2940}.choose strong{font-size:27px}
#manualPlay{width:246px;box-shadow:0 5px 14px #082b2950;border-color:#f7d2a2;min-height:46px;background:#fff4db;color:#673c2c}
#manualPlay:hover:not(:disabled){background:white}
#diceActions{display:grid;grid-template-columns:1.05fr 1fr .9fr;gap:28px;padding-top:16px;align-items:start}
.table-round .payline{justify-content:flex-start;gap:12px;margin:10px 0 0}.table-round .payline strong{font-size:19px}
.table-round .round-result{margin:5px 0 0;font-size:11px;min-height:52px}.table-round .text-button{font-size:11px;min-height:34px}
.auto-details,.table-rules{padding:0 0 0 24px;border:0;border-left:1px solid #dfd7c4;margin:0}.auto-details .story{font-size:11px;margin:5px 0}.auto-progress{margin:9px 0}.auto-details summary,.table-rules summary{min-height:30px;font-size:12px}.table-rules p{font-size:11px;line-height:1.85}.auto-details .text-button{min-height:34px;font-size:11px}
#endedActions{max-width:580px;padding-top:18px}#endedActions .facts{margin:14px 0}#endedActions h2{font-size:21px}
.modal-illustration{max-height:300px;object-position:center 70%}
@media(min-width:1500px){main{padding-top:20px}.scene-wrap{height:600px}.scene-wrap>img{min-height:0}}
@media(max-width:1000px) and (min-width:761px){.scene-wrap{height:490px}#homeActions{grid-template-columns:1.1fr 1fr 1fr;gap:20px}.life-goal{padding-left:18px}.phone{left:57%}#diceActions{grid-template-columns:1fr 1fr;gap:20px}.table-rules{grid-column:1/3;border:0;border-top:1px solid #dfd7c4;padding:12px 0 0}.table-name{max-width:46%}}
@media(max-width:760px){
header{padding:12px 14px;align-items:center;gap:6px}.brand{font-size:14px;letter-spacing:0;gap:7px}.brand small{font-size:8px;letter-spacing:.4px}.stamp{font-size:23px}.header-actions{max-width:none;gap:0}.header-actions button{min-height:44px;font-size:11px;padding:7px}.header-actions #endOpen{padding:7px 8px}
main{padding:16px 12px 0}.location{margin-bottom:14px;align-items:center}h1{font-size:21px;letter-spacing:.5px}.wallet strong{font-size:26px}.wallet small{font-size:8px}.eyebrow{font-size:9px}
.game{border-radius:8px}.scene-wrap{height:auto;overflow:visible}.scene-wrap>img{height:auto;aspect-ratio:3/2;object-fit:cover;min-height:0;object-position:center}
.scene-caption{left:9px;top:9px;font-size:9px;padding:6px 8px;max-width:90%}
.hotspots{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#d9cdb8;border-top:1px solid #d0bfa0}
.hotspot{position:static;min-height:44px;border:0;box-shadow:none;border-radius:0;background:#faf3e4;font-size:11px;padding:9px 6px;text-align:left;backdrop-filter:none}
.hotspot:before{margin-right:5px}.action-paper{padding:16px}.paper-top{font-size:9px;padding-bottom:9px}
#homeActions{grid-template-columns:1fr;gap:16px;padding-top:14px}.today-copy h2{font-size:17px}.action-paper .story{font-size:12px;line-height:1.8}.work-action{padding-top:13px;border-top:1px solid #e1d7c5}.payline{margin-bottom:9px}.payline strong{font-size:24px}.hint{font-size:10px}
.life-goal{display:grid;grid-template-columns:1fr auto;border-left:0;border-top:1px solid #e1d7c5;padding:14px 0 0;gap:0 12px}.life-goal>.eyebrow{grid-column:1/3}.life-goal h3{font-size:16px;margin:6px 0}.life-goal p{grid-column:1;font-size:10px}.life-goal .text-button{grid-column:2;grid-row:2/4;min-height:44px;margin:0}.life-goal>.secondary{grid-column:1/3;grid-row:4;margin-top:14px;min-height:44px;font-size:12px}
body[data-place=dice] .scene-wrap,body[data-place=club] .scene-wrap{height:358px;overflow:hidden}body[data-place=dice] .scene-wrap>img,body[data-place=club] .scene-wrap>img{height:358px;aspect-ratio:auto;object-fit:cover;object-position:45% center}
body[data-place=dice] .scene-caption,body[data-place=club] .scene-caption{top:9px;max-width:94%;font-size:9px}
.table-name{position:static;align-self:flex-end;font-size:8px;letter-spacing:0;padding:6px 9px;margin:0 9px 4px;max-width:92%}
.dice-overlay{gap:10px;padding:42px 0 56px;justify-content:flex-end}.dice{height:53px;width:53px;padding:7px;gap:4px;border-width:2px}.choose{gap:12px}.choose button{min-width:99px;min-height:56px;padding:6px}.choose strong{font-size:23px}.choose span{font-size:9px;margin-top:4px}#manualPlay{width:210px;min-height:44px;font-size:12px}
.back-on-scene{left:9px;bottom:8px;min-height:40px;font-size:10px;padding:6px 10px}.work-overlay{left:10%;right:6%;bottom:15px;padding:11px;font-size:10px}.work-overlay>span{font-size:10px}
#diceActions{grid-template-columns:1fr;gap:17px;padding-top:14px}.table-round h2{font-size:17px}.auto-details,.table-rules{border-left:0;border-top:1px solid #dfd7c4;padding:14px 0 0;grid-column:auto}.auto-details .story{font-size:11px}.auto-details .text-button{min-height:44px}.auto-details summary,.table-rules summary{min-height:36px}.button-pair button{min-height:44px}.round-result{font-size:12px}
.feedback-strip{gap:10px}.feedback-strip p{font-size:11px}footer{font-size:8px}footer button{min-height:44px;font-size:10px}
.facts{grid-template-columns:minmax(110px,.95fr) minmax(0,1.05fr);column-gap:16px;line-height:1.65}.facts dd{white-space:normal}.modal-illustration{max-height:230px}dialog{padding:17px}.modal-head h2{font-size:20px}
}

@media(min-width:761px){body[data-place=dice] .scene-wrap>img,body[data-place=club] .scene-wrap>img,body[data-place=work] .scene-wrap>img{object-position:center top}}
