@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&display=swap");

@font-face {
  font-family: "SourceHanSerifSC-Light-Web";
  src: url("/app/fonts/SourceHanSerifSC-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --sky-top: #8cd1f2;
  --sky-bottom: #baebdb;
  --gold-top: #fefcf7;
  --gold-upper: #fdf9ee;
  --gold-mid: #faf4de;
  --gold-bottom: #f2e6ba;
  --golden-fade-bg:
    linear-gradient(
      180deg,
      var(--gold-top) 0%,
      var(--gold-upper) 24%,
      var(--gold-mid) 62%,
      var(--gold-bottom) 100%
    );
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --paper: #fbf3d8;
  --paper-line: rgba(219, 201, 148, 0.58);
  --paper-border: rgba(214, 191, 133, 0.38);
  --paper-text: #4f4d45;
  --paper-display: #472b24;
  --paper-date: #997560;
  --paper-ink: #5c3d26;
  --text: #0a3673;
  --text-soft: rgba(20, 82, 120, 0.86);
  --text-muted: rgba(20, 82, 120, 0.72);
  --line: rgba(20, 78, 132, 0.12);
  --primary: #0d75cc;
  --primary-soft: rgba(13, 116, 204, 0.12);
  --pink: #ef4d8e;
  --wealth: #f77a33;
  --career: #2990ed;
  --emotional: #a352f2;
  --lucky: #f55c9e;
  --energy-lucky: #f5669e;
  --energy-wealth: #ed8f52;
  --energy-career: #4585eb;
  --energy-emotional: #ba63eb;
  --energy-gold: #f2c223;
  --energy-label: #a8a3a1;
  --gold-title: #d6a13d;
  --gold-tag: #ebb538;
  --gold-count: #e0ad36;
  --gold-note-date: #dbab3b;
  --gold-note-text: #dda833;
  --nav-gold: #e6ad33;
  --identity-gold: #e69e26;
  --pet-title: #215794;
  --pet-label: #859cbd;
  --danger: #df5a6f;
  --warning: #e0ad36;
  --font-text:
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  --font-rounded:
    "SF Pro Rounded",
    ui-rounded,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  --font-energy-numbers: "Nunito", var(--font-rounded);
  --font-serif: "SourceHanSerifSC-Light-Web", "SourceHanSerifSC-Light", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --shadow-lg: 0 22px 60px rgba(16, 68, 115, 0.14);
  --shadow-md: 0 14px 34px rgba(16, 68, 115, 0.1);
  --shadow-sm: 0 6px 18px rgba(16, 68, 115, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --tab-bar-height: 86px;
  --tab-bar-gap: 10px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background-color: var(--gold-top);
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  font-family: var(--font-text);
  color: var(--text);
  background: var(--golden-fade-bg);
  overflow: hidden;
}

body.has-modal {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

svg {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
}

#app {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--golden-fade-bg);
}

.auth-screen,
.app-shell {
  min-height: 100dvh;
  background: var(--golden-fade-bg);
}

.auth-screen {
  display: grid;
  place-items: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

.auth-screen::before,
.auth-screen::after {
  content: "";
  position: absolute;
  bottom: -110px;
  width: 60vw;
  min-width: 260px;
  height: 240px;
  border-radius: 50%;
  background: rgba(229, 197, 109, 0.38);
  filter: blur(0.2px);
}

.auth-screen::before {
  left: -12vw;
}

.auth-screen::after {
  right: -14vw;
  background: rgba(210, 168, 69, 0.3);
}

.auth-card {
  width: min(560px, 100%);
  padding: 28px 24px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-card--loading {
  text-align: center;
}

.mascot-badge {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 26px;
  background: linear-gradient(135deg, #5cc2ef 0%, #6ecf9d 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 12px auto 0;
  max-width: 360px;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.6;
}

.auth-footnote {
  margin: 16px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  padding: 6px;
  margin: 18px 0 20px;
  gap: 6px;
  background: rgba(12, 95, 165, 0.08);
  border-radius: 999px;
}

.segmented-control button {
  font-family: var(--font-rounded);
  height: 42px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--text-muted);
  background: transparent;
}

.segmented-control button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #56a4ff 0%, #3f79ea 100%);
  box-shadow: 0 10px 24px rgba(63, 121, 234, 0.26);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span,
.section-label {
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-soft);
}

.text-input {
  width: 100%;
  border: 1px solid rgba(35, 96, 150, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input:focus {
  border-color: rgba(13, 116, 204, 0.44);
  box-shadow: 0 0 0 4px rgba(13, 116, 204, 0.12);
}

.text-input--textarea {
  min-height: 112px;
  resize: vertical;
}

.primary-button,
.composer-submit,
.talk-button,
.auth-submit {
  height: 54px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-rounded);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(13, 116, 204, 0.24);
}

.primary-button:disabled,
.composer-submit:disabled,
.talk-button:disabled,
.icon-button:disabled,
.secondary-button:disabled,
.chip-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-button,
.chip-button {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-rounded);
  font-weight: 700;
  color: var(--primary);
  border-radius: 999px;
  background: var(--primary-soft);
}

.chip-button {
  font-size: 13px;
}

.status-inline,
.status-toast {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 116, 204, 0.12);
}

.status-inline {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.status-inline--error,
.status-toast--error {
  color: #9b4356;
  background: rgba(250, 228, 233, 0.96);
  border-color: rgba(223, 90, 111, 0.22);
}

.status-inline--success,
.status-toast--success {
  color: #2f7f5d;
  background: rgba(221, 244, 233, 0.96);
  border-color: rgba(82, 181, 132, 0.24);
}

.app-shell {
  display: flex;
  justify-content: center;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  overflow-x: hidden;
}

.device-shell {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--golden-fade-bg);
  box-shadow: 0 0 0 1px rgba(21, 71, 113, 0.04);
  position: relative;
  overflow-x: hidden;
}

.device-screen {
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--golden-fade-bg);
}

.screen {
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.screen-home,
.screen-profile {
  background: var(--golden-fade-bg);
}

.screen-home::after,
.screen-profile::after {
  content: none;
}

.screen-world {
  background: #fff;
}

.screen-scroll {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--safe-top) + 8px) 20px calc(var(--safe-bottom) + 116px);
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

.screen-scroll,
.composer-scroll,
.pet-create-scroll,
.notification-screen,
.settings-screen,
.identity-editor-screen,
.detail-scroll,
.pet-space-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
  touch-action: pan-y;
}

.screen-scroll::-webkit-scrollbar,
.composer-scroll::-webkit-scrollbar,
.pet-create-scroll::-webkit-scrollbar,
.notification-screen::-webkit-scrollbar,
.settings-screen::-webkit-scrollbar,
.identity-editor-screen::-webkit-scrollbar,
.detail-scroll::-webkit-scrollbar,
.pet-space-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.screen-scroll--home,
.screen-scroll--profile {
  padding-left: 0;
  padding-right: 0;
  background: var(--golden-fade-bg);
}

.screen-scroll--home {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: calc(var(--safe-top) + 10px);
  padding-bottom: calc(var(--safe-bottom) + 172px);
}

.screen-scroll--profile {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--safe-top) + 86px);
  padding-bottom: calc(var(--safe-bottom) + 166px);
}

.screen-scroll--home .energy-card,
.screen-scroll--home .notes-card,
.screen-scroll--home .mindfulness-card {
  width: calc(100% - 48px);
  margin: 0 auto;
}

.screen-scroll--white {
  background: #fff;
}

.screen-scroll--world {
  overscroll-behavior-y: contain;
  --pull-distance: 0px;
  --pull-progress: 0;
  --world-grid-spacing: 6px;
  position: relative;
  padding-top: 6px;
  padding-left: var(--world-grid-spacing);
  padding-right: var(--world-grid-spacing);
}

.world-pull-refresh {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(calc(var(--pull-distance) * 0.42));
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.screen-scroll--world.is-pulling .world-pull-refresh,
.screen-scroll--world.is-loading .world-pull-refresh,
.world-pull-refresh.is-visible {
  opacity: var(--pull-progress);
}

.screen-scroll--world.is-pulling .world-pull-refresh,
.screen-scroll--world.is-loading .world-pull-refresh {
  transition: none;
}

.world-scroll__content {
  position: relative;
  z-index: 1;
  transform: translateY(var(--pull-distance));
  transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.24, 1);
  will-change: transform;
}

.screen-scroll--world.is-pulling .world-scroll__content {
  transition: none;
}

.screen-scroll--world.is-loading .world-scroll__content {
  transition-duration: 0.24s;
}

.world-pull-refresh__spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(13, 116, 204, 0.16);
  border-top-color: var(--primary);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(16, 68, 115, 0.08);
  animation: world-pull-refresh-spin 0.72s linear infinite;
}

@keyframes world-pull-refresh-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.screen-titlebar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 6px) 18px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.screen-titlebar h1 {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.screen-world .screen-titlebar {
  justify-content: center;
}

.screen-world .screen-titlebar__action {
  position: absolute;
  right: 18px;
}

.pet-detail-card,
.pet-level-card,
.pet-empty-card,
.identity-intro-card,
.identity-section,
.account-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.energy-card {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  padding: 10px 0 0;
  transform: translateY(-6px);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.energy-card__summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: end;
  padding-left: 16px;
  font-family: var(--font-rounded);
}

.energy-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--energy-label);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
}

.energy-card__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0c337;
}

.energy-card__value {
  margin-top: 8px;
  font-family: var(--font-energy-numbers);
  font-size: clamp(44px, 11vw, 48px);
  line-height: 1;
  font-weight: 800;
  color: var(--energy-gold);
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.energy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  align-content: end;
  align-self: end;
}

.energy-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.energy-stat__title {
  color: var(--energy-label);
  font-family: var(--font-rounded);
  font-size: 10px;
  font-weight: 500;
}

.energy-stat__value {
  font-family: var(--font-energy-numbers);
  font-size: 22px;
  font-weight: 600;
}

.energy-stat--lucky .energy-stat__value {
  color: var(--energy-lucky);
}

.energy-stat--wealth .energy-stat__value {
  color: var(--energy-wealth);
}

.energy-stat--career .energy-stat__value {
  color: var(--energy-career);
}

.energy-stat--emotional .energy-stat__value {
  color: var(--energy-emotional);
}

.notes-card {
  min-height: 154px;
  padding: 0 0 8px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(10px);
}

.notes-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 154px;
  padding-top: 14px;
}

.home-note-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(calc(100% - 16px), 224px);
  text-align: left;
  transform: translate(var(--note-offset-x), var(--note-offset-y));
}

.home-note-row__badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8e4a8;
  color: #f2c43d;
  box-shadow: inset 0 -3px 0 rgba(210, 179, 89, 0.28);
  font-size: 22px;
}

.home-note-row__badge svg {
  width: 46px;
  height: 46px;
}

.home-note-row__content {
  display: grid;
  gap: 5px;
  margin-top: 2px;
  width: 150px;
}

.home-note-row__date {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-note-date);
}

.home-note-row__text {
  display: block;
  max-width: 150px;
  white-space: pre-line;
  font-family: var(--font-rounded);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--gold-note-text);
}

.home-create-panel {
  position: relative;
  padding-bottom: 22px;
  transform: translateY(20px);
}

.grass-preview {
  position: relative;
  width: calc(100% - 28px);
  display: block;
  border-radius: 0;
  margin: 0 14px;
}

.grass-preview__background {
  width: 100%;
  display: block;
}

.grass-preview__pet {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
}

.journal-launch {
  margin: -78px auto 0;
  width: calc(100% - 79px);
  border-radius: 24px;
  background: #f7e6b3;
  box-shadow: none;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
  transform: translateY(15px);
}

.journal-launch__text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-rounded);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 900;
  color: var(--gold-title);
  text-align: left;
}

.journal-launch__icon {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f2c23d 0%, #e39924 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(180, 125, 24, 0.22);
  font-size: 22px;
}

.journal-launch__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.journal-launch__icon-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: block;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.mindfulness-card {
  padding: 2px 0 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.mindfulness-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: translateY(18px);
}

.mindfulness-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-family: var(--font-rounded);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-title);
  transform: translateY(10px);
}

.mindfulness-card__sparkles {
  font-size: 18px;
  display: grid;
  place-items: center;
}

.mindfulness-card__sparkles svg {
  width: 17px;
  height: 17px;
}

.mindfulness-card__stage {
  position: relative;
  width: 100%;
  min-height: 144px;
  margin-top: 8px;
  padding: 0 18px 18px;
}

.mindfulness-quote-shell {
  display: grid;
  grid-template-columns: 48px auto 48px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.mindfulness-power-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  display: grid;
  justify-items: center;
  pointer-events: none;
  z-index: 3;
}

.mindfulness-power-flash {
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 900;
  color: #dfb530;
  text-shadow: 0 0 8px rgba(255, 237, 173, 0.62);
  animation: mindfulnessPowerFlash 0.95s ease forwards;
}

.mindfulness-refresh-button {
  position: relative;
  grid-column: 3;
  top: 18px;
  left: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  justify-self: center;
  overflow: visible;
  z-index: 4;
}

.mindfulness-refresh-button__icon {
  width: 36px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.mindfulness-quote {
  position: relative;
  grid-column: 2;
  width: fit-content;
  max-width: 100%;
  min-height: 144px;
  padding: 42px 0 0;
  border-radius: 0;
  background: transparent;
  color: #dfb530;
  font-family: var(--font-rounded);
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
  text-align: center;
  transform: translateY(-15px);
  z-index: 2;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.mindfulness-quote:focus,
.mindfulness-quote:active,
.mindfulness-quote:focus-visible {
  outline: none;
  background: transparent;
}

.mindfulness-quote__text {
  display: block;
  width: fit-content;
  max-width: min(100%, 340px);
  margin: 0 auto;
  transform-origin: center top;
}

.mindfulness-quote__text.is-animating {
  animation: mindfulnessQuotePulse 0.52s both;
}

.mindfulness-star-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.mindfulness-star-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  opacity: 1;
  animation: mindfulnessRingFade 3s ease forwards;
}

.mindfulness-star {
  position: absolute;
  left: 32px;
  top: 32px;
  width: var(--star-size);
  height: var(--star-size);
  color: #dfb530;
  opacity: 0.62;
  transform: translate(calc(var(--star-x) * 0.92), calc(var(--star-y) * 0.92));
  animation:
    mindfulnessRingScale 0.28s cubic-bezier(0.22, 0.8, 0.28, 1) forwards,
    mindfulnessStarTwinkle 0.26s ease-in-out var(--star-delay) 10 alternate;
}

.mindfulness-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mindfulness-star--sparkles {
  color: #f7d558;
}

.mindfulness-star--filled {
  color: #dfb530;
}

@keyframes mindfulnessQuotePulse {
  0% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes mindfulnessPowerFlash {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  10% {
    opacity: 1;
    transform: scale(1.04);
  }
  26% {
    opacity: 0.35;
    transform: scale(1.03);
  }
  46% {
    opacity: 0.92;
    transform: scale(1.01);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes mindfulnessRingScale {
  0% {
    transform: translate(calc(var(--star-x) * 0.92), calc(var(--star-y) * 0.92));
  }
  100% {
    transform: translate(var(--star-x), var(--star-y));
  }
}

@keyframes mindfulnessStarTwinkle {
  0% {
    opacity: 0.62;
  }
  100% {
    opacity: 1;
  }
}

@keyframes mindfulnessRingFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.profile-header {
  width: calc(100% - 48px);
  margin: 0 auto;
  min-height: 88px;
  padding: 24px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-header__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transform: translateY(-42px);
}

.profile-header__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-header__name {
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-header__subline {
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-header__actions {
  display: flex;
  gap: 10px;
  transform: translateY(-42px);
}

.profile-board {
  position: relative;
  margin-top: 12px;
  min-height: calc(100dvh - 140px);
  padding: 18px 0 calc(var(--safe-bottom) + 112px);
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: none;
}

.profile-board__carousel-head {
  padding: 0 18px;
}

.profile-board__tag,
.identity-carousel__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(235, 181, 56);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.profile-board__tag svg,
.identity-carousel__tag svg {
  width: 12px;
  height: 12px;
}

.profile-board__divider {
  height: 1px;
  margin: 20px 18px 0;
  background: rgba(242, 230, 196, 0.55);
}

.profile-board__divider--empty {
  margin-top: 20px;
}

.profile-board__journals {
  padding: 22px 18px 0;
  background: #fff;
}

.profile-board__journals-head {
  display: flex;
  justify-content: space-between;
  color: rgba(89, 132, 171, 0.88);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.identity-carousel-shell {
  position: relative;
}

.identity-carousel-shell--empty {
  padding-top: 2px;
}

.identity-carousel-shell--populated {
  transform: translateY(-35px);
}

.identity-carousel__tag {
  position: relative;
  z-index: 2;
  margin-left: 14px;
}

.identity-carousel__tag-icon {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.profile-header__action-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.identity-carousel-shell--empty .identity-carousel__tag {
  margin-top: 0;
}

.identity-carousel-shell--populated .identity-carousel__tag {
  margin-top: 54px;
}

.identity-empty,
.identity-carousel__slide {
  width: calc(100% - 36px);
  margin: 0 auto;
  display: block;
  text-align: left;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(227, 247, 240, 0.96) 100%);
  box-shadow: none;
  position: relative;
}

.identity-empty {
  margin-top: 2px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 302px;
}

.identity-empty__badge,
.identity-carousel__placeholder {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f0ab23;
  background: linear-gradient(135deg, rgb(255, 247, 224) 0%, rgb(249, 222, 133) 100%);
  border: 3px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(232, 172, 38, 0.18);
}

.identity-empty__badge svg {
  width: 20px;
  height: 20px;
}

.identity-empty__content {
  display: grid;
  gap: 6px;
  max-width: min(258px, calc(100% - 56px));
}

.identity-empty__content strong {
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 17px;
  line-height: 1.36;
}

.identity-empty__content span {
  color: rgba(89, 132, 171, 0.92);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.42;
}

.identity-carousel {
  position: relative;
  padding-top: 0;
}

.identity-carousel__slide {
  overflow: hidden;
  min-height: 324px;
}

.identity-carousel__visual {
  position: relative;
  height: 194px;
  background: linear-gradient(135deg, rgba(231, 246, 255, 0.88) 0%, rgba(247, 252, 245, 0.88) 100%);
}

.identity-carousel__visual img,
.identity-entry-editor__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity-carousel__placeholder {
  width: 72px;
  height: 72px;
  margin: 76px auto 0;
  font-size: 28px;
}

.identity-carousel__module {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  color: #d3991f;
}

.identity-carousel__text {
  padding: 18px;
  min-height: 130px;
  color: #3d3833;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.5;
}

.carousel-nav {
  position: absolute;
  top: 138px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.carousel-nav--prev {
  left: 8px;
}

.carousel-nav--next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 116, 204, 0.18);
}

.carousel-dot.is-active {
  width: 22px;
  background: rgba(13, 116, 204, 0.72);
}

.profile-journal-grid,
.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-journal-grid {
  background: #fff;
}

.world-grid {
  gap: var(--world-grid-spacing);
  padding-top: 12px;
}

.world-card,
.profile-journal-card {
  display: block;
  width: 100%;
  text-align: left;
}

.world-card__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 1px 5px;
  min-width: 0;
}

.world-card__name,
.world-card__count {
  color: #a1978c;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
}

.world-card__count {
  margin-left: auto;
}

.world-card__name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-card__count {
  flex: 0 0 auto;
}

.paper-card {
  min-height: 248px;
  border-radius: 6px;
  padding: 12px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--paper) 0,
      var(--paper) 22px,
      var(--paper-line) 22px,
      var(--paper-line) 23px
    );
  color: var(--paper-text);
  box-shadow: 0 4px 12px rgba(36, 29, 20, 0.04);
}

.paper-card--world {
  box-shadow: 0 8px 14px -10px rgba(36, 29, 20, 0.18);
}

.paper-card--world .paper-card__text {
  font-size: 14px;
}

.paper-card__dots {
  display: flex;
  gap: 8px;
  min-height: 14px;
}

.paper-card__text {
  margin-top: 10px;
  color: #45382b;
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 11;
  overflow: hidden;
}

.paper-card__image + .paper-card__text,
.paper-card__image--wide + .paper-card__text {
  -webkit-line-clamp: 5;
}

.paper-card__topline {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.paper-card__meta {
  display: grid;
  gap: 2px;
  text-align: right;
}

.paper-card--profile .paper-card__meta span:first-child {
  color: #d6a03d;
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
}

.paper-card--profile .paper-card__meta span:last-child {
  color: rgba(20, 82, 120, 0.86);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 600;
}

.paper-card__image,
.secure-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
}

.paper-card__image {
  margin-top: 10px;
  height: 132px;
}

.paper-card__image--wide {
  aspect-ratio: 4 / 3;
  height: auto;
}

.secure-image__placeholder {
  width: 100%;
  height: 100%;
  min-height: 132px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  padding: 8px;
}

.secure-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.attribute-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.attribute-dot--lucky {
  background: var(--lucky);
}

.attribute-dot--wealth {
  background: var(--wealth);
}

.attribute-dot--career {
  background: var(--career);
}

.attribute-dot--emotional {
  background: var(--emotional);
}

.profile-empty,
.empty-card,
.empty-inline,
.detail-loading,
.pet-grass-card__empty {
  color: var(--text-soft);
  line-height: 1.6;
}

.profile-empty {
  padding: 4px 18px 0;
  text-align: center;
}

.empty-card,
.pet-empty-card {
  padding: 18px;
  text-align: center;
}

.profile-empty p {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-empty__illustration {
  position: relative;
  width: 72px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgb(250, 240, 212);
  box-shadow: 0 8px 16px rgba(199, 168, 92, 0.12);
}

.profile-empty__rings {
  position: absolute;
  left: 50%;
  top: 11px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.profile-empty__rings span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(237, 201, 135);
}

.profile-empty__line {
  position: absolute;
  left: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.profile-empty__line--1 {
  top: 25px;
  width: 34px;
  background: rgb(227, 212, 176);
}

.profile-empty__line--2 {
  top: 35px;
  width: 26px;
  background: rgb(235, 219, 189);
}

.profile-empty__line--3 {
  top: 45px;
  width: 30px;
  background: rgb(240, 227, 201);
}

.empty-card--white {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.empty-card--white h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.empty-card--white p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
}

.icon-button,
.plus-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.icon-button--white {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.profile-header .profile-header__action-button.icon-button--white {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--nav-gold);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(17, 66, 103, 0.08);
}

.screen-titlebar__action svg,
.icon-button--white svg,
.icon-button--soft svg {
  width: 18px;
  height: 18px;
}

.icon-button--soft {
  background: rgba(13, 116, 204, 0.08);
  color: rgba(13, 116, 204, 0.76);
}

.icon-button--danger {
  width: 24px;
  height: 24px;
  color: rgba(223, 90, 111, 0.88);
}

.plus-button {
  background: #efbf49;
  color: #fff;
}

.tab-bar {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(var(--safe-bottom) - 8px);
  width: calc(((100% - 20px) * 0.6667) + 20px);
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(247, 252, 255, 0.5) 100%);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 40px rgba(16, 68, 115, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(141, 182, 220, 0.08);
  z-index: 11;
}

.tab-bar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 39px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}

.tab-bar::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 2px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.tab-button {
  min-height: 52px;
  border-radius: 28px;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 7px 6px 5px;
  color: rgba(29, 78, 124, 0.56);
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tab-button.is-active {
  color: #1152a1;
  background: transparent;
  box-shadow: none;
}

.tab-button.is-active::before {
  content: none;
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: none;
  pointer-events: none;
}

.tab-icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.tab-icon-wrap svg {
  width: 19px;
  height: 19px;
}

.tab-button--profile .tab-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.tab-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tab-badge,
.header-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ef3c5b;
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 700;
}

.profile-header__actions .header-badge {
  top: -4px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  font-size: 11px;
}

.status-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--safe-bottom) + 114px);
  transform: none;
  width: auto;
  z-index: 20;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.status-toast button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: currentColor;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(12, 28, 49, 0.22);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.modal-overlay--push {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal-overlay.is-entering {
  animation: modal-overlay-fade-in 260ms ease-out both;
}

.modal-screen {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.modal-overlay--sheet.is-entering .modal-screen {
  animation: modal-sheet-enter 440ms cubic-bezier(0.19, 0.88, 0.22, 1) both;
}

.modal-overlay--push.is-entering .modal-screen {
  animation: modal-push-enter 360ms cubic-bezier(0.22, 0.82, 0.24, 1) both;
  box-shadow: -16px 0 34px rgba(16, 68, 115, 0.12);
}

.modal-screen--white {
  background: #fff;
}

.modal-screen--sheet {
  background: #ededed;
}

.modal-screen--gradient {
  background: var(--golden-fade-bg);
}

@keyframes modal-overlay-fade-in {
  from {
    opacity: 0.02;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-sheet-enter {
  from {
    transform: translate3d(0, 100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes modal-push-enter {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay.is-entering,
  .modal-overlay.is-entering .modal-screen {
    animation: none;
  }
}

.modal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  padding: calc(var(--safe-top) + 6px) 16px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.modal-topbar--white,
.modal-topbar--sheet {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.modal-topbar--pet-create {
  background: #f4f4f6;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal-topbar--pet-create .modal-topbar__title,
.modal-topbar--pet-create .topbar-close-pill {
  transform: translateY(-10px);
}

.modal-topbar__title {
  text-align: center;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.modal-topbar__spacer {
  width: 30px;
}

.modal-topbar__spacer--pet-create {
  width: 84px;
}

.modal-topbar__segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 220px;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

.modal-topbar__segmented button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(128, 128, 128, 0.86);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.modal-topbar__segmented button.is-active {
  border-color: rgba(128, 128, 128, 0.26);
  background: #f5e5ba;
  color: #d6a03d;
  box-shadow: none;
}

.topbar-back,
.topbar-text-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-weight: 500;
  font-size: 17px;
}

.topbar-back svg {
  width: 16px;
  height: 16px;
}

.topbar-close-pill {
  min-width: 80px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1475d0;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
  box-shadow: none;
}

.pet-create-modal {
  background: #f4f4f6;
}

.pet-create-modal .pet-create-scroll {
  padding: 14px 20px calc(var(--safe-bottom) + 20px);
  background: #f4f4f6;
}

.pet-create-modal .pet-create-bottom {
  background: transparent;
  border-top: 0;
}

.composer-screen,
.pet-create-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.composer-scroll,
.pet-create-scroll,
.notification-screen,
.settings-screen,
.identity-editor-screen,
.detail-scroll,
.pet-space-scroll {
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px calc(var(--safe-bottom) + 12px);
  overscroll-behavior: contain;
}

.detail-scroll {
  padding: 0 0 calc(var(--safe-bottom) + 20px);
  background: #fff;
}

.composer-scroll,
.pet-create-scroll {
  padding: 14px 16px calc(var(--safe-bottom) + 18px);
}

.notification-screen,
.settings-screen {
  padding: 12px 16px calc(var(--safe-bottom) + 20px);
}

.pet-space-scroll {
  padding: 12px 20px calc(var(--safe-bottom) + 118px);
}

.composer-scroll,
.pet-create-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.identity-editor-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px calc(var(--safe-bottom) + 16px);
}

.composer-section {
  margin-top: 0;
}

.composer-hero,
.composer-section--pets,
.composer-section--images,
.composer-section--editor,
.pet-create-card,
.identity-intro-card,
.identity-section {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(19, 64, 105, 0.05);
  box-shadow: none;
}

.composer-hero,
.composer-section--pets,
.composer-section--images,
.composer-section--editor {
  padding: 16px;
}

.composer-section .section-label {
  color: #d6a03d;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.composer-prompt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-title);
  font-family: var(--font-rounded);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 900;
}

.composer-hero--qa .qa-header,
.composer-hero--prompt .composer-prompt {
  min-width: 0;
}

.qa-header {
  display: grid;
  gap: 10px;
}

.qa-header__progress {
  color: rgba(20, 82, 120, 0.9);
  font-family: var(--font-serif);
  font-size: 12px;
}

.qa-header h2 {
  margin: 0;
  color: var(--identity-gold);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(13, 116, 204, 0.08);
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.chip-toggle.is-checked {
  color: var(--primary);
  background: rgba(13, 116, 204, 0.16);
}

.chip-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.composer-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.composer-image,
.composer-image-picker,
.identity-entry-editor__image {
  width: 104px;
  height: 104px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(12, 57, 99, 0.08);
}

.composer-image img,
.identity-entry-editor__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composer-image-picker {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.composer-image-picker input,
.identity-entry-editor__image input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.composer-image-picker.is-disabled {
  opacity: 0.5;
}

.composer-image__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.paper-editor {
  border-radius: 18px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--paper) 0,
      var(--paper) 24px,
      var(--paper-line) 24px,
      var(--paper-line) 25px
    );
  min-height: 320px;
  padding: 18px 20px;
}

.paper-editor__textarea {
  display: block;
  width: 100%;
  min-height: 286px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--paper-ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.72;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.paper-editor__textarea::placeholder,
.pet-create-inscription::placeholder {
  color: rgba(165, 136, 102, 0.82);
}

.qa-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.composer-bottom,
.pet-create-bottom {
  padding: 12px 20px calc(var(--safe-bottom) + 14px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(19, 64, 105, 0.06);
  box-shadow: none;
}

.pet-create-card .pet-create-bottom {
  padding: 10px 0 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 0;
}

.broadcast-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.broadcast-toggle.is-hidden {
  visibility: hidden;
  height: 0;
  margin: 0;
}

.broadcast-toggle input {
  width: 18px;
  height: 18px;
}

.modal-screen--composer {
  background: #fff;
}

.composer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--safe-top) + 14px) 20px 0;
  background: #fff;
}

.composer-topbar__segmented {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.composer-topbar__segmented button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(128, 128, 128, 0.86);
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
}

.composer-topbar__segmented button.is-active {
  background: #f5e6ba;
  border-color: rgba(128, 128, 128, 0.26);
  color: #d6a03d;
}

.composer-close-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #3a6e97;
  background: transparent;
  box-shadow: none;
}

.composer-close-button svg {
  width: 18px;
  height: 18px;
}

.composer-scroll--ios {
  display: block;
  height: 100%;
  padding: 0 0 8px;
  background: #fff;
}

.composer-prompt-section,
.composer-pet-section,
.composer-image-section,
.composer-editor {
  padding-left: 20px;
  padding-right: 20px;
}

.composer-prompt-section {
  padding-top: 27px;
}

.composer-prompt-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.composer-prompt-strip__text {
  margin: 0;
  flex: 1 1 auto;
  color: #e69e26;
  font-family: var(--font-rounded);
  font-size: 26px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.composer-prompt-swap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fcf2d6;
  color: #d6a03d;
  box-shadow: none;
}

.composer-prompt-swap span {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.composer-prompt-swap svg {
  width: 14px;
  height: 14px;
}

.composer-pet-section {
  padding-top: 12px;
}

.composer-section-title {
  color: #d6a03d;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.composer-empty-copy {
  margin-top: 8px;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.composer-pet-scroll {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 4px;
  overflow-x: auto;
}

.composer-pet-avatar {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.composer-pet-avatar__body {
  position: relative;
  display: inline-flex;
}

.composer-pet-avatar__body .pet-avatar {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.composer-pet-avatar__check {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  transform: translate(18%, -12%);
}

.composer-pet-avatar__check svg {
  width: 15px;
  height: 15px;
  display: block;
}

.composer-pet-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.composer-pet-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.composer-pet-tag--lucky {
  background: var(--lucky);
}

.composer-pet-tag--wealth {
  background: var(--wealth);
}

.composer-pet-tag--career {
  background: var(--career);
}

.composer-pet-tag--emotional {
  background: var(--emotional);
}

.composer-pet-inscriptions {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.composer-pet-inscription {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.composer-pet-inscription--lucky {
  color: var(--lucky);
}

.composer-pet-inscription--wealth {
  color: var(--wealth);
}

.composer-pet-inscription--career {
  color: var(--career);
}

.composer-pet-inscription--emotional {
  color: var(--emotional);
}

.composer-image-section {
  padding-top: 4px;
}

.composer-image-count {
  color: rgba(20, 82, 120, 0.72);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
}

.composer-image-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  overflow-x: auto;
}

.composer-image--ios,
.composer-image-picker--ios {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.composer-image--ios {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.composer-image--ios img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.composer-image-picker--ios {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #c9c9c9;
}

.composer-image-picker--ios .composer-image-picker__plus {
  display: inline-flex;
  width: 30px;
  height: 30px;
}

.composer-image-picker--ios .composer-image-picker__plus svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.composer-image-picker--ios input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.composer-image-picker--ios.is-disabled {
  opacity: 0.45;
}

.composer-image--ios .composer-image__remove {
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  color: #fff;
}

.composer-image--ios .composer-image__remove svg {
  width: 18px;
  height: 18px;
}

.composer-editor--rich {
  padding-top: 14px;
}

.composer-editor--qa {
  padding-top: 12px;
}

.composer-qa-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(242, 194, 35, 0.18);
  overflow: hidden;
}

.composer-qa-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2c223;
}

.composer-qa-progress__text {
  padding-top: 8px;
  color: rgba(20, 82, 120, 0.9);
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 400;
}

.composer-qa-question {
  margin: 0;
  padding-top: 10px;
  color: #e69e26;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
}

.paper-editor--composer {
  position: relative;
  margin-top: 12px;
  min-height: 360px;
  padding: 18px 0 14px;
  border: 1px solid var(--paper-border);
  box-shadow: none;
  isolation: isolate;
}

.paper-editor--qa {
  min-height: 220px;
}

.paper-editor__textarea--composer {
  min-height: 520px;
  padding: 0 24px;
  resize: none;
  overflow-y: auto;
  color: var(--paper-ink);
  font-family: var(--font-serif);
  font-weight: 300;
  font-synthesis: none;
  font-size: 17px;
  line-height: 24px;
}

.paper-editor__textarea--composer[contenteditable="true"]::before {
  content: none;
}

.paper-editor__textarea--composer.is-empty::before {
  content: attr(data-placeholder);
  display: block;
  color: rgba(165, 136, 102, 0.82);
  pointer-events: none;
}

.paper-editor__textarea--composer::placeholder {
  font-family: var(--font-serif);
  font-weight: 300;
  font-synthesis: none;
  opacity: 1;
}

.paper-editor--qa .paper-editor__textarea--composer {
  min-height: 186px;
}

.journal-celebration-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.journal-celebration-overlay--modal {
  z-index: 40;
  overflow: hidden;
}

.journal-celebration-confetti-piece {
  position: absolute;
  left: var(--launch-x);
  top: var(--launch-y);
  width: var(--piece-width);
  height: var(--piece-height);
  border-radius: var(--piece-radius);
  background: var(--piece-color);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--piece-color) 24%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--start-rotation)) scale(0.28);
  animation:
    journal-confetti-burst var(--duration) cubic-bezier(0.18, 0.74, 0.22, 1) var(--delay) forwards,
    journal-confetti-fade 0.96s ease-out var(--fade-delay) forwards;
}

.journal-celebration-stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  color: #ad1a24;
  filter: saturate(0.9) drop-shadow(0 4px 10px rgba(173, 26, 36, 0.16));
  opacity: 0;
  transform: translate(10px, -16px) rotate(-21deg) scale(1.55);
  animation: journal-stamp-land 0.74s cubic-bezier(0.16, 0.86, 0.24, 1.18) 0.18s forwards;
}

.journal-celebration-overlay--modal .journal-celebration-stamp {
  top: var(--stamp-top, 40%);
  right: var(--stamp-right, 42px);
}

.journal-celebration-stamp__ring,
.journal-celebration-stamp__inner-ring,
.journal-celebration-stamp__text,
.journal-celebration-stamp__bar,
.journal-celebration-stamp__dust {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.journal-celebration-stamp__ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 16deg,
      rgba(173, 26, 36, 0.98),
      rgba(209, 46, 51, 0.82),
      rgba(173, 26, 36, 0.95),
      rgba(209, 46, 51, 0.78),
      rgba(173, 26, 36, 0.98)
    );
  -webkit-mask: radial-gradient(circle, transparent 0 48px, #000 49px 55px, transparent 56px);
  mask: radial-gradient(circle, transparent 0 48px, #000 49px 55px, transparent 56px);
}

.journal-celebration-stamp__ring::before,
.journal-celebration-stamp__ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, 100% 0, 82% 32%, 22% 20%, 0 55%);
}

.journal-celebration-stamp__ring::after {
  transform: rotate(174deg);
  opacity: 0.82;
}

.journal-celebration-stamp__inner-ring {
  width: 92px;
  height: 92px;
  border: 1.9px solid rgba(173, 26, 36, 0.44);
  border-radius: 50%;
}

.journal-celebration-stamp__text {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 82px;
  color: #ad1a24;
  text-align: center;
  line-height: 1;
  text-shadow: 0.6px 0.8px 0 rgba(209, 46, 51, 0.42);
  -webkit-mask:
    radial-gradient(circle at 20% 30%, transparent 0 4px, #000 4.4px),
    linear-gradient(115deg, #000 0 34%, rgba(0, 0, 0, 0.58) 44%, #000 55% 100%);
  mask:
    radial-gradient(circle at 20% 30%, transparent 0 4px, #000 4.4px),
    linear-gradient(115deg, #000 0 34%, rgba(0, 0, 0, 0.58) 44%, #000 55% 100%);
}

.journal-celebration-stamp__text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.journal-celebration-stamp__text span {
  display: block;
  font-family: var(--font-rounded);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.journal-celebration-stamp__bar {
  width: 66px;
  height: 6px;
  border-radius: 2px;
  background: rgba(173, 26, 36, 0.22);
  transform: translate(-50%, calc(-50% + 10px)) rotate(-9deg);
}

.journal-celebration-stamp__dust {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(186, 36, 46, var(--dot-opacity));
  transform: translate(calc(-50% + var(--dot-x)), calc(-50% + var(--dot-y)));
}

.modal-screen--composer.is-celebrating .composer-topbar,
.modal-screen--composer.is-celebrating .composer-pet-section,
.modal-screen--composer.is-celebrating .composer-image-section,
.modal-screen--composer.is-celebrating .paper-editor__textarea {
  pointer-events: none;
}

.modal-screen--composer.is-celebrating .composer-bottom--ios {
  display: none;
}

.modal-screen--composer.is-celebrating .composer-screen--ios {
  grid-template-rows: minmax(0, 1fr);
}

.modal-screen--composer.is-celebrating .composer-scroll--ios {
  padding-bottom: calc(var(--safe-bottom) + 18px);
}

@keyframes journal-confetti-burst {
  0% {
    left: var(--launch-x);
    top: var(--launch-y);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--start-rotation)) scale(0.28);
  }
  3% {
    opacity: 1;
  }
  100% {
    left: var(--dest-x);
    top: var(--dest-y);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--end-rotation)) scale(var(--end-scale));
  }
}

@keyframes journal-confetti-fade {
  to {
    opacity: 0;
  }
}

@keyframes journal-stamp-land {
  to {
    opacity: 0.96;
    transform: translate(-20px, 34px) rotate(-13deg) scale(1);
  }
}

.composer-bottom--ios {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  max-height: 180px;
  padding: 10px 20px calc(var(--safe-bottom) + 18px);
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 0;
  overflow: visible;
}

.broadcast-toggle--ios {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 700;
}

.broadcast-toggle__mark {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #6e99bd;
  border-radius: 50%;
  background: #fff;
}

.broadcast-toggle--ios.is-checked .broadcast-toggle__mark {
  border-color: #f2c223;
  background: radial-gradient(circle at center, #f2c223 0 48%, #fff 49% 100%);
}

.composer-bottom--ios .composer-submit {
  width: 100%;
  height: 62px;
  border-radius: 20px;
  background: #f2c43d;
  color: #fff;
  box-shadow: none;
  font-family: var(--font-rounded);
  font-size: 28px;
  font-weight: 800;
}

.composer-bottom--ios .composer-submit:disabled {
  opacity: 0.55;
  background: #f2c43d;
  color: #fff;
  box-shadow: none;
}

.detail-card {
  padding: 18px 16px 22px;
  margin: 12px 16px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.detail-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a3a19e;
}

.detail-card__author-name {
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 500;
}

.detail-card__title-row {
  margin-top: 12px;
}

.detail-card__title-row h2 {
  margin: 0;
  color: var(--paper-display);
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.46;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.detail-card__line {
  flex: 1;
  height: 1px;
  background: rgba(195, 168, 144, 0.56);
}

.detail-card__date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.detail-card__date-row span {
  color: var(--paper-date);
  font-size: 14px;
  font-style: italic;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.detail-card__dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.detail-gallery__item {
  aspect-ratio: 1 / 1;
}

.detail-paper {
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 18px;
  min-height: 176px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--paper) 0,
      var(--paper) 24px,
      var(--paper-line) 24px,
      var(--paper-line) 25px
    );
}

.detail-paper p {
  margin: 0 0 14px;
  color: var(--paper-text);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.62;
}

.detail-paper p:last-child {
  margin-bottom: 0;
}

.detail-actions {
  margin-top: 16px;
}

.detail-action-message {
  margin-top: 12px;
  color: #b78323;
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 600;
}

.comments-section {
  margin-top: 22px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.comments-section h3 {
  margin: 0 0 12px;
  color: #59595e;
  font-family: var(--font-rounded);
  font-size: 20px;
  font-weight: 900;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.comment-card {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.comment-card__meta {
  color: #757373;
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
}

.comment-card__content {
  margin-top: 6px;
  color: #4d4d57;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
}

.comments-section .text-input {
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
}

.comments-section .form-stack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comments-section .field {
  flex: 1 1 auto;
}

.comments-section .text-input--textarea {
  min-height: 40px;
  max-height: 84px;
  padding: 9px 12px;
  resize: none;
}

.comments-section .primary-button {
  min-width: 54px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #edc23b;
  box-shadow: none;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.pet-grass-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pet-grass-card__stage {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.pet-grass-card__stage img {
  width: 100%;
  display: block;
}

.pet-grass-card__avatars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.pet-grass-card__avatar {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.pet-grass-card__pointer {
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 900;
  color: #f3c34d;
  opacity: 0;
}

.pet-grass-card__avatar.is-active .pet-grass-card__pointer {
  opacity: 1;
}

.pet-grass-card__empty {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 800;
}

.pet-detail-card,
.pet-level-card,
.pet-empty-card {
  margin-top: 14px;
  padding: 22px 20px;
}

.pet-detail-card__avatar {
  display: flex;
  justify-content: center;
}

.pet-progress {
  margin-top: 12px;
}

.pet-progress__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.pet-progress__title {
  color: var(--pet-title);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.pet-progress__english {
  margin-left: 8px;
  color: #bac2d1;
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pet-progress__value {
  font-family: var(--font-rounded);
  font-size: 19px;
  font-weight: 700;
}

.pet-progress__value--lucky {
  color: var(--lucky);
}

.pet-progress__value--wealth {
  color: var(--wealth);
}

.pet-progress__value--career {
  color: var(--career);
}

.pet-progress__value--emotional {
  color: var(--emotional);
}

.pet-progress__track {
  height: 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.pet-progress__fill {
  height: 100%;
  border-radius: 999px;
}

.pet-progress__fill--lucky {
  background: var(--lucky);
}

.pet-progress__fill--wealth {
  background: var(--wealth);
}

.pet-progress__fill--career {
  background: var(--career);
}

.pet-progress__fill--emotional {
  background: var(--emotional);
}

.pet-progress__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--pet-title);
  font-family: var(--font-rounded);
  font-size: 13px;
}

.pet-progress__meta > span:first-child {
  font-weight: 300;
}

.pet-progress__meta > span:last-child {
  font-weight: 700;
}

.pet-progress__numbers {
  display: inline-flex;
}

.pet-progress__numbers-current {
  font-weight: 700;
}

.pet-progress__numbers-target {
  font-weight: 300;
}

.pet-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(224, 202, 166, 0.8);
}

.pet-info-block {
  display: grid;
  gap: 6px;
}

.pet-info-block__label {
  color: var(--pet-label);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
}

.pet-info-block strong,
.pet-inscription strong {
  color: var(--pet-title);
  font-family: var(--font-rounded);
  font-size: 19px;
  font-weight: 500;
}

.pet-level-stars {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pet-level-stars span {
  display: inline-grid;
  place-items: center;
}

.pet-level-stars svg {
  width: 16px;
  height: 16px;
  color: #f4c73d;
}

.pet-accent--lucky {
  color: var(--lucky);
}

.pet-accent--wealth {
  color: var(--wealth);
}

.pet-accent--career {
  color: var(--career);
}

.pet-accent--emotional {
  color: var(--emotional);
}

.pet-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pet-accent__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}

.pet-accent__dot--lucky {
  background: var(--lucky);
}

.pet-accent__dot--wealth {
  background: var(--wealth);
}

.pet-accent__dot--career {
  background: var(--career);
}

.pet-accent__dot--emotional {
  background: var(--emotional);
}

.pet-inscription {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(224, 202, 166, 0.8);
  justify-items: center;
  text-align: center;
}

.pet-inscription__value {
  color: var(--pet-title);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
}

.pet-inscription__tail {
  width: 50px;
  height: 2px;
  border-radius: 999px;
  background: rgba(224, 202, 166, 0.94);
}

.pet-level-card h3,
.pet-empty-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 800;
}

.pet-level-card p,
.pet-empty-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.pet-level-card__line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  line-height: 1.6;
}

.pet-level-card__line + .pet-level-card__line {
  margin-top: 8px;
}

.pet-level-card__line strong {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.pet-level-card__line span {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 300;
}

.pet-space-bottom {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 20px calc(var(--safe-bottom) + 12px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.82) 28%, rgba(255, 255, 255, 0.98) 100%);
}

.talk-button {
  width: 100%;
  background: linear-gradient(90deg, #9ebfe8 0%, #8ab2e8 100%);
  box-shadow: 0 10px 18px rgba(103, 142, 206, 0.2);
  font-size: 17px;
}

.talk-button.is-active {
  background: linear-gradient(90deg, #2568d8 0%, #4d9ef5 100%);
  box-shadow: 0 14px 26px rgba(37, 104, 216, 0.24);
}

.pet-create-preview {
  display: flex;
  justify-content: center;
  width: 100%;
  transform: translateY(-30px);
}

.pet-create-intro {
  display: grid;
  gap: 8px;
  color: #4c7ea9;
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.58;
}

.pet-create-intro p {
  margin: 0;
}

.pet-create-card {
  padding: 22px 18px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.pet-create-card .field > span {
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.pet-create-card .text-input {
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 500;
  border-radius: 16px;
  border-color: rgba(84, 110, 146, 0.18);
  background: #fff;
  box-shadow: none;
}

.pet-create-preview-panel {
  margin-top: 8px;
  border-radius: 28px;
  background: #fff;
  min-height: 282px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px 0;
  border: none;
}

.pet-create-inscription {
  min-height: 68px;
  height: 68px;
  resize: none;
  padding: 12px 14px 28px;
  overflow-y: auto;
}

.pet-create-inscription-wrap {
  position: relative;
}

.pet-create-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.pet-create-card--ios {
  display: grid;
  gap: 14px;
}

.pet-create-card--ios .field {
  gap: 10px;
}

.pet-create-config {
  display: grid;
  gap: 12px;
  margin-top: -20px;
}

.pet-create-attribute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pet-create-attribute-chip {
  --attribute-color: #f5669e;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(84, 110, 146, 0.18);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text);
  box-shadow: none;
}

.pet-create-attribute-chip.is-active {
  border-width: 2px;
  border-color: var(--attribute-color);
  background: color-mix(in srgb, var(--attribute-color) 16%, white);
}

.pet-create-attribute-chip--lucky {
  --attribute-color: #f5669e;
}

.pet-create-attribute-chip--emotional {
  --attribute-color: #a352f2;
}

.pet-create-attribute-chip--career {
  --attribute-color: #4585eb;
}

.pet-create-attribute-chip--wealth {
  --attribute-color: #ed8f52;
}

.pet-create-attribute-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--attribute-color);
  flex: 0 0 auto;
}

.pet-create-attribute-chip__label {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.pet-create-attribute-chip__check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--attribute-color);
}

.pet-create-attribute-chip__check svg {
  width: 12px;
  height: 12px;
  display: block;
}

.pet-create-bottom .primary-button {
  height: 60px;
  width: 100%;
  border-radius: 24px;
  background: #f0c73d;
  color: #fff;
  box-shadow: none;
  font-size: 22px;
  font-weight: 800;
}

.pet-create-bottom .primary-button:disabled {
  opacity: 1;
  background: #f7dd84;
  color: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pet-create-base-grid {
  display: grid;
  gap: 8px;
}

.pet-create-base-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pet-create-base-chip {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #123f85;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.pet-create-base-chip.is-active {
  background: #1f78db;
  color: #fff;
}

.pet-create-selection-tabs {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-top: 2px;
}

.pet-create-selection-tab {
  display: grid;
  gap: 8px;
  justify-items: start;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.pet-create-selection-tab__label {
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 700;
  color: #173f83;
}

.pet-create-selection-tab__underline {
  width: var(--pet-create-tab-underline-width, 30px);
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.pet-create-selection-tab.is-active .pet-create-selection-tab__label {
  color: #1f78db;
  font-weight: 800;
}

.pet-create-selection-tab.is-active .pet-create-selection-tab__underline {
  background: #1f78db;
}

.pet-create-option-grid {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pet-create-option-grid--accessory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pet-create-option-card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.pet-create-option-card.is-active {
  background: #f8e8b3;
}

.pet-create-option-card--clothe {
  width: 84px;
  height: 60px;
}

.pet-create-option-card--clothe img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.pet-create-option-card--hair {
  width: 62px;
  height: 70px;
}

.pet-create-option-card--accessory {
  min-height: 54px;
  width: 100%;
}

.pet-create-option-card--accessory img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.pet-create-option-card__placeholder {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px dashed rgba(84, 110, 146, 0.28);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.notification-header span {
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.notification-header strong {
  color: var(--warning);
  font-family: var(--font-rounded);
  font-size: 20px;
  font-weight: 900;
}

.notification-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.notification-row {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-row.is-unread {
  border-color: rgba(239, 60, 91, 0.24);
  background: rgba(255, 255, 255, 0.98);
}

.notification-row__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f0bf38;
  color: #fff;
  flex: 0 0 auto;
}

.notification-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-row__icon svg,
.settings-row__chevron svg,
.danger-row svg {
  width: 16px;
  height: 16px;
}

.notification-row__icon svg {
  width: 13px;
  height: 13px;
}

.notification-row__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.notification-row__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 700;
}

.notification-row__subtitle {
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.notification-row__time {
  color: rgba(20, 82, 120, 0.78);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.notification-row__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef3c5b;
}

.settings-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-group {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 64, 105, 0.05);
  box-shadow: none;
}

.settings-row,
.danger-row {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-group .settings-row + .settings-row {
  border-top: 1px solid rgba(20, 78, 132, 0.08);
}

.settings-row__icon,
.danger-row svg {
  color: var(--text-soft);
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.settings-row__label {
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 600;
}

.settings-row__chevron {
  margin-left: auto;
  color: var(--text-muted);
  display: inline-grid;
  place-items: center;
}

.danger-row {
  color: var(--danger);
  justify-content: flex-start;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 600;
}

.settings-screen--account {
  gap: 12px;
}

.settings-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 16px;
}

.settings-profile-row__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-profile-row__text strong {
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

.settings-profile-row__text span {
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-form-group {
  overflow: visible;
}

.settings-field-row {
  display: block;
  padding: 14px 16px 12px;
}

.settings-field-row__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 700;
}

.settings-field-input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(35, 96, 150, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-field-input:focus {
  border-color: rgba(13, 116, 204, 0.44);
  box-shadow: 0 0 0 4px rgba(13, 116, 204, 0.12);
}

.settings-form-actions {
  padding: 0 16px 16px;
}

.settings-save-button {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
  box-shadow: none;
}

.identity-intro-card {
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.identity-intro-card strong {
  display: block;
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.identity-intro-card p {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.identity-intro-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f1cb63 0%, #e7a92a 100%);
  color: #fff;
  font-size: 24px;
}

.identity-section {
  padding: 12px;
}

.identity-section__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.identity-section__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239, 77, 142, 0.14);
  color: var(--primary);
  font-size: 14px;
}

.identity-section__head h3 {
  margin: 0;
  color: var(--identity-gold);
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 900;
}

.identity-section__head p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.identity-module-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.identity-module {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 100%);
  border: 1px solid rgba(19, 64, 105, 0.05);
}

.identity-module__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.identity-module__head strong {
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 700;
}

.identity-module__head span {
  color: rgba(20, 82, 120, 0.8);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
}

.identity-entry-list {
  display: grid;
  gap: 8px;
}

.identity-entry-editor {
  display: grid;
  gap: 6px;
}

.identity-entry-editor__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(20, 82, 120, 0.85);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
}

.identity-entry-editor__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.identity-entry-editor__text {
  position: relative;
  display: block;
  min-width: 0;
}

.identity-entry-editor__text textarea {
  height: 108px;
  min-height: 108px;
  resize: none;
  border: 1px solid rgba(20, 82, 120, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.48;
  padding: 10px 12px;
  overflow-y: auto;
}

.identity-entry-editor__text textarea::placeholder {
  color: transparent;
}

.identity-entry-editor__placeholder {
  position: absolute;
  inset: 10px 12px auto;
  max-height: calc(100% - 20px);
  overflow: hidden;
  color: rgba(20, 82, 120, 0.8);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.42;
  pointer-events: none;
  white-space: pre-wrap;
}

.identity-entry-editor__text textarea:not(:placeholder-shown) + .identity-entry-editor__placeholder {
  display: none;
}

.identity-entry-editor__image {
  width: 116px;
  height: 108px;
}

.identity-entry-editor__image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 6px;
  color: rgba(20, 82, 120, 0.75);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 700;
}

.identity-entry-editor__image-placeholder svg {
  width: 18px;
  height: 18px;
}

.identity-module .chip-button {
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(13, 117, 204, 0.95);
  font-size: 14px;
  font-weight: 700;
}

.profile-avatar,
.author-avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #6dc3f6 0%, #5b7af2 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-avatar--placeholder {
  background: rgba(244, 242, 237, 0.98);
  color: rgba(150, 149, 154, 0.88);
}

.profile-avatar--placeholder svg {
  width: 100%;
  height: 100%;
}

.profile-avatar img,
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar--default {
  width: 58px;
  height: 58px;
}

.profile-avatar--large {
  width: 52px;
  height: 52px;
}

.author-avatar--small {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.author-avatar--medium {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.pet-avatar {
  width: var(--pet-size);
  height: var(--pet-size);
  padding: calc(var(--pet-size) * 0.02);
  border-radius: calc(var(--pet-size) * 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: var(--shadow-sm);
}

.pet-avatar--plain {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.pet-avatar--resting:not(.pet-avatar--plain) {
  background: transparent;
  border-color: transparent;
}

.pet-avatar__canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.pet-avatar__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 30%),
      linear-gradient(180deg, #dfefff 0%, #f4fbf7 100%);
  }

  .app-shell {
    padding: 12px 0 28px;
  }

  .device-shell {
    width: min(100vw, 430px);
    height: calc(100dvh - 24px);
    min-height: calc(100dvh - 24px);
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(21, 71, 113, 0.06),
      0 36px 82px rgba(15, 55, 92, 0.14);
  }

  .device-screen {
    min-height: calc(100dvh - 24px);
  }

  .tab-bar {
    left: 50%;
    right: auto;
    bottom: 12px;
    width: calc(((100% - 24px) * 0.6667) + 20px);
  }

  .modal-overlay,
  .modal-screen {
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  .energy-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid,
  .profile-journal-grid,
  .world-grid,
  .identity-entry-editor__body,
  .pet-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .journal-launch__text,
  .mindfulness-quote,
  .composer-prompt,
  .qa-header h2 {
    font-size: 24px;
  }
}
