/* feature:pc-onescreen-shiny-mark | Work-ID 20260930-pc-onescreen-shiny-mark-2fff
 * Trello "PC-ARMAZENAMENTO" (zenux): "Todas as informações devem constar em uma tela única, sem necessidade de
 * descer ou subir a tela." The window holds the box grid, the party column and the Pokémon sheet at once.
 *
 * What regressed the 2026-09-22 "PC sem rolagem" fit: the later PNG/UV passes (uv-shutdown-pass.css 5-7px frames on
 * every panel, fact row and stat row; hover-geometry.css pinning them), the 12px font floor, and a footer that
 * stayed BELOW the box. That stack makes a 980px tall sheet in a 618px body. Here the sheet sits BESIDE the box and
 * party, the frames keep the same PNG/UV nine-slice art at slimmer authored widths, and app.js (fitStorage) scales
 * the sheet down when a small window or phone still cannot hold it, so nothing ever scrolls.
 *
 * Geometry policy: every width below applies to the idle, hover, pressed, selected, focus and pad-focus states alike
 * (no state selector is used), hover stays paint-only, and there is no transition or transform here. */

/* P = the storage window, at the same specificity as the hover-geometry.css pins so this later file re-authors them. */
/* The authored window footprint (uv-shutdown.css fixed every modal at 1050x764; the PC holds three panels now, so it is wider). Viewport
 * geometry may still shrink it (min(.., 100vw - 32px) in uv-shutdown.css); the content never decides the footprint. */
#modal#modal[data-view="storage"]{--shutdown-window-width:1240px;--shutdown-window-height:800px}
/* --pc-slot is the box slot's height: app.js fitStorage() picks the largest size (3rem..5.2rem) that leaves nothing to scroll. */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"]{
 --pc-gap:3px;
 --pc-slot:5.2rem;
 --pc-icon:min(calc(var(--pc-slot) - .55rem),4.6rem);
 --pc-grid-h:calc(5*var(--pc-slot) + 4*var(--pc-gap) + 8px);
}
/* No scrollbar: the sheet is fitted, never scrolled. A slimmer header and body padding give the sheet the room. */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] #modal-body{overflow:hidden!important}
body:not(.mobile-web) #modal#modal[data-view="storage"] #modal-body{padding:.4rem .6rem!important}
body:not(.mobile-web) #modal#modal[data-view="storage"]>.modal-header{min-height:0!important;padding:.2rem .9rem!important}
/* Box icons never wider than their slot (the box column is narrower than before). */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-grid{container-type:inline-size}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-grid:not(.results) .pc-cell{
 --pc-icon:min(calc(var(--pc-slot) - .55rem),calc((100cqw - 4*var(--pc-gap) - 12px)/5 - .55rem),4.6rem)}

/* ---- the one-screen grid: [strip] / [box | party] [sheet] ---- */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit{
 display:grid;grid-template-columns:minmax(33rem,1fr) minmax(0,1.05fr);grid-template-rows:auto auto auto;
 column-gap:.55rem;row-gap:.3rem;align-items:stretch;container:pc-fit/inline-size;min-width:0;
}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit>.pc-strip{grid-column:1/-1;grid-row:1;margin:0!important;padding:.2rem .5rem!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit>.pc-warning{grid-column:1/-1;grid-row:2;margin:0!important;padding:.25rem .6rem!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit>.pc-screen{grid-column:1;grid-row:3;margin:0;min-width:0;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:.4rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit>.pc-details{grid-column:2;grid-row:3;margin:0;min-width:0;align-self:stretch}

/* ---- slimmer authored frames (same PNG/UV art, same slice, one width for every state) ---- */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] :is(.pc-box,.pc-party,.pc-details){
 box-sizing:border-box!important;border-width:5px!important;border-image-width:5px!important;border-image-outset:0!important;padding:.4rem!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] :is(.pc-card,.pc-stats,.pc-genetics){
 box-sizing:border-box!important;border-width:4px!important;border-image-width:4px!important;border-image-outset:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] :is(.pc-strip,.pc-topbar,.pc-card-top,.pc-box-head,.pc-stat-head,.pc-stat-table){
 box-sizing:border-box!important;border-width:3px!important;border-image-width:3px!important;border-image-outset:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] :is(.pc-cell,.pc-party-slot,.pc-stat,.pc-fact,.pc-line,.pc-pill,.pc-warning){
 box-sizing:border-box!important;border-width:3px!important;border-image-width:3px!important;border-image-outset:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] :is(.pc-button,.pc-tool,.pc-arrow,.pc-confirm,.pc-rename button){
 box-sizing:border-box!important;border-width:3px!important;border-image-width:3px!important;border-image-outset:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-box-head,
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-party h3{height:auto!important;min-height:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-topbar{min-height:0!important;padding:.15rem .35rem!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-arrow,
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-tool{min-height:1.7rem!important;height:1.7rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-party h3{
 box-sizing:border-box;min-height:0;align-self:stretch!important;padding:0 .6rem!important;line-height:1.1}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-box-foot .pc-find :is(input,select){padding:.2rem .5rem!important;min-height:1.7rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-side-actions .pc-button{padding:.05rem .1rem!important;letter-spacing:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-party{padding:.3rem!important}
/* the party commands and the release confirmation stay inside the party panel */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] :is(.pc-party-body,.pc-side-actions,.pc-confirm){min-width:0;max-width:100%;box-sizing:border-box}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-side-actions .pc-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-side-actions .pc-button{min-width:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-side-actions .pc-confirm .pc-button{white-space:normal;overflow-wrap:anywhere;line-height:1.15}
/* the search field and the variety filter share the box foot row and never spill into the party column */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-box-foot .pc-find{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:.3rem;min-width:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-box-foot .pc-find :is(input,select){min-width:0;width:100%;flex:none}

/* ---- the sheet: a compact card on top, then the facts and the stats (side by side when the window is wide) ---- */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:.35rem;align-content:start;font-size:max(12px,.75rem)}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details>.pc-empty{grid-column:1/-1;align-self:center}
@container pc-fit (min-width:58rem){
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr}
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details>.pc-card{grid-column:1/-1}
}
/* card */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card{display:flex;flex-direction:column;justify-content:flex-start;gap:.2rem;padding:.3rem .45rem;min-width:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card-top{padding:.05rem .4rem!important;min-height:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card-body{flex:none;display:grid;grid-template-columns:9rem minmax(0,1fr);gap:.6rem;align-items:center}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card-art{position:relative;justify-content:flex-start;gap:.2rem}
/* the card repeats the types the TIPOS row lists: the row keeps them, the card gives the room to the sprite */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card-art .pc-types{display:none}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-portrait{position:relative;flex:none;width:100%;height:5.8rem;border:0!important;border-image:none!important;background-color:transparent!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-portrait img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;object-position:center bottom}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card .pc-title h3{font-size:max(12px,1rem)!important;line-height:1.2}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card .pc-level{font-size:max(12px,.85rem)!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card .pc-line{font-size:max(12px,.75rem)!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card .pc-meter{height:.45rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-card-text{justify-content:center;gap:.25rem}
/* facts */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-facts{display:flex;flex-direction:column;justify-content:flex-start;gap:.2rem;padding:0;min-width:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-facts>.pc-fact{flex:1 1 auto;align-content:center}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact,
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact.nature{
 width:100%;max-width:none;grid-template-columns:minmax(4.6rem,42%) minmax(0,1fr);column-gap:.4rem;align-items:center;padding:0 .15rem;min-width:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact-head{font-size:max(12px,.7rem)!important;letter-spacing:.03em;padding:.05rem .4rem;white-space:normal;overflow-wrap:anywhere;line-height:1.15}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact-value{font-size:max(12px,.75rem)!important;line-height:1.2;white-space:normal;overflow:visible;overflow-wrap:anywhere}
/* the nature and its effect may take two lines here: the effect drops under the nature name */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact.nature .pc-fact-value{white-space:normal;overflow:visible;font-size:max(12px,.75rem)!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact.nature .nature-line{white-space:normal}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact.nature .nature-effect{display:block;font-size:max(12px,.7rem)!important;white-space:normal;letter-spacing:0;line-height:1.2}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact.nature :is(.nature-up,.nature-down){white-space:normal}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact .type-chip{font-size:max(12px,.65rem)!important;padding:0 .35rem}
/* stats */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-stats{display:flex;flex-direction:column;justify-content:flex-start;gap:.25rem;padding:.25rem .35rem;min-width:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-stat-table{flex:1 1 auto;align-content:space-between;gap:.1rem;padding:.1rem .3rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-stat{font-size:max(12px,.75rem)!important;grid-template-columns:minmax(0,1fr) 2.4rem 1.9rem;padding:0 .2rem;line-height:1.15}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-stat :is(strong,.pc-iv){font-size:max(12px,.75rem)!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-stat-head{font-size:max(12px,.7rem)!important;line-height:1.15}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-stat-track{height:.3rem;margin-top:0}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-genetics{padding:.15rem .3rem .2rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .iv-total{font-size:max(12px,.75rem)!important;margin:.1rem 0 0;line-height:1.2}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .iv-total strong{font-size:max(12px,.85rem)!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-meter.iv{height:.4rem}

/* narrow details column (a ~1000px window): each fact puts its label above its value instead of beside it */
@container pc-fit (max-width:66rem){
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit>.pc-screen{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact,
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact.nature{grid-template-columns:minmax(0,1fr);row-gap:1px;align-items:start;align-content:center}
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-details .pc-fact-head{justify-self:start;width:auto;max-width:100%}
}
/* ---- party cards: a long name wraps inside its card instead of being cut ---- */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-party-list .slot-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.15;max-width:100%}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-party-list .pc-party-slot{padding:0 .3rem 0 .2rem!important}

/* ---- the shiny mark on box and party icons: a four-point gold star that sits wholly inside the cell ---- */
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-icon-wrap{
 border:0!important;border-image:none!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;padding:0!important}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-variety-dot{z-index:3;width:.8rem;height:.8rem}
:is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-variety-dot.pc-shiny-star{
 top:0;right:0;width:.95rem;height:.95rem;border:0;background:#ffd21a;
 clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
 filter:drop-shadow(0 0 1px #28324a) drop-shadow(0 0 2px #fff3a0)}

/* ---- narrow windows (a portrait phone): sheet under the box and party; fitStorage scales the whole sheet to fit ---- */
@media (max-width:640px){
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit{grid-template-columns:minmax(0,1fr)}
 :is(body:not(.mobile-web),body.mobile-web) #modal#modal[data-view="storage"] .pc-fit>.pc-details{grid-column:1;grid-row:4}
}
