:root {
  color-scheme: light;
  --ink: #243033;
  --muted: #6f766f;
  --line: #ded8ca;
  --page: #eee8d8;
  --panel: #fffaf0;
  --soft-pink: #e5dfcd;
  --pink: #247c7f;
  --pink-hot: #d96545;
  --rose: #d96545;
  --blue: #276fbf;
  --amber: #c8922b;
  --violet: #6b5b95;
  --shadow: 0 18px 42px rgba(42, 48, 43, .14);
  --soft-shadow: 0 8px 24px rgba(42, 48, 43, .09);
}

* { box-sizing: border-box; }

html {
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Avenir Next, Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.site-frame {
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 124, 127, .05) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf0 0, #fffaf0 108px, var(--page) 108px);
  background-size: 24px 24px, auto;
  box-shadow: 0 0 0 1px rgba(77, 73, 61, .18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 18px;
  background: rgba(255, 250, 240, .96);
  box-shadow: 0 5px 18px rgba(42, 48, 43, .10);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text {
  display: block;
  max-width: 246px;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.brand-text::after {
  display: block;
  width: 78px;
  height: 3px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--amber));
  content: "";
}

.brand-tag {
  color: #6b7069;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
  line-height: 1;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #262c36;
  cursor: pointer;
}

.icon-button.small {
  width: 34px;
  height: 34px;
  background: #f4f5f8;
}

.site-main {
  padding-bottom: 24px;
}

.recommend-strip {
  padding: 16px 32px 10px;
}

.recommend-strip a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 82px;
  align-items: center;
  min-height: 52px;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d7cfbd;
  border-radius: 12px;
  background: #fffaf0;
  box-shadow: 5px 5px 0 rgba(36, 124, 127, .16);
}

.spark-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5efe8;
  color: var(--pink);
}

.recommend-strip strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.try-now,
.feed-meta b,
.trend-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--pink);
  color: white;
  font-size: 15px;
  font-weight: 850;
  text-transform: none;
}

.ad-slot {
  display: grid;
  place-items: start center;
  min-height: 190px;
  color: #948b7a;
  font-size: 14px;
  background:
    linear-gradient(135deg, rgba(36, 124, 127, .08) 25%, transparent 25%) 0 0 / 18px 18px,
    #f7f0df;
}

.ad-slot span {
  margin-top: 16px;
}

.detail-ad {
  min-height: 250px;
  margin: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.category-strip,
.feed-panel,
.trending-panel,
.home-categories,
.info-panel,
.result-card,
.copy-page,
.page-title {
  margin: 16px 14px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.category-strip {
  padding: 14px 14px 20px;
}

.category-rail {
  display: grid;
  grid-auto-columns: 88px;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 22px 14px 14px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar { display: none; }

.category-chip {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  color: #737a8a;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), #2f9d90);
  color: white;
  box-shadow: 0 10px 20px rgba(36, 124, 127, .18);
}

.category-chip strong {
  display: grid;
  align-items: start;
  width: 90px;
  min-height: 30px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.rail-progress {
  height: 4px;
  margin: 4px 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e3e8;
}

.rail-progress span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
}

.feed-panel {
  padding: 0 14px 18px;
  background: #e7dfcc;
}

.feed-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 72px;
  padding-top: 10px;
}

.feed-tabs button {
  position: relative;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: transparent;
  color: #a5abb7;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}

.feed-tabs button.is-active {
  background: #fff;
  color: var(--pink);
}

.feed-tabs button.is-active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--pink);
  content: "";
}

.feed-list {
  display: none;
  gap: 14px;
}

.feed-list.is-active {
  display: grid;
}

.feed-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(222, 216, 202, .72);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(28, 35, 50, .07);
}

.feed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e9edf4;
}

.feed-card-large .feed-image {
  display: block;
  aspect-ratio: 4 / 3;
}

.feed-card-large .feed-content {
  display: grid;
  gap: 10px;
  padding: 15px 18px 18px;
}

.feed-content {
  min-width: 0;
}

.feed-card strong,
.trend-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-card-large strong {
  font-size: 21px;
}

.feed-intro {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #efe3b8;
  color: #76521a;
  font-size: 12px;
  font-weight: 850;
}

.feed-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: #767f91;
  font-size: 17px;
  font-weight: 800;
}

.feed-card small {
  color: #9aa1af;
  font-weight: 750;
}

.feed-card-small {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 108px;
  padding: 12px;
}

.feed-card-small .feed-image {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 14px;
}

.feed-card-small .feed-content {
  display: grid;
  min-width: 0;
  gap: 7px;
}

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

.feed-card-small .feed-meta {
  font-size: 15px;
}

.feed-card-small .feed-meta b {
  min-height: 34px;
  padding-inline: 14px;
  font-size: 14px;
}

.block-title {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 20px;
}

.block-title span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--rose);
}

.block-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.block-title.with-more {
  grid-template-columns: 5px minmax(0, 1fr) auto;
  padding-inline: 0;
}

.block-title.with-more a {
  color: var(--rose);
  font-size: 18px;
  font-weight: 850;
}

.trending-panel {
  overflow: hidden;
}

.trend-list {
  border-top: 1px solid var(--line);
}

.trend-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.trend-row:last-child {
  border-bottom: 0;
}

.trend-thumb {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 4px #efe8d8, 0 0 0 7px rgba(36, 124, 127, .18);
}

.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.trend-row strong {
  font-size: 18px;
}

.trend-row small {
  color: #737b8d;
  font-size: 16px;
  font-weight: 800;
}

.home-categories {
  padding: 0 16px 20px;
  background: transparent;
  box-shadow: none;
}

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

.category-photo-tile,
.category-card {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: #777 var(--tile-image) center / cover;
  color: white;
  box-shadow: var(--soft-shadow);
}

.category-photo-tile::before,
.category-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 24, 34, .72), rgba(18, 24, 34, .30));
  content: "";
}

.category-photo-tile strong,
.category-photo-tile span,
.category-card strong,
.category-card small,
.category-card .category-icon {
  position: relative;
  z-index: 1;
}

.category-photo-tile {
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 18px;
}

.category-photo-tile strong {
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .36);
}

.category-photo-tile span {
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  font-weight: 750;
}

.page-title,
.copy-page,
.detail-hero,
.result-card,
.info-panel {
  padding: 20px;
}

.compact-hero {
  margin-top: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-title h1,
.copy-page h1,
.detail-hero h1,
.result-card h1,
.question-panel h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.page-title p,
.copy-page p,
.detail-hero p,
.result-card p,
.info-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.copy-page a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

.category-depth {
  display: grid;
  gap: 16px;
  margin: 16px 14px;
  border: 1px solid var(--line);
  background: #fffaf0;
  box-shadow: var(--soft-shadow);
}

.category-best-fit {
  padding: 14px 16px;
  border: 1px solid rgba(36, 124, 127, .18);
  border-radius: 8px;
  background: rgba(36, 124, 127, .08);
}

.category-page-grid {
  display: grid;
  gap: 14px;
  padding: 0 14px 24px;
}

.category-card {
  display: grid;
  min-height: 116px;
  align-content: end;
  gap: 6px;
  padding: 18px;
}

.category-card .category-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
}

.category-card strong {
  font-size: 24px;
}

.category-card small {
  color: rgba(255, 255, 255, .86);
  font-weight: 750;
}

.detail-hero {
  margin: 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.detail-hero img,
.result-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #e9edf4;
}

.result-card {
  display: grid;
  gap: 18px;
  overflow: hidden;
  background: #fffaf0;
}

.result-cover {
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}

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

.result-intro p {
  margin: 0;
}

.result-reading-grid,
.life-reading-grid,
.result-two-column,
.symbol-grid {
  display: grid;
  gap: 12px;
}

.result-reading-grid article,
.life-reading-grid article,
.result-list-card,
.compatibility-card,
.result-symbols {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}

.result-reading-grid article,
.life-reading-grid article,
.result-list-card,
.compatibility-card {
  padding: 16px;
}

.reading-lead {
  background:
    linear-gradient(135deg, rgba(36, 124, 127, .10), transparent 58%),
    rgba(255, 255, 255, .86);
}

.result-reading-grid h2,
.result-section h2,
.compatibility-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.result-reading-grid h3,
.life-reading-grid strong,
.result-list-card h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.result-reading-grid p,
.life-reading-grid p,
.result-list-card li,
.compatibility-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.result-section {
  display: grid;
  gap: 12px;
}

.result-section .block-title {
  min-height: auto;
  padding: 0;
}

.result-list-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list-card li {
  position: relative;
  padding-left: 18px;
}

.result-list-card li::before {
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.result-symbols {
  padding: 16px;
}

.result-symbols > div:first-child {
  display: grid;
  gap: 4px;
}

.symbol-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  background: #f1ead8;
  color: var(--ink);
  font-weight: 850;
}

.symbol-grid strong {
  color: #7b6d58;
  font-size: 12px;
  text-transform: uppercase;
}

.compatibility-card strong {
  color: var(--ink);
}

.detail-meta,
.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.detail-meta span,
.trait-row span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f6f7fa;
  color: #697285;
  font-size: 13px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

.button.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(36, 124, 127, .22);
}

.button.ghost {
  background: #f0f1f4;
  color: var(--ink);
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.info-panel {
  padding-top: 0;
}

.info-panel .block-title {
  padding-inline: 0;
}

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

.explain-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.explain-list article strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
}

.explain-list h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.explain-list p {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
}

.play-shell {
  min-height: calc(100vh - 110px);
  padding: 18px 14px 40px;
}

.play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #697285;
  font-weight: 850;
}

.play-top a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.progress {
  height: 9px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e5eb;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--amber));
  transition: width .18s ease;
}

.question-panel {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.question-panel small {
  display: block;
  margin-bottom: 10px;
  color: #8b92a2;
  font-weight: 800;
}

.option-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.option-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.option-button span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff0f7;
  color: var(--pink);
  font-weight: 900;
}

.option-button strong {
  min-width: 0;
  line-height: 1.35;
}

.option-button.is-selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(36, 124, 127, .10);
}

.option-button.is-selected span {
  background: var(--pink);
  color: #fff;
}

.play-actions,
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.play-actions .button,
.hero-actions .button {
  flex: 1;
}

.site-footer {
  padding: 28px 20px 86px;
  background: #fff;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--pink);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.footer-links a {
  text-decoration: underline;
}

.search-sheet,
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 82px 16px 16px;
  background: rgba(21, 27, 39, .34);
}

.search-sheet.is-open,
.menu-sheet.is-open {
  display: flex;
}

.sheet-panel {
  width: min(398px, 100%);
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 80px rgba(21, 27, 39, .26);
}

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

.sheet-head strong {
  font-size: 20px;
}

.search-sheet input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
}

.sheet-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sheet-results a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #f7f8fb;
}

.sheet-results img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.sheet-results strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-results small {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f7f8fb;
  color: var(--muted);
  font-weight: 750;
}

.menu-panel {
  display: grid;
  gap: 10px;
}

.menu-panel > a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f8fb;
  font-weight: 850;
}

.menu-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.menu-cats a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #667085;
}

.menu-cats span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-widget {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 74px;
  z-index: 80;
  pointer-events: none;
}

.ai-fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-left: auto;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #247c7f, #c8922b);
  box-shadow: 0 18px 36px rgba(36, 124, 127, .26);
  cursor: pointer;
  pointer-events: auto;
}

.bot-face {
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #eddcff;
}

.bot-face span {
  width: 24px;
  height: 11px;
  border-radius: 999px;
  background: #101827;
  box-shadow: 8px 0 0 -6px #7cf1ff, -8px 0 0 -6px #7cf1ff;
}

.ai-bubble,
.ai-panel {
  position: absolute;
  right: 56px;
  bottom: 22px;
  width: min(316px, calc(100vw - 96px));
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(28, 35, 50, .18);
  pointer-events: auto;
}

.ai-bubble {
  padding: 18px;
}

.ai-bubble::after {
  position: absolute;
  right: -10px;
  bottom: 32px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  background: #fff;
  content: "";
}

.ai-bubble h3 {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 18px;
  line-height: 1.25;
}

.ai-bubble p {
  margin: 0 0 14px;
  color: #5d6678;
  font-size: 16px;
}

.ai-actions {
  display: flex;
  gap: 10px;
}

.ai-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
}

.ai-primary {
  flex: 1;
  background: linear-gradient(135deg, #247c7f, #d96545);
  color: white;
}

.ai-ghost {
  width: 84px;
  background: #f0f1f4;
}

.ai-panel {
  display: none;
  overflow: hidden;
}

.ai-panel header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.ai-panel header span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.ai-panel [data-ai-list] {
  display: grid;
  gap: 0;
}

.ai-panel a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.ai-panel a:last-child {
  border-bottom: 0;
}

.ai-panel img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.ai-panel strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ai-panel small {
  color: var(--muted);
  font-size: 12px;
}

.ai-widget[data-open="false"] .ai-bubble,
.ai-widget[data-open="panel"] .ai-bubble {
  display: none;
}

.ai-widget[data-open="panel"] .ai-panel {
  display: block;
}

.bottom-ad {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: 100%;
  height: 50px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 -8px 28px rgba(28, 35, 50, .10);
}

@media (max-width: 380px) {
  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    max-width: 142px;
    font-size: 20px;
  }

  .brand-tag {
    display: none;
  }

  .recommend-strip {
    padding-inline: 32px;
  }

  .recommend-strip a {
    grid-template-columns: 32px minmax(0, 1fr) 80px;
  }

  .feed-card-small {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .feed-card-small .feed-image {
    width: 78px;
    height: 78px;
  }

  .trend-row {
    grid-template-columns: 64px minmax(0, 1fr) 70px;
    padding-inline: 14px;
  }
}

/* Responsive editorial refresh */
html {
  background:
    linear-gradient(90deg, rgba(30, 43, 48, .05) 1px, transparent 1px),
    linear-gradient(#f4efe3, #f4efe3);
  background-size: 32px 32px, auto;
}

body {
  background:
    linear-gradient(180deg, #fff8ea 0, #fff8ea 86px, #f4efe3 86px);
}

.site-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.site-header {
  min-height: 74px;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(42, 48, 43, .12);
  background: rgba(255, 250, 240, .92);
}

.brand-text {
  max-width: none;
  font-size: clamp(25px, 3vw, 34px);
}

.desktop-nav {
  display: none;
}

.search-action span {
  display: none;
}

.icon-button,
.button,
.try-now,
.feed-meta b,
.trend-row b {
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.icon-button:hover,
.button:hover,
.feed-card:hover,
.trend-row:hover,
.category-chip:hover,
.category-photo-tile:hover,
.hero-feature:hover {
  transform: translateY(-2px);
}

.site-main {
  padding-bottom: 34px;
}

.home-hero,
.category-strip,
.feed-panel,
.trending-panel,
.home-categories,
.info-panel,
.result-card,
.copy-page,
.page-title,
.detail-hero,
.question-panel,
.side-ad,
.editor-note {
  border-radius: 8px;
}

.home-hero {
  display: grid;
  gap: 18px;
  margin: 16px 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(11, 24, 31, .14);
  background:
    linear-gradient(135deg, rgba(255, 202, 84, .24), transparent 42%),
    #17252b;
  color: #fffaf0;
  box-shadow: 0 18px 44px rgba(22, 34, 40, .18);
}

.home-hero .eyebrow {
  color: #ffc95a;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 7vw, 72px);
  line-height: .96;
}

.home-hero-copy {
  display: grid;
  gap: 14px;
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 250, 240, .78);
  font-size: 17px;
  line-height: 1.55;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero .button.ghost {
  background: rgba(255, 250, 240, .14);
  color: #fffaf0;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  padding-top: 8px;
}

.home-stats span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, .16);
  background: rgba(255, 250, 240, .08);
}

.home-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.home-stats small {
  color: rgba(255, 250, 240, .68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-feature {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, .18);
  border-radius: 8px;
  background: rgba(255, 250, 240, .08);
}

.hero-feature-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-copy {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.hero-feature-copy strong {
  color: #fffaf0;
  font-size: 22px;
  line-height: 1.15;
}

.hero-feature-copy small {
  color: rgba(255, 250, 240, .72);
  font-weight: 800;
}

.section-heading {
  display: grid;
  gap: 4px;
  padding: 0 14px 6px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.category-chip small,
.feed-kicker {
  color: #7b6d58;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.feed-kicker {
  display: none;
}

.feed-card,
.trend-thumb,
.feed-card-small .feed-image,
.detail-hero img,
.result-card img,
.category-photo-tile,
.category-card,
.explain-list article,
.option-button,
.sheet-panel,
.sheet-results a,
.menu-panel > a,
.menu-cats a,
.ai-fab,
.ai-bubble,
.ai-panel {
  border-radius: 8px;
}

.bottom-ad {
  width: 100%;
}

.ai-widget {
  right: 18px;
}

.editor-note {
  display: grid;
  gap: 12px;
  margin: 16px 14px;
  padding: 18px;
  border: 1px solid #ded8ca;
  background: #fffaf0;
}

.editor-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.05;
}

.editor-note p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 760px) {
  .site-main {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
  }

  .site-footer {
    padding-inline: max(24px, calc((100vw - 1180px) / 2));
  }

  .home-hero,
  .category-strip,
  .feed-panel,
  .trending-panel,
  .home-categories,
  .editor-note,
  .page-title,
  .copy-page,
  .detail-hero,
  .info-panel,
  .result-card {
    margin-inline: 0;
  }

  .category-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0;
  }

  .category-feed {
    padding-inline: 18px;
  }

  .play-shell {
    width: min(760px, calc(100% - 40px));
    margin-inline: auto;
    padding-inline: 0;
  }
}

@media (min-width: 980px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-inline: 22px auto;
  }

  .desktop-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: #52605c;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
  }

  .desktop-nav a:hover {
    background: #ebe1cd;
    color: #1d3334;
  }

  .search-action {
    width: auto;
    padding-inline: 14px;
    grid-auto-flow: column;
    gap: 8px;
    border-radius: 999px;
    background: #16252a;
    color: #fffaf0;
  }

  .search-action span {
    display: inline;
    font-size: 14px;
    font-weight: 850;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: end;
    min-height: 470px;
    margin-top: 26px;
    padding: 34px;
  }

  .home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 342px;
    align-items: start;
    gap: 22px;
    margin-top: 22px;
  }

  .home-main,
  .home-sidebar {
    min-width: 0;
  }

  .home-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
  }

  .side-panel {
    margin: 0;
    border: 1px solid rgba(42, 48, 43, .10);
    background: #fffaf0;
    box-shadow: var(--soft-shadow);
  }

  .category-strip {
    padding: 18px;
  }

  .category-rail {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding: 10px 0 0;
  }

  .category-chip {
    min-height: 112px;
    padding: 12px 8px;
    border: 1px solid rgba(36, 124, 127, .14);
    border-radius: 8px;
    background: #fffaf0;
  }

  .category-chip strong {
    width: auto;
  }

  .category-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }

  .rail-progress {
    display: none;
  }

  .feed-panel {
    padding: 0 18px 22px;
  }

  .feed-tabs {
    width: min(520px, 100%);
    min-height: 64px;
  }

  .feed-tabs button {
    border-radius: 8px 8px 0 0;
    font-size: 17px;
  }

  .feed-list.is-active {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
  }

  .feed-card {
    min-height: 362px;
  }

  .feed-card-large,
  .feed-card-small {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 154px minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
    gap: 0;
    min-height: 362px;
    padding: 0;
  }

  .feed-card-large .feed-image,
  .feed-card-small .feed-image {
    display: block;
    width: 100%;
    height: 154px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0;
  }

  .feed-card-large .feed-content,
  .feed-card-small .feed-content {
    display: grid;
    grid-template-rows: auto minmax(48px, auto) 40px auto auto;
    gap: 8px;
    padding: 14px 16px 16px;
  }

  .feed-card .pill,
  .feed-card .feed-kicker {
    grid-row: 1;
  }

  .feed-card strong {
    grid-row: 2;
  }

  .feed-card .feed-intro {
    grid-row: 3;
  }

  .feed-card .feed-meta {
    grid-row: 4;
  }

  .feed-card small {
    grid-row: 5;
  }

  .feed-card-large strong,
  .feed-card-small strong {
    font-size: 18px;
    line-height: 1.18;
  }

  .feed-intro {
    min-height: 40px;
    font-size: 13px;
    line-height: 1.38;
  }

  .feed-card-small .feed-meta,
  .feed-card-large .feed-meta {
    margin-top: 0;
    font-size: 15px;
  }

  .feed-card-small .feed-meta b,
  .feed-card-large .feed-meta b {
    min-height: 38px;
    padding-inline: 15px;
    border-radius: 8px;
    font-size: 14px;
  }

  .feed-kicker {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #efe3b8;
    color: #76521a;
    text-transform: none;
  }

  .trend-row {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 88px;
    padding: 12px 14px;
  }

  .trend-row b {
    display: none;
  }

  .trend-row small {
    font-size: 13px;
  }

  .home-categories {
    padding: 0 14px 14px;
  }

  .category-tile-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-photo-tile {
    min-height: 88px;
  }

  .category-photo-tile strong {
    font-size: 18px;
  }

  .side-ad {
    min-height: 190px;
    margin: 0;
  }

  .editor-note {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: center;
    padding: 24px;
  }

  .detail-hero {
    display: grid;
    grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 28px;
  }

  .detail-hero .back-link {
    grid-column: 1 / -1;
  }

  .detail-hero img {
    grid-row: span 5;
    margin: 0;
    aspect-ratio: 16 / 10;
  }

  .detail-hero .button {
    justify-self: start;
    width: auto;
    min-width: 190px;
  }

  .result-card {
    padding: 28px;
  }

  .result-card .result-cover {
    aspect-ratio: 21 / 6;
    margin: -28px -28px 2px;
    width: calc(100% + 56px);
    max-width: none;
    border-radius: 8px 8px 0 0;
  }

  .result-intro {
    width: min(980px, 100%);
  }

  .result-card h1 {
    font-size: clamp(38px, 4vw, 54px);
  }

  .result-intro > p:not(.eyebrow) {
    font-size: 18px;
  }

  .result-reading-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
  }

  .life-reading-grid,
  .result-two-column,
  .symbol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .symbol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-symbols {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
  }

  .compatibility-card {
    padding: 22px 24px;
  }

  .detail-ad {
    width: min(760px, 100%);
    min-height: 140px;
    margin-inline: auto;
  }

  .info-panel,
  .related-panel {
    padding: 0 20px 22px;
  }

  .explain-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .explain-list article {
    grid-template-columns: 1fr;
  }

  .explain-list p {
    grid-column: auto;
  }

  .category-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-card {
    min-height: 180px;
  }

  .sheet-panel {
    width: min(560px, calc(100% - 32px));
  }

  .ai-widget {
    right: max(22px, calc((100vw - 1180px) / 2 + 22px));
  }

  .bottom-ad {
    display: none;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    max-width: 142px;
    font-size: 21px;
  }

  .brand-tag {
    display: none;
  }

  .home-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-stats span {
    padding: 9px 8px;
  }

  .home-stats strong {
    font-size: 24px;
  }

  .home-stats small {
    font-size: 10px;
  }

  .home-hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-feature {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 116px;
  }

  .hero-feature-image {
    height: 100%;
    aspect-ratio: 1;
  }

  .hero-feature-copy {
    align-content: center;
    padding: 10px 12px;
  }

  .hero-feature-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero-feature-copy small {
    font-size: 12px;
  }

  .category-chip small {
    display: none;
  }

  .editor-note h2 {
    font-size: 23px;
  }
}

.ai-widget,
.bottom-ad {
  display: none;
}
