/* Child miniatures/cage: decorative only and never intercepts input. */
.hyt-scene-layer{position:fixed;inset:0;pointer-events:none;z-index:8500;overflow:hidden;contain:strict}
.hyt-scene-card{position:absolute;top:clamp(105px,18vh,175px);left:50%;transform:translateX(-50%);width:168px;padding:9px 12px 12px;box-sizing:border-box;border:2px solid #fde68a;border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 5px 0 #fcd34d,0 18px 38px #0f172a25;text-align:center}
.hyt-scene-card svg{display:block;width:140px;height:105px;overflow:visible}
.hyt-scene-card span{font:800 16px/1.25 system-ui,sans-serif;color:#92400e}
.scene-book{border-color:#bfdbfe;box-shadow:0 5px 0 #93c5fd,0 18px 38px #0f172a25}.scene-book span{color:#1e3a8a}
.scene-shield{border-color:#fecaca;box-shadow:0 5px 0 #fca5a5,0 18px 38px #0f172a25}.scene-shield span{color:#991b1b}
.hyt-scene-card svg g,.hyt-scene-card svg circle{transform-box:fill-box;transform-origin:center}
.hyt-scene-card .scene-awning{transform-origin:center top}.hyt-scene-card .scene-book-page{transform-origin:left center}.hyt-scene-card .scene-chest-lid{transform-origin:center bottom}
.state-sanction{border-color:#fecaca;box-shadow:0 5px 0 #fca5a5,0 14px 32px #0f172a25;color:#991b1b}
.child-sanction .hyt-action-art{flex-basis:92px;height:90px}.child-sanction .hyt-action-stamp{font-size:27px}
.hyt-sanction-shield{width:48px;height:58px}
.hyt-cage{position:relative;width:80px;height:82px;border:3px solid #64748b;border-radius:36px 36px 6px 6px;background:linear-gradient(#f1f5f9,#e2e8f0);box-shadow:0 4px 0 #475569;overflow:hidden;box-sizing:border-box}
.hyt-cage:before{content:'';position:absolute;top:1px;left:0;right:0;height:24px;border-bottom:3px solid #64748b;border-radius:40px 40px 0 0;background:repeating-linear-gradient(90deg,transparent 0,transparent 12px,#94a3b8 12px,#cbd5e1 15px)}
.hyt-cage-coins{position:absolute;left:10px;right:8px;bottom:8px;height:37px}
.hyt-cage-coins img{position:absolute;width:24px;height:24px;left:calc(var(--coin-i)*15px);bottom:calc(var(--coin-i)*5px);object-fit:contain;filter:drop-shadow(1px 2px 0 #92400e)}
.hyt-cage-door{position:absolute;inset:24px 0 0;border:3px solid #475569;background:repeating-linear-gradient(90deg,transparent 0,transparent 10px,#64748b 10px,#cbd5e1 14px);transform-origin:right center}
.hyt-cage-lock{position:absolute;right:2px;top:43px;width:12px;height:16px;border:2px solid #92400e;border-radius:3px;background:#fbbf24;z-index:3}
.hyt-cage-lock:before{content:'';position:absolute;width:6px;height:6px;left:1px;top:-7px;border:2px solid #92400e;border-bottom:0;border-radius:6px 6px 0 0}
@media(prefers-reduced-motion:reduce){.hyt-scene-layer{display:none}}

.scene-shield-impact{opacity:0}
/* Full-page entry: same application background, centered artwork, then content. */
.hyt-scene-enter #hyt-live-content{visibility:hidden}
.hyt-scene-layer{z-index:20000;background:#111827;display:flex;align-items:center;justify-content:center}
.hyt-scene-layer[hidden]{display:none}
.hyt-scene-card{position:relative;top:auto;left:auto;transform:none;width:min(340px,84vw);padding:20px;border:0;border-radius:0;background:transparent;box-shadow:none!important}
.hyt-scene-card svg{width:100%;height:auto;max-height:280px;filter:drop-shadow(0 12px 12px #0003)}
.hyt-scene-card span{display:block;margin-top:16px;font:900 clamp(27px,7vw,38px)/1.2 system-ui,sans-serif;color:#fff!important;text-shadow:0 3px 10px #0003}
.hyt-scene-cage-art{height:250px;display:flex;align-items:center;justify-content:center}
.hyt-scene-cage-art .hyt-cage{transform:scale(2.5)}
.hyt-treasure{position:relative;width:60px;height:40px;margin-top:22px;border:3px solid #92400e;border-radius:6px;background:#d97706;box-shadow:0 4px 0 #78350f}
.hyt-treasure:after{content:'';position:absolute;left:24px;top:7px;width:10px;height:16px;background:#fef3c7;border:2px solid #92400e;border-radius:3px}
.hyt-treasure-lid{position:absolute;left:-3px;right:-3px;top:-16px;height:20px;background:#fbbf24;border:3px solid #92400e;border-radius:15px 15px 2px 2px}
.hyt-award-coins img{position:absolute;width:24px;height:24px;left:calc(8px + var(--coin-i)*9px);top:-19px;filter:drop-shadow(1px 2px 0 #92400e)}
.hyt-monthly-orbit{position:relative;width:72px;height:72px;border-radius:50%;background:radial-gradient(circle,#fef3c7,#fbbf24);border:3px solid #d97706;box-shadow:0 4px 0 #b45309}
.hyt-monthly-orbit img{top:10px;left:calc(3px + var(--coin-i)*8px);width:29px;height:29px}
.hyt-monthly-orbit>i{position:absolute;bottom:1px;left:25px;font:900 25px/1 system-ui;color:#b45309;font-style:normal}
.state-monthly,.state-earning{border-color:#fde68a;color:#92400e;box-shadow:0 5px 0 #fcd34d,0 14px 32px #0f172a25}
.hyt-exchange{position:relative;width:76px;height:65px}
.hyt-euro-note{position:absolute;right:0;top:8px;width:54px;height:37px;border:3px solid #15803d;border-radius:6px;background:#bbf7d0;box-shadow:0 4px 0 #166534;color:#166534;text-align:center;font:900 29px/37px system-ui;font-style:normal}
.hyt-exchange-coins img{position:absolute;width:23px;height:23px;left:calc(var(--coin-i)*9px);bottom:1px;filter:drop-shadow(1px 2px 0 #92400e)}
.hyt-cashout-dialog{max-width:min(420px,calc(100vw - 40px));box-sizing:border-box;border:0;border-radius:22px;padding:24px;color:#172554;box-shadow:0 20px 60px #0005;font:500 16px/1.5 system-ui}
.hyt-cashout-dialog::backdrop{background:#0f172a99}
.hyt-cashout-dialog h2{font-size:23px;line-height:1.25;margin:0 0 16px}.hyt-cashout-dialog label{display:block;font-weight:800}
.hyt-cashout-dialog input[type=number]{display:block;box-sizing:border-box;width:100%;font:800 26px/1.2 system-ui;padding:12px;border:2px solid #cbd5e1;border-radius:12px;margin:8px 0}
#cashout-preview{padding:12px;background:#f0fdf4;border-radius:10px;font-weight:700}
@media(prefers-reduced-motion:reduce){.hyt-scene-enter #hyt-live-content{visibility:visible}.hyt-scene-layer{display:none}}

/* Use the actual child avatar only in the transient layer, never in storage. */
.hyt-profile-scene-art{width:min(250px,65vw);height:min(250px,65vw);margin:0 auto;display:flex;align-items:center;justify-content:center;border:6px solid #fbbf24;border-radius:50%;background:#fff;box-sizing:border-box;box-shadow:0 7px 0 #b45309,0 20px 40px #0003;overflow:hidden}
.hyt-profile-scene-image{display:block;width:100%;height:100%;object-fit:cover}
.hyt-scene-card .hyt-profile-initials{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;background:linear-gradient(135deg,#1e3a8a,#2563eb);font:900 70px/1 system-ui;color:#fff}
.hyt-scene-card svg image{transform-box:fill-box;transform-origin:center}
