:root {
  --asc-blue: #60a5fa;
  --asc-blue-bright: #93c5fd;
  --asc-indigo: #6366f1;
  --asc-panel: rgba(10, 16, 31, .84);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #040610;
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding: clamp(14px, 2vh, 24px) clamp(14px, 3vw, 48px) 18px !important;
  color: #eaf2ff;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif !important;
  background:
    radial-gradient(circle at 50% -10%, rgba(59, 130, 246, .26), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(99, 102, 241, .12), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, .1), transparent 25%),
    linear-gradient(135deg, #070b18 0%, #040610 52%, #090616 100%) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body::after {
  width: min(820px, 90vw);
  height: 230px;
  top: -175px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(59, 130, 246, .24);
  filter: blur(82px);
}

#cors-banner,
body > .gamemode-toggle,
body > #specContainer,
body > #dungeonSection,
body > .video-holder:not(.glass) {
  display: none !important;
}

.asc-logo-wrap {
  flex: 0 0 auto;
  margin: 0 auto 5px !important;
  padding-top: 0 !important;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, .16));
}

.asc-logo-title {
  font-family: "Cinzel", Georgia, serif !important;
  font-size: clamp(38px, 4.8vw, 68px) !important;
  font-style: normal !important;
  letter-spacing: -.025em !important;
  background: linear-gradient(180deg, #eff6ff 0%, #93c5fd 34%, #3b82f6 68%, #a5b4fc 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-transform: uppercase;
}

.asc-logo-classic {
  margin: 2px 0 !important;
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(11px, 1vw, 15px) !important;
  letter-spacing: .42em !important;
}

.asc-logo-sub {
  color: var(--asc-blue-bright);
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(8px, .72vw, 11px) !important;
  letter-spacing: .3em !important;
}

.asc-intro {
  flex: 0 0 auto;
  margin: 2px auto clamp(10px, 1.5vh, 16px);
  text-align: center;
}

.asc-intro p {
  margin: 0 0 9px;
  color: #9aa9c1;
  font-size: clamp(12px, .9vw, 14px);
  font-weight: 600;
}

.asc-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.asc-badges span {
  padding: 4px 9px;
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 999px;
  color: #a9b9d1;
  background: rgba(15, 23, 42, .56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body > .video-holder.glass {
  flex: 1 1 auto;
  width: min(100%, 1140px) !important;
  height: min(61vw, calc(100dvh - 350px));
  min-height: 320px;
  max-height: 642px;
  margin: 0 auto !important;
  padding: 8px !important;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .28) !important;
  border-radius: 19px !important;
  background:
    linear-gradient(145deg, rgba(96, 165, 250, .1), transparent 22%),
    rgba(4, 7, 14, .94) !important;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, .52),
    0 0 40px rgba(59, 130, 246, .1),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(18px);
}

body > .video-holder.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.05), transparent 28%);
}

body > .video-holder.glass .plyr,
body > .video-holder.glass #video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.plyr--video {
  --plyr-color-main: var(--asc-blue);
  background: #000;
}

.now-playing-bar {
  flex: 0 0 auto;
  width: min(100%, 1100px) !important;
  min-height: 24px !important;
  margin: 7px auto 0 !important;
}

#nowPlayingTitle {
  color: var(--asc-blue-bright) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.stream-url-panel {
  flex: 0 0 auto;
  width: min(100%, 1100px) !important;
  margin: 5px auto 0 !important;
  padding: 0 !important;
}

.stream-url-panel > div {
  min-height: 50px;
  padding: 6px 7px 6px 18px !important;
  border: 1px solid rgba(96, 165, 250, .24) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, .86), rgba(8, 12, 24, .78)) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.055) !important;
}

#url {
  color: #eef6ff !important;
  font-family: "Manrope", sans-serif !important;
}

#url::placeholder {
  color: #64748b;
}

footer {
  flex: 0 0 auto;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

footer button {
  border-color: rgba(96,165,250,.24) !important;
  padding: 8px 18px !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 11px !important;
}

@media (max-width: 760px) {
  body {
    display: block;
    padding: 18px 11px 24px !important;
  }

  .asc-logo-title {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .asc-intro p {
    padding: 0 10px;
  }

  body > .video-holder.glass {
    width: 100% !important;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  .stream-url-panel > div {
    padding-left: 12px !important;
  }

  #url {
    font-size: 12px !important;
  }
}

@media (max-height: 780px) and (min-width: 761px) {
  .asc-logo-title {
    font-size: clamp(35px, 4vw, 52px) !important;
  }

  .asc-logo-classic,
  .asc-logo-sub,
  .asc-intro {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
  }

  body > .video-holder.glass {
    height: calc(100dvh - 292px);
    min-height: 260px;
  }

  footer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
