/* 沿用暖光玩具小镇；只调整交互表现，不改变商品、存档或社交规则。 */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.brand{font-size:17px;height:43px;padding-right:15px;letter-spacing:.5px}
.game-frame[data-scene=party] .scene-header{display:none}
.game-toolbar{gap:10px;bottom:26px;right:25px}
.game-toolbar button{width:64px;height:64px;padding:16px;gap:0;border-width:1px;box-shadow:0 3px 9px #4f624726}
.game-toolbar button.camera-launch{width:78px;height:78px;padding:21px}
.game-toolbar button>.ui-icon{width:29px;height:29px;opacity:.8}
.game-toolbar button.camera-launch>.ui-icon{width:34px;height:34px}
button[data-label]::after{content:attr(data-label);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:12px;background:#fffcf2;color:#6b795f;font-size:13px;white-space:nowrap;opacity:0;pointer-events:none;box-shadow:0 3px 12px #4f624722}
@media(hover:hover){button[data-label]:hover::after{opacity:1}}
button[data-label]:focus-visible::after{opacity:1}
.back-town{width:62px;height:62px;top:72px;padding:18px;justify-content:center}
.back-town>.ui-icon{width:25px;height:25px}
.shop-cart-button{position:relative;left:auto;right:auto;transform:none;width:58px;height:43px;padding:8px 11px;gap:3px;min-height:43px;flex-shrink:0}
.shop-cart-button span:not(:empty){position:absolute;right:-5px;top:-5px;min-width:20px;height:20px;border-radius:12px;background:#c38696;color:#fff;font-size:12px;display:grid;place-items:center;border:2px solid #fff8e9}
.move-pad{background:#fff9df4d;border-color:#fffce28c}
.joystick-cap{background:#fffae0b8}
.game-frame[data-scene=town] .scene-object-button>.ui-icon{display:block;width:23px;height:23px;opacity:.78}
.game-frame[data-scene=town] .scene-object-button.has-label{grid-template-columns:23px auto;min-width:84px}
.scene-interactions .scene-object-button:not(.has-label)::before{inset:11px;background:#fff9e6c9}
.scene-object-button.in-range::before{box-shadow:0 0 0 3px #fff9e888,0 4px 12px #4a735926}
.scene-feedback{position:absolute;inset:0;z-index:11;pointer-events:none;background:#fffaf0;opacity:0}
.game-frame[data-feedback=arrival] #world{animation:scene-arrival .3s ease-out}
.game-frame[data-feedback=outfit] .scene-feedback{animation:soft-flash .32s ease-out}
.game-frame[data-feedback=shutter] .scene-feedback{animation:camera-flash .28s ease-out}
button:active:not(:disabled){filter:brightness(.93)}
.game-toolbar button:active,.hud-icon:active,.scene-object-button:active{scale:.94}
dialog{background:#263e3159}
.modal-header{min-height:74px;padding:5px 18px;background:#fff8eaf5}
.modal-header h2{font-size:23px;margin:0;line-height:1.25}
.modal-header .close-button{width:62px;height:62px;min-width:62px;background:transparent}
.modal-header .close-button>.ui-icon{width:24px;height:24px;opacity:.65}
.modal-content{padding:15px 20px 18px}
.modal-content p{line-height:1.6}
#modal-body{border-radius:26px;box-shadow:0 8px 30px #263d2d33}
dialog[open] #modal-body{animation:window-arrival .18s ease-out}
dialog:is([data-view=coffee-menu],[data-view=party-entry]) #modal-body{left:100px;top:98px;width:760px;height:344px}
dialog[data-view=party-entry] #modal-body{top:84px;height:372px}
dialog:is([data-view=coffee-confirm],[data-view=shop-confirm],[data-view=shop-success],[data-view=shop-no-balance],[data-view=leave-store],[data-view=leave-party],[data-view=wardrobe-demo]) #modal-body{left:160px;top:123px;width:640px;height:294px}
.drink-menu{gap:14px}
.drink-card{min-height:205px;padding:9px 12px 15px;gap:5px;background:#f5ebd7;border:1px solid #e4d4b9;border-radius:21px;box-shadow:0 4px 0 #b7966712}
.drink-card>img{width:160px;height:128px;object-fit:contain}
.drink-card strong{font-size:20px}
.drink-card small{font-size:14px;color:#887862}
.drink-card:focus-visible,.drink-card:hover{background:#f9efd9}
.coffee-receipt{display:flex;gap:22px;align-items:center;justify-content:center;margin:0 0 17px}
.coffee-receipt>img{width:145px;height:116px;object-fit:contain}
.coffee-receipt strong{font-size:31px;font-weight:650;color:#82674e;display:block}
.coffee-receipt span{font-size:14px;color:#908071;display:block;margin-top:8px}
dialog[data-view=coffee-confirm] .modal-content{padding-top:5px}
dialog[data-view=coffee-confirm] .primary-button{min-height:55px}
.balance-line{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:16px;color:#718065;margin:15px 0}
.balance-line strong{font-size:27px;color:#587763}
dialog[data-view=photo] #modal-body{left:64px;top:63px;width:832px;height:414px}
dialog[data-view=photo] .modal-content{grid-template-columns:1.65fr 1fr;gap:18px;align-content:center}
.photo-saved{display:flex;align-items:center;gap:6px;font-size:14px;color:#778363;align-self:end}
.photo-saved .ui-icon{width:20px;height:20px}
dialog[data-view=photo] .preview-photo{border:7px solid #fffdf5;box-shadow:0 4px 13px #8269551a}
dialog[data-view=photo] .button-row{gap:7px;align-self:start}
dialog[data-view=photo-booth] .selfie-note{display:none}
.selfie-options>.tag{display:none}
.selfie-viewfinder{border-width:5px}
dialog[data-feedback=shutter] .selfie-viewfinder::after{content:"";position:absolute;inset:0;background:#fffdf6;pointer-events:none;animation:camera-flash .28s ease-out}
dialog[data-view=welcome]{background:#263e3126}
dialog[data-view=welcome] #modal-body{left:24px;top:20px;width:912px;height:500px;background:linear-gradient(90deg,#354d3a30,#fffae91a),url('/assets/toy-town-v2/town.png') center/cover;border:1px solid #fff8e5;box-shadow:0 8px 30px #23372140}
dialog[data-view=welcome] .modal-header{display:none}
dialog[data-view=welcome] .modal-content{overflow:hidden;padding:0}
.welcome-layout{height:100%;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:28px;padding:36px}
.welcome-brand{align-self:start;padding-top:35px;text-align:center;color:#fff9e5;text-shadow:0 3px 15px #28433480}
.welcome-brand>img{width:80px;height:80px;object-fit:contain;filter:drop-shadow(0 3px 8px #2d3d3230)}
.welcome-brand h1{font-size:46px;margin:10px 0;font-weight:700;letter-spacing:5px}
.welcome-brand p{font-size:17px;color:#fff9e5;margin:0}
.welcome-form{background:#fff9e9ed;border:1px solid #fffef1;border-radius:28px;padding:27px 26px;box-shadow:0 8px 22px #5b664728;text-align:center}
.welcome-form h2{font-size:25px;margin:0 0 18px;font-weight:600}
.welcome-form label{font-size:15px;margin:0 0 9px}
.welcome-form input{text-align:center;min-height:62px;font-size:24px;border-radius:18px;background:#fffdf4}
.welcome-form .primary-button{min-height:62px;width:100%;margin-top:16px;font-size:18px;border-radius:18px}
.welcome-form>small{font-size:12px;color:#8a8b76;display:block;margin-top:15px}
.panel-card>.eyebrow,.side-panel>.panel-note{display:none}
.theme-banner{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;min-height:105px;padding:18px 24px;border-radius:20px;background:linear-gradient(90deg,#fff4d9f5 0%,#fff4d9e8 50%,#fff4d94d 100%),url('/assets/toy-town-v2/town.png') 62% 43%/cover}
.theme-banner h3{font-size:29px;margin:0 0 6px;color:#886945}
.theme-banner p{font-size:14px;margin:0;color:#88795e}
.theme-overview{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;align-items:stretch}
.theme-create{padding:15px;background:#edf1e1;border-radius:18px;display:grid;gap:11px;align-content:center}
.theme-flow{display:flex;gap:18px;justify-content:center;align-items:center;font-size:14px;color:#84906b}
.theme-flow>span{display:flex;align-items:center;gap:5px}
.theme-flow .ui-icon{width:19px;height:19px}
.theme-create .button-row{gap:8px}
.theme-create .button-row>button{flex:1;min-height:53px}
.theme-reward{display:flex;gap:12px;align-items:center;padding:10px 13px;background:#f0e8f2;border:1px solid #e4d6e9;border-radius:18px}
.theme-reward>img{width:58px;height:93px;object-fit:contain}
.theme-reward>div{flex:1;min-width:0}
.theme-reward strong{font-size:17px;color:#80658b}
.theme-reward small{display:block;font-size:12px;color:#9981a3;margin:6px 0 8px}
.theme-reward button{min-height:38px;font-size:13px;padding:6px 9px;white-space:nowrap}
dialog[data-view=activity] .activity-tabs{margin:12px 0;gap:8px}
dialog[data-view=activity] .activity-tabs button{font-size:15px;padding:7px 14px}
.game-details{font-size:14px;color:#879174;margin-top:14px;border-top:1px solid #e5decb;padding-top:10px}
.game-details summary{cursor:pointer;min-height:32px;display:flex;align-items:center;gap:7px;font-size:13px;color:#879174}
.game-details summary .ui-icon{width:16px;height:16px}
.game-details p{font-size:14px}
.game-details .demo-controls{margin-top:8px;font-size:13px}
.party-entry-note{font-size:13px!important;margin-top:12px!important}
.party-entry-card{padding:18px!important}
.party-entry-card h3{font-size:20px;margin:0 0 10px}
.party-entry-card .primary-button{min-height:55px}
.party-entry-card input{min-height:55px;letter-spacing:5px;text-align:center}
.camera-controls{width:auto;padding:8px 10px;border-radius:35px}
.camera-controls>div{gap:8px}
#shutter-button{width:62px;height:62px;min-height:62px;border-radius:50%;background:#c38694;border-color:#ad7180;padding:17px;margin:0 8px}
#shutter-button>.ui-icon{width:27px;height:27px}
#camera-close{width:62px;height:62px;border-radius:50%;padding:19px}
.toast{font-size:15px;padding:10px 18px;bottom:100px;max-width:580px}
@keyframes scene-arrival{from{opacity:.55}to{opacity:1}}
@keyframes window-arrival{from{translate:0 7px;opacity:.5}to{translate:0 0;opacity:1}}
@keyframes soft-flash{0%,100%{opacity:0}35%{opacity:.14}}
@keyframes camera-flash{0%,100%{opacity:0}25%{opacity:.32}}
@media(prefers-reduced-motion:reduce){.scene-feedback,dialog[data-feedback=shutter] .selfie-viewfinder::after{display:none}.game-frame[data-feedback=arrival] #world,dialog[open] #modal-body{animation:none}}
.game-hud .profile-button,.game-hud .hud-icon{width:62px;height:62px;padding:18px}
.shop-cart-button{min-width:62px;min-height:62px}
.album-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;color:#7a8069}
.photo-remove{width:100%;margin-top:6px;font-size:13px;min-height:36px}
.remove-preview{display:block;max-width:100%;max-height:225px;margin:0 auto 12px;border-radius:14px}
.game-frame[data-saving=true] .camera-controls{pointer-events:none;opacity:.6}
.welcome-form .saved-game-entry{min-height:44px;margin-top:5px}
.saved-game-list{display:grid;gap:10px;margin:16px 0}
