:root {
  color-scheme: light;
  --ink: #3f3029;
  --muted: #8a766c;
  --soft: #fff7e9;
  --line: #ead8c6;
  --card: #fffdf8;
  --blue: #cf7f5f;
  --blue-dark: #9d5943;
  --teal: #78a58f;
  --sun: #f4bf58;
  --coral: #dd7b74;
  --cream: #fff4de;
  --blush: #ffd9d4;
  --mint: #dcefdc;
  --shadow: 0 20px 50px rgba(103, 72, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 217, 212, 0.55), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(220, 239, 220, 0.74), transparent 26%),
    linear-gradient(180deg, #fff9ed 0%, #fffdf8 42%, #fff4de 100%);
}

button,
input,
select {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(234, 216, 198, 0.9);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.logo-mascot {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 36px;
  border-radius: 48% 48% 44% 44%;
  background: #fff7eb;
  border: 2px solid #4a342b;
  box-shadow: inset 0 -5px 0 rgba(228, 198, 166, 0.55), 0 5px 0 rgba(74, 52, 43, 0.1);
}

.logo-mascot::before,
.logo-mascot::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 5px;
  height: 7px;
  border-radius: 999px;
  background: #4a342b;
}

.logo-mascot::before {
  left: 12px;
}

.logo-mascot::after {
  right: 12px;
}

.logo strong {
  font-size: 22px;
  color: #4a342b;
}

.topbar nav {
  display: flex;
  gap: 22px;
  color: #344054;
  font-size: 15px;
  font-weight: 700;
}

.topbar nav a {
  border-radius: 999px;
  padding: 8px 10px;
}

.topbar nav a.active,
.topbar nav a:hover {
  background: #fff0c7;
  color: #4a342b;
}

.nav-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  background: #fff8e9;
  color: var(--ink);
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  align-content: end;
  gap: 34px;
  padding: 92px 0 44px;
  background:
    linear-gradient(180deg, rgba(66, 38, 24, 0.05), rgba(66, 38, 24, 0.34)),
    url("https://images.unsplash.com/photo-1506929562872-bb421503ef21?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  color: #fff;
  margin-inline: calc((100vw - min(1180px, calc(100% - 32px))) / -2);
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 14px;
  margin-inline: calc((100vw - min(1180px, calc(100% - 32px))) / -2);
  padding: 120px max(24px, calc((100vw - 1180px) / 2)) 48px;
  color: #4a342b;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 240, 199, 0.9), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 217, 212, 0.75), transparent 28%),
    linear-gradient(135deg, #fff9ed 0%, #f9decf 100%);
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 6.4vw, 70px);
}

.page-hero p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.creator-hero {
  background:
    radial-gradient(circle at 15% 25%, rgba(220, 239, 220, 0.95), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(255, 240, 199, 0.95), transparent 28%),
    linear-gradient(135deg, #fffdf8 0%, #e8f4df 100%);
}

.quest-hero {
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 217, 212, 0.9), transparent 30%),
    radial-gradient(circle at 82% 30%, rgba(220, 239, 220, 0.8), transparent 26%),
    linear-gradient(135deg, #fff9ed 0%, #ffd9d4 100%);
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe5a6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  width: min(640px, 100%);
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.9fr 1fr;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  background: rgba(255, 252, 243, 0.96);
  box-shadow: var(--shadow);
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.wide {
  grid-column: span 4;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 92, 173, 0.13);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #4a342b;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: #7e5141;
}

.destination-shell {
  margin-top: 34px;
}

.destination-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 4px solid #fff7eb;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.destination-hero img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.destination-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(66, 38, 24, 0.76), rgba(66, 38, 24, 0.2), rgba(66, 38, 24, 0.05));
}

.destination-overlay {
  position: absolute;
  z-index: 1;
  left: 34px;
  bottom: 34px;
  width: min(620px, calc(100% - 68px));
  color: #fff;
}

#destinationLabel {
  margin-bottom: 8px;
  color: #ffd27c;
  font-weight: 900;
}

.destination-overlay h2,
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.destination-overlay p:last-child {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.6;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.metrics article,
.place-card,
.social-card,
.video-card,
.prep-panel,
.timeline-card,
.source-panel,
.budget-item,
.total-budget,
.member-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(103, 72, 49, 0.09);
}

.metrics article {
  padding: 18px;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.content-section {
  padding: 62px 0 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head > p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.budget-section {
  padding-top: 56px;
}

.budget-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.total-budget {
  min-width: 250px;
  padding: 20px;
  background: #4a342b;
  color: #fff;
}

.total-budget span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.total-budget strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.budget-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

.budget-list {
  display: grid;
  gap: 12px;
}

.budget-item {
  padding: 18px;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: baseline;
}

.budget-row h3 {
  font-size: 19px;
}

.budget-row strong {
  font-size: 19px;
}

.budget-row span {
  color: var(--muted);
  font-weight: 900;
}

.budget-bar {
  height: 10px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.budget-bar i {
  display: block;
  height: 100%;
  width: var(--share);
  border-radius: inherit;
  background: linear-gradient(90deg, #dd7b74, #f4bf58, #78a58f);
}

.budget-item p {
  color: var(--muted);
  line-height: 1.6;
}

.source-panel {
  padding: 20px;
}

.source-panel h3 {
  margin-bottom: 8px;
}

.source-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.source-links {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.source-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--blue);
  font-weight: 900;
  background: #fff;
}

.source-links a span {
  color: var(--muted);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 20px;
}

.day-badge {
  display: grid;
  place-items: center;
  height: 110px;
  border-radius: 22px;
  background: #fff0c7;
  color: #8b5d23;
  font-size: 18px;
  font-weight: 950;
}

.timeline-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.route-step {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--soft);
}

.route-step span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.route-step strong {
  display: block;
  margin: 6px 0;
}

.route-step p,
.place-card p,
.social-card p,
.video-card p {
  color: var(--muted);
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card-grid.compact {
  grid-template-columns: 1fr;
}

.place-card {
  overflow: hidden;
}

.place-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.place-card-body {
  padding: 15px;
}

.place-card h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pill {
  border-radius: 999px;
  background: #fff0c7;
  color: #7a5736;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.social-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.social-card {
  padding: 18px;
}

.social-card span {
  color: var(--coral);
  font-weight: 900;
}

.social-card h3 {
  margin: 8px 0;
  font-size: 19px;
}

.video-list {
  display: grid;
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.play {
  display: grid;
  place-items: center;
  width: 74px;
  height: 54px;
  border-radius: 18px;
  background: #4a342b;
  color: #fff;
  font-weight: 950;
}

.video-card h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.video-card a {
  color: var(--blue);
  font-weight: 900;
}

.lower {
  padding-bottom: 64px;
}

.prep-panel {
  padding: 24px;
}

.prep-lists {
  display: grid;
  gap: 18px;
}

.prep-lists h3 {
  margin-bottom: 8px;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.member-section {
  padding-top: 54px;
}

.member-grid,
.creator-grid,
.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.creator-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.member-card {
  padding: 22px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.profile-card button {
  grid-column: 1 / -1;
}

.avatar,
.auth-mascot {
  display: grid;
  place-items: center;
  width: 62px;
  height: 56px;
  border: 2px solid #4a342b;
  border-radius: 48% 48% 42% 42%;
  background: #fff7eb;
  color: #4a342b;
  font-size: 26px;
  font-weight: 950;
  box-shadow: inset 0 -7px 0 rgba(228, 198, 166, 0.52);
}

.card-label {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-list,
.badge-wall,
.timeline-feed,
.connected-list,
.brief-board {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-chip,
.badge,
.feed-item,
.brief-item,
.connected-item,
.quest-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8e9;
  padding: 12px;
}

.badge-wall {
  grid-template-columns: repeat(2, 1fr);
}

.badge {
  text-align: center;
  font-weight: 900;
}

.stack-form {
  display: grid;
  gap: 13px;
}

.compact-head h2 {
  font-size: 30px;
}

.timeline-feed:empty::before,
.connected-list:empty::before,
.brief-board:empty::before,
.mini-list:empty::before {
  content: "還沒有資料，先新增一筆看看。";
  display: block;
  color: var(--muted);
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.quest-card.done {
  background: #e8f4df;
}

.quest-card strong {
  display: block;
  margin-bottom: 6px;
}

.auth-dialog {
  width: min(460px, calc(100% - 28px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(63, 48, 41, 0.42);
  backdrop-filter: blur(4px);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  width: 36px;
  padding: 0;
}

.auth-note {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .topbar nav {
    display: none;
  }

  .search-panel,
  .metrics,
  .two-column,
  .social-strip,
  .budget-layout,
  .member-grid,
  .creator-grid,
  .quest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wide {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 64px;
  }

  .nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
  }

  main {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 720px;
    margin-inline: -11px;
    padding: 82px 16px 24px;
  }

  .page-hero {
    min-height: 430px;
    margin-inline: -11px;
    padding: 92px 16px 34px;
  }

  .search-panel,
  .metrics,
  .two-column,
  .card-grid,
  .social-strip,
  .route-grid,
  .budget-layout,
  .member-grid,
  .creator-grid,
  .quest-grid {
    grid-template-columns: 1fr;
  }

  .budget-head {
    align-items: stretch;
    flex-direction: column;
  }

  .total-budget {
    min-width: 0;
  }

  .budget-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .wide {
    grid-column: span 1;
  }

  h1 {
    font-size: 42px;
  }

  .destination-overlay {
    left: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .day-badge {
    height: 64px;
  }

  .video-card {
    grid-template-columns: 64px 1fr;
  }

  .video-card a {
    grid-column: 2;
  }
}
