/* ===== WHO IS ONLINE — Exodar purple hall ===== */
.ol2{
  --ol-bg:rgba(7,5,13,.88);
  --ol-panel:rgba(12,7,20,.88);
  --ol-line:rgba(159,92,246,.34);
  --ol-line-soft:rgba(159,92,246,.18);
  --ol-text:#efe8f7;
  --ol-muted:#b9adc8;
  --ol-purple:#9d55ff;
  --ol-gold:#d8b26a;
  color:var(--ol-text);
  container-type:inline-size;
}

.ol2 *{ box-sizing:border-box; }

.ol2 a{
  color:#fff;
  text-decoration:none;
}

.ol2 a:hover{
  color:#d9b8ff;
}

.ol2-hero{
  position:relative;
  min-height:190px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  margin:0 0 16px;
  padding:32px 22px;
  overflow:hidden;
  border:1px solid var(--ol-line);
  border-radius:7px;
  background:
    linear-gradient(180deg, rgba(10,6,18,.48), rgba(6,4,10,.80)),
    url("../images/redesign/ui/online-hero-v1.svg") center/cover no-repeat;
  box-shadow:0 18px 42px rgba(0,0,0,.38), inset 0 0 44px rgba(137,70,220,.14);
}

.ol2-hero::before,
.ol2-hero::after,
.ol2-toolbar::before,
.ol2-toolbar::after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border:1px solid rgba(184,126,255,.50);
  transform:rotate(45deg);
  pointer-events:none;
}

.ol2-hero::before,
.ol2-toolbar::before{ left:-6px; top:-6px; }

.ol2-hero::after,
.ol2-toolbar::after{ right:-6px; top:-6px; }

.ol2-hero__gem{
  position:absolute;
  top:18px;
  left:50%;
  width:28px;
  height:28px;
  transform:translateX(-50%) rotate(45deg);
  border:1px solid rgba(218,184,255,.70);
  background:radial-gradient(circle, rgba(218,184,255,.72), rgba(139,73,224,.26) 46%, rgba(10,6,18,.35));
  box-shadow:0 0 24px rgba(157,85,255,.45);
}

.ol2-hero h1{
  position:relative;
  margin:0;
  color:#f9f1ff;
  font-family:var(--font-title, Georgia, serif);
  font-size:3.55rem;
  line-height:1;
  letter-spacing:.10em;
  text-transform:uppercase;
  text-shadow:0 3px 4px rgba(0,0,0,.86), 0 0 26px rgba(190,124,255,.55);
}

.ol2-hero h1::before,
.ol2-hero h1::after{
  content:"";
  display:inline-block;
  width:92px;
  height:1px;
  margin:0 18px 16px;
  background:linear-gradient(90deg, transparent, rgba(190,124,255,.82), transparent);
}

.ol2-hero p{
  position:relative;
  margin:12px 0 0;
  color:#d7c8e8;
  font-size:1.04rem;
}

.ol2-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}

.ol2-stat{
  min-height:86px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  grid-template-rows:1fr 1fr;
  align-items:center;
  column-gap:12px;
  padding:13px 15px;
  border:1px solid var(--ol-line);
  border-radius:7px;
  background:
    linear-gradient(180deg, rgba(17,10,29,.84), rgba(7,5,12,.91)),
    url("../images/redesign/ui/si-tile-v1.svg") center/100% 100% no-repeat;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 12px 20px rgba(0,0,0,.22);
}

.ol2-stat__icon{
  grid-row:1 / span 2;
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(184,126,255,.34);
  border-radius:50%;
  background:radial-gradient(circle at 50% 35%, rgba(174,105,255,.36), transparent 62%), rgba(14,8,24,.78);
  box-shadow:0 0 18px rgba(150,83,255,.25);
}

.ol2-stat__icon::before{
  color:#ead9ff;
  font-size:24px;
  text-shadow:0 0 10px rgba(190,124,255,.64);
}

.ol2-stat__icon--players::before{ content:"♟"; }
.ol2-stat__icon--level::before{ content:"▮"; }
.ol2-stat__icon--vocation::before{ content:"⬟"; }
.ol2-stat__icon--countries::before{ content:"◉"; }

.ol2-stat small{
  color:#cdb9e3;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.ol2-stat strong{
  min-width:0;
  overflow:hidden;
  color:#fff;
  font-family:var(--font-title, Georgia, serif);
  font-size:1.42rem;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ol2-toolbar{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  margin:0 0 18px;
  padding:14px;
  border:1px solid var(--ol-line);
  border-radius:7px;
  background:linear-gradient(180deg, rgba(8,6,13,.92), rgba(5,4,9,.92));
  box-shadow:inset 0 0 24px rgba(137,70,220,.10);
}

.ol2-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ol2-filters button,
.ol2-sort select{
  min-height:40px;
  border:1px solid rgba(159,92,246,.26);
  border-radius:5px;
  background:linear-gradient(180deg, rgba(12,8,20,.94), rgba(5,4,10,.94));
  color:#ddd2eb;
  cursor:pointer;
  font-weight:800;
}

.ol2-filters button{
  min-width:92px;
  padding:0 14px;
}

.ol2-filters button.active,
.ol2-filters button:hover{
  color:#fff;
  background:
    linear-gradient(180deg, rgba(124,55,198,.96), rgba(57,24,94,.96)),
    url("../images/redesign/ui/button-purple.png") center/100% 100% no-repeat;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 0 16px rgba(127,67,215,.22);
}

.ol2-sort{
  display:flex;
  align-items:center;
  gap:10px;
  color:#c9bfd4;
}

.ol2-sort span{
  font-size:.86rem;
}

.ol2-sort select{
  min-width:190px;
  padding:0 34px 0 12px;
}

.ol2-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:0 0 18px;
}

.ol2-player{
  position:relative;
  min-height:218px;
  display:grid;
  grid-template-columns:146px minmax(0,1fr);
  align-items:center;
  gap:18px;
  padding:24px 26px;
  border-radius:8px;
  background:
    linear-gradient(180deg, rgba(8,6,13,.34), rgba(5,4,9,.66)),
    url("../images/redesign/ui/online-player-card-v1.svg") center/100% 100% no-repeat;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.32));
}

.ol2-status{
  position:absolute;
  left:28px;
  top:24px;
  min-width:70px;
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(76,218,111,.42);
  border-radius:5px;
  background:rgba(19,84,33,.52);
  color:#89ff9f;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 0 16px rgba(76,218,111,.18);
}

.ol2-outfit{
  width:116px;
  height:116px;
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:center;
  margin-top:24px;
  border:1px solid rgba(184,126,255,.22);
  border-radius:10px;
  background:radial-gradient(circle at 50% 50%, rgba(157,85,255,.24), transparent 63%), rgba(6,4,10,.36);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 0 20px rgba(157,85,255,.13);
}

.ol2-outfit img{
  width:94px;
  height:94px;
  object-fit:contain;
  image-rendering:pixelated;
  filter:drop-shadow(0 12px 10px rgba(0,0,0,.78));
}

.ol2-outfit span{
  color:#d9b8ff;
  font-family:var(--font-title, Georgia, serif);
  font-size:2.2rem;
}

.ol2-player__body{
  min-width:0;
}

.ol2-player__top{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 10px;
}

.ol2-country img{
  display:block;
  max-width:28px;
  height:auto;
  filter:drop-shadow(0 4px 5px rgba(0,0,0,.48));
}

.ol2-player h2{
  min-width:0;
  margin:0;
  color:#f7efff;
  font-family:var(--font-title, Georgia, serif);
  font-size:1.85rem;
  line-height:1.1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow:0 2px 3px rgba(0,0,0,.78), 0 0 16px rgba(157,85,255,.25);
}

.ol2-player h2 img{
  margin-left:6px;
  vertical-align:middle;
}

.ol2-player__meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  margin:0 0 18px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(159,92,246,.18);
}

.ol2-player__meta strong{
  color:#d7a9ff;
  font-family:var(--font-title, Georgia, serif);
  font-size:1.12rem;
}

.ol2-player__meta span{
  color:#efe8f7;
}

.ol2-player__meta span::before{
  content:"⬟";
  margin-right:8px;
  color:#c28aff;
  text-shadow:0 0 8px rgba(194,138,255,.42);
}

.ol2-player__now{
  display:flex;
  align-items:center;
  gap:9px;
  color:#cfc4dd;
}

.ol2-player__now i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#6dff89;
  box-shadow:0 0 12px rgba(109,255,137,.72);
}

.ol2-empty{
  position:relative;
  margin:0 0 18px;
  padding:24px;
  border:1px solid var(--ol-line);
  border-radius:7px;
  background:
    linear-gradient(180deg, rgba(7,5,13,.78), rgba(5,4,9,.90)),
    url("../images/redesign/ui/online-search-v1.svg") center/100% 100% no-repeat;
  box-shadow:inset 0 0 30px rgba(137,70,220,.12), 0 18px 34px rgba(0,0,0,.28);
  text-align:center;
}

.ol2-empty h2,
.ol2-empty h2{
  margin:0;
  color:#f8efff;
  font-family:var(--font-title, Georgia, serif);
  font-size:1.38rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ol2-empty p,
.ol2-empty p{
  margin:10px 0 16px;
  color:#c9bfd4;
}

[hidden]{
  display:none!important;
}

@container (max-width:980px){
  .ol2-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
  }

  .ol2-stat{
    grid-template-columns:38px minmax(0,1fr);
    min-height:74px;
    column-gap:8px;
    padding:10px 9px;
  }

  .ol2-stat__icon{
    width:36px;
    height:36px;
  }

  .ol2-stat__icon::before{
    font-size:18px;
  }

  .ol2-stat small{
    font-size:.56rem;
  }

  .ol2-stat strong{
    font-size:1.08rem;
  }

}

@container (max-width:720px){
  .ol2-hero h1{
    font-size:2.3rem;
    text-align:center;
  }

  .ol2-hero h1::before,
  .ol2-hero h1::after{
    display:none;
  }

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

  .ol2-toolbar{
    grid-template-columns:1fr;
  }

  .ol2-grid{
    grid-template-columns:1fr;
  }

  .ol2-sort{
    justify-content:space-between;
  }

  .ol2-sort select{
    min-width:0;
    flex:1;
  }

  .ol2-player{
    grid-template-columns:1fr;
    text-align:center;
  }

  .ol2-player__top,
  .ol2-player__meta,
  .ol2-player__now{
    justify-content:center;
  }
}

@container (max-width:460px){
  .ol2-stats{
    grid-template-columns:1fr;
  }
}
