#view-home {
  background: var(--paper);
}

/* ================= Hero (home) ================= */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 76px 26px 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    #ffc9de 0%,
    #ffe1b8 28%,
    #c9eedc 58%,
    #c6d8fa 82%,
    #e4cdf7 100%
  );
  animation: hueshift 24s ease-in-out infinite;
}
.hero-blob-x {
  position: absolute;
}
.hero-blob-y {
  width: 100%;
  height: 100%;
}
.hero-blob {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.hero-blob-1-x {
  top: -18%;
  left: -14%;
  width: 66vw;
  height: 66vw;
  animation: bounceX 19s ease-in-out infinite alternate;
}
.hero-blob-1-y {
  animation: bounceY 13s ease-in-out infinite alternate;
}
.hero-blob-1 {
  background: radial-gradient(
    circle at 48% 48%,
    #ff9bb5 0%,
    #ffcb8e 56%,
    rgba(255, 203, 142, 0) 76%
  );
  filter: blur(38px);
  opacity: 0.8;
}

.hero-blob-2-x {
  top: -10%;
  right: -14%;
  width: 60vw;
  height: 60vw;
  animation: bounceX2 27s ease-in-out infinite alternate;
}
.hero-blob-2-y {
  animation: bounceY2 18s ease-in-out infinite alternate;
}
.hero-blob-2 {
  background: radial-gradient(
    circle at 52% 46%,
    #8fd4f2 0%,
    #b6a8f5 58%,
    rgba(182, 168, 245, 0) 78%
  );
  filter: blur(40px);
  opacity: 0.72;
}

.hero-blob-3-x {
  bottom: -34%;
  left: 10%;
  width: 70vw;
  height: 70vw;
  animation: bounceX 33s ease-in-out infinite alternate-reverse;
}
.hero-blob-3-y {
  animation: bounceY 23s ease-in-out infinite alternate-reverse;
}
.hero-blob-3 {
  background: radial-gradient(
    circle at 50% 50%,
    #c5a9f5 0%,
    #ffa9cc 58%,
    rgba(255, 169, 204, 0) 78%
  );
  filter: blur(44px);
  opacity: 0.66;
}

.hero-blob-4-x {
  top: 16%;
  left: 26%;
  width: 48vw;
  height: 38vw;
  animation: bounceX2 41s ease-in-out infinite alternate;
}
.hero-blob-4 {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0) 68%
  );
  filter: blur(26px);
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0), var(--paper));
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1020px;
  text-align: center;
}

.hero-ring-wrap {
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ring-word {
  position: relative;
  padding: 0 10px;
}
.hero-ring-number {
  font-family: var(--font-hand-brush);
  font-size: clamp(104px, 13vw, 184px);
  line-height: 0.82;
  letter-spacing: -0.01em;
}
.hero-ring-title {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  margin-top: -2px;
}

.hero-copy-lead {
  font-size: 20px;
  line-height: 1.45;
  margin: 24px auto 18px;
  max-width: 30ch;
  font-weight: 500;
}
.hero-copy-dates {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 5px;
}
.hero-copy-location {
  font-size: 13.5px;
  opacity: 0.65;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(19px, 2.3vw, 26px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}
/* Left column, top to bottom */
.hero-note-years {
  left: 10%;
  top: -8%;
  transform: rotate(-9deg);
}
.hero-note-outer1 {
  left: -14%;
  top: 17%;
  transform: rotate(-16deg);
}
.hero-note-colours {
  left: 9%;
  top: 42%;
  transform: rotate(-13deg);
}
.hero-note-outer3 {
  left: -16%;
  top: 68%;
  transform: rotate(17deg);
}

/* Right column, top to bottom */
.hero-note-weekend {
  right: 12%;
  top: -5%;
  transform: rotate(6deg);
}
.hero-note-outer2 {
  right: -17%;
  top: 20%;
  transform: rotate(14deg);
}
.hero-note-play {
  right: 10%;
  top: 45%;
  transform: rotate(5deg);
}
.hero-note-outer4 {
  right: -15%;
  top: 71%;
  transform: rotate(-15deg);
}

/* ---------- Below the fold ---------- */
.home-below {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 28px 110px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.day-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 10px;
}
.day-title {
  font-size: 16px;
  margin: 0;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.day-card-note {
  border: 1.5px dashed var(--border-dashed);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.5);
}
.day-card-note p {
  font-family: var(--font-hand);
  font-size: 23px;
  margin: 0;
  line-height: 1.2;
}

.day-grid-link {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

/* ================= Schedule & RSVP ================= */
.schedule-view,
.missions-view {
  max-width: 1000px;
  margin: 0 auto;
  padding: 54px 28px 40px;
}
.missions-view {
  max-width: 1180px;
  padding: 54px 28px 130px;
}
.schedule-view-lower {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

.view-heading {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  font-weight: 900;
}
.view-intro {
  font-size: 17px;
  max-width: 54ch;
  opacity: 0.8;
  margin: 0 0 10px;
}
.hue-kicker.sub {
  margin: 0 0 42px;
  transform: rotate(-0.6deg);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.event-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 7px solid var(--event-color, var(--coral));
  border-radius: var(--radius-md);
  padding: 24px 26px;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}
.event-card:hover {
  background: var(--card-bg-active);
  transform: translateX(3px);
}
.event-card.is-selected {
  background: var(--card-bg-active);
}

.event-card .event-day {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 6px;
}
.event-card .event-time {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.event-card .event-date {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 4px;
}
.event-card h3 {
  font-size: 27px;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.event-card .event-place {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
  margin-bottom: 10px;
}
.event-card .event-blurb {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 52ch;
}
.event-card .event-going {
  font-family: var(--font-hand);
  font-size: 21px;
  color: var(--accent);
}

.event-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(18, 20, 28, 0.16);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.18s ease;
}
.event-toggle:hover {
  border-color: var(--ink);
}
.event-toggle.is-on {
  background: var(--event-color, var(--coral));
  border-color: var(--ink);
}
.event-toggle .toggle-box {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  flex: none;
  border: 1.5px solid rgba(18, 20, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--paper);
}
.event-toggle.is-on .toggle-box {
  background: var(--ink);
}

.rsvp-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.rsvp-heading-row h3 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 900;
}
.rsvp-summary {
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--accent);
  text-align: right;
}
.rsvp-subline {
  font-size: 16px;
  max-width: 52ch;
  opacity: 0.8;
  margin: 0 0 26px;
}

.rsvp-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.rsvp-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.rsvp-hint {
  font-size: 14px;
  opacity: 0.7;
}

.rsvp-footer-row {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rsvp-footer-row span {
  font-family: var(--font-hand);
  font-size: 24px;
}
.rsvp-footer-row a {
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--mint);
}

.rsvp-success {
  animation: pop 0.4s ease both;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--mint);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
}
.rsvp-success h3 {
  font-size: 32px;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.rsvp-success .rsvp-success-summary {
  font-size: 17px;
  margin: 0 0 6px;
  opacity: 0.85;
}
.rsvp-success .hue-kicker {
  font-size: 25px;
  margin: 0 0 22px;
}
.rsvp-success-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================= Missions ================= */
.missions-head-row {
  margin-bottom: 12px;
}
.missions-intro svg {
  display: inline-block;
  vertical-align: -2px;
}

.mission-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.mission-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mission-legend .dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 30px;
}

.mission-note-wrap {
  min-height: 270px;
}
.mission-note {
  position: relative;
  height: 100%;
  min-height: 270px;
  background: var(--mission-color, var(--coral));
  border-radius: 3px;
  padding: 22px 20px;
  cursor: pointer;
  transform: rotate(var(--mission-rot, 0deg));
  box-shadow:
    0 14px 26px -14px rgba(18, 20, 28, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.mission-note:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: 0 26px 38px -18px rgba(18, 20, 28, 0.5);
}
.mission-note .tape {
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -26px;
  width: 52px;
  height: 18px;
  background: rgba(251, 247, 240, 0.62);
  transform: rotate(var(--tape-rot, -4deg));
  box-shadow: 0 2px 4px rgba(18, 20, 28, 0.12);
}

.mission-face {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0;
}

.mission-front-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.mission-cat {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.65;
}
.mission-remote-icon {
  flex: none;
  opacity: 0.8;
}
.mission-face h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.mission-when {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.62;
}
.mission-bottom-slot {
  margin-top: auto;
  padding-top: 18px;
}
.mission-crew-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 2px;
}
.mission-claimed-by {
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.1;
  transform: rotate(-2deg);
}
.mission-unclaimed-hint {
  border-top: 1px dashed rgba(18, 20, 28, 0.35);
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
}

/* ---------- Mission detail modal ---------- */
#missionDialog {
  border: none;
  border-radius: 22px;
  padding: 0;
  width: min(640px, 92vw);
  max-width: none;
  max-height: 86vh;
  box-shadow: 0 30px 80px -20px rgba(18, 20, 28, 0.5);
  background: var(--paper);
}
#missionDialog::backdrop {
  background: rgba(18, 20, 28, 0.45);
  backdrop-filter: blur(2px);
}
#missionDialog[open] {
  animation: pop 0.25s ease both;
}
.mission-dialog-body {
  padding: 40px 44px 34px;
  overflow-y: auto;
  max-height: 86vh;
}
.mission-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 20, 28, 0.08);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mission-dialog-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.mission-dialog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mission-dialog-body h3 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.mission-dialog-when {
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.62;
  margin-bottom: 18px;
}
.mission-dialog-body p.mission-details {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 20px;
  opacity: 0.88;
  max-width: 68ch;
}
.mission-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.mission-dialog-claimants-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}

.claimant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.claimant-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(18, 20, 28, 0.2);
  border-radius: 999px;
  padding: 3px 6px 3px 10px;
}
.claimant-chip span {
  font-family: var(--font-hand);
  font-size: 21px;
  line-height: 1;
}
.claimant-chip button {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: rgba(18, 20, 28, 0.12);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
.claimant-chip button:hover {
  background: var(--ink);
  color: var(--paper);
}

.mission-add-row {
  display: flex;
  gap: 7px;
}
.mission-add-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.5px solid rgba(18, 20, 28, 0.3);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-family: var(--font-hand);
  outline: none;
}
.mission-add-row input:focus {
  border-color: var(--ink);
}
.mission-add-row button {
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.mission-add-row button:hover {
  background: var(--accent);
}

/* ================= Responsive ================= */
@media (max-width: 720px) {
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-card .event-toggle {
    width: fit-content;
  }
  .mission-grid {
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
  }
}

@media (max-width: 1400px) {
  .hero-note-outer1,
  .hero-note-outer2,
  .hero-note-outer3,
  .hero-note-outer4 {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-note {
    position: static;
    display: block;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin: 14px auto 0;
  }
}

@media (max-width: 480px) {
  .site-header .header-row {
    padding: 15px 20px;
  }
  .hero {
    padding: 56px 18px 60px;
  }
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #missionDialog {
    width: 94vw;
  }
  .mission-dialog-body {
    padding: 32px 24px 26px;
  }
}
