*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#061fe2;color:#fff;font-family:"Microsoft YaHei",sans-serif}.world{min-height:100vh;position:relative;overflow:hidden;background:#061fe2 url("assets/portfolio-bg-no-title.webp") center/cover fixed}.gallery{position:relative;z-index:2;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4vh 0 8vh}h1{position:absolute;top:4vh;left:50%;transform:translateX(-50%);margin:0;font-size:clamp(25px,3vw,46px);text-shadow:0 3px 16px #00115f;white-space:nowrap}.carousel{position:relative;width:100%;height:78vh;perspective:1600px;overflow:visible;touch-action:pan-y;cursor:grab}.carousel.dragging{cursor:grabbing}.student-card{position:absolute;left:50%;top:50%;width:clamp(230px,27vw,410px);aspect-ratio:9/16;transform-style:preserve-3d;will-change:transform;transition:filter .3s;filter:drop-shadow(0 18px 28px #00134e88);cursor:inherit}.student-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .25s}.student-card .back{opacity:0}.student-card:hover .back{opacity:1}.student-card:hover .front{opacity:0}.hint{position:absolute;bottom:5vh;font-size:14px;letter-spacing:.12em;text-shadow:0 2px 8px #00115f}.back-bottom{position:fixed;z-index:20;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 24px;border:1px solid #fff9;border-radius:999px;background:#0625b9d9;backdrop-filter:blur(12px);color:#fff;text-decoration:none}.floaters{position:absolute;inset:0;pointer-events:none;overflow:hidden}.float{position:absolute;object-fit:contain;filter:drop-shadow(0 14px 20px #00116b55);animation:drift 8s ease-in-out infinite}.f1{width:110px;left:3%;top:30%}.f2{width:125px;right:3%;top:24%;animation-delay:-3s}.f3{width:100px;left:5%;bottom:4%;animation-delay:-5s}.f4{width:115px;right:4%;bottom:5%;animation-delay:-2s}.f5{width:90px;right:17%;top:8%;animation-delay:-6s}@keyframes drift{0%,100%{translate:0 0;rotate:-5deg}50%{translate:12px -18px;rotate:5deg}}@media(max-width:700px){h1{top:5vh}.carousel{height:72vh}.student-card{width:clamp(200px,55vw,300px)}.back-bottom{bottom:12px}.hint{bottom:4vh;font-size:12px}}
.world{background:none}.world::before{content:"";position:absolute;inset:-230px -16% -50px;background:#061fe2 url("assets/portfolio-bg.webp") center/100% 100%;pointer-events:none}.gallery{padding:30px 0 90px;justify-content:center}#heading{margin:0 0 10px;text-align:center;font-size:clamp(24px,3vw,44px);text-shadow:0 4px 20px #00166c}.carousel{width:86vw;max-width:none;height:70vh;overflow:hidden;touch-action:pan-y;perspective:1600px}.student-card{width:clamp(250px,23vw,460px);transition:none;will-change:transform;user-select:none}.hint{position:relative}#restart{background:#ffffff22;border:1px solid #ffffff66;border-radius:20px;color:white;padding:7px 14px;cursor:pointer}.back-bottom{bottom:16px}@media(max-width:700px){.carousel{width:100vw;height:70vh}.student-card{width:55vw}}
/* Fade only the card layer so the map remains clear beneath the edges. */
.carousel{-webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.2) 4%,#000 15%,#000 85%,rgba(0,0,0,.2) 96%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.2) 4%,#000 15%,#000 85%,rgba(0,0,0,.2) 96%,transparent 100%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}

.float.f6{width:140px;left:16%;top:13%;animation-delay:-4s}@media(max-width:700px){.float.f6{width:90px;left:11%;top:13%}}

.student-card img{transition:none!important}
