@font-face{font-family:Rubik;src:url('assets/fonts/rubik-cyrillic.woff2') format('woff2');font-weight:300 900;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Rubik;src:url('assets/fonts/rubik-latin.woff2') format('woff2');font-weight:300 900;font-display:swap}
@font-face{font-family:'Shantell Sans';src:url('assets/fonts/shantell-sans-cyrillic.woff2') format('woff2');font-weight:300 900;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:'Shantell Sans';src:url('assets/fonts/shantell-sans-latin.woff2') format('woff2');font-weight:300 900;font-display:swap}
:root{--board-size:min(calc(100dvh - 228px),calc(100vw - 470px),780px);--ink:#253f4b;--teal:#247e83;--font-head:'Shantell Sans',system-ui;--font-ui:Rubik,system-ui;--shadow:0 12px 28px #235f5010}
body{font-size:16px;background:radial-gradient(at 90% 0,#fff0ce 0,transparent 42%),radial-gradient(at 0 85%,#daf1e6 0,transparent 48%),#f4f8f2}
button{touch-action:manipulation}img{user-select:none;-webkit-user-drag:none}h1,h2,h3{font-family:var(--font-head)}button:focus-visible{outline:3px solid #197c83;outline-offset:3px}.app-header{height:70px}.header-inner{max-width:1600px}.screen{max-width:1600px;margin:auto;padding:24px clamp(16px,3vw,48px);min-height:calc(100dvh - 70px);outline:none}.header-actions .icon-btn{font-size:25px}.primary-btn{background:#248e87;box-shadow:0 5px 0 #176b67}.primary-btn:hover{background:#197d77}.outline-btn{background:#fffdf7}.btn-row{flex-wrap:wrap}.primary-btn,.outline-btn{min-height:48px;font-weight:700}.back-link{font-size:16px}.link-btn{font-size:16px;min-height:42px}.eyebrow{font-size:13px}.page-intro{margin-top:10px}.page-intro h2{font-size:clamp(30px,3vw,44px)}
/* The reference's quiet green cards, independent HTML title and original Iskryk. */
.object-hero{position:relative;min-height:calc(100dvh - 118px);display:grid;grid-template-columns:1.15fr 1fr;align-items:center;padding:40px clamp(24px,4vw,72px);gap:24px;background:linear-gradient(130deg,#fffef3,#effaf1 68%,#ddf3ea);border:1px solid #d5e8d9;border-radius:32px;overflow:hidden}.hero-content{position:relative;z-index:1;gap:20px;align-items:flex-start}.hero h1{font-size:clamp(38px,4.7vw,78px);line-height:1.08;letter-spacing:-.045em}.hero h1 span{display:block;color:#20867f}.hero-subtitle{font-size:clamp(24px,2.7vw,42px);color:#916b26}.hero .lead{font-size:clamp(17px,1.5vw,23px);color:#526f73;max-width:540px}.hero .btn-row .primary-btn{min-height:62px;padding:15px 28px;font-size:21px}.home-links{display:flex;flex-wrap:wrap;gap:20px}.home-links .link-btn{color:#376e70}.hero-stats{gap:18px;flex-wrap:wrap}.hero-stats span{font-size:14px;color:#477267}.hero-visual{position:relative;min-height:0;height:min(76dvh,780px);display:grid;place-items:center}.hero-character{position:relative;z-index:1;height:100%;width:100%;max-width:100%;object-fit:contain;object-position:center;transform:none;filter:drop-shadow(0 12px 14px #1b65521c)}.hero-glow{position:absolute;inset:12% 2%;background:radial-gradient(ellipse,#fbeab0,transparent 68%)}.floating-object{position:absolute;z-index:2;display:block;width:clamp(65px,7vw,115px);aspect-ratio:1;background:#ffffffb8;border:2px solid #fff;border-radius:24px;box-shadow:0 10px 20px #38796c17;transform:rotate(-9deg)}.floating-object img{width:100%;height:100%;object-fit:contain}.float-a{left:-1%;top:16%}.float-b{right:-3%;top:35%;transform:rotate(10deg)}.float-c{right:5%;bottom:4%}
.object-preview{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:4px;padding:7px;background:#eaf2e8;border:1px solid #d9e7db;border-radius:14px;width:100%;aspect-ratio:1}.object-preview img{width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;background:#fffdf8;border-radius:6px}.size-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.size-card{padding:20px}.size-card .object-preview{width:100%;max-width:245px}.size-card p{min-height:0}.size-card .size-info{gap:5px}.size-card .size-action{font-size:16px}.size-card h3{font-size:36px}.level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.level-card{background:#fff;border-radius:24px;padding:16px;gap:13px}.level-title strong{font-size:19px}.level-meta{font-size:14px!important;line-height:1.5}.level-go{font-size:16px}.info-note{font-size:15px;line-height:1.6}
/* Same square footprint for every grid size. The target is a separate large image. */
.screen.is-game{padding:12px clamp(12px,2vw,28px) 16px}.game-head{max-width:1460px;margin:0 auto 10px;padding:0;height:49px}.game-head-actions{align-items:center}.game-head-left strong{font-size:20px}.game-head-left small{font-size:13px}.game-head-actions .soft-btn{height:44px;min-width:72px;font-size:15px}.timer-block{padding:7px 12px;height:44px;font-variant-numeric:tabular-nums}.timer-value{font-size:24px}.game-layout{max-width:1460px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-areas:'board target';gap:22px;align-items:stretch}.game-card{grid-area:board;min-width:0;padding:14px 16px;border-radius:26px;justify-content:center}.board{width:var(--board-size);height:var(--board-size);max-width:100%;flex:none;gap:clamp(4px,.55vw,8px);padding:9px;border-radius:22px}.cell{padding:3%;border-radius:clamp(9px,1vw,18px);background:#fffdfa;border:1px solid #d9e6dc;box-shadow:0 3px 0 #d5e5dc;overflow:hidden}.cell img{width:100%;height:100%;object-fit:contain;pointer-events:none;min-width:0;min-height:0}.cell.found{opacity:1;background:#d8f1df;border-color:#76ba95;box-shadow:inset 0 0 0 2px #b0dbc1}.cell.found:after{content:'✓';top:3px;right:3px;background:#267c5a;width:18px;height:18px;color:white;font-family:Rubik,sans-serif;font-size:12px;line-height:18px}.cell.neutral{animation:neutral .22s ease}@keyframes neutral{50%{background:#eaf0ed}}.game-bottom{max-width:100%;width:var(--board-size);margin-top:10px;gap:6px}.game-progress-line{font-size:14px}.track{height:8px}.coach-panel{grid-area:target;display:flex;padding:18px;gap:12px;justify-content:space-between;background:linear-gradient(170deg,#fffdf1,#f0faf4);border-radius:26px}.sample-wrap{display:flex;flex-direction:column;align-items:center;width:100%;gap:10px}.sample-label{font-size:14px;color:#647f75;font-weight:600}.target-picture{width:min(100%,210px);aspect-ratio:1;border:3px solid #eabd57;background:#fff7d8;border-radius:27px;padding:8px;box-shadow:0 5px 0 #ead6a5}.target-image{width:100%;height:100%;object-fit:contain;display:block}.sample-wrap h2{font-size:clamp(21px,1.6vw,28px);line-height:1.15;text-align:center}.coach-character{height:clamp(115px,23dvh,240px);width:100%;object-fit:contain;flex-shrink:1;min-height:0}.coach-bubble{font-size:15px;line-height:1.4;width:100%;min-height:45px;margin:0}.coach-actions{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}.coach-actions .outline-btn{width:auto}.coach-actions .link-btn{font-size:14px}.repeating{animation:sample-repeat .65s ease}@keyframes sample-repeat{50%{box-shadow:0 0 0 7px #f6c75c60}}
.finish{max-width:1080px}.finish-head{grid-template-columns:250px 1fr}.mini-summary{max-width:none}.finish-copy>p{font-size:17px}.finish-actions .outline-btn,.finish-actions .primary-btn{font-size:16px}.stat-table{margin-top:22px;gap:16px 24px}.stat-row{grid-template-columns:minmax(130px,1.1fr) minmax(30px,1fr) 98px;font-size:14px}.stat-object{display:flex;align-items:center;gap:8px}.stat-object img{width:40px;height:40px;object-fit:contain}.stat-object span{font-weight:600}.stat-s small{display:block;font-size:12px;font-weight:400;color:#6c8181}.stats-summary .metric small{font-size:14px}.stats-summary .metric strong{font-size:24px}.record-item{grid-template-columns:1.1fr 1fr .8fr auto}.record-item span{font-size:14px}.settings-panel{max-width:650px;margin:35px auto;padding:30px}.settings-panel h2{font-size:32px;margin-bottom:20px}.settings-panel label{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid #deebe4;font-size:20px;cursor:pointer}.settings-panel label small{font-size:14px;display:block;color:#6b8184;margin-top:5px}.settings-panel input{width:28px;height:28px;accent-color:#248b80;flex:none}.settings-panel .subtle{margin:22px 0}.history-clear{margin-top:24px}.dialog{max-width:470px}.dialog .btn-row{flex-direction:column}.dialog button{width:100%;min-height:46px}.dialog h3{font-size:27px}.dialog p{font-size:16px}.dialog .btn-row button{flex:auto}.modal-root{z-index:60}.toast{bottom:12px}
@media (max-width:1100px){.size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.size-card{display:grid;grid-template-columns:1fr 130px;text-align:left}.size-info{align-items:flex-start}.level-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-layout{grid-template-columns:minmax(0,1fr) 240px;gap:14px}:root{--board-size:min(calc(100dvh - 220px),calc(100vw - 335px),720px)}.coach-panel{padding:14px}.target-picture{width:170px}.coach-bubble{font-size:14px}.stat-table{grid-template-columns:1fr}}
@media (max-width:700px) and (orientation:portrait){:root{--board-size:min(calc(100vw - 36px),calc(100dvh - 248px),620px)}.app-header{height:56px}.header-inner{padding:0 12px}.brand-spark{height:36px;width:36px;font-size:23px}.brand-copy strong{font-size:17px}.brand-copy small{font-size:9px}.header-actions{gap:6px}.header-actions .icon-btn{width:39px;height:39px;font-size:22px}.header-home{height:39px;min-width:39px;padding:0 9px}.header-home span:last-child{display:none}.screen{padding:14px;min-height:calc(100dvh - 56px)}.object-hero{min-height:calc(100dvh - 84px);padding:22px 15px 12px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:space-between;text-align:center}.hero-content{gap:10px;align-items:center}.hero h1{font-size:clamp(32px,9vw,49px);line-height:1.06}.hero .eyebrow{font-size:10px}.hero-subtitle{font-size:23px}.hero .lead{font-size:16px;line-height:1.35}.hero .lead br{display:none}.hero .btn-row{justify-content:center;gap:8px}.hero .btn-row .primary-btn{min-height:49px;font-size:18px;padding:9px 20px}.hero .btn-row .outline-btn{min-height:48px}.home-links{gap:20px}.home-links .link-btn{font-size:14px;min-height:35px}.hero-stats{gap:14px;margin:0}.hero-stats span{font-size:12px}.hero-visual{width:100%;height:clamp(170px,35dvh,330px);min-height:0;max-width:350px}.hero-character{height:100%;transform:none;max-width:100%}.floating-object{width:63px;border-radius:17px}.float-a{left:8%;top:10%}.float-b{right:2%;top:25%}.float-c{right:12%;bottom:0}.page-intro h2{font-size:30px}.page-intro p:last-child{font-size:15px}.size-grid{grid-template-columns:1fr;margin:15px 0;gap:12px}.size-card{padding:15px;grid-template-columns:1fr 112px;gap:15px}.size-card h3{font-size:29px}.size-card .size-info{align-items:flex-start}.size-card strong{font-size:17px}.size-card p{font-size:14px}.size-card .size-action{font-size:14px}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.level-card{padding:10px;border-radius:17px;gap:9px}.level-title strong{font-size:16px}.level-title span{font-size:10px}.level-meta{font-size:12px!important}.object-preview{gap:3px;padding:5px;border-radius:10px}.level-go{font-size:14px}.info-note{font-size:14px}.screen.is-game{padding:6px 9px 8px}.game-head{height:40px;margin-bottom:5px}.game-head-left strong{font-size:14px}.game-head-left small{font-size:11px}.game-head-actions{gap:5px}.game-head-actions .soft-btn{min-width:0;font-size:12px;height:36px;padding:0 8px}.game-head-actions .soft-btn:last-child{display:none}.timer-block{padding:4px 7px;height:36px;gap:5px}.timer-value{font-size:20px}.game-layout{display:grid;grid-template-columns:1fr;grid-template-areas:'target' 'board';gap:7px}.coach-panel{display:grid;grid-template-columns:minmax(0,1fr) 64px;grid-template-rows:auto auto;gap:0 6px;padding:6px 9px;border-radius:18px}.sample-wrap{display:grid;grid-template-columns:78px minmax(0,1fr);grid-template-rows:19px auto;gap:0 9px;align-items:center;grid-column:1;grid-row:1/3}.sample-label{grid-column:2;font-size:11px}.target-picture{grid-column:1;grid-row:1/3;width:78px;padding:3px;border-radius:17px;border-width:2px}.sample-wrap h2{grid-column:2;font-size:19px;text-align:left;align-self:start;margin-top:3px;overflow-wrap:normal}.coach-character{display:block;height:72px;grid-column:2;grid-row:1;width:64px}.coach-bubble{display:none}.coach-actions{grid-column:2;grid-row:2;gap:0;justify-content:center}.coach-actions .outline-btn{font-size:11px;min-height:29px;padding:3px 6px;border-radius:8px}.coach-actions .link-btn{display:none}.game-card{padding:8px 6px;border-radius:18px}.board{gap:4px;padding:6px;border-radius:15px}.cell{padding:1px;border-radius:9px}.cell.found:after{width:13px;height:13px;font-size:9px;line-height:13px;top:2px;right:2px}.game-bottom{gap:4px;margin-top:7px}.game-progress-line{font-size:11px;gap:5px}.track{height:6px}.finish-head{grid-template-columns:1fr;padding:20px;text-align:center}.finish-character{height:170px}.finish-copy{align-items:center}.finish-copy h2{font-size:34px}.finish-copy>p{font-size:15px}.big-time strong{font-size:41px}.finish-actions{gap:8px}.finish-actions .outline-btn,.finish-actions .primary-btn{font-size:14px;min-height:44px;padding:8px 12px}.mini-summary{gap:8px}.summary-tile{padding:14px 10px}.summary-tile strong{font-size:18px}.summary-tile small{font-size:12px}.summary-tile span{font-size:14px}.stats-summary{gap:7px}.stats-summary .metric{padding:12px 8px}.stats-summary .metric small{font-size:11px}.stats-summary .metric strong{font-size:18px}.stats-panel{padding:17px 12px}.stat-row{grid-template-columns:minmax(100px,1fr) minmax(20px,1fr) 85px;gap:6px}.stat-object{gap:5px;font-size:12px}.stat-object img{width:32px;height:32px}.stat-s{font-size:12px}.stat-s small{font-size:10px}.record-item{grid-template-columns:1fr auto;padding:13px 10px}.record-item span{font-size:12px}.settings-panel{margin:10px auto}.settings-panel h2{font-size:29px}.settings-panel label{font-size:18px}.settings-panel label small{font-size:13px}}
@media (max-width:370px) and (orientation:portrait){.hero-content{gap:7px}.object-hero{padding:15px 12px 8px}.hero h1{font-size:31px}.hero-subtitle{font-size:20px}.hero .lead{font-size:14px}.hero-visual{height:170px}.hero-stats span{font-size:11px}.home-links .link-btn{min-height:31px;font-size:13px}.brand-copy{display:none}.sample-wrap{grid-template-columns:67px minmax(0,1fr);column-gap:7px}.target-picture{width:67px}.sample-wrap h2{font-size:17px}.coach-panel{grid-template-columns:minmax(0,1fr) 54px}.coach-character{width:54px;height:60px}.coach-actions .outline-btn{min-height:26px;font-size:10px}.sample-label{font-size:10px}.dialog{padding:20px}.dialog h3{font-size:24px}}
@media (orientation:landscape) and (max-height:550px){:root{--board-size:min(calc(100vw - 260px),max(250px,calc(100dvh - 145px)))}.app-header{height:44px}.header-inner{padding:0 15px}.brand-spark{width:32px;height:32px;font-size:22px}.brand-copy strong{font-size:16px}.brand-copy small{display:none}.header-actions .icon-btn,.header-home{width:36px;height:36px;font-size:21px}.header-home span:last-child{display:none}.screen{padding:12px;min-height:calc(100dvh - 44px)}.screen.is-game{padding:5px 12px}.game-head{height:37px;margin-bottom:5px}.game-head-left strong{font-size:15px}.game-head-left small{font-size:11px}.game-head-actions .soft-btn,.timer-block{height:33px;min-width:0;font-size:12px;padding:3px 10px}.timer-value{font-size:20px}.game-layout{grid-template-columns:minmax(0,1fr) 190px;gap:10px;grid-template-areas:'board target'}.game-card{padding:7px}.board{padding:5px;gap:3px;border-radius:15px}.cell{padding:1px;border-radius:8px}.game-bottom{margin-top:6px;gap:3px}.game-progress-line{font-size:11px}.track{height:5px}.coach-panel{display:grid;grid-template-columns:1fr 46px;grid-template-rows:1fr auto;padding:9px;gap:5px;border-radius:18px}.sample-wrap{grid-column:1;grid-row:1/3;gap:5px;justify-content:center}.sample-label{font-size:10px}.target-picture{width:105px;padding:4px;border-radius:18px}.sample-wrap h2{font-size:17px;line-height:1.15}.coach-character{grid-column:2;grid-row:1;width:46px;height:90px;align-self:end}.coach-bubble{display:none}.coach-actions{grid-column:2;grid-row:2;align-self:start}.coach-actions .outline-btn{font-size:10px;min-height:35px;padding:4px}.coach-actions .link-btn{font-size:10px}.object-hero{min-height:calc(100dvh - 68px);padding:22px 30px;gap:12px}.hero h1{font-size:34px}.hero-subtitle{font-size:23px}.hero .lead{font-size:14px}.hero-content{gap:8px}.hero .eyebrow{font-size:10px}.hero .btn-row .primary-btn{min-height:42px;font-size:16px;padding:8px 18px}.hero-visual{height:calc(100dvh - 115px)}.floating-object{width:55px;border-radius:15px}.hero-stats{display:none}.home-links{gap:16px}.home-links .link-btn{font-size:13px;min-height:30px}.size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.size-card{grid-template-columns:1fr 100px;padding:12px}.level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.level-card{padding:8px}.level-title strong{font-size:14px}.level-meta{font-size:11px!important}.level-title span{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* A definite image box prevents intrinsic portrait height from enlarging a grid row. */
.hero-character{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain}
.hero-visual{flex-shrink:0}
@media(min-width:1101px){.coach-character{height:clamp(100px,19dvh,210px)}}
@media(max-width:370px) and (orientation:portrait){
 .hero .btn-row .primary-btn{font-size:17px;padding:9px 14px}
 .hero .btn-row .outline-btn{font-size:15px;padding:9px 10px}
 .object-hero{height:calc(100dvh - 84px);min-height:0;padding:12px 12px 8px;gap:6px}
 .hero-content{gap:5px;flex:none}
 .hero h1{font-size:29px}
 .hero .eyebrow{font-size:9px}
 .hero-subtitle{font-size:18px}
 .hero .lead{font-size:13px}
 .hero .btn-row .primary-btn,.hero .btn-row .outline-btn{min-height:44px}
 .home-links .link-btn{min-height:28px;font-size:12px}
 .hero-stats span{font-size:10px}
 .hero-visual{height:auto;min-height:110px;flex:1 1 110px}
 .floating-object{width:49px;border-radius:14px}
}
