*{
  box-sizing:border-box
}

html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  background:#07080c;
  color:#f7f7fb
}

body{
  overflow-x:hidden
}

.bg{
  position:fixed;
  width:430px;
  height:430px;
  border-radius:50%;
  filter:blur(110px);
  opacity:.18;
  pointer-events:none;
  z-index:-1
}

.b1{
  background:#8b5cf6;
  top:-260px;
  left:8%
}

.b2{
  background:#2563eb;
  right:-280px;
  bottom:-250px
}

/* HEADER */

header{
  height:72px;
  padding:0 6vw;
  border-bottom:1px solid #ffffff12;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#07080c99;
  backdrop-filter:blur(18px);
  position:relative;
  z-index:5
}

.logo{
  color:#fff;
  text-decoration:none;
  font-weight:950;
  letter-spacing:-.05em;
  transition:opacity .2s ease,transform .2s ease
}

.logo:hover{
  opacity:.85;
  transform:translateY(-1px)
}

.logo i,
.footer-logo i{
  display:inline-block;
  width:8px;
  height:8px;
  background:#a78bfa;
  border-radius:50%;
  box-shadow:0 0 18px #a78bfa;
  margin-right:7px
}

.logo span,
.footer-logo span{
  color:#a78bfa
}

.header-stats{
  display:flex;
  gap:20px;
  color:#858b9c;
  font-size:13px
}

.header-stats b{
  color:#fff
}

/* MAIN */

main{
  width:min(880px,92%);
  margin:auto;
  padding:65px 0 70px
}

.hero{
  text-align:center
}

.hero small{
  font-size:10px;
  letter-spacing:.22em;
  color:#a78bfa;
  font-weight:900
}

.hero h1{
  font-size:clamp(48px,8vw,82px);
  line-height:.9;
  letter-spacing:-.07em;
  margin:16px 0
}

.hero em{
  font-style:normal;
  color:#aaa2b7
}

.hero p{
  color:#7d8494;
  font-size:14px
}

/* GAME MODES */

.modes{
  display:flex;
  justify-content:center;
  gap:7px;
  margin:38px 0 10px;
  flex-wrap:wrap
}

.mode,
.difficulty,
.clip{
  border:1px solid #ffffff10;
  background:#0d0f15;
  color:#7d8494;
  border-radius:999px;
  padding:10px 15px;
  font-weight:900;
  font-size:10px;
  letter-spacing:.12em;
  cursor:pointer;

  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease
}

/* SUBTLE PURPLE HOVER */

.mode:hover,
.difficulty:hover,
.clip:hover{
  transform:translateY(-2px);
  border-color:#8b5cf655;
  color:#fff;
  box-shadow:0 6px 18px #8b5cf612
}

.mode:active,
.difficulty:active,
.clip:active{
  transform:scale(.96)
}

/* MODE ACTIVE */

.mode.active{
  background:#f0ebff;
  color:#141019;
  border-color:#f0ebff;
  box-shadow:0 8px 30px #a78bfa18
}

/* DIFFICULTY */

.difficulty-modes{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:10px 0 16px;
  flex-wrap:wrap
}

.difficulty{
  border-radius:9px;
  padding:9px 15px
}

.difficulty.active{
  background:#1c1729;
  color:#fff;
  border-color:#7d65b5;
  box-shadow:0 0 20px #8b5cf615
}

/* GAME */

.game{
  border:1px solid #ffffff10;
  background:#11131bd9;
  backdrop-filter:blur(20px);
  border-radius:28px;
  padding:26px;
  box-shadow:0 30px 90px #0008;
  text-align:center;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    opacity .25s ease
}

.song-transition{
  animation:songIn .38s cubic-bezier(.2,.8,.2,1)
}

@keyframes songIn{
  0%{
    opacity:.35;
    transform:translateY(10px) scale(.985)
  }

  100%{
    opacity:1;
    transform:translateY(0) scale(1)
  }
}

.topline{
  display:flex;
  justify-content:space-between;
  color:#707789;
  font-size:10px;
  font-weight:900;
  letter-spacing:.15em
}

.topline b{
  color:#fff
}

.topline span:last-child{
  font-size:23px;
  color:#fff;
  letter-spacing:0
}

.special-info{
  min-height:18px;
  margin-top:8px;
  color:#a78bfa;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em
}

/* DISC */

.disc-wrap{
  position:relative;
  width:184px;
  height:184px;
  margin:30px auto 18px;
  display:grid;
  place-items:center
}

.disc{
  width:170px;
  height:170px;
  border-radius:50%;
  position:relative;

  background:
    repeating-radial-gradient(
      circle,
      #0d0d10 0,
      #0d0d10 2px,
      #1c1c22 3px,
      #0d0d10 6px
    );

  box-shadow:0 15px 35px #000;

  transition:
    filter .2s ease,
    transform .2s ease,
    box-shadow .3s ease
}

.disc:before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  border:1px solid #ffffff10
}

.groove{
  position:absolute;
  inset:28px;
  border-radius:50%;
  border:1px solid #ffffff08
}

.hole{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:62px;
  height:62px;
  border-radius:50%;

  background:linear-gradient(
    135deg,
    #c0adff,
    #6942d3
  );

  box-shadow:0 0 35px #8b5cf655
}

.hole:after{
  content:"";
  display:block;
  width:9px;
  height:9px;
  background:#08090c;
  border-radius:50%;
  position:absolute;
  left:27px;
  top:27px
}

.playing .disc{
  animation:spin 1.6s linear infinite;
  filter:brightness(1.15);

  box-shadow:
    0 15px 35px #000,
    0 0 35px #8b5cf655
}

.playing .hole{
  box-shadow:
    0 0 35px #8b5cf6aa,
    0 0 70px #8b5cf633
}

.disc-glow{
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  background:#8b5cf622;
  filter:blur(25px);
  z-index:-1
}

.playing .disc-glow{
  animation:pulse 1.2s ease-in-out infinite
}

/* BARS */

.bars{
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  margin:16px 0
}

.bars i{
  width:3px;
  height:var(--h);
  background:#715da0;
  border-radius:4px;
  opacity:.7
}

.playing .bars i{
  animation:wave .34s ease-in-out infinite alternate
}

/* WARNING */

.clip-warning{
  max-width:620px;
  margin:8px auto 14px;
  padding:9px 13px;
  border:1px solid #ffffff08;
  background:#0c0e14;
  border-radius:10px;
  color:#646b7a;
  font-size:10px;
  line-height:1.5
}

.clip-warning b{
  color:#8f7db8
}

/* CLIPS */

.clips{
  display:flex;
  justify-content:center;
  gap:7px;
  margin:10px;
  flex-wrap:wrap
}

.clip{
  border-radius:9px;
  padding:8px 13px
}

.clip.active{
  border-color:#7d65b5;
  color:#fff;
  background:#1c1729;
  box-shadow:0 0 20px #8b5cf615
}

/* PLAY */

.play{
  border:0;
  background:#fff;
  color:#101116;
  border-radius:12px;
  padding:13px 21px;
  font-weight:950;
  cursor:pointer;

  transition:
    transform .18s ease,
    box-shadow .2s ease,
    background .2s ease
}

.play:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px #ffffff18
}

.play:active{
  transform:scale(.97)
}

.playing .play{
  background:#e7e0ff;
  box-shadow:0 0 30px #8b5cf622
}

/* GUESS */

.guess{
  display:flex;
  gap:8px;
  margin-top:25px
}

.guess input{
  flex:1;
  min-width:0;
  background:#090b10;
  border:1px solid #ffffff12;
  color:#fff;
  border-radius:12px;
  padding:14px 15px;
  outline:none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease
}

.guess input:focus{
  border-color:#826cb7;
  box-shadow:0 0 0 3px #8b5cf612
}

.guess button{
  border:0;
  background:#8b5cf6;
  color:#fff;
  border-radius:12px;
  padding:0 23px;
  font-weight:950;
  cursor:pointer;

  transition:
    transform .18s ease,
    box-shadow .2s ease,
    filter .2s ease
}

.guess button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px #8b5cf633;
  filter:brightness(1.08)
}

/* SUGGESTIONS */

#suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
  margin-top:8px
}

#suggestions button{
  border:1px solid #ffffff0d;
  background:#0b0d12;
  color:#8b91a0;
  border-radius:8px;
  padding:6px 9px;
  font-size:10px;
  cursor:pointer;

  transition:
    transform .15s ease,
    color .15s ease,
    border-color .15s ease
}

#suggestions button:hover{
  color:#fff;
  border-color:#8b5cf655;
  transform:translateY(-1px)
}

#result{
  min-height:25px;
  font-size:13px;
  font-weight:900
}

.good{
  color:#91e3ac;
  animation:resultGood .45s cubic-bezier(.2,.8,.2,1)
}

.bad{
  color:#ff9d9d;
  animation:resultBad .4s ease
}

/* STATS */

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

.stats div{
  background:#0d0f15;
  border:1px solid #ffffff0d;
  border-radius:15px;
  text-align:center;
  padding:14px;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease
}

.stats div:hover{
  transform:translateY(-3px);
  border-color:#8b5cf630;
  background:#10121a
}

.stats small{
  display:block;
  color:#606778;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em
}

.stats b{
  font-size:19px
}

/* NEXT */

.next{
  width:100%;
  padding:15px;
  background:transparent;
  color:#fff;
  border:1px solid #ffffff10;
  border-radius:13px;
  font-weight:950;
  cursor:pointer;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease
}

.next:hover{
  background:#11131a;
  border-color:#8b5cf630;
  transform:translateY(-2px);
  box-shadow:0 10px 30px #0005
}

.next span{
  color:#a78bfa
}

/* LEADERBOARD */

.leader{
  margin-top:28px;
  border-top:1px solid #ffffff0c;
  padding-top:22px
}

.leader-head{
  display:flex;
  justify-content:space-between;
  align-items:center
}

.leader h2{
  font-size:12px;
  letter-spacing:.13em
}

.leader-head button{
  background:transparent;
  border:0;
  color:#666d7d;
  font-size:9px;
  font-weight:900;
  cursor:pointer
}

.leader ol{
  margin:10px 0 0;
  padding-left:27px;
  color:#8a90a0
}

.leader li{
  padding:9px 4px;
  border-bottom:1px solid #ffffff08
}

.leader li b{
  color:#fff;
  margin-left:7px
}

.leader li span{
  float:right;
  color:#a78bfa
}

/* COMMUNITY */

.community{
  margin-top:34px;
  padding:28px;

  border:1px solid #ffffff0d;
  background:
    linear-gradient(
      145deg,
      #11131bd9,
      #0c0e14d9
    );

  border-radius:22px;
  box-shadow:0 20px 60px #0004
}

.section-title small{
  color:#a78bfa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em
}

.section-title h2{
  margin:7px 0 5px;
  font-size:25px;
  letter-spacing:-.04em
}

.section-title p{
  color:#6f7686;
  font-size:12px;
  margin:0 0 20px
}

.community form{
  display:flex;
  flex-direction:column;
  gap:9px
}

.community input,
.community textarea{
  width:100%;
  border:1px solid #ffffff10;
  background:#090b10;
  color:#fff;
  border-radius:12px;
  padding:13px 14px;
  outline:none;
  font:inherit;
  font-size:12px;
  resize:vertical;

  transition:
    border-color .2s ease,
    box-shadow .2s ease
}

.community input:focus,
.community textarea:focus{
  border-color:#8b5cf655;
  box-shadow:0 0 0 3px #8b5cf60c
}

.community textarea{
  min-height:90px
}

.community form button{
  border:0;
  border-radius:12px;
  padding:13px;
  background:#8b5cf6;
  color:#fff;
  font-weight:950;
  cursor:pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease
}

.community form button:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
  box-shadow:0 8px 25px #8b5cf633
}

#requestStatus,
#feedbackStatus{
  min-height:15px;
  margin:3px 0 0;
  text-align:center;
  font-size:10px;
  font-weight:900
}

.success{
  color:#91e3ac
}

/* INFO */

.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:34px
}

.info-card{
  position:relative;
  overflow:hidden;

  padding:28px;

  border:1px solid #ffffff0d;
  border-radius:22px;

  background:
    linear-gradient(
      145deg,
      #11131bd9,
      #0b0d13d9
    );

  box-shadow:0 20px 60px #0004;

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease
}

.info-card:before{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-80px;
  top:-80px;
  background:#8b5cf6;
  filter:blur(75px);
  opacity:.11;
  pointer-events:none
}

.info-card:hover{
  transform:translateY(-3px);
  border-color:#8b5cf625;
  box-shadow:0 25px 70px #0006
}

.info-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;

  border-radius:12px;
  background:#1b1628;
  border:1px solid #8b5cf625;

  margin-bottom:22px;

  box-shadow:0 0 25px #8b5cf612
}

.info-icon.purple{
  background:#211734
}

.info-card small{
  color:#a78bfa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.17em
}

.info-card h2{
  font-size:25px;
  line-height:1.05;
  letter-spacing:-.04em;
  margin:10px 0 12px
}

.info-card p{
  color:#717888;
  font-size:12px;
  line-height:1.7
}

.info-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:20px
}

.info-tags span{
  padding:7px 9px;
  border-radius:8px;
  background:#0a0c11;
  border:1px solid #ffffff0c;
  color:#898f9d;
  font-size:8px;
  font-weight:900
}

.made-with{
  margin-top:22px;
  color:#676e7d;
  font-size:9px;
  letter-spacing:.1em;
  font-weight:900
}

.made-with span{
  color:#c084fc;
  font-size:15px;
  margin:0 3px;
  text-shadow:0 0 14px #c084fc
}

.made-with b{
  color:#fff
}

/* FOOTER */

footer{
  text-align:center;
  padding:55px 15px 10px
}

.footer-logo{
  font-weight:950;
  letter-spacing:-.05em;
  font-size:18px
}

.footer-logo i{
  width:7px;
  height:7px
}

footer p{
  max-width:430px;
  margin:14px auto;
  color:#555c6b;
  font-size:11px;
  line-height:1.7
}

.footer-line{
  margin-top:22px;
  color:#5f6675;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em
}

.footer-line span{
  color:#c084fc;
  font-size:15px;
  text-shadow:0 0 15px #c084fc
}

.footer-line b{
  color:#fff
}

.footer-copy{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #ffffff08;
  color:#383e4b;
  font-size:9px
}

/* FLASH */

#flash{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:20;
  opacity:0
}

.flash-win{
  animation:flashWin .55s ease
}

.flash-lose{
  animation:flashLose .4s ease
}

#confetti{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:30;
  overflow:hidden
}

.piece{
  position:absolute;
  width:7px;
  height:12px;
  border-radius:2px;
  animation:fall 1.1s cubic-bezier(.15,.75,.35,1) forwards
}

/* GAME EFFECTS */

.game.win{
  animation:win .55s cubic-bezier(.2,.8,.2,1)
}

.game.win .disc{
  box-shadow:
    0 15px 35px #000,
    0 0 60px #8b5cf666
}

.game.lose{
  animation:shake .42s ease
}

.game.lose .disc{
  filter:brightness(.85)
}

/* ANIMATIONS */

@keyframes spin{
  to{
    transform:rotate(360deg)
  }
}

@keyframes pulse{
  0%,100%{
    transform:scale(.92);
    opacity:.3
  }

  50%{
    transform:scale(1.08);
    opacity:.75
  }
}

@keyframes wave{
  from{
    transform:scaleY(.55)
  }

  to{
    transform:scaleY(1.4)
  }
}

@keyframes win{
  0%{transform:scale(1)}
  50%{transform:scale(1.025)}
  100%{transform:scale(1)}
}

@keyframes shake{
  20%,60%{transform:translateX(-8px)}
  40%,80%{transform:translateX(8px)}
}

@keyframes resultGood{
  0%{
    opacity:0;
    transform:scale(.8) translateY(6px)
  }

  70%{
    transform:scale(1.08)
  }

  100%{
    opacity:1;
    transform:scale(1) translateY(0)
  }
}

@keyframes resultBad{
  0%,100%{transform:translateX(0)}
  20%,60%{transform:translateX(-5px)}
  40%,80%{transform:translateX(5px)}
}

@keyframes flashWin{
  0%{
    opacity:.25;
    background:#7c3aed
  }

  100%{
    opacity:0
  }
}

@keyframes flashLose{
  0%{
    opacity:.18;
    background:#ef4444
  }

  100%{
    opacity:0
  }
}

@keyframes fall{
  to{
    transform:
      translate3d(var(--x),100vh,0)
      rotate(720deg);
    opacity:0
  }
}

/* MOBILE */

@media(max-width:700px){

  header{
    padding:0 4vw
  }

  .header-stats{
    gap:9px
  }

  main{
    padding-top:45px
  }

  .game{
    padding:20px
  }

  .guess{
    flex-direction:column
  }

  .guess button{
    height:46px
  }

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

  .modes{
    gap:5px
  }

  .mode{
    padding:9px 11px;
    font-size:9px
  }

  .info-grid{
    grid-template-columns:1fr
  }

  .community,
  .info-card{
    padding:22px
  }
}
/* =========================
   AMBIENT BACKGROUND
========================= */

body{
  overflow-x:hidden;
  position:relative;
}

.bg{
  position:fixed;
  width:430px;
  height:430px;
  border-radius:50%;
  filter:blur(110px);
  opacity:.18;
  pointer-events:none;
  z-index:0;
}

.b1{
  background:#8b5cf6;
  top:-260px;
  left:8%;
}

.b2{
  background:#2563eb;
  right:-280px;
  bottom:-250px;
}

/* extra subtle ambient glow */
body::before{
  content:"";
  position:fixed;
  width:520px;
  height:520px;
  border-radius:50%;
  background:#8b5cf6;
  filter:blur(160px);
  opacity:.055;
  left:50%;
  top:35%;
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:0;
}

/* keep everything above the background */
header,
main{
  position:relative;
  z-index:1;
}