/* Nice Hand, тренажёр покера. Тёмно-зелёная стеклянная система: один шрифт, белые кнопки-пилюли, плавающая панель разделов. */
:root{
  --bg0:#050D0A; --bg1:#07140F; --bg2:#0C261B; --bg3:#15402F; --bg4:#1E5A43; --mint:#BFE9D2;
  --text:#F3FBF7; --muted:rgba(233,247,240,.64); --faint:rgba(233,247,240,.4);
  --glass:rgba(255,255,255,.07); --glass2:rgba(255,255,255,.11); --line:rgba(255,255,255,.12); --line2:rgba(255,255,255,.22);
  --white:#FFFFFF; --ink:#0A1410; --sheet:#0B1D15;
  --accent:#7FE0A9; --on-accent:#06281A;
  --raise:#FF8A75; --bluff:#F4C860; --call:#7FE0A9; --allin:#B9A8FF; --fold:rgba(255,255,255,.06);
  --good:#7FE0A9; --bad:#FF8A75; --warn:#F4C860;
  --card:#FBFDFB; --card-ink:#0D1512; --card-red:#D8392E;
  --r-sm:12px; --r-md:18px; --r-lg:24px; --r-xl:30px;
  --ease-out:cubic-bezier(.22,1,.36,1); --ease-inout:cubic-bezier(.65,0,.35,1);
  --f:'Onest',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg0);color:var(--text);font:400 16px/1.5 var(--f);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;color-scheme:dark;overscroll-behavior:none}
button,input,textarea,select{font:inherit;color:inherit}
button{border:0;background:none;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent;text-align:inherit}
h1,h2,h3,p,ul,dl,dd{margin:0}
ul{padding:0;list-style:none}
a{color:var(--accent);text-underline-offset:3px}
b,strong{font-weight:600}
svg{display:block}
.icon{width:22px;height:22px;flex:none}
:focus-visible{outline:2px solid var(--mint);outline-offset:2px;border-radius:10px}
.num,table td.n,table th.n{font-variant-numeric:tabular-nums}

/* ---------- каркас ---------- */
.app{position:relative;height:100vh;height:100dvh;max-width:480px;margin:0 auto;display:grid;grid-template-rows:auto 1fr;overflow:hidden;
  background:radial-gradient(130% 30% at 50% 109%,rgba(191,233,210,.92) 0%,rgba(120,205,165,.5) 30%,rgba(40,120,88,0) 72%),linear-gradient(180deg,var(--bg0) 0%,var(--bg1) 26%,var(--bg2) 58%,var(--bg3) 82%,var(--bg4) 100%)}
@media (min-width:520px){body{background:#030806}.app{box-shadow:0 0 0 1px rgba(255,255,255,.06),0 30px 80px rgba(0,0,0,.6)}}
.top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;padding:calc(10px + var(--sat)) 16px 6px;min-height:calc(60px + var(--sat))}
.top h1{grid-column:2;text-align:center;font-size:20px;font-weight:500;letter-spacing:-.01em;text-transform:lowercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top h1.long{font-size:17px}.top h1.xlong{font-size:15px}
.top .slot{grid-column:2;min-width:0}
.top .slot.wide{grid-column:2/4}
.top .l{grid-column:1}.top .r{grid-column:3}
.iconbtn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--glass2);border:1px solid var(--line);color:var(--text);transition:background .2s,transform .2s var(--ease-out)}
.iconbtn:active{transform:scale(.94);background:rgba(255,255,255,.18)}
.main{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:10px 16px 0;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 12px,#000 calc(100% - 104px),transparent calc(100% - 30px));mask-image:linear-gradient(180deg,transparent 0,#000 12px,#000 calc(100% - 104px),transparent calc(100% - 30px))}
.main::-webkit-scrollbar{display:none}
.view{display:flex;flex-direction:column;gap:14px;padding-bottom:calc(128px + var(--sab));min-height:100%}
.tabs{position:absolute;left:50%;bottom:calc(14px + var(--sab));transform:translateX(-50%);display:flex;gap:6px;padding:7px;border-radius:28px;z-index:20;
  background:rgba(7,20,15,.62);-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%);border:1px solid rgba(255,255,255,.14);box-shadow:0 12px 34px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
.tabs.hidden{display:none}
.tab{width:84px;height:58px;border-radius:21px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:500;color:rgba(243,251,247,.74);transition:background .25s var(--ease-out),color .25s}
.tab[aria-current="page"]{background:var(--white);color:var(--ink);font-weight:600}
.dock{position:absolute;left:0;right:0;bottom:0;z-index:20;padding:10px 16px calc(18px + var(--sab));display:flex;gap:10px}
.dock .btn{flex:1;height:58px;font-size:17px;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.dock .btn.two{height:62px}

/* ---------- мелочи ---------- */
.muted{color:var(--muted)}.faint{color:var(--faint)}.small{font-size:14px;line-height:1.4}.center{text-align:center}
.grow{flex:1;min-width:0}.row{display:flex;align-items:center;gap:10px}.stack{display:flex;flex-direction:column;gap:10px}
.sect{font-size:14px;font-weight:500;color:var(--muted);margin:8px 2px -4px}
.lead{font-size:17px;line-height:1.45}
.hidden{display:none!important}

/* ---------- кнопки, пилюли, переключатели ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 24px;border-radius:999px;font-weight:600;font-size:16px;letter-spacing:-.005em;white-space:nowrap;transition:transform .2s var(--ease-out),background .2s,opacity .2s}
.btn:active{transform:scale(.975)}
.btn.primary{background:var(--white);color:var(--ink)}
.btn.second{background:var(--glass2);border:1px solid var(--line);color:var(--text)}
.btn.ghost{color:var(--muted);font-weight:500}
.btn.sm{height:40px;padding:0 16px;font-size:14.5px}
.btn.sm .icon{width:18px;height:18px}
.btn.wide{width:100%}
.btn.two{flex-direction:column;gap:2px;padding:0 20px;white-space:normal;text-align:center}
.btn.two small{font-size:12.5px;font-weight:500;line-height:1.15;letter-spacing:0;opacity:.62}
.btn.two span{line-height:1.15}
.btn.sm,.seg button,.chips button{position:relative}
.btn.sm::after,.seg button::after,.chips button::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
.btn:disabled{opacity:.5}
.pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:var(--glass2);border:1px solid var(--line);font-size:13px;font-weight:500;color:var(--text);white-space:nowrap}
.pill .icon{width:15px;height:15px}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px}
.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;height:38px;padding:0 15px;border-radius:999px;background:var(--glass);border:1px solid var(--line);font-size:14.5px;font-weight:500;color:var(--text);white-space:nowrap;transition:background .2s,color .2s}
.chips button[aria-pressed="true"]{background:var(--white);color:var(--ink);border-color:var(--white);font-weight:600}
.seg{display:flex;padding:4px;border-radius:999px;background:var(--glass);border:1px solid var(--line)}
.seg button{flex:1;height:40px;border-radius:999px;font-size:14.5px;font-weight:500;color:var(--muted);text-align:center;transition:background .25s var(--ease-out),color .2s}
.seg button[aria-pressed="true"]{background:var(--white);color:var(--ink);font-weight:600}

/* ---------- стеклянные поверхности ---------- */
.card{background:var(--glass);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.card h3{font-size:17px;font-weight:600;line-height:1.3;letter-spacing:-.005em}
.card.tap{display:flex;align-items:center;gap:12px;width:100%;text-align:left;transition:background .2s,transform .2s var(--ease-out)}
.card.tap:active{background:var(--glass2);transform:scale(.99)}
.card.tap .sub{font-size:14px;color:var(--muted);line-height:1.35;margin-top:2px}
.card.tap .chev{color:var(--faint);width:20px;height:20px}
.icobox{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:var(--glass2);border:1px solid var(--line);flex:none;color:var(--mint)}

/* ---------- главный экран ---------- */
/* стек: фишка ранга, число фишек, ранг и полоса до следующего ранга */
.stackhead{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:0 12px;width:100%;padding:0 2px;text-align:left}
.stackhead .chip-badge{width:54px;height:54px}
.sh-main{display:flex;flex-direction:column;min-width:0}
.sh-line{display:flex;align-items:baseline;gap:7px}
.sh-num{font-size:44px;font-weight:300;letter-spacing:-.045em;line-height:1}
.sh-line small{font-size:15px;color:var(--muted)}
.sh-rank{font-size:14.5px;font-weight:500;color:var(--mint);line-height:1.25;margin-top:2px}
.sh-days{align-self:start;margin-top:5px}
.sh-bar{grid-column:1/-1;height:5px;border-radius:3px;background:rgba(255,255,255,.13);overflow:hidden;margin-top:11px}
.sh-bar i{display:block;height:100%;min-width:5px;border-radius:3px;background:var(--accent);transition:width .7s var(--ease-out)}
.sh-next{grid-column:1/-1;font-size:13px;line-height:1.3;color:var(--muted);margin-top:6px}
/* игра «Сильнее против него»: соперник, две руки картами, ответ и следующая раздача в одной карточке */
.hg{position:relative;display:flex;flex-direction:column;gap:12px;padding:14px 14px 12px;border-radius:var(--r-xl);
  background:linear-gradient(160deg,rgba(255,255,255,.15),rgba(255,255,255,.045) 62%);border:1px solid rgba(255,255,255,.17);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 18px 40px rgba(0,0,0,.22)}
.hg-top{display:flex;align-items:center;gap:10px;min-height:34px;margin:-3px 0}
.hg-top h2{flex:1;min-width:0;font-size:13.5px;font-weight:500;line-height:1.25;color:var(--muted);text-wrap:balance}
.hg-streak{flex:none;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px 0 7px;border-radius:999px;background:var(--glass2);border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.hg-streak .icon{width:15px;height:15px}
.hg-streak.on{color:var(--text)}
@keyframes hgbump{0%{transform:none}45%{transform:scale(1.1)}100%{transform:none}}
.hg-streak.bump{animation:hgbump .28s var(--ease-out)}
.hg-streak.hot{padding-right:4px;background:rgba(127,224,169,.16);border-color:rgba(127,224,169,.4);color:var(--accent)}
.hg-streak b{padding:2px 7px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:700;line-height:1.3}
.hg-opp{display:flex;align-items:center;gap:12px}
.hg-seat{flex:none;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:3px;background:rgba(4,12,9,.36);border:1px solid var(--line)}
.hg-seat .pc{width:17px;height:24px;border-radius:4px}
.hg-seat .pc.back::after{inset:4px;border-radius:2px}
.hg-opp p{display:flex;flex-direction:column;min-width:0}
.hg-opp b{font-size:18.5px;font-weight:600;line-height:1.2;letter-spacing:-.014em}
.hg-opp p span{font-size:14.5px;color:var(--muted);line-height:1.3;margin-top:2px}
.hg-tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.hg-mid{min-height:66px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.hg-hint{text-align:center;font-size:15.5px;font-weight:500}
.hg-tease{text-align:center;font-size:13px;color:var(--muted)}
.hg-verdict{display:flex;align-items:center;gap:8px;min-height:24px}
.hg-praise{font-size:13.5px;font-weight:700;letter-spacing:.01em;color:var(--accent)}
.hg-verdict.bad .hg-praise{color:var(--bad)}
.hg-mult{margin-left:auto;display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;border:1px solid rgba(127,224,169,.5);color:var(--accent);font-size:12.5px;font-weight:700}
.hg-mult+.hg-gain{margin-left:0}
.hg-gain{margin-left:auto;display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:13.5px;font-weight:700}
.hg-why{font-size:15px;line-height:1.4}
.hg-bot{min-height:46px;display:flex;align-items:center;justify-content:center}
.hg-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 8px;font-size:14.5px;font-weight:500}
.hg-link small{font-size:13px;font-weight:400;color:var(--muted)}
.hg-link .chev{width:16px;height:16px;color:var(--faint)}
.hg-next{position:relative;overflow:hidden;width:100%;height:46px}
.hg-next span{position:relative}
.hg-next.auto::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.16);transform-origin:left center;animation:hgauto 1.4s linear both}
@keyframes hgauto{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* задание дня */
.daily{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 16px 8px 9px;border-radius:22px;background:var(--glass);border:1px solid var(--line);text-align:left;transition:background .2s}
.daily:active{background:var(--glass2)}
.daily .dot{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--glass2);border:1px solid var(--line);color:var(--mint);flex:none}
.daily .dot .icon{width:21px;height:21px}
.daily .t b{display:block;font-size:16px;font-weight:600;line-height:1.25}
.daily .s{display:block;font-size:13.5px;color:var(--muted);line-height:1.3}
.daily .prize{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:600;flex:none}
.daily .prize .chipmini{width:22px;height:22px;filter:none}
.daily.done{background:rgba(127,224,169,.08);border-color:rgba(127,224,169,.26)}
.daily.done .dot{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.daily.done .dot .icon{stroke-width:2.4}
/* курс: следующий урок */
.course{display:flex;align-items:center;gap:12px;width:100%;padding:14px 14px 14px 16px;border-radius:var(--r-lg);background:linear-gradient(140deg,rgba(255,255,255,.13),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);text-align:left}
.course .k{display:block;font-size:13px;color:var(--muted);line-height:1.3}
.course .tt{display:block;font-size:18px;font-weight:600;line-height:1.22;letter-spacing:-.012em;margin:2px 0 7px}
.course .tt:last-child{margin-bottom:0}
.course .btn{height:44px;padding:0 18px;font-size:15px;flex:none}
.course:active .btn{transform:scale(.97)}
/* звёзды урока */
.stars{display:inline-flex;gap:3px;vertical-align:middle}
.star{width:18px;height:18px;flex:none;fill:rgba(255,255,255,.08);stroke:rgba(255,255,255,.3)}
.star.on{fill:var(--bluff);stroke:var(--bluff)}
.stars.sm{gap:2px}.stars.sm .star{width:14px;height:14px}
.stars.lg{gap:8px;align-items:flex-end;margin-bottom:8px}
.stars.lg .star{width:40px;height:40px}
.stars.lg .star:nth-child(2){width:52px;height:52px;margin-bottom:8px}
@keyframes starpop{0%{opacity:0;transform:scale(.3) rotate(-20deg)}60%{opacity:1;transform:scale(1.14)}100%{opacity:1;transform:none}}
.stars.lg .star.on{animation:starpop .45s var(--ease-out) both .15s}
.stars.lg .star.on:nth-child(2){animation-delay:.3s}.stars.lg .star.on:nth-child(3){animation-delay:.45s}
/* плитки игр с личным рекордом */
.tile.game{min-height:132px;padding:14px}
.tile.game .gh{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:11px}
.tile.game .gi{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:var(--glass2);border:1px solid var(--line);color:var(--mint);flex:none}
.tile.game .gb{display:flex;flex-direction:column;align-items:flex-end;text-align:right;min-width:0}
.tile.game .gb b{font-size:26px;font-weight:300;letter-spacing:-.03em;line-height:1}
.tile.game .gb small{font-size:12.5px;color:var(--muted);line-height:1.3}
.tile.game .gb small:only-child{margin-top:11px}
.tile.game .tt{font-size:16.5px;font-weight:600;line-height:1.2;letter-spacing:-.01em}
.tile.game .ts{font-size:13px;color:var(--muted);margin-top:3px;line-height:1.3}
.tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.tile{position:relative;display:flex;flex-direction:column;min-height:138px;padding:16px;border-radius:var(--r-lg);background:var(--glass);border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);text-align:left;transition:background .2s,transform .2s var(--ease-out)}
button.tile:active{background:var(--glass2);transform:scale(.985)}
.tile .ts{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.3}
.infopill{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 14px 8px 8px;border-radius:999px;background:var(--glass);border:1px solid var(--line);text-align:left}
.infopill .dot{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--white);color:var(--ink);flex:none;font-weight:700;font-size:13px;letter-spacing:-.02em}
.infopill .t{font-size:14.5px;line-height:1.3}
.infopill .t b{font-weight:600}
.infopill .chev{color:var(--faint);width:18px;height:18px}
.infopill .dot svg{width:20px;height:20px}
.skipline{display:flex;align-items:center;gap:10px;width:100%;margin-top:-4px;padding:12px 14px 12px 16px;border-radius:var(--r-md);background:transparent;border:1px dashed rgba(255,255,255,.2);text-align:left;font-size:14.5px;line-height:1.35;color:var(--muted)}
.skipline b{color:var(--text);font-weight:600}
.skipline .chev{color:var(--faint);width:18px;height:18px;flex:none}
.skipline span{flex:1;min-width:0}
.chrow{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:22px;background:var(--glass);border:1px solid var(--line);text-align:left;transition:background .2s}
.chrow:active{background:var(--glass2)}
.chrow.cur{background:linear-gradient(140deg,rgba(255,255,255,.13),rgba(255,255,255,.05));border-color:rgba(255,255,255,.2)}
.chrow .t{font-size:16.5px;font-weight:600;line-height:1.25;letter-spacing:-.005em}
.chrow .s{font-size:13.5px;color:var(--muted);line-height:1.3;margin-top:1px}
.chrow .cnt{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.chrow .cnt.done>span:first-child{color:var(--accent)}
.chrow .cs{display:inline-flex;align-items:center;gap:3px;font-size:13px;color:var(--faint)}
.chrow .cs .star{width:13px;height:13px;fill:currentColor;stroke:currentColor}
.chrow .cs.on{color:var(--bluff)}
.chip-badge{width:46px;height:46px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.35))}
.chip-badge text{font:700 14px var(--f);letter-spacing:-.02em}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.enter>*{animation:rise .55s var(--ease-out) both}
.enter>*:nth-child(2){animation-delay:.06s}.enter>*:nth-child(3){animation-delay:.12s}.enter>*:nth-child(4){animation-delay:.18s}.enter>*:nth-child(5){animation-delay:.24s}.enter>*:nth-child(n+6){animation-delay:.3s}

/* ---------- глава и урок ---------- */
.chhead h2{font-size:30px;font-weight:500;letter-spacing:-.025em;line-height:1.1}
.chhead p{color:var(--muted);margin-top:8px;font-size:16px;line-height:1.45}
.lrow{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 14px;border-radius:20px;background:var(--glass);border:1px solid var(--line);text-align:left}
.lrow:active{background:var(--glass2)}
.lrow .st{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--line2);font-size:13.5px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.lrow .st .icon{width:17px;height:17px}
.lrow.done .st{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.lrow.next{background:linear-gradient(140deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border-color:rgba(255,255,255,.22)}
.lrow.next .st{background:var(--white);border-color:var(--white);color:var(--ink)}
.lrow .t{font-size:16px;font-weight:500;line-height:1.3}
.lrow .s{font-size:13px;color:var(--muted)}
.lrow .lr{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.lrow .pct{font-size:13px;line-height:1.2;color:var(--muted);font-variant-numeric:tabular-nums}
.lrow .pct:empty{display:none}
.rules{display:flex;flex-direction:column;gap:0}
.rules .rl{display:grid;grid-template-columns:26px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:15.5px;line-height:1.4}
.rules .rl:last-child{border-bottom:0;padding-bottom:2px}
.rules .rl:first-child{padding-top:2px}
.rules .rl i{font-style:normal;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--glass2);font-size:12px;font-weight:600;color:var(--mint);margin-top:1px;font-variant-numeric:tabular-nums}
.rules .rl i.dot{width:7px;height:7px;margin:9px 0 0 8px;background:var(--mint);opacity:.85}
.pager{display:flex;flex-direction:column;gap:14px;min-height:100%;padding-bottom:calc(120px + var(--sab))}
.dots{display:flex;gap:6px;justify-content:center}
.dots i{width:22px;height:4px;border-radius:2px;background:rgba(255,255,255,.16);transition:background .3s,width .3s var(--ease-out)}
.dots i.on{background:var(--white);width:34px}
.dots i.was{background:rgba(255,255,255,.5)}
.lcard{border-radius:var(--r-xl);padding:22px 18px;background:linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);animation:rise .45s var(--ease-out) both}
.lcard .n{font-size:13px;color:var(--muted);margin-bottom:8px}

/* ---------- текст уроков и справочника ---------- */
.md{display:flex;flex-direction:column;gap:14px}
.md .tcard{border-radius:var(--r-lg);padding:18px 16px;background:var(--glass);border:1px solid var(--line)}
.md h2,.lcard h2{font-size:25px;font-weight:500;line-height:1.16;letter-spacing:-.02em;margin-bottom:12px}
.md .tcard h2{font-size:21px}
.md p,.lcard p{font-size:16.5px;line-height:1.5;margin-top:10px}
.md p:first-of-type,.lcard h2+p{margin-top:0}
.md ul,.lcard ul{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.md li,.lcard li{position:relative;padding-left:20px;font-size:16.5px;line-height:1.45}
.md li::before,.lcard li::before{content:"";position:absolute;left:3px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.call{margin-top:14px;padding:13px 15px;border-radius:var(--r-md);background:rgba(127,224,169,.1);border:1px solid rgba(127,224,169,.28);font-size:16.5px;font-weight:500;line-height:1.42;color:#E6FBEF}
.tw{margin-top:12px;border-radius:var(--r-md);background:rgba(4,12,9,.34);border:1px solid var(--line);overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.35}
th{font-size:12.5px;font-weight:500;color:var(--muted);text-align:left;padding:10px 10px 8px;border-bottom:1px solid var(--line);vertical-align:bottom}
td{padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.07);vertical-align:top}
tr:last-child td{border-bottom:0}
td:first-child{font-weight:500}
td.n,th.n{text-align:right;white-space:nowrap}
.notes{margin-top:8px;display:flex;flex-direction:column;gap:7px;padding:11px 12px;border-radius:var(--r-md);background:rgba(255,255,255,.05)}
.note{display:grid;grid-template-columns:20px 1fr;gap:9px;font-size:14px;line-height:1.42;color:rgba(233,247,240,.86)}
.note .icon{width:18px;height:18px;color:var(--mint);margin-top:1px}
.note b{color:var(--text);font-weight:600}
.embed{margin-top:12px}

/* ---------- карты ---------- */
.cards{display:flex;gap:7px;justify-content:center}
.cards.tight{gap:5px}
.pc{position:relative;width:46px;height:64px;border-radius:9px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--card-ink);
  background:linear-gradient(180deg,#FFFFFF 0%,#F2F7F4 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),inset 0 -2px 0 rgba(13,21,18,.06),0 1px 2px rgba(0,0,0,.4),0 8px 18px rgba(0,0,0,.34)}
.pc b{font:700 25px/1 var(--f);letter-spacing:-.05em}
.pc svg{width:18px;height:18px}
.pc.r{color:var(--card-red)}
.pc.lg{width:58px;height:80px;border-radius:11px}
.pc.lg b{font-size:32px}.pc.lg svg{width:23px;height:23px}
.pc.xl{width:74px;height:102px;border-radius:13px}
.pc.xl b{font-size:40px}.pc.xl svg{width:29px;height:29px}
.pc.sm{width:36px;height:50px;border-radius:7px}
.pc.sm b{font-size:20px}.pc.sm svg{width:14px;height:14px}
.pc.xs{width:24px;height:33px;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 2px 6px rgba(0,0,0,.35)}
.pc.back{background:linear-gradient(155deg,#236A51,#0E3125);box-shadow:inset 0 0 0 1px rgba(191,233,210,.42),inset 0 0 0 4px #123E2F,inset 0 0 0 5px rgba(191,233,210,.22),0 4px 10px rgba(0,0,0,.35)}
.pc.back::after{content:"";position:absolute;inset:6px;border-radius:3px;background:repeating-linear-gradient(45deg,rgba(191,233,210,.2) 0 2px,transparent 2px 6px)}
.pc.empty{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.26);color:var(--muted)}
.pc.empty.on{box-shadow:inset 0 0 0 2px var(--white);color:var(--text)}
@keyframes deal{from{opacity:0;transform:translateY(12px) rotate(-5deg)}to{opacity:1;transform:none}}
.cards.deal .pc{animation:deal .42s var(--ease-out) both}
.cards.deal .pc:nth-child(2){animation-delay:.06s}.cards.deal .pc:nth-child(3){animation-delay:.12s}.cards.deal .pc:nth-child(4){animation-delay:.18s}.cards.deal .pc:nth-child(5){animation-delay:.24s}

/* ---------- сцена раздачи ---------- */
.stage{border-radius:var(--r-lg);padding:12px;background:rgba(4,12,9,.3);border:1px solid var(--line)}
.tbl{width:100%;height:auto}
.tbl .felt{fill:url(#feltg);stroke:rgba(191,233,210,.5);stroke-width:1.5}
.tbl .rail{fill:none;stroke:rgba(255,255,255,.07);stroke-width:9}
.tbl .seat rect{fill:rgba(255,255,255,.1);stroke:rgba(255,255,255,.2);stroke-width:1}
.tbl .seat text{fill:var(--text);font:600 12px var(--f);text-anchor:middle}
.tbl .seat.fold{opacity:.36}
.tbl .seat.act rect{fill:rgba(255,138,117,.2);stroke:var(--raise);stroke-width:1.5}
.tbl .seat.hero rect{fill:var(--white);stroke:var(--white)}
.tbl .seat.hero text{fill:var(--ink);font-weight:700}
.tbl .betbg{fill:var(--bluff)}
.tbl .betbg.allin{fill:var(--allin)}
.tbl .betbg.blind{fill:rgba(255,255,255,.16)}
.tbl .bet{fill:#2A1C05;font:700 11px var(--f);text-anchor:middle;font-variant-numeric:tabular-nums}
.tbl .bet.blind{fill:var(--text);font-weight:600}
.tbl .bet.pre{font-size:9px;opacity:.82}
.tbl .chipdot{fill:#2A1C05;opacity:.82}
.tbl .chipdot-in{fill:none;stroke:var(--bluff);stroke-width:1.1;stroke-dasharray:1.6 1.6}
.tbl .dealer{fill:var(--white)}
.tbl .dealer-t{fill:var(--ink);font:700 9px var(--f);text-anchor:middle}
.tbl .pot{fill:var(--text);font:600 15px var(--f);text-anchor:middle;font-variant-numeric:tabular-nums}
.tbl .potsub{fill:var(--muted);font:400 10.5px var(--f);text-anchor:middle}
.heroline{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:6px}
.heroline .meta{font-size:13px;color:var(--muted);line-height:1.3}
.heroline .stk{display:flex;align-items:center;gap:9px}
.heroline .chipmini{width:30px;height:30px}
.heroline .meta b{display:block;font-size:20px;font-weight:500;color:var(--text);letter-spacing:-.01em}
.spot{display:flex;flex-direction:column;align-items:center;gap:9px;padding:6px 0}
.spot .cap,.boardrow .cap{font-size:13px;color:var(--muted)}
.tags{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.tagf{height:28px;padding:0 11px;border-radius:999px;background:var(--glass2);font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.tagf b{color:var(--text);font-weight:600}
.versus{display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 0}
.versus .side{display:flex;flex-direction:column;align-items:center;gap:7px}
.versus .who{font-size:13px;color:var(--muted)}
.versus .vs{font-size:13px;color:var(--faint);padding-top:22px}
.boardrow{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:8px}
.backs{display:flex;flex-wrap:wrap;gap:8px 10px;justify-content:center;max-width:290px}
.backs .bpair{display:flex;gap:3px}
.potline{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.potline>div{display:flex;align-items:center;gap:10px;padding:12px;border-radius:var(--r-md);background:var(--glass)}
.potline span{display:block;font-size:13px;color:var(--muted);line-height:1.25}
.potline b{display:block;font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.chipmini{width:34px;height:34px;flex:none;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35))}
.stacks{display:flex;flex-direction:column;gap:7px}
.srow{display:grid;grid-template-columns:78px 1fr 58px;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.srow b{text-align:right;font-weight:500;font-variant-numeric:tabular-nums;color:var(--text)}
.sbar{height:10px;border-radius:5px;background:rgba(255,255,255,.08);overflow:hidden}
.sbar i{display:block;height:100%;border-radius:5px;background:rgba(255,255,255,.34)}
.srow.me{color:var(--text);font-weight:600}.srow.me .sbar i{background:var(--white)}
.srow.vil .sbar i{background:var(--raise)}

/* ---------- вопрос и ответ ---------- */
.qhead{display:flex;align-items:center;gap:12px}
.bar{flex:1;height:6px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.bar i{display:block;height:100%;border-radius:3px;background:var(--white);transition:width .5s var(--ease-out)}
.qcount{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.combo{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 4px 0 7px;border-radius:999px;background:rgba(127,224,169,.16);border:1px solid rgba(127,224,169,.4);color:var(--accent);font-size:12.5px;font-weight:600;white-space:nowrap;flex:none}
.combo .icon{width:14px;height:14px}
.combo b{padding:1px 6px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:11.5px;font-weight:700}
.qtitle{font-size:23px;font-weight:500;line-height:1.2;letter-spacing:-.018em}
.qtext{font-size:16px;line-height:1.45;color:var(--muted);margin-top:6px}
.opts{display:grid;gap:10px}
.opts.c2{grid-template-columns:1fr 1fr}.opts.c3{grid-template-columns:1fr 1fr 1fr}
.opt{min-height:62px;padding:10px 12px;border-radius:21px;background:var(--glass2);border:1px solid var(--line2);font-size:17.5px;font-weight:600;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2;transition:transform .18s var(--ease-out),background .2s,opacity .25s,border-color .2s}
.opt small{display:block;font-size:12.5px;font-weight:400;color:var(--muted);margin-top:3px}
.opt.long{align-items:flex-start;text-align:left;font-size:16px;font-weight:500;padding:13px 16px;line-height:1.35;min-height:54px}
.opt:active{transform:scale(.975)}
.opts.locked .opt{pointer-events:none}
.opt.right{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.opt.right small{color:rgba(6,40,26,.72)}
.opt.wrong{background:rgba(255,138,117,.18);border-color:var(--bad)}
.opt.okay{border-color:var(--warn);background:rgba(244,200,96,.14)}
.opt.dim{opacity:.4}
/* рука как вариант ответа: две карты на сукне. Общая плитка для игры на главной (.hg-tile) и для вариантов в раздачах (.opt.handtile) */
.handtile{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:15px 6px 11px;border-radius:22px;text-align:center;color:var(--text);
  background:radial-gradient(120% 100% at 50% 16%,#2B7459 0%,#163F30 80%);border:1.5px solid rgba(191,233,210,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 22px rgba(0,0,0,.24);
  transition:transform .18s var(--ease-out),border-color .2s,opacity .25s,box-shadow .25s}
.handtile:active{transform:scale(.97)}
.handtile .cards{gap:0;margin-bottom:11px}
.handtile .pc:first-child{transform:rotate(-5deg) translateX(4px)}
.handtile .pc:last-child{transform:rotate(5deg) translate(-4px,2px)}
.handtile .hc{display:flex;align-items:center;height:28px;font-size:19px;font-weight:600;letter-spacing:-.01em;line-height:1}
.handtile .hc.pct{font-size:27px;font-weight:300;letter-spacing:-.03em}
.handtile .hn{font-size:12.5px;font-weight:400;color:rgba(233,247,240,.72);line-height:1.25;margin-top:2px;min-height:16px}
.handtile.right{border-color:var(--accent);box-shadow:0 0 0 3px rgba(127,224,169,.36),inset 0 1px 0 rgba(255,255,255,.12),0 10px 22px rgba(0,0,0,.24)}
.handtile.wrong{border-color:var(--bad);box-shadow:0 0 0 3px rgba(255,138,117,.32),inset 0 1px 0 rgba(255,255,255,.12),0 10px 22px rgba(0,0,0,.24)}
.handtile.dim{opacity:.6}
.handtile .mark{position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent)}
.handtile .mark .icon{width:14px;height:14px;stroke-width:2.6}
.handtile.wrong .mark{background:var(--bad);color:#3B0E06}
.opt.handtile{min-height:0;background:radial-gradient(120% 100% at 50% 16%,#2B7459 0%,#163F30 80%)}
.opt.handtile.right,.opt.handtile.wrong{color:var(--text)}
.opt.handtile.right .hn{color:rgba(233,247,240,.72)}
@keyframes hgdeal{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes hgpop{0%{transform:scale(.97)}55%{transform:scale(1.035)}100%{transform:none}}
@keyframes hgshake{0%,100%{transform:none}22%{transform:translateX(-6px)}55%{transform:translateX(5px)}80%{transform:translateX(-2px)}}
@keyframes hgmark{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
.deal>.handtile{animation:hgdeal .32s var(--ease-out) both}
.deal>.handtile:last-child{animation-delay:.07s}
.answer>.handtile.right{animation:hgpop .42s var(--ease-out)}
.answer>.handtile.wrong{animation:hgshake .36s var(--ease-inout)}
.answer>.handtile .mark{animation:hgmark .3s var(--ease-out) both .08s}
/* фишки за ответ взлетают от места ответа */
.flygain{position:absolute;left:0;top:0;z-index:70;display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 12px 0 5px;border-radius:999px;background:var(--white);color:var(--ink);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;box-shadow:0 8px 20px rgba(0,0,0,.35);transform:translate(-50%,-50%);will-change:transform,opacity}
.flygain .chipmini{width:20px;height:20px;filter:none}
.guess{display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;border-radius:var(--r-lg);background:var(--glass);border:1px solid var(--line)}
.guess .val{text-align:center;font-size:68px;font-weight:300;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
.guess .val small{font-size:.42em;color:var(--muted);margin-left:2px;vertical-align:.74em;letter-spacing:0}
.guess .ctl{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;margin-top:6px}
.step1{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--glass2);border:1px solid var(--line)}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:44px;background:transparent;margin:0;--p:50%}
input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(90deg,var(--white) var(--p),rgba(255,255,255,.16) var(--p))}
input[type=range]::-moz-range-track{height:8px;border-radius:4px;background:linear-gradient(90deg,var(--white) var(--p),rgba(255,255,255,.16) var(--p))}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;border-radius:50%;background:var(--white);margin-top:-11px;box-shadow:0 4px 12px rgba(0,0,0,.4)}
input[type=range]::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:var(--white);box-shadow:0 4px 12px rgba(0,0,0,.4)}
.fb{display:flex;flex-direction:column;gap:14px;padding:18px 16px;border-radius:var(--r-xl);background:linear-gradient(165deg,rgba(255,255,255,.12),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.16);animation:rise .4s var(--ease-out) both}
.verdict{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:600;color:var(--good)}
.verdict .gain{margin-left:auto;display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 11px 0 5px;border-radius:999px;background:rgba(127,224,169,.16);color:var(--accent);font-size:14.5px;font-weight:700}
.verdict .gain .chipmini{width:18px;height:18px;filter:none}
.verdict i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--good);color:var(--on-accent)}
.verdict .icon{width:16px;height:16px;stroke-width:2.4}
.fb.bad .verdict{color:var(--bad)}.fb.bad .verdict i{background:var(--bad);color:#3B0E06}
.fb.warn .verdict{color:var(--warn)}.fb.warn .verdict i{background:var(--warn);color:#2A1C05}
.fb .do{font-size:13.5px;color:var(--muted);margin-bottom:-12px}
.fb .act{font-size:36px;font-weight:400;letter-spacing:-.03em;line-height:1.08}
.fb .why{font-size:16.5px;line-height:1.48}
.fb .tip{font-size:15.5px;line-height:1.42;padding:11px 13px;border-radius:var(--r-md);background:rgba(255,255,255,.07)}
.fb .tip b{font-weight:600}
.remember{display:grid;grid-template-columns:22px 1fr;gap:10px;padding:13px 14px;border-radius:var(--r-md);background:rgba(127,224,169,.1);border:1px solid rgba(127,224,169,.28)}
.remember .icon{width:19px;height:19px;color:var(--accent);margin-top:2px}
.remember span{display:block;font-size:12.5px;color:var(--accent);font-weight:600;margin-bottom:1px}
.remember p{font-size:16px;font-weight:500;line-height:1.4;color:#E9FCF1;margin:0}
.vsline{display:grid;grid-template-columns:20px 1fr;gap:9px;font-size:14px;line-height:1.42;color:var(--muted)}
.vsline .icon{width:18px;height:18px;margin-top:1px}
.altnote{font-size:14px;color:var(--warn);line-height:1.4}
.meter{display:flex;flex-direction:column;gap:7px}
.meter .mr{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;color:var(--muted)}
.meter .mr b{font-size:20px;font-weight:500;color:var(--text);letter-spacing:-.01em}
.meter .mt{position:relative;height:14px;border-radius:7px;background:rgba(255,255,255,.1)}
.meter .mt i{position:absolute;left:0;top:0;bottom:0;border-radius:7px;background:var(--good);width:0;transition:width .8s var(--ease-out)}
.meter.low .mt i{background:var(--bad)}
.meter .mt em{position:absolute;top:-5px;bottom:-5px;width:3px;margin-left:-1.5px;border-radius:2px;background:var(--white);box-shadow:0 0 0 2px rgba(5,13,10,.55)}
.pairnum{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pairnum>div{padding:12px 13px;border-radius:var(--r-md);background:rgba(255,255,255,.07)}
.pairnum b{display:block;font-size:28px;font-weight:300;letter-spacing:-.03em;line-height:1.1}
.pairnum span{display:block;font-size:13px;color:var(--muted);line-height:1.3;margin-top:3px}
.ladder .lc{font-size:13px;color:var(--muted);margin-bottom:7px}
.ladder .ls{display:flex;gap:4px}
.ladder .ls>span{flex:1;min-width:0;height:40px;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10.5px;font-weight:600;letter-spacing:-.02em;background:var(--fold);color:var(--faint);border:1px solid transparent;line-height:1.1;white-space:nowrap}
.ladder .ls>span small{font-size:9.5px;font-weight:500;opacity:.9}
.ladder .ls>span.on{color:var(--on-accent)}
.ladder .ls>span.r{background:var(--raise);color:#3B0E06}.ladder .ls>span.c{background:var(--call);color:var(--on-accent)}.ladder .ls>span.a{background:var(--allin);color:#1B1144}.ladder .ls>span.b{background:var(--bluff);color:#2A1C05}
.ladder .ls>span.cur{border-color:var(--white);box-shadow:0 0 0 1.5px var(--white)}
.ladder.wide .ls>span{height:48px;font-size:13px}
.ladder.wide .ls>span small{font-size:11px}
.links{display:flex;flex-wrap:wrap;gap:8px}
.kv{display:grid;grid-template-columns:1fr auto;gap:8px 14px;font-size:15px;line-height:1.35}
.kv dt{color:var(--muted)}.kv dd{font-weight:500;font-variant-numeric:tabular-nums;text-align:right}
.eyetrack{position:relative;height:14px;border-radius:7px;background:rgba(255,255,255,.1);margin:22px 0 4px}
.eyetrack i{position:absolute;left:0;top:0;bottom:0;border-radius:7px;background:var(--white);width:0;transition:width .8s var(--ease-out)}
.eyetrack em{position:absolute;top:-6px;bottom:-6px;width:3px;margin-left:-1.5px;border-radius:2px;background:var(--bluff)}
.eyetrack em::after{content:attr(data-l);position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:12px;font-style:normal;color:var(--bluff);white-space:nowrap}

/* ---------- итог ---------- */
.result{text-align:center;padding:26px 16px 22px;border-radius:var(--r-xl);background:linear-gradient(165deg,rgba(255,255,255,.12),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.16)}
.bigstat{font-size:84px;font-weight:300;letter-spacing:-.05em;line-height:1}
.bigstat span{font-size:.42em;color:var(--muted);margin-left:3px;vertical-align:.76em;letter-spacing:0}
.result .rs{font-size:19px;font-weight:500;margin-top:10px;letter-spacing:-.01em}
.result .muted{margin-top:4px}
/* что заработано за серию раздач: фишки и лучшая серия верных подряд */
.gains{margin-top:18px}
.gstats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;text-align:left}
.gnote{font-size:13px;color:var(--muted);margin-top:9px}
.gstat{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:0 10px;padding:10px 12px;border-radius:var(--r-md);background:rgba(255,255,255,.07)}
.gstat .chipmini,.gstat .gi{grid-row:1/3;width:30px;height:30px}
.gstat .gi{display:grid;place-items:center;border-radius:50%;background:var(--glass2);color:var(--mint)}
.gstat .gi .icon{width:17px;height:17px}
.gstat b{font-size:21px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.gstat small{font-size:12.5px;color:var(--muted);line-height:1.25}
.newbest{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px 0 9px;border-radius:999px;background:rgba(244,200,96,.16);border:1px solid rgba(244,200,96,.4);color:var(--bluff);font-size:13px;font-weight:600;margin-bottom:12px}
.newbest .icon{width:15px;height:15px}
.donemark{width:72px;height:72px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent)}
.donemark .icon{width:36px;height:36px;stroke-width:2.2}
/* новый ранг: карточка во всю ширину выезжает снизу */
.rankup{position:absolute;inset:0;z-index:80;display:flex;align-items:flex-end;background:rgba(2,8,6,.68);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:fade .25s both}
.rankcard{width:100%;padding:34px 20px calc(24px + var(--sab));border-radius:30px 30px 0 0;text-align:center;background:radial-gradient(120% 70% at 50% 0%,rgba(127,224,169,.3),rgba(127,224,169,0) 70%),linear-gradient(180deg,#143526,var(--sheet));border:1px solid rgba(191,233,210,.3);border-bottom:0;animation:up .5s var(--ease-out) both}
.rk-badge .chip-badge{width:112px;height:112px;margin:0 auto}
@keyframes rkbadge{from{opacity:0;transform:translateY(20px) scale(.6) rotate(-40deg)}to{opacity:1;transform:none}}
.rk-badge{animation:rkbadge .6s var(--ease-out) both .12s}
.rk-cap{margin-top:18px;font-size:14px;font-weight:600;color:var(--accent)}
.rk-name{font-size:36px;font-weight:400;letter-spacing:-.03em;line-height:1.1;margin:4px 0 24px}

/* ---------- карточка руки ---------- */
.handhead{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 14px;padding:16px;border-radius:var(--r-xl);background:linear-gradient(140deg,rgba(255,255,255,.15),rgba(255,255,255,.04) 70%);border:1px solid rgba(255,255,255,.16)}
.handhead h2{font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.15}
.handhead .code{font-size:13.5px;color:var(--muted);margin-top:3px}
.handhead .tier{grid-column:1/-1;justify-self:start;display:inline-block;height:auto;white-space:normal;padding:5px 12px;line-height:1.25;border-radius:14px}
.handhead .cards{flex:none}
/* с кнопкой-словом («Сменить») название руки занимает всю ширину, кнопка уходит во вторую строку к подписи */
.handhead.big .hh{grid-column:2/4}
.handhead.big>.btn{grid-row:2;grid-column:3}
.handhead.big .tier{grid-row:2;grid-column:1/3}
.sumlist{display:flex;flex-direction:column;gap:9px}
.sumlist div{display:grid;grid-template-columns:22px 1fr;gap:10px;font-size:16px;line-height:1.4}
.sumlist .icon{width:19px;height:19px;color:var(--accent);margin-top:2px}
.matrix{display:grid;grid-template-columns:minmax(0,1.25fr) repeat(3,minmax(0,1fr));gap:5px;align-items:stretch;margin-top:12px}
.matrix .mh{font-size:11.5px;color:var(--muted);text-align:center;line-height:1.2;padding-bottom:2px;align-self:end}
.matrix .ml{font-size:13px;line-height:1.2;display:flex;align-items:center;color:var(--text)}
.matrix .mc{height:42px;border-radius:11px;display:grid;place-items:center;font-size:12px;font-weight:600;background:var(--fold);color:var(--faint);text-align:center;line-height:1.1}
.matrix .mc.r{background:var(--raise);color:#3B0E06}.matrix .mc.c{background:var(--call);color:var(--on-accent)}.matrix .mc.b{background:var(--bluff);color:#2A1C05}.matrix .mc.na{background:none;color:var(--faint);font-weight:400}
.hbars{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.hbar{display:grid;grid-template-columns:1fr 46px;gap:4px 10px;align-items:center;font-size:14px}
.hbar span{line-height:1.25}
.hbar span small{display:block;font-size:12.5px;color:var(--muted)}
.hbar b{text-align:right;font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}
.hbar .track{grid-column:1/-1;height:8px;border-radius:4px;background:rgba(255,255,255,.1);overflow:hidden}
.hbar .track i{display:block;height:100%;border-radius:4px;background:var(--white)}
.hbar.acc{grid-template-columns:1fr 72px 44px}.hbar.acc .track{grid-column:auto}
.stackline{display:grid;grid-template-columns:auto 1fr 58px;align-items:center;gap:12px;margin-top:10px}
.stackline b{text-align:right;font-size:20px;font-weight:500}

/* ---------- таблица рук 13 на 13 ---------- */
.g169{display:grid;grid-template-columns:repeat(13,1fr);gap:2px}
.g169>*{aspect-ratio:1;display:grid;place-items:center;border-radius:5px;font-size:9px;font-weight:600;letter-spacing:-.04em;background:var(--fold);color:rgba(243,251,247,.46);padding:0;min-width:0}
.g169 .a-raise{background:var(--raise);color:#3B0E06}.g169 .a-bluff{background:var(--bluff);color:#2A1C05}.g169 .a-call{background:var(--call);color:var(--on-accent)}.g169 .a-allin{background:var(--allin);color:#1B1144}
.g169 .t3{background:var(--white);color:var(--ink)}.g169 .t2{background:var(--accent);color:var(--on-accent)}.g169 .t1{background:rgba(127,224,169,.3);color:var(--text)}
.g169 .hl{outline:2px solid var(--white);outline-offset:1px;z-index:1;position:relative}
.g169 .sel{outline:2px solid var(--white);outline-offset:1px;position:relative;z-index:1}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:13px;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:12px;height:12px;border-radius:4px;flex:none}
.charthead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.charthead h3{flex:1;font-size:16.5px;font-weight:600;line-height:1.25}

/* ---------- шторка, подсказка, первый запуск ---------- */
.scrim{position:absolute;inset:0;z-index:50;background:rgba(2,8,6,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:flex-end;animation:fade .25s both}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.sheet{width:100%;max-height:92%;overflow-y:auto;scrollbar-width:none;padding:8px 16px calc(22px + var(--sab));border-radius:30px 30px 0 0;background:linear-gradient(180deg,#10291E,var(--sheet));border:1px solid var(--line);border-bottom:0;animation:up .38s var(--ease-out) both;display:flex;flex-direction:column;gap:12px}
.sheet::-webkit-scrollbar{display:none}
.sheet>*{flex:none}
.grab{width:40px;height:4px;border-radius:2px;background:rgba(255,255,255,.26);margin:2px auto 4px;flex:none}
.shead{display:flex;align-items:center;gap:12px}
.shead h2{font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.2}
.toast{position:absolute;left:50%;bottom:calc(110px + var(--sab));transform:translateX(-50%);z-index:60;padding:11px 18px;border-radius:999px;background:var(--white);color:var(--ink);font-size:14.5px;font-weight:600;white-space:nowrap;box-shadow:0 10px 30px rgba(0,0,0,.4);animation:toastin .3s var(--ease-out) both}
@keyframes toastin{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.onb{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;padding:calc(34px + var(--sat)) 22px calc(22px + var(--sab));overflow-y:auto;
  background:radial-gradient(130% 30% at 50% 109%,rgba(191,233,210,.92) 0%,rgba(120,205,165,.5) 30%,rgba(40,120,88,0) 72%),linear-gradient(180deg,var(--bg0) 0%,var(--bg1) 26%,var(--bg2) 58%,var(--bg3) 82%,var(--bg4) 100%)}
.onb>*{flex:none}
.onb h1{font-size:34px;font-weight:400;letter-spacing:-.03em;line-height:1.08}
.onb p{font-size:17px;line-height:1.48;color:var(--muted)}
.onb .spacer{flex:1 0 20px}
/* кнопка «Играть» видна всегда: на низком экране текст прокручивается под ней */
.onb>.btn{position:sticky;bottom:0;box-shadow:0 0 0 10px rgba(30,90,67,.0),0 12px 30px rgba(0,0,0,.35)}
.onbtop{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:-12px 0 20px}
.onb .brand{font-size:19px;font-weight:600;letter-spacing:-.02em}
.onb .langpick{width:auto;margin-left:auto}
.onb .langpick button{flex:none;height:36px;padding:0 14px;font-size:13.5px}
.onb .demo{margin-top:22px;display:flex;flex-direction:column;gap:8px}
.onb .demo .rowx{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:13px 16px;border-radius:20px;background:var(--glass);border:1px solid var(--line)}
.onb .demo .lab{font-size:13.5px;color:var(--muted);line-height:1.3}
.onb .demo .nm{font-size:16px;font-weight:500;line-height:1.3}
.onb .demo .pct{font-size:34px;font-weight:300;letter-spacing:-.03em}
.onb .handrow{display:flex;align-items:center;gap:14px;margin-top:22px}

/* ---------- поля ---------- */
.field{display:flex;flex-direction:column;gap:7px}
.field label{font-size:14px;color:var(--muted)}
textarea{width:100%;min-height:52px;padding:12px 16px;border-radius:var(--r-md);background:var(--glass);border:1px solid var(--line);color:var(--text);font-size:16px;outline:0;color-scheme:dark}
textarea{min-height:120px;resize:none;line-height:1.45}
input:focus-visible,textarea:focus-visible{border-color:var(--mint);outline:0;border-radius:var(--r-md)}
::placeholder{color:var(--faint)}
.coach-out{font-size:16px;line-height:1.5;white-space:pre-wrap}
/* ---------- профиль и настройки ---------- */
.pf-top{display:flex;align-items:center;gap:14px;padding:2px}
.pf-top .chip-badge{width:64px;height:64px}
.pf-num{font-size:40px;font-weight:300;letter-spacing:-.04em;line-height:1}
.pf-num small{font-size:15px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:7px}
.pf-rank{font-size:15px;font-weight:500;color:var(--mint);margin-top:4px}
.pf-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pf-stats>div{padding:11px 11px 10px;border-radius:var(--r-md);background:var(--glass);border:1px solid var(--line)}
.pf-stats b{display:block;font-size:24px;font-weight:300;letter-spacing:-.02em;line-height:1.1}
.pf-stats span{display:block;font-size:12.5px;color:var(--muted);line-height:1.25;margin-top:4px}
.ranks{display:flex;flex-direction:column;gap:2px;margin:12px -6px -6px}
.rank{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:46px;padding:6px 12px 6px 6px;border-radius:15px;font-size:15.5px;color:var(--muted)}
.rank .chip-badge{width:34px;height:34px;filter:none;opacity:.55}
.rank .rn small{display:block;font-size:12.5px;font-weight:500;color:var(--mint);line-height:1.2}
.rank .ra{display:inline-flex;align-items:center;gap:6px;font-size:14px}
.rank .ra .icon{width:16px;height:16px;color:var(--accent)}
.rank.was{color:var(--text)}.rank.was .chip-badge{opacity:1}
.rank.cur{background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);color:var(--text);font-weight:600}
.rank.cur .chip-badge{opacity:1;filter:drop-shadow(0 3px 6px rgba(0,0,0,.35))}
.rank.cur .ra{font-weight:500}
.achs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.ach{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:var(--r-md);background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09)}
.ach i{width:24px;height:24px;border-radius:50%;border:1.5px dashed rgba(255,255,255,.28);display:grid;place-items:center;margin-bottom:6px}
.ach b{font-size:14.5px;font-weight:600;line-height:1.25;color:rgba(233,247,240,.74)}
.ach span{font-size:12.5px;color:var(--muted);line-height:1.32}
.ach.on{background:rgba(127,224,169,.12);border-color:rgba(127,224,169,.34)}
.ach.on i{background:var(--accent);border:0;color:var(--on-accent)}
.ach.on i .icon{width:14px;height:14px;stroke-width:2.6}
.ach.on b{color:var(--text)}
.legal{margin-top:4px;padding:0 6px;text-align:center}
.legal .brand{display:block;font-size:17px;font-weight:600;letter-spacing:-.02em;margin-bottom:5px}
.legal p{font-size:13px;line-height:1.45;color:var(--muted)}

@media (max-width:374px){.onb{padding-top:calc(26px + var(--sat))}.onb h1{font-size:31px}.onb .demo{margin-top:18px}.onb .demo .rowx{padding:11px 15px}.onb .demo .pct{font-size:31px}.onb .handrow{margin-top:18px}.onb p{font-size:16px}.handhead{gap:10px 12px;padding:14px}.handhead h2{font-size:21px}.sh-num{font-size:40px}.hg{padding:13px 12px 11px}.hg-opp b{font-size:17.5px}.course .tt{font-size:17px}.tile.game{padding:13px 12px}.tile.game .tt{font-size:15.5px}}
@media (max-width:359px){.tab{width:74px}.opt{font-size:16px}.pc.lg{width:52px;height:72px}.pc.lg b{font-size:28px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}}

/* style-pro.css: Nice Hand Pro (src/ui-pro.js). Экран подписки, блок в профиле, замок и значок Pro. Все классы с приставкой pro-, токены и общие классы берутся из style.css. */

/* ---------- значок Pro и замок для других экранов ---------- */
.pro-badge{display:inline-flex;align-items:center;flex:none;height:20px;padding:0 8px;border-radius:999px;background:rgba(127,224,169,.14);border:1px solid rgba(127,224,169,.4);color:var(--accent);font-size:11.5px;font-weight:700;letter-spacing:.02em;line-height:1;white-space:nowrap;vertical-align:middle}
.pro-lock{color:var(--muted)}
.pro-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- экран подписки: шапка и нижний блок стоят на месте, середина прокручивается, если не помещается ----------
   Размеры по умолчанию рассчитаны на iPhone 390 на 844 с вырезом сверху и полосой снизу (остаётся около 750 пикселей) и на экран 360 на 740. */
.scrim.pro-wall{z-index:55;flex-direction:column;align-items:stretch;-webkit-backdrop-filter:none;backdrop-filter:none;
  background:radial-gradient(120% 42% at 50% -8%,rgba(127,224,169,.26) 0%,rgba(127,224,169,.08) 46%,rgba(127,224,169,0) 74%),linear-gradient(180deg,#0E2A1F 0%,#0A1D15 54%,#07140F 100%);
  animation:pro-in .34s var(--ease-out) both}
@keyframes pro-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
.scrim.pro-wall:focus,.scrim.pro-wall:focus-visible{outline:0}
.pro-top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + var(--sat)) 16px 0}
.pro-restore{height:44px;padding:0 4px 0 12px;font-size:14.5px;font-weight:500;color:var(--muted);white-space:nowrap;transition:color .2s,opacity .2s}
.pro-restore:active{color:var(--text)}
.pro-restore:disabled{opacity:.45}
.pro-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;display:flex;flex-direction:column;gap:11px;padding:8px 16px;
  -webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 8px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 8px),transparent)}
.pro-body::-webkit-scrollbar{display:none}
.pro-body>*{flex:none}
.pro-why{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;padding:8px 13px 8px 11px;border-radius:var(--r-md);background:rgba(255,255,255,.06);border:1px solid var(--line);font-size:14px;line-height:1.4;color:rgba(233,247,240,.88)}
.pro-why .icon{width:19px;height:19px;color:var(--mint);margin-top:1px}
.pro-h{font-size:27px;font-weight:500;letter-spacing:-.025em;line-height:1.1;text-wrap:balance;margin-top:1px}
.pro-list{display:flex;flex-direction:column;gap:7px}
.pro-li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:11px;align-items:center;font-size:15px;line-height:1.35}
.pro-ico{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:rgba(127,224,169,.1);border:1px solid rgba(127,224,169,.24);color:var(--mint)}
.pro-ico .icon{width:19px;height:19px}

/* ---------- планы ---------- */
.pro-plans{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:2px}
.pro-cap{margin:0 2px -3px;font-size:13.5px;font-weight:500;line-height:1.3;color:var(--muted)}
.pro-plan{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;align-items:center;width:100%;min-height:74px;padding:10px 16px 10px 14px;border-radius:22px;background:var(--glass);border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);text-align:left;
  transition:background .2s,border-color .2s,box-shadow .25s var(--ease-out)}
.pro-plan.info{grid-template-columns:minmax(0,1fr);padding-left:16px}
button.pro-plan:active{background:var(--glass2)}
.pro-plan[aria-checked="true"]{background:linear-gradient(140deg,rgba(127,224,169,.17),rgba(255,255,255,.05) 72%);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 36px rgba(127,224,169,.16),inset 0 1px 0 rgba(255,255,255,.1)}
.pro-radio{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:1.5px solid var(--line2);color:transparent;transition:background .2s,border-color .2s,color .2s}
.pro-radio .icon{width:14px;height:14px;stroke-width:2.6}
.pro-plan[aria-checked="true"] .pro-radio{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.pro-pl{display:flex;flex-direction:column;gap:4px;min-width:0}
.pro-r1,.pro-r2{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px}
.pro-r2{align-items:center;min-height:24px}
.pro-name{font-size:17px;font-weight:600;letter-spacing:-.005em;line-height:1.25}
.pro-price{margin-left:auto;font-size:14px;line-height:1.25;color:var(--muted);white-space:nowrap}
.pro-price b{font-size:22px;font-weight:500;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums}
.pro-price s{font-size:15px;color:var(--faint);margin-right:2px;text-decoration-thickness:1.5px;font-variant-numeric:tabular-nums}
.pro-sub{flex:1;min-width:0;font-size:13.5px;line-height:1.3;color:var(--muted)}
.pro-tag{margin-left:auto;display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;border:1px solid rgba(127,224,169,.42);color:var(--accent);font-size:12.5px;font-weight:600;line-height:1;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
.pro-plan[aria-checked="true"] .pro-tag{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.pro-plan.wait{min-height:77px}
.pro-bar{display:block;width:92px;height:14px;border-radius:7px;background:rgba(255,255,255,.1)}
.pro-bar.s{width:118px;height:10px;border-radius:5px;background:rgba(255,255,255,.07)}
.pro-fail{display:grid;place-items:center;min-height:162px;padding:16px 22px;border-radius:22px;border:1px dashed var(--line2);font-size:15px;line-height:1.42;color:rgba(233,247,240,.8);text-align:center;text-wrap:balance}

/* ---------- кнопка, условия, ссылки ---------- */
.pro-foot{flex:none;display:flex;flex-direction:column;gap:8px;padding:4px 16px calc(4px + var(--sab))}
.pro-cta,.pro-soon{height:54px}
.pro-cta{font-size:17px;text-decoration:none}
.pro-note{font-size:14px;line-height:1.4;color:var(--warn);text-align:center;text-wrap:balance}
.pro-note:empty{margin-bottom:-8px}
.pro-terms{min-height:37px;padding:0 6px;font-size:13px;line-height:1.42;color:rgba(233,247,240,.76);text-align:center;text-wrap:balance}
.pro-soon{display:flex;align-items:center;justify-content:center;border-radius:999px;background:var(--glass2);border:1px solid var(--line);font-size:16.5px;font-weight:600}
.pro-links{display:flex;justify-content:center;gap:8px;margin-top:-7px}
.pro-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font-size:13.5px;color:var(--muted);text-decoration:underline;text-decoration-color:rgba(233,247,240,.3);text-underline-offset:3px}

/* ---------- блок в профиле ---------- */
.pro-card{display:flex;flex-direction:column;gap:12px}
.pro-card-h{display:flex;align-items:center;gap:9px}
.pro-card p{font-size:14.5px;line-height:1.42;color:var(--muted)}
.pro-acts{display:flex;flex-direction:column;gap:2px}

/* Когда середине экрана хватает высоты, заголовок, выгоды и плитки становятся крупнее. Мерится сама середина, а не окно:
   вырез и нижняя полоса iPhone, третья строка условий и строка с ответом магазина уже учтены. Без поддержки @container остаётся размер по умолчанию. */
.pro-body{container:pro-body / size}
@container pro-body (min-height:590px){.pro-why{padding:10px 14px 10px 12px;font-size:14.5px}.pro-h{font-size:31px;margin-top:8px}.pro-list{gap:11px;margin-top:4px}.pro-li{grid-template-columns:38px minmax(0,1fr);gap:12px;font-size:16px}.pro-ico{width:38px;height:38px;border-radius:13px}.pro-ico .icon{width:21px;height:21px}
  .pro-plans{gap:10px}.pro-cap{font-size:14px}.pro-plan{min-height:84px;padding-top:14px;padding-bottom:14px}.pro-plan.wait{min-height:87px}.pro-pl{gap:6px}}
@container pro-body (min-height:660px){.pro-h{font-size:34px;margin-top:14px}.pro-list{gap:14px;margin-top:10px}.pro-plans{gap:12px}.pro-plan{min-height:92px;padding-top:17px;padding-bottom:17px}.pro-plan.wait{min-height:95px}}
@media (max-height:680px){.pro-h{font-size:24px}.pro-price b{font-size:20px}}
/* узкий экран: цена чуть мельче, чтобы зачёркнутая обычная цена и цена запуска помещались в одну строку с названием плана */
@media (max-width:374px){.pro-plan{column-gap:10px;padding-left:12px;padding-right:14px}.pro-plan.info{padding-left:14px}.pro-price{font-size:13.5px}.pro-price b{font-size:20px}.pro-price s{font-size:14px}}
@media (max-width:339px){.pro-h{font-size:24px}.pro-tag{font-size:12px;padding:0 8px}.pro-restore{font-size:13.5px}.pro-name{font-size:16px}}

/* Разбор руки (ui-analyze.js). Префикс an-. Стол с картами это главный элемент экрана, всё вокруг него спокойное. */

/* ---------- стол: сукно, на которое кладут карты ---------- */
.an-felt{position:relative;display:flex;flex-direction:column;gap:12px;padding:12px 12px 13px;border-radius:var(--r-xl);
  background:radial-gradient(125% 95% at 50% -8%,#2F8162 0%,#1C5A44 44%,#103A2B 100%);
  border:1px solid rgba(191,233,210,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 5px rgba(4,12,9,.16),inset 0 -26px 40px rgba(4,12,9,.2),0 1px 2px rgba(0,0,0,.3),0 16px 36px rgba(0,0,0,.3)}
.an-zone{display:flex;flex-direction:column;align-items:center;gap:6px}
.an-cap{font-size:13px;line-height:18px;color:rgba(233,247,240,.74)}
.an-cards{display:flex;gap:5px;justify-content:center}
.an-cards.an-hand{gap:7px}
.an-board{display:flex;justify-content:center;gap:12px}
.an-grp{display:flex;flex-direction:column;align-items:center;gap:5px}
.an-grp>span{font-size:11.5px;line-height:14px;color:rgba(233,247,240,.56)}
.an-slot{display:block;border-radius:9px;transition:transform .18s var(--ease-out)}
.an-slot.big{border-radius:11px}
.an-slot:active{transform:scale(.95)}
.an-slot .pc.empty{background:rgba(4,12,9,.24);box-shadow:inset 0 0 0 1.5px rgba(233,247,240,.2)}
.an-slot .pc.empty.on{background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 2px var(--white),0 6px 16px rgba(0,0,0,.22);color:var(--white)}
.an-slot .pc.empty .icon{width:20px;height:20px;stroke-width:2}
.an-slot.big .pc.empty .icon{width:24px;height:24px}
.an-slot.an-deal,.an-mini.an-deal{animation:deal .34s var(--ease-out) both}
.an-clear{position:absolute;top:0;right:4px;height:44px;padding:0 12px;border-radius:999px;font-size:14px;font-weight:500;color:rgba(233,247,240,.8);transition:color .2s,background .2s}
.an-clear:active{background:rgba(255,255,255,.1);color:var(--white)}

/* ---------- соперники ---------- */
.an-ctl{display:flex;flex-direction:column;gap:4px;padding:8px 16px 12px}
.an-opp{display:flex;align-items:center;gap:10px;font-size:16px}
.an-opp .an-n{min-width:26px;text-align:center;font-size:24px;font-weight:400;letter-spacing:-.02em}
.an-opp .iconbtn:disabled{opacity:.38}
.an-who{display:flex;flex-direction:column;gap:4px}
.an-ctl .chips button{height:44px}

/* ---------- пустой экран и подсказка ---------- */
.an-intro{display:flex;flex-direction:column;gap:10px;padding:4px 2px 0}
.an-intro p{font-size:16.5px;line-height:1.45;color:rgba(233,247,240,.86)}
.an-exs-cap{font-size:14px;font-weight:500;color:var(--muted);margin-top:8px}
.an-exs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.an-ex{display:flex;flex-direction:column;align-items:center;min-height:112px;padding:13px 2px 12px;border-radius:20px;background:var(--glass);border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);text-align:center;transition:background .2s,transform .2s var(--ease-out)}
.an-ex:active{background:var(--glass2);transform:scale(.975)}
.an-ex .cards{pointer-events:none}
.an-ex-t{font-size:13px;font-weight:600;line-height:1.25;letter-spacing:-.015em;margin-top:10px}
.an-ex-s{font-size:12.5px;line-height:1.25;color:var(--muted);margin-top:1px}
.an-hint h3{font-size:16.5px}
.an-wait{color:var(--muted)}
.an-note h3{margin-bottom:6px}

/* ---------- результат ---------- */
.an-res{position:relative;display:flex;flex-direction:column;gap:14px}
.an-res.an-in>*{animation:rise .42s var(--ease-out) both}
.an-res.an-in>*:nth-child(2){animation-delay:.07s}
.an-res.an-in>*:nth-child(n+3){animation-delay:.14s}
.an-res.busy>*:not(.an-busy){opacity:.45;transition:opacity .2s .15s}
.an-busy{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:2;padding:8px 16px;border-radius:999px;background:var(--white);color:var(--ink);font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 10px 30px rgba(0,0,0,.4);animation:fade .2s .15s both}
.an-head{display:flex;flex-direction:column;gap:12px;padding:16px 16px 18px;border-radius:var(--r-xl);background:linear-gradient(165deg,rgba(255,255,255,.12),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.an-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.an-what{flex:1;min-width:0}
.an-title{font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.16;overflow-wrap:anywhere}
.an-title.m{font-size:21px;line-height:1.2}
.an-title.s{font-size:17.5px;line-height:1.25;letter-spacing:-.01em}
.an-nb{white-space:nowrap}
.an-num{flex:none;display:flex;flex-direction:column;align-items:flex-end}
.an-num b{font-size:58px;font-weight:300;letter-spacing:-.05em;line-height:.96;font-variant-numeric:tabular-nums}
.an-num b small{font-size:.42em;font-weight:300;color:var(--muted);letter-spacing:0;margin-left:2px;vertical-align:.78em}
.an-num span{font-size:13px;line-height:1.3;color:var(--muted);margin-top:2px}
.an-sub{font-size:13.5px;color:var(--muted);margin-top:3px}
.an-tier{display:inline-block;height:auto;margin-top:10px;padding:5px 12px;border-radius:14px;line-height:1.25;white-space:normal}
/* шкала общая: её первую строку с числом заменяет крупная цифра выше */
.an-head .meter .mr:first-child{display:none}
.an-head .kv{padding-top:14px;border-top:1px solid rgba(255,255,255,.1);align-items:baseline}
.an-head .kv dt{font-size:14.5px}
.an-head .kv dd{font-size:17px;font-variant-numeric:normal}
.an-how h3{margin-bottom:6px}
.an-plays{display:flex;flex-direction:column}
.an-play{display:grid;grid-template-columns:minmax(0,30%) minmax(0,1fr);gap:12px;padding:13px 0;border-top:1px solid rgba(255,255,255,.08)}
.an-play:first-child{border-top:0}
.an-k{font-size:13.5px;line-height:1.35;color:var(--muted);padding-top:6px}
.an-act{display:inline-block;padding:6px 11px;border-radius:14px;font-size:14px;font-weight:600;line-height:1.25}
.an-act.r{background:var(--raise);color:#3B0E06}
.an-act.c{background:var(--call);color:var(--on-accent)}
.an-act.b{background:var(--bluff);color:#2A1C05}
.an-act.f{background:rgba(255,255,255,.1);color:rgba(233,247,240,.7)}
.an-act.x{padding:5px 10px;background:var(--glass2);border:1px solid var(--line2);color:var(--text)}
.an-why{font-size:14.5px;line-height:1.42;margin-top:8px;color:rgba(233,247,240,.9)}
.an-how .notes{margin-top:4px}
.an-foot{font-size:13px;line-height:1.4;color:var(--faint);padding:0 4px}
.an-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- шторка выбора карты ---------- */
.an-pick{display:flex;flex-direction:column;gap:12px}
.an-phead{gap:8px;min-height:54px}
.an-phead h2{font-size:21px}
.an-minis{display:flex;gap:0}
.an-mini{width:44px;height:54px;display:grid;place-items:center;border-radius:9px}
.an-mini .pc.empty{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.2)}
.an-mini.on .pc{box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 0 0 2px var(--sheet),0 0 0 4px var(--white)}
.an-mini.on .pc.empty{background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 2px var(--white)}
.an-deck{display:flex;flex-direction:column;gap:10px;margin:0 -6px}
.an-suit{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.an-sl{display:grid;place-items:center;color:rgba(243,251,247,.9)}
.an-sl svg{width:22px;height:22px}
.an-suit.r .an-sl{color:var(--raise)}
.an-key{height:46px;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--card-ink);
  background:linear-gradient(180deg,#FFFFFF 0%,#EEF4F0 100%);box-shadow:inset 0 -2px 0 rgba(13,21,18,.07),0 1px 2px rgba(0,0,0,.4);transition:transform .15s var(--ease-out),opacity .2s}
.an-suit.r .an-key{color:var(--card-red)}
.an-key b{font:700 19px/1 var(--f);letter-spacing:-.05em}
.an-key svg{width:12px;height:12px}
.an-key:active{transform:scale(.92)}
.an-key:disabled{opacity:.14;box-shadow:none}
.an-key.sel{box-shadow:0 0 0 2px var(--sheet),0 0 0 4px var(--accent)}
.an-key:focus-visible{outline-offset:1px;border-radius:9px}
.an-remove{align-self:center;height:44px}
/* быстрые нажатия подряд: без увеличения страницы по двойному касанию и без выделения текста */
.an-key,.an-slot,.an-mini,.an-ex,.an-clear,.an-ctl button{touch-action:manipulation;-webkit-user-select:none;user-select:none}

@media (max-width:359px){.an-board{gap:7px}.an-cards{gap:3px}.an-felt{padding-left:8px;padding-right:8px}.an-num b{font-size:50px}}
@media (prefers-reduced-motion:reduce){.an-busy{animation-delay:.15s!important}}
@media (min-height:780px){.an-key{height:50px}.an-felt{gap:14px;padding:14px 12px 15px}.an-zone{gap:8px}.an-ctl{gap:8px;padding:10px 16px 14px}}

/* style-games.css: три быстрые игры (src/ui-games.js). Все классы с приставкой gm-, токены и общие классы берутся из style.css. */

/* ---------- шапка: название и рекорд ---------- */
.top .gm-title{font-size:17px}
.gm-best{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;width:44px;height:44px;line-height:1.12;white-space:nowrap}
.gm-best span{font-size:11px;font-weight:500;color:var(--muted)}
.gm-best b{font-size:18px;font-weight:500;letter-spacing:-.01em;font-variant-numeric:tabular-nums;transition:color .2s}
.gm-best.new b{color:var(--accent)}
.gm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- счёт, жизни, серия ---------- */
.view.gm{gap:12px}
.gm-hud{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-height:66px}
.gm-score{min-width:84px;text-align:center;font-size:64px;font-weight:300;letter-spacing:-.05em;line-height:1;font-variant-numeric:tabular-nums}
.gm-score b{font-weight:300;display:inline-block}
.gm-score.pop b{animation:gm-pop .22s var(--ease-out)}
@keyframes gm-pop{from{transform:scale(1.16)}to{transform:none}}
.gm-lives{justify-self:start;display:flex;gap:6px}
.gm-lives i{display:block;width:26px;height:26px}
.gm-lives .chipmini{width:26px;height:26px;transition:opacity .25s,transform .25s var(--ease-out),filter .25s}
.gm-lives .off .chipmini{opacity:.22;transform:scale(.8);filter:grayscale(1) drop-shadow(0 0 0 transparent)}
.gm-streak{justify-self:end;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 5px 0 12px;border-radius:999px;background:var(--glass2);border:1px solid var(--line);font-size:13px;font-weight:500;white-space:nowrap;opacity:0;transform:scale(.9);transition:opacity .2s,transform .2s var(--ease-out)}
.gm-streak.on{opacity:1;transform:none}
.gm-streak b{display:inline-grid;place-items:center;height:22px;min-width:30px;padding:0 7px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;transition:background .2s}
.gm-streak.x3 b{background:var(--bluff);color:#2A1C05}
.gm-body{display:flex;flex-direction:column;gap:12px}
@keyframes gm-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- ответ: похвала, причина, фишки ---------- */
.gm-fb:empty{display:none}
.gm-hint{text-align:center;font-size:14.5px;line-height:1.4;color:var(--muted)}
.gm-verdict{display:flex}
.gm-gain{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.gm-gain .chipmini{width:20px;height:20px;filter:none}
.gm-ok{display:flex;flex-direction:column;gap:8px;padding:4px 6px 0;animation:gm-in .22s var(--ease-out) both}
.gm-why{font-size:15.5px;line-height:1.45;color:rgba(233,247,240,.86)}
.gm-why b{color:var(--text)}
.gm-bad{gap:10px;padding:14px 16px 15px}
.gm-bad .why{font-size:15.5px;line-height:1.42}
.gm-rule{display:grid;grid-template-columns:20px 1fr;gap:9px;padding-top:10px;border-top:1px solid rgba(255,255,255,.1);font-size:14.5px;line-height:1.4;color:rgba(233,247,240,.86)}
.gm-rule .icon{width:18px;height:18px;color:var(--accent);margin-top:2px}
.gm-rule b{color:var(--accent);font-weight:600}
.gm-kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 12px;margin:0;font-size:14.5px;line-height:1.35}
.gm-kv dt{color:var(--muted)}
.gm-kv dd{font-weight:500}
.gm-fly{position:absolute;left:50%;top:-17px;z-index:3;display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 8px 0 13px;border-radius:999px;background:#0C2F21;border:1px solid rgba(127,224,169,.55);box-shadow:0 8px 22px rgba(0,0,0,.4);
  font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--accent);white-space:nowrap;pointer-events:none;animation:gm-fly .5s var(--ease-out) both}
.gm-fly .chipmini{width:20px;height:20px;filter:none}
.gm-tile .gm-fly{top:46px}
@keyframes gm-fly{0%{opacity:0;transform:translate(-50%,10px) scale(.9)}20%{opacity:1;transform:translate(-50%,0)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-30px)}}

/* ---------- «Сильнее против него» ---------- */
.gm-opp{display:flex;align-items:center;gap:14px;min-height:72px;padding:10px 16px 10px 14px;border-radius:var(--r-lg);background:var(--glass);border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);animation:gm-in .25s var(--ease-out) backwards}
.gm-backs{display:flex;flex:none}
.gm-backs .pc{box-shadow:inset 0 0 0 1px rgba(191,233,210,.42),inset 0 0 0 4px #123E2F,inset 0 0 0 5px rgba(191,233,210,.22),0 4px 10px rgba(0,0,0,.35)}
.gm-backs .pc:first-child{transform:rotate(-6deg)}
.gm-backs .pc:last-child{margin-left:-12px;transform:rotate(5deg)}
.gm-opp.r .gm-backs .pc{box-shadow:inset 0 0 0 1.5px var(--raise),inset 0 0 0 4px #123E2F,inset 0 0 0 5px rgba(191,233,210,.22),0 4px 10px rgba(0,0,0,.35)}
.gm-opp.p .gm-backs .pc{box-shadow:inset 0 0 0 1.5px var(--allin),inset 0 0 0 4px #123E2F,inset 0 0 0 5px rgba(191,233,210,.22),0 4px 10px rgba(0,0,0,.35)}
.gm-opp .k{font-size:17px;font-weight:600;line-height:1.25;letter-spacing:-.005em}
.gm-opp .s{font-size:14px;line-height:1.35;color:var(--muted);margin-top:2px}
.gm-tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.gm-tile{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:18px 6px 10px;border-radius:var(--r-xl);text-align:center;
  background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 14px 30px rgba(0,0,0,.2);
  transition:transform .18s var(--ease-out),border-color .2s,box-shadow .25s,opacity .25s;animation:gm-in .25s var(--ease-out) backwards}
.gm-tile:nth-child(2){animation-delay:.05s}
.gm-tile:active{transform:scale(.975)}
.gm-tiles.locked .gm-tile{pointer-events:none}
.gm-tile .pc.lg{width:66px;height:91px;border-radius:12px}
.gm-tile .pc.lg b{font-size:36px}
.gm-tile .pc.lg svg{width:26px;height:26px}
.gm-code{font-size:20px;font-weight:600;letter-spacing:-.01em;line-height:1.2;margin-top:12px}
.gm-sub{display:grid;place-items:center;min-height:38px;padding:0 4px}
.gm-words{font-size:13px;line-height:1.3;color:var(--muted)}
.gm-pct{font-size:34px;font-weight:300;letter-spacing:-.035em;line-height:1;font-variant-numeric:tabular-nums;animation:gm-in .22s var(--ease-out) both}
.gm-tile.right{border-color:var(--good);box-shadow:0 0 0 2px var(--good),0 0 36px rgba(127,224,169,.28),inset 0 1px 0 rgba(255,255,255,.1)}
.gm-tile.right .gm-pct{color:var(--good)}
.gm-tile.wrong{border-color:var(--bad);box-shadow:0 0 0 2px var(--bad),inset 0 1px 0 rgba(255,255,255,.1);animation:gm-shake .25s var(--ease-inout)}
.gm-tile.dim{opacity:.62}
@keyframes gm-shake{0%,100%{transform:none}25%{transform:translateX(-5px)}55%{transform:translateX(4px)}80%{transform:translateX(-2px)}}

/* ---------- «Кто выиграл» ---------- */
.gm-table{padding:10px 8px 12px;animation:gm-in .25s var(--ease-out) backwards}
.gm-table .versus{justify-content:space-evenly;gap:8px;padding:0}
.gm-table .side{gap:4px}
.gm-side .who{transition:color .2s}
.gm-hole{padding:5px;border-radius:15px;border:1.5px solid transparent;transition:border-color .2s,background .2s,box-shadow .25s}
.gm-side.win .gm-hole{border-color:var(--good);background:rgba(127,224,169,.1);box-shadow:0 0 26px rgba(127,224,169,.2)}
.gm-side.win .who{color:var(--good)}
.gm-table .boardrow{margin-top:2px;gap:5px}
.gm-show .gm-bad{gap:9px;padding:14px 16px 15px}
.gm-opt{position:relative}

/* ---------- «Играть или сбросить» ---------- */
.gm-timer{height:6px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.gm-timer i{display:block;height:100%;border-radius:3px;background:var(--white);transform-origin:0 50%;transition:transform .1s linear,background .3s}
.gm-timer.low i{background:var(--bad)}
.gm-time{justify-self:start;font-size:22px;font-weight:400;letter-spacing:-.01em;font-variant-numeric:tabular-nums;transition:color .3s}
.gm-timer.low+.gm-hud .gm-time{color:var(--bad)}
.gm-play{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;margin:0 -16px;padding:0 16px;overflow-x:clip}
.gm-ask{text-align:center;font-size:15px;line-height:1.4;color:var(--muted)}
.gm-deck{position:relative;display:grid;justify-items:center;align-items:center;padding-top:16px}
.gm-deck::before{content:"";grid-area:1/1;align-self:stretch;width:min(100%,272px);border-radius:var(--r-xl);background:#122E21;border:1px solid rgba(255,255,255,.1);transform:translateY(19px) scale(.92)}
.gm-deck>.gm-sw{grid-area:1/1}
.gm-sw{position:relative;width:min(100%,272px);display:flex;flex-direction:column;align-items:center;padding:22px 14px 20px;border-radius:var(--r-xl);
  background:linear-gradient(165deg,#24503E 0%,#143526 100%);border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 18px 40px rgba(0,0,0,.3);
  touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:grab;transition:transform .2s var(--ease-out),border-color .2s,box-shadow .2s;animation:gm-deal .25s var(--ease-out) backwards}
.gm-sw.drag{transition:none;cursor:grabbing}
@keyframes gm-deal{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
.gm-seat{font-size:15px;line-height:1.2;color:var(--muted);text-align:center}
.gm-seat b{font-size:22px;font-weight:600;letter-spacing:-.01em;color:var(--text)}
.gm-strip{display:flex;align-items:center;justify-content:center;gap:6px;height:14px;margin-top:8px}
.gm-strip i{width:8px;height:8px;border-radius:50%;border:1.5px solid rgba(255,255,255,.55)}
.gm-strip i.was{border-color:transparent;background:rgba(255,255,255,.18)}
.gm-strip i.me{width:14px;height:14px;border:0;background:var(--white);box-shadow:0 0 0 3px rgba(255,255,255,.18)}
.gm-sw .cards{margin-top:18px;gap:8px}
.gm-sw .gm-code{font-size:24px;margin-top:14px}
.gm-sw .gm-words{font-size:13.5px;margin-top:2px;text-align:center}
.gm-stamp{position:absolute;top:-15px;z-index:2;display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:999px;font-size:14.5px;font-weight:700;opacity:0;pointer-events:none;box-shadow:0 6px 16px rgba(0,0,0,.35);transition:opacity .15s}
.gm-sw.drag .gm-stamp{transition:none}
.gm-stamp.r{right:16px;background:var(--raise);color:#3B0E06;transform:rotate(5deg)}
.gm-stamp.f{left:16px;background:#E4ECE7;color:var(--ink);transform:rotate(-5deg)}
.gm-sw.miss{border-color:var(--bad);box-shadow:0 0 0 2px var(--bad),0 18px 40px rgba(0,0,0,.3)}
.gm-sw.say-r .gm-stamp.r,.gm-sw.say-f .gm-stamp.f{opacity:1}
.gm-sw.out{pointer-events:none;z-index:2;animation:gm-out-r .24s cubic-bezier(.4,0,1,1) forwards}
.gm-sw.out-l{animation-name:gm-out-l}
@keyframes gm-out-r{to{opacity:0;transform:translateX(125%) rotate(16deg)}}
@keyframes gm-out-l{to{opacity:0;transform:translateX(-125%) rotate(-16deg)}}
.gm-swipe .gm-fb,.gm-swipe .gm-fb:empty{display:block;min-height:100px}
.gm-swipe .gm-ok{padding-top:0}
.gm-miss{display:flex;flex-direction:column;gap:6px;padding:0 6px;animation:gm-in .2s var(--ease-out) both}
.gm-miss .gm-verdict{color:var(--bad)}
.gm-miss .gm-verdict i{background:var(--bad);color:#3B0E06}
.dock .gm-raise{background:var(--raise);color:#3B0E06}
.dock .gm-solid{background:#1B4333;border-color:rgba(255,255,255,.2)}
.dock .gm-act .icon{width:20px;height:20px}

/* ---------- итог ---------- */
.gm-res{padding:22px 16px 22px;animation:gm-in .4s var(--ease-out) both}
.gm-cap{font-size:14.5px;color:var(--muted)}
.gm-res .bigstat{margin-top:4px;font-variant-numeric:tabular-nums}
.gm-res .rs{margin-top:6px;font-size:17px}
.gm-new{display:inline-flex;align-items:center;gap:7px;height:34px;margin-top:14px;padding:0 15px 0 12px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:14.5px;font-weight:600;animation:gm-new .45s var(--ease-out) .18s both}
.gm-new .icon{width:17px;height:17px}
@keyframes gm-new{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
.gm-res .gm-bestline{margin-top:10px;font-size:14.5px}
.gm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gm-stats>div{padding:13px 6px 12px;border-radius:var(--r-md);background:var(--glass);border:1px solid var(--line);text-align:center}
.gm-stats b{display:block;font-size:26px;font-weight:300;letter-spacing:-.03em;line-height:1.1;font-variant-numeric:tabular-nums}
.gm-stats span{display:block;font-size:12.5px;line-height:1.25;color:var(--muted);margin-top:4px}
.gm-ach{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:var(--r-md);background:rgba(127,224,169,.1);border:1px solid rgba(127,224,169,.28);font-size:15px;line-height:1.35}
.gm-ach .icon{width:20px;height:20px;color:var(--accent)}
.gm-missed{display:flex;flex-direction:column;padding:14px 16px 6px}
.gm-mrow{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.gm-mrow:last-child{border-bottom:0}
.gm-mrow .cards{flex:none;gap:3px}
.gm-mrow .t{font-size:14.5px;line-height:1.3;color:var(--muted)}
.gm-mrow .t b{color:var(--text);font-size:15.5px}
.gm-mrow .s{font-size:13px;line-height:1.35;color:var(--muted);margin-top:1px}
.gm-move{flex:none;display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.gm-move.r{background:var(--raise);color:#3B0E06}
.gm-move.f{background:var(--glass2);border:1px solid var(--line2);color:var(--text)}

@media (min-width:385px){.gm-tile .pc.lg{width:72px;height:99px;border-radius:13px}.gm-tile .pc.lg b{font-size:39px}.gm-tile .pc.lg svg{width:28px;height:28px}}
@media (max-width:359px){.gm-tile .pc.lg{width:54px;height:75px;border-radius:10px}.gm-tile .pc.lg b{font-size:29px}.gm-tile .pc.lg svg{width:21px;height:21px}.top .gm-title{font-size:14px}.gm-score{font-size:56px;min-width:72px}.gm-streak{font-size:12px;padding-left:9px}}
@media (max-height:780px){.view.gm,.gm-body{gap:10px}.gm-hud{min-height:52px}.gm-score{font-size:54px}.gm-tile{padding-top:16px}.gm-bad .why{line-height:1.38}.gm-rule{line-height:1.36}}
@media (max-height:700px){.gm-sw{padding:18px 14px 16px}.gm-sw .cards{margin-top:12px}.gm-play{justify-content:flex-start}}
@media (min-height:800px){.view.gm,.gm-body{gap:14px}.gm-hud{min-height:76px}.gm-score{font-size:70px}.gm-opp{min-height:80px}.gm-deck::before,.gm-sw{width:min(100%,292px)}.gm-sw{padding:26px 16px 24px}.gm-sw .cards{margin-top:22px}.gm-tile{padding:26px 6px 16px}.gm-table{padding:16px 8px 18px}}
