/* Tela de início do computador (desktop-home.mjs). Mesmo limite de desktopHomeQuery; a classe .desktop-home
   só existe quando o JS montou o layout. Celular e tablet deitados menores seguem com mobile-home.css. */
@media (orientation:landscape) and (min-width:960px) and (min-height:640px){
 /* Uma coluna só: barra, título centralizado com o elenco, faixa de três cartões e as campanhas.
    Cartões e campanhas dividem a mesma largura e o mesmo espaçamento: a campanha principal ocupa
    a largura de dois cartões e a dos personagens, a do terceiro. */
 #root #stage[data-mode=title] #overlay.desktop-home{--dh-width:min(100%,1180px);--dh-gap:clamp(12px,1.4vw,18px);padding:14px 18px 16px}
 #root #stage[data-mode=title] #overlay.desktop-home .title-screen{grid-template-columns:minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) auto auto;grid-template-areas:"bar" "hero" "cards" "play";gap:clamp(12px,2.4vh,28px) 0}
 /* ENTRAR fica colado em tela cheia e música: mesmo topo, mesma altura e o mesmo espaço entre os três. */
 #root #stage[data-mode=title] #overlay.desktop-home .mh-bar{grid-area:bar;padding-right:calc(var(--mh-utilities,106px) - 2px)}
 #root #stage[data-mode=title] #overlay.desktop-home .mh-bar>:is(button,a){height:44px;min-height:44px;box-sizing:border-box}
 #root #stage[data-mode=title] #overlay.desktop-home~#utilities{top:14px;right:18px;bottom:auto;gap:8px}
 #root #stage[data-mode=title] #overlay.desktop-home~#utilities button{width:44px;min-width:44px;height:44px;min-height:44px;padding:8px}

 /* Logo grande, slogan e o desfile do elenco, no centro do quadro. */
 #root #stage[data-mode=title] #overlay.desktop-home .title-identity{grid-area:hero;container-type:size;align-self:stretch;justify-self:stretch;height:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;--dh-cast:min(100cqw,clamp(720px,130cqh,880px));gap:clamp(8px,3vh,40px);min-width:0;min-height:0;max-width:none;margin:0;padding:0;width:auto}
 #root #stage[data-mode=title] #overlay.desktop-home .logo{gap:8px;margin:0}
 #root #stage[data-mode=title] #overlay.desktop-home .logo strong{font-size:clamp(52px,min(14cqw,26cqh),156px)}
 #root #stage[data-mode=title] #overlay.desktop-home .title-identity .logo small{font-size:clamp(26px,min(6.4cqw,12cqh),70px)}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-slogan{display:flex;align-items:center;gap:12px;margin:0;color:#ffe598;font:clamp(20px,min(3.2cqw,6cqh),36px)/1 VT323,monospace;letter-spacing:.04em;text-align:center;text-shadow:2px 2px 0 #0a1428}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-slogan::before,#root #stage[data-mode=title] #overlay.desktop-home .dh-slogan::after{content:'';width:8px;height:8px;background:#ffd84a;box-shadow:12px 0 0 #3fb36a,-12px 0 0 #4c8de2;flex:none}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-slogan::before{margin-right:14px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-slogan::after{margin-left:14px}
 #root #stage[data-mode=title] #overlay.desktop-home .cast-carousel{display:flex;justify-content:center;--cast-visible:7;width:var(--dh-cast);max-width:none;min-width:0;margin:clamp(10px,3cqh,28px) auto 0;padding:6px;border-top:0}
 #root #stage[data-mode=title] #overlay.desktop-home .cast-slot .portrait-trigger{max-width:none;padding:2px 4px}
 #root #stage[data-mode=title] #overlay.desktop-home .cast-strip .portrait{width:clamp(44px,min(calc(var(--dh-cast) / 7 - 14px),17cqh),112px);height:auto;aspect-ratio:7/8}

 /* Faixa de atalhos: três cartões iguais em largura e altura, com título, uma linha e a ação. */
 #root #stage[data-mode=title] #overlay.desktop-home .dh-cards{grid-area:cards;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--dh-gap);width:var(--dh-width);justify-self:center;align-items:stretch;min-height:0}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-card{--edge:#78c7d5;position:relative;display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:12px;min-width:0;min-height:0;margin:0;padding:10px 12px;overflow:hidden;border:3px solid var(--edge);background:#132238;box-shadow:0 4px 0 #050d1e,inset 0 -4px 0 color-mix(in srgb,var(--edge) 22%,transparent);color:#fff8dc;text-align:left;text-decoration:none;font:inherit;cursor:pointer}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-challenge{--edge:#4c8de2}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-news{--edge:#e9e4d4}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-collection{--edge:#6fd3a0;cursor:default}
 /* Ladrilho de 52 px: os ícones de 24 px de grade aparecem em 2:1 e o jornal de 96 px em 1:2, sempre em escala inteira. */
 #root #stage[data-mode=title] #overlay.desktop-home .dh-tile{width:52px;height:52px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-tile .px-icon{width:48px;height:48px;image-rendering:pixelated}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-card-body{display:flex;flex-direction:column;gap:4px;align-self:stretch;min-width:0;min-height:0}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-eyebrow{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;white-space:nowrap;color:var(--edge);font:8px/1.4 'Brasil Arcade',monospace;letter-spacing:.04em}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-stamp{color:#9bb8c4}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-card-title{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:10px/1.6 'Brasil Arcade',monospace;color:#fff8dc}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-muted{color:#9bb8c4}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-card-meta{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:18px/1.05 VT323,monospace;color:#c9d3dc}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-cta{margin-top:auto;padding-top:2px;font:18px/1 VT323,monospace;color:var(--edge);white-space:nowrap}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-chip{display:inline-block;padding:1px 6px;border:2px solid #9fe0bd;background:#0f1d2b;color:#fff8dc;font:8px/1.4 'Brasil Arcade',monospace;vertical-align:1px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-chip.difficulty-lua{border-color:#ffb3d1}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-chip.difficulty-impeachment{border-color:#ff9878}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-chip.difficulty-colapso{border-color:#c9a0ff}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-live{width:8px;height:8px;background:#ff5a4a;box-shadow:0 0 0 2px #4a1410;flex:none}
 /* Coleção: duas linhas clicáveis de uma linha só, álbum (com a barra) e medalhas. */
 #root #stage[data-mode=title] #overlay.desktop-home .dh-collection .dh-card-body{gap:5px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;width:100%;min-width:0;min-height:34px;margin:0;padding:3px 8px;border:2px solid #34506a;background:#0f1d2b;color:#fff8dc;text-align:left;font:inherit;cursor:pointer}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-row-head{grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-row-head strong{flex:none;font:8px/1.4 'Brasil Arcade',monospace;color:#fff8dc}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-row-head span,#root #stage[data-mode=title] #overlay.desktop-home .dh-row small{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:17px/1 VT323,monospace;color:#c9d3dc}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-row small{display:none}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-row small.dh-fresh{display:block;grid-column:2;grid-row:1;color:#ffd84a}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-album:has(.dh-fresh) .dh-row-head{grid-column:1}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-bar{grid-column:1/-1;display:block;height:6px;border:1px solid #34506a;background:repeating-linear-gradient(90deg,#0a1528 0 6px,#122036 6px 8px)}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-bar i{display:block;height:100%;background:repeating-linear-gradient(90deg,#6fd3a0 0 6px,#3f8a5c 6px 8px)}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-collection.is-complete .dh-bar i{background:repeating-linear-gradient(90deg,#ffd84a 0 6px,#c79a2a 6px 8px)}
 /* Medalhas: com medalhas, os ícones ficam na mesma linha do nome; sem nenhuma, só a contagem. */
 #root #stage[data-mode=title] #overlay.desktop-home .dh-achievements:has(.dh-medals) .dh-row-head{grid-column:1}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-achievements:has(.dh-medals) .dh-row-head>span{display:none}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-achievements>.dh-card-meta{display:none}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-medals{grid-column:2;grid-row:1;display:flex;gap:10px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-medal{display:flex;align-items:center;gap:3px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-medal svg{width:18px;height:18px;image-rendering:pixelated}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-medal b{font:18px/1 VT323,monospace;color:#fff8dc}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-medal.is-zero{opacity:.45}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #root #stage[data-mode=title] #overlay.desktop-home :is(.dh-card,.dh-row):hover{border-color:#fff1ae}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-collection:hover{border-color:var(--edge)}
 #root #stage[data-mode=title] #overlay.desktop-home :is(.dh-card,.dh-row):focus-visible{outline:3px solid #fff1ae;outline-offset:3px}

 /* Campanhas na mesma grade de três colunas dos cartões: a principal ocupa duas, com "Continuar · Fase N" em destaque. */
 #root #stage[data-mode=title] #overlay.desktop-home .title-play-actions{grid-area:play;grid-template-columns:repeat(3,minmax(0,1fr));width:var(--dh-width);max-width:none;justify-self:center;gap:var(--dh-gap);margin:0}
 #root #stage[data-mode=title] #overlay.desktop-home .title-play-actions .mode-card{min-height:clamp(96px,14vh,152px);padding:12px 18px;gap:6px 16px;grid-template-columns:clamp(52px,5vw,72px) minmax(0,1fr);align-content:center}
 #root #stage[data-mode=title] #overlay.desktop-home .title-play-actions .main-campaign{grid-column:span 2;padding-right:76px}
 #root #stage[data-mode=title] #overlay.desktop-home .title-play-actions .main-campaign::after{right:20px;width:44px;height:44px;font-size:18px}
 #root #stage[data-mode=title] #overlay.desktop-home .mode-card .campaign-emblem{width:100%;height:auto;max-width:72px;grid-column:1;grid-row:1/4;align-self:center}
 #root #stage[data-mode=title] #overlay.desktop-home .mode-card strong{font-size:clamp(11px,1vw,14px);line-height:1.5}
 #root #stage[data-mode=title] #overlay.desktop-home .mode-card span{font:clamp(19px,1.6vw,24px)/1.05 VT323,monospace}
 #root #stage[data-mode=title] #overlay.desktop-home .main-campaign>span{display:block}
 #root #stage[data-mode=title] #overlay.desktop-home .main-campaign small{justify-self:start;margin-top:2px;padding:4px 10px;border:2px solid #0f3b2a;background:#f2c94c;color:#0f3b2a;font:10px/1.4 'Brasil Arcade',monospace;box-shadow:0 3px 0 #0f3b2a55}
}
/* Computador baixo (até 720 px): espaços mais justos; os cartões mantêm título, linha e ação. */
@media (orientation:landscape) and (min-width:960px) and (min-height:640px) and (max-height:720px){
 #root #stage[data-mode=title] #overlay.desktop-home .title-screen{gap:10px 0}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-card{padding:8px 12px}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-card-body{gap:3px}
 #root #stage[data-mode=title] #overlay.desktop-home .title-play-actions .mode-card{min-height:92px;padding:10px 16px}
}
@media (orientation:landscape) and (min-width:960px) and (min-height:640px) and (prefers-reduced-motion:no-preference){
 #root #stage[data-mode=title] #overlay.desktop-home :is(.dh-challenge,.dh-news){transition:transform .12s steps(2),box-shadow .12s steps(2)}
 #root #stage[data-mode=title] #overlay.desktop-home :is(.dh-challenge,.dh-news):hover{transform:translateY(-2px);box-shadow:0 6px 0 #050d1e,inset 0 -4px 0 color-mix(in srgb,var(--edge) 22%,transparent)}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-live{animation:dh-blink 1.2s steps(1) infinite}
 #root #stage[data-mode=title] #overlay.desktop-home .dh-slogan::before,#root #stage[data-mode=title] #overlay.desktop-home .dh-slogan::after{animation:dh-blink 2.4s steps(1) infinite}
}
@keyframes dh-blink{50%{opacity:.25}}
/* V417 · Computador: o ícone do Super Games ganha o texto pequeno ao lado, sem brilho (o nome também está no aria-label e no title). */
@media (orientation:landscape) and (min-width:960px) and (min-height:640px){
 #root #stage[data-mode=title] #overlay.desktop-home .mh-bar>.mh-hub{gap:8px;padding:4px 10px}
 #root #stage[data-mode=title] #overlay.desktop-home .mh-bar>.mh-hub>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font:7px/1.4 "Brasil Arcade",monospace;color:#d8ffe9}
}
