@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Orbitron:wght@500;600;700&display=swap");

:root {
  --mars: #c8102e;
  --mars-deep: #8b0000;
  --mars-glow: #e31c23;
  --silver: #c8ccd2;
  --bg: #14090d;
  --ink: #f4f5f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #10070b;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

.shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

.header,
.tabbar {
  position: fixed;
  left: 50%;
  z-index: 50;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%);
}

.header {
  top: 0;
  overflow: hidden;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(200, 16, 46, 0.2);
  background: rgba(20, 9, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  background: #000;
  ring: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-en {
  font-family: Orbitron, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-zh {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mars);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(200, 16, 46, 0.45);
  border-radius: 10px;
  color: #e8eaee;
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
}

.btn-wallet {
  height: 32px;
  max-width: 120px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mars);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.btn-wallet.is-on {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8eaee;
}

.btn-menu {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

.btn-mars {
  height: 40px;
  width: 100%;
  border-radius: 12px;
  background: var(--mars);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.btn-mars:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  height: 40px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding-top: 3rem;
}

body[data-tabs="1"] .main {
  padding-bottom: 3.5rem;
}

.tabbar {
  bottom: 0;
  height: 3.5rem;
  border-top: 1px solid rgba(200, 16, 46, 0.2);
  background: rgba(20, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.tabbar-row {
  display: flex;
  height: 3.5rem;
  padding: 0 4px;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.tab svg {
  width: 20px;
  height: 20px;
}

.tab.is-on {
  color: var(--mars);
}

.tab.is-on svg {
  filter: drop-shadow(0 0 8px rgba(227, 28, 35, 0.7));
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.sheet.is-open {
  display: block;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100vw - 2rem, 320px);
  height: 100%;
  background: #14090d;
  border-left: 1px solid rgba(200, 16, 46, 0.25);
  overflow: auto;
}

.sheet-head {
  padding: 20px 20px 8px;
}

.sheet-title {
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.2em;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sheet-body {
  padding: 0 20px 32px;
}

.sheet-kicker {
  margin: 16px 0 8px;
  font-family: Orbitron, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
}

.sheet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
}

.sheet-link.is-on {
  background: rgba(200, 16, 46, 0.15);
  color: var(--mars);
}

.kicker {
  font-family: Orbitron, sans-serif;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}

.title-mars {
  font-family: Orbitron, sans-serif;
  font-weight: 600;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.copy {
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.55);
}

.muted {
  font-size: 10px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.4);
}

.px {
  padding-left: 20px;
  padding-right: 20px;
}

.pt {
  padding-top: 16px;
}

.pb {
  padding-bottom: 32px;
}

.hero {
  position: relative;
  min-height: 37rem;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg,
.fill-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  object-position: center 28%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.26), rgba(20, 9, 13, 0.88));
}

.stars {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(232, 234, 238, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 22% 72%, rgba(200, 16, 46, 0.45), transparent),
    radial-gradient(1px 1px at 38% 28%, rgba(232, 234, 238, 0.4), transparent),
    radial-gradient(1.4px 1.4px at 54% 82%, rgba(200, 204, 210, 0.35), transparent),
    radial-gradient(1px 1px at 68% 14%, rgba(227, 28, 35, 0.4), transparent),
    radial-gradient(1.2px 1.2px at 84% 48%, rgba(232, 234, 238, 0.5), transparent);
  animation: twinkle 7s ease-in-out infinite;
}

.meteor,
.meteor-b {
  pointer-events: none;
  position: absolute;
  top: 8%;
  left: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 234, 238, 0.15), #e31c23);
  filter: drop-shadow(0 0 4px rgba(227, 28, 35, 0.6));
  animation: meteor 11s linear infinite;
}

.meteor-b {
  top: 28%;
  width: 64px;
  animation-duration: 15s;
  animation-delay: 5s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 37rem;
}

.hero-copy {
  padding: 5.25rem 20px 20px;
  text-align: center;
}

.hero-logo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto;
}

.hero-logo-wrap img {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.3), inset 0 0 18px rgba(139, 0, 0, 0.2);
}

.logo-halo {
  position: absolute;
  inset: -12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(227, 28, 35, 0.38) 0%, rgba(139, 0, 0, 0.16) 45%, transparent 70%);
  filter: blur(10px);
  animation: pulse 4.5s ease-in-out infinite;
}

.hero-chain {
  margin-top: 56px;
  font-family: Orbitron, sans-serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--silver);
  text-transform: uppercase;
}

.hero-name {
  margin-top: 8px;
  font-family: Orbitron, sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-zh {
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: 0.28em;
  color: var(--mars);
}

.rule {
  width: 40px;
  height: 1px;
  margin-top: 6px;
  background: linear-gradient(to right, var(--mars), transparent);
}

.rule.center {
  width: 96px;
  margin: 16px auto 0;
  background: linear-gradient(to right, transparent, var(--mars), transparent);
  animation: linepulse 3.8s ease-in-out infinite;
}

.hero-slogan {
  max-width: 17rem;
  margin: 16px auto 0;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.04em;
  color: #d8dbe0;
}

.hero-mission {
  max-width: 18rem;
  margin: 8px auto 0;
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding: 16px 20px 20px;
}

.cta-main,
.cta-alt {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.cta-main {
  background: var(--mars);
  color: #fff;
}

.cta-alt {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  color: #e8eaee;
}

.section {
  position: relative;
  background: var(--bg);
}

.section-label {
  margin-bottom: 16px;
}

.section-label h2 {
  margin-top: 4px;
  font-size: 18px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 12px 12px 16px;
}

.card::before,
.rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--mars);
}

.card h3 {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

.card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.loop {
  position: relative;
  overflow: hidden;
}

.loop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.loop-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
}

.loop-inner {
  position: relative;
  z-index: 1;
  padding: 48px 20px;
  text-align: center;
}

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

.fx-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 16, 46, 0.1), transparent 48%);
}

.page {
  position: relative;
  min-height: 100%;
  background: var(--bg);
}

.page > .content {
  position: relative;
  z-index: 1;
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-out;
}

.banner-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.banner-slide img,
.banner > img,
.banner-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.25), transparent),
    linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1), transparent);
}

.banner-copy {
  position: absolute;
  left: 12px;
  right: 40px;
  bottom: 28px;
}

.banner-copy h1 {
  margin-top: 4px;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.dot.is-on {
  width: 16px;
  background: #fff;
}

.page-head h1 {
  margin-top: 4px;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.rail {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 12px 12px 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px;
}

.stat .label,
.label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.stat .value {
  margin-top: 4px;
  font-family: Orbitron, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big {
  margin-top: 4px;
  font-family: Orbitron, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.row + .row,
.block + .block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.block {
  padding: 10px 12px;
}

.row span:last-child,
.mars-num {
  font-family: Orbitron, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bar {
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bar i:first-child {
  background: var(--mars);
}

.bar i:nth-child(2) {
  background: #8a9098;
}

.bar i:nth-child(3) {
  background: #5c6168;
}

.bar-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.field-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.field {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

.field-row .btn-mars {
  width: auto;
  padding: 0 16px;
  flex-shrink: 0;
}

.chip {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 8px;
}

.chip.hot {
  background: rgba(200, 16, 46, 0.15);
}

.chip .n {
  margin-top: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pos {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
}

.pos-h {
  padding: 12px 12px 0;
}

.pos-h .n {
  margin-top: 2px;
  font-family: Orbitron, sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #f4f5f7 0%, #c8ccd2 46%, #8a9098 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pos-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
}

.status-mining {
  color: var(--mars);
}

.status-out {
  color: var(--silver);
}

.status-redeemed {
  color: rgba(255, 255, 255, 0.4);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
}

.invite code {
  overflow: hidden;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  border: 0;
  background: none;
  color: var(--silver);
  font-size: 11px;
  cursor: pointer;
}

.arrow {
  color: var(--mars);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}

@keyframes meteor {
  0% {
    transform: translate3d(-10%, -30%, 0) rotate(22deg);
    opacity: 0;
  }
  6% {
    opacity: 0.85;
  }
  22% {
    transform: translate3d(130%, 90%, 0) rotate(22deg);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.42;
    transform: scale(1.03);
  }
}

@keyframes linepulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
