/* feature:pc-onescreen-shiny-mark | Work-ID 20260930-pc-onescreen-shiny-mark-2fff
 * Trello "batalha" comment (zenux 2026-09-30): "A identificação de shiny está cortando".
 *
 * The battle HUD's name row (.party-name) is a fixed 22px (17px on phones) flex row with overflow hidden. The shiny star was
 * absolutely positioned above the name's top-right corner (top:-.62em; right:-.2em), i.e. OUTSIDE that row: the row cut its top
 * and, with only 8px of padding for it, the right side, and its little sparkle (::after) sat on top of the last letter. Now the
 * star is a flex item of the name wrap, placed right after the name, never shrunk (a long name ellipsizes instead, name-fit
 * steps still apply) and always wholly inside the row and the box.
 *
 * Outside battle the small star (.name-shiny) was raised by -.5em, which a clipped name cell (overflow hidden, ellipsis, line
 * clamp) cut as well; it now rides at the top of its own line box, inside the cell.
 *
 * Paint and box only: no hover/focus/pressed rule, no transition of a size, nothing here is a control. */

/* ---- battle HP boxes (player's and foe's) ---- */
#battle-dialog.battle-window-solid .battle-modern-hud .party-name .combat-name-wrap{
 display:inline-flex!important;align-items:center!important;gap:3px!important;
 flex:0 1 auto!important;min-width:0!important;max-width:100%!important;padding-right:0!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name .combat-name-wrap>.combat-shiny{
 position:static!important;inset:auto!important;flex:none!important;display:block!important;
 margin:0!important;width:1em!important;height:1em!important;
 font-size:14px!important;line-height:1em!important;text-align:center!important;
 overflow:visible!important;
}
#battle-dialog.battle-window-solid .battle-modern-hud .party-name .combat-name-wrap>.combat-shiny::after{display:none!important;content:none!important}
body.mobile-web #battle-dialog.battle-window-solid .battle-modern-hud .party-name .combat-name-wrap>.combat-shiny{font-size:11px!important}

/* ---- the star after a name on every other screen (party, PC, summary, trade, collection, move relearner, chat) ---- */
.name-shiny{top:0!important;display:inline-block!important;vertical-align:top!important;line-height:1!important;margin-left:.15em!important;flex:none}
/* a shiny's name and star are one unit (app.js nameTag): in a clipped cell the name gives way, the star is never the part that is cut */
.name-tag{display:inline-flex;align-items:flex-start;max-width:100%;min-width:0;vertical-align:bottom}
.name-tag>.name-tag-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.name-tag>.name-shiny{flex:none}
