/* ==========================================================================
   KYTHRION · PROFILE ULTRA  — premium design layer for profile.php
   Loaded last. Does NOT touch cosmetic backgrounds (.profile-bg-*) or avatar
   frames (.frame-*, .kx-discord-avatar-frame) so user cosmetics keep working.
   ========================================================================== */
:root{
  --pu-gold:#e8c77e; --pu-gold2:#bd9145; --pu-violet:#8c72ff; --pu-cyan:#5fe0ff; --pu-red:#ff4d5e;
  --pu-ink:#f5f4fa; --pu-mute:#9a9eb2; --pu-line:rgba(255,255,255,.085);
  --pu-glass:linear-gradient(155deg,rgba(26,28,42,.86),rgba(11,12,19,.9) 70%);
}

/* ---- Ambient background (injected by JS) ------------------------------- */
.pu-ambient{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.pu-ambient i{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;animation:puDrift 26s ease-in-out infinite alternate}
.pu-ambient i:nth-child(1){width:560px;height:560px;left:-160px;top:6%;background:radial-gradient(circle,rgba(140,114,255,.38),transparent 68%)}
.pu-ambient i:nth-child(2){width:520px;height:520px;right:-140px;top:30%;background:radial-gradient(circle,rgba(232,199,126,.22),transparent 68%);animation-delay:-9s}
.pu-ambient i:nth-child(3){width:620px;height:620px;left:30%;bottom:-260px;background:radial-gradient(circle,rgba(95,224,255,.16),transparent 68%);animation-delay:-16s}
.pu-ambient:after{content:"";position:absolute;inset:0;opacity:.35;background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);background-size:46px 46px;-webkit-mask-image:radial-gradient(ellipse at 50% 20%,#000,transparent 75%);mask-image:radial-gradient(ellipse at 50% 20%,#000,transparent 75%)}

/* ---- Hero --------------------------------------------------------------- */
html body .profile-page:not(.esports-only-profile-page)>.profile-hero{
  position:relative!important;isolation:isolate;overflow:hidden;min-height:230px!important;margin:0 0 18px!important;padding:46px clamp(22px,4vw,48px) 34px!important;
  border:1px solid rgba(232,199,126,.24)!important;border-radius:0 0 30px 30px!important;
  background:radial-gradient(ellipse at 88% 10%,rgba(140,114,255,.3),transparent 46%),radial-gradient(ellipse at 6% 0%,rgba(232,199,126,.18),transparent 46%),linear-gradient(125deg,#12141e 0%,#0a0b12 58%,#151227 100%)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06)!important;
}
html body .profile-page:not(.esports-only-profile-page)>.profile-hero:before{
  content:""!important;position:absolute!important;inset:0!important;z-index:-1;opacity:.28!important;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px)!important;background-size:40px 40px!important;
  -webkit-mask-image:linear-gradient(90deg,#000,transparent 80%);mask-image:linear-gradient(90deg,#000,transparent 80%);
}
html body .profile-page:not(.esports-only-profile-page)>.profile-hero:after{
  content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;height:2px!important;z-index:2;border:0!important;
  background:linear-gradient(90deg,transparent,var(--profile-accent,#e8c77e),#fff3cf,var(--pu-violet),transparent)!important;background-size:200% 100%!important;animation:puFlow 7s linear infinite!important;opacity:.9!important;box-shadow:0 0 22px var(--profile-accent,rgba(232,199,126,.6))!important;
}
html body .profile-page:not(.esports-only-profile-page)>.profile-hero .page-title{
  font-family:"Barlow Condensed",Inter,sans-serif!important;font-size:clamp(52px,7.4vw,98px)!important;font-weight:900!important;line-height:.9!important;letter-spacing:-1.5px!important;text-transform:uppercase;margin:12px 0 10px!important;
}
html body .profile-page:not(.esports-only-profile-page)>.profile-hero .eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--pu-gold)!important;font-family:"JetBrains Mono",monospace;font-size:10px!important;font-weight:700;letter-spacing:3.2px!important}
html body .profile-page:not(.esports-only-profile-page)>.profile-hero .eyebrow:before{content:"";width:26px;height:1px;background:var(--pu-gold);box-shadow:0 0 10px var(--pu-gold)}
html body .profile-page:not(.esports-only-profile-page)>.profile-hero .page-intro{max-width:620px;color:#b3b6c6!important;font-size:15px!important;line-height:1.75!important}
.pu-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.pu-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid rgba(255,255,255,.11);border-radius:999px;background:rgba(255,255,255,.04);color:#cfd2df;font-size:11px;font-weight:700;letter-spacing:.3px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pu-chip i{color:var(--pu-gold);font-size:11px}
.pu-chip-lvl{border-color:rgba(232,199,126,.4);background:linear-gradient(120deg,rgba(232,199,126,.18),rgba(232,199,126,.05));color:#f6dfa4}
.pu-chip-tier{border-color:color-mix(in srgb,var(--profile-accent,#8c72ff),transparent 45%);background:color-mix(in srgb,var(--profile-accent,#8c72ff),transparent 85%);color:#fff}
.pu-chip-tier i{color:var(--profile-accent,#8c72ff)}
.pu-hero-actions .btn{min-height:46px;border-radius:13px!important;font-weight:800;letter-spacing:.2px;transition:transform .2s,box-shadow .2s,filter .2s}
.pu-hero-actions .btn:hover{transform:translateY(-2px)}
.pu-hero-actions .btn-primary{background:linear-gradient(120deg,#9b83ff,#6b52e6)!important;box-shadow:0 10px 28px rgba(120,92,240,.35)!important;border:0!important}
.pu-hero-actions .btn-ghost{background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.14)!important;backdrop-filter:blur(8px)}

/* ---- Social stats dashboard ------------------------------------------- */
html body .profile-page .profile-social-dashboard{gap:12px!important;margin:0 0 22px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
html body .profile-page .profile-social-stat{
  position:relative;overflow:hidden;display:flex;align-items:center;gap:15px;min-height:104px;padding:18px 20px!important;
  border:1px solid var(--pu-line)!important;border-radius:20px!important;
  background:radial-gradient(240px circle at var(--mx,80%) var(--my,0%),rgba(var(--pu-rgb,232,199,126),.1),transparent 62%),var(--pu-glass)!important;
  box-shadow:0 16px 40px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.05)!important;transition:transform .25s,border-color .25s,box-shadow .25s;
}
html body .profile-page .profile-social-stat:hover{transform:translateY(-4px);border-color:rgba(232,199,126,.38)!important;box-shadow:0 24px 54px rgba(0,0,0,.42),0 0 34px rgba(232,199,126,.07)!important}
html body .profile-page .profile-social-icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:16px!important;border:1px solid rgba(232,199,126,.28)!important;background:linear-gradient(145deg,rgba(232,199,126,.16),rgba(140,114,255,.1))!important;color:var(--pu-gold)!important;font-size:19px;box-shadow:0 0 28px rgba(232,199,126,.1),inset 0 1px rgba(255,255,255,.12)}
html body .profile-page .profile-social-stat small{font-family:"JetBrains Mono",monospace;font-size:9px!important;font-weight:700;letter-spacing:2px!important;color:#8d91a6!important}
html body .profile-page .profile-social-stat strong{display:block;margin:3px 0 2px;font-family:"Barlow Condensed",Inter,sans-serif!important;font-size:42px!important;font-weight:800!important;line-height:1!important;letter-spacing:.3px;color:#fff!important;font-variant-numeric:tabular-nums}
html body .profile-page .profile-social-stat em{font-style:normal;font-size:11px!important;color:#8a8ea2!important}
html body .profile-page .profile-level-stat{border-color:rgba(232,199,126,.34)!important;background:radial-gradient(300px circle at 100% 0%,rgba(232,199,126,.17),transparent 60%),var(--pu-glass)!important}
html body .profile-page .profile-level-stat .profile-social-icon{position:relative;width:70px;height:70px;flex-basis:70px;border-radius:50%!important;border:0!important;background:conic-gradient(from -90deg,#f4dc9f calc(var(--p,0)*1%),rgba(255,255,255,.09) 0)!important;font-size:21px;box-shadow:0 0 30px rgba(232,199,126,.22)}
html body .profile-page .profile-level-stat .profile-social-icon:before{content:"";position:absolute;inset:6px;border-radius:50%;background:#10121b;box-shadow:inset 0 0 18px rgba(232,199,126,.12)}
html body .profile-page .profile-level-stat .profile-social-icon i{position:relative;z-index:1}
html body .profile-page .profile-level-stat strong{font-size:46px!important;background:linear-gradient(95deg,#fff,#f4dc9f 55%,#c99c4e);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important}
html body .profile-page .profile-level-track{height:7px!important;margin:9px 0 7px!important;overflow:hidden;border-radius:99px!important;background:rgba(255,255,255,.08)!important;box-shadow:inset 0 1px 3px rgba(0,0,0,.4)}
html body .profile-page .profile-level-track span{display:block;height:100%;border-radius:99px!important;background:linear-gradient(90deg,#bd9145,#f4dc9f,#fff3cf)!important;box-shadow:0 0 14px rgba(232,199,126,.7);transition:width 1.3s cubic-bezier(.2,.8,.2,1);position:relative}
html body .profile-page .profile-level-track span:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);background-size:60% 100%;background-repeat:no-repeat;animation:puSweep 2.6s ease-in-out infinite}


/* unify old crimson accents with the gold/violet identity */
html body .profile-page .profile-social-stat:before{background:linear-gradient(180deg,rgba(232,199,126,.9),transparent)!important}
html body .profile-page .profile-social-stat:after{background:radial-gradient(circle,rgba(140,114,255,.16),transparent 70%)!important}
html body .profile-page .profile-level-stat:after{background:radial-gradient(circle,rgba(232,199,126,.2),transparent 70%)!important}

/* ---- Cards / panels (backgrounds of .profile-card-main are left alone) -- */
html body .profile-page .profile-panel,
html body .profile-page .esports-detail-panel{
  position:relative;border:1px solid var(--pu-line)!important;border-radius:24px!important;padding:28px!important;
  background:radial-gradient(360px circle at var(--mx,50%) var(--my,0%),rgba(var(--pu-rgb,140,114,255),.09),transparent 60%),var(--pu-glass)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.05)!important;transition:border-color .3s,box-shadow .3s,transform .3s;
}
html body .profile-page .profile-panel:hover,html body .profile-page .esports-detail-panel:hover{border-color:rgba(232,199,126,.3)!important;box-shadow:0 28px 70px rgba(0,0,0,.45),0 0 40px rgba(140,114,255,.07)!important}
html body .profile-page .profile-card-main{border:1px solid rgba(232,199,126,.22)!important;border-radius:26px!important;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.5),0 0 60px rgba(140,114,255,.08),inset 0 1px rgba(255,255,255,.06)!important}
html body .profile-page .profile-panel-head{align-items:center!important;margin-bottom:22px!important;padding-bottom:16px!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
html body .profile-page .profile-panel h3,html body .profile-page .esports-detail-panel h3{font-family:"Barlow Condensed",Inter,sans-serif!important;font-size:32px!important;font-weight:800!important;letter-spacing:.3px!important;text-transform:uppercase;margin:6px 0 0!important;line-height:1!important;color:#fff!important}
html body .profile-page .profile-panel .eyebrow,html body .profile-page .esports-detail-panel .eyebrow,html body .kyth-social-zone .eyebrow{display:inline-flex;align-items:center;gap:9px;font-family:"JetBrains Mono",monospace;font-size:9.5px!important;font-weight:700;letter-spacing:2.8px!important;color:var(--pu-gold)!important}
html body .profile-page .profile-panel .eyebrow:before,html body .profile-page .esports-detail-panel .eyebrow:before,html body .kyth-social-zone .eyebrow:before{content:"";width:20px;height:1px;background:var(--pu-gold);box-shadow:0 0 8px var(--pu-gold)}
html body .profile-page .profile-status{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid rgba(52,211,153,.35);border-radius:999px;background:rgba(52,211,153,.09);color:#6ee7b7!important;font-family:"JetBrains Mono",monospace;font-size:10px;font-weight:700;letter-spacing:1.5px}
html body .profile-page .profile-status i{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 0 rgba(52,211,153,.6);animation:puPing 2s infinite}

/* ---- Main card ---------------------------------------------------------- */
html body .profile-page:not(.esports-only-profile-page) .profile-cover{height:236px!important}
html body .profile-page .profile-cover-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,9,14,0) 35%,rgba(8,9,14,.88) 100%)}
html body .profile-page .profile-cover img{width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 1.4s cubic-bezier(.2,.8,.2,1)}
html body .profile-page .profile-card-main:hover .profile-cover img{transform:scale(1.1)}
html body .profile-page .profile-avatar-wrap{filter:drop-shadow(0 14px 28px rgba(0,0,0,.55))}
html body .profile-page .profile-handle{display:inline-block;font-family:"JetBrains Mono",monospace!important;font-size:10px!important;font-weight:700;letter-spacing:2.4px!important;color:var(--pu-gold)!important;cursor:pointer}
html body .profile-page:not(.esports-only-profile-page) .profile-card-content h2{font-size:clamp(22px,2.1vw,28px)!important;line-height:1.1!important;letter-spacing:-.3px;max-width:100%;min-width:0}
html body .profile-page:not(.esports-only-profile-page) .profile-card-content h2 .profile-name-effect{display:inline-block;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
html body .profile-page .profile-card-content>p{color:#aeb2c4!important;font-size:13px!important;line-height:1.85!important}
.pu-meta{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}
.pu-meta span{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:rgba(255,255,255,.035);color:#c3c6d6;font-size:10.5px;font-weight:700}
.pu-meta i{color:var(--pu-gold);font-size:10px}
html body .profile-page .profile-role-list{gap:8px!important;padding-top:16px;border-top:1px solid rgba(255,255,255,.07)}
html body .profile-page .profile-role-badge{padding:8px 13px!important;border-radius:999px!important;border:1px solid color-mix(in srgb,var(--role-color,#e8c77e),transparent 55%)!important;background:linear-gradient(120deg,color-mix(in srgb,var(--role-color,#e8c77e),transparent 84%),transparent)!important;font-size:10.5px!important;font-weight:800;letter-spacing:.4px;transition:transform .2s,box-shadow .2s}
html body .profile-page .profile-role-badge:hover{transform:translateY(-2px);box-shadow:0 8px 22px color-mix(in srgb,var(--role-color,#e8c77e),transparent 75%)}

/* ---- Data grid ---------------------------------------------------------- */
html body .profile-page .profile-data-grid{gap:12px!important;border:0!important;border-radius:0!important;overflow:visible!important}
html body .profile-page .profile-data-grid>div{padding:18px 20px!important;border:1px solid var(--pu-line)!important;border-radius:16px!important;background:linear-gradient(150deg,rgba(255,255,255,.04),rgba(255,255,255,.01))!important;transition:transform .25s,border-color .25s,background .25s}
html body .profile-page .profile-data-grid>div:hover{transform:translateY(-3px);border-color:rgba(232,199,126,.32)!important;background:linear-gradient(150deg,rgba(232,199,126,.08),rgba(255,255,255,.01))!important}
html body .profile-page .profile-data-grid span{display:block;font-family:"JetBrains Mono",monospace;font-size:9px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#858aa0!important}
html body .profile-page .profile-data-grid strong{display:block;margin-top:9px;font-size:15px!important;font-weight:800;color:#f4f3f9!important;word-break:break-word}

/* ---- Premium showcase --------------------------------------------------- */
html body .profile-page .profile-showcase-grid{gap:12px!important}
html body .profile-page .profile-showcase-grid>div{position:relative;overflow:hidden;gap:8px!important;padding:20px!important;border-radius:16px!important;border:1px solid color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 70%)!important;background:linear-gradient(150deg,color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 90%),rgba(255,255,255,.012))!important;transition:transform .25s,box-shadow .25s,border-color .25s}
html body .profile-page .profile-showcase-grid>div:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 35%)!important;box-shadow:0 16px 38px color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 82%)}
html body .profile-page .profile-showcase-grid i{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 84%);font-size:15px!important;color:var(--profile-accent,#e8c77e)!important}
html body .profile-page .profile-showcase-grid span{font-size:11px!important;color:#9296aa!important}
html body .profile-page .profile-showcase-grid b{font-size:14px!important;color:#fff!important}
html body .profile-page .profile-showcase-tier{padding:6px 11px;border:1px solid color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 55%);border-radius:999px;background:color-mix(in srgb,var(--profile-accent,#e8c77e),transparent 88%);font-family:"JetBrains Mono",monospace;font-size:10px;font-weight:800;letter-spacing:1.6px}

/* ---- Profile strength (new) -------------------------------------------- */
.pu-strength-link{color:var(--pu-gold)!important;font-size:11px;font-weight:800;letter-spacing:.5px;text-decoration:none!important}
.pu-strength-link:hover{color:#fff!important}
.pu-strength-body{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center}
.pu-ring{position:relative;display:grid;place-items:center;width:132px;height:132px;border-radius:50%;background:conic-gradient(from -90deg,var(--pu-gold) calc(var(--p,0)*1%),rgba(255,255,255,.08) 0);box-shadow:0 0 44px rgba(232,199,126,.16)}
.pu-ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#0d0f17;box-shadow:inset 0 0 26px rgba(232,199,126,.1)}
.pu-ring b{position:relative;font-family:"Barlow Condensed",Inter,sans-serif;font-size:48px;font-weight:800;line-height:1;background:linear-gradient(95deg,#fff,#f4dc9f);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.pu-ring small{font-size:20px}
.pu-checklist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pu-checklist li{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--pu-line);border-radius:12px;background:rgba(255,255,255,.025);color:#8e92a6;font-size:12px;font-weight:700}
.pu-checklist li i{font-size:13px;color:#5a5e72}
.pu-checklist li.is-done{border-color:rgba(52,211,153,.28);background:rgba(52,211,153,.06);color:#d9f5e8}
.pu-checklist li.is-done i{color:#34d399}

/* ---- Action panel ------------------------------------------------------- */
html body .profile-page .profile-panel-action{overflow:hidden;border-color:rgba(232,199,126,.3)!important;background:radial-gradient(ellipse at 95% 50%,rgba(140,114,255,.24),transparent 50%),radial-gradient(ellipse at 0% 0%,rgba(232,199,126,.14),transparent 52%),var(--pu-glass)!important}
html body .profile-page .profile-panel-action .btn{min-height:44px;border-radius:12px!important;font-weight:800}
html body .profile-page .profile-panel-action .btn-primary{background:linear-gradient(120deg,#f4dc9f,#bd9145)!important;color:#17130b!important;border:0!important;box-shadow:0 9px 24px rgba(187,143,65,.25)!important}

/* ---- Badges / lists inside panels -------------------------------------- */
html body .profile-page .eco-badge-grid{gap:12px!important}
html body .profile-page .eco-badge{border-radius:16px!important;border:1px solid var(--pu-line)!important;background:linear-gradient(150deg,rgba(255,255,255,.045),rgba(255,255,255,.01))!important;transition:transform .25s,border-color .25s,box-shadow .25s}
html body .profile-page .eco-badge:hover{transform:translateY(-4px) scale(1.02);border-color:rgba(232,199,126,.4)!important;box-shadow:0 14px 34px rgba(0,0,0,.4),0 0 24px rgba(232,199,126,.08)}
html body .profile-page .btn.btn-ghost{border-radius:12px}

/* ---- Esports profile --------------------------------------------------- */
html body .esports-profile-card{border:1px solid rgba(232,199,126,.26)!important;border-radius:28px!important;box-shadow:0 34px 90px rgba(0,0,0,.55),0 0 70px rgba(140,114,255,.09)!important}
html body .esports-profile-identity h2{font-family:"Barlow Condensed",Inter,sans-serif!important;font-size:clamp(46px,6vw,82px)!important;font-weight:900!important;line-height:.92!important;text-transform:uppercase}
html body .esports-profile-chips span{border-radius:999px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.05)!important;backdrop-filter:blur(8px);font-weight:800}
html body .esports-profile-chips i{color:var(--pu-gold)}
html body .esports-profile-bottom>div{transition:background .25s}
html body .esports-profile-bottom>div:hover{background:rgba(232,199,126,.06)}
html body .esports-profile-bottom b{font-family:"Barlow Condensed",Inter,sans-serif;font-size:22px;letter-spacing:.3px}
html body .esports-profile-team{border-radius:18px!important;transition:transform .25s,box-shadow .25s}
html body .esports-profile-team:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(0,0,0,.45),0 0 30px rgba(232,199,126,.1)}
html body .esports-profile-links a{border-radius:11px!important;transition:transform .2s,border-color .2s}
html body .esports-profile-links a:hover{transform:translateY(-2px);border-color:rgba(232,199,126,.45)!important}
html body .esports-detail-head{align-items:center}
html body .esports-detail-head>i{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(232,199,126,.08);border:1px solid rgba(232,199,126,.2);color:var(--pu-gold)!important}
html body .esports-detail-stats>div,html body .esports-detail-info-grid>div{border-radius:14px!important;transition:transform .25s,border-color .25s}
html body .esports-detail-stats>div:hover,html body .esports-detail-info-grid>div:hover{transform:translateY(-3px);border-color:rgba(232,199,126,.3)!important}
html body .esports-profile-topline{font-family:"JetBrains Mono",monospace;letter-spacing:1.6px}

/* ---- Social zone -------------------------------------------------------- */
html body .kyth-social-zone{position:relative}
html body .kyth-social-head{align-items:end;padding:28px clamp(20px,3vw,34px)!important;border:1px solid var(--pu-line)!important;border-radius:24px!important;background:radial-gradient(ellipse at 100% 0%,rgba(140,114,255,.16),transparent 50%),var(--pu-glass)!important;box-shadow:0 22px 60px rgba(0,0,0,.32)!important}
html body .kyth-social-head h2{font-family:"Barlow Condensed",Inter,sans-serif!important;font-size:44px!important;font-weight:800!important;text-transform:uppercase;line-height:1!important;margin:7px 0 6px!important}
html body .kyth-social-head p{color:#9a9eb2!important;font-size:13px}
html body .kyth-social-actions .btn{min-height:44px;border-radius:12px!important;font-weight:800}
html body .kyth-social-actions .btn-primary{background:linear-gradient(120deg,#9b83ff,#6b52e6)!important;border:0!important;box-shadow:0 10px 26px rgba(120,92,240,.35)!important}
html body .kyth-social-grid{gap:14px!important}
html body .kyth-social-card,html body .kyth-visitors-card{border:1px solid var(--pu-line)!important;border-radius:20px!important;background:radial-gradient(300px circle at var(--mx,50%) var(--my,0%),rgba(var(--pu-rgb,140,114,255),.08),transparent 60%),var(--pu-glass)!important;box-shadow:0 18px 48px rgba(0,0,0,.3)!important;transition:border-color .25s,transform .25s}
html body .kyth-social-card:hover{border-color:rgba(232,199,126,.32)!important;transform:translateY(-3px)}
html body .kyth-social-card[open]{border-color:rgba(232,199,126,.4)!important}
html body .kyth-social-card summary{font-weight:800;cursor:pointer}
html body .kyth-social-card summary b{display:inline-grid;place-items:center;min-width:36px;height:30px;padding:0 10px;border-radius:99px;background:linear-gradient(120deg,rgba(232,199,126,.2),rgba(232,199,126,.06));border:1px solid rgba(232,199,126,.3);color:#f4dc9f;font-size:13px}
html body .kyth-social-card summary i{color:var(--pu-gold)}
html body .kyth-social-person{border-radius:14px!important;transition:transform .2s,background .2s,border-color .2s}
html body .kyth-social-person:hover{transform:translateX(4px);background:rgba(232,199,126,.06)!important}
html body .kyth-visitors-head h3{font-family:"Barlow Condensed",Inter,sans-serif!important;font-size:30px!important;text-transform:uppercase;font-weight:800}

/* ---- Reveal on scroll (JS adds .pu-rv) --------------------------------- */
.pu-rv{opacity:0;transform:translateY(26px)}
.pu-rv.pu-in{opacity:1;transform:none;animation:puRise .85s cubic-bezier(.2,.8,.2,1) var(--d,0ms) backwards}
@keyframes puRise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* ---- Toast -------------------------------------------------------------- */
.pu-toast{position:fixed;left:50%;bottom:34px;z-index:99999;display:flex;align-items:center;gap:10px;padding:13px 20px;border:1px solid rgba(232,199,126,.4);border-radius:14px;background:rgba(14,15,23,.94);color:#f4dc9f;font-size:13px;font-weight:700;box-shadow:0 20px 60px rgba(0,0,0,.6);backdrop-filter:blur(12px);transform:translate(-50%,24px);opacity:0;transition:.35s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.pu-toast.is-on{transform:translate(-50%,0);opacity:1}

@keyframes puDrift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(60px,-50px,0) scale(1.15)}}
@keyframes puFlow{to{background-position:200% 0}}
@keyframes puSweep{0%{background-position:-120% 0}100%{background-position:220% 0}}
@keyframes puPing{70%{box-shadow:0 0 0 9px rgba(52,211,153,0)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}}

/* ---- Responsive --------------------------------------------------------- */
@media(max-width:900px){
  .pu-strength-body{grid-template-columns:1fr;justify-items:center}.pu-checklist{width:100%}
  html body .profile-page:not(.esports-only-profile-page)>.profile-hero{border-radius:0 0 24px 24px!important;padding:34px 20px 26px!important}
  html body .profile-page .profile-panel,html body .profile-page .esports-detail-panel{padding:20px!important;border-radius:20px!important}
  html body .profile-page .profile-social-stat strong{font-size:36px!important}
}
@media(max-width:560px){
  .pu-checklist{grid-template-columns:1fr}
  html body .profile-page .profile-panel h3{font-size:27px!important}
  html body .kyth-social-head h2{font-size:34px!important}
  html body .profile-page .profile-social-stat{min-height:88px;padding:14px!important}
  .pu-hero-actions{width:100%}.pu-hero-actions .btn{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .pu-ambient i,html body .profile-page>.profile-hero:after,html body .profile-page .profile-level-track span:after,html body .profile-page .profile-status i{animation:none!important}
  .pu-rv{opacity:1!important;transform:none!important}
  html body .profile-page *{transition-duration:.01ms!important}
}

/* Live presence state */
[data-presence-user].is-online .profile-online-dot,
[data-presence-user].is-online .presence-indicator { background:#22c55e !important; box-shadow:0 0 0 4px rgba(34,197,94,.16),0 0 14px rgba(34,197,94,.65) !important; }
[data-presence-user].is-offline .profile-online-dot,
[data-presence-user].is-offline .presence-indicator { background:#737373 !important; box-shadow:0 0 0 3px rgba(115,115,115,.14) !important; }
.profile-status.is-online { color:#22c55e !important; }
.profile-status.is-offline { color:#9ca3af !important; }


/* Presence indicator: apply state directly to the avatar dot as well as its wrapper. */
.profile-avatar-wrap .profile-online-dot.is-online,
.esports-profile-avatar .profile-online-dot.is-online,
.presence-indicator.is-online {
  background: #22c55e !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 14px rgba(34,197,94,.7) !important;
}
.profile-avatar-wrap .profile-online-dot.is-offline,
.esports-profile-avatar .profile-online-dot.is-offline,
.presence-indicator.is-offline {
  background: #737373 !important;
  box-shadow: 0 0 0 3px rgba(115,115,115,.16) !important;
}
