@font-face{font-family:"Baloo";src:url(../assets/baloo.woff2) format("woff2");font-weight:400 800;font-display:swap}
:root{--red:#E31E24;--blue:#12A7C9;--ink:#1d3557}
html,body{margin:0;height:100%;background:linear-gradient(#cdeefd,#fdf1de);overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;font-family:"Baloo","Trebuchet MS",sans-serif;overscroll-behavior:none}
#wrap{position:fixed;inset:0;display:flex;align-items:center;justify-content:center}
#box{position:relative;width:100%;height:100%;max-width:480px;max-height:920px;overflow:hidden;background:#cdeefd}
@media(min-width:520px){#box{border-radius:28px;height:calc(100% - 32px);box-shadow:0 18px 50px rgba(18,90,120,.3)}}
canvas#c{display:block;width:100%;height:100%;touch-action:none}
button,a,input{font-family:inherit}
.scr{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:64px 22px 30px;box-sizing:border-box;gap:18px;overflow-y:auto;touch-action:pan-y;
 background:linear-gradient(180deg,rgba(10,35,70,0) 0%,rgba(10,35,70,.12) 45%,rgba(10,35,70,.5) 100%)}
.scr.on{display:flex}
.scr.on>*{animation:pop .55s cubic-bezier(.2,1.5,.4,1) both}
.scr.on>*:nth-child(2){animation-delay:.06s}.scr.on>*:nth-child(3){animation-delay:.12s}.scr.on>*:nth-child(4){animation-delay:.18s}.scr.on>*:nth-child(5){animation-delay:.24s}.scr.on>*:nth-child(6){animation-delay:.3s}.scr.on>*:nth-child(7){animation-delay:.36s}.scr.on>*:nth-child(8){animation-delay:.42s}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.85)}to{opacity:1;transform:none}}
.hid{display:none!important}
p{margin:0}
.title{margin:0;font-weight:800;font-size:64px;line-height:.95;color:#fff;letter-spacing:.5px;-webkit-text-stroke:9px var(--red);paint-order:stroke fill;text-shadow:0 6px 0 #9e1015,0 12px 18px rgba(0,0,0,.25)}
.title.mid{font-size:50px}
.lead{color:#fff;font-weight:700;font-size:21px;line-height:1.2;text-shadow:0 2px 0 rgba(0,0,0,.25),0 0 12px rgba(10,35,70,.45)}
.small{color:#fff;font-weight:600;font-size:16px;text-shadow:0 1px 0 rgba(0,0,0,.3),0 0 10px rgba(10,35,70,.5)}
.score{color:#fff;font-weight:800;font-size:30px;text-shadow:0 3px 0 rgba(0,0,0,.25)}
.logo{width:min(58%,230px);filter:drop-shadow(0 10px 14px rgba(0,0,0,.2));animation:none}
.scr.on>.logo{animation:pop .55s cubic-bezier(.2,1.5,.4,1) both,float 3.5s ease-in-out .6s infinite}
@keyframes float{50%{transform:translateY(-8px)}}
.btn{position:relative;font-weight:800;font-size:30px;letter-spacing:.5px;color:#fff;border:0;border-radius:999px;padding:16px 62px 18px;cursor:pointer;text-decoration:none;
 background:linear-gradient(180deg,#ff5a5f 0%,#E31E24 55%,#c8141a 100%);box-shadow:inset 0 -6px 0 rgba(0,0,0,.15),inset 0 4px 0 rgba(255,255,255,.35),0 8px 0 #8f0d12,0 16px 26px rgba(0,0,0,.28);
 text-shadow:0 2px 0 rgba(0,0,0,.25);margin-top:6px}
.scr.on>.btn{animation:pop .55s cubic-bezier(.2,1.5,.4,1) both,sway 2.4s ease-in-out .7s infinite}
@keyframes sway{0%,100%{transform:rotate(-2deg) scale(1)}50%{transform:rotate(2deg) scale(1.05)}}
.btn:active{transform:translateY(5px)!important;box-shadow:inset 0 -4px 0 rgba(0,0,0,.15),0 3px 0 #8f0d12,0 6px 12px rgba(0,0,0,.25)}
.btn::before{content:"";position:absolute;left:18%;right:18%;top:7px;height:9px;border-radius:9px;background:rgba(255,255,255,.35)}
.ico{position:relative;width:58px;height:58px;border-radius:50%;border:0;background:rgba(255,255,255,.28);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);font-size:27px;line-height:58px;cursor:pointer;color:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.15);padding:0}
.ico:active{transform:scale(.92)}
.ico span{position:absolute;top:64px;left:50%;transform:translateX(-50%);font-size:14px;font-weight:700;line-height:1;white-space:nowrap;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.ico.big{width:66px;height:66px;font-size:30px}.ico.big span{top:72px}
.icons{display:flex;gap:34px;justify-content:center;margin-bottom:22px}
.corner{position:absolute;top:12px;width:48px;height:48px;font-size:22px;z-index:9;animation:none!important}
.corner.r{right:12px}.corner.l{left:12px}
#mute{z-index:20}
.tlink{color:#fff;font-weight:700;font-size:15px;text-decoration:none;opacity:.95;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.tlink:hover{text-decoration:underline}
/* dymek komiksowy */
.bubble{position:relative;max-width:330px;background:#fff;border:4px solid var(--ink);border-radius:34px 34px 34px 34px/30px 30px 30px 30px;padding:16px 20px 16px;text-align:left;box-shadow:6px 7px 0 rgba(29,53,87,.25);color:var(--ink);transform-origin:50% 100%}
.bubble::after,.bubble::before{content:"";position:absolute;left:46%;border-style:solid}
.bubble::before{bottom:-30px;border-width:30px 22px 0 0;border-color:var(--ink) transparent transparent transparent;transform:skewX(-14deg)}
.bubble::after{bottom:-21px;margin-left:5px;border-width:22px 14px 0 0;border-color:#fff transparent transparent transparent;transform:skewX(-14deg)}
.bubble b{display:block;color:var(--red);font-size:24px;font-weight:800;line-height:1.05;margin-bottom:6px}
.bubble p{font-size:17px;line-height:1.3;font-weight:600}
.bubble .fact{margin-top:8px;font-size:15px;color:#2b7a95;font-weight:600}
.stDragon{width:118px;margin-top:6px;filter:drop-shadow(0 12px 8px rgba(0,0,0,.2))}
.scr.on>.stDragon,.scr.on>.winDragon{animation:pop .55s cubic-bezier(.2,1.5,.4,1) both,bob 1.6s ease-in-out .6s infinite}
@keyframes bob{50%{transform:translateY(-10px) rotate(-3deg)}}
.parts{display:flex;gap:14px}
.parts img{width:44px;height:44px;filter:drop-shadow(0 4px 4px rgba(0,0,0,.2))}.parts img.no{opacity:.35;filter:grayscale(1) brightness(1.4)}
.stars{font-size:46px;line-height:1;color:#ffcf1a;letter-spacing:6px;text-shadow:0 3px 0 #c98a00,0 6px 10px rgba(0,0,0,.25)}
.stars .off{color:rgba(255,255,255,.4);text-shadow:none}
.stars:empty{display:none}
.joke{max-width:320px;color:#fff;font-size:19px;font-weight:600;font-style:italic;line-height:1.3;text-shadow:0 2px 0 rgba(0,0,0,.25),0 0 12px rgba(10,35,70,.5)}
.winDragon{width:170px;filter:drop-shadow(0 12px 10px rgba(0,0,0,.25))}
/* mapa */
.map{position:relative;width:min(100%,360px);height:min(62vh,540px);flex:none}
.dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fff;box-shadow:0 2px 3px rgba(0,0,0,.2)}
.dot.dim{background:rgba(255,255,255,.45)}
.isle{position:absolute;width:96px;height:96px;margin:-48px 0 0 -48px;border-radius:50%;border:0;cursor:pointer;font-size:44px;display:flex;align-items:center;justify-content:center;padding:0;
 box-shadow:inset 0 -8px 0 rgba(0,0,0,.18),inset 0 6px 0 rgba(255,255,255,.35),0 8px 0 rgba(0,0,0,.18),0 14px 22px rgba(0,0,0,.25)}
.isle.locked{background:linear-gradient(#b9c3cc,#8592a0)!important;font-size:34px}
.isle.next{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{transform:scale(1.1)}}
.isle .lab{position:absolute;top:104px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#fff;font-size:17px;font-weight:800;line-height:1.05;text-shadow:0 2px 0 rgba(0,0,0,.3),0 0 8px rgba(10,35,70,.5)}
.isle .lab i{display:block;font-style:normal;color:#ffd21a;font-size:18px;letter-spacing:2px}
.isle .lab i .off{color:rgba(255,255,255,.45)}
.isle .num{position:absolute;top:-4px;right:-4px;width:30px;height:30px;border-radius:50%;background:var(--red);color:#fff;font-size:17px;font-weight:800;line-height:30px;box-shadow:0 3px 0 #8f0d12}
/* dyplom */
#dipCv{width:100%;max-width:420px;border-radius:10px;box-shadow:0 14px 30px rgba(0,0,0,.3);transform:rotate(-1.5deg)}
#dipName,#dipTeacher{font-size:28px;font-weight:700;color:#fff;background:transparent;border:0;border-bottom:3px solid rgba(255,255,255,.9);border-radius:0;padding:4px 6px;text-align:center;width:min(80%,300px);outline:none;text-shadow:0 2px 4px rgba(0,0,0,.3)}
#dipName::placeholder,#dipTeacher::placeholder{color:rgba(255,255,255,.75)}
#dipName:focus,#dipTeacher:focus{border-bottom-color:#ffd21a}
.toast{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);background:rgba(29,53,87,.92);color:#fff;padding:10px 20px;border-radius:999px;z-index:30;font-size:16px;font-weight:700}
@media(max-height:720px){.title{font-size:52px}.title.mid{font-size:42px}.scr{gap:12px}.stDragon{width:90px}.winDragon{width:130px}}

#dipTeacher{font-size:20px;margin-top:-6px}
button.tlink{background:none;border:0;cursor:pointer;padding:6px}
#loading{background:radial-gradient(ellipse at 50% 35%,#fff3d6,#f7b267 70%,#e07a3f)}
.ldDragon{width:96px;animation:bob 1s ease-in-out infinite!important}
.ldTrack{width:min(70%,260px);height:16px;border-radius:999px;background:rgba(255,255,255,.55);overflow:hidden;box-shadow:inset 0 2px 4px rgba(0,0,0,.12)}
#ldBar{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#E31E24,#ff7a3d)}
#loading .lead{color:#E31E24;text-shadow:0 2px 0 #fff}
#loading .small{color:#1d3557;text-shadow:none}
.words{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;max-width:340px}
.words span{font-weight:800;font-size:22px;letter-spacing:3px;color:rgba(255,255,255,.55);text-shadow:0 1px 3px rgba(0,0,0,.3)}
.words span.got{color:#fff;-webkit-text-stroke:5px #E31E24;paint-order:stroke fill;text-shadow:0 3px 0 #9e1015}
.words span.cur{color:#ffe14d;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.chalk{font-weight:800;font-size:24px;color:#fff;letter-spacing:1px;text-shadow:0 0 2px #fff,0 3px 0 rgba(0,0,0,.25);transform:rotate(-2deg)}

.bigscore{margin:-10px 0 0;font-weight:800;font-size:92px;line-height:1;color:#ffe14d;-webkit-text-stroke:10px #E31E24;paint-order:stroke fill;text-shadow:0 7px 0 #9e1015,0 14px 20px rgba(0,0,0,.25)}
.bigscore small{font-size:36px}
.fbtxt{max-width:330px;font-size:19px}
.favs{display:flex;gap:14px}
.fav{width:56px;height:56px;border-radius:50%;border:0;font-size:28px;cursor:pointer;background:rgba(255,255,255,.28);box-shadow:0 5px 12px rgba(0,0,0,.15);transition:transform .2s}
.fav.sel{background:#ffe14d;transform:scale(1.18);box-shadow:0 0 0 4px #fff,0 8px 16px rgba(0,0,0,.25)}
.tiny{font-size:14px;opacity:.95}
#bFb{background:linear-gradient(180deg,#4f8dff 0%,#1877F2 55%,#0f5fcc 100%);box-shadow:inset 0 -6px 0 rgba(0,0,0,.15),inset 0 4px 0 rgba(255,255,255,.35),0 8px 0 #0b4799,0 16px 26px rgba(0,0,0,.28);font-size:24px;padding:16px 34px 18px}
.btn{white-space:nowrap;font-size:clamp(21px,6.6vw,30px);padding:16px clamp(30px,9vw,60px) 18px}
#bFb{font-size:clamp(19px,5.6vw,24px)}
.icons{gap:48px}#win .icons{gap:26px}
#fail{background:radial-gradient(ellipse at center,rgba(10,25,50,.55),rgba(10,25,50,.35))}

.ldDragon{width:110px}
#loading .lead{color:#fff;text-shadow:0 2px 0 #b5441a}
#loading .small{color:#7a2d0c}
.leafy{position:absolute;font-size:28px;animation:fall 2.6s linear infinite;opacity:.9;top:-40px}
@keyframes fall{to{transform:translateY(110vh) rotate(540deg)}}
#pause{display:none}#pause.on{display:flex}
.goal{color:#ffe14d;font-weight:800;font-size:22px;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.map svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.isle .lab{top:100px}
.ctl{color:#fff;font-size:15px;font-weight:700;opacity:.9;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.bubble{border-color:#5a3a1a;box-shadow:6px 7px 0 rgba(90,58,26,.25)}
.bubble::before{border-color:#5a3a1a transparent transparent transparent}
.map .dot{width:13px;height:13px;margin:-6.5px 0 0 -6.5px;box-shadow:0 2px 0 rgba(0,0,0,.25)}.map .dot.dim{background:rgba(255,255,255,.55)}
