.table-profile-card{background:linear-gradient(135deg,#123e2ded,#09241aed);border:1px solid #cfb570;border-radius:11px;box-shadow:0 3px 0 #071c15,0 5px 14px #0004;padding:7px 10px;color:#fff1c4;font-family:'Truco Outfit',sans-serif}
.opponent{width:52%;height:auto}.opponent-name.table-profile-card{min-width:0;padding-right:27px;margin-right:-18px}.opponent-name #opponentName{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px!important}
.playerlabel.table-profile-card{display:grid;grid-template-columns:1fr auto;gap:2px 8px;max-width:190px;bottom:41%;right:3%;min-width:135px}.playerlabel #envValue{grid-column:1/-1;justify-self:start;font-size:10px}.table-player-stats{display:grid;grid-template-columns:1fr auto;gap:3px 6px;margin-top:4px;grid-column:1/-1;font:600 9px/1.2 'Truco Outfit',sans-serif}.table-xp-label{color:#ffdf88}.table-wins{color:#b7e7c9}.table-xp-track{display:block;grid-column:1/-1;background:#031810;border:1px solid #67825477;height:5px;border-radius:8px;overflow:hidden}.table-xp-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#54d992,#ffe08c);transition:width .4s ease}.table-xp-next{grid-column:1/-1;color:#c5d3ba;font-size:8px}.ranked-avatar{overflow:visible!important;border:2px solid #f0d289!important;box-shadow:0 0 0 3px #09281d,0 0 0 5px #bd995980,0 5px 16px #0006!important;background:conic-gradient(#ffe39b var(--xp-angle,0deg),#1e6243 0)!important}.ranked-avatar .game-avatar-letter{border-radius:50%;overflow:hidden;background:radial-gradient(circle at 30% 20%,#3e8b62,#103b2a)!important;text-shadow:0 2px #042117}.avatar-level-badge{position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);display:grid;place-items:center;min-width:24px;height:19px;padding:0 4px;box-sizing:border-box;border:1px solid #fff1ba;border-radius:6px;background:linear-gradient(#ffe6a1,#cca548);color:#163b27;font:800 12px/1 'Truco Outfit',sans-serif;box-shadow:0 2px #61471c}
.match-profile-intro{position:fixed;z-index:40;top:34%;left:50%;transform:translateX(-50%);width:min(360px,calc(100vw - 24px));padding:15px 12px;box-sizing:border-box;border:2px solid #e6c57c;border-radius:18px;background:radial-gradient(ellipse at top,#286346,#092b1eea 75%);box-shadow:0 6px #061b12,0 0 35px #dfc57744;color:#fff3c9;text-align:center;pointer-events:none;animation:profile-enter .3s ease-out}.match-profile-intro[hidden]{display:none}.match-intro-heading{font:800 27px 'Truco Outfit';color:#ffe497;letter-spacing:1px}.match-intro-row{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:5px;margin-top:12px}.match-intro-vs{color:#ffde8a;font:800 18px 'Truco Outfit'}.match-intro-player{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}.match-intro-avatar{display:grid;place-items:center;width:55px;height:55px;border:2px solid #ebd08e;border-radius:50%;background:linear-gradient(140deg,#42885c,#0c3222);box-shadow:0 0 0 4px #071f1688;color:#fff4c8;font:800 30px 'Truco Outfit'}.match-intro-player b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 15px 'Truco Outfit'}.match-intro-player small{color:#ffdf93;font:700 9px 'Truco Outfit'}.match-intro-player>span:last-child{color:#c2ebcf;font:500 10px 'Truco Outfit'}
@keyframes profile-enter{from{opacity:0;transform:translateX(-50%) scale(.92)}to{opacity:1;transform:translateX(-50%) scale(1)}}@media(prefers-reduced-motion:reduce){.match-profile-intro{animation:none}.table-xp-track i{transition:none}}@media(max-width:360px){.playerlabel.table-profile-card{max-width:160px;min-width:120px;padding:5px 7px}.opponent{width:56%}.table-wins{font-size:8px}.opponent-name.table-profile-card{padding-left:6px}}
/* Compact profiles leave the cards and the center of the table clear. */
.opponent{width:min(54%,210px);right:3%;top:2%;align-items:center}
.opponent .avatar{width:42px;min-width:42px}
.opponent-name.table-profile-card{margin-top:0;margin-right:-14px;padding:5px 21px 5px 8px;border-radius:9px}
.opponent-name #opponentName{font-size:12px!important;line-height:1.15}
.opponent-name #opLabel{font-size:9px;line-height:1.2}
.opponent-name .table-player-stats{margin-top:3px;gap:3px 5px;font-size:8px}
.opponent-name .table-wins{font-size:8px}
.opponent-name .table-xp-track{height:3px}
.opponent-name .table-xp-next{display:none}
.playerlabel.table-profile-card{display:none}
.player-avatar{width:38px;left:2.5%;bottom:2%}
.avatar-level-badge{min-width:19px;height:16px;font-size:10px;bottom:-4px;padding:0 3px}
.ranked-avatar .game-avatar-letter{font-size:23px}
.ranked-avatar{box-shadow:0 0 0 2px #09281d,0 0 0 3px #bd995980,0 3px 8px #0005!important}
@media(max-width:360px){.opponent{width:55%}.opponent .avatar{width:36px;min-width:36px}.opponent-name.table-profile-card{padding:4px 19px 4px 6px}.opponent-name #opponentName{font-size:11px!important}.player-avatar{width:34px}}

/* Bright practice identity and a compact match welcome. */
.table-avatar-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;aspect-ratio:1}
.practice-bot .table-profile-card{background:linear-gradient(125deg,#153f86,#57318c);border-color:#8de9ff;box-shadow:0 3px 0 #171e52,0 0 14px #6b65f45c;color:#fff}
.practice-bot #opLabel{color:#a4f2ff}.practice-bot #opLabel:before{content:'● ';color:#78ffd3}.practice-bot .table-wins{color:#e1d6ff}.practice-bot .ranked-avatar{border-color:#9cf4ff!important;background:linear-gradient(135deg,#256ab5,#663ba5)!important;box-shadow:0 0 0 3px #5c57ba,0 0 15px #52d9ff70!important}
.practice-bot .robot-avatar{background:radial-gradient(circle at 30% 20%,#84edff,#6050ba)!important;text-shadow:none;font-size:26px;animation:robot-glow 3s ease-in-out infinite}
.practice-bot .table-xp-track i{background:linear-gradient(90deg,#78f5ff,#c499ff)}
.match-profile-intro{background:radial-gradient(ellipse at 10% 0%,#256ba7aa,transparent 65%),radial-gradient(ellipse at 100% 100%,#9b365e88,transparent 65%),#102f46f5;border-color:#f5d48a;box-shadow:0 6px 0 #081a2b,0 0 0 5px #e8c47722,0 15px 50px #0009;padding:18px 14px}
.match-intro-heading{font-size:clamp(18px,5.4vw,24px);color:#ffe5a2;text-shadow:0 2px 0 #79502f}.match-intro-subtitle{font:600 11px 'Truco Outfit',sans-serif;color:#c0e8fa;margin:5px 0 0}.match-intro-player{padding:10px 4px;border:1px solid #76d5ff55;border-radius:12px;background:linear-gradient(150deg,#2879aa55,#15355088)}.match-intro-player:last-child{border-color:#e699bb77;background:linear-gradient(150deg,#9c467355,#36264e88)}.match-intro-avatar{background:linear-gradient(135deg,#367fbc,#3b387f);overflow:hidden}.match-intro-vs{font-size:19px;color:#fff1b8;text-shadow:0 0 12px #ffbf50}
@keyframes robot-glow{50%{filter:brightness(1.18)}}@media(prefers-reduced-motion:reduce){.practice-bot .robot-avatar{animation:none}}

/* IA difficulty is explicit; the count belongs to the verified engine history. */
html body main .opponent-name.ai-profile-card .table-wins{display:block!important;color:#d0e9d4;font-size:8px!important;line-height:1.3;white-space:normal;margin-top:3px}
html body main .opponent-name.ai-profile-card .table-player-stats{display:block}
html body main .opponent-name.ai-profile-card .table-xp-label,html body main .opponent-name.ai-profile-card .table-xp-track,html body main .opponent-name.ai-profile-card .table-xp-next{display:none!important}

html[data-short-viewport=true] body main .opponent-name.ai-profile-card .table-player-stats{display:block}
