:root{font-family:'Trebuchet MS',system-ui,-apple-system,'Segoe UI',sans-serif;background:#edf8f2;color:#173e51;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow-x:hidden}body{background:radial-gradient(ellipse at 7% 3%,#fff0d3 0%,transparent 30%),radial-gradient(ellipse at 100% 0%,#d6f6f0 0%,transparent 40%),linear-gradient(135deg,#fcfaf0,#e5f7f3);min-height:100dvh}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #e2a827;outline-offset:3px}[hidden]{display:none!important}
.intro-screen{min-height:100dvh;display:grid;place-items:center;padding:10px;background:linear-gradient(155deg,#dcf2eb,#f9f2dc)}.cover-frame{position:relative;width:min(1190px,calc(100vw - 20px),calc((100dvh - 20px)*1.9043));border-radius:18px;overflow:hidden;line-height:0;isolation:isolate;box-shadow:0 16px 70px #225e6750}.cover-frame picture,.cover-image{display:block;width:100%}.cover-image{height:auto}.cover-hit{position:absolute;left:15%;top:75%;width:40%;height:20%;border:0;background:transparent;border-radius:42px}.cover-hit:focus-visible{outline:5px solid #fff;outline-offset:-8px}.cover-hit:active{background:#ffffff20}
.game-shell{max-width:1080px;margin:auto;padding:15px 18px 22px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.brand{display:flex;gap:10px;align-items:center}.brand-emblem{display:grid;place-items:center;width:42px;height:42px;background:#fff2d3;border-radius:14px;color:#e1a22a;font-size:30px}.brand strong{display:block;font-size:16px}.brand small{display:block;font-size:11px;color:#7e9b9d;margin-top:3px}.toolbar{display:flex;gap:7px}.tool-btn{border:1px solid #d5e8e3;border-radius:13px;display:grid;place-items:center;min-width:42px;height:42px;background:#fff;color:#41756e;font-weight:800;font-size:23px;box-shadow:0 2px 8px #24463a10}.tool-btn.off{background:#f2f6f5;color:#abb9b7}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.eyebrow{color:#279d83;font-size:11px;font-weight:900;letter-spacing:1.9px}.heading-row h1{font-size:clamp(24px,3.1vw,35px);line-height:1.12;letter-spacing:-.7px;margin:4px 0}.heading-row p{margin:0;color:#77918e;font-size:14px}.scorebox{background:#e0f5ea;border-radius:17px;min-width:80px;padding:10px 14px;display:grid;place-items:center}.scorebox strong{font-size:29px;color:#249875;line-height:1}.scorebox small{color:#598775;font-size:11px;font-weight:700}
.game-card{background:#fffc;border:1px solid #e2ede7;border-radius:25px;box-shadow:0 16px 55px #234d4612;padding:15px 21px 16px}.section-chip{display:flex;align-items:center;gap:8px;color:#59847b;font-size:13px;font-weight:900;margin-bottom:4px}.green-dot{width:9px;height:9px;border-radius:50%;background:#65caa6}.section-chip #seriesProgress{color:#9ab2ad;font-size:12px;margin-left:auto}.play-area{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;column-gap:18px;min-height:300px}.geometry-area{display:flex;flex-direction:column;align-items:center;justify-content:center}.board-wrap{position:relative;width:min(338px,100%);aspect-ratio:1;border-radius:25px;background:radial-gradient(circle,#fff 40%,#f6fbff 100%);border:1px solid #e5eff4;display:grid;place-items:center;box-shadow:inset 0 4px 13px #1a7f9909}.puzzle-board{display:block;width:95%;height:95%;overflow:visible;filter:drop-shadow(0 5px 0 #143c3311)}.puzzle-board .full-shape{stroke:#31546c44;stroke-width:1.15;stroke-linejoin:round}.puzzle-board .missing{fill:#fff;stroke:#86b7c5;stroke-width:1.7;stroke-dasharray:4 3;stroke-linejoin:round;fill-rule:evenodd}.puzzle-board .done{stroke:none;stroke-width:0;stroke-linejoin:round;fill-rule:evenodd;opacity:0;transition:opacity .12s}.puzzle-board .done.visible{opacity:1}.board-wrap.success{box-shadow:inset 0 0 0 5px #46c58b,0 0 30px #55d69377;animation:glowpop .75s ease}.board-wrap.error{box-shadow:inset 0 0 0 5px #e87074,0 0 25px #ed7a7066;animation:nope .26s ease}.board-note{font-size:12px;color:#92a9ac;margin-top:7px;font-weight:700;min-height:17px}.board-spark{position:absolute;opacity:0;pointer-events:none;font-size:33px;color:#f6bc31}.spark-a{top:5%;left:9%}.spark-b{top:12%;right:9%}.spark-c{bottom:4%;left:14%}.spark-d{bottom:6%;right:13%}.board-wrap.success .board-spark{animation:star .9s ease-out both}.board-wrap.success .spark-b{animation-delay:.1s}.board-wrap.success .spark-c{animation-delay:.18s}.board-wrap.success .spark-d{animation-delay:.28s}
.helper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;align-self:stretch}.helper-character{position:relative;width:176px;height:222px;overflow:visible}.helper-pose{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;visibility:hidden;transition:opacity .1s ease}.helper-pose.is-active{opacity:1;visibility:visible}.helper-dialog{position:relative;background:#fff8eb;border:2px solid #ecd6a8;border-radius:18px;color:#9c7537;padding:12px 14px;font-size:15px;line-height:1.35;font-weight:800;text-align:center;max-width:295px;min-height:72px;display:grid;place-items:center}.helper-dialog.success{color:#218158;border-color:#92d9b0;background:#ecfff4}.helper-dialog.ponder{color:#9c6c45;border-color:#e5b992;background:#fff8ed}
.choices-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 9px}.choices-head h2{font-size:17px;margin:0;color:#1b555a}.choices-head small{color:#93aaa8;font-size:12px}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:735px;margin:0 auto;width:100%}.choice{background:#fff;border:2px solid #d9e7e5;border-radius:19px;position:relative;display:grid;place-items:center;aspect-ratio:1;min-height:170px;padding:12px;box-shadow:0 4px 10px #29645c0b;overflow:hidden;transition:border-color .15s,background-color .15s,transform .15s}.choice:hover:not(:disabled){border-color:#59c8ab;transform:translateY(-2px)}.choice:disabled{cursor:default}.choice svg{height:100%;width:100%;max-width:190px;max-height:190px;overflow:visible;filter:drop-shadow(0 2px 2px #235a6b1a)}.choice.selected{border-color:#33ad9b;background:#effbf5}.choice.in-flight svg{opacity:0}.choice.wrong{border-color:#ec9b8c;background:#fff3f1}.answer-message{text-align:center;min-height:39px;padding:13px 3px 0;color:#869ca1;font-size:12px;font-weight:700}.answer-message.error{color:#af6a5b}.answer-message.success{color:#288b5c}.actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}.secondary-btn{border:1px solid #b6dfd2;border-radius:11px;background:#f5fff9;color:#287a67;font-size:12px;font-weight:800;padding:9px 12px}.secondary-btn:hover{background:#e9fff2}.secondary-btn:disabled{opacity:.5}.progress-track{height:6px;margin-top:14px;border-radius:40px;background:#d8e9e3;overflow:hidden}.progress-track span{display:block;height:100%;width:0%;background:linear-gradient(90deg,#6bd0aa,#24aa92);border-radius:40px;transition:width .4s}.footnote{display:flex;justify-content:space-between;gap:8px;color:#90a6a0;font-size:11px;margin-top:7px}
.break-screen,.finish-screen{min-height:100dvh;display:grid;place-items:center;padding:15px}.pause-card{max-width:730px;width:100%;background:#fffffff2;border:1px solid #e3eee9;border-radius:29px;padding:27px;display:flex;align-items:center;justify-content:center;gap:22px;box-shadow:0 14px 55px #214f4b25}.pause-iskryk{height:310px;width:225px;object-fit:contain;flex-shrink:0}.pause-copy h2{font-size:clamp(27px,4vw,40px);line-height:1.12;margin:7px 0 12px}.pause-copy p{color:#77908a;line-height:1.5;font-size:17px}.primary-btn{background:linear-gradient(120deg,#5dcf91,#16a586);color:white;font-weight:900;font-size:17px;border:0;border-radius:15px;padding:16px 24px;box-shadow:0 8px 20px #17aa8052;min-height:52px}.text-btn{display:block;border:0;background:transparent;color:#678e88;margin-top:14px;padding:5px;font-size:13px;font-weight:700}
.flying-piece{position:fixed;z-index:100;pointer-events:none;filter:drop-shadow(0 6px 8px #123a4c2b);will-change:transform;overflow:visible}
@keyframes glowpop{0%{transform:scale(1);filter:brightness(1)}35%{transform:scale(1.025);filter:brightness(1.05)}100%{transform:scale(1)}}@keyframes nope{0%,100%{transform:translateX(0)}35%{transform:translateX(-4px)}70%{transform:translateX(4px)}}@keyframes star{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.25)}100%{opacity:0;transform:scale(1.9)}}
@media(max-width:720px) and (orientation:portrait){.intro-screen{padding:5px}.cover-frame{border-radius:12px;width:min(calc(100vw - 10px),calc((100dvh - 10px)*.666667),520px);box-shadow:0 5px 30px #35706b33}.cover-hit{left:14%;top:83%;width:73%;height:14%}}
@media(max-width:720px){.game-shell{padding:9px 12px 14px}.topbar{margin-bottom:10px}.brand-emblem{width:35px;height:35px;font-size:24px}.brand strong{font-size:14px}.brand small{font-size:10px}.toolbar{gap:5px}.tool-btn{min-width:36px;height:36px;font-size:20px;border-radius:10px}.heading-row{margin-bottom:8px}.heading-row h1{font-size:clamp(22px,5.7vw,28px);line-height:1.1}.heading-row p{font-size:12px}.eyebrow{font-size:10px}.scorebox{min-width:66px;padding:9px 12px}.scorebox strong{font-size:25px}.scorebox small{font-size:10px}.game-card{padding:10px 10px 12px;border-radius:20px}.section-chip{font-size:12px;margin-bottom:9px}.play-area{display:flex;flex-direction:column-reverse;min-height:unset;gap:7px}.helper{flex-direction:row;align-items:center;gap:8px;width:100%;min-height:127px}.helper-character{width:116px;height:127px;flex:0 0 116px}.helper-dialog{flex:1;min-height:57px;font-size:13px;padding:8px 10px;border-radius:14px;text-align:left}.geometry-area{width:100%}.board-wrap{width:min(275px,81vw);border-radius:20px}.board-note{font-size:11px;margin-top:4px}.choices-head{margin:10px 0 8px}.choices-head h2{font-size:15px}.choices-head small{font-size:10px}.choices{gap:7px}.choice{border-radius:14px;min-height:unset;aspect-ratio:1;padding:7px}.choice svg{height:100%;width:100%;max-width:100%;max-height:100%}.answer-message{font-size:11px;min-height:32px;padding-top:9px}.actions{margin-top:4px}.secondary-btn{padding:8px 10px}.progress-track{margin-top:9px}.footnote{font-size:10px}.pause-card{padding:18px;flex-direction:column;gap:6px;text-align:center;max-width:430px}.pause-iskryk{width:150px;height:230px}.pause-copy p{font-size:15px}.primary-btn{font-size:16px}}
@media(max-width:370px){.game-shell{padding-inline:7px}.game-card{padding:8px}.board-wrap{width:min(246px,77vw)}.helper-character{width:98px;height:108px;flex-basis:98px}.helper-dialog{font-size:12px}.choice{min-height:unset;padding:5px}.choices-head small{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

@media(max-width:720px) and (orientation:portrait){.intro-screen{position:relative;isolation:isolate}.intro-screen::before{content:"";position:fixed;inset:-28px;background:url("assets/cover/mobile.webp") center / cover no-repeat;filter:blur(32px);opacity:.22;z-index:-1;pointer-events:none}.cover-frame{z-index:1}}


/* v1.1 - real, responsive series picker based on the Iskryk cover art */
.series-menu{min-height:100dvh;padding:24px 18px 34px;background:radial-gradient(circle at 10% 8%,#c1edff 0,transparent 38%),radial-gradient(circle at 97% 88%,#c2e99a 0,transparent 42%),linear-gradient(158deg,#79cfff 0%,#e7faff 45%,#e8f6d8 100%)}
.menu-wrap{width:min(1080px,100%);margin:0 auto;position:relative}
.menu-header{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:220px;gap:20px;margin-bottom:10px}
.menu-hero-copy{position:relative;z-index:2;flex:1;min-width:0}
.menu-kicker{font-size:12px;letter-spacing:2px;font-weight:900;color:#196c86}
.menu-header h1{max-width:700px;font-size:clamp(32px,5vw,61px);line-height:1.03;letter-spacing:-1.7px;margin:9px 0;color:#0065b9;font-weight:1000;text-shadow:0 3px #fff,3px 0 #fff,-3px 0 #fff,0 -3px #fff,0 7px 13px #2a54843a}
.menu-header h1 em{font-style:normal;color:#e86616;display:block}
.menu-ribbon{display:inline-block;border-radius:22px 8px 22px 8px;background:linear-gradient(100deg,#ffcb45,#ffe26c);box-shadow:0 5px 0 #f4aa24,0 9px 17px #bd6e2640;padding:6px 22px;font-size:clamp(18px,2.4vw,26px);font-weight:1000;color:#174b86;transform:rotate(-1deg)}
.menu-header p{font-size:clamp(14px,1.7vw,17px);color:#244f6b;max-width:660px;font-weight:800;line-height:1.45;margin:20px 0 0}
.menu-iskryk{object-fit:contain;object-position:bottom center;width:min(29vw,240px);height:218px;align-self:flex-end;filter:drop-shadow(0 8px 12px #1374a03b)}
.menu-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 11px}.menu-section-heading h2{font-size:22px;margin:0;color:#174563}.menu-section-heading p{font-size:13px;margin:4px 0 0;color:#517b88;font-weight:700}
.menu-total{background:#fffbdc;border:1px solid #edcd79;border-radius:100px;color:#397562;padding:9px 15px;font-weight:900;font-size:13px;white-space:nowrap}
.series-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.series-card{min-width:0;border:3px solid #2b9fe3;border-radius:25px;padding:14px 10px 12px;background:linear-gradient(165deg,#fffef2,#ffed9b);box-shadow:inset 0 0 0 3px #fff,0 5px 0 #c3dcdf,0 9px 18px #174e6b2d;display:flex;align-items:center;flex-direction:column;gap:9px;position:relative;transition:transform .16s,box-shadow .16s}
.series-card:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 3px #fff,0 8px 0 #c3dcdf,0 13px 19px #174e6b36}
.series-card:focus-visible{outline:4px solid #ec9a24;outline-offset:3px}
.series-symbol{height:65px;width:88px;display:grid;place-items:center;filter:drop-shadow(0 3px 2px #ffffffb5)}.series-symbol svg{height:64px;width:86px;overflow:visible}
.series-title{font-weight:1000;font-size:clamp(14px,1.7vw,20px);line-height:1.15;color:#0d397e;text-align:center;min-height:45px;display:flex;align-items:center;justify-content:center}
.series-fraction{font-weight:1000;font-size:17px;color:white;background:linear-gradient(120deg,#50bf23,#158f23);border:2px solid #d5f69d;box-shadow:inset 0 2px 4px #07621d38;border-radius:25px;padding:2px 16px;line-height:1.2}
.series-meter{height:6px;width:88%;background:#d7e7bd;border-radius:10px;overflow:hidden}.series-meter span{height:100%;display:block;border-radius:10px;background:#3ab35f;transition:width .24s}
.series-card.is-complete{border-color:#34b875}.series-card.is-complete::after{content:'✓';position:absolute;top:7px;right:9px;background:#1f9e67;color:white;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:900}
.series-card.is-current{border-color:#f6ae32}.series-card.is-current::before{content:'ПРОДОВЖИТИ';position:absolute;top:-10px;left:12px;background:#f6a12f;color:#fff;padding:3px 9px;font-size:9px;letter-spacing:.7px;border-radius:12px;font-weight:900}
.menu-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:24px;flex-wrap:wrap}
.menu-main-btn,.menu-resume-btn{min-height:62px;min-width:235px;border-radius:40px;font-size:clamp(18px,2.3vw,25px);padding:12px 26px;font-weight:1000;box-shadow:0 5px 0 #c0b12a,0 12px 18px #24642c34}
.menu-main-btn{border:4px solid #fff7a7;background:linear-gradient(180deg,#71e415,#2ba40b);color:#fff;text-shadow:0 2px #2e7e20;box-shadow:0 6px 0 #d7aa24,0 11px 22px #24642c34}
.menu-resume-btn{border:3px solid #f7d45c;background:linear-gradient(180deg,#fffdf2,#fff0b1);color:#225a9c;box-shadow:0 5px 0 #dfaa3b,0 11px 18px #1e62952b}
.menu-foot{text-align:center;font-size:12px;color:#356b77;font-weight:700;margin:16px 0 0}
.menu-return-btn{font-size:24px}
@media(max-width:720px){.series-menu{padding:17px 11px 26px}.menu-header{min-height:160px;gap:5px;margin-bottom:3px}.menu-kicker{font-size:9px;letter-spacing:1px}.menu-header h1{font-size:clamp(26px,7vw,40px);letter-spacing:-.8px;margin:5px 0 8px;text-shadow:0 2px #fff,2px 0 #fff,-2px 0 #fff,0 -2px #fff}.menu-header h1 em{display:block}.menu-ribbon{font-size:16px;padding:5px 11px}.menu-header p{font-size:11px;margin-top:12px;max-width:300px}.menu-iskryk{width:30%;min-width:92px;max-width:135px;height:161px}.menu-section-heading{margin:17px 0 10px}.menu-section-heading h2{font-size:19px}.menu-section-heading p{font-size:11px}.menu-total{font-size:11px;padding:7px 9px}.series-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.series-card{border-radius:19px;padding:12px 7px 9px;gap:6px;border-width:2px}.series-symbol{height:56px}.series-symbol svg{height:55px}.series-title{font-size:clamp(13px,4vw,17px);min-height:39px}.series-fraction{font-size:15px;padding:2px 13px}.menu-actions{margin-top:20px;gap:13px}.menu-main-btn,.menu-resume-btn{width:min(100%,340px);min-height:54px;font-size:21px}.menu-foot{font-size:11px}}
@media(max-width:370px){.menu-header{min-height:145px}.menu-header h1{font-size:26px}.menu-iskryk{height:133px;min-width:76px}.menu-ribbon{font-size:14px}.menu-header p{font-size:10px}.series-grid{gap:9px}.series-title{font-size:13px}}

.menu-resume-btn:disabled{opacity:.48;cursor:default;box-shadow:none;filter:grayscale(.3)}
