/* Shared by every online/practice board rendered by arena.js. */
.seat-row:has(>.arena-player-card){align-items:stretch;flex-wrap:wrap}
.seat-row>.arena-player-card{box-sizing:border-box;display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:minmax(90px,auto) auto;align-content:start;align-items:center;gap:3px 12px;padding:10px 12px;min-width:0;flex:1 1 0}
.arena-player-card>.seat-picture{display:grid;place-items:center;width:88px;max-width:none;height:90px;padding:12px 14px 20px;box-sizing:border-box;gap:0}
.arena-player-card>.seat-picture>.seat-disc{width:56px;height:56px;min-width:56px;line-height:1}
.arena-player-card>.seat-identity{min-width:0;align-self:center}
.arena-player-card>.seat-identity>strong{font-size:16px;line-height:1.35;max-height:none;overflow:visible;overflow-wrap:anywhere}
.arena-player-card>.seat-identity>small{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.arena-player-card .resource-amount{display:inline-flex;white-space:nowrap;max-width:100%;align-items:center}
.arena-player-card>.seat-title,.arena-player-card>.honor-nameplate.has-art.seat-title{grid-column:1/-1;justify-self:center;width:100%;max-width:300px;min-width:0;max-height:none;padding:0!important;overflow:visible;box-shadow:none;box-sizing:border-box}
.arena-player-card>.honor-nameplate.has-art .honor-medallion{height:62px;aspect-ratio:auto;width:100%}
.arena-player-card>.honor-nameplate.has-art .honor-frame{object-fit:fill}
.arena-player-card>.honor-nameplate.has-art .honor-label{box-sizing:border-box;top:var(--honor-text-y);width:66%;height:2.5em;max-height:none;font-size:15px;line-height:1.25;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;display:flex;align-items:center;justify-content:center;overflow:visible;padding:0}
.arena-player-card>.honor-nameplate.has-art .honor-caption{font-size:11px;line-height:1.35;gap:1px 6px;margin:0 0 3px;overflow-wrap:anywhere}
.arena-player-card .honor-caption>span{white-space:normal}
.arena-player-card .honor-room-rank{display:inline-flex;align-items:baseline;justify-content:center;gap:0 3px;flex-wrap:wrap;max-width:100%}
.arena-player-card .honor-rank-text{white-space:nowrap}
.arena-player-card .seat-disc .avatar-honor-medal{--medal-size:24px;right:-10px;left:auto;bottom:-10px}
.arena-player-card .seat-disc.debut::after{left:-6px;right:auto;bottom:-4px}
/* English must fit inside the artwork's central opening, not merely the card. */
html:lang(en) .arena-player-card>.honor-nameplate.has-art .honor-label{width:66%;height:2em;font-size:8px;line-height:1;text-shadow:0 1px 2px #123d30}
@media(max-width:740px),(max-width:1100px) and (max-height:520px){
 .phone-seats .seat-row>.arena-player-card{grid-template-columns:70px minmax(0,1fr);grid-template-rows:minmax(74px,auto) auto;padding:5px 7px;gap:2px 5px}
 .phone-seats .arena-player-card>.seat-picture{width:70px;height:74px;max-width:none;padding:10px 10px 18px}
 .phone-seats .arena-player-card>.seat-picture>.seat-disc{width:46px;height:46px;min-width:46px}
 .phone-seats .arena-player-card>.seat-identity>strong{font-size:14px;max-height:none;overflow:visible}
 .phone-seats .arena-player-card>.seat-identity>small{font-size:10px;line-height:1.4}
 .phone-seats .arena-player-card>.honor-nameplate.has-art .honor-medallion{height:52px}
 .phone-seats .arena-player-card>.honor-nameplate.has-art .honor-label{font-size:13px;max-height:none;line-height:1.25}
 .phone-seats .arena-player-card>.honor-nameplate.has-art .honor-caption{font-size:10px;line-height:1.4}
 html:lang(en) .phone-seats .arena-player-card>.honor-nameplate.has-art .honor-label{font-size:8px;line-height:1}
 /* Let identity content determine its row height instead of the legacy 66px slot. */
 body.phone-play:not(.wide-arena):has(.arena-player-card) .phone-shell{position:relative;min-height:100dvh;height:auto;max-height:none;overflow:visible;grid-template-rows:44px auto auto auto auto auto var(--guard-row) 48px}
 body.phone-play:not(.wide-arena):has(.arena-player-card){height:auto;overflow:auto}
 body.phone-play:not(.wide-arena):has(.arena-player-card) .phone-stage{min-height:240px}
 .phone-seats .seat-row:has(>.arena-player-card:nth-child(3)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto}
 .phone-seats .seat-row>.arena-player-card:nth-child(3){grid-column:1/-1;grid-template-columns:70px minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:auto}
 .phone-seats .seat-row>.arena-player-card:nth-child(3)>.seat-title{grid-column:3}
}
@media(max-width:360px){
 .phone-seats .seat-row>.arena-player-card{grid-template-columns:62px minmax(0,1fr);padding-inline:4px;column-gap:3px}
 .phone-seats .arena-player-card>.seat-picture{width:62px}
 .phone-seats .arena-player-card>.seat-identity>strong{font-size:13px}
}
