/* Расти Играй — «Угости зверят поровну» */
.rim-share-game{--share-purple:#7255d6;--share-purple-dark:#463587;--share-mint:#43bd9d;--share-coral:#ef7180;--share-yellow:#ffd966;--share-ink:#554875;--share-muted:#81758f;--share-shadow:0 18px 46px rgba(72,50,124,.11);padding:30px 18px 82px;background:radial-gradient(circle at 8% 20%,rgba(255,221,119,.18),transparent 24%),radial-gradient(circle at 92% 52%,rgba(124,213,187,.18),transparent 26%),linear-gradient(180deg,#fffdfa,#f8f4ff 68%,#fffdfa);color:var(--share-ink);font-family:inherit}.rim-share-game *,.rim-share-game *:before,.rim-share-game *:after{box-sizing:border-box}.rim-share-game button,.rim-share-game a{font:inherit}.rim-share-game button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.rim-share-game button:focus-visible,.rim-share-game a:focus-visible,[data-recipient]:focus-visible{outline:3px solid #ff9b67;outline-offset:3px}.rim-share-shell{width:min(1180px,100%);margin:0 auto}.rim-share-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px 4px;color:#6d5b97;font-size:13px;font-weight:900;text-decoration:none}.rim-share-back:before{content:"";width:10px;height:10px;border-left:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg)}
.rim-share-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);align-items:center;min-height:350px;overflow:hidden;border:1px solid #eee7fb;border-radius:36px;background:radial-gradient(circle at 9% 8%,rgba(255,239,151,.72),transparent 31%),linear-gradient(120deg,#e8fff7,#f0ebff 55%,#fff0d0);box-shadow:var(--share-shadow)}.rim-share-hero-copy{position:relative;z-index:3;padding:46px 20px 46px 48px}.rim-share-kicker{display:block;margin-bottom:8px;color:#d9596c;font-size:12px;font-weight:1000;letter-spacing:.11em;text-transform:uppercase}.rim-share-hero h1{max-width:690px;margin:0;color:var(--share-purple-dark);font-size:clamp(42px,5vw,68px);line-height:.98;letter-spacing:-.045em}.rim-share-hero p{max-width:650px;margin:17px 0 0;color:#756b8a;font-size:16px;font-weight:700;line-height:1.52}.rim-share-hero-art{align-self:end;position:relative;z-index:2;height:320px}.rim-share-hero-art img{position:absolute;bottom:-18px;width:240px;height:300px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 22px rgba(70,45,105,.18))}.rim-share-hero-art img:first-child{left:0}.rim-share-hero-art img:last-child{right:3px}.rim-share-score{position:absolute;z-index:5;right:22px;top:20px;min-width:165px;padding:12px 16px;border:1px solid rgba(255,255,255,.9);border-radius:19px;background:rgba(255,255,255,.9);text-align:center;box-shadow:0 10px 24px rgba(71,47,120,.1);backdrop-filter:blur(8px)}.rim-share-score span{display:block;color:#8a7da5;font-size:10px;font-weight:900}.rim-share-score strong{display:block;margin-top:2px;color:var(--share-purple-dark);font-size:20px}.rim-share-score strong b{color:var(--share-coral)}.rim-share-score i{font-style:normal}
.rim-share-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:900px;margin:23px auto}.rim-share-levels button{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:12px;min-height:78px;padding:10px 16px;border:2px solid transparent;border-radius:22px;background:linear-gradient(145deg,#f2edff,#e1d6ff);color:#654f99;text-align:left;box-shadow:0 7px 0 #d8ccf4;cursor:pointer;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}.rim-share-levels button:nth-child(2){background:linear-gradient(145deg,#e7faf4,#c9eee2);box-shadow-color:#b2ddcf;color:#287b69}.rim-share-levels button:nth-child(3){background:linear-gradient(145deg,#fff6d7,#ffe493);box-shadow-color:#efd173;color:#89631d}.rim-share-levels button:hover{transform:translateY(-3px)}.rim-share-levels button.is-active{border-color:var(--share-purple);box-shadow:0 7px 0 #bba9eb,0 13px 25px rgba(91,65,165,.14)}.rim-share-levels button:nth-child(2).is-active{border-color:var(--share-mint)}.rim-share-levels button:nth-child(3).is-active{border-color:#e4aa2d}.rim-share-levels button b{display:grid;place-items:center;width:62px;height:52px;border-radius:17px;background:rgba(255,255,255,.92);color:inherit;font-size:18px}.rim-share-levels button>span{font-size:14px;font-weight:1000;line-height:1.2}.rim-share-levels small{display:block;margin-top:4px;font-size:9px;font-weight:800;opacity:.72}
.rim-share-board{padding:28px;border:1px solid #eee7fb;border-radius:36px;background:rgba(255,255,255,.96);box-shadow:var(--share-shadow)}.rim-share-board-head{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 4px 20px}.rim-share-board-head span{color:#9185aa;font-size:11px;font-weight:1000;letter-spacing:.07em;text-transform:uppercase}.rim-share-board-head span i{font-style:normal}.rim-share-board-head h2{margin:5px 0 0;color:var(--share-purple-dark);font-size:30px;line-height:1.15}.rim-share-progress{flex:0 0 290px;width:290px;height:13px;overflow:hidden;border-radius:99px;background:#eee8fa;box-shadow:inset 0 2px 4px rgba(72,50,124,.06)}.rim-share-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--share-mint),#65d1b5);transition:width .3s ease}
.rim-share-tutorial{position:relative;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:15px;max-width:870px;margin:0 auto 18px;padding:12px 14px;border:2px solid #e4d7ff;border-radius:23px;background:linear-gradient(110deg,#f4efff,#fff 65%,#fff7da);color:#69578e;box-shadow:0 10px 25px rgba(75,52,125,.08)}.rim-share-tutorial[hidden]{display:none!important}.rim-share-tutorial>span{position:relative;display:block;width:55px;height:55px;border-radius:18px;background:#fff;box-shadow:0 6px 16px rgba(76,53,126,.1)}.rim-share-tutorial>span:before,.rim-share-tutorial>span:after{content:"";position:absolute;top:20px;width:13px;height:13px;border-radius:50%}.rim-share-tutorial>span:before{left:8px;background:#ef7180}.rim-share-tutorial>span:after{right:8px;border:2px dashed #7255d6}.rim-share-tutorial>span i{position:absolute;left:23px;top:25px;width:12px;height:3px;border-radius:3px;background:#7255d6}.rim-share-tutorial>span i:after{content:"";position:absolute;right:-2px;top:-3px;width:7px;height:7px;border-top:3px solid #7255d6;border-right:3px solid #7255d6;transform:rotate(45deg)}.rim-share-tutorial p{margin:0;font-size:13px;font-weight:750;line-height:1.45}.rim-share-tutorial p strong{color:var(--share-purple-dark)}.rim-share-tutorial button{padding:10px 16px;border:0;border-radius:14px;background:var(--share-purple);color:#fff;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 5px 0 #4f39a8}
.rim-share-scene{position:relative;overflow:hidden;padding:28px 22px 24px;border:2px solid #dcd0f4;border-radius:30px;background:#d9c6ff url('../images/share/background.webp') center/cover no-repeat}.rim-share-recipients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:900px;margin:0 auto}.rim-share-recipients[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1040px;gap:12px}.rim-share-recipient{position:relative;display:grid;justify-items:center;min-width:0;padding:13px 12px 17px;border:1px solid rgba(255,255,255,.9);border-radius:28px;background:rgba(255,255,255,.82);box-shadow:0 15px 35px rgba(73,48,120,.13);backdrop-filter:blur(7px);transition:transform .2s ease,box-shadow .2s ease}.rim-share-character{display:block;width:100%;height:210px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 10px rgba(68,46,94,.15));pointer-events:none}.rim-share-recipient>strong{position:relative;z-index:3;margin-top:-3px;color:var(--share-purple-dark);font-size:16px}.rim-share-plate{position:relative;width:min(100%,280px);height:150px;margin-top:5px;border-radius:50%;cursor:pointer}.rim-share-plate-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.rim-share-plate-items{position:absolute;z-index:2;left:15%;right:15%;top:24%;bottom:21%;display:flex;align-items:center;justify-content:center;align-content:center;gap:4px;flex-wrap:wrap}.rim-share-slot{display:grid;place-items:center;width:54px;height:54px;border:2px dashed rgba(89,67,144,.22);border-radius:50%;background:rgba(255,255,255,.24)}.rim-share-recipients[data-guided="false"] .rim-share-plate-items{gap:1px}.rim-share-recipients[data-count="3"] .rim-share-character{height:180px}.rim-share-recipients[data-count="3"] .rim-share-plate{height:130px}.rim-share-recipients[data-count="3"] .rim-share-slot{width:46px;height:46px}.rim-share-recipient-count{position:absolute;right:13px;top:13px;display:grid;place-items:center;min-width:43px;height:31px;padding:0 8px;border-radius:11px;background:#f1ebff;color:#7255c7;font-size:11px;font-weight:1000}.rim-share-recipients.is-wrong .rim-share-recipient{animation:share-shake .3s ease 2;box-shadow:0 0 0 3px rgba(239,113,128,.28),0 15px 35px rgba(73,48,120,.13)}.rim-share-recipients.is-correct .rim-share-recipient{box-shadow:0 0 0 3px rgba(67,189,157,.32),0 15px 35px rgba(73,48,120,.13);transform:translateY(-4px)}
.rim-share-pool{max-width:850px;margin:20px auto 0;padding:12px 18px 16px;border:1px solid rgba(255,255,255,.9);border-radius:28px;background:rgba(255,255,255,.84);box-shadow:0 15px 35px rgba(73,48,120,.12);backdrop-filter:blur(7px)}.rim-share-pool h3{margin:0 0 5px;color:#6a5597;font-size:13px;text-align:center}.rim-share-tray{position:relative;height:175px}.rim-share-tray>img{position:absolute;left:50%;bottom:0;width:min(95%,650px);height:150px;object-fit:fill;transform:translateX(-50%);pointer-events:none}.rim-share-pool-items{position:absolute;z-index:2;left:13%;right:13%;top:12px;bottom:35px;display:flex;align-items:center;justify-content:center;align-content:center;gap:2px;flex-wrap:wrap}.rim-share-item{display:grid;place-items:center;width:62px;height:62px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;transition:transform .16s ease,filter .16s ease}.rim-share-item img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 5px rgba(70,45,96,.16))}.rim-share-item:hover{transform:translateY(-5px) scale(1.04)}.rim-share-item.is-selected{border:3px solid #fff;background:rgba(114,85,214,.16);box-shadow:0 0 0 4px var(--share-purple);transform:translateY(-5px)}.rim-share-item.is-dragging{opacity:.45}.rim-share-item.is-on-plate{width:50px;height:50px}.rim-share-recipients[data-count="3"] .rim-share-item.is-on-plate{width:42px;height:42px}
.rim-share-actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.rim-share-actions button,.rim-share-finish button{min-height:50px;padding:11px 22px;border:0;border-radius:16px;font-weight:1000;cursor:pointer}.rim-share-reset{background:#eee8fb;color:#654ea8;box-shadow:0 6px 0 #ddd3f1}.rim-share-check{min-width:180px;background:linear-gradient(135deg,#7355d6,#9b69e2);color:#fff;box-shadow:0 7px 0 #5137ad,0 13px 24px rgba(91,66,165,.2)}.rim-share-check:disabled{background:#d9d2e8;color:#9990a7;box-shadow:0 5px 0 #c9c1d8;cursor:not-allowed}.rim-share-hint{min-height:24px;margin:17px 0 0;color:#776a8c;font-size:13px;font-weight:850;text-align:center}.rim-share-hint.is-ready{color:#6550b1}.rim-share-hint.is-error{color:#c94e61}.rim-share-hint.is-good{color:#23876d}
.rim-share-finish[hidden]{display:none!important}.rim-share-finish{display:grid;grid-template-columns:82px 1fr auto;align-items:center;gap:20px;margin-top:22px;padding:25px 28px;border:1px solid #dcefe8;border-radius:28px;background:linear-gradient(120deg,#eafaf4,#fff8d8);box-shadow:var(--share-shadow)}.rim-share-finish-mark{position:relative;width:72px;height:72px;border-radius:23px;background:#fff;box-shadow:0 9px 22px rgba(62,47,98,.1)}.rim-share-finish-mark:before{content:"";position:absolute;left:21px;top:18px;width:30px;height:18px;border-left:7px solid var(--share-mint);border-bottom:7px solid var(--share-mint);transform:rotate(-45deg)}.rim-share-finish h2{margin:0;color:var(--share-purple-dark);font-size:27px}.rim-share-finish p{margin:5px 0 0;color:#736985;font-weight:700}.rim-share-finish button{background:linear-gradient(135deg,#7355d6,#9b69e2);color:#fff;box-shadow:0 7px 0 #5137ad}
@keyframes share-shake{33%{transform:translateX(-5px)}66%{transform:translateX(5px)}}
@media(max-width:900px){.rim-share-hero{grid-template-columns:1fr 330px}.rim-share-hero-copy{padding-left:34px}.rim-share-hero-art img{width:205px}.rim-share-board-head{align-items:flex-start}.rim-share-progress{flex-basis:220px;width:220px}.rim-share-character{height:180px}.rim-share-plate{height:135px}.rim-share-item{width:55px;height:55px}}
@media(max-width:720px){.rim-share-game{padding:15px 10px 58px;overflow-x:hidden}.rim-share-back{margin-left:5px}.rim-share-hero{display:block;min-height:590px;border-radius:28px}.rim-share-hero-copy{padding:30px 21px 10px;text-align:center}.rim-share-hero h1{font-size:39px}.rim-share-hero p{font-size:14px}.rim-share-hero-art{position:absolute;left:0;right:0;bottom:0;height:300px}.rim-share-hero-art img{width:50%;height:285px}.rim-share-hero-art img:first-child{left:3%}.rim-share-hero-art img:last-child{right:3%}.rim-share-score{left:50%;right:auto;top:260px;min-width:155px;transform:translateX(-50%)}.rim-share-levels{grid-template-columns:1fr;margin:17px 2px 20px}.rim-share-levels button{min-height:72px}.rim-share-board{padding:17px 10px;border-radius:28px}.rim-share-board-head{display:grid;gap:14px;margin:0 5px 17px;text-align:center}.rim-share-board-head h2{font-size:25px}.rim-share-progress{width:100%;height:11px}.rim-share-tutorial{grid-template-columns:48px 1fr;padding:11px 10px}.rim-share-tutorial>span{width:46px;height:46px}.rim-share-tutorial>span:before,.rim-share-tutorial>span:after{top:17px;width:11px;height:11px}.rim-share-tutorial>span i{left:19px;top:21px}.rim-share-tutorial button{grid-column:1/-1;width:100%}.rim-share-scene{padding:15px 8px 14px;border-radius:24px}.rim-share-recipients{gap:8px}.rim-share-recipient{padding:8px 5px 12px;border-radius:20px}.rim-share-character{height:145px}.rim-share-recipient>strong{font-size:13px}.rim-share-plate{height:105px}.rim-share-slot{width:41px;height:41px}.rim-share-recipient-count{right:7px;top:7px;min-width:35px;height:27px;font-size:9px}.rim-share-item.is-on-plate{width:38px;height:38px}.rim-share-pool{margin-top:12px;padding:9px 5px 11px;border-radius:21px}.rim-share-tray{height:148px}.rim-share-tray>img{height:125px}.rim-share-pool-items{left:8%;right:8%;top:8px;bottom:28px}.rim-share-item{width:48px;height:48px}.rim-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rim-share-actions button{min-width:0;padding:9px 7px;font-size:12px}.rim-share-finish{grid-template-columns:62px 1fr;padding:20px 15px}.rim-share-finish-mark{width:58px;height:58px}.rim-share-finish-mark:before{left:17px;top:14px;width:25px;height:16px}.rim-share-finish h2{font-size:23px}.rim-share-finish button{grid-column:1/-1;width:100%}}
@media(max-width:480px){.rim-share-hero{min-height:560px}.rim-share-hero h1{font-size:35px}.rim-share-score{top:250px}.rim-share-hero-art{height:275px}.rim-share-hero-art img{height:255px}.rim-share-recipients[data-count="3"]{gap:4px}.rim-share-recipients[data-count="3"] .rim-share-recipient{padding-inline:2px}.rim-share-recipients[data-count="3"] .rim-share-character{height:105px}.rim-share-recipients[data-count="3"] .rim-share-recipient>strong{font-size:10px}.rim-share-recipients[data-count="3"] .rim-share-plate{height:82px}.rim-share-recipients[data-count="3"] .rim-share-item.is-on-plate{width:29px;height:29px}.rim-share-pool-items{left:4%;right:4%}.rim-share-item{width:43px;height:43px}.rim-share-slot{width:38px;height:38px}}

/* 1.5.1 — все угощения остаются видимыми и не закрывают тарелку. */
.rim-share-plate-items[data-load="full"] .rim-share-item.is-on-plate{width:38px;height:38px}
.rim-share-plate-items[data-load="crowded"] .rim-share-item.is-on-plate{width:34px;height:34px}
@media(max-width:720px){
  .rim-share-plate-items[data-load="full"] .rim-share-item.is-on-plate{width:31px;height:31px}
  .rim-share-plate-items[data-load="crowded"] .rim-share-item.is-on-plate{width:27px;height:27px}
}
@media(max-width:480px){
  .rim-share-recipients[data-count="3"] .rim-share-plate-items[data-load="full"] .rim-share-item.is-on-plate{width:24px;height:24px}
  .rim-share-recipients[data-count="3"] .rim-share-plate-items[data-load="crowded"] .rim-share-item.is-on-plate{width:21px;height:21px}
}
