:root:is([data-meemon-legacy="fortune-home"], [data-meemon-legacy="tarot"], [data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"], [data-meemon-legacy="number"], [data-meemon-legacy="fortune-day"], [data-meemon-legacy="calendar"]) {
  --fortune-space: clamp(16px, 4vw, 40px);
  --fortune-quiet: var(--meemon-app-raised);
  --fortune-paper: var(--meemon-app-surface);
  --fortune-ink: var(--meemon-app-text);
  --fortune-meta: var(--meemon-app-muted);
  --fortune-gold: var(--meemon-app-accent);
  --fortune-rule: var(--meemon-app-line);
  --fortune-ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--meemon-app-bg);
}

.fortune-navigation {
  box-sizing: border-box;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--fortune-rule);
  border-radius: 999px;
  background: var(--fortune-paper);
  color: var(--fortune-ink);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
}

.fortune-navigation [aria-hidden] { font-size: 1.4em; line-height: 1; }
.fortune-navigation-bar { width: min(100%, 55rem); margin: 0 auto; }

/* Launcher */
:root[data-meemon-legacy="fortune-home"] .app-shell {
  width: min(calc(100% - 32px), 68rem);
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: 16px 0 48px;
}

:root[data-meemon-legacy="fortune-home"] :is(.top-bar, .bottom-area) {
  min-height: 52px;
  padding: 8px 16px;
  gap: 12px;
  border: 1px solid var(--fortune-rule);
  border-radius: 16px;
}

:root[data-meemon-legacy="fortune-home"] .brand-logo-img { width: 52px; height: 52px; }
:root[data-meemon-legacy="fortune-home"] .brand { color: var(--fortune-ink); text-decoration: none; }
:root[data-meemon-legacy="fortune-home"] .brand-text-main { letter-spacing: .025em; }
:root[data-meemon-legacy="fortune-home"] :is(.brand-text-sub, .user-pill) { font-size: .8125rem; }
:root[data-meemon-legacy="fortune-home"] .user-pill { background: var(--fortune-quiet); border-color: var(--fortune-rule); }

:root[data-meemon-legacy="fortune-home"] .hero-card {
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: clamp(220px, 28vw, 300px);
  margin: 24px 0 32px;
  padding: 24px 40% 24px var(--fortune-space);
  border: 1px solid var(--fortune-rule);
  border-radius: 20px;
  background: var(--fortune-paper);
  box-shadow: none;
}

:root[data-meemon-legacy="fortune-home"] .hero-card::after {
  position: absolute;
  inset: 12px 16px 12px auto;
  width: 36%;
  z-index: -1;
  background: url("/v3/assets/app-icons/fortune.png") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

:root[data-meemon-legacy="fortune-home"] .hero-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.875rem); font-weight: 550; line-height: 1.25; }
:root[data-meemon-legacy="fortune-home"] .hero-sub { max-width: 32rem; margin: 8px 0 0; font-size: 1rem; }
:root[data-meemon-legacy="fortune-home"] .hero-cta-row { justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
:root[data-meemon-legacy="fortune-home"] .hero-main-btn { min-height: 44px; padding: 8px 16px; border-radius: 10px; font-size: .9375rem; }
:root[data-meemon-legacy="fortune-home"] .section-title { margin: 0 0 12px; }
:root[data-meemon-legacy="fortune-home"] .section-title :is(.main, h2) { color: var(--fortune-ink); font-size: 1.125rem; font-weight: 550; letter-spacing: 0; text-transform: none; }

:root[data-meemon-legacy="fortune-home"] :is(.icon-grid, .card-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

:root[data-meemon-legacy="fortune-home"] :is(.icon-button, .feature-card) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 100px;
  padding: 12px;
  gap: 10px;
  text-align: start;
  border: 1px solid var(--fortune-rule);
  border-radius: 14px;
  background: var(--fortune-paper);
  color: var(--fortune-ink);
  box-shadow: none;
  transition: background-color 140ms var(--fortune-ease);
}

:root[data-meemon-legacy="fortune-home"] :is(.icon-button, .feature-card):hover { background: var(--fortune-quiet); transform: none; }
:root[data-meemon-legacy="fortune-home"] :is(.icon-button-icon-wrap, .feature-icon-wrap) { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 10px; }
:root[data-meemon-legacy="fortune-home"] :is(.icon-button-label .title, .feature-text-title) { font-size: .9375rem; font-weight: 550; line-height: 1.4; }
:root[data-meemon-legacy="fortune-home"] :is(.feature-text-sub, .feature-tag, .bottom-chip, .bottom-area) { color: var(--fortune-meta); font-size: .8125rem; }
:root[data-meemon-legacy="fortune-home"] :is(.feature-tag, .bottom-chip) { background: transparent; text-align: start; }

/* Tarot deck and reading */
:root[data-meemon-legacy="tarot"] body { padding: 32px 16px 48px; }
:root[data-meemon-legacy="tarot"] .page { width: min(100%, 65rem); max-width: none; margin: 0 auto; }
:root[data-meemon-legacy="tarot"] .fortune-navigation { display: flex; width: max-content; margin: 0 0 12px; }
:root[data-meemon-legacy="tarot"] h1 { margin: 4px 0 8px; font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 550; letter-spacing: -.025em; text-transform: none; }
:root[data-meemon-legacy="tarot"] .subtitle { width: min(100%, 34rem); margin: 0 auto; font-size: .9375rem; }
:root[data-meemon-legacy="tarot"] #count { margin: 16px 0 12px; color: var(--fortune-gold); font-size: .9375rem; font-variant-numeric: tabular-nums; }

:root[data-meemon-legacy="tarot"] :is(.circle-wrapper, body > .circle) {
  width: min(100%, 36rem);
  margin: 16px auto;
  border: 1px solid var(--fortune-rule);
  border-radius: 20px;
  background: var(--fortune-paper);
}

:root[data-meemon-legacy="tarot"] .circle {
  isolation: isolate;
  width: min(100%, 31rem);
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
}

:root[data-meemon-legacy="tarot"] .circle::before {
  position: absolute;
  inset: 12%;
  z-index: -1;
  border: 1px solid var(--fortune-rule);
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

:root[data-meemon-legacy="tarot"] .circle .card { padding: 0; border: 1px solid var(--fortune-rule); border-radius: 7px; box-shadow: 0 2px 5px rgb(0 0 0 / 25%); }
:root[data-meemon-legacy="tarot"] .circle .card.selected { border-color: var(--fortune-gold); outline-color: var(--fortune-gold); }
:root[data-meemon-legacy="tarot"] .circle button.card { min-width: 45px; }
:root[data-meemon-legacy="tarot"] .circle .card:focus-visible { z-index: 6; filter: brightness(1.1); }
:root[data-meemon-legacy="tarot"] .tarot-controls-note { margin: 8px auto; color: var(--fortune-meta); font-size: .875rem; }
:root[data-meemon-legacy="tarot"] :is(.btn-row, div:has(> #shuffleBtn)) { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

:root[data-meemon-legacy="tarot"] :is(#shuffleBtn, #cutBtn, #submitBtn) {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--fortune-rule);
  border-radius: 10px;
  background: var(--fortune-paper);
  color: var(--fortune-ink);
  font-size: .875rem;
  font-weight: 550;
  box-shadow: none;
}

:root[data-meemon-legacy="tarot"] #submitBtn:not(:disabled) { background: var(--fortune-gold); color: var(--meemon-app-accent-ink); }
:root[data-meemon-legacy="tarot"] #submitBtn:disabled { background: var(--fortune-quiet); color: var(--fortune-meta); }

:root[data-meemon-legacy="tarot"] #resultSection {
  width: min(100%, 65rem);
  margin: 24px auto 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--fortune-rule);
  border-radius: 18px;
  background: var(--fortune-paper);
  text-align: start;
}

:root[data-meemon-legacy="tarot"] #resultSection h2 { margin: 0 0 16px; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 550; }
:root[data-meemon-legacy="tarot"] .result-grid { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
:root[data-meemon-legacy="tarot"] .result-card { display: grid; align-content: start; gap: 6px; padding: 12px; border: 1px solid var(--fortune-rule); border-radius: 12px; background: var(--fortune-quiet); }
:root[data-meemon-legacy="tarot"] .result-card img { width: min(100%, 8rem); margin: 0 0 6px; border-radius: 6px; }
:root[data-meemon-legacy="tarot"] .result-name { font-size: .9375rem; font-weight: 550; }
:root[data-meemon-legacy="tarot"] :is(.result-meaning, .disclaimer) { color: var(--fortune-meta); font-size: .875rem; }

/* Siem See and Jiaobei work areas */
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) body > .app {
  width: min(100%, 56rem);
  max-width: none;
  margin: 0 auto;
}

:root[data-meemon-legacy="seimsee"] .app > .card,
:root[data-meemon-legacy="wood"] .app:has(.throw-area) {
  padding: var(--fortune-space);
  border: 1px solid var(--fortune-rule);
  border-radius: 20px;
  background: var(--fortune-paper);
  box-shadow: none;
}

:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.title, .title-main) { margin: 0 0 8px; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 550; line-height: 1.3; }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.subtitle, .title-sub, .hint, .footer) { color: var(--fortune-meta); font-size: .9375rem; line-height: 1.65; }
:root[data-meemon-legacy="seimsee"] :is(.logo-circle, .lamp) { display: none; }

:root[data-meemon-legacy="seimsee"] .shake-box,
:root[data-meemon-legacy="wood"] .throw-area {
  min-height: 240px;
  margin: 0;
  border: 1px solid var(--fortune-rule);
  border-radius: 16px;
  background: var(--fortune-quiet);
}

:root[data-meemon-legacy="seimsee"] .shake-box { min-width: 0; align-items: center; }
:root[data-meemon-legacy="seimsee"] .seimsee-img { height: auto; max-height: 230px; object-fit: contain; }
:root[data-meemon-legacy="seimsee"] :is(#drawBtn, .draw-btn) { min-height: 44px; padding: 8px 16px; border-radius: 10px; background: var(--fortune-gold); color: var(--meemon-app-accent-ink); box-shadow: none; }
:root[data-meemon-legacy="seimsee"] :is(#tapStatus, #shakeStatus) { color: var(--fortune-gold); }
:root[data-meemon-legacy="wood"] .throw-area { align-items: center; height: clamp(240px, 40vw, 420px); }
:root[data-meemon-legacy="wood"] .drag-coin { width: clamp(88px, 25vw, 172px); margin-inline: -10px; }
:root[data-meemon-legacy="wood"] .main-area { align-items: stretch; }
:root[data-meemon-legacy="wood"] :is(.badge, .modal-chip, .result-badge) { background: var(--fortune-quiet); color: var(--fortune-gold); border-color: var(--fortune-rule); }

:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.result-card, .history, .modal) {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--fortune-rule);
  border-radius: 16px;
  background: var(--fortune-paper);
  color: var(--fortune-ink);
  box-shadow: none;
}

:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) .modal { max-width: 31rem; max-height: calc(100dvh - 40px); overflow: auto; }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) .modal-backdrop { background: rgb(16 13 16 / 66%); }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.result-main, .pattern-text, .meaning-sub, .result-note, .hint span) { color: var(--fortune-meta); }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.result-title, .meaning-main, .modal-title) { font-size: 1.125rem; font-weight: 550; }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.result-number, .result-advice-label) { color: var(--fortune-gold); }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) :is(.modal-close, .modal-close-btn, .modal-actions button) { min-width: 44px; min-height: 44px; border-radius: 10px; }
:root:is([data-meemon-legacy="seimsee"], [data-meemon-legacy="wood"]) .fortune-navigation { grid-column: 1 / -1; margin-block-end: 12px; }

@media (min-width: 650px) {
  :root[data-meemon-legacy="seimsee"] .app > .card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px 24px; align-items: start; text-align: start; }
  :root[data-meemon-legacy="seimsee"] .app > .card > :is(.header, .hint, .tap-status, .draw-btn, #drawBtn) { grid-column: 1; text-align: start; }
  :root[data-meemon-legacy="seimsee"] .app > .card > .shake-box { grid-column: 2; grid-row: 1 / span 4; }
  :root[data-meemon-legacy="seimsee"] .app > .card:has(> .fortune-navigation) > .shake-box { grid-row-start: 2; }
  :root[data-meemon-legacy="seimsee"] .app > .card > :is(.result-card, .history, .footer) { grid-column: 1 / -1; }
  :root[data-meemon-legacy="wood"] .app-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
  :root[data-meemon-legacy="wood"] .app-inner > .header { margin: 0; text-align: start; }
  :root[data-meemon-legacy="wood"] .app-inner > .result-card { grid-column: 1 / -1; }
}

/* Number reading */
:root[data-meemon-legacy="number"] .orb { display: none; }
:root[data-meemon-legacy="number"] .app { display: grid; align-content: center; justify-content: normal; gap: 16px; width: min(100%, 51rem); margin: 0 auto; padding: var(--fortune-space); }
:root[data-meemon-legacy="number"] .app h1 { color: var(--fortune-ink); font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 550; letter-spacing: -.015em; }
:root[data-meemon-legacy="number"] .app header { text-align: start; }
:root[data-meemon-legacy="number"] .fortune-navigation { margin-block-end: 12px; }
:root[data-meemon-legacy="number"] .app .card { max-width: none; padding: clamp(12px, 3vw, 24px); border: 1px solid var(--fortune-rule); border-radius: 18px; }
:root[data-meemon-legacy="number"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, 1vw, 12px); padding: 0; }
:root[data-meemon-legacy="number"] .slot { min-width: 0; min-height: clamp(70px, 14vw, 124px); padding: 6px 6px 18px; border: 1px solid var(--fortune-rule); background: var(--fortune-quiet); }
:root[data-meemon-legacy="number"] .digit { color: var(--fortune-gold); background: none; -webkit-text-fill-color: currentColor; font-size: clamp(2rem, 9vw, 4.75rem); font-variant-numeric: tabular-nums; }
:root[data-meemon-legacy="number"] .grid + div[style] { display: none; }
:root[data-meemon-legacy="number"] .controls { position: static; padding: 0; justify-content: flex-start; }
:root[data-meemon-legacy="number"] .controls #go { width: min(100%, 15rem); min-height: 44px; border: 1px solid var(--fortune-rule); border-radius: 10px; box-shadow: none; }

/* Daily forecast */
:root[data-meemon-legacy="fortune-day"] :is(#screen-home, #screen-horoscope) { width: min(100%, 55rem); max-width: none; margin: 0 auto; }
:root[data-meemon-legacy="fortune-day"] #screen-home { min-height: auto; padding: clamp(24px, 6vw, 64px) 0 32px; text-align: start; align-items: stretch; }
:root[data-meemon-legacy="fortune-day"] #screen-home h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 550; }
:root[data-meemon-legacy="fortune-day"] [data-fortune-decor] { display: none; }
:root[data-meemon-legacy="fortune-day"] #day-buttons { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 8px; }
:root[data-meemon-legacy="fortune-day"] #day-buttons button { min-height: 56px; padding: 8px 12px; border: 1px solid var(--fortune-rule); border-inline-start: 3px solid var(--day-accent, var(--fortune-gold)); border-radius: 10px; background: var(--fortune-quiet); color: var(--fortune-ink); box-shadow: none; font-size: .9375rem; text-align: start; justify-content: flex-start; transition: background-color 140ms var(--fortune-ease); }
:root[data-meemon-legacy="fortune-day"] #day-buttons button:hover { background: var(--fortune-paper); color: var(--fortune-gold); filter: none; transform: none; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-red-500 { --day-accent: #e77570; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-pink-500 { --day-accent: #e48cac; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-green-500 { --day-accent: #71ab83; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-gray-700 { --day-accent: #a4a6aa; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-orange-500 { --day-accent: #dc9a62; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-blue-500 { --day-accent: #7ca7d8; }
:root[data-meemon-legacy="fortune-day"] #day-buttons .bg-purple-700 { --day-accent: #ad95c8; }

:root[data-meemon-legacy="fortune-day"] :is([data-fortune-panel], #result-box) { border: 1px solid var(--fortune-rule); border-radius: 16px; background: var(--fortune-paper); color: var(--fortune-ink); box-shadow: none; backdrop-filter: none; }
:root[data-meemon-legacy="fortune-day"] :is(#result-box.border-red-500, #result-box.border-yellow-500) { border-inline-start-width: 4px; }
:root[data-meemon-legacy="fortune-day"] #result-box.border-red-500 { border-inline-start-color: #d97070; }
:root[data-meemon-legacy="fortune-day"] #result-box.border-yellow-500 { border-inline-start-color: var(--fortune-gold); }
:root[data-meemon-legacy="fortune-day"] #result-label { color: var(--fortune-ink); font-size: clamp(1.625rem, 4vw, 2.375rem); font-weight: 550; text-shadow: none; }
:root[data-meemon-legacy="fortune-day"] :is(#result-advice, #result-meaning, #lunar-phase-display, #direction-info, #status-text > p) { color: var(--fortune-meta); -webkit-text-fill-color: currentColor; }
:root[data-meemon-legacy="fortune-day"] #status-text > p.text-transparent { background: none; color: var(--fortune-ink); }
:root[data-meemon-legacy="fortune-day"] #grid-container > div { border-radius: 12px; border-color: var(--fortune-rule); background: var(--fortune-quiet); box-shadow: none; }
:root[data-meemon-legacy="fortune-day"] #grid-container > div > span:first-child { color: var(--fortune-ink); font-variant-numeric: tabular-nums; }
:root[data-meemon-legacy="fortune-day"] #grid-container > div:is(.border-yellow-400, .border-white, .border-purple-400) { border-color: var(--fortune-gold); }
:root[data-meemon-legacy="fortune-day"] #action-area button { min-height: 48px; border-radius: 10px; background: var(--fortune-gold); color: var(--meemon-app-accent-ink); box-shadow: none; font-size: 1rem; }
:root[data-meemon-legacy="fortune-day"] :is([data-fortune-back], #result-card > button) { min-height: 44px; border: 1px solid var(--fortune-rule); border-radius: 10px; background: var(--fortune-quiet); color: var(--fortune-ink); }

@media (min-width: 720px) {
  :root[data-meemon-legacy="fortune-day"] #screen-horoscope:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 16px 20px; }
  :root[data-meemon-legacy="fortune-day"] #screen-horoscope > * + * { margin-block-start: 0; }
  :root[data-meemon-legacy="fortune-day"] :is([data-fortune-forecast-header], #result-card) { grid-column: 1 / -1; }
  :root[data-meemon-legacy="fortune-day"] [data-fortune-chart] { grid-area: 2 / 2 / span 3 / 3; width: min(100%, 26rem); justify-self: end; }
  :root[data-meemon-legacy="fortune-day"] :is([data-fortune-status], #direction-info, #action-area) { grid-column: 1; }
}

/* Birth-day colour calendar */
:root[data-meemon-legacy="calendar"] [data-fortune-calendar] { width: min(calc(100% - 32px), 63rem); max-width: none; padding-inline: 0; }
:root[data-meemon-legacy="calendar"] [data-fortune-calendar] h1 { color: var(--fortune-ink); font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 550; letter-spacing: -.025em; }
:root[data-meemon-legacy="calendar"] [data-fortune-calendar] .fortune-navigation { margin-block-end: 16px; }
:root[data-meemon-legacy="calendar"] .fortune-calendar-note { color: var(--fortune-meta); font-size: .9375rem; }
:root[data-meemon-legacy="calendar"] :is([data-fortune-calendar] h1 span, [data-fortune-palette] h2) { background: none; color: var(--fortune-ink); -webkit-text-fill-color: currentColor; font-style: normal; }
:root[data-meemon-legacy="calendar"] [data-fortune-days] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); gap: 12px; }
:root[data-meemon-legacy="calendar"] [data-fortune-days] button { min-height: 76px; justify-content: flex-start; gap: 8px; margin: 0; border: 1px solid var(--fortune-rule); border-radius: 12px; background: var(--fortune-paper); box-shadow: none; backdrop-filter: none; }
:root[data-meemon-legacy="calendar"] .fortune-calendar-day { min-width: 0; color: var(--fortune-ink); font-size: .9375rem; }
:root[data-meemon-legacy="calendar"] .fortune-calendar-symbol { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--fortune-quiet); }
:root[data-meemon-legacy="calendar"] .fortune-calendar-symbol svg { width: 18px; height: 18px; }
:root[data-meemon-legacy="calendar"] [data-fortune-days] button:hover { background: var(--fortune-quiet); }
:root[data-meemon-legacy="calendar"] [data-fortune-palette] { width: min(calc(100% - 32px), 63rem); max-width: none; }
:root[data-meemon-legacy="calendar"] [data-fortune-palette] main { padding-inline: 0; }
:root[data-meemon-legacy="calendar"] [data-fortune-colors] { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
:root[data-meemon-legacy="calendar"] [data-fortune-ambient] { display: none; }
:root[data-meemon-legacy="calendar"] [data-fortune-panel] { border-color: var(--fortune-rule); border-radius: 16px; background: var(--fortune-paper); color: var(--fortune-ink); box-shadow: none; backdrop-filter: none; }
:root[data-meemon-legacy="calendar"] [data-fortune-panel] :is(h3, p) { color: var(--fortune-ink); }
:root[data-meemon-legacy="calendar"] [data-fortune-flip] { height: clamp(150px, 26vw, 208px); border-radius: 14px; }
:root[data-meemon-legacy="calendar"] [data-fortune-flip] .flip-inner { transition: transform 320ms var(--fortune-ease); }
:root[data-meemon-legacy="calendar"] .fortune-color-front { display: grid; align-items: end; justify-items: start; overflow: hidden; padding: 12px; border: 1px solid var(--fortune-rule); border-radius: 14px; }
:root[data-meemon-legacy="calendar"] .fortune-flip-label { z-index: 1; border-radius: 6px; padding: 4px 8px; background: #211a1a; color: #fffaf2; font-size: .875rem; }
:root[data-meemon-legacy="calendar"] [data-fortune-card-back] { border: 1px solid var(--fortune-rule); border-radius: 14px; background: var(--fortune-paper); color: var(--fortune-ink); }
:root[data-meemon-legacy="calendar"] [data-fortune-palette] main .fortune-calendar-note { margin-block-start: 0; }

@media (max-width: 560px) {
  :root[data-meemon-legacy="fortune-home"] .hero-card { padding: 20px; }
  :root[data-meemon-legacy="fortune-home"] .hero-card::after { content: none; }
  :root[data-meemon-legacy="fortune-home"] .user-pill { display: none; }
  :root[data-meemon-legacy="fortune-home"] :is(.icon-grid, .card-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  :root[data-meemon-legacy="fortune-home"] :is(.icon-button, .feature-card) { flex-direction: column; min-height: 0; text-align: center; }
  :root[data-meemon-legacy="fortune-home"] :is(.feature-text, .feature-text-sub) { min-width: 0; }
  :root[data-meemon-legacy="seimsee"] .app .shake-box { margin: 16px 0 8px; }
  :root[data-meemon-legacy="wood"] .throw-area { min-height: 220px; }
  :root[data-meemon-legacy="calendar"] [data-fortune-days] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  :root[data-meemon-legacy="calendar"] [data-fortune-days] button { min-height: 66px; padding: 8px; }
  :root[data-meemon-legacy="calendar"] [data-fortune-colors] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-meemon-legacy="calendar"] #stars-container .animate-twinkle,
  :root[data-meemon-legacy="fortune-day"] :is(.cell-highlight, .slide-up) { animation: none; }
  :root[data-meemon-legacy="calendar"] [data-fortune-flip] .flip-inner { transition: none; }
  :root[data-meemon-legacy="tarot"] .circle.shuffle-anim { animation: none; }
  :root[data-meemon-legacy="fortune-home"] :is(.feature-card, .icon-button, .hero-main-btn):active { transform: none; }
}
