/* Cabinet UI and calibrated actor layout. This file loads after historical styles. */
:root{--cab-paper:#f2e6c9;--cab-ink:#2b251b;--cab-gold:#e5c17e}
.equipped-deck{display:flex;align-items:center;gap:18px;color:#e1d1b2;font-size:13px}.equipped-deck b{color:#f7dfad}
.workshop-scene{height:100%;padding:30px clamp(18px,4vw,64px);display:flex;flex-direction:column;gap:22px;background:linear-gradient(100deg,#111714f5,#20221cde);overflow:hidden;color:var(--cab-paper)}
.workshop-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.workshop-head h1{font:700 clamp(30px,3.5vw,48px)/1.1 Georgia,serif;margin:8px 0}.workshop-head p{color:#c0b7a1;font-size:12px}.workshop-head .wood-btn{font-size:14px;flex-shrink:0}
.workshop-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;min-height:0;flex:1}.workshop-library{min-height:0;display:flex;flex-direction:column;gap:18px}.workshop-tools{display:flex;gap:10px}.workshop-tools input{flex:1;min-width:90px}.workshop-scene input,.workshop-scene select{background:#0e1411;color:#e7dac0;border:1px solid #bda36944;border-radius:5px;padding:11px;font:12px "Trebuchet MS",sans-serif}.workshop-tools select{max-width:165px}.workshop-cards{min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(153px,1fr));gap:21px 14px;padding:10px 9px 30px;align-content:start;scrollbar-color:#726448 #171d17}.library-card{display:flex;flex-direction:column;align-items:center;--cardW:155px;--cardH:220px;gap:7px}.library-card .card{margin:0;transform:none!important;filter:drop-shadow(0 8px 6px #0006)}.library-card .card .description{font:11px/1.24 "Trebuchet MS",sans-serif}.library-card .card .card-name{font-size:11px}.library-count{width:100%;max-width:155px;display:flex;flex-direction:column;gap:6px}.library-count small{color:#c7b795;font-size:10px;letter-spacing:.07em;text-align:center}.library-count button{width:100%;padding:9px;background:#dbc08b;color:#30271a;border-radius:4px;font-size:12px;font-weight:700;min-height:35px}.uncollected .card{filter:grayscale(.9) brightness(.55)}
.workshop-deck{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:13px;padding:19px;background:#111811d9;border-left:1px solid #c6a46630;scrollbar-width:thin}.deck-caption{display:flex;flex-direction:column;gap:8px}.deck-caption input{font:20px Georgia,serif}.deck-metrics{display:flex;justify-content:space-between}.deck-metrics strong{font:26px Georgia,serif}.deck-metrics small{display:block;font:10px "Trebuchet MS",sans-serif;color:#bdae94;margin-top:5px}.mana-curve{display:flex;align-items:flex-end;gap:9px;height:90px}.mana-curve>div{flex:1;text-align:center;position:relative;min-width:0}.mana-curve i{display:block;margin:0 auto 5px;width:60%;background:linear-gradient(#ddc892,#867047);min-height:5px;max-height:55px}.mana-curve b{font-size:11px;position:absolute;top:-17px;left:0;right:0}.mana-curve small{font-size:9px;color:#bca888}.deck-list{flex:none}.deck-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #bea56b20;padding:8px 0}.deck-row>div{flex:1;min-width:0}.deck-row b{display:block;font-size:12px}.deck-row small{display:block;font-size:9px;color:#afaa94;margin-top:2px}.deck-cost{display:grid;place-items:center;background:#b79652;color:#211b11;border-radius:50%;width:23px;height:23px;font-weight:bold;font-size:12px}.deck-row>span{font-size:11px}.deck-row button{width:30px;height:30px;background:#6b4535;color:#fff1d2;border-radius:4px}.deck-rules{font-size:11px;line-height:1.5;color:#cfc3ab}.deck-rules summary{cursor:pointer;color:#e7d69e}.deck-rules p{margin-top:7px}.warning{color:#efac92!important}.deck-actions{display:flex;gap:8px;flex-wrap:wrap}.deck-actions button,.saved-decks button,.deck-import{background:none;color:#cdb788;font-size:11px;text-align:left;padding:5px 0;cursor:pointer}.saved-decks h3{font:18px Georgia,serif;margin-bottom:8px}.saved-decks h3 small{font:11px sans-serif}.saved-decks>div{display:flex;justify-content:space-between;gap:9px}.deck-import{display:block}.deck-import input{display:block;width:100%;padding:5px!important;font-size:10px!important}.workshop-deck>.wood-btn{flex-shrink:0;font-size:16px}
/* A rig canvas is always square: the 512x512 frame cannot be stretched by actor boxes. */

.actor-caption{top:100%;width:min(175px,100%)}
.rig-guides{display:none;position:absolute;inset:0;pointer-events:none}.rig-guides svg{width:100%;height:100%;stroke:none;overflow:visible}.rig-debug .rig-guides{display:block}.rig-guides path{stroke:#e3c458;stroke-width:1;fill:none}.rig-guides rect{stroke:#f09497;stroke-width:2;stroke-dasharray:5;fill:none}.rig-guides circle{fill:#e3c458;stroke:#101714;stroke-width:2}.rig-guides text{font:15px monospace;fill:#ffeecb;stroke:none}.rig-debug #mimic:after{content:"PLAYER · visual anchor"}

.menu-links a{text-decoration:none}.menu-buttons{width:300px}.menu-copy{top:9%;padding:20px 22px}.menu-tag{margin:18px 0 22px}.menu-buttons>.wood-btn{padding:12px 20px;min-height:48px;font-size:20px}.menu-stat{margin-top:16px}.menu-links{gap:14px;flex-wrap:wrap}.menu-links .text-btn{font-size:10px}
@media(max-width:1000px){.workshop-grid{grid-template-columns:minmax(0,1fr) 285px;gap:14px}.workshop-scene{padding:22px}.workshop-tools{flex-wrap:wrap}.workshop-tools input{min-width:100%;}.workshop-cards{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.library-card{--cardW:144px;--cardH:205px}.library-count{max-width:144px}}
@media(max-width:760px) and (orientation:portrait){
 .workshop-scene{padding:16px 12px;overflow-y:auto}.workshop-head{align-items:flex-start}.workshop-head h1{font-size:29px}.workshop-head p{line-height:1.4}.workshop-head>.wood-btn{font-size:11px;min-height:40px;padding:8px}.workshop-head .eyebrow{font-size:8px;letter-spacing:2px}.workshop-grid{display:flex;flex-direction:column;flex:none}.workshop-library{order:2;max-height:65vh}.workshop-deck{order:1;max-height:58vh;padding:12px}.workshop-deck .deck-list{max-height:170px;overflow:auto}.workshop-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.library-card{--cardW:148px;--cardH:210px}.workshop-tools input{min-width:0;flex:1}.workshop-tools select{max-width:47%}.mana-curve{height:75px}.deck-caption{display:grid;grid-template-columns:1fr 1fr;gap:8px}.deck-caption .eyebrow{grid-column:1/-1}.deck-caption input{width:100%;font-size:15px}.deck-caption select{width:100%}.deck-metrics strong{font-size:23px}
 
 
 .menu-copy{left:5%;width:90%;top:8%;background:none;border:none;backdrop-filter:none;box-shadow:none;padding:12px}.menu-copy .game-title{font-size:61px}.menu-copy .menu-tag{font-size:19px}.menu-buttons{width:220px}.menu-buttons>.wood-btn{font-size:17px;min-width:0}.menu-hero{width:62%;right:-6%;bottom:6%}.menu-stat{font-size:10px;max-width:215px}.menu-version{right:14px;font-size:8px}.menu-quote{display:none}.menu-links{gap:12px}.equipped-deck{font-size:11px;gap:8px;flex-wrap:wrap;justify-content:center}.profile-main{bottom:14px;overflow:auto}.seed-row{flex-wrap:wrap;justify-content:center}
 
}
@media(max-width:760px) and (max-height:720px) and (orientation:portrait){.menu-copy .game-title{font-size:48px}.menu-copy .menu-crown{margin-bottom:11px}.menu-copy .menu-tag{margin:10px 0 14px}.menu-buttons{gap:8px}.menu-stat{margin-top:8px}.menu-buttons>.wood-btn{min-height:42px;font-size:16px}}
/* Rarity has its own baseline; it must not overlap card rules. */
.card .description{top:69%;height:22%;font-size:10px;line-height:1.12}
.card .rarity-text{bottom:1.3%;font-size:6.5px;font-weight:700;letter-spacing:.12em;text-shadow:0 1px #e6d7b8}
.card .card-key{bottom:-7%;background:#20231ad9;padding:2px 5px;color:#d9c391;border-radius:4px}
.library-card .card .description{font-size:10px;line-height:1.14}.library-card .card .family{top:61.8%;font-size:6px}
@media(max-width:760px) and (orientation:portrait){
 
 
 
 
}
