:root {
  --void: #070403;
  --ash: #120907;
  --obsidian: rgba(12, 7, 6, 0.94);
  --obsidian-strong: rgba(18, 9, 7, 0.98);
  --line: rgba(255, 108, 37, 0.24);
  --line-hot: rgba(255, 69, 28, 0.68);
  --gold: #f5c66f;
  --gold-dim: #b8863e;
  --ember: #ff4b24;
  --ember-deep: #941c13;
  --lava: #ff7a1a;
  --blood: #64110c;
  --text: #fff2d5;
  --muted: #b99a78;
  --green: #41f2a4;
  --green-soft: rgba(65, 242, 164, 0.14);
  --red: #ff3e32;
  --red-soft: rgba(255, 62, 50, 0.14);
  --panel-shadow: 0 34px 120px rgba(0, 0, 0, 0.72), 0 0 70px rgba(255, 63, 24, 0.17);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #050101;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background-color: #050101;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 18%, #000, transparent 72%);
}

a,
button,
input {
  font: inherit;
}

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

button {
  border: 0;
}

.animated-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #050101;
}

.animated-bg-image {
  position: absolute;
  inset: -5%;
  background-image: url("/assets/hozweky-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05) translate3d(0, 0, 0);
  animation: hozweky-bg-move 18s ease-in-out infinite alternate;
  will-change: transform;
}

.animated-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at 50% 20%, rgba(255, 80, 20, 0.12), transparent 35%),
    radial-gradient(circle at 10% 70%, rgba(255, 30, 15, 0.16), transparent 32%);
  animation: lava-overlay-breathe 7s ease-in-out infinite alternate;
}

.ember-rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.ember-particle {
  position: absolute;
  top: -12vh;
  left: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(var(--x), -12vh, 0) scale(0.7);
  background:
    radial-gradient(circle,
      rgba(255, 238, 178, 1) 0%,
      rgba(255, 132, 37, 0.95) 35%,
      rgba(255, 45, 18, 0.35) 65%,
      rgba(255, 45, 18, 0) 100%);
  box-shadow:
    0 0 8px rgba(255, 185, 90, 0.95),
    0 0 18px rgba(255, 80, 20, 0.65),
    0 0 32px rgba(255, 25, 10, 0.28);
  animation: ember-visible-fall var(--duration) linear var(--delay) infinite;
  will-change: transform, opacity;
}

@keyframes hozweky-bg-move {
  0% {
    transform: scale(1.05) translate3d(-24px, -14px, 0);
  }
  50% {
    transform: scale(1.09) translate3d(24px, 12px, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-12px, 24px, 0);
  }
}

@keyframes lava-overlay-breathe {
  from { opacity: 0.7; }
  to { opacity: 0.95; }
}

@keyframes ember-visible-fall {
  0% {
    opacity: 0;
    transform: translate3d(var(--x), -12vh, 0) scale(0.5);
  }
  8% {
    opacity: var(--opacity);
  }
  75% {
    opacity: var(--opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--x) + var(--drift)), 115vh, 0) scale(1.1);
  }
}

.page-shell {
  position: relative;
  z-index: 5;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 38px;
}

.hero {
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: 28px 0 48px;
  text-align: center;
}

.brand-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  padding: 8px;
  object-fit: contain;
  border: 1px solid rgba(255, 213, 132, 0.62);
  border-radius: 18px 4px 18px 4px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 106, 38, 0.18), rgba(24, 6, 4, 0.92) 68%),
    rgba(9, 4, 3, 0.78);
  box-shadow: 0 0 34px rgba(255, 75, 36, 0.38), 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 0 18px rgba(255, 244, 183, 0.08);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, opacity 220ms ease;
}

.hero-icon {
  width: 88px;
  height: 88px;
}

.panel-icon {
  width: 74px;
  height: 74px;
  margin: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lava);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8.8rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 42px rgba(255, 72, 34, 0.4), 0 8px 0 rgba(0, 0, 0, 0.22);
}

.hero-slogan {
  margin-bottom: 34px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 120, 26, 0.36);
}

.mini-profile {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: 48px minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: min(460px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid rgba(255, 105, 37, 0.32);
  border-radius: 18px 4px 18px 4px;
  background: rgba(10, 5, 4, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 60, 28, 0.16);
  backdrop-filter: blur(18px);
}

.mini-profile-avatar,
.account-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 189, 93, 0.66);
  border-radius: 14px 4px 14px 4px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(255, 79, 36, 0.28);
}

.avatar-icon-fallback {
  padding: 5px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 109, 38, 0.16), rgba(16, 5, 4, 0.94) 70%),
    rgba(9, 4, 3, 0.86);
}

.mini-profile-copy {
  min-width: 0;
  text-align: left;
}

.mini-profile-copy strong,
.account-confirm strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-profile-copy span,
.account-confirm span,
.account-confirm small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.badge {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.badge.verified {
  color: var(--green);
  border-color: rgba(65, 242, 164, 0.48);
  background: var(--green-soft);
  box-shadow: 0 0 16px rgba(65, 242, 164, 0.18);
}

.badge.custom {
  color: var(--gold);
  border-color: rgba(245, 198, 111, 0.42);
  background: rgba(245, 198, 111, 0.1);
}

.badge.pending {
  color: #ffd38a;
  border-color: rgba(255, 175, 70, 0.42);
  background: rgba(255, 175, 70, 0.1);
}

.badge.muted {
  color: var(--red);
  border-color: rgba(255, 62, 50, 0.38);
  background: var(--red-soft);
}

.logout-link {
  padding: 9px 10px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px 3px 10px 3px;
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}

.notice,
.registration-panel,
.completed-home,
.error-panel {
  width: min(880px, 100%);
}

.notice {
  margin: 0 auto 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 113, 29, 0.36);
  border-radius: 16px 4px 16px 4px;
  background: rgba(12, 6, 5, 0.84);
  box-shadow: 0 0 28px rgba(255, 70, 30, 0.12);
  color: var(--gold);
  font-weight: 800;
}

.notice-error {
  color: #ffb3aa;
  border-color: rgba(255, 62, 50, 0.52);
}

.notice-success {
  color: var(--green);
  border-color: rgba(65, 242, 164, 0.42);
}

.registration-panel,
.completed-home,
.error-panel {
  position: relative;
  z-index: 6;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 103, 34, 0.1), transparent 24%),
    linear-gradient(180deg, var(--obsidian), var(--obsidian-strong));
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
}

.registration-panel {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px 6px 26px 6px;
  transform: translateZ(0);
}

.registration-panel::before,
.registration-panel::after,
.error-panel::before,
.completed-home::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--line-hot) 0 90px, transparent 90px calc(100% - 90px), var(--line-hot) calc(100% - 90px)),
    linear-gradient(90deg, var(--line-hot) 0 58px, transparent 58px calc(100% - 58px), var(--line-hot) calc(100% - 58px));
  background-position: top left, bottom left;
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 1px;
  opacity: 0.78;
}

.panel-ornament {
  position: absolute;
  top: 24%;
  width: 70px;
  height: 52%;
  pointer-events: none;
  opacity: 0.7;
  background:
    linear-gradient(18deg, transparent 18%, rgba(255, 68, 30, 0.52) 19% 20%, transparent 21%),
    linear-gradient(-18deg, transparent 48%, rgba(255, 184, 74, 0.35) 49% 50%, transparent 51%);
  filter: drop-shadow(0 0 18px rgba(255, 70, 28, 0.34));
  animation: ornament-float 5.8s var(--ease-move) infinite alternate;
}

.panel-ornament-left {
  left: -86px;
}

.panel-ornament-right {
  right: -86px;
  transform: scaleX(-1);
  animation-delay: -1.8s;
}

@keyframes ornament-float {
  from { opacity: 0.35; translate: 0 -8px; }
  to { opacity: 0.78; translate: 0 8px; }
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.stepper-item {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  padding: 10px 8px;
  color: #73625a;
}

.stepper-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stepper-item:last-child::before {
  display: none;
}

.step-icon {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 240ms var(--ease-out), color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.step-symbol {
  font-size: 0.9rem;
  line-height: 1;
}

.step-number {
  color: currentColor;
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.72;
}

.step-label {
  overflow: hidden;
  width: 100%;
  font-size: 0.76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.stepper-item.is-active {
  color: var(--text);
}

.stepper-item.is-active .step-icon {
  color: var(--text);
  border-color: var(--line-hot);
  background: radial-gradient(circle at 50% 30%, rgba(255, 135, 35, 0.32), rgba(255, 45, 23, 0.16));
  box-shadow: 0 0 28px rgba(255, 49, 27, 0.46), inset 0 0 16px rgba(255, 120, 26, 0.18);
  transform: translateY(-2px);
}

.stepper-item.is-complete {
  color: var(--green);
}

.stepper-item.is-complete .step-icon {
  border-color: rgba(65, 242, 164, 0.66);
  box-shadow: 0 0 20px rgba(65, 242, 164, 0.2);
}

.step-stage {
  position: relative;
  min-height: 420px;
  text-align: left;
}

.flow-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.flow-step.is-active {
  display: block;
  animation: step-enter 280ms var(--ease-out) forwards;
}

@keyframes step-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-kicker {
  margin-bottom: 8px;
  color: var(--lava);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flow-step h2,
.completed-home h2,
.error-panel h1 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(255, 60, 28, 0.3);
}

.step-copy,
.completed-home p,
.error-panel p {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.premium-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 190px;
  overflow: hidden;
  padding: 0 22px;
  color: var(--text);
  border: 1px solid rgba(255, 92, 35, 0.54);
  border-radius: 16px 4px 16px 4px;
  background:
    linear-gradient(180deg, rgba(255, 75, 36, 0.22), rgba(92, 16, 11, 0.82)),
    linear-gradient(90deg, rgba(255, 215, 128, 0.08), transparent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 58, 27, 0.24);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.premium-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 237, 184, 0.35) 45%, transparent 56% 100%);
  opacity: 0;
  transform: translateX(-64%);
  transition: transform 420ms var(--ease-out), opacity 180ms ease;
}

.premium-button.secondary {
  color: var(--gold);
  border-color: rgba(255, 181, 82, 0.28);
  background: rgba(255, 178, 70, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 178, 70, 0.04);
}

.discord-button {
  min-width: 238px;
}

.micro-guide,
.role-rules {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.micro-guide li,
.role-rules li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.5;
}

.micro-guide li::before,
.role-rules li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 4px;
  width: 10px;
  height: 2px;
  background: var(--lava);
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.5);
}

.account-confirm {
  display: flex;
  gap: 14px;
  align-items: center;
  width: min(520px, 100%);
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 116, 36, 0.22);
  border-radius: 18px 4px 18px 4px;
  background: rgba(255, 255, 255, 0.04);
}

.account-avatar {
  width: 64px;
  height: 64px;
}

.signal {
  margin: 14px 0 18px;
  padding: 13px 15px;
  border-radius: 14px 4px 14px 4px;
  font-weight: 900;
  line-height: 1.45;
}

.success-signal {
  color: var(--green);
  border: 1px solid rgba(65, 242, 164, 0.42);
  background: var(--green-soft);
  box-shadow: 0 0 24px rgba(65, 242, 164, 0.12);
}

.error-signal {
  color: #ffc0b8;
  border: 1px solid rgba(255, 62, 50, 0.48);
  background: var(--red-soft);
  box-shadow: 0 0 24px rgba(255, 62, 50, 0.15);
}

.role-form {
  display: grid;
  gap: 15px;
  width: min(600px, 100%);
}

.role-form label:not(.fake-recaptcha) {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.role-form input[type="text"] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(255, 111, 34, 0.34);
  border-radius: 16px 4px 16px 4px;
  outline: none;
  background: rgba(4, 2, 2, 0.74);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.4);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.role-form input[type="text"]:focus {
  border-color: rgba(255, 119, 33, 0.82);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(255, 70, 27, 0.16);
}

.fake-recaptcha {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(360px, 100%);
  min-height: 74px;
  padding: 12px;
  color: #2b2b2b;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  background: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}

.fake-recaptcha input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.captcha-box {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #777;
  border-radius: 2px;
  background: #fff;
}

.captcha-copy {
  font-size: 0.98rem;
  font-weight: 600;
}

.captcha-brand {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #777;
  font-size: 0.62rem;
}

.captcha-brand::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background:
    conic-gradient(from 30deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  opacity: 0.85;
}

.captcha-brand strong {
  color: #666;
  font-size: 0.62rem;
}

.captcha-brand small {
  font-size: 0.54rem;
}

.fake-recaptcha.captcha-checked .captcha-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 9px;
  height: 17px;
  border: solid #2e7d32;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.fake-recaptcha.captcha-error {
  box-shadow: 0 0 0 3px rgba(255, 62, 50, 0.26), 0 0 28px rgba(255, 62, 50, 0.3);
  transform: translateX(4px);
}

.final-role {
  color: var(--gold);
  font-weight: 900;
}

.completed-home {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px 6px 26px 6px;
  text-align: left;
}

.completed-home.is-visible {
  display: grid;
  animation: step-enter 300ms var(--ease-out) forwards;
}

.registration-panel.is-hidden {
  display: none;
}

.panel-icon {
  margin: 0;
}

.completed-home h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.completed-home p {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin: 10px 0 42px;
}

.info-card {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 103, 34, 0.22);
  border-radius: 22px 5px 22px 5px;
  background:
    linear-gradient(150deg, rgba(255, 89, 30, 0.1), transparent 34%),
    rgba(10, 5, 4, 0.82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.info-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 10%;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 69, 28, 0.2), transparent 68%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card-number {
  color: var(--lava);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.info-card h3 {
  margin: 12px 0 10px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.55;
}

.info-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.online-card strong {
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 18px;
  color: var(--green);
  border: 1px solid rgba(65, 242, 164, 0.56);
  border-radius: 999px;
  background: var(--green-soft);
  box-shadow: 0 0 30px rgba(65, 242, 164, 0.22);
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 103, 34, 0.2);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
}

.telegram-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #120504;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
}

.error-page {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.error-panel {
  padding: clamp(26px, 5vw, 48px);
  border-radius: 26px 6px 26px 6px;
}

.error-panel .panel-icon {
  margin: 0 0 22px;
}

@media (hover: hover) and (pointer: fine) {
  .premium-button:hover {
    color: #fff7df;
    border-color: rgba(255, 185, 78, 0.82);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38), 0 0 38px rgba(255, 64, 29, 0.38);
    transform: translateY(-2px);
  }

  .premium-button:hover::before {
    opacity: 1;
    transform: translateX(62%);
  }

  .logout-link:hover {
    color: var(--gold);
    border-color: rgba(255, 190, 90, 0.44);
    transform: translateY(-1px);
  }

  .info-card:hover {
    border-color: rgba(255, 89, 30, 0.58);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.36), 0 0 34px rgba(255, 61, 26, 0.22);
    transform: translateY(-6px);
  }

  .info-card:hover::after {
    opacity: 1;
  }

  .fake-recaptcha:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  }

  .brand-icon:hover {
    box-shadow: 0 0 42px rgba(255, 92, 35, 0.5), 0 18px 38px rgba(0, 0, 0, 0.34), inset 0 0 18px rgba(255, 244, 183, 0.1);
    transform: translateY(-2px) scale(1.025);
  }
}

@media (max-width: 1060px) {
  .animated-bg-image {
    background-size: cover;
    background-position: center top;
  }

  .page-shell {
    padding-top: 130px;
  }

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

  .completed-home {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .site-footer {
    width: min(100% - 24px, 1220px);
  }

  .mini-profile {
    right: 12px;
    left: 12px;
    max-width: none;
    grid-template-columns: 44px 1fr auto;
  }

  .hero {
    padding-top: 10px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
  }

  .registration-panel {
    padding: 18px;
  }

  .stepper {
    gap: 4px;
  }

  .step-icon {
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
  }

  .stepper-item::before {
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
  }

  .step-label {
    font-size: 0.64rem;
  }

  .action-row,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .premium-button {
    width: 100%;
  }

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

  .panel-ornament {
    display: none;
  }

  .fake-recaptcha {
    grid-template-columns: 28px 1fr;
  }

  .captcha-brand {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .animated-bg-image,
  .animated-bg-overlay,
  .ember-particle {
    animation: none !important;
  }
}
