*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;
-webkit-font-smoothing:antialiased;min-height:100vh}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer;border:none}
ul{list-style:none}

body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle,#1e1b4b,#05060f)}
.scene{perspective:900px;width:200px;height:200px}
.cube{position:relative;width:100%;height:100%;transform-style:preserve-3d;animation:rot 12s linear infinite}
@keyframes rot{from{transform:rotateX(-20deg) rotateY(0)}to{transform:rotateX(-20deg) rotateY(360deg)}}
.f{position:absolute;width:200px;height:200px;display:grid;place-items:center;font-size:4rem;font-weight:800;color:#fff;border:2px solid rgba(255,255,255,.3);background:linear-gradient(135deg,rgba(99,102,241,.6),rgba(236,72,153,.6));backdrop-filter:blur(4px)}
.front{transform:translateZ(100px)}.back{transform:rotateY(180deg) translateZ(100px)}
.right{transform:rotateY(90deg) translateZ(100px)}.left{transform:rotateY(-90deg) translateZ(100px)}
.top{transform:rotateX(90deg) translateZ(100px)}.bottom{transform:rotateX(-90deg) translateZ(100px)}
.hint{position:fixed;bottom:40px;width:100%;text-align:center;color:#475569;letter-spacing:2px}