:root {
  color-scheme: dark;
  --bg-0: #160b0a;
  --bg-1: #2a110e;
  --bg-2: #431d15;
  --panel: rgba(44, 18, 14, 0.82);
  --panel-strong: rgba(58, 25, 16, 0.92);
  --border: rgba(255, 219, 183, 0.18);
  --text-main: #fff5e8;
  --text-soft: #ffd6ad;
  --text-muted: #bf9f8e;
  --accent: #ff9952;
  --accent-2: #ffd08b;
  --shadow: 0 30px 84px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 157, 82, 0.22), transparent 24%),
    radial-gradient(circle at 16% 12%, rgba(255, 101, 47, 0.16), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(255, 191, 119, 0.09), transparent 24%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 72px);
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 200, 145, 0.16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.25), transparent 42%);
  opacity: 0.9;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 24px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(6px, 1.4vw, 16px) 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(56, 24, 16, 0.84), rgba(31, 14, 11, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  padding: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(40, 14, 10, 0.18), rgba(40, 14, 10, 0.18)),
    url("/assets/brand-art.png") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 160, 87, 0.32), transparent 20%),
    radial-gradient(circle at 87% 74%, rgba(255, 212, 149, 0.16), transparent 16%),
    radial-gradient(circle at 12% 82%, rgba(255, 104, 33, 0.12), transparent 18%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.footer {
  padding: 0 2px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-item-security {
  gap: 6px;
}

.footer-item-security a,
.footer-item-icp {
  color: var(--text-main);
  text-decoration: none;
}

.footer-item-security a:hover,
.footer-item-icp:hover {
  color: #ffffff;
}

.footer-icon {
  display: block;
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.copyright {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .hero {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 8px;
  }

  .hero {
    border-radius: 24px;
  }

  .footer-row {
    gap: 6px 10px;
    font-size: 0.82rem;
  }
}
