:root{color-scheme:dark;--ink:#13191f;--night:#1c232b;--line:#373b3e;--gold:#d0b482;--gold-muted:#988367;--paper:#d7be94;--text:#eee7db;--muted:#a6a6a1;--red:#ab584c;--blue:#79aabb;--green:#a0b489;--orange:#c29a55;--title:'Songti SC','STSong','Noto Serif SC',serif;--sans:'PingFang SC','Microsoft YaHei',sans-serif}
*{box-sizing:border-box}body{margin:0;background:#101419;color:var(--text);font:14px/1.5 var(--sans)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}a{color:var(--gold)}img{max-width:100%;display:block;object-fit:contain}h1,h2,h3,p{margin:0}h2,h3{font-family:var(--title)}h2{font-size:25px;letter-spacing:2px}h3{font-size:17px;letter-spacing:1px}small{font-size:11px}input,select{min-height:42px;background:#181d23;color:var(--text);border:1px solid #62605a;border-radius:3px;padding:10px;min-width:0}input[type=range]{width:100%;padding:0;accent-color:var(--gold)}input[type=checkbox]{accent-color:var(--gold);min-height:20px;width:20px}a,button{touch-action:manipulation}button img{pointer-events:none}.workbench{display:grid;grid-template-columns:224px minmax(450px,1fr) 272px;min-height:100dvh;max-width:1800px;margin:auto}.rail{border-right:1px solid #292d30;padding:29px 18px;position:sticky;top:0;height:100dvh;overflow:auto}.brand{display:flex;gap:13px;align-items:center;margin-bottom:35px}.brand img{width:47px;height:56px}.brand strong{font:21px var(--title);letter-spacing:2px}.brand small{display:block;color:var(--gold-muted);font-size:9px;letter-spacing:2px;margin-top:7px}.rail-label{color:#777c7e;font-size:10px;letter-spacing:2px;margin:23px 12px 9px}.rail-link{display:flex;width:100%;align-items:center;gap:12px;padding:10px 12px;text-align:left;color:#a5a8a9;border-left:2px solid transparent;margin:2px 0;min-height:41px}.rail-link img{width:23px;height:23px;opacity:.65}.rail-link b{font-size:12px;font-weight:400}.rail-link em{margin-left:auto;font-size:10px;opacity:.5;font-style:normal}.rail-link:hover{background:#20262b;color:var(--text)}.rail-link.active{color:var(--gold);background:#272924;border-color:var(--gold)}.rail-link.active img{opacity:1}.rail-foot{margin:30px 12px;color:#747a7f;font-size:11px;line-height:1.9}.rail-foot strong{color:#afa089;font-weight:400}.workspace{padding:25px 30px 12px;min-width:0}.workbar{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:600px;margin:0 auto 18px}.eyebrow{color:var(--gold-muted);font-size:9px;letter-spacing:2.2px}.workbar h1{font:19px var(--title);letter-spacing:1.4px;margin-top:6px}.workbar h1 span{font:11px var(--sans);color:#7e8588;letter-spacing:.4px;margin-left:12px}.review-toggle{border:1px solid #47443a;padding:7px 11px;color:var(--gold);font-size:11px;border-radius:3px}.stage{display:flex;justify-content:center;align-items:flex-start}.game{width:414px;height:calc(100dvh -140px);min-height:650px;max-height:930px;position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #625646;border-radius:12px;background:#1d252d url('assets/web/Texture__hud__Hud_bg.webp') center/100% 100%;box-shadow:0 24px 75px #0008}.game-header{flex-shrink:0;padding:14px 16px 10px;min-height:69px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#161d24ef;border-bottom:1px solid #4a4238;z-index:5}.header-brand{display:flex;align-items:center;gap:8px;padding:0;text-align:left;min-width:0}.header-brand img{width:35px;height:39px}.header-brand strong{font:17px var(--title);letter-spacing:1px;display:block;white-space:nowrap;max-width:170px;text-overflow:ellipsis;overflow:hidden}.header-brand small{display:block;color:#99978c;margin-top:2px;font-size:10px}.currency{display:flex;align-items:center;gap:5px;border:1px solid #514b3e;padding:5px 7px;background:#202522;border-radius:4px;color:#ebcf95;white-space:nowrap;font-variant-numeric:tabular-nums}.currency img{width:22px;height:22px}.currency b{font-size:13px}.screen{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#554c3d transparent;outline:none}.page{padding:18px 16px 24px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:8px}.page-head p{color:var(--muted);font-size:11px;margin-top:5px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}.section-title small{color:var(--muted)}.bottom-nav{flex-shrink:0;height:70px;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #726247;background:#252723 url('assets/web/Texture__hud__Main_Btn_Bottom_panel.webp') center/100% 100%;z-index:5}.nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#a59b80;font-size:10px;padding:4px 0}.nav-item img{height:27px;width:31px;opacity:.62}.nav-item.active{color:#f4dc9d;background:url('assets/web/Texture__hud__Main_Btn_Bottom_Chose.webp') center/100% 100%}.nav-item.active img{opacity:1}.nav-item.active:before{content:'';position:absolute;top:0;width:25px;height:2px;background:#d5b771}.workfooter{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:13px;color:#6f767b;font-size:10px}.workfooter button{font-size:10px;color:#b49c75;padding:0}.inspector{border-left:1px solid #292d30;padding:32px 23px;position:sticky;top:0;height:100dvh;overflow:auto}.inspector .eyebrow{font-size:9px}.inspector h2{font-size:20px;margin-top:10px}.inspect-section{padding:24px 0;border-bottom:1px solid #2f3438}.inspect-section h3{font:12px var(--sans);color:#c8b595;margin-bottom:12px}.inspect-section p{font-size:12px;line-height:1.9;color:#a0a5a7}.inspect-section .tag{display:inline-block;padding:4px 7px;border:1px solid #464940;color:#b4b8a1;font-size:10px;margin:4px 4px 0 0}.source-row{font-size:11px;display:flex;justify-content:space-between;gap:8px;margin:8px 0;color:#999f9f}.source-row strong{color:#d3c3a5;font-weight:400}.inspect-steps{counter-reset:step;list-style:none;padding:0;margin:0}.inspect-steps li{counter-increment:step;display:flex;gap:10px;margin:12px 0;font-size:11px;color:#a5a9a9}.inspect-steps li:before{content:'0' counter(step);color:#796b54;font-variant-numeric:tabular-nums}.inspect-button{width:100%;border:1px solid #4e493f;border-radius:3px;color:#c5b395;padding:8px;margin:6px 0;font-size:11px;text-align:left}.inspect-button:hover{background:#292b27}.btn{background:url('assets/web/Texture__common__Com_Btn_Confirm.webp') center/100% 100%;min-height:42px;padding:10px 17px;color:#f4e3bf;display:inline-flex;align-items:center;justify-content:center;gap:7px;letter-spacing:1px;font-weight:600}.btn.secondary{background-image:url('assets/web/Texture__common__Com_Btn_Cancel.webp');color:#d2cbbd}.btn.gold{background-image:url('assets/web/Texture__Books__Staff_Btn_Gointo.webp');color:#302315}.btn.small{min-height:34px;padding:7px 13px;font-size:12px}.btn.wide{width:100%}.text-btn{color:var(--gold);font-size:11px;padding:8px 2px}.icon-button{height:38px;width:38px;display:grid;place-items:center;flex-shrink:0}.icon-button img{width:27px;height:27px}.tag{font-size:10px;color:var(--gold);border:1px solid #625b46;padding:2px 7px;border-radius:2px;white-space:nowrap}.muted{color:var(--muted)}.hint{font-size:11px;line-height:1.8;color:#a4a59c}.rule{height:1px;background:#63574066;margin:16px 0}.tabs{display:flex;gap:0;border-bottom:1px solid #504b40;margin:0 0 16px}.tabs button{flex:1;padding:11px 4px;color:#969b9c;font-size:12px;position:relative}.tabs button.active{color:#ecd09a;background:#bb9b6512}.tabs button.active:after{content:'';height:2px;position:absolute;bottom:-1px;left:18%;right:18%;background:#b99a63}.panel{border:1px solid #514b40;background:#141b22b8;padding:13px}.paper{color:#40362a;border:16px solid transparent;border-image:url('assets/web/Texture__common__Level_Board_SettingWindow_2.webp') 30 fill stretch;line-height:1.7}.paper .muted,.paper .hint{color:#746550}.paper h3{color:#4f3327}.paper .rule{background:#8a6e4955}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat{text-align:center;padding:9px 4px;border-right:1px solid #6b614a55}.stat:last-child{border-right:0}.stat strong{font-size:20px;font-family:var(--title);color:#e2c48d;display:block}.stat small{color:#989d9b;font-size:10px}.paper .stat strong{color:#673b28}.paper .stat small{color:#776d5b}.meter{height:5px;background:#0f151b;border:1px solid #585649;overflow:hidden}.meter i{height:100%;display:block;background:#be9255;transition:width .4s}.meter.blue i{background:#7da3af}.meter.green i{background:#879d79}.empty{text-align:center;padding:50px 20px;color:#929992}.empty img{width:70px;height:80px;margin:0 auto 15px;opacity:.5}.empty h3{margin-bottom:7px;color:var(--gold)}
/* The game artwork stays in image layers; CSS supplies layout and UI states. */
.home{padding:0 13px 15px}.business-row{display:flex;justify-content:space-between;align-items:center;padding:10px 2px;font-size:11px;color:#c2b999}.business-state{display:flex;align-items:center;gap:6px}.business-state:before{content:'';width:5px;height:5px;border-radius:50%;background:#a0b884}.mansion{height:217px;position:relative;border:1px solid #7c6c4f;overflow:hidden;background:url('assets/web/Texture__level__Level_Board_Level.webp') center/cover}.mansion .room-hotspot{position:absolute;left:2%;width:44%;height:28%;border:1px solid transparent}.room-hotspot:hover,.room-hotspot:focus-visible{border-color:#d9bd86;background:#d4b47510}.room-hotspot:nth-child(1){top:2%}.room-hotspot:nth-child(2){top:33%}.room-hotspot:nth-child(3){top:68%}.scene-person{position:absolute;width:27px;z-index:2;pointer-events:none;filter:drop-shadow(0 5px 3px #0008);animation:visitor 9s ease-in-out infinite alternate}.scene-person.p1{left:16%;top:23%}.scene-person.p2{left:33%;top:62%;animation-delay:-3s}.scene-person.p3{left:10%;top:71%;animation-delay:-6s}.mansion-caption{position:absolute;right:15px;top:22px;width:41%;text-align:center}.mansion-caption .chapter{font-size:8px;letter-spacing:2px;color:#b3a184}.mansion-caption h2{font-size:24px;line-height:1.5;margin:5px 0 3px;color:#e0c591}.mansion-caption p{font-size:9px;color:#a59c8d}.mansion-caption .btn{min-height:31px;margin-top:13px;font-size:10px;padding:7px 14px}.mansion-bottom{position:absolute;bottom:13px;right:12px;width:42%;display:flex;justify-content:space-around;color:#c4b390;font-size:9px}.mansion-bottom b{display:block;font:18px var(--title);margin-bottom:1px}.home-tools{display:flex;gap:8px;margin-top:10px;justify-content:space-between}.home-tool{display:flex;align-items:center;gap:5px;font-size:10px;color:#b2aa96;padding:5px 7px;background:#0f171f88;border:1px solid #393f3e;min-height:32px}.home-tool img{width:20px;height:21px}.crew{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 11px}.crew-card{position:relative;min-height:77px;text-align:left;padding:5px 5px 6px;border:1px solid #655c49;background:#222833}.crew-card img{height:45px;width:100%;object-fit:contain;object-position:top}.crew-card .crew-name{font-size:9px;display:block;text-align:center;color:#d7cdb9;margin:2px 0 4px;white-space:nowrap}.crew-energy{position:absolute;top:3px;right:3px;font-size:8px;background:#111b;color:#e4d4ac;padding:1px 3px}.crew-card .meter{height:4px}.crew-card[data-element="0"]{border-top:2px solid #a45149}.crew-card[data-element="1"]{border-top:2px solid #b49448}.crew-card[data-element="2"]{border-top:2px solid #c48b4c}.crew-card[data-element="3"]{border-top:2px solid #6999a3}.board-top{display:flex;justify-content:space-between;align-items:center;margin:8px 1px}.board-top h3{font-size:15px}.board-top .text-btn{padding:2px 0;min-height:28px}.board-wrap{background:#11171dcc;border:1px solid #494a43;padding:5px;position:relative;touch-action:pan-y}.match-board{display:grid;grid-template-columns:repeat(var(--cols,9),minmax(0,1fr));gap:3px}.tile{aspect-ratio:1;border:1px solid transparent;padding:2px;display:grid;place-items:center;background:url('assets/web/Texture__hud__Main_Board_Cell_01.webp') center/100% 100%;border-radius:4px;position:relative;touch-action:pan-y}.tile img{width:94%;height:94%;transition:transform .15s;filter:drop-shadow(0 2px 2px #0008)}.tile:hover img{transform:scale(1.1)}.tile.selected{border-color:#ffe2a0;background-color:#b19a4c55;box-shadow:inset 0 0 10px #debb5555}.tile.hinted{outline:2px solid #ead093;outline-offset:-3px;animation:hint-pulse .75s ease-in-out 3}.tile.clearing img{animation:clear-tile .23s forwards}.board-note{text-align:center;color:#8c948e;font-size:9px;margin:7px 0 0;letter-spacing:.4px}.board-message{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center;font:26px var(--title);color:#fff2bd;text-shadow:0 3px 8px #000;z-index:3}.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.feature-row button{padding:10px;border:1px solid #60523a;background:#222722;color:#c5b18a;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px}.feature-row img{width:24px;height:24px}
.team-tabs{display:flex;gap:8px}.team-tabs button{width:35px;height:35px;background:url('assets/web/Texture__Books__Staff_Btn_Team_02.webp') center/100% 100%;color:#a8c0c5}.team-tabs button.active{background-image:url('assets/web/Texture__Books__Staff_Btn_Team_01.webp');color:#ecd0a2}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px 9px}.staff-card{padding:7px 4px 11px;min-height:151px;position:relative;background:var(--card-image) center/100% 100%;text-align:center;color:#e7d7b6}.staff-card img.portrait{width:100%;height:98px;object-fit:contain;filter:drop-shadow(0 3px 3px #0005)}.staff-card .card-name{font-family:var(--title);font-size:14px;display:block;color:#3c302a;margin-top:4px}.staff-card .card-level{position:absolute;top:10px;left:9px;color:#e5d6b9;font-size:9px;z-index:2;background:#1118;padding:1px 3px}.staff-card small{font-size:8px;color:#5c5140}.staff-card.locked img{filter:grayscale(1);opacity:.32}.card-tag{position:absolute;top:10px;right:8px;font-size:8px;color:#e6d2a6;background:#44574e;padding:1px 3px}.character-hero{position:relative;height:285px;margin:-18px -16px 0;background:url('assets/web/Texture__Books__Staff_Asset_Element_01.webp') center/cover;display:flex;justify-content:center;align-items:flex-end;overflow:hidden}.character-hero>img{height:96%;width:88%;object-fit:contain;filter:drop-shadow(0 10px 12px #0008)}.character-hero .element-label{position:absolute;right:16px;top:14px;border:1px solid #948362;background:#121821b8;padding:5px 9px;font-size:10px}.character-hero .back-on-art{position:absolute;top:9px;left:10px;z-index:2}.character-title{text-align:center;margin:13px 0 12px}.character-title p{font-size:10px;color:#afa38c;letter-spacing:1px;margin-top:5px}.skill-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:13px}.skill-grid button{display:flex;align-items:center;flex-direction:column;font-size:9px;color:#cbbb98}.skill-grid img{height:43px;width:43px;margin-bottom:6px}.story-row{display:flex;align-items:center;gap:10px;padding:14px 11px;border-bottom:1px solid #5e4c3444;text-align:left;width:100%;color:#62492f}.story-row img{height:30px;width:30px}.story-row .story-index{color:#a48353;font:20px var(--title)}.story-row strong{font-size:12px;font-weight:500;display:block}.story-row small{color:#89704c}.story-row em{margin-left:auto;font-style:normal;font-size:10px;color:#977546}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.talent-root{height:99px;display:grid;justify-items:center;margin:0 auto 7px}.talent-root img{width:67px;height:67px}.talent-root span{font:13px var(--title);color:#cbb380}.talent-tree{position:relative;padding-top:3px}.talent-tier{display:flex;justify-content:center;gap:34px;position:relative;padding:17px 0 13px}.talent-tier:before{content:'';position:absolute;left:50%;top:-12px;height:28px;width:1px;background:#77664b}.talent-tier:after{content:'';position:absolute;top:5px;left:24%;right:24%;height:1px;background:#635744}.talent-node{position:relative;text-align:center;width:105px;z-index:1}.talent-node img{width:61px;height:61px;margin:0 auto 5px;filter:drop-shadow(0 0 5px #cba35322)}.talent-node strong{display:block;font-size:11px;font-weight:400;color:#dfc8a1}.talent-node small{font-size:9px;color:#bdab87}.talent-node.locked{opacity:.44}.talent-node.maxed img{outline:2px solid var(--gold);border-radius:50%}.talent-summary{border:1px solid #554a38;color:#bea883;font-size:11px;padding:10px;margin-top:15px;text-align:center}.room-card{position:relative;margin-bottom:12px;min-height:142px;padding:15px 14px 12px 48%;background:url('assets/web/Texture__level__Level_Board_Level.webp') center/100% 100%;border:1px solid #685b44;overflow:hidden}.room-card.selected{outline:2px solid var(--gold)}.room-card h3{font-size:17px;color:#e0c490}.room-card p{font-size:10px;color:#b8ab94;margin:6px 0 10px}.room-card small{color:#9a9b93}.room-number{position:absolute;left:13px;top:10px;font:16px var(--title);color:#ddc28c}.room-card .btn{font-size:10px;min-height:31px;padding:6px 10px}.room-card.theme-1{filter:saturate(.7)}.room-card.theme-2{background-color:#293831;background-blend-mode:luminosity}.room-card.theme-3{background-color:#302a35;background-blend-mode:luminosity}.layout-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.layout-slot{min-height:105px;border:1px dashed #746447;background:#1d252bd9;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:8px;font-size:10px;gap:6px}.layout-slot img{height:50px;width:100%;object-fit:cover}.layout-slot.active{border:2px solid #d4b478;background:#464335}.room-picker{display:flex;gap:8px;overflow:auto;margin:13px 0;padding:3px 0}.room-picker button{min-width:96px;min-height:90px;border:1px solid #61563e;background:#1b2127;padding:6px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px}.room-picker img{width:79px;height:43px;object-fit:cover}.prop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.prop-grid button{border:1px solid #736246;padding:8px 5px;font-size:10px;background:#272b28}.prop-grid button img{height:42px;width:100%;margin-bottom:5px}.prop-grid button.active{outline:2px solid #c1a778}.level-card{margin-bottom:11px;min-height:145px;position:relative;padding:16px 13px 15px 48%;background:url('assets/web/Texture__level__Level_Board_Level.webp') center/100% 100%;border:1px solid #6e6048}.level-card h3{font-size:17px;color:#dec699}.level-card p{font-size:10px;color:#b0a58e;margin:5px 0 11px}.level-card .index{font-size:9px;letter-spacing:2px;color:#a6926e;margin-bottom:5px}.level-card.locked{filter:grayscale(.75);opacity:.65}.level-stamp{position:absolute;left:11%;top:36%;width:80px;transform:rotate(-12deg)}.puzzle-page{padding:10px 13px 17px}.puzzle-head{display:flex;justify-content:space-between;align-items:center;padding:0 1px 9px}.puzzle-head h3{font-size:17px}.puzzle-head p{color:#a6a08f;font-size:10px}.puzzle-stage{height:173px;position:relative;background:url('assets/web/Texture__level__Level_Img_Room.webp') center/cover;border:1px solid #4b4c43;overflow:hidden;margin-bottom:10px}.puzzle-hero{position:absolute;height:99px;width:74px;left:8%;bottom:7px}.puzzle-stone{position:absolute;width:63px;height:63px;bottom:8px;transition:left .6s;filter:drop-shadow(0 5px 5px #0009)}.puzzle-spikes{position:absolute;height:120px;width:37px;right:5px;top:30px;transform:scaleX(-1)}.puzzle-target{position:absolute;top:9px;left:12px;right:12px;font-size:11px;color:#d0bd92}.puzzle-progress{position:absolute;bottom:8px;left:5%;right:5%}.puzzle-meta{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #4c493a;background:#171d23;margin:0 0 10px}.puzzle-meta .stat{padding:7px 4px}.puzzle-meta .stat strong{font-size:21px}.item-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.item-tray button{background:url('assets/web/Texture__level__Level_Btn_Item.webp') center/100% 100%;color:#473a27;padding:6px 8px;position:relative;font-size:10px;display:flex;align-items:center;gap:5px;min-height:47px}.item-tray img{width:31px;height:31px}.item-tray small{display:block;font-size:8px;color:#705b3c}.catalog-hero{border:1px solid #746346;background:#202831;padding:15px;margin-bottom:14px}.catalog-hero h3{margin-bottom:4px}.catalog-hero .row{margin-bottom:10px}.rewards{display:flex;justify-content:space-between;margin-top:12px}.reward-node{display:flex;align-items:center;gap:5px;color:#c7b18b;font-size:10px;border:1px solid #746344;padding:5px 6px}.reward-node img{width:18px;height:18px}.reward-node.claimed{opacity:.45}.visitor-card{border:1px solid #5f5545;background:#20272f;padding:9px 5px 10px;position:relative}.visitor-card img{height:83px;width:100%;object-fit:contain}.visitor-card strong{display:block;font-size:11px;margin-top:6px;color:#d0bb97}.visitor-card small{color:#8f9996;font-size:9px}.visitor-card.locked img{filter:grayscale(1);opacity:.3}.profile-id{display:flex;align-items:center;gap:13px;padding:6px 0 18px}.profile-id .avatar{height:70px;width:64px;object-fit:contain;border:1px solid #746445;background:#242b32}.profile-id h2{font-size:23px}.profile-id .tag{display:inline-block;margin:5px 0}.profile-id .uid{color:#8b9496;font-size:10px}.profile-id .edit{margin-left:auto;color:#d4b88a;font-size:11px;border:1px solid #62543c;padding:6px 8px}.showcase{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.showcase button{background:#272d34;border:1px solid #685940;min-height:126px;padding:9px 4px;color:#c1ad88;font-size:10px}.showcase img{height:84px;width:100%;object-fit:contain;margin-bottom:4px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 2px;border-bottom:1px solid #494737}.settings-row strong{font-size:12px;font-weight:500}.settings-row small{display:block;color:#7f898a;margin-top:4px;font-size:10px}.settings-row>button:not(.switch){font-size:11px;color:var(--gold);border:1px solid #655840;padding:7px 9px}.switch{width:44px;height:24px;background:#4b4540;border:1px solid #6e6453;border-radius:2px;position:relative}.switch:after{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;background:#b7a688;transition:left .15s}.switch[aria-checked=true]{background:#567168}.switch[aria-checked=true]:after{left:23px;background:#d9caaa}.setting-select{display:flex;gap:3px;border:1px solid #69604b}.setting-select button{padding:6px 9px;font-size:10px;color:#abaaa0}.setting-select button.active{background:#6e6045;color:#eeddb7}.achievement{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #4d4638}.achievement img{height:42px;width:42px}.achievement .desc{flex:1}.achievement h3{font-size:14px}.achievement p{font-size:10px;color:#969b94;margin:4px 0}.achievement .btn{font-size:10px;min-height:31px;padding:6px 10px}.mail-row{display:flex;width:100%;align-items:center;gap:10px;text-align:left;padding:16px 10px;border:1px solid #504a3c;background:#1d252d;margin:8px 0;position:relative}.mail-row img{width:37px;height:37px}.mail-row .mail-text{flex:1}.mail-row strong{font:14px var(--title);display:block}.mail-row small{font-size:10px;color:#8d9796}.mail-row .unread{height:6px;width:6px;background:#c66c58;border-radius:50%;position:absolute;top:13px;right:12px}.mail-row.read{opacity:.57}.mail-row .gift-amount{font-size:11px;color:#d8bd83}.gifts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:13px 0}.gifts button{border:1px solid #64543f;padding:9px 5px;background:#1e262d;font-size:10px;color:#cdb58c}.gifts img{height:39px;width:100%;margin:7px 0}.gifts .claimed{opacity:.45}.asset-tools{display:grid;grid-template-columns:1fr 94px;gap:7px;margin:12px 0}.asset-tools input,.asset-tools select{font-size:11px}.asset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.asset-card{border:1px solid #444b4b;min-width:0;padding:6px;text-align:left;background:#292f36}.asset-card img{height:85px;width:100%;object-fit:contain}.asset-card span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:9px/1.8 var(--sans);color:#b6baaf}.asset-card small{font-size:8px;color:#7f8d91}.pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:18px 0;color:var(--muted);font-size:11px}.loading-page{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;background:url('assets/web/Texture__Books__Staff_Asset_Element_01.webp') center/cover}.loading-page>img{height:280px;width:200px;object-fit:contain;filter:drop-shadow(0 10px 20px #000)}.loading-page h2{font-size:33px;letter-spacing:5px;color:#ddc395}.loading-page p{font-size:11px;color:#b3a383;margin:13px 0 24px}.loading-page .meter{width:80%;margin:15px auto}.loading-page .btn{min-width:175px;margin-top:10px}.loading-page small{font-size:9px;color:#93988c}
.overlay-host:empty{display:none}.overlay-host{position:absolute;inset:0;z-index:30;background:#060a0ebd;display:flex;align-items:center;justify-content:center;padding:20px}.modal{position:relative;width:100%;max-height:91%;overflow:auto;background:none;color:#403326;border:17px solid transparent;border-image:url('assets/web/Texture__common__Level_Board_SettingWindow_2.webp') 30 fill stretch;box-shadow:0 10px 35px #0007}.modal.wide{max-width:760px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 13px;border-bottom:1px solid #89704d55;margin-bottom:14px;gap:12px}.modal-header h2{font-size:21px;letter-spacing:1px}.modal-close{width:29px;height:29px;flex-shrink:0}.modal-close img{width:100%;height:100%}.modal p{font-size:12px;line-height:1.9}.modal small{color:#816b4c}.modal .hint{color:#796446}.modal .btn.secondary{color:#e3dac3}.modal .reward-art{height:88px;width:95px;margin:5px auto 12px}.modal .reward-value{text-align:center;font:32px var(--title);color:#7c4930;margin-bottom:12px}.modal .modal-actions{display:flex;gap:7px;margin-top:18px}.modal .modal-actions>*{flex:1}.modal .select-card{border:1px solid #9b825b;background:#6e6d5c18;padding:7px;color:#433426}.modal .select-card img{height:67px;width:100%;margin:3px 0}.modal .select-card.active{outline:2px solid #805333}.modal .select-card span{font-size:11px}.modal .dark-preview{background:#20262e;padding:8px;border-radius:3px;margin-bottom:10px}.modal .dark-preview img{max-height:280px;width:100%;object-fit:contain}.modal .path{font:10px/1.7 monospace;overflow-wrap:anywhere;color:#6f5b40}.modal label{display:block;font-size:12px;margin:12px 0 7px}.modal input{width:100%;color:#3c3326;background:#f3e3bd6b;border-color:#ae936a}.modal .form-error{color:#9c3e30;font-size:11px;min-height:23px;padding-top:4px}.modal .text-btn{color:#75532d}.modal .flow-image{max-height:none;width:100%;background:white}.flow-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px}.flow-nav button{border:1px solid #998262;background:#7457390a;color:#60492e;font-size:12px;padding:9px;text-align:left}.story-content{white-space:pre-line;font:15px/2.1 var(--title);padding:6px 3px}.toast{position:absolute;left:50%;bottom:83px;transform:translateX(-50%) translateY(8px);background:#e6cfa6;color:#3d3327;box-shadow:0 3px 20px #0008;padding:9px 15px;font-size:12px;max-width:90%;width:max-content;text-align:center;z-index:50;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.reduced-motion *,body.low-quality *{animation:none!important;scroll-behavior:auto!important}.reduced-motion *{transition:none!important}@keyframes visitor{from{transform:translate(-5px,-3px)}to{transform:translate(25px,4px)}}@keyframes hint-pulse{50%{filter:brightness(1.5)}}@keyframes clear-tile{to{transform:scale(.1) rotate(20deg);opacity:0}}
@media(min-width:1500px){.workspace{padding-left:55px;padding-right:55px}.workbench{grid-template-columns:240px minmax(450px,1fr) 300px}.game{width:438px}.mansion{height:231px}.crew-card{min-height:83px}.crew-card img{height:48px}}
@media(max-width:1170px){.workbench{grid-template-columns:185px minmax(430px,1fr)}.inspector{display:none}.rail{padding:25px 12px}.workspace{padding:22px 20px 12px}.brand strong{font-size:18px}.brand img{width:35px}.workbar{max-width:414px}.eyebrow{font-size:8px}}
@media(max-width:720px){.workbench{display:block}.rail{display:none}.workspace{padding:15px 12px}.workbar{max-width:414px}.game{min-height:610px;height:calc(100dvh -130px)}.workbar h1{font-size:17px}}
@media(max-width:480px){html,body{height:100%;overflow:hidden}.workbench,.workspace{height:100dvh;display:block;padding:0}.workbar,.workfooter{display:none}.stage{height:100dvh}.game{width:100%;height:100dvh;max-height:none;min-height:0;border:0;border-radius:0}.game-header{padding-top:max(12px,env(safe-area-inset-top));min-height:65px}.bottom-nav{height:calc(67px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}.page{padding:16px 14px 23px}.home{padding:0 12px 16px}.mansion{height:211px}.crew{gap:6px}.crew-card{min-height:78px}.workbench .game{box-shadow:none}.header-brand strong{font-size:17px}.modal{max-height:94%}.overlay-host{padding:18px}.collection-grid{gap:10px 8px}.staff-card{min-height:147px}.toast{bottom:calc(82px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.game-header{padding-left:11px;padding-right:11px}.header-brand strong{font-size:15px}.currency b{font-size:11px}.mansion{height:191px}.crew-card img{height:36px}.crew-card{min-height:70px}.tile{padding:1px}.match-board{gap:2px}.staff-card img.portrait{height:81px}.staff-card{min-height:133px}.home-tool{font-size:9px;padding:5px}.page-head h2{font-size:22px}}
/* Explicit subtraction spacing keeps the game frame within shorter desktop windows. */
.home{height:100%;display:flex;flex-direction:column;padding-bottom:7px}
.home>.business-row,.home>.home-tools,.home>#home-crew,.home>.board-top,.home>#board-region,.home>.board-note{flex-shrink:0}
.home .mansion{height:auto;flex:1 1 auto;min-height:130px;max-height:217px}
.home .home-tools{margin-top:7px}
.home .crew{margin:8px 0 4px}
.home .board-top{margin:5px 1px}
.home .board-note{margin-top:5px}
.home>.feature-row{display:none}
.home .mansion-bottom{display:none}
.home .mansion-caption{top:12px}
.home .mansion-caption h2{font-size:22px;line-height:1.3;margin:4px 0}
.home .mansion-caption .btn{margin-top:8px}
.puzzle-page{height:100%;display:flex;flex-direction:column;padding-bottom:10px}
.puzzle-page>.puzzle-head,.puzzle-page>.puzzle-meta,.puzzle-page>.board-top,.puzzle-page>#board-region,.puzzle-page>.item-tray{flex-shrink:0}
.puzzle-page .puzzle-stage{height:auto;flex:1 1 auto;min-height:100px;max-height:173px}
.puzzle-page .puzzle-hero{height:70%;max-height:99px}
.puzzle-page .item-tray{margin-top:10px}
.character-hero{height:255px}
.paper .stat small{color:#67543d}
@media(min-width:481px){.game{height:calc(100dvh - 140px);min-height:min(610px,calc(100dvh - 110px))}}
@media(min-width:481px) and (max-width:720px){.workspace{padding:0}.workbar,.workfooter{display:none}.stage{height:100dvh}.game{height:100dvh;max-height:none;border-radius:0}}
@media(max-width:480px) and (max-height:760px){.home .crew-card{min-height:65px}.home .crew-card img{height:33px}.home .mansion{min-height:108px}.home .mansion-caption{top:10px}.home .mansion-caption h2{font-size:20px}.home .mansion-caption .btn{margin-top:6px}.home .mansion-bottom{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Material polish layer: depth, brass, paper grain and glow on top of the existing layout. Scoped to .game so it outranks ui.css without !important. */
.game{--brass:linear-gradient(180deg,#f1dcae 0%,#cfae72 38%,#a2803f 55%,#d8b877 100%);--surface:linear-gradient(180deg,#202a34 0%,#161d25 100%);--surface-soft:linear-gradient(180deg,#1c252ee6 0%,#131a21e6 100%);--hairline:#7a6748;--hairline-soft:#7a674866;--lift:0 1px 0 #ffffff12 inset,0 -1px 0 #00000080 inset,0 8px 18px -10px #000d;--grain:url('assets/web/ui-grain.svg')}
.game:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:var(--grain);opacity:.16;mix-blend-mode:multiply}
.game button,.game .btn{transition:filter .16s ease,transform .12s ease,box-shadow .16s ease,background-color .16s ease,color .16s ease}
.game .game-header{position:relative;background:linear-gradient(180deg,#1e2830f7 0%,#141b22f2 100%);border-bottom:1px solid #4e4232;box-shadow:0 1px 0 #ffffff0d inset,0 10px 24px -12px #000e}
.game .game-header:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,#c9a56600,#c9a566b3 30%,#c9a566b3 70%,#c9a56600);pointer-events:none}
.game .header-brand img{filter:drop-shadow(0 3px 4px #000b)}
.game .header-brand strong{color:#f0e3c6;text-shadow:0 1px 0 #000c,0 0 16px #c9a56622}
.game .header-brand small{color:#a39d8d;letter-spacing:.3px}
.game .currency{border:1px solid #806c49;border-radius:22px;padding:4px 11px 4px 5px;background:linear-gradient(180deg,#2f2d23,#191c18 60%,#151815);box-shadow:0 1px 0 #ffffff1a inset,0 -3px 6px #0009 inset,0 3px 8px -2px #000b;color:#f2d79f}
.game .currency img{filter:drop-shadow(0 1px 2px #000a)}
.game .currency b{text-shadow:0 1px 0 #000c,0 0 10px #e3bb6e33}
.game .page-head h2,.game .section-title h3,.game .board-top h3,.game .puzzle-head h3,.game .character-title h2,.game .catalog-hero h3{color:#eddcb7;text-shadow:0 1px 0 #000c,0 0 22px #c9a56626}
.game .page-head p,.game .hint,.game .board-note{color:#a7a89f}
.game .business-state:before{box-shadow:0 0 0 2px #a0b88433,0 0 8px #a0b884b3}
.game .panel,.game .catalog-hero,.game .visitor-card,.game .mail-row,.game .room-picker button,.game .home-tool,.game .feature-row button,.game .settings-links>button,.game .channel-card,.game .talent-summary,.game .puzzle-meta,.game .layout-slot,.game .asset-card{border-color:var(--hairline);border-radius:7px;background-image:var(--surface);box-shadow:var(--lift)}
.game .catalog-hero{background-image:linear-gradient(160deg,#27333c,#161d25)}
.game .home-tool{background-image:var(--surface-soft);color:#c9bea4}
.game .home-tool img{filter:drop-shadow(0 2px 3px #000a)}
.game .home-tool:hover,.game .feature-row button:hover,.game .settings-links>button:hover,.game .room-picker button:hover{filter:brightness(1.1)}
.game .visitor-card,.game .mail-row{overflow:hidden}
.game .mail-row.read{opacity:.62}
.game .mail-row .unread{box-shadow:0 0 0 2px #c66c5833,0 0 8px #c66c58b3}
.game .panel{padding:14px}
.game .crew-card,.game .five-crew .crew-card{border-color:#6f5f45;border-radius:7px;background-image:linear-gradient(180deg,#2a333c 0%,#1a222b 100%);box-shadow:0 1px 0 #ffffff14 inset,0 -14px 22px -18px #000c inset,0 6px 14px -8px #000d;overflow:hidden}
.game .crew-card img{filter:drop-shadow(0 4px 5px #000c)}
.game .crew-card .crew-name,.game .five-crew .crew-name{text-shadow:0 1px 0 #000b}
.game .crew-energy,.game .five-crew .crew-energy{border-radius:10px;padding:1px 6px;background:#0b1015d9;border:1px solid #ffffff1c;box-shadow:0 1px 2px #000a}
.game .crew-card[data-element]{border-top-width:2px}
.game .crew-card[data-element="0"]{box-shadow:0 1px 0 #ffffff14 inset,0 14px 24px -18px #a4514980 inset,0 6px 14px -8px #000d}
.game .crew-card[data-element="1"]{box-shadow:0 1px 0 #ffffff14 inset,0 14px 24px -18px #b4944880 inset,0 6px 14px -8px #000d}
.game .crew-card[data-element="2"]{box-shadow:0 1px 0 #ffffff14 inset,0 14px 24px -18px #c48b4c80 inset,0 6px 14px -8px #000d}
.game .crew-card[data-element="3"]{box-shadow:0 1px 0 #ffffff14 inset,0 14px 24px -18px #6999a380 inset,0 6px 14px -8px #000d}
.game .crew-card:hover{transform:translateY(-1px)}
.game .btn{position:relative;isolation:isolate;border-radius:5px;overflow:hidden;filter:drop-shadow(0 4px 6px #0009);text-shadow:0 1px 0 #0009}
.game .btn:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#ffffff2e 0%,#ffffff0d 42%,#00000000 50%,#00000024 100%);mix-blend-mode:soft-light}
.game .btn:hover:not(:disabled){filter:brightness(1.08) drop-shadow(0 5px 8px #000a)}
.game .btn:active:not(:disabled){filter:brightness(.96) drop-shadow(0 1px 2px #000a);transform:translateY(1px)}
.game .btn.gold{text-shadow:0 1px 0 #fff3}
.game .text-btn{text-shadow:0 1px 0 #000a}
.game .tabs{border-bottom-color:#5c5040;background:linear-gradient(180deg,#00000000,#0000002e);border-radius:6px 6px 0 0}
.game .tabs button{letter-spacing:.6px;transition:color .16s,background .16s}
.game .tabs button.active{color:#f0d6a0;background:linear-gradient(180deg,#bb9b6500,#bb9b651f);text-shadow:0 1px 0 #000a}
.game .tabs button.active:after{background:linear-gradient(90deg,#b99a6300,#e2c07e,#b99a6300);box-shadow:0 0 10px #d9b56f99}
.game .team-tabs button{filter:drop-shadow(0 3px 4px #000a)}
.game .team-tabs button.active{filter:drop-shadow(0 3px 4px #000a) drop-shadow(0 0 6px #d9b56f55)}
.game .board-wrap{border-color:#5a5344;border-radius:9px;background:linear-gradient(180deg,#0f151bd9,#141b22d9);box-shadow:0 3px 14px #000c inset,0 1px 0 #ffffff0d,0 10px 24px -14px #000e}
.game .tile{border-radius:6px;box-shadow:0 1px 0 #ffffff14 inset,0 -2px 3px #000a inset,0 1px 0 #000c}
.game .tile img{filter:drop-shadow(0 3px 3px #000c)}
.game .tile:hover img{transform:scale(1.1) translateY(-1px)}
.game .tile.selected{border-color:#ffe2a0;box-shadow:0 0 0 1px #ffe2a055,0 0 12px #debb5566 inset,0 0 10px #debb5566}
.game .tile.hinted{outline-color:#ead093}
.game .puzzle-meta .stat,.game .stats .stat{border-right-color:#ffffff10}
.game .stat strong{text-shadow:0 1px 0 #000c,0 0 14px #e2c48d33}
.game .paper .stat strong{text-shadow:0 1px 0 #fff5}
.game .meter{border-color:#4d4b40;border-radius:4px;background:#0a0f14;box-shadow:0 1px 2px #000c inset}
.game .meter i{border-radius:3px;box-shadow:0 1px 0 #ffffff33 inset,0 0 6px #be925555}
.game .mansion,.game .puzzle-stage,.game .room-card,.game .level-card{border-radius:9px;border-color:#8a7554;box-shadow:0 0 0 1px #d9b56f1c inset,0 0 44px #000a inset,0 12px 26px -14px #000e}
.game .mansion:before,.game .puzzle-stage:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(115% 95% at 30% 45%,#00000000 40%,#00000099 100%)}
.game .mansion:before{background:radial-gradient(115% 95% at 30% 45%,#00000000 40%,#00000099 100%),linear-gradient(90deg,#00000000 42%,#0b1119a8 72%)}
.game .mansion-caption h2,.game .room-card h3,.game .level-card h3{text-shadow:0 2px 0 #000c,0 0 20px #e0c59133}
.game .mansion-caption .chapter,.game .level-card .index{text-shadow:0 1px 0 #000c}
.game .room-card,.game .level-card{overflow:hidden}
.game .room-card.selected{outline-offset:-2px;box-shadow:0 0 0 1px #d9b56f66 inset,0 0 44px #000a inset,0 0 18px #d0b48244,0 12px 26px -14px #000e}
.game .level-card .btn{filter:drop-shadow(0 3px 4px #000b)}
.game .character-hero{margin-bottom:0;border-bottom:1px solid #7a674866;box-shadow:0 -40px 60px -30px #000d inset}
.game .character-hero .element-label{border-radius:14px;border-color:#a08a62;background:#0f161ecc;box-shadow:0 1px 0 #ffffff14 inset,0 3px 8px #000a}
.game .staff-card{filter:drop-shadow(0 8px 10px #000b)}
.game .staff-card:hover{transform:translateY(-2px)}
.game .staff-card .card-level,.game .card-tag{border-radius:3px;box-shadow:0 1px 2px #000b}
.game .talent-root img,.game .talent-node img{border-radius:50%;background:radial-gradient(circle at 50% 35%,#2b3841,#141b22 75%);box-shadow:0 0 0 2px #1a2128,0 0 0 3px #7d6a48,0 8px 16px -6px #000d,0 0 0 8px #d9b56f08;filter:drop-shadow(0 0 6px #cba35333)}
.game .talent-node.locked img{box-shadow:0 0 0 2px #1a2128,0 0 0 3px #4a4438;filter:none}
.game .talent-node.maxed img{outline-offset:2px;box-shadow:0 0 0 2px #1a2128,0 0 0 3px var(--gold),0 0 18px #d0b48266}
.game .talent-tier:before,.game .talent-tier:after{background:linear-gradient(180deg,#77664b00,#9a8459,#77664b00)}
.game .talent-tier:after{background:linear-gradient(90deg,#63574400,#9a8459 25%,#9a8459 75%,#63574400)}
.game .talent-node strong{text-shadow:0 1px 0 #000a}
.game .settings-row{border-bottom:1px solid transparent;border-image:linear-gradient(90deg,#69604b00,#69604b,#69604b00) 1}
.game .settings-row>button:not(.switch),.game .setting-select{border-color:var(--hairline);border-radius:5px;background:var(--surface-soft);box-shadow:0 1px 0 #ffffff10 inset,0 2px 5px -2px #000b}
.game .setting-select{overflow:hidden}
.game .setting-select button.active{background:linear-gradient(180deg,#7d6d4e,#5e5039);color:#f4e4c0;box-shadow:0 1px 0 #ffffff1c inset,0 -2px 4px #0006 inset}
.game .switch{border-radius:12px;background:linear-gradient(180deg,#0d1216,#1a2129);box-shadow:0 1px 3px #000c inset,0 1px 0 #ffffff0d}
.game .switch:after{border-radius:50%;box-shadow:0 1px 3px #000b,0 1px 0 #ffffff33 inset;background:linear-gradient(180deg,#cdbb99,#a8977a)}
.game .switch[aria-checked=true]{background:linear-gradient(180deg,#6b5a3c,#8a7448);box-shadow:0 1px 3px #0009 inset,0 0 10px #c9a56633}
.game .switch[aria-checked=true]:after{background:linear-gradient(180deg,#f6e6c2,#d6c19a)}
.game .bottom-nav{border-top:1px solid #7f6c4b;box-shadow:0 1px 0 #ffffff14 inset,0 -12px 28px -14px #000e}
.game .nav-item{letter-spacing:1px;transition:color .16s}
.game .nav-item img{transition:opacity .16s,filter .16s,transform .16s;filter:drop-shadow(0 2px 2px #000a)}
.game .nav-item.active{text-shadow:0 1px 0 #000c,0 0 12px #f4dc9d55}
.game .nav-item.active img{filter:drop-shadow(0 2px 2px #000a) drop-shadow(0 0 7px #e5c17f88);transform:translateY(-1px)}
.game .nav-item.active:before{height:2px;border-radius:0 0 2px 2px;background:linear-gradient(90deg,#d5b77100,#f0d493,#d5b77100);box-shadow:0 0 10px 1px #d5b77177}
.game .paper,.game .modal{filter:drop-shadow(0 10px 14px #000a)}
.game .modal{box-shadow:none}
.game .paper h3,.game .modal-header h2{text-shadow:0 1px 0 #fff6}
.game .item-tray button{filter:drop-shadow(0 4px 5px #000a)}
.game .item-tray button:hover{filter:brightness(1.06) drop-shadow(0 5px 7px #000b)}
.game .toast{border-radius:6px;background:#eed9b2 var(--grain);background-blend-mode:multiply;border:1px solid #b89a6e;box-shadow:0 1px 0 #fff8 inset,0 6px 22px #000b}
.game .layout-slot.active{box-shadow:0 0 0 1px #d4b47855 inset,0 0 14px #d4b47844,var(--lift)}
.game .personal-head{border-radius:9px;box-shadow:0 1px 0 #ffffff26 inset,0 -10px 24px -16px #0009 inset,0 10px 22px -12px #000d;overflow:hidden}
.game .personal-head:before{content:'';position:absolute;inset:0;pointer-events:none;background:var(--grain);opacity:.35;mix-blend-mode:multiply}
.game .personal-head>*{position:relative}
.game .personal-head h2{text-shadow:0 1px 0 #ffffff33}
.game .five-showcase button{border-radius:6px;background:linear-gradient(180deg,#1b2530a6,#0f171f8c);box-shadow:0 1px 0 #ffffff10 inset,0 4px 10px -6px #000c}
.game .profile-id .avatar,.game .personal-head .profile-id .avatar{border-radius:6px;box-shadow:0 0 0 1px #d9b56f22 inset,0 4px 10px -4px #000c}
.game .title-seal{text-shadow:0 1px 0 #fff4}
.game .review-toggle{border-radius:4px}
.game .board-message{text-shadow:0 3px 8px #000,0 0 24px #f4dc9d66}
@media(prefers-reduced-motion:reduce){.game .crew-card:hover,.game .staff-card:hover,.game .nav-item.active img{transform:none}}

.skill-flash{height:0;overflow:visible;position:relative;z-index:4;pointer-events:none;text-align:center;font:18px var(--title);color:#f5d88f;text-shadow:0 3px 10px #000;opacity:0;transform:translateY(8px);transition:.18s}
.skill-flash.active{opacity:1;transform:translateY(0)}

.scene-person.mood-scared{filter:drop-shadow(0 0 5px #c56b4f) grayscale(.15);animation-duration:2s}.scene-person.mood-happy{filter:drop-shadow(0 0 5px #c9b35f);animation-duration:12s}
.mansion.mood-scared{filter:saturate(.8);}
.mansion.mood-scared .scene-person{animation-duration:3s;}
.mansion.mood-happy .scene-person{animation-duration:12s;}

/* core loop visual emphasis */
.game .home .mansion{
  border-color:#8b7350;
  box-shadow:0 1px 0 #ffffff18 inset,0 12px 28px -18px #000;
}
.game .home .crew-card{
  background:linear-gradient(180deg,#28313b,#171d25);
  transition:transform .16s,border-color .16s,box-shadow .16s;
}
.game .home .crew-card:hover{
  transform:translateY(-2px);
  border-color:#b99a5f;
  box-shadow:0 6px 14px -8px #000,0 0 12px #d5b77122;
}
.game .home #board-region{
  border-radius:8px;
  box-shadow:0 8px 20px -12px #000,0 1px 0 #ffffff10 inset;
}
.game .home .board-note{
  padding-top:3px;
  opacity:.85;
}
.game .home .feature-row button{
  background:linear-gradient(180deg,#2b302b,#171d1b);
  border-color:#746143;
}
.game .home .business-row{
  background:linear-gradient(90deg,#111820aa,#11182000);
  border-radius:6px;
}

/* UI polish pass: stronger game hierarchy */
.game .home .board-top h3{font-size:18px;color:#f1d79a;letter-spacing:1.5px}
.game .home .board-top{padding:4px 3px;border-bottom:1px solid #66543b44}
.game .home #board-region{position:relative}
.game .home .board-wrap{padding:7px;border-radius:11px}
.game .home .tile{border-radius:6px;background-color:#202a32}
.game .home .tile img{filter:drop-shadow(0 3px 4px #000d);transition:transform .16s,filter .16s}
.game .home .tile:hover img,.game .home .tile.selected img{transform:scale(1.08);filter:drop-shadow(0 0 5px #e8cc86)}
.game .home .crew-card{min-height:82px}
.game .home .crew-energy{background:#151a20dd;border:1px solid #796546;color:#f1d79a}
.game .mansion-caption{background:linear-gradient(180deg,#11172233,#11172299);padding:8px;border-radius:8px}
.game .home-tools .home-tool{border-radius:6px;transition:.16s;background:linear-gradient(180deg,#1c252b,#11171d)}
.game .home-tools .home-tool:hover{transform:translateY(-1px);border-color:#9b7d4d}

.home-loop{display:flex;align-items:center;justify-content:center;gap:5px;margin:4px 0 8px;padding:6px 8px;border:1px solid #554b3b;background:#111820cc;color:#b7a37b;font-size:9px;letter-spacing:.5px;border-radius:5px}
.home-loop span{color:#e0c591;margin-right:3px}
.home-loop b{font-weight:400;color:#ddd0b0;padding:2px 5px;background:#262a27;border:1px solid #4e4738;border-radius:3px}
.home-loop i{font-style:normal;color:#8b7650}

.business-loop{margin:2px 0 8px;padding:6px 9px;border:1px solid #5b503d;background:#111820cc;border-radius:6px;display:flex;align-items:center;justify-content:space-between;color:#aaa28f;font-size:10px;letter-spacing:.5px}.business-loop b{color:#dfc78f;font-weight:400}.business-loop span{color:#777d7c}

.game .crew-energy.ready{color:#f5dc99;background:#6d5125dd;box-shadow:0 0 8px #d9b56f88;border:1px solid #d9b56f;animation:ready-pulse 1.4s ease-in-out infinite}.game .crew-energy{transition:.2s}@keyframes ready-pulse{50%{filter:brightness(1.35);transform:scale(1.05)}}

.skill-burst{height:0;overflow:visible;position:relative;z-index:5;text-align:center;font:22px var(--title);color:#ffe6a0;text-shadow:0 3px 12px #000;opacity:0;transform:scale(.7);transition:.18s}.skill-burst.active{opacity:1;transform:scale(1)}.crew-card.skill-cast{animation:skill-cast-pop .7s ease}.crew-card.skill-cast img{filter:drop-shadow(0 0 8px #f2d48a)}@keyframes skill-cast-pop{40%{transform:translateY(-5px) scale(1.06)}}

#combo-pop{height:0;position:relative;z-index:5;pointer-events:none;text-align:center;font:28px var(--title);color:#ffe29b;text-shadow:0 3px 10px #000;opacity:0;transform:translateY(12px) scale(.8);transition:.2s}
#combo-pop.active{opacity:1;transform:translateY(0) scale(1.08)}
#combo-pop.mega{color:#ffe9a3;text-shadow:0 0 12px #d59b42,0 3px 10px #000;transform:translateY(-4px) scale(1.22)}
.tile.clearing img{animation:clear-tile .23s forwards,tile-burst .23s ease}
@keyframes tile-burst{50%{filter:brightness(1.8) drop-shadow(0 0 8px #e5c36b)}}

#reward-pop{height:0;position:relative;z-index:5;pointer-events:none;text-align:center;font:16px var(--title);color:#d8edc0;text-shadow:0 3px 8px #000;opacity:0;transform:translateY(10px);transition:.2s}
#reward-pop.active{opacity:1;transform:translateY(-4px)}
.currency.gain{animation:coin-wallet .55s ease}
.currency.gain b{color:#f4d98d;text-shadow:0 0 8px #d7a84b}
@keyframes coin-wallet{35%{transform:translateY(-4px) scale(1.08)}70%{transform:scale(.98)}}
.coin-fly{position:absolute;z-index:20;font-size:22px;pointer-events:none;animation:coin-fly .7s cubic-bezier(.2,.8,.2,1) forwards;filter:drop-shadow(0 2px 4px #000)}
@keyframes coin-fly{0%{opacity:0;transform:translate(0,8px) scale(.7)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.35)}}

.visitor-card{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;padding:7px 10px;border:1px solid #554b3b;background:#101720cc;border-radius:6px;color:#b7a37b;font-size:10px}.visitor-card b{color:#e0c591;font-weight:400}.visitor-card i{font-style:normal;color:#8f8775}
