/* Игра 2 «Победи рутину» */
body.g2 { background: #EEE9FB; background-image: linear-gradient(180deg, #F5F2FD 0%, #E6DFFA 100%); }
.screen.dark { background: #2B168A; background-image: radial-gradient(ellipse at 30% 35%, #6A47EE 0%, #3A1FB0 45%, #1E0F66 100%); color: #fff; }
.screen.dark .muted, .on-dark-muted { color: rgba(255, 255, 255, .72); }
.footer-note.on-dark { color: rgba(255, 255, 255, .6); }
.logo-pill { display: inline-block; background: #fff; border-radius: 99rem; padding: .45rem 1.1rem; box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .18); }
.logo-pill img { height: 1.6rem; width: auto; }
.btn-white { color: var(--brand-deep); }
.btn-white.btn-play:after { border-left-color: var(--brand); }
.btn-ghost-w { background: transparent; color: #fff; border: .14rem solid rgba(255, 255, 255, .8); box-shadow: none; }

/* заставка */
.a-main { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.a-art { -webkit-flex: 0 0 34%; flex: 0 0 34%; -webkit-align-self: stretch; align-self: stretch; min-height: 14rem; }
.a-art { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, rgba(0,0,0,0) 100%); }
.a-text { -webkit-flex: 1 1 auto; flex: 1 1 auto; padding: 0 1.4rem; }
.a-text .h-xl { font-size: 3.6rem; margin-bottom: 1rem; }
.steps { margin: 0 0 1.6rem; padding: 0; list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-left: 2.6rem; margin: .55rem 0; font-size: 1.15rem; font-weight: 700; }
.steps li:before { content: counter(st); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: rgba(255, 255, 255, .16); border: .1rem solid rgba(255, 255, 255, .5); text-align: center; line-height: 1.7rem; font-weight: 800; font-size: .95rem; }
.board { -webkit-flex: 0 0 17rem; flex: 0 0 17rem; padding: 1rem 1.2rem; }
.dark .board { background: rgba(255, 255, 255, .1); box-shadow: none; border: .1rem solid rgba(255, 255, 255, .2); color: #fff; }
.lb { list-style: none; margin: .6rem 0 0; padding: 0; counter-reset: lb; }
.lb li { counter-increment: lb; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: .32rem 0; border-bottom: .06rem solid rgba(128, 128, 160, .25); font-weight: 700; font-size: .95rem; }
.lb li:before { content: counter(lb); width: 1.6rem; font-weight: 800; opacity: .65; }
.lb li .n { -webkit-flex: 1 1 auto; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb li .s { font-weight: 800; }
.lb li.me { color: var(--brand-deep); }
.dark .lb li.me { color: #FFE58A; }
.lb li.empty:before { content: ""; width: 0; }
.lb li.empty { border: 0; font-weight: 500; opacity: .8; }

body.port .a-main { -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: center; justify-content: center; text-align: center; }
body.port .a-art { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 100%; height: 26rem; -webkit-align-self: auto; align-self: auto; }
body.port .a-text { padding: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
body.port .steps { display: inline-block; text-align: left; }
body.port .board { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 100%; max-width: 30rem; margin-top: 1.4rem; text-align: left; }
body.phone .a-art { height: 13rem; min-height: 0; }
body.phone .a-text .h-xl { font-size: 2.3rem; }
body.phone .steps li { font-size: 1rem; }

/* игра */
#game { overflow: hidden; touch-action: none; -ms-touch-action: none; }
#cv { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; padding: 1rem 1.4rem; }
.hud-top { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: flex-start; align-items: flex-start; }
.stat .num { font-size: 3.6rem; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.02em; }
.stat .cap { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.stat.right { text-align: right; }
.hud-mid { text-align: center; padding-top: .4rem; }
.hud-logo { height: 2rem; margin: 0 auto; }
.hud-tag { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-deep); margin-top: .3rem; }
.hud-time { font-size: .85rem; color: var(--muted); font-weight: 700; margin-top: .2rem; }
.hint-tap { margin-top: auto; margin-bottom: .7rem; -webkit-align-self: center; align-self: center; background: rgba(24, 34, 44, .75); color: #fff; padding: .5rem 1rem; border-radius: 99rem; font-size: .9rem; font-weight: 700; -webkit-transition: opacity .5s; transition: opacity .5s; }
.hint-tap.off { opacity: 0; }
.power { pointer-events: auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: .6rem .8rem; background: #FFFDF6; max-width: 40rem; width: 100%; -webkit-align-self: center; align-self: center; }
.power-bot { width: 4.2rem; height: 4.2rem; object-fit: contain; -webkit-flex: 0 0 auto; flex: 0 0 auto; border-radius: .6rem; }
.power-body { -webkit-flex: 1 1 auto; flex: 1 1 auto; padding: 0 .9rem; min-width: 0; }
.power-title { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-deep); font-size: .9rem; }
.segs { display: -webkit-box; display: -webkit-flex; display: flex; margin: .35rem 0; }
.segs i { -webkit-flex: 1 1 0; flex: 1 1 0; height: .9rem; background: #E7E1FA; margin-right: .2rem; border-radius: .15rem; -webkit-transition: background .2s; transition: background .2s; }
.segs i:last-child { margin-right: 0; }
.segs i.on { background: var(--brand); }
.power.ready .segs i.on { background: #F2B705; }
.power-btn { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: .7rem 1.1rem; font-size: .95rem; }
.power.ready .power-btn { -webkit-animation: pulse 1s ease-in-out infinite; animation: pulse 1s ease-in-out infinite; background: #F2B705; color: #2B168A; }
body.phone .stat .num { font-size: 2.4rem; }
body.phone .hud { padding: .7rem .8rem; }
body.phone .hud-logo { height: 1.4rem; }
body.phone .power-bot { width: 3rem; height: 3rem; }
body.phone .power-body .t-s { display: none; }

.flash { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(110, 75, 240, .92); color: #fff; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; text-align: center; opacity: 0; pointer-events: none; -webkit-transition: opacity .25s; transition: opacity .25s; padding: 1rem; }
.flash.show { opacity: 1; }
.flash .t-l { margin-top: .6rem; opacity: .9; }
.perfect { position: absolute; left: 50%; top: 22%; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); font-size: 2rem; font-weight: 800; color: #F2B705; text-shadow: 0 .15rem .6rem rgba(43, 22, 138, .35); opacity: 0; pointer-events: none; }
.perfect.show { -webkit-animation: pf .9s ease-out; animation: pf .9s ease-out; }
@-webkit-keyframes pf { 0% { opacity: 0; -webkit-transform: translate(-50%, 1rem) scale(.8); } 25% { opacity: 1; -webkit-transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; -webkit-transform: translate(-50%, -2rem) scale(1); } }
@keyframes pf { 0% { opacity: 0; transform: translate(-50%, 1rem) scale(.8); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -2rem) scale(1); } }

/* конец игры */
.big-score { font-size: 8rem; font-weight: 800; line-height: 1; margin: .6rem 0; letter-spacing: -.03em; }
.big-score small { font-size: 1.4rem; font-weight: 800; margin-left: .6rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.over-actions .btn { margin: .4rem .5rem; }
body.phone .big-score { font-size: 5rem; }
body.phone .over-actions .btn { display: block; width: 100%; margin: .6rem 0; }

/* финал */
.done-wrap { max-width: 38rem; margin: 0 auto; width: 100%; }
.done-wrap > * { margin-bottom: 1rem; }
.done-wrap .board { width: 100%; }
.more .btn { margin: .3rem; }
