:root{
  --aug-bg:#07050d;
  --aug-panel:rgba(10,8,16,.88);
  --aug-panel-2:rgba(17,12,27,.92);
  --aug-ink:#f2edff;
  --aug-muted:#b9b1d6;
  --aug-purple:#8f5cff;
  --aug-purple-2:#4b1ca8;
  --aug-purple-3:#2b124f;
  --aug-stroke:rgba(185,154,255,.16);
  --aug-glow:rgba(143,92,255,.35);
}

.hiscore-page{
  min-height:calc(100vh - 70px);
  padding:70px 18px 52px;
  background:
    linear-gradient(180deg, rgba(6,4,10,.58), rgba(6,4,10,.94)),
    url('/templates/augment/img/body-background.webp') center top / cover fixed no-repeat;
}

/* HERO */
.hiscore-hero{
  max-width:1260px;
  margin:0 auto;
  padding:0 0 32px;
  text-align:center;
}

.hiscore-title{
  font-family:'Cinzel',serif;
  text-transform:uppercase;
  font-size:clamp(48px,6vw,78px);
  letter-spacing:.15em;
  line-height:1;
  margin:0;
  background:linear-gradient(180deg,#fff 0%,#d8cbff 45%,#7f50ee 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 14px 34px rgba(0,0,0,.82);
}

.hiscore-subtitle{
  margin:18px auto 0;
  max-width:720px;
  color:#d4ccef;
  font-size:15px;
  line-height:1.7;
  text-shadow:0 2px 0 rgba(0,0,0,.55);
}

.hiscore-divider{
  height:1px;
  max-width:760px;
  margin:24px auto 0;
  position:relative;
  background:linear-gradient(90deg,transparent,rgba(165,120,255,.75),transparent);
}

.hiscore-divider:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:14px;
  height:14px;
  transform:translate(-50%,-50%) rotate(45deg);
  background:#0b0712;
  border:1px solid rgba(175,140,255,.50);
  box-shadow:0 0 22px rgba(143,92,255,.75);
}

/* FILTER BAR */
.hiscore-filter-shell{
  max-width:1260px;
  margin:0 auto 22px;
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(143,92,255,.13), transparent 72%),
    rgba(8,7,13,.82);
  border:1px solid var(--aug-stroke);
  box-shadow:0 20px 55px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.04);
}

.hiscore-filter-top{
  padding:22px 22px 18px;
  border-bottom:1px solid rgba(185,154,255,.12);
}

.hiscore-filter-bottom{
  padding:16px 22px;
}

.hiscore-modes,
.hiscore-xprates{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

.hiscore-modes a,
.xp-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 20px;
  border-radius:7px;
  text-decoration:none;
  color:#f5f1ff;
  font-weight:900;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 35%),
    linear-gradient(180deg,rgba(38,30,56,.92),rgba(20,15,31,.95));
  border:1px solid rgba(255,255,255,.075);
  box-shadow:0 10px 26px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08);
  transition:.15s ease;
}

.hiscore-modes a:hover,
.xp-chip:hover{
  transform:translateY(-1px);
  border-color:rgba(185,154,255,.40);
  box-shadow:0 0 18px rgba(143,92,255,.18), inset 0 1px 0 rgba(255,255,255,.10);
}

.hiscore-modes a.active,
.xp-chip.is-active{
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(180deg,#8f5cff,#5422bd 70%,#35106f)!important;
  border-color:rgba(220,205,255,.35)!important;
  box-shadow:0 0 26px rgba(143,92,255,.42), inset 0 1px 0 rgba(255,255,255,.20)!important;
  color:#fff!important;
}

/* MAIN LAYOUT */
.hiscore-layout{
  max-width:1260px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:20px;
}

.hiscore-main,
.hiscore-side-card{
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(143,92,255,.08), transparent 75%),
    rgba(8,7,13,.88);
  border:1px solid rgba(185,154,255,.15);
  box-shadow:0 20px 58px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.04);
}

.hiscore-main{
  padding:18px;
  min-height:520px;
}

.table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.table-kicker{
  font-family:'Cinzel',serif;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:900;
  font-size:13px;
  color:#cdbfff;
}

.table-search-fake{
  min-width:230px;
  padding:10px 12px;
  color:#847b9d;
  background:rgba(20,15,30,.82);
  border:1px solid rgba(185,154,255,.13);
  border-radius:6px;
  font-size:13px;
}

.table-scroll{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

table.dataTable{
  width:100%!important;
  min-width:760px;
  background:transparent;
  border-radius:8px;
  overflow:hidden;
}

table.dataTable thead{
  background:linear-gradient(180deg,rgba(55,38,82,.92),rgba(25,18,38,.95));
}

table.dataTable thead th{
  padding:14px 16px;
  color:#efeaff;
  font-family:'Cinzel',serif;
  font-size:13px;
  letter-spacing:.10em;
  text-transform:uppercase;
  border-bottom:1px solid rgba(160,120,255,.16);
}

table.dataTable tbody td{
  padding:13px 16px;
  color:#e8e2ff;
  border-bottom:1px solid rgba(255,255,255,.035);
}

table.dataTable tbody tr{
  background:rgba(255,255,255,.012);
}

table.dataTable tbody tr:hover{
  background:rgba(143,92,255,.13);
}

/* SIDE */
.hiscore-side-card{
  padding:18px;
  margin-bottom:18px;
}

.hiscore-side-card h3{
  margin:0 0 14px;
  font-family:'Cinzel',serif;
  color:#f4efff;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:15px;
  font-weight:900;
}

.skills-box ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:540px;
  overflow:auto;
  padding-right:4px;
}

.skills-box a{
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 12px;
  color:#e9e3ff;
  text-decoration:none;
  background:rgba(35,27,50,.72);
  border:1px solid rgba(255,255,255,.045);
  border-radius:7px;
  transition:.14s ease;
}

.skills-box a:hover{
  transform:translateX(3px);
  background:rgba(55,42,82,.82);
  border-color:rgba(160,120,255,.25);
}

.skills-box a.active-category{
  background:linear-gradient(180deg,#8f5cff,#5628c8);
  color:#fff;
  box-shadow:0 0 18px rgba(143,92,255,.28);
}

.skills-box img{
  width:22px;
  height:22px;
  filter:drop-shadow(0 0 8px rgba(143,92,255,.45));
}

.compare-box input{
  width:100%;
  margin-bottom:10px;
  padding:12px 13px;
  background:rgba(25,19,36,.88);
  border:1px solid rgba(160,120,255,.18);
  color:#fff;
  border-radius:7px;
}

.compare-box input:focus{
  outline:none;
  border-color:rgba(190,160,255,.65);
  box-shadow:0 0 0 3px rgba(143,92,255,.16);
}

.compare-box button{
  width:100%;
  padding:12px 14px;
  border:0;
  border-radius:7px;
  color:#fff;
  background:linear-gradient(180deg,#8f5cff,#4b1ca8);
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  box-shadow:0 12px 28px rgba(143,92,255,.28);
}

/* DATATABLES */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info{
  color:#c8c0e8!important;
}

.dataTables_wrapper .dataTables_length select{
  background:#151020!important;
  color:#fff!important;
  border:1px solid rgba(160,120,255,.22)!important;
  border-radius:6px!important;
  padding:6px 10px!important;
}

.dataTables_wrapper .dataTables_paginate{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button{
  background:#171121!important;
  color:#c8c0e8!important;
  border:1px solid rgba(160,120,255,.14)!important;
  border-radius:6px!important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current{
  background:linear-gradient(180deg,#8f5cff,#4b1ca8)!important;
  color:#fff!important;
}

/* TABLET */
@media(max-width:1024px){
  .hiscore-layout{
    grid-template-columns:1fr;
  }

  .table-toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .table-search-fake{
    min-width:0;
  }

  .skills-box ul{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    max-height:none;
    overflow:visible;
    padding-right:0;
  }
}

/* MOBILE */
@media(max-width:640px){
  .hiscore-page{
    padding:42px 10px 36px;
    background-attachment:scroll;
    background-position:center top;
  }

  .hiscore-hero{
    padding:0 0 24px;
  }

  .hiscore-title{
    font-size:36px;
    letter-spacing:.10em;
  }

  .hiscore-subtitle{
    font-size:13px;
    line-height:1.55;
    margin-top:14px;
  }

  .hiscore-divider{
    margin-top:18px;
  }

  .hiscore-filter-top,
  .hiscore-filter-bottom{
    padding:14px 12px;
  }

  .hiscore-modes,
  .hiscore-xprates{
    gap:8px;
  }

  .hiscore-modes a{
    width:calc(50% - 4px);
    min-height:40px;
    padding:0 10px;
    font-size:11px;
    letter-spacing:.06em;
    text-align:center;
  }

  .xp-chip{
    width:calc(25% - 6px);
    min-height:38px;
    padding:0 8px;
    font-size:12px;
  }

  .hiscore-main,
  .hiscore-side-card{
    padding:14px;
  }

  .hiscore-main{
    min-height:360px;
  }

  .table-kicker{
    font-size:12px;
  }

  .table-search-fake{
    display:none;
  }

  .dataTables_wrapper .dataTables_length{
    margin-bottom:10px;
  }

  .dataTables_wrapper .dataTables_length label{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
  }

  table.dataTable{
    min-width:700px;
  }

  table.dataTable thead th,
  table.dataTable tbody td{
    padding:11px 12px;
    font-size:12px;
  }

  .skills-box ul{
    grid-template-columns:1fr;
    max-height:430px;
    overflow:auto;
  }

  .skills-box a{
    padding:10px 11px;
    font-size:14px;
  }

  .compare-box input{
    padding:11px 12px;
  }

  .compare-box button{
    padding:12px;
  }
}

/* VERY SMALL */
@media(max-width:390px){
  .hiscore-title{
    font-size:31px;
    letter-spacing:.08em;
  }

  .hiscore-modes a{
    width:100%;
  }

  .xp-chip{
    width:calc(50% - 4px);
  }
}

/* === REAL MOBILE FIX === */
@media(max-width:640px){
  html, body{
    width:100%;
    max-width:100%;
    overflow-x:hidden!important;
  }

  .hiscore-page{
    padding:34px 10px 36px;
    overflow-x:hidden;
    background-attachment:scroll;
  }

  .hiscore-hero{
    padding:0 0 22px;
  }

  .hiscore-title{
    font-size:34px;
    letter-spacing:.08em;
    line-height:1.1;
  }

  .hiscore-subtitle{
    max-width:340px;
    font-size:13px;
    line-height:1.55;
  }

  .hiscore-filter-shell{
    width:100%;
    overflow:hidden;
  }

  .hiscore-filter-top,
  .hiscore-filter-bottom{
    padding:14px 12px;
  }

  .hiscore-modes{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .hiscore-modes a{
    width:100%;
    min-width:0;
    padding:0 8px;
    font-size:11px;
    letter-spacing:.045em;
    line-height:1.15;
    text-align:center;
  }

  .hiscore-xprates{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
  }

  .xp-chip{
    width:100%;
    min-width:0;
    padding:0;
    font-size:12px;
  }

  .hiscore-layout{
    display:block;
    width:100%;
  }

  .hiscore-main,
  .hiscore-side-card{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:14px;
    overflow:hidden;
  }

  .table-toolbar{
    display:block;
  }

  .table-kicker{
    margin-bottom:14px;
  }

  .table-search-fake{
    display:none;
  }

  .dataTables_wrapper{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }

  table.dataTable{
    min-width:720px!important;
    width:720px!important;
  }

  .dataTables_wrapper .dataTables_length{
    float:none!important;
    margin:0 0 14px 0!important;
  }

  .dataTables_wrapper .dataTables_info{
    white-space:normal!important;
  }

  .skills-box ul{
    max-height:none!important;
    overflow:visible!important;
    padding-right:0;
  }

  .skills-box a{
    padding:13px 12px;
    font-size:15px;
  }

  .compare-box input,
  .compare-box button{
    width:100%;
    box-sizing:border-box;
  }
}

@media(max-width:390px){
  .hiscore-modes{
    grid-template-columns:1fr;
  }

  .hiscore-xprates{
    grid-template-columns:1fr 1fr;
  }

  .hiscore-title{
    font-size:30px;
  }
}

@media(max-width:640px){
  .hiscore-main{
    overflow:hidden;
  }

  .dataTables_wrapper{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  table.dataTable{
    min-width:760px!important;
    width:760px!important;
  }

  table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
  table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before{
    display:none!important;
  }

  table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
  table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control{
    padding-left:16px!important;
  }

  table.dataTable thead th,
  table.dataTable tbody td{
    white-space:nowrap!important;
  }
}

@media (max-width:640px){

    .hiscore-main{
        margin-bottom:24px;
    }

}

@media (max-width:640px){
  .hiscore-page{
    background:
      linear-gradient(180deg, rgba(6,4,10,.58), rgba(6,4,10,.94)),
      url('/templates/augment/img/body-background.webp') top center / auto 100vh repeat-y;
    background-attachment:scroll;
    background-color:#07050d;
  }
}