
.hero-ranked-hub{margin:18px auto;width:min(1100px,94%);padding:20px;border:1px solid rgba(239,199,84,.35);border-radius:20px;background:radial-gradient(circle at 90% 0,rgba(239,199,84,.14),transparent 32%),linear-gradient(145deg,#171a21,#0a0c10);color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.hero-ranked-top{display:flex;justify-content:space-between;gap:16px;align-items:center}.hero-ranked-top small{color:#efd06d;font-weight:900;letter-spacing:.14em}.hero-ranked-top h2{margin:4px 0;font-size:28px}.hero-ranked-top p{margin:0;color:#9aa1ab}
.hero-ranked-start{min-width:170px;min-height:48px;border:1px solid rgba(239,199,84,.5);border-radius:12px;background:linear-gradient(135deg,#e0c05d,#8d651b);color:#171105;font-weight:1000;cursor:pointer}
.hero-ranked-profile{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;margin-top:18px;padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025)}
.hero-rank-emblem{width:78px;height:78px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#725328,#2c1c0d);font-size:36px}
.hero-rank-main small,.hero-rank-mmr small{display:block;color:#858c96;font-size:8px;font-weight:900}.hero-rank-main h3{margin:4px 0;font-size:22px}.hero-rank-stars{color:#efd06d;font-size:22px;letter-spacing:.08em}.hero-rank-stars.large{font-size:30px}
.hero-rank-progress{height:8px;margin-top:8px;border-radius:999px;background:#272c34;overflow:hidden}.hero-rank-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#9b721f,#efd06d)}.hero-rank-mmr{text-align:right}.hero-rank-mmr strong{display:block;margin-top:4px;color:#efd06d;font-size:24px}
.hero-ranked-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:12px}.hero-ranked-stats>div{padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.02);text-align:center}.hero-ranked-stats strong{display:block;font-size:18px}.hero-ranked-stats small{display:block;margin-top:4px;color:#858c96;font-size:8px;font-weight:900}
.hero-ranked-modal,.hero-ranked-result-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.84);backdrop-filter:blur(8px)}.hero-ranked-modal[hidden],.hero-ranked-result-modal[hidden]{display:none!important}
.hero-ranked-dialog,.hero-ranked-result-card{width:min(470px,94vw);padding:28px;border:1px solid rgba(239,199,84,.5);border-radius:22px;background:radial-gradient(circle at 50% 0,rgba(239,199,84,.18),transparent 38%),linear-gradient(145deg,#1b1d24,#0a0b0f);text-align:center;color:#fff;position:relative}
.hero-ranked-close{position:absolute;right:12px;top:12px;width:38px;height:38px;border-radius:10px;border:1px solid #414750;background:#22262e;color:#fff;font-size:24px}
.hero-ranked-spinner{width:100px;height:100px;margin:18px auto;display:grid;place-items:center;border-radius:50%;border:3px solid #3b3320;border-top-color:#efd06d;animation:heroRankSpin 1s linear infinite}.hero-ranked-spinner span{font-size:40px;animation:heroRankSpin 1s linear infinite reverse}
.hero-ranked-dialog>strong{display:block;font-size:32px}.hero-ranked-dialog p{color:#9da3ac}.hero-ranked-cancel{padding:10px 16px;border:1px solid rgba(232,89,89,.35);border-radius:9px;background:rgba(232,89,89,.08);color:#ff9a9a}
.hero-ranked-result-icon{width:94px;height:94px;display:grid;place-items:center;margin:auto;border-radius:50%;background:linear-gradient(145deg,#e4c45f,#8d651b);font-size:46px}.hero-ranked-result-card>small{display:block;margin-top:14px;color:#efd06d;font-weight:900;letter-spacing:.14em}.hero-ranked-result-card h2{margin:6px 0}
.hero-ranked-result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}.hero-ranked-result-grid>div{display:flex;justify-content:space-between;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(255,255,255,.022)}.hero-ranked-result-grid span{color:#8f969f;font-size:9px}
.hero-ranked-result-change{margin-top:14px;color:#82e3a3;font-size:25px;font-weight:900}.hero-ranked-result-card button{width:100%;min-height:44px;margin-top:16px;border:1px solid rgba(239,199,84,.46);border-radius:10px;background:linear-gradient(135deg,#e0c05d,#8d651b);color:#171105;font-weight:1000}
@keyframes heroRankSpin{to{transform:rotate(360deg)}}@media(max-width:768px){.hero-ranked-hub{width:calc(100% - 20px);padding:14px;margin:10px auto}.hero-ranked-top{align-items:stretch;flex-direction:column}.hero-ranked-start{width:100%}.hero-ranked-profile{grid-template-columns:auto 1fr}.hero-rank-mmr{grid-column:1/-1;text-align:left}.hero-ranked-stats{grid-template-columns:repeat(3,1fr)}}

/* HERO QUIZ V2.0.1 — Actual Ranked Battle */
.ranked-battle-hud{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
  padding:10px;
  border:1px solid rgba(239,199,84,.25);
  border-radius:12px;
  background:rgba(239,199,84,.045)
}
.ranked-battle-hud[hidden],.ranked-combo-bar[hidden]{display:none!important}
.ranked-player-card{min-width:0}
.ranked-player-card.enemy{text-align:right}
.ranked-player-card small{display:block;color:#858c96;font-size:7px;font-weight:900}
.ranked-player-card strong{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ranked-player-card span{display:block;margin-top:3px;color:#efd06d;font-size:10px}
.ranked-versus{text-align:center}
.ranked-versus b{display:block;color:#a9d2ff;font-size:9px}
.ranked-versus span{display:block;margin-top:2px;color:#efd06d;font-weight:1000}
.ranked-combo-bar{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  padding:7px 10px;
  border-radius:9px;
  background:rgba(79,146,239,.08);
  color:#9cc8ff;
  font-size:9px;
  font-weight:900
}
.hero-ranked-opponent-result{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:12px;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.025)
}
.hero-ranked-opponent-result span{font-weight:900}
.hero-ranked-opponent-result b{color:#efd06d}
@media(max-width:768px){
  .ranked-battle-hud{grid-template-columns:1fr auto 1fr;padding:8px;gap:6px}
  .ranked-player-card strong{font-size:11px}
}

/* HERO QUIZ V2.0.2 — Question Database */
.hero-question-db-badge{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid rgba(95,161,255,.25);
  border-radius:11px;
  background:rgba(95,161,255,.055);
  color:#a8ceff
}
.hero-question-db-badge span{
  font-size:8px;
  font-weight:1000;
  letter-spacing:.12em
}
.hero-question-db-badge b{
  color:#fff;
  font-size:18px
}
.hero-question-db-badge small{
  color:#8f969f
}


/* HERO QUIZ V2.0.3 — Season Progress & Match History */
.hero-ranked-season,
.hero-ranked-history-section{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0,rgba(246,199,68,.06),transparent 38%),
    rgba(255,255,255,.018);
}

.hero-season-head,
.hero-history-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.hero-season-head small,
.hero-history-head small{
  display:block;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}

.hero-season-head h3,
.hero-history-head h3{
  margin:4px 0 0;
  color:#fff;
  font-family:"Sora",serif;
  font-size:18px;
}

#heroSeasonRewardStatus{
  padding:6px 9px;
  border:1px solid rgba(246,199,68,.18);
  border-radius:999px;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
}

.hero-season-progress{
  height:9px;
  margin-top:14px;
  overflow:hidden;
  border-radius:999px;
  background:#080808;
}

.hero-season-progress i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#966300,#f6c744);
  box-shadow:0 0 14px rgba(246,199,68,.35);
  transition:width .3s ease;
}

.hero-season-rewards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.hero-season-rewards>div{
  padding:10px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:10px;
  background:#090909;
  opacity:.45;
  transition:.2s ease;
}

.hero-season-rewards>div.is-unlocked{
  opacity:1;
  border-color:rgba(246,199,68,.26);
  background:rgba(246,199,68,.055);
}

.hero-season-rewards b,
.hero-season-rewards span{
  display:block;
}

.hero-season-rewards b{
  color:#f6c744;
  font-size:8px;
}

.hero-season-rewards span{
  margin-top:4px;
  color:#aaa;
  font-size:8px;
}

#heroRankedHistoryToggle{
  min-height:30px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:8px;
  background:#090909;
  color:#888;
  font-size:8px;
  cursor:pointer;
}

#heroRankedHistoryToggle:hover{
  border-color:rgba(246,199,68,.28);
  color:#f6c744;
}

.hero-ranked-history-list{
  display:grid;
  gap:8px;
  margin-top:13px;
}

.hero-history-empty{
  padding:24px 12px;
  color:#666;
  font-size:9px;
  text-align:center;
}

.hero-history-item{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:10px;
  background:#090909;
}

.hero-history-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:9px;
  background:rgba(255,255,255,.04);
  font-size:14px;
}

.hero-history-item.win{
  border-left:2px solid #43d982;
}

.hero-history-item.loss{
  border-left:2px solid #ff6464;
}

.hero-history-main{
  min-width:0;
}

.hero-history-main strong{
  display:block;
  color:#ddd;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hero-history-main span{
  display:block;
  margin-top:3px;
  color:#696969;
  font-size:7px;
}

.hero-history-score{
  text-align:right;
}

.hero-history-score b,
.hero-history-score small{
  display:block;
}

.hero-history-score b{
  color:#eee;
  font-size:10px;
}

.hero-history-score small{
  margin-top:3px;
  color:#777;
  font-size:7px;
}

@media(max-width:620px){
  .hero-season-rewards{
    grid-template-columns:1fr;
  }

  .hero-history-item{
    grid-template-columns:30px minmax(0,1fr);
  }

  .hero-history-score{
    grid-column:2;
    display:flex;
    gap:8px;
    align-items:center;
    text-align:left;
  }
}


/* HERO QUIZ V2.0.4 — Daily Missions & Achievements */
.hero-daily-section,
.hero-achievement-section{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0,rgba(246,199,68,.055),transparent 38%),
    rgba(255,255,255,.018);
}

.hero-daily-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.hero-daily-head small{
  display:block;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}

.hero-daily-head h3{
  margin:4px 0 0;
  color:#fff;
  font-family:"Sora",serif;
  font-size:18px;
}

.hero-token-balance{
  min-width:86px;
  padding:7px 9px;
  border:1px solid rgba(246,199,68,.18);
  border-radius:10px;
  background:#090909;
  text-align:right;
}

.hero-token-balance span,
.hero-token-balance strong{
  display:block;
}

.hero-token-balance span{
  color:#777;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
}

.hero-token-balance strong{
  margin-top:3px;
  color:#f6c744;
  font-size:16px;
}

.hero-daily-list{
  display:grid;
  gap:9px;
  margin-top:14px;
}

.hero-daily-item{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:11px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  background:#090909;
}

.hero-daily-item.is-complete{
  border-color:rgba(66,217,124,.22);
  background:rgba(66,217,124,.035);
}

.hero-daily-icon{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:rgba(246,199,68,.07);
  font-size:15px;
}

.hero-daily-main{
  min-width:0;
}

.hero-daily-main strong,
.hero-daily-main span{
  display:block;
}

.hero-daily-main strong{
  color:#ddd;
  font-size:9px;
}

.hero-daily-main span{
  margin-top:4px;
  color:#727272;
  font-size:7px;
}

.hero-daily-progress{
  height:6px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#050505;
}

.hero-daily-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#956100,#f6c744);
}

.hero-daily-claim{
  min-height:30px;
  padding:5px 8px;
  border:1px solid rgba(246,199,68,.2);
  border-radius:8px;
  background:rgba(246,199,68,.07);
  color:#f6c744;
  font-size:7px;
  font-weight:900;
  cursor:pointer;
}

.hero-daily-claim:disabled{
  border-color:rgba(255,255,255,.06);
  background:#070707;
  color:#555;
  cursor:not-allowed;
}

.hero-daily-reset{
  margin-top:11px;
  color:#666;
  font-size:8px;
  text-align:right;
}

.hero-daily-reset strong{
  color:#aaa;
}

#heroAchievementCount{
  padding:6px 9px;
  border:1px solid rgba(246,199,68,.18);
  border-radius:999px;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
}

.hero-achievement-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}

.hero-achievement-card{
  min-width:0;
  padding:13px 10px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  background:#090909;
  text-align:center;
  opacity:.38;
  filter:grayscale(1);
  transition:.2s ease;
}

.hero-achievement-card.is-unlocked{
  border-color:rgba(246,199,68,.24);
  background:rgba(246,199,68,.045);
  opacity:1;
  filter:none;
}

.hero-achievement-card b,
.hero-achievement-card strong,
.hero-achievement-card span{
  display:block;
}

.hero-achievement-card b{
  font-size:24px;
}

.hero-achievement-card strong{
  margin-top:7px;
  color:#ddd;
  font-size:8px;
}

.hero-achievement-card span{
  margin-top:4px;
  color:#6f6f6f;
  font-size:7px;
  line-height:1.4;
}

@media(max-width:620px){
  .hero-daily-item{
    grid-template-columns:34px minmax(0,1fr);
  }

  .hero-daily-claim{
    grid-column:2;
    justify-self:start;
  }

  .hero-achievement-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* HERO QUIZ V2.0.5 — Quiz Token Shop */
.hero-shop-section{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0,rgba(246,199,68,.06),transparent 38%),
    rgba(255,255,255,.018);
}

.hero-shop-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.hero-shop-head small{
  display:block;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}

.hero-shop-head h3{
  margin:4px 0 0;
  color:#fff;
  font-family:"Sora",serif;
  font-size:18px;
}

.hero-shop-balance{
  min-width:88px;
  padding:7px 9px;
  border:1px solid rgba(246,199,68,.18);
  border-radius:10px;
  background:#090909;
  text-align:right;
}

.hero-shop-balance span,
.hero-shop-balance strong{
  display:block;
}

.hero-shop-balance span{
  color:#777;
  font-size:7px;
  font-weight:900;
  letter-spacing:.08em;
}

.hero-shop-balance strong{
  margin-top:3px;
  color:#f6c744;
  font-size:16px;
}

.hero-shop-tabs{
  display:flex;
  gap:7px;
  margin-top:14px;
}

.hero-shop-tabs button{
  min-height:31px;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:8px;
  background:#090909;
  color:#737373;
  font-size:8px;
  font-weight:900;
  cursor:pointer;
}

.hero-shop-tabs button.active{
  border-color:rgba(246,199,68,.25);
  background:rgba(246,199,68,.07);
  color:#f6c744;
}

.hero-shop-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:13px;
}

.hero-shop-card{
  display:flex;
  min-width:0;
  min-height:155px;
  flex-direction:column;
  padding:13px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  background:#090909;
}

.hero-shop-card.is-owned{
  border-color:rgba(66,217,124,.22);
  background:rgba(66,217,124,.035);
}

.hero-shop-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:10px;
  background:rgba(246,199,68,.07);
  font-size:18px;
}

.hero-shop-card h4{
  margin:9px 0 0;
  color:#ddd;
  font-size:9px;
}

.hero-shop-card p{
  margin:5px 0 0;
  color:#707070;
  font-size:7px;
  line-height:1.45;
}

.hero-shop-card footer{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  margin-top:auto;
  padding-top:12px;
}

.hero-shop-price{
  color:#f6c744;
  font-size:8px;
  font-weight:900;
}

.hero-shop-buy{
  min-height:29px;
  padding:5px 8px;
  border:1px solid rgba(246,199,68,.2);
  border-radius:8px;
  background:rgba(246,199,68,.07);
  color:#f6c744;
  font-size:7px;
  font-weight:900;
  cursor:pointer;
}

.hero-shop-buy:disabled{
  border-color:rgba(255,255,255,.06);
  background:#070707;
  color:#555;
  cursor:not-allowed;
}

.hero-shop-empty{
  grid-column:1/-1;
  padding:25px 12px;
  color:#666;
  font-size:9px;
  text-align:center;
}

@media(max-width:720px){
  .hero-shop-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:460px){
  .hero-shop-grid{
    grid-template-columns:1fr;
  }
}


/* HERO QUIZ V2.0.6 — Active Boost Effects */
.hero-active-boosts{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0,rgba(246,199,68,.06),transparent 38%),
    rgba(255,255,255,.018);
}

.hero-active-boosts-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.hero-active-boosts-head small{
  display:block;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}

.hero-active-boosts-head h3{
  margin:4px 0 0;
  color:#fff;
  font-family:"Sora",serif;
  font-size:18px;
}

#heroActiveBoostCount{
  padding:6px 9px;
  border:1px solid rgba(246,199,68,.18);
  border-radius:999px;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
}

.hero-active-boost-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}

.hero-active-boost-card{
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:11px;
  background:#090909;
}

.hero-active-boost-card.is-active{
  border-color:rgba(246,199,68,.24);
  background:rgba(246,199,68,.045);
}

.hero-active-boost-card b,
.hero-active-boost-card strong,
.hero-active-boost-card span{
  display:block;
}

.hero-active-boost-card b{
  font-size:19px;
}

.hero-active-boost-card strong{
  margin-top:6px;
  color:#ddd;
  font-size:8px;
}

.hero-active-boost-card span{
  margin-top:4px;
  color:#6f6f6f;
  font-size:7px;
}

.hero-boost-toast{
  position:fixed;
  left:50%;
  top:22%;
  z-index:9999;
  transform:translate(-50%,-10px);
  min-width:220px;
  max-width:min(420px,calc(100vw - 30px));
  padding:14px 18px;
  border:1px solid rgba(246,199,68,.3);
  border-radius:13px;
  background:rgba(10,10,10,.96);
  box-shadow:0 25px 70px rgba(0,0,0,.55);
  color:#fff;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
}

.hero-boost-toast.is-show{
  opacity:1;
  transform:translate(-50%,0);
}

.hero-boost-toast strong,
.hero-boost-toast span{
  display:block;
}

.hero-boost-toast strong{
  color:#f6c744;
  font-size:11px;
}

.hero-boost-toast span{
  margin-top:5px;
  color:#aaa;
  font-size:8px;
}

@media(max-width:620px){
  .hero-active-boost-list{
    grid-template-columns:1fr;
  }
}


body[data-hero-quiz-cosmetic="frame_gold"] .hero-ranked-card,
body[data-hero-quiz-cosmetic="frame_gold"] .hero-rank-profile{
  box-shadow:0 0 0 1px rgba(246,199,68,.38),0 0 24px rgba(246,199,68,.13);
}

body[data-hero-quiz-cosmetic="frame_fire"] .hero-ranked-card,
body[data-hero-quiz-cosmetic="frame_fire"] .hero-rank-profile{
  box-shadow:0 0 0 1px rgba(255,103,48,.4),0 0 28px rgba(255,90,30,.18);
}

body[data-hero-quiz-cosmetic="badge_legend"] .hero-ranked-player-name::after,
body[data-hero-quiz-cosmetic="badge_legend"] #heroRankPlayerName::after{
  content:" 🐉";
}


/* HERO QUIZ V2.0.7 — Ranked Leaderboard & Player Profile */
.hero-ranked-global-section{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:16px;
  background:
    radial-gradient(circle at 100% 0,rgba(246,199,68,.06),transparent 38%),
    rgba(255,255,255,.018);
}

.hero-ranked-global-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.hero-ranked-global-head small{
  display:block;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
}

.hero-ranked-global-head h3{
  margin:4px 0 0;
  color:#fff;
  font-family:"Sora",serif;
  font-size:18px;
}

#heroLeaderboardRefresh{
  min-height:31px;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:8px;
  background:#090909;
  color:#888;
  font-size:8px;
  cursor:pointer;
}

#heroLeaderboardRefresh:hover{
  border-color:rgba(246,199,68,.25);
  color:#f6c744;
}

.hero-ranked-player-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  margin-top:14px;
  padding:13px;
  border:1px solid rgba(246,199,68,.2);
  border-radius:12px;
  background:rgba(246,199,68,.045);
  cursor:pointer;
}

.hero-ranked-player-avatar{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid rgba(246,199,68,.3);
  border-radius:12px;
  background:linear-gradient(145deg,#f6c744,#875700);
  color:#111;
  font-size:17px;
  font-weight:900;
}

.hero-ranked-player-info,
.hero-ranked-player-score{
  min-width:0;
}

.hero-ranked-player-info strong,
.hero-ranked-player-info span,
.hero-ranked-player-score b,
.hero-ranked-player-score small{
  display:block;
}

.hero-ranked-player-info strong{
  color:#fff;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hero-ranked-player-info span{
  margin-top:4px;
  color:#888;
  font-size:8px;
}

.hero-ranked-player-score{
  text-align:right;
}

.hero-ranked-player-score b{
  color:#f6c744;
  font-size:10px;
}

.hero-ranked-player-score small{
  margin-top:4px;
  color:#777;
  font-size:8px;
}

.hero-ranked-leaderboard-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.hero-leaderboard-row{
  display:grid;
  grid-template-columns:32px 36px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:10px;
  background:#090909;
}

.hero-leaderboard-row.is-me{
  border-color:rgba(246,199,68,.23);
  background:rgba(246,199,68,.035);
}

.hero-leaderboard-position{
  color:#777;
  font-size:9px;
  font-weight:900;
  text-align:center;
}

.hero-leaderboard-row:nth-child(1) .hero-leaderboard-position{color:#ffd95d}
.hero-leaderboard-row:nth-child(2) .hero-leaderboard-position{color:#d9d9d9}
.hero-leaderboard-row:nth-child(3) .hero-leaderboard-position{color:#d49a65}

.hero-leaderboard-avatar{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:rgba(246,199,68,.08);
  color:#f6c744;
  font-weight:900;
}

.hero-leaderboard-main{
  min-width:0;
}

.hero-leaderboard-main strong,
.hero-leaderboard-main span{
  display:block;
}

.hero-leaderboard-main strong{
  color:#ddd;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hero-leaderboard-main span{
  margin-top:3px;
  color:#696969;
  font-size:7px;
}

.hero-leaderboard-score{
  text-align:right;
}

.hero-leaderboard-score b,
.hero-leaderboard-score small{
  display:block;
}

.hero-leaderboard-score b{
  color:#eee;
  font-size:9px;
}

.hero-leaderboard-score small{
  margin-top:3px;
  color:#6f6f6f;
  font-size:7px;
}

.hero-profile-modal{
  position:fixed;
  inset:0;
  z-index:10001;
  display:grid;
  place-items:center;
  padding:18px;
}

.hero-profile-modal[hidden]{display:none!important}

.hero-profile-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(8px);
}

.hero-profile-dialog{
  position:relative;
  z-index:2;
  width:min(420px,100%);
  padding:20px;
  border:1px solid rgba(246,199,68,.24);
  border-radius:17px;
  background:linear-gradient(155deg,#15140f,#080808 70%);
  box-shadow:0 30px 100px rgba(0,0,0,.7);
}

.hero-profile-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.hero-profile-head small{
  display:block;
  color:#f6c744;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
}

.hero-profile-head h3{
  margin:4px 0 0;
  color:#fff;
  font-size:17px;
}

.hero-profile-head button{
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:#090909;
  color:#aaa;
  font-size:18px;
  cursor:pointer;
}

.hero-profile-dialog label{
  display:grid;
  gap:7px;
  margin-top:18px;
  color:#888;
  font-size:8px;
}

.hero-profile-dialog input{
  min-height:42px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  background:#080808;
  color:#fff;
  outline:none;
}

.hero-profile-dialog input:focus{
  border-color:rgba(246,199,68,.35);
}

.hero-profile-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px;
}

.hero-profile-actions button{
  min-height:35px;
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  background:#090909;
  color:#999;
  font-size:8px;
  font-weight:900;
  cursor:pointer;
}

#heroProfileSave{
  border-color:rgba(246,199,68,.28);
  background:rgba(246,199,68,.08);
  color:#f6c744;
}

@media(max-width:620px){
  .hero-leaderboard-row{
    grid-template-columns:28px 34px minmax(0,1fr);
  }

  .hero-leaderboard-score{
    grid-column:3;
    display:flex;
    gap:7px;
    text-align:left;
  }
}


/* HERO QUIZ V2.0.8 — Supabase Global Leaderboard */
.hero-global-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.hero-global-status{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:999px;
  color:#777;
  font-size:8px;
  font-weight:900;
}

.hero-global-status i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#777;
}

.hero-global-status.is-online{
  color:#69dd94;
  border-color:rgba(66,217,124,.2);
}

.hero-global-status.is-online i{
  background:#42d97c;
  box-shadow:0 0 10px rgba(66,217,124,.55);
}

.hero-global-status.is-syncing{
  color:#f6c744;
  border-color:rgba(246,199,68,.2);
}

.hero-global-status.is-syncing i{
  background:#f6c744;
  box-shadow:0 0 10px rgba(246,199,68,.45);
}

.hero-leaderboard-row.is-global{
  box-shadow:inset 0 0 0 1px rgba(90,151,255,.04);
}

.hero-leaderboard-source{
  margin-left:5px;
  color:#6fa4ff;
  font-size:6px;
  font-weight:900;
}
.hero-leaderboard-pro{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:2px 6px;
  border:1px solid rgba(250,204,21,.42);
  border-radius:999px;
  color:#fde68a;
  background:rgba(161,98,7,.16);
  font-size:9px;
  font-weight:900;
  letter-spacing:.04em;
  vertical-align:middle;
}

@media(max-width:620px){
  .hero-ranked-global-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .hero-global-actions{
    width:100%;
    justify-content:space-between;
  }
}


/* HERO QUIZ V2.1.0 — Custom Quiz Modes */
.hero-mode-builder{
  width:100%;
  margin:16px 0;
  padding:14px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:14px;
  background:
    radial-gradient(circle at 100% 0,rgba(246,199,68,.055),transparent 40%),
    rgba(255,255,255,.018);
  text-align:left;
}

.hero-mode-builder-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.hero-mode-builder-head small,
.hero-mode-builder-head strong{
  display:block;
}

.hero-mode-builder-head small{
  color:#f6c744;
  font-size:7px;
  font-weight:900;
  letter-spacing:.12em;
}

.hero-mode-builder-head strong{
  margin-top:4px;
  color:#fff;
  font-size:11px;
}

#heroModeQuestionInfo{
  padding:5px 8px;
  border:1px solid rgba(246,199,68,.18);
  border-radius:999px;
  color:#f6c744;
  font-size:7px;
  font-weight:900;
}

.hero-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:13px;
}

.hero-mode-grid label{
  display:grid;
  gap:6px;
  color:#767676;
  font-size:7px;
  font-weight:800;
}

.hero-mode-grid select{
  width:100%;
  min-height:38px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:9px;
  background:#080808;
  color:#ddd;
  font-size:8px;
  outline:none;
}

.hero-mode-grid select:focus{
  border-color:rgba(246,199,68,.3);
}

.hero-mode-availability{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.05);
  color:#6f6f6f;
  font-size:8px;
}

.hero-mode-availability strong{
  color:#f6c744;
}

.hero-mode-builder.is-limited{
  border-color:rgba(255,99,99,.24);
}

.hero-mode-builder.is-limited #heroModeAvailableCount{
  color:#ff7676;
}

@media(max-width:560px){
  .hero-mode-grid{
    grid-template-columns:1fr;
  }
}


/* HERO QUIZ V2.1.1 — Ranked Start Click Fix */
#heroRankedStartBtn{
  position:relative;
  z-index:5;
  pointer-events:auto!important;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
}

#heroRankedStartBtn[aria-busy="true"]{
  opacity:.86;
}

#heroRankedStartBtn:disabled{
  pointer-events:none;
  cursor:wait;
}

#heroRankedQueueModal{
  z-index:10020;
}


/* HERO QUIZ V2.1.2 — Ranked Matchmaking Polish */
.hero-ranked-dialog{
  width:min(560px,calc(100vw - 28px));
}

.hero-ranked-matchup{
  display:grid;
  grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:18px;
}

.hero-ranked-match-player{
  min-width:0;
  padding:14px 10px;
  border:1px solid rgba(246,199,68,.16);
  border-radius:13px;
  background:rgba(246,199,68,.045);
  text-align:center;
  transition:.25s ease;
}

.hero-ranked-match-player.opponent{
  border-color:rgba(255,255,255,.07);
  background:#090909;
  opacity:.58;
}

.hero-ranked-match-player.opponent.is-found{
  border-color:rgba(246,199,68,.22);
  background:rgba(246,199,68,.045);
  opacity:1;
  transform:translateY(-2px);
}

.hero-ranked-match-avatar{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin:0 auto;
  border:1px solid rgba(246,199,68,.25);
  border-radius:14px;
  background:linear-gradient(145deg,#f6c744,#875700);
  color:#111;
  font-size:18px;
  font-weight:900;
}

.hero-ranked-match-player.opponent .hero-ranked-match-avatar{
  background:#111;
  color:#777;
}

.hero-ranked-match-player.opponent.is-found .hero-ranked-match-avatar{
  background:linear-gradient(145deg,#f6c744,#875700);
  color:#111;
}

.hero-ranked-match-player strong,
.hero-ranked-match-player span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hero-ranked-match-player strong{
  margin-top:8px;
  color:#fff;
  font-size:10px;
}

.hero-ranked-match-player span{
  margin-top:4px;
  color:#777;
  font-size:8px;
}

.hero-ranked-versus{
  display:grid;
  justify-items:center;
  gap:7px;
}

.hero-ranked-versus .hero-ranked-spinner{
  margin:0;
}

.hero-ranked-versus>strong{
  color:#f6c744;
  font-size:13px;
}

.hero-ranked-versus>small{
  min-height:24px;
  color:#747474;
  font-size:7px;
  line-height:1.45;
  text-align:center;
}

.hero-ranked-search-progress{
  height:7px;
  margin-top:17px;
  overflow:hidden;
  border-radius:999px;
  background:#070707;
}

.hero-ranked-search-progress i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#805300,#f6c744);
  box-shadow:0 0 14px rgba(246,199,68,.35);
  transition:width .28s ease;
}

#heroRankedQueueHint{
  margin-top:11px;
}

.hero-ranked-dialog.is-opponent-found{
  box-shadow:
    0 30px 100px rgba(0,0,0,.72),
    0 0 36px rgba(246,199,68,.12);
}

@media(max-width:560px){
  .hero-ranked-matchup{
    grid-template-columns:1fr;
  }

  .hero-ranked-versus{
    order:2;
  }

  .hero-ranked-match-player.opponent{
    order:3;
  }
}
