/* Persistent display-screen layer; never replaces dialogue; only its Skip button receives input. */
#record-now-playing{position:absolute;z-index:31;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:max-content;max-width:calc(100% - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)));margin-inline:auto;box-sizing:border-box;padding:8px 14px;border:2px solid #a8d7bf;border-radius:6px;background:#173e43f5;color:#fff9dc;box-shadow:0 3px 10px #092d3866;font:600 clamp(12px,2.5cqw,18px)/1.35 system-ui,sans-serif;text-align:center;overflow-wrap:anywhere;pointer-events:none;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;clip-path:inset(0 0 0 0)}
#record-now-playing[hidden]{display:none}
/* Enemy HP/status plates occupy the left 48% in singles and doubles. Keep
   battle notices in the opposite upper corner without moving any battle UI. */
#screen[data-scene="battle"] #record-now-playing{left:auto;max-width:min(46%,calc(50% - max(8px,env(safe-area-inset-right))));margin-inline:0;top:max(4px,env(safe-area-inset-top),var(--record-field-clearance,0px));padding:4px 8px;border-width:1px;font-size:clamp(12px,2.3cqw,16px);line-height:1.25}
#record-now-playing[data-phase="wipe"]{animation:record-title-wipe .2s ease-in forwards}
@keyframes record-title-wipe{to{clip-path:inset(0 100% 0 0)}}
@media(prefers-reduced-motion:reduce){#record-now-playing[data-phase="wipe"]{animation:none}}

#record-now-playing .record-now-playing-title{min-width:0;flex:1 1 140px}
#record-now-playing .record-now-playing-skip{pointer-events:auto;box-sizing:border-box;max-width:100%;flex:0 0 auto;min-width:44px;min-height:36px;padding:5px 9px;border:1px solid #c8ead4;border-radius:5px;background:#fff9dc;color:#173e43;font:700 13px/1.2 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
#record-now-playing .record-now-playing-skip:focus-visible{outline:3px solid #ffc956;outline-offset:2px}
#record-now-playing .record-now-playing-skip:disabled{opacity:.55;cursor:default}
#record-now-playing[data-phase="wipe"] .record-now-playing-skip{pointer-events:none}
/* Keep the battle notice a short row above the allied HP/status plates, even
   for long titles at narrow widths. The full DOM/live-region title is retained. */
#screen[data-scene="battle"] #record-now-playing{flex-wrap:nowrap;gap:6px}
#screen[data-scene="battle"] #record-now-playing .record-now-playing-title{flex:1 1 auto;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:2.5em;overflow:hidden;text-overflow:ellipsis;text-align:left}
