/* All actionable surfaces share an unmistakable warm hover signal.
   Hit areas and masks stay aligned to the actual hardware/glass. */
:root{--interactive-hot:#ffcc69;--interactive-glow:#ff9f39}
.real-key,.digital-command,.program-arrow,.native-surface,.button-symbol,
.glass-plane.preview,.registered-photo canvas,.original-photo,a[href]{transition:color .12s,background-color .12s,border-color .12s,filter .12s,box-shadow .12s}

/* Live application buttons and text links. */
.real-key:is(:hover,:focus-visible),
.program-live .real-key:is(:hover,:focus-visible),
.digital-command:is(:hover,:focus-visible){color:#ffe4a2;border-color:#ffd280;background:linear-gradient(#795329,#402a18);box-shadow:inset 0 1px 0 #fff0c566,0 0 12px #ffae394d;filter:none}
.real-key:is(:hover,:focus-visible)>span{color:#ffe4a2;text-shadow:0 0 7px #ffad4655}
.real-key:is(:hover,:focus-visible)>img{filter:sepia(.7) saturate(1.7) hue-rotate(345deg) brightness(1.17)}
a[href]:is(:hover,:focus-visible),
.program-live .contact-lines a:is(:hover,:focus-visible){color:#ffd47d;border-color:#ffcc69;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-shadow:0 0 8px #ffac4555}

/* Screens that launch an app or change the active gallery photograph. */
#stage>.glass-plane.preview:is(:hover,:focus-visible),
body[data-route=index] #stage>.glass-plane.preview:is(:hover,:focus-visible){filter:brightness(1.18) saturate(1.14)}
.glass-plane.preview:is(:hover,:focus-visible)::after{background:linear-gradient(125deg,#ffbc4229,#ffcc6914 55%,#ffc66a24)!important;box-shadow:inset 0 0 0 5px #ffc66ac9,inset 0 0 40px #ffb54b44}
.glass-plane.preview:is(:hover,:focus-visible) :is(strong,small,span,h1,h2,h3,p,i){color:#ffda88!important;text-shadow:0 0 8px #ffaa3f55}
.glass-plane.preview:is(:hover,:focus-visible) .idle-content i{background:#ffce70;box-shadow:0 0 16px #ffb23f}
.registered-photo::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;background:linear-gradient(125deg,#ffbf4933,#ffd57112 60%,#ffaa3829);box-shadow:inset 0 0 0 4px #ffcf70,inset 0 0 25px #ffb74a55;transition:opacity .12s}
.registered-photo:is(:hover,:focus-visible)::after{opacity:1}
.registered-photo:is(:hover,:focus-visible) canvas,
body[data-route=about] .registered-photo:is(:hover,:focus-visible) canvas{filter:brightness(1.12) saturate(1.12)}

/* Native metal is recoloured inside its existing exact polygon/ellipse only. */
.native-hit:not(.home-round-key):is(:hover,:focus-visible) .native-surface{opacity:1;filter:sepia(.7) saturate(1.8) hue-rotate(345deg) brightness(1.25)}
.native-hit:is(:hover,:focus-visible) .button-symbol{color:#ffd279;stroke:#ffd279;filter:drop-shadow(0 0 3px #ffad3e)}
.program-arrow:is(:hover,:focus-visible){filter:sepia(.65) saturate(2) hue-rotate(345deg) brightness(1.3) drop-shadow(0 0 7px #ffb34d99)}
/* Keep the requested blue-to-red icon interaction on the three main caps. */
.home-round-key:is(:hover,:focus-visible) .home-round-symbol{color:#ff514e;filter:drop-shadow(0 0 2px #ff3a38) drop-shadow(0 0 4px #ff302999)}

/* The original photo itself toggles contain/cover. The frame returns the app. */
.original-photo:is(:hover,:focus-visible){filter:brightness(1.13) saturate(1.12)!important}
.photo-viewport:has(.original-photo:is(:hover,:focus-visible)){box-shadow:inset 0 0 0 3px #ffd079,0 0 10px #ffae3d66}
.program-window:hover:not(:has(.program-bed:hover,.program-arrow:hover)) .program-frame{filter:sepia(.45) saturate(1.5) brightness(1.14) drop-shadow(0 0 9px #ffc15b88)}
.program-frame{transition:filter .12s}
@media(prefers-reduced-motion:reduce){.real-key,.digital-command,.program-arrow,.native-surface,.button-symbol,.glass-plane.preview,.registered-photo canvas,.registered-photo::after,.original-photo,.program-frame,a[href]{transition:none}}
