:root body #own-name.player-name-button{font:inherit;color:inherit;border:0;background:transparent;padding:0 2px;min-height:26px;min-width:28px;max-width:clamp(80px,40vw,240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border-radius:3px;cursor:pointer}
:root body #own-name.player-name-button:disabled{opacity:1;cursor:default}
@media(hover:hover){:root body #own-name.player-name-button:not(:disabled):hover{text-decoration:underline;text-underline-offset:4px}}
:root body .player-name-dialog{width:min(380px,calc(100vw - 32px));max-height:calc(var(--app-height,100dvh) - 24px);border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);padding:0}
:root body .player-name-dialog .modal-head{padding:20px 24px 12px;border:0;background:transparent}
:root body .player-name-dialog .modal-head h2{font-size:18px;line-height:1.4}
.player-name-body{padding:0 24px 24px;display:grid;gap:10px}
.player-name-body label{font-size:14px;color:var(--muted)}
:root body #player-name-input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--table);color:var(--ink);font-size:16px;box-sizing:border-box}
#player-name-note{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.player-name-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:8px}
:root body .player-name-actions button{font-size:14px;min-height:40px;padding:8px 20px}
:root body #bloom-result.has-player-name .fc-victory-title>span{max-width:100%;overflow-wrap:anywhere}
:root body #result-title{overflow-wrap:anywhere}
@media(max-width:760px){:root body #bloom-result.has-player-name .fc-victory-title{flex-direction:column;align-items:center;text-align:center;gap:0}}
/* Two compact label lines; wildcard declarations move into the existing action frame. */
:root body.table-stage-layout .combat-title{height:36px;min-height:36px;line-height:16px;gap:0 4px;align-content:flex-start}
:root body.table-stage-layout .combat-title b{flex-basis:100%;font-size:12px;line-height:16px;white-space:nowrap}
:root body.table-stage-layout .combat-title .wild-declaration{display:none}
:root body.table-stage-layout #combat-wild-info{font-size:11px;line-height:14px;color:var(--muted);margin:0}
@media(max-width:380px),(max-height:480px){:root body.table-stage-layout .combat-title b{font-size:10px}}
:root[lang=en] body.table-stage-layout .combat-title b{font-size:11px}
@media(max-width:380px){:root[lang=en] body.table-stage-layout .combat-title b{font-size:10px}}
:root body.table-stage-layout #action-panel .action-copy{justify-content:safe center}
@media(max-width:380px),(max-height:480px){
 :root body.table-stage-layout #action-panel:has(#submit-play) #action-buttons{flex-direction:column;align-items:stretch;gap:4px}
 :root body.table-stage-layout #action-panel:has(#submit-play) #action-buttons button{min-height:24px;padding:2px 6px;font-size:12px;line-height:16px}
 :root body.table-stage-layout #action-panel:has(#submit-play) #action-title,
 :root body.table-stage-layout #action-panel:has(#submit-play) #selection-preview{line-height:16px}
}
