:root{font-family:Manrope,system-ui,sans-serif;color:#eaf5f5;background:#061521;font-synthesis:none;--bg:#071723;--panel:#0b2231;--panel2:#0e2a3b;--line:#1c4150;--text:#eef8f7;--muted:#8da8b1;--teal:#16c2b1;--gold:#f0c772;--cell:#e7f2ec;--cell-text:#102b37;--block:#102d3c;--highlight:#bdebe1;--selected:#f5cc73}
*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;overflow:hidden}button{font:inherit}button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.app-shell{height:100dvh;background:radial-gradient(circle at 65% 40%,#12384a 0,#081b28 45%,#06131e 100%);display:grid;grid-template-rows:70px 1fr;color:var(--text);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #173746;background:#071926dd;backdrop-filter:blur(16px);z-index:10}.brand{display:flex;align-items:center;gap:12px}.brand img{width:40px;height:40px;border-radius:11px}.brand div{display:grid}.brand strong{font-size:14px;letter-spacing:.18em}.brand span{color:var(--muted);font-size:11px;margin-top:2px}.top-status{display:flex;align-items:center;gap:15px}.save-state{font-size:12px;color:#abc0c5}.save-state i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-right:7px;box-shadow:0 0 8px var(--teal)}.save-state.saving i{background:var(--gold)}.device-badge,.phase,.direction{font-size:10px;font-weight:800;letter-spacing:.12em;border:1px solid #28505e;border-radius:999px;padding:6px 10px;color:#a9c4c8}.workspace{min-height:0;display:grid;grid-template-columns:250px minmax(360px,1fr) 250px}.side-panel,.inspector-panel{background:#081d2aeb;padding:22px;border-right:1px solid #173746;overflow:auto}.inspector-panel{border-right:0;border-left:1px solid #173746}.panel-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#acc2c7;font-weight:700}.phase{color:var(--gold);border-color:#5e5339}.metric-card{margin:18px 0 24px;padding:16px;background:linear-gradient(145deg,#103247,#0b2737);border:1px solid #1b4453;border-radius:14px;display:grid}.metric-card span,.metric-card small{font-size:11px;color:var(--muted)}.metric-card strong{font-size:30px;margin:4px 0}.metric-card b{color:var(--teal)}.section-label{margin:24px 0 10px;font-size:10px;letter-spacing:.14em;color:#6f929c;font-weight:800}.capabilities{list-style:none;margin:0;padding:0;display:grid;gap:14px}.capabilities li{display:flex;gap:10px;align-items:flex-start}.capabilities i{font-style:normal;background:#123d43;color:var(--teal);width:22px;height:22px;display:grid;place-items:center;border-radius:7px}.capabilities span{font-size:12px;font-weight:600;display:grid}.capabilities small{color:var(--muted);font-weight:400;margin-top:2px}.panel-note{display:flex;gap:10px;background:#102a38;border-radius:12px;padding:12px;margin-top:24px}.panel-note>span{color:var(--gold)}.panel-note p{font-size:11px;line-height:1.5;color:#9bb3b9;margin:0}.game-stage{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:20px 28px 14px}.stage-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}.eyebrow{font-size:9px;letter-spacing:.16em;color:var(--teal);font-weight:800}.stage-heading h1{font-size:23px;margin:4px 0 0}.direction{color:var(--gold)}.grid-viewport{position:relative;overflow:hidden;touch-action:none;border:1px solid #1c4251;border-radius:20px;background:radial-gradient(circle,#143647 0,#091d2b 62%);box-shadow:inset 0 0 80px #020b12b8;display:grid;place-items:center;min-height:280px}.grid-transform{transform-origin:center;will-change:transform}.puzzle-grid{display:grid;grid-template-columns:repeat(9,clamp(32px,5.2vmin,58px));grid-template-rows:repeat(9,clamp(32px,5.2vmin,58px));gap:3px;padding:8px;border-radius:12px;background:#061722;box-shadow:0 22px 50px #0008}.cell{border:0;border-radius:5px;background:linear-gradient(145deg,#f3f8f3,#ccded8);color:var(--cell-text);font-size:clamp(15px,2.3vmin,25px);font-weight:800;display:grid;place-items:center;min-width:0;padding:0;box-shadow:inset 0 -2px 1px #9db7af;cursor:pointer;transition:background .15s,transform .15s,box-shadow .15s}.cell.blocked{background:linear-gradient(145deg,#123444,#0a2130);box-shadow:inset 0 0 0 1px #173e4d;pointer-events:none}.cell.highlighted{background:linear-gradient(145deg,#d9f6ee,#a9ddd2)}.cell.selected{background:linear-gradient(145deg,#ffe6a5,#eab651);transform:scale(1.07);position:relative;z-index:2;box-shadow:0 0 0 2px #fff4c5,0 5px 16px #0007}.zoom-controls{position:absolute;bottom:12px;right:12px;display:flex;background:#081b28e8;border:1px solid #254957;border-radius:12px;padding:4px;box-shadow:0 8px 20px #0005}.zoom-controls button,.icon-button{background:transparent;border:0;color:#b9ced1;width:40px;height:38px;display:grid;place-items:center;border-radius:8px;cursor:pointer}.zoom-controls button:hover{background:#173847;color:#fff}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.input-dock{padding-top:10px;min-height:0}.keyboard{display:none}.slot-preview{background:linear-gradient(145deg,#103348,#0b2738);border:1px solid #1c4555;border-radius:14px;padding:15px;margin-top:18px;display:grid}.slot-preview>span{font-size:9px;color:var(--teal);letter-spacing:.15em;font-weight:800}.slot-preview strong{font-size:16px;margin:6px 0}.slot-preview div{font-family:ui-monospace,monospace;font-size:18px;letter-spacing:.18em;color:var(--gold);white-space:nowrap;overflow:hidden}.shortcut{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid #153847;font-size:11px;color:var(--muted)}kbd{font:600 10px Manrope;background:#153442;border:1px solid #2a4c59;border-bottom-width:2px;border-radius:5px;color:#d8e8e8;padding:4px 7px}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.action-row button,.secondary-action{border:1px solid #284956;background:#112f3d;color:#dceaea;border-radius:10px;padding:10px;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;font-size:11px}.action-row button:disabled{opacity:.35}.secondary-action{width:100%;margin-top:8px;background:transparent;color:#93adb3}.drawer-handle,.close-panel,.mobile-only{display:none}.bottom-bar{display:none}.update-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,140%);background:#edf8f5;color:#102b35;padding:10px 12px 10px 16px;border-radius:12px;box-shadow:0 14px 35px #0008;display:flex;gap:18px;align-items:center;font-size:12px;transition:transform .25s;z-index:50}.update-toast.show{transform:translate(-50%,0)}.update-toast button{border:0;border-radius:8px;background:#0c746c;color:white;padding:7px 10px;font-weight:700}
@media(max-width:1000px){.workspace{grid-template-columns:210px 1fr}.inspector-panel{position:fixed;right:16px;top:86px;bottom:16px;width:270px;border:1px solid #254552;border-radius:18px;z-index:20;box-shadow:0 18px 50px #0009;transform:translateX(calc(100% + 30px));transition:transform .2s}.inspector-panel.open{transform:none}.mobile-only,.close-panel{display:grid}.close-panel{position:absolute;right:12px;top:12px;background:transparent;border:0;color:#aec3c7;width:36px;height:36px;place-items:center}.game-stage{padding-right:20px}.keyboard{display:block}.keyboard>div{display:flex;justify-content:center;gap:4px;margin-bottom:4px}.keyboard button{height:34px;min-width:26px;padding:0 clamp(5px,1vw,10px);border:1px solid #284b59;background:#112f3e;color:#dce9e9;border-radius:6px;font-size:11px}.keyboard .key-delete{position:absolute;right:30px;bottom:16px}}
@media(max-width:700px){.app-shell{grid-template-rows:58px 1fr 62px}.topbar{padding:0 14px}.brand img{width:34px;height:34px}.brand span,.top-status .device-badge{display:none}.top-status{margin-left:auto;margin-right:4px}.workspace{display:block;min-height:0}.side-panel{display:none}.game-stage{height:100%;padding:10px 10px 5px;grid-template-rows:auto minmax(0,1fr) auto}.stage-heading{margin:0 4px 8px}.stage-heading h1{font-size:17px}.direction{font-size:8px;padding:5px 8px}.grid-viewport{border-radius:15px;min-height:0}.puzzle-grid{grid-template-columns:repeat(9,min(9.4vw,5.1dvh));grid-template-rows:repeat(9,min(9.4vw,5.1dvh));gap:2px;padding:5px}.cell{border-radius:3px;font-size:min(4.5vw,2.7dvh)}.zoom-controls{bottom:8px;right:8px}.zoom-controls button{width:36px;height:34px}.input-dock{height:112px;padding:8px 2px 0}.keyboard{height:100%;position:relative}.keyboard>div{margin-bottom:3px;gap:3px}.keyboard button{height:31px;min-width:0;flex:0 1 9.2%;padding:0;font-size:10px}.keyboard .key-delete{position:absolute;right:2px;bottom:1px;width:14%;height:31px}.bottom-bar{display:grid;grid-template-columns:repeat(4,1fr);background:#071a27;border-top:1px solid #173845;padding:6px 8px max(6px,env(safe-area-inset-bottom));z-index:9}.bottom-bar button{border:0;background:transparent;color:#8fa9b0;display:grid;place-items:center;gap:2px;font-size:9px}.bottom-bar button svg{width:19px;height:19px}.inspector-panel{left:8px;right:8px;top:auto;bottom:calc(68px + env(safe-area-inset-bottom));width:auto;max-height:62dvh;border-radius:20px;padding:18px 20px;transform:translateY(calc(100% + 90px))}.inspector-panel.open{transform:none}.drawer-handle{display:block;width:38px;height:4px;border-radius:4px;background:#36515d;margin:-8px auto 12px}.shortcut{display:none}.inspector-panel .section-label:nth-of-type(2){display:none}.update-toast{bottom:80px}}
@media(max-width:700px) and (orientation:landscape){.app-shell{grid-template-rows:52px 1fr}.bottom-bar{display:none}.game-stage{grid-template-columns:1fr 230px;grid-template-rows:auto 1fr}.stage-heading{grid-column:1/-1}.grid-viewport{grid-column:1}.input-dock{grid-column:2;height:auto;padding:0 0 0 10px;align-self:center}.keyboard>div{flex-wrap:wrap}.keyboard button{height:34px;flex-basis:17%}.keyboard .key-delete{position:static;width:100%;margin-top:4px}.inspector-panel{bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(min-width:701px) and (max-width:1000px){.bottom-bar{display:none!important}}

/* Fase 2 — Cruzadex clássico */
.top-progress{display:flex;align-items:center;gap:10px;color:#9cb5ba;font-size:11px}.top-progress>div{width:120px;height:5px;border-radius:9px;background:#183644;overflow:hidden}.top-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--teal),#6ce1d2);border-radius:9px;transition:width .2s}.play-workspace{grid-template-columns:270px minmax(360px,1fr) 240px}.word-summary{display:flex;align-items:baseline;gap:7px;margin:18px 0 20px}.word-summary strong{font-size:26px;color:var(--gold)}.word-summary span{font-size:11px;color:var(--muted)}.word-groups{display:grid;gap:18px}.word-group h3{display:flex;justify-content:space-between;margin:0 0 8px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#799aa3}.word-group h3 span{display:grid;place-items:center;background:#143542;border-radius:99px;min-width:21px;height:21px;color:#aac2c7}.word-group>div{display:grid;gap:6px}.word-chip{min-height:40px;border:1px solid #234653;background:#0e2a39;color:#e7f1f0;border-radius:9px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;letter-spacing:.08em;cursor:pointer;transition:transform .15s,border-color .15s,background .15s}.word-chip:hover{border-color:#3a6b73;transform:translateX(2px)}.word-chip.selected{background:#174c4c;border-color:var(--teal);box-shadow:0 0 0 1px #16c2b155}.word-chip.placed{opacity:.45;text-decoration:line-through;background:#0b2431;cursor:default}.word-chip svg{width:16px;color:var(--teal)}.classic-grid{grid-template-columns:repeat(var(--cols),clamp(31px,4.7vmin,53px));grid-template-rows:repeat(var(--rows),clamp(31px,4.7vmin,53px))}.cell.compatible:not(.selected){box-shadow:inset 0 0 0 3px #39cdb6,inset 0 -2px 1px #9db7af}.cell.error{background:linear-gradient(145deg,#ffd7cf,#e69c91);box-shadow:inset 0 0 0 2px #c3544c}.stat-line{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #153847;font-size:11px;color:var(--muted)}.stat-line strong{color:#dceaea}.secondary-action svg{width:16px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,120%);opacity:0;background:#f6e7bd;color:#263a3d;border:1px solid #f0c772;border-radius:11px;padding:10px 16px;font-size:12px;font-weight:650;box-shadow:0 14px 30px #0008;transition:.2s;z-index:60}.toast.show{transform:translate(-50%,0);opacity:1}.completion{position:fixed;inset:0;display:grid;place-items:center;background:#03101bc7;backdrop-filter:blur(8px);z-index:70;opacity:0;pointer-events:none;transition:opacity .22s}.completion.show{opacity:1;pointer-events:auto}.completion-card{width:min(420px,calc(100vw - 28px));background:linear-gradient(145deg,#12394b,#091f2d);border:1px solid #2b5260;border-radius:24px;padding:30px;text-align:center;box-shadow:0 30px 90px #000b}.completion-mark{width:64px;height:64px;margin:0 auto 15px;display:grid;place-items:center;border-radius:50%;color:#05262a;background:linear-gradient(145deg,#7fe8d7,#19bbaa);box-shadow:0 0 30px #16c2b155}.completion-mark svg{width:32px;height:32px;stroke-width:2.5}.completion-card>span{font-size:9px;letter-spacing:.18em;color:var(--gold);font-weight:800}.completion-card h2{margin:7px 0 6px;font-size:25px}.completion-card p{margin:0;color:#9eb6bb;font-size:12px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);margin:24px 0;background:#0a2635;border-radius:14px;padding:14px 6px}.result-grid div{display:grid;border-right:1px solid #1d4250}.result-grid div:last-child{border:0}.result-grid strong{color:#f2ce7c;font-size:17px}.result-grid span{color:#7898a1;font-size:9px;margin-top:3px}.primary-action{width:100%;border:0;border-radius:11px;background:linear-gradient(135deg,#12a99d,#168f88);color:#fff;padding:13px;font-weight:800;cursor:pointer}.text-action{border:0;background:transparent;color:#91aeb4;padding:13px 8px 0;font-size:11px;cursor:pointer}
@media(max-width:1000px){.play-workspace{grid-template-columns:220px 1fr}.classic-grid{grid-template-columns:repeat(var(--cols),clamp(30px,5.7vmin,51px));grid-template-rows:repeat(var(--rows),clamp(30px,5.7vmin,51px))}.top-progress>div{width:80px}}
@media(max-width:700px){.top-progress{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);gap:6px}.top-progress>div{width:72px}.top-progress #progress-label{font-size:9px}.save-state{margin-left:auto}.play-shell .game-stage{grid-template-rows:auto minmax(0,1fr) auto}.classic-grid{grid-template-columns:repeat(var(--cols),min(10.1vw,4.6dvh));grid-template-rows:repeat(var(--rows),min(10.1vw,4.6dvh))}.word-panel{display:block;position:fixed;left:8px;right:8px;bottom:calc(68px + env(safe-area-inset-bottom));top:auto;max-height:68dvh;border:1px solid #254552;border-radius:20px;padding:18px 20px;z-index:30;box-shadow:0 18px 50px #000c;transform:translateY(calc(100% + 90px));transition:transform .2s;overflow:auto}.word-panel.open{transform:none}.word-panel .drawer-handle{display:block}.word-groups{grid-template-columns:repeat(2,1fr);gap:14px}.word-group:last-child:nth-child(odd){grid-column:1/-1}.word-chip{min-height:44px}.play-shell .inspector-panel{z-index:31}.bottom-bar button{position:relative}.bottom-bar b{position:absolute;top:0;left:calc(50% + 7px);min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border-radius:10px;background:var(--gold);color:#18303a;font-size:9px}.toast{bottom:78px;max-width:calc(100vw - 30px);text-align:center}.completion-card{padding:25px 22px}}
@media(max-width:700px) and (orientation:landscape){.word-panel{left:auto;width:300px;top:60px;bottom:8px}.classic-grid{grid-template-columns:repeat(var(--cols),min(6.3vw,7dvh));grid-template-rows:repeat(var(--rows),min(6.3vw,7dvh))}}
.update-toast{opacity:0;pointer-events:none}.update-toast.show{opacity:1;pointer-events:auto}.play-shell .slot-preview div{font-size:15px;letter-spacing:.11em}
.word-chip.dragging{opacity:.55;transform:scale(.97)}

/* Fase 3 — modalidades */
.mode-current{display:flex;align-items:center;gap:8px;margin-left:20px;border:1px solid #294955;background:#102b38;color:#dcebea;border-radius:999px;padding:8px 13px;font-size:11px;font-weight:700;cursor:pointer}.mode-current b{color:var(--gold);font-size:13px}.theme-label{display:block;margin-top:4px;color:#c7a958;font-size:10px;letter-spacing:.1em;text-transform:uppercase}.mode-picker{position:fixed;inset:0;display:grid;place-items:center;background:#03101bc9;backdrop-filter:blur(8px);z-index:80;opacity:0;pointer-events:none;transition:opacity .2s}.mode-picker.show{opacity:1;pointer-events:auto}.mode-card{position:relative;width:min(600px,calc(100vw - 28px));background:linear-gradient(145deg,#12374a,#081e2c);border:1px solid #2b5361;border-radius:24px;padding:28px;box-shadow:0 30px 90px #000c}.mode-card>span{font-size:9px;letter-spacing:.17em;color:var(--teal);font-weight:800}.mode-card h2{margin:6px 0 20px;font-size:24px}.mode-close{position:absolute;right:18px;top:18px;width:38px;height:38px;border:0;border-radius:10px;background:#163544;color:#aac1c5;display:grid;place-items:center;cursor:pointer}.mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mode-options button{position:relative;min-height:150px;border:1px solid #294b58;background:#0c2837;color:#eaf3f2;border-radius:16px;padding:20px 15px;text-align:left;display:flex;flex-direction:column;cursor:pointer;transition:.16s}.mode-options button:hover{transform:translateY(-3px);border-color:#47717a;background:#113244}.mode-options i{display:block;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--mode-color) 22%,#0b2635);border:1px solid var(--mode-color);box-shadow:inset 0 0 0 8px #0b2635;margin-bottom:18px}.mode-options strong{font-size:13px}.mode-options small{margin-top:6px;color:#91aab0;font-size:10px;line-height:1.45}.numeric-keyboard{display:grid!important;grid-template-columns:repeat(4,42px);justify-content:center;gap:4px}.numeric-keyboard>div{display:contents}.numeric-keyboard button{height:38px!important;min-width:38px!important;flex:none!important}.numeric-keyboard .key-delete{position:static!important;width:auto!important;height:38px!important}.numeric-keyboard>div:last-of-type button{grid-column:2}.numeric-keyboard .key-delete{grid-column:3}
html[data-puzzle-mode="thematic"]{--teal:#d8b55f;--highlight:#f1e1b4;--selected:#f0c96e}html[data-puzzle-mode="numerix"]{--teal:#8c9cff;--highlight:#d8dcff;--selected:#aeb8ff}html[data-puzzle-mode="numerix"] .cell{font-variant-numeric:tabular-nums}
@media(max-width:700px){.mode-current{position:absolute;left:50%;top:9px;transform:translateX(-50%);margin:0;padding:7px 10px}.top-progress{display:none}.brand span{display:none}.mode-options{grid-template-columns:1fr}.mode-options button{min-height:82px;padding:14px 14px 14px 62px;justify-content:center}.mode-options i{position:absolute;left:14px;top:22px;margin:0}.mode-card{max-height:calc(100dvh - 24px);overflow:auto;padding:24px 18px}.mode-card h2{font-size:21px}.numeric-keyboard{height:auto!important;grid-template-columns:repeat(4,1fr);padding:0 22px}.numeric-keyboard button{height:42px!important;max-width:none!important}.numeric-keyboard .key-delete{width:auto!important}}

/* Fase 4 — Cripto-Cruzadas e Codeword */
.mode-options{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.code-panel h3{margin:0 0 10px;font-size:10px;letter-spacing:.12em;color:#799aa3}
.code-panel>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.code-map{position:relative;min-height:42px;border:1px solid #294a58;border-radius:10px;background:#0d2a39;color:#91aab0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 8px;cursor:pointer}
.code-map strong{color:#dce9e8;font-size:12px}.code-map b{color:#f1cd79;font-size:15px}.code-map span{font-size:10px}
.code-map.solved{background:#123846;border-color:#38606b}.code-map.given{border-color:#dfbd69;background:#352f27}.code-map.selected{border-color:var(--teal);box-shadow:0 0 0 2px color-mix(in srgb,var(--teal) 35%,transparent)}
.code-map small{position:absolute;right:4px;top:2px;color:#d9bb71;font-size:7px;text-transform:uppercase}
.code-cell{position:relative;grid-template-rows:1fr;padding-top:7px}
.code-cell small{position:absolute;top:2px;left:4px;color:#49666a;font-size:clamp(7px,1vmin,10px);font-weight:800;line-height:1}
.code-cell span{font-size:inherit}.code-cell.given{background:linear-gradient(145deg,#fff0c8,#d8bd79)}.code-cell.given small{color:#756232}
html[data-puzzle-mode="crypto"]{--teal:#b991ff;--highlight:#e3d4ff;--selected:#c9a8ff}
html[data-puzzle-mode="codeword"]{--teal:#ff927d;--highlight:#ffe0d9;--selected:#ffa894}
@media(max-width:700px){.code-panel>div{grid-template-columns:repeat(3,minmax(0,1fr))}.code-map{min-height:44px}.code-cell{padding-top:5px}.code-cell small{top:1px;left:2px;font-size:6px}}

/* Fase 5 — variações de entradas */
.word-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.word-row .word-chip{width:100%}
.mark-entry{width:40px;min-height:40px;border:1px solid #31515d;border-radius:9px;background:#102d3b;color:#7998a0;font-weight:900;font-size:16px;cursor:pointer}
.mark-entry.possible{color:#79d8c9;border-color:#358477;background:#123d3d}.mark-entry.unlikely{color:#f0c879;border-color:#786536;background:#393225}.mark-entry.excluded{color:#ff8c7d;border-color:#85493f;background:#3d2725}
.word-chip.unlikely{opacity:.65}.word-chip.excluded{text-decoration:line-through;opacity:.38}
.progressive-locks{display:flex;align-items:center;gap:9px;border:1px dashed #3d5260;border-radius:11px;padding:11px;color:#78949c}
.progressive-locks b{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#1c3442;color:#e878c2}.progressive-locks span{font-size:10px}
html[data-puzzle-mode="anagram"]{--teal:#5fd39a;--highlight:#cef5df;--selected:#76dfa9}html[data-puzzle-mode="anagram"] .word-chip span{letter-spacing:.2em}
html[data-puzzle-mode="incomplete"]{--teal:#63b8ff;--highlight:#d3ebff;--selected:#82c5ff}html[data-puzzle-mode="incomplete"] .word-chip span{font-family:ui-monospace,monospace;letter-spacing:.16em}
html[data-puzzle-mode="elimination"]{--teal:#ffb45f;--highlight:#ffe5c7;--selected:#ffc27c}
html[data-puzzle-mode="progressive"]{--teal:#e878c2;--highlight:#f8d8ed;--selected:#ed95ce}
@media(max-width:700px){.mark-entry{width:44px;min-height:44px}.word-panel .word-row{min-width:0}.mode-options{grid-template-columns:1fr}}

/* Fase 6 — fragmentos, peças e sílabas */
.fragment-list{display:grid;gap:10px}.fragment-card{border:1px solid #234653;border-radius:12px;background:#0b2635;padding:10px}.fragment-card.assembled{border-color:#3a8b84;background:#10373c}.fragment-card.placed{opacity:.55}
.fragment-build{min-height:28px;display:flex;align-items:center;justify-content:space-between;color:#dbeae8;font-size:11px}.fragment-build strong{letter-spacing:.06em}.fragment-build button{width:28px;height:28px;border:0;border-radius:7px;background:#173a47;color:#95afb4;cursor:pointer}
.fragment-bank{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.fragment-bank button{position:relative;min-width:44px;min-height:36px;border:1px solid #37606a;border-radius:8px;background:#153846;color:#e7f1ef;padding:0 10px;font-weight:800;cursor:pointer}.fragment-bank button.used{background:#294238;border-color:#73d6d1;color:#83e4dd}.fragment-bank small{position:absolute;right:3px;top:1px;color:#73d6d1;font-size:7px}
.fragment-card .word-chip.ready{margin-top:7px;background:#174c4c;border-color:#73d6d1}.fragment-card .word-chip.ready b{font-size:8px;text-transform:uppercase;color:#73d6d1}
.jigsaw-chip{padding:5px 8px}.jigsaw-piece{display:flex!important;gap:3px;align-items:center}.jigsaw-piece i{position:relative;font-style:normal;background:#173c49;border:1px solid #3d626c;border-radius:5px;padding:5px 7px;color:#e9f2ef;box-shadow:inset 0 -2px #0a2632}.jigsaw-piece i+ i:before{content:'';position:absolute;left:-6px;top:50%;width:6px;height:8px;border-radius:50%;background:#173c49;transform:translateY(-50%)}
.syllable-cell{font-size:clamp(10px,1.7vmin,17px);letter-spacing:-.03em}.syllable-keyboard{display:block}.syllable-keyboard>div{display:flex;justify-content:center;gap:5px;margin-bottom:5px}.syllable-keyboard button{min-width:48px;height:38px;border:1px solid #365343;border-radius:8px;background:#193629;color:#e9f1e6;font-size:11px;font-weight:700}.syllable-keyboard .key-delete{display:block;margin:0 auto}
html[data-puzzle-mode="fragments"]{--teal:#73d6d1;--highlight:#d3f4f2;--selected:#8ce1dd}
html[data-puzzle-mode="jigsaw"]{--teal:#d7a66c;--highlight:#f5e3cc;--selected:#e5b982}
html[data-puzzle-mode="syllabic"]{--teal:#9dbb68;--highlight:#e5edcf;--selected:#b4ca84}
html[data-puzzle-mode="syllabic"] .classic-grid{grid-template-columns:repeat(var(--cols),clamp(58px,8vmin,90px));grid-template-rows:repeat(var(--rows),clamp(58px,8vmin,90px))}
@media(max-width:700px){.fragment-card{padding:9px}.fragment-bank button{min-height:44px}.jigsaw-piece i{padding:5px}.syllable-keyboard{padding:0 4px}.syllable-keyboard button{min-width:0;flex:1;height:40px}.syllable-keyboard .key-delete{width:22%}html[data-puzzle-mode="syllabic"] .classic-grid{grid-template-columns:repeat(var(--cols),min(18vw,9dvh));grid-template-rows:repeat(var(--rows),min(18vw,9dvh))}.syllable-cell{font-size:min(3.4vw,2dvh)}}

/* Fase 7 — pares, cadeias e dedução lógica */
.double-list{display:grid;gap:10px}.double-card{border:1px solid #3c4858;border-radius:12px;background:#102837;padding:9px}.double-card>small{display:block;margin-bottom:7px;color:#e88e9d;font-size:8px;letter-spacing:.14em}.double-card>div{display:grid;grid-template-columns:1fr auto 1fr;gap:5px;align-items:center}.double-card i{font-style:normal;color:#6f8991;font-size:10px}.double-card .word-chip{padding:0 7px;justify-content:center;min-width:0}.double-card .word-chip span{overflow:hidden;text-overflow:ellipsis}
.chain-list{display:grid;justify-items:stretch}.chain-link{position:relative;display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;padding-bottom:20px}.chain-link>b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#163a49;color:#75c6e8;font-size:10px;border:1px solid #356171}.chain-link>i{position:absolute;left:13px;bottom:2px;color:#507786;font-style:normal}.chain-link:last-child{padding-bottom:0}.chain-link .word-chip{width:100%}
.logic-panel{display:grid;gap:14px}.logic-clues{border:1px solid #453e59;border-radius:12px;background:#1a2638;padding:11px}.logic-panel h3{margin:0 0 8px;color:#c59ae8;font-size:9px;letter-spacing:.12em}.logic-clues ol{margin:0;padding-left:20px;display:grid;gap:7px}.logic-clues li{color:#b2c3c6;font-size:9px;line-height:1.4;padding-left:2px}.logic-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.logic-entries .word-chip{min-width:0}
.logic-notes{border-top:1px solid #284653;padding-top:12px}.logic-notes>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.logic-notes button{min-height:42px;border:1px solid #314f5c;border-radius:9px;background:#102c3a;color:#829ea5;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;padding:0 8px;text-align:left;cursor:pointer}.logic-notes b{color:#d8e7e7;font-size:10px}.logic-notes span{font-size:8px}.logic-notes .candidate{border-color:#4a8f83;color:#71d1c2}.logic-notes .hypothesis{border-color:#8a7443;color:#e4c476}.logic-notes .excluded{border-color:#80483f;color:#f18a7c;text-decoration:line-through}.logic-prompt{margin:0;color:#78969e;font-size:9px;line-height:1.4}
html[data-puzzle-mode="double"]{--teal:#e88e9d;--highlight:#f8dce1;--selected:#eea5b1}
html[data-puzzle-mode="chain"]{--teal:#75c6e8;--highlight:#d7f0fa;--selected:#91d2ed}
html[data-puzzle-mode="logical"]{--teal:#c59ae8;--highlight:#eadcf6;--selected:#d3b0ef}
@media(max-width:700px){.double-card .word-chip,.chain-link .word-chip,.logic-entries .word-chip,.logic-notes button{min-height:44px}.logic-clues li{font-size:10px}.logic-notes>div{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Phase 8 — library, campaign and local profile */
.brand{border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.brand>span{display:grid}.brand small{font-size:10px;color:var(--muted)}
.app-hub{position:fixed;inset:0;z-index:65;display:none;grid-template-rows:auto auto 1fr auto;background:#0d1413;color:#eef0e8;overflow:hidden}.app-hub.show{display:grid}.hub-header{min-height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(24px,5vw,76px);border-bottom:1px solid #ffffff12;background:#101a18}.hub-brand{display:flex;align-items:center;gap:13px}.hub-brand img{width:40px;height:40px;border-radius:11px}.hub-brand div{display:grid}.hub-brand strong{font:700 18px/1 Georgia,serif;letter-spacing:.16em}.hub-brand span{margin-top:5px;font-size:9px;letter-spacing:.2em;color:#aeb6a9}.hub-continue,.hub-primary,.daily-card button{border:0;border-radius:9px;padding:12px 19px;background:#d7ad54;color:#15150f;font-weight:800;cursor:pointer}.hub-nav{display:flex;gap:4px;padding:0 clamp(20px,5vw,72px);border-bottom:1px solid #ffffff12;background:#101a18;overflow-x:auto}.hub-nav button{padding:17px 14px 14px;border:0;border-bottom:2px solid transparent;background:none;color:#9da8a1;font:700 11px/1 inherit;letter-spacing:.07em;white-space:nowrap;cursor:pointer}.hub-nav button.active{color:#f0ca74;border-color:#d7ad54}.hub-content{overflow:auto;padding:clamp(28px,5vw,72px) clamp(22px,6vw,100px) 60px}.privacy-note{margin:0;padding:8px;text-align:center;border-top:1px solid #ffffff0d;color:#66716b;font-size:10px;background:#0d1413}.hub-hero{max-width:1220px;margin:auto;display:grid;grid-template-columns:1.25fr .75fr;align-items:stretch;gap:28px}.hub-hero>div:first-child{padding:38px 0}.hub-hero span,.hub-page-head>span,.hub-section-title span{color:#d7ad54;font-size:10px;font-weight:800;letter-spacing:.2em}.hub-hero h1,.hub-page-head h1{margin:16px 0;font:400 clamp(38px,5vw,68px)/.98 Georgia,serif;color:#f2f0e7}.hub-hero p,.hub-page-head p{max-width:570px;color:#98a39c;line-height:1.7}.hub-primary{margin-top:18px;padding:14px 24px}.daily-card{position:relative;overflow:hidden;padding:32px;border:1px solid #d7ad5440;border-radius:20px;background:radial-gradient(circle at 100% 0,#d7ad5420,transparent 45%),#15201d;box-shadow:0 22px 50px #0005}.daily-card:after{content:'R';position:absolute;right:-12px;bottom:-45px;font:180px/1 Georgia,serif;color:#ffffff06}.daily-card>*{position:relative;z-index:1}.daily-card small{color:#d7ad54;letter-spacing:.14em}.daily-card h2{margin:45px 0 10px;font:36px Georgia,serif}.daily-card p{min-height:52px;color:#a9b1ab}.daily-card code{display:block;margin:25px 0;padding:10px;border:1px dashed #ffffff25;border-radius:7px;color:#bbc2ba;letter-spacing:.12em}.daily-card button{width:100%}.daily-card button.done{background:#52645d;color:white}.hub-section{max-width:1220px;margin:52px auto 0}.hub-section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.hub-section-title h2{margin:6px 0 0;font:30px Georgia,serif}.hub-section-title button{border:0;background:none;color:#d7ad54;cursor:pointer}.hub-mode-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hub-mode-card{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #ffffff12;border-radius:12px;background:#141e1c;color:inherit;text-align:left;cursor:pointer}.hub-mode-card>i,.mode-stats i{width:8px;height:35px;border-radius:5px;background:var(--mode-color)}.hub-mode-card span{display:grid;flex:1}.hub-mode-card small{margin-top:4px;color:#7f8b84}.hub-mode-card>b{color:#d7ad54;font-size:11px}.hub-page-head{max-width:1220px;margin:0 auto 30px}.hub-page-head h1{font-size:clamp(35px,4vw,54px)}.campaign-meter{height:5px;margin-top:24px;max-width:600px;border-radius:5px;background:#ffffff10;overflow:hidden}.campaign-meter i{display:block;height:100%;background:#d7ad54}.campaign-grid,.collection-grid,.achievement-grid,.stat-cards{max-width:1220px;margin:auto;display:grid;gap:12px}.campaign-grid{grid-template-columns:repeat(3,1fr)}.campaign-level{min-height:90px;display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #ffffff12;border-radius:12px;background:#141e1c;color:inherit;text-align:left;cursor:pointer}.campaign-level>small{color:#65716b}.campaign-level>i{width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--mode-color) 35%,#121b19);border:1px solid var(--mode-color)}.campaign-level span{display:grid;flex:1}.campaign-level em{margin-top:5px;color:#77847d;font-size:10px;font-style:normal}.campaign-level>b{color:#d7ad54}.campaign-level.locked{opacity:.4;cursor:not-allowed}.campaign-level.done{border-color:#d7ad5435}.collection-grid{grid-template-columns:repeat(2,1fr)}.collection-card{padding:28px;border:1px solid #ffffff12;border-radius:16px;background:#141e1c}.collection-card small{color:#d7ad54}.collection-card h2{margin:9px 0;font:28px Georgia,serif}.collection-card p{color:#89958e}.collection-dots{display:flex;gap:7px;margin:28px 0}.collection-dots i{width:100%;height:5px;border-radius:4px;background:#ffffff12}.collection-dots i.done{background:#d7ad54}.collection-card button{border:0;background:none;color:#d7ad54;font-weight:700;cursor:pointer}.stat-cards{grid-template-columns:repeat(4,1fr)}.stat-cards article{display:grid;gap:9px;padding:27px;border:1px solid #ffffff12;border-radius:15px;background:#141e1c}.stat-cards strong{font:38px Georgia,serif;color:#f0ca74}.stat-cards span{color:#86928b;font-size:11px}.mode-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:#ffffff10;border:1px solid #ffffff10;border-radius:12px;overflow:hidden}.mode-stats>div{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px;padding:13px;background:#141e1c}.mode-stats i{height:25px;width:4px}.mode-stats span{color:#718079;font-size:10px}.mode-stats b{color:#bbc2bc}.achievement-grid{grid-template-columns:repeat(4,1fr)}.achievement-grid article{position:relative;min-height:180px;padding:24px;border:1px solid #ffffff0e;border-radius:15px;background:#111a18;color:#6d7872}.achievement-grid article>b{font-size:28px}.achievement-grid article>small{position:absolute;right:20px;top:22px}.achievement-grid h2{color:#87928c;font:23px Georgia,serif}.achievement-grid p{min-height:42px;font-size:12px;line-height:1.5}.achievement-grid span{font-size:8px;letter-spacing:.15em}.achievement-grid .unlocked{border-color:#d7ad5448;background:linear-gradient(145deg,#19241f,#141c1a);color:#d7ad54}.achievement-grid .unlocked h2{color:#f1eee3}.settings-card{max-width:900px;margin:auto;padding:28px;border:1px solid #ffffff12;border-radius:16px;background:#141e1c}.settings-card h2{margin:4px 0 18px;font:24px Georgia,serif}.settings-card h2:not(:first-child){margin-top:36px}.theme-options{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.theme-options button,.scale-options button,.favorite-grid button{border:1px solid #ffffff16;border-radius:9px;background:#101816;color:#aab3ad;cursor:pointer}.theme-options button{padding:9px}.theme-options button>i{display:block;height:42px;margin-bottom:8px;border-radius:6px;background:#111}.theme-options .theme-light{background:#eee}.theme-options .theme-auto{background:linear-gradient(90deg,#eee 50%,#111 50%)}.theme-options .theme-paper{background:#e5dcc3}.theme-options .theme-wood{background:#805837}.theme-options .theme-slate{background:#39464a}.theme-options button.selected,.scale-options button.selected,.favorite-grid button.selected{border-color:#d7ad54;color:#f0ca74;background:#d7ad5410}.setting-row{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #ffffff0e}.setting-row span{display:grid}.setting-row small{margin-top:4px;color:#748079}.setting-row input{width:22px;height:22px;accent-color:#d7ad54}.scale-options{display:flex;gap:5px}.scale-options button{min-width:45px;padding:9px}.favorite-grid{display:flex;flex-wrap:wrap;gap:7px}.favorite-grid button{padding:10px 13px}.result-grid{grid-template-columns:repeat(4,1fr)!important}.completion-card>.secondary-action{margin-top:8px}
.reduce-motion *{scroll-behavior:auto!important;animation:none!important;transition:none!important}.high-contrast button:focus-visible,.high-contrast .cell.selected{outline:3px solid #fff!important;outline-offset:2px}.high-contrast .app-hub{--muted:#fff}.hub-content{font-size:calc(1rem * var(--font-scale,1))}
html[data-theme="light"] .app-hub,html[data-theme="paper"] .app-hub,html[data-theme="auto"] .app-hub{background:#eeeae0;color:#1c2724}html[data-theme="light"] .hub-header,html[data-theme="light"] .hub-nav,html[data-theme="paper"] .hub-header,html[data-theme="paper"] .hub-nav,html[data-theme="auto"] .hub-header,html[data-theme="auto"] .hub-nav{background:#faf8f2;border-color:#0002}html[data-theme="light"] .hub-hero h1,html[data-theme="light"] .hub-page-head h1,html[data-theme="paper"] .hub-hero h1,html[data-theme="paper"] .hub-page-head h1,html[data-theme="auto"] .hub-hero h1,html[data-theme="auto"] .hub-page-head h1{color:#17211f}html[data-theme="light"] :is(.hub-mode-card,.campaign-level,.collection-card,.stat-cards article,.mode-stats>div,.achievement-grid article,.settings-card),html[data-theme="paper"] :is(.hub-mode-card,.campaign-level,.collection-card,.stat-cards article,.mode-stats>div,.achievement-grid article,.settings-card),html[data-theme="auto"] :is(.hub-mode-card,.campaign-level,.collection-card,.stat-cards article,.mode-stats>div,.achievement-grid article,.settings-card){background:#faf8f2;border-color:#0002;color:#1b2723}html[data-theme="paper"] .app-hub{background:#e4dbc3}html[data-theme="wood"] .app-hub{background:#261c17}html[data-theme="wood"] :is(.hub-header,.hub-nav){background:#32241d}html[data-theme="slate"] .app-hub{background:#182124}html[data-theme="slate"] :is(.hub-header,.hub-nav){background:#202d30}
@media(prefers-color-scheme:dark){html[data-theme="auto"] .app-hub{background:#0d1413;color:#eef0e8}html[data-theme="auto"] .hub-header,html[data-theme="auto"] .hub-nav{background:#101a18;border-color:#ffffff12}html[data-theme="auto"] .hub-hero h1,html[data-theme="auto"] .hub-page-head h1{color:#f2f0e7}html[data-theme="auto"] :is(.hub-mode-card,.campaign-level,.collection-card,.stat-cards article,.mode-stats>div,.achievement-grid article,.settings-card){background:#141e1c;border-color:#ffffff12;color:#eef0e8}}
@media(max-width:800px){.hub-header{min-height:62px;padding:0 16px}.hub-brand span{display:none}.hub-continue{padding:9px 12px}.hub-nav{padding:0 8px}.hub-nav button{padding:14px 10px 11px}.hub-content{padding:24px 16px 50px}.hub-hero{grid-template-columns:1fr}.hub-hero>div:first-child{padding:5px 0}.hub-hero h1{font-size:42px}.daily-card{padding:24px}.daily-card h2{margin-top:28px}.hub-mode-list,.campaign-grid,.collection-grid,.achievement-grid{grid-template-columns:1fr}.stat-cards{grid-template-columns:repeat(2,1fr)}.mode-stats{grid-template-columns:1fr}.theme-options{grid-template-columns:repeat(3,1fr)}.settings-card{padding:20px}.result-grid{grid-template-columns:repeat(2,1fr)!important}}

/* Phase 8 app shell: compact, task-first and deliberately non-editorial. */
.app-hub{grid-template-rows:64px 1fr 68px;background:#101513}.hub-header{grid-row:1;padding:0 max(20px,calc((100vw - 960px)/2));min-height:64px;background:#151c19;border-bottom:1px solid #ffffff10}.hub-brand img{width:36px;height:36px;border-radius:9px}.hub-brand strong{font:800 15px/1 inherit;letter-spacing:.11em}.hub-brand span{font-size:10px;letter-spacing:0;color:#8e9993}.hub-continue{width:40px;height:40px;padding:0;border-radius:50%;font-size:13px}.hub-content{grid-row:2;padding:24px max(20px,calc((100vw - 960px)/2)) 34px}.hub-nav{grid-row:3;display:grid;grid-template-columns:repeat(6,1fr);align-items:stretch;padding:0 max(12px,calc((100vw - 720px)/2));background:#151c19;border-top:1px solid #ffffff10;border-bottom:0;box-shadow:0 -10px 30px #0002}.hub-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 5px;border:0;color:#77827c;font-size:9px;letter-spacing:0}.hub-nav button b{font-size:20px;font-weight:400;line-height:1}.hub-nav button.active{border:0;color:#e5bd64}.privacy-note{display:none}.app-dashboard{max-width:960px;margin:auto}.dashboard-greeting{display:flex;align-items:center;justify-content:space-between;padding:5px 2px 18px}.dashboard-greeting small{color:#d7ad54;font-size:9px;font-weight:800;letter-spacing:.16em}.dashboard-greeting h1{margin:5px 0 2px;font:700 26px/1.2 inherit;color:#f4f2eb}.dashboard-greeting p{margin:0;color:#89948e;font-size:12px}.level-ring{width:58px;height:58px;display:flex;align-items:baseline;justify-content:center;padding-top:18px;border:3px solid #d7ad54;border-radius:50%;box-sizing:border-box}.level-ring strong{font-size:18px}.level-ring span{font-size:9px;color:#89948e}.resume-card{width:100%;display:flex;align-items:center;gap:15px;padding:17px;border:1px solid #ffffff10;border-radius:15px;background:#18211e;color:#edf0e9;text-align:left;box-shadow:0 8px 22px #0002;cursor:pointer}.resume-card>i{width:6px;height:48px;border-radius:4px;background:var(--mode-color)}.resume-card span{display:grid;flex:1;gap:4px}.resume-card small{color:#d7ad54;font-size:8px;font-weight:800;letter-spacing:.14em}.resume-card strong{font-size:17px}.resume-card em{color:#7f8b84;font-size:10px;font-style:normal}.resume-card>b{font-size:32px;color:#d7ad54}.dashboard-title{display:flex;align-items:end;justify-content:space-between;margin:25px 2px 10px}.dashboard-title h2{margin:0;font:700 15px/1.2 inherit}.dashboard-title span{color:#79857e;font-size:10px}.app-dashboard .daily-card{min-height:0;padding:20px;border-radius:15px;background:linear-gradient(120deg,#202c26,#18211e);box-shadow:none}.app-dashboard .daily-card:after{font-size:110px;bottom:-28px}.app-dashboard .daily-card h2{margin:8px 0 4px;font:700 21px/1.2 inherit}.app-dashboard .daily-card p{min-height:0;margin:0 0 16px;font-size:11px}.app-dashboard .daily-card code{display:none}.app-dashboard .daily-card button{width:auto;padding:10px 16px}.app-dashboard .hub-mode-list{grid-template-columns:repeat(3,1fr)}.app-dashboard .hub-mode-card{min-height:68px}.hub-page-head{margin:0 auto 22px}.hub-page-head h1{margin:5px 0 4px;font:700 26px/1.2 inherit}.hub-page-head p{margin:0;line-height:1.5;font-size:12px}.campaign-grid{grid-template-columns:repeat(2,1fr)}.campaign-level{min-height:75px}.collection-card h2,.hub-section-title h2,.settings-card h2{font-family:inherit;font-weight:700}.collection-card{padding:22px}.collection-card h2{font-size:20px}.stat-cards strong{font-family:inherit;font-weight:800}.achievement-grid{grid-template-columns:repeat(3,1fr)}.achievement-grid h2{font-family:inherit;font-weight:700;font-size:18px}.settings-card{padding:22px}
@media(max-width:650px){.app-hub{grid-template-rows:58px 1fr 62px}.hub-header{min-height:58px;padding:0 14px}.hub-brand span{display:block}.hub-content{padding:18px 14px 26px}.hub-nav{padding:0 3px}.hub-nav button{font-size:8px}.hub-nav button b{font-size:18px}.app-dashboard .hub-mode-list{grid-template-columns:1fr}.campaign-grid,.collection-grid,.achievement-grid{grid-template-columns:1fr}.dashboard-greeting h1{font-size:23px}.stat-cards{grid-template-columns:repeat(2,1fr)}.stat-cards article{padding:18px}.stat-cards strong{font-size:27px}.theme-options{grid-template-columns:repeat(3,1fr)}}

/* Compact type scale: no oversized editorial headings. */
.dashboard-greeting h1,.hub-page-head h1{font-size:22px}.app-dashboard .daily-card h2{font-size:18px}.app-dashboard .daily-card:after{font-size:78px}.resume-card strong{font-size:16px}.resume-card>b{font-size:25px}.collection-card h2,.settings-card h2{font-size:18px}.achievement-grid h2{font-size:16px}.hub-content{scroll-behavior:auto}
#hub-content h1{font-size:22px!important}#hub-content h2{font-size:18px!important}
@media(max-width:650px){.dashboard-greeting h1,.hub-page-head h1{font-size:20px}.stat-cards strong{font-size:24px}}

@media(max-width:650px){
  .hub-content{padding:12px 12px 18px}.dashboard-greeting{padding:0 2px 9px}.dashboard-greeting p{display:none}.level-ring{width:46px;height:46px;padding-top:13px}.resume-card{padding:11px 13px}.resume-card>i{height:35px}.resume-card em{display:none}.dashboard-title{margin:14px 2px 7px}.app-dashboard .daily-card{display:grid;grid-template-columns:1fr auto;align-items:center;padding:13px 15px}.app-dashboard .daily-card small,.app-dashboard .daily-card p{display:none}.app-dashboard .daily-card h2{margin:0}.app-dashboard .daily-card button{grid-column:2;grid-row:1;padding:9px 12px}.app-dashboard .daily-card:after{display:none}.app-dashboard .hub-mode-list{grid-template-columns:repeat(3,1fr);gap:7px}.app-dashboard .hub-mode-card{min-height:72px;display:grid;justify-items:center;gap:4px;padding:9px 5px;text-align:center}.app-dashboard .hub-mode-card>i{width:27px;height:5px}.app-dashboard .hub-mode-card span{display:block}.app-dashboard .hub-mode-card small,.app-dashboard .hub-mode-card>b{display:none}.app-dashboard .hub-mode-card strong{font-size:10px;line-height:1.15}.hub-page-head{margin-bottom:12px}.hub-page-head p{display:none}.campaign-meter{margin-top:12px}.campaign-grid{grid-template-columns:repeat(3,1fr);gap:7px}.campaign-level{min-height:88px;display:grid;justify-items:center;gap:3px;padding:8px;text-align:center}.campaign-level>small{position:absolute;align-self:start;justify-self:start}.campaign-level>i{width:32px;height:32px}.campaign-level span{display:block}.campaign-level strong{display:block;font-size:9px;line-height:1.15}.campaign-level em,.campaign-level>b{display:none}.collection-grid{grid-template-columns:repeat(2,1fr);gap:8px}.collection-card{min-height:130px;padding:14px}.collection-card h2{font-size:14px!important}.collection-card p{display:none}.collection-dots{margin:16px 0}.collection-card button{font-size:10px}.achievement-grid{grid-template-columns:repeat(4,1fr);gap:7px}.achievement-grid article{min-height:102px;padding:10px 6px;text-align:center}.achievement-grid article>b{font-size:20px}.achievement-grid article>small,.achievement-grid article p,.achievement-grid article span{display:none}.achievement-grid article h2{margin:8px 0 0;font-size:10px!important}.stat-cards article{padding:13px}.stat-cards span{font-size:9px}.hub-section{margin-top:20px}.mode-stats>div{padding:10px}.mode-stats span{display:none}.settings-card{padding:14px}.settings-card h2:not(:first-child){margin-top:22px}.setting-row{min-height:52px}.setting-row small{display:none}
}

/* Áreas de toque estáveis para a navegação instalada no Android. */
.hub-nav,.hub-utilities{position:relative;z-index:5;pointer-events:auto;touch-action:manipulation}
.hub-nav button,.hub-utilities button{pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hub-nav button{min-height:52px}

@media(max-width:700px){
  .word-panel.open{display:block;position:fixed;z-index:30;overflow:auto;box-shadow:0 18px 50px #000b;transform:none}
  .bottom-bar{position:relative;z-index:40;pointer-events:auto;touch-action:manipulation}
  .bottom-bar button{min-height:48px;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .bottom-bar button.active{border-radius:10px;background:#203747;color:#ffd36e}
  .bottom-bar button.unavailable{opacity:.55}
}

/* Navegação principal simplificada; utilitários no cabeçalho. */
.hub-nav{grid-template-columns:repeat(3,1fr);max-width:520px;width:100%;margin-inline:auto}.hub-utilities{display:flex;align-items:center;gap:7px}.hub-utilities button{width:38px;height:38px;display:grid;place-items:center;border:1px solid #304a59;border-radius:11px;background:#142633;color:#c4d2d9;font-size:20px;line-height:1;cursor:pointer}.hub-utilities button.active{border-color:#e5b957;background:#e5b9571c;color:#ffd36e}.hub-utilities button:focus-visible{outline:2px solid #ffd36e;outline-offset:2px}
@media(max-width:650px){.hub-header{gap:8px}.hub-brand{flex:1}.hub-utilities{gap:5px}.hub-utilities button{width:34px;height:34px;border-radius:9px;font-size:18px}.hub-nav{grid-template-columns:repeat(3,1fr);padding-inline:26px}.hub-nav button{font-size:11px}}

.difficulty-choice-grid{max-width:720px;margin:0 auto;display:grid;gap:10px}.difficulty-choice-grid>button{min-height:88px;display:flex;align-items:center;gap:15px;padding:14px 18px;border:1px solid #35505f;border-radius:14px;background:linear-gradient(145deg,#172c39,#10222f);color:#f7fbff;text-align:left;cursor:pointer}.difficulty-choice-grid>button>i{width:46px;height:46px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:#e5b957;color:#10202a;font-size:20px;font-style:normal;font-weight:900}.difficulty-choice-grid>button>span{display:grid;gap:5px;flex:1}.difficulty-choice-grid strong{font-size:20px}.difficulty-choice-grid small{color:#c4d1d9;font-size:12px}.difficulty-choice-grid b{color:#ffd36e;font-size:25px}.difficulty-choice-grid>button:focus-visible{outline:2px solid #ffd36e;outline-offset:2px}
@media(max-width:650px){.difficulty-choice-grid{gap:10px}.difficulty-choice-grid>button{min-height:92px;padding:14px;border-radius:13px}.difficulty-choice-grid strong{font-size:20px}.difficulty-choice-grid small{font-size:12px;line-height:1.3}.puzzle-head>p{display:block!important;color:#c4d1d9!important;font-size:13px!important}}

.difficulty-tabs{display:flex;gap:7px;margin-top:16px;overflow-x:auto}.difficulty-tabs button{padding:9px 12px;border:1px solid #ffffff14;border-radius:20px;background:#151e1b;color:#89958e;font-size:10px;white-space:nowrap;cursor:pointer}.difficulty-tabs button.active{border-color:#d7ad54;background:#d7ad5418;color:#efc96f}.puzzle-head>button{float:right;border:0;background:none;color:#d7ad54;cursor:pointer}.puzzle-number-grid{max-width:960px;margin:auto;display:grid;grid-template-columns:repeat(10,1fr);gap:8px}.puzzle-number-grid button{aspect-ratio:1;display:grid;place-content:center;gap:4px;border:1px solid #ffffff12;border-radius:12px;background:#151e1b;color:#e7ebe5;cursor:pointer}.puzzle-number-grid button b{font-size:17px}.puzzle-number-grid button span{font-size:8px;color:#7d8982;text-transform:uppercase}.puzzle-number-grid button.done{border-color:#d7ad54;color:#efc96f;background:#d7ad5410}.puzzle-number-grid button.done span{color:#d7ad54}
@media(max-width:650px){.difficulty-tabs{margin-top:10px}.difficulty-tabs button{padding:7px 9px}.puzzle-number-grid{grid-template-columns:repeat(5,1fr);gap:7px}.puzzle-number-grid button{border-radius:9px}.puzzle-number-grid button b{font-size:14px}}

.app-dialog{position:fixed;inset:0;z-index:95;display:none;place-items:center;padding:18px;background:#060a08d9}.app-dialog.show{display:grid}.app-dialog-card{position:relative;width:min(470px,100%);max-height:min(680px,90vh);overflow:auto;padding:28px;border:1px solid #d7ad5440;border-radius:18px;background:#18211e;color:#edf0e9;box-shadow:0 25px 80px #0008}.dialog-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:0;border-radius:50%;background:#ffffff0b;color:#fff;cursor:pointer}.dialog-close svg{width:17px;fill:none;stroke:currentColor;stroke-width:2}.app-dialog-card>span{color:#d7ad54;font-size:9px;font-weight:800;letter-spacing:.18em}.app-dialog-card h2{margin:10px 42px 16px 0;font-size:21px}.app-dialog-card>p,.tutorial-steps p{color:#96a19a;line-height:1.5}.tutorial-steps{display:grid;gap:10px;margin:22px 0}.tutorial-steps article{display:grid;grid-template-columns:34px 1fr;align-items:center;padding:12px;border:1px solid #ffffff0e;border-radius:11px}.tutorial-steps b{grid-row:1/3;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#d7ad54;color:#17201d}.tutorial-steps p{margin:2px 0 0;font-size:11px}.dialog-symbol{margin:20px 0 8px;color:#d7ad54;font-size:42px}.daily-history{display:grid;gap:1px;margin-top:18px;border-radius:10px;overflow:hidden}.daily-history>div{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;padding:12px;background:#111815}.daily-history span{color:#7f8a84}.daily-history strong{color:#d7ad54}.history-button,.help-button{margin:14px 0;padding:11px 14px;border:1px solid #d7ad5440;border-radius:9px;background:#d7ad5410;color:#d7ad54;cursor:pointer}
.skip-link{position:fixed;left:10px;top:-60px;z-index:200;padding:10px 14px;border-radius:8px;background:#fff;color:#111}.skip-link:focus{top:10px}.dialog-mode-list{display:grid;gap:7px}.dialog-mode-list button{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #ffffff10;border-radius:9px;background:#111815;color:inherit;text-align:left;cursor:pointer}.dialog-mode-list i{width:5px;height:28px;border-radius:4px;background:var(--mode-color)}.dialog-mode-list strong{flex:1}.dialog-mode-list span{color:#d7ad54;font-size:10px}

/* Android/mobile finish: compact native-game shell using the navy, gold and violet identity. */
.app-hub{background:#0b1925;color:#f1f4f5}.hub-header,.hub-nav{background:#0e1d2a;border-color:#29404f}.hub-content{background:radial-gradient(circle at 85% 0,#172c3b 0,transparent 34%),#0b1925}.resume-card,.app-dashboard .daily-card,.hub-mode-card,.campaign-level,.collection-card,.stat-cards article,.mode-stats>div,.achievement-grid article,.settings-card{background:#132430;border-color:#2b4250;color:#f1f4f5}.app-dashboard .daily-card{background:linear-gradient(125deg,#172b38,#10212d)}.app-dashboard .daily-card h2{font-family:inherit!important;font-size:17px!important}.hub-brand strong{font-family:inherit}.phase{display:none!important}
.pastime-menu{max-width:960px;margin:auto}.pastime-menu>header{display:flex;align-items:center;justify-content:space-between;margin:0 2px 16px}.pastime-menu h1{margin:0;font-size:22px;letter-spacing:-.02em}.pastime-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pastime-grid>button{min-height:86px;display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #2b4555;border-radius:14px;background:linear-gradient(145deg,#152a38,#10222f);color:#f1f4f5;text-align:left;cursor:pointer;box-shadow:0 8px 20px #0002}.pastime-grid>button>i{width:6px;height:46px;flex:0 0 auto;border-radius:5px;background:var(--mode-color);box-shadow:0 0 14px color-mix(in srgb,var(--mode-color) 40%,transparent)}.pastime-grid>button>span{min-width:0;display:grid;gap:5px;flex:1}.pastime-grid strong{font-size:13px;line-height:1.2}.pastime-grid small{color:#91a3ad;font-size:9px;line-height:1.35}.pastime-grid b{color:#e6b955;font-size:22px;font-weight:500}

@media(max-width:650px){
  html,body{overflow:hidden;background:#07141f}
  .app-hub{grid-template-rows:56px 1fr 60px}
  .hub-header{min-height:56px;padding:0 13px}
  .hub-brand{min-width:0;gap:10px}.hub-brand img{width:34px;height:34px;border-radius:9px}.hub-brand strong{font-size:13px;letter-spacing:.14em}.hub-brand span{font-size:8px;margin-top:3px}
  .hub-continue{width:36px;height:36px}
  .hub-content{padding:14px 12px 18px;overflow-x:hidden}
  .dashboard-greeting{padding:0 2px 10px}.dashboard-greeting h1,.hub-page-head h1,#hub-content h1{font-size:19px!important;margin:0}.level-ring{width:44px;height:44px;padding-top:12px}.level-ring strong{font-size:15px}
  .resume-card{padding:10px 12px;border-radius:13px}.resume-card>i{height:32px}.resume-card strong{font-size:14px}.resume-card>b{font-size:22px}
  .dashboard-title{margin:13px 2px 7px}.dashboard-title h2,#hub-content h2{font-size:15px!important}.dashboard-title span{font-size:8px}
  .app-dashboard .daily-card{min-height:58px;padding:11px 12px;border-radius:13px;gap:8px}.app-dashboard .daily-card h2{font-size:14px!important;line-height:1.2}.app-dashboard .daily-card button{padding:8px 10px;font-size:11px;white-space:nowrap}
  .app-dashboard .hub-mode-list{gap:7px}.app-dashboard .hub-mode-card{min-height:66px;border-radius:12px}.app-dashboard .hub-mode-card strong{font-size:9px}
  .hub-nav button{gap:3px;padding:6px 2px;font-size:7px}.hub-nav button b{font-size:17px}
  .pastime-menu>header{margin:1px 2px 10px}.pastime-menu h1{font-size:18px}.pastime-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pastime-grid>button{min-height:72px;padding:10px;border-radius:12px;gap:9px}.pastime-grid>button>i{width:5px;height:36px}.pastime-grid strong{font-size:10px}.pastime-grid small{display:none}.pastime-grid b{font-size:18px}
  .app-dialog{padding:12px}.app-dialog-card{width:100%;max-height:calc(100dvh - 24px);padding:20px;border-radius:18px}.app-dialog-card h2{font-size:18px;margin:7px 40px 12px 0}.tutorial-steps{gap:7px;margin:14px 0}.tutorial-steps article{padding:10px}.tutorial-steps strong{font-size:13px}.tutorial-steps p{font-size:10px}.hub-primary{margin-top:8px;padding:11px 18px}
  .play-shell{grid-template-rows:54px 1fr 58px}.topbar{height:54px;padding:0 12px;background:#0d1d2a;border-color:#29404f}.brand img{width:32px;height:32px}.mode-current{top:8px;font-size:11px}.save-state{font-size:0}.save-state i{margin:0}
  .play-shell .game-stage{padding:8px 8px 4px}.stage-heading h1{font-size:15px}.eyebrow{font-size:8px}.direction{font-size:7px}
  .grid-viewport{background:radial-gradient(circle,#163040 0,#0a1b28 65%);border-color:#294653}
  .bottom-bar{height:58px;padding:5px 6px;background:#0d1d2a;border-color:#29404f}.bottom-bar button{font-size:8px}
  .word-panel,.play-shell .inspector-panel{left:7px;right:7px;bottom:64px;max-height:65dvh;border-radius:18px;background:#102330;border-color:#365362;padding:16px}
  .word-summary strong{font-size:21px}.word-groups{gap:9px}.word-chip{min-height:40px;font-size:11px}
}

/* Escala e contraste reforçados em toda a aplicação. */
body{font-size:18px;color:#f7fbff}.app-shell,.app-hub{color:#f7fbff}.hub-brand span,.hub-page-head p,.pastime-grid small,.resume-card em,.collection-card p,.stat-cards span,.setting-row small,.word-summary span,.panel-note p,.stat-line,.slot-preview,.save-state{color:#c4d1d9}.hub-nav button,.bottom-bar button{color:#b7c8d1}.hub-nav button.active,.bottom-bar button:active{color:#ffd36e}.pastime-grid strong{font-size:26px;line-height:1.15}.puzzle-number-grid button b{font-size:20px}.puzzle-number-grid button span,.difficulty-tabs button{font-size:12px}.keyboard button{font-size:14px}.word-chip{font-size:14px}.panel-title,.section-label{color:#d3e0e6}.eyebrow{color:#38e2d0}.direction{color:#ffd36e}

/* Navegação direta e identidade visual própria de cada passatempo */
.pastime-menu>header p{margin:5px 0 0;color:#91a3ad;font-size:11px}.pastime-menu>header p strong{color:#ffd36e}.difficulty-shortcut{padding:9px 12px;border:1px solid #3b5868;border-radius:10px;background:#142b39;color:#dbe8ed;cursor:pointer;font-size:11px}.difficulty-setting{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:30px}.difficulty-setting button{min-height:68px;display:grid;place-items:center;gap:5px;padding:8px;border:1px solid #314957;border-radius:11px;background:#10232e;color:#aec0c8;cursor:pointer}.difficulty-setting button b{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#263d49;color:#fff}.difficulty-setting button span{font-size:10px}.difficulty-setting button.selected{border-color:#e5b957;background:#e5b95718;color:#ffe095}.difficulty-setting button.selected b{background:#e5b957;color:#14232c}.setting-explanation{margin:-10px 0 14px;color:#91a3ad;font-size:11px}
.play-shell .stage-heading:before{content:'✦';width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;margin-right:11px;border:1px solid color-mix(in srgb,var(--teal) 70%,white);border-radius:13px;background:color-mix(in srgb,var(--teal) 20%,#081b28);color:var(--teal);font-size:21px}.play-shell .stage-heading>div:first-of-type{flex:1}.play-shell .grid-viewport{border-color:color-mix(in srgb,var(--teal) 45%,#1c4251)}.play-shell :is(.word-panel,.inspector-panel){border-color:color-mix(in srgb,var(--teal) 28%,#173746)}
html[data-puzzle-mode="classic"] .stage-heading:before{content:'▦'}html[data-puzzle-mode="thematic"] .stage-heading:before{content:'◎'}html[data-puzzle-mode="numerix"] .stage-heading:before{content:'123';font-size:12px;font-weight:900}html[data-puzzle-mode="crypto"] .stage-heading:before{content:'⌁'}html[data-puzzle-mode="codeword"] .stage-heading:before{content:'A1';font-size:13px;font-weight:900}html[data-puzzle-mode="anagram"] .stage-heading:before{content:'↻'}html[data-puzzle-mode="incomplete"] .stage-heading:before{content:'A_'}html[data-puzzle-mode="elimination"] .stage-heading:before{content:'×'}html[data-puzzle-mode="progressive"] .stage-heading:before{content:'➜'}html[data-puzzle-mode="fragments"] .stage-heading:before{content:'◫'}html[data-puzzle-mode="jigsaw"] .stage-heading:before{content:'⌘'}html[data-puzzle-mode="syllabic"] .stage-heading:before{content:'SÍ';font-size:12px;font-weight:900}html[data-puzzle-mode="double"] .stage-heading:before{content:'Ⅱ'}html[data-puzzle-mode="chain"] .stage-heading:before{content:'⛓';font-size:17px}html[data-puzzle-mode="logical"] .stage-heading:before{content:'◇'}
html[data-puzzle-mode="crypto"] .grid-viewport,html[data-puzzle-mode="codeword"] .grid-viewport{background:repeating-linear-gradient(135deg,#071925 0 12px,#0b2431 12px 24px)}html[data-puzzle-mode="numerix"] .grid-viewport{background:linear-gradient(#101936,#08152a)}html[data-puzzle-mode="jigsaw"] .cell{border-radius:10px 3px}html[data-puzzle-mode="fragments"] .cell{border-radius:2px}html[data-puzzle-mode="syllabic"] .grid-viewport{background:radial-gradient(circle,#2a3823,#0c1d1c 68%)}html[data-puzzle-mode="logical"] .grid-viewport{background:linear-gradient(145deg,#221b36,#091b2b)}html[data-puzzle-mode="chain"] .puzzle-grid{transform:rotate(-.35deg)}
@media(max-width:650px){.pastime-menu>header{align-items:flex-end}.difficulty-shortcut{max-width:125px}.difficulty-setting{grid-template-columns:repeat(2,1fr)}.difficulty-setting button:last-child{grid-column:1/-1}.difficulty-setting button{min-height:54px;grid-template-columns:auto 1fr;justify-items:start;padding:9px 12px}.play-shell .stage-heading:before{width:34px;height:34px;margin-right:8px;border-radius:10px;font-size:16px}}
@media(max-width:700px){.bottom-bar{grid-template-columns:repeat(6,1fr);padding-left:2px;padding-right:2px}.bottom-bar .nav-symbol{font-size:20px;line-height:20px}.bottom-bar button{min-width:0}}
.cell.blocked.patterned{background:linear-gradient(145deg,color-mix(in srgb,var(--teal) 20%,#173746),#081d2a);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--teal) 28%,#173e4d)}
.grid-transform{position:absolute;left:50%;top:50%}
@media(max-width:650px){
  body{font-size:17px}.hub-brand strong{font-size:16px}.hub-brand span{font-size:10px}.hub-nav button{font-size:10px}.hub-nav button b{font-size:20px}
  .pastime-grid{grid-template-columns:1fr;gap:9px}.pastime-grid>button{min-height:82px;padding:13px 15px;gap:13px}.pastime-grid>button>i{width:6px;height:46px}.pastime-grid strong{font-size:20px;line-height:1.15}.pastime-grid b{font-size:24px}
  .hub-page-head h1,#hub-content h1{font-size:22px!important}.difficulty-tabs button{font-size:13px;padding:9px 11px}.puzzle-number-grid button b{font-size:19px}.puzzle-number-grid button span{font-size:10px}
  .stage-heading h1{font-size:18px}.eyebrow{font-size:10px}.direction{font-size:9px}.keyboard button{font-size:13px}.bottom-bar button{font-size:10px}.word-chip{font-size:14px}.panel-title{font-size:13px}.panel-note p,.stat-line{font-size:12px}
}
