* {
  box-sizing: border-box;
}

:root {
  --bg: #090d18;
  --bg-soft: #101728;
  --panel: rgba(21, 29, 50, 0.82);
  --panel-2: rgba(12, 18, 33, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f8ff;
  --muted: #aab3cc;
  --green: #6cff86;
  --cyan: #5ce1e6;
  --purple: #9d6cff;
  --pink: #ff70d6;
  --yellow: #ffd86c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 12%, rgba(79, 67, 153, .28), transparent 35rem),
    radial-gradient(circle at 75% 25%, rgba(25, 120, 105, .18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

code {
  color: var(--cyan);
}

.pixel-sky {
  position: absolute;
  top: 96px;
  right: 7vw;
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,.8);
  box-shadow:
    -16vw 5vh 0 rgba(255,255,255,.25),
    -5vw 13vh 0 rgba(255,255,255,.5),
    4vw 19vh 0 rgba(255,255,255,.2),
    -31vw 25vh 0 rgba(255,255,255,.25),
    -62vw 7vh 0 rgba(255,255,255,.25),
    -74vw 32vh 0 rgba(255,255,255,.2),
    -47vw 42vh 0 rgba(255,255,255,.16),
    -12vw 48vh 0 rgba(255,255,255,.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(9, 13, 24, .72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.05);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  letter-spacing: -0.04em;
}

.brand-cube {
  width: 30px;
  height: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(135deg, var(--green), #2aa862);
  border: 3px solid #173d29;
  box-shadow:
    inset -5px -5px 0 rgba(0,0,0,.18),
    0 0 24px rgba(108,255,134,.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.nav .nav-accent {
  color: #0b111a;
  background: var(--green);
}

.nav .nav-accent:hover {
  color: #0b111a;
  background: #8aff9e;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.narrow {
  width: min(850px, calc(100% - 40px));
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
  padding-top: 60px;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 20px 0 20px;
  max-width: 760px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1.08;
  letter-spacing: -.07em;
  text-transform: uppercase;
  text-shadow: 0 9px 0 rgba(0,0,0,.22);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07110a;
  background: linear-gradient(135deg, var(--green), #64df9b);
  box-shadow: 0 12px 34px rgba(89, 241, 132, .2);
}

.btn-primary strong {
  padding-left: 10px;
  border-left: 1px solid rgba(0,0,0,.16);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.11);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.18);
}

.wide {
  width: 100%;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.status-card {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 15px;
}

.status-card small {
  display: block;
  margin-bottom: 3px;
  color: #79829c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.status-card strong {
  font-size: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(108,255,134,.09), 0 0 18px rgba(108,255,134,.5);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(157,108,255,.12);
  color: var(--purple);
}

.hero-art {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,75,207,.27), rgba(22,44,56,.06) 56%, transparent 70%);
  filter: blur(10px);
}

.floating-island {
  position: relative;
  width: 380px;
  height: 380px;
  transform: rotateX(54deg) rotateZ(-35deg);
  filter: drop-shadow(0 42px 36px rgba(0,0,0,.45));
  animation: float 5.4s ease-in-out infinite;
}

.block,
.tree-leaves,
.tree-trunk,
.portal {
  position: absolute;
  width: 92px;
  height: 92px;
  box-shadow:
    inset -11px -11px 0 rgba(0,0,0,.14),
    inset 7px 7px 0 rgba(255,255,255,.08);
  border: 1px solid rgba(0,0,0,.18);
}

.grass {
  background:
    linear-gradient(#5dce61 0 24%, #76604a 24% 100%);
}

.dirt {
  background:
    linear-gradient(135deg, #846646, #5d4935);
}

.stone {
  background:
    linear-gradient(135deg, #878e96, #5e646d);
}

.diamond {
  background:
    linear-gradient(135deg, #64ecdf, #21b6c4);
}

.b1 { left: 75px; top: 108px; }
.b2 { left: 167px; top: 108px; }
.b3 { left: 167px; top: 200px; }
.b4 { left: 75px; top: 200px; }
.b5 { left: 259px; top: 108px; }
.b6 { left: 167px; top: 292px; }
.b7 { left: 259px; top: 200px; transform: translateZ(-6px); }

.tree {
  position: absolute;
  left: 123px;
  top: 53px;
  width: 100px;
  height: 180px;
  transform: rotateZ(35deg) rotateX(-54deg) translateZ(68px);
  transform-style: preserve-3d;
}

.tree-trunk {
  left: 35px;
  bottom: 2px;
  width: 28px;
  height: 90px;
  background: #77513a;
}

.tree-leaves {
  width: 72px;
  height: 72px;
  background: #3ba84e;
}

.l1 { left: 14px; top: 5px; }
.l2 { left: -8px; top: 32px; }
.l3 { left: 38px; top: 32px; }

.portal {
  left: 278px;
  top: 33px;
  width: 74px;
  height: 116px;
  padding: 12px;
  background: #262234;
  transform: rotateZ(35deg) rotateX(-54deg) translateZ(78px);
}

.portal-inner {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, var(--pink), transparent 18%),
    radial-gradient(circle at 72% 62%, #7655ff, transparent 24%),
    linear-gradient(135deg, #341c72, #8b38cb);
  box-shadow: inset 0 0 22px #c95cff, 0 0 20px rgba(157,108,255,.42);
  animation: portalGlow 1.8s ease-in-out infinite alternate;
}

@keyframes float {
  0%, 100% { transform: rotateX(54deg) rotateZ(-35deg) translateY(0); }
  50% { transform: rotateX(54deg) rotateZ(-35deg) translateY(-16px); }
}

@keyframes portalGlow {
  to { filter: brightness(1.28); }
}

.section h2 {
  margin: 18px 0 20px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature-card,
.rules-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--panel-2);
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -40px;
  bottom: -40px;
  border-radius: 24px;
  background: rgba(108,255,134,.05);
  transform: rotate(20deg);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  font-size: 28px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.feature-card h3,
.rules-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-card p,
.rules-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shop-section {
  width: min(1280px, calc(100% - 28px));
  padding: 72px 50px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 34px;
  background:
    radial-gradient(circle at 0 0, rgba(157,108,255,.16), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(92,225,230,.1), transparent 30%),
    rgba(12,18,33,.74);
  box-shadow: var(--shadow);
}

.shop-heading {
  display: grid;
  grid-template-columns: 1fr .55fr;
  gap: 40px;
  align-items: end;
}

.shop-heading > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.privilege-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.privilege-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b1120;
  transition: .2s ease;
}

.privilege-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.17);
}

.privilege-card.featured {
  border-color: rgba(108,255,134,.34);
  box-shadow: 0 18px 45px rgba(67, 202, 108, .1);
}

.privilege-card.featured::before {
  content: "ПОПУЛЯРНО";
  position: absolute;
  top: 14px;
  right: -34px;
  padding: 7px 38px;
  background: var(--green);
  color: #08100a;
  font-size: 9px;
  font-weight: 900;
  transform: rotate(38deg);
}

.privilege-rank {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #08110b;
  background: var(--rank-color, var(--green));
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}

.privilege-card h3 {
  margin: 0 0 7px;
  font-size: 28px;
}

.price {
  margin-bottom: 20px;
  color: var(--muted);
}

.price strong {
  color: var(--text);
  font-size: 29px;
}

.perks {
  display: grid;
  gap: 10px;
  min-height: 148px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.perks li {
  position: relative;
  padding-left: 22px;
  color: #c6cce0;
  font-size: 14px;
  line-height: 1.45;
}

.perks li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--rank-color, var(--green));
}

.parent-note {
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid rgba(255,216,108,.18);
  border-radius: 14px;
  color: #d3d6df;
  background: rgba(255,216,108,.055);
  font-size: 14px;
  line-height: 1.6;
}

.parent-note strong {
  color: var(--yellow);
}

.buy-section {
  width: min(1100px, calc(100% - 40px));
}

.buy-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0, rgba(108,255,134,.08), transparent 28%),
    var(--panel-2);
  box-shadow: var(--shadow);
}

.buy-info > p {
  color: var(--muted);
  line-height: 1.7;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d5daea;
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(108,255,134,.2);
  border-radius: 10px;
  color: var(--green);
  background: rgba(108,255,134,.07);
  font-weight: 900;
}

.request-form {
  display: grid;
  gap: 16px;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: #dce2f4;
  font-size: 13px;
  font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.11);
  outline: 0;
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  transition: .15s ease;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: rgba(108,255,134,.48);
  box-shadow: 0 0 0 4px rgba(108,255,134,.06);
}

.request-form textarea {
  min-height: 105px;
  resize: vertical;
}

.request-form select option {
  background: #101728;
}

.generated-request {
  margin-top: 6px;
  padding: 15px;
  border: 1px solid rgba(92,225,230,.19);
  border-radius: 14px;
  background: rgba(92,225,230,.05);
}

.generated-title {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.generated-request pre {
  white-space: pre-wrap;
  color: #dce3ee;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.hidden {
  display: none;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.rules-grid article {
  min-height: auto;
}

.rules-grid article > span {
  display: inline-block;
  margin-bottom: 35px;
  color: var(--purple);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
}

.footer p {
  margin: 10px 0 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.legal {
  grid-column: 1 / -1;
  max-width: 720px;
  line-height: 1.55;
  opacity: .72;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform: translate(-50%, 20px);
  pointer-events: none;
  opacity: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(12,18,33,.94);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    min-height: 440px;
    order: -1;
  }

  .floating-island {
    transform: scale(.82) rotateX(54deg) rotateZ(-35deg);
  }

  @keyframes float {
    0%, 100% { transform: scale(.82) rotateX(54deg) rotateZ(-35deg) translateY(0); }
    50% { transform: scale(.82) rotateX(54deg) rotateZ(-35deg) translateY(-15px); }
  }

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

  .shop-heading,
  .buy-panel {
    grid-template-columns: 1fr;
  }

  .shop-section {
    padding: 60px 28px;
  }
}

@media (max-width: 740px) {
  .topbar {
    margin: 0 10px;
    padding: 15px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    margin: 0 10px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0d1425;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 70px 0;
  }

  .hero {
    gap: 20px;
    padding-top: 26px;
  }

  .hero-art {
    min-height: 330px;
    margin-top: -15px;
  }

  .floating-island {
    transform: scale(.62) rotateX(54deg) rotateZ(-35deg);
  }

  @keyframes float {
    0%, 100% { transform: scale(.62) rotateX(54deg) rotateZ(-35deg) translateY(0); }
    50% { transform: scale(.62) rotateX(54deg) rotateZ(-35deg) translateY(-14px); }
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 64px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .status-card {
    flex: 1 1 130px;
  }

  .feature-grid,
  .privilege-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .shop-section {
    width: min(100% - 18px, 1280px);
    padding: 48px 18px;
    border-radius: 26px;
  }

  .shop-heading {
    gap: 6px;
  }

  .buy-panel {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}


.connection-actions {
  flex-wrap: wrap;
}

.connection-btn {
  flex-direction: column;
  align-items: flex-start;
  min-width: 215px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.connection-btn span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .72;
}

.connection-btn strong {
  padding-left: 0;
  border-left: 0;
  font-size: 14px;
}


/* ===== Relics ===== */
.relic-section {
  width: min(1180px, calc(100% - 40px));
}

.relic-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  align-items: end;
}

.relic-heading .section-copy strong {
  color: var(--text);
}

.relic-rule {
  padding: 24px;
  border: 1px solid rgba(255, 112, 214, .18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(157,108,255,.11), rgba(255,112,214,.055));
}

.relic-rule > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(157,108,255,.13);
  color: var(--purple);
  font-size: 22px;
}

.relic-rule strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.relic-rule p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.relic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.relic-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-2);
}

.relic-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .18;
}

.mace-card::after { background: var(--yellow); }
.spear-card::after { background: var(--cyan); }

.relic-label {
  margin-bottom: 18px;
  color: var(--yellow);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: .06em;
}

.spear-card .relic-label { color: var(--cyan); }

.relic-icon {
  margin-bottom: 20px;
  font-size: 44px;
}

.relic-card h3 {
  margin: 0 0 12px;
  font-size: 30px;
}

.relic-card p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.relic-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.relic-facts span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: #d8dced;
  font-size: 12px;
  font-weight: 700;
}

.relic-note,
.kit-note {
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(92,225,230,.14);
  border-radius: 14px;
  background: rgba(92,225,230,.045);
  color: #cdd4e7;
  line-height: 1.6;
  font-size: 14px;
}

.kit-note strong { color: var(--cyan); }

/* ===== Connect ===== */
.connect-section {
  width: min(1080px, calc(100% - 40px));
}

.connect-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.voice-pill {
  margin-bottom: 24px;
  padding: 11px 14px;
  border: 1px solid rgba(108,255,134,.18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(108,255,134,.06);
  font-weight: 800;
  white-space: nowrap;
}

.edition-tabs {
  display: inline-flex;
  gap: 6px;
  margin-top: 34px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.edition-tab {
  min-width: 160px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.edition-tab.active {
  color: #09110b;
  background: var(--green);
}

.edition-panel {
  display: none;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-2);
}

.edition-panel.active { display: grid; }

.join-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 165px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.join-card small {
  margin-bottom: 8px;
  color: #7f89a5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.join-card strong {
  margin-bottom: 20px;
  word-break: break-word;
  font-size: clamp(21px, 3vw, 31px);
}

.join-card .btn { width: 100%; }

.bedrock-fields {
  display: grid;
  gap: 12px;
}

.join-steps {
  display: grid;
  gap: 10px;
}

.join-steps > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
}

.join-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--green);
  background: rgba(108,255,134,.07);
  font-weight: 900;
}

.join-steps p {
  margin: 0;
  color: #cbd2e6;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .relic-heading,
  .relic-grid,
  .connect-heading,
  .edition-panel.active {
    grid-template-columns: 1fr;
  }

  .voice-pill { width: fit-content; margin-bottom: 0; }
}

@media (max-width: 520px) {
  .edition-tabs { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .edition-tab { min-width: 0; }
  .edition-panel { padding: 16px; }
  .relic-card { padding: 22px; }
}


/* ===== Happy Vibe v4 additions ===== */
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

.hero-logo-card {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 220px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(11,17,32,.72);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transform: rotate(-6deg);
}

.hero-logo-card img,
.relic-logo {
  display: block;
  width: 100%;
  height: auto;
}

.relics-section {
  width: min(1280px, calc(100% - 28px));
}

.relics-panel {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 34px;
  background: radial-gradient(circle at 0 0, rgba(255,216,108,.08), transparent 22%), rgba(12,18,33,.78);
  box-shadow: var(--shadow);
}

.relic-logo-wrap {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.03);
}

.relic-copy > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.relic-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.relic-mini-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}

.relic-mini-grid h3 {
  margin: 0 0 8px;
}

.relic-mini-grid p,
.policy-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.policy-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(92,225,230,.16);
  border-radius: 14px;
  background: rgba(92,225,230,.05);
}

.kit-note {
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
}

.request-status {
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.request-status.ok {
  border: 1px solid rgba(108,255,134,.18);
  background: rgba(108,255,134,.07);
  color: #dff6e4;
}

.request-status.warn {
  border: 1px solid rgba(255,112,214,.18);
  background: rgba(255,112,214,.08);
  color: #ffdff4;
}

@media (max-width: 980px) {
  .relics-panel { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .brand-logo { width: 34px; height: 34px; }
  .hero-logo-card {
    position: relative;
    top: auto;
    right: auto;
    width: min(220px, 70vw);
    margin: 0 auto 18px;
    transform: rotate(-3deg);
  }
  .relics-panel { padding: 24px 18px; border-radius: 24px; }
  .relic-mini-grid { grid-template-columns: 1fr; }
}

/* ===== Happy Vibe v5 ===== */
.kit-title {
  margin: 18px 0 10px;
  color: var(--rank-color, var(--green));
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 1.6;
}

.kit-list {
  min-height: 175px;
}

.privilege-perks {
  min-height: 140px;
}

.privilege-divider {
  height: 1px;
  margin: 4px 0 18px;
  background: rgba(255,255,255,.08);
}

.buy-caption {
  display: block;
  margin-top: 10px;
  color: #8d96af;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.request-form button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

@media (max-width: 980px) {
  .kit-list, .privilege-perks { min-height: auto; }
}


/* v5.1 — compact header logo */
.topbar .brand-logo {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  object-fit: contain;
}
.topbar .brand {
  gap: 9px;
}
@media (max-width: 740px) {
  .topbar .brand-logo {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px;
  }
}


/* v5.2 — hard limit for header logo */
.topbar .brand > img.brand-logo {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px !important;
  object-fit: contain !important;
  display: block !important;
}
.topbar { min-height: 64px; }


/* ===== Happy Vibe v5.3 connect fix ===== */
.edition-panel[hidden] { display: none !important; }
.edition-panel.active:not([hidden]) { display: grid; }

.compact-copy {
  align-self: flex-start;
  width: auto !important;
  min-height: 46px;
  padding: 0 18px;
}

.address-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.address-field small {
  grid-column: 1 / -1;
  margin: 0;
}

.address-field strong {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 26px);
}

.mini-copy {
  padding: 9px 12px;
  border: 1px solid rgba(108,255,134,.22);
  border-radius: 10px;
  background: rgba(108,255,134,.08);
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.mini-copy:hover { background: rgba(108,255,134,.14); }

.join-card > strong#javaAddress {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
}

.join-steps p { margin: 0; color: #d7dced; line-height: 1.45; }

@media (max-width: 740px) {
  .connect-heading { grid-template-columns: 1fr; }
  .voice-pill { justify-self: start; margin-bottom: 0; }
  .edition-tabs { width: 100%; }
  .edition-tab { min-width: 0; flex: 1; }
  .edition-panel.active:not([hidden]) { grid-template-columns: 1fr; }
  .address-field { grid-template-columns: 1fr; }
  .mini-copy { justify-self: start; }
}


/* Happy Vibe v5.4 — privilege cards */
.privilege-grid {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.privilege-card .price strong {
  font-size: 22px;
}


/* ===== Happy Vibe v5.5: visitor voice-chat guide ===== */
.voicechat-section {
  width: min(1180px, calc(100% - 40px));
}

.voicechat-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.voicechat-lead {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.voicechat-badge {
  padding: 12px 15px;
  border: 1px solid rgba(108,255,134,.2);
  border-radius: 999px;
  background: rgba(108,255,134,.07);
  color: var(--green);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  white-space: nowrap;
}

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

.voice-step-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.018)), var(--panel-2);
}

.voice-step-card.voice-wide {
  grid-column: 1 / -1;
}

.voice-step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--green);
  color: #07110a;
  font-weight: 900;
}

.voice-step-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.voice-step-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.voice-link {
  width: fit-content;
  min-width: 210px;
}

.voice-path {
  padding: 11px 13px;
  border: 1px solid rgba(92,225,230,.16);
  border-radius: 12px;
  background: rgba(92,225,230,.05);
  color: #dce9ee;
  overflow-wrap: anywhere;
}

.voice-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.voice-keys div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 28px;
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #182033;
  color: #fff;
  font: 800 12px Inter, sans-serif;
}

.voice-warning,
.voice-help {
  margin-top: 14px;
  padding: 15px 17px;
  border-radius: 14px;
  line-height: 1.6;
}

.voice-warning {
  border: 1px solid rgba(255,216,108,.18);
  background: rgba(255,216,108,.055);
  color: #e5dfc6;
}

.voice-help {
  border: 1px solid rgba(157,108,255,.16);
  background: rgba(157,108,255,.05);
  color: var(--muted);
}

.voice-help a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 740px) {
  .voicechat-head { grid-template-columns: 1fr; gap: 12px; }
  .voice-install-grid { grid-template-columns: 1fr; }
  .voice-step-card.voice-wide { grid-column: auto; }
  .voice-link { width: 100%; min-width: 0; }
}
