/* Game "Chọn nghề" (v174). Phố tràn khung (JS: layoutStreet); phòng + hoàn thành trên sân khấu 1280x800 (dọc: 880 rộng) co vừa khung (fit()).
   Mọi class đều có tiền tố cg- để không đụng các game khác. */
.cg-root{position:relative;width:100%;height:100%;overflow:hidden;font-family:'Baloo 2',system-ui,sans-serif;background:#86d0ff;color:#26324a;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.cg-root *,.cg-root *::before,.cg-root *::after{box-sizing:border-box}
.cg-root button{font-family:inherit;color:inherit}
.cg-stage{position:absolute;left:0;top:0;width:1280px;height:800px;transform-origin:0 0;overflow:hidden}
.cg-stage[hidden]{display:none}
/* nền hai bên sân khấu (khi khung không cùng tỉ lệ): cùng tông màu với màn đang chơi */
.cg-root[data-scr="2"]{background:radial-gradient(circle at 24px 24px,rgba(255,255,255,.7) 4px,transparent 5px) 0 0/48px 48px,#fff1cc}
.cg-root[data-scr="3"]{background:linear-gradient(#fff1cc,#ffe3ea)}
.cg-screen{position:absolute;inset:0}
.cg-screen[hidden]{display:none}
.cg-pill{background:#fff;border-radius:999px;box-shadow:0 6px 0 rgba(27,42,65,.15)}
.cg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:56px;padding:0 22px;border:0;border-radius:999px;background:#fff;box-shadow:0 6px 0 rgba(27,42,65,.15);font-size:24px;font-weight:700;cursor:pointer;text-decoration:none;color:#26324a}
.cg-btn:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(27,42,65,.15)}
.cg-btn:focus-visible,.cg-obj:focus-visible,.cg-sign:focus-visible{outline:4px solid #1b2a41;outline-offset:2px}
.cg-btn svg{width:26px;height:26px;flex:0 0 auto}
.cg-btn.round{width:56px;padding:0}
.cg-btn[hidden]{display:none}
.cg-btn.go{background:#2bbf7e;color:#fff;box-shadow:0 6px 0 #1f8f5e;font-weight:800}
.cg-btn[disabled]{opacity:.45;cursor:default;box-shadow:0 6px 0 rgba(27,42,65,.1)}

/* ---------- Màn 1: đường phố (ngày / đêm) ---------- */
.cg-street{position:absolute;inset:0;overflow:hidden;background:#86d0ff;touch-action:none}
.cg-street[hidden]{display:none}
.cg-view{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden}
.cg-hud{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none}
.cg-hud>*{pointer-events:auto}
.cg-sky{position:absolute;inset:0;transition:opacity .9s ease}
.cg-sky-d{background:linear-gradient(#52b4f4 0%,#9fd9ff 34%,#dff3ff 52%,#f6fbff 58%)}
.cg-sky-n{opacity:0;background:linear-gradient(#050b2b 0%,#101d52 34%,#2c3b86 50%,#5d63a8 58%)}
.cg-night .cg-sky-n{opacity:1}
.cg-night .cg-sky-d{opacity:0}
.cg-sun{position:absolute;left:calc(50% + 200px);top:50px;width:190px;height:190px}
.cg-sun svg,.cg-moon svg{width:100%;height:100%;display:block}
.cg-moon{position:absolute;left:calc(50% - 450px);top:70px;width:140px;height:140px}
.cg-cloud{position:absolute;background:#fff;border-radius:40px;opacity:.92;animation:cg-drift 40s ease-in-out infinite alternate}
@keyframes cg-drift{to{transform:translateX(60px)}}
.cg-star{position:absolute;border-radius:50%;background:#fff;opacity:.9;animation:cg-tw 3.2s ease-in-out infinite}
@keyframes cg-tw{50%{opacity:.25;transform:scale(.6)}}
.cg-persp{position:absolute;left:0;top:0;width:1280px;height:800px;perspective:700px;perspective-origin:640px 360px}
.cg-world{position:absolute;left:640px;top:360px;width:0;height:0;transform-style:preserve-3d;transform:scale3d(var(--sq,1),1,1)}
.cg-far{position:absolute;left:-3000px;top:-750px;width:6000px;height:900px;transform:translate3d(0,0,-2000px) scaleX(var(--isq,1));pointer-events:none}
.cg-far svg,.cg-facade svg{display:block;width:100%;height:100%}
.cg-move{position:absolute;left:0;top:0;width:0;height:0;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.4,0,.2,1)}
.cg-look{position:absolute;left:0;top:0;width:0;height:0;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.4,0,.2,1)}
.cg-road{position:absolute;left:-1500px;top:-2000px;width:3000px;height:4000px;transform:translate3d(0,150px,-900px) rotateX(90deg);background:#5a636e;transition:background .9s ease}
.cg-road i{position:absolute;display:block}
.cg-walkway{background:repeating-linear-gradient(0deg,rgba(0,0,0,.09) 0 3px,transparent 3px 70px),repeating-linear-gradient(90deg,rgba(0,0,0,.09) 0 3px,transparent 3px 70px),#eadfc4;transition:filter .9s ease}
.cg-curb{background:linear-gradient(90deg,#d8d2c4,#b8b2a3);transition:filter .9s ease}
.cg-edge{background:#fff;opacity:.85}
.cg-pool{background:radial-gradient(closest-side,rgba(255,214,120,.6),rgba(255,214,120,0));border-radius:50%;opacity:0;transition:opacity .9s ease}
.cg-facade{position:absolute;left:-120px;width:240px;overflow:hidden;pointer-events:none}
.cg-prop{position:absolute;pointer-events:none}
.cg-prop svg{display:block;width:100%;height:100%;overflow:visible}
/* chế độ đêm: thân nhà/cây tối đi, cửa sổ + đèn sáng lên */
.cg-street .bld{transition:filter .9s ease}
.cg-street .lit,.cg-street .glow{opacity:0;transition:opacity .9s ease}
.cg-tree{transition:filter .9s ease}
.cg-night .bld{filter:brightness(.4) saturate(.8)}
.cg-night .cg-tree{filter:brightness(.5) saturate(.8)}
.cg-night .cg-walkway,.cg-night .cg-curb{filter:brightness(.45)}
.cg-night .cg-road{background:#2a2f38}
.cg-night .lit,.cg-night .glow,.cg-night .cg-pool{opacity:1}
.cg-sign{position:absolute;left:-75px;top:-100px;width:150px;height:200px;display:block;padding:0;border:0;background:none;cursor:pointer;transition:transform .8s cubic-bezier(.4,0,.2,1),opacity .5s ease}
.cg-sign.off{opacity:0;pointer-events:none}
.cg-walk{position:absolute;left:50%;bottom:128px;width:820px;margin-left:-410px;display:flex;justify-content:center;gap:14px}
.cg-btn.turn{background:#fff4c9;box-shadow:0 6px 0 #e0b62e}
.cg-tip{position:absolute;left:50%;bottom:92px;width:600px;margin-left:-300px;text-align:center;font-size:19px;font-weight:700;color:#fff;text-shadow:0 2px 0 rgba(27,42,65,.45),0 0 8px rgba(27,42,65,.35);pointer-events:none}
.cg-walk .cg-btn{height:64px;font-size:26px}
.cg-card{position:relative;width:150px;height:200px;border:8px solid;border-radius:28px;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:4px 0 10px;transition:transform .18s ease,box-shadow .18s ease}
.cg-night .cg-card{box-shadow:0 0 22px rgba(255,226,140,.55),0 8px 18px rgba(0,0,0,.35)}
.cg-sign:hover .cg-card,.cg-sign:focus-visible .cg-card{transform:scale(1.12);box-shadow:0 0 0 6px rgba(255,255,255,.85),0 14px 30px rgba(0,0,0,.28)}
.cg-letter{font-size:88px;font-weight:800;line-height:84px}
.cg-ic{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.cg-ic svg{width:34px;height:34px}
.cg-nm{font-size:20px;font-weight:700;line-height:22px;text-align:center;padding:0 2px;max-width:100%}
.cg-tick{position:absolute;right:-16px;top:-16px;width:42px;height:42px;border-radius:50%;background:#2bbf7e;border:4px solid #fff;display:flex;align-items:center;justify-content:center}
.cg-tick svg{width:22px;height:22px}
.cg-hud-top{position:absolute;left:50%;top:20px;width:500px;margin-left:-250px;height:70px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:30px;font-weight:800}
.cg-hud-top svg{width:34px;height:34px}
.cg-hud-l{position:absolute;left:24px;top:24px;height:56px;padding:0 20px;display:flex;align-items:center;font-size:22px;font-weight:700}
.cg-hud-r{position:absolute;right:24px;top:24px;display:flex;gap:12px}
.cg-dots{position:absolute;left:50%;bottom:20px;width:660px;margin-left:-330px;height:64px;display:flex;align-items:center;justify-content:center;gap:10px;background:rgba(255,255,255,.92)}
.cg-dot{width:44px;height:44px;border-radius:50%;border:3px dashed #9aa8b8;display:flex;align-items:center;justify-content:center;color:#5b6b7a;font-size:24px;font-weight:800}
.cg-dot.on{border-style:solid;color:#fff}

/* ---------- Màn 2: trong cửa hàng (hỏi - đáp) ---------- */
.cg-room-screen{background:transparent}
.cg-topbar{position:absolute;left:0;top:0;width:100%;height:112px}
.cg-title{position:absolute;left:50%;top:22px;width:480px;margin-left:-240px;height:72px;display:flex;align-items:center;justify-content:center;gap:14px;color:#fff;font-size:34px;font-weight:800;white-space:nowrap}
.cg-title b{width:50px;height:50px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:36px}
.cg-count{position:absolute;right:40px;top:28px;height:60px;padding:0 24px;display:flex;align-items:center;gap:10px;font-size:28px;font-weight:800}
.cg-count svg{width:30px;height:30px}
.cg-back{position:absolute;left:40px;top:28px}
.cg-roombox{position:absolute;left:40px;top:112px;width:840px;height:560px;border-radius:28px;overflow:hidden;box-shadow:0 0 0 8px #fff,0 10px 0 8px rgba(27,42,65,.15)}
.cg-roombox>svg{position:absolute;left:0;top:0;width:840px;height:560px}
.cg-obj{position:absolute;padding:0;border-radius:16px;border:3px dashed transparent;background:transparent;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.cg-obj:hover{background:rgba(255,255,255,.3);border-color:#fff}
.cg-obj.found{border:4px solid #2bbf7e;background:rgba(43,191,126,.14);cursor:default}
.cg-obj.hint{animation:cg-hint .7s ease-in-out 4}
.cg-obj.wrong{animation:cg-shake .35s}
.cg-locked .cg-obj{pointer-events:none}
.cg-obj .cg-tick{right:-12px;top:-12px;width:30px;height:30px;border-width:3px}
.cg-obj .cg-tick svg{width:16px;height:16px}
@keyframes cg-hint{0%,100%{background:rgba(255,255,255,0);box-shadow:0 0 0 0 rgba(245,184,0,0)}50%{background:rgba(255,235,150,.55);box-shadow:0 0 0 8px rgba(245,184,0,.7)}}
@keyframes cg-shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.cg-side{position:absolute;left:920px;top:112px;width:320px;height:560px;border-radius:28px;background:#fff;box-shadow:0 10px 0 rgba(27,42,65,.15);padding:18px 20px;display:flex;flex-direction:column;align-items:center;gap:12px}
.cg-side h2{margin:0;font-size:26px;font-weight:800;line-height:28px;text-align:center}
.cg-puzzle{position:relative;width:216px;height:324px;border-radius:16px;overflow:hidden;background:#eaf6ff;flex:0 0 auto}
.cg-puzzle svg{position:absolute;left:0;top:0;width:216px;height:324px}
.cg-tiles{position:absolute;left:0;top:0;width:216px;height:324px;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(5,1fr)}
.cg-tiles i{border:2px dashed #8fb0dd;background:#cfe3f5;color:#6f8fb5;font-style:normal;font-size:26px;font-weight:800;display:flex;align-items:center;justify-content:center;transition:opacity .5s ease}
.cg-tiles i.open{opacity:0;border-color:transparent}
.cg-steps{display:flex;gap:6px}
.cg-steps i{width:20px;height:20px;border-radius:50%;border:3px dashed #aebbcb;transition:background .3s}
.cg-steps i.on{border:3px solid #fff;box-shadow:0 0 0 2px #cfd8e4}
.cg-side-btns{display:flex;gap:10px}
.cg-ask{position:absolute;left:40px;top:700px;width:1200px;height:84px;display:flex;align-items:center;gap:18px;padding:0 20px}
.cg-ask-q{flex:0 0 auto;width:56px;height:56px;border-radius:50%;background:#f5b800;color:#fff;font-size:40px;font-weight:800;line-height:56px;text-align:center;box-shadow:0 4px 0 #c98f00}
.cg-ask-t{flex:1;min-width:0}
.cg-ask-t small{display:block;font-size:19px;font-weight:600;line-height:20px;color:#6b7a8c}
.cg-ask-t b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:40px;font-weight:800;line-height:44px;color:#d0345f}
.cg-ask-t b.pop{animation:cg-qin .4s ease-out}
@keyframes cg-qin{from{transform:translateY(8px);opacity:0}}
/* popup đúng / sai */
.cg-pop{position:absolute;inset:0;z-index:30;background:rgba(20,30,50,.55);display:flex;align-items:center;justify-content:center}
.cg-pop[hidden]{display:none}
.cg-pop-card{position:relative;width:540px;background:#fff;border-radius:36px;padding:62px 32px 28px;text-align:center;border-top:16px solid #2bbf7e;box-shadow:0 18px 0 rgba(0,0,0,.18);animation:cg-pop-in .45s cubic-bezier(.2,1.5,.4,1)}
.cg-pop-card.no{border-top-color:#f28c28}
@keyframes cg-pop-in{from{transform:scale(.55);opacity:0}}
.cg-pop-ic{position:absolute;left:50%;top:-58px;width:92px;height:92px;margin-left:-46px;border-radius:50%;background:#2bbf7e;border:6px solid #fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 0 rgba(0,0,0,.15)}
.cg-pop-card.no .cg-pop-ic{background:#f28c28}
.cg-pop-ic svg{width:48px;height:48px}
.cg-pop-card h3{margin:0 0 8px;font-size:46px;font-weight:800;line-height:48px;color:#1f9a63}
.cg-pop-card.no h3{color:#d96f0a}
.cg-pop-pic{width:300px;height:190px;margin:0 auto 10px;border-radius:24px;background:#f1f6fb;display:flex;align-items:center;justify-content:center;padding:8px}
.cg-pop-pic svg{width:100%;height:100%;display:block;overflow:visible}
.cg-pop-name{font-size:32px;font-weight:800;line-height:36px}
.cg-pop-card p{margin:4px 0 0;font-size:24px;font-weight:500;line-height:28px;color:#3a4660}
.cg-pop-card .cg-pop-try{font-weight:800;color:#d96f0a}
.cg-pop-card .cg-btn{margin-top:18px;height:64px;font-size:28px;padding:0 36px}
.cg-spark{position:absolute;top:6px;width:12px;height:12px;border-radius:3px;animation:cg-spark 1.1s ease-out both}
@keyframes cg-spark{0%{transform:translateY(0) scale(1)}100%{transform:translateY(-70px) rotate(200deg) scale(0)}}

/* ---------- Màn 3: hoàn thành ---------- */
.cg-done{background:transparent}
.cg-conf{position:absolute;border-radius:4px;animation:cg-fall 4s linear infinite}
@keyframes cg-fall{0%{transform:translateY(-40px) rotate(0)}100%{transform:translateY(820px) rotate(360deg)}}
.cg-hero{position:absolute;left:110px;top:50px;width:380px;height:560px;border-radius:32px;background:#fff;box-shadow:0 10px 0 rgba(27,42,65,.15);display:flex;align-items:center;justify-content:center}
.cg-hero-in{position:relative;width:340px;height:510px;border-radius:20px;background:linear-gradient(#cfeeff,#f4fbff 62%,#bfe6a8 62%,#9bd37e);overflow:hidden}
.cg-rays{position:absolute;left:-60px;top:-30px;width:460px;height:460px;border-radius:50%;background:repeating-conic-gradient(rgba(255,255,255,.5) 0 10deg,transparent 10deg 20deg);animation:cg-spin 40s linear infinite}
@keyframes cg-spin{to{transform:rotate(360deg)}}
.cg-hero-in svg{position:relative;width:340px;height:510px;display:block;animation:cg-bob 2.4s ease-in-out infinite}
@keyframes cg-bob{50%{transform:translateY(-6px)}}
.cg-stamp{position:absolute;right:-36px;top:-16px;width:136px;height:136px;border-radius:50%;border:6px double;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:21px;font-weight:800;line-height:22px;text-align:center;box-shadow:0 6px 0 rgba(0,0,0,.14);transform:rotate(12deg);animation:cg-stamp .6s cubic-bezier(.2,1.6,.4,1) .4s both;padding:0 10px}
.cg-stamp svg{width:46px;height:46px}
@keyframes cg-stamp{from{transform:rotate(12deg) scale(2.4);opacity:0}}
.cg-jobname{position:absolute;left:110px;top:634px;width:380px;height:92px;border-radius:46px;color:#fff;font-size:54px;font-weight:800;line-height:92px;text-align:center;letter-spacing:1px;text-transform:uppercase;white-space:nowrap;overflow:hidden}
.cg-info{position:absolute;left:560px;top:34px;width:680px;display:flex;flex-direction:column;gap:9px}
.cg-info h2{margin:0;font-size:46px;font-weight:800;line-height:48px}
.cg-info .l1{font-size:25px;font-weight:700;line-height:28px}
.cg-info .l2{font-size:21px;font-weight:500;line-height:25px;color:#3a4660}
.cg-uses{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 12px}
.cg-use{background:#fff;border-radius:14px;box-shadow:0 4px 0 rgba(27,42,65,.12);padding:4px 12px;min-height:50px}
.cg-use b{display:block;font-size:18px;line-height:20px}
.cg-use span{display:block;font-size:14px;font-weight:500;line-height:16px;color:#3a4660}
.cg-color{display:flex;align-items:center;gap:16px;height:136px;padding:8px 20px 8px 14px;border-radius:30px}
.cg-color-pic{flex:0 0 auto;width:76px;height:114px;border-radius:12px;border:3px dashed #c9d3df;background:#fff;padding:3px}
.cg-color-pic svg{width:100%;height:100%;display:block}
.cg-color-r{display:flex;flex-direction:column;gap:8px;min-width:0}
.cg-color-r>b{font-size:21px;line-height:23px}
.cg-color-btns{display:flex;gap:12px;flex-wrap:wrap}
.cg-color-btns .cg-btn{height:50px;font-size:20px;padding:0 18px}
.cg-acts{display:flex;gap:14px;flex-wrap:wrap}
.cg-acts .cg-btn{height:52px;font-size:22px}
.cg-row-dots{display:flex;gap:8px;align-items:center}
.cg-row-dots .cg-dot{width:36px;height:36px;font-size:19px}
.cg-allgood{font-size:22px;font-weight:800;color:#d0345f}
@media (prefers-reduced-motion:reduce){.cg-conf,.cg-hero-in svg,.cg-rays,.cg-obj.hint,.cg-card,.cg-cloud,.cg-star,.cg-stamp,.cg-pop-card,.cg-spark{animation:none;transition:none}.cg-move,.cg-sky,.cg-street .bld,.cg-street .lit,.cg-street .glow{transition:none}}

/* ---------- In tranh tô màu (A4) ---------- */
.cg-printbox{display:none}
@media print{
    @page{size:A4 portrait;margin:10mm}
    html,body{height:auto!important;overflow:visible!important;background:#fff!important}
    body.cg-printing>*:not(#cg-print){display:none!important}
    body.cg-printing #cg-print{display:block}
    .cg-pg{width:190mm;height:276mm;box-sizing:border-box;border:1.4mm dotted #111;border-radius:8mm;padding:8mm 8mm;text-align:center;font-family:'Baloo 2',Arial,Helvetica,sans-serif;color:#111;page-break-inside:avoid;break-inside:avoid}
    .cg-pg-h{display:flex;align-items:center;justify-content:center;gap:6mm;font-size:22mm;font-weight:800;line-height:26mm}
    .cg-pg-h b{display:inline-flex;align-items:center;justify-content:center;width:26mm;height:26mm;border:1.4mm solid #111;border-radius:50%;font-size:18mm}
    .cg-pg p{margin:1mm 0 3mm;font-size:6.5mm;color:#444}
    .cg-pg-pic svg{width:138mm;height:207mm;display:block;margin:0 auto}
}

/* ---------- Màn dọc (điện thoại cầm dọc): .cg-pt đặt bởi fit() ---------- */
.cg-pt .cg-hud-top{left:16px;top:84px;width:calc(100% - 32px);margin-left:0;height:62px;font-size:26px}
.cg-pt .cg-hud-top svg{width:30px;height:30px}
.cg-pt .cg-hud-l{left:16px;top:16px;height:52px;font-size:20px;padding:0 16px}
.cg-pt .cg-hud-r{right:16px;top:16px}
.cg-pt .cg-walk{width:calc(100% - 32px);left:16px;margin-left:0;bottom:108px}
.cg-pt .cg-walk .cg-btn{flex:1;height:68px;font-size:26px;padding:0 12px}
.cg-pt .cg-tip{width:calc(100% - 32px);left:16px;margin-left:0;bottom:80px;font-size:17px}
.cg-pt .cg-dots{width:calc(100% - 32px);left:16px;margin-left:0;bottom:12px;height:58px;gap:6px}
.cg-pt .cg-dot{width:34px;height:34px;font-size:19px;border-width:2px}
.cg-pt .cg-stage{overflow:hidden}
.cg-pt .cg-btn{height:84px;font-size:34px;padding:0 30px;gap:12px}
.cg-pt .cg-btn svg{width:36px;height:36px}
.cg-pt .cg-btn.round{width:84px;padding:0}
.cg-pt .cg-room-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding:20px}
.cg-pt .cg-topbar{position:relative;width:840px;height:90px;flex:0 0 auto}
.cg-pt .cg-back{left:0;top:3px}
.cg-pt .cg-count{right:0;top:12px;height:66px}
.cg-pt .cg-title{width:340px;margin-left:-170px;top:8px;font-size:30px;height:74px}
.cg-pt .cg-back span{display:none}
.cg-pt .cg-back{width:84px;padding:0}
.cg-pt .cg-roombox{position:relative;left:auto;top:auto;flex:0 0 auto}
.cg-pt .cg-ask{position:relative;left:auto;top:auto;width:840px;height:auto;min-height:150px;order:2;padding:14px 24px;gap:22px;flex:0 0 auto}
.cg-pt .cg-ask-q{width:84px;height:84px;font-size:58px;line-height:84px}
.cg-pt .cg-ask-t small{font-size:28px;line-height:30px}
.cg-pt .cg-ask-t b{font-size:58px;line-height:62px}
.cg-pt .cg-side{position:relative;left:auto;top:auto;order:3;width:840px;height:auto;display:grid;grid-template-columns:236px 1fr;grid-template-rows:auto auto auto 1fr;gap:12px 28px;padding:20px 28px;align-items:center;justify-items:center;flex:0 0 auto}
.cg-pt .cg-side h2{grid-column:2;grid-row:1;font-size:34px;line-height:38px}
.cg-pt .cg-puzzle{grid-column:1;grid-row:1/5}
.cg-pt .cg-steps{grid-column:2;grid-row:2}
.cg-pt .cg-steps i{width:26px;height:26px}
.cg-pt .cg-side-btns{grid-column:2;grid-row:3}
.cg-pt .cg-pop-card{width:760px;padding:84px 36px 40px;border-top-width:20px}
.cg-pt .cg-pop-ic{width:128px;height:128px;top:-76px;margin-left:-64px}
.cg-pt .cg-pop-ic svg{width:68px;height:68px}
.cg-pt .cg-pop-card h3{font-size:68px;line-height:72px;margin-bottom:14px}
.cg-pt .cg-pop-pic{width:480px;height:300px}
.cg-pt .cg-pop-name{font-size:50px;line-height:54px}
.cg-pt .cg-pop-card p{font-size:36px;line-height:42px}
.cg-pt .cg-pop-card .cg-btn{height:96px;font-size:40px;padding:0 54px;margin-top:26px}
.cg-pt .cg-done{display:flex;flex-direction:column;align-items:center;gap:22px;padding:34px 20px 40px;overflow-y:auto}
.cg-pt .cg-hero{position:relative;left:auto;top:auto;flex:0 0 auto}
.cg-pt .cg-jobname{position:relative;left:auto;top:auto;width:600px;flex:0 0 auto}
.cg-pt .cg-info{position:relative;left:auto;top:auto;width:840px;flex:0 0 auto}
.cg-pt .cg-info h2{font-size:56px;line-height:58px;text-align:center}
.cg-pt .cg-info .l1{font-size:32px;line-height:36px;text-align:center}
.cg-pt .cg-info .l2{font-size:27px;line-height:32px}
.cg-pt .cg-use{padding:6px 14px;min-height:76px}
.cg-pt .cg-use b{font-size:29px;line-height:32px}
.cg-pt .cg-use span{font-size:23px;line-height:27px}
.cg-pt .cg-color-r>b{font-size:26px;line-height:30px}
.cg-pt .cg-color{height:auto;min-height:150px}
.cg-pt .cg-color-pic{width:92px;height:138px}
.cg-pt .cg-row-dots .cg-dot{width:44px;height:44px;font-size:23px}
.cg-pt .cg-color-btns .cg-btn,.cg-pt .cg-acts .cg-btn{height:76px;font-size:28px;padding:0 24px}
.cg-pt .cg-acts{justify-content:center}
.cg-pt .cg-row-dots{justify-content:center;flex-wrap:wrap}
.cg-pt .cg-allgood{text-align:center;font-size:28px}
.cg-pt .cg-sun{left:calc(50% + 70px);top:70px;width:150px;height:150px}
.cg-pt .cg-moon{left:calc(50% - 300px);top:90px;width:120px;height:120px}
.cg-pt .cg-sun{top:210px}
.cg-pt .cg-screen[hidden]{display:none}

/* ---------- Màn hình "Đang tải" (Blade dựng sẵn #cg-boot; JS gỡ khi phố sẵn sàng) ---------- */
.cg-boot.out{opacity:0;transition:opacity .4s ease;pointer-events:none}

/* ---------- v180: biển hiệu treo thật (3D), phố nhẹ 2D cho điện thoại, quẹo trái / phải ---------- */
.cg-sign::before{content:'';position:absolute;top:-16px;width:187px;height:12px;border-radius:7px;background:linear-gradient(#7b879e,#2f3a4f);box-shadow:0 3px 4px rgba(0,0,0,.3)}
.cg-sign[data-side="0"]::before{left:-37px}
.cg-sign[data-side="1"]::before{left:0}
.cg-sign::after{content:'';position:absolute;top:-6px;left:14px;width:122px;height:14px;border-left:5px solid #4a5568;border-right:5px solid #4a5568}
.cg-card{border-width:7px;box-shadow:inset 0 0 0 4px #fff,0 8px 18px rgba(0,0,0,.28)}
.cg-night .cg-card{box-shadow:inset 0 0 0 4px #fff,0 0 22px rgba(255,226,140,.55),0 8px 18px rgba(0,0,0,.35)}
.cg-looking .cg-sign::before,.cg-looking .cg-sign::after{opacity:0}
.cg-haze{position:absolute;inset:0;background:linear-gradient(#cfe9ff,#eaf6ff);pointer-events:none}
.cg-night .cg-haze{background:#1b2470}
.cg-prop{transition:opacity .5s ease}
.cg-looking .cg-prop{opacity:0}
/* phố nhẹ 2D */
.cg-street.cg-lite{touch-action:pan-x}
.cg-lview{position:absolute;left:0;top:0;overflow:hidden}
.cg-lite .cg-cloud{display:none}
.cg-lite .cg-star{animation:none}
.cg-lite .cg-sun{width:110px;height:110px;left:calc(50% + 70px);top:190px}
.cg-lite .cg-moon{width:96px;height:96px;left:calc(50% - 170px);top:190px}
.cg-lfar{position:absolute;pointer-events:none}
.cg-lfar svg{display:block;width:100%;height:100%}
.cg-lscroll{position:absolute;left:0;width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cg-lscroll::-webkit-scrollbar{display:none}
.cg-lsize{position:relative}
.cg-lworld{position:absolute;left:0;top:0;transform-origin:0 0}
.cg-lfac{position:absolute;pointer-events:none}
.cg-lfac svg{display:block;width:100%;height:100%}
.cg-lworld i{position:absolute;display:block}
.cg-lroad{background:repeating-linear-gradient(90deg,#fff 0 90px,transparent 90px 190px) 0 48px/100% 8px no-repeat,#5a636e;transition:filter .9s ease}
.cg-night .cg-lroad{filter:brightness(.5)}
.cg-lworld .cg-sign{position:absolute;display:block}
.cg-lhit{background:none;border:0;padding:0;cursor:pointer}
.cg-lhit::before,.cg-lhit::after{display:none}
.cg-lsign::before,.cg-lsign::after{display:none}
.cg-lsign{width:150px;height:200px}
.cg-lsign .cg-card{position:relative}
.cg-lsign .cg-card::after{content:'';position:absolute;left:24px;top:100%;width:8px;height:36px;background:#4a5568;box-shadow:86px 0 0 #4a5568;z-index:-1}
.cg-lworld .cg-prop{pointer-events:none}
.cg-ls .cg-dots,.cg-ls .cg-tip{display:none}
.cg-ls .cg-walk{bottom:8px}
.cg-ls .cg-hud-top{width:440px;margin-left:-220px;top:8px;height:54px;font-size:24px}
.cg-ls .cg-hud-l{top:8px;height:50px;font-size:19px}
.cg-ls .cg-hud-r{top:8px}
.cg-ls .cg-hud-r .cg-btn{width:50px;height:50px}

/* ---------- Dựng dần (lazy): ô giữ chỗ cửa hàng + thanh tiến độ "đang dựng cửa hàng n/10" ---------- */
.cg-lz{display:block;width:100%;height:100%}
.cg-lz[data-lz^="shop"]{border-radius:18px 18px 0 0;background:linear-gradient(110deg,#e6eef8 30%,#f7fbff 50%,#e6eef8 70%);background-size:200% 100%;animation:cg-lz-shine 1.2s linear infinite}
.cg-night .cg-lz[data-lz^="shop"]{background:linear-gradient(110deg,#222b66 30%,#2f3a86 50%,#222b66 70%);background-size:200% 100%}
.cg-lzprog{position:absolute;left:50%;top:96px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;min-width:230px;padding:8px 18px 10px;font-size:18px;font-weight:800;color:#26324a;pointer-events:none;transition:opacity .5s ease}
.cg-lzprog i{display:block;width:100%;height:10px;border-radius:99px;background:#e3eefa;overflow:hidden}
.cg-lzprog b{display:block;width:0;height:100%;border-radius:99px;background:linear-gradient(90deg,#2bbf7e,#f5b800);transition:width .25s ease}
.cg-lzprog.done{opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s .5s}
.cg-pt .cg-lzprog{top:156px}
.cg-ls .cg-lzprog{top:66px;font-size:15px;padding:5px 14px 7px}
@keyframes cg-lz-shine{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.cg-lz[data-lz^="shop"]{animation:none}}
