/* Personal, optional seasonal appearance. No layout changes to tournaments. */
body.season-winter{--bg:#071426;--card-bg:rgba(18,42,68,.84);--card-border:rgba(167,226,255,.2);--accent:#7dd3fc;--accent-gradient:linear-gradient(125deg,#38bdf8,#a5b4fc);--nav-bg:rgba(8,26,46,.97);background:radial-gradient(ellipse at 85% 4%,rgba(111,104,231,.24),transparent 45%),radial-gradient(ellipse at 0 38%,rgba(34,211,238,.12),transparent 55%),var(--bg);background-attachment:fixed}
body.season-spring{--bg:#0b1917;--card-bg:rgba(22,48,42,.9);--card-border:rgba(167,243,208,.18);--accent:#6ee7b7;--accent-gradient:linear-gradient(120deg,#34d399,#f9a8d4);--nav-bg:rgba(9,29,24,.97);background:radial-gradient(ellipse at top right,#3d23433d,transparent 60%),var(--bg)}
body.season-summer{--bg:#081c24;--card-bg:rgba(13,49,61,.9);--card-border:rgba(125,211,252,.19);--accent:#67e8f9;--accent-gradient:linear-gradient(120deg,#22d3ee,#fbbf24);--nav-bg:rgba(8,30,41,.97);background:radial-gradient(ellipse at top left,#fbbf241a,transparent 65%),var(--bg)}
body.season-autumn{--bg:#1b1212;--card-bg:rgba(48,31,29,.9);--card-border:rgba(253,186,116,.17);--accent:#fdba74;--accent-gradient:linear-gradient(120deg,#fb923c,#e8799b);--nav-bg:rgba(30,19,20,.97);background:radial-gradient(ellipse at top right,#9a34122e,transparent 65%),var(--bg)}
#season-snow{position:fixed;inset:0;width:100%;height:100%;z-index:110;pointer-events:none;overflow:hidden;color:#eff9ff}
#season-snow[hidden]{display:none!important}
.profile-snowflake{position:absolute;top:-26px;line-height:1;user-select:none;pointer-events:none;text-shadow:0 0 7px #bae6fd66;animation:profile-snow-fall linear infinite;will-change:transform}
@keyframes profile-snow-fall{from{transform:translate3d(0,-28px,0) rotate(0deg)}to{transform:translate3d(var(--snow-drift),calc(100vh + 52px),0) rotate(200deg)}}
body.season-winter .main-stat-card{background:radial-gradient(ellipse at 90% 0%,rgba(186,230,253,.16),transparent 70%),var(--card-bg);border:1px solid var(--card-border);box-shadow:inset 0 1px 0 rgba(224,242,254,.24),0 16px 48px rgba(0,0,0,.12)}
body.season-winter .main-stat-title::before{content:'❄ ';color:#bae6fd}
.profile-avatar-button{position:relative;border:0;padding:0;color:inherit;cursor:pointer;overflow:visible;font-family:inherit}
.profile-avatar-button img{width:100%;height:100%;border-radius:inherit;object-fit:cover;display:block}
.profile-avatar-plus{position:absolute;right:-5px;bottom:-5px;border:2px solid var(--bg);width:24px;height:24px;background:var(--accent);color:#071426;border-radius:50%;font-size:20px;font-weight:800;line-height:19px;box-shadow:0 2px 8px #0005}
.profile-theme-top{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap;max-width:145px}
.profile-theme-switch{display:flex;align-items:center;gap:5px;padding:6px 7px;background:var(--card-bg);border:1px solid var(--card-border);border-radius:20px;font-size:11px;color:var(--text-main);cursor:pointer}
.profile-theme-track{display:inline-block;width:29px;height:17px;border-radius:20px;background:#475569;position:relative}
.profile-theme-track::after{content:'';width:11px;height:11px;background:white;border-radius:50%;position:absolute;top:3px;left:3px;transition:transform .15s}
.profile-theme-switch[aria-checked=true] .profile-theme-track{background:#0284c7}
.profile-theme-switch[aria-checked=true] .profile-theme-track::after{transform:translateX(12px)}
.profile-theme-options{width:26px;height:28px;padding:0;border:0;background:transparent;color:var(--text-muted);font-size:19px;cursor:pointer}
.profile-date-source{font-size:10px;line-height:1.4;color:var(--text-muted);margin-top:5px}
.profile-style-overlay{position:fixed;inset:0;background:#020617c9;backdrop-filter:blur(10px);z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px}
.profile-style-dialog{background:var(--bg);border:1px solid var(--card-border);border-radius:24px;padding:23px;width:100%;max-width:420px;max-height:88vh;overflow:auto;box-shadow:0 24px 80px #0006}
.profile-style-dialog h2{font-size:21px;margin:0 0 12px}.profile-style-dialog p{font-size:13px;color:var(--text-muted);line-height:1.6}
.profile-style-dialog button,.profile-style-dialog select,.profile-style-dialog input{font:inherit;font-size:14px;max-width:100%}
.profile-style-dialog select,.profile-style-dialog input{display:block;width:100%;border:1px solid var(--card-border);border-radius:12px;background:var(--card-bg);color:var(--text-main);padding:12px;margin:9px 0}
.profile-style-dialog select option{background:#172333;color:#f8fafc}
.profile-style-dialog label{font-size:13px;color:var(--text-muted);display:block;margin-top:15px}
.profile-style-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.profile-style-actions button{flex:1;border:1px solid var(--card-border);padding:12px 9px;border-radius:12px;color:var(--text-main);background:var(--card-bg);cursor:pointer}
.profile-style-actions button.primary{background:#0369a1;border-color:#38bdf8;color:white}.profile-style-actions button:disabled{opacity:.5;cursor:wait}
.profile-avatar-preview{display:block;width:150px;height:150px;border-radius:28px;object-fit:cover;margin:18px auto;border:1px solid var(--card-border)}
.profile-style-feedback{font-size:12px;min-height:18px;margin-top:10px;line-height:1.5;color:var(--text-muted)}
@media(max-width:360px){.profile-theme-top{max-width:112px}.profile-theme-switch{font-size:10px}.profile-left .header-info h1{max-width:130px;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){body:not([data-profile-snow=on]) #season-snow{display:none}.profile-theme-track::after{transition:none}}
.profile-header{gap:10px}.profile-left,.profile-left .header-info{min-width:0}.profile-left .header-info h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-header>.profile-theme-top{flex-shrink:0}

/* Spring tulips and a summer meadow: beneath navigation, no interactive cover. */
#season-scenery{position:fixed;inset:0;z-index:4;pointer-events:none;overflow:hidden}
#season-scenery[hidden]{display:none!important}
#season-scenery svg,#season-scenery span{pointer-events:none}
.season-garden{position:absolute;bottom:0;left:0;width:100%;height:clamp(95px,15vh,135px);opacity:.83}
.season-sun{position:absolute;top:118px;right:7px;width:82px;height:82px;opacity:.7;animation:season-sun-float 7s ease-in-out infinite}
.season-plant{animation:season-plant-sway 6s ease-in-out infinite;animation-delay:var(--sway-delay)}
.season-leaf{position:absolute;top:-35px;opacity:.6;animation:season-leaf-fall linear infinite;filter:drop-shadow(0 2px 4px #0003)}
@keyframes season-sun-float{50%{transform:translateY(-5px) rotate(8deg)}}
@keyframes season-plant-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes season-leaf-fall{from{transform:translate3d(0,-35px,0) rotate(-20deg)}to{transform:translate3d(var(--leaf-drift),calc(100vh + 70px),0) rotate(220deg)}}
@media(prefers-reduced-motion:reduce){.season-sun,.season-plant{animation:none}.season-leaf{display:none}}

/* Approved compact profile: card/photo/OVR occupy separate vertical bands. */
body{--card-bg:#1a2430}
body.season-winter{--card-bg:#122a44}
body.season-spring{--card-bg:#16302a}
body.season-summer{--card-bg:#0d313d}
body.season-autumn{--card-bg:#301f1d}
#app{position:relative;z-index:1;isolation:isolate}
#season-snow,#season-scenery{z-index:0}
#season-snow{opacity:.58}
.season-leaf{opacity:.38}
.profile-dashboard{display:grid;grid-template-columns:minmax(126px,.92fr) minmax(0,1.12fr);gap:13px;align-items:stretch;margin-bottom:0}
.profile-player-card{position:relative;display:block;min-width:0;height:224px;border:0;padding:0;background:transparent;color:#f6e9cb;cursor:pointer;text-align:center;font:inherit}
.profile-card-shell{position:relative;width:100%;height:224px;padding:2px;overflow:hidden;clip-path:polygon(12% 0,88% 0,100% 10%,100% 83%,82% 93%,50% 100%,18% 93%,0 83%,0 10%);--holo-a:#f4c692;--holo-b:#dd93bd;--holo-c:#bfe4da;--holo-d:#c5b4e8;--card-edge:linear-gradient(125deg,#9f5141,#f8d8a2 28%,#b66c43 52%,#eb9d91 75%,#714434);--card-face:radial-gradient(ellipse at 70% 15%,#edac684d,transparent 60%),linear-gradient(155deg,#593b34,#34232d 65%,#3f3430);background:var(--card-edge)}
.profile-player-card[data-season=winter] .profile-card-shell{--holo-a:#b4edff;--holo-b:#a3a3fa;--holo-c:#d4fcff;--holo-d:#b6d4fa;--card-edge:linear-gradient(125deg,#5185b2,#e0f8ff 27%,#8bb9dc 51%,#c2c1ff 77%,#538aaf);--card-face:radial-gradient(ellipse at 70% 15%,#b4eaff66,transparent 60%),linear-gradient(155deg,#3b577d,#142a48 65%,#30345a)}
.profile-player-card[data-season=spring] .profile-card-shell{--holo-a:#f3b7d9;--holo-b:#abe7cb;--holo-c:#ead6fb;--holo-d:#e7f3bb;--card-edge:linear-gradient(125deg,#789b75,#f9dfef 27%,#a8d7a8 51%,#efb7cb 77%,#65988e);--card-face:radial-gradient(ellipse at 70% 15%,#f4badc55,transparent 60%),linear-gradient(155deg,#476c59,#203a35 65%,#543349)}
.profile-player-card[data-season=summer] .profile-card-shell{--holo-a:#ffe4a2;--holo-b:#8be3cf;--holo-c:#e5f3c3;--holo-d:#edc88d;--card-edge:linear-gradient(125deg,#bd8430,#fff2b4 27%,#e9b04f 51%,#9adad0 77%,#9d722d);--card-face:radial-gradient(ellipse at 70% 15%,#ffe89b66,transparent 60%),linear-gradient(155deg,#617143,#234b46 65%,#444522)}
.profile-card-shell::before{content:'';position:absolute;inset:-55%;background:conic-gradient(from 0deg,var(--holo-a),var(--holo-b),var(--holo-c),var(--holo-d),var(--holo-a));animation:profile-prism-orbit 13s linear infinite;pointer-events:none}
.profile-card-face{position:relative;height:100%;width:100%;clip-path:inherit;overflow:hidden;background:var(--card-face);z-index:1}
.profile-card-face::before{content:'';position:absolute;width:180px;height:180px;top:-44px;right:-76px;border:1px solid #e2d4ae44;border-radius:50%;box-shadow:0 0 0 17px #c6bd9a0c,0 0 0 36px #c6bd9a0a;pointer-events:none}
.profile-card-face::after{content:'';position:absolute;inset:-45%;background:conic-gradient(from 30deg,transparent 0deg,var(--holo-b) 70deg,transparent 140deg,var(--holo-c) 240deg,transparent 310deg);opacity:.22;filter:blur(12px);animation:profile-aurora-drift 14s ease-in-out infinite;pointer-events:none;z-index:1}
.profile-card-rating{position:absolute;left:8px;right:8px;top:12px;height:36px;display:flex;align-items:baseline;justify-content:center;gap:5px;z-index:4;color:#f6e9cb}
.profile-card-rating strong{font-size:29px;font-weight:700;line-height:1.1;letter-spacing:-1px}
.profile-card-rating span{font-size:11px;font-weight:600;line-height:1.1;letter-spacing:.04em}
.profile-card-photo{position:absolute;left:50%;top:60px;transform:translateX(-50%);width:min(92px,calc(100% - 30px));height:auto;aspect-ratio:1;border-radius:50%;overflow:hidden;z-index:2;border:2px solid var(--holo-a);box-shadow:0 0 0 4px #ffffff09,0 0 18px color-mix(in srgb,var(--holo-b) 25%,transparent);background:linear-gradient(145deg,#ffffff14,#ffffff05);display:grid;place-items:center}
.profile-card-photo>img{width:100%;height:100%;position:absolute;inset:0;border-radius:50%;object-fit:cover;object-position:center;display:block}
.profile-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#f5ead5;max-width:100%}
.profile-photo-empty>span{font-size:23px;line-height:1}
.profile-photo-empty small{font-size:10px;font-weight:500}
.profile-photo-empty[hidden]{display:none!important}
.profile-card-nick{position:absolute;bottom:43px;left:7px;right:7px;height:16px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:12px;font-weight:600;color:#f6e9cb;z-index:4;text-shadow:0 1px 5px #0008}
.profile-card-club{position:absolute;bottom:25px;left:7px;right:7px;height:13px;line-height:13px;text-align:center;font-size:11px;font-weight:500;color:#d6c49c;letter-spacing:.06em;z-index:4;text-shadow:0 1px 5px #0008}
.profile-card-foil{position:absolute;inset:0;z-index:3;background:linear-gradient(115deg,transparent 25%,#ffffff09 38%,var(--holo-c) 45%,var(--holo-b) 49%,#ffffff33 52%,transparent 62%);background-size:350% 170%;opacity:.24;animation:profile-holo-sweep 7s ease-in-out infinite;pointer-events:none;mix-blend-mode:screen}
.profile-card-plus{position:absolute;right:0;bottom:6px;width:28px;height:28px;background:#efbd78;border:2px solid var(--bg);border-radius:50%;color:#33230d;display:grid;place-items:center;font-size:21px;font-weight:700;z-index:5;line-height:1}
.profile-metrics{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;min-width:0}
.profile-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:90px;padding:11px 8px;border:1px solid var(--card-border);border-radius:17px;background:var(--card-bg);color:var(--text-main);font:inherit;text-align:center;cursor:pointer}
.profile-metric-label{font-size:11px;line-height:1.35;font-weight:500;color:var(--text-muted)}
.profile-metric-value{font-size:21px;line-height:1.15;font-weight:750;font-variant-numeric:tabular-nums}
.profile-metric-tenure{font-size:14px;line-height:1.35;font-weight:650}
.profile-metric-note{font-size:11px;line-height:1.35;color:var(--text-muted)}
.profile-metric-activity{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 11%,var(--card-bg)),var(--card-bg));gap:7px}
.profile-metric-progress{display:block;width:100%;height:3px;overflow:hidden;border-radius:6px;background:rgba(127,127,127,.15)}
.profile-metric-progress>span{display:block;height:100%;border-radius:inherit;background:var(--danger)}
.profile-metric-progress>span.success{background:var(--success)}
.profile-metric .profile-date-source{margin:0;font-size:10px;line-height:1.3;max-width:100%}
.profile-metric .profile-date-source[hidden]{display:none}
.profile-avatar-preview{border-radius:50%}
.profile-header .header-info h1{max-width:100%;overflow-wrap:anywhere;white-space:normal;font-size:20px}
#screen-profile .profile-header{align-items:flex-start;margin-bottom:20px}
.profile-player-card:focus-visible,.profile-metric:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@keyframes profile-prism-orbit{to{transform:rotate(360deg)}}
@keyframes profile-aurora-drift{0%,100%{transform:translate(-7%,-3%) rotate(-25deg)}50%{transform:translate(8%,6%) rotate(125deg)}}
@keyframes profile-holo-sweep{0%,100%{background-position:0% 40%}50%{background-position:100% 65%}}
.profile-player-card[data-effects=false] .profile-card-shell::before,.profile-player-card[data-effects=false] .profile-card-face::after,.profile-player-card[data-effects=false] .profile-card-foil{animation:none}
.profile-player-card[data-effects=false] .profile-card-foil{opacity:.1}
.profile-player-card[data-paused=true] .profile-card-shell::before,.profile-player-card[data-paused=true] .profile-card-face::after,.profile-player-card[data-paused=true] .profile-card-foil{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.profile-player-card .profile-card-shell::before,.profile-player-card .profile-card-face::after,.profile-player-card .profile-card-foil{animation:none}.profile-card-foil{opacity:.12}}
@media(max-width:350px){.profile-dashboard{grid-template-columns:minmax(120px,.95fr) minmax(0,1.05fr);gap:10px}.profile-metrics{gap:8px}.profile-metric{padding:10px 6px}.profile-card-nick{font-size:11px}.profile-header .header-info h1{font-size:17px}}
