:root{font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:#33224d;background:#faf6fc;--purple:#3d2069;--pink:#ed3988;--gold:#ffd766;--mint:#cbf6dd}*{box-sizing:border-box}button{font-family:inherit;cursor:pointer}button:disabled{opacity:.43;cursor:default}body{margin:0;background:radial-gradient(ellipse at 6% 8%,#eedffe 0%,transparent 44%),radial-gradient(ellipse at 90% 70%,#ffe6db 0%,transparent 50%),#fbf8fd;min-height:100vh}.hidden{display:none!important}.app{max-width:1380px;margin:auto;padding:0 30px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eadff0}.brand{background:none;border:0;text-align:left;display:flex;align-items:center;gap:11px;font-size:19px;font-weight:1000;letter-spacing:-.5px;color:var(--purple)}.brand strong{color:var(--pink)}.brand small{display:block;color:#93869a;letter-spacing:2px;font-weight:800;font-size:8px;margin-top:3px}.brand-mark{background:linear-gradient(140deg,#fa4e93,#a855e6);color:white;border-radius:16px;width:45px;height:45px;display:grid;place-items:center;font-size:24px;box-shadow:0 7px 14px #b04dc539}.topresources{display:flex;align-items:center;gap:12px}.pill{height:39px;min-width:92px;display:flex;align-items:center;gap:7px;border:1px solid #efe3f2;background:#fff;padding:6px 11px;border-radius:25px;box-shadow:0 4px 18px #3a12430b}.pill img{width:23px;height:23px;object-fit:contain}.pill b{font-size:15px}.reslabel{font-size:9px;color:#aaa0b1;font-weight:800}.tinyplus{border:0;color:#fff;background:var(--pink);border-radius:50%;height:22px;width:22px;font-size:17px;line-height:20px}.iconBtn{border:1px solid #ede0f1;background:#fff;border-radius:14px;height:39px;width:39px;font-size:22px;color:#9d54aa}.layout{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:24px;padding:24px 0 30px}.stage{border:1px solid #ebddec;border-radius:26px;min-width:0;background:#fff;box-shadow:0 18px 50px #5b2a7614;overflow:hidden}.stage-head{padding:23px 30px 16px;background:linear-gradient(112deg,#fff,#fdf3fc)}.eyebrow{color:#d04694;font-size:10px;font-weight:1000;letter-spacing:2.4px}.stage-head h1{font-size:30px;letter-spacing:-1.1px;color:#3e225a;margin:7px 0 5px}.stage-head p{font-size:13px;margin:0;color:#9785a1;line-height:1.5}.hero-view{min-height:555px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:linear-gradient(180deg,#ffffff5c,#ffffffb8),url('assets/homeScene.webp') center 49%/cover}.logo-stack{display:flex;align-items:center;flex-direction:column;filter:drop-shadow(0 12px 16px #61398140)}.logo-stack img:first-child{width:min(300px,50vw)}.logo-stack img:last-child{width:min(340px,54vw);margin-top:-7px}.hero-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:8px 0}.hero-badges span{background:#ffffffd9;border:1px solid #fff;border-radius:20px;padding:10px 13px;color:#66427c;font-size:10px;font-weight:1000;letter-spacing:.6px;box-shadow:0 5px 15px #5322641a}.cta{background:linear-gradient(120deg,#f64291,#db4d9d,#9058d8);box-shadow:0 13px 20px #e540883e;border:0;border-radius:100px;padding:17px 36px;color:white;font-size:14px;font-weight:1000;letter-spacing:1px}.cta span{padding-left:16px}.cta:hover{transform:translateY(-2px)}.secondary-cta{border:0;background:#ffffffdc;color:#8c438f;padding:12px 20px;border-radius:50px;font-weight:900}.note{font-size:11px;color:#715f84;max-width:250px}.sidepanel{display:flex;flex-direction:column;gap:16px}.panel-top{display:flex;justify-content:space-between;align-items:center;color:#6b5681;font-size:10px;font-weight:1000;letter-spacing:1.4px}.status-dot{font-size:9px;color:#31a16e;letter-spacing:.5px}.journey-card{padding:18px;background:linear-gradient(120deg,#4a286e,#8244ad);border-radius:20px;display:flex;align-items:center;gap:13px;color:white;box-shadow:0 10px 23px #4a286e2e}.journey-icon{background:#fff2;border:1px solid #fff3;border-radius:16px;width:55px;height:55px;display:grid;place-items:center;font-size:25px}.journey-card small{font-size:10px;color:#e4cfef;font-weight:900;letter-spacing:1.2px}.journey-card h2{margin:4px 0;font-size:23px}.journey-card p{font-size:11px;color:#e4d7f5;margin:0}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-stats>div{background:#fff;border:1px solid #eee1ef;border-radius:15px;padding:15px 10px}.mini-stats small{font-size:8px;color:#aa9cad;font-weight:900;letter-spacing:.6px;display:block}.mini-stats strong{display:block;font-size:24px;margin-top:6px;color:#4d2c6a}.side-section{background:#fff;border:1px solid #efe2ef;border-radius:20px;padding:19px}.side-section h3{font-size:15px;margin:0 0 8px;color:#50336f}.side-section p{font-size:12px;line-height:1.6;color:#9b8fa6;margin:0 0 14px}.food-row{display:flex;justify-content:space-between;gap:5px;background:#fff8e6;border-radius:15px;padding:8px}.food-row img{width:18%;aspect-ratio:1;object-fit:contain}.side-actions{background:#fff;border:1px solid #eee1f1;border-radius:19px;padding:6px}.side-action{width:100%;border:0;background:none;display:flex;align-items:center;text-align:left;gap:10px;padding:12px 9px;border-bottom:1px solid #f7eff7;color:#4f3761}.side-action:last-child{border:0}.side-action>span:first-child{font-size:22px}.side-action>span:nth-child(2){flex:1}.side-action strong{display:block;font-size:12px}.side-action small{display:block;font-size:10px;color:#a399a8;margin-top:3px}.side-action>span:last-child{color:#d35ca5}.original{font-size:10px;color:#a098ab;line-height:1.6;padding:0 8px}.map-view{padding:20px 25px 28px;min-height:520px;background:linear-gradient(#ffffffd6,#ffffffd5),url('assets/gameScene.webp') center/cover}.map-banner{display:flex;align-items:center;justify-content:space-between;background:#4b276e;padding:16px 18px;border-radius:18px;color:white}.map-banner span:first-child{color:#d7bdef;font-size:10px;font-weight:900;letter-spacing:1.6px;display:block}.map-banner strong{font-size:17px;display:block;margin-top:4px}.map-stars{color:#ffe789;font-weight:900}.chapterbar{display:flex;align-items:center;justify-content:center;gap:24px;margin:20px auto 15px;color:#5e3f80;font-weight:900;font-size:13px}.chapterbar button{width:32px;height:32px;border-radius:50%;border:1px solid #e6d7e8;background:white;color:#ba3c8c;font-size:24px}.level-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;max-width:620px;margin:auto}.level-tile{border:1px solid #dec5e4;border-radius:16px;padding:8px 2px;min-height:73px;background:#fff9ff;color:#6b4b7e;font-size:17px;font-weight:1000;box-shadow:0 4px 0 #dbc6df;transition:.12s}.level-tile small{display:block;font-size:10px;color:#f2b62f;letter-spacing:2px}.level-tile.open{background:linear-gradient(160deg,#f55e9f,#b04dd3);color:white;border-color:#f5aed7;box-shadow:0 4px 0 #914ca5}.level-tile.open small{color:#ffe98a}.level-tile.won{background:linear-gradient(135deg,#faf3b5,#fff4cf);border-color:#efcb5a;color:#6f5280;box-shadow:0 4px 0 #edcc6a}.level-tile.locked{background:#f1e9f2;border-color:#e6dde8;color:#af9eaf;box-shadow:none}.map-hint{margin-top:24px;font-size:11px;color:#9a88a6;text-align:center}.game-view{padding:12px 22px 22px;background:linear-gradient(180deg,#eefaff,#ffedf8 68%,#fff);min-height:585px}.game-meta{display:flex;align-items:center;justify-content:space-between;gap:9px}.level-badge{background:#533083;color:#fff;font-weight:1000;border-radius:20px;padding:9px 13px;white-space:nowrap;font-size:11px}.level-badge b{font-size:15px}.goal-list{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;flex:1}.goal-chip{display:flex;align-items:center;gap:4px;border-radius:14px;border:1px solid #e5d7e5;background:#fffdfd;padding:3px 8px;min-height:32px;font-size:11px;font-weight:900;color:#63526c}.goal-chip img{width:23px;height:23px;object-fit:contain}.goal-chip.done{color:#25925c;background:#e3f9e9;border-color:#b9eccb}.pause-button{border:1px solid #e6d5ec;background:#fff;border-radius:13px;padding:8px 12px;color:#6b4e81;font-weight:1000}.scoreline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 2px}.scoreline>div:first-child{min-width:80px}.scoreline small{display:block;font-size:9px;color:#826a99;font-weight:900}.scoreline strong{font-size:23px;color:#47296f}.progress-wrap{flex:1;max-width:300px}.progress-stars{color:#f5b541;font-size:14px;display:flex;justify-content:space-around}.progress-bar{height:11px;background:#e6d2ec;border-radius:10px;border:2px solid #fff;overflow:hidden}.progress-bar>div{height:100%;width:0%;background:linear-gradient(90deg,#f8bb64,#fc4591);transition:width .3s}.moves-pill{background:#ffe8ee;border:1px solid #f6cad9;border-radius:16px;padding:6px 12px;text-align:center;min-width:68px}.moves-pill strong{display:block;font-size:20px;color:#f14d87}.board{--cols:7;--rows:7;width:min(100%,560px);aspect-ratio:var(--cols)/var(--rows);display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));margin:3px auto 0;background:linear-gradient(160deg,#3486bd,#23629a);padding:5px;border:6px solid #6740a3;border-radius:16px;box-shadow:0 8px 0 #3f2770,0 14px 25px #393c8340;touch-action:none;user-select:none;max-height:570px}.cell{position:relative;min-width:0;min-height:0;border:1px solid #ffffff13;display:grid;place-items:center;cursor:pointer;background:#ffffff1b}.cell:nth-child(even){background:#ffffff2b}.cell.hole{background:#184b800f;border:none;cursor:default}.cell.selected{outline:3px solid #ffe96a;outline-offset:-3px;background:#ffc45155;z-index:1}.cell img.piece{width:94%;height:94%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 2px #24427325)}.cell img.overlay{position:absolute;top:0;left:0;height:100%;width:100%;pointer-events:none;opacity:.74}.cell img.blocker{width:97%;height:97%;object-fit:contain;pointer-events:none}.cell .special-tag{font-size:9px;color:white;position:absolute;right:0;bottom:0;border-radius:5px;background:#693a99ab;padding:1px 3px}.board-status{min-height:32px;display:grid;place-items:center;text-align:center;color:#885d90;font-size:12px;font-weight:800;margin-top:12px}.boosterbar{display:flex;justify-content:center;gap:10px;margin-top:1px}.boosterbar button{border:2px solid #f4d5eb;border-radius:15px;background:#fff;padding:6px 8px;min-width:70px;display:flex;align-items:center;gap:4px;flex-direction:column;box-shadow:0 3px 0 #d6bcd9;color:#65476e}.boosterbar button span{font-size:21px;line-height:22px}.boosterbar button img{width:23px;height:23px}.boosterbar button b{font-size:9px}.boosterbar button small{font-size:11px;color:#b3488e;font-weight:1000}.boosterbar button.active{border-color:#f475a8;background:#fff0f8;box-shadow:0 0 0 4px #ef5d9540}.modal-backdrop{position:fixed;inset:0;background:#2b154cb6;z-index:10;display:flex;align-items:center;justify-content:center;padding:15px;backdrop-filter:blur(5px)}.dialog{position:relative;background:white;border-radius:26px;text-align:center;width:min(420px,100%);padding:30px 26px 26px;box-shadow:0 25px 80px #16062a7a;border:3px solid #efd8f6}.dialog-close{position:absolute;right:14px;top:8px;font-size:28px;border:0;background:none;color:#8f779d}.dialog-icon{font-size:52px}.dialog h2{font-size:28px;margin:7px 0;color:#4c2b6c}.dialog p{font-size:13px;line-height:1.6;color:#8c7698}.modal-actions{display:grid;gap:9px;margin-top:16px}.modal-actions button{border:0;border-radius:20px;background:linear-gradient(115deg,#ed498c,#ae52c6);color:#fff;padding:13px 16px;font-size:13px;font-weight:900}.modal-actions button.ghost{background:#f7edf7;color:#784d86}.reward-star{font-size:37px;color:#ffc74f;letter-spacing:7px}.small-reward{padding:9px 12px;border-radius:10px;background:#fff8e9;color:#7b5d42;font-weight:900}.dialog .muted{color:#b2a0b7;font-size:11px}footer{text-align:center;color:#9e91a5;font-size:9px;letter-spacing:1.5px;padding:4px 0 20px;font-weight:900}footer span{color:#e4b75c;padding:0 7px}@media(max-width:1020px){.app{padding:0 16px}.layout{grid-template-columns:minmax(0,1fr) 280px;gap:13px}.side-section{padding:12px}.stage-head h1{font-size:25px}.sidepanel{gap:10px}}@media(max-width:740px){.app{padding:0}.topbar{height:68px;padding:0 10px}.brand{font-size:14px;gap:7px}.brand-mark{width:34px;height:34px;border-radius:11px;font-size:18px}.brand small{font-size:6px;letter-spacing:1px}.topresources{gap:5px}.pill{min-width:55px;padding:4px 6px;gap:3px;height:33px}.pill img{width:17px;height:17px}.pill b{font-size:12px}.pill .reslabel{display:none}.tinyplus{width:19px;height:19px;line-height:17px;font-size:13px}.iconBtn{width:33px;height:33px;font-size:19px}.layout{display:flex;flex-direction:column;padding:9px 6px;gap:10px}.stage{border-radius:17px}.stage-head{padding:13px 13px 10px}.stage-head h1{font-size:20px;margin:3px 0}.stage-head p{font-size:11px}.eyebrow{font-size:8px}.hero-view{min-height:420px}.logo-stack img:first-child{width:230px}.logo-stack img:last-child{width:260px}.sidepanel{padding:0 7px}.journey-card,.side-section,.side-actions,.mini-stats,.panel-top{display:none}.game-view{padding:8px 6px 15px;min-height:0}.game-meta{gap:4px}.level-badge{padding:8px;font-size:10px;border-radius:10px}.level-badge b{font-size:12px}.goal-list{gap:3px}.goal-chip{font-size:10px;min-height:26px;padding:3px 5px}.goal-chip img{width:17px;height:17px}.pause-button{padding:5px 9px}.scoreline{margin:8px 2px;gap:7px}.scoreline strong{font-size:18px}.moves-pill{padding:4px 8px;min-width:52px}.moves-pill strong{font-size:18px}.board{padding:3px;border:4px solid #6740a3;border-radius:9px;width:min(100%,500px);max-height:calc(100dvh - 300px)}.boosterbar{gap:5px}.boosterbar button{min-width:65px;padding:4px 5px}.board-status{font-size:10px;margin-top:7px;min-height:28px}.map-view{min-height:450px;padding:13px 12px}.level-grid{gap:6px}.level-tile{min-height:56px;font-size:15px;border-radius:11px}.map-banner{padding:13px}.map-banner strong{font-size:14px}footer{font-size:7px;padding:8px 0}}@media(max-width:390px){.brand small{display:none}.brand{font-size:12px}.pill{min-width:0}.level-grid{grid-template-columns:repeat(5,1fr)}.board{max-height:calc(100dvh - 300px)}}
/* NAIJA CRUSH • NIGERIA DISCOVERY EDITION */
:root{--forest:#167d62;--sky:#e9f8f7;--ink:#332146;--sun:#ffc85a}
.topbar .iconBtn{flex-shrink:0}
.map-view{background:radial-gradient(circle at 6% 8%,#f5e1ff 0,transparent 32%),linear-gradient(160deg,#fffafa,#f8fcfa 58%,#fcf0ff)}
.atlas-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(190px,.85fr);gap:13px;margin-top:13px;align-items:stretch}
.nigeria-map-wrap{padding:13px 12px 10px;background:linear-gradient(165deg,#e7fbfc,#e4f5ea);border:1px solid #cce9e3;border-radius:21px;box-shadow:0 8px 28px #9dbbb721;min-width:0}
.atlas-topline{display:flex;justify-content:space-between;gap:10px;color:#1a736c;font-size:9px;font-weight:1000;letter-spacing:1px;align-items:center}
.atlas-topline span:last-child{color:#68a79f;text-align:right;letter-spacing:0;font-size:10px}
.nigeria-map{max-width:100%;margin:3px auto 0;aspect-ratio:800/654;display:block;position:relative}
.nigeria-map svg{display:block;width:100%;height:100%;overflow:visible}
.nigeria-outline{filter:drop-shadow(0 10px 15px #2e7b5733)}
.map-watermark{font-size:51px;fill:#29867733;font-weight:1000;letter-spacing:15px;pointer-events:none;user-select:none}
.map-marker{cursor:pointer;filter:url(#markshadow);outline:none;transition:filter .15s}
.map-marker .marker-halo{fill:#7647a02a;stroke:#73479766;stroke-width:1;transition:fill .15s}
.map-marker .marker-dot{fill:#a895be;stroke:#fff;stroke-width:3}
.map-marker .marker-center{fill:#fff}
.map-marker.available .marker-dot{fill:#ff528c}
.map-marker.available .marker-halo{fill:#f04f8a33}
.map-marker.completed .marker-dot{fill:#2b9b68}
.map-marker.completed .marker-halo{fill:#2b9b6833}
.map-marker.picked .marker-dot{fill:#66318b;stroke:#ffe6a6;stroke-width:4}
.map-marker.picked .marker-halo{fill:#ffce78aa;stroke:#fff6db;stroke-width:2}
.map-marker:hover .marker-halo,.map-marker:focus .marker-halo{fill:#fdc751d8}
.map-marker.available .marker-halo{animation:marker-pulse 2s ease-in-out infinite}
@keyframes marker-pulse{0%,100%{opacity:.55;transform:scale(.83)}50%{opacity:1;transform:scale(1.3)}}
.map-legend{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;font-size:10px;color:#6a867e;font-weight:800;margin-top:2px}
.map-legend span{display:flex;align-items:center;gap:5px}
.map-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.key-ready{background:#ff528c}.key-done{background:#2b9b68}.key-next{background:#a895be}
.map-disclaimer{font-size:9px;color:#72968f;text-align:center;margin:10px 0 0;line-height:1.4}
.destination-panel{background:#fff;border:1px solid #f0dff0;border-radius:21px;padding:19px 16px;box-shadow:0 8px 30px #6e3f8d13;display:flex;flex-direction:column;gap:12px;min-width:0}
.dest-header{display:flex;justify-content:space-between;gap:7px;align-items:center}
.dest-header .eyebrow{color:#b94e87;font-size:9px}
.free-chip{font-size:9px;font-weight:900;background:#e6fbee;color:#238656;padding:5px 8px;border-radius:100px;white-space:nowrap}
.destination-panel h2{font-size:30px;font-weight:1000;color:#462366;margin:0;line-height:1.05}
.dest-tag{text-transform:uppercase;letter-spacing:1.1px;color:#9b6cad;font-weight:900;font-size:10px;margin-top:-3px}
.destination-panel p{margin:0;color:#6e617b;font-size:12px;line-height:1.7;flex:1}
.destination-details{display:flex;flex-wrap:wrap;gap:6px}
.destination-details span{font-size:10px;font-weight:900;background:#f4f0f9;color:#86578f;border-radius:100px;padding:7px 9px}
.destination-primary,.destination-secondary{border:0;border-radius:14px;padding:12px;font-size:12px;font-weight:1000;transition:transform .18s}
.destination-primary{background:linear-gradient(125deg,#e94293,#9147c5);box-shadow:0 5px 0 #bd8aca;color:#fff}.destination-primary:active{transform:translateY(3px)}
.destination-secondary{background:#eafbfa;color:#1b896e;border:1px solid #b8e7dc}
.chapterbar{margin:18px auto}
.map-view .level-grid{grid-template-columns:repeat(7,minmax(0,1fr));max-width:100%;gap:7px}
.map-view .level-tile{min-height:59px;border-radius:13px;font-size:14px}
.fact-list{max-height:260px;overflow:auto;text-align:left;display:grid;gap:6px}
.fact-list-row{background:#f8f7fc;padding:10px;display:flex;gap:9px;border-radius:10px;font-size:11px;line-height:1.55;color:#655273}
.fact-list-row span{font-size:17px}
.fact-list-row.fact-locked{background:#f1eef7;color:#7d6a8a;font-style:italic}
.fact-source{font-size:11px;margin:12px 0;color:#927d9a}.fact-source a{color:#29856b;font-weight:900}
.victory-modal .dialog{background:linear-gradient(155deg,#fffefc,#fffafc 70%,#f6ecff);border-color:#ffe3aa}
.victory-modal .dialog-icon{animation:victory-icon .65s cubic-bezier(.2,1.7,.5,1.1)}
@keyframes victory-icon{0%{transform:scale(.15) rotate(-45deg)}80%{transform:scale(1.15) rotate(9deg)}100%{transform:scale(1)}}
.win-history{background:linear-gradient(125deg,#edf9ef,#f8fdf8);border:1px solid #bbebc9;border-radius:14px;padding:13px;text-align:left;margin-top:10px}
.win-history-eyebrow{font-size:10px;letter-spacing:1.1px;font-weight:1000;color:#25754c}
.win-history p{margin:9px 0;line-height:1.55!important;color:#365c4b!important;font-size:12px!important;font-weight:700}
.win-history small{font-size:9px;color:#74a089;font-weight:800}
.state-completed{padding:9px;background:#fff2c6;border-radius:10px;color:#896100;font-size:11px;font-weight:900;margin-top:10px}
.cell.matched img.piece{animation:crush-pop .14s ease-out forwards}
.cell.invalid-move img.piece{animation:swap-shake .28s ease-in-out}
@keyframes crush-pop{0%{transform:scale(1);filter:drop-shadow(0 0 0 transparent)}55%{transform:scale(1.35);filter:brightness(1.55) drop-shadow(0 0 8px #fff)}100%{transform:scale(.35);opacity:.1}}
@keyframes swap-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7%)}60%{transform:translateX(7%)}}
.board{position:relative}
.floating-combo{position:absolute;top:43%;left:50%;z-index:4;pointer-events:none;text-shadow:0 2px 3px #642a9d;color:#fff065;font-weight:1000;font-size:22px;white-space:nowrap;animation:combo-float .85s ease-out forwards}
@keyframes combo-float{0%{opacity:0;transform:translate(-50%,30%) scale(.5)}35%{opacity:1;transform:translate(-50%,-25%) scale(1.2)}100%{opacity:0;transform:translate(-50%,-95%) scale(.98)}}
.cell img.piece{transition:filter .15s;will-change:transform}
.hall-note{background:#eaf8ef;color:#23664a;padding:11px;border-radius:12px;font-size:11px;line-height:1.55;text-align:left;margin-bottom:12px}
.name-label{display:block;font-size:9px;font-weight:1000;letter-spacing:1px;color:#85618b;text-align:left;margin-bottom:4px}
#playerAlias{width:100%;padding:11px;border:1px solid #dcc2e6;border-radius:10px;color:#503069;font:inherit;margin-bottom:5px}
.save-nickname{padding:7px 11px;color:white;background:#8851b3;border:0;border-radius:8px;font-weight:800;font-size:10px;display:block;margin:0 0 13px auto;cursor:pointer}
.hall-table{border:1px solid #eee1ee;border-radius:12px;overflow:hidden;text-align:left;font-size:11px}
.hall-heading,.hall-row{display:grid;grid-template-columns:33px 1fr 55px 80px;gap:7px;align-items:center;padding:8px 11px}
.hall-heading{background:#51306f;color:white;font-weight:900;font-size:9px;letter-spacing:.5px}
.hall-row:nth-child(odd){background:#fbf7fd}.hall-row b{text-align:right;color:#5b3674}
.hall-empty{text-align:center;padding:24px 14px;color:#9c8ba2}
@media(max-width:1100px){.atlas-layout{grid-template-columns:1fr}.destination-panel{gap:9px}.destination-panel h2{font-size:24px}}
@media(max-width:740px){.nigeria-map-wrap{padding:9px}.map-view{padding:9px 8px}.atlas-layout{gap:9px;margin-top:10px}.atlas-topline{font-size:8px}.destination-panel{padding:13px 14px;gap:7px}.destination-panel p{font-size:11px}.map-view .level-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.map-view .level-tile{min-height:52px}.topbar .iconBtn{width:30px;height:30px}.dialog{padding:23px 17px 20px;max-height:94dvh;overflow:auto}.win-history{padding:10px}.nigeria-map{max-height:350px}}
@media(max-width:380px){.map-view .level-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.map-legend{font-size:9px}}
@media(prefers-reduced-motion:reduce){.cell.matched img.piece,.cell.invalid-move img.piece,.map-marker.available .marker-halo,.floating-combo{animation:none!important}}

/* Community leaderboards */
.ranking-tabs{display:flex;gap:6px;margin:14px 0 10px;flex-wrap:wrap}
.ranking-tabs button{border:1px solid #e7d5ec;background:#faf3ff;color:#6c4887;border-radius:100px;padding:7px 11px;font-size:11px;font-weight:900}
.ranking-tabs button.active{background:linear-gradient(90deg,#592879,#a654bb);color:white;border-color:transparent}
@media(max-width:500px){.ranking-tabs button{font-size:10px;padding:7px 9px}}

/* Reward animation: entirely CSS, no video libraries or large graphics */
.victory-modal .dialog{animation:victory-enter .55s cubic-bezier(.17,.93,.37,1.15);background:radial-gradient(ellipse at top,#fff5d6 0%,#fff 42%)}
.victory-modal .dialog:before{content:'✦ ✦ ✧ ★ ✦ ★ ✧';position:absolute;pointer-events:none;left:6%;right:6%;top:8px;letter-spacing:12px;color:#f4bb36;font-size:18px;opacity:0;animation:sparkle-fall 1.5s .1s ease-out forwards}
@keyframes victory-enter{from{transform:translateY(45px) scale(.82);opacity:.3}to{transform:none;opacity:1}}
@keyframes sparkle-fall{0%{opacity:0;transform:translateY(-30px)}27%{opacity:1}100%{opacity:0;transform:translateY(90px)}}
@media(prefers-reduced-motion:reduce){.victory-modal .dialog,.victory-modal .dialog:before{animation:none!important}}

/* Sponsored business banner — no third-party ad SDK, friendly to small screens */
.advertising-panel{margin-top:2px;border-radius:21px;overflow:hidden;background:#fff;border:1px solid #e6d7ee;box-shadow:0 6px 25px #42215e14;position:relative}
.advertising-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 12px;background:linear-gradient(100deg,#40216b,#613285);color:#fff;font-weight:900;font-size:10px;letter-spacing:1px}
.ad-sponsored{font-size:8px;color:#e9d7f5;letter-spacing:1.1px}.ad-status-dot{display:inline-block;width:6px;height:6px;background:#9ee6a1;border-radius:50%;vertical-align:middle;margin-right:5px}
.ad-creative{height:156px;display:block;overflow:hidden;background:#ece5f4;position:relative}.ad-creative img{display:block;width:100%;height:100%;object-fit:cover;animation:adFadeIn .35s ease-out}
.ad-placeholder-art{height:100%;padding:14px;display:flex;gap:10px;align-items:center;color:white;background:radial-gradient(circle at 95% 2%,#d8a5f7 0%,transparent 42%),linear-gradient(125deg,#522889,#9d3fba 73%,#f1ad55);animation:adFadeIn .35s ease-out}
.ad-placeholder-art.alt{background:radial-gradient(circle at 90% 0%,#e6df9b 0%,transparent 45%),linear-gradient(110deg,#3e7658,#78a574)}.ad-placeholder-mark{font-size:45px;color:#fce09a;text-shadow:0 3px 8px #2f19587a}.ad-placeholder-art strong{display:block;font-size:21px;line-height:1.1;letter-spacing:-.3px}.ad-placeholder-art small{display:block;font-size:11px;line-height:1.45;margin-top:8px}.ad-placeholder-kicker{display:block;font-size:8px;letter-spacing:1.1px;font-weight:900;margin-bottom:8px}
.ad-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px}.ad-copy{min-width:0}.ad-copy strong{display:block;color:#4c2a6f;font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.ad-copy span{display:block;color:#9e89aa;font-size:10px;line-height:1.4;margin-top:3px}.ad-action{font-size:11px;font-weight:900;color:#fff!important;background:#b44c96;border-radius:10px;padding:9px 10px;white-space:nowrap;text-decoration:none}.ad-action[hidden]{display:none}
.ad-controls{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0e8f2;padding:7px 12px;color:#a18bad;font-size:9px;letter-spacing:.6px;font-weight:800}.ad-controls button{border:1px solid #ede0ed;background:white;border-radius:8px;color:#683b83;width:26px;height:24px;margin-left:3px;font-weight:900;font-size:15px;cursor:pointer}.ad-controls button:hover,.ad-controls button:focus{background:#f7eafa}
@keyframes adFadeIn{from{opacity:.35;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}
@media (max-width:740px){.advertising-panel{width:min(100%,550px);margin:4px auto 12px}.ad-creative{height:135px}.ad-placeholder-art strong{font-size:19px}}
@media (prefers-reduced-motion:reduce){.ad-creative img,.ad-placeholder-art{animation:none}}

/* ===== Smooth board: pieces slide, pop and fall (game.js moves them with transforms) ===== */
.board { position: relative; }
.board .cell { cursor: default; }
.board .cell.selected { outline: none; }
.pc-layer { position: absolute; overflow: hidden; pointer-events: none; z-index: 2; border-radius: 8px; }
.pc {
  position: absolute; left: 0; top: 0;
  width: calc(100% / var(--cols)); height: calc(100% / var(--rows));
  transition: transform 170ms cubic-bezier(.3,.7,.4,1);
  will-change: transform;
}
.pc .inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transform-origin: 50% 85%; }
.pc .food { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 3px 2px #24427340); pointer-events: none; -webkit-user-drag: none; }
.pc.blk .food { width: 97%; height: 97%; filter: none; }
.pc .elem { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .74; pointer-events: none; }
/* striped: white bands painted only over the food's own shape */
.pc .stripes {
  position: absolute; inset: 6%;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  background: repeating-linear-gradient(var(--a), rgba(255,255,255,.9) 0 8%, rgba(255,255,255,0) 8% 19%);
  background-size: 100% 100%;
  opacity: .8;
  animation: stripe-shine 1.4s linear infinite;
}
.pc .stripes.h { --a: 0deg; }
.pc .stripes.v { --a: 90deg; }
@keyframes stripe-shine { 50% { opacity: .55; } }
/* wrapped: a glowing wrapper that breathes */
.pc .wrapper {
  position: absolute; inset: 5%; border-radius: 32%;
  border: 3px solid #fff; box-shadow: 0 0 8px 2px #fff8, inset 0 0 10px #fff9;
  animation: wrap-pulse 1.2s ease-in-out infinite;
}
@keyframes wrap-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 14px 4px #ffe96a, inset 0 0 12px #fff; } }
.pc.rb .food { width: 96%; height: 96%; animation: rb-spin 5s linear infinite; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 3px 2px #24427340); }
@keyframes rb-spin { to { transform: rotate(360deg); } }

.pc.sel .inner { animation: sel-bob .55s ease-in-out infinite alternate; }
.pc.sel .inner::before { content: ""; position: absolute; inset: 4%; border-radius: 30%; background: radial-gradient(#fff6a8aa, #ffd84a33 60%, transparent 72%); }
@keyframes sel-bob { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.pc.hint .inner { animation: hint-wiggle .9s ease-in-out 3; }
@keyframes hint-wiggle { 0%,100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-10deg) scale(1.08); } 40% { transform: rotate(9deg) scale(1.08); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.pc.pop .inner { animation: pc-pop .28s ease-in forwards; animation-delay: var(--delay, 0ms); }
@keyframes pc-pop { 0% { transform: scale(1); } 35% { transform: scale(1.28); filter: brightness(1.6) drop-shadow(0 0 10px #fff); } 100% { transform: scale(0); opacity: 0; } }
.pc.born .inner { animation: pc-born .38s cubic-bezier(.2,1.7,.4,1); }
@keyframes pc-born { 0% { transform: scale(.2); filter: brightness(2.2); } 100% { transform: scale(1); } }
.pc.land .inner { animation: pc-land .24s ease-out; }
@keyframes pc-land { 0% { transform: scale(1.08, .86); } 55% { transform: scale(.96, 1.05); } 100% { transform: scale(1); } }
.pc.shake .inner { animation: pc-shake .32s ease-in-out; }
@keyframes pc-shake { 25% { transform: translateX(-9%); } 60% { transform: translateX(8%); } }
.pc.zap .inner { animation: pc-zap .4s ease-in-out infinite alternate; }
@keyframes pc-zap { to { transform: scale(1.15); filter: brightness(1.7) drop-shadow(0 0 8px #fff); } }
.pc.collect .inner { animation: pc-collect .5s ease-in forwards; }
@keyframes pc-collect { 40% { transform: translateY(10%) scale(1.25); } 100% { transform: translateY(-160%) scale(.4); opacity: 0; } }

/* blast effects */
.fx { position: absolute; pointer-events: none; z-index: 3; }
.fx-beam { opacity: 0; animation: fx-beam .5s ease-out forwards; animation-delay: var(--delay, 0ms);
  background: linear-gradient(var(--g), transparent, #fff8 30%, #fff 50%, #fff8 70%, transparent); filter: drop-shadow(0 0 6px #ffe96a); }
.fx-beam.row { --g: 180deg; left: 0; width: 100%; height: calc(100% / var(--rows)); top: calc(var(--n) * 100% / var(--rows)); }
.fx-beam.col { --g: 90deg; top: 0; height: 100%; width: calc(100% / var(--cols)); left: calc(var(--n) * 100% / var(--cols)); }
@keyframes fx-beam { 0% { opacity: 1; transform: scale(.05, 1); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1, .5); } }
.fx-beam.row { transform-origin: 50% 50%; }
.fx-beam.col { animation-name: fx-beam-col; }
@keyframes fx-beam-col { 0% { opacity: 1; transform: scale(1, .05); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(.5, 1); } }
.fx-ring {
  width: calc((2 * var(--r) + 1) * 100% / var(--cols)); aspect-ratio: 1;
  left: calc((var(--x) + .5) * 100% / var(--cols)); top: calc((var(--y) + .5) * 100% / var(--rows));
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, #ffe96acc 35%, #ff8a3d55 55%, transparent 70%);
  opacity: 0; animation: fx-ring .55s ease-out forwards; animation-delay: var(--delay, 0ms);
}
@keyframes fx-ring { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.25); } }
.fx-flash { inset: 0; background: radial-gradient(circle, #fff, #fff6 45%, transparent 75%); animation: fx-flash .7s ease-out forwards; }
@keyframes fx-flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.fx-spark {
  width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c);
  left: calc((var(--x) + .5) * 100% / var(--cols)); top: calc((var(--y) + .5) * 100% / var(--rows));
  opacity: 0; animation: fx-spark .55s ease-out forwards; animation-delay: var(--delay, 0ms);
}
@keyframes fx-spark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 6), calc(-50% + var(--dy) * 6)) scale(.3); } }
.fx-score {
  left: calc((var(--x) + .5) * 100% / var(--cols)); top: calc(var(--y) * 100% / var(--rows));
  translate: -50% 0; color: #fff; font-weight: 1000; font-size: clamp(13px, 2.4vw, 18px);
  text-shadow: 0 2px 0 #6a2d9b, 0 0 6px #6a2d9b; animation: fx-score .9s ease-out forwards;
}
@keyframes fx-score { 0% { opacity: 0; transform: translateY(20%) scale(.6); } 25% { opacity: 1; transform: translateY(-20%) scale(1.15); } 100% { opacity: 0; transform: translateY(-140%); } }
.floating-combo { z-index: 5; }
@media (prefers-reduced-motion: reduce) {
  .pc.rb .food, .pc .wrapper, .pc .stripes, .pc.sel .inner, .pc.hint .inner { animation: none; }
}

/* ===== Play mode: while a level is on, the page stops scrolling and the board takes the largest size that fits =====
   game.js adds body.playing, plus .wide (side-by-side layout), .tabletop / .dual (folded phones). */
body.playing { height: 100dvh; min-height: 0; overflow: hidden; overscroll-behavior: none; }
body.playing .app { max-width: none; height: 100dvh; display: flex; flex-direction: column; padding-left: max(var(--app-pad, 30px), env(safe-area-inset-left)); padding-right: max(var(--app-pad, 30px), env(safe-area-inset-right)); }
body.playing .topbar { height: 56px; flex: none; }
body.playing footer, body.playing .stage-head { display: none; }
body.playing .layout { flex: 1; min-height: 0; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); grid-template-rows: minmax(0, 1fr); }
body.playing .stage { display: flex; flex-direction: column; min-height: 0; height: 100%; }
body.playing .sidepanel { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
body.playing #gameView {
  flex: 1; min-height: 0; display: grid; gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto;
  grid-template-areas: "meta" "score" "board" "status" "boost";
  align-content: center;
  padding: 10px 14px 12px;
}
body.playing .game-meta { grid-area: meta; }
body.playing .scoreline { grid-area: score; margin: 2px 2px 0; }
body.playing .board-area { grid-area: board; min-height: 0; min-width: 0; display: grid; place-items: center; }
body.playing .board-status { grid-area: status; min-height: 20px; margin: 0; }
body.playing .boosterbar { grid-area: boost; margin: 0; }
body.playing .board { margin: 0; width: var(--bw, 100%); height: var(--bh, auto); max-height: none; aspect-ratio: auto; }
.board-area { position: relative; }

/* Side by side: open folds, tablets and laptops in landscape, phones on their side */
body.playing.wide #gameView {
  grid-template-columns: clamp(170px, 24vw, 290px) minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  grid-template-areas: "meta board" "score board" "boost board" "status board";
  column-gap: clamp(12px, 2.4vw, 30px); row-gap: 10px; align-content: stretch;
}
body.playing.wide .game-meta { flex-wrap: wrap; justify-content: flex-start; }
body.playing.wide .level-badge { order: 0; }
body.playing.wide .pause-button { order: 1; margin-left: auto; }
body.playing.wide .goal-list { order: 2; flex-basis: 100%; justify-content: flex-start; }
body.playing.wide .scoreline { flex-wrap: wrap; row-gap: 6px; }
body.playing.wide .scoreline .progress-wrap { order: 3; flex-basis: 100%; }
body.playing.wide .boosterbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.playing.wide .boosterbar button { min-width: 0; }
body.playing.wide .board-status { align-self: start; place-items: start; text-align: left; }

/* During play the side panel keeps only the sponsor banner, and only when the screen has room to spare */
body.playing .layout { grid-template-columns: minmax(0, 1fr) 300px; }
body.playing .sidepanel > :not(.advertising-panel) { display: none; }
body.playing .sidepanel { justify-content: center; }
/* Phones, tablets and smaller laptops: the sponsor panel waits on the home and map screens, so the board gets the room */
@media (max-width: 1279px) {
  body.playing .sidepanel { display: none !important; }
  body.playing .layout { display: flex; flex-direction: column; }
}
@media (max-width: 740px) {
  body.playing .app { --app-pad: 0px; }
  body.playing .topbar { height: 48px; }
  body.playing .layout { padding: 6px 6px max(6px, env(safe-area-inset-bottom)); }
  body.playing #gameView { padding: 8px 8px 8px; gap: 5px; }
}
/* Short screens (phones on their side): slimmer top bar, smaller boosters */
@media (max-height: 520px) {
  body.playing .topbar { height: 42px; }
  body.playing .brand small { display: none; }
  body.playing .layout { padding-top: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  body.playing #gameView { padding: 6px 10px; row-gap: 6px; }
  body.playing .boosterbar button { padding: 3px 6px; gap: 1px; }
  body.playing .boosterbar button b { display: none; }
  body.playing .board-status { font-size: 10px; min-height: 0; }
  body.playing .scoreline { margin: 0; }
}
@media (max-height: 400px) {
  body.playing .board-status { display: none; }
  body.playing.wide #gameView { grid-template-areas: "meta board" "score board" "boost board" ". board"; }
}

/* Half-folded phone (tabletop): the board sits on the upper half, everything you press on the lower half */
body.playing.tabletop .topbar { display: none; }
body.playing.tabletop .layout { padding: 0; }
body.playing.tabletop .stage { border-radius: 0; border: 0; }
body.playing.tabletop #gameView {
  padding: 0 10px max(8px, env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: calc(var(--fold-top) - 12px) var(--fold-gap) auto auto auto;
  grid-template-areas: "board board" ". ." "meta meta" "score score" "boost status";
  row-gap: 6px;
}
body.playing.tabletop .board-area { padding-top: 6px; }
/* Book-style fold held open with the hinge down the middle: controls on one page, board on the other */
body.playing.dual #gameView {
  grid-template-columns: calc(var(--fold-left) - 24px) var(--fold-gap) minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  grid-template-areas: "meta . board" "score . board" "boost . board" "status . board";
  column-gap: 0; row-gap: 10px;
}
body.playing.dual .sidepanel { display: none; }
body.playing.dual .layout { display: flex; }

/* Screens too small to play on (flip phones' outside screen) */
.too-small { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; text-align: center; padding: 16px;
  background: linear-gradient(160deg, #533083, #2b1745); color: #fff; font: 800 15px/1.35 system-ui, sans-serif; }
.too-small b { display: block; font-size: 19px; margin: 8px 0 4px; }
.too-small span { font-size: 34px; }
body.tiny .too-small { display: grid; }
/* Narrow screens (fold cover screens, small phones): the top bar keeps the logo mark and drops the words so nothing spills off the edge */
@media (max-width: 400px) {
  .topbar { padding: 0 8px; gap: 6px; }
  .brand > span:last-child { display: none; }
  .topresources { gap: 4px; }
  .theme-picker { padding-left: 6px; padding-right: 4px; }
}
@media (max-width: 330px) {
  #musicToggle { display: none; }
}
/* Book fold: the top bar stays on the left page, clear of the hinge */
body.playing.dual .topbar { width: calc(var(--fold-left) - 16px); }
body.playing.dual .brand > span:last-child { display: none; }
body.playing.dual .topresources { gap: 4px; }

/* the way back to the Play Naija homepage */
.brandwrap{display:flex;align-items:center;gap:14px;min-width:0}
.pn-home{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:20px;border:1px solid #ede0f1;background:#fff;color:#7a4c8f;font-size:12px;font-weight:900;text-decoration:none;white-space:nowrap}
.pn-home:hover{border-color:#e4a7cf;color:#c23d86}
.pn-short{display:none}
@media(max-width:740px){.brandwrap{gap:6px}.pn-home{height:30px;padding:0 8px;font-size:11px}.pn-long{display:none}.pn-short{display:inline}}
@media(max-width:390px){.brand>span:last-child{display:none}}

/* syrup, honey and ice sit on the square, under the food */
.cell img.tile-elem{position:absolute;inset:4%;width:92%;height:92%;object-fit:cover;border-radius:10%;opacity:.88;pointer-events:none}

.boosterbar button.empty{opacity:.55;filter:grayscale(.6)}
