:root {
  color-scheme: dark;
  --home-ink: #071b20;
  --home-deep: #0b2b31;
  --home-paper: #f4f8ed;
  --home-muted: #a7c3bd;
  --home-mint: #83dfd0;
  --home-gold: #f2c778;
  --home-coral: #de7c70;
  --home-line: rgba(180, 239, 228, 0.2);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

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

body {
  color: var(--home-paper);
  background: var(--home-ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

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

a:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 5px;
}

.home-shell {
  position: relative;
  width: min(100%, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 56px) 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.home-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 27, 32, 0.98) 0%, rgba(7, 27, 32, 0.78) 38%, rgba(7, 27, 32, 0.92) 100%),
    url("assets/wish-pool/wish-pool-bg.jpg") center / cover;
  opacity: 0.92;
}

.home-atmosphere::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(150, 225, 213, 0.04) 0 1px, transparent 1px 120px),
    linear-gradient(180deg, transparent 0 70%, rgba(2, 12, 15, 0.72) 100%);
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 19px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 199, 120, 0.65);
  border-radius: 50%;
  color: var(--home-gold);
  font-size: 15px;
  box-shadow: 0 0 22px rgba(242, 199, 120, 0.12);
}

.home-brand b,
.home-brand small {
  display: block;
}

.home-brand b {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  line-height: 1;
}

.home-brand small {
  margin-top: 4px;
  color: var(--home-muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.home-status {
  color: var(--home-muted);
  font-size: 10px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.home-account {
  padding-left: 13px;
  border-left: 1px solid var(--home-line);
  color: var(--home-gold);
  font-size: 10px;
}

.home-account[href="#logout"] {
  cursor: pointer;
}

.home-status i {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 50%;
  background: var(--home-mint);
  box-shadow: 0 0 11px rgba(131, 223, 208, 0.8);
}

.home-intro {
  max-width: 690px;
  padding: clamp(46px, 9vh, 104px) 0 38px;
}

.intro-eyebrow {
  color: var(--home-gold);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.home-intro h1 {
  margin: 12px 0 11px;
  color: var(--home-paper);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
}

.home-intro p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.activity-grid[aria-busy="true"] .activity-card {
  visibility: hidden;
}

.activity-grid[data-active-count="1"] {
  grid-template-columns: minmax(0, 760px);
}

.activity-empty {
  margin: 28px 0;
  color: var(--home-muted);
  font-size: 13px;
}

.activity-card {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(190px, 22vw) auto;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(6, 27, 32, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.activity-card[hidden] {
  display: none;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 199, 120, 0.74);
  background: rgba(10, 42, 47, 0.95);
}

.activity-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--home-deep);
}

.activity-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(4, 18, 22, 0.72));
}

.activity-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms ease;
}

.moon-card .activity-visual img {
  object-position: center 42%;
}

.tide-card .activity-visual img {
  object-position: center 50%;
}

.roam-card .activity-visual img {
  object-position: center 48%;
}

.activity-card:hover .activity-visual img {
  transform: scale(1.035);
}

.visual-label {
  position: absolute;
  z-index: 1;
  left: 17px;
  bottom: 14px;
  color: rgba(244, 248, 237, 0.78);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.activity-copy {
  min-height: 220px;
  padding: 22px 23px 20px;
  display: flex;
  flex-direction: column;
}

.activity-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--home-muted);
  font-size: 10px;
}

.activity-kicker i {
  color: var(--home-gold);
  font-size: 19px;
  font-style: normal;
}

.activity-copy h2 {
  margin: 13px 0 8px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 30px;
  line-height: 1;
}

.tide-card .activity-copy h2 {
  color: #f5d58b;
}

.roam-card .activity-copy h2 {
  color: #d8ed82;
}

.activity-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.75;
}

.activity-enter {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--home-paper);
  font-size: 11px;
  font-weight: 700;
}

.activity-enter b {
  color: var(--home-gold);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.activity-card:hover .activity-enter b {
  transform: translateX(5px);
}

.home-footer {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(167, 195, 189, 0.72);
  font-size: 10px;
}

.home-footer span:nth-child(2) {
  color: var(--home-gold);
}

@media (max-width: 700px) {
  .home-shell {
    min-height: 100svh;
    padding: 20px 16px 22px;
  }

  .home-intro {
    padding: 43px 0 28px;
  }

  .home-intro h1 {
    font-size: 43px;
  }

  .home-intro p {
    font-size: 12px;
  }

  .activity-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .activity-card {
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: 188px;
  }

  .activity-copy {
    min-height: 0;
    padding: 16px 16px 14px;
  }

  .activity-copy h2 {
    margin-top: 9px;
    font-size: 25px;
  }

  .activity-copy p {
    font-size: 10px;
    line-height: 1.6;
  }

  .activity-enter {
    padding-top: 10px;
    font-size: 10px;
  }

  .visual-label {
    left: 10px;
    bottom: 10px;
    font-size: 7px;
    writing-mode: vertical-rl;
  }
}

@media (max-width: 390px) {
  .home-intro {
    padding-top: 34px;
  }

  .home-intro h1 {
    font-size: 37px;
  }

  .activity-card {
    grid-template-columns: 38% minmax(0, 1fr);
    grid-template-rows: 176px;
  }

  .activity-copy {
    padding-right: 12px;
    padding-left: 13px;
  }

  .activity-copy h2 {
    font-size: 22px;
  }

  .activity-copy p {
    font-size: 9px;
  }
}
