:root {
  color-scheme: dark;
  --bg: #12071e;
  --panel: rgba(24, 13, 40, 0.86);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #b9afd0;
  --accent: #8b5cf6;
  --accent-2: #c084fc;
  --accent-3: #4c1d95;
  --gold: #d8b4fe;
  --good: #62d58e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 16% -10%, rgba(72, 18, 122, 0.22), transparent 34%),
    radial-gradient(circle at 84% 6%, rgba(61, 16, 112, 0.2), transparent 30%),
    linear-gradient(135deg, #020006 0%, #05000d 38%, #0a0017 70%, #120027 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(192, 132, 252, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.075) 1px, transparent 1px);
  background-size: 36px 36px;
  filter: blur(0.7px);
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

#app {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 14px 0 32px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: rgba(22, 13, 36, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-wrap,
.brand,
.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-align: left;
  padding: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  color: #160421;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover,
.product-card:hover,
.play-btn:hover,
.pay-btn:hover,
.footer-links button:hover,
.footer-links a:hover,
.back-btn:hover {
  transform: translateY(-1px);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: var(--text);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.status-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.content {
  margin-top: 16px;
}

.monitor,
.detail,
.description-block,
.soon,
.agreement,
.doc-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(24, 13, 40, 0.9), rgba(24, 13, 40, 0.72));
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.24);
  color: #dfc7ff;
  font-weight: 900;
  font-size: 12px;
}

h1,
h2,
p {
  margin-top: 0;
}

.soon h1,
.agreement h1 {
  margin: 14px 0 10px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: 0;
}

.section-head p,
.doc-note,
.doc-card p,
.soon p {
  color: var(--muted);
  line-height: 1.55;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.tabs button,
.footer-links button,
.footer-links a,
.back-btn {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tabs button span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #efe5ff;
  font-size: 12px;
}

.tabs button.active {
  border-color: rgba(192, 132, 252, 0.6);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.36), rgba(241, 193, 90, 0.14));
}

.section-head {
  margin: 22px 2px 14px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(24, 13, 40, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.product-card:hover {
  border-color: rgba(192, 132, 252, 0.42);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  color: #e8d8ff;
  border: 1px solid rgba(192, 132, 252, 0.25);
  font-size: 12px;
  font-weight: 900;
}

.product-art {
  width: 140px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin: 18px auto 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.product-art img,
.detail-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-name {
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 8px;
}

.product-desc {
  color: var(--muted);
  line-height: 1.45;
  min-height: 42px;
}

.price-row,
.detail-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.price-row strong,
.detail-price strong {
  color: var(--gold);
  font-size: 22px;
}

del {
  color: rgba(255, 255, 255, 0.46);
}

em {
  font-style: normal;
  color: var(--good);
  font-weight: 900;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 14px;
}

.detail {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 20px;
  border-radius: 28px;
  padding: 18px;
}

.detail-media {
  min-height: 430px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(192, 132, 252, 0.24), transparent 48%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}

.detail-art {
  width: min(340px, 84%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.detail-body {
  padding: 12px 6px;
}

.detail-body h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.95;
}

.checkout {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.checkout label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.checkout input,
.checkout select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.checkout input:focus,
.checkout select:focus {
  border-color: rgba(192, 132, 252, 0.58);
}

.sapphire-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(94, 219, 255, 0.28);
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.07);
}

.sapphire-picker-head,
.sapphire-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.sapphire-picker-head strong,
.sapphire-picker-foot strong {
  color: #7fe7ff;
  font-size: 15px;
}

.sapphire-picker input[type="range"] {
  width: 100%;
  accent-color: #38bdf8;
}

.promo-line {
  color: var(--muted);
  font-size: 13px;
}

.pay-btn,
.play-btn {
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  color: #160421;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.24);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.description-block {
  margin-top: 16px;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
}

.description-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.description-block li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.045);
  color: #eee7ff;
}

.description-block li::before {
  content: "✦";
  color: var(--accent-2);
  margin-right: 10px;
}

.details-toggle {
  min-height: 44px;
  margin: 16px auto 0;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(192, 132, 252, 0.34);
  background: rgba(139, 92, 246, 0.16);
  color: #efe5ff;
  font-weight: 950;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.details-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(139, 92, 246, 0.24);
}

.monitor {
  margin-top: 18px;
  border-radius: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: center;
}

.monitor-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.monitor h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 5vw, 46px);
}

.monitor p {
  margin-bottom: 12px;
  color: var(--muted);
}

.connection-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.copy-address,
.connection-version {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.copy-address {
  transition: border-color 0.18s ease, background 0.18s ease;
}

.copy-address:hover {
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(139, 92, 246, 0.16);
}

.copy-address span {
  color: #d8b4fe;
}

.copy-address strong {
  color: var(--text);
}

.monitor strong {
  color: var(--text);
}

.xpbar {
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.xpbar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #62d58e, #c084fc, #f1c15a);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.footer-links button,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
}

.soon,
.agreement {
  border-radius: 28px;
  padding: clamp(24px, 5vw, 48px);
}

.soon {
  min-height: 360px;
}

.doc-card {
  border-radius: 22px;
  padding: 20px;
  margin-top: 12px;
}

.doc-card h2 {
  margin-bottom: 8px;
  color: #f3ddff;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.rule-line {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(192, 132, 252, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: #f1ebff;
  line-height: 1.55;
}

.rule-line strong {
  color: #f6d6ff;
}

.rule-penalty {
  display: inline-block;
  margin-top: 6px;
  color: #f1c15a;
  font-weight: 900;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 3, 9, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  width: min(340px, calc(100vw - 28px));
  height: 100%;
  padding: 16px;
  background: rgba(22, 13, 36, 0.96);
  border-right: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.drawer-brand strong {
  font-size: 24px;
}

.drawer-nav {
  display: grid;
  gap: 10px;
}

.drawer-nav button {
  min-height: 50px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  padding: 0 14px;
  font-weight: 900;
}

.drawer-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.drawer-socials a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(76, 29, 149, 0.42));
  font-weight: 900;
}

.section-head,
.detail,
.description-block,
.monitor,
.footer-links,
.soon,
.agreement {
  animation: fadeSlide 0.34s ease both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke-strong);
  background: rgba(22, 13, 36, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
}

.toast.hidden {
  display: none;
}

@media (max-width: 840px) {
  #app {
    width: min(100% - 18px, 1180px);
  }

  .topbar {
    border-radius: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .status-chip {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail,
  .monitor {
    grid-template-columns: 1fr;
  }

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

  .product-grid,
  .description-block ul {
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: 300px;
  }

  .monitor {
    align-items: stretch;
  }
}

@media (max-width: 440px) {
  .topbar-meta .icon-btn {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .soon h1,
  .agreement h1 {
    font-size: 48px;
  }
}
