/* Sidrah's corner: bold type and pink paper, with her own artwork as the accent. */
:root {
  --paper: #fffafd;
  --blush: #f9e3ed;
  --petal: #f2b8d1;
  --pink: #dd5c9b;
  --pink-dark: #a63170;
  --berry: #43283b;
  --muted: #725566;
  --line: #e9c2d4;
  --display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

body { background: var(--paper); letter-spacing: -.01em; }
.eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3 { font-weight: 500; }

.primary-button, .outline-button {
  min-height: 48px;
  padding: 11px 21px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 750;
  box-shadow: none;
  transition: background .2s, transform .2s;
}
.primary-button { background: var(--berry); }
.primary-button:not(:disabled):hover { background: var(--pink-dark); box-shadow: none; transform: translateY(-2px); }
.outline-button { background: transparent; border-color: var(--berry); }
.outline-button:hover { background: #f9dce9; }

.floating-nav {
  top: 0;
  width: 100%;
  min-height: 70px;
  padding: 9px max(24px, calc((100vw - 1200px) / 2));
  border: 0;
  border-bottom: 1px solid #d9a4bf;
  border-radius: 0;
  background: #fffafdF5;
  box-shadow: none;
  gap: 25px;
}
.nav-brand { color: var(--berry); font-family: var(--display); font-size: 1.3rem; letter-spacing: -.055em; }
.brand-heart { color: var(--pink); font-family: var(--body); font-size: .98rem; letter-spacing: 0; transform: rotate(-15deg); }
.nav-links { gap: 3px; }
.nav-links a { color: var(--berry); padding: 9px 10px; border-radius: 7px; font-size: .8rem; font-weight: 650; }
.nav-links a:hover { background: #f7dce8; }
.nav-logout { margin: 0; }
.nav-logout button { color: var(--muted); padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; font-size: .8rem; font-weight: 650; }
.nav-logout button:hover { background: #f7dce8; }
.nav-reset { min-height: 40px; padding: 8px 15px; border-radius: 7px; background: #edb7d0; color: var(--berry); font-size: .77rem; }
.nav-reset:hover { background: #e79dbf; }
.nav-reset span { margin-left: 8px; }

.nav-sos { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; margin-left: 4px; padding: 8px 11px; border: 0; border-radius: 7px; background: #a63170; color: #fff; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.nav-sos:hover { background: #822654; }
.nav-sos svg { display: block; flex: none; width: 19px; height: 19px; }
.sos-dialog { position: fixed; inset: 0; width: min(320px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 46px 15px 15px; border: 1px solid #dca6bf; border-radius: 10px; background: #fffafd; color: var(--berry); box-shadow: 0 24px 75px #3e173285; }
.sos-dialog::backdrop { background: #341a2ab8; backdrop-filter: blur(3px); }
.sos-close { position: absolute; top: 7px; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--berry); font-size: 1.55rem; line-height: 1; }
.sos-dialog a { display: flex; align-items: center; min-height: 52px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--berry); font-size: .88rem; font-weight: 750; }
.sos-dialog a + a { margin-top: 8px; }
.sos-dialog a:hover { background: #f9e3ed; }

.hero {
  display: block;
  max-width: none;
  min-height: 0;
  padding: 0;
  background-color: #f6d4e3;
  background-image: radial-gradient(circle, #ab4f7d35 1px, transparent 1.4px);
  background-size: 21px 21px;
}
.hero:after, .hero-stars, .live-dot { display: none; }
.hero-inner {
  width: min(900px, calc(100% - 48px));
  min-height: 510px;
  margin: auto;
  padding: 120px 0 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-content { width: 100%; max-width: 850px; position: relative; z-index: 2; }
.hero-content .eyebrow { color: #8c315f; display: block; }
.hero h1 {
  margin: 17px auto 20px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.085em;
}
.hero h1 em { color: #c13f80; font-style: italic; }
.hero-name-line { display: block; min-height: 1em; white-space: nowrap; }
#hero-name { display: inline-block; transition: opacity .22s ease, transform .22s ease; }
#hero-name.changing { opacity: 0; transform: translateY(8px); }
.hero-content > p { max-width: 500px; margin: 0 auto 24px; color: var(--berry); font-family: var(--body); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; }
.hero-button { min-width: 160px; }

.content-wrap { width: min(1080px, calc(100% - 48px)); }
.cozy-section { padding: 69px 0; border-bottom: 1px solid var(--line); }
.section-intro { margin-bottom: 28px; }
.section-intro h2 { margin: 7px 0 0; font-size: clamp(2.9rem, 5.2vw, 5.3rem); letter-spacing: -.07em; line-height: .98; }
.mood-grid { gap: 0; border: 1px solid #dca6bf; }
.mood-button {
  min-height: 130px;
  padding: 23px;
  border: 0;
  border-right: 1px solid #dca6bf;
  border-radius: 0;
  background: #f9e1eb;
  color: var(--berry);
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  font-size: .94rem;
  box-shadow: none;
}
.mood-button:nth-child(2) { background: #f7d4e3; }
.mood-button:nth-child(3) { background: #f3c4d9; }
.mood-button:nth-child(4) { background: #f0b8d1; border-right: 0; }
.mood-button span { color: #a53070; font-family: var(--display); font-size: 2rem; line-height: 1; }
.mood-button:hover, .mood-button.selected { background: #fffafd; border-color: #dca6bf; box-shadow: inset 0 -5px #bf4784; transform: none; }
.mood-note { min-height: 0; margin: 24px 0 0; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--display); font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.3; }
.mood-next { color: var(--pink-dark); margin-top: 7px; font-size: .84rem; }

.smile-layout { display: grid; grid-template-columns: 1fr .85fr; gap: 14px; }
.smile-card, .bubble-details {
  min-width: 0;
  min-height: 315px;
  margin: 0;
  padding: 29px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.smile-card { background: #f7dfeb; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 15px; }
.smile-symbol { width: auto; height: auto; color: #ad3673; background: none; font-size: 2.3rem; }
.smile-card #smile-note { min-height: 0; margin: auto 0; font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.smile-actions { gap: 7px; }
.smile-actions .outline-button { background: #fff9fc; }
.smile-card .emergency-note { background: #fff6fa; border-radius: 0; }
.bubble-details { background: #edb8d2; }
.bubble-heading { margin-bottom: 12px; }
.bubble-heading h3 { font-size: 1.5rem; }
.bubble-heading span { display: none; }
.bubble-field { height: 193px; border: 1px solid #db91b4; border-radius: 0; background: #f6d9e8; }
.bubble { border: 1px solid #fff; box-shadow: inset -4px -6px 8px #fff7, 0 4px 10px #a9587c2a; }
.bubble-score { color: #60364c; }

.game-shell { padding: 23px; border: 1px solid #e1abc4; border-radius: 0; background: #fae6ef; box-shadow: none; }
.game-tabs { max-width: none; gap: 0; margin: -23px -23px 20px; padding: 0; border-radius: 0; background: #edb8d2; }
.game-tab { min-height: 53px; border-radius: 0; background: transparent; color: var(--berry); font-size: .88rem; }
.game-tab.selected { background: #fae6ef; box-shadow: none; }
.game-stage { border-radius: 0; border-color: #da9dbb; }
.macaron-stage { background: #f3cadc; }
.macaron-stage::before, .macaron-stage::after { display: none; }
.petal-stage { background: #f4c8db; }
.game-overlay { background: #fff9f0c9; backdrop-filter: blur(2px); }
.game-overlay > span { color: var(--pink-dark); }
.game-bottom { margin-top: 17px; }

.rush-feature-section { padding-top: 34px; }
.rush-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  min-height: 355px;
  overflow: hidden;
  border: 1px solid #d997b8;
  background: #f3c9dc;
}
.rush-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(29px, 5vw, 58px);
}
.rush-feature-copy .eyebrow { color: #843656; }
.rush-feature h2 {
  margin: 17px 0 18px;
  font-family: var(--body);
  font-size: clamp(4rem, 8vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .82;
  text-transform: uppercase;
}
.rush-feature h2 em { display: block; color: #a83071; font-style: italic; }
.rush-feature-copy p { margin: 0 0 25px; color: #593549; font-size: .94rem; }
.rush-feature-copy .primary-button { min-width: 168px; }
.rush-feature-art { position: relative; min-height: 350px; overflow: hidden; background: #d683ad; }
.rush-road {
  position: absolute;
  inset: -15% 12% -15% 17%;
  transform: skewX(-15deg);
  border-left: 3px solid #fbe5ef;
  border-right: 3px solid #fbe5ef;
  background: #c86499;
}
.rush-road::before, .rush-road::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: repeating-linear-gradient(to bottom, #fbe5ef 0 24px, transparent 24px 46px);
}
.rush-road::before { left: 33%; }
.rush-road::after { right: 33%; }
.rush-coin {
  position: absolute;
  top: 21%;
  right: 28%;
  width: 55px;
  height: 55px;
  border: 4px solid #fff1c1;
  border-radius: 50%;
  background: #e2ae62;
  box-shadow: inset 0 0 0 3px #eccc8e, 0 12px 0 #8f3f6b47;
}
.rush-arrow { position: absolute; right: 13%; bottom: 9%; color: #fff5fa; font-family: var(--body); font-size: 7rem; line-height: 1; transform: rotate(-17deg); }

.lens-feature-section { padding-top: 34px; }
.lens-feature { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 260px; border: 1px solid #dea9c3; background: #fae8f0; overflow: hidden; }
.lens-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 5vw, 54px); }
.lens-feature h2 { margin: 10px 0 12px; font-size: clamp(3.3rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.075em; }
.lens-feature h2 em { color: #b43d7b; font-weight: 500; }
.lens-feature-copy p { margin: 0 0 22px; color: #684a5b; font-size: .94rem; }
.lens-feature-art { position: relative; display: grid; place-items: center; overflow: hidden; background: #b84e85; }
.lens-viewfinder { display: grid; place-items: center; width: 152px; height: 152px; border: 2px solid #ffe7f0; border-radius: 23px; transform: rotate(-8deg); box-shadow: 12px 12px 0 #72294d59; }
.lens-viewfinder::before { content: ""; position: absolute; top: 16px; right: 17px; width: 20px; height: 5px; border-radius: 10px; background: #ffe7f0; }
.lens-glass { display: grid; place-items: center; width: 108px; height: 108px; border: 2px solid #ffe7f0; border-radius: 50%; box-shadow: inset 0 0 0 13px #cf6a9e, inset 0 0 0 15px #ffe7f0; }
.lens-glass::after { content: ""; width: 49px; height: 49px; border-radius: 50%; background: radial-gradient(circle at 36% 31%, #ffe0ed 0 6px, #532440 7px 100%); }
.lens-sparkle { position: absolute; top: 20px; right: 24px; color: #ffe7f0; font-size: 2.3rem; }

.breathing-card { min-height: 300px; padding: 29px; border: 1px solid #e3aac4; border-radius: 0; background: #fbe7ef; }
.breath-orb { width: 105px; height: 105px; color: #8a2f5f; background: #edafd0; border: 9px solid #f6d3e5; box-shadow: 0 0 0 1px #d889b1; font-size: 1.7rem; }
.breathing-card p { margin: 18px 0 13px; font-size: clamp(1.4rem, 2.7vw, 1.85rem); }
.minute-track { margin-top: 20px; background: #e4b6cc; }

.sky-section { background: #683552; color: #fff9fb; }
.sky-inner { min-height: 475px; padding: 65px 20px 45px; }
.sky-inner .eyebrow { color: #fac1dc; }
.sky-inner h2 { margin: 7px 0 0; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.sky-field { height: 275px; }
.sky-star { color: #fff9fc; text-shadow: 0 0 12px #f8c4dd; }
.sky-moon { color: #f5bbd8; opacity: .7; text-shadow: none; }
.sky-note { min-height: 42px; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.wallpaper-section { padding: 72px 24px 75px; background: #f7d9e7; }
.wallpaper-inner { max-width: 1080px; }
.wallpaper-intro h2 { margin: 7px 0 4px; font-size: clamp(3rem, 5.5vw, 5.4rem); }
.wallpaper-intro p { font-family: var(--body); font-size: .93rem; }
.wallpaper-controls button { width: 43px; height: 43px; border: 1px solid #bd7b9e; border-radius: 6px; background: transparent; }
.wallpaper-controls button:hover { background: #fff4f9; }
.wallpaper-gallery { grid-auto-columns: minmax(188px, 225px); gap: 16px; padding-bottom: 12px; }
.wallpaper-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wallpaper-preview { border-radius: 0; background: #f1bfd5; }
.wallpaper-preview img { max-height: 310px; object-fit: cover; }
.wallpaper-card-footer { min-height: 48px; padding: 9px 0 0; justify-content: flex-end; }
.wallpaper-download { padding: 6px 0 6px 7px; border: 0; border-radius: 0; font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; }
.wallpaper-dialog { border-radius: 8px; }

.final-note { display: block; max-width: none; padding: 64px 24px; background: #fffafd; }
.letter { max-width: 1080px; margin: auto; padding: 0; border: 0; border-radius: 0; background: #eaaac8; box-shadow: none; }
.letter summary { display: flex; align-items: center; gap: 23px; min-height: 170px; padding: 28px 35px; list-style: none; cursor: pointer; }
.letter summary::-webkit-details-marker { display: none; }
.letter-seal { display: grid; flex: none; place-items: center; width: 96px; height: 96px; border: 1px solid #b94a82; border-radius: 50%; color: #a63170; font-size: 2.5rem; transform: rotate(-15deg); }
.letter summary small { display: block; margin-bottom: 5px; color: #793c5d; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.letter summary strong { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.07em; line-height: 1; }
.letter-open { margin-left: auto; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.letter[open] .letter-open { font-size: 0; }
.letter[open] .letter-open::after { content: "Close note ×"; font-size: .8rem; }
.letter-body { max-width: 760px; padding: 0 35px 30px 154px; }
.letter-body p { color: #54334a; font-size: clamp(1.12rem, 2vw, 1.42rem); }

.feelings-final { padding: 70px 24px 75px; background: #fae8f0; }
.feelings-final h2 { margin: 7px 0 5px; font-size: clamp(3.1rem, 6vw, 5.6rem); }
.feelings-final-inner > p { margin-bottom: 22px; font-family: var(--body); font-size: 1rem; }
.feelings-card { padding: clamp(22px, 4vw, 36px); border: 1px solid #dcabc2; border-radius: 0; background: #fffafd; box-shadow: none; }
.feelings-card textarea { border-radius: 0; background: #fffafd; }

.reset-dialog { border-radius: 9px; background: #fffafd; }
.reset-close { border-radius: 6px; }
.reset-choices a { border-radius: 6px; }
.sound-toggle { border-radius: 6px; }

/* The password page uses the same palette and flat surfaces. */
.dashboard-shell { background: #f7d9e7; }
.dashboard-card { border-radius: 0; box-shadow: none; }
.login-card:after { display: none; }
.dashboard-card form input { border-radius: 6px; }
.saved-note { border-radius: 0; }

@media (max-width: 800px) {
  html { scroll-padding-top: 70px; }
  .floating-nav { top: 0; width: 100%; min-height: 61px; padding: 8px 18px; }
  .nav-links { top: calc(100% + 1px); border-radius: 0; background: #fffafd; box-shadow: none; }
  .nav-logout button { width: 100%; padding: 12px 15px; text-align: left; font-size: .82rem; }
  .nav-reset { display: none; }
  .hero { padding: 0; }
  .hero-inner { width: min(620px, calc(100% - 38px)); min-height: 460px; padding: 110px 0 56px; }
  .hero-content > p { max-width: 270px; font-size: 1.05rem; }
  .content-wrap { width: min(620px, calc(100% - 32px)); }
  .cozy-section { padding: 54px 0; }
  .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mood-button { min-height: 110px; padding: 16px; }
  .mood-button:nth-child(2) { border-right: 0; }
  .mood-button:nth-child(-n+2) { border-bottom: 1px solid #dca6bf; }
  .smile-layout { grid-template-columns: 1fr; }
  .smile-card, .bubble-details { min-height: 0; padding: 24px; }
  .smile-card { min-height: 300px; }
  .mobile-dock { right: 0; bottom: 0; left: 0; max-width: none; gap: 0; padding: 4px 10px max(4px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #d9a4bf; border-radius: 0; background: #fffafdf5; box-shadow: none; }
  .mobile-dock a, .mobile-dock button { border-radius: 5px; }
  .nav-sos { justify-content: flex-start; width: calc(100% - 18px); min-height: 44px; margin: 4px 9px 3px; padding-inline: 14px; font-size: .82rem; }
  .sky-inner { min-height: 430px; }
  .sky-field { height: 235px; }
  .wallpaper-section { padding: 56px 16px; }
  .wallpaper-gallery { grid-auto-columns: min(55vw, 205px); }
  .final-note { padding: 55px 16px; }
  .letter { padding: 0; }
  .letter summary { min-height: 145px; padding: 24px; gap: 15px; }
  .letter-seal { width: 72px; height: 72px; font-size: 2rem; }
  .letter-body { padding: 0 24px 25px; }
  .feelings-final { padding: 55px 16px 100px; }
}

@media (max-width: 520px) {
  .hero-inner { min-height: 440px; }
  .hero-content > p { max-width: 270px; line-height: 1.3; }
  .section-intro h2 { font-size: clamp(2.65rem, 11vw, 3.65rem); }
  .mood-button { font-size: .82rem; }
  .smile-actions { width: 100%; }
  .smile-actions button { flex: 1 1 auto; }
  .game-shell { padding: 14px; }
  .game-tabs { margin: -14px -14px 15px; }
  .game-tab { font-size: .8rem; }
  .game-topline { font-size: .73rem; }
  .game-bottom { flex-direction: column; align-items: stretch; }
  .rush-feature { grid-template-columns: 1fr; }
  .rush-feature-copy { padding: 34px 28px 30px; }
  .rush-feature h2 { font-size: clamp(3.8rem, 15vw, 5rem); }
  .rush-feature-art { min-height: 160px; }
  .rush-coin { top: 20%; right: 31%; width: 43px; height: 43px; }
  .rush-arrow { right: 15%; bottom: 2%; font-size: 5rem; }
  .lens-feature { grid-template-columns: 1fr; }
  .lens-feature-copy { padding: 31px 28px; }
  .lens-feature-art { min-height: 145px; }
  .lens-viewfinder { width: 106px; height: 106px; border-radius: 17px; }
  .lens-viewfinder::before { top: 10px; right: 10px; width: 15px; }
  .lens-glass { width: 76px; height: 76px; box-shadow: inset 0 0 0 9px #cf6a9e, inset 0 0 0 10px #ffe7f0; }
  .lens-glass::after { width: 35px; height: 35px; }
  .wallpaper-intro { align-items: end; }
  .wallpaper-intro p { max-width: 195px; font-size: .82rem; }
  .wallpaper-controls button { width: 37px; height: 37px; }
  .letter summary { flex-wrap: wrap; }
  .letter summary strong { font-size: 2.5rem; }
  .letter-open { flex: 0 0 100%; margin-left: 87px; }
  .feelings-final-inner > p { font-size: .92rem; }
  .wallpaper-dialog-footer { flex-direction: column; align-items: stretch; }
}
