:root {
  --bg: #191114;
  --c1: #22191c;
  --c2: #261d20;
  --c3: #31282a;
  --tx: #efdfe2;
  --mu: #d5c2c6;
  --ln: #514347;
  --p: #ffb0ca;
  --s: #e2bdc7;
  --t: #f0bc95;
  --onp: #541d34;
  --pc: #6f334a;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--tx);
  font: 16px/1.6 "Google Sans Flex", "Segoe UI", system-ui, sans-serif;
  transition: background .5s, color .5s;
  overflow-x: hidden;
}

.w {
  max-width: 1040px;
  margin: auto;
  padding: 0 20px;
}

a {
  color: var(--p);
}

nav {
  position: sticky;
  top: 0;
  z-index: 9;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ln);
}

nav .w {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 58px;
}

nav b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

nav img {
  width: 26px;
}

nav a {
  text-decoration: none;
  color: var(--mu);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--p);
  color: var(--onp);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
  transition: .2s;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--p) 40%, transparent);
}

.btn.o {
  background: none;
  color: var(--p);
  border: 2px solid var(--p);
}

section {
  padding: 70px 0;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 8px;
}

.sub {
  color: var(--mu);
  margin-bottom: 34px;
  max-width: 620px;
}

.hero {
  text-align: center;
  padding: 50px 0 20px;
}

.hero img.l {
  width: 96px;
  animation: fl 3s ease-in-out infinite;
}

@keyframes fl {
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  margin: 14px 0;
}

h1 span {
  background: linear-gradient(90deg, var(--p), var(--t));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--mu);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 18px;
}

.hero .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.scr {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 760px;
  margin: 36px auto 0;
  border-radius: 18px;
  border: 2px solid var(--ln);
  background: linear-gradient(135deg, var(--c2), var(--bg));
  overflow: hidden;
  box-shadow: 0 20px 60px #0006;
}

.scr .cap {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--mu);
}

.cur {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -4px;
  animation: cu 7s infinite;
  font-size: 20px;
  line-height: 1;
}

@keyframes cu {
  0% {
    top: 60%;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  16%,
  70% {
    top: -2px;
  }

  85% {
    top: 58%;
  }

  100% {
    top: 60%;
    opacity: 0;
  }
}

.game {
  background: #000 radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--t) 40%, #000), #000 60%);
}

.game .hud {
  position: absolute;
  inset: auto 0 30px;
  text-align: center;
  font: 700 22px monospace;
  letter-spacing: 6px;
  color: #fff8;
}

.game .cur {
  animation: cu2 5s infinite;
}

@keyframes cu2 {
  0% {
    top: 70%;
  }

  30%,
  60% {
    top: -2px;
  }

  100% {
    top: 70%;
  }
}

.no {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c1);
  border: 1px solid var(--p);
  color: var(--p);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 13px;
  animation: no 5s infinite;
  opacity: 0;
}

@keyframes no {
  0%,
  28% {
    opacity: 0;
  }

  34%,
  60% {
    opacity: 1;
  }

  70%,
  100% {
    opacity: 0;
  }
}

.g3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--c2);
  border: 1px solid var(--ln);
  border-radius: 20px;
  padding: 22px;
  transition: .25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--p);
}

.card .e {
  font-size: 30px;
  display: block;
  margin-bottom: 6px;
}

.card h3 {
  margin-bottom: 4px;
}

.card p {
  color: var(--mu);
  font-size: 14px;
}

.st {
  counter-reset: n;
}

.st .card {
  position: relative;
  padding-top: 44px;
}

.st .card:before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p);
  color: var(--onp);
  display: grid;
  place-items: center;
  font-weight: 800;
}

code,
kbd {
  background: var(--c3);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: .9em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pc {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ln);
  background: var(--c2);
  color: var(--tx);
  border-radius: 99px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: .2s;
}

.pc:hover {
  transform: scale(1.05);
}

.pc.on {
  border-color: var(--p);
}

.pc u {
  display: flex;
  gap: 3px;
  padding: 5px 7px;
  border-radius: 99px;
  text-decoration: none;
}

.pc u i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media(max-width:760px) {
  .lab {
    grid-template-columns: 1fr;
  }
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.sl {
  background: var(--c3);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--mu);
  cursor: pointer;
}

.sl.on {
  border-color: var(--p);
  background: var(--pc);
  color: var(--tx);
}

.sl i {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin: 0 auto 4px;
  border: 1px solid var(--mu);
}

.rg label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mu);
  margin: 8px 0;
}

.rg label span {
  width: 62px;
}

.rg input {
  flex: 1;
  accent-color: var(--p);
}

.hex {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.hex input {
  background: var(--c3);
  border: 1px solid var(--ln);
  color: var(--tx);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  width: 120px;
}

.tgl {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.dl {
  text-align: center;
  background: linear-gradient(160deg, var(--c2), var(--bg));
  border: 1px solid var(--ln);
  border-radius: 28px;
  padding: 50px 20px;
}

.dl img {
  width: 84px;
  margin-bottom: 8px;
}

.dl small {
  display: block;
  color: var(--mu);
  margin-top: 14px;
}

footer {
  text-align: center;
  color: var(--mu);
  font-size: 13px;
  padding: 30px 0 50px;
  border-top: 1px solid var(--ln);
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
  }
}

.ic {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.2em;
  flex: none;
  display: inline-block;
}

.ic.s {
  width: 1.1em;
  height: 1.1em;
}

.ic.h {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.1em;
  margin-left: .1em;
}

.btn .ic,
.btn svg.i {
  width: 1.2em;
  height: 1.2em;
}

.btn svg.i {
  fill: currentColor;
  flex: none;
}

svg.i.ar {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -.2em;
  margin: 0 .1em;
}

.pc .ic {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.cur img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}

.no {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.no .ic {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

.card .e {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  padding: 8px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--p) 14%, transparent);
}

.card .e img {
  width: 100%;
  height: 100%;
  display: block;
}

.nr b svg.i {
  font-size: 13px;
  color: inherit;
  vertical-align: -2px;
  margin: 0 2px 0 6px;
}

footer .ic {
  vertical-align: -.25em;
}

[data-go],
[data-dl] {
  cursor: pointer;
}

html {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--p) 55%, var(--bg)) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--p), var(--t));
  border-radius: 999px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
  min-height: 48px;
  opacity: .8;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--t), var(--p));
  background-clip: padding-box;
  border-width: 1px;
}

::-webkit-scrollbar-thumb:active {
  background: var(--p);
  background-clip: padding-box;
  border-width: 1px;
}

::-webkit-scrollbar-corner {
  background: transparent;
}
