.tin { width:100%; padding:0; border:0; background:none; color:inherit; font:inherit; cursor:pointer }
.tin:disabled { cursor:wait }
.tin:focus-visible { outline:3px solid #295e80; outline-offset:4px }
.viewport { position:relative; display:block; width:100%; height:min(69svh,36rem) }
.scene { position:absolute; top:50%; left:50%; width:1000px; height:820px; transform-origin:0 0; pointer-events:none; filter:drop-shadow(0 4px 4px #37231680) drop-shadow(0 10px 12px #37231655) }
.shell,.face,.face img,.face canvas,.pin,.shade { position:absolute; display:block; top:0; left:0; transform-origin:0 0 }
.face { width:400px; height:500px; overflow:hidden; border-radius:20px; box-shadow:inset 0 0 0 5px #ad8249; backface-visibility:hidden }
.face img,.face canvas { max-width:none }
.face::after { content:""; position:absolute; inset:0; border:3px solid #cda268; border-radius:inherit; box-shadow:inset 0 0 0 3px #7450267a; background:linear-gradient(118deg,#ffe8a9a1,transparent 40%,#5936135c); opacity:var(--light,0) }
.shade { width:400px; height:500px; border-radius:20px; background:linear-gradient(90deg,#2b1a12,transparent 75%) }
.pin { width:54px; height:9px; margin-top:-4px; border-radius:5px; background:linear-gradient(#574021,#f9d79b 30%,#a27946 50%,#5d3d21 82%,#c99b5d); box-shadow:0 1px 2px #321c12aa }
.action { display:block; padding:.6rem; font-weight:650 }
.is-entering .action { opacity:0 }
.is-zooming .viewport { animation:enter 560ms ease-out forwards; transform-origin:var(--zoom-pivot,50% 50%) }
@keyframes enter { from { transform:translate(0,0) scale(1) } to { transform:translate(var(--zoom-x,0px),var(--zoom-y,0px)) scale(1.425) } }
@media (prefers-reduced-motion:reduce) {
  .is-zooming .viewport { animation:none }
}
.home .logic-tin { grid-column:span 2; align-self:stretch; align-content:center; min-height:12rem; }
.home .logic-tin.is-entering { position:relative; z-index:2; }
.home:has(.logic-tin.is-entering) { overflow-x:clip; }
.logic-tin .viewport { height:clamp(9rem,18vw,14rem); }
.logic-tin .action { padding:.55rem .25rem; font:700 clamp(1rem,2vw,1.28rem)/1.2 Georgia,serif; color:#244438; }
@media (max-width:760px) { .home .logic-tin { grid-column:auto; } }
