/* Companion only: card backgrounds never reach the record/comparison screens. */
.player-sprite{display:block;width:100%;aspect-ratio:1;background-size:300% 200%;background-repeat:no-repeat}
.identity-options .player-sprite{width:100%;max-width:210px;margin:auto}
.player-card{display:block;position:relative;isolation:isolate;min-height:236px;box-sizing:border-box;padding:20px 18px 48px;overflow:hidden;border-radius:18px;background:linear-gradient(110deg,#f4f8ff 20%,#e2ecf6 90%);border:1px solid #d1deec;box-shadow:0 4px 14px #15335708}
.player-card:before,.player-preview:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,#fffffff7 5%,#ffffffe6 35%,#ffffff00 85%)}
.player-card.stage-uniform{border-color:#8da9c9;background:linear-gradient(135deg,#edf5ff,#c9dcef)}
.player-card.stage-court,.player-card.stage-presence,.player-preview.stage-court,.player-preview.stage-presence{background:linear-gradient(0deg,#ffffff30,#ffffff30),url('../assets/volleyball-court.png') center/cover}
.player-card.stage-presence{border-color:#395a80;box-shadow:inset 0 3px #234565,0 4px 14px #15335708}
.player-card.stage-national,.player-card.stage-mvp,.player-preview.stage-national,.player-preview.stage-mvp{background:url('../assets/player-arena-v1.png') center 65%/cover;border-color:#c2a66c}
.player-card.stage-mvp{border:2px solid #c8a14c;box-shadow:inset 0 0 0 3px #f6e6b6,0 4px 14px #1533570d}
.player-card-copy{position:relative;z-index:2;width:54%;pointer-events:none}
.player-card .player-card-copy>small{font-size:10px;letter-spacing:.14em;color:#526b85;font-weight:800}
.player-card .player-card-copy h2{font-size:23px;line-height:1.3;overflow-wrap:anywhere;margin:7px 0;color:#102d50}
.player-card .player-card-copy p{font-size:12px;line-height:1.5;margin:5px 0 8px;color:#294967}
.player-stage-label{font-size:10px;font-weight:700;line-height:1.5;display:inline-block;border-left:2px solid #7794b4;padding-left:6px;color:#345372}
.stage-mvp .player-stage-label{border-color:#b38b2c}
.player-card-avatar{position:absolute;right:-18px;bottom:36px;width:205px;z-index:1;pointer-events:none}
.player-card-avatar .identity-art img{height:200px}
.player-card .player-trophy-shelf{position:relative;z-index:2;display:flex;gap:6px;width:54%;margin-top:12px;min-height:58px;align-items:end}
.player-trophy-shelf>span{flex:1;min-width:0;text-align:center;background:#ffffffb8;border:1px solid #dce5ef;border-radius:7px;padding:3px 0}
.player-trophy-shelf .player-trophy{height:42px;width:34px;display:block;margin:auto}
.player-trophy-shelf small{font-size:8px;display:block;line-height:1.3;color:#29415b;font-weight:700;overflow-wrap:anywhere}
.player-trophy-shelf .trophy-empty{height:42px;color:#97a9bc;display:grid;place-items:center;border-style:dashed;background:#ffffff55}
.player-card button.player-collection-link{position:absolute;z-index:3;bottom:0;left:0;width:100%;min-height:42px;padding:10px 16px;background:#ffffffdb;border-top:1px solid #dbe5ee;color:#294e76;text-align:right;font-size:11px}
.player-error{position:relative;display:block;z-index:4;background:white;color:#8b3248!important}
.player-preview{position:relative;isolation:isolate;border-radius:12px;overflow:hidden;background:linear-gradient(140deg,#f1f6fd,#dce9f5)}
.player-preview .identity-art{max-width:180px;margin:auto}
.player-preview .identity-art img{height:140px}
.identity-dialog .identity-tabs{display:flex;gap:6px;margin:16px 0}
.identity-tabs button{flex:1;font-size:12px;padding:8px 4px}
.identity-tabs button[aria-pressed=true]{background:#173757;color:white;border-color:#173757}
.identity-dialog article{border:1px solid #dbe5ef;border-radius:12px;padding:10px;background:#fff;min-width:0}
.identity-dialog article h3{line-height:1.5;font-size:13px;margin:10px 0 4px}
.identity-dialog article small{display:block;font-size:11px}
.identity-dialog article h3 small{display:inline;color:#b32761;font-size:9px}
.identity-dialog article .player-trophy{width:80px;height:104px;display:block;margin:auto}
.identity-dialog article.locked .player-trophy{opacity:.35}
.identity-dialog article.locked .player-preview{opacity:.55}
.identity-dialog article button[aria-pressed=true]{border-color:#285c8c;background:#eaf3ff}
.identity-dialog article button:disabled{background:#edf2f8;color:#526b85;cursor:default}
.collection-intro{grid-column:1/-1;font-size:12px;line-height:1.7;margin:0}
.ac-discovery-avatar .identity-art,.ac-discovery-avatar .player-sprite{width:80px;height:80px;margin:0}
.ac-discovery-avatar .identity-art img{height:80px}
[data-book-avatar] .player-sprite{width:100%;height:auto}
@media(prefers-reduced-motion:reduce){.player-card *{animation:none!important}}
.player-trophy-shelf small{min-height:22px;display:flex;align-items:center;justify-content:center}
/* In the book keep a recognizable upper-body cameo inside the existing 80px slot. */
.ac-book .ac-discovery-avatar{overflow:hidden}
.ac-discovery-avatar .player-sprite{width:120px;height:120px;transform:translateX(-20px)}
.identity-dialog [data-status]:not(:empty){position:sticky;bottom:-20px;z-index:5;margin:12px -4px -4px;padding:12px;background:#f0f6ff;border:1px solid #d1e0f2;border-radius:10px;box-shadow:0 -3px 12px #132d4e0c}
/* Compact sports briefing: emphasis stays below the primary record CTA. */
.next-goal{position:relative;isolation:isolate;overflow:hidden;margin:16px 0 24px;padding:18px;border:1px solid #d8e5f2;border-radius:16px;background:linear-gradient(125deg,#fff 30%,#edf5ff);color:#142e50;box-shadow:0 4px 14px #17375708}
.next-goal:before{content:'';position:absolute;top:0;left:18px;width:42px;height:3px;background:#f0cf56;border-radius:0 0 3px 3px}
.next-goal:after{content:'';position:absolute;z-index:-1;right:-24px;top:0;width:95px;height:100%;border-left:1px solid #d8e7f6;border-right:18px solid #e4effa80;transform:skewX(-18deg);pointer-events:none}
.next-goal .next-goal-label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:900;font-style:italic;letter-spacing:.12em;color:#183959}
.next-goal-label span{font-size:10px;font-style:normal;font-weight:600;letter-spacing:0;border-left:1px solid #bdcfe1;padding-left:10px;color:#607790}
.next-goal h2{font-size:18px;font-weight:800;line-height:1.5;margin:14px 0 8px;letter-spacing:.015em}
.next-goal p{font-size:12px;line-height:1.6;margin:7px 0;color:#536b83}
.next-goal-title strong{display:block;color:#183653;font-size:16px;margin-top:3px}
.next-goal-progress{display:flex;gap:12px;align-items:center;margin:12px 0}
.next-goal-progress progress{flex:1;min-width:0;height:7px;accent-color:#244c74;border:0;border-radius:8px;overflow:hidden;appearance:none}
.next-goal-progress progress::-webkit-progress-bar{background:#dfeaf5;border-radius:8px}
.next-goal-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#244c74,#568bc0);border-radius:8px}
.next-goal-progress progress::-moz-progress-bar{background:#35668f;border-radius:8px}
.next-goal-progress span{font-size:13px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;color:#183959}
.next-goal>small:not(.next-goal-label){font-size:11px;color:#60758b}
.next-goal button{display:block;width:100%;min-height:44px;margin-top:14px;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;color:#23486b;background:#ffffffa8;border:1px solid #ccdeef;border-radius:9px;cursor:pointer}
.next-goal button:hover{background:#fff;border-color:#8fafd0}
.next-goal button:focus-visible{outline:2px solid #375f88;outline-offset:3px}

.record-celebration{max-width:440px;margin:auto;padding:24px 16px;text-align:center;color:#142e50;animation:celebration-in .3s ease-out}
.celebration-saved{font-size:14px;color:#365c7d;font-weight:700;margin:0 0 8px}
.record-celebration h1{font-size:22px;line-height:1.5;margin:0 0 12px}
.celebration-avatar{width:220px;max-width:70vw;margin:6px auto;background:radial-gradient(ellipse at center,#edf7ff,transparent 70%)}
.celebration-avatar .identity-art img{height:220px}
.celebration-record{font-size:15px;line-height:1.8;margin:8px 0 18px}
.celebration-award{padding:12px;background:#f5f9ff;border-top:3px solid #edcc58;border-radius:12px}
.celebration-award>small{font-size:11px;letter-spacing:.13em;font-weight:800;color:#395d83}
.celebration-award h2{font-size:20px;margin:5px 0}.celebration-award p{font-size:12px;line-height:1.6;margin:4px 0}
.celebration-rewards{display:grid;gap:8px;margin-bottom:16px;text-align:left}
.celebration-rewards>div{display:flex;align-items:center;justify-content:center;gap:12px;padding:9px;border:1px solid #dce7f2;border-radius:10px;font-size:14px}
.celebration-rewards small{display:block;font-size:11px;color:#637a91;margin-top:3px}.celebration-rewards svg{width:34px;height:44px}
.celebration-goal{display:grid;grid-template-columns:1fr auto;gap:6px;text-align:left;padding:12px 14px;margin:14px 0;background:#f1f7ff;border-radius:12px;font-size:13px}
.celebration-goal small{grid-column:1/-1;font-size:11px;color:#58708b}.celebration-goal progress{grid-column:1/-1;width:100%;height:6px;accent-color:#375d85}.celebration-goal.is-close{border-left:3px solid #ebc849}.celebration-goal strong{font-size:16px}
.record-celebration button{min-height:44px;margin-top:8px}.record-celebration .primary{background:#183959!important;color:#fff!important}
@keyframes celebration-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.record-celebration{animation:none}}
/* NEXT GOAL — a restrained metallic gold finish. */
.next-goal{border:1px solid #E5C25A;background:linear-gradient(118deg,#FFFDF3 0%,#FFF4C8 32%,#FFFBEA 48%,#FFE9A0 79%,#FFF5D1 100%);box-shadow:inset 0 0 0 2px #FFFFFFA6,0 4px 14px #A9780B12}
.next-goal:before{left:18px;width:64px;height:3px;background:linear-gradient(90deg,#B98016,#FFE491,#C69220)}
.next-goal:after{right:30px;top:-30%;width:38px;height:160%;border:0;background:linear-gradient(90deg,transparent,#FFFFFFB3,transparent);transform:skewX(-22deg)}
.next-goal .next-goal-label{color:#76500D;text-shadow:0 1px #FFFFFFB3}
.next-goal-label span{border-left-color:#D8B85F;color:#795D28}
.next-goal p,.next-goal>small:not(.next-goal-label){color:#695C3B}
.next-goal-title strong,.next-goal h2{color:#193451}
.next-goal-progress progress{accent-color:#B78519}
.next-goal-progress progress::-webkit-progress-bar{background:#F0DFA5}
.next-goal-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#B17C13,#EDCA5C,#C29123)}
.next-goal-progress progress::-moz-progress-bar{background:#C29123}
.next-goal button{border-color:#DFC16A;background:linear-gradient(110deg,#FFFFFFD9,#FFF9E3D9);color:#664B14;box-shadow:inset 0 1px #FFFFFF}
.next-goal button:hover{background:#FFFCED;border-color:#BB8A21}
.ac-player-hero .book-action-art{height:180px;min-height:180px;width:100%;align-self:center;display:flex;align-items:center;justify-content:center}
.ac-player-hero .book-action-art img{display:block;width:100%;height:180px;object-fit:contain;object-position:center}
.ac-player-hero .book-action-art .player-sprite{width:100%;aspect-ratio:1;height:auto;max-height:180px}
