body.rg-page {
  margin: 0;
  background: #f6f2fb;
  color: #24143a;
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}
body.rg-page a { color: inherit; text-decoration: none; }
.rg-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  min-height: 68px; padding: 0 28px;
  background: #fff; border-bottom: 1px solid #efe6f6;
}
.rg-brand img { height: 32px; width: auto; display: block; }
.rg-card-logo { height: 34px; width: auto; display: block; }
.rg-nav nav { display: flex; align-items: center; gap: 22px; margin-left: 18px; }
.rg-nav nav a { color: #24143a; font-size: 15px; font-weight: 600; }
.rg-nav nav a:hover { color: #3D0191; }
.rg-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rg-login, .rg-access {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.rg-login { color: #3D0191; border: 1.5px solid #d9c4ef; background: #fff; }
.rg-access { background: linear-gradient(100deg, #3D0191, #800182); color: #fff; }
body.rg-page .rg-login { color: #3D0191; }
body.rg-page .rg-access { color: #fff; }
.rg-menu { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; }
.rg-menu span { display: block; height: 2px; margin: 5px 8px; background: #3D0191; border-radius: 2px; }
.rg-stage {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 28px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  min-height: 720px; border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: 0 18px 50px #3d01911f;
}
.rg-hero {
  position: relative; color: #fff; padding: 48px 36px 24px;
  background:
    radial-gradient(circle at 78% 42%, #c45cff55, transparent 28%),
    linear-gradient(160deg, #5b14c6 0%, #3D0191 46%, #800182 100%);
  overflow: hidden;
}
.rg-join {
  display: inline-flex; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: #f0b429; color: #3D0191; font-size: 13px; font-weight: 700;
}
.rg-hero h1 { margin: 0; max-width: 460px; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.5px; }
.rg-hero h1 em { font-style: normal; color: #f0b429; }
.rg-hero > p { max-width: 380px; margin: 14px 0 20px; font-size: 16px; line-height: 1.45; color: #f4e9ff; }
.rg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 280px; position: relative; z-index: 1; }
.rg-points li { display: flex; gap: 10px; align-items: center; }
.rg-points strong, .rg-points li span span { display: block; }
.rg-points strong { font-size: 14px; }
.rg-points li span span { font-size: 12px; color: #eadcff; }
.rg-ico { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.rg-art { position: absolute; right: 8px; bottom: 8px; width: min(52%, 340px); height: auto; max-height: 72%; object-fit: contain; pointer-events: none; }
.rg-card { padding: 32px 28px 24px; background: #fff; min-width: 0; }
.rg-card h2 { margin: 14px 0 0; font-size: 30px; font-weight: 700; color: #1c1230; }
.subtitle { margin: 6px 0 14px; color: #6d6280; font-size: 14px; line-height: 1.4; }
.rg-block { padding: 4px 0 2px; }
#walletButton {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  position: relative; isolation: isolate;
  background: linear-gradient(100deg, #3D0191, #800182); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
@property --ix-energy-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
#walletButton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--ix-energy-angle), transparent 0deg, #3D0191 36deg, #800182 96deg, #F7C600 150deg, #fff4b0 168deg, #F7C600 186deg, transparent 250deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 3px rgba(247, 198, 0, .55)) drop-shadow(0 0 5px rgba(128, 1, 130, .4));
  animation: ix-wallet-energy 2.5s linear infinite;
  pointer-events: none;
}
@keyframes ix-wallet-energy { to { --ix-energy-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  #walletButton::before { animation: none; background: conic-gradient(#3D0191, #800182, #F7C600, #3D0191); }
}
#walletButton svg, #walletButton .wallet-label { position: relative; z-index: 2; }
#walletButton svg { width: 16px; height: 16px; }
.wallet-msg { min-height: 0; margin: 8px 0 0; color: #6d6280; font-size: 13px; }
.wallet-msg:empty { display: none; }
.wallet-msg.error { color: #DB334B; }
.wallet-msg.success { color: #078646; }
.field-label { display: block; margin: 10px 0 6px; color: #3D0191; font-size: 13px; font-weight: 600; }
.field-label span { color: #DB334B; }
.field, .rg-phone select {
  width: 100%; min-height: 44px; box-sizing: border-box;
  border: 1px solid #e4d7f3; border-radius: 12px; background: #F5F1FA; color: #24143a;
  padding: 0 12px; font: inherit; font-size: 14px;
}
.field:focus, .rg-phone select:focus { outline: 2px solid #3D0191; outline-offset: 1px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rg-ref { display: flex; gap: 8px; align-items: center; }
.rg-phone {
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  border: 1px solid #e4d7f3; border-radius: 12px; background: #F5F1FA;
}
.rg-phone select, .rg-phone .field {
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.rg-phone select { width: 92px; flex: none; border-right: 1px solid #e4d7f3; }
.rg-phone .field { flex: 1; min-width: 0; }
.rg-phone:focus-within { outline: 2px solid #3D0191; outline-offset: 1px; }
.rg-phone select:focus, .rg-phone .field:focus { outline: none; }
.outline-btn {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid #3D0191; background: #fff; color: #3D0191;
  font: inherit; font-weight: 700; cursor: pointer;
}
.outline-btn:disabled { opacity: .6; cursor: wait; }
.sponsor-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #F5F1FA; color: #6d6280; font-size: 13px; }
.sponsor-row strong { padding: 4px 8px; border-radius: 999px; background: #fde8ec; color: #DB334B; font-size: 12px; }
.sponsor-row strong.is-ok { background: #e7f6ee; color: #078646; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; color: #3D0191; font-size: 14px; }
.consent a { font-weight: 700; text-decoration: underline; }
.consent input { margin-top: 3px; accent-color: #3D0191; }
#continueButton {
  width: 100%; min-height: 48px; border: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #efe4f8; color: #b7a4cc; font: inherit; font-weight: 700; cursor: not-allowed;
}
#continueButton:not(:disabled) { background: #f0b429; color: #3D0191; cursor: pointer; }
.feedback { display: none; margin-top: 10px; font-size: 13px; line-height: 1.4; }
.feedback.show { display: block; color: #3D0191; }
.feedback.error { color: #DB334B; }
.feedback.success { color: #078646; }
.rg-links { margin: 14px 0 0; text-align: center; color: #5c516e; font-size: 14px; }
body.rg-page .rg-links a { color: #3D0191; font-weight: 700; }
.rg-safe { display: flex; justify-content: center; margin: 14px 0 0; color: #8a7b9e; font-size: 12px; }
@media (max-width: 900px) {
  .rg-nav { min-height: 68px; padding: 0 12px; }
  .rg-brand img { height: 32px; }
  .rg-menu { display: inline-block; }
  .rg-nav nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    margin: 0; padding: 8px 14px 14px; background: #fff; border-bottom: 1px solid #efe6f6;
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
  .rg-nav.is-open nav { display: flex; }
  .rg-login { display: none; }
  .rg-nav.is-open .rg-login { display: inline-flex; }
  .rg-access, .rg-login { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .rg-stage { width: min(100% - 16px, 560px); display: flex; flex-direction: column; margin: 8px auto 12px; min-height: 0; border-radius: 18px; }
  .rg-hero { order: 1; display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 16px 12px 8px; }
  .rg-card { order: 2; padding: 14px 12px 12px; }
  .rg-join, .rg-hero h1, .rg-hero > p, .rg-points { display: none; }
  .rg-art { position: static; width: min(72%, 240px); max-height: none; margin: 0 auto; display: block; }
  .rg-card-logo { height: 26px; }
  .rg-card h2 { margin-top: 8px; font-size: 24px; letter-spacing: -0.02em; }
  .subtitle { margin: 4px 0 12px; font-size: 13px; }
  .rg-block { padding: 8px 0 2px; }
  #walletButton { min-height: 42px; }
  .field-label { margin: 8px 0 4px; font-size: 12px; }
  .field, .outline-btn { min-height: 42px; font-size: 14px; border-radius: 12px; }
  .rg-phone { border-radius: 12px; }
  .rg-phone select, .rg-phone .field { min-height: 42px; font-size: 14px; border-radius: 0; background: transparent; }
  .rg-phone select { width: 84px; padding: 0 8px; }
  .fields-2 { grid-template-columns: 1fr; gap: 0; }
  .rg-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; align-items: end; }
  .rg-pair .field-group { min-width: 0; }
  .rg-pair .field-label { white-space: nowrap; font-size: 11px; }
  .rg-pair .field { font-size: 13px; padding: 0 8px; }
  .rg-pair .rg-phone select { width: 58px; padding: 0 4px; font-size: 13px; }
  .sponsor-row { margin-top: 8px; }
  .consent { margin: 12px 0; font-size: 13px; line-height: 1.35; }
  #continueButton { min-height: 46px; border-radius: 12px; }
  .rg-links { margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
  .rg-safe { margin-top: 10px; }
}
