/* NIEKUJ Flight: isolated iframe, shared brand type and controls. */
@font-face{font-family:Mark;src:url('../fonts/markpro-medium.otf')}@font-face{font-family:Mark;src:url('../fonts/markpro-heavy.otf');font-weight:800 1000;font-display:swap}
body{background:transparent;font-family:Mark,system-ui,sans-serif}main{width:100%;padding:0;margin:0}.game{aspect-ratio:auto;height:420px;border:0;border-radius:24px;background:#efecfb}.game.playing{height:570px!important}.cover{background:radial-gradient(ellipse at 75% 35%,#ddd6ff,transparent 65%),#efecfb;isolation:isolate}.cover-art{position:absolute;right:0;top:0;bottom:60px;width:54%;overflow:hidden;z-index:-1}.cover-art img{height:100%;width:auto;max-width:none;position:absolute;right:0;top:0;mix-blend-mode:multiply}.cover-copy{position:absolute;top:29px;left:24px;width:51%;z-index:1}.eyebrow{font-size:9px;line-height:1.3;color:var(--blue);font-weight:900;letter-spacing:1px;display:block;max-width:180px}.cover-copy h1{font-size:clamp(28px,6.6vw,40px);font-weight:900;line-height:1.03;letter-spacing:-1.3px;margin:17px 0 14px}.cover-copy p{font-size:13px;line-height:1.5;color:#6e687d;margin:0;max-width:220px}.cover-controls{position:absolute;bottom:23px;left:24px;right:24px;z-index:2}.levels{position:static;width:100%;height:45px;display:flex;gap:9px;margin-bottom:17px}.levels button,.levels button:nth-child(n){position:static;width:auto;flex:1;height:45px;min-width:0;padding:0 8px;border:1px solid #dcd7f0;border-radius:11px;font-size:14px;box-shadow:0 3px 0 #d7d2eb;background:#fcfbff}.levels button.active{border:2px solid var(--blue);background:#e7e4ff;box-shadow:0 3px 0 #bdb7ed}.start-row{display:flex;align-items:center;gap:15px}.start{position:static;width:auto;flex:1;height:57px;border-radius:12px;font-size:25px;box-shadow:none;background:var(--blue);gap:10px}.start svg{width:24px;height:24px}.start:hover,.primary:hover{background:var(--lime);color:var(--ink);filter:none}.language-switch{position:relative;display:flex;width:105px;height:43px;flex:none;padding:4px;border:1px solid #ded9ed;border-radius:12px;background:#eeebfa}.language-switch i{position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);border-radius:8px;background:#fff;box-shadow:0 2px 5px #4d55f720;transition:transform .18s}.language-switch.is-en i{transform:translateX(100%)}.language-switch button{position:relative;flex:1;border:0;background:transparent;border-radius:8px;font-size:13px;font-weight:900;color:#6e687d}.language-switch button[aria-pressed=true]{color:var(--blue)}.under{padding:12px 14px 0;margin:0;font-size:11px}.under p{line-height:1.5;max-width:75%}.under>span{font-size:9px;max-width:35%;white-space:nowrap}.instruction{font-size:11px;padding:0 12px;margin:12px 0 10px;line-height:1.6}.instruction span{font-size:10px}.board .world{left:0;right:0;bottom:0;top:190px;touch-action:none}.control-strip{display:none}.board .pause{top:18px;right:20px;bottom:auto;width:40px;height:40px;border-radius:11px}.hud{top:21px;left:20px;right:80px;justify-content:flex-start;font-size:11px;gap:7px}.hud span{padding:8px 10px;min-width:54px}.progress{top:75px;left:20px;right:20px;width:auto;height:5px}.question{top:100px;left:20px;right:20px}.question h1{font-size:23px;line-height:1.3;letter-spacing:-.5px}.question p{font-size:11px;line-height:1.4;margin-top:9px}.game.hard .question h1{font-size:20px;line-height:1.35}.game.hard .question p{font-size:10px}.game .board .tile{min-width:50px;height:36px;font-size:18px;padding:0 10px;border-radius:10px;box-shadow:inset 0 1px 2px #fff,0 4px 0 #d7d2eb,0 7px 10px #655a9b20}.game.hard .board .tile{min-width:46px;font-size:17px;padding:0 9px}.game.playing .kmin{width:94px;min-width:94px;max-width:94px;bottom:auto;will-change:left,top}.kmin-shadow{width:80px;height:12px;bottom:auto}.waiting-bay{left:20px;bottom:20px;height:calc(var(--robot-size,94px) + 34px);border-radius:15px}.waiting-bay.is-docked{background:#ffffff55;border-color:#b7b2e1}.waiting-bay span{font-size:9px;bottom:6px;font-weight:800}.feedback{bottom:4px;left:50%;max-width:90%;font-size:10px}.eye-rig.resting:not(.error) .brow{opacity:.6}.eye-rig.drowsy:not(.error) .eye{height:45%;top:35%;border-radius:30%}.eye-rig.sleepy:not(.error) .eye{height:24%;top:51%;border-radius:50%}.eye-rig.asleep:not(.error) .eye{height:3px;top:68%;border-radius:50%;background:#eeedff;transform:rotate(-5deg);box-shadow:none}.eye-rig.asleep .brow{opacity:0!important}.point-burst{font-family:Mark,system-ui,sans-serif;font-weight:950}.dialog h2{font-size:25px}.primary{border-radius:12px}.eye-rig .eye{transition:height .7s,top .7s}
@media(max-width:400px){.cover-copy{left:20px;top:24px;width:65%}.cover-copy h1{font-size:33px}.cover-copy p{font-size:12px;max-width:175px}.cover-art{width:48%;top:55px;bottom:110px;opacity:.95}.cover-controls{left:20px;right:20px;bottom:22px}.cover-art img{height:100%;right:-23px}.levels{gap:7px}.levels button,.levels button:nth-child(n){font-size:13px}.start{font-size:23px;height:54px}.start-row{gap:12px}.language-switch{width:96px}.question h1{font-size:21px}.game.hard .question h1{font-size:18px}.game.playing .kmin{width:78px;min-width:78px;max-width:78px}.game .board .tile{font-size:16px;min-width:44px;height:35px;padding:0 8px}.game.hard .board .tile{font-size:15px;min-width:42px;padding:0 7px}.waiting-bay span{font-size:8px}.under{gap:8px;padding-inline:10px}.under>span{padding:4px 6px;font-size:8px}.under p{font-size:10px;max-width:68%}}
@media(prefers-reduced-motion:reduce){.eye-rig .eye,.language-switch i{transition:none}}

.cover-art img{width:185.2%;min-width:185.2%;height:100%;object-fit:cover;object-position:right center}

.cover-art{-webkit-mask-image:linear-gradient(to right,transparent,#000 18%);mask-image:linear-gradient(to right,transparent,#000 18%)}
@media(max-width:400px){.cover-copy p{max-width:145px;font-size:11px}.cover-art{top:55px;bottom:105px}.cover-copy{z-index:2}}

/* Captions form one centered three-line group. */
.under{display:block;text-align:center;padding:8px 16px 0}.under p{max-width:none!important;margin:0 auto;line-height:1.5}.under>span{display:none}.instruction{margin:6px 0 8px;padding-inline:16px;line-height:1.5}.instruction span{display:block}.cover-art{width:72%;-webkit-mask-image:linear-gradient(to right,transparent 0%,#0002 20%,#0009 48%,#000 78%);mask-image:linear-gradient(to right,transparent 0%,#0002 20%,#0009 48%,#000 78%)}.cover-art img{width:138.9%;min-width:138.9%}.waiting-bay{height:calc(var(--robot-size,94px) + 50px)}.kmin[data-docked=true]{pointer-events:auto;cursor:grab;touch-action:none}.kmin[data-docked=true]:active{cursor:grabbing}.laser-beam{position:absolute;height:2px;background:#ff5267;box-shadow:0 0 5px #ff5267;transform-origin:left center;z-index:7;pointer-events:none;animation:laser-shot .3s linear forwards}.point-burst.penalty{color:#e4415d}.game.paused .laser-beam{animation-play-state:paused}@keyframes laser-shot{0%,45%{opacity:1}100%{opacity:0}}#saveStatus{margin:12px 0;font-size:12px;color:var(--blue)}@media(max-width:400px){.cover-art{width:66%}.cover-art img{width:151.5%;min-width:151.5%}.under{padding-top:7px}.instruction{font-size:10px}}

/* A projectile travels toward its target and shortens without changing thickness. */
.laser-beam{height:3px;animation:none;border-radius:2px;box-shadow:0 0 5px #ff5267;will-change:left,top,width;transform-origin:left center}.under{padding-top:3px}.instruction{margin-top:3px;margin-bottom:7px}@media(max-width:400px){.under{padding-top:3px}}
/* Flight 0.21.3: accepted controls, countdown and safe undocking. */
.game:not(.playing){height:400px}.cover-controls{bottom:14px}.start-row{align-items:center}.start{height:43px;min-height:43px;font-size:23px}.language-switch{height:43px}.levels{margin-bottom:14px}.under{padding-top:0}.instruction{margin-top:2px;margin-bottom:5px}.waiting-bay,.waiting-bay span{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;pointer-events:none}
.game-tools{position:absolute;top:18px;right:20px;z-index:7;display:flex;align-items:center;gap:8px}
.game .board .game-tools .pause,.tempo-toggle{position:static;top:auto;bottom:auto;left:auto;right:auto;width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;border-radius:11px;line-height:0;box-shadow:none}
.game .board .game-tools .pause svg,.tempo-toggle svg{display:block;width:24px;height:24px;overflow:visible;flex:none;margin:0}
.tempo-toggle{border:1px solid #ded9ed;background:#fcfbff;color:var(--blue)}.tempo-toggle:hover{background:var(--lime);color:var(--ink)}.tempo-toggle[aria-expanded=true]{background:#e7e2ff}
.game .board .hud{right:125px}.tempo-panel{position:absolute;z-index:7;top:75px;left:14px;right:14px;padding:22px 22px 17px;border:1px solid #dcd6f1;border-top:0;border-radius:0 0 20px 20px;background:#faf8ff;box-shadow:0 16px 24px #584a8d16;animation:tempo-open .23s ease both}
@keyframes tempo-open{from{opacity:0;transform:translateY(-15px)}to{opacity:1;transform:translateY(0)}}
.tempo-caption{display:flex;justify-content:space-between;align-items:center;gap:12px}.tempo-caption label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;line-height:1.5}.tempo-gauge{width:24px;height:26px;display:grid;place-items:center;line-height:0;overflow:visible;flex:none;color:var(--blue)}.tempo-gauge svg{display:block;width:20px;height:20px;overflow:visible}
#tempoRate{padding:4px 9px;border-radius:7px;background:#e9e5ff;color:var(--blue);font-size:12px;font-weight:900;min-width:43px;text-align:center}
.tempo-track{position:relative;height:46px;isolation:isolate}.tempo-rail{position:absolute;top:22px;left:14px;right:14px;height:4px;border-radius:10px;background:#ded9ed;pointer-events:none}.tempo-rail i{display:block;width:var(--tempo-position,0%);height:100%;border-radius:10px;background:var(--blue);transition:width .18s ease}.tempo-stops{position:absolute;inset:0 14px;pointer-events:none}.tempo-dot{position:absolute;top:18px;width:12px;height:12px;transform:translateX(-50%);border:3px solid #faf8ff;border-radius:50%;background:#b6afcd}.tempo-dot:nth-child(1){left:0}.tempo-dot:nth-child(2){left:50%}.tempo-dot:nth-child(3){left:100%}
#tempoThumb{position:absolute;left:var(--tempo-position,0%);top:9px;width:30px;height:30px;transform:translateX(-50%);border-radius:50%;background:var(--blue);box-shadow:0 0 0 5px #4d55f712,0 3px 5px #4d55f730;display:grid;place-items:center;transition:left .18s cubic-bezier(.2,.8,.2,1)}#tempoThumb::after{content:"";width:8px;height:8px;background:#fff;border-radius:50%}
#tempoRange{position:absolute;inset:0;z-index:3;margin:0;width:100%;height:46px;opacity:0;touch-action:pan-y}.tempo-track:has(#tempoRange:focus-visible){outline:2px solid #a29ab3;outline-offset:3px;border-radius:10px}
.tempo-labels{display:grid;grid-template-columns:1fr 1fr 1fr;font-size:11px;font-weight:800;color:#8a829b;user-select:none}.tempo-labels span:nth-child(2){text-align:center}.tempo-labels span:last-child{text-align:right}.tempo-labels .selected{color:var(--blue)}.tempo-bottom{margin-top:17px;display:flex;align-items:center;justify-content:space-between;gap:10px}#tempoStatus{max-width:55%;font-size:11px;color:#777088;line-height:1.4}#tempoApply{min-height:43px;padding:0 17px;font-size:13px;flex:none}
.countdown{position:absolute;left:0;right:0;top:39%;text-align:center;color:var(--blue);font-weight:950;font-size:110px;line-height:1;letter-spacing:-5px;pointer-events:none;z-index:6}.counting-down .question{opacity:.3}.tiles{transition:opacity .35s ease}.counting-down .tiles,.ejecting .tiles{opacity:0;pointer-events:none}.game .kmin{transition:opacity .25s ease}.counting-down .kmin,.ejecting .kmin{pointer-events:none!important}.kmin[data-docked=true]{cursor:pointer}.eye-rig.waking .eye{animation:kmin-wake .5s ease-in-out infinite!important;background:#f8f8ff!important;height:68%!important;top:17%!important}
@keyframes kmin-wake{0%,35%,100%{transform:scaleY(1) rotate(-4deg)}55%,75%{transform:scaleY(.12) rotate(-4deg)}}
.settings-open .eye-rig.waking .eye,.paused .eye-rig.waking .eye,.settings-open .point-burst,.settings-open .eye-rig.error .eye{animation-play-state:paused!important}
@media(max-width:400px){.game:not(.playing){height:400px}.start{height:43px;font-size:22px}.cover-controls{bottom:14px}.game-tools{right:16px}.game .board .hud{left:16px;right:120px}.tempo-panel{left:10px;right:10px;padding-inline:17px}.tempo-caption label{font-size:12px}#tempoApply{font-size:12px;padding:0 12px}#tempoStatus{font-size:10px}.instruction{margin-top:2px}.countdown{font-size:96px;top:41%}}
@media(prefers-reduced-motion:reduce){.tempo-panel{animation:none}.tempo-rail i,#tempoThumb,.tiles,.game .kmin{transition:none}.eye-rig.waking .eye{animation:none!important}}

/* Keep the illustrated half clear of baked lettering while retaining a soft edge. */
.cover-art{width:56%;-webkit-mask-image:linear-gradient(to right,transparent,#0004 18%,#000 48%);mask-image:linear-gradient(to right,transparent,#0004 18%,#000 48%)}.cover-art img{width:178.58%;min-width:178.58%}@media(max-width:400px){.cover-art{width:56%}.cover-art img{width:178.58%;min-width:178.58%}}

/* Empty parts of the front tile layer must pass clicks to Kmin. */
.tiles{pointer-events:none}.tiles .tile{pointer-events:auto}.counting-down .tiles .tile,.ejecting .tiles .tile{pointer-events:none}

/* Flight4: three dock visits and an immediate safe exit. */
.waiting-bay{pointer-events:auto;cursor:pointer}.waiting-bay.is-spent{cursor:default;border-color:#d6d1e4;background:#ffffff20}.waiting-bay:focus-visible{outline:2px solid #aaa2c6;outline-offset:4px}
.dock-meter{position:absolute;top:-24px;left:1px;right:1px;display:flex;align-items:center;justify-content:space-between;gap:5px;height:16px;color:var(--blue);pointer-events:none;font-size:9px;line-height:1;letter-spacing:.7px;font-weight:900}.dock-meter b,.dock-meter strong{font-weight:900}.dock-meter strong{letter-spacing:0}.dock-charges{display:flex;align-items:center;gap:4px}.dock-charges i{width:13px;height:5px;border-radius:3px;background:var(--blue);box-shadow:0 1px 3px #4d55f720;transition:background .2s,box-shadow .2s}.dock-charges i.spent{background:#d6d1e4;box-shadow:none}.waiting-bay.is-spent .dock-meter{color:#8c849e}.ejecting .tiles{transition:none}.ejecting .eye-rig .eye{animation:none}
@media(max-width:400px){.dock-meter{font-size:8px;gap:4px}.dock-charges{gap:3px}.dock-charges i{width:11px}.tempo-labels{font-size:10px}}

/* Mobile: trim half of the 128px dock from the playfield. */
@media(max-width:400px){.game.playing{height:506px!important}}

/* Flight5: readable upper feedback and a working compact restart action. */
.game .board .feedback{top:174px;bottom:auto;left:16px;right:16px;transform:none;width:auto;max-width:none;padding:9px 12px;border-radius:12px;font-size:11px;line-height:1.45;text-align:center;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;z-index:6}
.small-primary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 17px;margin:12px auto 0;border:0;border-radius:10px;background:var(--blue);color:#fff;font-size:12px;font-weight:850;line-height:1.25;cursor:pointer}.small-primary:hover{background:var(--lime);color:var(--ink)}
@media(max-width:400px){.game .board .feedback{left:12px;right:12px;font-size:11px}}

/* Flight6: approved workshop artwork, content-width feedback and roomier footer. */
.game.playing>.board{background:#efecfb url('assets/pracownia.webp') right 57% / cover no-repeat}
.game .board .progress { height: 2px; background: #d3cbed; }
.game .board .progress > i { background: #8d85d2; }
.game-footer{display:contents}
main:has(>.game.playing){height:620px;display:flex;flex-direction:column}
main:has(>.game.playing)>.game{height:auto!important;flex:1 1 0;min-height:0;border-radius:24px 24px 0 0}
main:has(>.game.playing)>.game-footer{display:block;flex:none;padding:10px 16px;background:#efecfb;border-radius:0 0 24px 24px;text-align:center;color:#827995}
.game.playing~.game-footer .under{padding:0!important}
.game.playing~.game-footer .under p{font-size:11px;line-height:1.6;margin:0}
.game.playing~.game-footer .instruction{font-size:11px;line-height:1.6;padding:0;margin:4px 0 0}
.game.playing~.game-footer .instruction span{font-size:11px;line-height:1.6}
.game .board .feedback{left:50%;right:auto;width:max-content;max-width:calc(100% - 32px);transform:translateX(-50%);padding:8px 16px;line-height:1.45;margin:0}
@media(max-width:400px){.game.playing~.game-footer{padding-right:12px;padding-left:12px}.game .board .feedback{left:50%;right:auto;width:max-content;max-width:calc(100% - 24px);padding-left:16px;padding-right:16px}}

/* Cover: keep gameplay-only instructions out of the pregame footer. */
.game:not(.playing)~.game-footer .instruction span,.game:not(.playing)~.game-footer .instruction br{display:none}
