@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@400;500;600;700&display=swap');*{box-sizing:border-box}html,body,#app,.screen{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:"Mitr",system-ui,sans-serif;color:#25425b}button{font:inherit;cursor:pointer}.screen{position:fixed;inset:0;background:url('assets/garden-race-bg.png') center/cover no-repeat}.hidden{display:none!important}.intro{display:grid;place-items:center;padding:12px}.intro:after{content:"";position:absolute;inset:0;background:#188dd036}.intro-card{z-index:1;width:min(590px,92vw);max-height:calc(100dvh - 25px);padding:clamp(13px,2.8vh,32px);text-align:center;background:#fffdf1f2;border:5px solid #fff;border-radius:37px;box-shadow:0 12px 0 #db7627,0 23px 48px #76381377}.logo{font-size:clamp(55px,12vh,100px);line-height:1;animation:bob 2s infinite}.intro p{margin:4px;color:#e45642;font-weight:700}.intro h1{margin:3px;font-size:clamp(35px,6.4vh,59px);line-height:1.06;color:#23749d}.rule{margin:13px auto 20px;padding:10px;border-radius:17px;background:#e3f9ff;font-size:clamp(16px,2.5vh,21px)}.rule b{color:#e9573f}.primary{border:0;border-radius:19px;padding:clamp(9px,1.7vh,14px) 43px;background:linear-gradient(#ffd847,#f5a31a);color:#604000;font-size:clamp(18px,2.8vh,23px);font-weight:700;box-shadow:0 7px 0 #bd7010}.hud{position:absolute;z-index:20;top:9px;left:11px;right:11px;height:64px;display:grid;grid-template-columns:1fr minmax(230px,1.2fr) 1fr;align-items:center;gap:15px;padding:8px 15px;background:#fffdf2ed;border:3px solid #fff;border-radius:22px;box-shadow:0 6px 0 #26749d}.brand{font-size:clamp(15px,1.7vw,23px);font-weight:700}.progress{text-align:center}.progress>div{height:9px;margin-top:4px;border-radius:7px;background:#d4e4e5;overflow:hidden}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#4bc9ea,#86df53)}.stats{display:flex;align-items:center;justify-content:flex-end;gap:9px;font-size:20px}.stats button{width:40px;height:40px;border:2px solid #c3dce5;border-radius:12px;background:#fff;box-shadow:0 3px pencils? #8bafbc}.question{position:absolute;z-index:15;top:90px;left:50%;transform:translateX(-50%);width:min(610px,90vw);padding:7px 20px 11px;text-align:center;background:#fffdf2f3;border:4px solid #fff;border-radius:24px;box-shadow:0 6px 0 #e6a126}.question small{display:block;color:#607785}.question strong{display:block;font-size:clamp(31px,4vw,52px);line-height:1.15;color:#1f6590}.timer{height:8px;margin-top:6px;border-radius:7px;background:#d7e5e5;overflow:hidden}.timer i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#4bd27e,#ffd138,#ef5046);transform-origin:left}.timer i.run{animation:time 11s linear forwards}.track{position:absolute;z-index:8;top:220px;left:0;right:0;bottom:8%}.snail{position:absolute;left:-18%;width:clamp(150px,17vw,275px);height:clamp(92px,10vw,160px);border:0;background:transparent;filter:drop-shadow(0 8px 5px #613d2455);animation:race 11s linear forwards}.snail:nth-child(1){top:2%}.snail:nth-child(2){top:35%}.snail:nth-child(3){top:68%}.body{position:absolute;left:10%;right:0;bottom:5%;height:38%;border-radius:60% 55% 30% 40%;background:linear-gradient(#a6e45a,#55ad3f);border:3px solid #fff9}.head{position:absolute;right:2%;bottom:18%;width:29%;aspect-ratio:1;border-radius:50%;background:#83cf4e}.head:before,.head:after{content:"";position:absolute;top:-36%;width:5px;height:43%;background:#429338;border-radius:4px}.head:before{left:30%;transform:rotate(-15deg)}.head:after{right:30%;transform:rotate(15deg)}.shell{position:absolute;z-index:2;left:14%;bottom:18%;width:48%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 52% 50%,#ffd246 0 14%,#ef7c35 15% 28%,#ffbf3e 29% 43%,#e65e36 44%);border:4px solid #fff}.answer{position:absolute;z-index:3;left:38%;bottom:44%;transform:translate(-50%,-50%);min-width:62px;padding:3px 9px;border-radius:15px;background:#fff;color:#21435e;font-size:clamp(27px,3.5vw,50px);font-weight:700;box-shadow:0 4px #26445e55}.snail:hover{filter:drop-shadow(0 0 14px #fff) drop-shadow(0 8px 5px #613d2455)}.snail.chosen{animation:jump .65s ease-out forwards}.toast{position:absolute;z-index:40;left:50%;top:50%;transform:translate(-50%,-50%) scale(.7);opacity:0;padding:13px 28px;border-radius:28px;background:#fff;font-size:29px;font-weight:700;pointer-events:none}.toast.show{animation:toast .85s}.modal{position:fixed;z-index:99;inset:0;display:grid;place-items:center;padding:20px;background:#16527c99;backdrop-filter:blur(7px)}.modal-card{width:min(550px,92vw);padding:31px;text-align:center;background:#fffdf0;border:5px solid #fff;border-radius:35px;box-shadow:0 12px 0 #db7627}.modal-card>div{font-size:75px}.modal h2{margin:0;font-size:clamp(34px,5vw,57px);color:#26749d}.modal p{font-size:20px}@keyframes race{to{left:92%}}@keyframes time{to{transform:scaleX(0)}}@keyframes bob{50%{transform:translateY(-8px) rotate(4deg)}}@keyframes jump{50%{transform:translateY(-35px) scale(1.15)}100%{left:95%;opacity:0}}@keyframes toast{20%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(max-width:700px){.hud{height:55px;grid-template-columns:1fr 1fr}.brand span{display:none}.progress{position:absolute;left:25%;right:25%;top:5px;font-size:13px}.stats button{width:33px;height:33px}.question{top:75px;padding:5px 12px}.question small{font-size:11px}.track{top:180px}.snail{width:125px;height:82px;left:-30%}.answer{font-size:24px;min-width:43px}.intro-card{padding:9px 21px}}@media(orientation:landscape) and (max-height:500px){.hud{height:40px;top:4px}.question{top:50px;width:430px;padding:2px 10px}.question small{display:none}.question strong{font-size:27px}.timer{height:5px}.track{top:112px;bottom:3%}.snail{width:112px;height:68px}.answer{font-size:21px}.intro .logo{display:none}.intro h1{font-size:25px}.rule{margin:5px}.intro-card{padding:7px}}
