.card-browser-tabs{display:flex;gap:6px;padding:0 12px 7px}.card-browser-tabs button{min-height:32px}.card-browser-tabs button[aria-pressed=true]{color:var(--ink);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface))}.card-browser-tabs span{margin-left:7px;font:12px var(--font-data);opacity:.75}
.card-hover-actions{position:fixed;z-index:130;display:flex;flex-direction:column;width:max-content;min-width:145px;max-width:min(290px,calc(100vw - 16px));max-height:min(320px,55vh);overflow:auto;gap:3px;padding:5px;border:1px solid var(--accent);border-radius:6px;background:var(--surface);box-shadow:0 8px 28px #0008}
.card-hover-actions button{width:100%;min-height:32px;padding:7px 11px;border:0;border-radius:3px;text-align:left;font:600 12px/1.35 var(--font-data);color:var(--ink);background:var(--surface-alt);white-space:normal}.card-hover-actions button:hover,.card-hover-actions button:focus-visible{background:color-mix(in srgb,var(--accent) 22%,var(--surface));outline:1px solid var(--accent);outline-offset:-1px}
.replay-workspace .arena-layout{grid-template-areas:'reference field chat';grid-template-columns:minmax(205px,19%) minmax(0,1fr) minmax(190px,17%);gap:10px;height:var(--replay-table-height);min-height:0;align-items:stretch}
.replay-workspace .replay-inspector-log{grid-area:reference;grid-column:1;height:100%;grid-template-columns:1fr;grid-template-rows:minmax(0,1.1fr) minmax(0,1fr)}
.replay-workspace .duel-center{grid-area:field;grid-column:2;height:100%;min-height:0;--table-height:var(--replay-table-height)}
.replay-workspace .replay-chat-column{grid-area:chat;grid-column:3;height:100%;overflow:auto}
.replay-workspace .duel-board{height:100%;max-width:none;min-height:0}
.replay-workspace .replay-log-panel{display:flex;flex-direction:column;overflow:hidden}.replay-workspace .replay-log-panel .event-log{height:auto;min-height:0;flex:1}
.replay-workspace .duel-center .hand:not(.opponent){height:clamp(68px,calc(var(--replay-table-height)*.18),125px);flex-basis:clamp(68px,calc(var(--replay-table-height)*.18),125px);min-height:0;padding:4px 8px}
.replay-workspace .duel-center .hand:not(.opponent) .hand-card{height:100%;width:auto;aspect-ratio:.685;flex-basis:auto}
.replay-workspace .duel-center .hand.opponent,.replay-workspace .duel-center .hand.replay-visible-hand{height:clamp(35px,calc(var(--replay-table-height)*.09),65px);min-height:0;flex-basis:clamp(35px,calc(var(--replay-table-height)*.09),65px);padding:3px 8px}
.replay-workspace .duel-center .hand.opponent .hand-card{height:100%;width:auto;aspect-ratio:.685;flex-basis:auto}
@media(min-width:1001px){body:has(#main.replay-workspace){height:100dvh;overflow:hidden}}
@media(min-width:741px) and (max-width:1000px){.replay-workspace .arena-layout{grid-template-areas:'reference field' 'chat chat';grid-template-columns:210px minmax(0,1fr);grid-template-rows:minmax(420px,var(--replay-table-height)) 220px;height:auto}.replay-workspace .replay-chat-column{height:220px;grid-column:1/-1}}
@media(max-width:740px){.replay-workspace .arena-layout{display:flex;height:auto;gap:10px}.replay-workspace .duel-center{order:0;height:clamp(380px,var(--replay-table-height),640px);flex:none;width:100%}.replay-workspace .replay-inspector-log{order:1;height:360px;grid-template-columns:1fr 1fr;grid-template-rows:1fr}.replay-workspace .replay-chat-column{order:2;height:220px}.replay-workspace .page-title{margin-bottom:8px}.replay-workspace .page-title h1{font-size:24px}.replay-workspace .replay-controls{gap:4px;padding:6px}.replay-workspace .replay-controls button{font-size:12px;padding:5px 7px}.replay-workspace .replay-controls label.check{font-size:12px}}
@media(prefers-reduced-motion:reduce){.card-hover-actions{scroll-behavior:auto}}

.replay-workspace .duel-board>.duel-player{padding:5px 10px;min-height:44px;flex-shrink:0}.replay-workspace .duel-board>.duel-player .sub{display:none}.replay-workspace .duel-board>.duel-player .lp{font-size:22px}.replay-workspace .replay-visibility-note{font-size:12px;line-height:1.6}

.replay-workspace [data-replay-players] .duel-player{padding:9px;min-height:62px;gap:8px}.replay-workspace [data-replay-players] .identity{min-width:0;gap:6px}.replay-workspace [data-replay-players] .identity strong{font-size:12px;overflow-wrap:anywhere}.replay-workspace [data-replay-players] .identity small{font-size:12px}.replay-workspace [data-replay-players] .avatar{width:25px;height:25px;flex:none}.replay-workspace [data-replay-players] .lp strong{font-size:22px}.replay-workspace [data-replay-players] .lp small{font-size:12px}
@media(min-width:1001px){.replay-workspace .duel-board>.duel-player{display:none}.replay-workspace .duel-center .field-cell{--physical-card-height:min(calc(100cqw - 8px),calc(100cqh - 28px))}}
@media(max-width:1000px){.replay-workspace [data-replay-players]{display:none}}
