*{box-sizing:border-box}
:root{--ink:#343e2c;--moss:#435536;--brown:#6c5134;--cream:#fbf6e9;--edge:#dbceb6;--gold:#c17d21}
body.menu,body.game{margin:0;color:var(--ink);background:#fbf7ec;font:16px/1.4 'PT Sans',Arial,sans-serif;min-height:100vh;height:auto;display:block;padding:0}
a{color:inherit}.bar,.book,.playbook{width:min(1152px,calc(100% - 64px));margin:0 auto}
.bar{min-height:62px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9cfb6}
.wordmark{font:italic bold 22px Georgia,serif;color:#93492e;letter-spacing:-.04em}
.bar a{font-size:15px;text-decoration:none;color:#47573a;padding:10px 0}.bar a:hover{text-decoration:underline}
.book{padding:20px 0 34px}.cover{height:clamp(265px,29vw,347px);border-radius:24px;overflow:hidden;position:relative;background:#e3e7ca url('art/village.webp') center 54%/cover no-repeat;isolation:isolate;border:1px solid #cfc7a7}
.cover:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,248,225,.91),rgba(255,248,225,.62) 25%,transparent 60%);z-index:-1}
.covercopy{position:absolute;top:46%;left:5%;transform:translateY(-50%)}.cover h1{margin:0;font:normal clamp(62px,7vw,100px)/.88 Georgia,serif;letter-spacing:-.075em;color:#34472d}
.cover p{margin:16px 0 0;font:italic 23px Georgia,serif;color:#604c30}.host{position:absolute;bottom:3%;left:51%;height:54%;width:20%;object-fit:contain;filter:drop-shadow(0 3px 2px #69512d44)}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}
.gamecard{display:block;background:#fffdf5;border:1px solid #d7c9b0;border-radius:19px;overflow:hidden;text-decoration:none;color:var(--ink);box-shadow:0 3px 8px #5543210b;transition:transform .16s}
.gamecard:hover{transform:translateY(-3px);border-color:#ad935c}.cardpic{height:clamp(152px,15vw,200px);position:relative;overflow:hidden;background-size:cover;background-position:center}
.nectar .cardpic{background-image:url('art/clearing.webp')}.pour .cardpic{background-image:url('art/pantry.webp')}.trail .cardpic{background-image:url('art/grass.webp')}
.spr{position:absolute;object-fit:contain;filter:drop-shadow(1px 3px 1.5px #4938142b)}.f1{height:68%;left:20%;bottom:4%;transform:rotate(-7deg)}.f2{height:50%;left:55%;bottom:3%;transform:rotate(8deg)}.sh{height:54%;left:36%;top:2%;transform:rotate(-10deg)}.dp{height:70%;left:16%;top:9%;transform:rotate(-8deg)}.jar{height:77%;left:48%;bottom:7%}.hv{height:45%;left:13%;bottom:8%}.cf{height:64%;right:16%;top:2%}.trailcurve{position:absolute;left:30%;top:42%;width:40%;height:36%;border:14px solid #f3d398;border-top:0;border-left:0;border-radius:0 0 100% 0;transform:rotate(-18deg)}
.caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 16px 19px}.caption h2{margin:0 0 5px;font:normal clamp(22px,2.2vw,31px)/1.02 Georgia,serif;color:#374b31;letter-spacing:-.04em}.caption span{font-size:14px;color:#655e48}.caption b{font-size:23px;border:1px solid #d8cfaf;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;font-weight:400;flex:none;color:var(--moss)}
.game .playbook{padding:28px 0;display:grid;grid-template-columns:minmax(217px,.82fr) minmax(0,2.2fr);gap:clamp(22px,4vw,64px);align-items:center}
.panel{min-width:0}.game .rk-title{font:normal clamp(40px,4.9vw,71px)/.97 Georgia,serif;text-align:left;color:#374b31;letter-spacing:-.065em;margin:0 0 18px}
.instruction,.game .rk-hint{font:17px/1.42 Arial,sans-serif;text-align:left;color:#605c48;margin:0 0 20px;opacity:1}
.stage{border:1px solid #c1b99c;border-radius:24px;overflow:hidden;background:#e8e5c4;box-shadow:0 8px 23px #50432212}
.rk-home-btn,.rk-pour-btn,.rk-done-btn,.rk-party-card button{font:700 17px Arial,sans-serif!important;border:1px solid #966221!important;border-radius:100px!important;color:#372b14;background:#efc05b!important;box-shadow:0 2px 0 #ad7a3c40}
.game button:focus-visible,.gamecard:focus-visible,.bar a:focus-visible{outline:4px solid #315e80;outline-offset:3px}
.game .rk-top{margin-top:8px;max-width:100%;display:flex;flex-flow:column;align-items:stretch;gap:8px}
.rk-widget,.rk-barrel-widget{border:1px solid var(--edge)!important;background:#fffdf5!important;border-radius:14px!important;padding:10px 14px!important;justify-content:space-between}.rk-barrel{border:1.5px solid #84623f!important;border-radius:32%/12%!important;background:#f4e6c6!important}.rk-barrel:before,.rk-barrel:after{background:#9b7851!important;height:3px!important}.rk-barrel-fill,.rk-jar-fill{background:linear-gradient(90deg,#bd6d13,#f3b641 22%,#ffce60 48%,#d3831b)!important}
.rk-widget .rk-barrel{width:31px;height:42px}.rk-belly-seg{border:1.5px solid #978862!important;background:#fffaf0!important}.rk-belly-seg.full{background:#e4a134!important}.rk-belly{gap:3px}
.nectar .rk-meadow{position:relative;width:100%;max-width:none;height:clamp(395px,60vh,570px);min-height:0;margin:0;border:0;border-radius:0;background:#aabd76 url('art/clearing.webp') center/cover}
.rk-sun,.rk-hive>*{display:none}.rk-hive{background:url('art/hive.webp') center bottom/contain no-repeat}
button.rk-flower{height:clamp(79px,10vw,109px);width:clamp(60px,9vw,94px);transform:translate(-50%,-62%);background:transparent}
.rk-flower .rk-head{top:0;width:100%;height:100%;background:var(--bloom,url('art/poppy.webp')) center/contain no-repeat;filter:drop-shadow(1px 2px 1px #34492142)}
.rk-flower:nth-of-type(3n+2){--bloom:url('art/daisy.webp')}.rk-flower:nth-of-type(3n){--bloom:url('art/cornflower.webp')}
.rk-head>*,.rk-flower .rk-stem,.rk-flower .rk-leaf{display:none}.rk-flower.empty .rk-head{opacity:.40;filter:grayscale(.9)}
.rk-home-btn{min-height:48px!important;margin-top:16px!important;padding:5px 24px!important}
.rk-bee img{animation:none!important;filter:drop-shadow(0 2px 1px #51442855)}.rk-buzz,.rk-bee-say{border:1px solid #bfa178!important;background:#fff9e8!important;color:#4e402e;box-shadow:0 2px 6px #40331c19}
.pour .stage{background:url('art/pantry.webp') center/cover}.pour .rk-scene{height:clamp(420px,58vh,530px);min-height:0;width:100%;max-width:none;margin:0;padding-top:42px;display:flex;align-items:center;justify-content:center}
.rk-faucet{background:url('art/tap.webp') center bottom 8px/auto 80px no-repeat;z-index:2;flex:none}.rk-pipe,.rk-tap{display:none}
.rk-stream{background:linear-gradient(to right,#b96814,#f8c968 52%,#cc8b26)!important;border:0!important;width:9px!important;border-radius:4px}
.rk-jar{background:linear-gradient(90deg,#fff7e991,#fffef2ad 12%,#ffffff3b 23%,#fffae768 76%,#fffbe9ad 86%,#eeeacf98)!important;border:3px solid #716b49!important;border-top:5px double #736c4b!important;border-radius:13px 13px 24px 24px!important;box-shadow:inset 4px 0 0 #fffae590,inset -3px -3px 0 #c8b08d50,0 3px 4px #40331c33}
.rk-mark{border-color:#853e32!important;background:#fff9d23b!important;z-index:3}.rk-lid{z-index:4}.rk-controls{gap:10px!important;margin-top:22px!important;padding:7px;border-radius:100px;background:#fff8e5e6}
.rk-pour-btn,.rk-done-btn{width:auto!important;height:48px!important;min-width:90px!important;min-height:48px!important;padding:0 18px!important}.rk-done-btn{background:#415a39!important;color:white!important;border-color:#375135!important}
.game .rk-bee-box{top:auto;right:5%;bottom:24%;width:22%;max-width:125px}.game .rk-bee-box img{width:84%;height:auto;max-height:108px;object-fit:contain}.rk-bee-say{font-size:13px!important}
.rk-shelf-box{max-width:100%!important;margin-top:16px!important}.rk-shelf{border:1px solid #bca47b!important;background:#fffdf3!important;box-shadow:inset 0 -4px #caa879;border-radius:8px!important;align-items:end;gap:3px!important}.rk-shelf-jar{border:0;background:transparent url('art/jar.webp') center/contain no-repeat}.rk-shelf-jar:before{display:none}
.trail .stage{width:min(100%,clamp(290px,calc((100vh - 112px)*.71),505px));justify-self:center}.trail .rk-field{border:0;border-radius:0;max-width:none;margin:0;background:#a5ae74 url('art/grass.webp') center/cover}
.rk-path{stroke:#f6deb2}.rk-path-edge{stroke:#927e51;opacity:.78}.rk-decor{stroke:#c8b58a;opacity:.8}.rk-bee-ring{fill:#fff9dcaa;stroke:#ad8449;stroke-width:1.5}.rk-level,.rk-shelf-label,.rk-barrel-widget{color:#445238}
.rk-party-card{border:2px solid #bfa47b!important;background:#fff8e7!important;color:#394735}.rk-party-card h2{font-family:Georgia,serif!important;color:#495639!important}
@media(max-width:760px){
 .bar,.book,.playbook{width:calc(100% - 24px)}.bar{min-height:48px}.wordmark{font-size:20px}
 .book{padding-top:10px}.cover{height:clamp(213px,44vw,300px);border-radius:16px}.cover h1{font-size:clamp(49px,9vw,70px)}.cover p{font-size:17px;margin-top:9px}.host{left:55%;height:45%;width:25%}
 .cards{grid-template-columns:1fr;gap:9px;margin-top:12px}.gamecard{display:flex;min-height:90px;border-radius:14px}.cardpic{width:34%;min-height:90px;height:auto;flex:none}.caption{padding:10px 12px;width:66%}.caption h2{font-size:clamp(20px,4.5vw,27px)}.caption span{font-size:13px;line-height:1.25;display:block}.caption b{width:26px;height:26px;font-size:20px}
 .game .playbook{display:flex;flex-direction:column;align-items:stretch;padding:12px 0 20px;gap:10px}.game .rk-title{font-size:32px;margin-bottom:7px}.instruction,.game .rk-hint{font-size:14px;margin-bottom:8px}.game .rk-top{flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px;margin-top:4px}
 .rk-widget,.rk-barrel-widget{padding:4px 7px!important;gap:4px!important}.rk-widget .rk-barrel{width:19px;height:26px}.rk-widget-label{font-size:12px}.rk-belly-seg{width:14px;height:14px}.rk-flights{font-size:10px}
 .stage{border-radius:15px}.nectar .rk-meadow{height:clamp(295px,49vh,450px)}.rk-hive{width:75px;height:76px}.rk-home-btn{margin-top:6px!important;min-height:36px!important;font-size:15px!important}
 .pour .rk-scene{height:406px;padding-top:7px}.rk-shelf-box{margin-top:4px!important;display:grid;grid-template-columns:1fr auto;gap:3px 6px}.rk-shelf{grid-column:1/-1;grid-row:2;min-height:24px!important;padding:3px!important}.rk-shelf-label,.rk-level{font-size:12px;margin:0}.rk-shelf-jar{width:14px;height:17px}
 .game .rk-bee-box{right:1%;width:23%;bottom:24%}.rk-bee-say{font-size:11px!important;padding:4px!important}.rk-jar{width:107px}.trail .stage{width:min(100%,430px);align-self:center}.rk-barrel-widget .rk-barrel{width:18px;height:25px}.rk-barrel-widget{font-size:11px}
}
.pour .rk-faucet{background:none}
.pour .rk-faucet:before{content:'';position:absolute;left:50%;transform:translateX(-50%);width:105px;height:105px;bottom:33px;background:url('art/barrel.webp') center/contain no-repeat;filter:drop-shadow(0 2px 1px #79572a38)}
.pour .rk-faucet:after{content:'';position:absolute;left:50%;transform:translateX(-50%);width:41px;height:52px;bottom:8px;background:url('art/tap.webp') center bottom/contain no-repeat}
.rk-jar-wrap:before{content:'';position:absolute;top:-4px;left:3%;width:94%;height:9px;z-index:1;border:1px solid #8a8468;border-radius:44%/47%;background:linear-gradient(#ffffedbf,#adac7d55,#fff7ddda)}
.rk-jar:after{content:'';position:absolute;inset:9% 7% 7%;border-left:3px solid #fffff19e;border-radius:18% 20% 45% 33%;pointer-events:none}
@media(max-width:760px){.pour .rk-faucet:before{height:90px;width:90px;bottom:26px}}
.trail .rk-field[data-map]{background-size:100% 100%}
.trail .rk-field[data-map="1"]{background-image:url('art/trail_1.webp')}
.trail .rk-field[data-map="2"]{background-image:url('art/trail_2.webp')}
.trail .rk-field[data-map="3"]{background-image:url('art/trail_3.webp')}
.trail .rk-path,.trail .rk-path-edge,.trail .rk-decor{stroke:transparent}
.trail .rk-field.flash{box-shadow:inset 0 0 0 4px #ab7650}
.trail .cardpic{background-image:url('art/trail_1.webp');background-size:cover;background-position:center 54%}
.pour .cardpic{background-image:url('art/pour.webp');background-position:center center}
.pour .stage{background:#fbf3e0}
.pour .rk-scene{width:100%;height:auto;min-height:0;padding:0;display:block}
.painted-workshop{position:relative;width:100%;aspect-ratio:var(--image-ratio);background:url('art/pour.webp') center / 100% 100% no-repeat}
.pour .rk-faucet{position:absolute;left:var(--nozzle-x);top:var(--nozzle-y);width:0;height:0;background:none;z-index:4}
.pour .rk-faucet:before,.pour .rk-faucet:after,.pour .rk-jar-wrap:before,.pour .rk-jar:after{display:none}
.pour .rk-stream{top:0;left:0;width:clamp(3px,.4vw,7px)!important;transform:translateX(-50%);opacity:.92;pointer-events:none}
.pour .rk-jar-wrap{position:absolute;left:var(--jar-x);top:var(--jar-y);width:var(--jar-width);height:var(--jar-height);margin:0}
.pour .rk-jar{width:100%;height:100%;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important;clip-path:var(--inner-profile);isolation:isolate}
.pour .rk-mark{border-width:1.5px!important;border-color:#a65728!important}
.pour .rk-jar-fill{opacity:.82}.pour .rk-bee-box{right:2%;bottom:2%;width:17%;max-width:104px}.pour .rk-controls{margin:0!important;padding:10px 12px;justify-content:center;background:#fbf3e0}
.pour .rk-lid{z-index:5;left:10%;right:10%;top:0;height:8%;background:#af8652;border:1px solid #926b43;border-radius:45%}
@media(max-width:760px){.pour .rk-scene{min-height:0}.game.pour .rk-bee-box{width:19%;right:1%;bottom:1%}.game.pour .rk-bee-box img{max-height:56px}.game.pour .rk-bee-say{font-size:10px!important;min-height:15px;padding:2px!important}}
.painted-workshop{--image-ratio:2512/1680;--nozzle-x:50.8%;--nozzle-y:48.7%;--jar-x:41.9%;--jar-y:49.7%;--jar-width:17.45%;--jar-height:32.75%;--inner-profile:polygon(12% 0,88% 0,88% 15%,95% 26%,100% 39%,100% 60%,96% 80%,92% 91%,84% 96%,67% 99%,50% 100%,32% 99%,16% 96%,8% 91%,4% 80%,0 60%,0 39%,5% 26%,12% 15%)}
.pour .rk-jar-fill,.pour .rk-stream{transition:none}

/* ---------- посадка по высоте экрана (Kimi): сцены не выходят за 100dvh ---------- */
.nectar .rk-meadow{height:clamp(360px,calc(100dvh - 160px),570px)}
.trail .stage{width:min(100%,clamp(290px,calc((100dvh - 112px)*.71),505px))}
.pour .rk-scene{max-width:min(100%,calc((100dvh - 260px)*1.4962));margin-left:auto;margin-right:auto}
@media(max-width:760px){
 .nectar .rk-meadow{height:clamp(260px,calc(100dvh - 290px),450px)}
 .trail .stage{width:min(100%,calc((100dvh - 260px)*.714),430px)}
 .pour .rk-scene{max-width:calc((100dvh - 370px)*1.4962)}
 .cover{height:clamp(160px,26dvh,300px)}
}

/* ---------- низкие экраны ---------- */
@media (max-height:700px) and (min-width:761px){
 .cover{height:200px}
 .cardpic{height:130px}
}
@media (max-height:500px){
 .cover{display:none}
 .bar{min-height:40px}
 .game .rk-title{font-size:22px;margin-bottom:4px}
 .instruction,.game .rk-hint{font-size:12px!important;margin-bottom:4px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .rk-home-btn{min-height:40px!important;margin-top:4px!important}
 .nectar .rk-meadow{height:max(140px,calc(100dvh - 240px))}
 .trail .stage{width:min(100%,calc((100dvh - 190px)*.714),430px)}
 .pour .rk-scene{max-width:calc((100dvh - 260px)*1.4962)}
 .pour .rk-shelf-label,.pour .rk-level{display:none}
}
