.riw-page{--purple:#5534a6;--violet:#7555d8;--coral:#ff6875;--mint:#64c5a7;--ink:#43347d;--muted:#766d89;--shadow:0 18px 42px rgba(73,48,123,.13);padding:30px 0 80px;background:linear-gradient(180deg,#fffdfa,#faf8ff 50%,#fffdfa);color:var(--ink)}
.riw-shell{width:min(1180px,calc(100% - 40px));margin-inline:auto}.riw-kicker{display:block;color:#7555d8;font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.riw-hero{position:relative;display:grid;grid-template-columns:1fr 250px 150px;align-items:center;gap:28px;min-height:250px;padding:36px 42px;overflow:hidden;border:1px solid #eee8fb;border-radius:36px;background:linear-gradient(120deg,#fff2c8,#efe8ff 55%,#dcf7ef);box-shadow:var(--shadow)}
.riw-hero:after{content:"";position:absolute;right:230px;top:-70px;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.35)}.riw-hero-copy{position:relative;z-index:2}.riw-back{display:inline-block;margin-bottom:17px;color:#684cbf;font-size:13px;font-weight:850}.riw-hero h1{margin:7px 0 8px;font-size:47px;line-height:1;color:#453187}.riw-hero p{max-width:590px;margin:0;color:#756b87;font-size:16px;font-weight:650;line-height:1.55}.riw-hero>img{position:relative;z-index:2;width:235px;height:205px;object-fit:contain;filter:drop-shadow(0 14px 18px rgba(76,47,113,.15))}.riw-score{position:relative;z-index:2;padding:18px;border-radius:22px;background:rgba(255,255,255,.86);text-align:center;box-shadow:0 10px 24px rgba(69,47,116,.09)}.riw-score span{display:block;color:#887d9c;font-size:12px;font-weight:800}.riw-score strong{display:block;margin-top:3px;color:#e59e21;font-size:35px}
.riw-levels{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:25px;padding:25px 30px;border:1px solid #eee8fb;border-radius:30px;background:#fff;box-shadow:var(--shadow)}.riw-levels h2{margin:4px 0 0;font-size:25px;color:#463386}.riw-level-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;min-width:650px}.riw-level-button{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:11px 14px;border:2px solid #eee8fb;border-radius:18px;background:#faf8ff;color:#4e3c83;text-align:left;cursor:pointer;transition:.2s}.riw-level-button>span{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#eee8ff;color:#684bc5;font-weight:900}.riw-level-button strong{font-size:14px}.riw-level-button small{color:#887e9b;font-weight:750}.riw-level-button:hover{transform:translateY(-2px);border-color:#cfc0f6}.riw-level-button.is-current{border-color:#7454d7;background:#f1ecff;box-shadow:0 8px 18px rgba(89,60,171,.12)}
.riw-board{margin-top:25px;overflow:hidden;border:1px solid #eee8fb;border-radius:38px;background:#fff;box-shadow:var(--shadow)}.riw-board-head{display:grid;grid-template-columns:220px 1fr auto;align-items:center;gap:25px;padding:22px 34px;border-bottom:1px solid #f0ebf8}.riw-board-head>div:first-child span{display:block;color:#493487;font-size:19px;font-weight:900}.riw-board-head strong{display:block;margin-top:3px;color:#8b819d;font-size:12px}.riw-progress{height:10px;overflow:hidden;border-radius:99px;background:#eee9f7}.riw-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff6f78,#ffd05d,#62c7a8);transition:width .35s}.riw-reset,.riw-secondary{min-height:44px;padding:0 17px;border:2px solid #e7def8;border-radius:14px;background:#faf8ff;color:#6449bb;font-weight:850;cursor:pointer}.riw-reset:hover,.riw-secondary:hover:not(:disabled){border-color:#cabbf3;background:#f2edff}.riw-secondary:disabled{opacity:.42;cursor:not-allowed}
.riw-play-area{display:grid;grid-template-columns:minmax(310px,42%) 1fr;gap:42px;align-items:center;padding:42px 50px 48px;background:linear-gradient(135deg,#fff9df,#fbf8ff 58%,#e5f8f2)}.riw-picture-card{display:flex;align-items:center;justify-content:center;aspect-ratio:1;max-height:420px;padding:25px;border:4px solid #fff;border-radius:34px;background:#fff;box-shadow:0 18px 36px rgba(73,48,123,.12)}.riw-picture-card img{width:100%;height:100%;object-fit:contain}.riw-task h2{margin:5px 0 22px;font-size:33px;color:#443286}.riw-slots{display:flex;flex-wrap:wrap;gap:9px;min-height:76px}.riw-slot{display:grid;place-items:center;width:68px;height:72px;border:3px solid #dcd0f6;border-radius:18px;background:#fff;color:#4f36a1;font-size:33px;font-weight:950;box-shadow:0 8px 0 #ebe4fa;transition:.18s}.riw-slot.is-filled{border-color:#8a70dc;background:#f8f5ff}.riw-slots.is-wrong{animation:riw-shake .55s}.riw-slots.is-wrong .riw-slot{border-color:#ff8891;background:#fff3f4}.riw-letters{display:flex;flex-wrap:wrap;gap:11px;margin-top:28px}.riw-letter-tile{display:grid;place-items:center;width:66px;height:66px;border:0;border-radius:18px;background:linear-gradient(145deg,#7758da,#9a65e2);color:#fff;font-size:29px;font-weight:950;cursor:pointer;box-shadow:0 9px 0 #5e43b8,0 15px 22px rgba(81,53,158,.18);transition:.15s}.riw-letter-tile:hover:not(:disabled){transform:translateY(-3px)}.riw-letter-tile:active:not(:disabled){transform:translateY(5px);box-shadow:0 4px 0 #5e43b8}.riw-letter-tile:disabled{opacity:.22;box-shadow:none}.riw-actions{display:flex;gap:10px;margin-top:27px}.riw-message{min-height:24px;margin:17px 0 0;color:#776b8a;font-weight:750;line-height:1.45}
.riw-success{display:grid;grid-template-columns:140px 1fr auto;align-items:center;gap:28px;padding:42px 48px;background:linear-gradient(120deg,#fff1bd,#f1eaff 55%,#ddf8ef)}.riw-star{display:grid;place-items:center;width:120px;height:120px;border-radius:34px;background:#fff;box-shadow:0 14px 28px rgba(80,53,142,.12)}.riw-star svg{width:82px;fill:#ffc846;filter:drop-shadow(0 7px 4px rgba(220,153,25,.2))}.riw-success h2,.riw-finish h2{margin:5px 0 7px;font-size:34px;color:#443286}.riw-success p,.riw-finish p{margin:0;color:#746987;font-weight:650}.riw-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:0 23px;border:0;border-radius:17px;background:linear-gradient(135deg,#7557d8,#9562e0);color:#fff;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 11px 23px rgba(101,74,195,.23)}.riw-primary:hover{transform:translateY(-2px)}.riw-finish{display:grid;grid-template-columns:200px 1fr auto;align-items:center;gap:26px;padding:38px 48px;background:linear-gradient(120deg,#fff0be,#f1eaff 55%,#ddf8ef)}.riw-finish>img{width:190px;height:180px;object-fit:contain}.riw-finish-actions{display:flex;flex-direction:column;gap:10px}.riw-parent-note{display:flex;align-items:center;justify-content:space-between;gap:35px;margin-top:25px;padding:30px 38px;border-radius:30px;background:#fff;box-shadow:var(--shadow)}.riw-parent-note h2{margin:4px 0 7px;font-size:25px;color:#443286}.riw-parent-note p{max-width:770px;margin:0;color:#786e8b;line-height:1.5}.riw-parent-note a{flex:none;padding:14px 19px;border-radius:15px;background:#f0ebff;color:#6548c1;font-weight:900}.riw-page [hidden]{display:none!important}.riw-page button:focus-visible,.riw-page a:focus-visible{outline:3px solid #5232aa;outline-offset:3px}@keyframes riw-shake{25%{transform:translateX(-7px)}50%{transform:translateX(7px)}75%{transform:translateX(-4px)}}
@media(max-width:900px){.riw-hero{grid-template-columns:1fr 190px 120px}.riw-hero>img{width:185px}.riw-levels{display:block}.riw-level-list{min-width:0;margin-top:17px}.riw-play-area{grid-template-columns:38% 1fr;gap:25px;padding:35px 30px}.riw-slot{width:58px;height:62px}.riw-letter-tile{width:58px;height:58px}.riw-finish{grid-template-columns:150px 1fr}.riw-finish-actions{grid-column:2;flex-direction:row}.riw-finish>img{width:145px}}
@media(max-width:720px){.riw-page{padding:10px 0 55px}.riw-shell{width:min(100% - 22px,620px)}.riw-hero{display:grid;grid-template-columns:1fr 105px;gap:8px;min-height:0;padding:19px 17px;border-radius:24px}.riw-back{margin-bottom:9px;font-size:11px}.riw-hero h1{font-size:30px}.riw-hero p{font-size:12px;line-height:1.35}.riw-hero>img{grid-column:2;grid-row:1;width:105px;height:105px}.riw-score{position:absolute;right:14px;bottom:12px;padding:7px 11px;border-radius:13px}.riw-score span{display:none}.riw-score strong{font-size:20px}.riw-levels{margin-top:10px;padding:14px;border-radius:22px}.riw-levels>div:first-child{display:none}.riw-level-list{grid-template-columns:repeat(3,1fr);gap:5px;margin:0}.riw-level-button{display:flex;flex-direction:column;gap:2px;align-items:center;padding:7px 4px;border-radius:13px;text-align:center}.riw-level-button>span{width:28px;height:28px;border-radius:9px}.riw-level-button strong{font-size:10px;line-height:1.1}.riw-level-button small{font-size:9px}.riw-board{margin-top:10px;border-radius:25px;scroll-margin-top:75px}.riw-board-head{grid-template-columns:1fr auto;gap:10px;padding:12px 14px}.riw-board-head>div:first-child span{font-size:15px}.riw-progress{grid-column:1/3;grid-row:2;height:7px}.riw-reset{min-height:36px;padding:0 10px;font-size:10px}.riw-play-area{display:flex;flex-direction:column;gap:13px;padding:15px 13px 20px}.riw-picture-card{width:min(58vw,235px);height:min(58vw,235px);padding:12px;border-radius:24px}.riw-task{width:100%;text-align:center}.riw-task .riw-kicker{font-size:9px}.riw-task h2{margin:3px 0 12px;font-size:22px}.riw-slots{justify-content:center;gap:5px;min-height:52px}.riw-slot{width:43px;height:47px;border-width:2px;border-radius:12px;font-size:23px;box-shadow:0 5px 0 #ebe4fa}.riw-letters{justify-content:center;gap:7px;margin-top:17px}.riw-letter-tile{width:44px;height:44px;border-radius:12px;font-size:22px;box-shadow:0 6px 0 #5e43b8}.riw-actions{justify-content:center;margin-top:17px}.riw-secondary{min-height:39px;padding:0 12px;font-size:11px}.riw-message{min-height:34px;margin-top:10px;font-size:11px}.riw-success,.riw-finish{display:flex;flex-direction:column;gap:12px;padding:23px 17px;text-align:center}.riw-star{width:92px;height:92px}.riw-star svg{width:62px}.riw-success h2,.riw-finish h2{font-size:27px}.riw-success .riw-primary{width:100%}.riw-finish>img{width:135px;height:125px}.riw-finish-actions{width:100%;display:flex;flex-direction:column}.riw-primary{width:100%}.riw-parent-note{display:block;margin-top:10px;padding:22px 18px;border-radius:23px}.riw-parent-note h2{font-size:21px}.riw-parent-note p{font-size:12px}.riw-parent-note a{display:block;margin-top:14px;text-align:center}}

/* 0.6.1 — единый формат игровых страниц «Расти Играй». */
.riw-shell{width:min(1320px,calc(100% - 40px))}
.riw-back-row{margin-bottom:20px}
.riw-back{display:inline-flex;align-items:center;gap:9px;margin:0;color:#6546ad;font-size:15px;font-weight:900;text-decoration:none}
.riw-back::before{content:"";width:10px;height:10px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.riw-back:hover{color:#4f3297;text-decoration:none}
.riw-hero-start{min-height:55px;margin-top:24px;padding:0 27px;border:0;border-radius:18px;background:linear-gradient(135deg,#7650d7,#9464e8);box-shadow:0 12px 24px rgba(112,73,198,.26);color:#fff;font-size:17px;font-weight:900;line-height:1;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.riw-hero-start:hover{transform:translateY(-2px);box-shadow:0 15px 28px rgba(112,73,198,.31)}
.riw-workspace{scroll-margin-top:20px}

@media(min-width:981px){
  .riw-page{padding-top:22px}
  .riw-hero{grid-template-columns:minmax(0,1fr) 300px 140px;min-height:340px;padding:38px 44px;border-radius:34px}
  .riw-hero-copy{max-width:700px}
  .riw-hero h1{font-size:clamp(48px,4.8vw,66px)}
  .riw-hero p{font-size:17px}
  .riw-hero>img{width:285px;height:270px}
  .riw-score{padding:14px;border-radius:18px}
  .riw-score strong{font-size:30px}
  .riw-levels{margin-top:18px;padding:14px 18px;border-radius:22px}
  .riw-levels h2{font-size:19px}
  .riw-level-list{min-width:610px;gap:7px}
  .riw-level-button{grid-template-columns:32px 1fr;column-gap:7px;padding:7px 9px;border-radius:14px}
  .riw-level-button>span{width:30px;height:30px;border-radius:9px;font-size:13px}
  .riw-level-button strong{font-size:12px}
  .riw-level-button small{font-size:10px}
  .riw-board{--riw-stage-height:clamp(460px,calc(100vh - 220px),560px);display:grid;grid-template-rows:auto minmax(0,1fr);height:var(--riw-stage-height);margin-top:14px;border-radius:30px}
  .riw-board-head{grid-template-columns:190px 1fr auto;gap:16px;padding:12px 18px}
  .riw-board-head>div:first-child span{font-size:16px}
  .riw-reset{min-height:38px;padding:0 13px;font-size:11px}
  .riw-play-area{min-height:0;height:100%;grid-template-columns:minmax(270px,38%) 1fr;gap:24px;padding:18px 25px 22px}
  .riw-picture-card{justify-self:center;width:min(100%,360px);height:min(100%,360px);max-height:none;padding:18px;border-radius:27px}
  .riw-task{align-self:center;min-width:0}
  .riw-task h2{margin:4px 0 14px;font-size:26px}
  .riw-slots{gap:7px;min-height:61px}
  .riw-slot{width:55px;height:59px;border-radius:15px;font-size:28px;box-shadow:0 6px 0 #ebe4fa}
  .riw-letters{gap:8px;margin-top:18px}
  .riw-letter-tile{width:54px;height:54px;border-radius:15px;font-size:25px;box-shadow:0 7px 0 #5e43b8,0 12px 18px rgba(81,53,158,.16)}
  .riw-actions{margin-top:18px}
  .riw-secondary{min-height:40px;padding:0 14px;font-size:12px}
  .riw-message{min-height:22px;margin-top:11px;font-size:12px}
  .riw-success,.riw-finish{height:100%;padding:28px 36px}
  .riw-success{grid-template-columns:120px 1fr auto}
  .riw-star{width:105px;height:105px;border-radius:28px}
  .riw-star svg{width:70px}
  .riw-finish{grid-template-columns:170px 1fr auto}
  .riw-finish>img{width:160px;height:150px}
}

@media(max-width:980px){
  .riw-hero-start{margin-top:18px}
}

@media(max-width:720px){
  .riw-shell{width:min(1320px,calc(100% - 22px))}
  .riw-back-row{margin-bottom:13px}
  .riw-back{margin:0 5px;font-size:13px}
  .riw-hero-copy{grid-column:1/-1;padding-right:96px}
  .riw-hero-start{width:100%;min-height:48px;margin-top:15px}
  .riw-hero>img{grid-column:2;grid-row:1;align-self:start}
}
