/* PC-TX-T1-01 r02. Presentation only; scene anchors and animations remain in their original styles. */
.home-resident{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:4px 0 8px;padding:4px 12px;border:1px solid #c9b9a1;border-radius:7px 11px 8px 10px;background:#faf4e8;color:#654d3d;font:inherit;text-align:left}.home-resident span{flex:1;overflow-wrap:anywhere}.home-resident img{width:32px;height:32px;object-fit:contain}.home-resident img[hidden]{display:none}.home-resident b{font-size:22px;font-weight:400}
#home-view .opening-card,.catbox-header,.cat-card,.companion-bar,#catbox-detail-dialog,.paper-action-dialog{background:#fffaf0;box-shadow:none;border-color:#d4c3a8;border-radius:9px 13px 10px 12px}
#home-view button,.catbox-header button,.catbox-tabs button,.cat-card-open,#catbox-detail-dialog button,.paper-action-dialog button{box-shadow:none;background-image:none}
.catbox-header h1{font-size:22px}.catbox-header p{font-size:12px}.companion-bar{margin:6px 0;padding:7px 10px;font-size:14px}.companion-bar button{flex:none}.score-details{margin:8px 0;border-bottom:1px dashed #cbb99d}.score-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 8px;color:#755c46}.score-details>summary::before{content:'＋';margin-right:8px}.score-details[open]>summary::before{content:'−'}.catbox-score-hero{box-shadow:none;background:#f8efdf}.cat-card-name{display:block;min-height:20px;margin-top:4px;font-size:14px;color:#5f483b;overflow-wrap:anywhere}.cat-card-resident:not([hidden]){display:block;color:#836349;font-size:12px}.cat-card-meta{opacity:.85}.cat-card-visual{background:#f8f1e5;box-shadow:none}.cat-card-open{background:#fffaf0}
#catbox-detail-dialog h2{font-size:21px}.cat-detail-subtitle{margin:3px 0;font-size:13px;color:#887461;overflow-wrap:anywhere}#catbox-detail-dialog .catbox-detail-visual{background:#f9f2e7;border-radius:7px}#catbox-detail-dialog .detail-list>div{border:0;border-bottom:1px dashed #d8cbb7;border-radius:0;background:none}#catbox-detail-dialog .dialog-actions{border-top:1px solid #d7c7b0}#catbox-detail-dialog .companion-resident{width:auto;margin:0;background:#ead9ba}#catbox-detail-done[hidden],#companion-detail-edit[hidden]{display:none}#companion-detail-edit,#companion-edit{padding:4px 8px 4px 32px;background:#faf4e8 url('../assets/ui/companion_ui_icon_edit_base.png') no-repeat 6px center;background-size:24px;border:1px solid #d4c3a8;border-radius:7px;color:#654d3d;font:inherit}#catbox-detail-dialog #companion-resident{padding-left:30px;background:#ead9ba url('../assets/ui/companion_ui_icon_change_cat_base.png') no-repeat 4px center;background-size:26px}
.paper-action-dialog{position:fixed;top:var(--action-top,0px);bottom:auto;margin:12px auto;max-height:calc(var(--action-height,100dvh) - 24px);padding:18px;overflow:auto}.paper-action-dialog h2{margin:0 0 8px;font-size:21px}.paper-action-dialog p{font-size:14px;line-height:1.6}.paper-action-dialog input{font-size:16px;min-height:44px;background:#fffdf7}.paper-action-dialog button{min-height:44px}.paper-action-dialog [hidden]{display:none}#companion-name-error{color:#a04035}#companion-name-error:empty{display:none}
@media(max-width:600px){
html[data-ui-target=competition] .game-shell{padding:6px 10px max(6px,env(safe-area-inset-bottom));}
html[data-ui-target=competition] #home-view .game-header{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;min-height:44px;padding:0}
html[data-ui-target=competition] #home-view .brand-logo{width:94px;max-width:94px;flex:none}
html[data-ui-target=competition] #home-view .header-actions{gap:4px;flex:1;justify-content:flex-end}
html[data-ui-target=competition] #home-view .header-actions button{min-height:44px;padding:4px 7px;font-size:13px}
html[data-ui-target=competition] #home-view .home-resident{margin:2px 0 5px;font-size:14px}
html[data-ui-target=competition] #home-view .opening-card{padding:7px 8px;margin:0}
html[data-ui-target=competition] #home-view .intro-copy{margin:0}
html[data-ui-target=competition] #home-view .intro-copy h1{font-size:17px;margin:0;line-height:24px}
html[data-ui-target=competition] #home-view .intro-copy .eyebrow,html[data-ui-target=competition] #home-view .intro-copy>p,html[data-ui-target=competition] #home-view .game-footer{display:none}
html[data-ui-target=competition] #home-view .box-stage{height:258px;margin:0 auto}
html[data-ui-target=competition] #home-view .opening-status{min-height:19px;margin:2px 0;font-size:13px}
html[data-ui-target=competition] #home-view #open-box{min-height:44px;padding:7px 12px;font-size:16px}
html[data-ui-target=competition] #home-view #result-card{min-height:112px;margin:5px 0 0;padding:5px 6px;background:#faf4e8;border:0;border-top:1px dashed #cbb99d;border-radius:0;box-shadow:none}
html[data-ui-target=competition] #home-view #result-card[hidden]{display:block;visibility:hidden}
html[data-ui-target=competition] #home-view .result-heading{min-height:24px;gap:5px}
html[data-ui-target=competition] #home-view .result-heading h2{display:none}
html[data-ui-target=competition] #home-view #cat-title{margin:0;font-size:14px;line-height:20px}
html[data-ui-target=competition] #home-view .result-facts{display:none}
html[data-ui-target=competition] #home-view .mobile-summary{display:flex;min-height:17px;margin:2px 0;font-size:12px}
html[data-ui-target=competition] #home-view #save-feedback{min-height:22px;margin:0 0 3px;padding:0;font-size:12px}
html[data-ui-target=competition] #home-view .result-actions{gap:5px}
html[data-ui-target=competition] #home-view .result-actions button{min-height:44px;padding:6px;font-size:14px}
}
@media(max-height:600px){.paper-action-dialog{margin-top:6px;max-height:calc(var(--action-height,100dvh) - 12px)}#catbox-detail-dialog{max-height:calc(100dvh - 12px)}}
#home-view #open-box{background-color:#aa7047;color:#fffaf0;border:1px solid #845234;border-radius:9px 12px 8px 11px}#home-view #open-box:disabled{background-color:#c5a487;color:#fffaf0}
@media(max-width:600px){html[data-ui-target=competition] #home-view #result-card[hidden]{display:block!important;visibility:hidden}}
@media(min-width:601px){
html[data-ui-target=competition] .game-shell{padding:8px 16px;max-width:800px}
html[data-ui-target=competition] #home-view .game-header{min-height:50px;margin:0;padding:0}
html[data-ui-target=competition] #home-view .brand-logo{width:170px}
html[data-ui-target=competition] #home-view .opening-card{padding:8px 16px}
html[data-ui-target=competition] #home-view .intro-copy{margin:0}
html[data-ui-target=competition] #home-view .intro-copy h1{font-size:20px;margin:0;line-height:26px}
html[data-ui-target=competition] #home-view .intro-copy .eyebrow,html[data-ui-target=competition] #home-view .intro-copy>p,html[data-ui-target=competition] #home-view .game-footer{display:none}
html[data-ui-target=competition] #home-view .box-stage{height:370px;margin:0 auto}
html[data-ui-target=competition] #home-view .opening-status{margin:2px 0;min-height:20px}
html[data-ui-target=competition] #home-view #open-box{min-height:44px;padding:8px 20px;font-size:17px}
html[data-ui-target=competition] #home-view #result-card{min-height:116px;margin:5px 0 0;padding:6px;background:#faf4e8;border:0;border-top:1px dashed #cbb99d;box-shadow:none;border-radius:0}
html[data-ui-target=competition] #home-view #result-card[hidden]{display:block!important;visibility:hidden}
html[data-ui-target=competition] #home-view .result-heading{min-height:24px}
html[data-ui-target=competition] #home-view .result-heading h2,html[data-ui-target=competition] #home-view .result-facts{display:none}
html[data-ui-target=competition] #home-view #cat-title{font-size:15px;margin:0}
html[data-ui-target=competition] #home-view .mobile-summary{display:flex;min-height:18px;margin:2px 0}
html[data-ui-target=competition] #home-view #save-feedback{min-height:22px;margin:0 0 3px;padding:0}
html[data-ui-target=competition] #home-view .result-actions button{min-height:44px;padding:6px 12px;font-size:15px}
}
#catbox-detail-dialog #companion-detail-edit{background-image:url('../assets/ui/companion_ui_icon_edit_base.png');background-size:24px;background-repeat:no-repeat;background-position:6px center}
