@font-face{font-family:Tektur;src:url(fonts/Tektur-Regular.ttf) format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Tektur;src:url(fonts/Tektur-Medium.ttf) format('truetype');font-weight:500 800;font-display:swap}
:root{--bg:#000;--graphite:#12151c;--gray:#9aa4b8;--white:#f5f7fb;--navy:#0b1838;--blue:#2f6bff;--ice:#8fb4ff;
--line:#ffffff1f;--m0:#2a3142;--m1:#1c346f;--m2:#2552bd;--m3:#4d86ff;--disp:Tektur,-apple-system,sans-serif;
--glass:linear-gradient(155deg,#ffffff1c 0%,#ffffff08 36%,#0b183866 100%);
--edge:inset 0 1px 0 #ffffff38,inset 1px 0 0 #ffffff14,inset 0 -1px 0 #8fb4ff22,0 18px 44px #0008}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{background:#04101a url(ocean.jpg) center/cover fixed;color-scheme:dark}
body{color:var(--white);font:16px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;-webkit-text-size-adjust:100%;font-synthesis:none}
body.locked{overflow:hidden}
#bg{object-fit:cover;filter:hue-rotate(14deg) saturate(1.06) brightness(1.05)}
#bg,#photo,#veil{position:fixed;left:0;top:0;width:100%;height:100lvh;pointer-events:none;z-index:-3}
#bg[hidden],#photo[hidden]{display:none}
#photo{background:center/cover no-repeat;filter:grayscale(1) contrast(1.08) brightness(.72);animation:drift 38s ease-in-out infinite alternate}
#veil{z-index:-2;background:linear-gradient(180deg,#02040a66 0,#02040a1f 30%,#02040a40 62%,#02040acc 100%)}
@keyframes drift{from{transform:scale(1.04)}to{transform:scale(1.16) translate(-2%,-1.5%)}}
button,input{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer;touch-action:manipulation}
button:disabled{opacity:.4;cursor:default}
:focus-visible{outline:2px solid var(--ice);outline-offset:2px}
main{max-width:520px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 190px)}
header{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:18px}
h1,.hero h2,.num,.stats b,.facts b,.ring b,.big,#timer b,.stepper input,.log b{font-family:var(--disp);font-weight:500}
h2,h3,h4,.combo b,.tile b,.xp b{font-weight:650;letter-spacing:-.012em}
h1{font-size:34px;line-height:1.08;text-shadow:0 2px 24px #000a}
header>div:first-child::after{content:"";display:block;width:64px;height:2px;margin-top:9px;background:linear-gradient(90deg,var(--ice),#0000)}
header p{color:#d3d9e6;font-size:14px;margin-top:4px;text-shadow:0 1px 10px #000}
header p::first-letter{text-transform:uppercase}
h2{font-size:20px;line-height:1.25}h3{font-size:16px;line-height:1.3}
.sec{display:flex;align-items:center;gap:12px;margin:28px 2px 12px;text-shadow:0 1px 14px #000}
.sec::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--ice),#8fb4ff00)}
.muted{color:var(--gray);font-size:14px}.center{text-align:center}
.kicker{color:var(--ice);font-size:13px;font-weight:600;margin-bottom:6px}
a{color:var(--ice);font-size:14px}

/* Liquid Glass */
:root{--glass:linear-gradient(168deg,#ffffff17 0%,#ffffff06 30%,#05080f8c 100%);--edge:inset 0 1px 0 #ffffff2b,inset 0 0 22px #ffffff08,0 20px 50px #0009;--line:#ffffff1c}
.card,.hero,.combo,.tile,.stats div,.note,nav,.seg,.msg p{background:var(--glass);-webkit-backdrop-filter:blur(26px) saturate(150%);backdrop-filter:blur(26px) saturate(150%);box-shadow:var(--edge);border:1px solid var(--line)}
.card,.hero,.combo,.tile{position:relative}
.card{display:block;width:100%;border-radius:22px;padding:16px;margin-bottom:12px;text-align:left}
.card.sel{border-color:#8fb4ffaa}
.card h2{margin-bottom:8px}.card a{display:inline-block;margin-top:8px}
.tip h3{color:var(--white)}.tip p{color:#cdd5e6;font-size:14px;margin-top:6px}

.hero{border-radius:30px;padding:20px;margin-bottom:14px;overflow:hidden}
.hero h2{font-size:28px;line-height:1.14;margin-bottom:6px}.hero .muted{color:#c3cde4}
/* кнопки */
.cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin-top:16px;padding:0 20px;border-radius:999px;font-size:17px;font-weight:650;letter-spacing:-.01em;color:#fff;border:1px solid #ffffff2e;
background:linear-gradient(180deg,#3d78fb,#2157d9);box-shadow:inset 0 1px 0 #ffffff59,inset 0 -1px 0 #00000040,0 8px 26px #1c4fd066}
.cta:active{filter:brightness(.9)}.cta:disabled{background:#ffffff12;box-shadow:none;border-color:var(--line)}
.btn,.ic,.wide,.chips button,.scroll button,.stepper button{background:linear-gradient(180deg,#ffffff1a,#ffffff0b);border:1px solid #ffffff1f;box-shadow:inset 0 1px 0 #ffffff24,0 4px 14px #0004;color:var(--white)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;min-width:46px;padding:0 18px;border-radius:999px;font-weight:600;font-size:14.5px;white-space:nowrap}
.btn.solid{background:linear-gradient(180deg,#fff,#dde4f2);color:#07101f;border-color:#fff;box-shadow:inset 0 -1px 0 #0b183826,0 6px 18px #0006}
.btn.on{background:#2f6bff38;border-color:#8fb4ff99}
.btn.round{width:46px;padding:0;flex:none}.btn.ghost{margin-left:auto;color:#b6bfd1}
svg.i{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dots{display:flex;align-items:center;gap:6px;margin-top:16px;font-size:13px;color:#c3cde4}
.dots i{width:22px;height:4px;border-radius:2px;background:#ffffff26}.dots i.on{background:var(--white)}.dots span{margin-left:auto}
.xp{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.xp div{height:6px;background:#ffffff1c;border-radius:3px;overflow:hidden}.xp i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--ice))}
.xp small{grid-column:2;color:var(--gray);font-size:12px;text-align:right}

/* 3D-сцена */
.stage{position:relative;margin:12px 0 0;border-radius:18px;background:radial-gradient(ellipse 70% 55% at 50% 62%,#2f6bff30,#0000 70%),linear-gradient(180deg,#00000030,#00000070);border:1px solid #ffffff14;overflow:hidden}
.stage canvas{display:block;width:100%;height:auto;aspect-ratio:6/5}.stage.big{padding-bottom:16px}
.stage canvas.big{touch-action:pan-y;cursor:grab}
.stage small{position:absolute;left:0;right:0;bottom:2px;text-align:center;font-size:11px;color:#9aa4b8aa;pointer-events:none}
.hero .stage{border:0;background:radial-gradient(ellipse 60% 50% at 50% 64%,#2f6bff40,#0000 70%);margin:4px -8px 0}
.stage.mini{flex:none;width:108px;margin:0;border-radius:14px}
.card.list{display:flex;gap:12px;align-items:center;padding:12px}.card.list>span{display:block;min-width:0}

.row{display:flex;justify-content:space-between;align-items:center;gap:8px}.row h2{margin:0}.row h2::first-letter{text-transform:uppercase}
.line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.chips.tight{margin:0;gap:6px;flex-wrap:nowrap}
.chips button,.scroll button{min-height:44px;min-width:44px;padding:0 17px;border-radius:999px;font-weight:550}
.chips.tight button{padding:0 8px}
.chips button.on,.scroll button.on,.seg button.on,.wide.on{background:linear-gradient(180deg,#fff,#dde4f2);color:#07101f;border-color:#fff;box-shadow:0 4px 14px #0006}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:10px;text-align:center}
.cal b{color:var(--gray);font-size:12px;font-weight:500;padding:4px 0}
.cal button{aspect-ratio:1;border-radius:12px;font-size:15px;font-variant-numeric:tabular-nums}
.cal button.now{box-shadow:inset 0 0 0 1.5px var(--white)}.cal button.hit{background:linear-gradient(180deg,#5586ff,#2455d6);box-shadow:0 0 14px #2f6bff88;font-weight:700}
.ic{min-width:44px;min-height:44px;border-radius:999px;font-size:20px;margin-left:6px}
.seg{display:flex;border-radius:999px;padding:4px;gap:4px;margin-bottom:12px}
.seg button{flex:1;min-height:42px;border-radius:999px;border:1px solid #0000;font-weight:600;font-size:15px;padding:0 6px}
.seg.small{margin:0;flex:none}.seg.small button{min-height:36px;min-width:42px;font-size:13px}
.card .seg{background:#0005}
.combo{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border-radius:22px;padding:17px 16px;margin-bottom:12px}
.combo.best{border-color:#2f6bffaa;background:linear-gradient(150deg,#2f6bff55,#0b183899 60%)}
.combo b{display:block;font-size:17px}.combo small{display:block;color:var(--gray);font-size:13px;margin-top:3px}.combo.best small{color:#c8d4f2}
.combo em{font-style:normal;font-size:28px;color:var(--ice)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{border-radius:18px;padding:14px;text-align:left;min-height:74px;overflow:hidden}
.tile b{display:block}.tile small{color:var(--gray);font-variant-numeric:tabular-nums}
.tile.on{background:linear-gradient(180deg,#fff,#dde4f2);color:#07101f;border-color:#fff}.tile.on small{color:#39465f}
.exhead{display:flex;gap:12px}.num{flex:none;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#ffffff14;border:1px solid #ffffff2b}
.exhead strong{color:var(--white)}.up{color:var(--ice);font-weight:800}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.badge{font-size:12px;padding:3px 9px;border-radius:99px;border:1px solid var(--line);color:#c2cadb;background:#0004}
.badge.pro{border-color:#2f6bff99;color:#dbe6ff;background:#2f6bff22}
.btns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.btns.center{justify-content:center}.btns.spread{justify-content:space-between}
.btns button{min-height:44px;min-width:44px;padding:0 15px;border-radius:14px;font-weight:600;font-size:14px}
.btns .ghost{margin-left:auto;background:none;border-color:#0000;box-shadow:none;color:var(--gray)}
.wide{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;border-radius:999px;font-weight:600;margin-top:10px;text-decoration:none;text-align:center;padding:8px 12px}
.card a.wide{display:flex;color:var(--white)}
.link{display:block;margin:12px auto 0;min-height:44px;color:#c3cad8;text-decoration:underline;font-size:14px;text-shadow:0 1px 8px #000}
.bar{display:flex;gap:5px;margin-bottom:12px}.bar button{flex:1;height:30px;position:relative}
.bar button::after{content:"";position:absolute;left:0;right:0;top:13px;height:4px;border-radius:2px;background:#ffffff2e}
.bar button.full::after{background:var(--m2)}.bar button.cur::after{background:var(--white)}
.now h2{font-size:23px;margin-bottom:2px}.cue{margin-top:12px;font-size:15px;color:#cdd5e6}
.note{font-size:14px;color:#dbe3f5;border-radius:18px;padding:12px 14px;margin-bottom:12px}
.log{list-style:none;margin-bottom:12px;border-radius:20px;background:#05070baa;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line);overflow:hidden}
.log li{display:flex;align-items:center;gap:14px;min-height:52px;padding:0 6px 0 16px;border-bottom:1px solid var(--line);color:var(--gray)}.log li:last-child{border:0}
.log li span{width:16px}.log li b{flex:1;font-variant-numeric:tabular-nums;font-size:18px}.log li.ok{color:var(--white)}.log li.ok span{color:var(--ice)}.log li.cur{background:#2f6bff26;color:var(--white);box-shadow:inset 3px 0 0 var(--blue)}
.stepper{margin-bottom:12px}.stepper label,.lab{display:block;color:var(--gray);font-size:14px;margin:4px 0 8px}
.stepper>div{display:grid;grid-template-columns:72px 1fr 72px;gap:8px}
.stepper button{min-height:64px;border-radius:22px;font-size:30px}
.stepper input{width:100%;min-width:0;text-align:center;background:#000a;border:1px solid #2f6bff77;border-radius:18px;font-size:32px;box-shadow:inset 0 0 22px #2f6bff30}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.stats div{border-radius:18px;padding:16px 8px;text-align:center}.stats b{display:block;font-size:25px}.stats small{color:#c3cde4;font-size:12px}
.big{font-size:24px}.stage.big,canvas.big{font-size:16px}
.chart{width:100%;margin-top:8px;overflow:visible}.chart polyline{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linejoin:round;filter:drop-shadow(0 0 5px var(--blue))}.chart circle{fill:var(--white)}
.chart .goal{stroke:var(--gray);stroke-dasharray:4 4}.chart text{fill:var(--gray);font-size:10px}
.inline{display:flex;gap:8px;margin-top:10px}.inline input{flex:1;min-width:0}
input[id=neww],.field input{background:#0008;border:1px solid var(--line);border-radius:14px;min-height:48px;padding:0 14px}
.inline button{background:linear-gradient(180deg,#3d78fb,#2157d9);border-radius:999px;padding:0 16px;font-weight:600}
.field{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}.field:last-child{border:0}.field input{width:100px;text-align:right}
.file input{position:absolute;opacity:0;width:1px;height:1px}.file:focus-within{outline:2px solid var(--ice)}
.body{display:flex;justify-content:center;gap:18px;margin:10px 0}.body svg{width:42%;max-width:150px;filter:drop-shadow(0 0 10px #2f6bff33)}
.meter{display:grid;grid-template-columns:105px 1fr 46px;align-items:center;gap:10px;font-size:14px;margin-top:9px}
.meter div{height:6px;border-radius:3px;background:#ffffff1c;overflow:hidden}.meter i{display:block;height:100%;background:linear-gradient(90deg,#1b3f9f,var(--blue),var(--ice))}.meter b{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.rec{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 0;border-bottom:1px solid var(--line)}.rec .chart{grid-column:1/-1;max-height:60px}
details{border-bottom:1px solid var(--line);padding:4px 0}summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}details p{padding:3px 0}
.scroll{display:flex;gap:8px;overflow-x:auto;margin:0 -16px 14px;padding:0 16px 2px;scrollbar-width:none}.scroll button{flex:none;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}

/* плаваюча навігація */
nav{position:fixed;z-index:3;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 8px);max-width:496px;margin:0 auto;display:flex;border-radius:30px;padding:6px}
nav .pill{position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px)/5);transform:translateX(calc(var(--i,0)*100%));border-radius:24px;background:#ffffff1f;box-shadow:inset 0 1px 0 #ffffff4d,inset 0 0 14px #ffffff14}
nav button{position:relative;flex:1;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#b4bccd;font-size:10.5px}
nav button.on{color:var(--white)}
nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#timer{position:fixed;z-index:4;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 86px);max-width:496px;margin:0 auto;display:flex;align-items:center;gap:8px;border-radius:24px;padding:10px 12px 13px 18px;overflow:hidden;background:linear-gradient(160deg,#3d76ffe6,#122d7ae6);border:1px solid #b9d0ff66;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:inset 0 1px 0 #fff6,0 12px 36px #2f6bff77}
#timer::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:calc(var(--p,1)*100%);background:var(--white);box-shadow:0 0 12px #fff;transition:width .5s linear}
#timer[hidden],#toast[hidden]{display:none}
#timer div{margin-right:auto}#timer small{display:block;font-size:12px;opacity:.85}#timer b{font-size:31px;line-height:1.1;font-variant-numeric:tabular-nums}
#timer button{min-height:44px;padding:0 16px;border-radius:999px;background:#0005;border:1px solid #fff3;font-weight:600;font-size:14px}
#toast{position:fixed;z-index:9;top:calc(env(safe-area-inset-top) + 10px);left:50%;transform:translateX(-50%);background:#f5f7fbf2;color:#000;border-radius:16px;padding:10px 16px;font-weight:600;font-size:14px;max-width:90%;width:max-content}
.scrim{position:fixed;inset:0;z-index:5;background:#000a;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.sheet{position:fixed;z-index:6;left:0;right:0;bottom:0;max-width:520px;margin:0 auto;height:94vh;height:94dvh;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(170deg,#161c2a,#07090f 38%,#050813);border:1px solid var(--line);border-bottom:0;border-radius:34px 34px 0 0;padding:0 16px calc(env(safe-area-inset-bottom) + 28px)}
.sheet.day{height:auto;max-height:90dvh}
.sheetbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;margin:0 -16px;padding:12px 16px 8px;background:linear-gradient(180deg,#121724 55%,#12172400)}
.sheet h2{margin-bottom:6px}.sheet .kicker{margin-top:14px}.sheet .card{-webkit-backdrop-filter:none;backdrop-filter:none}
.cta.stick{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 6px);z-index:2}
.viewbar{margin-top:10px;margin-bottom:0}
.facts{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0 4px;border-block:1px solid var(--line)}.facts div{text-align:center;padding:12px 4px}.facts div+div{border-left:1px solid var(--line)}.facts b{display:block;font-size:20px}.facts small{color:var(--gray);font-size:12px}
.prose h4,.tech h4{font-size:15px;margin:18px 0 8px}.prose p,.tech p{color:#d3dae8;font-size:15px}
.steps{list-style:none;counter-reset:s}.steps li{counter-increment:s;position:relative;padding:0 0 12px 40px;color:#d3dae8;font-size:15px}.steps li::before{content:counter(s);position:absolute;left:0;top:-3px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#2f6bff33;border:1px solid #8fb4ff66;font-size:13px;color:#fff}.steps li:not(:last-child)::after{content:"";position:absolute;left:13px;top:27px;bottom:2px;width:1px;background:#8fb4ff44}
.errs{list-style:none}.errs li{position:relative;padding:0 0 8px 20px;color:#d3dae8;font-size:15px}.errs li::before{content:"";position:absolute;left:2px;top:9px;width:9px;height:2px;background:#ff8f8f}
.tech{margin-top:12px;border:0;border-top:1px solid var(--line);padding:0}.tech summary{justify-content:space-between;font-weight:600;font-size:14.5px;list-style:none}.tech summary::after{content:"+";font-size:22px;font-weight:300;color:var(--ice)}.tech[open] summary::after{content:"−"}.tech summary::-webkit-details-marker{display:none}.tech[open]{padding-bottom:6px}.tech h4:first-of-type{margin-top:4px}
.figbtn{display:block;width:100%;text-align:left}
.strip{display:flex;gap:8px;margin-top:12px}.strip .stage{flex:1;width:auto}
.pickrow{display:flex;gap:12px;align-items:flex-start;padding:12px}.pickrow .figbtn{width:104px;flex:none}.pickrow .stage{width:104px}.pickrow>div{min-width:0;flex:1}.pickrow .btns .btn{min-height:40px;padding:0 14px;font-size:13.5px}
/* щоденник */
.progressline{height:3px;border-radius:2px;background:#ffffff1f;margin:-4px 0 16px;overflow:hidden}.progressline i{display:block;height:100%;background:var(--white);transition:width .4s}
.chat{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.msg{display:flex;max-width:88%}.msg p{padding:12px 15px;border-radius:22px 22px 22px 6px;font-size:15.5px;color:#e6ebf6}.msg strong{color:#fff}
.msg.me{align-self:flex-end}.msg.me p{background:linear-gradient(180deg,#3d78fb,#2157d9);border-color:#ffffff33;border-radius:22px 22px 6px 22px;color:#fff}
.msg.last p{font-size:19px;font-weight:600;padding:16px 18px}
.replies{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:6px}.replies .btn{min-height:52px;padding:0 22px;font-size:16px}
.readiness,.entryrow{display:flex;align-items:center;gap:14px}.readiness h3{margin-bottom:2px}
.ring{--v:0;flex:none;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(closest-side,#0b101c 79%,#0000 81%),conic-gradient(var(--ice) calc(var(--v)*1%),#ffffff1f 0)}.ring b{font-size:19px}
textarea{width:100%;margin-top:10px;resize:vertical;min-height:84px;background:#0007;border:1px solid var(--line);border-radius:18px;padding:12px 14px;color:var(--white);font:inherit}
.sheet.still{animation:none!important}

@media (prefers-reduced-motion:no-preference){
  .enter>*{animation:rise .5s cubic-bezier(.2,.8,.2,1) backwards}
  .enter>*:nth-child(2){animation-delay:.05s}.enter>*:nth-child(3){animation-delay:.1s}.enter>*:nth-child(4){animation-delay:.15s}.enter>*:nth-child(5){animation-delay:.2s}.enter>*:nth-child(n+6){animation-delay:.25s}
  .enter header>div:first-child::after{animation:grow .8s .15s cubic-bezier(.2,.8,.2,1) backwards}
  .enter .meter i,.enter .xp i{animation:fill 1s .25s cubic-bezier(.2,.8,.2,1) backwards}
  nav .pill{transition:transform .45s cubic-bezier(.3,1.35,.5,1)}
  .sheet{animation:up .36s cubic-bezier(.2,.9,.25,1)}.msg.last,.replies{animation:rise .4s cubic-bezier(.2,.9,.25,1) backwards}.replies{animation-delay:.1s}
  .log li.new{animation:hit .9s ease-out}
  #timer:not([hidden]){animation:rise .4s cubic-bezier(.2,.9,.25,1)}
  button{transition:transform .18s cubic-bezier(.3,1.6,.5,1),background-color .15s}button:active{transform:scale(.96)}
}
@media (prefers-reduced-motion:reduce){#photo{animation:none}}
@keyframes rise{from{opacity:0;transform:translateY(18px)}}
@keyframes grow{from{width:0}}
@keyframes fill{from{width:0}}
@keyframes up{from{transform:translateY(60px);opacity:0}}
@keyframes sheen{0%,55%{left:-50%}85%,100%{left:130%}}
@keyframes hit{0%{background:#8fb4ffcc;transform:scale(1.025)}100%{background:#0000}}
.card.ex .btns{flex-wrap:nowrap;gap:8px}
.card.ex .btns .btn{flex:1;padding:0 10px;min-width:0}
.card.ex .btns .btn.round{flex:none;width:46px;padding:0;margin-left:0}

/* світла «студія» для фігурки, щоб лінії були чіткими */
.stage,.hero .stage,.maps figure{background:radial-gradient(ellipse 80% 70% at 50% 42%,#ffffff 0%,#e8edf7 55%,#c6d0e6 100%);border:1px solid #fff;box-shadow:inset 0 -18px 34px #8fa3cf3d}
.hero .stage{margin:14px 0 0}
.stage small{color:#46557ab8}
.maps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.maps figure{border-radius:18px;overflow:hidden;text-align:center}.maps canvas{display:block;width:100%;height:auto;aspect-ratio:5/9}.maps figcaption{color:#33415f;font-size:12px;font-weight:600;padding-bottom:7px}
.mchips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:6px}.mchips button{display:flex;align-items:center;gap:10px;min-height:50px;padding:7px 12px;border-radius:16px;background:#ffffff0f;border:1px solid var(--line);text-align:left;font-size:13.5px;font-weight:600;line-height:1.2}
.mchips button.on{background:#2f6bff3d;border-color:#8fb4ff}.mchips i{flex:none;width:16px;height:16px;border-radius:50%;background:var(--c);border:2px solid #0b1838;box-shadow:0 0 0 1px #ffffff40}.mchips small{display:block;color:var(--gray);font-weight:400;font-size:11.5px}
.tools{display:flex;align-items:center;gap:8px}.btn.help{width:44px;min-width:44px;min-height:44px;font-size:18px}
.flow{list-style:none;display:flex;gap:6px;margin:0 0 14px}.flow li{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border-radius:999px;background:#05080fb8;border:1px solid var(--line);color:var(--gray);font-size:13px;font-weight:600}
.flow i{font-style:normal;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#ffffff1c;font-size:11px}.flow .cur{color:#07101f;background:#fff;border-color:#fff}.flow .cur i{background:#2f6bff;color:#fff}.flow .done{color:var(--white)}.flow .done i{background:#2f6bff}
.todo{list-style:none;counter-reset:t;margin-top:12px}.todo li{counter-increment:t;border-bottom:1px solid var(--line)}.todo button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;text-align:left;font-size:14.5px}.todo button::before{content:counter(t);flex:none;width:20px;color:var(--ice);font-weight:700}.todo span{flex:1}.todo em{font-style:normal;color:var(--gray);font-size:13px;white-space:nowrap}
.exrow{display:flex;gap:13px;align-items:center;width:100%;text-align:left}.exrow .stage{width:128px;flex:none}.exrow>span{min-width:0}.exrow small{color:var(--ice);font-size:12px;font-weight:600}.exrow .mus{font-size:12px;color:#aab4ca;margin-top:3px}
.hint{margin:0 2px 12px;color:#c5cee2;text-shadow:0 1px 8px #000}
.lab small{display:block;font-size:12px;color:#8590a8}
.tabhelp{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.tabhelp svg{flex:none;width:24px;height:24px;fill:none;stroke:var(--ice);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.card,.hero,.combo,.tile,.stats div,.note{background:linear-gradient(168deg,#ffffff14 0%,#0a0f1cb8 32%,#05080fd6 100%)}
header{flex-direction:column-reverse;align-items:stretch;gap:10px}
.tools{justify-content:flex-end}.tools .btn.help{margin-right:auto}
#bg{filter:hue-rotate(14deg) saturate(1.1) brightness(1.28)}
#veil{background:linear-gradient(180deg,#02040a3d 0,#02040a0a 30%,#02040a26 62%,#02040ab3 100%)}
.card,.hero,.combo,.tile,.stats div,.note{background:linear-gradient(168deg,#ffffff14 0%,#0a0f1ca6 32%,#05080fc9 100%)}
.card>.xp:first-child{margin:0;padding:0;border:0}

/* дизайн «Океан» */
#bg{overflow:hidden;filter:none}#bg[hidden]{display:none}
#bg i,#bg b{position:absolute;inset:-6%;background:url(ocean.jpg) center 60%/cover no-repeat}
#bg b{background:radial-gradient(60% 18% at 30% 62%,#d9ecf52e,#0000 70%),radial-gradient(55% 14% at 80% 44%,#cfe4f024,#0000 70%),radial-gradient(70% 16% at 40% 86%,#e8f4fa26,#0000 70%)}
@media (prefers-reduced-motion:no-preference){#bg i{animation:swell 22s ease-in-out infinite alternate}#bg b{animation:mist 13s ease-in-out infinite alternate}}
@keyframes swell{0%{transform:scale(1.02) translate3d(0,0,0)}50%{transform:scale(1.09) translate3d(-1.2%,.8%,0)}100%{transform:scale(1.05) translate3d(1%,-.9%,0)}}
@keyframes mist{from{transform:translate3d(-5%,1%,0);opacity:.55}to{transform:translate3d(6%,-1.5%,0);opacity:1}}
#veil{background:linear-gradient(180deg,#02070d66 0,#02070d14 30%,#02070d3d 62%,#02070dbf 100%)}
:root{--disp:"New York",ui-serif,Georgia,serif;--blue:#2f7bff}
h1,.hero h2,.msg.last p,.sheet>h2{font-family:var(--disp);font-weight:650;letter-spacing:-.018em}
h1{font-size:36px}.num,.stats b,.facts b,.ring b,.big,#timer b,.stepper input,.log b{font-family:var(--disp);font-weight:650}
.card,.hero,.combo,.tile,.stats div,.note,.msg p{background:#071524a8;border-color:#ffffff24}
.card::before,.card::after{display:none}.card,.combo{border-radius:20px}
.cta{background:#2f7bff;box-shadow:0 10px 28px #2f7bff55,inset 0 1px 0 #ffffff4d;border-radius:18px}
.replies{flex-direction:column;align-items:stretch}.replies .btn{justify-content:flex-start;min-height:62px;border-radius:18px;font-size:19px;font-family:var(--disp);background:#071524a8}.msg.last p{font-size:30px;line-height:1.1}.msg.last{max-width:100%}.msg.last p{background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:14px 2px 6px}
.sheet{background:linear-gradient(170deg,#0e2438,#05111d 40%,#030a12)}.sheetbar{background:linear-gradient(180deg,#0c2033 55%,#0c203300)}
