/* Lab v2. Local styling; no shared game stylesheet is modified. */
@font-face{font-family:Montserrat;font-weight:500;font-display:swap;src:url('/games/pryshch3/assets/fonts/montserrat-500-cyrillic.woff2')}
@font-face{font-family:Montserrat;font-weight:700;font-display:swap;src:url('/games/pryshch3/assets/fonts/montserrat-700-cyrillic.woff2')}
:root{--ink:#263a30;--muted:#768076;--paper:#fffef9;--line:#e1e5d8;--lime:#b8ed4a;--lime-text:#4a721d;--wash:#f2f5e9;--game-w:390px;--game-h:494px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Montserrat,system-ui,sans-serif}
body{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;overscroll-behavior:none;background:#f8f9f3;color:var(--ink);font-size:14px;-webkit-tap-highlight-color:transparent}
button,a,input{touch-action:manipulation}button,a{-webkit-user-select:none}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #5b8424;outline-offset:4px}
[hidden]{display:none!important}#blob{display:none}#bar{display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(100%,540px);min-height:62px;padding:8px 18px;flex-shrink:0;z-index:2}
#mark{width:94px;height:46px;object-fit:contain}#score{display:grid;grid-template-columns:auto auto;gap:0 10px;text-align:right;margin-left:auto;font-size:11px}
#count{grid-row:1/3;font-size:28px;font-weight:700;line-height:1.2;color:#466a29;align-self:center}#count::after{content:' осталось';display:block;font-size:8px;font-weight:500}
#level{font-weight:700}#marks{font-size:10px;color:#a56854}#best{font-size:9px;color:var(--muted)}#best:empty,#marks:empty{display:none}
#btn-sound{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);background:var(--paper);border-radius:50%;color:var(--ink);display:grid;place-items:center}
#btn-sound svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#btn-sound[data-muted="true"] .sound-waves{display:none}#btn-sound[data-muted="false"] .sound-off{display:none}
#game{display:block;flex-shrink:0;position:relative;border-radius:26px;touch-action:none;image-rendering:auto;box-shadow:0 10px 34px #3b392b0b}
#tools{display:none;width:min(100%,440px);padding:10px 14px 0;gap:8px;flex-shrink:0}
body[data-stage="play"] #tools,body[data-stage="caption"] #tools{display:flex}
.tool{position:relative;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:5px;min-width:0;flex:1;min-height:74px;padding:9px 6px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);overflow:hidden;text-align:left;transition:background .15s,border-color .15s,transform .15s}
.tool[data-on="1"]{background:#eaf5d6;border:1.5px solid #85a64c;box-shadow:0 3px 0 #ccdcb6;transform:translateY(-2px)}
.tool-name{font-size:11px;font-weight:700}.tool-detail{font-size:9px;line-height:1.3;color:#65755e;max-width:70px}
.tool-ico{grid-row:1/3;width:34px;height:42px;background-size:contain;background-position:center;background-repeat:no-repeat}
.tool-ico[data-kind="lotion"]{background-image:url('/games/catch/assets/product-lotion.png')}
.tool-ico[data-kind="azelaic"]{background-image:url('/games/catch/assets/product-azelaic.png')}
.tool-ico[data-kind="hands"]{height:34px;border-radius:50%;background:radial-gradient(ellipse 4px 3px at 50% 46%,#fff4c5 65%,transparent 76%),radial-gradient(ellipse 9px 9px at 50% 53%,#ebada0 50%,transparent 76%),radial-gradient(ellipse 12px 20px at 0% 50%,#e4b28d 50%,transparent 62%),radial-gradient(ellipse 12px 20px at 100% 50%,#edc5a6 50%,transparent 62%);border:1px solid #d9cebb}
.tool[data-cooling="1"]::after{content:'';position:absolute;inset:auto 0 0;height:calc(var(--cd)*100%);background:#5673321c;pointer-events:none}
#playbar{width:min(92%,440px);flex-shrink:0}#playhint{font-size:10px;line-height:1.5;text-align:center;color:var(--muted);margin:10px 0 4px}#rotate{display:none!important}
#toast{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:8;max-width:min(94vw,450px);width:max-content;padding:8px 14px;border-radius:14px;background:#263a30;color:#fffdf5;box-shadow:0 5px 20px #18261d18;font-size:11px;line-height:1.4;text-align:center;pointer-events:none}
body:not([data-stage="play"]) #toast{display:none}
#panel{position:fixed;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:16px;background:#e8ecdf55;backdrop-filter:blur(5px)}
#panel-card{width:min(100%,460px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--paper);border:1px solid #fff;border-radius:28px;padding:26px;box-shadow:0 24px 80px #2937231c;text-align:center}
.panel-note{color:var(--muted);font-size:12px;line-height:1.5;margin:8px 0}.panel-q{font-size:24px;font-weight:700;margin:0}.count{font-size:64px;line-height:1;margin:12px;color:#5e8925}
.btn{min-height:48px;border:1px solid var(--line);border-radius:15px;background:var(--paper);font-weight:700;font-size:12px;color:var(--ink);padding:12px 16px;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:12px}
.btn:active{transform:translateY(1px)}.btn-go,.btn-primary{background:var(--lime);border-color:var(--lime);color:#263a20}.btn-go{width:100%;min-height:54px;font-size:16px;justify-content:space-between;padding:10px 18px}
.go-badge{width:31px;height:31px;border-radius:50%;background:#263a30;display:grid;place-items:center}.go-badge svg{width:18px;fill:none;stroke:#e5f6c8;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.panel-row{display:flex;gap:8px;margin-top:10px}.panel-row>*{flex:1;min-width:0}#btn-cta{margin-top:14px;flex-direction:column;gap:4px;background:#263a30;color:white;font-size:12px}.cta-note{font-size:10px;font-weight:500;opacity:.7}
body[data-stage="caption"] #panel{background:none;backdrop-filter:none;align-items:flex-end;pointer-events:none;padding-bottom:125px}
body[data-stage="caption"] #panel-card{width:auto;max-width:88%;padding:10px 16px;border-radius:18px;background:#fffef7eb;box-shadow:0 4px 20px #29372318}
body[data-stage="caption"] .panel-q{font-size:13px}body[data-stage="caption"] .panel-note{font-size:10px;margin:3px 0 0}
.stars{display:flex;gap:10px;justify-content:center;margin:0 0 16px}.stars i{width:35px;height:35px;background:#e0e5d5;clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}.stars i[data-on="1"]{background:#a9da44}
.dead-title{font-size:23px;line-height:1.25;font-weight:700;margin:6px 0}.route{color:#5f8333;font-size:11px;font-weight:700;margin:10px 0}.bridge{font-size:10px;line-height:1.5;text-align:left;background:var(--wash);border-radius:14px;padding:12px;margin:18px 0 0}.app-line{font-size:11px}
#foot{display:none}
body[data-stage="launch"]{height:auto;min-height:100dvh;justify-content:flex-start;overflow-y:auto;background:radial-gradient(ellipse at 85% 12%,#ebf3d9,transparent 55%),#f8f9f3}
body[data-stage="launch"] #bar{width:min(100%,860px);padding:12px 22px}body[data-stage="launch"] #score,body[data-stage="launch"] #game,body[data-stage="launch"] #playbar{display:none}
body[data-stage="launch"] #panel{position:relative;inset:auto;display:block;width:min(100%,820px);padding:8px 18px 0;background:none;backdrop-filter:none}
body[data-stage="launch"] #panel-card{width:100%;max-height:none;overflow:visible;text-align:left;padding:26px;border:1px solid #e4e8d8;box-shadow:0 14px 55px #3b45210b}
.launch-hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:16px}.eyebrow{font-size:9px;letter-spacing:.16em;font-weight:700;color:#708253;margin:0 0 16px}
.title{font-size:clamp(38px,7vw,70px);letter-spacing:-.06em;line-height:1.02;font-weight:700;margin:0 0 16px}.title-hi{color:#648c32;display:block}
.tagline{font-size:12px;font-weight:500;line-height:1.55;max-width:300px;margin:0;color:#65755e}
.launch-art{position:relative;aspect-ratio:3/4;border-radius:48% 48% 42% 42%;overflow:hidden;isolation:isolate;border:5px solid #eef3e3;box-shadow:0 10px 25px #3e472815;background:url('/games/acne_pop/assets/portraits-v2.png') 0 0/200% 200%;max-width:230px;width:100%;justify-self:center}
.hero-pore{position:absolute;width:28%;height:21%;left:14%;top:51%;border-radius:50%;background:radial-gradient(ellipse at 42% 30%,#fff4c5 0 8%,#eecb94 10%,#e3a190 22%,#d5767677 52%,transparent 72%);filter:drop-shadow(0 2px 1px #925c4a15)}
.launch-caption{font-size:10px;color:#839076;line-height:1.4;margin:15px 0 0}
.how{list-style:none;padding:0;margin:23px 0 20px;display:grid;grid-template-columns:1fr 1.4fr 1.5fr;gap:18px}
.how li{display:flex;gap:8px;align-items:flex-start;font-size:10px;line-height:1.5;color:#67755e}.how-ico{font-size:9px;color:#6d893f;font-weight:700;flex-shrink:0;border:1px solid #d5dfc7;width:23px;height:23px;border-radius:50%;display:grid;place-items:center}.how-txt b{display:block;color:#354a30;font-size:11px;margin-bottom:3px}
.quiet{font-size:9px;text-align:center;margin:12px 0 0;color:#88917f}.challenge{font-size:11px;background:#edf5da;padding:10px;border-radius:10px}
.about-wrap{display:none;width:min(100%,780px);padding:20px 22px 32px;font-size:11px;color:#718164}
body[data-stage="launch"] .about-wrap{display:block}.about-wrap>summary{cursor:pointer;list-style:none;text-align:center;color:#7b886f}.about-wrap>summary::after{content:' +';font-weight:700}
#about{font-size:12px;line-height:1.75;user-select:text;padding-top:18px}#about h2{font-size:14px;color:#354b30}#about a{color:#557d2d}
#about details{margin:8px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px}#about summary{cursor:pointer;font-weight:700}
@media(max-width:560px){
  #bar{min-height:56px;padding:5px 14px}#mark{width:82px;height:42px}
  body[data-stage="launch"] #bar{padding:6px 20px}
  body[data-stage="launch"] #panel{padding:4px 12px 0}
  body[data-stage="launch"] #panel-card{padding:20px;border-radius:24px}
  .launch-hero{gap:8px;grid-template-columns:1.15fr 1fr}.title{font-size:39px;margin-bottom:12px}.eyebrow{font-size:8px;letter-spacing:.12em;margin-bottom:12px}.tagline{font-size:10px}
  .launch-art{border-width:3px}.launch-caption{font-size:9px;margin-top:12px}
  .how{grid-template-columns:1fr;gap:10px;margin:18px 0}.how li{align-items:center;font-size:10px;gap:9px}.how-txt b{display:inline;font-size:10px;margin-right:4px}.how-ico{width:22px;height:22px}
  .tool{grid-template-columns:28px 1fr;column-gap:4px;min-height:74px}.tool-ico{width:28px}.tool-name{font-size:9px}.tool-detail{font-size:7.5px}
  #panel-card{padding:22px}.dead-title{font-size:20px}#game{border-radius:22px}
}
@media(max-width:350px){
  .title{font-size:33px}.tagline{font-size:9px}body[data-stage="launch"] #panel-card{padding:16px}.launch-caption{display:none}.how{margin:14px 0;gap:8px}.how li{font-size:10px}.how-txt b{font-size:10px}
  #tools{padding:8px 7px 0;gap:5px}.tool{padding:7px 4px;grid-template-columns:26px 1fr}.tool-ico{width:26px}.tool-name{font-size:9px}.tool-detail{font-size:7px}
}
@media(max-height:520px) and (orientation:landscape){
  body:not([data-stage="launch"]){display:grid;grid-template-columns:minmax(130px,1fr) auto minmax(150px,1fr);grid-template-rows:1fr auto 1fr;padding:6px 14px;gap:0 14px}
  body:not([data-stage="launch"]) #game{grid-column:2;grid-row:1/4;border-radius:20px}
  body:not([data-stage="launch"]) #bar{grid-column:1;grid-row:1;flex-wrap:wrap;align-self:start;width:100%;padding:5px}
  #score{order:3;width:100%;margin:0;text-align:left;grid-template-columns:auto 1fr}#count{font-size:24px}
  #tools{grid-column:3;grid-row:2;flex-direction:column;padding:0;width:100%;max-width:180px;justify-self:center}
  .tool{min-height:62px;min-width:140px;padding:7px 14px;grid-template-columns:36px 1fr}.tool-name{font-size:11px}.tool-detail{font-size:9px}
  #playbar{grid-column:3;grid-row:3;align-self:start;justify-self:center;max-width:190px}
  body[data-stage="caption"] #panel{align-items:center;justify-content:flex-start;padding:0 12px;max-width:210px}
  body[data-stage="caption"] #panel-card{max-width:100%}.panel-row{margin-top:6px}.bridge{margin-top:10px}#panel-card{max-height:94dvh;padding:18px}
  #toast{bottom:6px;font-size:10px;max-width:290px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
/* A complete first action remains visible when a phone is sideways. */
@media(max-height:520px) and (orientation:landscape){
 body[data-stage="launch"] #bar{min-height:44px;height:44px;padding:2px 24px}body[data-stage="launch"] #mark{width:76px;height:38px}
 body[data-stage="launch"] #panel{padding:3px 18px 0}body[data-stage="launch"] #panel-card{padding:16px 22px}
 #panel-launch{display:grid;grid-template-columns:1.6fr 1fr;gap:5px 24px;align-items:center}
 .launch-hero{display:contents}.launch-intro{grid-column:1;grid-row:1}.launch-art{grid-column:2;grid-row:1/6;height:258px;width:193px;max-width:100%;align-self:center}
 .title{font-size:36px;margin:0 0 6px;letter-spacing:-.04em}.title-hi{display:inline}.eyebrow{font-size:8px;margin:0 0 8px}.tagline{font-size:10px;max-width:none}.launch-caption{display:none}
 #challenge{grid-column:1;grid-row:2;margin:0;font-size:9px;padding:5px}.how{grid-column:1;grid-row:3;grid-template-columns:1fr;gap:5px;margin:4px 0}
 .how li{font-size:9px;align-items:center}.how-txt b{display:inline;font-size:9px;margin-right:4px}.how-ico{width:19px;height:19px;font-size:8px}
 #btn-play{grid-column:1;grid-row:4;min-height:44px;font-size:14px}.quiet{grid-column:1;grid-row:5;font-size:8px;margin:2px 0 0}.about-wrap{padding-top:12px}
}
body[data-cta-primary="1"] #btn-share{background:var(--paper);border-color:var(--line);font-weight:500}
body[data-cta-primary="1"] #btn-cta{background:var(--lime);border-color:var(--lime);color:#263a20}

/* V5: readable controls and a dedicated feedback slot on small phones. */
#btn-sound{flex-basis:44px;width:44px;height:44px}
#playbar{min-height:40px;display:flex;align-items:center;justify-content:center}
#playhint{margin:5px 0;font-size:10px;line-height:1.4}
#toast{position:static;transform:none;width:100%;max-width:100%;margin:4px 0;padding:5px 8px;font-size:10px;line-height:1.4;box-shadow:none;border-radius:10px}
@media(max-width:560px) and (orientation:portrait){
 #tools{padding:8px 8px 0;gap:6px}
 .tool{grid-template-columns:24px 1fr;grid-template-rows:28px auto;min-height:72px;padding:6px;column-gap:5px;border-radius:15px}
 .tool-ico{grid-row:1;width:24px;height:28px}.tool-ico[data-kind="hands"]{height:24px}
 .tool-name{font-size:11px}.tool-detail{grid-column:1/3;font-size:9px;max-width:none;text-align:center;line-height:1.25}
}
@media(max-height:520px) and (orientation:landscape){
 body:not([data-stage="launch"]){grid-template-columns:minmax(130px,1fr) auto minmax(150px,1fr);grid-template-rows:1fr auto 1fr;align-items:center;padding:8px 12px;column-gap:12px}
 body:not([data-stage="launch"]) #game{grid-row:1/4;align-self:center}
 body:not([data-stage="launch"]) #bar{grid-row:1/4;align-self:start}
 #tools{grid-row:1/4;align-self:center}
 #playbar{grid-column:1;grid-row:1/4;align-self:end;max-width:100%;width:100%;min-height:56px}
 #playhint,#toast{font-size:10px}
}
@media(max-width:650px) and (max-height:520px) and (orientation:landscape){
 body:not([data-stage="launch"]){grid-template-columns:minmax(116px,1fr) auto minmax(136px,1fr);padding:8px 12px;column-gap:12px}
 .tool{min-width:0;min-height:66px;padding:7px;grid-template-columns:28px 1fr}.tool-ico{width:28px}
 body[data-stage="launch"] #panel-card{padding:12px 18px}
 .launch-art{height:212px;width:159px}.title{font-size:31px}.how li,.how-txt b{font-size:9px}
}

@media(max-width:300px) and (orientation:portrait){
 .tool{grid-template-columns:22px 1fr;column-gap:3px}.tool-ico{width:22px}.tool-name{font-size:10px}
}

/* A failed client can be retried or shared, but does not unlock the next one. */
.btn:disabled{background:#eceee7;border-color:#e0e3d8;color:#8b9285;cursor:not-allowed;box-shadow:none;transform:none}
.next-hint{font-size:10px;margin:8px 0 0;color:#7b644b}

/* Stars are an earned result, visually grouped with an explicit score. */
.earned-result{background:#f1f5e7;border-radius:18px;padding:12px;margin-bottom:14px;pointer-events:none}
.result-label{font-size:9px;letter-spacing:.11em;font-weight:700;color:#748462;margin:0 0 5px}
.earned-score{font-size:17px;font-weight:700;margin:0 0 8px;color:#466a29}
.earned-result .stars{margin:0;gap:8px}.earned-result .stars i{width:25px;height:25px}
@media(max-height:520px){.earned-result{padding:8px;margin-bottom:10px}.earned-score{font-size:15px}.earned-result .stars i{width:22px;height:22px}}

/* The medical disclaimer VK moderation required: inside VK only, on the first
   screen (see _face/style.css). This launch page scrolls, so the sentence closes
   the flow; margin-top:auto sinks it to the bottom of the screen while the page
   is short, and to the end of the about section once that is opened. */
.disclaimer{display:none}
html[data-surface="vk"] body[data-stage="launch"] .disclaimer{display:block;flex-shrink:0;margin:auto 0 0;padding:18px 22px max(14px,env(safe-area-inset-bottom));max-width:min(100%,720px);font-size:10px;line-height:1.45;text-align:center;color:#65755e;text-wrap:balance}

/* VK's control capsule: its mobile clients float «…» and «✕» over the top-right
   corner, which covered the sound toggle. VKUI reserves 90px there
   (`customPanelHeaderAfterMinWidth`); so does this. Desktop VK reserves nothing.
   See games/_face/style.css for the long version. */
html[data-vk-platform^="mobile"] #bar{padding-right:112px}
