
:root{color-scheme:light;
  --dvj-ink:#1e1838;--dvj-muted:#55506a;--dvj-line:#e1dbf2;--dvj-paper-line:#e6e0d4;--dvj-bg:#fbfaf6;--dvj-paper:#fff;
  --dvj-violet:#6b3fd9;--dvj-violet-dark:#4b2aa6;--dvj-violet-deep:#2d1b6b;--dvj-violet-soft:#efe9ff;--dvj-violet-line:#d9cff7;
  --dvj-aqua:#00c8d2;--dvj-aqua-ink:#00727a;--dvj-aqua-soft:#ddfafb;--dvj-cyan:#35e0ff;
  --dvj-gem:#ffd23f;--dvj-yellow:#ffd84d;--dvj-yellow-ink:#7a5a00;--dvj-grass:#4cb34a;--dvj-dirt:#8a5a33;--dvj-flag:#ff7a1a;
  --dvj-green:#1e8a4c;--dvj-green-soft:#e3f6ea;--dvj-red:#c2364a;--dvj-red-soft:#fdebee;--dvj-orange:#a85a00;--dvj-orange-soft:#fff4d6;--dvj-blue:#1f6fd1;
  --dvj-r-sm:6px;--dvj-r-md:10px;--dvj-r-pill:999px;
  --dvj-shadow:4px 5px 0 rgba(30,24,56,.10);--dvj-stamp:3px 3px 0 var(--dvj-ink);
  --dvj-s1:4px;--dvj-s2:8px;--dvj-s3:12px;--dvj-s4:16px;--dvj-s5:24px;--dvj-s6:32px;--dvj-s7:48px;
  --dvj-font:"Lexend",system-ui,sans-serif;--dvj-font-display:"Baloo 2","Lexend",system-ui,sans-serif;
  --dvj-paper-tex:url(/marca/textura-papel.webp);--dvj-paper-tex-jr:url(/marca/textura-papel-jr.webp);
  --ink:var(--dvj-ink);--muted:var(--dvj-muted);--line:var(--dvj-line);--paperLine:var(--dvj-paper-line);--bg:var(--dvj-bg);--paper:var(--dvj-paper);
  --violet:var(--dvj-violet);--violet2:var(--dvj-violet-dark);--deep:var(--dvj-violet-deep);--soft:var(--dvj-violet-soft);--vline:var(--dvj-violet-line);
  --purple:var(--dvj-violet);--purple2:var(--dvj-violet-dark);--purpleSoft:var(--dvj-violet-soft);
  --aqua:var(--dvj-aqua);--aquaInk:var(--dvj-aqua-ink);--aquaSoft:var(--dvj-aqua-soft);--cyan:var(--dvj-cyan);
  --gem:var(--dvj-gem);--yellow:var(--dvj-yellow);--yellowInk:var(--dvj-yellow-ink);--grass:var(--dvj-grass);--dirt:var(--dvj-dirt);--flag:var(--dvj-flag);
  --green:var(--dvj-green);--greenSoft:var(--dvj-green-soft);--red:var(--dvj-red);--redSoft:var(--dvj-red-soft);--orange:var(--dvj-orange);--orangeSoft:var(--dvj-orange-soft);--blue:var(--dvj-blue);
  --radius:var(--dvj-r-sm);--shadow:var(--dvj-shadow)}

*{box-sizing:border-box}
html{background:var(--dvj-bg)}
body{margin:0;min-height:100vh;font-family:var(--dvj-font);color:var(--dvj-ink);background:var(--dvj-bg) var(--dvj-paper-tex) repeat;-webkit-font-smoothing:antialiased}
body.jrMode{background:var(--dvj-bg) var(--dvj-paper-tex-jr) repeat}
button,input,select,textarea{font-family:inherit}
:focus-visible{outline:3px solid var(--dvj-aqua-ink);outline-offset:3px}
/* Botão carimbo: contorno escuro + sombra dura que afunda no clique. */
.dvjBtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:var(--dvj-r-md);border:2px solid var(--dvj-ink);background:#fff;color:var(--dvj-ink);font:800 16px/1.1 var(--dvj-font);text-decoration:none;cursor:pointer;box-shadow:var(--dvj-stamp);transition:transform .08s,box-shadow .08s,background .08s}
.dvjBtn:hover{background:var(--dvj-violet-soft)}.dvjBtn:active{transform:translate(3px,3px);box-shadow:none}
.dvjBtn--main{background:var(--dvj-violet);color:#fff}.dvjBtn--main:hover{background:var(--dvj-violet-dark)}
.dvjBtn img{width:28px;height:28px;flex:none}
/* Folha de papel com sombra dura; com fita amarela por cima. */
.dvjCard{position:relative;background:var(--dvj-paper);border:1px solid var(--dvj-paper-line);border-radius:4px;padding:24px;box-shadow:5px 6px 0 rgba(30,24,56,.10)}
.dvjCard--tape{margin-top:18px}.dvjCard--tape::before{content:"";position:absolute;left:50%;top:-16px;width:120px;height:32px;transform:translateX(-50%) rotate(-2deg);background:url(/marca/fita-amarela.webp) center/100% 100% no-repeat;pointer-events:none}
/* Etiqueta: a única pílula do sistema. */
.dvjTag{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:var(--dvj-r-pill);background:var(--dvj-violet-soft);color:var(--dvj-violet-dark);font:800 13px/1.4 var(--dvj-font)}
/* Ícone ilustrado (arte do ChatGPT) ao lado de um rótulo em texto. */
.dvjIco{width:32px;height:32px;flex:none;object-fit:contain}
.secIco{width:40px;height:40px;flex:none;object-fit:contain;vertical-align:middle}
/* Estado vazio: ilustração + frase + botão com verbo. */
.dvjEmpty{display:grid;justify-items:center;gap:10px;text-align:center;padding:24px 16px}
.dvjEmpty img{width:min(220px,60vw);height:auto}
.dvjEmpty strong{font-size:20px;line-height:1.2;color:var(--dvj-ink)}
.dvjEmpty p{margin:0;max-width:42ch;color:var(--dvj-muted)}
.dvjEmpty .dvjActions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:6px}
/* Herói com cabeçalho: texto à esquerda, cena (960x640) à direita; funciona sem arte. */
.dvjHero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:24px;align-items:center;margin:8px 0 24px}
.dvjHero h1{font-size:clamp(30px,4.4vw,46px);line-height:1.08;letter-spacing:-.02em;margin:0 0 12px;color:var(--dvj-ink)}
.dvjHero .lead{font-size:19px;line-height:1.5;color:var(--dvj-muted);margin:0 0 18px}
.dvjHero .dvjActions{display:flex;flex-wrap:wrap;gap:12px}
.dvjHero .dvjHeroArt{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border:3px solid #fff;border-radius:4px;box-shadow:5px 6px 0 rgba(30,24,56,.14);transform:rotate(.8deg)}
.dvjHero--solo{grid-template-columns:1fr}
/* Divisor de papel rasgado (arte 1200x106 repetida na horizontal). */
.dvjTorn{display:block;height:28px;background:url(/marca/borda-rasgada.webp) left bottom/auto 100% repeat-x;border:0;margin:0}
@media(max-width:760px){.dvjHero{grid-template-columns:1fr;gap:16px}.dvjHero .dvjHeroArt{order:-1;transform:none}.dvjHero .lead{font-size:17px}.dvjCard{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){.dvjBtn{transition:none}}


    .levelTeam{width:min(200px,100%)}
    .spriteStudioDialog.dropping .spriteCanvasWrap{outline:4px dashed #2f6fd1;outline-offset:4px}
    .studioPasteHint{margin:6px 0 0;padding:8px 10px;border-radius:10px;background:#eef4ff;color:#28467a;font-size:12px;font-weight:750;line-height:1.35}
    .studioPasteHint kbd{font:inherit;font-weight:900;background:#fff;border:1px solid #c6d6f2;border-radius:6px;padding:0 5px}
    .spriteCards{grid-template-columns:repeat(4,minmax(0,1fr))}
    .spriteCard.backgroundCard .spritePreview{image-rendering:auto}
    @media(max-width:1100px){.spriteCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:640px){.spriteCards{grid-template-columns:1fr}}


    .signVoice{display:grid;gap:8px;margin-top:12px;padding:12px;border-radius:14px;background:#fff6e0;border:1px solid #f0d9a8}
    .signVoice strong{font-size:14px}
    .signVoiceRow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
    .signVoiceRow .recording{background:#c2414b;color:#fff;border-color:#c2414b}
    .signVoiceTime{font-variant-numeric:tabular-nums;font-weight:800;color:#6b5420;font-size:13px}
    #infoSignListenBtn[hidden]{display:none}


    body.shell2 #editorScreen>.sectionHead{display:none}
    body.shell2 .editorToolDock [hidden],body.shell2 #shellMapBar [hidden]{display:none!important}
    body.shell2 #editorScreen>.screenManager{display:none}
    body.shell2 .editorLayout.compactEditorLayout{grid-template-columns:292px minmax(0,1fr);gap:12px}
    body.shell2 .editorLayout.compactEditorLayout.toolsCollapsed{grid-template-columns:84px minmax(0,1fr)}
    body.shell2 .toolPanel.editorToolDock{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;padding:0;top:70px;max-height:calc(100vh - 82px);height:calc(100vh - 82px);overflow:hidden;border-radius:18px}
    body.shell2 .toolsCollapsed .toolPanel.editorToolDock{grid-template-columns:72px 0}
    body.shell2 .editorToolDock .toolDockHeader{display:none}
    body.shell2 .editorToolDock .toolCategoryNav{grid-column:1;grid-row:1/3;display:flex;flex-direction:column;gap:6px;padding:10px 7px;background:#f6f1e8;border-right:1px solid #e6dccb;overflow-y:auto}
    body.shell2 .editorToolDock .toolCategoryButton{min-height:62px;padding:6px 2px;border-radius:14px;font-size:11px;line-height:1.1;text-align:center;white-space:normal;background:transparent;color:#5d5869;border:2px solid transparent}
    body.shell2 .editorToolDock .toolCategoryButton .toolCategoryIcon{font-size:22px}
    body.shell2 .editorToolDock .toolCategoryButton .toolCategoryLabel{display:block!important;font-size:10px;letter-spacing:-.01em}
    body.shell2 .editorToolDock .toolCategoryButton.active{background:#fff;border-color:var(--category-color,#5b5bd6);color:var(--category-color,#5b5bd6);box-shadow:0 3px 0 rgba(0,0,0,.08)}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="elements"]{--category-color:#2f6fd1}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="mechanics"]{--category-color:#c2414b}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="items"]{--category-color:#13866f}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="objectives"]{--category-color:#b0700d}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="creatures"]{--category-color:#8a4fd1}
    .toolCategoryPane[data-tool-pane="creatures"]{--category-color:#8a4fd1;--category-soft:#f4ecff;--category-border:#d3bdf2}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="library"]{--category-color:#7656b8}
    body.shell2 .creaturesPane .toolSwatch.shellCreatureSwatch{background:#fff;border:1px solid #d3bdf2}
    body.shell2 .creaturesPane .shellCreatureArt{width:29px;height:29px;image-rendering:auto}
    body.shell2 .creaturesPane #shellCreatures{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;margin-top:6px}
    body.shell2 .creaturesPane #shellCreatures:empty{display:none}
    body.shell2 .creaturesPane #studentMonsterMovement{margin-top:8px}
    body.shell2 .shellCollapse{margin-top:auto;min-height:40px;border-radius:12px;border:1px solid #ddd2c0;background:#fff;color:#5d5869;font-weight:900;cursor:pointer}
    body.shell2 .editorToolDock .toolCategoryPane{grid-column:2;grid-row:1;padding:12px 12px 8px;gap:8px}
    body.shell2 .toolsCollapsed .editorToolDock .toolCategoryPane,body.shell2 .toolsCollapsed .editorToolDock .toolDockFooter{display:none!important}
    body.shell2 .editorToolDock .toolDockFooter{grid-column:2;grid-row:2;padding:8px 12px 10px;border-top:1px solid #eee5d6}
    body.shell2 .toolCategoryPane .coreShelfHead,body.shell2 .studentShelfHead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 0 2px}
    body.shell2 .toolCategoryPane .coreShelfHead small,body.shell2 .studentShelfHead small{display:none}
    body.shell2 .toolCategoryPane .coreShelfHead strong,body.shell2 .studentShelfHead strong{font-size:16px}
    body.shell2 .toolCategoryPane .coreShelfHead .primary,body.shell2 #openAssetPicker{min-height:36px;padding:6px 12px;font-size:13px;border-radius:11px;white-space:nowrap}
    body.shell2 .visualPaneIntro,body.shell2 .themeVisualNotice{display:none!important}
    body.shell2 #openAssetPicker{background:#7656b8;border-color:#7656b8}
    body.shell2 .studentShelfHead strong{color:#7656b8}
    body.shell2 .toolCategoryPane[data-tool-pane="elements"] .coreShelfHead,body.shell2 .toolCategoryPane[data-tool-pane="elements"]>.tool,body.shell2 .toolCategoryPane[data-tool-pane="elements"]>.coreShelfEmpty{display:none!important}
    .shellBlocks{display:grid;gap:8px}
    .shellBlocksHead{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
    .shellBlocksHead strong{font-size:16px;color:#2f6fd1}
    .shellBlocksHead button{min-height:36px;padding:6px 12px;font-size:13px;border-radius:11px;background:#2f6fd1;border-color:#2f6fd1}
    .shellBlockGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
    .shellBlock{display:grid;gap:4px;padding:6px;border:2px solid #e2d9ca;border-radius:13px;background:#fff;cursor:pointer;text-align:center;color:var(--ink);font:inherit}
    .shellBlock canvas{width:100%;height:auto;aspect-ratio:3/2;border-radius:8px;background:linear-gradient(#e8f4fb,#f6fbff);image-rendering:pixelated}
    .shellBlock span{font-size:12px;font-weight:850;line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.3em}
    .shellBlock:hover{border-color:#9fbbe6}
    .shellBlock[aria-pressed="true"]{border-color:#2f6fd1;background:#eef4ff;box-shadow:0 3px 0 rgba(47,111,209,.25)}
    .shellStamps{display:grid;gap:6px}.shellSub{font-size:13px;color:#2f6fd1;margin-top:4px}
    .shellAddCard{display:grid;place-items:center;gap:2px;min-height:86px;border:2px dashed #b9cbea;border-radius:13px;background:#f7faff;color:#2f6fd1;font-weight:900;cursor:pointer;font:inherit}
    .shellAddCard b{font-size:24px;line-height:1}
    .shellToolChip{position:absolute;left:20px;top:20px;z-index:2;display:flex;align-items:center;gap:8px;max-width:calc(100% - 40px);padding:6px 12px 6px 6px;border-radius:999px;background:rgba(255,253,248,.95);box-shadow:0 4px 14px rgba(0,0,0,.18);font-weight:850;font-size:13px;color:#3b342f;pointer-events:none}
    .shellToolChip canvas{width:30px;height:30px;border-radius:50%;background:#eef4ff}
    .shellToolChip small{font-weight:700;color:#746c62}
    body.shell2 .canvasShell.editorCanvas{position:relative;display:grid;place-items:center}
    body.shell2 .canvasShell.editorCanvas #editorCanvas{width:auto;max-width:100%;max-height:calc(100vh - 256px);min-height:220px}
    body.shell2 .utility.panel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px}
    body.shell2 .utility .levelTitle{width:min(210px,100%)}
    body.shell2 .utility .levelTeam{width:min(170px,100%)}
    body.shell2 .utility>.selectGroup{display:none}
    body.shell2 .utility #buildGuide{flex:1 1 640px;order:10;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
    body.shell2 .utility #buildGuide .buildGuideHead{display:none}
    body.shell2 .utility #buildGuide .buildGuideSteps{display:flex;gap:5px;flex-wrap:wrap;flex:1 1 auto;min-width:0}
    body.shell2 .utility #buildGuide .buildGuideStep{min-height:36px;padding:4px 10px;white-space:nowrap;font-size:13px}
    body.shell2 .utility #buildGuide .buildGuideAction{min-height:38px;padding:6px 14px;font-size:14px;white-space:nowrap;margin-left:auto;flex:0 0 auto}
    body.shell2 .shellMapBar #saveState{font-size:12px}
    body.shell2 .utility #buildGuide .buildGuideAction:disabled{display:none}
    #shellProgramBtn{background:#ffab19;color:#fff;border:0;border-radius:12px;padding:7px 14px;font-weight:800;box-shadow:0 3px 0 #cf8b17}
    #shellNewGameBtn{min-height:44px;white-space:nowrap}
    .shellMapBar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
    .shellScreens{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px;border-radius:14px;background:#fffaf2;border:1px solid #e6dccb}
    .shellScreens>span{font-size:12px;font-weight:900;color:#746c62;padding:0 4px 0 6px}
    .shellScreens .screenTabs{display:flex;gap:4px;flex-wrap:wrap}
    .shellScreens .screenTab{min-height:34px;padding:4px 12px;border-radius:10px}
    .shellScreens .screenButtons{display:flex;gap:4px}
    .shellScreens .screenButtons button{min-height:34px;padding:4px 10px;border-radius:10px;font-size:13px}
    .shellSizes{display:flex;align-items:center;gap:4px;padding:4px;border-radius:14px;background:#fffaf2;border:1px solid #e6dccb}
    .shellSizes>span{font-size:12px;font-weight:900;color:#746c62;padding:0 4px 0 6px}
    .shellSizes button{width:38px;height:34px;border-radius:10px;border:1px solid #ddd2c0;background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
    .shellSizes button i{display:block;width:var(--s);height:var(--s);border-radius:3px;background:#3b342f}
    .shellSizes button[aria-pressed="true"]{border-color:#2f6fd1;background:#eef4ff;box-shadow:inset 0 0 0 1px #2f6fd1}
    .shellSizes button[aria-pressed="true"] i{background:#2f6fd1}
    .shellMapBar .spacer{flex:1}
    .shellStats{margin-top:8px;border:1px solid #e6dccb;border-radius:14px;background:#fffaf2}
    .shellStats>summary{cursor:pointer;padding:8px 12px;font-weight:850;font-size:13px;color:#5d5869}
    .shellStats .stats{margin:0;padding:0 10px 10px}
    /* Catálogo */
    .catalogDialog{width:min(1040px,calc(100vw - 28px));height:min(760px,calc(100vh - 28px));padding:0;border:0;border-radius:24px;background:#fffdf8;color:var(--ink);box-shadow:0 24px 80px rgba(38,31,54,.34)}
    .catalogDialog::backdrop{background:rgba(34,29,45,.58);backdrop-filter:blur(3px)}
    .catalogShell{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
    .catalogHead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px 10px}
    .catalogHead h2{margin:2px 0 4px;font-size:26px}
    .catalogHead p{margin:0;color:#6c6359}
    .catalogClose{width:44px;height:44px;border-radius:50%;border:1px solid #ddd2c0;background:#fff;font-size:22px;cursor:pointer}
    .catalogBar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0 24px 12px;border-bottom:1px solid #eee5d6}
    .catalogTabs{display:flex;flex-wrap:wrap;gap:6px}
    .catalogTab{display:flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border-radius:999px;border:2px solid #e2d9ca;background:#fff;font:inherit;font-weight:850;color:#5d5869;cursor:pointer}
    .catalogTab b{min-width:20px;height:20px;border-radius:10px;background:var(--c);color:#fff;font-size:11px;display:grid;place-items:center;padding:0 5px}
    .catalogTab b:empty{display:none}
    .catalogTab[aria-selected="true"]{border-color:var(--c);background:var(--c);color:#fff}
    .catalogTab[aria-selected="true"] b{background:#fff;color:var(--c)}
    .catalogSearch{flex:1;min-width:180px;min-height:40px;border-radius:999px;border:2px solid #e2d9ca;padding:0 16px;font:inherit;background:#fff}
    .catalogBody{overflow-y:auto;padding:14px 24px 20px}
    .catalogGroup{margin-bottom:16px}
    .catalogGroup h3{margin:0 0 8px;font-size:14px;color:#6c6359;text-transform:uppercase;letter-spacing:.06em}
    .catalogGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
    .catalogCard{position:relative;display:grid;gap:6px;padding:8px;border:2px solid #e2d9ca;border-radius:16px;background:#fff;cursor:pointer;text-align:center;font:inherit;color:var(--ink)}
    .catalogCard canvas{width:100%;height:auto;aspect-ratio:3/2;border-radius:10px;background:linear-gradient(#e8f4fb,#f6fbff);image-rendering:pixelated}
    .catalogCard .catalogEmoji{display:grid;place-items:center;aspect-ratio:3/2;border-radius:10px;background:#f6f1e8;font-size:40px}
    .catalogCard strong{font-size:13px;line-height:1.15}
    .catalogCard small{font-size:11px;color:#7a7268;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .catalogCard i{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:50%;background:#fff;border:2px solid #d8cbb4;display:grid;place-items:center;font-style:normal;font-weight:900;color:transparent;font-size:14px}
    .catalogCard[aria-pressed="true"]{border-color:var(--c);background:#f4f8ff;box-shadow:0 3px 0 rgba(0,0,0,.08)}
    .catalogCard[aria-pressed="true"] i{background:var(--c);border-color:var(--c);color:#fff}
    .catalogCard.unavailable{opacity:.5}
    .catalogEmpty{padding:40px 10px;text-align:center;color:#7a7268}
    .catalogFoot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;border-top:1px solid #eee5d6;background:#fffaf2;border-radius:0 0 24px 24px}
    .catalogFoot span{font-weight:800;color:#5d5869}
    .catalogFoot div{display:flex;gap:8px}
    @media(max-width:1240px){body.shell2 .editorLayout.compactEditorLayout{grid-template-columns:252px minmax(0,1fr)}.shellScreens>span,.shellSizes>span{display:none}body.shell2 #quickEraserBtn kbd{display:none}body.shell2 .utility #buildGuide{flex-basis:100%}body.shell2 .utility #buildGuide .buildGuideSteps{flex-wrap:wrap}body.shell2 .utility #buildGuide .buildGuideStep{min-height:32px;padding:3px 8px;font-size:12px}body.shell2 .utility .levelTitle{width:min(170px,100%)}body.shell2 .utility .levelTeam{width:min(140px,100%)}body.shell2 .shellMapBar #saveState{display:none}.shellBlockGrid{gap:5px}.shellBlocksHead,body.shell2 .toolCategoryPane .coreShelfHead,body.shell2 .studentShelfHead{grid-template-columns:1fr}}
    @media(max-width:900px){body.shell2 .editorLayout.compactEditorLayout{grid-template-columns:1fr}body.shell2 .toolPanel.editorToolDock{position:relative;top:0;height:auto;max-height:none;grid-template-columns:1fr;grid-template-rows:auto auto auto}body.shell2 .editorToolDock .toolCategoryNav{grid-row:auto;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid #e6dccb}body.shell2 .editorToolDock .toolCategoryButton{min-width:76px}body.shell2 .editorToolDock .toolCategoryPane,body.shell2 .editorToolDock .toolDockFooter{grid-column:1;grid-row:auto;max-height:340px}body.shell2 .shellCollapse{display:none}body.shell2 .canvasShell.editorCanvas #editorCanvas{max-height:none;width:100%}}
    @media(max-width:640px){.catalogDialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.catalogGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalogHead,.catalogBar,.catalogBody,.catalogFoot{padding-left:14px;padding-right:14px}}


    #pixelStudio{border:0;padding:0;width:min(1180px,98vw);max-width:none;height:min(760px,96vh);max-height:none;border-radius:22px;background:#fffaf2;color:#1e1838;box-shadow:0 30px 80px rgba(30,24,56,.35);font-family:Lexend,"Nunito",system-ui,sans-serif}
    #pixelStudio::backdrop{background:rgba(30,24,56,.55)}
    #pixelStudio .psWrap{display:grid;grid-template-rows:auto auto 1fr auto;height:100%}
    #pixelStudio header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px 6px}
    #pixelStudio header h2{margin:0;font-size:21px}#pixelStudio header small{display:block;color:#6c6359;font-size:12px;font-weight:600}
    #pixelStudio .psClose{width:40px;height:40px;border-radius:50%;border:2px solid #e2d9ca;background:#fff;font-size:20px;cursor:pointer}
    #pixelStudio .psTypes{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 8px}
    #pixelStudio .psTypes button,#pixelStudio .psStates button{border:2px solid #e2d9ca;background:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-weight:800;font-size:13px;cursor:pointer;color:#1e1838}
    #pixelStudio .psTypes button[aria-pressed="true"],#pixelStudio .psStates button[aria-pressed="true"]{background:#6b3fd9;border-color:#6b3fd9;color:#fff}
    #pixelStudio .psTypes select{border:2px solid #e2d9ca;border-radius:999px;padding:6px 10px;font:inherit;font-size:13px;font-weight:700;background:#fff;margin-left:auto}
    #pixelStudio .psMain{display:grid;grid-template-columns:150px minmax(0,1fr) 210px;gap:12px;padding:0 18px;min-height:0}
    #pixelStudio .psTools{display:flex;flex-direction:column;gap:6px;min-height:0;overflow:auto}
    #pixelStudio .psTools button{display:flex;align-items:center;gap:6px;border:2px solid #e2d9ca;background:#fff;border-radius:12px;padding:6px 8px;font:inherit;font-weight:800;font-size:13px;cursor:pointer;color:#1e1838;text-align:left}
    #pixelStudio .psTools button[aria-pressed="true"]{border-color:#6b3fd9;background:#f1ecff}
    #pixelStudio .psPalette{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:4px}
    #pixelStudio .psPalette button{aspect-ratio:1;border-radius:6px;border:2px solid #fff;box-shadow:0 0 0 1px #d8cbb4;padding:0;cursor:pointer}
    #pixelStudio .psPalette button[aria-pressed="true"]{box-shadow:0 0 0 3px #1e1838}
    #pixelStudio .psPalette input{grid-column:span 5;width:100%;height:30px;border:0;padding:0;background:none;cursor:pointer}
    /* 24/10/2026: palco com rolagem e zoom manual (pinça/Ctrl+roda/botões); flex+margin:auto centraliza
       quando cabe e permite rolar quando o aluno aproxima. */
    #pixelStudio .psStage{position:relative;display:flex;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/16px 16px;border-radius:16px;border:2px solid #e2d9ca;min-height:0;overflow:auto;touch-action:none}
    #pixelStudio .psStage canvas{margin:auto;flex:none;image-rendering:pixelated;cursor:crosshair;box-shadow:0 0 0 2px #1e1838}
    #pixelStudio .psZoom{position:absolute;top:10px;right:10px;z-index:2;display:flex;flex-direction:column;gap:8px}
    #pixelStudio .psZoom button{width:52px;height:52px;border-radius:14px;border:2px solid #e2d9ca;background:rgba(255,250,242,.95);color:#1e1838;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(30,24,56,.18);font-size:24px;font-weight:900;line-height:1;padding:0}
    #pixelStudio .psZoom button svg{width:22px;height:22px}
    #pixelStudio .psSide{display:flex;flex-direction:column;gap:8px;min-height:0}
    #pixelStudio .psStates{display:flex;gap:4px;flex-wrap:wrap}
    #pixelStudio .psFrames{flex:1;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:2px}
    #pixelStudio .psFrame{position:relative;border:2px solid #e2d9ca;border-radius:10px;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/10px 10px;cursor:pointer;display:grid;place-items:center;padding:4px}
    #pixelStudio .psFrame[aria-current="true"]{border-color:#6b3fd9;box-shadow:0 0 0 2px #6b3fd9}
    #pixelStudio .psFrame canvas{image-rendering:pixelated;max-width:100%;max-height:80px}
    #pixelStudio .psFrame b{position:absolute;left:4px;top:2px;font-size:11px;color:#6c6359}
    #pixelStudio .psFrameBar{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
    #pixelStudio .psFrameBar button{border:2px solid #e2d9ca;background:#fff;border-radius:10px;padding:5px 0;font:inherit;font-weight:800;font-size:12px;cursor:pointer}
    #pixelStudio .psPreview{display:flex;align-items:center;gap:8px;background:#fff;border:2px solid #e2d9ca;border-radius:12px;padding:6px}
    #pixelStudio .psPreview canvas{image-rendering:pixelated;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/8px 8px;border-radius:8px;width:64px;height:64px;object-fit:contain}
    #pixelStudio .psPreview label{font-size:12px;font-weight:700;display:grid;gap:2px;flex:1}
    #pixelStudio .psOnion{font-size:12px;font-weight:700;display:flex;align-items:center;gap:6px}
    #pixelStudio footer{display:flex;align-items:center;gap:10px;padding:10px 18px 14px;flex-wrap:wrap}
    #pixelStudio footer input[type=text]{flex:1;min-width:180px;border:2px solid #e2d9ca;border-radius:12px;padding:9px 12px;font:inherit;font-weight:700}
    #pixelStudio footer .psHint{font-size:12px;color:#6c6359;font-weight:600;flex-basis:100%}
    #pixelStudio footer button{border:0;border-radius:999px;padding:11px 20px;font:inherit;font-weight:900;cursor:pointer}
    #pixelStudio footer .psSave{background:#6b3fd9;color:#fff;box-shadow:0 5px 0 #4b2aa6}
    #pixelStudio footer .psImport{background:#fff;border:2px solid #e2d9ca}
    @media(max-width:820px){#pixelStudio .psMain{grid-template-columns:110px minmax(0,1fr)}#pixelStudio .psSide{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}#pixelStudio .psFrames{flex-direction:row;max-height:96px}}
    /* 24/10/2026: em tela com dedo (tablete do aluno), o estúdio ocupa a tela inteira: palco grande
       em cima, ferramentas e paleta embaixo com alvo de toque de 44px ou mais. */
    @media(pointer:coarse){
      #pixelStudio{width:100vw;height:100vh;height:100dvh;border-radius:0}
      #pixelStudio .psClose{width:48px;height:48px;font-size:24px}
      #pixelStudio .psTypes button,#pixelStudio .psStates button{min-height:44px;padding:8px 14px}
      #pixelStudio .psTypes select{min-height:44px;padding:8px 12px}
      #pixelStudio .psMain{display:flex;flex-direction:column;gap:10px}
      #pixelStudio .psStage{order:-1;flex:1;min-height:0}
      #pixelStudio .psTools{flex-direction:row;flex-wrap:wrap;align-items:center;overflow:visible}
      #pixelStudio .psTools button{min-height:48px;padding:8px 12px;font-size:14px}
      #pixelStudio .psPalette{grid-template-columns:repeat(10,minmax(44px,1fr));width:100%;margin-top:6px}
      #pixelStudio .psPalette input{grid-column:span 10;height:44px;width:100%}
      #pixelStudio .psSide{flex-direction:row;flex-wrap:wrap;align-items:center}
      #pixelStudio .psFrames{flex:1;flex-direction:row;max-height:100px;align-items:center}
      #pixelStudio .psFrame{min-width:74px}
      #pixelStudio .psFrame canvas{max-height:64px}
      #pixelStudio .psFrameBar{width:100%;grid-template-columns:repeat(4,minmax(56px,1fr))}
      #pixelStudio .psFrameBar button{min-height:48px;font-size:18px}
      #pixelStudio .psOnion{font-size:14px;align-self:center}
      #pixelStudio .psPreview{width:100%;padding:8px}#pixelStudio .psPreview label{font-size:14px}
      #pixelStudio footer input[type=text]{min-height:48px;font-size:16px}
      #pixelStudio footer .psImport,#pixelStudio footer .psSave{min-height:48px;font-size:15px}
    }


    #mapEditBtn{white-space:nowrap}
    @media(max-width:1500px){body.shell2 .shellMapBar #quickEraserBtn kbd{display:none}body.shell2 .shellMapBar{gap:6px}}
    @media(max-width:1200px){#mapEditBtn span{display:none}}
    #mapEditBtn.active{background:#efe9ff;border-color:#6b3fd9;color:#4b2aa6}
    #mapEditPop{position:fixed;z-index:60;min-width:220px;max-width:280px;background:#fff;border:2px solid #6b3fd9;border-radius:16px;box-shadow:0 18px 50px rgba(30,24,56,.3);padding:10px;font-family:Lexend,"Nunito",system-ui,sans-serif;color:#1e1838}
    #mapEditPop[hidden]{display:none}
    #mapEditPop header{display:flex;align-items:center;gap:8px;margin-bottom:8px}
    #mapEditPop header canvas{width:40px;height:40px;image-rendering:pixelated;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/8px 8px;border-radius:8px;flex:none}
    #mapEditPop header b{display:block;font-size:14px;line-height:1.2}
    #mapEditPop header small{display:block;font-size:11px;color:#6c6359;font-weight:600}
    #mapEditPop header .mePopClose{margin-left:auto;width:28px;height:28px;border-radius:50%;border:0;background:#f3effc;font-size:16px;cursor:pointer;flex:none}
    #mapEditPop .meActions{display:grid;gap:6px}
    #mapEditPop .meActions button{display:flex;align-items:center;gap:8px;border:2px solid #e2d9ca;background:#fff;border-radius:12px;padding:8px 10px;font:inherit;font-weight:800;font-size:13px;cursor:pointer;color:#1e1838;text-align:left}
    #mapEditPop .meActions button:hover{border-color:#6b3fd9;background:#f7f4ff}
    #mapEditPop .meActions button.primary{background:#6b3fd9;border-color:#6b3fd9;color:#fff}
    #mapEditPop .meActions button.danger{color:#b4231b}
    #mapEditPop .meRow{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}
    #mapEditPop .meRow select{flex:1;border:2px solid #e2d9ca;border-radius:10px;padding:5px;font:inherit;font-size:12px}
    #mapEditPop .meRow button{width:30px;height:30px;justify-content:center;padding:0}
    #mapEditPop p{margin:0 0 8px;font-size:12px;color:#55506a;line-height:1.35;max-height:4.2em;overflow:hidden}
    .meCardWrap{position:relative}
    .meCardWrap>.packChoiceCard,.meCardWrap>.characterChoice{width:100%;padding-right:44px}
    .meEditPen{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:2px solid #6b3fd9;background:#fff;color:#4b2aa6;font-size:14px;cursor:pointer;display:grid;place-items:center;padding:0;box-shadow:0 3px 8px rgba(30,24,56,.18)}
    .meEditPen:hover{background:#6b3fd9;color:#fff}


    /* No celular, o editor 2.0 escondido atrás do Jr alargava a página (rolagem para o lado). */
    html:has(body.jrMode),body.jrMode{overflow:hidden}
    #jrStage canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
    #jrHoldRing{position:fixed;z-index:50;width:110px;height:110px;margin:-55px 0 0 -55px;pointer-events:none;opacity:0;animation:jrHoldShow .01s linear .12s forwards}
    #jrHoldRing svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
    #jrHoldRing .bg{fill:rgba(255,250,240,.35);stroke:rgba(59,52,47,.28);stroke-width:10}
    #jrHoldRing .fg{fill:none;stroke:#ffc533;stroke-width:10;stroke-linecap:round;stroke-dasharray:264;stroke-dashoffset:264;animation:jrHoldFill .38s linear .12s forwards}
    @keyframes jrHoldShow{to{opacity:1}}
    @keyframes jrHoldFill{to{stroke-dashoffset:0}}
    #jrHoldPop{position:fixed;z-index:48;width:min(440px,calc(100vw - 24px));box-sizing:border-box;padding:16px;border-radius:30px;background:#fffaf0;border:4px solid #3f9a35;box-shadow:0 10px 0 #c9b99c,0 24px 60px rgba(0,0,0,.35);display:grid;gap:12px;animation:jrPopIn .18s ease-out}
    #jrHoldPop.wait{pointer-events:none}
    @keyframes jrPopIn{from{transform:scale(.85);opacity:0}}
    #jrHoldPop .jhHead{display:flex;align-items:center;gap:12px;min-width:0}
    #jrHoldPop .jhHead canvas{width:72px;height:72px;image-rendering:pixelated;border-radius:18px;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/12px 12px;border:3px solid #e6dac6;flex:none;object-fit:contain}
    #jrHoldPop .jhHead b{font-size:30px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    #jrHoldPop .jhRound{width:56px;height:56px;border-radius:50%;border:3px solid #d8cbb4;background:#fff;color:#5a5148;display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
    #jrHoldPop .jhRound.say{background:#2f6fd1;border-color:#2f6fd1;color:#fff}
    #jrHoldPop .jhRound svg{width:28px;height:28px}
    #jrHoldPop .jhLabel{font-size:20px;color:#6c6359;margin:2px 4px -4px}
    #jrHoldPop .jhGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px}
    #jrHoldPop .jhAct{min-height:100px;border-radius:24px;border:4px solid var(--c,#3f7fb0);background:#fff;color:var(--c,#3f7fb0);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:inherit;cursor:pointer;padding:8px 6px}
    #jrHoldPop .jhAct svg{width:42px;height:42px}
    #jrHoldPop .jhAct span{font-size:20px;line-height:1.05;text-align:center}
    #jrHoldPop .jhAct.main,#jrHoldPop .jhAct[aria-pressed="true"]{background:var(--c,#3f7fb0);color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.22)}
    #jrHoldPop .jhAct:active{transform:translateY(3px)}
    @media(max-width:640px){#jrHoldPop{left:12px!important;right:12px;top:auto!important;bottom:12px;width:auto;max-height:calc(100vh - 24px);overflow:auto}#jrHoldPop .jhGrid{grid-template-columns:repeat(3,minmax(0,1fr))}#jrHoldPop .jhAct{min-height:92px}#jrHoldPop .jhAct span{font-size:18px}}
    .jrCard.jrDrawCard{border-style:dashed;border-color:#3f9a35;color:#3f9a35;background:#f4fbf1}
    .jrCard.jrDrawCard svg{width:34px;height:34px}
    .jrCard.jrMine{border-color:#c9b6f0}
    .jsDrawImage[hidden]{display:none!important}
    #jrStudio{position:absolute;inset:0;z-index:40;background:#f4ecdd;display:grid;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);overflow:hidden}
    #jrStudio .jsTop{display:flex;align-items:center;gap:12px;padding:10px 18px;background:#fffaf0;border-bottom:2px solid #e6dac6;min-height:84px;box-sizing:border-box}
    #jrStudio .jsTop h2{margin:0;font-size:32px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #jrStudio .jsPreview{width:64px;height:64px;border-radius:18px;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/12px 12px;border:3px solid #e6dac6;image-rendering:pixelated;flex:none;box-sizing:border-box}
    #jrStudio .jsTop .jrSpeak{width:52px;height:52px}
    #jrStudio .jsDone{min-height:68px;font-size:30px}
    #jrStudio .jsDone svg{width:34px;height:34px}
    #jrStudio .jsMain{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;padding:16px 18px;min-height:0;min-width:0}
    #jrStudio .jsTools{display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:center}
    #jrStudio .jsTool{position:relative;width:78px;height:78px;border-radius:50%;border:4px solid var(--c);background:#fff;color:var(--c);display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
    #jrStudio .jsTool svg{width:38px;height:38px}
    #jrStudio .jsTool[aria-pressed="true"]{background:var(--c);color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.22)}
    #jrStudio .jsTool:active{transform:translateY(3px)}
    #jrStudio .jsTool .jsDot{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #d8cbb4;display:grid;place-items:center}
    #jrStudio .jsTool .jsDot i{display:block;border-radius:50%;background:#fff}
    #jrStudio .jsMove{width:auto;height:78px;border-radius:999px;padding:0 16px 0 12px;display:flex;align-items:center;gap:6px;font:inherit}
    #jrStudio .jsMove span{font-size:22px}
    #jrStudio .jsMove b{display:grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#fff;color:#c06a12;font-size:18px}
    #jrStudio .jsMove[aria-pressed="true"] b{color:#c06a12}
    #jrStudio .jsTool:disabled{opacity:.4}
    #jrStudio .jsStage{position:relative;display:grid;place-items:center;min-width:0;min-height:0;border-radius:26px;background:#3b342f;overflow:hidden;touch-action:none}
    #jrStudio .jsStage canvas{display:block;image-rendering:pixelated;background:repeating-conic-gradient(#efe9df 0 25%,#fff 0 50%) 0 0/24px 24px;border-radius:8px;touch-action:none;cursor:crosshair;max-width:100%;max-height:100%;-webkit-user-select:none;user-select:none}
    #jrStudio .jsLook{position:absolute;right:14px;bottom:12px;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(255,250,240,.92);font-size:18px;color:#5a5148;pointer-events:none}
    #jrStudio .jsLook svg{width:22px;height:22px}
    #jrStudio .jsColors{display:grid;grid-template-columns:repeat(2,60px);gap:12px;align-content:center}
    #jrStudio .jsColor{width:60px;height:60px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 3px #d8cbb4;cursor:pointer;padding:0}
    #jrStudio .jsColor[aria-pressed="true"]{box-shadow:0 0 0 5px #3b342f;transform:scale(1.1)}
    @media(max-aspect-ratio:4/5),(max-width:640px){
      #jrStudio .jsTop{padding:8px 12px;gap:8px;min-height:72px}
      #jrStudio .jsTop h2{font-size:24px}
      #jrStudio .jsPreview{width:52px;height:52px}
      #jrStudio .jsDone{min-height:58px;font-size:24px;padding:0 18px 0 14px;gap:6px}
      #jrStudio .jsMain{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:12px;padding:12px}
      #jrStudio .jsTools{flex-direction:row;flex-wrap:wrap;gap:10px;order:2}
      #jrStudio .jsStage{order:1}
      #jrStudio .jsColors{order:3;grid-template-columns:repeat(6,minmax(48px,56px));justify-content:center;gap:10px}
      #jrStudio .jsColor{width:100%;height:auto;aspect-ratio:1}
      #jrStudio .jsTools{gap:8px}
      #jrStudio .jsTool{width:58px;height:58px;border-width:3px}
      #jrStudio .jsTool svg{width:28px;height:28px}
      #jrStudio .jsMove{width:auto;height:58px;padding:0 10px 0 8px;gap:4px}
      #jrStudio .jsMove span{font-size:18px}
      #jrStudio .jsMove b{display:none}
    }
    @media(max-width:480px){#jrStudio .jsTop h2{display:none}#jrStudio .jsTop{justify-content:space-between}}
    @media(max-height:640px) and (min-aspect-ratio:4/5){#jrStudio .jsTool{width:60px;height:60px}#jrStudio .jsTools{gap:8px}#jrStudio .jsColors{grid-template-columns:repeat(2,52px);gap:8px}#jrStudio .jsColor{width:52px;height:52px}#jrStudio .jsMove{height:60px}}
    @media(prefers-reduced-motion:reduce){#jrHoldPop{animation:none}}


  #jr-create .jrRail .jrTool{color:var(--t,var(--c))}#jr-create .jrRail .jrTool[aria-pressed="true"]{color:var(--t-on,#fff)}
  .jrColorStart{padding:18px 22px;border:3px solid #e2d5bf;border-radius:22px;background:#fff;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
  .jrColorStart div{flex:1;min-width:200px}.jrColorStart h2{margin:0 0 6px;font-size:25px}.jrColorStart p{margin:0;font-size:18px;line-height:1.4;color:#5a5148}
  .jrColorStart button{font-size:22px}.jrColorStart a,.jrColorFlow a{color:#4b2aa6;font-weight:800;text-underline-offset:3px}
  .jrColorFlow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 22px;background:#fffaf0;border-top:1px solid #e6dac6;border-bottom:1px solid #e6dac6}
  .jrColorFlow button{min-height:44px;padding:8px 14px;border:2px solid #d8cbb4;border-radius:14px;background:#fff;color:#3b342f;font:800 16px Lexend,system-ui,sans-serif;cursor:pointer}
  .jrColorFlow button[aria-pressed="true"]{background:#fff0df;border-color:#b74c00;color:#803400}
  .jrColorFlow a{margin-left:auto;padding:8px;font-size:14px;min-height:44px;display:flex;align-items:center;box-sizing:border-box}
  .jrColorConcept{margin:0;padding:7px 22px;font:600 15px/1.4 Lexend,system-ui,sans-serif;color:#49413b;background:#fff}
  .jrColorExtras summary{padding:12px 4px;cursor:pointer;font-weight:800}.jrColorExtras>div{display:flex;flex-direction:column;gap:6px}.jrColorExtras .jrColorTool{width:100%}.jrColorRail{width:170px;flex:none;display:flex;flex-direction:column;gap:6px;overflow-y:auto}
  .jrColorTool{min-height:57px;flex:none;display:flex;align-items:center;gap:8px;padding:6px 8px;border:3px solid #d8cbb4;border-radius:15px;background:#fff;color:#352f2a;text-align:left;font:800 16px Lexend,system-ui,sans-serif;cursor:pointer}
  .jrColorTool[aria-pressed="true"]{border-color:#5d319c;box-shadow:inset 0 0 0 1px #5d319c;background:#f4efff}
  .jrColorTool small{display:block;font-size:12px;font-weight:600;margin-top:2px}
  .jrColorSwatch{width:40px;height:40px;flex:none;border-radius:50% 46% 52% 44%;display:grid;place-items:center;background:var(--plan-color,#fff);color:var(--plan-ink,#fff);border:3px solid rgba(0,0,0,.18);box-shadow:inset -4px -5px 0 rgba(0,0,0,.14),inset 3px 3px 0 rgba(255,255,255,.25);font-size:16px;font-weight:900}
  #jr-create:not(.jrPlanning) .jrColorRail{display:none}
  #jr-create.jrPlanning .jrRail,#jr-create.jrPlanning .jrTray,#jr-create.jrPlanning .jrGuide,#jr-create.jrPlanning .jrChips{display:none!important}
  #jr-create.jrPlanning [data-jr="play"],#jr-create.jrPlanning [data-jr="code"]{display:none}
  #jr-create.jrPlanning .jrStageWrap{background:#f4f0e8}
  #jr-create.jrPlanning #jrStage{background:transparent}#jr-create.jrPlanning #jrStage canvas{box-shadow:0 0 0 3px #e2d5bf,0 8px 22px rgba(59,52,47,.12)}
  @media(max-height:720px){.jrColorTool{min-height:45px;font-size:14px}.jrColorTool small{font-size:11px}.jrColorRail{gap:4px}.jrColorSwatch{width:26px;height:27px}.jrColorFlow{padding:5px 14px}.jrColorConcept{padding:5px 14px;font-size:13px}}
  @media(max-width:600px){.jrColorFlow{padding:6px 10px;gap:5px}.jrColorFlow button{font-size:14px;padding:7px 9px}.jrColorFlow a{margin-left:0;font-size:13px}.jrColorConcept{padding:6px 10px;font-size:13px}.jrColorRail{width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:5px;padding-bottom:3px}.jrColorTool{min-width:104px;min-height:58px}.jrColorStart{padding:14px}.jrColorStart div{min-width:0;flex-basis:100%}}
  /* 24/10/2026: no tablet em pé (768×1024) as cores viram faixa na parte de baixo, na zona do
     polegar, sem tirar o dedo da pintura; em tela larga continuam na coluna da esquerda.
     No modo Pintar o cabeçalho também esconde o que não é pintura. */
  @media(max-width:900px) and (orientation:portrait){#jr-create.jrPlanning .jrColorRail{order:2;width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:8px;padding:4px 2px 6px}#jr-create.jrPlanning .jrColorTool{min-width:108px;flex:none}#jr-create.jrPlanning .jrColorSwatch{width:44px;height:44px}#jr-create.jrPlanning .jrColorExtras{flex:none}}
  #jr-create.jrPlanning [data-jr="codeOn"]{display:none}


    /* Tokens, textura e fonte: worker/design-system.js (DVJ_BASE_STYLE abre o APP_UI_STYLE). */
    body{font-size:16px}
    p{color:var(--dvj-muted)}
    h1,h2,h3{color:var(--dvj-ink);font-weight:800}
    :focus-visible{outline:3px solid var(--dvj-aqua-ink)!important;outline-offset:3px!important}
    .dvjIcon{width:1.3em;height:1.3em;flex:none;vertical-align:-.28em}
    .dvjLabel{display:inline-flex;align-items:center;justify-content:center;gap:.5em}
    /* Barra do topo */
    .topbar{background:rgba(255,255,255,.96);border-bottom:1px solid var(--dvj-line);min-height:70px}
    .brand{gap:12px}
    .brandMark{width:46px;height:46px;border-radius:14px;background:none;box-shadow:0 6px 16px rgba(107,63,217,.28);padding:0;overflow:hidden}
    .brandMark .dvjLogoMark{width:46px;height:46px;display:block}
    .brand strong{font-size:19px;font-weight:800;letter-spacing:-.02em;color:var(--dvj-ink)}
    .brand strong .dvjVira{color:var(--dvj-violet)}
    .brand .dvjWordmark{display:none;height:66px;width:auto}
    .brand.hasWordmark .dvjWordmark{display:block}
    .brand.hasWordmark .brandMark,.brand.hasWordmark strong{display:none}
    .brand.hasWordmark small.brandTagline{display:block;font-size:12px;color:var(--dvj-muted);max-width:180px;line-height:1.3}
    .brand.hasWordmark>div{display:flex;flex-direction:column;justify-content:center}
    .modeCard .dvjModeLogo{display:none;width:min(360px,100%);height:auto}
    .modeCard.hasLogo .dvjModeLogo{display:block}
    .modeCard.hasLogo .modeBadge,.modeCard.hasLogo strong{display:none}
    .brand small{color:var(--dvj-muted);font-size:12.5px}
    .topActions{gap:6px}
    .topActions>a,.topActions>button{min-height:42px;border-radius:12px;font-weight:700;font-size:14px;display:inline-flex;align-items:center;gap:7px}
    /* Botões */
    /* 02/11/2026: o mesmo botão carimbo do site (antes pílula 3D com gradiente). Fantasma e ícone ficam leves (só contorno). */
    .primary,.secondary,.ghost,.iconButton{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font-weight:700;border-radius:var(--dvj-r-md);min-height:46px;transition:transform .08s,box-shadow .08s,background .08s}
    .primary{background:var(--dvj-violet);color:#fff;border:2px solid var(--dvj-ink);box-shadow:var(--dvj-stamp)}
    .primary:hover:not(:disabled){background:var(--dvj-violet-dark)}
    .primary:active:not(:disabled),.secondary:active:not(:disabled){transform:translate(3px,3px);box-shadow:none}
    .secondary{background:#fff;color:var(--dvj-violet-dark);border:2px solid var(--dvj-ink);box-shadow:var(--dvj-stamp)}
    .secondary:hover:not(:disabled){background:var(--dvj-violet-soft)}
    .ghost,.iconButton{background:#fff;color:var(--dvj-ink);border:2px solid var(--dvj-line);box-shadow:none}
    .ghost:hover:not(:disabled),.iconButton:hover:not(:disabled){border-color:var(--dvj-ink);background:var(--dvj-violet-soft)}
    .dangerButton{color:var(--dvj-red)!important}
    .compact{min-height:40px;padding:7px 13px;font-size:14px}
    button:disabled{opacity:.45}
    /* Etapas */
    .steps{gap:8px}
    .step{background:#fff;border:2px solid var(--dvj-line);color:var(--dvj-muted);font-weight:700;border-radius:var(--dvj-r-md);min-height:46px}
    .step b{background:var(--dvj-violet-soft);color:var(--dvj-violet-dark)}
    .step.active{background:var(--dvj-violet);border-color:var(--dvj-ink);color:#fff;box-shadow:2px 2px 0 var(--dvj-ink)}
    .step.active b{background:#fff;color:var(--dvj-violet)}
    .step.done{color:var(--dvj-green);border-color:#bfe5cd}.step.done b{background:#ddf3e5;color:var(--dvj-green)}
    .eyebrow{color:var(--dvj-violet-dark);letter-spacing:0;text-transform:none;font-size:15px}
    .eyebrow:before{display:none}
    .panel{background:#fff;border:1px solid var(--dvj-line);box-shadow:var(--dvj-shadow)}
    /* Início */
    .hero{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);margin-top:24px}
    .hero h1{font-size:clamp(40px,5.2vw,68px);letter-spacing:-.04em;line-height:1}
    .hero h1 .dvjHighlight{background:linear-gradient(transparent 62%,rgba(0,200,210,.32) 62%);padding:0 .06em}
    .heroCopy>p:not(.eyebrow){font-size:19px;color:var(--dvj-muted)}
    .heroActions .primary{font-size:18px;min-height:56px;padding:0 26px}
    .heroActions .secondary,.heroActions .ghost{min-height:56px;padding:0 20px;font-size:16px}
    /* Seções de apresentação no início */
    .dvjCredit{margin:14px 0 0;font-size:12.5px;color:var(--dvj-muted);text-align:center}
    .siteFoot .dvjFootBtn{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 12px;border-radius:999px;border:1px solid var(--dvj-line);background:#fff;color:var(--dvj-violet-dark);font:inherit;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none}.siteFoot .dvjFootBtn svg{width:18px;height:18px}.siteFoot .dvjFootBtn:hover{border-color:var(--dvj-violet);text-decoration:none}
    .projectLibrary{border-radius:var(--dvj-r-sm)}
    /* Escolha de modo */
    #modeChooser{background:var(--dvj-bg) var(--dvj-paper-tex-jr) repeat;color:var(--dvj-ink);font-family:var(--dvj-font)}
    #modeChooser .chooserInner{gap:22px}
    #modeChooser .dvjChooserHead{display:flex;align-items:center;justify-content:center;gap:18px}
    #modeChooser .dvjChooserHead img{width:110px;height:auto;filter:drop-shadow(0 10px 16px rgba(45,27,107,.22))}
    #modeChooser .dvjChooserHead .brandLine{display:flex;align-items:center;gap:10px;justify-content:center;font-weight:800;color:var(--dvj-violet-dark);font-size:18px;margin-bottom:6px}
    #modeChooser .dvjChooserHead .brandLine svg{width:34px;height:34px}
    #modeChooser h1{font-family:"Lexend",system-ui,sans-serif;font-weight:800;letter-spacing:-.03em;color:var(--dvj-ink);text-align:left}
    #modeChooser .chooserMine{margin:0;font-weight:800}#modeChooser .chooserMine a{color:var(--dvj-violet-dark)}
    .modeCard .dvjModeMeta img{width:28px;height:28px;flex:none}
    /* Design único (20/10/2026): cartões de modo como folhas de papel com sombra dura, um levemente girado. */
    .modeCard{background:#fff;border:2px solid var(--dvj-ink);box-shadow:6px 6px 0 var(--dvj-ink);color:var(--dvj-ink);border-radius:8px;font-family:"Lexend",system-ui,sans-serif}.modeCard.jr{transform:rotate(-.8deg)}.modeCard.normal{transform:rotate(.6deg)}.modeCard:hover{transform:translate(-2px,-2px)}.modeCard:active{transform:translate(4px,4px);box-shadow:2px 2px 0 var(--dvj-ink)}
    .modeCard strong{font-family:"Lexend",system-ui,sans-serif;font-weight:800;letter-spacing:-.02em}
    .modeCard .modeDesc{color:var(--dvj-muted)}
    .modeCard.jr{border-color:var(--dvj-ink);box-shadow:6px 6px 0 #ff7a1a}.modeCard.jr .modeBadge{background:#ff7a1a;box-shadow:0 6px 0 #9a3f00}
    .modeCard.normal{box-shadow:6px 6px 0 var(--dvj-violet)}.modeCard.normal .modeBadge{background:var(--dvj-violet);box-shadow:0 6px 0 var(--dvj-violet-deep)}
    .modeCard .modeBadge{font-family:"Lexend",system-ui,sans-serif;font-weight:800;letter-spacing:-.03em}
    .modeCard .dvjModeMeta{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;border-radius:999px;padding:4px 12px}
    .modeCard.jr .dvjModeMeta{background:#ffe8d6;color:#9a3f00}.modeCard.normal .dvjModeMeta{background:var(--dvj-violet-soft);color:var(--dvj-violet-dark)}
    /* Editor: cores das famílias */
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="elements"]{--category-color:#1f6fd1}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="mechanics"]{--category-color:#c2364a}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="items"]{--category-color:#0e7f6b}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="objectives"]{--category-color:#a85a00}
    body.shell2 .editorToolDock .toolCategoryButton[data-tool-category="library"]{--category-color:#6b3fd9}
    body.shell2 .editorToolDock .toolCategoryButton .toolCategoryIcon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;margin:0 auto 3px;color:var(--category-color);background:color-mix(in srgb,var(--category-color) 12%,#fff)}
    body.shell2 .editorToolDock .toolCategoryButton.active .toolCategoryIcon{background:var(--category-color);color:#fff}
    body.shell2 .editorToolDock .toolCategoryButton .toolCategoryIcon .dvjIcon{width:24px;height:24px}
    body.shell2 .editorToolDock .toolCategoryButton{color:var(--dvj-ink)}
    body.shell2 .editorToolDock .toolCategoryButton .toolCategoryLabel{font-weight:700}
    body.shell2 .editorToolDock .toolCategoryNav{background:#faf9ff;border-right-color:var(--dvj-line)}
    @media(min-width:901px){body.shell2 .toolPanel.editorToolDock{grid-template-columns:80px minmax(0,1fr)}}
    /* 22/10/2026: só acima de 900 px; abaixo vale a coluna única do editor-shell.js (no celular o mapa ficava com 41 px). */
    @media(min-width:901px){body.shell2 .editorLayout.compactEditorLayout{grid-template-columns:300px minmax(0,1fr)}}
    body.shell2 .editorToolDock .toolCategoryButton .toolCategoryLabel{font-size:10.5px;letter-spacing:-.02em}
    body.shell2 .utility #saveState{margin-left:auto;font-size:13px;color:var(--dvj-green);white-space:nowrap}
    body.shell2 .canvasShell.editorCanvas #editorCanvas{max-height:calc(100vh - 262px)}
    .canvasShell{background:#2d1b6b;border-color:#2d1b6b}
    .shellScreens,.shellSizes{background:#fff!important;border-color:var(--dvj-line)!important}
    .shellAddCard{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;font-size:13px;line-height:1.15;border-color:#b9cdf0;color:#1f6fd1}
    body.shell2 .toolPanel.editorToolDock{background:#fff;border-color:var(--dvj-line)}
    .shellToolChip{border:1px solid var(--dvj-line)}
    .screenTab.active{background:var(--dvj-violet);border-color:var(--dvj-violet)}
    #quickEraserBtn{background:#fff;color:var(--dvj-ink);border-color:var(--dvj-line)}
    #quickEraserBtn.active{background:#fff1e3;border-color:#e0a46a;color:#8a4a00}
    #buildGuide .buildGuideStep.done{background:#e6f5ec;border-color:#a9dcbc;color:#13603a}
    #buildGuide .buildGuideStep.next{background:#fff6cc;border-color:#f0cc4a;color:#6b4e00}
    .catalogEmoji.catalogIconArt{color:var(--c,#6b3fd9);background:color-mix(in srgb,var(--c,#6b3fd9) 10%,#fff)}.catalogEmoji.catalogIconArt .dvjIcon{width:44px;height:44px}
    body.shell2 .toolCategoryPane .coreShelfHead,body.shell2 .studentShelfHead{grid-template-columns:1fr;gap:6px}
    body.shell2 .toolCategoryPane .coreShelfHead .primary,body.shell2 #openAssetPicker{justify-self:start}
    body.shell2 .toolCategoryPane .coreShelfHead strong,body.shell2 .studentShelfHead strong{font-size:17px;line-height:1.15}
    .shellBlocksHead{grid-template-columns:1fr;gap:6px}.shellBlocksHead button{justify-self:start}.shellBlocksHead strong{font-size:17px}
    .ruleIcon.dvjSwatch{display:grid;place-items:center;font-size:0}.ruleIcon .dvjIcon{width:20px;height:20px;color:#fff}
    .toolSwatch .dvjIcon{width:22px;height:22px;color:#fff}
    .toolSwatch.dvjSwatch{display:grid!important;place-items:center;font-size:0!important}
    .workspaceDetailsIcon .dvjIcon{width:22px;height:22px;color:var(--dvj-violet)}
    .hudMetric>span .dvjIcon{width:22px;height:22px;color:var(--dvj-violet)}
    #objectiveIcon .dvjIcon{color:var(--dvj-violet)}
    .touchButton .dvjIcon{width:30px;height:30px}
    .catalogTab .dvjIcon{width:20px;height:20px}
    .catalogTab[aria-selected="true"] .dvjIcon{color:#fff}
    .shellAddCard .dvjIcon{width:26px;height:26px}
    .emptyStudentShelf b .dvjIcon,.coreShelfEmpty b .dvjIcon{width:20px;height:20px}
    /* Vitória e dicas com o Sparkbot */
    .winIcon.dvjWinArt{width:auto;height:auto;background:none;box-shadow:none;font-size:0;margin:-8px auto 4px}
    .winIcon.dvjWinArt img{width:150px;height:auto;filter:drop-shadow(0 12px 18px rgba(45,27,107,.25))}
    /* Universo Jr: cores complementares (amarelo, laranja, verde, rosa) com o Spark Jr roxo e ciano. */
    body.jrMode{--jr-sun:#ffc533;--jr-sun-ink:#7a5200;--jr-orange:#ff7a1a;--jr-orange-ink:#9a3f00;--jr-grass:#3fb24a;--jr-grass-ink:#1d6b28;--jr-pink:#ff6fae;--jr-sky:#dff5ff}
    /* 22/10/2026: o Jr com a textura do site (papel quadriculado de ezoic.js PAGE_STYLE) e as mesmas linhas lilás. */
    body.jrMode #jrApp{background:var(--dvj-bg) var(--dvj-paper-tex-jr) repeat}
    body.jrMode #jrApp .jrTop,body.jrMode #jrApp .jrTray,body.jrMode #jrApp .jrQuick,body.jrMode #jrApp .jrChoice{background:rgba(255,255,255,.94);border-color:#e1dbf2}
    body.jrMode #jrApp .jrDivider{background:#e1dbf2}
    body.jrMode .jrTop,body.jrMode .jrTray{background:#fff9ec;border-color:#ffe3a3}
    body.jrMode .jrGo{background:var(--jr-orange);box-shadow:0 6px 0 var(--jr-orange-ink)}
    body.jrMode .jrTool[data-tool="chao"]{--c:#3f9a35}body.jrMode .jrTool[data-tool="moeda"]{--c:#2f6fd1}body.jrMode .jrTool[data-tool="espinho"]{--c:#e0402a}body.jrMode .jrTool[data-tool="monstro"]{--c:#8a4fd1}body.jrMode .jrTool[data-tool="bandeira"]{--c:#e8a91c}body.jrMode .jrTool[data-tool="placa"]{--c:#ff6fae}body.jrMode .jrTool[data-tool="apagar"]{--c:#6c6359}
    body.jrMode .jrPhase[aria-pressed="true"]{background:var(--jr-sun);border-color:var(--jr-sun);color:var(--jr-sun-ink);box-shadow:0 4px 0 #c99212}
    body.jrMode .jrChip.done{color:var(--jr-grass-ink)}body.jrMode .jrChip.done i{background:var(--jr-grass)}
    body.jrMode .jrBubble{border:3px solid var(--jr-orange)}
    body.jrMode .jrStart h2 .jrNum{box-shadow:0 3px 0 rgba(0,0,0,.15)}
    .dvjJrHero{position:absolute;right:48px;top:14px;width:150px;height:auto;filter:drop-shadow(0 10px 16px rgba(45,27,107,.22));animation:dvjFloat 4.5s ease-in-out infinite;pointer-events:none}
    .modeCard .dvjJrMascot{width:120px;height:auto;margin:-10px auto -6px;filter:drop-shadow(0 8px 12px rgba(45,27,107,.2))}
    .modeCard.jr.hasLogo .dvjJrMascot{display:none}
    /* 02/11/2026: com 150 px ele cobria o canto do cartão "Começar uma fase pronta" até 1400 px; menor, cabe na linha do título. */
    @media(max-width:1400px){.dvjJrHero{width:76px;right:16px;top:6px}}
    @media(max-width:600px){.dvjJrHero{display:none}} /* no celular o Sparkbot já aparece nos cartões; aqui ele cobria o título */
    .jrMascot.dvjMascot{width:76px;height:76px;padding:0;background:#fff;border:3px solid #fff;overflow:hidden;display:grid;place-items:center}
    .jrMascot.dvjMascot img{width:48px;height:auto;margin:0} /* Spark inteiro no círculo (antes pés e corpo saíam cortados) */
    .jrWinCard .dvjWinBot{width:140px;height:auto;margin:-96px auto -6px;display:block;filter:drop-shadow(0 12px 18px rgba(0,0,0,.25))}
    .coach .coachIcon.dvjCoach{background:none;border:0;padding:0;overflow:visible}
    .coach .coachIcon.dvjCoach img{width:52px;height:auto}
    @media(max-width:640px){.brand small{display:none}.topActions>a,.topActions>button{padding:6px 10px}.topActions .dvjLabelText{display:none}.topActions .dvjIcon{width:20px;height:20px}}
    header.topbar>a.brand{text-decoration:none;color:inherit}.appSiteNav,nav.siteTabs.appTabs{display:none!important}
    /* 21/10: tela inicial do app (passo 1) mostra o menu do site, sem botões duplicados; no celular nada some pela borda. */
    body:has(#homeScreen.active):not(.chooserOpen) .appSiteNav{display:flex!important}body:has(#homeScreen.active) .topActions .galleryLink,body:has(#homeScreen.active) .topActions #presentBtn{display:none!important}
    @media(max-width:700px){.topActions .developerLink:before,.topActions #presentBtn:before,.topActions #helpBtn:before,.topActions .galleryLink:before,.topActions .galleryBack:before{content:none!important}.topActions{min-width:0;flex-wrap:nowrap}header.topbar>a.brand{min-width:0;flex:0 1 auto}}
    @media(max-width:480px){.topActions #presentBtn{display:none!important}}
    #continueBtn:disabled{display:none}
    #homeScreen .eyebrow{text-transform:none;letter-spacing:0;font-size:15px}
    body.chooserOpen>main{display:none}body.chooserOpen .appSiteNav{display:flex!important}body.chooserOpen .topActions>:not(.dvjAccount){display:none!important}
    /* 19/11/2026 (casca única): até 900 px os destinos do papel saem do topo e vão para a barra de baixo, que só existe onde o menu aparecia (escolha de modo e passo 1); no editor, no Jr (que mantém o #homeScreen ativo por baixo), no Programar e jogando ela não aparece. Antes o menu rolava de lado sem nenhum sinal. */
    @media(max-width:900px){body:has(#homeScreen.active):not(.chooserOpen) .appSiteNav,body.chooserOpen .appSiteNav{display:none!important}body:has(#homeScreen.active):not(.chooserOpen):not(.jrMode):not(.playOnly):not(.playEmbed) nav.siteTabs.appTabs,body.chooserOpen nav.siteTabs.appTabs{display:grid!important}body:has(#homeScreen.active):not(.chooserOpen):not(.jrMode):not(.playOnly):not(.playEmbed),body.chooserOpen{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}body:has(#homeScreen.active):not(.chooserOpen):not(.jrMode):not(.playOnly):not(.playEmbed) .toast,body.chooserOpen .toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))}}


    body.playHud #gameScreen .gameHud{display:none}
    body.playHud #gameFrame{position:relative;padding:0;border:0;border-radius:22px;background:#1e1838;box-shadow:0 18px 50px rgba(30,24,56,.28);overflow:hidden;transition:max-width .25s}
    body.playHud #gameFrame.sizeNormal{max-width:1040px}
    body.playHud #gameFrame.sizeGrande{max-width:1440px}
    body.playHud #gameFrame.sizeMaximo{max-width:none;margin-left:0;margin-right:0}
    body.playHud #gameFrame canvas{border-radius:22px}
    #playHud{position:absolute;inset:10px 10px auto 10px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;pointer-events:none;z-index:3;font-family:Lexend,"Nunito",system-ui,sans-serif}
    #playHud>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
    #playHud .phRight{flex-wrap:nowrap;flex:none}
    .phPill{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:4px 12px 4px 8px;border-radius:999px;background:rgba(255,255,255,.93);border:2px solid rgba(107,63,217,.25);box-shadow:0 6px 18px rgba(30,24,56,.25);color:#1e1838;font-weight:800;font-size:15px;backdrop-filter:blur(6px)}
    .phPill svg{width:22px;height:22px;flex:none}
    .phPill small{font-weight:700;color:#55506a;font-size:12px}
    .phPill strong{font-size:17px;font-variant-numeric:tabular-nums}
    .phPill .objectiveProgress{display:flex;gap:4px}
    .phIco{display:inline-grid;place-items:center;vertical-align:middle;margin-right:4px}.phIco svg{width:14px;height:14px}
    #playHud #missionHud{max-width:min(46vw,460px)}
    #playHud #missionHud>div{display:grid;line-height:1.1}
    #playHud #missionHud small{font-size:11px;text-transform:uppercase;letter-spacing:.06em}
    #playHud #missionHud strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    #playHud #objectiveIcon{display:none}
    .phBtn{pointer-events:auto;width:42px;height:42px;border-radius:50%;border:2px solid rgba(107,63,217,.25);background:rgba(255,255,255,.93);color:#4b2aa6;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(30,24,56,.25);padding:0;font-size:0}
    .phBtn svg{width:22px;height:22px}
    .phBtn:hover{background:#fff;border-color:#6b3fd9}
    .phBtn[aria-pressed="true"]{background:#6b3fd9;color:#fff;border-color:#6b3fd9}
    #playInvite{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-radius:18px;background:rgba(255,255,255,.96);border:2px solid #6b3fd9;box-shadow:0 14px 40px rgba(30,24,56,.35);font-family:Lexend,system-ui,sans-serif;font-weight:800;color:#1e1838;animation:playInviteIn .3s ease-out}
    #playInvite[hidden]{display:none}
    /* 03/11/2026: aviso no celular ao abrir o editor: criar no tablet/computador, celular para testar e compartilhar. */
    #phoneTip{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;display:flex;align-items:center;gap:10px;padding:12px 12px 12px 16px;border-radius:18px;background:#fff;border:2px solid #6b3fd9;box-shadow:0 14px 40px rgba(30,24,56,.35);font:700 14px/1.35 Lexend,system-ui,sans-serif;color:#1e1838;animation:playInviteIn .3s ease-out}
    #phoneTip[hidden]{display:none}
    #phoneTip button{flex:none;min-height:44px;padding:0 16px;border-radius:999px;border:0;background:#6b3fd9;color:#fff;font:inherit;font-weight:900;cursor:pointer}
    #playInvite button{min-height:40px;padding:0 16px;border-radius:999px;border:0;font:inherit;font-weight:900;cursor:pointer}
    #playInvite .primary{background:#6b3fd9;color:#fff;box-shadow:0 4px 0 #4b2aa6}
    #playInvite .ghost{background:#efe9ff;color:#4b2aa6}
    @keyframes playInviteIn{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
    #gameFrame:fullscreen,#gameFrame:-webkit-full-screen{display:grid;place-items:center;background:#1e1838;border-radius:0;max-width:none}
    #gameFrame:fullscreen canvas,#gameFrame:-webkit-full-screen canvas{width:min(100vw,177.78vh);height:auto;border-radius:0}
    @media(max-width:760px){#playHud{inset:6px 6px auto 6px;gap:4px}#playHud>div{gap:4px}.phPill small{display:none}.phPill{gap:4px}.phPill svg{width:16px;height:16px}#playHud #gameSizeBtn{display:none}#playHud .phRight{gap:4px}.phPill{min-height:30px;font-size:12px;padding:2px 8px 2px 5px}.phPill strong{font-size:14px}.phBtn{width:36px;height:36px}#playHud #missionHud{display:none}#playInvite{left:8px;right:8px;transform:none;flex-wrap:wrap}}


    #playHud .phScore strong,#playHud .phClock strong{min-width:3.2ch;text-align:right}
    #playHud .phClock.late strong{color:#b4231b}
    .scorePop{position:absolute;z-index:3;pointer-events:none;font-family:Lexend,"Nunito",system-ui,sans-serif;font-weight:900;font-size:20px;color:#fff;-webkit-text-stroke:5px #1e1838;paint-order:stroke fill;transform:translate(-50%,-50%);animation:scorePop .9s ease-out forwards;white-space:nowrap}
    .scorePop.big{font-size:28px;color:#ffd84d}
    @keyframes scorePop{0%{opacity:0;transform:translate(-50%,-30%) scale(.6)}15%{opacity:1;transform:translate(-50%,-60%) scale(1.1)}100%{opacity:0;transform:translate(-50%,-180%) scale(1)}}
    .winScore{margin:10px auto 4px;display:grid;gap:8px;justify-items:center}
    .winStars{display:flex;gap:10px;justify-content:center}
    .winStars span{display:grid;justify-items:center;gap:2px;font-size:12px;font-weight:800;color:#8b8398;width:92px;text-align:center;line-height:1.15}
    .winStars i{font-style:normal;font-size:38px;line-height:1;color:#ddd5ea;filter:drop-shadow(0 2px 0 rgba(30,24,56,.15))}
    .winStars span.on{color:#1e1838}.winStars span.on i{color:#ffc21a;animation:winStar .5s ease-out both}
    .winStars span.on:nth-child(2) i{animation-delay:.2s}.winStars span.on:nth-child(3) i{animation-delay:.4s}
    @keyframes winStar{from{transform:scale(0) rotate(-40deg)}70%{transform:scale(1.25)}to{transform:scale(1)}}
    .winPoints{font-size:34px;font-weight:900;letter-spacing:-.02em;color:#4b2aa6;font-variant-numeric:tabular-nums}
    .winPoints small{font-size:15px;font-weight:800;color:#55506a;margin-left:6px}
    .winBreakdown{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;font-size:12px;font-weight:700;color:#55506a}
    .winBreakdown span{background:#f3effc;border-radius:999px;padding:4px 10px}
    .winRecord{font-size:13px;font-weight:800;color:#0e7f6b}.winRecord.new{color:#a85a00}


    #soundBtn svg{width:22px;height:22px}
    #soundBtn[data-mode="mudo"]{color:#8b8398}
    #soundsOpenBtn{white-space:nowrap}
    @media(max-width:1200px){#soundsOpenBtn span{display:none}}
    #soundsDialog .dialogBody{width:min(640px,calc(100vw - 32px));box-sizing:border-box}
    #soundsDialog .sndHint{margin:4px 0 0;color:#55506a;font-size:14px;line-height:1.4}
    .sndList{display:grid;gap:8px;margin:14px 0 6px}
    .sndRow{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:10px 12px;border-radius:14px;background:#f7f3ff;border:1px solid #e3d9fb}
    .sndRow.custom{background:#ecf9f3;border-color:#bfe6d6}
    .sndRow.busy{background:#fff1f1;border-color:#f2c3c6}
    .sndIcon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#fff;font-size:24px;line-height:1}
    .sndInfo{min-width:0}.sndInfo strong{display:block;font-size:15px}.sndInfo small{display:block;color:#55506a;font-size:12px;font-weight:700}
    .sndRow.custom .sndInfo small{color:#0e7f6b}
    .sndBtns{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
    .sndBtns button{min-height:36px;white-space:nowrap}
    .sndBtns [hidden]{display:none!important}
    .sndBtns .recording{background:#c2414b;color:#fff;border-color:#c2414b}
    .sndBar{grid-column:1/-1;height:6px;border-radius:9px;background:#f2d6d8;overflow:hidden}
    .sndBar[hidden]{display:none}
    .sndBar i{display:block;height:100%;width:0;background:#c2414b;transition:width .1s linear}
    .sndCount{font-weight:900;color:#c2414b;font-variant-numeric:tabular-nums}
    .sndBudget{font-size:12px;color:#55506a;font-weight:700}
    @media(max-width:560px){.sndRow{grid-template-columns:40px minmax(0,1fr)}.sndIcon{width:40px;height:40px}.sndBtns{grid-column:1/-1;justify-content:stretch}.sndBtns button{flex:1;padding-left:6px;padding-right:6px}}
    #jrSoundBtn[data-mode="mudo"]{color:#9a8f84}
    .jrSndGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
    .jrSndCard{position:relative;display:grid;justify-items:center;gap:8px;padding:14px 10px 12px;border-radius:24px;background:#fff;border:3px solid #e6dac4}
    .jrSndCard.custom{border-color:#3f9a35;background:#f3fbef}
    .jrSndCard.busy{border-color:#c2414b;background:#fff3f2}
    .jrSndArt{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff;background:var(--c)}
    .jrSndArt svg{width:34px;height:34px}
    .jrSndName{font-size:22px;line-height:1.1;color:#3b342f}
    .jrSndState{font-size:15px;font-weight:800;color:#7a6f64;min-height:1.2em;text-align:center}
    .jrSndCard.custom .jrSndState{color:#2b6d24}
    .jrSndBtns{display:flex;gap:10px;align-items:center}
    .jrSndBtns button{border:0;cursor:pointer;display:grid;place-items:center;padding:0}
    .jrSndRec{width:60px;height:60px;border-radius:50%;background:#c2414b;color:#fff;box-shadow:0 5px 0 #8c2a32}
    .jrSndRec.recording{background:#3b342f;box-shadow:0 5px 0 #1d1916}
    .jrSndPlay{width:52px;height:52px;border-radius:50%;background:#3f9a35;color:#fff;box-shadow:0 5px 0 #2b6d24}
    .jrSndRec svg,.jrSndPlay svg{width:28px;height:28px}
    .jrSndDel{background:none!important;color:#8c2a32;font-weight:800;font-size:15px;text-decoration:underline;min-height:28px}
    .jrSndDel[hidden]{display:none}
    .jrSndCount{position:absolute;inset:0;display:grid;place-items:center;border-radius:21px;background:rgba(194,65,75,.92);color:#fff;font-size:64px;font-weight:900;pointer-events:none}
    .jrSndCount[hidden]{display:none}
    .jrSndCount.talk{font-size:26px;text-align:center;padding:10px}
    @media(max-width:560px){.jrSndGrid{gap:10px}.jrSndName{font-size:18px}.jrSndArt{width:48px;height:48px}.jrSndRec{width:54px;height:54px}.jrSndPlay{width:46px;height:46px}}


    .ameiBtn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px 0 10px;border-radius:999px;border:2px solid #f3c0d3;background:#fff;color:#b0245c;font:inherit;font-weight:900;font-size:14px;cursor:pointer;box-shadow:0 4px 14px rgba(30,24,56,.12);transition:transform .12s}
    .ameiBtn svg{width:20px;height:20px}
    .ameiBtn:hover{transform:translateY(-1px);border-color:#e06b98}
    .ameiBtn[aria-pressed="true"]{background:#e2427f;border-color:#e2427f;color:#fff}
    .ameiBtn[aria-pressed="true"] svg{animation:ameiBeat .45s ease-out}
    .ameiBtn[hidden]{display:none}
    #playHud .ameiBtn{pointer-events:auto;min-height:42px;border-color:rgba(226,66,127,.35);background:rgba(255,255,255,.93)}
    #playHud .ameiBtn[aria-pressed="true"]{background:#e2427f}
    .ameiBtn b{font-variant-numeric:tabular-nums}
    @media(max-width:760px){#playHud .ameiBtn{min-height:36px;padding:0 10px 0 8px}#playHud .ameiBtn span{display:none}}
    @keyframes ameiBeat{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}


    .toolSwatch.ladder{background:#8a5a2b;color:#ffe7c2}
    .touchControls.hasDown{grid-template-columns:repeat(5,minmax(52px,72px))}
    .touchButton.down{font-size:26px}


    .toolSwatch.checkpointSwatch{background:#d63a6b;color:#fff}
    @media(max-height:800px){.jrRail{gap:4px}.jrRail .jrTool{min-height:40px;max-height:56px}.jrRail .jrTool svg{width:24px;height:24px}.jrRail .jrTool span{font-size:13px}}


    .projectCard{grid-template-columns:112px minmax(0,1fr)}
    .projectThumb{width:112px;height:63px;border-radius:12px;overflow:hidden;background:#dcd3f5;font-size:22px;box-shadow:0 2px 0 rgba(30,24,56,.12)}
    .projectThumb canvas{display:block;width:100%;height:100%;object-fit:cover;image-rendering:auto}
    @media(max-width:600px){.projectCard{grid-template-columns:84px minmax(0,1fr)}.projectThumb{width:84px;height:47px}}


    .toolSwatch.monsterBoss{background:linear-gradient(145deg,#6b3fd9,#2a1f4d);color:#35e3ff}


    .storyStage{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-top:6px;padding:10px 12px;border-radius:14px;background:linear-gradient(90deg,#efe9ff,#fff)}
    .storyStage b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#6b3fd9;color:#fff;font-weight:900;flex:none}
    .storyStage strong{display:block;font-size:15px;color:#1e1838}.storyStage small{display:block;color:#55506a;font-weight:600;font-size:12px;margin-top:2px}
    .storyStage em{margin-left:auto;font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b3fd9;background:#fff;border:1px solid #d8d0f0;border-radius:999px;padding:3px 10px}
    .storyChapter{display:none}
    .gameIntroDT{display:grid;gap:8px;text-align:left;margin:4px 0 10px}
    .gameIntroDT div{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:8px 12px;border-radius:12px;background:#f6f3ff}
    .gameIntroDT span{font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#6b3fd9;align-self:center}
    .gameIntroDT p{margin:0;font-weight:600;color:#1e1838}
    @media(max-width:600px){.gameIntroDT div{grid-template-columns:1fr}}
    .jrIdeaBtn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border-radius:16px;border:3px solid #ffb703;background:#fff3cd;color:#7a4a00;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 5px 0 #d99a00}
    .jrIdeaBtn svg{width:24px;height:24px}
    #jrIdea,#jrIdeaIntro{border:0;border-radius:28px;padding:0;max-width:min(680px,94vw);width:100%;background:#fff;color:#1e1838;box-shadow:0 30px 80px rgba(30,24,56,.35);font-family:Lexend,"Nunito",system-ui,sans-serif}
    #jrIdea::backdrop,#jrIdeaIntro::backdrop{background:rgba(30,24,56,.55)}
    .jrIdeaBody{padding:22px 24px}
    .jrIdeaBody h2{margin:0 0 4px;font-size:26px;font-weight:900}.jrIdeaBody>p{margin:0 0 14px;color:#55506a;font-weight:600}
    .jrIdeaField{display:grid;gap:6px;margin-bottom:12px;padding:12px 14px;border-radius:18px;background:#fff8e6;border:2px solid #ffe2a3}
    .jrIdeaField label{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:900;color:#7a4a00}
    .jrIdeaField label b{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ff7a1a;color:#fff;font-size:16px}
    .jrIdeaField textarea{font:inherit;font-size:18px;font-weight:600;padding:10px 12px;border-radius:12px;border:2px solid #ffd27a;background:#fff;min-height:64px;resize:vertical}
    .jrIdeaField button{justify-self:start;min-height:36px;padding:0 12px;border-radius:999px;border:0;background:#2f6fd1;color:#fff;font:inherit;font-weight:800;cursor:pointer}
    .jrIdeaActions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
    .jrIdeaActions button{min-height:48px;padding:0 20px;border-radius:999px;border:0;font:inherit;font-weight:900;cursor:pointer;background:#efe9ff;color:#4b2aa6}
    .jrIdeaActions .primary{background:#ff7a1a;color:#fff;box-shadow:0 5px 0 #9a3f00}
    #jrIdeaIntro .jrIdeaLine{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:#f6f3ff;margin-bottom:10px;font-size:20px;font-weight:700}
    #jrIdeaIntro .jrIdeaLine b{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#6b3fd9;color:#fff;font-size:20px}
    #jrIdeaIntro .jrIdeaLine small{display:block;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#6b3fd9}

.jrReviewTop{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 10px;padding:12px 14px;border-radius:22px;background:#eef8ec;border:3px solid #9fd29a}.jrReviewTop p{margin:0;flex:1 1 240px;font-size:17px;font-weight:700;color:#2f5a2b}.jrReviewBack{min-height:56px;padding:10px 22px;border:0;border-radius:18px;background:#3f9a4a;box-shadow:0 6px 0 #2c7234;color:#fff;font:inherit;font-size:19px;font-weight:900;cursor:pointer}.jrReviewBack:focus-visible{outline:4px solid #2f6fd1;outline-offset:3px}
.jrChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:100%;max-width:980px;margin:6px auto 4px}.jrChoice{display:grid;gap:10px;justify-items:start;text-align:left;padding:18px 20px 20px;border-radius:30px;border:4px solid #e2d5bf;background:#fffaf0;box-shadow:0 9px 0 #ddd0b9;cursor:pointer;color:#3b342f;font:inherit;transition:transform .12s}.jrChoice:hover{transform:translateY(-3px)}.jrChoice:focus-visible{outline:4px solid #2f6fd1;outline-offset:4px}.jrChoice canvas{display:none!important}.jrChoiceArt{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;margin:0 auto}.jrChoice canvas.old{width:100%;height:auto;aspect-ratio:320/150;border-radius:18px;border:3px solid #e6dac6;background:#fff}.jrChoice strong{font-size:clamp(26px,3vw,34px);line-height:1.05}.jrChoice span{font-size:18px;color:#6c6359;line-height:1.35}.jrChoiceProject{border-color:#8f6be8;box-shadow:0 9px 0 #5d3fbf}.jrChoiceQuick{border-color:#5fae55;box-shadow:0 9px 0 #3f8a35}.jrChoice.on{background:#f1fbef}.jrQuick{width:100%;max-width:980px;margin:6px auto;display:grid;gap:14px;padding:18px 20px;border-radius:28px;background:#fffaf0;border:3px solid #e2d5bf}.jrQuick[hidden]{display:none!important}@media(max-width:760px){.jrChoices{grid-template-columns:1fr}}

#jrApp{--journey-orange:#ff7a1a;--journey-ink:#28134d}.jrJourneyCards{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;width:100%;max-width:720px;margin-inline:auto}.jrJourneyCard{background:#fff;border:2px solid #e7dfef;border-radius:22px;overflow:hidden;text-align:center;box-shadow:0 8px 24px #351a4910;color:var(--journey-ink);padding:0;cursor:pointer;font:inherit}.jrJourneyCard strong{display:block;font-size:26px;font-weight:900;padding:18px 12px 6px}.jrJourneyCard p{padding:0 16px;font-size:17px;line-height:1.45}.jrJourneyCard canvas{width:100%;height:132px;object-fit:cover;image-rendering:pixelated;display:block}.jrJourneyCard .jrChoiceGo{display:block;background:#ff7a1a;color:#231333;margin:12px;padding:14px;border-radius:14px;font-size:22px;font-weight:900}.jrJourneyCard:hover,.jrJourneyCard[aria-pressed=true]{border-color:#b74c00;box-shadow:0 0 0 2px #ffddc5}.jrColorStart{border:0;padding:12px 0;background:none}.jrLegacy{margin:20px 0;border:1px solid #dcd3e9;border-radius:18px;padding:16px}.jrLegacy>summary{font-size:18px;font-weight:800;cursor:pointer}.jrLegacy[open]>summary{margin-bottom:18px}.jrJourneyPanel{overflow:auto;flex:1;min-height:0;padding:22px max(20px,calc((100% - 1050px)/2));color:var(--journey-ink);background:#fffaf4}.jrJourneyPanel[hidden]{display:none!important}.jrJourneyPanel h2{font-size:clamp(25px,3vw,38px);margin:6px 0 16px}.jrJourneyPanel p{font-size:18px;line-height:1.5}.jrJourneyPanel button,.jrJourneyPanel input,.jrJourneyPanel textarea,.jrJourneyPanel select{font:inherit;min-height:48px;border-radius:14px}.jrJourneyPanel button{padding:12px 18px;border:2px solid #ddd3e8;background:#fff;color:#2e1949;cursor:pointer;font-weight:800}.jrJourneyPanel button[aria-pressed=true]{border-color:#b74c00;background:#fff0df}.jrJourneyPanel .jrJourneyPrimary{background:#ff7a1a;color:#271431;border-color:#ff7a1a;font-size:21px}.jrJourneyActions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.jrJourneyPanel input,.jrJourneyPanel textarea{width:100%;border:2px solid #d9cee8;padding:12px;color:#28134d;background:#fff}.jrJourneyPanel label{display:block;font-size:18px;font-weight:800;margin:14px 0}.jrJourneyPanel textarea{min-height:96px;resize:vertical}.jrMissionChoices{display:flex;gap:12px;flex-wrap:wrap}.jrMissionChoices button{display:grid;justify-items:center;gap:8px;min-width:130px}.jrMissionChoices canvas{width:64px;height:64px;image-rendering:pixelated}.jrJourneyChallenges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.jrJourneyChallenges button{padding:0;overflow:hidden}.jrJourneyChallenges canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.jrJourneyChallenges strong,.jrJourneyChallenges span{display:block;padding:9px 12px}.jrJourneyChallenges span{font-weight:500;font-size:15px}.jrJourneySplit{display:grid;grid-template-columns:1fr 1fr;gap:20px}.jrJourneyShot{background:#fff;border:1px solid #ded4e7;border-radius:18px;padding:14px;margin:0}.jrJourneyShot img{width:100%;aspect-ratio:16/9;object-fit:contain;image-rendering:pixelated}.jrJourneyShot figcaption{font-size:19px;font-weight:800;margin-bottom:10px}.jrJourneyTip{display:flex;gap:12px;align-items:center;background:#f1eafa;border-radius:16px;padding:14px;font-size:17px;line-height:1.5}.jrJourneyTip img{width:64px;height:64px;object-fit:contain}.jrJourneyTip p{margin:0}.jrJourneyQuestions{background:white;padding:12px 18px;border-radius:18px}.jrJourneyQuestions fieldset{border:0;border-bottom:1px solid #e6dfee;margin:0 0 14px;padding:12px 0}.jrJourneyQuestions legend{font-size:18px;font-weight:800}.jrJourneyQuestions button{margin:6px 6px 0 0}.jrJourneyStatus{min-height:24px;color:#513369;font-weight:700}.jrJourneyMode .jrBody,.jrJourneyMode>.jrTray,.jrJourneyMode>#jrColorConcept,.jrJourneyMode>#jrPaperControls,.jrJourneyMode>#jrAppearance{display:none!important}.jrJourneyMode #jrColorListen{display:none}.jrColorFlow{background:#fff;justify-content:center;padding:8px 14px;gap:8px}.jrColorFlow button{border:0;border-radius:10px;color:#655a74;font-size:15px;padding:9px 11px}.jrColorFlow button[aria-pressed=true]{background:#fff0df;color:#943800;box-shadow:inset 0 -3px #ff7a1a}.jrColorFlow a{font-size:12px;min-height:32px;margin-left:0}.jrColorConcept{color:#34234d;background:#f3edf8;line-height:1.45}.jrColorTool{border-width:2px;color:#28134d}.jrColorRail{width:182px;gap:5px}.jrColorTool{min-height:49px;font-size:16px}.jrColorTool small{font-size:11px}.jrColorSwatch{font-size:18px}.jrColorTool[data-color-tool=salvar]{font-size:15px}.jrColorTool[aria-pressed=true]{border-color:#b74c00;background:#fff1e7;box-shadow:none}#jrPaperControls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:6px 20px;background:#fffaf0;font-size:14px}#jrPaperControls button,#jrAppearance button{min-height:42px;padding:7px 12px;background:white;border:1px solid #cfc2dc;border-radius:10px;color:#35214c;font-weight:800;cursor:pointer}#jrPaperControls[hidden],#jrAppearance[hidden]{display:none!important}#jrAppearance{padding:8px 20px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#fff5e8;border-top:1px solid #e7d7c2}#jrAppearance b{font-size:14px}#jrAppearance button[aria-pressed=true]{border:2px solid #b74c00;background:#fff0df}#jrAppearance canvas{width:32px;height:32px;image-rendering:pixelated;vertical-align:middle;margin-right:8px}#jrJourneyHint{padding:8px 18px;background:#fff0da;color:#603500;font-weight:800}#jrJourneyHint[hidden]{display:none!important}.jrCommandBoard{display:flex;max-width:650px;background:#a4cb75;border-radius:18px;padding:18px;gap:4px;margin:18px 0}.jrCommandCell{flex:1;aspect-ratio:1;display:grid;place-items:center;background:#f4deaa;border:2px solid #b59763;border-radius:6px;font-size:34px}.jrCommandCell img{width:80%;height:80%;object-fit:contain}.jrRepeat{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:#fff0db;padding:20px;border:2px solid #ff7a1a;border-radius:18px;font-size:20px}.jrRepeat select{padding:8px}.jrRepeat span{padding:15px;background:#7151bd;color:#fff;border-radius:12px}.jrCommandLearn{border:1px solid #dfd1ef;border-radius:16px;padding:18px;margin:20px 0}.jrCommandLearn button{min-height:46px;border-radius:12px;padding:10px 18px;background:#f3edff;border:1px solid #bca9d7;font:inherit;font-weight:800;color:#3c2659}.jrJourneyPanel :focus-visible,.jrJourneyCard:focus-visible,#jrColorFlow :focus-visible,.jrColorTool:focus-visible{outline:3px solid #40216b;outline-offset:3px}
@media(max-width:700px){.jrJourneyCards,.jrJourneySplit,.jrJourneyChallenges{grid-template-columns:1fr}.jrJourneyCard canvas{height:100px}.jrJourneyPanel{padding:16px}.jrJourneyPanel h2{font-size:27px}.jrColorFlow{justify-content:flex-start;gap:3px}.jrColorFlow button{font-size:13px;padding:8px}.jrColorFlow a{display:none}.jrColorRail{width:auto;max-height:120px}.jrColorExtras{min-width:170px}.jrColorExtras>div{flex-direction:row}.jrColorExtras .jrColorTool{min-width:130px}.jrColorConcept{font-size:13px}.jrJourneyShot img{max-height:200px}.jrJourneyChallenges canvas{max-height:120px}#jrAppearance{max-height:120px;overflow:auto}.jrMissionChoices button{min-width:100px}.jrJourneyPanel p{font-size:16px}}
@media(max-height:750px) and (min-width:701px){.jrColorFlow{padding:4px 14px}.jrColorFlow button{min-height:38px}.jrColorTool{min-height:44px}.jrColorConcept{padding:5px 18px;font-size:13px}#jrPaperControls{padding:3px 18px}#jrAppearance{padding:4px 18px}.jrJourneyPanel{padding-top:12px}.jrJourneyCard canvas{height:100px}}
.jrReviewLayout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:22px;margin:18px 0}.jrReviewEvidence .jrJourneySplit{gap:10px}.jrReviewEvidence p{font-size:15px}.jrReviewTabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.jrReviewTabs button{flex:1;min-width:90px;padding:8px!important;font-size:14px!important}.jrReviewPrompt{padding:16px;background:#fff;border:2px solid #ead6bd;border-radius:18px}.jrReviewPrompt[hidden]{display:none!important}.jrReviewPrompt h3{font-size:23px;margin:0 0 8px}.jrReviewPrompt p{font-size:17px}.jrReviewPrompt label{font-size:15px}.jrReviewPrompt textarea{min-height:100px}.jrReviewVoiceHelp{font-size:15px!important}.jrReviewFinish{border-top:2px solid #ead6bd;padding-top:12px}.jrReviewFinish>p{font-size:18px;font-weight:800}#jrReviewCount{font-size:15px;align-self:center}.jrReviewFinish .jrJourneyActions button{font-size:16px}#jrReviewPresent{font-size:20px}.jrReviewEvidence .jrJourneyShot{padding:9px}.jrReviewEvidence .jrJourneyShot figcaption{font-size:15px}@media(max-width:800px){.jrReviewLayout{grid-template-columns:1fr}.jrReviewEvidence .jrJourneyShot img{max-height:150px}.jrReviewTabs button{min-width:80px}}



#taleEditor{width:min(780px,94vw);max-height:92dvh;border:0;padding:0;border-radius:24px;background:#fff;color:#28134d;font:17px/1.5 Lexend,system-ui,sans-serif;overflow:auto}#taleEditor::backdrop{background:#21113799}.taleBody{padding:22px}.taleHead{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}.taleHead h2{margin:0;font-size:28px}.taleHead p{margin:8px 0 16px}.taleBody button,.taleBody textarea,.taleTools button,.taleTools select{font:inherit;border-radius:12px;min-height:46px}.taleBody button,.taleTools button,.taleTools select{cursor:pointer;padding:9px 14px;background:#f3edff;color:#3f2567;border:1px solid #cfc0e2;font-weight:700}.taleBody button[aria-pressed=true]{background:#ffebd8;border:2px solid #b75200}.taleBody button.primary{background:#ff7a1a;border-color:#ff7a1a;color:#291631}.taleTabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.taleTabs button{flex:1;min-width:95px;font-size:14px}.talePrompt{padding:16px;border:2px solid #f4d4b0;background:#fff9ef;border-radius:18px}.talePrompt h3{margin:0 0 6px;font-size:24px}.talePrompt p{margin:0 0 12px}.taleField{display:block;font-weight:700;margin:12px 0}.taleField small{display:block;font-weight:500;color:#685770}.taleField textarea{display:block;width:100%;min-height:76px;padding:10px;border:2px solid #d8c9e6;color:#28134d;background:#fff;resize:vertical;margin-top:5px}.taleActions,.taleVoice,.taleTools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0}.taleStatus{min-height:24px;font-size:14px;color:#634773}.taleFoot{display:flex;flex-wrap:wrap;gap:9px;justify-content:space-between;margin-top:18px}.taleFoot button{flex:1}.taleTools{padding:10px 0}.taleTools label{font-size:14px}.taleTools select{max-width:100%}.taleBody :focus-visible,.taleTools :focus-visible{outline:3px solid #49216c;outline-offset:3px}.taleEvidence{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.taleEvidence[hidden]{display:none}.taleEvidence figure{margin:0}.taleEvidence img{width:100%;aspect-ratio:16/9;object-fit:contain}.taleEvidence figcaption{font-size:12px}.talePicture{width:70px;height:70px;object-fit:contain;float:right}#taleEditor[data-kind=pitch] .talePrompt{border-color:#cbb8ed;background:#f8f4ff}#taleEditor[data-kind=kids] .taleField textarea{font-size:19px}#taleEditor button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.taleBody{padding:16px}.taleHead h2{font-size:24px}.taleTabs button{min-width:85px;font-size:12px}.taleTools button{font-size:14px}.taleFoot button{min-width:120px}.talePicture{width:55px;height:55px}}


#colors2Toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;background:#fff;border:1px solid #d9cdf0;border-radius:16px;padding:10px 14px;margin-bottom:10px}#colors2Toolbar button,#colors2Rail button{font:inherit;min-height:44px;border-radius:12px;cursor:pointer;color:#35204e;background:#fff;border:2px solid #e1d8ec;padding:8px 12px;font-weight:750}#colors2Toolbar button[aria-pressed=true],#colors2Rail button[aria-pressed=true]{border-color:#6432a5;background:#f0e8ff}#colors2Concept{font-size:14px;line-height:1.45;flex-basis:100%;margin:0;color:#534367}#colors2Rail{display:none;background:#fff;border:1px solid #dacdee;border-radius:16px;padding:10px;max-height:calc(100dvh - 130px);overflow:auto;position:sticky;top:78px}#colors2Rail h3{font-size:16px;margin:0 0 10px}#colors2Rail button{display:flex;align-items:center;gap:8px;width:100%;margin-bottom:5px;text-align:left;font-size:14px;padding:6px;min-height:48px}#colors2Rail button small{display:block;font-size:11px;font-weight:500}#colors2Rail .jrColorSwatch{font-size:17px;width:30px;height:30px}#colors2Rail summary{font-size:14px;font-weight:750;padding:10px 0;cursor:pointer}#colors2Rail select{width:100%;min-height:42px;font:inherit;border:1px solid #cbb9e2;border-radius:8px;background:#fff;color:#35204e}#colors2Rail a{display:block;font-size:13px;color:#54268c;margin:10px 0}body:not(.shell2) #colors2Toolbar,body.jrMode #colors2Toolbar{display:none}body.shell2.colorPlanning2 #editorScreen .editorLayout.compactEditorLayout{grid-template-columns:208px minmax(0,1fr)}body.shell2.colorPlanning2 #colors2Rail{display:block}body.colorPlanning2 #editorScreen .editorToolDock,body.colorPlanning2 #shellToolChip,body.colorPlanning2 #mapEditBtn{display:none!important}body.colorPlanning2 #editorCanvas{cursor:crosshair}body.jrMode #colors2New{display:none}#colors2New{border-color:#6b3fd9;color:#54268c}body.editorFocusMode #colors2Rail{top:8px;max-height:calc(100dvh - 16px)}@media(max-width:900px){body.shell2.colorPlanning2 #editorScreen .editorLayout.compactEditorLayout{grid-template-columns:1fr}#colors2Rail{position:static;max-height:190px}#colors2Rail .colors2Main,#colors2Rail .colors2Extra{display:flex;flex-wrap:wrap;gap:6px}#colors2Rail button{width:auto;min-width:125px;flex:1;margin:0}#colors2Toolbar{padding:8px}#colors2Toolbar strong{font-size:14px}}#colors2Toolbar :focus-visible,#colors2Rail :focus-visible{outline:3px solid #442069;outline-offset:3px}


    .dvjAccount{display:inline-flex;align-items:center}.dvjAccount[hidden]{display:none!important}
    .dvjGoogleBtn{gap:8px!important;white-space:nowrap}.dvjGoogleBtn .dvjGoogleG{width:20px;height:20px;flex:none}
    .dvjAccountMenu{position:relative}.dvjAccountMenu>summary{list-style:none;cursor:pointer;min-height:44px;padding:0 12px 0 6px;border-radius:10px;border:2px solid #1e1838;background:#fff;display:inline-flex;align-items:center;gap:8px;font:800 14px/1 "Lexend",system-ui,sans-serif;color:#1e1838;box-shadow:3px 3px 0 #1e1838;white-space:nowrap}
    .dvjAccountMenu>summary::-webkit-details-marker{display:none}.dvjAccountMenu[open]>summary,.dvjAccountMenu>summary:hover{background:#efe9ff}
    .dvjAvatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(180deg,#7748e8,var(--dvj-violet));color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
    .dvjAccountPop{position:absolute;right:0;top:calc(100% + 8px);z-index:45;min-width:230px;background:#fff;border:2px solid #1e1838;border-radius:12px;box-shadow:4px 4px 0 #1e1838;padding:6px;display:grid;gap:2px}
    .dvjAccountPop>a,.dvjAccountPop>button{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:none;color:var(--dvj-ink);font:inherit;font-weight:700;font-size:15px;text-align:left;text-decoration:none;cursor:pointer;width:100%}
    .dvjAccountPop>a:hover,.dvjAccountPop>button:hover{background:var(--dvj-violet-soft)}.dvjAccountPop .dvjIcon{color:var(--dvj-violet-dark)}
    .dvjAccountPop .dvjPopHead{padding:8px 12px 10px;border-bottom:1px solid var(--dvj-line);margin-bottom:4px}.dvjAccountPop .dvjPopHead strong{display:block;font-size:15px}.dvjAccountPop .dvjPopHead small{display:block;color:var(--dvj-muted);font-size:12px;margin-top:2px}
    .dvjAccountPop .dvjBadge{margin-left:auto;background:var(--dvj-yellow);color:var(--dvj-yellow-ink);border-radius:999px;font-size:12px;padding:2px 8px}
    .dvjAccountJr{display:flex;align-items:center;gap:10px;margin-left:auto}.dvjAccountJr[hidden]{display:none!important}
    .dvjEnterBtn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;white-space:nowrap}.dvjAccountJr .dvjEnterBtn{min-height:48px;border-radius:16px;padding:0 16px;font-size:16px}
    .dvjAccountJr .dvjJrChip{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:4px 14px 4px 6px;border-radius:999px;background:#fff;border:3px solid #d8cbb4;font-weight:800;font-size:17px;color:#3b342f}
    .dvjAccountJr .dvjJrOut{min-height:44px;border-radius:14px;border:2px solid #d8cbb4;background:#fff;font:inherit;font-weight:800;font-size:15px;padding:0 14px;color:#6c6359;cursor:pointer}
    body.dvjReview .galleryBack{display:none!important}body.dvjReview .playTeam{display:block!important;font-weight:800;color:var(--dvj-violet-dark)}
    .dvjSheet{width:min(520px,calc(100% - 28px));border:0;border-radius:24px;padding:0;background:#fff;color:var(--dvj-ink);box-shadow:0 24px 80px rgba(38,31,54,.34)}.dvjSheet::backdrop{background:rgba(24,21,43,.62);backdrop-filter:blur(5px)}
    .dvjSheetBody{padding:26px 24px 24px;display:grid;gap:14px}.dvjSheetBody h2{margin:0;font-size:24px;line-height:1.15;letter-spacing:-.01em}.dvjSheetBody p{margin:0;line-height:1.5}
    .dvjSheetTop{display:flex;align-items:flex-start;gap:12px}.dvjSheetTop .dvjSheetIcon{width:52px;height:52px;border-radius:16px;background:var(--dvj-violet-soft);color:var(--dvj-violet-dark);display:grid;place-items:center;flex:none}.dvjSheetTop .dvjSheetIcon .dvjIcon{width:28px;height:28px}
    .dvjSheetClose{margin-left:auto;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--dvj-line);background:#fff;color:var(--dvj-ink);cursor:pointer;display:grid;place-items:center;flex:none}
    .dvjField{display:grid;gap:6px;font-weight:700;font-size:14px;color:var(--dvj-ink)}.dvjField input,.dvjField select,.dvjField textarea{min-height:48px;border:2px solid var(--dvj-line);border-radius:14px;padding:10px 14px;font:inherit;font-size:16px;color:var(--dvj-ink);background:#fff;width:100%}.dvjField input:focus,.dvjField select:focus,.dvjField textarea:focus{border-color:var(--dvj-violet)}
    .dvjField small{font-weight:600;color:var(--dvj-muted)}.dvjField.invalid input{border-color:var(--dvj-red)}.dvjFieldError{color:var(--dvj-red);font-weight:700;font-size:13px}
    .dvjChips{display:flex;flex-wrap:wrap;gap:8px}.dvjChip{min-height:40px;padding:6px 14px;border-radius:999px;border:2px solid var(--dvj-line);background:#fff;font:inherit;font-weight:700;font-size:14px;color:var(--dvj-ink);cursor:pointer}.dvjChip:hover{border-color:var(--dvj-violet-line);background:#fbfaff}.dvjChip[aria-pressed="true"],.dvjChip.on{border-color:var(--dvj-violet);background:var(--dvj-violet-soft);color:var(--dvj-violet-dark)}
    .dvjSheetActions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:4px}.dvjSheetActions .primary,.dvjSheetActions .ghost{min-height:48px;padding:0 20px}
    .dvjList{display:grid;gap:8px;margin:0;padding:0;list-style:none}.dvjListNote{margin:10px 0 0;font-size:14px;color:#5b5670}.dvjList>li,.dvjList>button{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border:2px solid var(--dvj-line);border-radius:16px;background:#fff;text-align:left;font:inherit;color:var(--dvj-ink);width:100%}.dvjList>button{cursor:pointer}.dvjList>button:hover{border-color:var(--dvj-violet);background:#fbfaff}
    .dvjList strong{display:block;font-size:16px}.dvjList small{display:block;color:var(--dvj-muted);font-size:13px;margin-top:2px}.dvjList .dvjListIcon{width:40px;height:40px;border-radius:12px;background:var(--dvj-violet-soft);color:var(--dvj-violet-dark);display:grid;place-items:center;flex:none}
    .dvjEmpty{padding:18px;border:2px dashed var(--dvj-violet-line);border-radius:16px;background:#faf8ff;text-align:center;color:var(--dvj-muted);font-weight:600}
    .dvjNote{background:var(--dvj-aqua-soft);color:var(--dvj-aqua-ink);border-radius:14px;padding:10px 14px;font-weight:700;font-size:14px}.dvjNote.warn{background:#fff4d6;color:var(--dvj-orange)}
    .dvjSizeBar{height:10px;border-radius:999px;background:var(--dvj-line);overflow:hidden}.dvjSizeBar>i{display:block;height:100%;background:linear-gradient(90deg,var(--dvj-aqua),var(--dvj-violet));border-radius:999px}.dvjSizeBar.over>i{background:var(--dvj-red)}
    .dvjCodeInput{text-transform:uppercase;letter-spacing:.2em;font-weight:800;font-size:22px!important;text-align:center}
    .dvjJrSubmit{min-height:56px;border-radius:18px;border:3px solid #d8cbb4;background:#fff;color:#3b342f;font:inherit;font-weight:800;font-size:17px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;box-shadow:0 5px 0 #e6dac6}.dvjJrSubmit[hidden]{display:none!important}.dvjJrSubmit .dvjIcon{width:26px;height:26px;color:var(--dvjViolet,#6b3fd9)}
    @media(max-width:640px){.brand.hasWordmark small.brandTagline{display:none}.dvjAccountPop{position:fixed;left:12px;right:12px;top:76px;min-width:0}.dvjAccount .dvjGoogleBtn .dvjGoogleText{display:none}.dvjAccountMenu>summary .dvjNick{display:none}.dvjAccountMenu>summary{padding:0 6px}.dvjAccountJr{width:100%;justify-content:flex-start;margin-left:0}.dvjJrSubmit span{display:none}}


    header.siteTop{position:sticky;top:0;z-index:20;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 16px;min-height:64px;margin:0;padding:8px max(16px,calc((100vw - 1240px)/2));background:rgba(255,255,255,.97);border:0;border-bottom:2px solid #1e1838;box-shadow:none;font-family:"Lexend",system-ui,sans-serif}
    header.siteTop .brand{display:flex;align-items:center;gap:10px;flex:none;min-width:0;min-height:44px;text-decoration:none;color:#1e1838;font-weight:800;font-size:17px;line-height:1.15}
    /* 23/10/2026: o mesmo logotipo ilustrado em todas as páginas (o app também usa este topo, ver index.js). */
    header.siteTop .brand .dvjWordmark{display:block;height:56px;width:auto;flex:none}header.siteTop .brandText{display:flex;flex-direction:column;justify-content:center;min-width:0}header.siteTop .brandText small{display:block;font-size:12px;font-weight:700;line-height:1.25;color:#55506a;max-width:170px}
    header.siteTop .siteAvatar{width:28px;height:28px;border-radius:50%;background:linear-gradient(180deg,#7748e8,#6b3fd9);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
    header.siteTop .vira{color:#6b3fd9}header.siteTop .siteName small{display:block;margin:2px 0 0;font-size:12px;font-weight:600;color:#55506a}
    .siteNav{display:flex;align-items:center;gap:4px;margin-left:auto;min-width:0;flex:0 0 auto}
    .siteNav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;border:2px solid transparent;color:#1e1838;font:700 14px/1 "Lexend",system-ui,sans-serif;text-decoration:none;white-space:nowrap}
    .siteNav a{gap:6px;flex:none}.siteNav .navIco,header.siteTop .siteEnter .navIco{display:block;width:26px;height:26px;flex:none;object-fit:contain;transform:none}.siteNav a.cta .navIco{background:#fff;border-radius:6px;width:24px;height:24px}
    .siteNav a:hover{background:#efe9ff}.siteNav a[aria-current="page"]{border-color:#1e1838;background:#fff;box-shadow:2px 2px 0 #1e1838}
    .siteNav a.cta{margin:0 6px;background:#6b3fd9;border-color:#1e1838;color:#fff;box-shadow:3px 3px 0 #1e1838}.siteNav a.cta:hover{background:#5a32c4}.siteNav a.cta:active{transform:translate(3px,3px);box-shadow:none}.siteNav a.cta[aria-current="page"]{background:#5a32c4;box-shadow:3px 3px 0 #1e1838}
    header.siteTop .topRight{flex:none;display:flex;align-items:center;gap:8px}header.siteTop .topRight:empty{display:none}
    header.siteTop .siteAccount{flex:none;position:relative;display:flex;align-items:center}header.siteTop .siteAccount[hidden]{display:none}
    header.siteTop .siteEnter,header.siteTop .siteMe>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:10px;border:2px solid #1e1838;background:#fff;color:#1e1838;font:800 14px/1 "Lexend",system-ui,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:3px 3px 0 #1e1838}
    header.siteTop .siteEnter:hover,header.siteTop .siteMe>summary:hover{background:#efe9ff}header.siteTop .siteMe>summary{list-style:none;max-width:240px;overflow:hidden;padding:0 12px 0 6px}header.siteTop .siteMeName{min-width:0;max-width:16ch;overflow:hidden;text-overflow:ellipsis}header.siteTop .siteMe>summary::-webkit-details-marker{display:none}header.siteTop .siteMeArrow{display:inline-flex;flex:none}
    header.siteTop .siteMePop{position:absolute;right:0;top:calc(100% + 8px);z-index:40;display:grid;min-width:210px;padding:6px;background:#fff;border:2px solid #1e1838;border-radius:12px;box-shadow:4px 4px 0 #1e1838}
    header.siteTop .siteMePop a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:#1e1838;font:700 15px/1.2 "Lexend",system-ui,sans-serif;text-decoration:none}header.siteTop .siteMePop a:hover,header.siteTop .siteMePop a:focus-visible{background:#efe9ff}
    header.siteTop .siteMePop a:not(:first-child):last-child{border-top:2px dashed #e1dbf2;margin-top:4px}
    /* Topo de foco (focusHeader): voltar com o destino escrito, título e ações. Uma linha em qualquer largura. */
    header.siteTop.focusTop{flex-wrap:nowrap;gap:10px;min-height:56px}
    header.siteTop .focusBack{display:inline-flex;align-items:center;gap:6px;flex:none;max-width:45vw;min-height:48px;padding:0 12px 0 8px;border:2px solid #1e1838;border-radius:10px;background:#fff;color:#1e1838;font:800 14px/1 "Lexend",system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:3px 3px 0 #1e1838}
    header.siteTop .focusBack svg{flex:none}header.siteTop .focusBack span{min-width:0;overflow:hidden;text-overflow:ellipsis}header.siteTop .focusBack:hover{background:#efe9ff}header.siteTop .focusBack:active{transform:translate(3px,3px);box-shadow:none}
    header.siteTop .focusTitle{flex:1 1 auto;min-width:0;color:#1e1838;font:800 17px/1.2 "Lexend",system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    header.siteTop .focusActions{flex:none;display:flex;align-items:center;gap:8px;margin-left:auto}
    nav.siteTabs{display:none}
    /* 20/11/2026 (F1): foco do teclado visível em todo item da casca. A casca não tem animação; o deslocamento do carimbo ao apertar some para quem pede menos movimento. */
    header.siteTop a:focus-visible,header.siteTop summary:focus-visible,footer.siteFoot a:focus-visible{outline:3px solid #6b3fd9;outline-offset:2px}header.siteTop .siteNav a.cta:focus-visible{outline-color:#1e1838;outline-offset:4px}
    @media(min-width:901px){header.siteTop .brandText .siteLabelSmall{display:none}}
    @media(prefers-reduced-motion:reduce){.siteNav a.cta:active,nav.siteTabs a.cta:active .tabIco,header.siteTop .focusBack:active{transform:none}}
    /* 02/11/2026: a faixa do topo tem 1240 px, os links não encolhem, o nome do chip corta com reticências e os ícones dos links somem antes de faltar espaço; se ainda assim não couber, a conta desce de linha em vez de sobrepor. */
    @media(max-width:1240px){.siteNav a:not(.cta) .navIco{display:none}.siteNav a{padding:0 10px}header.siteTop .siteMeName{max-width:10ch}}
    @media(max-width:1100px){header.siteTop .brandText .siteLabel{display:none}.siteNav a{padding:0 8px}header.siteTop .siteMeName{max-width:8ch}}
    /* Até 900 px (celular e tablet): uma linha presa no topo e os 5 destinos na barra de baixo, com o "Criar" maior no meio. Alvos de 48 px ou mais; a barra respeita a área segura do aparelho e o corpo ganha espaço para nada ficar coberto. */
    @media(max-width:900px){
      header.siteTop{flex-wrap:nowrap;gap:10px;min-height:56px;padding-top:6px;padding-bottom:6px}
      header.siteTop .siteNav{display:none}
      header.siteTop .brand{flex:1 1 auto}header.siteTop .brand .dvjWordmark{height:44px}
      header.siteTop .brandText .siteLabel{display:block;max-width:none;font-size:14px;font-weight:800;color:#1e1838;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
      header.siteTop .topRight,header.siteTop .siteAccount{margin-left:auto}
      header.siteTop .siteEnter,header.siteTop .siteMe>summary{min-height:48px}header.siteTop .siteMePop a{min-height:48px}
      nav.siteTabs{position:fixed;left:0;right:0;bottom:0;z-index:30;box-sizing:border-box;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;margin:0;padding:4px max(2px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(2px,env(safe-area-inset-left,0px));background:#fff;border-top:2px solid #1e1838}
      nav.siteTabs a{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:48px;min-height:56px;padding:4px 0;border:2px solid transparent;border-radius:12px;color:#1e1838;font:700 11px/1.15 "Lexend",system-ui,sans-serif;text-align:center;text-decoration:none}
      nav.siteTabs .tabIco{display:grid;place-items:center;width:28px;height:28px;flex:none}nav.siteTabs .navIco{display:block;width:26px;height:26px;object-fit:contain}nav.siteTabs .tabTxt{display:block;max-width:100%;letter-spacing:-.01em}
      nav.siteTabs a[aria-current="page"]{background:#efe9ff;border-color:#1e1838;box-shadow:2px 2px 0 #1e1838}
      nav.siteTabs a:focus-visible{outline:3px solid #6b3fd9;outline-offset:1px}
      nav.siteTabs a.cta{margin:0;background:none;box-shadow:none;font-weight:800;font-size:12px}nav.siteTabs a.cta .tabIco{width:48px;height:48px;margin-top:-20px;border:2px solid #1e1838;border-radius:16px;background:#6b3fd9;box-shadow:3px 3px 0 #1e1838}nav.siteTabs a.cta .navIco{width:30px;height:30px;background:#fff;border-radius:8px}
      nav.siteTabs a.cta[aria-current="page"]{background:none;border-color:transparent;box-shadow:none;color:#6b3fd9}nav.siteTabs a.cta:active .tabIco{transform:translate(3px,3px);box-shadow:none}
      /* 20/11/2026 (F1): 80 px, não 72: com rótulo de duas linhas ("Minha pasta", "Atividades prontas") a barra mede 78 px. */
      html.dvjTabs body{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
      /* Os avisos das páginas (.toast) nasciam a 22 px do chão: sobem para não ficarem atrás da barra. */
      html.dvjTabs .toast,html.dvjTabs .dvjRestToast,html.dvjTabs #dvjPreviewBar{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
    }
    /* Sem JavaScript a barra continua lá (sai pronta do servidor): o espaço embaixo vem por :has, em regra separada para os navegadores antigos não descartarem a de cima. */
    @media(max-width:900px){body:has(nav.siteTabs:not(.appTabs)){padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}}
    @media(max-width:340px){nav.siteTabs a{font-size:10px}}
    @media(max-width:600px){header.siteTop .brandText small:not(.siteLabel){display:none}header.siteTop .siteMeName{display:none}header.siteTop .siteMe>summary{padding:0 8px 0 6px}}
    /* 20/11/2026 (F1): o rodapé ocupa a largura toda do pai e o texto fica na coluna de 1100 px pelo preenchimento; a borda rasgada usa a largura do próprio rodapé. Antes ela media 100vw, que conta a barra de rolagem e fazia a página rolar ~8 px de lado. */
    footer.siteFoot{position:relative;box-sizing:border-box;display:grid;gap:12px;width:auto;max-width:none;margin:56px 0 0;padding:24px max(16px,calc(50% - 534px)) 32px;border-top:0;color:#55506a;font:14px/1.5 "Lexend",system-ui,sans-serif;background:#fff;box-shadow:0 0 0 100vmax #fff;clip-path:inset(-28px -100vmax -100vmax);text-align:left}
    footer.siteFoot::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:28px;transform:scaleY(-1);background:url(/marca/borda-rasgada.webp) left top/auto 100% repeat-x;pointer-events:none}
    /* Alvos de 44 px: 44 de altura e 7 px de cada lado do texto ("Loja", com 31 px, passa a 45); a distância entre os nomes continua de 16 px. */
    footer.siteFoot [data-instalar]{min-height:44px;padding:0 14px;border:2px solid #1e1838;border-radius:8px;background:#fff;color:#1e1838;font:700 14px/1 "Lexend",system-ui,sans-serif;cursor:pointer}footer.siteFoot [data-instalar][hidden]{display:none}
    footer.siteFoot .siteFootRow{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 38px}
    footer.siteFoot nav{display:flex;flex-wrap:wrap;gap:0 2px;margin:0 -7px}footer.siteFoot a{display:inline-flex;align-items:center;min-height:44px;padding:0 7px;color:#1e1838;font-weight:700;text-decoration:none}footer.siteFoot a:hover{text-decoration:underline}footer.siteFoot p{margin:0}

header.topbar.siteTop{padding-left:max(18px,calc((100vw - 1500px)/2));padding-right:max(18px,calc((100vw - 1500px)/2));gap:12px 18px}header.topbar.siteTop .brandText small{max-width:240px}header.topbar.siteTop .topActions{margin-left:auto}body:has(#homeScreen.active):not(.chooserOpen) header.topbar.siteTop .topActions{margin-left:0}
@media(max-width:900px){header.topbar.siteTop{flex-wrap:wrap}body:has(#homeScreen.active) header.topbar.siteTop .topActions{margin-left:auto}}
@media(max-width:600px){body.jrMode header.topbar.siteTop,body:not(.chooserOpen):not(:has(#homeScreen.active)) header.topbar.siteTop{position:static}}
@media(min-width:900px) and (max-height:850px){header.topbar.siteTop{min-height:54px}header.topbar.siteTop .brand .dvjWordmark{height:40px}}