/* Álbum de figurinhas: painel modal no padrão de Conquistas, com páginas de papel e figurinhas em pixel art. */
#root #stage[data-mode=title] #overlay .title-tools .menu-album{background:#173d2f;border-color:#6fd3a0;color:#dcffe9;flex:0 0 44px}
#stage .album-panel{width:min(1080px,calc(100vw - 24px));height:min(740px,calc(100svh - 24px));max-width:none;max-height:none;padding:0;color:#eaf3ee;background:#14243a;border:3px solid #f1cc70;box-shadow:5px 5px #061120;overflow:hidden}
#stage .album-panel::backdrop{background:#070d1bd9}
#stage .album-panel[open]{display:flex;flex-direction:column}
#stage .album-panel button{cursor:pointer}
#stage .album-panel button:focus-visible{outline:3px solid #fff3b9;outline-offset:2px}
#stage .album-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;background:#1c3047;border-bottom:2px solid #647a84;flex-shrink:0}
#stage .album-header h2{display:flex;align-items:center;gap:10px;margin:0;color:#ffe598;font:14px/1.5 'Brasil Arcade',monospace}
#stage .album-header h2 svg{width:30px;height:30px;flex-shrink:0;image-rendering:pixelated}
#stage .album-header p{margin:2px 0 0;font:19px/1.1 VT323,monospace;color:#b8cbd8}
#stage .album-total{color:#ffe598;font-weight:400}
#stage .album-fresh{display:inline-block;margin-left:6px;padding:0 6px;background:#e14b35;color:#fff4c4;font:16px/1.2 VT323,monospace}
#stage .album-header>button{min-height:44px;padding:8px 14px;font:9px/1.4 'Brasil Arcade',monospace;border:2px solid #f1cc70;background:#3a3829;color:#fff0b5;flex-shrink:0}
#stage .album-tabs{display:flex;gap:6px;padding:7px 12px;overflow-x:auto;scrollbar-width:thin;background:#112035;border-bottom:2px solid #2a4258;flex-shrink:0}
#stage .album-tabs button{position:relative;flex:0 0 auto;min-height:32px;padding:4px 9px;border:2px solid #3f5a70;background:#172b42;color:#d6e4ea;font:8px/1.3 'Brasil Arcade',monospace;white-space:nowrap}
#stage .album-tabs button small{font:15px/1 VT323,monospace;color:#9fb6c6;margin-left:3px}
#stage .album-tabs button i{position:absolute;top:-6px;right:-3px;color:#ff6a52;font:12px/1 monospace;font-style:normal}
#stage .album-tabs button[aria-current=page]{border-color:#f1cc70;background:#3b3523;color:#fff1b5}
#stage .album-book{flex:1;min-height:0;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:10px 10px 6px;background:repeating-linear-gradient(45deg,#3a2618 0 6px,#33221a 6px 12px)}
#stage .album-turn{width:44px;height:64px;padding:0;border:2px solid #f1cc70;background:#3a3829;color:#ffe598;font:18px/1 monospace;box-shadow:0 3px #120b06}
#stage .album-turn[disabled]{opacity:.3;cursor:default;box-shadow:none}
#stage .album-spread{height:100%;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:0;box-shadow:4px 4px #120b06}
#stage .album-book[data-spread="1"] .album-spread{grid-template-columns:1fr}
#stage .album-page{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;padding:10px 12px 6px;background:#f3ead0;color:#2b2418;border:2px solid #120b06}
#stage .album-book[data-spread="2"] .album-spread>.album-page:first-child,#stage .album-flip [data-page-side=left]>.album-page{border-right-width:1px;box-shadow:inset -10px 0 12px -10px #6b5a3a}
#stage .album-book[data-spread="2"] .album-spread>.album-page:nth-child(2),#stage .album-flip [data-page-side=right]>.album-page{border-left-width:1px;box-shadow:inset 10px 0 12px -10px #6b5a3a}
#stage .album-page::before{content:'';position:absolute;inset:4px;border:1px solid #c9b88a;pointer-events:none}
#stage .album-page.album-bosses{background:#f2dcd0}
#stage .album-page.album-arsenal{background:#dcecea}
#stage .album-page.album-cast{background:#e6e2f2}
#stage .album-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}
#stage .album-page-head h3{margin:0;color:#1d4a32;font:12px/1.4 'Brasil Arcade',monospace}
#stage .album-page-head p{margin:1px 0 0;color:#5d5138;font:17px/1.05 VT323,monospace}
#stage .album-page-count{flex-shrink:0;padding:1px 6px;background:#1d4a32;color:#fff1b5;font:17px/1.1 VT323,monospace}
#stage .album-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:9px;margin:0;padding:0;list-style:none}
#stage .album-grid[data-count="4"]{--cols:2}
#stage .album-folio{text-align:center;color:#8b7a52;font:14px/1 VT323,monospace;margin-top:4px}
#stage .album-slot{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:0;overflow:visible}
#stage .album-slot.empty{justify-content:center;gap:2px;padding:6px;border:2px dashed #b2a072;background:#e9dfc0;color:#7d6c47;text-align:center}
#stage .album-slot.empty .album-num{position:absolute;top:3px;left:6px;font:18px/1 VT323,monospace;color:#66532e}
#stage .album-mystery{font:30px/1 'Brasil Arcade',monospace;color:#c3b083}
#stage .album-slot.empty .album-art{flex:1;min-height:0;width:100%;display:grid;place-items:center}
#stage .album-hint{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font:15px/1 VT323,monospace;color:#6c5c3a}
#stage .album-sticker{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;margin:0;padding:4px;background:#fffdf4;border:2px solid #2b2418;box-shadow:3px 3px #2b241855,inset 0 0 0 2px var(--sticker)}
#stage .album-art{display:grid;place-items:center;flex:1;min-height:0;overflow:hidden;background:#101c2c}
#stage .album-art :is(svg,canvas){width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
#stage .kind-phase .album-art{background:#1c2a44}
#stage .album-scene{display:block;width:100%;height:100%;background-color:#1c2a44;background-repeat:no-repeat;background-size:cover;image-rendering:pixelated}
#stage .kind-boss .album-art{background:color-mix(in srgb,var(--sticker) 35%,#1b1420)}
#stage .kind-boss .album-art svg{width:78%;height:78%}
#stage .kind-item .album-art{background:color-mix(in srgb,var(--sticker) 30%,#0d1b29)}
#stage .kind-item .album-art svg{width:82%;height:82%}
#stage .kind-character .album-art{background:linear-gradient(color-mix(in srgb,var(--sticker) 45%,#14243a),#14243a)}
#stage .album-slot.empty.kind-character .album-art{background:none}
#stage .album-shadow{filter:brightness(0);opacity:.22}
#stage .album-sticker figcaption{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"num name" "num caption";column-gap:5px;align-items:center;padding-top:4px;text-align:left}
#stage .album-sticker .album-num{grid-area:num;align-self:stretch;display:grid;place-items:center;min-width:24px;padding:0 3px;background:var(--sticker);color:#14110b;font:17px/1 VT323,monospace;font-weight:400}
#stage .album-sticker strong{grid-area:name;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#1f1a10;font:7px/1.35 'Brasil Arcade',monospace;font-weight:400}
#stage .album-sticker small{grid-area:caption;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#6b5d40;font:15px/1 VT323,monospace}
#stage .album-new{position:absolute;top:-7px;right:-6px;padding:2px 4px;background:#e14b35;color:#ffe96b;border:2px solid #2b2418;font:7px/1.2 'Brasil Arcade',monospace;transform:rotate(8deg);animation:album-new 1.2s steps(2) infinite}
#stage .album-status{margin:0;padding:4px 12px 6px;background:#33221a;color:#d7c49a;font:16px/1.1 VT323,monospace;text-align:center;flex-shrink:0}
/* Livro de verdade: lombada costurada na página dupla, espiral de caderno na página única e folhas que giram em 3D.
   As camadas da virada são montadas pelo album.mjs com Web Animations; sombra e brilho seguem o ângulo da folha. */
#stage .album-book{touch-action:pan-y;-webkit-user-select:none;user-select:none}
#stage .album-spread{position:relative}
#stage .album-book[data-spread="2"] .album-spread::after,#stage .album-spine{content:'';position:absolute;z-index:2;top:0;bottom:0;left:50%;width:10px;margin-left:-5px;pointer-events:none;background:repeating-linear-gradient(#0000 0 9px,#e9d9a8 9px 13px,#0000 13px 22px) 50% 0/2px 100% no-repeat,linear-gradient(90deg,#0000,#6b5a3a59 30%,#2b2418b3 50%,#6b5a3a59 70%,#0000)}
#stage .album-book[data-spread="1"] .album-spread::after{content:'';position:absolute;z-index:2;top:6px;bottom:6px;left:2px;width:6px;pointer-events:none;background:repeating-linear-gradient(#0000 0 5px,#2b2418 5px 6px,#cfc6ad 6px 9px,#2b2418 9px 10px,#0000 10px 16px)}
#stage .album-flip{position:absolute;inset:0;z-index:4;pointer-events:none;perspective:2400px}
#stage .album-flip[data-leaf=single]{perspective:1500px;overflow:hidden}
#stage .album-flip-cover,#stage .album-drop,#stage .album-leaf{position:absolute;top:0;bottom:0;left:0;width:50%}
#stage .album-flip [data-side=right]{left:50%}
#stage .album-flip [data-side=single]{width:100%}
#stage .album-flip-cover,#stage .album-face{display:flex}
#stage .album-flip-cover>.album-page,#stage .album-face>.album-page{flex:1;height:100%}
#stage .album-flip .album-spine{z-index:auto}
#stage .album-leaf{transform-style:preserve-3d;transform-origin:0 50%;will-change:transform}
#stage .album-leaf[data-side=left]{transform-origin:100% 50%}
#stage .album-face{position:absolute;inset:0;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}
#stage .album-face.back{transform:rotateY(180deg)}
#stage .album-page.album-blank{background:#efe4c6}
#stage .album-shade,#stage .album-gloss,#stage .album-drop{pointer-events:none;opacity:0}
#stage .album-shade,#stage .album-gloss{position:absolute;inset:0}
/* Sombreado em faixas, no ritmo do pixel art: mais escuro na borda solta, que é a que mais se curva. */
#stage .album-shade{background:linear-gradient(to right,#1a120a26 0 18%,#1a120a4d 18% 40%,#1a120a80 40% 62%,#1a120ab3 62% 84%,#1a120ad9 84%)}
#stage [data-hinge=right]>.album-shade{background:linear-gradient(to left,#1a120a26 0 18%,#1a120a4d 18% 40%,#1a120a80 40% 62%,#1a120ab3 62% 84%,#1a120ad9 84%)}
#stage .album-gloss{background:linear-gradient(100deg,#fff0 0 34%,#fff6d84d 34% 43%,#fffbeab3 43% 51%,#fff6d84d 51% 60%,#fff0 60%)}
#stage .album-drop{background:linear-gradient(to right,#1a120acc 0 5%,#1a120a8c 5% 14%,#1a120a4d 14% 30%,#1a120a1f 30% 52%,#0000 52%)}
#stage .album-drop[data-side=left]{background:linear-gradient(to left,#1a120acc 0 5%,#1a120a8c 5% 14%,#1a120a4d 14% 30%,#1a120a1f 30% 52%,#0000 52%)}
@keyframes album-new{50%{transform:rotate(8deg) scale(1.08)}}
@media (prefers-reduced-motion:reduce){#stage .album-new{animation:none!important}#stage .album-flip{display:none}}
/* Desktop baixo: o livro rola por dentro em vez de cortar as figurinhas. */
@media (max-height:620px) and (pointer:fine){#stage .album-spread{overflow:auto}#stage .album-grid{grid-auto-rows:minmax(118px,1fr)}#stage .album-flip{overflow:hidden}}
@media (max-width:899px){#stage .album-header h2{font-size:11px}}
/* Celular deitado (ex.: 762×297): uma página por vez, sem rolagem, virando com setas, toque ou deslize. */
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 #stage .album-panel{width:100vw;height:100svh;max-width:100vw;max-height:100svh;margin:0;border:0;box-shadow:none;padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}
 #stage .album-header{gap:8px;padding:3px 8px;min-height:44px}
 #stage .album-header>div{display:flex;align-items:baseline;gap:10px;min-width:0}
 #stage .album-header h2{font-size:9px;gap:6px;white-space:nowrap}
 #stage .album-header h2 svg{width:22px;height:22px}
 #stage .album-header p{margin:0;font-size:17px;white-space:nowrap}
 #stage .album-header>button{padding:6px 10px;font-size:8px}
 #stage .album-tabs,#stage .album-status{display:none}
 #stage .album-book{grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;padding:4px 6px 6px;touch-action:pan-y}
 #stage .album-turn{height:100%;max-height:120px;font-size:16px}
 #stage .album-spread{overflow:hidden}
 #stage .album-page{padding:5px 8px 5px}
 #stage .album-page::before{inset:2px}
 #stage .album-page-head{align-items:center;margin-bottom:4px}
 #stage .album-page-head>div{display:flex;align-items:baseline;gap:8px;min-width:0}
 #stage .album-page-head h3{font-size:9px;white-space:nowrap}
 #stage .album-page-head p{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 #stage .album-page-count{font-size:15px}
 #stage .album-folio{display:none}
 #stage .album-grid{gap:6px;--cols:5}
 #stage .album-grid:is([data-count="1"],[data-count="2"],[data-count="3"],[data-count="4"]){--cols:4}
 #stage .album-grid[data-count="6"]{--cols:6}
 #stage .album-sticker{padding:3px}
 #stage .album-sticker figcaption{padding-top:2px;column-gap:3px}
 #stage .album-sticker .album-num{min-width:18px;font-size:14px}
 #stage .album-sticker strong{font-size:6px;-webkit-line-clamp:2}
 #stage .album-sticker small{font-size:12px}
 #stage .album-slot.empty{padding:3px}
 #stage .album-slot.empty .album-num{font-size:14px;top:1px;left:4px}
 #stage .album-mystery{font-size:20px}
 #stage .album-hint{font-size:12px;-webkit-line-clamp:2}
 #stage .album-new{font-size:6px;top:-5px;right:-4px}
}
