:root {
  --asset-bg: url("./assets/vulcanium/background.png");
  --asset-logo-icon: url("./assets/vulcanium/logo-icon.png");
  --asset-download: url("./assets/vulcanium/button-download.png");
  --asset-login-button: url("./assets/vulcanium/button-login.png");
  --asset-user: url("./assets/vulcanium/icon-user.png");
  --asset-lock: url("./assets/vulcanium/icon-lock.png");
  --asset-register: url("./assets/vulcanium/icon-register.png");
  --asset-recover: url("./assets/vulcanium/icon-recover.png");
  --asset-lava: url("./assets/vulcanium/lava-thumb.jfif");
  --asset-coin: url("./assets/vulcanium/coin.png");
  --text: #f8f1e8;
  --soft: #d4c8bc;
  --muted: #968a80;
  --dark: #070706;
  --panel: rgba(14, 15, 13, 0.78);
  --panel-strong: rgba(7, 8, 7, 0.9);
  --line: rgba(255, 255, 255, 0.16);
  --hot-line: rgba(255, 83, 19, 0.56);
  --lava: #ff4f17;
  --lava-2: #ff7a18;
  --gold: #ffd06a;
  --green: #4ef0a6;
  --title: "Russo One", "Arial Black", sans-serif;
  --body: "Exo 2", "Segoe UI", sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #020202;
  font-family: var(--body);
  font-size: 17px;
  overflow-x: hidden;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.world-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 74% 13%, rgba(255, 72, 12, 0.36), transparent 24%),
    radial-gradient(circle at 18% 36%, rgba(23, 255, 157, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(6, 3, 2, 0.48) 52%, rgba(0, 0, 0, 0.9)),
    var(--asset-bg) center center / cover no-repeat;
}

.world-backdrop::before,
.world-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-backdrop::before {
  background:
    radial-gradient(ellipse at center, transparent 24%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.76) 78%, #020202);
}

.world-backdrop::after {
  opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 74px);
  mix-blend-mode: screen;
}

.site-header,
.site-shell,
.site-footer {
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__full {
  width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 80, 18, 0.4));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 8, 7, 0.52);
  box-shadow: inset 0 0 34px rgba(255, 76, 16, 0.04);
  backdrop-filter: blur(12px);
}

.main-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--soft);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 82, 18, 0.16);
  transform: translateY(-1px);
}

.download-button {
  display: grid;
  place-items: center;
  width: 214px;
  height: 72px;
  padding-left: 48px;
  color: #fffaf2;
  background: var(--asset-download) center / contain no-repeat;
  font-family: var(--title);
  font-size: 1.18rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.download-button:hover,
.button--primary:hover,
.form-action:hover,
.profile-download:hover {
  filter: brightness(1.13) drop-shadow(0 0 18px rgba(255, 79, 18, 0.42));
  transform: translateY(-2px);
}

.site-shell {
  display: grid;
  gap: 28px;
  padding: 10px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.account-panel,
.glass-card,
.feature-card,
.status-row article,
.site-footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(18, 20, 17, 0.78), rgba(6, 7, 6, 0.72)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 70px rgba(255, 73, 16, 0.05);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  min-height: 555px;
  overflow: hidden;
  border-radius: 26px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 6, 0.92), rgba(10, 7, 6, 0.58) 48%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 77% 25%, rgba(255, 80, 18, 0.34), transparent 30%),
    var(--asset-bg) center / cover no-repeat;
  transform: scale(1.03);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -78px;
  width: 430px;
  height: 430px;
  background: var(--asset-logo-icon) center / contain no-repeat;
  opacity: 0.42;
  filter: drop-shadow(0 0 44px rgba(255, 80, 18, 0.44));
}

.hero-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 20px;
  width: min(760px, 100%);
  min-height: 555px;
  padding: 58px;
}

.eyebrow,
.section-heading span,
.server-panel__label,
.status-row span,
.news-tag {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-card h1,
.section-heading h2,
.auth-mode h2 {
  margin: 0;
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.03;
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.92);
}

.hero-card h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 4.65vw, 5.65rem);
  letter-spacing: -0.03em;
}

.hero-card p {
  max-width: 680px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.button,
.copy-button {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

.button--primary {
  color: #130704;
  background: linear-gradient(180deg, var(--gold), var(--lava-2) 58%, var(--lava));
  box-shadow: 0 16px 36px rgba(255, 74, 14, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.button--ghost,
.copy-button {
  color: var(--text);
  border: 1px solid var(--hot-line);
  background: rgba(8, 8, 8, 0.5);
  box-shadow: inset 0 0 24px rgba(255, 80, 18, 0.06);
}

.button--ghost:hover,
.copy-button:hover {
  border-color: rgba(255, 202, 85, 0.8);
  background: rgba(255, 80, 18, 0.11);
  transform: translateY(-1px);
}

.server-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(520px, 100%);
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.44);
}

.server-code span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-code strong {
  display: block;
  margin-top: 4px;
  font-size: 1.34rem;
  color: #fff;
}

.account-panel {
  min-height: 555px;
  padding: 34px 30px;
  border-radius: 26px;
}

.auth-mode {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.auth-mode[hidden],
.password-box[hidden],
.news-item[hidden] {
  display: none;
}

.panel-emblem {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(255, 75, 14, 0.55));
}

.panel-emblem--small {
  width: 96px;
}

.auth-mode h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  text-align: center;
}

.auth-mode h3 {
  margin: 0;
  font-size: 1.1rem;
}

.auth-mode p {
  max-width: 330px;
  margin: -4px 0 10px;
  color: var(--soft);
  line-height: 1.36;
  text-align: center;
}

.field {
  position: relative;
  display: block;
  width: 100%;
}

.field input {
  display: block;
  width: 100%;
  height: 62px;
  padding: 0 20px 0 64px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  outline: none;
  color: #f7f3ee;
  background:
    linear-gradient(90deg, rgba(255, 72, 14, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(30, 30, 30, 0.68), rgba(8, 8, 8, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.62),
    inset 0 -18px 36px rgba(0, 0, 0, 0.28),
    0 12px 26px rgba(0, 0, 0, 0.28);
  font-size: 1.05rem;
  font-weight: 700;
}

.field input:focus {
  border-color: rgba(255, 90, 18, 0.8);
  box-shadow:
    0 0 0 3px rgba(255, 75, 14, 0.12),
    0 0 28px rgba(255, 75, 14, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.62);
}

.field input::placeholder {
  color: rgba(218, 214, 210, 0.5);
}

.field__icon {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 2;
  width: 26px;
  height: 26px;
  background: center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 77, 23, 0.72));
  transform: translateY(-50%);
}

.field__icon--user,
.field__icon--mail {
  background-image: var(--asset-user);
}

.field__icon--lock {
  background-image: var(--asset-lock);
}

.form-action,
.profile-download {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 70px;
  margin-top: 8px;
  color: #f7f3ee;
  background: var(--asset-login-button) center / 100% 100% no-repeat;
  cursor: pointer;
  font-family: var(--title);
  font-size: 1.35rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.form-action--secondary {
  min-height: 54px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.82), rgba(9, 9, 9, 0.86));
  box-shadow: inset 0 0 28px rgba(255, 80, 18, 0.08);
  font-family: var(--body);
  font-size: 1rem;
  text-transform: none;
}

.profile-download {
  min-height: 58px;
  font-size: 1.03rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding-top: 12px;
}

.text-action,
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0;
  color: var(--lava);
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 82, 16, 0.24);
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.text-action:hover,
.view-all:hover {
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 91, 20, 0.46));
  transform: translateY(-1px);
}

.text-action--register::before,
.text-action--recover::before {
  content: "";
  width: 24px;
  height: 24px;
  background: center / contain no-repeat;
}

.text-action--register::before {
  background-image: var(--asset-register);
}

.text-action--recover::before {
  background-image: var(--asset-recover);
}

.text-action--center {
  justify-self: center;
}

.avatar-badge {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(255, 84, 17, 0.28), transparent 64%),
    var(--asset-logo-icon) center / contain no-repeat;
  font-family: var(--title);
  font-size: 0;
  filter: drop-shadow(0 0 24px rgba(255, 75, 14, 0.48));
}

.profile-stats {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 10px 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-stats strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.password-box {
  display: grid;
  gap: 12px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.status-row article,
.feature-card,
.glass-card {
  border-radius: 22px;
}

.status-row article {
  padding: 20px;
}

.status-row strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 1.16rem;
}

.status-row p,
.feature-card p,
.rules-grid p,
.server-panel p,
.steps p,
.news-item p,
.site-footer p {
  margin: 0;
  color: var(--soft);
  line-height: 1.42;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 28px;
}

.glass-card {
  padding: 30px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

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

.steps article,
.server-panel,
.news-item,
.rules-grid p {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(4, 5, 4, 0.48);
  box-shadow: inset 0 0 34px rgba(255, 80, 18, 0.04);
}

.steps article {
  padding: 20px;
}

.steps b {
  color: var(--lava);
  font-family: var(--title);
  font-size: 2rem;
  font-weight: 400;
}

.steps h3,
.server-panel h3,
.feature-card h3,
.news-item h3 {
  margin: 10px 0 8px;
  color: #fff8f0;
  font-size: 1.18rem;
}

.server-panel {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 230px;
  padding: 18px;
}

.server-panel img {
  width: 116px;
  filter: drop-shadow(0 0 24px rgba(255, 80, 18, 0.45));
}

.server-panel h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.server-panel .copy-button {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 172px;
  padding: 24px;
}

.feature-card h3 {
  margin-top: 0;
}

.news-panel {
  overflow: hidden;
}

.view-all {
  color: var(--text);
  font-size: 1rem;
}

.view-all span {
  color: var(--lava);
  font-size: 1.7rem;
  line-height: 0;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 22px;
  min-height: 150px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 78, 18, 0.1), rgba(255, 255, 255, 0.035) 38%, rgba(0, 0, 0, 0.18)),
    rgba(10, 10, 10, 0.64);
}

.news-media {
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background-color: #0c0c0c;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.5);
}

.news-media--volcano {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34)),
    var(--asset-bg);
}

.news-media--event {
  background-image:
    radial-gradient(circle at 50% 34%, rgba(255, 87, 16, 0.28), transparent 42%),
    var(--asset-coin),
    var(--asset-lava);
  background-size: auto 92%, 70% auto, cover;
  background-repeat: no-repeat;
}

.news-media--logo {
  background-image:
    radial-gradient(circle, rgba(255, 76, 16, 0.25), transparent 58%),
    var(--asset-logo-icon),
    var(--asset-bg);
  background-size: auto, 58% auto, 260% auto;
  background-repeat: no-repeat;
}

.news-media--server {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)),
    var(--asset-lava);
}

.news-copy {
  align-self: center;
}

.news-tag {
  display: block;
  margin-bottom: 8px;
  color: var(--lava);
}

.news-item h3 {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 1.65vw, 1.42rem);
}

.news-item time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.rules-grid p {
  padding: 18px 18px 18px 46px;
  position: relative;
}

.rules-grid p::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 16px rgba(255, 80, 18, 0.8);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 20px 24px;
  border-radius: 20px;
}

.site-footer img {
  width: 240px;
  max-width: 100%;
  filter: drop-shadow(0 0 14px rgba(255, 80, 18, 0.34));
}

.site-footer a {
  color: var(--lava);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(560px, calc(100% - 28px));
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--hot-line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: var(--shadow), 0 0 24px rgba(255, 76, 16, 0.12);
  text-align: center;
  transform: translate(-50%, 140%);
  transition: transform 0.22s ease;
}

.toast[data-visible="true"] {
  transform: translate(-50%, 0);
}

.toast[data-state="success"] {
  border-color: rgba(255, 198, 86, 0.62);
  color: #fff0c3;
}

.toast[data-state="error"] {
  border-color: rgba(255, 80, 20, 0.8);
  color: #ffd1c2;
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .account-panel {
    min-height: auto;
  }

  .status-row,
  .feature-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .site-shell,
  .site-footer {
    width: min(100% - 24px, 560px);
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 18px;
  }

  .download-button {
    justify-self: start;
    width: 174px;
    height: 60px;
    padding-left: 38px;
    font-size: 0.95rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .main-nav a {
    flex: 1 1 42%;
    text-align: center;
  }

  .hero-card,
  .account-panel,
  .glass-card,
  .feature-card,
  .status-row article {
    border-radius: 18px;
  }

  .hero-card,
  .hero-card__content {
    min-height: 520px;
  }

  .hero-card::after {
    right: -100px;
    bottom: -112px;
    width: 330px;
    height: 330px;
  }

  .hero-card__content {
    padding: 30px 22px;
  }

  .hero-card h1 {
    font-size: clamp(1.9rem, 9.2vw, 2.55rem);
  }

  .hero-card p {
    font-size: 0.98rem;
  }

  .hero-actions,
  .server-code,
  .site-footer,
  .section-heading--row,
  .auth-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .copy-button,
  .server-code {
    width: 100%;
  }

  .account-panel,
  .glass-card,
  .feature-card {
    padding: 22px;
  }

  .field input {
    height: 58px;
    padding-left: 58px;
  }

  .field__icon {
    left: 18px;
    width: 23px;
    height: 23px;
  }

  .form-action {
    min-height: 64px;
    font-size: 1.14rem;
  }

  .status-row,
  .feature-grid,
  .steps,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .server-panel,
  .news-item {
    grid-template-columns: 1fr;
  }

  .server-panel img {
    width: 92px;
  }

  .news-media {
    min-height: 180px;
  }

  .site-footer img {
    width: 210px;
  }
}
