:root {
  --bg: #170022;
  --bg-deep: #100018;
  --rail: #251438;
  --panel: #2a1940;
  --panel-2: #321b4c;
  --purple: #a83cff;
  --violet: #6d28d9;
  --green: #20e895;
  --blue: #237bff;
  --pink: #ed2b9b;
  --text: #ffffff;
  --muted: #bcaec9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  z-index: 50;
  left: 9px;
  top: 9px;
  bottom: 9px;
  width: 66px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 24px, var(--green) 0 4px, rgba(32,232,149,.28) 5px 8px, transparent 9px),
    linear-gradient(180deg, #2c1941, #211331);
  box-shadow: 0 18px 50px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.05);
}

body::after {
  content: "10k\A●\A⌂\A✦\A♛\A▦\A★\A☾";
  white-space: pre;
  position: fixed;
  z-index: 51;
  left: 9px;
  top: 42px;
  width: 66px;
  color: #dfd7e7;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  line-height: 3.05;
  pointer-events: none;
}

.soft-shell {
  min-height: 100vh;
  margin-left: 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 0, rgba(122, 33, 191, .22), transparent 35rem),
    var(--bg);
}

.forms-head {
  min-height: 86px;
  padding: 16px 34px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font: 900 24px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: .06em;
}

.brand::before {
  content: "M";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #e04cff, #6326db);
  border: 2px solid #fff;
  border-radius: 12px 12px 18px 18px;
  box-shadow: 0 0 0 3px #491572, 0 0 18px rgba(168,60,255,.45);
  font-size: 22px;
}

.forms-head nav,
.inline-actions,
.forms-hero aside > div { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-reg { color: #071c15; background: var(--green); box-shadow: 0 14px 30px rgba(32,232,149,.22); }
.btn-login { background: var(--panel); }

main { padding: 0 30px 40px 10px; }
.forms-hero {
  padding: 12px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: 18px;
  position: relative;
}

.hero-orb {
  position: absolute;
  z-index: 4;
  right: calc(33% - 20px);
  bottom: 18px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), var(--pink));
  border: 7px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(168,60,255,.4);
  transform: rotate(8deg);
}
.hero-orb span { font-weight: 900; }

.hero-copy,
.forms-hero aside {
  min-width: 0;
  min-height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
}

.hero-copy {
  padding: clamp(34px, 5vw, 72px);
  background:
    radial-gradient(circle at 78% 15%, #e654ff 0 8%, transparent 8.5%),
    radial-gradient(circle at 86% 57%, #ffbc2e 0 5%, transparent 5.5%),
    radial-gradient(circle at 70% 74%, #7024df 0 13%, transparent 13.5%),
    linear-gradient(125deg, #431079 0%, #8c22bf 48%, #e52b8c 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.2), 0 22px 50px rgba(0,0,0,.25);
}
.hero-copy::before {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border-radius: 48% 52% 42% 58%;
  background: linear-gradient(145deg, rgba(22,0,34,.12), rgba(21,0,39,.78));
  transform: rotate(-18deg);
  box-shadow: -30px -20px 0 rgba(255,255,255,.08);
}
.eyebrow {
  position: relative;
  z-index: 2;
  color: #f3dfff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-copy h1 {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 18px 0 24px;
  font: 900 clamp(48px, 6vw, 90px)/.9 "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.lead {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #f4e9f8;
  font-size: 18px;
}
.facts {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.facts span {
  padding: 10px 14px;
  color: #fff;
  background: rgba(38,13,57,.48);
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.forms-hero aside {
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 75% 24%, rgba(255,255,255,.26) 0 7%, transparent 7.5%),
    radial-gradient(circle at 70% 34%, rgba(255,255,255,.15) 0 15%, transparent 15.5%),
    linear-gradient(140deg, #092f8e, #176aff 48%, #6a24dd);
  box-shadow: inset 0 1px rgba(255,255,255,.22), 0 22px 50px rgba(0,0,0,.25);
}
.forms-hero aside::before {
  content: "30%";
  position: absolute;
  right: 25px;
  top: 22px;
  color: #fff;
  font: 900 64px/1 "Arial Narrow", Arial, sans-serif;
  opacity: .2;
  transform: rotate(-8deg);
}
.forms-hero aside p { position: relative; z-index: 2; max-width: 430px; }
.forms-hero aside .eyebrow { color: #fff; font-size: 18px; letter-spacing: .02em; }
.forms-hero aside .btn-login { background: rgba(16,0,36,.62); }

.forms-grid {
  padding: 72px 0 92px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 18px;
  position: relative;
}
.forms-grid::before {
  content: "✦  Лобби     ◆  Популярные     ●  Новинки     ♛  Слоты     ⚡  Быстрые игры";
  grid-column: 1 / -1;
  margin-bottom: 10px;
  padding: 16px 20px;
  color: #f5eaff;
  background: var(--panel);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  word-spacing: 8px;
}

.form-card {
  grid-column: span 4;
  overflow: hidden;
  background: #211132;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}
.form-card header {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #8d21d1, #e12d93);
}
.form-card:nth-child(2) header { background: linear-gradient(145deg, #1263db, #17b8ed); }
.form-card:nth-child(3) header { background: linear-gradient(145deg, #ef7f21, #ec2d70); }
.form-card:nth-child(4) header { background: linear-gradient(145deg, #3720a3, #9229d6); }
.form-card:nth-child(5) header { background: linear-gradient(145deg, #058761, #21d3a3); }
.form-card:nth-child(6) header { background: linear-gradient(145deg, #d21981, #7923c3); }
.form-card:nth-child(7) header { background: linear-gradient(145deg, #2549c8, #6325cb); }
.form-card header::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -55px;
  bottom: -55px;
  border: 30px solid rgba(255,255,255,.14);
  border-radius: 50%;
  transform: rotate(-20deg);
}
.form-card header span {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20,0,32,.42);
  border-radius: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.form-card h2 {
  position: relative;
  z-index: 2;
  margin: 28px 0 0;
  font: 900 clamp(29px, 3.2vw, 46px)/.98 "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
}
.form-body { padding: 28px; }
.form-body p { color: var(--muted); }
.form-body .inline-actions { margin-top: 24px; }

.forms-faq {
  margin: 0 0 70px;
  padding: 54px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
  background: linear-gradient(135deg, #31154d, #21102f);
  border-radius: 26px;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.forms-faq header span { color: var(--green); font: 900 88px/1 "Arial Narrow", Arial, sans-serif; }
.forms-faq h2 { margin: 10px 0; font: 900 clamp(38px,5vw,64px)/.96 "Arial Narrow",Arial,sans-serif; text-transform: uppercase; }
.forms-faq details { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); }
.forms-faq summary { cursor: pointer; font-weight: 900; }
.forms-faq p { color: var(--muted); }

footer {
  margin: 0 30px 30px 10px;
  padding: 30px;
  display: grid;
  grid-template-columns: 70px minmax(0,1fr) auto;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  background: #12041c;
  border-radius: 18px;
}
.seal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #09251a;
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}
footer > span { color: #fff; font-weight: 900; }
.mobile-dock { display: none; }

@media (max-width: 1050px) {
  .forms-hero { grid-template-columns: 1fr; }
  .hero-orb { right: 24px; bottom: 20px; }
  .form-card { grid-column: span 6; }
}

@media (max-width: 760px) {
  body::before,
  body::after { display: none; }
  .soft-shell { margin-left: 0; }
  .forms-head { min-height: 70px; padding: 14px 18px; }
  .forms-head nav { display: none; }
  .brand { font-size: 17px; }
  .brand::before { width: 32px; height: 32px; font-size: 18px; }
  main { padding: 0 14px 30px; }
  .forms-hero { display: block; padding: 10px 0 48px; }
  .hero-copy,
  .forms-hero aside { min-height: 0; border-radius: 20px; }
  .hero-copy { padding: 38px 22px 46px; }
  .hero-copy::before { width: 210px; height: 210px; right: -80px; bottom: -80px; }
  .hero-copy h1 { font-size: 38px; line-height: .96; overflow-wrap: anywhere; }
  .lead { font-size: 16px; }
  .facts { display: grid; }
  .forms-hero aside { margin-top: 14px; padding: 36px 22px; }
  .hero-orb { width: 62px; height: 62px; right: 18px; bottom: 20px; border-width: 5px; }
  .forms-grid { padding: 54px 0 68px; display: block; }
  .forms-grid::before { display: block; margin-bottom: 16px; line-height: 2.1; word-spacing: 2px; }
  .form-card { margin-bottom: 16px; }
  .form-card header { min-height: 180px; padding: 24px 20px; }
  .form-card h2 { font-size: 34px; overflow-wrap: anywhere; }
  .form-body { padding: 24px 20px; }
  .forms-faq { margin: 0 -14px 60px; padding: 48px 20px 98px; grid-template-columns: 1fr; gap: 22px; border-radius: 0; }
  .forms-faq header span { font-size: 66px; }
  .forms-faq h2 { font-size: 38px; }
  footer { margin: 0; padding: 28px 18px 96px; grid-template-columns: 58px minmax(0,1fr); border-radius: 0; }
  footer > span { display: none; }
  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px;
    display: flex;
    gap: 8px;
    background: rgba(23,0,34,.92);
    border-top: 1px solid rgba(168,60,255,.38);
    backdrop-filter: blur(14px);
  }
  .mobile-dock .btn { min-width: 0; flex: 1 1 0; padding: 9px 4px; font-size: 10px; }
}
