:root {
  --page-bg: #eefbdc;
  --bg-start: #f4ffd9;
  --bg-mid: #dcf8df;
  --bg-end: #cdefff;
  --glow-one: rgba(237, 255, 188, 0.92);
  --glow-two: rgba(172, 231, 255, 0.86);
  --primary: #7bbf9a;
  --primary-strong: #5d9275;
  --primary-soft: rgba(123, 191, 154, 0.14);
  --chip-text: #5f7664;
  --chip-bg: rgba(255, 255, 255, 0.7);
  --time-card-soft: rgba(123, 191, 154, 0.08);
  --time-panel-bg: rgba(247, 253, 244, 0.76);
  color: #332d27;
  background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  line-height: 1.5;
}

:root[data-time-theme="early-morning"] {
  --page-bg: #fff3e6;
  --bg-start: #fff8e8;
  --bg-mid: #f8eaf4;
  --bg-end: #dcefff;
  --glow-one: rgba(255, 220, 179, 0.8);
  --glow-two: rgba(191, 218, 255, 0.72);
  --primary: #d69a75;
  --primary-strong: #b67859;
  --primary-soft: rgba(214, 154, 117, 0.15);
  --chip-text: #80624d;
  --chip-bg: rgba(255, 255, 255, 0.72);
  --time-card-soft: rgba(214, 154, 117, 0.1);
  --time-panel-bg: rgba(255, 250, 242, 0.82);
}

:root[data-time-theme="morning"] {
  --page-bg: #eefbdc;
  --bg-start: #f4ffd9;
  --bg-mid: #dcf8df;
  --bg-end: #cdefff;
  --glow-one: rgba(237, 255, 188, 0.92);
  --glow-two: rgba(172, 231, 255, 0.86);
  --primary: #7bbf9a;
  --primary-strong: #5d9275;
  --primary-soft: rgba(123, 191, 154, 0.14);
  --chip-text: #5f7664;
  --chip-bg: rgba(255, 255, 255, 0.7);
  --time-card-soft: rgba(123, 191, 154, 0.08);
  --time-panel-bg: rgba(247, 253, 244, 0.76);
}

:root[data-time-theme="afternoon"] {
  --page-bg: #e8fbff;
  --bg-start: #f5fff9;
  --bg-mid: #e3f8ff;
  --bg-end: #d9f1e9;
  --glow-one: rgba(194, 240, 221, 0.86);
  --glow-two: rgba(174, 223, 255, 0.78);
  --primary: #62aeb7;
  --primary-strong: #3d8791;
  --primary-soft: rgba(98, 174, 183, 0.15);
  --chip-text: #4c7077;
  --chip-bg: rgba(255, 255, 255, 0.7);
  --time-card-soft: rgba(98, 174, 183, 0.09);
  --time-panel-bg: rgba(246, 253, 255, 0.82);
}

:root[data-time-theme="evening"] {
  --page-bg: #fff0df;
  --bg-start: #fff7e8;
  --bg-mid: #ffe7d5;
  --bg-end: #d9f0ec;
  --glow-one: rgba(255, 202, 159, 0.78);
  --glow-two: rgba(179, 225, 215, 0.72);
  --primary: #df956f;
  --primary-strong: #ba704e;
  --primary-soft: rgba(223, 149, 111, 0.15);
  --chip-text: #7a5c47;
  --chip-bg: rgba(255, 255, 255, 0.7);
  --time-card-soft: rgba(223, 149, 111, 0.1);
  --time-panel-bg: rgba(255, 250, 244, 0.82);
}

:root[data-time-theme="night"] {
  --page-bg: #f0edff;
  --bg-start: #f8f3ff;
  --bg-mid: #eee8ff;
  --bg-end: #dfeef5;
  --glow-one: rgba(216, 197, 255, 0.74);
  --glow-two: rgba(175, 212, 235, 0.7);
  --primary: #9081cf;
  --primary-strong: #6f61ad;
  --primary-soft: rgba(144, 129, 207, 0.16);
  --chip-text: #625883;
  --chip-bg: rgba(255, 255, 255, 0.7);
  --time-card-soft: rgba(144, 129, 207, 0.1);
  --time-panel-bg: rgba(250, 248, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, var(--glow-one), transparent 33%),
    radial-gradient(circle at 94% 8%, var(--glow-two), transparent 35%),
    linear-gradient(145deg, var(--bg-start) 0%, var(--bg-mid) 42%, var(--bg-end) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 320ms ease;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app {
  display: flex;
  flex-direction: column;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 24px;
}

.top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(80, 112, 91, 0.16);
  object-fit: cover;
}

.brand p,
.moods h2,
footer p {
  margin: 0;
}

.brand p {
  color: #6f8669;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.brand h1 {
  margin: 2px 0 0;
  color: #2f2a25;
  font-size: 29px;
  line-height: 1.06;
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  align-items: center;
}

.date {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(76, 111, 92, 0.14);
  border-radius: 999px;
  color: var(--chip-text);
  background: var(--chip-bg);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid rgba(76, 111, 92, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
}

.tabs button {
  min-height: 45px;
  border-radius: 11px;
  color: #667467;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.tabs button.active {
  color: #2f2a25;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(80, 112, 91, 0.12);
}

.tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  font-size: 12px;
}

.tabs span:empty {
  display: none;
}

main {
  flex: 1;
}

.today-view,
.saved-view {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.moods h2 {
  color: #667467;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.mood-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 11px;
  border: 1px solid rgba(76, 111, 92, 0.13);
  border-radius: 18px;
  color: #58635a;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(80, 112, 91, 0.08);
  text-align: left;
}

.mood-grid button.selected {
  color: #2f2a25;
  border-color: var(--mood-color);
  background: linear-gradient(135deg, var(--mood-soft), rgba(255, 255, 255, 0.9));
  box-shadow: 0 13px 28px rgba(80, 112, 91, 0.16);
  transform: translateY(-1px);
}

.mood-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: var(--mood-soft);
  font-size: 23px;
}

.mood-grid strong {
  font-size: 15px;
  line-height: 1.2;
  word-break: keep-all;
}

.empty-card,
.message-card,
.saved-card {
  border: 1px solid rgba(76, 111, 92, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 48px rgba(80, 112, 91, 0.14);
  backdrop-filter: blur(16px);
}

.empty-card {
  display: grid;
  justify-items: center;
  gap: 11px;
  min-height: 252px;
  align-content: center;
  padding: 30px 22px;
  text-align: center;
}

.intro-card {
  min-height: 190px;
  padding: 26px 22px;
}

.empty-card img {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(80, 112, 91, 0.16);
}

.empty-card.intro-card img {
  width: 84px;
  height: 84px;
  border-radius: 21px;
}

.empty-card h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.35;
}

.empty-card p {
  max-width: 300px;
  margin: 0;
  color: #667467;
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.message-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 390px;
  padding: 22px;
  border-color: rgba(76, 111, 92, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(150deg, var(--time-card-soft), rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, var(--card-soft, rgba(123, 191, 154, 0.15)), rgba(255, 255, 255, 0));
  box-shadow: 0 22px 52px rgba(59, 93, 77, 0.17);
}

.message-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--card-accent, #7bbf9a);
}

.message-card::after {
  content: "“";
  position: absolute;
  right: 18px;
  bottom: 46px;
  color: var(--card-soft, rgba(123, 191, 154, 0.18));
  font-family: Georgia, serif;
  font-size: 96px;
  font-weight: 700;
  line-height: 0.75;
  pointer-events: none;
}

.message-top,
.message-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 264px;
  margin: 18px auto 0;
  padding: 0;
  border: 1px solid rgba(76, 111, 92, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.78), transparent 36%),
    var(--time-panel-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48), 0 14px 28px rgba(80, 112, 91, 0.1);
  overflow: hidden;
}

.time-scene-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.scene-character {
  position: absolute;
  z-index: 5;
  left: 47px;
  top: 24px;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(80, 112, 91, 0.16);
  transform-origin: center bottom;
  transition: transform 260ms ease, left 260ms ease, top 260ms ease;
}

.scene-window,
.scene-sunbeam,
.scene-table,
.scene-arm,
.scene-mug,
.scene-steam,
.scene-note,
.scene-cushion,
.scene-blanket,
.scene-lamp {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms ease;
}

.scene-window {
  z-index: 1;
  right: 16px;
  top: 13px;
  width: 42px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 8px 18px rgba(80, 112, 91, 0.08);
}

.scene-window::before,
.scene-window::after,
.scene-lamp::before,
.scene-lamp::after {
  content: "";
  position: absolute;
}

.scene-window::before {
  inset: 13px auto auto 4px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.scene-window::after {
  right: 7px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 213, 128, 0.95);
}

.scene-sunbeam {
  z-index: 1;
  left: -20px;
  top: -16px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 230, 151, 0.46), transparent 65%);
}

.scene-table {
  z-index: 4;
  left: 35px;
  bottom: 14px;
  width: 112px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 194, 159, 0.36), rgba(255, 255, 255, 0.78));
}

.scene-arm {
  z-index: 9;
  width: 34px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff5df, #ffe6c5);
  box-shadow: 0 5px 12px rgba(80, 112, 91, 0.1);
}

.scene-arm-left {
  left: 50px;
  top: 64px;
  transform: rotate(28deg);
}

.scene-arm-right {
  right: 50px;
  top: 64px;
  transform: rotate(-28deg);
}

.scene-mug {
  z-index: 12;
  left: 74px;
  bottom: 30px;
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(135deg, #ffffff, rgba(123, 191, 154, 0.45));
  box-shadow: inset 0 0 0 2px rgba(93, 146, 117, 0.22), 0 8px 14px rgba(80, 112, 91, 0.14);
}

.scene-mug::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(142, 95, 64, 0.34);
}

.scene-mug::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 3px solid rgba(93, 146, 117, 0.24);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.scene-steam {
  z-index: 12;
  bottom: 66px;
  width: 4px;
  height: 23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.scene-steam-one {
  left: 84px;
  transform: rotate(13deg);
}

.scene-steam-two {
  left: 96px;
  transform: rotate(-10deg);
}

.scene-note {
  z-index: 10;
  right: 36px;
  bottom: 39px;
  width: 34px;
  height: 40px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff, rgba(255, 245, 195, 0.9));
  box-shadow: inset 0 -7px 0 rgba(98, 174, 183, 0.1), 0 8px 14px rgba(80, 112, 91, 0.1);
  transform: rotate(9deg);
}

.scene-cushion {
  z-index: 8;
  left: 43px;
  bottom: 7px;
  width: 100px;
  height: 38px;
  border-radius: 20px 20px 24px 24px;
  background: linear-gradient(135deg, #ffd9bf, #fff4dc);
  box-shadow: inset 0 0 0 2px rgba(186, 112, 78, 0.09), 0 9px 18px rgba(80, 112, 91, 0.12);
}

.scene-blanket {
  z-index: 8;
  left: 40px;
  bottom: 18px;
  width: 102px;
  height: 48px;
  border-radius: 22px 22px 28px 28px;
  background: linear-gradient(135deg, rgba(170, 160, 224, 0.54), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 0 0 2px rgba(111, 97, 173, 0.08), 0 8px 16px rgba(80, 112, 91, 0.1);
}

.scene-lamp {
  z-index: 2;
  right: 24px;
  bottom: 19px;
  width: 28px;
  height: 44px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(180deg, rgba(255, 224, 157, 0.96), rgba(255, 255, 255, 0.62));
  box-shadow: 0 0 28px rgba(255, 219, 140, 0.68);
}

.scene-lamp::before {
  left: 12px;
  top: 31px;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: rgba(98, 88, 131, 0.2);
}

.scene-lamp::after {
  left: 5px;
  bottom: -6px;
  width: 18px;
  height: 7px;
  border-radius: 999px;
  background: rgba(98, 88, 131, 0.16);
}

:root[data-time-theme="early-morning"] .scene-character {
  left: 43px;
  top: 32px;
  transform: rotate(-10deg) translateY(8px) scale(0.94);
}

:root[data-time-theme="early-morning"] .scene-window,
:root[data-time-theme="early-morning"] .scene-blanket,
:root[data-time-theme="early-morning"] .scene-arm-right {
  opacity: 1;
}

:root[data-time-theme="early-morning"] .scene-arm-right {
  left: 106px;
  right: auto;
  top: 32px;
  width: 31px;
  transform: rotate(-62deg);
}

:root[data-time-theme="early-morning"] .scene-blanket {
  left: 36px;
  bottom: 14px;
  width: 94px;
  height: 34px;
  background: linear-gradient(135deg, rgba(214, 154, 117, 0.23), rgba(255, 255, 255, 0.82));
}

:root[data-time-theme="morning"] .scene-character {
  left: 47px;
  top: 24px;
  transform: translateY(-2px) rotate(1deg);
}

:root[data-time-theme="morning"] .scene-table,
:root[data-time-theme="morning"] .scene-mug,
:root[data-time-theme="morning"] .scene-steam,
:root[data-time-theme="morning"] .scene-arm {
  opacity: 1;
}

:root[data-time-theme="morning"] .scene-arm-left {
  left: 52px;
  top: 67px;
  transform: rotate(30deg);
}

:root[data-time-theme="morning"] .scene-arm-right {
  right: 52px;
  top: 67px;
  transform: rotate(-30deg);
}

:root[data-time-theme="afternoon"] .scene-character {
  left: 43px;
  top: 27px;
  transform: rotate(-1deg);
}

:root[data-time-theme="afternoon"] .scene-sunbeam,
:root[data-time-theme="afternoon"] .scene-table,
:root[data-time-theme="afternoon"] .scene-note,
:root[data-time-theme="afternoon"] .scene-arm-right {
  opacity: 1;
}

:root[data-time-theme="afternoon"] .scene-arm-right {
  right: 41px;
  top: 65px;
  transform: rotate(-18deg);
}

:root[data-time-theme="evening"] .scene-character {
  left: 47px;
  top: 31px;
  transform: translateY(5px) rotate(3deg) scale(0.95);
}

:root[data-time-theme="evening"] .scene-cushion,
:root[data-time-theme="evening"] .scene-arm {
  opacity: 1;
}

:root[data-time-theme="evening"] .scene-arm-left {
  left: 42px;
  top: 66px;
  transform: rotate(24deg);
}

:root[data-time-theme="evening"] .scene-arm-right {
  right: 42px;
  top: 66px;
  transform: rotate(-24deg);
}

:root[data-time-theme="night"] .scene-character {
  left: 47px;
  top: 32px;
  transform: translateY(7px) rotate(-3deg) scale(0.94);
}

:root[data-time-theme="night"] .scene-window,
:root[data-time-theme="night"] .scene-blanket,
:root[data-time-theme="night"] .scene-lamp {
  opacity: 1;
}

:root[data-time-theme="night"] .scene-window::after {
  background: rgba(255, 244, 199, 0.96);
  box-shadow: -5px 0 0 -2px rgba(238, 232, 255, 0.95);
}

.mascot {
  position: absolute;
  z-index: 6;
  left: 42px;
  top: 34px;
  width: 104px;
  height: 86px;
  transform-origin: center bottom;
  transition: transform 260ms ease, left 260ms ease, top 260ms ease;
}

.mascot-cushion {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 0;
  width: 90px;
  height: 40px;
  border-radius: 999px 999px 24px 24px;
  background: linear-gradient(145deg, #bdf0d1, #7ec7dc);
  box-shadow: inset 0 7px 13px rgba(255, 255, 255, 0.42), 0 9px 18px rgba(80, 112, 91, 0.14);
}

.mascot-body,
.mascot-tail,
.mascot-arm {
  position: absolute;
  background: linear-gradient(145deg, #fff9eb, #ffe8c9);
}

.mascot-body {
  z-index: 3;
  left: 14px;
  top: 1px;
  width: 80px;
  height: 74px;
  border-radius: 50% 50% 45% 48% / 55% 55% 43% 45%;
  box-shadow: inset -6px -9px 18px rgba(238, 196, 143, 0.18), inset 7px 9px 18px rgba(255, 255, 255, 0.68);
}

.mascot-tail {
  z-index: 4;
  left: 56px;
  bottom: 4px;
  width: 24px;
  height: 35px;
  border-radius: 14px 14px 18px 18px;
  transform: rotate(13deg);
}

.mascot-eye,
.mascot-blush,
.mascot-mouth {
  position: absolute;
  z-index: 12;
}

.mascot-eye {
  top: 30px;
  width: 12px;
  height: 16px;
  border-radius: 999px;
  background: #493222;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.74);
}

.mascot-eye-left {
  left: 38px;
}

.mascot-eye-right {
  right: 29px;
}

.mascot-blush {
  top: 46px;
  width: 15px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 158, 134, 0.28);
  filter: blur(1px);
}

.mascot-blush-left {
  left: 29px;
}

.mascot-blush-right {
  right: 20px;
}

.mascot-mouth {
  left: 52px;
  top: 44px;
  width: 21px;
  height: 12px;
  border-bottom: 4px solid #5a3724;
  border-radius: 0 0 999px 999px;
}

.mascot-arm {
  z-index: 9;
  width: 34px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(80, 112, 91, 0.1);
}

.mascot-arm-left {
  left: 14px;
  top: 54px;
  transform: rotate(25deg);
}

.mascot-arm-right {
  right: 2px;
  top: 54px;
  transform: rotate(-25deg);
}

.message-scene .scene-mug,
.message-scene .scene-steam,
.message-scene .scene-note,
.message-scene .scene-cushion,
.message-scene .scene-blanket,
.message-scene .scene-lamp,
.message-scene .scene-window,
.message-scene .scene-sunbeam,
.message-scene .scene-table {
  opacity: 0;
}

:root[data-time-theme="early-morning"] .mascot {
  left: 40px;
  top: 39px;
  transform: rotate(-8deg) translateY(5px);
}

:root[data-time-theme="early-morning"] .mascot-eye {
  width: 11px;
  height: 12px;
  top: 32px;
  border-radius: 999px;
  background: #493222;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.58);
}

:root[data-time-theme="early-morning"] .mascot-mouth {
  top: 46px;
  width: 20px;
  border-bottom-width: 4px;
}

:root[data-time-theme="early-morning"] .mascot-arm-left {
  left: 16px;
  top: 61px;
  transform: rotate(20deg);
}

:root[data-time-theme="early-morning"] .mascot-arm-right {
  right: -6px;
  top: 21px;
  transform: rotate(-74deg);
}

:root[data-time-theme="early-morning"] .scene-window,
:root[data-time-theme="early-morning"] .scene-blanket {
  opacity: 1;
}

:root[data-time-theme="early-morning"] .scene-blanket {
  z-index: 8;
  left: 34px;
  bottom: 14px;
  width: 112px;
  height: 36px;
  background: linear-gradient(135deg, rgba(214, 154, 117, 0.24), rgba(255, 255, 255, 0.84));
}

:root[data-time-theme="morning"] .mascot {
  left: 42px;
  top: 30px;
  transform: rotate(1deg);
}

:root[data-time-theme="morning"] .scene-table,
:root[data-time-theme="morning"] .scene-mug,
:root[data-time-theme="morning"] .scene-steam {
  opacity: 1;
}

:root[data-time-theme="morning"] .mascot-arm-left {
  left: 23px;
  top: 63px;
  transform: rotate(36deg);
}

:root[data-time-theme="morning"] .mascot-arm-right {
  right: 12px;
  top: 63px;
  transform: rotate(-36deg);
}

:root[data-time-theme="afternoon"] .mascot {
  left: 39px;
  top: 31px;
  transform: rotate(-2deg);
}

:root[data-time-theme="afternoon"] .scene-sunbeam,
:root[data-time-theme="afternoon"] .scene-table,
:root[data-time-theme="afternoon"] .scene-note {
  opacity: 1;
}

:root[data-time-theme="afternoon"] .mascot-arm-left {
  left: 12px;
  top: 57px;
  transform: rotate(25deg);
}

:root[data-time-theme="afternoon"] .mascot-arm-right {
  right: -8px;
  top: 50px;
  transform: rotate(-18deg);
}

:root[data-time-theme="evening"] .mascot {
  left: 42px;
  top: 38px;
  transform: rotate(3deg) translateY(5px) scale(0.96);
}

:root[data-time-theme="evening"] .scene-cushion {
  opacity: 1;
}

:root[data-time-theme="evening"] .mascot-arm-left {
  z-index: 11;
  left: 8px;
  top: 55px;
  transform: rotate(33deg);
}

:root[data-time-theme="evening"] .mascot-arm-right {
  z-index: 11;
  right: -3px;
  top: 55px;
  transform: rotate(-33deg);
}

:root[data-time-theme="night"] .mascot {
  left: 42px;
  top: 40px;
  transform: rotate(-3deg) translateY(7px) scale(0.96);
}

:root[data-time-theme="night"] .mascot-eye {
  width: 15px;
  height: 5px;
  top: 35px;
  border-radius: 999px;
  box-shadow: none;
}

:root[data-time-theme="night"] .mascot-mouth {
  top: 47px;
  width: 17px;
  border-bottom-width: 3px;
}

:root[data-time-theme="night"] .scene-window,
:root[data-time-theme="night"] .scene-blanket,
:root[data-time-theme="night"] .scene-lamp {
  opacity: 1;
}

:root[data-time-theme="night"] .scene-blanket {
  z-index: 10;
  left: 33px;
  bottom: 16px;
  width: 116px;
  height: 50px;
}

.message-label,
.message-mood,
.message-bottom span,
.message-bottom strong {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 950;
}

.message-label {
  color: #6a786d;
}

.message-mood {
  display: inline-flex;
  align-items: center;
  max-width: 58%;
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2f2a25;
  background: var(--card-soft, rgba(123, 191, 154, 0.15));
  white-space: nowrap;
}

.message-card p {
  position: relative;
  z-index: 1;
  margin: 20px 0 24px;
  color: #2f2a25;
  font-size: 23px;
  font-weight: 820;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.message-bottom {
  padding-top: 14px;
  border-top: 1px solid rgba(76, 111, 92, 0.12);
  color: #6a786d;
}

.message-bottom strong {
  color: #2f2a25;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.actions button {
  min-height: 54px;
  border-radius: 15px;
  color: #2f2a25;
  background: #ffffff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(80, 112, 91, 0.12);
}

.actions button:first-child {
  color: #ffffff;
  background: var(--primary-strong);
}

.actions button.saved {
  color: #2f2a25;
  background: #ffe4b0;
}

.saved-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.saved-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.saved-head p {
  margin: 0;
  color: #667467;
  font-size: 13px;
  font-weight: 850;
}

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

.saved-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 17px 50px 17px 17px;
}

.saved-card div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.saved-card span,
.saved-card strong {
  color: #667467;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.saved-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.56;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.saved-card button {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #667467;
  background: #edf6ea;
}

footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 20px;
}

footer p {
  color: #667467;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  word-break: keep-all;
}

.about-link {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(76, 111, 92, 0.12);
  border-radius: 999px;
  color: #5f7664;
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 900;
}

.about-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(43, 54, 45, 0.26);
}

.about-panel {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 24px 22px 22px;
  border: 1px solid rgba(76, 111, 92, 0.14);
  border-radius: 24px;
  color: #332d27;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 255, 242, 0.92)),
    linear-gradient(135deg, rgba(226, 248, 201, 0.64), rgba(210, 240, 255, 0.56));
  box-shadow: 0 24px 60px rgba(43, 54, 45, 0.24);
}

.about-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #667467;
  background: rgba(237, 246, 234, 0.92);
  font-size: 20px;
  line-height: 1;
}

.about-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 950;
}

.about-panel h2 {
  max-width: calc(100% - 42px);
  margin: 14px 0 10px;
  color: #2f2a25;
  font-size: 24px;
  line-height: 1.28;
}

.about-panel p {
  margin: 0;
  color: #58635a;
  font-size: 15px;
  line-height: 1.72;
  word-break: keep-all;
}

.about-panel p + p {
  margin-top: 10px;
}

.about-contact {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.about-contact span {
  color: #667467;
  font-size: 12px;
  font-weight: 950;
}

.about-contact a {
  color: #2f2a25;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  width: min(430px, calc(100% - 36px));
  margin: 0 auto;
  padding: 13px 16px 12px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(49, 63, 51, 0.94);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 390px) {
  .app {
    padding-right: 14px;
    padding-left: 14px;
  }

  .message-card p {
    font-size: 21px;
    line-height: 1.48;
  }
}
