/* Free games: Solitaire, Chess, Checkers */
.mgs{background:#07070b}.mgs.on{display:flex;flex-direction:column}
.mgs>.e7-nb{margin:0;padding-left:var(--pad);padding-right:var(--pad);flex:none}
.mg-nbr{display:flex;justify-content:flex-end}
.mg-new{height:34px;padding:0 14px;border-radius:99px;background:rgba(255,255,255,.08);color:#fff;font:600 13.5px/1 -apple-system,system-ui}
.mg-btn{flex:1;height:44px;border-radius:13px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);color:#fff;font:600 14px/1 -apple-system,system-ui}
.mg-btn:disabled{opacity:.35}.mg-btn.hi{background:#fff;color:#0b0b10;border-color:#fff}.mg-btn[hidden]{display:none}
.mg-btn:active{transform:scale(.97)}

/* Earn MP card */
.mg-list{display:grid;gap:8px;margin-top:14px}
.mg-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);text-align:left;color:#fff}
.mg-row:active{background:rgba(255,255,255,.08)}
.mg-t{flex:1;min-width:0}.mg-t b{display:block;font-size:15px;font-weight:650}.mg-t small{display:block;margin-top:2px;font-size:12.5px;color:var(--m)}
.mg-left{flex:none;font-size:12px;font-weight:650;padding:5px 9px;border-radius:99px;background:rgba(74,222,128,.12);color:#4ade80}.mg-left.done{background:rgba(255,255,255,.06);color:var(--m)}
.mg-ic{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background-size:70%;background-position:center;background-repeat:no-repeat}
.mg-ic.big{width:64px;height:64px;border-radius:18px;margin:0 auto}
.mg-ic-solitaire{background-color:#14532d;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='6' y='8' width='18' height='25' rx='3' fill='%23fff' transform='rotate(-12 15 20)'/%3E%3Crect x='15' y='6' width='18' height='25' rx='3' fill='%23fff' stroke='%2314532d' stroke-width='1.5' transform='rotate(8 24 18)'/%3E%3Ctext x='24' y='24' font-family='system-ui' font-weight='800' font-size='12' fill='%23dc2626' text-anchor='middle' transform='rotate(8 24 18)'%3E%E2%99%A5%3C/text%3E%3C/svg%3E")}
.mg-ic-chess{background-color:#3f6212;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 88h46v-8c2-24-4-42-18-54l-2-12-8 9c-12 2-20 9-25 19l-7 13c-2 5 1 9 6 8l7-2 5-5c5 0 11-2 15-6-1 11-10 17-18 23-5 4-5 10-1 15z' fill='%23fff' stroke='%231d1d22' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='44' cy='33' r='3' fill='%231d1d22'/%3E%3C/svg%3E")}
.mg-ic-checkers{background-color:#7f1d1d;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='26' rx='13' ry='5' fill='%23450a0a'/%3E%3Cellipse cx='20' cy='22' rx='13' ry='5' fill='%23ef4444'/%3E%3Cellipse cx='20' cy='17' rx='13' ry='5' fill='%23991b1b'/%3E%3Cellipse cx='20' cy='13' rx='13' ry='5' fill='%23f87171'/%3E%3Cellipse cx='20' cy='13' rx='8' ry='2.8' fill='none' stroke='%23fecaca' stroke-width='1.2'/%3E%3C/svg%3E")}

/* setup (chess, checkers) */
.mg-setup{flex:1;overflow-y:auto;padding:6px var(--pad) calc(24px + var(--sab));max-width:520px;width:100%;margin:0 auto;box-sizing:border-box}
.mg-hero{text-align:center;padding:10px 0 22px}.mg-hero h2{margin:14px 0 6px;font-size:24px;letter-spacing:-.02em}.mg-hero p{margin:0 auto;max-width:320px;font-size:14px;line-height:1.45;color:var(--m)}
.mg-lab{margin:0 2px 8px;font-size:13px;font-weight:650;color:rgba(255,255,255,.7)}
.mg-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}
.mg-opts button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:14px;background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.08);color:#fff}
.mg-opts button b{font-size:15px;font-weight:650}.mg-opts button small{font-size:11.5px;color:var(--m)}
.mg-opts button.on{border-color:#fff;background:rgba(255,255,255,.09)}
.mg-rec{text-align:center}

/* end card */
.mg-end{position:absolute;inset:0;z-index:40;display:grid;place-items:center;padding:20px;background:rgba(5,5,9,.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:pgin .25s}
.mg-endc{width:100%;max-width:320px;padding:22px 18px 16px;border-radius:24px;background:#16161d;border:1px solid rgba(255,255,255,.1);text-align:center;box-shadow:0 30px 60px -20px #000}
.mg-endc>b{display:block;font-size:24px;font-weight:800;letter-spacing:-.02em}.mg-endc>span{display:block;margin-top:6px;font-size:14px;color:var(--m)}
.mg-pay{display:inline-flex;align-items:center;gap:8px;margin:16px 0 4px;padding:10px 16px;border-radius:14px;background:rgba(74,222,128,.12);color:#4ade80;font:800 22px/1 -apple-system,system-ui}
.mg-pay .mp-i{width:22px;height:22px}
.mg-cap{margin:14px 0 2px;font-size:13px;line-height:1.4;color:var(--m)}
.mg-endc .e7-btn{margin-top:14px}.mg-endc .e7-btn.alt{margin-top:8px;height:44px;font-size:14.5px}

/* ---------- Solitaire ---------- */
.sol-wrap{position:relative;flex:1;display:flex;flex-direction:column;min-height:0;padding:4px var(--pad) calc(10px + var(--sab));max-width:640px;width:100%;margin:0 auto;box-sizing:border-box}
.sol-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}
.sol-bar span{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 4px;border-radius:12px;background:rgba(255,255,255,.04)}
.sol-bar small{font-size:10.5px;font-weight:600;color:var(--m)}.sol-bar b{font:700 15px/1 -apple-system,system-ui;font-variant-numeric:tabular-nums}
.sol-board{position:relative;flex:1;min-height:340px;border-radius:18px;background:radial-gradient(120% 80% at 50% 0%,#17603b,#0c3b24 70%,#082a19);padding:0;touch-action:none;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.sol-board{--cw:48px;--ch:68px}
.sol-board>*{position:absolute;left:8px;top:8px}
.sol-board{padding:8px}
.sl-slot{width:var(--cw);height:var(--ch);border-radius:calc(var(--cw) * .12);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.18);display:grid;place-items:center}
.sl-slot span{font-size:calc(var(--cw) * .45);color:rgba(255,255,255,.18)}
.sl-stock{cursor:pointer}.sl-stock.recycle:after{content:"↻";font-size:calc(var(--cw) * .5);color:rgba(255,255,255,.4)}
.sl-tab{box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.1)}
.sc{width:var(--cw);height:var(--ch);border-radius:calc(var(--cw) * .12);box-sizing:border-box;transition:transform .22s cubic-bezier(.3,.8,.4,1);will-change:transform;cursor:pointer;user-select:none;-webkit-user-select:none}
.sc.drag{transition:none;filter:drop-shadow(0 12px 14px rgba(0,0,0,.45))}
.sc.down{background:#3b2f9a repeating-linear-gradient(45deg,rgba(255,255,255,.08) 0 3px,transparent 3px 7px);border:2.5px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.35)}
.sc.up{background:#fff;color:#16161d;box-shadow:0 1px 2px rgba(0,0,0,.35),inset 0 0 0 1px rgba(0,0,0,.08)}
.sc.red{color:#d42a2a}
.sc-c{position:absolute;left:calc(var(--cw) * .08);right:calc(var(--cw) * .06);top:calc(var(--cw) * .05);display:flex;align-items:center;justify-content:space-between;line-height:1}
.sc-c b{font:800 calc(var(--cw) * .34)/1 -apple-system,"SF Pro Rounded",system-ui;letter-spacing:-.05em}
.sc-c i{font-style:normal;font-size:calc(var(--cw) * .3)}
.sc-m{position:absolute;left:0;right:0;bottom:calc(var(--ch) * .1);text-align:center;font-size:calc(var(--cw) * .62);line-height:1}
.sc.nope{animation:mnshake .35s}
.sol-ctl{display:flex;gap:8px;margin-top:10px}

/* ---------- Chess + Checkers ---------- */
.cg-wrap{position:relative;flex:1;display:flex;flex-direction:column;min-height:0;overflow-y:auto;padding:4px var(--pad) calc(12px + var(--sab));max-width:560px;width:100%;margin:0 auto;box-sizing:border-box}
.cg-pl{display:flex;align-items:center;gap:10px;padding:8px 2px}
.cg-av{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;overflow:hidden;background:rgba(255,255,255,.08);font-weight:700}
.cg-av svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round}.cg-av img{width:100%;height:100%;object-fit:cover}
.cg-av.me{background:var(--acc,#8f82ec);border-radius:50%}
.cg-who{flex:1;min-width:0}.cg-who b{display:block;font-size:14.5px;font-weight:650}.cg-who small{display:block;font-size:12px;color:var(--m)}
.cg-cap{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:55%}.cg-cap .cp{width:17px;height:17px;margin-left:-5px}.cg-cap em{margin-left:6px;font-style:normal;font-size:12px;font-weight:700;color:var(--m)}
.ck-cnt{font-size:12.5px;font-weight:600;color:var(--m)}
.cg-board-w{position:relative}
.cg-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));aspect-ratio:1;border-radius:10px;overflow:hidden;box-shadow:0 14px 34px -18px #000}
.cq{position:relative;display:grid;place-items:center;padding:0;border:0;aspect-ratio:1;min-width:0;min-height:0;overflow:hidden;-webkit-tap-highlight-color:transparent}
.cq.l{background:#ebecd0}.cq.d{background:#779556}
.cq.last.l{background:#f5f682}.cq.last.d{background:#b9ca43}
.cq.sel{box-shadow:inset 0 0 0 4px rgba(255,255,255,.75)}
.cq.mv:after{content:"";width:30%;height:30%;border-radius:50%;background:rgba(0,0,0,.18)}
.cq.cap:after{content:"";position:absolute;inset:6%;border-radius:50%;box-shadow:inset 0 0 0 5px rgba(0,0,0,.2)}
.cq.chk{background:radial-gradient(circle,#ff4d4d 0,#e02424 40%,transparent 75%),#e9a5a5}
.cq i{position:absolute;font-style:normal;font-size:clamp(8px,2.2vw,11px);font-weight:700;line-height:1;pointer-events:none}
.cq .cr{left:3px;top:3px}.cq .cf{right:3px;bottom:2px}
.cq.l i{color:#779556}.cq.d i{color:#ebecd0}
.cp{width:88%;height:88%;pointer-events:none;filter:drop-shadow(0 2px 1.5px rgba(0,0,0,.35));position:relative}
.cp.cw{fill:#fafafa;stroke:#1d1d22;stroke-width:3;stroke-linejoin:round}.cp.cw .ln{fill:none;stroke:#1d1d22;stroke-width:2.5;stroke-linecap:round}.cp.cw .dot{fill:#1d1d22;stroke:none}
.cp.cb{fill:#2a2a31;stroke:#0a0a0c;stroke-width:3;stroke-linejoin:round}.cp.cb .ln{fill:none;stroke:#d6d6dc;stroke-width:2.5;stroke-linecap:round}.cp.cb .dot{fill:#d6d6dc;stroke:none}
.cg-status{min-height:22px;margin-top:8px;text-align:center;font-size:14px;color:rgba(255,255,255,.75)}.cg-status b{color:#fff}
.dots:after{content:"";animation:dots 1.2s steps(4) infinite}
@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}
.cg-moves{display:flex;gap:6px;overflow-x:auto;white-space:nowrap;margin-top:6px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.04);font:500 13px/1 ui-monospace,"SF Mono",Menlo,monospace;color:rgba(255,255,255,.75);min-height:14px;scrollbar-width:none}
.cg-moves:empty{display:none}
.cg-moves::-webkit-scrollbar{display:none}.cg-moves .n{color:var(--m)}.cg-moves .cur{color:#fff;font-weight:700}
.cg-promo{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:rgba(0,0,0,.45);border-radius:10px}
.cg-promo[hidden]{display:none}
.cg-promo>div{padding:14px;border-radius:18px;background:#16161d;text-align:center}.cg-promo b{display:block;margin-bottom:10px;font-size:14px}
.cg-promo span{display:flex;gap:6px}.cg-promo button{width:58px;height:58px;border-radius:12px;background:#ebecd0}.cg-promo .cp{width:90%;height:90%}
/* checkers */
.ck-board .cq.l{background:#e8d6b6}.ck-board .cq.d{background:#8a5a3c}
.ck-board .cq.last.d{background:#a9774c}
.ck-board .cq.must .ck-p{box-shadow:0 0 0 3px #fde047,0 3px 0 rgba(0,0,0,.35)}
.ck-board .cq.mv:after{background:rgba(255,255,255,.35)}
.ck-board .cq.sel{box-shadow:inset 0 0 0 4px #fde047}
.ck-p{width:76%;height:76%;border-radius:50%;display:grid;place-items:center;pointer-events:none;position:relative}
.ck-p.red{background:radial-gradient(circle at 50% 40%,#f87171,#dc2626 55%,#991b1b);box-shadow:0 3px 0 #5f0f0f,inset 0 0 0 3px rgba(255,255,255,.18),inset 0 0 0 7px rgba(0,0,0,.12)}
.ck-p.blk{background:radial-gradient(circle at 50% 40%,#4b4b55,#26262d 55%,#121216);box-shadow:0 3px 0 #000,inset 0 0 0 3px rgba(255,255,255,.12),inset 0 0 0 7px rgba(0,0,0,.25)}
.ck-p svg{width:56%;height:56%;fill:#fde047;stroke:#a16207;stroke-width:1;filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}
@media(min-width:1100px){.cg-wrap{max-width:620px}.sol-wrap{max-width:760px}}
.mg-btn,.mg-new{display:flex;align-items:center;justify-content:center}
