/* Compoundify Kids Games Hub + arcade frame */
.hb{width:min(1140px,calc(100% - 28px));margin:0 auto;padding-bottom:30px}
.hb h1{margin:6px 0 6px}
.hb-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:stretch;margin:14px 0 22px}
.hb-intro{background:linear-gradient(135deg,#e6f4fb,#fff8e6);border:1px solid var(--ln);border-radius:26px;padding:26px 28px;display:flex;flex-direction:column;justify-content:center}
.hb-intro .lead{margin:0 0 14px}
.hb-stats{display:flex;flex-wrap:wrap;gap:8px}.hb-stats span{background:#fff;border:2px solid var(--ln);border-radius:99px;padding:4px 14px;font-weight:800;font-size:14px;color:var(--gd)}
.hb-feat{position:relative;border-radius:26px;overflow:hidden;min-height:220px;display:flex;flex-direction:column;justify-content:flex-end;padding:22px;text-decoration:none;color:#fff;background:linear-gradient(135deg,#0a7a4b,#12a56a);box-shadow:0 14px 36px rgba(20,54,39,.18)}
.hb-feat .em{position:absolute;right:18px;top:6px;font-size:120px;line-height:1;opacity:.95;filter:drop-shadow(0 8px 10px rgba(0,0,0,.2))}
.hb-feat small{font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.9}.hb-feat b{font-size:30px;line-height:1.1;margin:4px 0 6px}.hb-feat span.d{max-width:80%;font-size:15px;opacity:.95}
.hb-feat .go{margin-top:12px;align-self:flex-start;background:#fff;color:#075b3d;font-weight:800;border-radius:99px;padding:8px 20px}
.hb-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0 14px;position:sticky;top:0;z-index:30;background:rgba(247,248,245,.94);backdrop-filter:blur(6px);padding:8px 0}
.hb-search{flex:1 1 220px;min-height:46px;border:2px solid var(--ln);border-radius:99px;padding:8px 18px;font:inherit;background:#fff}
.hb-chips{display:flex;flex-wrap:wrap;gap:6px}
.hb-chip{min-height:42px;border:2px solid var(--ln);background:#fff;border-radius:99px;padding:6px 16px;font:inherit;font-weight:800;color:var(--ink);cursor:pointer}
.hb-chip[aria-pressed=true]{background:var(--g);border-color:var(--g);color:#fff}
.hb h2.hb-h{font-size:22px;margin:22px 0 10px}
.hb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.hb-card{position:relative;display:flex;flex-direction:column;background:#fff;border:2px solid var(--ln);border-radius:22px;overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s,border-color .15s}
.hb-card:hover,.hb-card:focus-visible{transform:translateY(-4px);box-shadow:0 14px 30px rgba(20,54,39,.14);border-color:var(--g)}
.hb-th{height:128px;display:flex;align-items:center;justify-content:center;font-size:64px;position:relative}
.hb-th i{position:absolute;left:10px;top:10px;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(255,255,255,.88);color:#334;border-radius:99px;padding:2px 10px}
.hb-th span{filter:drop-shadow(0 6px 8px rgba(0,0,0,.18))}
.hb-bd{padding:12px 14px 14px}.hb-bd b{display:block;font-size:17px;line-height:1.2}.hb-bd small{display:block;color:var(--mu);font-size:13px;line-height:1.35;margin-top:3px}
.hb-bd .sc{display:block;margin-top:6px;font-weight:800;font-size:12px;color:var(--gd);min-height:16px}
.hb-fav{position:absolute;right:8px;top:8px;z-index:3;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.92);font-size:19px;cursor:pointer;line-height:1}
.hb-fav[aria-pressed=true]{background:#ffe3ea}
.hb-card.hide{display:none}
.hb-empty{padding:26px;text-align:center;color:var(--mu);font-weight:700}
.hb-row{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x proximity}.hb-row .hb-card{flex:0 0 210px;scroll-snap-align:start}
.hb-note{font-size:13px;color:var(--mu);margin-top:26px}
.hb-seo h2{font-size:22px;margin:26px 0 6px}.hb-seo p{font-size:16px}
/* single game page */
.gp-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 6px}
.gp-top h1{margin:0;font-size:clamp(26px,4.5vw,38px)}
.gp-tags{display:flex;gap:6px;flex-wrap:wrap}.gp-tags span{background:var(--gs);color:var(--gd);font-weight:800;font-size:12px;border-radius:99px;padding:3px 12px}
.gp-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.gp-side .panel{padding:16px 18px;margin-bottom:14px}.gp-side h2{font-size:17px;margin:0 0 6px}.gp-side p,.gp-side li{font-size:14.5px;line-height:1.5}.gp-side ul{margin:6px 0 0;padding-left:18px}
.gp-more{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.gp-more .hb-th{height:92px;font-size:44px}.gp-more .hb-bd small{display:none}
.gp-learn{background:var(--kcream,#fff8e6);border:2px dashed #f0d58a;border-radius:16px;padding:12px 16px;margin:14px 0;font-size:15px}
/* arcade frame */
.ar{margin:0}.ar-frame{border:2px solid var(--ln);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 14px 36px rgba(20,54,39,.1);user-select:none;-webkit-user-select:none}
.ar-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--gs);font-size:14px}
.ar-bar b{font-size:16px}.ar-sp{flex:1}.ar-score{font-weight:800;color:var(--gd);font-size:18px;min-width:30px;text-align:right}.ar-best{color:var(--mu);font-size:13px}
.ar-ic{width:38px;height:38px;border-radius:12px;border:2px solid var(--ln);background:#fff;font-size:17px;cursor:pointer;line-height:1;padding:0}.ar-ic:hover{border-color:var(--g)}
.ar-stage{position:relative;background:linear-gradient(#e9f5fb,#f4faf4);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;outline:none;padding:10px}
.ar-cv{display:block;width:100%;height:auto;touch-action:none;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.08)}
.ar-ov{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:20px;background:rgba(255,255,255,.95)}
.ar-ov[hidden]{display:none}.ar-ov h3{margin:0;font-size:30px;color:var(--gd)}.ar-ov p{margin:0;max-width:460px;font-size:16px}.ar-go{font-size:20px;padding:12px 34px}
.ar-pad{display:flex;justify-content:center;gap:10px;padding:10px;background:#f4faf4;flex-wrap:wrap}.ar-pb{width:64px;height:54px;border-radius:16px;border:2px solid var(--g);background:#fff;color:var(--gd);font-size:22px;font-weight:800;cursor:pointer;touch-action:manipulation}.ar-pb:active{background:var(--gs)}
@media(hover:hover) and (pointer:fine){.ar-pad{display:none}}
.ar-fs,.ar-fake{background:#fff}.ar-fake{position:fixed;inset:0;z-index:3000;border-radius:0;overflow:auto}
.ar-fs .ar-stage,.ar-fake .ar-stage{min-height:calc(100vh - 120px)}.ar-fs .ar-cv,.ar-fake .ar-cv{max-height:calc(100vh - 150px);width:auto;margin:auto}
.ar-dom{width:100%;max-width:440px}
/* coin merge */
.cm-grid{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#b9a57a;padding:8px;border-radius:16px;aspect-ratio:1}.cm-bg{background:#d4c397;border-radius:10px}
.cm-tiles{position:absolute;inset:8px}.cm{position:relative}
.cm-t{position:absolute;width:calc(25% - 6px);height:calc(25% - 6px);margin:3px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:inset 0 -4px 0 rgba(0,0,0,.15),0 3px 6px rgba(0,0,0,.2);border:3px solid rgba(255,255,255,.45)}
.cm-t.new{animation:cmpop .18s ease-out}@keyframes cmpop{from{transform:scale(.3)}to{transform:scale(1)}}
/* match */
.mt-info{text-align:center;font-weight:800;color:var(--gd);margin-bottom:8px}.mt-grid{display:grid;grid-template-columns:repeat(var(--cols,4),1fr);gap:10px}
.mt-card{position:relative;aspect-ratio:1;border:0;border-radius:16px;background:linear-gradient(135deg,#12a56a,#0a7a4b);cursor:pointer;perspective:600px;padding:0;font:inherit;box-shadow:0 4px 0 #075b3d}
.mt-b,.mt-f{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:16px;backface-visibility:hidden;transition:transform .35s}
.mt-b{color:#fff;font-size:36px;font-weight:900}.mt-f{background:#fff;transform:rotateY(180deg);border:3px solid var(--ln);color:var(--ink);gap:2px}.mt-f b{font-size:28px}.mt-f small{font-size:11px;color:var(--mu);font-weight:700}
.mt-card.on .mt-b{transform:rotateY(180deg)}.mt-card.on .mt-f{transform:rotateY(0)}.mt-card.ok{box-shadow:none}.mt-card.ok .mt-f{border-color:#12a56a;background:#e9f9ef}
/* sweeper */
.sw-info{text-align:center;font-weight:800;color:var(--gd);margin-bottom:8px}.sw-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:3px;background:#c7d6cd;padding:3px;border-radius:12px}
.sw-c{aspect-ratio:1;border:0;border-radius:7px;background:#12a56a;font:800 clamp(14px,3.6vw,20px) system-ui;cursor:pointer;padding:0;color:#fff;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.sw-c.o{background:#f6efd9;box-shadow:none;cursor:default}.sw-c.boom{background:#ffb4b4}
.sw-c[data-n="1"]{color:#2b6fd1}.sw-c[data-n="2"]{color:#1f9a4f}.sw-c[data-n="3"]{color:#d33}.sw-c[data-n="4"]{color:#6a3fb5}.sw-c[data-n="5"]{color:#a33}.sw-c[data-n="6"]{color:#0aa}
.sw-mode{margin:10px auto 0;display:flex}
/* idle */
.id-top{text-align:center;margin-bottom:8px}.id-top b{display:block;font-size:30px;color:var(--gd)}.id-top span{color:var(--mu);font-weight:700;font-size:14px}
.id-tree{display:block;margin:0 auto 10px;width:150px;height:150px;border-radius:50%;border:0;background:radial-gradient(#d6f1da,#a9dcae);font-size:84px;cursor:pointer;position:relative;line-height:1;box-shadow:0 8px 0 #7fc587;transition:transform .08s}.id-tree:active{transform:scale(.94)}.id-tree small{position:absolute;bottom:6px;left:0;right:0;font:800 13px system-ui;color:#075b3d}
.id-pop{position:absolute;left:50%;top:10px;font:900 24px system-ui;color:#c0392b;animation:idpop .6s ease-out forwards;font-style:normal;pointer-events:none}@keyframes idpop{to{transform:translateY(-70px);opacity:0}}
.id-shop{display:grid;gap:8px}.id-it{display:flex;align-items:center;gap:12px;text-align:left;border:2px solid var(--ln);background:#fff;border-radius:16px;padding:8px 12px;font:inherit;cursor:pointer}.id-it:disabled{opacity:.55;cursor:not-allowed}.id-it:not(:disabled){border-color:#12a56a;background:#f1fbf4}
.id-it .e{font-size:30px}.id-it small{display:block;color:var(--mu);font-size:12px;font-weight:600}.id-it em{margin-left:auto;font-style:normal;font-weight:800;color:var(--gd);white-space:nowrap}.id-reset{margin-top:12px}
/* change maker */
.cmk-top{display:flex;justify-content:space-between;gap:10px;font-weight:700;margin-bottom:8px;flex-wrap:wrap}.cmk-t b{font-size:26px;color:var(--gd)}
.cmk-tray{min-height:86px;background:#fff;border:3px dashed #c9dccf;border-radius:16px;padding:8px;display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}
.cmk-ch{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:800 12px system-ui;font-style:normal;background:#c98a52;color:#4a2f00;border:3px solid #8f5f2e}.cmk-ch.c100,.cmk-ch.c200{background:#f1cf55;border-color:#b8941f}.cmk-ch.c5,.cmk-ch.c10,.cmk-ch.c25{background:#d9dde0;border-color:#9aa3aa;color:#333}
.cmk-coins{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:12px 0}.cmk-c{width:74px;height:74px;border-radius:50%;border:4px solid #8f5f2e;background:#c98a52;color:#4a2f00;font:900 20px system-ui;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;line-height:1.05}.cmk-c small{font-size:10px;font-weight:700}
.cmk-c.c5,.cmk-c.c10,.cmk-c.c25{background:#e3e6e8;border-color:#9aa3aa;color:#333}.cmk-c.c100,.cmk-c.c200{background:#f6d85e;border-color:#b8941f;color:#5a4300}.cmk-c:active{transform:scale(.93)}
.cmk-msg,.ttt-msg{text-align:center;font-weight:700;color:var(--gd);min-height:24px;margin:6px 0}
.cmk{text-align:center}
/* tic tac toe */
.ttt-lv{display:flex;gap:6px;justify-content:center;margin-bottom:10px}.ttt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:340px;margin:auto}.ttt-c{aspect-ratio:1;border:0;border-radius:18px;background:#fff;box-shadow:0 4px 0 #cfe0d5;font-size:clamp(40px,12vw,64px);cursor:pointer}
/* sudoku */
.sd-info{text-align:center;font-weight:800;color:var(--gd);margin-bottom:8px}.sd-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;max-width:320px;margin:auto;border:3px solid #075b3d;border-radius:12px;overflow:hidden}
.sd-c{aspect-ratio:1;border:1px solid #cfe0d5;background:#fff;font:800 clamp(24px,8vw,38px) system-ui;color:#2b6fd1;cursor:pointer;padding:0}.sd-c.fix{background:#eef6f0;color:var(--ink)}.sd-c.sel{background:#fff3c4}.sd-c.bad{color:#d33;background:#ffe9e9}
.sd-c:nth-child(4n+2){border-right:3px solid #075b3d}.sd-c:nth-child(n+9):nth-child(-n+12){border-top:3px solid #075b3d}
.sd-pad{display:flex;gap:8px;justify-content:center;margin-top:12px}.sd-n{width:56px;height:56px;border-radius:14px;border:2px solid var(--g);background:#fff;color:var(--gd);font:800 24px system-ui;cursor:pointer}
@media(max-width:820px){.hb-hero{grid-template-columns:1fr}.gp-main{grid-template-columns:1fr}.hb-feat .em{font-size:90px}}
@media(prefers-reduced-motion:reduce){.hb-card,.mt-b,.mt-f,.cm-t{transition:none;animation:none}}
.hb-cardw{display:flex;flex-direction:column}.hb-cardw .hb-card{flex:1}.hb-cardw.hide{display:none}.hb-row .hb-cardw{flex:0 0 210px;scroll-snap-align:start}

/* v62: game title bar wraps on narrow phones instead of widening the page */
.ar-bar{flex-wrap:wrap;row-gap:4px}
.ar-bar b{min-width:0}
/*cf-dark*/@media screen{html[data-theme=dark] .hb-intro{background:linear-gradient(135deg,#111a16,#111a16);border:1px solid #2b3b31}html[data-theme=dark] .hb-stats span{background:#17211d;border:2px solid #2b3b31;color:#67e9bb}html[data-theme=dark] .hb-feat{color:#fff}html[data-theme=dark] .hb-feat .go{background:#17211d;color:#67e9bb}html[data-theme=dark] .hb-tools{background:rgba(17,26,22,0.94)}html[data-theme=dark] .hb-search{border:2px solid #2b3b31;background:#17211d}html[data-theme=dark] .hb-chip{border:2px solid #2b3b31;background:#17211d;color:#d4e5e3}html[data-theme=dark] .hb-chip[aria-pressed=true]{background:#08784e;border-color:#08784e;color:#fff}html[data-theme=dark] .hb-card{background:#17211d;border:2px solid #2b3b31;color:#d4e5e3}html[data-theme=dark] .hb-card:hover,html[data-theme=dark] .hb-card:focus-visible{border-color:#08784e}html[data-theme=dark] .hb-th i{background:rgba(23,33,29,0.88);color:#bfbfcf}html[data-theme=dark] .hb-bd small{color:#aabfba}html[data-theme=dark] .hb-bd .sc{color:#67e9bb}html[data-theme=dark] .hb-fav{background:rgba(23,33,29,0.92)}html[data-theme=dark] .hb-fav[aria-pressed=true]{background:#111a16}html[data-theme=dark] .hb-empty{color:#aabfba}html[data-theme=dark] .hb-note{color:#aabfba}html[data-theme=dark] .gp-tags span{background:#1c2a21;color:#67e9bb}html[data-theme=dark] .gp-learn{background:#111a16;border:2px dashed #3b3423}html[data-theme=dark] .ar-frame{border:2px solid #2b3b31;background:#17211d}html[data-theme=dark] .ar-bar{background:#1c2a21}html[data-theme=dark] .ar-score{color:#67e9bb}html[data-theme=dark] .ar-best{color:#aabfba}html[data-theme=dark] .ar-ic{border:2px solid #2b3b31;background:#17211d}html[data-theme=dark] .ar-ic:hover{border-color:#08784e}html[data-theme=dark] .ar-stage{background:linear-gradient(#111a16,#111a16)}html[data-theme=dark] .ar-cv{background:#17211d}html[data-theme=dark] .ar-ov{background:rgba(23,33,29,0.95)}html[data-theme=dark] .ar-ov h3{color:#67e9bb}html[data-theme=dark] .ar-pad{background:#111a16}html[data-theme=dark] .ar-pb{border:2px solid #08784e;background:#17211d;color:#67e9bb}html[data-theme=dark] .ar-pb:active{background:#1c2a21}html[data-theme=dark] .ar-fs,html[data-theme=dark] .ar-fake{background:#17211d}html[data-theme=dark] .cm-bg{background:#272215}html[data-theme=dark] .cm-t{border:3px solid rgba(54,54,54,0.45)}html[data-theme=dark] .mt-info{color:#67e9bb}html[data-theme=dark] .mt-b{color:#fff}html[data-theme=dark] .mt-f{background:#17211d;border:3px solid #2b3b31;color:#d4e5e3}html[data-theme=dark] .mt-f small{color:#aabfba}html[data-theme=dark] .mt-card.ok .mt-f{background:#111a16}html[data-theme=dark] .sw-info{color:#67e9bb}html[data-theme=dark] .sw-grid{background:#1b251f}html[data-theme=dark] .sw-c{color:#fff}html[data-theme=dark] .sw-c.o{background:#2c2819}html[data-theme=dark] .sw-c.boom{background:#2b1717}html[data-theme=dark] .sw-c[data-n="1"]{color:#6798e0}html[data-theme=dark] .sw-c[data-n="2"]{color:#6fe29c}html[data-theme=dark] .sw-c[data-n="3"]{color:#e56262}html[data-theme=dark] .sw-c[data-n="4"]{color:#9777d0}html[data-theme=dark] .sw-c[data-n="5"]{color:#d57272}html[data-theme=dark] .sw-c[data-n="6"]{color:#67e9e9}html[data-theme=dark] .id-top b{color:#67e9bb}html[data-theme=dark] .id-top span{color:#aabfba}html[data-theme=dark] .id-tree{background:radial-gradient(#182c1b,#162817)}html[data-theme=dark] .id-tree small{color:#67e9bb}html[data-theme=dark] .id-pop{color:#dd7469}html[data-theme=dark] .id-it{border:2px solid #2b3b31;background:#17211d}html[data-theme=dark] .id-it:not(:disabled){background:#111a16}html[data-theme=dark] .id-it small{color:#aabfba}html[data-theme=dark] .id-it em{color:#67e9bb}html[data-theme=dark] .cmk-t b{color:#67e9bb}html[data-theme=dark] .cmk-tray{background:#17211d;border:3px dashed #273c2d}html[data-theme=dark] .cmk-ch{color:#4a2f00}html[data-theme=dark] .cmk-ch.c5,html[data-theme=dark] .cmk-ch.c10,html[data-theme=dark] .cmk-ch.c25{background:#1e2225;color:#cecece}html[data-theme=dark] .cmk-c{color:#4a2f00}html[data-theme=dark] .cmk-c.c5,html[data-theme=dark] .cmk-c.c10,html[data-theme=dark] .cmk-c.c25{background:#1f2326;color:#cecece}html[data-theme=dark] .cmk-c.c100,html[data-theme=dark] .cmk-c.c200{color:#5a4300}html[data-theme=dark] .cmk-msg,html[data-theme=dark] .ttt-msg{color:#67e9bb}html[data-theme=dark] .ttt-c{background:#17211d}html[data-theme=dark] .sd-info{color:#67e9bb}html[data-theme=dark] .sd-c{border:1px solid #273c2e;background:#17211d;color:#6798e0}html[data-theme=dark] .sd-c.fix{background:#111a16;color:#d4e5e3}html[data-theme=dark] .sd-c.sel{background:#2c2818}html[data-theme=dark] .sd-c.bad{color:#e56262;background:#111a16}html[data-theme=dark] .sd-n{border:2px solid #08784e;background:#17211d;color:#67e9bb}}/*cf-dark-end*/
