
/* The colors and default styles */
:root {
  --pink: #c94f7c;
  --dark-pink: #9f315d;
  --cream: #fff8f3;
  --light-pink: #fff0f4;
  --text: #4e3440;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* Top navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 8%;
  gap: 20px;
}

.logo {
  color: var(--dark-pink);
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

nav a:hover {
  color: var(--pink);
}

/* Main welcome section */
.hero {
  text-align: center;
  padding: 85px 20px 95px;
  background: linear-gradient(
    135deg,
    #fff0f4,
    #fbe2eb,
    #fff7ef
  );
}

.eyebrow {
  color: var(--pink);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero h1 {
  color: var(--dark-pink);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  margin: 20px 0;
}

.intro {
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.8;
  color: #785d68;
}

.main-button,
.question-box button {
  display: inline-block;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px 25px;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.main-button:hover,
.question-box button:hover {
  background: var(--dark-pink);
}

/* Feature cards */
.features {
  max-width: 1100px;
  margin: -25px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.feature-card {
  background: white;
  padding: 25px 20px;
  border: 1px solid #f4e2e7;
  border-radius: 18px;
  box-shadow: 0 8px 24px #6e34400c;
}

.emoji {
  font-size: 28px;
}

.feature-card h2 {
  color: var(--dark-pink);
  font-size: 18px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #785d68;
}

/* Daily question */
.question-section {
  max-width: 700px;
  margin: 75px auto;
  padding: 0 24px;
  text-align: center;
}

.question-section h2 {
  color: var(--dark-pink);
  font-size: 28px;
}

.question-box {
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 20px;
  padding: 30px 22px;
}

#question {
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 25px;
}

/* Bottom of the page */
footer {
  padding: 25px;
  text-align: center;
  color: #8c6978;
  background: var(--light-pink);
  font-size: 14px;
}

/* Adapt the design for phones */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    padding: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero {
    padding: 65px 20px 75px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px;
  }

  .feature-card {
    padding: 18px 14px;
  }

  .feature-card h2 {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .features {
    grid-template-columns: 1fr;
  }
}


/* Daily Questions categories */
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
}

.category-button {
  background: white;
  color: #9f315d;
  border: 1px solid #f1dce4;
  border-radius: 25px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
}

.category-button:hover,
.category-button.active {
  background: #c94f7c;
  color: white;
}

#answer-button {
  margin-left: 8px;
  background: #f5dce6;
  color: #9f315d;
}

#answer-button:hover {
  background: #edc5d5;
}

#answer-message {
  margin-top: 22px;
  padding: 15px;
  background: #fff0f4;
  border-radius: 12px;
  line-height: 1.7;
}

#answer-message[hidden] {
  display: none;
}

/* Mini-games section */
.games-section {
  padding: 70px 24px;
  text-align: center;
  background: #fff0f4;
}

.games-section h2 {
  color: #9f315d;
  font-size: 32px;
  margin: 15px 0;
}

.games-intro {
  color: #785d68;
  line-height: 1.7;
  margin-bottom: 35px;
}

.games-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.game-card {
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 24px #6e34400c;
}

.game-emoji {
  font-size: 32px;
}

.game-card h3 {
  color: #9f315d;
  font-size: 20px;
}

.game-card > p {
  color: #785d68;
  font-size: 14px;
  line-height: 1.7;
}

.game-result {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  margin: 20px 0;
  background: #fff8f3;
  border-radius: 14px;
  color: #4e3440;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.game-card button {
  width: 100%;
  background: #c94f7c;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 13px 18px;
  cursor: pointer;
  font-size: 14px;
}

.game-card button:hover {
  background: #9f315d;
}

/* Make the games fit smaller screens */
@media (max-width: 800px) {
  .games-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 400px) {
  .games-section {
    padding: 50px 16px;
  }

  .games-section h2 {
    font-size: 26px;
  }

  .game-card {
    padding: 20px;
  }
}


/* EverUs Mini-games: centered, polished design */

.games-section {
  width: 100%;
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(
    180deg,
    #fff0f4 0%,
    #fff8f3 100%
  );
}

.games-section .eyebrow {
  text-align: center;
}

.games-section h2 {
  width: 100%;
  margin: 16px auto;
  text-align: center;
  color: #9f315d;
  font-size: clamp(28px, 4vw, 38px);
}

.games-intro {
  max-width: 550px;
  margin: 0 auto 38px;
  text-align: center;
  color: #785d68;
  line-height: 1.8;
}

.games-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.game-card {
  min-width: 0;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(159, 49, 93, 0.12);
}

.game-emoji {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 38px;
}

.game-card h3 {
  margin: 12px 0;
  color: #9f315d;
  font-size: 20px;
  line-height: 1.4;
}

.game-card > p {
  min-height: 48px;
  color: #785d68;
  font-size: 14px;
  line-height: 1.7;
}

.game-result {
  min-height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 22px 0;
  background: #fff5f8;
  border: 1px solid #f8e6ed;
  border-radius: 16px;
  color: #4e3440;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.game-card button {
  width: 100%;
  padding: 14px 18px;
  background: #c94f7c;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.game-card button:hover {
  background: #9f315d;
}

.game-card button:focus-visible {
  outline: 3px solid #e6a5bd;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .games-section {
    padding: 60px 20px;
  }

  .games-grid {
    max-width: 520px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-card > p {
    min-height: auto;
  }
}


/* Couples Hangman */
.hangman-setup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.hangman-setup label {
  color: #785d68;
  font-size: 14px;
  font-weight: bold;
}

.hangman-setup input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #f1dce4;
  border-radius: 12px;
  background: #fff8f3;
  color: #4e3440;
  font: inherit;
}

.hangman-setup input:focus {
  outline: 2px solid #e6a5bd;
  border-color: #c94f7c;
}

.hangman-note {
  font-size: 12px;
  line-height: 1.6;
  color: #8c6978;
}

.hangman-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 20px 0;
}

.hangman-letter {
  width: 28px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 3px solid #c94f7c;
  color: #9f315d;
  font-size: 20px;
  font-weight: bold;
}

.hangman-space {
  width: 12px;
}

.hangman-keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 20px 0;
}

.hangman-keyboard button {
  width: 38px;
  min-height: 38px;
  padding: 8px 0;
  border-radius: 10px;
}

.hangman-keyboard button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#hangman-message {
  padding: 12px;
  border-radius: 12px;
  background: #fff0f4;
  color: #9f315d;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#hangman-lives,
#hangman-guessed {
  color: #785d68;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#hangman-game[hidden] {
  display: none;
}

.hangman-card #hangman-restart {
  margin-top: 8px;
}

.hangman-card #hangman-restart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Separate Hangman game screen */
.hangman-screen[hidden] {
  display: none;
}

.hangman-screen {
  min-height: 75vh;
  width: 100%;
  padding: 45px 20px 80px;
  background: linear-gradient(145deg, #fff0f4, #fff8f3 60%, #f7eafa);
}

.hangman-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.back-button {
  display: inline-block;
  width: auto;
  margin-bottom: 30px;
  padding: 11px 17px;
  border: 1px solid #f1dce4;
  border-radius: 25px;
  background: white;
  color: #9f315d;
  cursor: pointer;
}

.hangman-container > .eyebrow,
.hangman-container > h2,
.hangman-subtitle {
  text-align: center;
}

.hangman-container > h2 {
  color: #9f315d;
  font-size: clamp(28px, 5vw, 40px);
  margin: 14px 0;
}

.hangman-subtitle {
  color: #785d68;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hangman-play-area {
  max-width: 650px;
  margin: 0 auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(159, 49, 93, 0.09);
}

.hangman-drawing {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 20px;
  padding: 12px;
  background: #fff8fb;
  border-radius: 20px;
}

.hangman-drawing svg {
  display: block;
  width: 100%;
  height: auto;
}

.hangman-drawing line,
.hangman-drawing circle {
  fill: none;
  stroke: #9f315d;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hangman-part {
  visibility: hidden;
}

.hangman-part.visible {
  visibility: visible;
}

.hangman-play-area .hangman-setup {
  max-width: 450px;
  margin: 0 auto;
}

.hangman-play-area #hangman-game {
  max-width: 500px;
  margin: 0 auto;
}

.hangman-play-area #hangman-message {
  text-align: center;
}

.hangman-play-area #hangman-keyboard button {
  width: 40px;
  min-height: 40px;
}

.hangman-play-area #hangman-restart {
  display: block;
  max-width: 240px;
  margin: 20px auto 0;
}

.hangman-icon {
  display: inline-block;
  padding: 10px;
  border-radius: 18px;
  background: #fff0f4;
}

@media (max-width: 500px) {
  .hangman-screen {
    padding: 25px 14px 50px;
  }

  .hangman-play-area {
    padding: 18px 12px;
  }

  .hangman-drawing {
    max-width: 200px;
  }
}

/* =========================
   LONG-DISTANCE CORNER
========================= */

.distance-section {
  width: 100%;
  padding: 85px 24px;
  text-align: center;
  background: linear-gradient(
    180deg,
    #fff8f3 0%,
    #f9edf6 100%
  );
}

.distance-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}

.distance-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.distance-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

/* Main date card */

.date-card {
  max-width: 650px;
  margin: 0 auto 40px;
  padding: 40px 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 28px;
  box-shadow: 0 15px 40px rgba(159, 49, 93, 0.08);
}

.date-icon {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #fff0f4;
  font-size: 34px;
}

.date-card h3 {
  color: #9f315d;
  font-size: 24px;
  margin: 10px 0;
}

#date-idea {
  min-height: 55px;
  margin: 20px auto;
  color: #4e3440;
  font-size: 17px;
  line-height: 1.7;
}

#date-button {
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

#date-button:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

/* Three date idea cards */

.date-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.date-category {
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #f1dce4;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(159, 49, 93, 0.05);
  transition: transform 0.2s ease;
}

.date-category:hover {
  transform: translateY(-5px);
}

.date-category span {
  font-size: 32px;
}

.date-category h3 {
  color: #9f315d;
  margin: 14px 0 8px;
}

.date-category p {
  color: #785d68;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Mobile */

@media (max-width: 750px) {

  .distance-section {
    padding: 65px 18px;
  }

  .date-categories {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .date-card {
    padding: 32px 20px;
  }
}

/* =========================
   OUR MEMORIES
========================= */

.memories-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #f9edf6 0%,
    #fff8f3 100%
  );
}

.memories-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.memories-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.memories-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

/* Memory form */

.memory-form {
  max-width: 650px;
  margin: 0 auto 45px;
  padding: 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.08);
  text-align: left;
}

.memory-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9f315d;
  text-align: center;
  font-size: 22px;
}

.memory-form input,
.memory-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #efd8e2;
  border-radius: 14px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.memory-form input:focus,
.memory-form textarea:focus {
  border-color: #c94f7c;
}

.memory-form textarea {
  min-height: 120px;
  resize: vertical;
}

#add-memory-button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

#add-memory-button:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

/* Memory cards */

.memory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.memory-card {
  position: relative;
  padding: 25px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(159, 49, 93, 0.06);
}

.memory-card h3 {
  margin: 0 0 8px;
  color: #9f315d;
  font-size: 21px;
}

.memory-card-date {
  margin: 0 0 15px;
  color: #a36b80;
  font-size: 13px;
}

.memory-card-description {
  margin: 0;
  color: #4e3440;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.delete-memory {
  margin-top: 20px;
  padding: 9px 14px;
  border: 1px solid #f1dce4;
  border-radius: 20px;
  background: #fff0f4;
  color: #9f315d;
  cursor: pointer;
  font-size: 13px;
}

.delete-memory:hover {
  background: #f5dce6;
}

.empty-memories {
  grid-column: 1 / -1;
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed #e8c9d6;
  border-radius: 22px;
  text-align: center;
  color: #785d68;
}

.empty-memories span {
  font-size: 35px;
}

.empty-memories p {
  line-height: 1.7;
}

/* Mobile */

@media (max-width: 700px) {

  .memories-section {
    padding: 65px 18px;
  }

  .memory-form {
    padding: 22px;
  }

  .memory-list {
    grid-template-columns: 1fr;
  }

}

/* =========================
   OUR COUNTDOWN
========================= */

.countdown-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #fff8f3 0%,
    #f9edf6 100%
  );
}

.countdown-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.countdown-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.countdown-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

/* Countdown form */

.countdown-form {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.08);
}

.countdown-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9f315d;
  font-size: 22px;
}

.countdown-form input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #efd8e2;
  border-radius: 14px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
}

.countdown-form label {
  display: block;
  margin-bottom: 8px;
  color: #785d68;
  font-size: 14px;
  text-align: left;
}

#start-countdown,
#reset-countdown {
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

#start-countdown:hover,
#reset-countdown:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

/* Countdown display */

.countdown-display {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 25px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 28px;
  box-shadow: 0 15px 40px rgba(159, 49, 93, 0.09);
}

.countdown-label {
  margin: 0 0 10px;
  color: #a36b80;
  font-size: 14px;
}

#countdown-title-display {
  margin: 0 0 30px;
  color: #9f315d;
  font-size: clamp(24px, 4vw, 32px);
}

.countdown-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.countdown-box {
  padding: 22px 10px;
  background: #fff0f4;
  border: 1px solid #f1dce4;
  border-radius: 18px;
}

.countdown-box span {
  display: block;
  color: #9f315d;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: bold;
}

.countdown-box small {
  display: block;
  margin-top: 5px;
  color: #785d68;
  font-size: 13px;
}

.countdown-finished {
  margin: 25px 0;
  color: #9f315d;
  font-size: 20px;
  font-weight: bold;
}

#reset-countdown {
  margin-top: 25px;
  background: #f5dce6;
  color: #9f315d;
}

#reset-countdown:hover {
  background: #edc5d5;
}

@media (max-width: 650px) {

  .countdown-section {
    padding: 65px 18px;
  }

  .countdown-form {
    padding: 22px;
  }

  .countdown-numbers {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* =========================
   OUR BUCKET LIST
========================= */

.bucket-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #f9edf6 0%,
    #fff0f4 100%
  );
}

.bucket-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.bucket-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.bucket-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

/* Add item form */

.bucket-form {
  display: flex;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 35px;
}

#bucket-input {
  flex: 1;
  min-width: 0;
  padding: 14px 17px;
  border: 1px solid #efd8e2;
  border-radius: 30px;
  background: white;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

#bucket-input:focus {
  border-color: #c94f7c;
}

#add-bucket-button {
  padding: 14px 22px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

#add-bucket-button:hover {
  background: #9f315d;
}

/* Bucket items */

.bucket-list-items {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.bucket-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 17px 20px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(159, 49, 93, 0.05);
}

.bucket-checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: #c94f7c;
  cursor: pointer;
}

.bucket-text {
  flex: 1;
  color: #4e3440;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bucket-item.completed .bucket-text {
  color: #a36b80;
  text-decoration: line-through;
}

.delete-bucket {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid #f1dce4;
  border-radius: 18px;
  background: #fff0f4;
  color: #9f315d;
  cursor: pointer;
  font-size: 12px;
}

.delete-bucket:hover {
  background: #f5dce6;
}

.empty-bucket {
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed #e8c9d6;
  border-radius: 22px;
  text-align: center;
  color: #785d68;
}

.empty-bucket span {
  font-size: 35px;
}

.empty-bucket p {
  line-height: 1.7;
}

/* Mobile */

@media (max-width: 600px) {

  .bucket-section {
    padding: 65px 18px;
  }

  .bucket-form {
    flex-direction: column;
  }

  #add-bucket-button {
    width: 100%;
  }

  .bucket-item {
    padding: 15px;
  }

}
/* =========================
   LOVE NOTES
========================= */

.love-notes-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #fff0f4 0%,
    #fff8f3 100%
  );
}

.love-notes-container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.love-notes-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.love-notes-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

/* Love note form */

.love-note-form {
  max-width: 650px;
  margin: 0 auto 45px;
  padding: 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.08);
  text-align: left;
}

.love-note-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9f315d;
  text-align: center;
  font-size: 22px;
}

.love-note-form input,
.love-note-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #efd8e2;
  border-radius: 14px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.love-note-form input:focus,
.love-note-form textarea:focus {
  border-color: #c94f7c;
}

.love-note-form textarea {
  min-height: 150px;
  resize: vertical;
}

#add-love-note {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

#add-love-note:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

/* Love note cards */

.love-note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.love-note-card {
  position: relative;
  padding: 30px;
  background: #fffdf8;
  border: 1px solid #f1dce4;
  border-radius: 8px 8px 22px 22px;
  box-shadow: 0 10px 25px rgba(159, 49, 93, 0.07);
}

.love-note-card::before {
  content: "♡";
  position: absolute;
  top: 12px;
  right: 18px;
  color: #e6a5bd;
  font-size: 22px;
}

.love-note-card h3 {
  margin: 0 35px 8px 0;
  color: #9f315d;
  font-size: 21px;
}

.love-note-date {
  margin: 0 0 18px;
  color: #a36b80;
  font-size: 13px;
}

.love-note-message {
  margin: 0;
  color: #4e3440;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.delete-love-note {
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid #f1dce4;
  border-radius: 20px;
  background: #fff0f4;
  color: #9f315d;
  cursor: pointer;
  font-size: 12px;
}

.delete-love-note:hover {
  background: #f5dce6;
}

.empty-love-notes {
  grid-column: 1 / -1;
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed #e8c9d6;
  border-radius: 22px;
  text-align: center;
  color: #785d68;
}

.empty-love-notes span {
  font-size: 35px;
}

.empty-love-notes p {
  line-height: 1.7;
}

@media (max-width: 700px) {

  .love-notes-section {
    padding: 65px 18px;
  }

  .love-note-form {
    padding: 22px;
  }

  .love-note-list {
    grid-template-columns: 1fr;
  }

}
/* =========================
   PHOTO GALLERY
========================= */

.photos-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #fff8f3 0%,
    #f9edf6 100%
  );
}

.photos-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.photos-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.photos-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

/* Photo form */

.photo-form {
  max-width: 600px;
  margin: 0 auto 45px;
  padding: 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.08);
}

.photo-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9f315d;
  font-size: 22px;
}

.photo-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px dashed #e3bfd0;
  border-radius: 14px;
  background: #fffafc;
  color: #785d68;
}

.photo-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #efd8e2;
  border-radius: 14px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.photo-form input[type="text"]:focus {
  border-color: #c94f7c;
}

#add-photo-button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

#add-photo-button:hover {
  background: #9f315d;
}

/* Gallery */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.photo-card {
  overflow: hidden;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(159, 49, 93, 0.07);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.photo-card-content {
  padding: 18px;
}

.photo-caption {
  margin: 0;
  color: #4e3440;
  line-height: 1.6;
}

.delete-photo {
  margin-top: 15px;
  padding: 8px 14px;
  border: 1px solid #f1dce4;
  border-radius: 20px;
  background: #fff0f4;
  color: #9f315d;
  cursor: pointer;
  font-size: 12px;
}

.delete-photo:hover {
  background: #f5dce6;
}

.empty-photo-gallery {
  grid-column: 1 / -1;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed #e8c9d6;
  border-radius: 22px;
  text-align: center;
  color: #785d68;
}

.empty-photo-gallery span {
  font-size: 40px;
}

.empty-photo-gallery p {
  line-height: 1.7;
}

@media (max-width: 800px) {

  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 550px) {

  .photos-section {
    padding: 65px 18px;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .photo-card img {
    height: 260px;
  }

}
/* =========================
   COUPLE PROFILE
========================= */

.couple-profile-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #f9edf6 0%,
    #fff0f4 100%
  );
}

.couple-profile-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.couple-profile-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.couple-profile-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

.profile-card {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(159, 49, 93, 0.09);
}

.profile-hearts {
  color: #e6a5bd;
  font-size: 35px;
  margin-bottom: 15px;
}

.profile-pictures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.profile-person {
  text-align: center;
}

.profile-picture {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff0f4;
  border: 3px solid #f1dce4;
  font-size: 42px;
}

.profile-person h3 {
  margin: 0;
  color: #9f315d;
  font-size: 20px;
}

.profile-heart {
  color: #c94f7c;
  font-size: 30px;
}

.profile-story {
  max-width: 600px;
  margin: 40px auto 30px;
  padding: 25px;
  background: #fff8f3;
  border-radius: 20px;
}

.profile-story h3 {
  margin-top: 0;
  color: #9f315d;
  font-size: 21px;
}

.profile-story p {
  margin: 0;
  color: #4e3440;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.profile-detail {
  padding: 20px 15px;
  background: #fff0f4;
  border-radius: 18px;
}

.profile-detail span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.profile-detail strong {
  display: block;
  color: #9f315d;
  font-size: 14px;
}

.profile-detail p {
  margin: 7px 0 0;
  color: #785d68;
  font-size: 13px;
  line-height: 1.5;
}

#edit-profile-button,
#save-profile-button {
  padding: 14px 24px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

#edit-profile-button:hover,
#save-profile-button:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

.profile-form {
  max-width: 650px;
  margin: 30px auto 0;
  padding: 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.08);
  text-align: left;
}

.profile-form[hidden] {
  display: none;
}

.profile-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9f315d;
  text-align: center;
  font-size: 22px;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #efd8e2;
  border-radius: 14px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: #c94f7c;
}

.profile-form label {
  display: block;
  margin-bottom: 8px;
  color: #785d68;
  font-size: 14px;
}

.profile-form textarea {
  min-height: 130px;
  resize: vertical;
}

#save-profile-button {
  width: 100%;
}

@media (max-width: 650px) {

  .couple-profile-section {
    padding: 65px 18px;
  }

  .profile-card {
    padding: 30px 18px;
  }

  .profile-pictures {
    gap: 15px;
  }

  .profile-picture {
    width: 80px;
    height: 80px;
    font-size: 34px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 450px) {

  .profile-pictures {
    flex-direction: column;
    gap: 12px;
  }

  .profile-heart {
    order: 2;
  }

}
/* =========================
   EVERUS ACCOUNT
========================= */

.account-section {
  width: 100%;
  padding: 85px 24px;
  background: linear-gradient(
    180deg,
    #fff0f4 0%,
    #f9edf6 100%
  );
}

.account-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.account-container h2 {
  color: #9f315d;
  font-size: clamp(30px, 5vw, 42px);
  margin: 15px 0;
}

.account-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #785d68;
  line-height: 1.8;
}

.account-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 30px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 28px;
  box-shadow: 0 15px 40px rgba(159, 49, 93, 0.09);
}

.account-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 75px;
  height: 75px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background: #fff0f4;

  font-size: 35px;
}

.account-card > h3 {
  margin: 0 0 10px;
  color: #9f315d;
  font-size: 24px;
}

#account-message {
  margin-bottom: 25px;
  color: #785d68;
  line-height: 1.6;
}

#account-form,
#login-form {
  width: 100%;
}

#account-form input,
#login-form input {
  width: 100%;
  box-sizing: border-box;

  margin-bottom: 14px;

  padding: 14px 16px;

  border: 1px solid #efd8e2;
  border-radius: 14px;

  background: #fffafc;

  color: #4e3440;

  font-family: inherit;
  font-size: 14px;

  outline: none;
}

#account-form input:focus,
#login-form input:focus {
  border-color: #c94f7c;
}

#create-account-button,
#login-button,
#logout-button {
  width: 100%;

  padding: 14px 20px;

  border: none;
  border-radius: 30px;

  background: #c94f7c;

  color: white;

  font-size: 15px;
  font-weight: bold;

  cursor: pointer;

  transition: 0.2s ease;
}

#create-account-button:hover,
#login-button:hover,
#logout-button:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

.account-switch {
  margin-top: 20px;

  color: #785d68;

  font-size: 13px;
}

.account-switch button {
  border: none;
  background: none;

  color: #c94f7c;

  font-family: inherit;
  font-size: inherit;
  font-weight: bold;

  cursor: pointer;
}

.account-switch button:hover {
  color: #9f315d;
}

#logged-in-area {
  width: 100%;
}

#logged-in-area[hidden],
#login-form[hidden],
#account-form[hidden] {
  display: none;
}

.welcome-box {
  padding: 25px;

  background: #fff0f4;

  border: 1px solid #f1dce4;
  border-radius: 20px;

  margin-bottom: 20px;
}

.welcome-box > span {
  font-size: 35px;
}

.welcome-box h3 {
  color: #9f315d;
  margin: 10px 0;
}

.welcome-box p {
  margin: 0;
  color: #785d68;
}

@media (max-width: 600px) {

  .account-section {
    padding: 65px 18px;
  }

  .account-card {
    padding: 30px 20px;
  }

}
/* =========================
   PARTNER CONNECTION
========================= */

.partner-section {
  width: 100%;
  padding: 85px 24px;

  background: linear-gradient(
    180deg,
    #f9edf6 0%,
    #fff8f3 100%
  );
}

.partner-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;

  text-align: center;
}

.partner-container h2 {
  color: #9f315d;

  font-size: clamp(
    30px,
    5vw,
    42px
  );

  margin: 15px 0;
}

.partner-intro {
  max-width: 600px;

  margin: 0 auto 40px;

  color: #785d68;

  line-height: 1.8;
}


/* Partner cards */

.partner-card {
  max-width: 550px;

  margin: 0 auto 25px;

  padding: 35px 30px;

  background: white;

  border: 1px solid #f1dce4;

  border-radius: 26px;

  box-shadow:
    0 12px 30px
    rgba(159, 49, 93, 0.08);
}

.partner-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  margin: 0 auto 15px;

  border-radius: 50%;

  background: #fff0f4;

  font-size: 32px;
}

.partner-card h3 {
  color: #9f315d;

  font-size: 22px;

  margin: 10px 0;
}

.partner-card p {
  color: #785d68;

  line-height: 1.7;
}


/* Partner code */

.partner-code {
  margin: 20px auto;

  padding: 16px;

  max-width: 260px;

  background: #fff0f4;

  border: 1px dashed #e3bfd0;

  border-radius: 14px;

  color: #9f315d;

  font-size: 24px;

  font-weight: bold;

  letter-spacing: 2px;
}


/* Input */

#partner-code-input {
  width: 100%;

  box-sizing: border-box;

  margin: 15px 0;

  padding: 14px 16px;

  border: 1px solid #efd8e2;

  border-radius: 14px;

  background: #fffafc;

  color: #4e3440;

  font-family: inherit;

  font-size: 15px;

  text-align: center;

  text-transform: uppercase;

  outline: none;
}

#partner-code-input:focus {
  border-color: #c94f7c;
}


/* Buttons */

#generate-code-button,
#connect-partner-button {
  width: 100%;

  padding: 14px 20px;

  border: none;

  border-radius: 30px;

  background: #c94f7c;

  color: white;

  font-size: 15px;

  font-weight: bold;

  cursor: pointer;

  transition: 0.2s ease;
}

#generate-code-button:hover,
#connect-partner-button:hover {
  background: #9f315d;

  transform: translateY(-2px);
}


/* Connection success */

.connection-result {
  max-width: 550px;

  margin: 30px auto 0;

  padding: 35px 25px;

  background: #fff0f4;

  border: 1px solid #f1dce4;

  border-radius: 24px;

  text-align: center;
}

.connection-result[hidden] {
  display: none;
}

.connection-result > span {
  font-size: 40px;
}

.connection-result h3 {
  color: #9f315d;

  font-size: 24px;

  margin: 12px 0;
}

.connection-result p {
  color: #785d68;

  line-height: 1.7;
}


@media (max-width: 600px) {

  .partner-section {
    padding: 65px 18px;
  }

  .partner-card {
    padding: 28px 20px;
  }

}
/* =========================
   PRIVATE COUPLE SPACE
========================= */

.couple-space-section {
  width: 100%;
  padding: 90px 24px;

  background: linear-gradient(
    180deg,
    #fff0f4 0%,
    #f9edf6 100%
  );
}

.couple-space-container {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  text-align: center;
}

.couple-space-container h2 {
  color: #9f315d;

  font-size: clamp(
    30px,
    5vw,
    42px
  );

  margin: 15px 0;
}

.couple-space-intro {
  max-width: 600px;

  margin: 0 auto 40px;

  color: #785d68;

  line-height: 1.8;
}


/* Couple header */

.couple-space-header {
  max-width: 650px;

  margin: 0 auto 35px;

  padding: 35px 25px;

  background: white;

  border: 1px solid #f1dce4;

  border-radius: 28px;

  box-shadow:
    0 15px 40px
    rgba(159, 49, 93, 0.08);
}

.couple-space-heart {
  font-size: 45px;

  margin-bottom: 10px;
}

.couple-space-header h3 {
  margin: 0 0 10px;

  color: #9f315d;

  font-size: 26px;
}

.couple-space-header p {
  margin: 0;

  color: #785d68;

  font-size: 14px;
}


/* Feature grid */

.couple-space-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;

  max-width: 900px;

  margin: 0 auto 35px;
}


/* Feature cards */

.space-card {
  display: block;

  padding: 28px 20px;

  background: white;

  border: 1px solid #f1dce4;

  border-radius: 22px;

  text-decoration: none;

  box-shadow:
    0 10px 25px
    rgba(159, 49, 93, 0.06);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.space-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 15px 30px
    rgba(159, 49, 93, 0.11);
}

.space-card span {
  display: block;

  font-size: 35px;

  margin-bottom: 10px;
}

.space-card h3 {
  margin: 8px 0;

  color: #9f315d;

  font-size: 19px;
}

.space-card p {
  margin: 0;

  color: #785d68;

  font-size: 13px;

  line-height: 1.7;
}


/* Private message */

.private-message {
  max-width: 700px;

  margin: 0 auto;

  padding: 30px 25px;

  background: #fff8f3;

  border: 1px solid #f1dce4;

  border-radius: 22px;
}

.private-message > span {
  font-size: 32px;
}

.private-message h3 {
  color: #9f315d;

  margin: 10px 0;
}

.private-message p {
  max-width: 550px;

  margin: 0 auto;

  color: #785d68;

  line-height: 1.7;
}


/* Mobile */

@media (max-width: 800px) {

  .couple-space-section {
    padding: 65px 18px;
  }

  .couple-space-grid {
    grid-template-columns: 1fr;

    max-width: 500px;
  }

}

/* =========================
   BOTTOM NAVIGATION (phones)
========================= */

.bottom-nav {
  display: none;
}

@media (max-width: 700px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 248, 243, 0.96);
    border-top: 1px solid #f1dce4;
    box-shadow: 0 -4px 20px rgba(159, 49, 93, 0.08);
  }

  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 22px;
    color: #9f315d;
    text-decoration: none;
  }

  .bottom-nav a span {
    font-size: 11px;
    font-weight: bold;
  }

  /* Keeps the footer from hiding behind the bar */
  body {
    padding-bottom: 70px;
  }
}

/* Hide the long top menu on phones (bottom bar replaces it) */
@media (max-width: 700px) {
  .navbar {
    padding: 16px 20px;
    justify-content: center;
  }

  .navbar nav {
    display: none;
  }
}

/* Clickable home cards */
a.feature-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(159, 49, 93, 0.12);
}

/* Screens: hide the parts that aren't being shown */
.screen-hidden {
  display: none !important;
}

/* Highlight the current tab in the bottom bar */
.bottom-nav a.active {
  color: #c94f7c;
  background: #fff0f4;
  border-radius: 14px;
}

/* Back button inside Our Space features */
.back-to-space {
  display: inline-block;
  margin-bottom: 25px;
  padding: 10px 16px;
  border: 1px solid #f1dce4;
  border-radius: 25px;
  background: white;
  color: #9f315d;
  font-size: 14px;
  text-decoration: none;
}

.back-to-space:hover {
  background: #fff0f4;
}

/* Center the last card in the Our Space menu on computers */
@media (min-width: 801px) {
  .couple-space-grid .space-card:last-child {
    grid-column: 2;
  }
}

/* Highlight the current page in the top menu */
.navbar nav a {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 15px;
}

.navbar nav a.active {
  background: #fff0f4;
  color: #c94f7c;
  font-weight: bold;
}

/* =========================
   PRIVATE MESSAGES
========================= */

.messages-section {
  width: 100%;
  padding: 70px 24px;
  background: linear-gradient(180deg, #fff0f4 0%, #fff8f3 100%);
}

.messages-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.messages-container h2 {
  color: #9f315d;
  font-size: clamp(28px, 5vw, 38px);
  margin: 15px 0;
}

.messages-note {
  max-width: 480px;
  margin: 0 auto 25px;
  color: #785d68;
  font-size: 13px;
  line-height: 1.7;
}

.chat-box {
  overflow: hidden;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 26px;
  box-shadow: 0 15px 40px rgba(159, 49, 93, 0.09);
  text-align: left;
}

.chat-header {
  padding: 16px 20px;
  background: #fff0f4;
  border-bottom: 1px solid #f1dce4;
  color: #9f315d;
  font-weight: bold;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  background: #fffafc;
}

.empty-chat {
  margin: auto;
  text-align: center;
  color: #785d68;
}

.empty-chat span {
  font-size: 38px;
}

.empty-chat p {
  line-height: 1.7;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-bubble small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.75;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: #c94f7c;
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: #fff0f4;
  color: #4e3440;
  border-bottom-left-radius: 6px;
}

.chat-composer {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #f1dce4;
  background: white;
}

#message-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid #efd8e2;
  border-radius: 30px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

#message-input:focus {
  border-color: #c94f7c;
}

#send-message-button {
  padding: 13px 20px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

#send-message-button:hover {
  background: #9f315d;
}

@media (max-width: 600px) {
  .messages-section {
    padding: 50px 14px;
  }

  .chat-messages {
    height: 360px;
  }
}

/* =========================
   BACKGROUND DECORATIONS
========================= */

:is(
  .hero,
  .games-section,
  .hangman-screen,
  .distance-section,
  .memories-section,
  .countdown-section,
  .bucket-section,
  .love-notes-section,
  .photos-section,
  .couple-profile-section,
  .account-section,
  .partner-section,
  .couple-space-section,
  .messages-section
) {
  position: relative;
  isolation: isolate;
}

:is(
  .hero,
  .games-section,
  .hangman-screen,
  .distance-section,
  .memories-section,
  .countdown-section,
  .bucket-section,
  .love-notes-section,
  .photos-section,
  .couple-profile-section,
  .account-section,
  .partner-section,
  .couple-space-section,
  .messages-section
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(230, 165, 189, 0.28), transparent 35%),
    radial-gradient(circle at 92% 85%, rgba(245, 210, 150, 0.25), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(214, 170, 230, 0.18), transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23e6a5bd'%3E%3Cpath opacity='.32' transform='translate(16 18) scale(.9)' d='M10 17C2 11 0 6 3.5 3.5C6 1.5 9 3 10 5C11 3 14 1.5 16.5 3.5C20 6 18 11 10 17Z'/%3E%3Cpath opacity='.22' transform='translate(88 66) rotate(14 10 10) scale(1.3)' d='M10 17C2 11 0 6 3.5 3.5C6 1.5 9 3 10 5C11 3 14 1.5 16.5 3.5C20 6 18 11 10 17Z'/%3E%3Cpath opacity='.28' transform='translate(34 98) rotate(-12 10 10) scale(.7)' d='M10 17C2 11 0 6 3.5 3.5C6 1.5 9 3 10 5C11 3 14 1.5 16.5 3.5C20 6 18 11 10 17Z'/%3E%3C/g%3E%3Cg fill='%23f0c987'%3E%3Ccircle cx='112' cy='24' r='2.2' opacity='.55'/%3E%3Ccircle cx='64' cy='52' r='1.6' opacity='.5'/%3E%3Ccircle cx='20' cy='70' r='1.8' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, 140px 140px;
}


/* =========================
   MESSAGES: SEEN AND TYPING
========================= */

.chat-box {
  position: relative;
}

.chat-status {
  margin-left: 2px;
}

.chat-status.seen {
  display: inline-block;
  font-weight: bold;
  animation: seenPop 0.4s ease;
}

@keyframes seenPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: #fffafc;
  color: #a36b80;
  font-size: 13px;
}

.typing-indicator[hidden] {
  display: none;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e6a5bd;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.hearts-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flying-heart {
  position: absolute;
  bottom: 70px;
  left: 16px;
  opacity: 0;
  animation: floatUp 2.6s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--drift, 30px), -280px) scale(1.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dots i,
  .chat-status.seen {
    animation: none;
  }
}

/* =========================
   STYLE A: SOFT BLUSH
========================= */

:root {
  --gold: #e0a458;
}

body {
  font-family: "Nunito", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

/* Small gold line under each section heading */
section:not(.features) h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--gold);
}

/* Who added the photo */
.photo-by {
  margin: 6px 0 0;
  color: #a36b80;
  font-size: 12px;
}

/* =========================
   ROMANTIC POLISH
========================= */

/* ----- Buttons: shimmer, soft shadow, press effect ----- */

.rb {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 6px 16px rgba(201, 79, 124, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.rb::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.rb:hover {
  box-shadow:
    0 10px 22px rgba(201, 79, 124, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.rb:hover::after {
  left: 130%;
}

.rb:active {
  transform: translateY(1px) scale(0.97) !important;
}

.rb:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.rb:focus-visible {
  outline: 3px solid #e6a5bd;
  outline-offset: 3px;
}


/* ----- Hearts that burst when you click a button ----- */

.heart-burst {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  font-size: 16px;
  animation: heartBurst 0.9s ease-out forwards;
}

@keyframes heartBurst {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }

  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.3);
  }
}


/* ----- Text boxes: soft glow when you click into them ----- */

:is(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  textarea
) {
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

:is(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  textarea
):focus {
  border-color: #c94f7c;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(230, 165, 189, 0.35);
  outline: none;
}

/* Handwritten labels */
:is(
  .countdown-form label,
  .profile-form label,
  .hangman-setup label
) {
  font-family: "Dancing Script", cursive;
  font-size: 20px;
  font-weight: 500;
  color: #9f315d;
}


/* ----- Memory cards: stationery with a gold seal ----- */

.memory-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.memory-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed #f0c3d3;
  border-radius: 15px;
  pointer-events: none;
}

.memory-card::after {
  content: "♡";
  position: absolute;
  top: -10px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c94f7c;
  color: white;
  font-size: 15px;
  box-shadow:
    0 3px 8px rgba(201, 79, 124, 0.4),
    inset 0 0 0 2px #e0a458;
}

.memory-card:hover {
  transform: translateY(-5px) rotate(-0.8deg);
  box-shadow: 0 14px 28px rgba(159, 49, 93, 0.16);
}

.memory-card h3 {
  font-family: "Dancing Script", cursive;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.1;
}

.memory-card-date {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
}


/* ----- Love notes: lined paper and handwriting ----- */

.love-note-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.love-note-card:hover {
  transform: translateY(-5px) rotate(0.8deg);
  box-shadow: 0 14px 28px rgba(159, 49, 93, 0.16);
}

.love-note-card::before {
  color: #e0a458;
}

.love-note-card h3 {
  font-family: "Dancing Script", cursive;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.1;
}

.love-note-message {
  line-height: 28px;
  background: repeating-linear-gradient(
    transparent,
    transparent 27px,
    #f3e4e8 27px,
    #f3e4e8 28px
  );
}


/* ----- Photos and bucket list: gentle lift ----- */

.photo-card,
.bucket-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(159, 49, 93, 0.14);
}

.bucket-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(159, 49, 93, 0.1);
}


/* ----- Section headings: gold line with a heart in the middle ----- */

section:not(.features) h2::after {
  content: "♡";
  display: block;
  width: 190px;
  height: auto;
  margin: 12px auto 0;
  border-radius: 0;
  text-align: center;
  line-height: 1;
  font-size: 15px;
  color: var(--gold);
  background:
    linear-gradient(#e0a458, #e0a458) left center / 56px 1.5px no-repeat,
    linear-gradient(#e0a458, #e0a458) right center / 56px 1.5px no-repeat;
}


/* ----- Gentle fade when a screen appears ----- */

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:is(
  .hero,
  .features,
  #games,
  #hangman-screen,
  #dates,
  #questions,
  #couple-space,
  #memories,
  #countdown,
  #bucket-list,
  #love-notes,
  #photos,
  #couple-profile,
  #account,
  #partner,
  #messages
) {
  animation: screenIn 0.35s ease;
}


/* ----- Warm pop-up messages ----- */

.love-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(90vw, 420px);
  padding: 8px 20px 8px 8px;
  background: white;
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(159, 49, 93, 0.22);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.love-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.love-toast b {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff0f4;
  color: #c94f7c;
  font-weight: 400;
  font-size: 16px;
}

.love-toast span {
  font-family: "Dancing Script", cursive;
  font-size: 20px;
  line-height: 1.25;
  color: #9f315d;
}


/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .rb::after,
  .heart-burst {
    display: none;
  }

  :is(
    .hero,
    .features,
    #games,
    #hangman-screen,
    #dates,
    #questions,
    #couple-space,
    #memories,
    #countdown,
    #bucket-list,
    #love-notes,
    #photos,
    #couple-profile,
    #account,
    #partner,
    #messages
  ) {
    animation: none;
  }
}

/* =========================
   STATUS: OUR LITTLE CHECK-IN
========================= */

.status-section {
  width: 100%;
  padding: 70px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 15%, rgba(230, 165, 189, 0.28), transparent 38%),
    radial-gradient(circle at 92% 85%, rgba(245, 210, 150, 0.25), transparent 40%),
    #fff8f3;
}

.status-container {
  max-width: 900px;
  margin: 0 auto;
}

.status-container h2 {
  margin: 15px 0;
  color: #9f315d;
  font-size: clamp(28px, 5vw, 38px);
}

.status-intro {
  max-width: 520px;
  margin: 0 auto 32px;
  color: #785d68;
  line-height: 1.8;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.status-card {
  padding: 26px 22px;
  background: white;
  border: 1px solid #f1dce4;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(159, 49, 93, 0.08);
}

.status-label {
  margin: 0 0 10px;
  color: #a36b80;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.partner-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.status-mood {
  margin: 6px 0 10px;
  font-size: 56px;
  line-height: 1;
}

.status-text {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: 28px;
  line-height: 1.25;
  color: #9f315d;
  overflow-wrap: anywhere;
}

.status-time {
  margin: 10px 0 0;
  color: #a36b80;
  font-size: 13px;
}

.partner-status.pulse {
  animation: statusPulse 0.9s ease;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 79, 124, 0.5);
  }

  100% {
    box-shadow: 0 0 0 24px rgba(201, 79, 124, 0);
  }
}

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.mood-chip {
  padding: 7px 12px;
  border: 1px solid #f1dce4;
  border-radius: 999px;
  background: #fff8f3;
  color: #9f315d;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s ease;
}

.mood-chip:hover {
  background: #fff0f4;
}

.mood-chip.on {
  background: #c94f7c;
  border-color: #c94f7c;
  color: white;
  transform: translateY(-1px);
}

#status-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid #efd8e2;
  border-radius: 14px;
  background: #fffafc;
  color: #4e3440;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.quick-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}

.phrase-chip {
  padding: 5px 11px;
  border: 1px dashed #e0a458;
  border-radius: 999px;
  background: transparent;
  color: #9f315d;
  font-family: "Dancing Script", cursive;
  font-size: 17px;
  cursor: pointer;
}

.phrase-chip:hover {
  background: #fff8ec;
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#share-status-button {
  flex: 1;
  padding: 13px 18px;
  border: none;
  border-radius: 30px;
  background: #c94f7c;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

#share-status-button:hover {
  background: #9f315d;
  transform: translateY(-2px);
}

.status-clear {
  padding: 11px 16px;
  border: 1px solid #f1dce4;
  border-radius: 25px;
  background: #fff0f4;
  color: #9f315d;
  font-size: 13px;
  cursor: pointer;
}

.status-clear:hover {
  background: #f5dce6;
}

.status-mine {
  margin: 14px 0 0;
  color: #785d68;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#status {
  animation: screenIn 0.35s ease;
}

@media (max-width: 700px) {

  .status-section {
    padding: 55px 16px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {

  #status,
  .partner-status.pulse {
    animation: none;
  }

}

/* Heart inside text boxes */

.heart-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.bucket-form .heart-field {
  width: auto;
}

.heart-field > input {
  padding-right: 44px !important;
}

.heart-field > span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #e6a5bd;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transition: color 0.2s ease;
}

.heart-field > input:focus + span {
  color: #c94f7c;
  animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-field > input:focus + span {
    animation: none;
  }
}

/* Message box: heart inside the pill */

.chat-composer .heart-field > input {
  width: 100%;
  box-sizing: border-box;
}

.chat-composer .heart-field > span {
  right: 18px;
}

/* =========================
   OUR MEMORY STRAND
========================= */

#memory-strand {
  animation: screenIn 0.35s ease;
}

.strand-section {
  width: 100%;
  padding: 50px 24px 80px;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 90, 150, 0.22), transparent 55%),
    #100a10;
  color: #f6dbe6;
}

.strand-section .back-to-space {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 170, 200, 0.35);
  color: #ffc5da;
}

.strand-wrap {
  max-width: 1100px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px) 1fr;
  gap: 24px;
  align-items: center;
}

.strand-title {
  margin: 0 0 14px;
  color: #fbe3ec;
  font-size: 14px;
  letter-spacing: 6px;
}

.strand-text {
  margin: 0;
  color: #d9b8c6;
  font-size: 13px;
  line-height: 1.9;
}

.strand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #ff7aa8;
}

.strand-mark span {
  display: block;
  width: 34px;
  height: 1px;
  background: #ff7aa8;
}

.strand-stage {
  position: relative;
  height: 640px;
  isolation: isolate;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.strand-stage.grabbing {
  cursor: grabbing;
}

.strand-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 100, 160, 0.65));
}

#strand-back {
  z-index: 1;
}

#strand-front {
  z-index: 3;
}

.strand-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.strand-card {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  width: 96px;
  height: 70px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 200, 0.75);
  border-radius: 6px;
  background: #2a1320;
  box-shadow: 0 0 18px rgba(255, 100, 150, 0.5);
  color: inherit;
  cursor: pointer;
  will-change: transform, opacity;
}

.strand-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.strand-glyph {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px;
  background: linear-gradient(160deg, #4a1d38, #241020);
  text-align: center;
}

.strand-glyph span {
  font-size: 22px;
}

.strand-glyph small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #ffd1e1;
  font-size: 10px;
  line-height: 1.25;
}

.strand-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 80%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #d9b8c6;
  font-family: "Dancing Script", cursive;
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
}

.strand-empty[hidden] {
  display: none;
}

.strand-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.strand-controls button {
  padding: 9px 18px;
  border: 1px solid rgba(255, 170, 200, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffc5da;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.strand-controls button:hover {
  background: rgba(255, 120, 170, 0.2);
}

.strand-legend {
  display: grid;
  gap: 26px;
}

.legend-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.legend-row b {
  min-width: 26px;
  color: #ff7aa8;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.legend-row p {
  margin: 0;
  color: #d9b8c6;
  font-size: 12px;
  line-height: 1.7;
}

.legend-row .legend-title {
  margin-bottom: 4px;
  color: #fbe3ec;
  font-size: 12px;
  letter-spacing: 3px;
}

/* ----- Opening a memory up close ----- */

.strand-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 5, 10, 0.84);
}

.strand-modal[hidden] {
  display: none;
}

.strand-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 24px 22px;
  border: 1px solid rgba(255, 170, 200, 0.5);
  border-radius: 22px;
  background: #1a0d15;
  box-shadow: 0 0 40px rgba(255, 100, 150, 0.35);
  color: #f6dbe6;
}

.strand-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffc5da;
  font-size: 15px;
  cursor: pointer;
}

.strand-modal-image {
  margin-bottom: 16px;
}

.strand-modal-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
}

.strand-modal-type {
  margin: 0 0 6px;
  color: #ff7aa8;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.strand-modal-title {
  margin: 0;
  color: #fbe3ec;
  font-family: "Dancing Script", cursive;
  font-size: 32px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.strand-modal-when {
  margin: 8px 0 14px;
  color: #c9a3b4;
  font-size: 12px;
  line-height: 1.6;
}

.strand-modal-text {
  margin: 0;
  color: #f1d3df;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.strand-modal-by {
  margin: 14px 0 0;
  color: #c9a3b4;
  font-size: 13px;
}

.strand-modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.strand-modal-nav button {
  padding: 9px 16px;
  border: 1px solid rgba(255, 170, 200, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #ffc5da;
  font-size: 13px;
  cursor: pointer;
}

.strand-modal-nav button:hover {
  background: rgba(255, 120, 170, 0.2);
}

/* ----- Our Space menu: room for the new card ----- */

@media (min-width: 801px) {

  .couple-space-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1000px;
  }

  .couple-space-grid .space-card:last-child {
    grid-column: auto;
  }

}

/* ----- Phones ----- */

@media (max-width: 900px) {

  .strand-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .strand-left {
    text-align: center;
  }

  .strand-mark {
    justify-content: center;
  }

  .strand-stage {
    height: 560px;
  }

  .strand-legend {
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
  }

}

/* =========================
   HANGMAN: BUILDING THE GALLOWS
========================= */

/* Faint dotted outline of what will be built */
.hangman-ghost line,
.hangman-ghost circle {
  stroke: #f1dce4;
  stroke-width: 3;
  stroke-dasharray: 4 7;
}

/* Each new piece draws itself in */
.hangman-part.visible,
.hangman-part.visible line {
  stroke-dasharray: 300;
  animation: hangmanDraw 0.6s ease-out forwards;
}

@keyframes hangmanDraw {
  from {
    stroke-dashoffset: 300;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hangman-part.visible,
  .hangman-part.visible line {
    animation: none;
  }

}