:root {
  --bg: #05080e;
  --panel: rgba(8, 16, 26, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --cyan: #05fdf7;
  --cyan-dim: rgba(5, 253, 247, 0.12);
  --blue: #2c7cf5;
  --brand: linear-gradient(84deg, #2c7cf5 5.63%, #bbe194 46.27%, #05fdf7 98.78%);
  --brand-soft: linear-gradient(81deg, rgba(44, 124, 245, 0.08) 5.63%, rgba(187, 225, 148, 0.08) 46.27%, rgba(5, 253, 247, 0.08) 98.78%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
}
body { min-height: 100vh; }
html { scroll-padding-top: 76px; }
body {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(44, 124, 245, 0.22), transparent 58%),
    radial-gradient(780px 380px at 92% 6%, rgba(5, 253, 247, 0.14), transparent 52%),
    url("../assets/home_bg.jpg") center top / cover no-repeat,
    var(--bg);
  background-attachment: fixed;
}
button, input { font: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 81% 58%, rgba(44,124,245,0.35), transparent);
  opacity: 0.7;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand a { display: flex; line-height: 0; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
.alpha {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.nav {
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: rgba(255,255,255,0.55); text-decoration: none; }
.nav a:hover, .nav a.on, .nav .on { color: #fff; }
.head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-btn {
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
}
.wallet-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.wallet-pill span { color: var(--cyan); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
}
.page-head .season-clock {
  margin-top: 10px;
  color: #e8f1ff;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.season-span {
  display: grid;
  gap: 4px;
  font-size: 15px !important;
  line-height: 1.4 !important;
}
.season-span span { color: var(--muted); font-weight: 500; font-size: 12px; }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.season-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.season-pick[hidden] { display: none; }
.season-pick select {
  height: 36px;
  min-width: 180px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 26, 0.9);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.season-now {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.season-now[hidden] { display: none; }
.block-note {
  margin: -6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.dash {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: start;
}

.panel, .tile, .pos-card {
  border: 1px solid var(--line);
  background: var(--brand-soft), var(--panel);
  backdrop-filter: blur(14px);
}
.panel {
  border-radius: 18px;
  padding: 22px 20px 20px;
}
.panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.panel-sub {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
}
.meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.meta strong { color: #fff; font-weight: 600; }

.lock-lab {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.lock-lab span {
  font-weight: 500;
  color: rgba(255,255,255,0.38);
}
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.term {
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.term strong { font-size: 13px; font-weight: 700; }
.term em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.term.on { border-color: var(--cyan); background: var(--cyan-dim); color: var(--cyan); }
.term.on em { color: var(--cyan); }

.amount-row {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  padding: 0 8px 0 14px;
}
.amount-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 16px;
  font-weight: 600;
}
.amount-row input:disabled { opacity: 0.45; }
.unit { color: var(--muted); font-size: 12px; margin-right: 8px; }
.max {
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.quick { display: flex; gap: 6px; margin: 8px 0 16px; }
.quick button {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.solid {
  border: 0;
  background: var(--brand);
  color: #041018;
  cursor: pointer;
  font-weight: 700;
}
.solid:hover:not(:disabled) { filter: brightness(1.06); }
.solid:disabled { opacity: 0.4; cursor: not-allowed; }
.stake-cta {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 16px;
}
.ghost {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--blue);
  background: rgba(44,124,245,0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  border-radius: 16px;
  padding: 16px 16px 14px;
  min-height: 118px;
}
.tile.harvest { border-color: rgba(5,253,247,0.32); }
.tile b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.tile .n {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.tile .n.sm { font-size: 16px; line-height: 1.35; color: #fff; }
.tile p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.tile .solid {
  margin-top: 12px;
  height: 34px;
  width: 100%;
  border-radius: 10px;
  font-size: 13px;
}

.pos-card .pending {
  margin-top: 8px;
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
}
.pos-card .pending span { color: var(--muted); font-weight: 500; }
.pos-card.done { opacity: 0.92; }
.pos-card .tag.out { color: var(--muted); }
.pos-card .pending.muted { color: var(--muted); }

.block { margin-top: 28px; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.block h3, .block-head h3, .sheet-sec h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.block-head h3 { margin: 0; }
.pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pos-card {
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pos-card .tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pos-card .amt { font-size: 20px; font-weight: 700; }
.pos-card .sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.tiny {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.tiny.claim {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.tiny:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.hist-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.hist {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hist:last-child { border-bottom: 0; }
.hist span { color: var(--muted); }
.empty { margin: 0; padding: 18px 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.toast {
  display: none;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--cyan);
}
.toast.show { display: block; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}
.sheet[hidden] { display: none; }
.sheet-back {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
}
.sheet-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(82vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 22px 22px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-sec { margin-top: 22px; }
.sheet-sec .block-note { margin-top: 0; }

.foot {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.foot h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.rules { margin: 0; padding-left: 1.35em; display: flex; flex-direction: column; gap: 12px; }
.rules li { color: rgba(232,241,255,0.72); }
.rules strong { color: #fff; font-weight: 700; }
.eq {
  font-family: "Times New Roman", Times, "Noto Serif SC", serif;
  font-style: italic;
  color: #d7ecff;
  white-space: nowrap;
}

body.home .wrap {
  min-height: calc(100vh - 61px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 48px;
}
.notice {
  max-width: 760px;
  margin: 56px auto 0;
}
.notice.home {
  margin: 0 auto;
  text-align: center;
}
.notice.home .notice-kicker,
.notice.home h1,
.notice.home .notice-lead {
  text-align: center;
}
.notice.home .notice-lead {
  margin-left: auto;
  margin-right: auto;
}
.notice-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.notice h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.12;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notice.letter {
  text-align: center;
}
.notice.letter h1 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  background: none;
  color: #fff;
}
.notice.letter .notice-lead {
  max-width: none;
  margin: 0 auto;
  text-wrap: balance;
}
.notice.letter .notice-card h2 {
  justify-content: center;
}
.notice.letter .notice-card p {
  text-wrap: balance;
}
.notice.letter .notice-card li {
  text-align: center;
}
.notice-lead {
  margin: 18px 0 0;
  max-width: 640px;
  color: rgba(232, 241, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}
.notice-body {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notice-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 20px;
  background: var(--brand-soft), var(--panel);
  backdrop-filter: blur(14px);
}
.notice-card h2 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}
.notice-num {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.notice-card p {
  margin: 0;
  color: rgba(232, 241, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}
.notice-card p + p { margin-top: 10px; }
.notice-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notice-card li {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .dash, .dash-grid, .pos-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav { gap: 10px; font-size: 13px; }
  .terms { grid-template-columns: 1fr 1fr; }
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrap { flex: 1; width: 100%; }
body.home .wrap { min-height: 0; }
.nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
}
.nav button:hover, .nav button.on { color: #fff; }
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.site-footer a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
  transition: color 160ms ease, transform 160ms ease;
}
.site-footer a:hover { color: #fff; transform: translateY(-1px); }
.site-footer svg { display: block; width: 18px; height: 18px; }
