/* Спокойный дизайн сайта. Комикс остаётся только внутри игры. */
html.site{background:#faf8f4}
.site body{background:#faf8f4;color:#23201c;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;line-height:1.55}
.site main{max-width:1040px;padding-left:24px;padding-right:24px;gap:20px}
.site h1,.site h2{font-family:ui-serif,"New York",Georgia,"Times New Roman",serif;font-weight:600;letter-spacing:-.015em}
.site h1{font-size:clamp(2.1rem,5.500vw,3.4rem);line-height:1.1;margin-top:18px}.site h2{font-size:1.6rem}
.site .lead{color:#6a635a;font-size:1.15rem;max-width:40em}.site .mute{color:#6a635a}.site .link{color:#6a635a}
.site .brand{font-family:ui-serif,"New York",Georgia,serif;font-weight:600;font-size:1.3rem;color:#23201c}
.site .card{background:#fff;border:1px solid #e8e2d8;border-radius:20px;box-shadow:0 1px 2px #23201c0a,0 8px 28px #23201c0d;padding:24px;color:#23201c}
.site .card .mute{color:#6a635a}.site .big{font-size:1.12rem}
.site button,.site .btn{border:1px solid #d9d1c4;border-radius:12px;box-shadow:none;background:#fff;color:#23201c;font-weight:600;min-height:50px}
.site .card button:not(.pri){background:#fff;color:#23201c}
.site .pri,.site .card button.pri,.site .btn.pri{background:#f3dcd4;border-color:#f3dcd4;color:#4a2f2a;box-shadow:none;font-size:1.05rem}
.site .pri:hover{background:#eccdc3}.site .link{border:0;background:none}
.site button:active{transform:none;box-shadow:none;opacity:.85}
.site .badge{background:#f1e8db;color:#5d3a20;border:0;border-radius:12px;box-shadow:none;font-weight:600}
.site input{border:1px solid #cfc6b8;border-radius:12px}
.site #toast{background:#23201c;color:#fff;border-radius:12px;font-weight:600}
.site .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px}
.site .item{padding:0;overflow:hidden;gap:0}.site .item .in{padding:24px;display:flex;flex-direction:column;gap:12px;flex:1}.site .item .in p{flex:1;color:#6a635a}
.site .art{height:190px;display:grid;place-items:center;position:relative;overflow:hidden}
.art.quiz{background:#dfe7ef;font-size:4rem}
.site .wide{height:260px;border-radius:20px;border:1px solid #e8e2d8}
.site .two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.site .buyrow{max-width:420px;display:flex;flex-direction:column;gap:8px}
.site form.card{max-width:520px}
.art.brow{background:#f6c98a url(/brow-notch/shot-clipboard.jpg) top/cover}
.site .shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:20px}.shots figure{margin:0}.shots img{width:100%;height:auto;display:block;border-radius:16px;border:1px solid #e8e2d8}.shots figcaption{padding-top:8px;color:#6a635a}
.site .apphead{display:flex;align-items:center;gap:16px;margin-top:18px}.site .apphead h2{font-size:1.8rem}
.site .hero{display:grid;grid-template-columns:1fr;gap:24px;align-items:center}.site .hero .buyrow{margin-top:20px}.site .hero .wide{height:220px}.site .card .buyrow{margin-top:14px}
@media(min-width:800px){.site .hero{grid-template-columns:1fr 1fr;gap:40px}.site .hero .wide{height:340px}.site .pair{grid-template-columns:1fr 1fr}}
.site .small{font-size:.85rem;line-height:1.4}.site .note:empty{display:none}
.site .hero .lead{margin-top:14px}
.site .alert{background:#23201c;border-color:#23201c;color:#fff;padding:28px}.site .alert b{font-size:1.35rem;line-height:1.3}.site .alert p{font-size:1.1rem;color:#e9e2d8}.site .alert p:empty,.site .alert [hidden],.site .card[hidden]{display:none}
.site #toast{top:auto;bottom:calc(24px + env(safe-area-inset-bottom));font-size:1.2rem;line-height:1.35;padding:22px 24px}
.site .own{margin:2px 0 0;text-align:center}.site .own[hidden]{display:none}.site .own a{color:#23201c;font-weight:600}
#pop{border:0;border-radius:26px;padding:34px 28px 28px;max-width:430px;width:calc(100% - 40px);margin:auto;text-align:center;color:#23201c;background:#fffaf7;box-shadow:0 24px 70px #23201c45;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}#pop::backdrop{background:#23201c70}
#pop .ic{font-size:4.2rem;line-height:1.1}#pop h2{font-size:1.8rem;line-height:1.2;margin:10px 0}#pop p{font-size:1.15rem;line-height:1.45;margin:0 0 22px}#pop button{width:100%}
#pop[open]{animation:pop .45s cubic-bezier(.2,1.5,.4,1)}#pop[open] .ic{animation:fly .8s ease-out}
@keyframes pop{from{opacity:0;transform:scale(.4)}}@keyframes fly{from{transform:translate(-140px,90px) rotate(-25deg) scale(.5);opacity:0}}
@media(prefers-reduced-motion:reduce){#pop[open],#pop[open] .ic{animation:none}}
.site #toast{top:50%;bottom:auto;transform:translateY(-50%);background:#fffaf7;color:#23201c;border:1px solid #f0ddd5;border-radius:22px;box-shadow:0 20px 60px #23201c38;text-align:center;font-size:1.25rem;padding:28px;max-width:430px}
.site .alert{background:#fffaf7;border-color:#f0ddd5;color:#23201c}.site .alert p{color:#5c5348}
#pop:focus{outline:0}
.site .hero>*{min-width:0}.site .small{white-space:nowrap;letter-spacing:-.015em;font-size:min(.8rem,calc((100vw - 52px)/32))}.site .card .small{margin-left:-18px;margin-right:-18px;text-align:center;font-size:min(.8rem,calc((100vw - 64px)/33))}
@media(max-width:350px){.site .small,.site .card .small{white-space:normal;font-size:.7rem}}@media(min-width:560px){.site .card .small{margin-left:0;margin-right:0;text-align:left}}
.site :focus-visible{outline-color:#b98b7d}#pop button:focus-visible{outline:2px solid #d9b3a6;outline-offset:2px}

.site a.brand{align-self:flex-start;min-height:48px}.site .more{border-top:1px solid #e8e2d8;padding-top:28px;margin-top:20px}.site .item .in .mute{font-size:.9rem;margin-bottom:-8px}
.site .tip{background:#f6eee4;border-color:#eadfce;box-shadow:none}.site .tip h2{font-size:1.35rem}.tiprow{display:flex;gap:14px;align-items:flex-start}.tiprow>span{font-size:1.5rem;line-height:1.3}.tiprow p{color:#6a635a;line-height:1.5}.tiprow b{color:#23201c}
/* Низ сайта: один на всех страницах, внутри игры скрыт */
.foot{display:none}.site .foot{display:block;background:#f3eee5;border-top:1px solid #e8e2d8;color:#6a635a;font-size:.95rem}
.foot>div{max-width:1040px;margin:auto;padding:26px 24px calc(26px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.foot nav{display:flex;flex-wrap:wrap;gap:2px 22px}.foot a{color:inherit;display:inline-block;padding:6px 0}.foot nav a{text-decoration:none}.foot a:hover{color:#23201c}
.site main{min-height:calc(100dvh - 190px)}
.first{display:flex;flex-direction:column;gap:20px}.boot .first{visibility:hidden}
