/* Handball Dynasty 20.3 – Team, Club, Transfers, Motion & Club Identity */
:root{--v203-radius:22px;--v203-shadow:0 18px 48px rgba(8,20,37,.12);--v203-fast:180ms;--v203-slow:460ms}
.hd-v203{--identity-primary:var(--club-accent,#d7f51c);--identity-secondary:var(--club-ink,#10213a)}
.hd-v203 .v10-pagehero{isolation:isolate;overflow:hidden}
.hd-v203 .v10-pagehero:after{content:"";position:absolute;inset:auto -8% -80% 38%;height:170%;background:radial-gradient(circle,var(--identity-primary) 0,transparent 62%);opacity:.15;pointer-events:none;z-index:-1}
.hd-v203 .card,.hd-v203 .roster16-card,.hd-v203 .tm14-player-card{transition:transform var(--v203-fast) ease,box-shadow var(--v203-fast) ease,border-color var(--v203-fast) ease}
.hd-v203 .card:hover,.hd-v203 .roster16-card:hover,.hd-v203 .tm14-player-card:hover{transform:translateY(-3px);box-shadow:var(--v203-shadow)}
.hd-v203 .primary-button,.hd-v203 button,.hd-v203 .secondary-button{transition:transform var(--v203-fast) ease,box-shadow var(--v203-fast) ease,filter var(--v203-fast) ease}
.hd-v203 .primary-button:hover,.hd-v203 button:hover{transform:translateY(-1px)}

/* Team view */
.v203-team-hero{position:relative;display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center;gap:22px;overflow:hidden;background:linear-gradient(125deg,var(--identity-secondary),color-mix(in srgb,var(--identity-secondary) 76%,#fff));border:0!important;color:#fff}
.v203-team-hero:after{content:"";position:absolute;right:-80px;bottom:-120px;width:360px;height:360px;border-radius:50%;background:var(--identity-primary);opacity:.14}
.v203-team-brand{position:relative;width:94px;height:94px;display:grid;place-items:center;z-index:1}
.v203-team-logo{width:82px!important;height:82px!important;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.28))}
.v203-kit-mini{position:absolute;right:-3px;bottom:2px;width:31px;height:36px;background:var(--kit);clip-path:polygon(23% 0,38% 10%,62% 10%,77% 0,100% 23%,82% 40%,82% 100%,18% 100%,18% 40%,0 23%);border:2px solid rgba(255,255,255,.75)}
.v203-team-hero .eyebrow,.v203-team-hero p,.v203-team-hero small{color:rgba(255,255,255,.72)!important}.v203-team-hero h2,.v203-team-hero b{color:#fff!important}
.v203-team-hero .primary-button{background:var(--identity-primary)!important;color:var(--identity-secondary)!important}
.roster161-kpis article{position:relative;overflow:hidden}.roster161-kpis article:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,var(--identity-primary),transparent)}
.roster16-grid{gap:18px!important}.roster16-card{border-radius:var(--v203-radius)!important;overflow:hidden;border:1px solid rgba(16,33,58,.1)!important;background:linear-gradient(180deg,#fff,#f8fafc)!important}
.roster16-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--identity-primary);opacity:.8}
.roster16-photo{background:linear-gradient(145deg,color-mix(in srgb,var(--identity-secondary) 90%,#fff),var(--identity-secondary))!important}
.roster16-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 55%,var(--identity-primary));opacity:.15}
.v203-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.v203-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eef3f8;color:#334155;font-size:11px;font-weight:800;letter-spacing:.02em}.v203-badge.star{background:#fff3c4;color:#7a5600}.v203-badge.talent{background:#e6f8ee;color:#17663c}.v203-badge.form{background:#ffe9df;color:#9b3d0b}.v203-badge.captain{background:#ece9ff;color:#4b36a8}.v203-badge.defense{background:#e7f0ff;color:#174e98}.v203-badge.goalkeeper{background:#fff0db;color:#8a4b00}.v203-badge.risk{background:#ffe8e8;color:#a32020}

/* Club profile */
.club-profile-v34{border-radius:28px;overflow:hidden;box-shadow:var(--v203-shadow)}
.v203-club-profile-hero{min-height:300px!important;background:linear-gradient(125deg,var(--profile-secondary),color-mix(in srgb,var(--profile-secondary) 72%,#fff))!important}
.v203-club-profile-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 35%,color-mix(in srgb,var(--profile-primary) 34%,transparent));pointer-events:none}
.club-profile-upload-logo{z-index:2}.club-profile-logo-img{filter:drop-shadow(0 18px 25px rgba(0,0,0,.3));transition:transform var(--v203-slow) cubic-bezier(.2,.8,.2,1)}.v203-club-profile-hero:hover .club-profile-logo-img{transform:scale(1.06) rotate(-2deg)}
.v203-club-status{display:flex;align-items:center;gap:7px;margin-bottom:12px}.v203-club-status span{font-size:10px;font-weight:900;letter-spacing:.16em;color:rgba(255,255,255,.62)}.v203-club-status i{width:13px;height:13px;border-radius:50%;background:var(--swatch);border:2px solid rgba(255,255,255,.65)}
.club-profile-v34-kpis article{border-top:3px solid var(--profile-primary)}
.club-profile-v34-grid .card{border-radius:20px}.club-profile-v34-kits span{transition:transform var(--v203-fast) ease}.club-profile-v34-kits span:hover{transform:translateY(-4px)}

/* Transfer center */
.v203-transfer-hero{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center;gap:22px;background:linear-gradient(125deg,var(--identity-secondary),#152c49)!important;overflow:hidden;position:relative}
.v203-transfer-hero:after{content:"";position:absolute;width:440px;height:440px;border-radius:50%;right:-180px;top:-260px;background:var(--identity-primary);opacity:.16}.v203-transfer-brand{width:86px;height:86px;display:grid;place-items:center;z-index:1}.v203-transfer-logo{width:76px!important;height:76px!important;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.3))}
.tm16-kpis article{border-bottom:3px solid transparent}.tm16-kpis article:hover{border-bottom-color:var(--identity-primary)}
.tm14-tabs a.active{box-shadow:inset 0 -3px 0 var(--identity-primary)!important}.tm16-filterbar button,.tm14-bid button,.tm16-detail-bid button,.tm14-sell-form>button{background:var(--identity-secondary)!important}.tm16-filterbar button:hover,.tm14-bid button:hover,.tm16-detail-bid button:hover{box-shadow:0 9px 20px color-mix(in srgb,var(--identity-secondary) 25%,transparent)}
.tm14-player-card{position:relative;overflow:hidden}.tm14-player-card:after{content:"";position:absolute;left:0;top:0;height:4px;width:100%;background:linear-gradient(90deg,var(--seller-primary,var(--identity-primary)),transparent);opacity:.8}.tm14-player-card.is-highlight{animation:v203-market-pulse 1.4s ease both}
.v203-market-badges{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.v203-market-badges .v203-badge{box-shadow:0 3px 10px rgba(15,23,42,.07)}
.tm16-detail{border-left:4px solid var(--identity-primary)!important}.tm16-detail-content img{transition:transform var(--v203-slow) ease}.tm16-detail-content:hover img{transform:scale(1.03)}

/* motion */
.hd-v203 .v203-reveal{opacity:0;transform:translateY(16px)}.hd-v203 .v203-reveal.is-visible{opacity:1;transform:none;transition:opacity 520ms ease,transform 520ms cubic-bezier(.2,.8,.2,1)}
@keyframes v203-market-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--identity-primary) 42%,transparent)}100%{box-shadow:0 0 0 18px transparent}}
@media (prefers-reduced-motion:reduce){.hd-v203 *{animation:none!important;transition:none!important}.hd-v203 .v203-reveal{opacity:1;transform:none}}
@media(max-width:900px){.v203-team-hero,.v203-transfer-hero{grid-template-columns:auto 1fr!important}.v203-team-hero .roster16-hero-actions,.v203-transfer-hero .tm16-budget{grid-column:1/-1}.v203-club-profile-hero{min-height:250px!important}}
@media(max-width:620px){.v203-team-brand,.v203-transfer-brand{width:62px;height:62px}.v203-team-logo,.v203-transfer-logo{width:56px!important;height:56px!important}.v203-team-hero,.v203-transfer-hero{gap:12px;padding:18px!important}.v203-team-hero h2,.v203-transfer-hero h1{font-size:24px!important}}
