.treasure-page {
  --bay-ink: #07121d;
  --bay-panel: #10212e;
  --bay-panel-deep: #091722;
  --bay-gold: #e2bc68;
  --bay-gold-light: #f5dda1;
  --bay-sea: #5cc8d2;
  --bay-red: #d36b58;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, #1a61706b, transparent 30rem),
    radial-gradient(circle at 88% 40%, #a7792e2b, transparent 32rem),
    linear-gradient(180deg, #06101a 0%, #0b1925 48%, #07131d 100%);
  color: #e9f0f6;
  overflow-x: hidden;
}

.treasure-page,
.treasure-page * {
  box-sizing: border-box;
}

.treasure-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(#e5c77b0b 1px, transparent 1px),
    linear-gradient(90deg, #e5c77b0b 1px, transparent 1px),
    radial-gradient(circle, #f1d48d33 1px, transparent 1.5px);
  background-size: 72px 72px, 72px 72px, 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.treasure-page .gugu-site-header {
  position: relative;
  z-index: 2;
  border-bottom-color: #7f61344d;
  background:
    linear-gradient(100deg, #07131ea8, #13202bbd 50%, #07131ea8),
    radial-gradient(circle at 50% 0, #b58a3e1c, transparent 34rem);
}

.treasure-shell {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.treasure-shell::before,
.treasure-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  border: 1px solid #d8b45c26;
  transform: rotate(45deg);
}

.treasure-shell::before {
  top: 150px;
  left: -100px;
}

.treasure-shell::after {
  right: -110px;
  bottom: 260px;
}

.treasure-hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #b78e4673;
  border-radius: 18px;
  background: #08131d;
  box-shadow:
    0 0 0 5px #07131c,
    0 0 0 6px #a4814059,
    0 26px 70px #0009;
}

.treasure-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px #06101c99;
}

.treasure-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.treasure-hero__compass {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 70px;
  aspect-ratio: 1;
  border: 2px solid #f4d99199;
  border-radius: 50%;
  box-shadow: 0 0 24px #0009;
}

.treasure-hero__compass::before,
.treasure-hero__compass::after {
  content: "";
  position: absolute;
  inset: 9px 33px;
  background: linear-gradient(#f7da8c, #6b4a13);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.treasure-hero__compass::after {
  transform: rotate(90deg);
}

.treasure-hero__coin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #e6c46e;
  border-radius: 50%;
  box-shadow: 0 0 16px #f1c65f;
}

.treasure-hero__coin.coin-a {
  top: 34%;
  left: 8%;
}

.treasure-hero__coin.coin-b {
  top: 24%;
  right: 11%;
  transform: scale(.7);
}

.treasure-intro {
  position: relative;
  width: min(900px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 34px 42px 38px;
  text-align: center;
  border: 1px solid #c6a55c63;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #132838f2, #0a1823f7 58%, #142330f2),
    radial-gradient(circle at 50% 0, #d5ad5a26, transparent 22rem);
  box-shadow: 0 20px 60px #0008;
}

.treasure-intro::before,
.treasure-intro::after {
  content: "◆";
  position: absolute;
  top: 19px;
  color: #d5b364;
  font-size: 12px;
}

.treasure-intro::before {
  left: 22px;
}

.treasure-intro::after {
  right: 22px;
}

.treasure-eyebrow {
  margin: 0 0 12px;
  color: #aa9b7a;
  font: 600 11px/1.5 Georgia, serif;
  letter-spacing: .22em;
}

.treasure-intro h1 {
  margin: 0;
  color: var(--bay-gold-light);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 0 3px 20px #d7a94138;
}

.treasure-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.treasure-question {
  max-width: none;
  margin: 24px auto 12px;
  color: #f0f4f7;
  font-size: clamp(18px, 1.75vw, 23px);
  line-height: 1.75;
  white-space: nowrap;
}

.treasure-welcome {
  margin: 0;
  color: #8fd6dc;
  font-size: 16px;
}

.treasure-columns {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 24px;
  margin-top: 34px;
}

.treasure-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #b0905061;
  border-radius: 14px;
  background:
    linear-gradient(145deg, #142838e8, #0a1924ed 68%),
    radial-gradient(circle at 100% 0, #d4aa5221, transparent 20rem);
  box-shadow:
    0 16px 45px #0006,
    inset 0 1px #fff0;
}

.treasure-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border: 1px solid #d4b3651f;
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #d4b3650a,
    0 0 0 38px #d4b36508;
}

.treasure-card__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.treasure-card__heading p {
  margin: 0 0 4px;
  color: #827862;
  font: 600 10px/1.4 Georgia, serif;
  letter-spacing: .18em;
}

.treasure-card__heading h2 {
  margin: 0;
  color: #f1d89c;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 27px;
  letter-spacing: .06em;
}

.treasure-card__heading small {
  color: #8ea2b0;
  font-size: 12px;
}

.treasure-index {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #c7a75e7a;
  border-radius: 50%;
  color: #dfc784;
  font: 600 15px Georgia, serif;
  box-shadow: 0 0 18px #d7b65c1d;
}

.treasure-purpose-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.treasure-purpose-list li {
  position: relative;
  padding: 17px 18px;
  border-left: 2px solid #75c7ce;
  background: #07151f99;
}

.treasure-purpose-list li::before,
.treasure-rule::before {
  content: "◆";
  position: absolute;
  left: 15px;
  top: 21px;
  color: #7fd0d6;
  font-size: 8px;
}

.treasure-purpose-list p,
.treasure-rule p {
  margin: 0;
  padding-left: 14px;
  color: #dce7ee;
  line-height: 1.85;
}

.treasure-rule {
  position: relative;
  margin-top: 13px;
  padding: 17px 18px;
  border-left: 2px solid #75c7ce;
  background: #07151f99;
}

.treasure-rule:first-of-type {
  margin-top: 0;
}

.treasure-join {
  margin-top: 24px;
}

.treasure-join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.treasure-join-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid #5b7f8270;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a1b27ed, #102b35c7);
}

.treasure-join-grid b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #d9bd78;
  color: #10212b;
  font: 700 17px Georgia, serif;
}

.treasure-join-grid h3 {
  margin: 3px 0 9px;
  color: #f2d994;
  font-size: 17px;
}

.treasure-join-grid p {
  margin: 0;
  color: #cbdbe4;
  line-height: 1.85;
}

.treasure-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 38px;
  margin-top: 17px;
  padding: 8px 22px;
  border: 1px solid #62c879;
  border-radius: 7px;
  background: linear-gradient(180deg, #16a34a, #087b36);
  box-shadow:
    0 0 0 1px #ffffff17 inset,
    0 8px 20px #001e0b55;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.treasure-donate:hover,
.treasure-donate:focus-visible {
  border-color: #96e9a7;
  background: linear-gradient(180deg, #1bb655, #098f3e);
  color: #fff;
}

.treasure-declaration {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  margin-top: 24px;
  padding: 28px 32px;
  border: 1px solid #d5ae5b9e;
  border-radius: 12px;
  background:
    linear-gradient(105deg, #34250fcf, #181b1be8 38%, #0b1924f2);
  box-shadow: 0 18px 48px #0007;
}

.treasure-declaration__sigil {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #e3c477;
  border-radius: 50%;
  color: #f3dda7;
  font: 700 28px Georgia, serif;
  box-shadow: 0 0 24px #e2be5b33;
}

.treasure-declaration h2 {
  margin: 0 0 10px;
  color: #f3d58e;
  font-size: 21px;
}

.treasure-declaration p {
  margin: 0;
  color: #efe5d0;
  font-size: 15px;
  line-height: 1.95;
}

.treasure-page .gugu-public-footer {
  margin-top: 0;
  border-top-color: #8d734840;
}

@media (max-width: 900px) {
  .treasure-shell {
    width: min(calc(100% - 28px), 700px);
    max-width: calc(100% - 28px);
    padding-top: 24px;
  }

  .treasure-columns,
  .treasure-join-grid {
    grid-template-columns: 1fr;
  }

  .treasure-intro {
    width: calc(100% - 20px);
    margin-top: 16px;
    padding: 28px 20px 30px;
  }
}

@media (max-width: 560px) {
  .treasure-shell {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .treasure-hero__frame {
    border-radius: 12px;
  }

  .treasure-intro h1 {
    font-size: 34px;
  }

  .treasure-question {
    font-size: 17px;
    white-space: normal;
  }

  .treasure-card {
    padding: 23px 18px;
  }

  .treasure-card__heading h2 {
    font-size: 23px;
  }

  .treasure-purpose-list li,
  .treasure-rule {
    padding: 16px 14px;
  }

  .treasure-join-grid article {
    grid-template-columns: 36px 1fr;
    padding: 18px 16px;
  }

  .treasure-declaration {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treasure-page * {
    scroll-behavior: auto !important;
  }
}
