:root {
  --bg: #070503;
  --gold: #c8a84b;
  --gold-soft: rgba(200, 168, 75, 0.3);
  --text: #ece3d2;
  --text-soft: rgba(236, 227, 210, 0.62);
  --text-ghost: rgba(236, 227, 210, 0.36);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif SC', serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.glow-tl {
  position: fixed;
  top: -20%;
  left: -15%;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 83, 30, 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.glow-tr {
  position: fixed;
  top: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 90, 0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.glow-b {
  position: fixed;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grid-tex {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 168, 75, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 168, 75, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 60%, transparent 100%);
}

.page {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 40px 16px 28px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(232, 207, 128, 0.18), rgba(200, 168, 75, 0.05));
  border: 1px solid rgba(200, 168, 75, 0.28);
  box-shadow: 0 0 0 5px rgba(200, 168, 75, 0.04), 0 0 28px rgba(200, 168, 75, 0.07);
  font-size: 28px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(34px, 8vw, 48px);
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(175deg, #f0d87a 0%, #c8a84b 38%, #e8d07a 65%, #a87830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.hero-tag {
  font-size: 12px;
  color: var(--text-ghost);
  letter-spacing: 1.2px;
}

.invite-card {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(200, 168, 75, 0.14);
  border-radius: 22px;
  overflow: hidden;
}

.invite-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 168, 75, 0.32), transparent);
}

.card-body {
  padding: 22px 18px 20px;
}

.card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(200, 168, 75, 0.07);
}

.card-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(200, 168, 75, 0.2);
  background: rgba(200, 168, 75, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 11px;
  color: rgba(200, 168, 75, 0.78);
}

.card-title {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 18px;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.card-desc {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-ghost);
}

.field {
  margin-top: 4px;
}

.fl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(236, 227, 210, 0.46);
  margin-bottom: 8px;
}

.tag-input-row {
  display: flex;
  gap: 8px;
}

#inviteCode {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(200, 168, 75, 0.12);
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

#inviteCode:focus {
  border-color: rgba(200, 168, 75, 0.38);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.08);
}

#inviteCode::placeholder {
  color: rgba(236, 227, 210, 0.26);
}

#inviteCheckBtn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(200, 168, 75, 0.24);
  background: linear-gradient(145deg, rgba(200, 168, 75, 0.14), rgba(200, 168, 75, 0.05));
  color: rgba(236, 227, 210, 0.92);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s ease;
}

#inviteCheckBtn:hover {
  border-color: rgba(200, 168, 75, 0.4);
  transform: translateY(-1px);
}

#inviteCheckBtn:active {
  transform: translateY(1px);
}

#inviteCheckBtn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

#inviteTip {
  margin-top: 9px;
  font-size: 11px;
  color: var(--text-soft);
}

.quick-list {
  margin-top: 12px;
  font-size: 10px;
  color: rgba(236, 227, 210, 0.33);
  line-height: 1.7;
}

.footer {
  text-align: center;
  margin-top: 18px;
}

.footer p {
  font-size: 10px;
  color: rgba(236, 227, 210, 0.22);
  letter-spacing: 0.6px;
}
