/* =====================================================================
   Katenza «Розыгрыши» (.kg > .kg-in inside the /giveaways route host). Script: privatedrop-giveaways-v1.js.
   Graphite night and the site's dial: every card's prize skin sits over a ticked ring whose gold arc is the share of
   the round that has gone. Gold fills only the real action («Участвовать»); the other steps are quiet buttons.
   .kg is the size container (name "kg"), so width rules style .kg-in or deeper, never .kg itself.
   Desktop renders at 90 % (html zoom): viewport units are divided by --pd-zoom.
   ===================================================================== */
.kg-host{display:block;width:100%;min-width:0}
.kg{container:kg/inline-size;width:100%;
  --gold:var(--pd2-gold,#e8bd62);--gold-hi:var(--pd2-gold-hi,#f6dc9b);--gold-rgb:232 189 98;
  --t1:var(--pd2-text,#eceef1);--t2:#a9acb3;--t3:#8b8e95;--t4:#5d6066;
  --line:rgba(255,255,255,.07);--line-2:rgba(255,255,255,.12);--ok:#3fcf86;--ok-rgb:63 207 134;
  --num:var(--pd2-font-num);--ease:cubic-bezier(.16,1,.3,1);
  font-family:var(--pd2-font);color:var(--t1)}
.kg *{box-sizing:border-box}
.kg button{font-family:inherit;color:inherit}
:where(.kg) :where(h1,h2,h3,p,ul,ol,li,dl,dd,dt){margin:0;padding:0}
:where(.kg) :where(ul,ol){list-style:none}
.kg :focus-visible{outline:2px solid rgb(var(--gold-rgb)/.75);outline-offset:3px;border-radius:8px}
/* rows flush with a card or list edge draw their ring inside, so the card's clipping never hides it */
.kg .kg-foot-btn:focus-visible,.kg .kg-fair-btn:focus-visible,.kg .kg-h-row:focus-visible{outline-offset:-3px;border-radius:10px}
.kg ::selection{background:rgb(var(--gold-rgb)/.3);color:#fff}
.kg-in{max-width:1240px;margin:0 auto;padding:32px 40px 72px}
.kg-coin{display:inline-block;flex:none;width:.86em;height:.86em;-webkit-user-drag:none}
.kg-amt{display:inline-flex;align-items:center;gap:.24em;white-space:nowrap;font-family:var(--num);font-variant-numeric:tabular-nums}
.kg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kg svg{display:block}

/* ---------- head ---------- */
.kg-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:24px;row-gap:14px;margin-bottom:28px}
.kg h1{font-size:52px;line-height:1;font-weight:700;letter-spacing:-.04em}
.kg-head-tools{display:flex;align-items:center;gap:10px}
.kg-tabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:rgba(255,255,255,.035)}
.kg-tabs button{min-width:84px;min-height:40px;padding:0 18px;border:0;border-radius:9px;background:none;color:var(--t2);font-size:14px;font-weight:700;letter-spacing:.02em;cursor:pointer;transition:color .2s,background-color .2s}
.kg-tabs button:hover{color:var(--t1)}
.kg-tabs button[aria-selected="true"]{background:#24252b;color:var(--t1);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.kg-rules-btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border:0;border-radius:12px;background:rgba(255,255,255,.035);color:var(--t2);font-size:14.5px;font-weight:600;cursor:pointer;transition:color .2s,background-color .2s}
.kg-rules-btn:hover{color:var(--t1);background:rgba(255,255,255,.06)}
.kg-rules-btn svg{width:18px;height:18px}

/* ---------- grid and card ---------- */
.kg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:16px;align-items:stretch}
.kg-card{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:18px;background:linear-gradient(180deg,#15161a 0%,#111216 100%);
  box-shadow:inset 0 0 0 1px var(--line),0 12px 32px rgba(0,0,0,.22);overflow:hidden}
.kg-card.is-in{box-shadow:inset 0 0 0 1px rgb(var(--ok-rgb)/.26),0 12px 32px rgba(0,0,0,.22)}
.kg-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 16px 0}
.kg-kind{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
.kg-kind.has-ico{grid-template-columns:auto minmax(0,1fr);column-gap:10px}
.kg-kind b{grid-column:-2;font-size:15px;line-height:20px;font-weight:650;letter-spacing:-.01em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.kg-kind small{grid-column:-2;color:var(--t3);font-size:13px;line-height:17px}
.kg-kind-ico{grid-row:1 / span 2;align-self:center;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.05);color:var(--t2)}
.kg-kind-ico svg{width:16px;height:16px}
.kg-count{position:absolute;top:8px;right:14px;z-index:1;display:inline-flex;align-items:baseline;gap:5px;padding:5px 9px;border-radius:9px;background:rgba(18,19,23,.72);box-shadow:inset 0 0 0 1px var(--line);color:var(--t1);font-family:var(--num);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.kg-count small{margin-left:-3px;color:var(--t2);font-size:13px;font-weight:500}
.kg-count.is-met b,.kg-count.is-met small{color:var(--ok)}
.kg-count i{align-self:center}
.kg-count i{display:grid;color:var(--t3)}
.kg-count svg{width:16px;height:16px}

/* the stage: the dial (ticks + the share of the round that has gone) behind the skin */
.kg-stage{--tone:var(--gold);position:relative;display:grid;place-items:center;height:200px;margin:4px 0 2px;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--tone) 20%,transparent) 0%,transparent 72%) center / 74% 82% no-repeat}
.kg-dial{position:absolute;left:50%;top:50%;width:186px;height:186px;margin:-93px 0 0 -93px;overflow:visible}
.kg-dial-ticks line{stroke:rgba(255,255,255,.2);stroke-width:1}
.kg-dial-track{fill:none;stroke:rgba(255,255,255,.08);stroke-width:2}
.kg-dial-arc{fill:none;stroke:var(--gold);stroke-width:3;stroke-linecap:round;stroke-dasharray:var(--len);stroke-dashoffset:var(--off);transition:stroke-dashoffset 1.6s var(--ease)}
.kg-dial-knob{fill:var(--gold-hi);stroke:#121317;stroke-width:2.2;transition:cx 1.6s var(--ease),cy 1.6s var(--ease)}
.kg:not(.is-ready) .kg-dial-knob{opacity:0}
/* the draw: the dial turns while the server picks the winner (a few seconds; transform only) */
.kg-card.is-drawing .kg-dial{animation:kg-turn 1.6s linear infinite}
@keyframes kg-turn{to{transform:rotate(360deg)}}
.kg:not(.is-ready) .kg-dial-arc{stroke-dashoffset:var(--len)}
.kg-skin{position:relative;width:70%;max-width:212px;aspect-ratio:4/3;object-fit:contain;filter:drop-shadow(0 14px 16px rgba(0,0,0,.55));-webkit-user-drag:none;user-select:none}
.kg-skin.is-coins{display:grid;place-items:center;width:auto;aspect-ratio:auto;filter:none}
.kg-skin.is-coins .kg-coin{width:64px;height:64px}
.kg-wear{position:absolute;right:14px;bottom:8px;padding:2px 7px;border-radius:6px;background:rgba(255,255,255,.05);color:var(--t2);font-family:var(--num);font-size:12.5px;font-weight:600}

.kg-body{display:flex;flex:1;flex-direction:column;gap:14px;padding:6px 16px 16px}
.kg-prize{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;min-width:0}
.kg-p-name{display:flex;flex-direction:column;min-width:0}
.kg-p-name>span{overflow:hidden;color:var(--t2);font-size:13px;line-height:18px;white-space:nowrap;text-overflow:ellipsis}
.kg-p-name b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:17px;line-height:22px;font-weight:650;letter-spacing:-.015em;overflow-wrap:anywhere}
.kg-p-val{flex:none;color:var(--gold-hi);font-size:17px;font-weight:600;line-height:22px}
.kg-p-name b.kg-p-coins{color:var(--gold-hi);font-size:22px;line-height:26px}
.kg-p-coins .kg-coin{width:18px;height:18px}
.kg-winners{margin-top:-8px;color:var(--t3);font-size:12.5px}

.kg-when{display:flex;flex-direction:column;gap:4px;padding:10px 12px 11px;border-radius:12px;background:rgba(255,255,255,.03)}
.kg-when-l{color:var(--t3);font-size:13px;line-height:17px}
.kg-cd{display:flex;align-items:baseline;gap:12px}
.kg-cd-c{display:inline-flex;align-items:baseline;gap:3px}
.kg-cd-c b{font-family:var(--num);font-size:24px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.kg-cd-c small{color:var(--t3);font-size:12.5px}

/* requirements: what is asked; with a session also how far the visitor is */
.kg-reqs{display:flex;flex-direction:column;gap:8px}
.kg-req{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:6px;font-size:13.5px;line-height:18px}
.kg-req-l{min-width:0;color:var(--t2)}
.kg-req.is-done .kg-req-l{color:var(--t1)}
.kg-req-v{color:var(--t3);font-family:var(--num);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.kg-req-v.is-note{grid-column:2 / -1;margin-top:-4px;font-family:var(--pd2-font);font-size:13px;white-space:normal}
.kg-req-v .kg-coin{width:12px;height:12px}
.kg-req-have{color:var(--t1);font-weight:600}
.kg-req.is-done .kg-req-v{color:var(--t2)}
.kg-mark{display:grid;place-items:center;width:18px;height:18px;color:var(--t4)}
.kg-mark svg{width:18px;height:18px}
.kg-mark.is-done{color:var(--ok)}
.kg-req.is-next .kg-mark{color:var(--gold)}
.kg-req-hint{grid-column:2 / -1;margin-top:-2px;color:var(--t2);font-size:13px;line-height:18px}
.kg-req-hint .kg-coin{width:11px;height:11px;vertical-align:-1px}
.kg-req-bar{grid-column:2 / -1;position:relative;height:3px;border-radius:2px;background:rgba(255,255,255,.07);overflow:hidden}
.kg-req-bar i{position:absolute;inset:0;border-radius:inherit;background:var(--t2);transform-origin:left;transform:scaleX(var(--p,0));transition:transform .6s var(--ease)}
.kg-req.is-done .kg-req-bar i{background:var(--ok)}
.kg-or{display:flex;align-items:center;gap:10px;margin:-4px 0;color:var(--t3);font-size:13px}
.kg-or::before,.kg-or::after{content:"";flex:1;height:1px;background:var(--line)}
.kg-rule{color:var(--t3);font-size:13px;line-height:19px}
.kg-rule b{color:var(--t1);font-family:var(--num);font-weight:600}
.kg-rule.is-met b{color:var(--ok)}

.kg-result{display:flex;align-items:center;gap:12px;min-height:66px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--line-2)}
.kg-result .kg-face{width:36px;height:36px;font-size:14px}
.kg-result p{display:flex;flex:1;flex-direction:column;min-width:0}
.kg-result b{overflow:hidden;font-size:15px;line-height:20px;font-weight:650;white-space:nowrap;text-overflow:ellipsis}
.kg-result small{color:var(--t2);font-size:13px;line-height:18px}
.kg-result.is-me{background:rgb(var(--gold-rgb)/.1);box-shadow:inset 0 0 0 1px rgb(var(--gold-rgb)/.45)}
.kg-result.is-me b{color:var(--gold-hi)}
.kg-result .kg-link{flex:none}
.kg-cta-row{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.kg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:0 16px;border:0;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s,transform .12s}
.kg-btn svg{width:18px;height:18px}
.kg-btn.is-gold{background:var(--pd2-gold-fill);box-shadow:var(--pd2-gold-bevel);color:var(--pd2-on-gold,#1c1508)}
.kg-btn.is-gold:hover{background:var(--pd2-gold-fill-hover)}
.kg-btn.is-gold:active{background:var(--pd2-gold-fill-press);transform:translateY(1px)}
.kg-btn.is-quiet{background:#1d1e23;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--t1)}
.kg-btn.is-quiet:hover{background:#24252b}
.kg-btn.is-off,.kg-btn:disabled{background:#18191d;box-shadow:inset 0 0 0 1px var(--line);color:var(--t3);cursor:not-allowed;transform:none}
.kg-btn[aria-busy="true"]{cursor:progress}
.kg-subs{display:flex;flex-wrap:wrap;justify-content:center;column-gap:16px}
.kg .kg-link{min-height:44px;padding:0 6px;border:0;background:none;color:var(--t2);font-size:13px;text-decoration:underline;text-decoration-color:rgba(255,255,255,.2);text-underline-offset:3px;cursor:pointer}
.kg .kg-link:hover{color:var(--t1);text-decoration-color:currentColor}
.kg-joined{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;border-radius:12px;background:rgb(var(--ok-rgb)/.08);box-shadow:inset 0 0 0 1px rgb(var(--ok-rgb)/.28);color:var(--t1);font-size:15px;font-weight:650}
.kg-joined i{display:grid;color:var(--ok)}
.kg-joined svg{width:20px;height:20px}
.kg-joined small{margin-left:auto;color:var(--t2);font-family:var(--num);font-size:14px;font-weight:600}
.kg-card.is-in .kg-joined i svg path{stroke-dasharray:22;animation:kg-tick .5s var(--ease) both}
@keyframes kg-tick{from{stroke-dashoffset:22}to{stroke-dashoffset:0}}

.kg-foot{display:flex;border-top:1px solid var(--line)}
.kg-foot-btn{flex:1;min-width:0}
.kg-foot-t b.is-me{color:var(--gold-hi)}
.kg-fair-btn{display:grid;flex:none;place-items:center;width:52px;min-height:48px;border:0;border-left:1px solid var(--line);background:none;color:var(--t3);cursor:pointer;transition:color .18s,background-color .18s}
.kg-fair-btn:hover{color:var(--gold);background:rgba(255,255,255,.03)}
.kg-fair-btn svg{width:19px;height:19px}
.kg-foot-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 16px;border:0;background:none;color:var(--t2);font-size:13.5px;text-align:left;cursor:pointer;transition:background-color .18s,color .18s}
.kg-foot-btn:hover{background:rgba(255,255,255,.03);color:var(--t1)}
.kg-foot-t{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.kg-foot-t b{color:var(--t1);font-weight:600}
.kg-foot-btn>i{display:grid;flex:none;color:var(--t3)}
.kg-foot-btn>i svg{width:16px;height:16px}
.kg-face{position:relative;display:grid;flex:none;place-items:center;width:24px;height:24px;overflow:hidden;border-radius:50%;background:#24252b;color:var(--t2);font-size:11px;font-weight:600}
.kg-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- loading, empty, locked ---------- */
.kg-skel{height:560px;animation:kg-pulse 1.4s ease-in-out infinite}
@keyframes kg-pulse{50%{opacity:.55}}
.kg-empty{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:440px;margin:24px auto;padding:44px 24px;border-radius:18px;box-shadow:inset 0 0 0 1px var(--line);text-align:center}
.kg-empty-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.04);color:var(--gold)}
.kg-empty-ico svg{width:24px;height:24px}
.kg-empty h2{font-size:22px;line-height:28px;font-weight:650;letter-spacing:-.02em}
.kg-empty p{color:var(--t2);font-size:15px;line-height:22px}
.kg-empty .kg-btn{width:auto;margin-top:6px}

/* ---------- history ---------- */
.kg-hist{margin-top:48px}
.kg-hist[hidden]{display:none}
.kg-hist h2{margin-bottom:12px;font-size:22px;line-height:28px;font-weight:650;letter-spacing:-.02em}
.kg-h-list{border-top:1px solid var(--line)}
.kg-h-list>li{border-bottom:1px solid var(--line)}
.kg-h-row{display:grid;grid-template-columns:64px minmax(0,1.5fr) minmax(0,1fr) auto 18px;align-items:center;column-gap:16px;width:100%;min-height:64px;padding:8px 8px;border:0;background:none;text-align:left;cursor:pointer;transition:background-color .18s}
.kg-h-row:hover{background:rgba(255,255,255,.025)}
.kg-h-skin{display:grid;place-items:center;width:64px;height:48px}
.kg-h-skin img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}
.kg-h-skin .kg-coin{width:26px;height:26px}
.kg-h-prize{display:flex;flex-direction:column;min-width:0}
.kg-h-prize b{overflow:hidden;font-size:14.5px;line-height:20px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.kg-h-prize small{overflow:hidden;color:var(--t3);font-size:13px;line-height:18px;white-space:nowrap;text-overflow:ellipsis}
.kg-h-who{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;min-width:0;font-size:14px}
.kg-h-name{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}
.kg-h-name.is-me{color:var(--gold-hi)}
.kg-h-who small{color:var(--t3);font-size:13px}
.kg-h-cancel{color:var(--t3);font-size:13.5px}
.kg-h-n{color:var(--t3);font-size:13px;white-space:nowrap}
.kg-h-chev{display:grid;color:var(--t4)}
.kg-h-chev svg{width:16px;height:16px}
.kg-more{width:auto;margin:16px auto 0;display:flex}

/* ---------- modal ---------- */
.kg-modal-wrap{position:fixed;inset:0;z-index:1000}
body.kg-modal-open{overflow:hidden}
.kg-modal{position:absolute;inset:0;display:grid;place-items:center;padding:16px;background:var(--pd2-backdrop,rgba(5,6,8,.74));opacity:0;transition:opacity .18s}
.kg-modal-wrap.is-in .kg-modal{opacity:1}
.kg-modal-box{scrollbar-width:thin;scrollbar-color:#2c2d33 transparent}
.kg-modal-box::-webkit-scrollbar{width:8px}
.kg-modal-box::-webkit-scrollbar-thumb{border-radius:4px;background:#2c2d33}
.kg-modal-box{position:relative;width:min(100%,640px);max-height:calc(100dvh / var(--pd-zoom,1) - 32px);overflow:auto;overscroll-behavior:contain;padding:26px 26px 24px;border-radius:18px;
  background:var(--pd2-panel,#141519);box-shadow:var(--pd2-shadow-modal);transform:translateY(10px);transition:transform .24s var(--ease)}
.kg-modal-wrap.is-in .kg-modal-box{transform:none}
.kg-modal-box:focus{outline:none}
.kg-x{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--t3);cursor:pointer}
.kg-x:hover{color:var(--t1);background:rgba(255,255,255,.05)}
.kg-x svg{width:20px;height:20px}
.kg-m-title{padding-right:44px;font-size:22px;line-height:28px;font-weight:700;letter-spacing:-.02em}
.kg-m-sub{margin-top:4px;color:var(--t2);font-size:14.5px;line-height:21px}
.kg-m-sub .kg-coin{width:13px;height:13px}
.kg-m-load{height:160px;margin-top:16px;border-radius:12px;background:rgba(255,255,255,.03);animation:kg-pulse 1.4s ease-in-out infinite}
.kg-m-empty{margin-top:16px;color:var(--t2);font-size:15px}
.kg-m-ok{margin-top:20px}
.kg-h-list.is-modal{margin-top:16px}
.kg-h-list.is-modal .kg-h-row{grid-template-columns:56px minmax(0,1fr) minmax(0,.9fr) 18px}
.kg-h-list.is-modal .kg-h-n{display:none}
.kg-rules{display:flex;flex-direction:column;gap:18px;margin-top:18px}
.kg-rules h3{margin-bottom:6px;font-size:15.5px;line-height:22px;font-weight:650}
.kg-rules p{max-width:68ch;color:var(--t2);font-size:14.5px;line-height:22px}
.kg-rules p+p{margin-top:8px}
.kg-r-head{display:flex;align-items:center;gap:16px;padding-right:40px}
.kg-r-skin{--tone:var(--gold);display:grid;flex:none;place-items:center;width:96px;height:72px;border-radius:12px;background:radial-gradient(closest-side,color-mix(in srgb,var(--tone) 22%,transparent),transparent 80%)}
.kg-r-skin img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,0,0,.5))}
.kg-r-skin .kg-coin{width:36px;height:36px}
.kg-r-head .kg-m-title{padding-right:0}
.kg-r-winners{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.kg-r-winners li{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:12px;align-items:center}
.kg-r-winners .kg-face{grid-row:1 / span 2;width:36px;height:36px;font-size:14px}
.kg-r-winners b{font-size:16px;line-height:21px;font-weight:650}
.kg-r-winners b.is-me{color:var(--gold-hi)}
.kg-r-winners small{color:var(--t3);font-size:13px}
.kg-r-facts{margin-top:14px;color:var(--t2);font-size:14.5px;line-height:22px}
.kg-fair{margin-top:22px;padding:16px;border-radius:14px;background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1px var(--line)}
.kg-fair h3{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:15px;font-weight:650}
.kg-fair h3 svg{width:18px;height:18px;color:var(--gold)}
.kg-fair dl{display:grid;gap:4px;margin-top:8px}
.kg-fair-data{margin-top:12px}
.kg-fair-data summary{display:inline-flex;align-items:center;min-height:44px;color:var(--t2);font-size:13.5px;cursor:pointer}
.kg-fair-data summary:hover{color:var(--t1)}
.kg-fair dt{margin-top:6px;color:var(--t3);font-size:13px}
.kg-fair dd{color:var(--t2);font-size:13px;line-height:19px}
.kg-fair code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px;word-break:break-all;color:var(--t2)}
.kg-nums{max-height:72px;overflow:auto;font-family:var(--num);font-variant-numeric:tabular-nums}
.kg-verify{display:flex;align-items:flex-start;gap:8px;color:var(--t2);font-size:13.5px;line-height:19px}
.kg-verify svg{flex:none;width:18px;height:18px}
.kg-verify.is-ok{color:var(--ok)}
.kg-verify.is-bad{color:var(--pd2-danger,#ff6a5f)}

/* ---------- widths ---------- */
@container kg (min-width:641px){
  .kg-prize{min-height:44px}
  /* every card's stage starts at the same height, whether its subtitle takes one line or two */
  .kg-kind small{min-height:34px}
}
@container kg (max-width:1000px){
  .kg-in{padding:28px 28px 64px}
  .kg h1{font-size:44px}
}
@container kg (max-width:640px){
  .kg-in{padding:20px 16px 48px}
  .kg-head{grid-template-columns:1fr;margin-bottom:20px}
  .kg h1{font-size:34px;line-height:40px}
  .kg-head-tools{justify-content:space-between}
  .kg-tabs{flex:1}
  .kg-tabs button{flex:1;min-height:44px}
  .kg-rules-btn{min-height:52px}
  .kg-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .kg-stage{height:184px}
  .kg-dial{width:170px;height:170px;margin:-85px 0 0 -85px}
  .kg-skin{width:62%;max-width:200px}
  .kg-hist{margin-top:36px}
  .kg-h-row{grid-template-columns:52px minmax(0,1fr) 16px;grid-template-areas:"skin prize chev" "skin who chev";row-gap:2px;column-gap:12px;padding:10px 4px}
  .kg-h-skin{grid-area:skin;width:52px;height:40px}
  .kg-h-prize{grid-area:prize}
  .kg-h-who{grid-area:who;font-size:13px}
  .kg-h-n{display:none}
  .kg-h-chev{grid-area:chev}
  .kg-h-list.is-modal .kg-h-row{grid-template-columns:52px minmax(0,1fr) 16px}
  .kg-modal-box{padding:22px 18px 18px}
  .kg-r-skin{width:72px;height:54px}
}
@container kg (max-width:370px){
  .kg-cd{gap:6px}
  .kg-cd-c b{font-size:18px}
  .kg-when{padding:10px}
}
@media (max-width:640px){
  .kg-modal{align-items:end;padding:0}
  .kg-modal-box{width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-top));border-radius:18px 18px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}
@media (hover:none){
  .kg-h-row:hover,.kg-foot-btn:hover{background:none}
}
@media (prefers-reduced-motion:reduce){
  .kg-dial-arc,.kg-dial-knob,.kg-req-bar i,.kg-modal,.kg-modal-box{transition:none}
  .kg-card.is-drawing .kg-dial{animation:none}
  .kg:not(.is-ready) .kg-dial-knob{opacity:1}
  .kg:not(.is-ready) .kg-dial-arc{stroke-dashoffset:var(--off)}
  .kg-card.is-in .kg-joined i svg path,.kg-skel,.kg-m-load{animation:none}
}
