* {
  box-sizing: border-box;
}

:root {
  color: #26382f;
  background: #edf3ec;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(246, 244, 229, 0.9), rgba(224, 237, 222, 0.92)),
    url("./forest-boundary-bg.jpg") center / cover fixed;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: grid;
  gap: 54px;
  min-height: 230px;
  padding: 10px 0 24px;
}

.brand-line,
.poster-foot,
.auth-tabs,
.two-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-line span {
  color: #204c3a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

.brand-line a {
  color: #315d4b;
  text-decoration: none;
}

.eyebrow {
  margin: 0;
  color: #ca795c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-copy {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
}

.intro-copy h1 {
  margin: 0;
  color: #213b30;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1.02;
}

.intro-copy p:last-child {
  margin: 0;
  color: #53685c;
  font-size: 17px;
  line-height: 1.8;
}

.share-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(49, 93, 75, 0.14);
  border-radius: 18px;
  background: rgba(255, 252, 240, 0.82);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(38, 60, 46, 0.1);
  backdrop-filter: blur(16px);
}

.mini-shared-card {
  display: grid;
  gap: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 248, 0.82);
  padding: 14px;
}

.mini-shared-card span {
  color: #ca795c;
  font-weight: 700;
}

.mini-shared-card strong {
  color: #78906f;
}

.mini-shared-card p {
  margin: 0;
  color: #26382f;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.activity-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.poster {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(255, 251, 224, 0.7);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(20, 44, 31, 0.06), rgba(17, 40, 28, 0.22)),
    url("./forest-boundary-bg.jpg") center / cover;
  padding: 34px 28px 26px;
  box-shadow: 0 28px 80px rgba(27, 55, 41, 0.24);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 14%, rgba(255, 248, 195, 0.48), transparent 38%);
  pointer-events: none;
}

.poster-brand,
.poster-subtitle,
.paper-card,
.poster-foot {
  position: relative;
  z-index: 1;
}

.poster-brand {
  color: #234a39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  text-align: center;
}

.poster-subtitle {
  margin: 8px 0 22px;
  color: #27382f;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.poster-subtitle b {
  color: #ca795c;
}

.paper-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(219, 188, 126, 0.4);
  border-radius: 24px;
  background: rgba(255, 253, 238, 0.89);
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(43, 55, 34, 0.18);
  backdrop-filter: blur(10px);
}

.card-kicker {
  justify-self: center;
  color: #7b9276;
  font-size: 15px;
  font-weight: 800;
}

.paper-card h2 {
  margin: 0;
  color: #203b2b;
  font-size: clamp(34px, 8.5vw, 56px);
  line-height: 1.28;
  text-align: center;
}

.divider {
  display: flex;
  justify-content: center;
}

.divider span {
  width: 70%;
  border-top: 2px dotted rgba(202, 121, 92, 0.34);
}

.action-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(202, 121, 92, 0.16);
  border-radius: 18px;
  background: rgba(255, 248, 228, 0.68);
  padding: 16px;
}

.action-box small {
  color: #ca795c;
  font-weight: 900;
}

.action-box p,
.nature-image {
  margin: 0;
  color: #2f4438;
  font-size: 16px;
  line-height: 1.75;
}

.nature-image {
  color: #738875;
  text-align: center;
}

.poster-foot {
  margin-top: 22px;
}

.poster-foot p {
  margin: 0;
  color: #214333;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(255, 255, 240, 0.8);
}

.poster-foot img {
  width: 112px;
  height: 112px;
  border: 8px solid rgba(255, 253, 238, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 52, 38, 0.18);
}

.control-panel {
  display: grid;
  gap: 14px;
}

.panel-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(49, 93, 75, 0.12);
  border-radius: 20px;
  background: rgba(255, 252, 240, 0.86);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(38, 60, 46, 0.1);
  backdrop-filter: blur(16px);
}

.status-card strong {
  color: #204c3a;
  font-size: 34px;
}

.helper,
#drawHint {
  margin: 0;
  color: #63766b;
  font-size: 13px;
  line-height: 1.7;
}

.primary-button,
.secondary-button,
.auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
}

.primary-button {
  background: #315d4b;
  color: #fffdf4;
}

.secondary-button,
.auth-tabs button {
  background: rgba(49, 93, 75, 0.1);
  color: #315d4b;
}

.auth-tabs {
  justify-content: flex-start;
}

.auth-tabs button.active {
  background: #315d4b;
  color: #fffdf4;
}

form {
  display: grid;
  gap: 11px;
}

label {
  display: grid;
  gap: 6px;
  color: #526b5e;
  font-size: 13px;
  font-weight: 700;
}

.consent-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-weight: 600;
  line-height: 1.55;
}

.consent-row input {
  width: 18px;
  margin-top: 3px;
}

.consent-row a {
  color: #315d4b;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid rgba(49, 93, 75, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 248, 0.92);
  color: #24392f;
  padding: 12px 13px;
}

.link-box {
  min-height: 46px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(49, 93, 75, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 248, 0.78);
  color: #315d4b;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .page-shell {
    padding: 18px;
  }

  .hero {
    gap: 30px;
    min-height: 180px;
  }

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

  .poster {
    min-height: 690px;
    border-radius: 24px;
    padding: 28px 20px 22px;
  }

  .paper-card h2 {
    font-size: 42px;
  }

  .two-col {
    display: grid;
    grid-template-columns: 1fr;
  }
}
