/* Local direction slice; upstream MIT engine and ledger retained. */
:root{color-scheme:light}*{box-sizing:border-box}body{margin:0;width:100%;background:#edf2eb;color:#183c35;font-family:Arial,"Microsoft YaHei",sans-serif}#window{max-width:1440px;background:transparent!important;padding:18px;font-family:inherit}#slice-header{display:flex;align-items:center;gap:12px;max-width:1404px;margin:0 auto;padding:18px 24px;background:#153e35;color:white}#slice-header strong{font-size:20px}#slice-header small{display:block;color:#c0d5cc;margin-top:4px}#language{margin-left:auto;background:#f2cd73;color:#173e35;border:0;border-radius:8px;padding:12px;font-weight:bold}#brand-mark{font-size:28px;border:2px solid #efca73;border-radius:12px;padding:8px;color:#efca73}#home-screen,#game-selection-screen{background:none!important;min-height:500px;padding:70px 12px;text-align:center}#home-title{font:700 clamp(28px,5vw,64px) Arial;color:#153e35;text-shadow:none;letter-spacing:-2px}#click-to-start{padding-top:50px;color:#24594b;animation:none;text-shadow:none}#version{display:none}button,input[type=button]{cursor:pointer;min-height:44px;border-radius:9px!important;box-shadow:none!important}#setup-container,#player-setup-container,#setup-screen{width:100%;height:auto;min-height:0;margin:0;float:none}#player-setup-container{padding:24px;background:white;border-radius:18px}#player-setup-input-container{width:100%;height:auto}.player-input{height:auto;min-height:80px}.player-option-dropdowns{display:inline-block}#game-options,#asset-deck-selection,#other-options,#options-2,.github-link,#game-mode-selection{display:none!important}#start-game,#continue-game{padding:16px 28px!important;margin:12px!important;width:auto!important}#game-container{width:calc(100% - 300px)!important;vertical-align:top}#board2{border:0;border-spacing:3px;table-layout:fixed}#board{border:0;border-spacing:4px;table-layout:fixed}.cell,.cell2,.cell2-top,.cell2-bottom,.cell2-left,.cell2-right{position:relative!important;left:auto!important;top:auto!important;width:auto!important;height:62px!important;border:0!important;border-radius:8px!important;box-shadow:none!important;font-size:9px!important}.cell{height:73px!important}.cellx{position:static;width:100%;height:auto;padding:4px 0;font-size:10px;letter-spacing:0}.cellx:before{content:attr(data-icon);display:block;font-size:23px;margin-bottom:3px}.cellx p{margin:0}.cellx2{position:static;width:100%;height:auto;font-size:8px;line-height:1.15;padding:3px}.cell2-center{border:0;padding:4px;background:#dce8db;border-radius:12px}.opp-space{background:#3b8062}.pay-space{background:#ebc36a;color:#233c32}.off-space{background:#4e83a1}.lia-space{background:#b56557}#info,#turn-info{width:100%;height:auto;min-height:360px;padding:12px;box-shadow:none!important;border:0!important}#info-card-td{vertical-align:top}#player-list-td{display:none}#info-card-td{width:auto}#player-list{display:none!important}#finance-box{width:284px;height:auto;min-height:600px;float:right;background:#fff;border-radius:14px;padding:14px;box-shadow:none;top:0}#finance-box table{height:auto!important;width:100%;font-size:12px}#finance-box td{padding:5px 2px}#card-btns{width:100%;position:static;height:auto}#turn-info-box{width:100%;height:auto;font-size:13px;line-height:1.55}.card-title{font-size:22px;color:#183c35!important;text-shadow:none!important}#turn-instructions h3{font-size:16px}#game-menu{position:static;padding:12px}#slice-summary{display:none;margin:0 0 16px;padding:18px;background:#153e35;color:white;border-radius:14px;gap:24px;align-items:center}#slice-summary b{font-size:23px;display:block}#slice-summary small{color:#c7d9cf}.slice-progress{flex:1}.slice-progress progress{display:block;width:100%;height:12px;margin:8px 0;accent-color:#edc66f}#slice-feedback{margin:10px 0 16px;color:#275e4a;font-weight:bold;min-height:22px}.active-square{outline:3px solid #f2c354;outline-offset:1px}.moving-square{filter:brightness(1.6);outline:3px solid #fff}div[id$='-piece']{border:3px solid white!important;border-radius:50%!important;width:29px!important;height:29px!important;font-size:17px!important;line-height:22px!important;box-shadow:0 3px 7px #183c3580!important;z-index:3;position:absolute!important;top:3px!important;right:3px!important;left:auto!important}.card-btn{min-width:100px;padding:12px!important;font-size:14px!important;margin:4px!important;background:#235d48!important;color:white!important}#roll-btn,#roll2-btn{background:#e7bd63!important;color:#183c35!important;font-size:20px!important}#dream-logo{display:none}#dream-description,#job-text,#dream-heading{width:auto;height:auto;font-size:14px;padding:8px}#dream-nav{height:35px}#dream-left-arrow:after{content:'◀'}#dream-right-arrow:after{content:'▶'}#slice-license{padding:20px;text-align:center;font-size:12px;color:#537065}#slice-license a{color:inherit}#slice-actions{display:none}
@media(max-width:900px){#window{padding:10px}#game-container{width:100%!important}#finance-box{float:none;width:100%;min-height:0;margin-top:14px}#slice-header{padding:12px}#slice-header strong{font-size:16px}#slice-header small{font-size:10px}#brand-mark{font-size:20px}#slice-summary{gap:12px;padding:12px;flex-wrap:wrap}#slice-summary b{font-size:19px}.slice-progress{flex-basis:100%}#board2{font-size:7px;border-spacing:1px}.cell2,.cell2-top,.cell2-bottom,.cell2-left,.cell2-right{height:28px!important;border-radius:3px!important}.cellx2{font-size:5px;max-height:28px;overflow:hidden}.cell{height:44px!important;border-radius:4px!important}.cellx{font-size:7px;padding:1px}.cellx:before{font-size:15px}.cellx p{font-size:7px}#board-container{width:100%}#board{border-spacing:2px}#info-card-td{height:145px}#info{min-height:0;height:145px;padding:8px;background:#e9f0e6;border-radius:10px;display:flex!important;align-items:center;justify-content:center}#info:after{content:'掷骰 → 走格 → 做选择';font-size:13px;font-weight:bold;color:#315a46}html[lang=en] #info:after{content:'Roll → Move → Choose'}#slice-actions{display:block;background:white;border-radius:16px;margin-top:12px;padding:8px}#slice-actions #turn-info{display:block!important;min-height:0;padding:12px}#slice-actions #turn-info-box{font-size:14px}#slice-actions #card-btns{display:block}#slice-actions .card-btn{min-height:48px}#dream-choices{width:100%}#new-room-button{width:auto;max-width:100%;font-size:24px;height:auto;padding:24px}#home-screen,#game-selection-screen{min-height:350px;padding:40px 8px}.player-option-dropdowns{display:block}select{max-width:100%;min-height:44px}#player1name{max-width:180px}#player-number-option{font-size:16px}#slice-feedback{font-size:13px}div[id$='-piece']{width:22px!important;height:22px!important;font-size:12px!important;line-height:16px!important;border-width:2px!important}}

#board,#board-container,#board2{height:auto!important}#board td{min-width:0}#info-card-td{width:auto!important}#info-card-btns-td{width:auto!important}#info{min-width:0}#turn-info{overflow-wrap:anywhere}#turn-info table{width:100%!important}#setup-container{max-width:850px;margin:auto}#game-type{display:none}#board2 td{overflow-wrap:anywhere}#board2 .cellx2 p{margin:2px 0}#board2 .cellx2{max-height:58px;overflow:hidden}#board2 [id^=cell2]{width:auto!important}#board2 .cell2-center{width:auto!important}#finance-box{font-family:inherit}
@media(max-width:900px){#info-card-btns-td{display:none!important}#board,#board2{height:auto!important}#board td{height:40px!important}.cellx2{max-height:28px!important}#info-card-td{height:200px!important}#info{height:200px!important;width:100%!important}#board .cell{height:40px!important}#board2 td{height:28px!important}#board2 .cell2-center{height:auto!important}#slice-actions{clear:both}#slice-feedback{margin:4px 0 8px;min-height:12px}#finance-box{display:block}#slice-header small{max-width:200px}#slice-summary{margin-bottom:6px}#turn-info{font-family:inherit}#card-btns{min-height:0!important}}

@media(max-width:900px){#board [id^=tokenSection]{height:auto!important;width:100%!important;min-height:0!important}#board .cellx{height:auto!important;width:100%!important;padding:0!important}#board .cellx p{line-height:10px!important;font-size:7px!important}#board td.cell{padding:2px!important}#board .cellx:before{margin:0;line-height:20px}#board #info{height:200px!important}}
@media(max-width:900px){#board [id^=tokenSection]{padding:0!important}#info{min-height:0!important}#slice-actions h3{font-size:16px}#slice-actions p{margin:8px 0}#slice-actions #turn-info{padding:8px}#slice-actions .card-title{margin:4px 0;font-size:19px}}

#board [id^=tokenSection]{padding:0!important;height:auto!important}#game-menu .menu-btn{width:auto!important;min-width:85px;font:14px Arial;padding:10px}#slice-summary,#slice-header,#turn-info,#finance-box{font-family:Arial,"Microsoft YaHei",sans-serif}#turn-info{min-height:300px}#info{min-height:300px}.cellx{line-height:1.3}#slice-actions{scroll-margin-top:10px}@media(max-width:900px){#slice-actions #turn-info{min-height:0}#info{min-height:0}#slice-header{height:72px}#slice-summary{padding:10px}#slice-summary .slice-progress{flex-basis:auto}#slice-summary b{font-size:18px}#slice-summary small{font-size:11px}#slice-summary progress{margin:4px 0}#slice-summary .slice-progress span{font-size:12px}#game-menu{padding:5px 0}#slice-actions{margin-top:6px}#slice-summary{gap:8px}}

#window,#window p,#window h2,#window h3,#window td,#window button,#window input{font-family:Arial,"Microsoft YaHei",sans-serif}#board2 .cellx2{font-size:0!important;line-height:0}#board2 .cellx2 p,#board2 .cellx2 span{display:none}#board2 .cellx2:before{content:attr(data-icon);display:block;font-size:23px;line-height:25px}#board2 .cellx2:after{content:attr(data-label);display:block;font-size:9px;line-height:12px;opacity:.6}#slice-center{display:none}#slice-die{font-size:64px;line-height:1;color:#205b44}#slice-center strong{font-size:13px;line-height:1.6;margin-top:10px}#slice-center small{font-size:10px;line-height:1.6;color:#567b60;margin-top:8px}@media(max-width:900px){#info:after{display:none}#slice-center{display:flex;flex-direction:column;align-items:center;text-align:center}#board2 .cellx2:before{font-size:13px;line-height:14px}#board2 .cellx2:after{font-size:7px;line-height:8px}#board2 .cellx2{max-height:26px!important}#info{padding:10px}}

#slice-assets{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}#slice-assets:empty{display:none}#slice-assets span{display:inline-block;background:#d7e9d5;color:#20553d;border-radius:8px;padding:8px 12px;font-size:13px}#deal-card-real-estate .card-title:before{content:'⌂';display:block;font-size:42px;color:#368764;margin-bottom:10px}#slice-center{width:100%}@media(max-width:900px){#deal-card-real-estate .card-title:before{float:left;font-size:30px;margin:0 8px 0 0}#slice-assets span{font-size:11px;padding:5px 8px}}

#assets-liabilities-statement,#financial-statement-left,#financial-statement-right{height:auto!important;min-height:0!important}#window{display:flow-root}#slice-license{clear:both}#finance-box tr{float:none}#finance-box tbody{height:auto!important}#finance-box table{max-height:none}#finance-box #income-table,#finance-box #expense-table{margin-bottom:10px}#finance-box{padding-bottom:20px}

body:not(.slice-playing) #slice-actions,body:not(.slice-playing) #finance-box{display:none!important}#default-game-indicator,#custom-game-indicator{display:none!important}#player-setup-container{border:0!important}#setup-container{border:0!important}#player1input{width:100%;padding:14px;border:1px solid #dce6dc;border-radius:10px}#player1name{font-size:16px;padding:10px;border-radius:6px;border:1px solid #9bb5a6}#player1input select{padding:8px;font-size:14px}#start-game,#continue-game{font-size:17px!important}body:not(.slice-playing) #game-container{display:none!important}
#player-number-option{color:#214d3b!important;text-shadow:none!important;margin:0 0 18px!important}#player1input{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;height:auto!important;color:#214d3b;text-shadow:none}#player1input .player-options-checkbox{display:none!important}#player1input .player-option-dropdowns{position:static!important;display:flex!important;float:none!important;width:100%!important;height:auto!important;gap:10px}#player1input .job-input{position:static!important;float:none!important;width:70%!important;height:46px!important;font-size:14px!important;background:white!important;color:#214d3b!important}#player1input .color-input{position:static!important;float:none!important;width:30%!important;height:46px!important;font-size:14px!important}#player1name{width:calc(100% - 30px)!important;max-width:none!important;margin:0!important}#options-container{width:100%!important;height:auto!important;float:none!important;border:0!important;box-shadow:none!important;text-align:center;padding:14px 0!important}#start-game,#continue-game{color:#163d30!important;text-shadow:none!important;min-height:50px!important;padding:12px!important;margin:5px!important;font-weight:700}#mode-indicator-container{display:none!important}
