@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Orbitron:wght@600;700&family=Press+Start+2P&family=Rajdhani:wght@500;700&family=Space+Grotesk:wght@500;700&display=swap");

@font-face {
  font-family: "Nowduke";
  src: url("assets/fonts/Nowduke-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg-base: #171a1f;
  --bg-vignette: #0e1014;
  --line-blue: #0277FC;
}

* {
  box-sizing: border-box;
}

.stage,
.stage *,
html,
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, var(--bg-base) 0%, var(--bg-vignette) 72%);
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  --rect-width: 90vw;
  --rect-center-y: 35%;
  --rect-height: calc(var(--rect-width) * 354 / 1379);
  --stack-right: 5vw;
}

#x-scene,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#x-scene {
  display: block;
  z-index: 0;
}

.grain {
  pointer-events: none;
  z-index: 2;
  opacity: 0.32;
  mix-blend-mode: screen; /* nts: screen or overlay unsure which looks better */
  background-image: url("assets/texture.jpg");
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(112%) brightness(1.05);
}

.crt-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: blur(10.0px);
  -webkit-backdrop-filter: blur(10.0px);
  background:
    /* Subtle glow between scanlines */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 1px,
      rgba(180, 220, 255, 0.08) 1px,
      rgba(180, 220, 255, 0.08) 2px,
      transparent 2px,
      transparent 3px
    ),
    /* RGB phosphor stripes */
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 0, 0.06) 0px,
      rgba(0, 255, 0, 0.06) 1px,
      rgba(0, 0, 255, 0.06) 2px,
      transparent 2px,
      transparent 3px
    ),
    /* Fine scanlines */
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.28) 0px,
      rgba(0, 0, 0, 0.28) 1px,
      transparent 1px,
      transparent 3px
    );
  background-size:
    100% 3px,
    100% 3px,
    100% 3px;
  background-position:
    0 0,
    0 0,
    0 0;
  box-shadow:
    inset 0 0 80px rgba(100, 180, 255, 0.1),
    inset 0 0 200px rgba(100, 180, 255, 0.05);
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 100%
  );
  animation: crt-flicker 4s ease-in-out infinite;
}

.crt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  background-size: 100% 40%;
  background-repeat: no-repeat;
  animation: crt-roll 6s linear infinite;
}

@keyframes crt-flicker {
  0%, 100% {
    opacity: 1;
  }
  25% {
    opacity: 0.97;
  }
  50% {
    opacity: 0.99;
  }
  75% {
    opacity: 0.96;
  }
}

@keyframes crt-roll {
  0% {
    background-position:
      0% 0%,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      0% 200%,
      0 0,
      0 0,
      0 0;
  }
}

@media (max-width: 900px) {
  .grain {
    opacity: 0.22;
  }
}

.rect-overlay {
  position: absolute;
  right: 0;
  top: var(--rect-center-y);
  width: var(--rect-width);
  height: auto;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.coming-soon {
  position: absolute;
  right: var(--stack-right);
  top: calc(var(--rect-center-y) + var(--rect-height) / 2 + clamp(12px, 1.6vw, 24px));
  width: min(440px, 88vw);
  margin: 0;
  z-index: 3;
  text-align: right;
  font-family: "Nowduke", "Space Grotesk", sans-serif;
  font-size: clamp(18px, 2.1vw, 32px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #F8DC73;
  text-shadow: 0 0px 5px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}

.notify-lab {
  position: absolute;
  right: var(--stack-right);
  top: calc(var(--rect-center-y) + var(--rect-height) / 2 + clamp(62px, 7vw, 104px));
  width: min(440px, 88vw);
  z-index: 3;
  display: grid;
  gap: 10px;
}

.sponsors-strip {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 26px);
  transform: translateX(-50%);
  z-index: 3;
  width: min(1200px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
}

.sponsors-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sponsors-row-top {
  justify-content: center;
}

.sponsor-logo {
  height: clamp(24px, 3.3vw, 48px);
  width: auto;
  max-width: min(210px, 27vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.concept {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.concept-status {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 229, 255, 0.3);
  font-family: "Orbitron", "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.concept-meta {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(204, 183, 120, 0.72);
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.concept-retro .wrapper {
  position: relative;
  display: inline-block;
}

.concept-retro .retro-btn {
  text-transform: uppercase;
  background: transparent;
}

.concept-retro .retro-btn .btn {
  user-select: none;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-style: normal;
  text-decoration: none;
  text-align: center;
  z-index: 5;
  -webkit-font-smoothing: antialiased;
  width: 240px;
  height: 46px;
  font-size: 12px;
  line-height: 24px;
  padding-top: 3px;
  background-color: transparent;
}

.concept-retro .retro-btn .btn,
.concept-retro .retro-btn .btn:focus {
  outline: 0;
}

.concept-retro .retro-btn .btn::before {
  content: " ";
  position: absolute;
  left: 1px;
  bottom: -1px;
  width: calc(100% - 2px);
  height: calc(100% - 4px);
  border-radius: 3px;
  background-color: rgba(13, 13, 13, 0.3);
  z-index: 1;
  transition: transform 0.12s ease-out, background 0.12s ease-out;
}

.concept-retro .retro-btn .btn.btn-left::before {
  transform: skewY(1deg) translate3d(0, -0.5px, 0);
}

.concept-retro .retro-btn .btn.btn-right::before {
  transform: skewY(-1deg) translate3d(0, -0.5px, 0);
}

.concept-retro .retro-btn .btn.btn-center::before {
  transform: translate3d(0, -1px, 0);
}

.concept-retro .retro-btn .btn .btn-inner {
  display: block;
  height: 100%;
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: calc(100% - 3px);
  margin-top: -3px;
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper::before,
.concept-retro .retro-btn .btn .btn-inner .content-wrapper::after,
.concept-retro .retro-btn .btn .btn-inner .content-wrapper .btn-content::before,
.concept-retro .retro-btn .btn .btn-inner .content-wrapper .btn-content::after,
.concept-retro .retro-btn .btn .btn-inner .content-wrapper .btn-content .btn-content-inner::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.concept-retro .retro-btn.info .btn .btn-inner .content-wrapper::before {
  background-color: #164e62;
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper::before {
  content: " ";
  top: auto;
  bottom: -3px;
  border-radius: 3px;
  z-index: 1;
  transition: transform 0.185s ease-out, background 0.185s ease-out;
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper::after {
  content: " ";
  top: 2px;
  width: 0;
  border-radius: 3px;
  z-index: 3;
  background-color: rgba(13, 13, 13, 0.15);
}

.concept-retro .retro-btn.info .btn .btn-inner .content-wrapper .btn-content {
  background-color: #2091ba;
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper .btn-content {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  text-indent: 0;
  z-index: 3;
  overflow: hidden;
  padding: 0 16px;
  color: #ebf1f8;
  transition: border 0.185s ease-out, transform 0.185s ease-out, background 0.185s ease-out, color 0.185s ease-out;
}

.concept-retro .retro-btn .btn.btn-left .btn-inner .content-wrapper .btn-content {
  transform: skewY(-1deg);
}

.concept-retro .retro-btn .btn.btn-right .btn-inner .content-wrapper .btn-content {
  transform: skewY(1deg);
}

.concept-retro .retro-btn .btn.btn-center .btn-inner .content-wrapper .btn-content {
  transform: translate3d(0, 1px, 0);
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper .btn-content .btn-content-inner {
  display: block;
  transition: opacity 75ms ease-out 0.1125s;
}

.concept-retro .retro-btn .btn .btn-inner .content-wrapper .btn-content .btn-content-inner::before {
  content: attr(label);
  z-index: -1;
  opacity: 1;
  padding-top: 9.5px;
  letter-spacing: 0.06em;
  font-size: 0.8em;
  font-family: "Press Start 2P", cursive;
  transition: opacity 0.3s ease-out, background-color 0.1125s ease-in;
}

.concept-retro .retro-btn .btn:hover .btn-content-inner::before {
  background-color: rgba(13, 13, 13, 0.1);
}

.concept-retro .retro-btn .btn.btn-active::before {
  transform: translate3d(0, -3px, 0);
}

.concept-retro .retro-btn .btn.btn-active .btn-inner .content-wrapper .btn-content {
  transform: translate3d(0, 2px, 0);
}

.concept-retro .retro-btn .btn.btn-active .btn-inner .content-wrapper .btn-content .btn-content-inner {
  opacity: 0.1;
}

.concept-label {
  margin: 0;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(231, 236, 245, 0.72);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.notify-btn {
  position: relative;
  min-height: 38px;
  width: min(320px, 84vw);
  border: 0;
  cursor: pointer;
  color: #eef4ff;
  border-radius: 0;
  padding: 0 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, letter-spacing 180ms ease;
}

.notify-btn:link,
.notify-btn:visited {
  color: #eef4ff;
  text-decoration: none;
}

.notify-btn.is-clicked {
  animation-duration: 180ms;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

.btn-crt {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #95d9ff;
  clip-path: none;
  background:
    repeating-linear-gradient(180deg, rgba(149, 217, 255, 0.12) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #252e3d 0%, #171f2c 52%, #0f1520 100%);
  border: 1px solid #6eb8eb;
  box-shadow:
    0 0 0 1px rgba(96, 166, 210, 0.45) inset,
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 -2px 0 rgba(0, 0, 0, 0.32) inset,
    0 0 14px rgba(46, 174, 255, 0.24);
}

.btn-crt:hover {
  animation: crt-hover-flicker 80ms steps(2, end) 1;
  filter: brightness(1.12) contrast(1.06);
}

.btn-crt:active {
  filter: brightness(0.9) saturate(0.9);
  box-shadow:
    0 0 0 1px rgba(96, 166, 210, 0.45) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 2px 0 rgba(0, 0, 0, 0.45) inset;
}

.btn-crt.is-clicked {
  animation-name: crt-click-jitter;
}

.btn-arcade {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 14px 4px 14px 4px;
  background: #0d111a;
  border: 1px solid #2ee6ff;
  outline: 1px solid #ff375f;
  outline-offset: -4px;
  box-shadow:
    -2px 0 #ff375f inset,
    0 0 0 1px rgba(31, 37, 48, 0.8) inset,
    0 0 10px rgba(255, 55, 95, 0.26),
    0 0 10px rgba(46, 230, 255, 0.26);
}

.btn-arcade::before,
.btn-arcade::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.btn-arcade::before {
  box-shadow: 0 0 0 1px rgba(255, 55, 95, 0.72), 0 0 20px rgba(255, 55, 95, 0.38);
}

.btn-arcade::after {
  box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.72), 0 0 20px rgba(46, 230, 255, 0.38);
}

.btn-arcade:hover {
  text-shadow: -1px 0 #ff375f, 1px 0 #2ee6ff;
  box-shadow:
    -3px 0 #ff375f inset,
    0 0 14px rgba(255, 55, 95, 0.42),
    0 0 14px rgba(46, 230, 255, 0.42);
}

.btn-arcade:hover::before {
  opacity: 1;
  transform: translateX(-3px);
}

.btn-arcade:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.btn-arcade:active {
  filter: saturate(1.3);
}

.btn-arcade.is-clicked {
  animation-name: arcade-chromatic;
}

.btn-arcade.is-clicked + .concept-status {
  opacity: 1;
  transform: translateY(0);
}

.btn-terminal {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e0e1ce;
  background:
    linear-gradient(180deg, rgba(21, 138, 222, 0.167), rgba(95, 199, 251, 0.073)),
    #080711;
  border: 2px solid #e57777; /* #a0a0a0 #0ebe28 */
  outline: 1px solid #8c8eb3;
  outline-offset: -5px;
  clip-path: polygon(0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
  box-shadow: 0 0 0 1px rgba(78, 93, 191, 0.25) inset, 0 0 0 1px rgba(211, 155, 52, 0.35);
}

.btn-terminal::after {
  content: "_";
  display: inline-block;
  margin-left: 0.28em;
  color: #e1cca7;
  animation: terminal-cursor 520ms steps(1, end) infinite;
}

.btn-terminal:hover {
  letter-spacing: 0.08em;
  color: #dddddd;
  box-shadow: 0 0 0 1px rgba(147, 147, 147, 0.649) inset, 0 0 12px rgba(235, 233, 233, 0.886);
}

.btn-terminal:active {
  filter: contrast(1.15);
}

.btn-terminal.is-clicked {
  animation-name: terminal-enter;
}

.btn-mecha {
  font-family: "Rajdhani", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8edf9;
  padding-left: 32px;
  padding-right: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.02) 44%, rgba(0, 0, 0, 0.32) 100%),
    repeating-linear-gradient(110deg, rgba(210, 221, 236, 0.08) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(72deg, rgba(20, 28, 39, 0.22) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #8f99a8 0, #5f6774 34%, #3f4651 64%, #242a33 100%);
  border: 1px solid #8a93a3;
  box-shadow:
    0 0 0 1px rgba(24, 29, 37, 0.62) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 0 12px rgba(120, 139, 167, 0.2);
}

.btn-mecha::before,
.btn-mecha::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 30% 30%, #9da7bc 0 35%, #485065 36% 100%);
  box-shadow: 0 0 0 1px rgba(15, 21, 30, 0.8);
}

.btn-mecha::before {
  left: 12px;
}

.btn-mecha::after {
  right: 12px;
}

.btn-mecha:hover {
  letter-spacing: 0.14em;
  box-shadow:
    0 0 0 1px rgba(24, 29, 37, 0.62) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 0 18px rgba(176, 196, 228, 0.32);
}

.btn-mecha:active {
  transform: scaleX(0.985) scaleY(0.94);
  box-shadow: 0 2px 0 rgba(12, 15, 20, 0.9) inset;
}

.btn-mecha.is-clicked {
  animation-name: mecha-toggle;
}

@keyframes crt-hover-flicker {
  0% { filter: brightness(1.02); }
  45% { filter: brightness(1.34); }
  100% { filter: brightness(1.06); }
}

@keyframes crt-click-jitter {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

@keyframes arcade-chromatic {
  0% { transform: translateX(0); text-shadow: 0 0 transparent; }
  35% { transform: translateX(1px); text-shadow: -2px 0 #ff375f, 2px 0 #2ee6ff; }
  100% { transform: translateX(0); text-shadow: 0 0 transparent; }
}

@keyframes terminal-cursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes terminal-enter {
  0% { transform: translateY(0); box-shadow: 0 0 0 1px rgba(82, 191, 78, 0.25) inset, 0 0 0 1px rgba(211, 155, 52, 0.35); }
  50% { transform: translateY(2px); box-shadow: 0 2px 0 rgba(6, 12, 7, 0.72) inset; }
  100% { transform: translateY(0); box-shadow: 0 0 0 1px rgba(82, 191, 78, 0.25) inset, 0 0 0 1px rgba(211, 155, 52, 0.35); }
}

@keyframes mecha-toggle {
  0% { transform: translateX(0) scaleY(1); }
  40% { transform: translateX(2px) scaleY(0.9); }
  74% { transform: translateX(-1px) scaleY(1.03); }
  100% { transform: translateX(0) scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .notify-btn,
  .notify-btn.is-clicked {
    animation: none !important;
    transition: none;
  }
}

@media (max-width: 900px) {
  .stage {
    --stack-right: 4vw;
  }

  .notify-lab {
    width: min(390px, 92vw);
    gap: 8px;
  }

  .coming-soon {
    width: min(390px, 92vw);
    font-size: clamp(16px, 4.4vw, 24px);
  }

  .notify-btn {
    min-height: 35px;
    width: 50%;
    font-size: 13px;
  }

  .sponsors-strip {
    bottom: clamp(10px, 3vw, 18px);
    gap: clamp(10px, 2.8vw, 20px);
    width: 92vw;
  }

  .sponsor-logo {
    height: clamp(21px, 5.4vw, 33px);
    max-width: 42vw;
  }
}

.audio-player-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

.audio-toggle-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #e57777;
  outline: 1px solid #8c8eb3;
  outline-offset: -5px;
  background:
    linear-gradient(180deg, rgba(21, 138, 222, 0.167), rgba(95, 199, 251, 0.073)),
    #080711;
  color: #e0e1ce;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  flex-shrink: 0;
  clip-path: polygon(0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
  box-shadow: 0 0 0 1px rgba(78, 93, 191, 0.25) inset, 0 0 0 1px rgba(211, 155, 52, 0.35);
  animation: pulse-btn 1.5s ease-in-out infinite;
}

.audio-toggle-btn.is-playing {
  animation: none;
  box-shadow: 0 0 0 1px rgba(82, 191, 78, 0.25) inset, 0 0 0 1px rgba(211, 155, 52, 0.35);
}

.audio-toggle-btn:hover {
  color: #dddddd;
  box-shadow: 0 0 0 1px rgba(147, 147, 147, 0.649) inset, 0 0 12px rgba(235, 233, 233, 0.886);
}

@keyframes pulse-btn {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}

.audio-mini-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid #e57777;
  outline: 1px solid #8c8eb3;
  outline-offset: -5px;
  background:
    linear-gradient(180deg, rgba(21, 138, 222, 0.167), rgba(95, 199, 251, 0.073)),
    #080711;
  clip-path: polygon(0 5px, 5px 5px, 5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px), 0 calc(100% - 5px));
  box-shadow: 0 0 0 1px rgba(78, 93, 191, 0.25) inset, 0 0 0 1px rgba(211, 155, 52, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px) scale(0.95);
  transition: opacity 250ms ease, visibility 250ms ease, transform 250ms ease;
  white-space: nowrap;
  overflow: hidden;
}

.audio-mini-player.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.audio-play-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #8c8eb3;
  background: rgba(78, 93, 191, 0.15);
  color: #e0e1ce;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

.audio-play-btn:hover {
  background: rgba(147, 147, 147, 0.25);
  color: #dddddd;
  border-color: #e0e1ce;
}

.audio-play-btn .pause-icon {
  display: none;
}

.audio-play-btn.is-playing .play-icon {
  display: none;
}

.audio-play-btn.is-playing .pause-icon {
  display: block;
}

.audio-play-btn::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #e1cca7;
  margin-left: 4px;
  animation: cursor-blink 520ms steps(1, end) infinite;
}

.audio-play-btn.is-playing::after {
  display: none;
}

@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.audio-progress-container {
  width: 100px;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(140, 142, 179, 0.4);
  overflow: hidden;
  position: relative;
  display: flex;
  gap: 2px;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #e57777 0px,
    #e57777 4px,
    transparent 4px,
    transparent 6px
  );
  transition: width 0.15s steps(1);
  position: relative;
}

.audio-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #e1cca7;
  animation: cursor-blink 520ms steps(1, end) infinite;
}

.audio-progress-container:hover .audio-progress-bar {
  border-color: rgba(224, 225, 206, 0.6);
}

.audio-volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.audio-volume-icon {
  color: #e1cca7;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.audio-volume-icon svg {
  width: 14px;
  height: 14px;
}

.audio-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 6px;
  background: linear-gradient(90deg, #e57777 50%, rgba(255, 255, 255, 0.08) 50%);
  border: 1px solid rgba(140, 142, 179, 0.4);
  outline: none;
  cursor: pointer;
  clip-path: polygon(0 2px, 2px 2px, 2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px));
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #e57777;
  cursor: pointer;
  border: 1px solid #8c8eb3;
  clip-path: polygon(0 2px, 2px 2px, 2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px));
}

.audio-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #e57777;
  cursor: pointer;
  border: 1px solid #8c8eb3;
  border-radius: 0;
}

.audio-volume-slider:hover {
  border-color: rgba(224, 225, 206, 0.6);
}
