/* 🏝️ «Остров на двоих» — стили игры и лендинга (17.10.2026) */
:root{--ink:#3b2f55;--ink2:#7a6d99;--paper:rgba(255,252,247,.95);--pink:#ff7aa8;--pink2:#ff4f8b;--mint:#22c79a;--mint2:#13a982;--vio:#8a6cf0;--sky:#2b86e0;--gold:#ffc531;
  --f-d:'Comfortaa',system-ui,sans-serif;--f:'Onest',system-ui,sans-serif;--r:22px;--sh:0 14px 34px -14px rgba(59,47,85,.45)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;font-family:var(--f);color:var(--ink);background:#bfe3ff}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
.os-game{overflow:hidden;height:100vh;height:100dvh;touch-action:none;user-select:none;-webkit-user-select:none}
#os-cv{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
.os-land #os-cv{position:absolute}

/* ── верх ── */
.os-top{position:fixed;left:0;right:0;top:0;z-index:5;display:flex;align-items:flex-start;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 16px 0;pointer-events:none}
.os-top>*{pointer-events:auto}
.os-name{display:flex;flex-direction:column;align-items:flex-start;padding:10px 18px 9px;border-radius:20px;background:var(--paper);box-shadow:var(--sh);text-align:left;max-width:40vw}
.os-name b{font-family:var(--f-d);font-size:19px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.os-name small{font-size:12px;color:var(--ink2);font-weight:700}
.os-mates{margin:0 auto;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:40px;background:var(--paper);box-shadow:var(--sh)}
.os-mate{position:relative;display:flex;align-items:center;gap:8px;border-radius:30px;padding:0 12px 0 0}
.os-mate img{width:48px;height:48px;object-fit:contain;border-radius:50%;background:radial-gradient(circle at 50% 60%,#fff,#ffe8f1);transition:transform .2s}
.os-mate.me{padding:0}.os-mate.me:hover img{transform:scale(1.08) rotate(-4deg)}
.os-mate b{font-size:14px;font-weight:800;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.os-mate i{position:absolute;left:36px;top:36px;width:13px;height:13px;border-radius:50%;background:#c4bed3;border:2.5px solid #fff}
.os-mate.on i{background:#2fd17a;box-shadow:0 0 0 4px rgba(47,209,122,.25);animation:pulse 2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(47,209,122,0)}}
.os-heart{font-size:18px}
.os-invite{display:flex;flex-direction:column;align-items:flex-start;padding:7px 16px 7px 14px;border-radius:30px;background:linear-gradient(135deg,#ff9ac0,#ff6f9f);color:#fff;box-shadow:0 8px 18px -8px #ff4f8b}
.os-invite b{font-size:14px;font-weight:800}.os-invite small{font-size:11px;opacity:.9}
.os-res{display:flex;gap:8px}
.os-pill{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:30px;background:var(--paper);box-shadow:var(--sh);font-weight:800;font-size:17px;text-decoration:none;color:var(--ink)}
a.os-pill{cursor:pointer;transition:transform .12s,box-shadow .12s}a.os-pill:hover{transform:translateY(-1px);box-shadow:0 6px 16px -8px rgba(59,47,85,.5)}
.os-pill i{font-style:normal;font-size:18px;display:flex;align-items:center;height:18px}
.os-ico{width:50px;height:50px;max-width:50px;max-height:50px;object-fit:contain;display:block;pointer-events:none;flex:0 0 auto}
.os-pill .os-ico{width:18px;height:18px;max-width:18px;max-height:18px}
.bump{animation:bump .4s}
@keyframes bump{40%{transform:scale(1.18)}}

/* ── правые кнопки ── */
.os-side{position:fixed;right:16px;top:50%;transform:translateY(-50%);z-index:5;display:flex;flex-direction:column;gap:10px}
.os-b{position:relative;width:88px;height:92px;border-radius:26px;background:var(--paper);box-shadow:var(--sh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:transform .15s}
.os-b:hover{transform:translateY(-2px) scale(1.04)}.os-b:active{transform:scale(.95)}
.os-b i{font-style:normal;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;height:50px}
.os-b span{font-size:11.5px;font-weight:800;color:var(--ink2)}
.os-b em{position:absolute;top:-5px;right:-5px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;background:var(--pink2);color:#fff;font:800 13px/24px var(--f);font-style:normal;box-shadow:0 4px 10px -3px var(--pink2)}
.os-b em:empty{display:none}.os-b em.g{background:var(--mint)}
.os-b.dream .ring{position:absolute;left:50%;top:10px;width:56px;height:56px;margin-left:-28px;transform:rotate(-90deg)}
.os-b.dream .ring circle{fill:none;stroke:#f1e8ff;stroke-width:3}.os-b.dream .ring .p{stroke:url(#g);stroke:var(--gold);stroke-linecap:round;stroke-dasharray:0 97.4;transition:stroke-dasharray .6s}

/* ── низ: «Полить всё» и «Строить» ── */
.os-bottom{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:5;display:flex;gap:12px;align-items:center}
.os-mode,.os-water{display:flex;align-items:center;gap:10px;height:74px;padding:0 26px 0 16px;border-radius:37px;font-weight:900;font-size:18px;box-shadow:0 14px 30px -12px rgba(59,47,85,.6);transition:transform .15s}
.os-mode{background:linear-gradient(135deg,#9b7dff,#7a5cf0);color:#fff}
.os-mode i,.os-water i{font-style:normal;font-size:22px;display:flex;align-items:center;height:50px}
.os-mode .os-ico,.os-water .os-ico{width:50px;height:50px;max-width:50px;max-height:50px;background:none;padding:0}
.os-water{background:var(--paper)}.os-water.need{background:linear-gradient(135deg,#7fd1ff,#3fa9ee);color:#fff;animation:nudge 2.4s infinite}
@keyframes nudge{0%,80%,100%{transform:none}86%{transform:rotate(-3deg)}92%{transform:rotate(3deg)}}
.os-mode:active,.os-water:active{transform:scale(.95)}
.os-building .os-water,.os-building .os-side{display:none}
.os-building .os-bottom{bottom:auto;top:calc(84px + env(safe-area-inset-top));left:auto;right:16px;transform:none}
.os-building .os-mode{background:linear-gradient(135deg,#3fe0b0,#13a982)}

/* ── стройка ── */
.os-build{position:fixed;left:0;right:0;bottom:0;z-index:6;display:none;align-items:flex-end;gap:12px;padding:0 16px calc(14px + env(safe-area-inset-bottom));pointer-events:none}
.os-building .os-build{display:flex}
.os-build>*{pointer-events:auto}
.os-tools{display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:26px;background:var(--paper);box-shadow:var(--sh);align-self:center;margin-bottom:auto;position:fixed;left:16px;top:50%;transform:translateY(-50%)}
.os-tools button{width:92px;padding:8px 4px 8px;border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:2px;transition:background .15s}
.os-tools button i{font-style:normal;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;height:50px}
.os-tools .os-ico{width:50px;height:50px;max-width:50px;max-height:50px}
.os-tools button span{font-size:12px;font-weight:800;color:var(--ink2)}
.os-tools button:hover{background:#f6f0ff}
.os-tools button.on{background:linear-gradient(135deg,#9b7dff,#7a5cf0);box-shadow:0 8px 18px -8px #7a5cf0}.os-tools button.on span{color:#fff}
.os-tray{flex:1;max-width:1100px;margin:0 auto;border-radius:28px;background:var(--paper);box-shadow:var(--sh);padding:8px 12px 8px}
.os-tray-h{display:flex;align-items:center;gap:8px;padding:0 2px}
.os-tray-h b{font-family:var(--f-d);font-size:16px;line-height:1.15}
.os-tray-h span{flex:1;font-size:13px;color:var(--pink2);font-weight:700;line-height:1.3}
.os-tray-h span:empty{display:none}
.os-shopb{padding:7px 14px;border-radius:20px;background:#fff0f6;color:var(--pink2);font-weight:800;font-size:13px;white-space:nowrap}
.os-items{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 2px;scrollbar-width:thin;scrollbar-color:#d9cdf7 transparent}
.os-items::-webkit-scrollbar{height:6px}.os-items::-webkit-scrollbar-thumb{background:#d9cdf7;border-radius:6px}
.os-it{position:relative;flex:0 0 122px;padding:8px 6px 10px;border-radius:20px;background:#fff;border:2.5px solid #efe8fb;display:flex;flex-direction:column;align-items:center;gap:2px;transition:transform .12s,border-color .12s}
.os-it:hover{transform:translateY(-3px)}
.os-it.on{border-color:var(--mint);box-shadow:0 0 0 4px rgba(34,199,154,.2)}
.os-it .th{width:84px;height:84px;object-fit:contain}
.os-it b{font-size:13.5px;font-weight:800;text-align:center;line-height:1.2}
.os-it small{font-size:11.5px;color:var(--ink2);font-weight:600}
.os-it em{position:absolute;top:6px;right:8px;min-width:24px;height:24px;border-radius:12px;background:var(--ink);color:#fff;font:800 12.5px/24px var(--f);font-style:normal;text-align:center;padding:0 6px}
.os-it.terr .sw{width:84px;height:84px;display:block;clip-path:polygon(50% 18%,100% 50%,50% 82%,0 50%);margin:0 auto}
.os-it.terr .sw-img{width:92px;height:46px;display:block;margin:6px auto 2px;object-fit:contain;
  filter:drop-shadow(0 6px 8px rgba(80,50,40,.18))}   /* 06.11: настоящие плитки вместо плоских ромбиков */
.sw-g{background:linear-gradient(#a2e07c,#7fcf5a)}.sw-p{background:linear-gradient(#f8e6c1,#e9cf9b)}.sw-s{background:repeating-linear-gradient(135deg,#93603f 0 9px,#6e4329 9px 13px)}.sw-w{background:linear-gradient(#a3e1ff,#4fb0e8)}
.os-tip{margin:0;font-size:13.5px;color:var(--ink2);line-height:1.35}
.os-items:has(> .os-tip){display:block;overflow:visible;padding:2px 2px 0}
.os-link{color:var(--vio);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.os-confirm{position:fixed;left:50%;bottom:calc(206px + env(safe-area-inset-bottom));transform:translate(-50%,20px);z-index:7;display:flex;gap:8px;opacity:0;pointer-events:none;transition:.2s}
.os-confirm.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.os-confirm button{height:52px;min-width:52px;padding:0 18px;border-radius:26px;background:var(--paper);box-shadow:var(--sh);font-weight:900;font-size:17px}
.os-confirm .ok{background:linear-gradient(135deg,#3fe0b0,#13a982);color:#fff;padding:0 26px}
.os-confirm .rot{font-size:24px}
@media (pointer:fine){.os-confirm .ok{display:none}}

/* ── пузырь над предметом ── */
.os-bubble{position:fixed;z-index:8;width:250px;transform:translate(-50%,-100%) scale(.9);opacity:0;pointer-events:none;transition:.16s;padding:14px 16px 12px;border-radius:20px;background:rgba(42,32,69,.96);color:#fff;box-shadow:0 18px 36px -12px #000a}
.os-bubble.show{opacity:1;transform:translate(-50%,-100%);pointer-events:auto}
.os-bubble::after{content:'';position:absolute;left:50%;bottom:-6px;width:14px;height:14px;background:inherit;transform:translateX(-50%) rotate(45deg);border-radius:3px}
.os-bubble b{display:block;font-family:var(--f-d);font-size:16px;color:#ffe08a;margin-bottom:4px}
.os-bubble p{margin:0 0 10px;font-size:13.5px;line-height:1.45;opacity:.92}
.os-bubble div{display:flex;gap:6px;flex-wrap:wrap}
.os-bubble button{flex:1;padding:9px 10px;border-radius:14px;background:rgba(255,255,255,.14);font-weight:800;font-size:14px;color:#fff;white-space:nowrap}
.os-bubble button:hover{background:rgba(255,255,255,.24)}
.os-bubble button.g{background:var(--mint)}.os-bubble button.s{flex:0 0 auto}

/* ── всплывашки ── */
.os-toasts{position:fixed;left:50%;top:calc(86px + env(safe-area-inset-top));transform:translateX(-50%);z-index:20;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:min(560px,calc(100vw - 24px))}
.os-toast{display:flex;align-items:center;gap:10px;padding:10px 18px 10px 10px;border-radius:24px;background:rgba(42,32,69,.94);color:#fff;font-weight:700;font-size:14.5px;line-height:1.35;box-shadow:0 14px 30px -12px #000a;opacity:0;transform:translateY(-10px) scale(.96);transition:.3s}
.os-toast.show{opacity:1;transform:none}
.os-toast i{font-style:normal;font-size:22px;width:34px;text-align:center}
.os-toast img{width:38px;height:38px;object-fit:contain;border-radius:50%;background:#fff}
.os-fly{position:fixed;z-index:30;font-size:34px;transform:translate(-50%,-50%) scale(1.3);transition:all .75s cubic-bezier(.5,-0.2,.4,1);pointer-events:none}

/* ── окна ── */
.os-pop{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(40,30,70,.38);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .2s}
.os-pop.show{opacity:1;pointer-events:auto}
.os-pop-c{width:min(560px,100%);max-height:min(86vh,860px);display:flex;flex-direction:column;border-radius:30px;background:#fffaf4;box-shadow:0 30px 70px -20px rgba(40,30,70,.6);transform:translateY(16px) scale(.97);transition:transform .25s;overflow:hidden}
.os-pop.wide .os-pop-c,.os-pop.shop .os-pop-c{width:min(780px,100%)}
.os-pop.menu .os-pop-c{width:min(960px,calc(100% - 48px))}
.os-pop.help .os-pop-c{width:min(1040px,calc(100% - 48px))}
.os-pop.show .os-pop-c{transform:none}
.os-pop-h{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:16px 18px 14px 18px;border-bottom:1.5px solid #f1e9f7;background:#fffaf4}
.os-pop-h b{flex:1;display:flex;align-items:center;gap:12px;min-width:0;font-family:var(--f-d);font-size:21px;line-height:1.15}
.os-pop-h b span{min-width:0}
.os-pop-h b .os-ico{width:50px;height:50px;max-width:50px;max-height:50px}
.os-pop-h .back{display:none;flex:0 0 auto;width:44px;height:44px;border-radius:16px;background:#f4eefb;color:var(--ink);align-items:center;justify-content:center}
.os-pop.back .os-pop-h .back{display:flex}
.os-pop-h .back:hover{background:#efe6ff}
#os-pop-x{display:flex;align-items:center}
#os-pop-x:empty{display:none}
.os-pop-h .os-bal{display:flex;gap:8px;flex:0 0 auto}
.os-pop-h .os-pill{box-shadow:none;background:#fff6d8;padding:8px 12px}
.os-pop-h .os-pill.gem{background:#f1eaff}
.os-pop-h .x{width:42px;height:42px;border-radius:50%;background:#f4eefb;font-size:18px;font-weight:900;color:var(--ink2)}
.os-pop-b{flex:1;overflow-y:auto;padding:18px 24px 24px;scrollbar-width:thin;scrollbar-color:#d9cdf7 transparent}
.os-pop-b::-webkit-scrollbar{width:8px}.os-pop-b::-webkit-scrollbar-thumb{background:#d9cdf7;border-radius:8px;border:2px solid #fffaf4}
.os-p{font-size:15px;line-height:1.55;color:var(--ink);margin:0 0 14px}.os-p.small{font-size:13px;color:var(--ink2)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:12px 22px;border-radius:18px;background:#f1eafc;font-weight:800;font-size:15px;color:var(--ink);text-decoration:none;transition:transform .12s}
.btn:active{transform:scale(.96)}
.btn.pri{background:linear-gradient(135deg,#ff9ac0,#ff5f96);color:#fff;box-shadow:0 10px 22px -10px #ff4f8b}
.btn.red{background:#ffe1e6;color:#d92b4b}.btn.dis{opacity:.45;cursor:default}
.row{display:flex;gap:10px;justify-content:center;margin-top:8px}.row .btn{flex:1}
.os-ask{text-align:center}.os-ask .th-big .th{width:140px;height:140px}
/* мечта */
.os-dream{text-align:center}
.os-dream .art{height:220px;display:flex;align-items:center;justify-content:center;border-radius:24px;background:radial-gradient(circle at 50% 70%,#fff6d8,#e8f4ff 70%);margin-bottom:14px}
.os-dream .art img,.os-dream .art canvas{max-height:210px;max-width:210px}
.os-dream h3,.os-dd h3,.os-basket h3{font-family:var(--f-d);font-size:22px;margin:0 0 8px}
.os-dream .bar{position:relative;height:26px;border-radius:13px;background:#f1eafc;display:flex;overflow:hidden;margin:6px 0 14px}
.os-dream .bar i{height:100%;transition:width .6s}.os-dream .bar .me{background:linear-gradient(90deg,#ff9ac0,#ff6f9f)}.os-dream .bar .mt{background:linear-gradient(90deg,#7fd1ff,#3fa9ee)}
.os-dream .bar span{position:absolute;inset:0;font:800 13px/26px var(--f);color:var(--ink)}
.os-dream .keys{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.os-dream .key{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px;border-radius:20px;background:#fff;border:2px dashed #e6dcf7}
.os-dream .key.ok{border:2px solid var(--gold);background:#fffbea}
.os-dream .key img{width:56px;height:56px;object-fit:contain}.os-dream .key b{font-size:14px}.os-dream .key span{font-size:12.5px;color:var(--ink2);font-weight:700}
.os-dream .key .q{font-size:30px;width:56px;height:56px;line-height:56px;border-radius:50%;background:#f4eefb;color:var(--ink2)}
.os-dream .how{text-align:left;padding:14px 16px;border-radius:18px;background:#f7f3ff;margin-bottom:14px}.os-dream .how b{font-size:14px}.os-dream .how p{margin:3px 0 10px;font-size:13.5px;line-height:1.5;color:var(--ink2)}
/* заботы */
.os-cares{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.care{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:18px;background:#fff;border:2px solid #efe8fb}
.care i{font-style:normal;font-size:24px}.care i img{width:38px;height:38px;display:block;border-radius:9px;box-shadow:0 3px 8px -4px rgba(60,40,90,.35)}
.os-allc i img{width:44px;height:44px;display:block;border-radius:11px;box-shadow:0 4px 10px -5px rgba(60,40,90,.4)}.care b{flex:1;font-size:15px}.care span{font-weight:900;color:var(--ink2)}
.care.ok{background:#eafff6;border-color:#bdf0db}.care.ok span{color:var(--mint2);font-size:20px}
.os-allc{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:20px;background:linear-gradient(135deg,#fff3c4,#ffe0ee)}
.os-allc i{font-style:normal;font-size:30px}.os-allc b{display:block;font-size:14.5px}.os-allc small{font-size:12.5px;color:var(--ink2);font-weight:700}
/* записки */
.os-notes{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
/* 06.11: поле ввода просто сверху — без прилипания, так аккуратнее */
.os-write-top{margin-bottom:14px;padding-bottom:12px;border-bottom:2px dashed #ece3fa}
.os-vals{margin-bottom:12px}
.os-day{font-weight:800;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#b08fa2;margin:6px 2px 0}
.note{display:flex;gap:10px;align-items:flex-end}.note.me{flex-direction:row-reverse}
.note img{width:42px;height:42px;object-fit:contain;border-radius:50%;background:#fff;flex:0 0 auto}
.note .paper{max-width:78%;padding:12px 16px 9px;border-radius:6px 18px 18px 18px;background:#fffdf3;box-shadow:0 6px 16px -10px rgba(59,47,85,.5);transform:rotate(-.8deg);background-image:repeating-linear-gradient(#fffdf3 0 25px,#f0e6cf 25px 26px)}
.note.me .paper{border-radius:18px 6px 18px 18px;transform:rotate(.8deg);background-color:#fff4f8;background-image:repeating-linear-gradient(#fff4f8 0 25px,#f7dbe6 25px 26px)}
.note p{margin:0 0 4px;font-family:var(--f-d);font-size:15.5px;line-height:26px;white-space:pre-wrap;word-break:break-word}
.note small{font-size:11.5px;color:var(--ink2);font-weight:700}
.os-write{display:flex;flex-direction:column;gap:10px}
.os-write label{font-weight:800;font-size:14px;margin-top:4px}
.os-write textarea,.os-write input{width:100%;padding:13px 16px;border-radius:18px;border:2px solid #ece3fa;background:#fff;font:600 16px/1.5 var(--f);color:var(--ink);outline:0;resize:vertical}
.os-write textarea{font-family:var(--f-d)}
.os-write textarea:focus,.os-write input:focus{border-color:var(--pink)}
/* корзинка, мечта сбылась */
.os-basket,.os-dd{text-align:center;position:relative}
.os-basket .big,.os-dd .big{font-size:84px;line-height:1.1;margin:6px 0}
.os-basket .big .os-ico{width:84px;height:84px;max-width:84px;max-height:84px;margin:0 auto}
.os-dd .gift{font-weight:800;color:var(--mint2)}
.os-dd .conf{position:absolute;inset:-20px;pointer-events:none;overflow:hidden}
.os-dd .conf i{position:absolute;left:var(--x);top:-20px;width:9px;height:14px;background:var(--c);border-radius:2px;animation:conf 2.6s var(--d) infinite linear}
@keyframes conf{to{transform:translateY(560px) rotate(720deg)}}
/* лавка */
.os-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.os-tabs button{padding:9px 14px;border-radius:16px;background:#f4eefb;font-weight:800;font-size:14px;color:var(--ink2)}
.os-tabs button.on{background:var(--ink);color:#fff}.os-tabs .os-pill{margin-left:auto;box-shadow:none;background:#fff6d8;font-size:15px;padding:7px 12px}
.os-shop{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.os-shop .card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 12px 14px;border-radius:22px;background:#fff;border:2px solid #f0e9fb;text-align:center}
.os-shop .card .th{width:130px;height:130px;object-fit:contain}
.os-shop .card b{font-size:15.5px}.os-shop .card small{font-size:12.5px;color:var(--ink2);line-height:1.4;min-height:34px}
.os-shop .card em{font-style:normal;font-size:12px;font-weight:800;color:var(--mint2)}
.os-shop .buy{display:flex;gap:6px;margin-top:6px;width:100%}.os-shop .buy .btn{flex:1;padding:10px 8px;font-size:14px}
/* аватарки */
.os-avs{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;margin-bottom:12px}
.os-avs button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:20px;background:#fff;border:2.5px solid #f0e9fb}
.os-avs button.on{border-color:var(--pink);background:#fff3f8}
.os-avs img{width:84px;height:84px;object-fit:contain}.os-avs b{font-size:13px}
/* меню, лента, альбом, помощь */
.os-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.os-menu>*{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 16px;border-radius:20px;background:#fff;border:2px solid #f0e9fb;text-align:left;text-decoration:none;color:var(--ink)}
.os-menu i{font-style:normal;font-size:26px;display:flex;align-items:center;height:50px}.os-menu img{width:50px;height:50px;object-fit:contain}
.os-menu .os-ico{width:50px;height:50px;max-width:50px;max-height:50px}
.os-menu b{font-size:15px}.os-menu small{font-size:12.5px;color:var(--ink2)}.os-menu .red b{color:#d92b4b}
/* 🏝 02.11: «Мои острова» — до 5 островов на аккаунт */
.os-isl-list{display:flex;flex-direction:column;gap:10px;margin:0 0 12px}
.os-isl{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:20px;background:#fff;border:2.5px solid #f0e9fb}
.os-isl.on{border-color:var(--pink);background:#fff3f8}
.os-isl>i{flex:0 0 auto;display:flex}
.os-isl .os-ico{width:40px;height:40px;max-width:40px;max-height:40px}
.os-isl-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.os-isl-t b{font-family:var(--f-d);font-size:15px}
.os-isl-t small{font-size:12px;color:var(--ink2)}
.os-isl-b{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.os-isl-b .btn{padding:8px 12px;font-size:13px;border-radius:14px}
.os-isl-now{font-size:12px;font-weight:800;color:#3aa06a;padding:6px 10px;border-radius:100px;background:#e8f8ee}
@media (max-width:520px){.os-isl{flex-wrap:wrap}.os-isl-b{width:100%;justify-content:flex-end}}
.os-feed{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.fl{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:16px;background:#fff}
.fl img{width:36px;height:36px;object-fit:contain}.fl p{flex:1;margin:0;font-size:14px;line-height:1.4}.fl small{font-size:11.5px;color:var(--ink2);white-space:nowrap}
.os-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.os-album .pg{display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 14px;border-radius:8px;background:#fffdf3;box-shadow:0 10px 22px -14px rgba(59,47,85,.6);text-align:center;transform:rotate(-1deg)}
.os-album .pg:nth-child(even){transform:rotate(1.2deg)}
.os-album .pg i{font-style:normal;font-size:44px}.os-album .pg b{font-family:var(--f-d);font-size:15px}.os-album .pg small{font-size:12px;color:var(--ink2)}
.os-album .pg.first{background:linear-gradient(160deg,#ffe8f1,#e8f4ff)}.os-album .pg.soon{opacity:.55;border:2px dashed #d9cdf7;box-shadow:none}
.os-help{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.os-help article{display:flex;gap:14px;align-items:flex-start;margin:0;padding:16px 18px;border-radius:22px;background:#fff;border:2px solid #f0e9fb}
.os-help article i{flex:0 0 auto;font-style:normal;display:flex}
.os-help article .os-ico{width:50px;height:50px;max-width:50px;max-height:50px}
.os-help article p{margin:0;font-size:15px;line-height:1.5}
.os-help.welcome{display:block}
.os-help.welcome p{margin:0 0 12px;font-size:15px;line-height:1.55}
.os-album .pg .os-ico{width:44px;height:44px;max-width:44px;max-height:44px}
.os-invite-p .link{display:flex;gap:8px;margin-bottom:10px}.os-invite-p .link input{flex:1;min-width:0;padding:12px 14px;border-radius:16px;border:2px solid #ece3fa;font:600 14px var(--f);color:var(--ink)}
.os-invite-p .share{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.os-invite-p .share .btn{flex:1}

/* подсказка (как у «Чата» в Чудиках) */
.tip{position:fixed;z-index:60;max-width:250px;padding:10px 13px 11px;border-radius:16px;background:rgba(42,32,69,.96);color:#fff;font-size:13px;line-height:1.45;box-shadow:0 14px 30px -10px #000a;pointer-events:none;opacity:0;transform:translateY(-4px) scale(.97);transition:opacity .16s,transform .16s}
.tip.show{opacity:1;transform:none}.tip b{display:block;font-family:var(--f-d);font-size:14.5px;margin-bottom:3px;color:#ffe08a}

/* ── телефон ── */
@media (max-width:720px){
  .os-top{gap:8px;padding:calc(10px + env(safe-area-inset-top)) 10px 0;flex-wrap:wrap}
  .os-name{padding:8px 14px 7px;max-width:46vw}.os-name b{font-size:16px}
  .os-res{margin-left:auto}.os-pill{padding:7px 11px;font-size:15px}
  .os-mates{order:3;margin:0;padding:4px 6px}.os-mate img{width:40px;height:40px}.os-mate i{left:29px;top:29px}
  .os-side{top:auto;bottom:calc(10px + env(safe-area-inset-bottom));left:10px;right:10px;transform:none;flex-direction:row;justify-content:space-between;gap:6px;padding:6px;border-radius:26px;background:var(--paper);box-shadow:var(--sh)}
  .os-b{flex:1;width:auto;height:58px;box-shadow:none;background:none;border-radius:18px}
  .os-b i{font-size:18px;height:30px}.os-b .os-ico{width:30px;height:30px;max-width:30px;max-height:30px}.os-b span{font-size:10.5px}.os-b em{top:-2px;right:0}.os-b.dream .ring{top:2px;width:36px;height:36px;margin-left:-18px}
  .os-bottom{bottom:calc(76px + env(safe-area-inset-bottom));left:50%;right:auto;transform:translateX(-50%);flex-direction:row;align-items:center;gap:10px}
  .os-mode,.os-water{height:50px;padding:0 16px 0 10px;gap:6px;border-radius:25px;font-size:13px;white-space:nowrap}
  .os-mode i,.os-water i{height:30px}
  .os-mode .os-ico,.os-water .os-ico{width:30px;height:30px;max-width:30px;max-height:30px}
  .os-building .os-bottom{top:calc(70px + env(safe-area-inset-top));bottom:auto;left:auto;right:10px;transform:none}
  .os-build{flex-direction:row;align-items:flex-end;gap:6px;padding:0 8px calc(8px + env(safe-area-inset-bottom))}
  .os-tools{position:static;left:auto;top:auto;transform:none;align-self:flex-end;margin:0;flex-direction:column;overflow-x:visible;overflow-y:auto;max-height:calc(100dvh - 148px - env(safe-area-inset-top) - env(safe-area-inset-bottom));gap:2px;padding:4px;border-radius:18px}
  .os-tools button{flex:0 0 auto;width:72px;min-width:0;padding:2px 2px 3px;border-radius:12px;gap:0}
  .os-tools button i{height:30px;font-size:16px}
  .os-tools .os-ico{width:30px;height:30px;max-width:30px;max-height:30px}
  .os-tools button span{font-size:10px;line-height:1.05;white-space:nowrap}
  .os-tray{padding:8px 10px 8px;border-radius:20px;width:auto;margin:0;min-width:0}
  .os-tray-h{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;padding:0}
  .os-tray-h b{grid-column:1;grid-row:1;min-width:0}
  .os-shopb{grid-column:2;grid-row:1;padding:6px 10px;font-size:12px}
  .os-tray-h span{grid-column:1 / -1;grid-row:2;flex:none}
  .os-it{flex-basis:104px}.os-it .th{width:70px;height:70px}
  .os-confirm{bottom:calc(248px + env(safe-area-inset-bottom))}
  .os-pop{padding:0;align-items:stretch}
  .os-pop-c,.os-pop.wide .os-pop-c,.os-pop.shop .os-pop-c,.os-pop.menu .os-pop-c,.os-pop.help .os-pop-c{width:100%;max-height:none;height:100%;border-radius:0}
  .os-pop.mini{padding:16px;align-items:center}.os-pop.mini .os-pop-c{height:auto;max-height:86vh;border-radius:28px}.os-pop.mini .os-pop-h{padding-top:16px}
  .os-pop-h{flex-wrap:wrap;padding:calc(14px + env(safe-area-inset-top)) 12px 12px 14px}
  .os-pop-h b .os-ico{width:40px;height:40px;max-width:40px;max-height:40px}
  .os-pop-h #os-pop-x{order:4;flex-basis:100%;justify-content:flex-end}
  .os-help{grid-template-columns:1fr}
  .os-pop-b{padding:16px 16px calc(24px + env(safe-area-inset-bottom))}
  .os-shop{grid-template-columns:1fr}
  .os-menu{grid-template-columns:1fr}
  .os-toasts{top:calc(118px + env(safe-area-inset-top))}
}

/* ─────────── лендинг ─────────── */
.os-land{background:#fffaf4}
.ln-top{position:fixed;left:0;right:0;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:14px 24px;pointer-events:none}
.ln-top>*{pointer-events:auto}
.ln-logo{display:flex;align-items:center;gap:10px;padding:8px 18px 8px 10px;border-radius:30px;background:var(--paper);box-shadow:var(--sh);text-decoration:none;color:var(--ink)}
.ln-logo span{font-size:28px}.ln-logo b{font-family:var(--f-d);font-size:18px}.ln-logo small{font-size:12px;color:var(--ink2);font-weight:700}
.ln-me span,.ln-me button{display:inline-block;padding:10px 18px;border-radius:24px;background:var(--paper);box-shadow:var(--sh);font-weight:800}
.ln-hero{position:relative;height:100vh;height:100svh;min-height:680px;overflow:hidden;background:
  radial-gradient(900px 420px at 78% 62%, rgba(255,246,208,.95), transparent 70%),
  radial-gradient(700px 360px at 12% 18%, rgba(255,214,232,.8), transparent 68%),
  linear-gradient(180deg,#b7dcff 0%,#eaf6ff 46%,#ffe8f2 100%)}
.os-land #os-cv{display:none}
.ln-hero-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% 58%}
.ln-hero-in{position:absolute;left:clamp(20px,6vw,110px);top:50%;transform:translateY(-46%);z-index:3;width:min(560px,calc(100% - 40px));padding:36px 38px;border-radius:36px;background:rgba(255,250,244,.82);backdrop-filter:blur(10px);box-shadow:0 30px 70px -30px rgba(40,30,70,.55)}
.ln-badge{display:inline-block;padding:7px 14px;border-radius:20px;background:#fff0f6;color:var(--pink2);font-weight:800;font-size:13.5px;margin-bottom:14px}
.ln-hero h1{font-family:var(--f-d);font-size:clamp(38px,5vw,64px);line-height:1.22;margin:0 0 18px;padding:.04em 0 .08em;letter-spacing:-.02em;background:linear-gradient(135deg,#7a5cf0,#ff5f96);-webkit-background-clip:text;background-clip:text;color:transparent}
.ln-hero-in.ln-invite-mode h1{font-size:clamp(30px,3.4vw,44px);line-height:1.16;margin-bottom:14px}
.ln-sub{font-size:clamp(16px,1.4vw,19px);line-height:1.55;margin:0 0 24px;color:var(--ink)}
.ln-note{font-size:14px;color:#d92b4b;font-weight:700;margin:0 0 12px}
.ln-cta{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.ln-cta small{font-size:13px;color:var(--ink2);font-weight:600}
.ln-btn{display:inline-flex;align-items:center;gap:10px;padding:18px 34px;border-radius:30px;background:linear-gradient(135deg,#ff9ac0,#ff5f96);color:#fff;font-weight:900;font-size:19px;text-decoration:none;box-shadow:0 18px 34px -14px #ff4f8b;transition:transform .15s}
.ln-btn:hover{transform:translateY(-2px) scale(1.02)}
.ln-inv{display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:24px;background:#fff;margin-bottom:16px;box-shadow:0 10px 24px -16px rgba(59,47,85,.6)}
.ln-inv img{width:64px;height:64px;object-fit:contain}.ln-inv small{display:block;font-size:12px;font-weight:800;color:var(--pink2);text-transform:uppercase;letter-spacing:.06em}.ln-inv b{font-size:16px;line-height:1.35}
.ln-down{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:3;width:52px;height:52px;border-radius:50%;background:var(--paper);box-shadow:var(--sh);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;color:var(--ink);text-decoration:none;animation:bob 2s infinite}
@keyframes bob{50%{transform:translate(-50%,6px)}}
.ln-sec{padding:96px clamp(20px,6vw,110px) 80px;max-width:1180px;margin:0 auto}
.ln-sec h2{font-family:var(--f-d);font-size:clamp(30px,3.6vw,48px);line-height:1.25;text-align:center;margin:0 0 16px;padding-bottom:.06em;letter-spacing:-.02em}
.ln-lead{max-width:640px;margin:0 auto 36px;text-align:center;font-size:17px;line-height:1.55;color:var(--ink2)}
.ln-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.ln-card{padding:22px 22px 26px;border-radius:32px;background:#fff;box-shadow:0 20px 50px -30px rgba(59,47,85,.5);transition:transform .2s}
.ln-card:hover{transform:translateY(-6px)}
.ln-card .pic{height:210px;border-radius:24px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 70%,#fff,#e7f6ff 78%);margin-bottom:16px;overflow:hidden}
.ln-card:nth-child(2) .pic{background:radial-gradient(circle at 50% 70%,#fff,#e9fff4 78%)}.ln-card:nth-child(3) .pic{background:radial-gradient(circle at 50% 70%,#fff,#ffe8f2 78%)}
.ln-card:nth-child(4) .pic{background:radial-gradient(circle at 50% 30%,#6d6bb8,#242850)}.ln-card:nth-child(5) .pic{background:radial-gradient(circle at 50% 70%,#fff,#ffe8f1 78%)}
.ln-card:nth-child(6) .pic{background:radial-gradient(circle at 50% 70%,#fff,#fff4d6 78%)}
.ln-card .pic span{font-size:72px}.ln-card .pic img{width:100%;height:100%;object-fit:contain;padding:12px}
.ln-card b{display:block;font-family:var(--f-d);font-size:22px;margin-bottom:8px}.ln-card p{margin:0;font-size:15.5px;line-height:1.55;color:var(--ink2)}
.ln-steps ol{list-style:none;padding:0;margin:0 0 40px;display:grid;grid-template-columns:repeat(3,1fr);gap:22px;counter-reset:s}
.ln-steps li{position:relative;padding:40px 24px 26px;border-radius:32px;background:#fff;box-shadow:0 18px 40px -28px rgba(59,47,85,.45)}
.ln-steps li i{position:absolute;top:-18px;left:24px;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#9b7dff,#ff7aa8);color:#fff;font:900 22px/48px var(--f);font-style:normal;text-align:center;box-shadow:0 10px 20px -8px #7a5cf0}
.ln-steps li b{display:block;font-family:var(--f-d);font-size:20px;margin:10px 0 8px}.ln-steps li p{margin:0;font-size:15px;line-height:1.55;color:var(--ink2)}
.ln-who{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.ln-who span{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px 14px;border-radius:28px;border:2px solid transparent;font-weight:800;font-size:15px;line-height:1.25;text-align:center;box-shadow:0 16px 30px -18px rgba(90,60,140,.4)}
.ln-who span:nth-child(1){background:linear-gradient(180deg,#fff,#ffe4f1);border-color:#ffc6e0}
.ln-who span:nth-child(2){background:linear-gradient(180deg,#fff,#ffe4ea);border-color:#ffb7cb}
.ln-who span:nth-child(3){background:linear-gradient(180deg,#fff,#fff4cc);border-color:#ffe08a}
.ln-who span:nth-child(4){background:linear-gradient(180deg,#fff,#ffe8d6);border-color:#ffc9a8}
.ln-who span:nth-child(5){background:linear-gradient(180deg,#fff,#ddffe9);border-color:#b6f0cc}
.ln-final{text-align:center;padding-bottom:110px}.ln-final p{font-size:17px;line-height:1.5;color:var(--ink2);margin:4px 0 28px}
.ln-foot{display:flex;gap:20px;justify-content:center;padding:26px;border-top:1.5px solid #f1e9f7}.ln-foot a{color:var(--ink2);font-weight:800;text-decoration:none}
@media (max-width:900px){.ln-cards,.ln-steps ol{grid-template-columns:1fr}.ln-who{grid-template-columns:repeat(2,minmax(0,1fr))}.ln-who span:last-child{grid-column:1 / -1;justify-self:center;width:min(100%,280px)}}
@media (max-width:720px){
  .ln-top{padding:10px 12px}.ln-logo small{display:none}.ln-logo b{font-size:15px}
  .ln-hero{min-height:700px}
  .ln-hero-in{left:10px;right:10px;width:auto;top:auto;bottom:16px;transform:none;padding:22px 20px;border-radius:28px}
  .ln-hero h1{font-size:34px}.ln-sub{font-size:15px;margin-bottom:16px}
  .ln-btn{padding:16px 24px;font-size:17px;width:100%;justify-content:center}.ln-cta{align-items:stretch}
  .ln-down{display:none}
  .ln-sec{padding:60px 14px}
}

/* 🎨 перекраска, 💎 особенное, 🔒 уровни (17.10) */
.os-confirm .pal{font-size:22px}
.os-bubble .sw{flex-basis:100%;display:flex;gap:5px;flex-wrap:wrap;margin:2px 0 4px}
.os-bubble .sw button{flex:0 0 26px;width:26px;height:26px;padding:0;border-radius:50%;border:3px solid rgba(255,255,255,.35)}
.os-bubble .sw button.on{border-color:#fff;box-shadow:0 0 0 3px #ffe08a}
.os-tabs .gtab{background:linear-gradient(135deg,#efe6ff,#ffe6f3);color:#7a5cf0}.os-tabs .gtab.on{background:linear-gradient(135deg,#9b7dff,#ff7aa8);color:#fff}
.os-bal{margin-left:auto;display:flex;gap:6px}.os-tabs .os-bal .os-pill{margin:0}.os-pill.gem{background:#f1eaff}
.os-shop .card{position:relative}
.os-shop .card.special{border-color:#e2d4ff;background:linear-gradient(170deg,#fff,#f7f1ff)}
.os-shop .card .sp{position:absolute;top:10px;left:10px;padding:3px 9px;border-radius:12px;background:linear-gradient(135deg,#9b7dff,#ff7aa8);color:#fff;font-size:11px;font-weight:800}
.os-shop .card.locked .th{filter:grayscale(.85) opacity(.55)}.os-shop .card.locked b{color:var(--ink2)}
.os-shop .lock{margin-top:6px;width:100%;padding:9px 10px;border-radius:14px;background:#f4eefb;font-weight:800;font-size:13.5px;color:var(--ink2)}
.os-shop .lock small{display:block;font-weight:600;font-size:12px;min-height:0;margin-top:2px}
.btn.gem{background:linear-gradient(135deg,#9b7dff,#ff7aa8);color:#fff;box-shadow:0 10px 22px -10px #7a5cf0}
.os-shop .dots{display:flex;align-items:center;gap:3px;margin-top:2px}.os-shop .dots b{font-size:13px;margin-right:2px}.os-shop .dots i{width:12px;height:12px;border-radius:50%;border:1.5px solid #fff;box-shadow:0 0 0 1px #e6dcf7}
.os-shop .dots u{text-decoration:none;font-size:11.5px;color:var(--ink2);margin-left:4px;font-weight:700}
.os-link.small{font-size:12px;margin-top:4px}
.os-next{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 12px}
.os-next span{display:flex;flex-direction:column;align-items:center;width:84px;padding:6px 4px;border-radius:14px;background:#fff;border:1.5px solid #f0e9fb}
.os-next .th{width:56px;height:56px;object-fit:contain}.os-next i{font-style:normal;font-size:11px;font-weight:700;text-align:center;line-height:1.2;color:var(--ink2)}

/* ⏳ экран загрузки (все картинки — заранее) */
.os-load{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#9fd4ff,#d9efff 60%,#ffe9f2);transition:opacity .6s}
.os-load.done{opacity:0;pointer-events:none}
.ld-in{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:20px}
.ld-isl{font-size:86px;animation:ldf 2.4s ease-in-out infinite;filter:drop-shadow(0 18px 18px rgba(59,47,85,.25))}
@keyframes ldf{50%{transform:translateY(-12px) rotate(-3deg)}}
.ld-in b{font-family:var(--f-d);font-size:28px;color:var(--ink)}.ld-in small{font-size:15px;color:var(--ink2);font-weight:600}
.ld-bar{width:min(280px,70vw);height:12px;border-radius:8px;background:rgba(255,255,255,.7);overflow:hidden;margin-top:10px;box-shadow:inset 0 1px 3px rgba(59,47,85,.15)}
.ld-bar i{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,#ff9ac0,#9b7dff);transition:width .25s}
.ld-n{font-size:12.5px;color:var(--ink2);font-weight:700;min-height:16px}

/* 🖼 картинки лендинга (если лежат в art/land/) */
.ln-logo img.lg{width:40px;height:40px;object-fit:contain}
.ln-steps li img.st{display:block;width:100%;height:170px;object-fit:contain;margin:6px 0 4px}
.ln-who img{width:160px;height:auto;max-width:100%;object-fit:contain}
.ln-final-pic{display:block;width:min(620px,100%);margin:-30px auto 10px;filter:drop-shadow(0 26px 30px rgba(59,47,85,.25))}

/* ── 🎈 18.10: живой остров — эмоции, гость ── */
.os-bubble .os-emos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
.os-bubble .os-emos button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 2px;
  min-height:0;aspect-ratio:1/1;border:0;border-radius:15px;background:rgba(255,255,255,.07);color:#fff;cursor:pointer;white-space:normal;transition:background .15s,transform .12s}
.os-bubble .os-emos button:hover{background:rgba(255,255,255,.15)}
.os-bubble .os-emos button:active{transform:scale(.95)}
.os-bubble .os-emos i{font-style:normal;font-size:26px;line-height:1;transition:transform .15s}.os-bubble .os-emos button:hover i{transform:scale(1.15) rotate(-5deg)}
.os-bubble .os-emos small{font-size:10.5px;line-height:1.1;font-weight:700;opacity:.9;max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* ширина окна эмоций: 4 ровных квадрата, на телефоне — по ширине экрана */
.os-bubble.emos{width:min(348px, calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain}
.os-bubble.emos,.os-bubble.emos.show{transform:translate(-50%,0)}
.os-bubble.emos.below::after{bottom:auto;top:-6px}   /* окно раскрылось вниз — стрелка сверху */   /* ставим по верхнему краю, стрелка снизу смотрит на чудика */
@media (max-width:400px){
  .os-bubble.emos{width:calc(100vw - 16px);padding:12px 12px 10px}
  .os-bubble .os-emos{gap:6px}
  .os-bubble .os-emos button{border-radius:13px;gap:3px}
  .os-bubble .os-emos i{font-size:23px}
  .os-bubble .os-emos small{font-size:9.5px}
}
.os-guest{text-align:center}.os-guest img{width:140px;height:140px;object-fit:contain;animation:osGuestIn .7s cubic-bezier(.2,1.5,.4,1)}
.os-guest h3{font-family:var(--f-d);font-size:22px;margin:4px 0 8px}.os-guest .gift{font-weight:800;color:var(--mint2);font-size:16px}
@keyframes osGuestIn{0%{transform:translateY(30px) scale(.6);opacity:0}100%{transform:none;opacity:1}}

/* 🎁 03.11: лендинг по ссылке-подарку — «от кого» и слова с открытки */
.ln-from{margin:6px 0 0;font-size:17px;font-weight:800;color:#7b5cff}
.ln-msg{margin:10px 0 0;padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.72);border:1px solid #efdff7;
  font-size:16px;line-height:1.5;color:#5c4470;max-width:520px}

/* 💗 03.11: «Сердечная неделя» — кнопка, окно прогресса, награда */
.os-b.love i{filter:drop-shadow(0 0 7px rgba(255,120,160,.55))}
.os-b.love em{background:#ff6f9c;color:#fff}
.os-love{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:4px 2px 6px}
.os-love .big{font-size:44px;line-height:1}
.os-love h3{font-size:20px;font-weight:900;margin:0;color:#4a2b45}
.os-love .os-p{margin:0;max-width:340px}
.os-love .lv-ring{position:relative;width:110px;height:110px}
.os-love .lv-ring svg{width:110px;height:110px;transform:rotate(-90deg)}
.os-love .lv-ring circle{fill:none;stroke-width:9;stroke-linecap:round}
.os-love .lv-ring .bg{stroke:#f6e3ec}
.os-love .lv-ring .fg{stroke:#ff6f9c;transition:stroke-dasharray .4s}
.os-love .lv-ring b{position:absolute;inset:0;display:grid;place-items:center;font:900 22px/1 Onest,system-ui,sans-serif;color:#c94a72}
.os-love-prog{position:relative;width:100%;max-width:320px;height:14px;border-radius:999px;background:#f6e3ec;overflow:hidden}
.os-love-prog i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#ffb3cc,#ff6f9c);transition:width .4s}
.os-love-prog span{position:absolute;inset:0;display:grid;place-items:center;font:800 11px/1 Onest,system-ui,sans-serif;color:#8a3a58}
.os-love-gift{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:4px;padding:12px 16px;border-radius:18px;
  background:linear-gradient(160deg,#fff,#ffeef4);border:1px solid #f7d5e3;max-width:360px}
.os-love-gift b{font-size:15px;color:#5c3a52}
.os-love-gift small{font-size:12.5px;color:#8a7486;line-height:1.4}

/* 💌 04.11: валентинка от острова — особая открытка в почтовом ящике */
.note.valentine{display:block}
.note.valentine .val-paper{max-width:100%;margin:0 auto;padding:16px 18px 12px;border-radius:22px;transform:none;
  background:linear-gradient(160deg,#fff2f7,#ffe3ef 55%,#ffeef8);
  box-shadow:0 14px 30px -20px rgba(190,60,110,.7),inset 0 0 0 1.5px rgba(255,160,195,.55);
  background-image:linear-gradient(160deg,#fff2f7,#ffe3ef 55%,#ffeef8),repeating-linear-gradient(45deg,rgba(255,255,255,.35) 0 12px,transparent 12px 24px)}
.note.valentine .val-h{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.note.valentine .val-seal{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;font-size:22px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffd9e6,#ff9dbb 70%,#f2769b);box-shadow:0 6px 14px -8px rgba(200,60,110,.9)}
.note.valentine .val-h b{display:block;font:900 15.5px/1.2 Onest,system-ui,sans-serif;color:#a5365f}
.note.valentine .val-h small{font-size:11.5px;color:#c07a95;font-weight:700}
.note.valentine p{font-family:var(--f-d);font-size:15.5px;line-height:1.55;color:#7d3a56;margin:6px 0 10px}
.note.valentine .val-hearts{display:flex;gap:8px;justify-content:flex-end;font-size:15px;opacity:.85}
.note.valentine .val-hearts i{font-style:normal;animation:valBeat 2.4s ease-in-out infinite}
.note.valentine .val-hearts i:nth-child(2){animation-delay:.4s}
.note.valentine .val-hearts i:nth-child(3){animation-delay:.8s}
@keyframes valBeat{0%,100%{transform:scale(1)}45%{transform:scale(1.18)}}

/* 🎈 08.11: шарики-сердечки — подсказка «отпустите вместе» и момент полёта */
.os-bal-hint{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));transform:translate(-50%,18px);z-index:18;
  display:flex;align-items:center;gap:12px;width:min(540px,calc(100vw - 24px));padding:10px 12px 10px 10px;border-radius:24px;
  background:linear-gradient(120deg,rgba(255,247,251,.97),rgba(239,248,255,.97));
  box-shadow:0 22px 50px -18px rgba(84,42,96,.5),0 0 0 1.5px rgba(255,255,255,.75) inset;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s}
.os-bal-hint.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.os-bal-hint .bh-pic{flex:0 0 auto;width:58px;height:68px;border-radius:18px;background:rgba(255,255,255,.75);display:flex;align-items:center;justify-content:center;overflow:hidden}
.os-bal-hint .bh-pic img{width:54px;height:66px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(120,60,100,.18))}
.os-bal-hint .bh-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.os-bal-hint .bh-txt b{font-family:var(--f-d);font-size:15.5px;line-height:1.2;color:var(--ink)}
.os-bal-hint .bh-txt span{font-size:12.5px;line-height:1.4;color:var(--ink2)}
.os-bal-hint .bh-go{flex:0 0 auto;white-space:nowrap;border:0;border-radius:16px;padding:11px 14px;font:800 13.5px var(--f-d);
  color:#fff;background:linear-gradient(135deg,#ff8fb6,#ff5f96);box-shadow:0 8px 18px -8px rgba(255,80,130,.8);cursor:pointer}
.os-bal-hint .bh-go:active{transform:translateY(1px)}
.os-bal-hint .bh-x{position:absolute;right:-6px;top:-8px;width:26px;height:26px;border:0;border-radius:50%;background:#fff;color:#9a86b0;font-size:12px;cursor:pointer;box-shadow:0 6px 16px -6px rgba(84,42,96,.55)}
.os-bal-fly{position:fixed;left:50%;top:27%;transform:translate(-50%,12px) scale(.96);z-index:19;pointer-events:none;text-align:center;
  opacity:0;transition:opacity .9s,transform .9s}
.os-bal-fly.show{opacity:1;transform:translate(-50%,-4px) scale(1)}
.os-bal-fly b{display:block;font-family:var(--f-d);font-size:clamp(26px,6vw,40px);letter-spacing:.01em;color:#fff;
  text-shadow:0 2px 0 rgba(180,80,120,.35),0 10px 34px rgba(90,40,100,.55)}
.os-bal-fly span{display:block;font-size:30px;margin-top:2px;filter:drop-shadow(0 6px 10px rgba(90,40,100,.35))}
@media(max-width:560px){.os-bal-hint .bh-txt span{display:none}.os-bal-hint .bh-pic{width:50px;height:60px}.os-bal-hint .bh-pic img{width:46px;height:58px}}

@media(max-width:380px){.os-bal-hint .bh-pic{display:none}.os-bal-hint .bh-txt b{font-size:14px}.os-bal-hint .bh-go{padding:10px 11px;font-size:12.5px}}

/* 💌 08.11: бейдж «Заявки на приз» — видит только Марина (id=1) */
.os-promo{pointer-events:auto;position:relative;display:inline-flex;align-items:center;gap:5px;height:38px;padding:0 12px;border:0;border-radius:999px;
  background:linear-gradient(120deg,#ffe1ec,#fff0f7);color:#a33b63;font:800 13.5px var(--f-d);box-shadow:0 10px 22px -12px rgba(200,60,120,.75);cursor:pointer}
.os-promo b{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e8557f;color:#fff;font:800 11px var(--f);box-shadow:0 0 0 2px #fff}
.os-promo:active{transform:translateY(1px)}

/* 🎨 08.11.2026 — красивые скроллы в попапах острова (как в общем виджете входа) */
.os-pop-b,.os-tools,.os-bubble.emos{scrollbar-width:thin;scrollbar-color:#d9cdf7 transparent}
.os-pop-b::-webkit-scrollbar,.os-tools::-webkit-scrollbar,.os-bubble.emos::-webkit-scrollbar{width:8px;height:8px}
.os-pop-b::-webkit-scrollbar-track,.os-tools::-webkit-scrollbar-track,.os-bubble.emos::-webkit-scrollbar-track{background:transparent;margin:8px 0}
.os-pop-b::-webkit-scrollbar-thumb,.os-tools::-webkit-scrollbar-thumb,.os-bubble.emos::-webkit-scrollbar-thumb{background:#d9cdf7;border-radius:99px;border:2px solid transparent;background-clip:padding-box}
.os-pop-b::-webkit-scrollbar-thumb:hover,.os-tools::-webkit-scrollbar-thumb:hover,.os-bubble.emos::-webkit-scrollbar-thumb:hover{background:#c4b2ee;background-clip:padding-box}

/* 🪙 08.11.2026 — монетка для кнопок «Бросить монетку / Загадать желание»: CSS вместо эмодзи 🪙,
   который на старых Windows рисуется квадратиком */
.os-coin-ico{display:inline-block;width:18px;height:18px;border-radius:50%;vertical-align:-3px;margin-right:2px;position:relative;
  background:radial-gradient(circle at 34% 30%,#fff8c0 0 16%,#ffd84a 44%,#e8a400 100%);
  box-shadow:inset 0 0 0 2px #f3b92e,inset 0 -2px 2px rgba(160,100,0,.35),0 1px 3px rgba(0,0,0,.25)}
.os-coin-ico::after{content:"";position:absolute;inset:4px;border-radius:50%;border:1.5px solid rgba(160,100,0,.55)}

/* 🎄 08.11.2026 — карточка «Новогодняя ёлка» при входе */
.os-elka-card{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:20px;background:rgba(12,22,40,.55);backdrop-filter:blur(7px);opacity:0;transition:opacity .2s}
.os-elka-card.show{opacity:1}
.os-elka-in{position:relative;width:min(360px,100%);border-radius:28px;padding:18px 20px 20px;text-align:center;background:linear-gradient(180deg,#fffdf8,#eef8ff);box-shadow:0 30px 80px -20px rgba(10,30,60,.55);border:1px solid #fff;transform:translateY(10px) scale(.97);transition:transform .2s}
.os-elka-card.show .os-elka-in{transform:none}
.os-elka-in b{display:block;font-size:21px;line-height:1.2;color:#23324a;margin:4px 0 8px}
.os-elka-in p{font-size:14.5px;line-height:1.5;color:#4d5b70;margin:0 0 14px}
.os-elka-in small{display:block;margin-top:10px;font-size:11.5px;line-height:1.45;color:#8593a8}
.os-elka-in .btn{width:100%;justify-content:center}
.os-elka-art{height:160px;display:grid;place-items:center;margin:0 auto 6px}
.os-elka-art img{max-height:160px;max-width:160px;object-fit:contain;filter:drop-shadow(0 12px 16px rgba(30,70,100,.18))}
.os-elka-art span,.os-elka-art.gems{font-size:92px;line-height:160px}
.os-elka-x{position:absolute;top:10px;right:12px;width:30px;height:30px;border:1px solid #d8e3ef;border-radius:50%;background:#fff;color:#72839a;font-size:20px;line-height:1;cursor:pointer}
.os-elka-x:hover{background:#f2f8ff;color:#3d5877}

/* отзывы на лендинге */
.ln-reviews{padding-top:70px}
.ln-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ln-review{background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 18px 40px -30px rgba(59,47,85,.5)}
.ln-review img,.ln-review .ph{display:block;width:100%;height:210px;object-fit:cover;background:#eef8ff}
.ln-review .ph{display:grid;place-items:center;font-size:64px;background:radial-gradient(circle at 50% 40%,#e8f8ff,#fff4e2)}
.ln-review div{padding:14px 16px 18px}.ln-review small{font-size:12px;color:#7d90a3}.ln-review p{margin:6px 0 0;font-size:14px;line-height:1.5;color:#4d6177;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:860px){.ln-review-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.ln-review-grid{grid-template-columns:1fr}}
