/* =========================================================
   SITE INFORMATION / DISCORD / API MODAL
   ========================================================= */

.site-info-dialog{
  width:min(720px,calc(100% - 32px));
  max-height:min(760px,calc(100vh - 40px));
  padding:0;
  overflow:auto;
  border:1px solid #2b3240;
  border-radius:16px;
  background:#11141b;
  color:var(--text);
  box-shadow:0 28px 90px rgba(0,0,0,.6);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-info-dialog::backdrop{
  background:rgba(3,5,9,.72);
  backdrop-filter:blur(5px);
}

.site-info-dialog .close{
  position:absolute;
  top:14px;
  right:16px;
  z-index:2;
}

.site-info-hero{
  padding:30px 32px 24px;
  background:linear-gradient(145deg,#171323,#11141b);
  border-bottom:1px solid var(--border);
}

.site-info-eyebrow{
  color:var(--accent2);
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:8px;
}

.site-info-hero h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.8px;
}

.site-info-content{
  padding:28px 32px 32px;
}

.site-info-content p{
  color:#aab2bf;
  line-height:1.7;
  margin:0 0 22px;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:20px 0 28px;
}

.info-card{
  padding:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#171b23;
}

.info-card strong{
  display:block;
  font-size:14px;
  margin-bottom:5px;
}

.info-card span{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.site-info-content h3{
  margin:0 0 12px;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.points-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.points-list span{
  display:flex;
  justify-content:space-between;
  padding:9px 11px;
  border-radius:7px;
  background:#171b23;
  color:var(--muted);
  font-size:12px;
}

.points-list b{
  color:var(--text);
}

.info-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:9px;
  background:#12351f;
  color:#b7f7ca;
  border:1px solid #245a37;
  font-weight:700;
  font-size:13px;
}

.info-action:hover{
  background:#174527;
}

/* =========================================================
   PLAYER PROFILE
   ========================================================= */

#profileDialog{
  width:min(450px,calc(100% - 28px));
  max-width:760px;
  max-height:calc(100vh - 24px);
  overflow:hidden;
  border-radius:18px;
  position:fixed;
  inset:0;
  margin:auto;
}

#profileDialog.has-custom-outline{
  outline:2px solid var(--profile-outline-color);
  outline-offset:0;
}

#profileDialog .close{
  z-index:5;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid #46566b;
  background:#1b2635;
  padding:0 0 0 .125em;
  color:#fff;
  font-family:"Minecraftia",Inter,system-ui,sans-serif !important;
  font-size:16px;
  font-weight:normal;
  line-height:1;
  transition:background-color .15s ease,border-color .15s ease;
}

#profileDialog .close:hover{
  background:#27364a;
  border-color:#72839a;
}

#profileDialog .close:focus-visible{
  outline:2px solid #9aacc3;
  outline-offset:2px;
}

#profile{
  width:100%;
  padding:28px 38px 30px;
  border-radius:inherit;
  position:relative;
  isolation:isolate;
  background-color:#10141c;
  background-image:linear-gradient(rgba(12,16,24,.82),rgba(12,16,24,.88)),var(--profile-background-image,none);
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

#profile>*{
  position:relative;
  z-index:1;
}

.profile-trophy {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-trophy img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.profile-hero{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.profile-avatar{
  width:100px;
  height:100px;
  border-radius:50%;
  object-fit:cover;
  background:#1b2639;
  border:9px solid #1b2639;
  box-shadow:0 0 0 1px #1b2639;
}

.profile-hero h2{
  font-size:27px;
  line-height:1.2;
  margin:8px 0 9px;
  color:#f19ab5;
}

.profile-title-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#6d3042;
  color:#ffadbf;
  border-radius:18px;
  padding:6px 12px;
  font-size:14px;
  font-weight:700;
}

.profile-badge-icon{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:#ff718f;
  font-size:13px;
}

.namemc-button{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#1c2739;
  border-radius:16px;
  padding:7px 11px;
  color:#91a5c4;
  font-size:11px;
}

.namemc-button:hover{
  background:#253248;
  color:var(--text);
}

/* =========================================================
   PROFILE POSITION
   ========================================================= */

.profile-position-section,
.profile-tiers-section{
  margin-top:17px;
}

.profile-big-label{
  font-size:21px;
  color:#aeb6c2;
  margin:0 0 7px 2px;
}

.profile-position-card{
  height:45px;
  border:2px solid #2a3546;
  border-radius:10px;
  background:#171d27;
  display:flex;
  align-items:center;
  padding:0 11px;
  gap:8px;
}

.profile-position-card strong{
  font-size:24px;
  font-style:italic;
  min-width:54px;
}

.profile-position-card b{
  font-size:19px;
}

.profile-position-card span:last-child{
  color:#91a5c4;
  font-size:16px;
}

.profile-position-card > *{
  white-space:nowrap;
  flex-shrink:0;
}
.profile-position-card span:last-child{
  flex-shrink:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.profile-position-divider{
  height:35px;
  width:2px;
  background:#303b4d;
  transform:skewX(-18deg);
  margin-right:3px;
}

.profile-trophy{
  font-size:19px;
}

/* =========================================================
   PROFILE TIERS
   ========================================================= */

.profile-tier-strip{
  width:100%;
  min-height:145px;
  height:auto;
  display:grid;
  grid-template-columns:repeat(6,minmax(50px,1fr));
  grid-template-rows:repeat(2,auto);
  align-items:center;
  justify-items:center;
  padding:12px 14px;
  gap:8px 4px;
  border:2px solid #2a3546;
  border-radius:10px;
  background:#171d27;
}

.profile-tier-item{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  cursor:help;
}

.profile-tier-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid #263142;
  background:#0e141d;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.profile-tier-icon .kit-icon-img{
  width:21px;
  height:21px;
}

.profile-tier-icon-empty{
  border:1px dashed #455063;
  background:transparent;
}

.profile-tier-item .tier{
  width:34px;
  height:20px;
  font-size:9px;
  border-radius:5px;
}

.profile-unranked-dot{
  width:34px;
  height:20px;
  border-radius:5px;
  background:#1a1a1a;
  color:#8992a0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:11px;
}

/* =========================================================
   GENERAL DIALOG
   ========================================================= */

dialog{
  width:min(450px,calc(100% - 30px));
  background:#12151c;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:16px;
  padding:0;
  box-shadow:0 30px 100px #000;
  position:fixed;
}

dialog::backdrop{
  background:#000b;
  backdrop-filter:blur(5px);
}

.close{
  position:absolute;
  right:14px;
  top:12px;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:28px;
  cursor:pointer;
}

/* =========================================================
   EMPTY STATE / FOOTER
   ========================================================= */

.points{
  font-weight:700;
}

.empty{
  padding:50px;
  text-align:center;
  color:var(--muted);
}

.hidden{
  display:none!important;
}

footer{
  border-top:1px solid var(--border);
  padding:35px max(24px,calc((100% - 1180px)/2));
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:13px;
}

footer strong{
  color:var(--text);
}

footer p{
  margin:6px 0;
}

.footer-links{
  display:flex;
  gap:20px;
}
