/* Desafios diários — estilo comum (mesmo visual escuro da Balança Misteriosa).
   Cada jogo acrescenta o seu tabuleiro em jogo.css. */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;background:#0f172a;color:#e2e8f0;min-height:100vh;display:flex;flex-direction:column;padding-top:84px;line-height:1.4;-webkit-tap-highlight-color:transparent}
.header{background:#1e293b;position:fixed;top:0;left:0;width:100%;border-bottom:1px solid #334155;z-index:1000;box-shadow:0 4px 18px rgba(0,0,0,.22);transition:top .28s ease,box-shadow .28s ease}
.header.header-oculto{top:-170px;box-shadow:none}
@media (prefers-reduced-motion:reduce){.header{transition:none}}
.header-container{max-width:1200px;margin:0 auto;padding:10px 20px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.logo a{display:inline-flex;align-items:center}
.logo img{height:56px;width:auto;display:block}
.menu{display:flex;align-items:center;gap:20px}
.menu>a,.menu-item>a{color:#facc15;text-decoration:none;font-weight:600;font-size:15px;padding:8px 4px;transition:color .2s ease}
.menu>a:hover,.menu-item>a:hover{color:#fde047}
.menu-item{position:relative}
.dropdown{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:300px;background:#0f172a;border:1px solid #334155;border-radius:12px;padding:14px 16px;box-shadow:0 14px 35px rgba(0,0,0,.35);z-index:1100}
.menu-item:hover .dropdown{display:block}
.menu-group+.menu-group{margin-top:14px;padding-top:14px;border-top:1px solid #334155}
.menu-title{display:block;color:#facc15!important;font-weight:700;font-size:15px;margin-bottom:2px;text-transform:none;letter-spacing:0}
.dropdown a{display:block;color:#facc15;text-decoration:none;font-weight:500;padding:6px 0;font-size:15px;line-height:1.4}
.dropdown a:hover{color:#fde047}
.menu-instagram{display:inline-flex!important;align-items:center;gap:6px}
.menu-toggle{display:none;font-size:26px;line-height:1;color:#f8fafc;cursor:pointer;padding:4px 8px}
@media (max-width:768px){
body{padding-top:60px}
.header-container{padding:8px 12px}
.logo img{height:40px}
.menu-toggle{display:block}
.menu{position:fixed;top:0;right:-100%;width:260px;height:100vh;background:#0f172a;flex-direction:column;align-items:flex-start;padding:70px 20px 20px;gap:14px;transition:right .3s ease;z-index:2000;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;height:100dvh}
body.menu-aberto{overflow:hidden}
.menu.active{right:0}
body.menu-aberto::after{content:"";position:fixed;inset:0;background:rgba(2,6,23,.55);z-index:999}
.menu>a,.menu-item>a{width:100%;padding:10px 0;border-bottom:1px solid #334155}
.dropdown{position:static;display:block;border:none;padding:0;background:transparent;box-shadow:none}
.menu-group{margin-top:6px}
}
.app{width:100%;max-width:440px;margin:0 auto;padding:16px 14px 30px;flex:1}
header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
h1{font-size:22px;font-weight:700;line-height:1.15;color:#f8fafc}
h1 small{display:block;font-size:13px;font-weight:500;color:#94a3b8}
.topo-dir{display:flex;gap:6px;align-items:center}
.ico{border:1px solid #334155;background:#1e293b;color:#e2e8f0;border-radius:999px;width:36px;height:36px;font-size:18px;box-shadow:0 1px 3px #0004;cursor:pointer;transition:background .2s ease}
.ico:hover{background:#334155}
.lang{display:flex;background:#1e293b;border:1px solid #334155;border-radius:999px;padding:3px}
.lang button{border:0;background:none;font:inherit;font-weight:600;font-size:13px;padding:5px 9px;border-radius:999px;color:#94a3b8;cursor:pointer}
.lang button.on{background:#2563eb;color:#fff}
.dots{display:flex;gap:6px;justify-content:center;margin:8px 0 12px}
.dot{width:38px;height:8px;border-radius:4px;background:#334155}
.dot.cur{background:#38bdf8}.dot.g{background:#22c55e}.dot.y{background:#eab308}.dot.r{background:#ef4444}
.card{background:#1e293b;border:1px solid #334155;border-radius:18px;padding:16px 12px 18px;box-shadow:0 6px 22px rgba(0,0,0,.22);text-align:center}
.lvl{display:inline-block;font-size:13px;font-weight:700;padding:3px 12px;border-radius:999px;background:rgba(56,189,248,.15);color:#38bdf8;text-transform:uppercase;letter-spacing:.03em}
.lvl.trap{background:rgba(239,68,68,.18);color:#fca5a5}
.sub{font-size:16px;font-weight:600;color:#e2e8f0;margin-top:6px}
.row{display:flex;gap:8px;justify-content:center}
input{font:inherit;font-size:24px;font-weight:700;width:110px;text-align:center;border:2px solid #334155;border-radius:12px;padding:6px;outline:none;color:#f8fafc;background:#0f172a;color-scheme:dark}
input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.14)}
input::placeholder{color:#64748b}
input[type=date]{font-size:17px;width:auto}
.btn{background:#2563eb;color:#fff;border:0;border-radius:12px;font:inherit;font-weight:700;font-size:18px;padding:11px 18px;cursor:pointer;box-shadow:0 4px 0 #1e40af;text-decoration:none;display:inline-block;transition:background .2s ease}
.btn:hover{background:#1d4ed8}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 #1e40af}
.btn:disabled{opacity:.6}
.btn.ghost{background:#334155;color:#e2e8f0;box-shadow:none}
.btn.ghost:hover{background:#475569}
.btn.green{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 4px 0 #166534}
.btn.green:hover{background:linear-gradient(135deg,#4ade80,#22c55e)}
.hearts{font-size:18px;margin-top:10px;letter-spacing:2px}
.msg{margin-top:10px;font-size:16px;font-weight:500;padding:10px 12px;border-radius:12px;border:1px solid transparent}
.msg.ok{background:rgba(34,197,94,.14);color:#86efac;border-color:rgba(34,197,94,.35)}
.msg.bad{background:rgba(239,68,68,.14);color:#fca5a5;border-color:rgba(239,68,68,.35)}
.msg.hint{background:rgba(250,204,21,.12);color:#fde68a;border-color:rgba(250,204,21,.3)}
.acts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.sol{margin-top:12px;background:#0f172a;border:1px solid #334155;border-radius:14px;padding:12px;text-align:center}
.sol .t{font-size:14px;color:#38bdf8;font-weight:700;margin-top:8px}
.sol .t:first-child{margin-top:0}
.sol .e{font-size:20px;font-weight:700;margin-top:2px;color:#f8fafc}
.end h2{font-size:24px;margin-bottom:6px;color:#f8fafc}
.squares{font-size:42px;letter-spacing:6px;margin:6px 0}
.streak{font-size:17px;font-weight:700;color:#fb923c}
.stat{font-size:15px;color:#94a3b8;margin-top:6px}
.share{white-space:pre-line;background:#0f172a;border:1px solid #334155;border-radius:14px;padding:12px;font-size:16px;margin:10px 0;text-align:left;color:#e2e8f0}
.cd{font-size:15px;color:#94a3b8;margin-top:12px}
.cd b{font-size:22px;color:#f8fafc;display:block}
textarea.fb{width:100%;height:110px;margin-top:8px;font:inherit;font-size:14px;background:#0f172a;color:#e2e8f0;border:1px solid #334155;border-radius:10px;padding:8px}
.painel{background:#1e293b;border:1px solid #334155;border-radius:16px;padding:12px;margin-bottom:10px;box-shadow:0 4px 14px rgba(0,0,0,.2);text-align:center}
.painel p{font-size:15px;margin-bottom:8px;color:#cbd5e1}
.rodape{text-align:center;margin-top:18px;font-size:14px}
.rodape a{color:#facc15;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.rodape a:hover{color:#fde047}
.carregando{text-align:center;padding:60px 0;font-size:18px;color:#94a3b8}
.layout-jogo{display:flex;justify-content:center;align-items:flex-start;gap:20px;width:100%}
.layout-jogo .app{margin:0}
.lateral{display:none}
.ad-slot,.lateral{text-align:center}
.ad-slot::before,.lateral::before{content:"Publicidade";display:block;margin-bottom:4px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#64748b}
.ad-slot{width:calc(100% - 28px);max-width:720px;margin:18px auto;min-height:100px}
.ad-slot[hidden],.lateral[hidden]{display:none!important}
@media (min-width:1100px){
html.ads-on .lateral:not([hidden]){display:block;position:sticky;top:20px;width:160px;min-height:600px;flex:0 0 160px}
}
.texto-jogo{width:calc(100% - 28px);max-width:720px;margin:10px auto 26px;font-size:17px;line-height:1.7;color:#e2e8f0}
.texto-jogo h1,.texto-jogo h2{margin:34px 0 12px;font-size:24px;line-height:1.25;color:#f8fafc}
.texto-jogo h3{margin:20px 0 6px;font-size:18px;line-height:1.35;color:#f8fafc}
.texto-jogo p{margin:0 0 14px}
.texto-jogo ul{margin:0 0 16px;padding-left:22px}
.texto-jogo li{margin-bottom:8px}
.texto-jogo strong{color:#f8fafc}
.texto-jogo a{color:#facc15;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.texto-jogo a:hover{color:#fde047}
.texto-jogo .caixa-exemplo{margin:16px 0;padding:16px 18px;background:#1e293b;border-left:4px solid #3b82f6;border-radius:12px}
.texto-jogo .caixa-exemplo p:last-child{margin-bottom:0}
.texto-jogo .conteudos-relacionados ul{list-style:none;padding-left:0}
.autor-box{display:flex;align-items:center;gap:14px;width:calc(100% - 28px);max-width:412px;margin:0 auto 26px;padding:14px;background:#1e293b;border:1px solid #334155;border-radius:16px;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.autor-foto{flex:0 0 64px;width:64px;height:64px}
.autor-foto img{display:block;width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #334155;background:linear-gradient(135deg,#1d4ed8,#0ea5e9)}
.autor-texto{flex:1;min-width:0}
.autor-selo{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#38bdf8}
.autor-nome{margin-top:1px;font-size:16px;font-weight:700;line-height:1.3}
.autor-nome a{color:#93c5fd;text-decoration:none}
.autor-nome a:hover{text-decoration:underline}
.autor-cargo{margin-top:2px;font-size:13px;color:#94a3b8}
.autor-credenciais-linha{margin-top:2px;font-size:12px;line-height:1.4;color:#64748b}
.autor-social{margin-top:6px;font-size:13px}
.autor-social a{color:#f9a8d4;text-decoration:none;font-weight:600}
.autor-social a:hover{text-decoration:underline}
@media (min-width:768px){
.autor-box{max-width:720px;width:calc(100% - 40px);gap:20px;padding:20px 24px;margin-bottom:32px}
.autor-foto{flex:0 0 84px;width:84px;height:84px}
.autor-foto img{width:84px;height:84px}
.autor-selo{font-size:12px}
.autor-nome{font-size:19px}
.autor-cargo{font-size:15px}
.autor-credenciais-linha{font-size:13.5px}
.autor-social{margin-top:8px;font-size:14.5px}
}
.site-rodape{background:#1e293b;border-top:1px solid #334155;padding:22px 16px;text-align:center;font-size:14px;color:#94a3b8}
.site-rodape nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-bottom:10px}
.site-rodape a{color:#cbd5e1;text-decoration:none}
.site-rodape a:hover{color:#38bdf8}
@keyframes pop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
.pop{animation:pop .35s ease-out}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.shake{animation:shake .3s}
.outros{margin-top:14px;font-size:15px;color:#94a3b8}
.outros a{color:#facc15;font-weight:600;display:block;margin-top:4px;text-decoration:underline;text-underline-offset:3px}
.outros a:hover{color:#fde047}


/* Desafio dos Palitos — tabuleiro (visual escuro, igual ao da Balança) */
.board{margin:14px auto 4px;background:#0f172a;border:1px solid #334155;border-radius:18px;padding:14px 6px;max-width:380px}
.board svg{width:100%;height:auto;display:block;touch-action:manipulation;user-select:none}
.slot{stroke:#334155;stroke-width:6;stroke-linecap:round;stroke-dasharray:2 9}
.slot.on{stroke:#38bdf8;stroke-dasharray:3 6}
.hit{stroke:transparent;stroke-width:26;stroke-linecap:round;cursor:pointer}
.stick line{stroke:#E9C38A;stroke-width:7;stroke-linecap:round}
.stick circle{fill:#E2452F}
.stick.sel{opacity:.55}.stick.sel line{stroke:#7dd3fc}.stick.sel circle{fill:#38bdf8}
.stick.novo line{stroke:#4ade80}
.stick.fix line{stroke:#d9c7a3}.stick.fix circle{fill:#b8402f}
.ghost line{stroke:#f87171;stroke-width:6;stroke-linecap:round;stroke-dasharray:4 6;opacity:.85}
.tip{font-size:14px;color:#94a3b8;margin-top:8px;min-height:20px}
