:root {
  color: #263047;
  background: #eef3f8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

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

html {
  width: 100%;
  height: 100%;
  min-width: 320px;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #eef3f8;
  overscroll-behavior: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

button,
input,
textarea,
select {
  font: inherit;
  user-select: text;
  -webkit-user-select: text;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  position: relative;
  width: min(430px, 100vw);
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #fff7fb 62%, #fff7fb 100%);
  box-shadow: 0 0 0 1px rgba(38, 48, 71, 0.08), 0 24px 80px rgba(38, 48, 71, 0.18);
}

.screen {
  min-height: 100vh;
  padding: 14px 14px 104px;
}

.top-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 2px 16px;
}

.top-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.small-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #effaf3;
  color: #176a58;
  font-size: 13px;
  font-weight: 800;
}

.card {
  border: 1px solid rgba(76, 83, 112, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(48, 36, 86, 0.08);
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 850;
}

.primary {
  background: #263047;
  color: #fff;
}

.secondary {
  border: 1px solid rgba(38, 48, 71, 0.16);
  background: #fff;
  color: #263047;
}

.section-title {
  margin: 22px 2px 12px;
  font-size: 19px;
  font-weight: 900;
}

.tabbar {
  position: fixed;
  right: calc((100vw - min(430px, 100vw)) / 2 + 14px);
  bottom: 14px;
  left: calc((100vw - min(430px, 100vw)) / 2 + 14px);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 72px;
  padding: 7px;
  border: 1px solid #000;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 16px;
  background: transparent;
  color: #000;
  font-size: 13px;
  font-weight: 850;
}

.tab .tab-head {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transition: transform 160ms ease;
}

.tab-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tab.active {
  color: #000;
}

.tab.active .tab-head {
  transform: translateY(-3px) scale(1.08);
}

.home-hero {
  position: relative;
  min-height: 432px;
  padding: 12px 4px 0;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  background: #f8fbff;
}

.home-hero.with-carousel {
  background: #21162c;
}

.home-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-carousel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 255, 0.2) 0%, rgba(255, 248, 255, 0.04) 52%, rgba(255, 247, 251, 0.16) 100%);
  content: "";
}

.home-carousel::before {
  position: absolute;
  inset: -18%;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 62%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 33% 76%, rgba(255, 255, 255, 0.46) 0 1px, transparent 2px);
  content: "";
  pointer-events: none;
  animation: homeStars 3.8s ease-in-out infinite alternate;
}

.home-carousel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-carousel-video {
  opacity: 0;
}

.home-carousel-still {
  opacity: 1;
  transform-origin: center;
  animation: homeDrift 7.5s ease-in-out infinite alternate;
}

.home-carousel.is-video .home-carousel-video {
  opacity: 1;
}

.home-carousel.is-video .home-carousel-still {
  opacity: 0;
}

.home-carousel.is-still .home-carousel-video {
  opacity: 0;
}

.home-carousel.is-still .home-carousel-still {
  opacity: 1;
}

.home-sparkle {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  animation: homeSparkle 2.8s ease-in-out infinite;
}

.home-sparkle.h1 {
  top: 18%;
  left: 63%;
}

.home-sparkle.h2 {
  top: 42%;
  left: 17%;
  animation-delay: 0.7s;
}

.home-sparkle.h3 {
  top: 68%;
  right: 20%;
  animation-delay: 1.2s;
}

.home-hero > :not(.home-carousel) {
  position: relative;
  z-index: 1;
}

.home-hero.with-carousel .pet-name,
.home-hero.with-carousel .profile-line {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.72);
}

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

.avatar {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 3px solid rgba(134, 116, 146, 0.34);
  border-radius: 50%;
  background: #fde2ea;
  object-fit: cover;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.vip-badge {
  position: absolute;
  right: -6px;
  bottom: 2px;
  min-width: 34px;
  padding: 3px 6px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
}

.pet-name {
  display: block;
  font-size: 29px;
  font-weight: 950;
  color: #111936;
}

.profile-line {
  display: block;
  max-width: 285px;
  margin-top: 4px;
  overflow: hidden;
  color: #727a8f;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mood-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 22px;
  background: rgba(144, 128, 156, 0.72);
  color: #fff;
}

.mood-card strong {
  display: block;
  font-size: 22px;
}

.kitty-main {
  display: block;
  width: 100%;
  height: 300px;
  margin-top: -4px;
  object-fit: contain;
}

.status-card {
  margin-top: -8px;
  padding: 16px 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-title {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.stat-value {
  display: block;
  margin: 7px 0;
  color: #77556b;
  font-size: 12px;
  text-align: center;
}

.bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #f1e6e8;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.level-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(58, 49, 69, 0.1);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.level-row div {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature {
  display: flex;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border-radius: 14px;
  color: #263047;
  text-align: left;
}

.feature b {
  display: block;
  font-size: 18px;
}

.feature small {
  display: block;
  margin-top: 5px;
  color: #677089;
  line-height: 1.35;
}

.feature-icon {
  flex: 0 0 40px;
  font-size: 30px;
  font-weight: 950;
}

.blue {
  background: #e9f7ff;
}

.pink {
  background: #fff0f5;
}

.violet {
  background: #f0ecff;
}

.green {
  background: #effaf3;
}

.growth-cat {
  width: 100%;
  height: 310px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.growth-cat.is-juvenile {
  object-fit: cover;
  object-position: center 60%;
}

.growth-hero {
  padding: 16px;
  text-align: center;
}

.stage {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 950;
}

.persona {
  display: block;
  margin-top: 4px;
  color: #647087;
  font-size: 14px;
}

.next-stage {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #effaf3;
  color: #176a58;
  font-size: 13px;
  font-weight: 850;
}

.care-card,
.entertainment-card,
.mbti-card,
.timeline,
.tarot-box,
.summary-box,
.profile-card,
.astro-card,
.zodiac-card,
.chat-head {
  padding: 16px;
}

.entertainment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.entertainment-card > div {
  min-width: 0;
}

.entertainment-card b,
.entertainment-card small {
  display: block;
}

.entertainment-card b {
  margin-top: 7px;
  font-size: 20px;
  font-weight: 950;
}

.entertainment-card small {
  margin-top: 5px;
  color: #677089;
  line-height: 1.45;
}

.game-modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  padding: 10px;
  overflow: hidden;
  background: rgba(238, 243, 248, 0.96);
  touch-action: none;
}

.game-modal-panel {
  position: relative;
  width: min(100%, 430px);
  height: min(100%, 760px);
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  border: 1px solid #000;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(38, 48, 71, 0.18);
  touch-action: none;
}

.game-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  touch-action: none;
}

.game-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #000;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #000;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.game-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.summary-box p,
.card-guide {
  white-space: pre-line;
}

.care-head,
.mbti-card,
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.care-head strong,
.mbti-type {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.care-head small,
.mbti-title,
.branch-copy {
  display: block;
  margin-top: 5px;
  color: #737b92;
  line-height: 1.45;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.action {
  min-height: 86px;
  padding: 10px 6px;
  border: 1px solid rgba(38, 48, 71, 0.1);
  border-radius: 12px;
  background: #fff;
}

.action.done {
  background: #effaf3;
  color: #176a58;
}

.action b,
.action small {
  display: block;
}

.action b {
  font-size: 14px;
}

.action small {
  margin-top: 6px;
  color: #737b92;
  font-size: 11px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.branch {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(38, 48, 71, 0.1);
  border-radius: 12px;
  background: #fff;
}

.branch.active {
  background: #263047;
  color: #fff;
}

.branch b,
.branch small {
  display: block;
}

.branch small {
  margin-top: 6px;
  color: #737b92;
  line-height: 1.35;
}

.branch.active small {
  color: rgba(255, 255, 255, 0.72);
}

.points-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.points-card small,
.points-card strong {
  display: block;
}

.points-card small {
  color: #737b92;
  font-size: 12px;
  font-weight: 800;
}

.points-card strong {
  margin-top: 2px;
  font-size: 30px;
  line-height: 1;
}

.points-card span {
  max-width: 52%;
  color: #737b92;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
}

.milestone {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  min-height: 72px;
  color: #8a90a0;
}

.dot {
  width: 20px;
  height: 20px;
  border: 4px solid #dce1eb;
  border-radius: 50%;
  background: #fff;
}

.milestone.active {
  color: #263047;
}

.milestone.active .dot {
  border-color: #263047;
  background: #ffe3ef;
}

.spread-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.spread {
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(38, 48, 71, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #263047;
  text-align: left;
}

.spread.active {
  background: #263047;
  color: #fff;
}

.spread b,
.spread small {
  display: block;
}

.spread small {
  margin-top: 5px;
  color: #737b92;
}

.spread.active small {
  color: rgba(255, 255, 255, 0.72);
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(38, 48, 71, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #263047;
  outline: 0;
}

textarea {
  min-height: 116px;
  margin: 14px 0;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

.shuffle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  color: #505a73;
}

.deck {
  position: relative;
  width: 80px;
  height: 100px;
}

.deck i {
  position: absolute;
  top: 8px;
  left: 18px;
  width: 52px;
  height: 76px;
  border-radius: 9px;
  background: linear-gradient(160deg, #2a2342, #7055a6);
  box-shadow: 0 10px 20px rgba(48, 36, 86, 0.18);
}

.deck i:nth-child(1) {
  transform: rotate(-12deg) translateX(-10px);
}

.deck i:nth-child(2) {
  transform: rotate(3deg);
}

.deck i:nth-child(3) {
  transform: rotate(14deg) translateX(10px);
}

.reading-cards {
  display: grid;
  gap: 10px;
}

.tarot-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: start;
}

.card-art-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card-art-image {
  width: 108px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.tarot-card.reversed .card-art-image {
  transform: rotate(180deg);
}

.card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-height: 154px;
  padding-top: 4px;
}

.card-position {
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.card-copy strong {
  color: #111;
  font-size: 24px;
  line-height: 1.2;
}

.card-orientation {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.card-keyword {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.card-guide {
  color: #333;
  font-size: 13px;
  line-height: 1.7;
}

.usage-hint {
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  text-align: center;
}

.history-item {
  margin-top: 8px;
  padding: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #465067;
  font-size: 14px;
  font-weight: 850;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-grid {
  display: grid;
  gap: 10px;
}

.placement,
.fortune-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(38, 48, 71, 0.08);
}

.astro-svg {
  display: block;
  width: min(330px, 100%);
  margin: 8px auto 14px;
}

.zodiac-ring {
  fill: #fff7fb;
  stroke: rgba(38, 48, 71, 0.18);
  stroke-width: 2;
}

.inner-ring {
  fill: none;
  stroke: rgba(38, 48, 71, 0.12);
  stroke-width: 1;
}

.inner-ring.soft {
  stroke: rgba(113, 85, 166, 0.2);
}

.house-line {
  stroke: rgba(38, 48, 71, 0.1);
  stroke-width: 1;
}

.aspect {
  stroke: rgba(113, 85, 166, 0.32);
  stroke-width: 1.2;
}

.aspect-1 {
  stroke: rgba(95, 185, 92, 0.28);
}

.aspect-2 {
  stroke: rgba(244, 84, 162, 0.24);
}

.zodiac-text {
  fill: #4c3d70;
  font-size: 18px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.planet-dot,
.chart-core {
  fill: #263047;
}

.planet-label,
.core-sign,
.core-label {
  fill: #fff;
  text-anchor: middle;
  font-weight: 800;
}

.planet-label {
  font-size: 12px;
}

.core-sign {
  font-size: 21px;
}

.core-label {
  font-size: 10px;
}

.placement:last-child,
.fortune-row:last-child {
  border-bottom: 0;
}

.periods {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 12px 0;
}

.period {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 36px;
  border: 1px solid rgba(38, 48, 71, 0.12);
  border-radius: 12px;
  background: #fff;
}

.period.active {
  background: #263047;
  color: #fff;
}

.mbti-list {
  display: grid;
  gap: 10px;
}

.mbti-question {
  padding: 12px;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.axis-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  color: #737b92;
  font-size: 12px;
  line-height: 1.4;
}

.axis-pair span {
  padding: 8px;
  border-radius: 10px;
  background: #f8fbff;
}

.answer {
  min-height: 52px;
  padding: 8px;
  border: 1px solid rgba(38, 48, 71, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #4c556f;
  text-align: left;
}

.answer.active {
  background: #263047;
  color: #fff;
}

.chat-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.msg {
  max-width: 84%;
  padding: 11px 13px;
  border-radius: 14px;
  line-height: 1.55;
}

.msg.cat {
  background: #fff;
  box-shadow: 0 10px 24px rgba(48, 36, 86, 0.08);
}

.msg.user {
  justify-self: end;
  background: #263047;
  color: #fff;
}

.chat-compose {
  position: sticky;
  bottom: 88px;
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 8px;
  margin-top: 16px;
}

.toast {
  position: fixed;
  right: calc((100vw - min(430px, 100vw)) / 2 + 26px);
  bottom: 102px;
  left: calc((100vw - min(430px, 100vw)) / 2 + 26px);
  z-index: 50;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(38, 48, 71, 0.92);
  color: #fff;
  text-align: center;
}

.toast.show {
  display: block;
}

.loading-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(5px);
}

.loading-card {
  display: grid;
  place-items: center;
  width: min(300px, 82vw);
  gap: 10px;
  text-align: center;
}

.loading-card strong,
.loading-card small {
  display: block;
}

.loading-card strong {
  font-size: 18px;
}

.loading-card small {
  color: #737b92;
  font-size: 12px;
  font-weight: 750;
}

.loading-orbit {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid #000;
  border-radius: 50%;
  animation: loadingSpin 1.2s linear infinite;
}

.loading-orbit i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
}

.loading-orbit i:nth-child(1) {
  top: -5px;
  left: 22px;
}

.loading-orbit i:nth-child(2) {
  right: 2px;
  bottom: 7px;
}

.loading-orbit i:nth-child(3) {
  bottom: 7px;
  left: 2px;
}

.opening-screen {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.opening-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.opening-art::before,
.opening-art::after {
  position: absolute;
  inset: -12%;
  content: "";
  pointer-events: none;
}

.opening-art::before {
  background:
    radial-gradient(circle at 26% 28%, rgba(0, 0, 0, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 24%, rgba(0, 0, 0, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 72%, rgba(0, 0, 0, 0.11) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 68%, rgba(0, 0, 0, 0.1) 0 2px, transparent 3px);
  animation: openingTwinkle 2.6s ease-in-out infinite alternate;
}

.opening-art::after {
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 40%, rgba(255, 255, 255, 0.58) 58%, transparent 72%);
  animation: openingGlow 2.8s ease-in-out infinite alternate;
}

.opening-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  animation: openingPoster 2.2s ease-in-out infinite alternate;
}

.opening-star {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  background: #000;
  clip-path: polygon(50% 0, 62% 37%, 100% 50%, 62% 63%, 50% 100%, 38% 63%, 0 50%, 38% 37%);
  animation: openingStar 2s ease-in-out infinite;
}

.opening-star.s1 {
  top: 22%;
  left: 22%;
}

.opening-star.s2 {
  top: 32%;
  right: 18%;
  animation-delay: 0.5s;
}

.opening-star.s3 {
  right: 28%;
  bottom: 28%;
  animation-delay: 1s;
}

.opening-loader {
  position: absolute;
  right: 26px;
  bottom: 48px;
  left: 26px;
  z-index: 2;
  display: grid;
  gap: 8px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.opening-loader-label,
.opening-loader small {
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.opening-progress {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.opening-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #000;
  transition: width 0.18s ease;
}

@keyframes homeDrift {
  from {
    transform: scale(1.015) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.055) translate3d(1.5%, 1%, 0);
  }
}

@keyframes homeStars {
  from {
    opacity: 0.35;
    transform: translate3d(-1%, 0, 0);
  }
  to {
    opacity: 0.85;
    transform: translate3d(1%, -1%, 0);
  }
}

@keyframes homeSparkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.55);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes openingPoster {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@keyframes openingTwinkle {
  from {
    opacity: 0.36;
    transform: translate3d(-1%, -1%, 0);
  }
  to {
    opacity: 0.78;
    transform: translate3d(1%, 1%, 0);
  }
}

@keyframes openingGlow {
  from {
    opacity: 0.22;
    transform: scale(0.94);
  }
  to {
    opacity: 0.58;
    transform: scale(1.06);
  }
}

@keyframes openingStar {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7);
  }
  50% {
    opacity: 0.9;
    transform: rotate(45deg) scale(1.25);
  }
}

body,
.app,
.screen,
.home-page,
.home-hero,
.card,
.status-card,
.feature,
.feature.blue,
.feature.pink,
.feature.violet,
.feature.green,
.profile-card,
.zodiac-card,
.fortune-card,
.tarot-box,
.tarot-card,
.history-item,
.question-card,
.mbti-question,
.test-head,
.chat-head,
.msg.cat,
.axis-pair span,
.period,
.spread,
.answer,
input,
textarea,
select {
  border-color: #000 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.home-hero.with-carousel,
.home-carousel,
.home-carousel::after {
  background: transparent !important;
}

.primary,
.mood-card,
.stage-pill,
.period.active,
.spread.active,
.answer.active,
.msg.user,
.chart-core,
.planet-dot,
.wheel-core,
.primary-button {
  border-color: #000 !important;
  background: #000 !important;
  color: #fff !important;
}

.secondary,
.tabbar,
.bar,
.level-row,
.small-pill,
.pill,
.dimension-bar {
  border-color: #000 !important;
  background: #f2f2f2 !important;
  color: #000 !important;
  box-shadow: none !important;
}

.bar i,
.dimension-fill {
  background: #000 !important;
}

.feature-icon,
.pet-name,
.section-title,
.tab,
.tab .tab-head,
.tab.active,
.tab.active .tab-head,
.stat-title,
.stat-value,
.profile-line,
.muted,
.feature small,
.card-guide,
.basis,
.lucky-label,
.planet-label,
.zodiac-text,
.core-sign,
.core-label {
  color: #000 !important;
  fill: #000 !important;
}

.tab .tab-head,
.tab.active .tab-head {
  border-color: transparent !important;
  background: transparent !important;
  color: #000 !important;
}

.tab.active .tab-head {
  border-color: transparent !important;
}

.zodiac-ring,
.inner-ring {
  fill: #fff !important;
  stroke: #000 !important;
}

.house-line,
.aspect,
.aspect-0,
.aspect-1,
.aspect-2 {
  stroke: #000 !important;
}

.tabbar {
  border-color: #000 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tab,
.tab .tab-head {
  color: #000 !important;
  fill: #000 !important;
}

.tab.active {
  color: #000 !important;
  fill: #000 !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.48);
}

.account-modal,
.member-modal {
  position: relative;
  width: min(390px, 100%);
  padding: 22px;
  color: #000;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}

.account-tabs button {
  min-height: 42px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 900;
}

.account-tabs button.active {
  background: #000;
  color: #fff;
}

/* web-release-31 final overrides: keep these rules last */
:root {
  --star-bg: #030303;
  --star-panel: #f7f0e6;
  --star-panel-2: #fffaf2;
  --star-ink: #070707;
  --star-muted: #5b5b5b;
  --star-gold: #f4c56a;
}

html,
body,
.app,
.reference-screen,
.app.page-home {
  background: #030303 !important;
}

.app {
  color: var(--star-ink) !important;
  box-shadow: none !important;
}

.screen:not(.reference-screen) {
  padding: 18px 16px 112px !important;
  color: var(--star-ink) !important;
}

.top-title h1,
.section-title {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(255, 225, 171, 0.16) !important;
}

.top-title > .secondary {
  border: 1px solid rgba(247, 240, 230, 0.42) !important;
  background: rgba(247, 240, 230, 0.94) !important;
  color: #000 !important;
}

.card,
.profile-card,
.task-card,
.outfit-card,
.member-status-card,
.points-wallet,
.entertainment-card,
.care-card,
.mbti-card,
.timeline,
.astro-card,
.zodiac-card,
.tarot-box,
.summary-box,
.history-item,
.mbti-question,
.fortune-card,
.locked-card,
.chat-head,
.chat-compose,
.msg,
.reading-cards .tarot-card,
.feature,
.screen:not(.home-screen) .feature,
.action,
.branch,
.spread,
.answer,
.task-item,
.calendar-day,
.period,
.zodiac-score,
.placement,
.fortune-row {
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(241, 231, 218, 0.96)) !important;
  color: var(--star-ink) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.card *,
.profile-card *,
.task-card *,
.outfit-card *,
.member-status-card *,
.points-wallet *,
.entertainment-card *,
.care-card *,
.mbti-card *,
.timeline *,
.astro-card *,
.zodiac-card *,
.tarot-box *,
.summary-box *,
.history-item *,
.mbti-question *,
.fortune-card *,
.locked-card *,
.feature *,
.action *,
.branch *,
.spread *,
.answer *,
.task-item *,
.calendar-day *,
.period *,
.zodiac-score *,
.placement *,
.fortune-row * {
  color: inherit;
}

.card p,
.card small,
.task-card p,
.locked-card p,
.summary-box p,
.astro-card p,
.zodiac-card p,
.tarot-box p,
.history-item p,
.profile-card small,
.care-head small,
.entertainment-card small,
.mbti-title,
.branch-copy,
.feature small,
.member-status-card span,
.points-wallet span,
.placement small,
.fortune-row small,
.card-keyword,
.usage-hint,
.profile-line,
.action small,
.branch small,
.spread small,
.answer small,
.task-item small {
  color: var(--star-muted) !important;
}

.growth-hero {
  overflow: hidden !important;
  padding: 0 0 20px !important;
  background: #070707 !important;
  color: #fff !important;
}

.growth-hero .growth-cat {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  border-radius: 22px 22px 0 0 !important;
}

.growth-hero .stage,
.growth-hero .persona,
.growth-hero small,
.growth-hero .next-stage {
  color: #fff !important;
}

.primary {
  border: 1px solid #000 !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24) !important;
}

.secondary {
  border: 1px solid #000 !important;
  background: rgba(255, 250, 242, 0.86) !important;
  color: #000 !important;
}

.field label {
  color: #000 !important;
}

.field input,
.field select,
textarea,
.chat-compose input {
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  background: #fffaf2 !important;
  color: #000 !important;
}

.bar {
  background: rgba(0, 0, 0, 0.08) !important;
}

.bar i {
  background: #000 !important;
}

.feature-icon,
.game-mark {
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.05) !important;
}

.feature-arrow {
  border-color: rgba(0, 0, 0, 0.18) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: #000 !important;
}

.chat-compose {
  left: calc((100vw - min(430px, 100vw)) / 2 + 16px) !important;
  right: calc((100vw - min(430px, 100vw)) / 2 + 16px) !important;
  bottom: 92px !important;
  padding: 8px !important;
}

.chat-compose .primary {
  min-width: 72px !important;
  padding: 0 12px !important;
}

.msg.user {
  background: #000 !important;
  color: #fff !important;
}

.msg.user * {
  color: #fff !important;
}

.tabbar,
.app.page-home .tabbar {
  left: calc((100vw - min(430px, 100vw)) / 2 + 18px) !important;
  right: calc((100vw - min(430px, 100vw)) / 2 + 18px) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  z-index: 80 !important;
  height: 82px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  border-radius: 30px !important;
  background: rgba(250, 244, 235, 0.96) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  gap: 0 !important;
  border-radius: 22px !important;
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab::before {
  position: absolute;
  inset: 6px 10px 8px;
  z-index: -1;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(244, 197, 106, 0.42), transparent 68%);
  opacity: 0;
  content: "";
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tab .tab-head {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab-icon-img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
}

.tab.active::before {
  opacity: 1;
  transform: scale(1);
  animation: tabGlowPulse 1.9s ease-in-out infinite;
}

.tab.active .tab-head {
  transform: translateY(-5px) scale(1.14) !important;
  box-shadow: none !important;
}

.tab.active .tab-icon-img {
  filter: drop-shadow(0 0 8px rgba(244, 197, 106, 0.78)) drop-shadow(0 0 16px rgba(169, 133, 255, 0.34));
}

.reference-art {
  padding-bottom: 88px !important;
  object-fit: cover !important;
}

.reference-zone:active {
  background: rgba(244, 197, 106, 0.18) !important;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.18);
}

.account-backdrop {
  background: rgba(255, 255, 255, 0.72) !important;
}

.account-modal.card,
.account-modal {
  background: #fff !important;
  color: #000 !important;
}

.account-modal h2,
.account-modal p,
.account-modal .field label,
.account-modal .field input {
  color: #000 !important;
}

@keyframes tabGlowPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* web-release-32: rollback non-feature pages to black-white UI */
.app.page-home,
.app.page-growth,
.app.page-chat,
.app.page-profile {
  background: #f6f6f6 !important;
  color: #000 !important;
}

.app.page-home .screen,
.app.page-growth .screen,
.app.page-chat .screen,
.app.page-profile .screen {
  color: #000 !important;
}

.app.page-home .top-title h1,
.app.page-growth .top-title h1,
.app.page-chat .top-title h1,
.app.page-profile .top-title h1,
.app.page-home .section-title,
.app.page-growth .section-title,
.app.page-chat .section-title,
.app.page-profile .section-title {
  color: #000 !important;
  text-shadow: none !important;
}

.app.page-home .section-title::after,
.app.page-growth .section-title::after,
.app.page-chat .section-title::after,
.app.page-profile .section-title::after {
  color: #000 !important;
}

.app.page-home .card,
.app.page-home .status-card,
.app.page-home .feature,
.app.page-growth .card,
.app.page-growth .care-card,
.app.page-growth .entertainment-card,
.app.page-growth .mbti-card,
.app.page-growth .timeline,
.app.page-growth .branch,
.app.page-growth .action,
.app.page-chat .card,
.app.page-chat .chat-head,
.app.page-chat .msg,
.app.page-chat .chat-compose,
.app.page-profile .card,
.app.page-profile .profile-card,
.app.page-profile .member-status-card,
.app.page-profile .points-wallet,
.app.page-profile .feature {
  border: 1px solid #000 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.app.page-home .feature,
.app.page-profile .feature {
  min-height: 104px !important;
}

.app.page-home .card *,
.app.page-home .feature *,
.app.page-growth .card *,
.app.page-growth .entertainment-card *,
.app.page-growth .branch *,
.app.page-growth .action *,
.app.page-chat .card *,
.app.page-chat .msg *,
.app.page-profile .card *,
.app.page-profile .feature * {
  color: inherit;
}

.app.page-home .card small,
.app.page-home .feature small,
.app.page-growth .card small,
.app.page-growth .entertainment-card small,
.app.page-growth .branch small,
.app.page-growth .action small,
.app.page-chat .chat-head small,
.app.page-chat .msg small,
.app.page-profile .card small,
.app.page-profile .feature small,
.app.page-profile .profile-line {
  color: #687083 !important;
}

.app.page-home .home-hero {
  min-height: 430px !important;
  border: 1px solid #000 !important;
  border-radius: 0 0 22px 22px !important;
  background: #000 !important;
  box-shadow: none !important;
}

.app.page-home .home-carousel-media {
  object-fit: cover !important;
  object-position: center center !important;
}

.app.page-home .home-profile .avatar,
.app.page-profile .avatar {
  border: 1px solid #000 !important;
  background: #fff !important;
}

.app.page-home .pet-name,
.app.page-home .profile-line,
.app.page-home .profile-chip {
  color: #000 !important;
}

.app.page-home .home-profile {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.app.page-home .mood-card {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}

.app.page-growth .growth-hero {
  overflow: hidden !important;
  padding: 0 0 20px !important;
  border: 1px solid #000 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.app.page-growth .growth-hero .stage,
.app.page-growth .growth-hero .persona,
.app.page-growth .growth-hero small,
.app.page-growth .growth-hero .next-stage {
  color: #000 !important;
}

.app.page-growth .growth-hero .growth-cat {
  border-radius: 14px 14px 0 0 !important;
}

.app.page-home .bar,
.app.page-growth .bar,
.app.page-profile .bar {
  background: #e9e9e9 !important;
}

.app.page-home .bar i,
.app.page-growth .bar i,
.app.page-profile .bar i {
  background: #000 !important;
}

.app.page-home .feature-icon,
.app.page-growth .game-mark,
.app.page-profile .feature-icon {
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.app.page-home .primary,
.app.page-growth .primary,
.app.page-chat .primary,
.app.page-profile .primary {
  border: 1px solid #000 !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.app.page-home .secondary,
.app.page-growth .secondary,
.app.page-chat .secondary,
.app.page-profile .secondary,
.app.page-profile .top-title > .secondary {
  border: 1px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.app.page-profile .field label {
  color: #000 !important;
}

.app.page-profile .field input,
.app.page-profile .field select,
.app.page-chat .chat-compose input {
  border: 1px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
}

.app.page-chat .msg.user {
  background: #000 !important;
  color: #fff !important;
}

.app.page-chat .msg.user * {
  color: #fff !important;
}

.app.page-home .tabbar,
.app.page-growth .tabbar,
.app.page-chat .tabbar,
.app.page-profile .tabbar {
  border: 1px solid #000 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.app.page-home .tab::before,
.app.page-growth .tab::before,
.app.page-chat .tab::before,
.app.page-profile .tab::before {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.14), transparent 68%) !important;
}

.app.page-home .tab.active .tab-icon-img,
.app.page-growth .tab.active .tab-icon-img,
.app.page-chat .tab.active .tab-icon-img,
.app.page-profile .tab.active .tab-icon-img {
  filter: grayscale(1) contrast(1.15) brightness(0.72) drop-shadow(0 0 8px rgba(0, 0, 0, 0.28)) !important;
}

/* web-release-31: black stage + cream functional panels */
:root {
  --star-bg: #030303;
  --star-panel: #f7f0e6;
  --star-panel-2: #fffaf2;
  --star-ink: #070707;
  --star-muted: #5b5b5b;
  --star-line: rgba(246, 229, 207, 0.72);
  --star-gold: #f4c56a;
  --star-purple: #a985ff;
  color: var(--star-ink);
  background: var(--star-bg);
}

html,
body {
  background: var(--star-bg) !important;
}

.app {
  color: var(--star-ink) !important;
  background:
    radial-gradient(circle at 75% -4%, rgba(173, 135, 255, 0.22), transparent 26%),
    radial-gradient(circle at 18% 8%, rgba(244, 197, 106, 0.11), transparent 24%),
    #030303 !important;
  box-shadow: none !important;
}

.screen:not(.reference-screen) {
  padding: 18px 16px 112px !important;
  color: var(--star-ink) !important;
}

.top-title {
  margin: 2px 0 18px !important;
  min-height: 42px !important;
}

.top-title h1,
.section-title {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(255, 225, 171, 0.16) !important;
}

.section-title {
  margin: 24px 2px 14px !important;
  font-size: 24px !important;
}

.section-title::after {
  color: var(--star-gold) !important;
}

.top-title > .secondary {
  border: 1px solid rgba(247, 240, 230, 0.42) !important;
  background: rgba(247, 240, 230, 0.94) !important;
  color: #000 !important;
}

.top-title > .small-pill {
  display: none !important;
}

.card,
.profile-card,
.task-card,
.outfit-card,
.member-status-card,
.points-wallet,
.entertainment-card,
.care-card,
.mbti-card,
.timeline,
.astro-card,
.zodiac-card,
.tarot-box,
.summary-box,
.history-item,
.mbti-question,
.fortune-card,
.locked-card,
.chat-head,
.chat-compose,
.msg,
.reading-cards .tarot-card {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.97), rgba(241, 231, 218, 0.96)) !important;
  color: var(--star-ink) !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.card h2,
.card h3,
.profile-card h2,
.task-card h2,
.locked-card h2,
.astro-card h2,
.zodiac-card h2,
.tarot-box h2,
.mbti-question h3,
.member-status-card strong,
.points-wallet strong,
.entertainment-card b,
.mbti-card b,
.feature b,
.tarot-card strong,
.placement b,
.fortune-row b,
.action b,
.branch b,
.spread b,
.answer b,
.task-item b,
.profile-identity .pet-name,
.profile-identity .profile-line,
.stat-title,
.stat-value {
  color: var(--star-ink) !important;
}

.card p,
.task-card p,
.locked-card p,
.summary-box p,
.astro-card p,
.zodiac-card p,
.tarot-box p,
.history-item p,
.profile-card small,
.care-head small,
.entertainment-card small,
.mbti-title,
.branch-copy,
.feature small,
.member-status-card span,
.points-wallet span,
.placement small,
.fortune-row small,
.card-keyword,
.usage-hint,
.profile-line,
.action small,
.branch small,
.spread small,
.answer small,
.task-item small {
  color: var(--star-muted) !important;
}

.profile-hero-card,
.member-status-card,
.points-wallet {
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 197, 106, 0.20), transparent 26%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(238, 226, 211, 0.96)) !important;
}

.growth-hero {
  overflow: hidden !important;
  padding: 0 0 20px !important;
  background: #070707 !important;
  color: #fff !important;
}

.growth-hero .growth-cat {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  border-radius: 22px 22px 0 0 !important;
}

.growth-hero .stage,
.growth-hero .persona,
.growth-hero small,
.growth-hero .next-stage {
  color: #fff !important;
}

.growth-hero .bar {
  margin-left: 26px !important;
  margin-right: 26px !important;
}

.care-card .stats,
.status-card .stats {
  gap: 14px !important;
}

.stats > div,
.home-status .stats > div {
  color: var(--star-ink) !important;
}

.bar {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08) !important;
}

.bar i {
  background: #000 !important;
}

.primary {
  border: 1px solid #000 !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24) !important;
}

.secondary {
  border: 1px solid #000 !important;
  background: rgba(255, 250, 242, 0.86) !important;
  color: #000 !important;
}

.field label {
  color: #000 !important;
}

.field input,
.field select,
textarea,
.chat-compose input {
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  background: #fffaf2 !important;
  color: #000 !important;
}

.feature-grid {
  gap: 12px !important;
}

.feature,
.screen:not(.home-screen) .feature,
.entertainment-card,
.mbti-card,
.action,
.branch,
.spread,
.answer,
.task-item,
.calendar-day,
.period,
.zodiac-score,
.placement,
.fortune-row {
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(241, 231, 218, 0.96)) !important;
  color: #000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.feature:active,
.entertainment-card:active,
.action:active,
.spread:active,
.answer:active,
.period:active,
.tab:active {
  transform: translateY(1px) scale(0.985);
}

.feature-icon,
.game-mark {
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.05) !important;
}

.feature-arrow {
  border-color: rgba(0, 0, 0, 0.18) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  color: #000 !important;
}

.action.done,
.branch.active,
.spread.active,
.answer.active,
.period.active,
.calendar-day.today {
  border-color: rgba(0, 0, 0, 0.28) !important;
  background:
    radial-gradient(circle at 80% 16%, rgba(244, 197, 106, 0.30), transparent 30%),
    #fffaf2 !important;
}

.chat-list {
  color: #000 !important;
}

.msg.user {
  background: #000 !important;
  color: #fff !important;
}

.msg.user * {
  color: #fff !important;
}

.chat-compose {
  left: calc((100vw - min(430px, 100vw)) / 2 + 16px) !important;
  right: calc((100vw - min(430px, 100vw)) / 2 + 16px) !important;
  bottom: 92px !important;
  padding: 8px !important;
}

.chat-compose .primary {
  min-width: 72px !important;
  padding: 0 12px !important;
}

.tabbar,
.app.page-home .tabbar {
  left: calc((100vw - min(430px, 100vw)) / 2 + 18px) !important;
  right: calc((100vw - min(430px, 100vw)) / 2 + 18px) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  z-index: 80 !important;
  height: 82px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  border-radius: 30px !important;
  background: rgba(250, 244, 235, 0.96) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  gap: 0 !important;
  border-radius: 22px !important;
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab::before {
  position: absolute;
  inset: 6px 10px 8px;
  z-index: -1;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(244, 197, 106, 0.42), transparent 68%);
  opacity: 0;
  content: "";
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tab .tab-head {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab-icon-img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
}

.tab.active {
  color: #000 !important;
}

.tab.active::before {
  opacity: 1;
  transform: scale(1);
  animation: tabGlowPulse 1.9s ease-in-out infinite;
}

.tab.active .tab-head {
  transform: translateY(-5px) scale(1.14) !important;
  box-shadow: none !important;
}

.tab.active .tab-icon-img {
  filter: drop-shadow(0 0 8px rgba(244, 197, 106, 0.78)) drop-shadow(0 0 16px rgba(169, 133, 255, 0.34));
}

.reference-screen {
  background: #030303 !important;
}

.app.page-home {
  background: #030303 !important;
}

.reference-art {
  padding-bottom: 88px !important;
  object-fit: cover !important;
}

.reference-zone:active {
  background: rgba(244, 197, 106, 0.18) !important;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.18);
}

.account-modal.card,
.account-modal {
  background: #fff !important;
  color: #000 !important;
}

.account-modal h2,
.account-modal p,
.account-modal .field label,
.account-modal .field input {
  color: #000 !important;
}

@keyframes tabGlowPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* exact reference composition */
.reference-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #030719;
}

.reference-art {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.reference-zone {
  position: absolute;
  z-index: 9;
  display: block;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: transparent;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.reference-zone:active {
  background: rgba(255, 231, 175, 0.10);
}

.app.page-home {
  max-width: min(430px, 100vw);
  padding: 0;
  background: #030719;
}

.app.page-home .tabbar {
  opacity: 0;
  pointer-events: auto;
  box-shadow: none;
}

.account-modal h2,
.member-modal h2,
.task-card h2,
.locked-card h2 {
  margin: 0 0 10px;
  color: #000;
  font-size: 22px;
  font-weight: 950;
}

.account-modal p,
.member-modal p,
.task-card p,
.locked-card p {
  margin: 0 0 16px;
  color: #454545;
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #000;
  font-size: 22px;
  font-weight: 900;
}

.member-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.member-benefits span {
  min-height: 40px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 850;
}

.pay-qr-box {
  display: grid;
  place-items: center;
  min-height: 188px;
  margin: 14px 0;
  border: 1px dashed #000;
  border-radius: 12px;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.pay-qr-box img {
  display: block;
  width: min(176px, 72vw);
  height: min(176px, 72vw);
  object-fit: contain;
}

.member-modal small {
  display: block;
  margin-top: 10px;
  color: #686868;
  line-height: 1.45;
}

.locked-card,
.task-card {
  padding: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-height: 43px;
  padding: 4px 2px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 850;
}

.calendar-day.today {
  border-color: #000;
  box-shadow: inset 0 0 0 1px #000;
}

.calendar-mood {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  margin-top: 3px;
  color: #000;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.completion-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid #000;
  border-radius: 50%;
}

.completion-dot.green {
  background: #4cc46a;
}

.completion-dot.yellow {
  background: #ffd45a;
}

.completion-dot.red {
  background: #ff5b5b;
}

.task-popup-list {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #e5e5e5;
}

.task-popup-list b {
  color: #000;
  font-size: 13px;
}

.task-popup-list span {
  color: #444;
  line-height: 1.45;
}

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

.task-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
}

.task-item input {
  width: 20px;
  height: 20px;
  accent-color: #000;
}

.task-item b,
.task-item small {
  display: block;
}

.task-item small {
  margin-top: 3px;
  color: #666;
  font-size: 12px;
}

.task-card h3 {
  margin: 18px 0 10px;
  color: #000;
  font-size: 18px;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.mood-option input {
  position: absolute;
  opacity: 0;
}

.mood-option span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 850;
}

.mood-option input:checked + span {
  background: #000;
  color: #fff;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 74px;
  margin-bottom: 12px;
  border: 1px dashed #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-weight: 900;
}

.upload-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ootd-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 10px 0;
  border: 1px solid #000;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.profile-dashboard {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.member-status-card,
.points-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.member-status-card small,
.member-status-card strong,
.member-status-card span,
.points-wallet small,
.points-wallet strong,
.points-wallet span {
  display: block;
}

.member-status-card small,
.points-wallet small {
  color: #606060;
  font-size: 12px;
  font-weight: 900;
}

.member-status-card strong,
.points-wallet strong {
  margin-top: 4px;
  color: #000;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}

.member-status-card span,
.points-wallet span {
  margin-top: 7px;
  color: #555;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.member-status-card b {
  display: grid;
  place-items: center;
  min-width: 70px;
  height: 70px;
  border: 1px solid #000;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.points-wallet {
  align-items: stretch;
}

.points-wallet > div {
  min-width: 0;
}

.points-wallet .primary {
  flex: 0 0 126px;
  min-height: 64px;
  padding: 0 12px;
  white-space: normal;
}

.points-wallet .primary:disabled,
.outfit-actions button:disabled {
  opacity: 0.52;
}

.outfit-card {
  padding: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.outfit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.outfit-head h2 {
  margin: 0;
  color: #000;
  font-size: 22px;
  font-weight: 950;
}

.outfit-head p {
  margin: 8px 0 0;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.outfit-head span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #f2f2f2;
  color: #000;
  font-size: 12px;
  font-weight: 950;
}

.dresser-layout {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 12px;
  align-items: stretch;
}

.dresser-stage {
  display: grid;
  place-items: center;
  min-height: 300px;
  border: 1px solid #000;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 24%, rgba(0, 0, 0, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 35%, rgba(0, 0, 0, 0.06) 0 1px, transparent 2px),
    linear-gradient(180deg, #fff 0%, #f4f4f4 100%);
}

.dresser-side {
  display: grid;
  gap: 8px;
}

.dresser-cat {
  min-height: 50px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 950;
}

.dresser-cat.active {
  background: #000;
  color: #fff;
}

.dress-kitty-image {
  position: relative;
  display: grid;
  place-items: center;
  width: min(276px, 100%);
  aspect-ratio: 512 / 640;
  transform: translateY(4px);
}

.outfit-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.layer-0 {
  z-index: 1;
}

.layer-1,
.layer-2,
.layer-3,
.layer-4,
.layer-5 {
  z-index: 2;
}

.outfit-summary {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #f6f6f6;
  color: #000;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.outfit-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.outfit-chip {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  text-align: left;
}

.outfit-chip b,
.outfit-chip small {
  display: block;
}

.outfit-chip b {
  font-size: 13px;
  line-height: 1.2;
}

.outfit-chip small {
  margin-top: 5px;
  color: #666;
  font-size: 10px;
  font-weight: 800;
}

.outfit-chip.active {
  background: #000;
  color: #fff;
}

.outfit-chip.active small {
  color: rgba(255, 255, 255, 0.72);
}

.outfit-chip.owned:not(.active) {
  background: #f8f8f8;
}

.outfit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.profile-card,
.task-card,
.outfit-card,
.member-status-card,
.points-wallet,
.entertainment-card,
.care-card,
.mbti-card,
.growth-hero,
.summary-box,
.astro-card,
.zodiac-card,
.tarot-box {
  border-radius: 18px !important;
}

.feature {
  min-height: 94px;
  border: 1px solid #000 !important;
  border-radius: 16px !important;
  transition: transform 140ms ease, background 140ms ease;
}

.feature:active,
.outfit-chip:active,
.dresser-cat:active,
.entertainment-card:active {
  transform: scale(0.985);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000 !important;
  font-size: 22px;
  line-height: 1;
}

.ootd-board-image {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #fff;
}

/* ui2026 theme: deep starfield + purple-gold glass assets */
body {
  background:
    radial-gradient(circle at 50% 0%, rgba(151, 89, 255, 0.22), transparent 32%),
    #070714;
}

.app {
  color: #fff6dc;
  background:
    linear-gradient(180deg, rgba(7, 7, 20, 0.18), rgba(7, 7, 20, 0.58)),
    url("./assets/ui2026/common/backgrounds/bg_starfield_mobile_1080x2160.png") center top / cover fixed,
    #070714;
  box-shadow: 0 0 0 1px rgba(255, 220, 157, 0.18), 0 24px 90px rgba(0, 0, 0, 0.58);
}

.screen { padding-top: 18px; }

.top-title,
.top-title h1,
.section-title {
  color: #fff7dc;
  text-shadow: 0 0 18px rgba(255, 219, 151, 0.26);
}

.card,
.feature,
.task-card,
.member-modal,
.account-modal,
.loading-card {
  border: 1px solid rgba(255, 220, 157, 0.22) !important;
  background:
    linear-gradient(150deg, rgba(43, 20, 82, 0.78), rgba(11, 10, 32, 0.84)),
    rgba(20, 14, 43, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(126, 71, 255, 0.10) !important;
  color: #fff7df;
}

.primary {
  border: 1px solid rgba(255, 230, 174, 0.34);
  background:
    linear-gradient(135deg, rgba(123, 57, 255, 0.98), rgba(69, 39, 168, 0.96)),
    url("./assets/ui2026/common/backgrounds/bg_primary_button_purple_star.png") center / cover !important;
  color: #fff7dd;
  box-shadow: 0 10px 24px rgba(91, 51, 221, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.secondary {
  border-color: rgba(255, 224, 169, 0.28);
  background: rgba(12, 9, 30, 0.72);
  color: #fff2cf;
}

.small-pill,
.usage-hint,
.persona,
.feature small,
.profile-line,
.stat-title,
.member-status-card small,
.points-wallet small,
.member-status-card span,
.points-wallet span,
.branch-copy,
.task-item small,
.calendar-mood,
.chat-head small,
.message time {
  color: rgba(244, 229, 255, 0.72) !important;
}

.small-pill {
  background: rgba(255, 221, 142, 0.12);
  border: 1px solid rgba(255, 221, 142, 0.22);
  color: #ffe9b8 !important;
}

.feature {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(70, 30, 132, 0.82), rgba(16, 12, 42, 0.92)) !important;
}

.feature::after,
.profile-card::after,
.growth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 18%, rgba(255, 220, 142, 0.20), transparent 34%);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 220, 157, 0.20) !important;
  border-radius: 18px;
  background: rgba(12, 8, 30, 0.5) !important;
  color: #ffd985 !important;
  font-size: 26px;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature b,
.stage,
.member-status-card strong,
.points-wallet strong {
  color: #ffe9b2;
}

.home-hero {
  border: 1px solid rgba(255, 220, 157, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.identity-row .avatar,
.profile-identity .avatar,
.chat-head .avatar {
  border: 1px solid rgba(255, 222, 156, 0.38);
  box-shadow: 0 0 18px rgba(255, 209, 122, 0.22);
}

.mood-card {
  background: rgba(9, 7, 24, 0.74);
  color: #fff4d6;
  border: 1px solid rgba(255, 221, 160, 0.20);
}

.status-card,
.care-card,
.mbti-card,
.timeline,
.profile-card,
.chat-head {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bar { background: rgba(255, 255, 255, 0.13); }

.bar i {
  background: linear-gradient(90deg, #f4d07d, #9061ff) !important;
  box-shadow: 0 0 12px rgba(255, 221, 138, 0.35);
}

.tabbar {
  border-color: rgba(255, 219, 151, 0.26);
  background: rgba(7, 6, 20, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab { color: rgba(242, 225, 255, 0.72); }
.tab.active { color: #ffe6aa; }
.tab-head { background: rgba(255, 255, 255, 0.04); }
.tab.active .tab-head {
  background: rgba(255, 220, 128, 0.12);
  box-shadow: 0 0 18px rgba(255, 218, 132, 0.20);
}
.tab-icon-img { filter: drop-shadow(0 0 8px rgba(255, 221, 156, 0.22)); }

.growth-cat {
  background: rgba(10, 8, 28, 0.64);
  border: 1px solid rgba(255, 220, 157, 0.18);
}

.next-stage {
  background: rgba(255, 221, 142, 0.12);
  color: #ffe9b8;
}

.action,
.task-item,
.calendar-day,
.spread,
.answer,
.branch,
.outfit-chip,
.history-item,
.placement,
.zodiac-score,
.fortune-card,
.field input,
.field select,
textarea {
  border-color: rgba(255, 220, 157, 0.20) !important;
  background: rgba(8, 7, 24, 0.56) !important;
  color: #fff7df !important;
}

input::placeholder,
textarea::placeholder { color: rgba(244, 229, 255, 0.42); }

.action.done,
.branch.active,
.answer.active,
.spread.active,
.calendar-day.today {
  background: linear-gradient(135deg, rgba(139, 89, 255, 0.72), rgba(255, 211, 123, 0.20)) !important;
  color: #fff7df !important;
}

.chat-head {
  background:
    linear-gradient(135deg, rgba(36, 20, 74, 0.86), rgba(12, 9, 32, 0.88)),
    url("./assets/ui2026/chat/chat_header_bg.png") center / cover !important;
}

.message.cat .bubble {
  background: linear-gradient(135deg, rgba(57, 31, 106, 0.86), rgba(13, 10, 34, 0.92));
  color: #fff4df;
  border: 1px solid rgba(255, 220, 157, 0.18);
}

.message.user .bubble {
  background: linear-gradient(135deg, rgba(130, 85, 255, 0.92), rgba(88, 48, 191, 0.96));
  color: #fff;
}

.composer {
  border-color: rgba(255, 220, 157, 0.24);
  background: rgba(7, 6, 20, 0.86);
}

.composer input {
  background: rgba(255, 255, 255, 0.08);
  color: #fff7df;
}

.profile-dashboard .member-status-card {
  background:
    linear-gradient(135deg, rgba(70, 32, 130, 0.82), rgba(12, 9, 31, 0.88)),
    url("./assets/ui2026/profile/member_card_bg.png") center / cover !important;
}

.profile-dashboard .points-wallet {
  background:
    linear-gradient(135deg, rgba(28, 18, 72, 0.86), rgba(10, 8, 28, 0.9)),
    url("./assets/ui2026/profile/points_card_bg.png") center / cover !important;
}

/* homepage reference layout */
.home-screen {
  padding: 0 18px 108px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 225, 153, 0.16), transparent 20%),
    radial-gradient(circle at 12% 26%, rgba(151, 91, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(4, 8, 26, 0.22), rgba(4, 8, 26, 0.72)),
    url("./assets/ui2026/common/backgrounds/bg_starfield_mobile_1080x2160.png") center top / cover;
}

.home-screen .home-hero {
  min-height: 500px;
  margin: 0 -18px;
  padding: 36px 18px 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 74% 36%, rgba(173, 117, 255, 0.20), transparent 28%),
    linear-gradient(180deg, rgba(5, 9, 29, 0.08), rgba(5, 9, 29, 0.52)) !important;
  box-shadow: none;
}

.home-screen .home-carousel {
  opacity: 0.38;
  mix-blend-mode: screen;
}

.home-screen .home-carousel::after {
  background: linear-gradient(180deg, rgba(4, 8, 26, 0.06), rgba(4, 8, 26, 0.70));
}

.home-profile {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 16px;
  width: 58%;
}

.home-profile .avatar {
  width: 96px;
  height: 96px;
  padding: 0;
  border: 2px solid rgba(255, 231, 175, 0.72);
  background: rgba(33, 20, 63, 0.56);
  box-shadow: 0 0 24px rgba(185, 118, 255, 0.42);
}

.home-profile-copy {
  min-width: 0;
}

.home-screen .pet-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff8e8;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 230, 160, 0.26);
}

.home-screen .pet-name i {
  color: #bd8dff;
  font-size: 18px;
  font-style: normal;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 16px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 7, 20, 0.46);
  color: rgba(255, 248, 234, 0.82);
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-chip span {
  font-size: 22px;
  line-height: 1;
}

.home-screen .kitty-main {
  position: absolute;
  z-index: 1;
  right: -8px;
  top: 58px;
  width: 62%;
  height: 330px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.46));
}

.home-screen .mood-card {
  position: absolute;
  left: 18px;
  top: 220px;
  z-index: 3;
  width: 176px;
  min-height: 102px;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(141, 100, 244, 0.78), rgba(255, 224, 197, 0.86));
  color: #080a18;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.home-screen .mood-card small {
  color: #080a18;
  font-size: 15px;
  font-weight: 800;
}

.home-screen .mood-card strong {
  margin-top: 10px;
  color: #050711;
  font-size: 32px;
  line-height: 1;
}

.home-screen .mood-card > span {
  color: #ffe1a6;
  font-size: 34px;
  text-shadow: 0 0 16px rgba(255, 226, 154, 0.6);
}

.home-status {
  position: relative;
  z-index: 4;
  margin-top: -74px;
  padding: 24px 18px 18px;
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, rgba(9, 15, 38, 0.82), rgba(7, 10, 28, 0.92)) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.home-status .stats {
  gap: 0;
}

.home-status .stats > div {
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.home-status .stats > div:last-child {
  border-right: 0;
}

.home-status .stat-title {
  color: rgba(255, 249, 235, 0.92) !important;
  font-size: 15px;
}

.home-status .stats > div:nth-child(1) .stat-title::before,
.home-status .stats > div:nth-child(2) .stat-title::before,
.home-status .stats > div:nth-child(3) .stat-title::before {
  display: inline-block;
  margin-right: 8px;
  color: #c89bff;
  font-size: 20px;
  vertical-align: -2px;
}

.home-status .stats > div:nth-child(1) .stat-title::before { content: "♥"; }
.home-status .stats > div:nth-child(2) .stat-title::before { content: "♣"; }
.home-status .stats > div:nth-child(3) .stat-title::before { content: "★"; }

.home-status .stat-value {
  margin: 14px 0 16px;
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-align: left;
}

.home-status .stat-value::first-letter {
  color: #fff;
}

.home-status .bar {
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.home-status .bar i {
  background: linear-gradient(90deg, #b889ff, #ffd0df) !important;
}

.home-status .level-row {
  margin-top: 26px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #fff7df;
  font-size: 15px;
}

.home-status .level-row div {
  min-height: 56px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.home-status .level-row div:last-child {
  border-right: 0;
}

.home-screen .section-title {
  margin: 26px 2px 18px;
  color: #fff8e8;
  font-size: 24px;
}

.home-screen .section-title::after {
  content: " ✦";
  color: #ffd997;
  font-size: 18px;
}

.home-screen .feature-grid {
  gap: 14px 12px;
}

.home-screen .feature {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  align-items: center;
  min-height: 104px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 241, 222, 0.72) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 224, 164, 0.24), transparent 34%),
    linear-gradient(135deg, #fff8ef, #efe9df) !important;
  color: #090d1d;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.home-screen .feature::after {
  background:
    radial-gradient(circle at 26% 18%, rgba(214, 151, 79, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 214, 142, 0.18), transparent 22%);
}

.home-screen .feature-icon {
  z-index: 1;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
}

.home-screen .feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 13px rgba(75, 54, 30, 0.18));
}

.home-screen .feature-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-screen .feature b {
  color: #070b1b;
  font-size: 20px;
  line-height: 1.1;
}

.home-screen .feature small {
  margin-top: 9px;
  color: rgba(7, 11, 27, 0.78) !important;
  font-size: 13px;
  font-weight: 650;
}

.feature-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(85, 63, 41, 0.22);
  border-radius: 50%;
  background: rgba(228, 218, 205, 0.72);
  color: #1c2030;
  font-size: 24px;
  line-height: 1;
}

.app.page-home .tabbar {
  right: calc((100vw - min(430px, 100vw)) / 2 + 18px);
  left: calc((100vw - min(430px, 100vw)) / 2 + 18px);
  height: 76px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(7, 12, 31, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app.page-home .tab.active {
  color: #ffe6b1;
  text-shadow: 0 0 14px rgba(255, 213, 143, 0.42);
}

@media (max-width: 374px) {
  .home-profile {
    grid-template-columns: 78px 1fr;
    width: 62%;
    gap: 10px;
  }

  .home-profile .avatar {
    width: 78px;
    height: 78px;
  }

  .home-screen .kitty-main {
    width: 60%;
    height: 292px;
  }

  .home-screen .mood-card {
    top: 198px;
    width: 154px;
  }

  .home-screen .feature {
    grid-template-columns: 60px 1fr 24px;
    min-height: 96px;
  }

  .home-screen .feature-icon {
    width: 58px;
    height: 58px;
  }

  .home-screen .feature b {
    font-size: 17px;
  }
}

/* reference-screen alignment: keep product pages purple-glass, keep login white */
:root {
  color: #fff4de;
  background: #030719;
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(144, 84, 255, 0.26), transparent 34%),
    #030719;
}

.app {
  color: #fff3dc;
  background:
    radial-gradient(circle at 78% 8%, rgba(245, 197, 116, 0.12), transparent 22%),
    radial-gradient(circle at 20% 2%, rgba(136, 83, 255, 0.20), transparent 26%),
    linear-gradient(180deg, rgba(2, 6, 22, 0.24), rgba(2, 6, 22, 0.84)),
    url("./assets/ui2026/common/backgrounds/bg_starfield_mobile_1080x2160.png") center top / cover fixed,
    #030719;
}

.screen:not(.home-screen) {
  padding: 24px 16px 104px;
}

.top-title {
  position: relative;
  min-height: 42px;
  margin: 2px 0 18px;
  justify-content: center;
}

.top-title h1 {
  color: #fff4de;
  font-size: 18px;
  text-shadow: 0 0 18px rgba(255, 221, 160, 0.22);
}

.top-title > .secondary {
  position: absolute;
  left: 0;
  min-width: 48px;
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(255, 219, 155, 0.28);
  border-radius: 999px;
  background: rgba(16, 15, 42, 0.68);
  color: #ffe8bd;
}

.top-title > .small-pill {
  display: none;
}

.section-title {
  margin: 26px 2px 16px;
  color: #fff1d5;
  font-size: 24px;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(255, 221, 160, 0.22);
}

.section-title::after {
  content: " ✨";
  color: #f7c978;
  font-size: 17px;
}

.card,
.profile-card,
.task-card,
.member-status-card,
.points-wallet,
.care-card,
.entertainment-card,
.mbti-card,
.timeline,
.tarot-box,
.summary-box,
.astro-card,
.zodiac-card,
.chat-head,
.mbti-question,
.locked-card,
.history-item {
  border: 1px solid rgba(221, 158, 255, 0.24) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 211, 139, 0.15), transparent 32%),
    linear-gradient(145deg, rgba(25, 18, 59, 0.84), rgba(7, 10, 31, 0.88)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 214, 142, 0.04) !important;
  color: #fff4de;
}

.card h2,
.card h3,
.task-card h2,
.locked-card h2,
.astro-card h2,
.zodiac-card h2,
.tarot-box h2,
.profile-card h2 {
  color: #ffe5b9 !important;
}

.card p,
.task-card p,
.locked-card p,
.summary-box p,
.astro-card p,
.zodiac-card p,
.tarot-box p,
.history-item p {
  color: rgba(236, 224, 255, 0.76) !important;
}

.primary {
  min-height: 52px;
  border: 1px solid rgba(255, 225, 167, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(129, 63, 255, 0.94), rgba(66, 35, 160, 0.96)),
    url("./assets/ui2026/common/backgrounds/bg_primary_button_purple_star.png") center / cover !important;
  color: #fff2d6;
  box-shadow: 0 12px 28px rgba(95, 52, 218, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.secondary {
  min-height: 48px;
  border: 1px solid rgba(255, 222, 163, 0.24);
  border-radius: 16px;
  background: rgba(9, 10, 30, 0.62);
  color: #ffeac6;
}

.field label {
  color: rgba(219, 190, 255, 0.86);
  font-size: 15px;
}

.field input,
.field select,
textarea {
  border: 1px solid rgba(210, 176, 255, 0.22) !important;
  border-radius: 18px !important;
  background: rgba(13, 13, 45, 0.58) !important;
  color: #fff4de !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field input,
.field select {
  min-height: 52px;
}

.form-grid,
.task-list,
.mbti-list,
.result-grid {
  gap: 14px;
}

.profile-hero-card {
  padding: 22px;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 205, 123, 0.20), transparent 20%),
    radial-gradient(circle at 18% 18%, rgba(149, 80, 255, 0.28), transparent 24%),
    linear-gradient(145deg, rgba(48, 24, 91, 0.80), rgba(11, 12, 40, 0.88)) !important;
}

.profile-identity {
  align-items: center;
}

.profile-identity .avatar {
  width: 108px;
  height: 108px;
  padding: 0;
  border-color: rgba(255, 229, 176, 0.68);
  background: rgba(55, 34, 92, 0.54);
}

.profile-identity .pet-name {
  color: #ffe6bd !important;
  font-size: 28px !important;
}

.profile-identity .profile-line {
  max-width: 250px;
  color: rgba(230, 218, 255, 0.70) !important;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
}

.vip-badge {
  border-color: rgba(255, 225, 162, 0.62);
  background: linear-gradient(135deg, #2b1d4f, #09091e);
  color: #ffd98f;
}

.profile-dashboard {
  gap: 14px;
  margin-top: 18px;
}

.member-status-card,
.points-wallet {
  min-height: 132px;
  padding: 22px;
}

.member-status-card strong,
.points-wallet strong {
  color: #ffd59d !important;
  font-size: 34px;
}

.member-status-card small,
.points-wallet small {
  color: #ffe0ad !important;
  font-size: 14px;
}

.member-status-card span,
.points-wallet span {
  color: rgba(232, 220, 255, 0.76) !important;
  font-size: 14px;
}

.member-status-card b {
  border-color: rgba(255, 222, 164, 0.30);
  background: rgba(9, 10, 31, 0.50);
  color: #ffd798;
}

.points-wallet .primary {
  min-width: 136px;
  min-height: 54px;
}

.screen:not(.home-screen) .feature {
  min-height: 104px;
  border-color: rgba(221, 158, 255, 0.24) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 211, 139, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(24, 17, 56, 0.84), rgba(7, 10, 31, 0.88)) !important;
  color: #fff4de;
}

.screen:not(.home-screen) .feature b {
  color: #ffe6bd;
}

.screen:not(.home-screen) .feature small {
  color: rgba(232, 220, 255, 0.74) !important;
}

.care-card .stats,
.status-card .stats {
  gap: 14px;
}

.stat-title {
  color: rgba(238, 224, 255, 0.78) !important;
}

.stat-value {
  color: #fff;
}

.bar {
  background: rgba(255, 255, 255, 0.10);
}

.bar i {
  background: linear-gradient(90deg, #c083ff, #ffd3df) !important;
}

.level-row,
.placement,
.fortune-row {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff1d8;
}

.action,
.branch,
.spread,
.answer,
.task-item,
.calendar-day,
.period,
.zodiac-score,
.history-item,
.placement {
  border-color: rgba(210, 176, 255, 0.22) !important;
  border-radius: 18px !important;
  background: rgba(13, 13, 45, 0.58) !important;
  color: #fff4de !important;
}

.action.done,
.branch.active,
.spread.active,
.answer.active,
.period.active,
.calendar-day.today {
  background: linear-gradient(135deg, rgba(129, 63, 255, 0.82), rgba(255, 208, 122, 0.20)) !important;
  border-color: rgba(255, 222, 164, 0.42) !important;
}

.entertainment-card {
  min-height: 122px;
  padding: 22px;
}

.entertainment-card b {
  color: #ffe6bd;
}

.entertainment-card small {
  color: rgba(232, 220, 255, 0.74);
}

.game-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8c58ff, #ffd58f);
  color: #090b1c;
}

.chat-head {
  min-height: 98px;
  margin-bottom: 18px;
}

.chat-list {
  color: #fff1d8;
}

.msg {
  border: 1px solid rgba(210, 176, 255, 0.18);
  background: rgba(12, 13, 38, 0.56);
  color: #fff1d8;
}

.msg.user {
  background: linear-gradient(135deg, rgba(129, 63, 255, 0.88), rgba(47, 34, 136, 0.92));
}

.chat-compose {
  border-color: rgba(210, 176, 255, 0.22);
  background: rgba(6, 9, 27, 0.86);
}

.chat-compose input {
  background: rgba(255, 255, 255, 0.08);
  color: #fff4de;
}

.tabbar {
  border-color: rgba(221, 158, 255, 0.28);
  background: rgba(8, 11, 31, 0.86);
}

.tab {
  color: rgba(235, 222, 255, 0.78) !important;
}

.tab.active {
  color: #ffe5b3 !important;
}

.tab.active .tab-head {
  background: rgba(255, 219, 151, 0.10);
  box-shadow: 0 0 20px rgba(255, 219, 151, 0.22);
}

.account-backdrop {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.account-modal.card,
.account-modal {
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
}

.account-modal h2,
.account-modal p,
.account-modal .field label {
  color: #000 !important;
}

.account-modal p {
  color: #454545 !important;
}

.account-modal .field input {
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #000 !important;
}

.account-modal .primary {
  background: #000 !important;
  color: #fff !important;
  border-color: #000;
}

.account-tabs button {
  border-color: #000;
  background: #fff;
  color: #000;
}

.account-tabs button.active {
  background: #000;
  color: #fff;
}
/* web-release-31 eof overrides */
html,
body,
.app,
.reference-screen,
.app.page-home {
  background: #030303 !important;
}

.app {
  color: #070707 !important;
  box-shadow: none !important;
}

.screen:not(.reference-screen) {
  padding: 18px 16px 112px !important;
  color: #070707 !important;
}

.top-title h1,
.section-title {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(255, 225, 171, 0.16) !important;
}

.card,
.profile-card,
.task-card,
.outfit-card,
.member-status-card,
.points-wallet,
.entertainment-card,
.care-card,
.mbti-card,
.timeline,
.astro-card,
.zodiac-card,
.tarot-box,
.summary-box,
.history-item,
.mbti-question,
.fortune-card,
.locked-card,
.chat-head,
.chat-compose,
.msg,
.reading-cards .tarot-card,
.feature,
.screen:not(.home-screen) .feature,
.action,
.branch,
.spread,
.answer,
.task-item,
.calendar-day,
.period,
.zodiac-score,
.placement,
.fortune-row {
  border: 1px solid rgba(0, 0, 0, 0.13) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(241, 231, 218, 0.96)) !important;
  color: #070707 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.card p,
.card small,
.task-card p,
.locked-card p,
.summary-box p,
.astro-card p,
.zodiac-card p,
.tarot-box p,
.history-item p,
.profile-card small,
.care-head small,
.entertainment-card small,
.mbti-title,
.branch-copy,
.feature small,
.member-status-card span,
.points-wallet span,
.placement small,
.fortune-row small,
.card-keyword,
.usage-hint,
.profile-line,
.action small,
.branch small,
.spread small,
.answer small,
.task-item small {
  color: #5b5b5b !important;
}

.primary {
  border: 1px solid #000 !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24) !important;
}

.secondary,
.top-title > .secondary {
  border: 1px solid #000 !important;
  background: rgba(255, 250, 242, 0.9) !important;
  color: #000 !important;
}

.field label {
  color: #000 !important;
}

.field input,
.field select,
textarea,
.chat-compose input {
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  background: #fffaf2 !important;
  color: #000 !important;
}

.bar {
  background: rgba(0, 0, 0, 0.08) !important;
}

.bar i {
  background: #000 !important;
}

.feature-icon,
.game-mark {
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.05) !important;
}

.growth-hero {
  overflow: hidden !important;
  padding: 0 0 20px !important;
  background: #070707 !important;
  color: #fff !important;
}

.growth-hero .growth-cat {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center 44% !important;
  border-radius: 22px 22px 0 0 !important;
}

.growth-hero .stage,
.growth-hero .persona,
.growth-hero small,
.growth-hero .next-stage {
  color: #fff !important;
}

.msg.user {
  background: #000 !important;
  color: #fff !important;
}

.msg.user * {
  color: #fff !important;
}

.chat-compose {
  left: calc((100vw - min(430px, 100vw)) / 2 + 16px) !important;
  right: calc((100vw - min(430px, 100vw)) / 2 + 16px) !important;
  bottom: 92px !important;
  padding: 8px !important;
}

.chat-compose .primary {
  min-width: 72px !important;
  padding: 0 12px !important;
}

.tabbar,
.app.page-home .tabbar {
  left: calc((100vw - min(430px, 100vw)) / 2 + 18px) !important;
  right: calc((100vw - min(430px, 100vw)) / 2 + 18px) !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  z-index: 80 !important;
  height: 82px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  border-radius: 30px !important;
  background: rgba(250, 244, 235, 0.96) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab {
  position: relative;
  gap: 0 !important;
  border-radius: 22px !important;
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab::before {
  position: absolute;
  inset: 6px 10px 8px;
  z-index: -1;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(244, 197, 106, 0.42), transparent 68%);
  opacity: 0;
  content: "";
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tab .tab-head {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.tab-icon-img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
}

.tab.active::before {
  opacity: 1;
  transform: scale(1);
  animation: tabGlowPulse 1.9s ease-in-out infinite;
}

.tab.active .tab-head {
  transform: translateY(-5px) scale(1.14) !important;
  box-shadow: none !important;
}

.tab.active .tab-icon-img {
  filter: drop-shadow(0 0 8px rgba(244, 197, 106, 0.78)) drop-shadow(0 0 16px rgba(169, 133, 255, 0.34));
}

.reference-art {
  padding-bottom: 88px !important;
  object-fit: cover !important;
}

.reference-zone:active {
  background: rgba(244, 197, 106, 0.18) !important;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.18);
}

.account-modal.card,
.account-modal {
  background: #fff !important;
  color: #000 !important;
}

@keyframes tabGlowPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* web-release-32 eof rollback: non-feature pages only */
.app.page-home,
.app.page-growth,
.app.page-chat,
.app.page-profile {
  background: #f6f6f6 !important;
  color: #000 !important;
}

.app.page-home .screen,
.app.page-growth .screen,
.app.page-chat .screen,
.app.page-profile .screen {
  color: #000 !important;
}

.app.page-home .top-title h1,
.app.page-growth .top-title h1,
.app.page-chat .top-title h1,
.app.page-profile .top-title h1,
.app.page-home .section-title,
.app.page-growth .section-title,
.app.page-chat .section-title,
.app.page-profile .section-title {
  color: #000 !important;
  text-shadow: none !important;
}

.app.page-home .card,
.app.page-home .status-card,
.app.page-home .feature,
.app.page-growth .card,
.app.page-growth .care-card,
.app.page-growth .entertainment-card,
.app.page-growth .mbti-card,
.app.page-growth .timeline,
.app.page-growth .branch,
.app.page-growth .action,
.app.page-chat .card,
.app.page-chat .chat-head,
.app.page-chat .msg,
.app.page-chat .chat-compose,
.app.page-profile .card,
.app.page-profile .profile-card,
.app.page-profile .member-status-card,
.app.page-profile .points-wallet,
.app.page-profile .feature {
  border: 1px solid #000 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.app.page-home .card small,
.app.page-home .feature small,
.app.page-growth .card small,
.app.page-growth .entertainment-card small,
.app.page-growth .branch small,
.app.page-growth .action small,
.app.page-chat .chat-head small,
.app.page-chat .msg small,
.app.page-profile .card small,
.app.page-profile .feature small,
.app.page-profile .profile-line {
  color: #687083 !important;
}

.app.page-home .home-hero,
.app.page-growth .growth-hero {
  border: 1px solid #000 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.app.page-home .home-hero {
  min-height: 430px !important;
  overflow: hidden !important;
  background: #000 !important;
}

.app.page-growth .growth-hero {
  overflow: hidden !important;
  padding: 0 0 20px !important;
}

.app.page-growth .growth-hero .stage,
.app.page-growth .growth-hero .persona,
.app.page-growth .growth-hero small,
.app.page-growth .growth-hero .next-stage {
  color: #000 !important;
}

.app.page-home .home-profile,
.app.page-home .mood-card {
  border: 1px solid #000 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #000 !important;
}

.app.page-home .bar,
.app.page-growth .bar,
.app.page-profile .bar {
  background: #e9e9e9 !important;
}

.app.page-home .bar i,
.app.page-growth .bar i,
.app.page-profile .bar i {
  background: #000 !important;
}

.app.page-home .feature-icon,
.app.page-growth .game-mark,
.app.page-profile .feature-icon {
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.app.page-home .primary,
.app.page-growth .primary,
.app.page-chat .primary,
.app.page-profile .primary {
  border: 1px solid #000 !important;
  background: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.app.page-home .secondary,
.app.page-growth .secondary,
.app.page-chat .secondary,
.app.page-profile .secondary,
.app.page-profile .top-title > .secondary {
  border: 1px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

.app.page-profile .field label {
  color: #000 !important;
}

.app.page-profile .field input,
.app.page-profile .field select,
.app.page-chat .chat-compose input {
  border: 1px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
}

.app.page-chat .msg.user {
  background: #000 !important;
  color: #fff !important;
}

.app.page-chat .msg.user * {
  color: #fff !important;
}

.app.page-home .tabbar,
.app.page-growth .tabbar,
.app.page-chat .tabbar,
.app.page-profile .tabbar {
  border: 1px solid #000 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.app.page-home .tab::before,
.app.page-growth .tab::before,
.app.page-chat .tab::before,
.app.page-profile .tab::before {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.14), transparent 68%) !important;
}

.app.page-home .tab.active .tab-icon-img,
.app.page-growth .tab.active .tab-icon-img,
.app.page-chat .tab.active .tab-icon-img,
.app.page-profile .tab.active .tab-icon-img {
  filter: grayscale(1) contrast(1.15) brightness(0.72) drop-shadow(0 0 8px rgba(0, 0, 0, 0.28)) !important;
}
