/* Compact opponent identity; full stats remain available in the profile. */
html body main .table>.opponent{top:2%;right:3%;width:min(49%,180px);height:auto;gap:5px;align-items:center}
html body main .opponent-name.table-profile-card{box-sizing:border-box;margin:0;padding:5px 7px;min-width:0;border-radius:8px;flex:1;background:linear-gradient(125deg,#193c66e8,#493078e8);box-shadow:0 2px 6px #0004}
html body main .opponent .avatar{width:30px;min-width:30px;height:30px;align-self:center}
html body main .opponent-name #opponentName{font-size:11px!important;line-height:1.2;font-weight:800;max-width:100%}
html body main .opponent-name #opLabel{display:none}
html body main .opponent-name .table-player-stats{display:block;margin-top:2px;font-size:9px;line-height:1.15}
html body main .opponent-name .table-rank{gap:4px!important;font-size:9px!important;white-space:nowrap!important}
html body main .opponent-name :is(.table-xp-label,.table-wins,.table-xp-track,.table-xp-next){display:none!important}
html body main .opponent-name .table-rank .rank-insignia{width:14px!important;height:16px!important;min-width:14px!important;flex-basis:14px!important}
html body main .opponent .robot-avatar{font-size:20px!important}
html body main .opponent .avatar-level-badge{min-width:15px;height:13px;font-size:8px;bottom:-3px;padding:0 2px}
/* The clock occupies the empty top-left corner, above played cards. */
html body main .table>#turnClock{box-sizing:border-box;left:3%;right:auto;top:2%;transform:none;width:108px;max-width:35%;padding:5px 7px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:5px;border:1px solid #a2d7c699;border-radius:8px;background:#092c2a99;color:#ddfff2;box-shadow:0 2px 8px #0003;pointer-events:none}
html body main .table>#turnClock[hidden]{display:none!important}
html body main #clockLabel{font-size:9px;line-height:1.15;letter-spacing:.15px;text-align:left}
html body main #turnClock strong{font:800 23px/1 'Truco Outfit',sans-serif;color:inherit;min-width:25px;font-variant-numeric:tabular-nums}
html body main #turnClock .clock-track{grid-column:1/-1;width:100%;height:3px;margin-top:4px;border-radius:3px;overflow:hidden;background:#b9ffe633}
html body main #turnClock .clock-track i{background:#9df3cc}
html body main #turnClock[data-owner=rival]{background:#102f4b99;border-color:#96c1e699;color:#e8f4ff}
html body main #turnClock[data-owner=rival] .clock-track i{background:#a8d4ff}
html body main #turnClock.clock-urgent{border-color:#f6bc83;color:#ffe2c7;background:#4b2c2099}
html body main .table>.opcards{left:auto;right:3%;top:calc(2% + 47px);height:min(5%,26px);gap:3px}
/* Wood and chalk: preserve score sizes, alignment, tallies and goal. */
html body main>.score{background:repeating-linear-gradient(2deg,#322a2300 0 4px,#f0cba30c 4px 5px),linear-gradient(100deg,#392920,#654936 48%,#35261f);border-bottom-color:#9c7854;box-shadow:inset 0 1px #d8b18a44,0 2px 5px #0005}
html body main .score-side{background:radial-gradient(ellipse at top left,#ffffff08,transparent 70%),#203732;border-color:#b49a75;border-radius:8px;box-shadow:inset 0 0 0 2px #071d1844,inset 0 1px #ffffff18,0 2px 0 #241b15}
html body main .score-opponent{background:radial-gradient(ellipse at top right,#ffffff08,transparent 70%),#293344;border-color:#9d9eab}
html body main .score-side>span{color:#f4eee2;text-shadow:0 1px #071b18}
html body main .score-side>strong{color:#f4f4e9;text-shadow:1px 1px #ffffff22,0 2px #071c19}
html body main .score-opponent>strong{color:#e7edf7;text-shadow:1px 1px #ffffff22,0 2px #111d31}
html body main .score .tally i.counted{background:#eeeade;box-shadow:0 0 2px #ffffff33}
html body main .goal>small:not(.sr-only){color:#dfceb3}html body main .goal>span{background:#30271f;border-color:#bb9a6c;color:#f7ecda;box-shadow:inset 0 1px #fff1}
html body main>.score>.icon{background:#33271f88;border-color:#bb9a6c;color:#f5e7d1}
@media(max-width:360px){html body main .table>.opponent{width:49%;gap:4px}html body main .opponent-name.table-profile-card{padding:4px 5px}html body main .opponent-name #opponentName{font-size:10px!important}html body main .opponent .avatar{width:27px;min-width:27px;height:27px}html body main .table>#turnClock{width:100px;padding:5px 6px}html body main #clockLabel{font-size:8px}html body main #turnClock strong{font-size:21px}}
@media(max-height:600px){html body main .table>#turnClock{padding:4px 6px}html body main #turnClock strong{font-size:20px}html body main .opponent-name.table-profile-card{padding:4px 6px}html body main .opponent-name .table-rank .rank-insignia{height:13px!important;width:12px!important;min-width:12px!important;flex-basis:12px!important}html body main .table>.opcards{top:calc(2% + 39px);height:min(4%,20px)}}

/* Larger portraits without enlarging the table or the identity panels. */
html body main .opponent .avatar{width:clamp(48px,14vw,60px);min-width:clamp(48px,14vw,60px);height:clamp(48px,14vw,60px);flex-shrink:0}
html body main .table>.player-avatar{width:clamp(52px,15vw,68px);height:clamp(52px,15vw,68px)}
html body main .opponent .robot-avatar{font-size:30px!important}
html body main .table>.opcards{top:calc(2% + clamp(48px,14vw,60px) + 8px)}
