/* app.css */
@layer reset,base,components,responsive;
/* Selfetti: bright editorial cards, a cosmic first impression, quiet reading surfaces. */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p,
  ul {
    margin: 0;
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button,
  a,
  input,
  textarea,
  select {
    -webkit-tap-highlight-color: transparent;
  }
  img,
  svg {
    max-width: 100%;
  }
  button {
    cursor: pointer;
  }
  button:disabled {
    cursor: not-allowed;
  }
  a {
    color: inherit;
  }
  button:disabled {
    opacity: 0.48;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  :root {
    --ink: #242331;
    --muted: #686570;
    --paper: #fbfaf6;
    --purple: #6646c8;
    --deep: #342159;
    --line: #ddd9e3;
    --lime: #e2f39d;
    --radius: 20px;
    color-scheme: light;
    font-family: Inter, "Avenir Next", Avenir, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
  }
  body {
    font-size: 17px;
    line-height: 1.65;
  }
  a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
  a:hover {
    color: var(--purple);
  }
  button {
    border: 0;
    background: transparent;
    color: inherit;
  }
  button,
  input,
  textarea,
  select {
    border-radius: 10px;
  }
  button {
    line-height: 1.4;
  }
  input,
  textarea,
  select {
    font-size: 16px;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #bdb8c6;
    background: white;
    color: var(--ink);
  }
  textarea {
    resize: vertical;
    min-height: 110px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: var(--purple);
  }
  input[type="date"] {
    max-width: 360px;
  }
  label {
    display: block;
    font-weight: 600;
    line-height: 1.5;
  }
  label input,
  label textarea,
  label select {
    margin-top: 8px;
  }
  form {
    display: grid;
    gap: 20px;
  }
  form .button {
    justify-self: start;
  }
  fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  legend {
    font-weight: 600;
    margin-bottom: 18px;
  }
  h1,
  h2,
  h3 {
    line-height: 1.15;
    letter-spacing: -0.045em;
    font-weight: 650;
  }
  h1 {
    font-size: clamp(38px, 5.3vw, 64px);
  }
  h2 {
    font-size: clamp(27px, 3.1vw, 38px);
  }
  h3 {
    font-size: 23px;
  }
  p {
    color: var(--muted);
  }
  p + p {
    margin-top: 16px;
  }
  ul {
    padding-left: 24px;
  }
  main {
    max-width: 1200px;
    padding: 0 38px 64px;
    margin: auto;
    min-height: 65vh;
  }
  main > section {
    margin-bottom: 72px;
  }
  section:target {
    scroll-margin-top: 110px;
  }
  :focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 4px;
  }
  ::selection {
    background: #e2f39d;
    color: var(--ink);
  }
  details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  summary {
    font-weight: 600;
    cursor: pointer;
    line-height: 1.5;
  }
  details p {
    margin-top: 14px;
  }
  .skip-link {
    position: absolute;
    left: 20px;
    top: -80px;
    padding: 12px 20px;
    background: white;
    z-index: 20;
  }
  .skip-link:focus {
    top: 12px;
  }
  button,
  a,
  input,
  select {
    touch-action: manipulation;
  }
}
@layer components {
  .site-header {
    max-width: 1360px;
    margin: auto;
    padding: 25px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -1.4px;
  }
  .brand svg {
    width: 30px;
    height: 30px;
    color: var(--purple);
  }
  .site-header nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 15px;
    font-weight: 550;
  }
  .site-header nav a {
    text-decoration: none;
  }
  .site-header nav a[aria-current="page"] {
    color: var(--purple);
  }
  .language-link,
  .lang-link {
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 6px 12px;
  }
  .eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.13em;
    font-weight: 700;
    line-height: 1.5;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--purple);
    color: white;
    border: 1px solid var(--purple);
    border-radius: 12px;
    padding: 15px 22px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    min-height: 50px;
    transition:
      background 0.16s,
      transform 0.16s;
  }
  .button:hover {
    background: #5538b3;
    color: white;
    transform: translateY(-1px);
  }
  .button.secondary {
    background: transparent;
    border-color: #c8bedc;
    color: var(--deep);
  }
  .button.secondary:hover {
    background: #f0eaf9;
  }
  .button.light {
    background: var(--lime);
    color: var(--deep);
    border-color: var(--lime);
  }
  .text-button {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 10px 4px;
  }
  .text-button:hover {
    color: var(--purple);
  }
  .text-button.small {
    font-size: 12px;
  }
  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
  }
  .fine {
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
  }
  .small-pill {
    white-space: nowrap;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 7px 13px;
  }
  .home-hero {
    padding-top: 77px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    min-height: 570px;
  }
  .home-hero h1 {
    font-size: clamp(58px, 7.5vw, 94px);
    line-height: 1.02;
    margin: 23px 0 25px;
    letter-spacing: -0.065em;
  }
  .home-hero h1 em {
    font-style: normal;
    color: var(--purple);
  }
  .hero-copy {
    max-width: 470px;
    margin-bottom: 28px;
    font-size: 18px;
  }
  .home-hero .fine {
    margin-top: 15px;
  }
  .hero-result {
    background: #e7def6;
    border: 1px solid #d4c3e7;
    border-radius: 25px;
    padding: 30px 30px 22px;
    position: relative;
    transform: rotate(3deg);
    max-width: 405px;
    min-height: 420px;
    box-shadow: 9px 12px 0 #efece1;
    margin: 10px auto;
  }
  .hero-result > .result-emblem {
    font-size: 110px;
    line-height: 1.3;
    margin: 13px 0 14px;
    color: #6646b6;
  }
  .hero-result h2 {
    font-size: 38px;
    margin-bottom: 13px;
  }
  .hero-result p {
    color: #534369;
    font-size: 17px;
    max-width: 280px;
  }
  .mini-brand {
    display: block;
    margin-top: 30px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.7px;
  }
  .result-sticker {
    background: var(--lime);
    position: absolute;
    right: -29px;
    top: 133px;
    padding: 23px 16px;
    border-radius: 50%;
    font-size: 14px;
    text-align: center;
    font-weight: 650;
    line-height: 1.35;
    transform: rotate(10deg);
    width: 123px;
    height: 105px;
    display: grid;
    place-content: center;
    box-shadow: 0 2px 0 #cad981;
  }
  .section-heading {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 25px;
  }
  .section-heading h2 {
    max-width: 680px;
    margin-top: 13px;
  }
  .test-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .test-card {
    display: flex;
    flex-direction: column;
    background: var(--tile, #e5dcf4);
    border: 1px solid #0000000c;
    border-radius: var(--radius);
    padding: 25px;
    text-decoration: none;
    transition:
      transform 0.17s,
      box-shadow 0.17s;
    min-height: 330px;
  }
  .test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px #2721380a;
    color: var(--ink);
  }
  .card-number {
    font-size: 10px;
    letter-spacing: 0.13em;
    font-weight: 700;
  }
  .card-symbol {
    font-size: 70px;
    line-height: 1.1;
    margin: 23px 0;
    color: #3d3554;
  }
  .test-card h3,
  .test-card h2 {
    font-size: 27px;
    margin-bottom: 11px;
  }
  .test-card p {
    font-size: 14px;
    color: #534c5d;
    line-height: 1.6;
    flex: 1;
  }
  .card-link {
    display: flex;
    justify-content: space-between;
    margin-top: 27px;
    font-size: 13px;
    font-weight: 650;
  }
  .duo-banner {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 30px;
    border-radius: var(--radius);
    background: var(--deep);
    padding: 40px;
    color: #faf7ff;
    margin-top: 50px;
  }
  .duo-symbol {
    font-size: 66px;
    line-height: 1;
    color: #d2c0f6;
    letter-spacing: -10px;
  }
  .duo-banner h2 {
    margin: 12px 0 15px;
    font-size: 33px;
  }
  .duo-banner p {
    color: #d6cbe8;
    font-size: 15px;
    max-width: 470px;
  }
  .duo-banner .eyebrow {
    color: #d2c0f6;
  }
  .ritual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .ritual-card {
    display: flex;
    gap: 22px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 30px 0;
    text-decoration: none;
  }
  .ritual-card > span {
    font-size: 57px;
    color: var(--purple);
  }
  .ritual-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .ritual-card p {
    font-size: 14px;
  }
  .ritual-card > b {
    margin-left: auto;
  }
  .home-context {
    max-width: 790px;
  }
  .home-context h2 {
    font-size: 30px;
  }
  .article-block h2,
  .article-block h3 {
    margin-bottom: 20px;
  }
  .article-block p {
    margin-bottom: 20px;
  }
  .article-block > .eyebrow {
    margin-bottom: 15px;
  }
  .article-block {
    margin: 56px auto;
  }
  .reading-width {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
  .reading-width .related {
    margin: 30px 0;
  }
  .related {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    margin-top: 24px;
  }
  .page-intro {
    text-align: center;
    max-width: 800px;
    margin: 66px auto 36px;
  }
  .page-intro h1 {
    margin: 18px 0 23px;
  }
  .page-intro p {
    font-size: 18px;
  }
  .panel {
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .panel h2,
  .panel h3 {
    margin-bottom: 16px;
  }
  .panel p {
    margin-bottom: 20px;
  }
  .panel + .panel {
    margin-top: 20px;
  }
  .article-page {
    margin-top: 65px;
  }
  .article-page h1 {
    margin: 17px 0 27px;
  }
  .article-page .lede {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .article-page section {
    margin: 38px 0;
  }
  .article-page section h2 {
    font-size: 29px;
    margin-bottom: 18px;
  }
  .article-page li {
    margin-top: 12px;
  }
  .tool-head {
    padding-top: 65px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 65px;
    align-items: start;
  }
  .quiz-intro {
    position: sticky;
    top: 25px;
  }
  .quiz-intro h1 {
    font-size: clamp(35px, 3.8vw, 49px);
    margin: 19px 0 23px;
  }
  .quiz-intro p {
    font-size: 16px;
  }
  .quiz-panel {
    padding: 29px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scroll-margin-top: 22px;
    min-width: 0;
  }
  .quiz-meta {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
  }
  progress {
    width: 100%;
    height: 5px;
    border: 0;
    background: #eee9f3;
    display: block;
    margin: 17px 0 31px;
    border-radius: 3px;
    overflow: hidden;
  }
  progress::-webkit-progress-bar {
    background: #eee9f3;
  }
  progress::-webkit-progress-value {
    background: var(--purple);
  }
  progress::-moz-progress-bar {
    background: var(--purple);
  }
  .quiz-panel legend {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.025em;
    margin-bottom: 25px;
  }
  .answers {
    display: grid;
    gap: 11px;
  }
  .answers label {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    position: relative;
  }
  .answers label:hover {
    border-color: #a997ce;
  }
  .answers label.selected,
  .answers label:has(input:checked) {
    background: #f2ebfc;
    border-color: var(--purple);
  }
  .answers input {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
  }
  .answers label:has(input:focus-visible) {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
  }
  .choice-dot {
    width: 18px;
    height: 18px;
    border: 1px solid #aaa0b6;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .selected .choice-dot,
  input:checked + .choice-dot {
    border: 5px solid var(--purple);
  }
  .quiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 25px 0 17px;
  }
  .quiz-actions .button:only-child {
    margin-left: auto;
  }
  .result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
  }
  .result-top .eyebrow {
    font-size: 9px;
  }
  .result-card {
    background: var(--tile);
    border-radius: 15px;
    padding: 23px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .result-emblem {
    font-size: 64px;
    line-height: 1.1;
    flex-shrink: 0;
  }
  .result-card h2 {
    font-size: 31px;
    margin-bottom: 10px;
  }
  .result-line {
    font-size: 15px;
    color: #423950;
  }
  .result-detail {
    font-size: 17px;
    color: var(--ink);
    margin: 26px 0;
  }
  .result-columns {
    display: grid;
    gap: 20px;
  }
  .result-columns h3 {
    font-size: 19px;
    margin-bottom: 12px;
  }
  .result-columns p {
    font-size: 15px;
  }
  .action-card {
    background: #f1f4e4;
    padding: 20px;
    border-radius: 14px;
  }
  .action-card .eyebrow {
    margin-bottom: 10px;
  }
  .evidence {
    font-size: 14px;
  }
  .evidence ul {
    list-style: none;
    padding: 0;
    margin: 19px 0;
  }
  .evidence li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 3px solid #e6dcf6;
    padding: 4px 0 4px 14px;
    margin: 15px 0;
  }
  .evidence li b {
    font-size: 12px;
    color: var(--purple);
  }
  .dimension-list {
    display: grid;
    gap: 22px;
    margin: 25px 0;
  }
  .dimension-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
  }
  .dimension-title span {
    color: var(--muted);
  }
  .dimension-track {
    position: relative;
    height: 5px;
    background: linear-gradient(90deg, #ddd4f0, #ece6ef, #ddd4f0);
    margin: 13px 0;
  }
  .dimension-track i {
    position: absolute;
    transform: translate(-50%, -4px);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--purple);
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--purple);
  }
  .dimension-ends {
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
  }
  .result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
  }
  .result-actions .button {
    font-size: 14px;
    padding: 12px 17px;
    gap: 12px;
  }
  .ai-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 23px;
    margin: 25px 0;
  }
  .ai-section h3 {
    font-size: 23px;
    margin: 10px 0 12px;
  }
  .ai-section p {
    font-size: 14px;
    margin-bottom: 17px;
  }
  .ai-section .eyebrow {
    font-size: 9px;
  }
  .ai-section .button {
    font-size: 13px;
    padding: 10px 15px;
    min-height: 44px;
  }
  #ai-output:not(:empty) {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
  }
  #ai-output h3 {
    font-size: 22px;
  }
  #ai-output h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .result-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: 23px 0;
  }
  .result-feedback span {
    width: 100%;
  }
  .result-feedback button {
    border: 1px solid var(--line);
    padding: 7px 12px;
    border-radius: 20px;
  }
  .result-feedback button:hover {
    background: #f3eefd;
  }
  .pair-heading {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 24px 0;
  }
  .pair-dimension {
    border-top: 1px solid var(--line);
    padding: 23px 0;
  }
  .pair-dimension h3 {
    font-size: 21px;
    margin-bottom: 12px;
  }
  .pair-dimension p {
    font-size: 15px;
  }
  .pair-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    font-size: 13px;
  }
  .pair-row progress {
    margin: 0;
    flex: 1;
  }
  .pair-card {
    margin-top: 25px;
    padding: 23px;
    background: #f6f2fc;
    border-radius: 15px;
  }
  .pair-card h2 {
    font-size: 28px;
    margin: 12px 0 20px;
  }
  .pair-card h3 {
    font-size: 20px;
    margin: 17px 0 10px;
  }
  .pair-card p {
    font-size: 15px;
  }
  .tarot-tool {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .card-back,
  .tarot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    aspect-ratio: 2/3;
    max-width: 245px;
    width: 100%;
    border: 1px solid #c5b3e4;
    border-radius: 16px;
    background: var(--deep);
    color: #eee5c1;
    outline: 1px solid #c5b3e4;
    outline-offset: -11px;
    padding: 34px;
    font-size: 64px;
  }
  .card-back span,
  .tarot-card span {
    font-size: 11px;
    letter-spacing: 0.2em;
  }
  .tarot-card h2 {
    font-size: 26px;
    text-align: center;
    color: #eee5c1;
  }
  .tarot-tool .button {
    margin: 23px 0 15px;
  }
  .tarot-tool h2 {
    font-size: 31px;
  }
  .tarot-tool p {
    font-size: 16px;
  }
  .zodiac-symbol {
    font-size: 60px;
  }
  #zodiac-result:not(:empty) {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
  }
  #zodiac-result h2 {
    margin-bottom: 15px;
  }
  .notice {
    background: #f1ecf7;
    border-radius: 14px;
    padding: 20px;
    font-size: 14px;
    margin: 20px 0;
  }
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .offer {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 25px;
    background: white;
    display: flex;
    flex-direction: column;
  }
  .offer h2 {
    font-size: 25px;
    margin: 16px 0;
  }
  .offer p {
    font-size: 15px;
  }
  .offer .price {
    font-size: 36px;
    color: var(--ink);
    letter-spacing: -0.05em;
    margin: 18px 0;
  }
  .offer .button {
    margin-top: auto;
  }
  .offer .interest-status {
    font-size: 12px;
    margin-top: 15px;
  }
  .community-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  .community-tabs,
  .tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  }
  .community-tabs button,
  .tabs button {
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 30px;
  }
  .community-tabs button.active,
  .tabs button.active,
  .community-tabs [aria-selected="true"] {
    background: var(--deep);
    color: white;
  }
  .toolbar-actions {
    display: flex;
    gap: 13px;
    align-items: center;
  }
  .empty-state {
    text-align: center;
    max-width: 650px;
    margin: 25px auto 60px;
    padding: 40px 23px;
    background: #f2edf8;
    border-radius: 22px;
  }
  .empty-state h2 {
    font-size: 29px;
    margin-bottom: 15px;
  }
  .empty-state p {
    font-size: 15px;
    margin-bottom: 23px;
  }
  .topic-grid,
  .member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .topic-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: white;
    padding: 26px;
    transition: border-color 0.15s;
  }
  .topic-card:hover {
    border-color: var(--purple);
    color: var(--ink);
  }
  .topic-card h2,
  .topic-card h3 {
    font-size: 25px;
    line-height: 1.25;
    margin: 13px 0;
  }
  .topic-card p {
    font-size: 15px;
  }
  .topic-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    margin-top: 20px;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
  }
  .chips span,
  .tag {
    font-size: 11px;
    background: #f2edf8;
    padding: 5px 9px;
    border-radius: 20px;
  }
  .user-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .topic-body {
    margin: 25px 0;
    font-size: 18px;
    color: var(--ink);
  }
  .topic-page {
    max-width: 820px;
    margin: 60px auto;
  }
  .topic-page h1 {
    margin: 20px 0 26px;
  }
  .topic-page > .fine {
    margin-bottom: 22px;
  }
  .topic-tools,
  .comment-tools {
    display: flex;
    gap: 15px;
    font-size: 12px;
  }
  .topic-tools {
    margin: 20px 0;
  }
  #topic-comments {
    margin-top: 40px;
  }
  #topic-comments > h2 {
    margin-bottom: 25px;
  }
  .comment {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  .comment > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
  }
  .comment p {
    margin: 12px 0;
    color: var(--ink);
    font-size: 16px;
  }
  .comment-tools button {
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 5px 0;
  }
  .poll {
    background: #f5f0fc;
    border-radius: 18px;
    padding: 26px;
    margin: 30px 0;
  }
  .poll h2 {
    font-size: 26px;
    margin-bottom: 18px;
  }
  .poll-option {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #d0c7df;
    background: white;
    text-align: left;
    padding: 13px 17px;
    margin-bottom: 9px;
  }
  .poll-option i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #e6dcf9;
    pointer-events: none;
  }
  .poll-option span,
  .poll-option b {
    position: relative;
  }
  .poll-option.selected {
    border: 2px solid var(--purple);
    padding: 12px 16px;
  }
  .poll-option.selected span::before {
    content: "✓ ";
    color: var(--purple);
  }
  .poll .fine {
    margin-top: 15px;
  }
  .member {
    margin: 0 !important;
  }
  .member h2 {
    font-size: 25px;
  }
  .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8dff7;
    color: var(--deep);
    font-size: 20px;
    font-weight: 600;
    display: inline-grid;
    place-content: center;
    margin-bottom: 14px;
  }
  .thread-card {
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--line);
    background: white;
    padding: 20px;
    width: 100%;
    text-align: left;
    margin-bottom: 14px;
  }
  .thread-card .avatar {
    margin: 0;
  }
  .thread-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
  }
  .thread-card > span:last-child {
    margin-left: auto;
  }
  .messages {
    display: grid;
    gap: 16px;
    max-height: 330px;
    overflow: auto;
    padding: 10px 0;
    margin-bottom: 23px;
  }
  .message {
    background: #f2eef6;
    border-radius: 13px;
    padding: 15px;
    max-width: 92%;
    justify-self: start;
    font-size: 14px;
  }
  .message.mine {
    background: #e7e0f6;
    justify-self: end;
  }
  .message b {
    font-size: 11px;
  }
  .message p {
    margin: 7px 0 0;
    color: var(--ink);
  }
  .share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
    font-size: 14px;
  }
  #account-panel {
    margin: 40px 0;
  }
  .check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 450;
    line-height: 1.55;
  }
  .check input {
    margin-top: 2px;
  }
  .check + .check {
    margin-top: 12px;
  }
  dialog {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 38px 30px 30px;
    max-width: 600px;
    width: calc(100% - 28px);
    max-height: 90dvh;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 100px #231d4430;
  }
  dialog::backdrop {
    background: #231d446b;
    backdrop-filter: blur(3px);
  }
  .modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    width: 32px;
    height: 32px;
    font-size: 25px;
  }
  .modal-close:hover {
    background: #eee5fa;
  }
  #modal-body h2 {
    font-size: 30px;
    margin: 10px 0 22px;
  }
  #modal-body p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  #modal-body form label {
    font-size: 14px;
  }
  #modal-body legend {
    font-size: 16px;
  }
  #modal-body .button {
    margin-right: 10px;
  }
  #modal-body > .button {
    margin-top: 20px;
  }
  .site-footer {
    max-width: 1284px;
    margin: auto;
    padding: 40px 38px 45px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
  }
  .site-footer .brand {
    font-size: 26px;
  }
  .site-footer p {
    font-size: 12px;
    margin-top: 10px;
  }
  .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    align-items: center;
    max-width: 540px;
    font-size: 12px;
  }
  .site-footer nav a {
    text-decoration: none;
  }
  .site-footer button {
    font-size: 12px;
    text-align: left;
    padding: 0;
  }
  .consent-bar,
  #consent {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    max-width: 760px;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 50px #30254324;
    z-index: 8;
    font-size: 13px;
  }
  .consent-bar p,
  #consent p {
    font-size: 12px;
    margin-top: 5px;
  }
  .consent-bar .button,
  #consent .button {
    font-size: 13px;
    padding: 10px 17px;
    min-height: 42px;
  }
  .consent-bar .text-button,
  #consent .text-button {
    white-space: nowrap;
  }
  #toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-width: min(600px, 90vw);
    border-radius: 12px;
    padding: 15px 23px;
    background: var(--deep);
    color: white;
    z-index: 30;
    font-size: 14px;
    box-shadow: 0 5px 30px #0002;
    transition: 0.18s;
  }
  #toast.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
  }
  .admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 30px 0;
  }
  .admin-metrics .panel {
    margin: 0;
  }
  .admin-metrics b {
    font-size: 35px;
  }
  .admin-metrics p {
    font-size: 13px;
  }
  .table-scroll {
    overflow-x: auto;
    margin: 20px 0 40px;
  }
  table {
    border-collapse: collapse;
    min-width: 500px;
    width: 100%;
    font-size: 13px;
    text-align: left;
  }
  th,
  td {
    padding: 13px;
    border-bottom: 1px solid var(--line);
  }
  th {
    background: #eee7f7;
  }
  #admin-panel h2 {
    font-size: 29px;
    margin: 28px 0 20px;
  }
  #admin-panel .panel button {
    border: 1px solid var(--line);
    padding: 9px 14px;
    margin: 12px 10px 0 0;
    font-size: 13px;
  }
  .share-page {
    max-width: 800px;
    margin: 60px auto;
  }
  .share-page .result-card {
    padding: 35px;
    margin: 30px 0;
  }
  .share-page > h1 {
    margin: 20px 0;
  }
  .noscript {
    padding: 18px;
    background: #fff3c9;
    font-size: 14px;
    border-radius: 12px;
    margin: 20px 0;
  }
}
@layer responsive {
  @media (min-width: 1350px) {
    .home-hero {
      gap: 100px;
    }
  }
  @media (max-width: 950px) {
    .site-header {
      padding: 22px 30px;
      gap: 15px;
    }
    .site-header nav {
      gap: 18px;
      font-size: 13px;
    }
    main {
      padding: 0 30px 45px;
    }
    .home-hero {
      gap: 40px;
    }
    .hero-result {
      max-width: 335px;
      padding: 26px;
      min-height: 390px;
    }
    .hero-result h2 {
      font-size: 31px;
    }
    .result-sticker {
      right: -15px;
      width: 106px;
      height: 96px;
      font-size: 12px;
    }
    .duo-banner {
      grid-template-columns: 75px 1fr;
      gap: 25px;
    }
    .duo-banner .button {
      grid-column: 2;
      justify-self: start;
    }
    .duo-symbol {
      font-size: 50px;
    }
    .test-card {
      padding: 20px;
    }
    .tool-head {
      gap: 30px;
      grid-template-columns: 0.8fr 1.2fr;
    }
    .quiz-panel {
      padding: 23px;
    }
    .offer-grid {
      gap: 12px;
    }
    .offer {
      padding: 20px;
    }
  }
  @media (max-width: 700px) {
    body {
      font-size: 16px;
    }
    .site-header {
      padding: 17px 20px;
      flex-wrap: wrap;
      gap: 15px;
    }
    .brand {
      font-size: 28px;
    }
    .brand svg {
      width: 26px;
    }
    .site-header nav {
      order: 3;
      width: 100%;
      justify-content: space-between;
      gap: 9px;
      font-size: 13px;
    }
    .site-header > .language-link,
    .site-header > .lang-link {
      margin-left: auto;
    }
    main {
      padding: 0 20px 35px;
    }
    main > section {
      margin-bottom: 45px;
    }
    .home-hero {
      padding-top: 40px;
      grid-template-columns: 1fr;
      gap: 35px;
    }
    .home-hero h1 {
      font-size: 64px;
      margin: 18px 0 22px;
    }
    .hero-copy {
      font-size: 17px;
      max-width: 440px;
    }
    .home-hero .eyebrow {
      font-size: 10px;
    }
    .hero-result {
      width: calc(100% - 38px);
      max-width: 390px;
      min-height: 350px;
      margin: 15px auto 30px;
    }
    .hero-result > .result-emblem {
      font-size: 80px;
      margin: 6px 0 15px;
    }
    .hero-result h2 {
      font-size: 34px;
    }
    .result-sticker {
      top: 100px;
      right: -18px;
    }
    .section-heading {
      align-items: start;
      flex-direction: column;
      gap: 17px;
    }
    .section-heading h2 {
      font-size: 29px;
      margin-top: 10px;
    }
    .test-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .test-card {
      min-height: 0;
      display: grid;
      grid-template-columns: 1fr 75px;
      gap: 9px 20px;
      padding: 25px;
    }
    .card-number {
      grid-column: 1;
    }
    .card-symbol {
      grid-column: 2;
      grid-row: 1/4;
      align-self: center;
      justify-self: center;
      margin: 0;
      font-size: 64px;
    }
    .test-card h3,
    .test-card h2 {
      grid-column: 1;
      font-size: 27px;
      margin: 0;
    }
    .test-card p {
      grid-column: 1;
    }
    .card-link {
      grid-column: 1/-1;
      margin-top: 17px;
    }
    .test-card > .eyebrow {
      grid-column: 1;
    }
    .duo-banner {
      padding: 28px;
      grid-template-columns: 1fr;
      gap: 20px;
      margin-top: 30px;
    }
    .duo-symbol {
      font-size: 45px;
    }
    .duo-banner h2 {
      font-size: 30px;
    }
    .duo-banner .button {
      grid-column: 1;
    }
    .ritual-grid {
      grid-template-columns: 1fr;
      gap: 0;
    }
    .ritual-card {
      padding: 25px 0;
    }
    .ritual-card + .ritual-card {
      border-top: 0;
    }
    .ritual-card h2 {
      font-size: 22px;
    }
    .ritual-card > span {
      font-size: 48px;
    }
    .article-block {
      margin: 38px auto;
    }
    .article-block h2 {
      font-size: 28px;
    }
    .page-intro {
      margin: 40px auto 30px;
      text-align: left;
    }
    .page-intro h1 {
      font-size: 39px;
      line-height: 1.15;
    }
    .page-intro p {
      font-size: 17px;
    }
    .panel {
      padding: 24px;
    }
    .tool-head {
      display: block;
      padding-top: 38px;
    }
    .quiz-intro {
      position: static;
      margin-bottom: 30px;
    }
    .quiz-intro h1 {
      font-size: 40px;
      max-width: 500px;
    }
    .quiz-panel {
      padding: 22px 19px;
    }
    .quiz-panel legend {
      font-size: 23px;
    }
    .quiz-meta {
      font-size: 10px;
    }
    .answers label {
      padding: 15px 13px;
    }
    .result-card {
      padding: 20px;
      gap: 17px;
    }
    .result-card h2 {
      font-size: 29px;
    }
    .result-emblem {
      font-size: 54px;
    }
    .result-line {
      font-size: 13px;
    }
    .result-actions .button {
      flex: 1;
      min-width: 180px;
    }
    .result-top {
      align-items: flex-start;
    }
    .result-top .text-button {
      font-size: 11px;
      padding-top: 0;
    }
    .ai-section {
      padding: 20px;
    }
    .article-page {
      margin-top: 40px;
    }
    .article-page h1 {
      font-size: 38px;
    }
    .article-page .lede {
      font-size: 18px;
    }
    .article-page section h2 {
      font-size: 27px;
    }
    .tarot-tool {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: center;
    }
    .card-back,
    .tarot-card {
      max-width: 190px;
      margin: auto;
    }
    .tarot-tool h2 {
      font-size: 28px;
    }
    .tarot-tool .button {
      width: 100%;
    }
    .offer-grid,
    .topic-grid,
    .member-grid {
      grid-template-columns: 1fr;
    }
    .offer {
      padding: 26px;
    }
    .offer .button {
      margin-top: 24px;
    }
    .community-toolbar {
      gap: 19px;
    }
    .community-tabs,
    .tabs {
      width: 100%;
      justify-content: space-between;
      gap: 0;
    }
    .community-tabs button,
    .tabs button {
      font-size: 12px;
      padding: 9px 12px;
    }
    .toolbar-actions {
      width: 100%;
      justify-content: space-between;
    }
    .topic-page {
      margin-top: 38px;
    }
    .topic-page h1 {
      font-size: 36px;
    }
    .topic-card h2 {
      font-size: 24px;
    }
    .empty-state {
      padding: 32px 22px;
    }
    .empty-state h2 {
      font-size: 26px;
    }
    .poll {
      padding: 22px 18px;
    }
    .site-footer {
      padding: 30px 20px 140px;
      gap: 28px;
    }
    .site-footer nav {
      width: 100%;
      gap: 15px 22px;
    }
    .consent-bar,
    #consent {
      bottom: 10px;
      padding: 16px;
      flex-wrap: wrap;
      gap: 10px 18px;
    }
    .consent-bar > div,
    #consent > div {
      width: 100%;
    }
    .consent-bar .button,
    #consent .button {
      min-height: 36px;
    }
    .consent-bar .text-button,
    #consent .text-button {
      padding: 6px;
    }
    .admin-metrics {
      grid-template-columns: 1fr;
    }
    .admin-metrics .panel {
      padding: 20px;
      display: flex;
      gap: 25px;
      align-items: center;
    }
    .admin-metrics p {
      margin: 0;
    }
    .share-page {
      margin: 40px auto;
    }
    .share-page .result-card {
      padding: 25px;
    }
    dialog {
      padding: 37px 23px 26px;
    }
    #modal-body h2 {
      font-size: 27px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }
}

@layer components {
  .beta {
    font-size: 8px;
    letter-spacing: 0.1em;
    background: #eee7fa;
    color: var(--purple);
    padding: 3px 5px;
    border-radius: 4px;
    margin-top: -17px;
  }
  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .footer-top > span {
    font-size: 12px;
    color: var(--muted);
  }
  .site-footer > .fine {
    width: 100%;
    max-width: 750px;
  }
  .site-footer nav.footer-links {
    gap: 17px 23px;
  }
  .shared-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    padding-top: 60px;
    min-height: 570px;
  }
  .shared-page h1 {
    font-size: 38px;
  }
  .shared-page h2 {
    margin: 18px 0 24px;
  }
  .shared-page .button {
    margin: 24px 0;
  }
  .shared-page .hero-result {
    background: var(--tile, #e7def6);
  }
  .shared-page .text-link {
    display: block;
    max-width: max-content;
  }
  .pair-reading {
    margin-top: 30px;
  }
  .pair-reading > h2 {
    font-size: 29px;
    margin: 15px 0;
  }
  .pair-reading > p {
    font-size: 15px;
  }
  .pair-insight {
    border-top: 1px solid var(--line);
    padding: 23px 0;
  }
  .pair-insight h3 {
    font-size: 21px;
    margin: 13px 0;
  }
  .pair-insight p {
    font-size: 14px;
  }
  .pair-bars {
    margin-top: 15px;
  }
  .pair-bars > div {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
  }
  .pair-bars > div > span {
    width: 48px;
  }
  .pair-bars progress {
    margin: 8px 0;
    flex: 1;
  }
  .pair-bars small {
    font-size: 10px;
    color: var(--muted);
  }
  .muted {
    color: var(--muted);
  }
  .drawn-card {
    border: 1px solid #b5a0d4;
    border-radius: 16px;
    background: var(--deep);
    color: #efe4c4;
    aspect-ratio: 2/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 30px 23px;
    outline: 1px solid #b5a0d4;
    outline-offset: -11px;
    text-align: center;
    max-width: 245px;
  }
  .drawn-card h2 {
    font-size: 25px;
  }
  .drawn-card > span:last-child {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .tarot-symbol {
    font-size: 90px;
    line-height: 1;
  }
  .community-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
  }
  .topic-card .button {
    margin-top: 22px;
    width: 100%;
  }
  .source-tag {
    display: inline-block;
    margin-top: 17px;
    font-size: 10px;
    color: var(--muted);
  }
  .offer.panel {
    margin: 0;
  }
  .price > span {
    font-size: 12px;
    letter-spacing: 0;
  }
  .article-page > h2 {
    font-size: 28px;
    margin: 34px 0 20px;
  }
  .article-page > .fine {
    margin-bottom: 25px;
  }
}
@layer responsive {
  @media (max-width: 700px) {
    .shared-page {
      grid-template-columns: 1fr;
      gap: 38px;
      padding-top: 30px;
    }
    .shared-page .hero-result {
      min-height: 340px;
    }
    .shared-page h2 {
      font-size: 33px;
    }
    .drawn-card {
      max-width: 195px;
      margin: auto;
    }
    .site-header .language-link {
      margin-left: auto;
    }
    .home-context h2 {
      font-size: 28px;
    }
    .community-status {
      align-items: start;
    }
  }
}

/* experience.css */
:root {
  --purple: #6433c9;
  --deep: #271044;
  --lime: #d6ef78;
  --paper: #fbf8f1;
  --ink: #2a2038;
  --muted: #635b6c;
  font-family:
    Inter, "Avenir Next", "Segoe UI", "Noto Sans", "Microsoft YaHei",
    "Yu Gothic", "Malgun Gothic", Mangal, sans-serif;
}
body {
  background:
    radial-gradient(ellipse at 100% 5%, #ebe3ff70, transparent 32%),
    var(--paper);
}
body:has(.cosmic-hero) main {
  padding-top: 26px;
}
.site-header {
  gap: 20px;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #39224a17;
}
.site-header .brand {
  color: #42206b;
  font-weight: 800;
  letter-spacing: -1.8px;
}
.brand svg {
  color: #8252de;
}
.site-header nav a[aria-current] {
  background: #e9dffa;
  color: #492386;
  border-radius: 20px;
  padding: 7px 12px;
}
.language-picker {
  position: relative;
  flex-shrink: 0;
  font-size: 13px;
}
.language-picker summary {
  cursor: pointer;
  padding: 9px 12px;
  border: 1px solid #cec3db;
  border-radius: 30px;
  list-style: none;
  background: #fff9;
}
.language-picker summary::-webkit-details-marker {
  display: none;
}
.language-picker > div {
  position: absolute;
  right: 0;
  top: 48px;
  width: 210px;
  padding: 10px;
  border: 1px solid #c6b4d8;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 16px 48px #34215922;
  display: grid;
  gap: 2px;
}
.language-picker a {
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 9px;
}
.language-picker a:hover,
.language-picker a[aria-current] {
  background: #eee4ff;
  color: #492386;
}
.button {
  border-radius: 14px;
  box-shadow: 0 4px 0 #28174016;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2817401c;
}
.button:active {
  transform: translateY(1px);
}
.cosmic-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  isolation: isolate;
  min-height: 585px;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 73% 23%, #624498, transparent 55%), #26113f;
  color: #fcf6ed;
  box-shadow: 0 12px 30px #36204d14;
}
.cosmic-hero:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image: radial-gradient(#e3caff 1px, transparent 1px);
  background-size: 61px 67px;
}
.cosmic-copy {
  padding: 65px 0 62px 48px;
  align-self: center;
  z-index: 2;
}
.cosmic-copy .eyebrow {
  color: #d2c0ef;
  font-size: 11px;
  letter-spacing: 1.5px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #d6ef78;
  border-radius: 50%;
  box-shadow: 0 0 14px #d6ef7870;
  flex-shrink: 0;
}
.cosmic-copy h1 {
  font-size: clamp(46px, 5.8vw, 80px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.04;
  margin: 23px 0;
  color: #fff8ed;
}
.cosmic-copy h1 em {
  font-family: Georgia, serif;
  color: #d6ef78;
  font-weight: 400;
  letter-spacing: -0.065em;
}
.cosmic-copy > p {
  color: #e0d2ec;
  font-size: 17px;
  max-width: 420px;
  line-height: 1.7;
}
.cosmic-cta {
  background: #d6ef78;
  color: #26113f !important;
  margin-top: 28px;
  min-width: 187px;
  justify-content: space-between;
  font-weight: 750;
  border: 1px solid #e4ff92;
}
.cosmic-copy .hero-fine {
  font-size: 12px;
  color: #d2c0e6;
  margin-top: 17px;
}
.cosmic-stage {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 36px 32px 36px 0;
}
.orbit-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.88;
}
.floating-persona {
  position: relative;
  width: 268px;
  min-height: 368px;
  margin-top: 18px;
  padding: 26px 26px 22px;
  border-radius: 19px;
  background: linear-gradient(140deg, #e9deff, #c7b1f2);
  color: #311946;
  border: 1px solid #fff7;
  transform: rotate(8deg);
  box-shadow:
    8px 17px 0 #140b2633,
    0 22px 44px #180c3360;
}
.hero-carousel {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 14px;
  width: 100%;
  max-width: 268px;
  margin-top: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar {
  display: none;
}
.hero-carousel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  scroll-snap-align: center;
  box-shadow:
    8px 17px 0 #140b2633,
    0 22px 44px #180c3360;
}
.floating-persona .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #573777;
}
.persona-glyph {
  font-size: 96px;
  line-height: 1.28;
  text-align: center;
  color: #6139a4;
  text-shadow: 2px 3px #f2e8ff;
}
.floating-persona .type-code {
  display: inline-block;
  font:
    700 10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 2px;
  background: #efe6fc;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.floating-persona h2 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.floating-persona p {
  font-size: 14px;
  color: #4a315e;
  line-height: 1.5;
  min-height: 43px;
}
.floating-persona .mini-brand {
  display: block;
  text-align: right;
  margin-top: 23px;
  font-size: 13px;
}
.orbit-sticker {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 15px #1c103538;
  line-height: 1.2;
}
.sticker-a {
  top: 20%;
  left: 0;
  background: #ffb298;
  color: #4f231f;
  border-radius: 50%;
  width: 104px;
  height: 104px;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 29px;
  font-weight: 750;
  transform: rotate(-12deg);
  gap: 0;
}
.sticker-a span {
  font-size: 10px;
  max-width: 80px;
  font-weight: 500;
}
.sticker-b {
  bottom: 15%;
  right: 17px;
  max-width: 182px;
  background: #d6ef78;
  color: #302544;
  border: 2px solid #eefbbd;
  border-radius: 15px;
  padding: 15px;
  font-size: 28px;
  transform: rotate(-9deg);
}
.sticker-b span {
  font-size: 12px;
  max-width: 118px;
  font-weight: 650;
}
.interest-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 38px;
}
.interest-ribbon a {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d3c8dc;
  background: #fffcf8;
  font-size: 12px;
  padding: 8px 13px;
  border-radius: 24px;
  text-decoration: none;
}
.interest-ribbon a span {
  color: #7744be;
  font-size: 17px;
}
.interest-ribbon a:hover {
  background: #eee4fd;
}
.discovery-section .section-heading h2 {
  font-size: clamp(27px, 3.2vw, 39px);
}
.test-grid {
  gap: 19px;
}
.test-card {
  position: relative;
  border-radius: 23px;
  padding: 26px;
  min-height: 332px;
  background: var(--tile);
  border: 1px solid #2e183f24;
  box-shadow: 0 5px 0 #35204e10;
  overflow: hidden;
}
.test-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 10px 0 #35204e14;
}
.test-card:after {
  content: "";
  position: absolute;
  top: 50px;
  right: -38px;
  width: 150px;
  height: 150px;
  border: 1px solid #34215920;
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #ffffff17,
    0 0 0 36px #ffffff12;
  pointer-events: none;
}
.test-card .card-symbol {
  position: relative;
  z-index: 1;
  font-size: 64px;
  color: #392052;
  line-height: 1.2;
  margin: 16px 0;
}
.test-card h3 {
  font-size: 24px;
  max-width: 95%;
  line-height: 1.15;
  margin-bottom: 12px;
}
.test-card p {
  color: #43324e;
  font-size: 14px;
  line-height: 1.55;
}
.test-card .card-number {
  font-size: 10px;
  letter-spacing: 1px;
  color: #442c58;
}
.test-card .card-link {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid #38234426;
  padding-top: 14px;
  width: 100%;
}
.connection-banner {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  align-items: center;
  gap: 45px;
  padding: 48px;
  background: #f3dfd3;
  border: 1px solid #e7cbbd;
  border-radius: 26px;
  margin: 54px 0;
}
.connection-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 170px;
}
.connection-art > span {
  height: 150px;
  width: 122px;
  display: grid;
  place-items: center;
  font-size: 80px;
  color: #462276;
  background: #d0b6f3;
  border: 1px solid #a88bcf;
  border-radius: 17px;
  transform: rotate(-13deg);
  box-shadow: 4px 6px 0 #40215112;
}
.connection-art > span:last-child {
  background: #d6ef78;
  border-color: #a3bd53;
  transform: rotate(13deg);
  margin-left: 24px;
}
.connection-art i {
  position: absolute;
  z-index: 2;
  left: calc(50% - 25px);
  top: 55px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fd826c;
  border: 4px solid #f3dfd3;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  color: #54252a;
}
.connection-banner h2 {
  font-size: clamp(24px, 2.9vw, 34px);
  margin: 13px 0 22px;
  line-height: 1.22;
  max-width: 560px;
}
.ritual-card {
  border-radius: 22px;
  min-height: 170px;
  padding: 27px;
  align-items: center;
  box-shadow: none;
}
.ritual-card h2 {
  font-size: 23px;
}
.ritual-card p {
  font-size: 14px;
  margin-top: 12px;
}
.tarot-teaser {
  background: #322045;
  color: #fcf4e6;
  border-color: #503367;
}
.tarot-teaser:hover {
  color: #e0faa1;
  background: #402756;
}
.tarot-teaser > span {
  color: #d6ef78;
}
.tarot-teaser p {
  color: #d8c6e5;
}
.zodiac-teaser {
  background: #f8d786;
  border-color: #e1bd69;
}
.zodiac-teaser > span {
  color: #75412d;
}
.universe-invite {
  margin: 54px 0 14px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 32px;
  border: 1px solid #dac8ea;
  border-radius: 23px;
  background: linear-gradient(110deg, #e9def9, #f7eff8);
}
.universe-invite > span {
  font-size: 62px;
  color: #8257c5;
  line-height: 1;
}
.universe-invite h2 {
  font-size: 27px;
  margin-bottom: 7px;
}
.universe-invite .button {
  margin-left: auto;
  flex-shrink: 0;
}
.tool-head {
  position: relative;
}
.quiz-intro {
  border-left: 4px solid #8c5bd1;
  padding-left: 22px;
}
.quiz-panel {
  border-color: #cdbce4;
  background: #fffdf9;
  box-shadow: 0 12px 38px #34215909;
}
.quiz-panel progress {
  accent-color: #8751d2;
}
.answers label {
  border-radius: 13px;
  background: #faf7ff;
  border-color: #ddd2ea;
}
.answers label:hover {
  background: #eee2fd;
  border-color: #956dcc;
}
.answers label.selected,
.answers label:has(input:checked) {
  background: #e8d6ff;
  border-color: #7346b0;
  box-shadow: inset 3px 0 #7346b0;
}
.answers label:focus-within {
  outline: 3px solid #8e66c7;
  outline-offset: 3px;
}
.result-card {
  position: relative;
  border: 1px solid #3c205b20;
  overflow: hidden;
  padding: 30px;
  border-radius: 24px;
}
.result-card:after {
  content: "✦";
  position: absolute;
  font-size: 180px;
  line-height: 1;
  right: -15px;
  top: -8px;
  color: #ffffff35;
  pointer-events: none;
}
.result-card h2 {
  position: relative;
  z-index: 1;
}
.result-card .result-emblem {
  border: 1px solid #39235430;
  border-radius: 50%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.result-line {
  max-width: 650px;
}
.result-detail {
  font-size: 18px;
  line-height: 1.85;
}
.life-report {
  margin: 34px 0;
  border-top: 1px solid #e0d5e8;
  padding-top: 28px;
}
.focus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 20px;
}
.focus-tabs button {
  border: 1px solid #d4c4df;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 13px;
  background: #fffcf8;
  transition: background 0.15s;
}
.focus-tabs button[aria-pressed="true"] {
  background: #46216c;
  border-color: #46216c;
  color: #fff;
}
.focus-tabs button:hover {
  box-shadow: 0 2px 0 #45235926;
}
.focus-reading {
  padding: 27px;
  border-radius: 20px;
  border: 1px solid #d5c8e6;
  background: linear-gradient(135deg, #f0e7fc, #faf6fd);
}
.focus-reading h3 {
  margin: 18px 0 12px;
}
.focus-reading blockquote {
  margin: 20px 0;
  padding: 0 0 0 17px;
  border-left: 3px solid #9063c6;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 600;
  color: #442962;
  letter-spacing: -0.4px;
}
.focus-reading .preference-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.focus-reading .preference-line b {
  color: #513171;
}
.focus-reading .fine {
  margin-top: 18px;
  font-size: 12px;
}
.focus-reading .related {
  font-size: 13px;
  margin-top: 20px;
  gap: 20px;
}
.symbolic-focus {
  margin: 24px 0 0;
  padding: 20px;
  background: #f3eadc;
  border: 1px solid #e7d9c5;
  border-radius: 15px;
}
.symbolic-focus h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.symbolic-focus p {
  font-size: 14px;
}
.tarot-imagery {
  font-size: 15px;
  margin-bottom: 6px;
}
.drawn-card:has(.tarot-art) {
  padding: 0;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  gap: 14px;
  outline: 0;
  aspect-ratio: auto;
  width: min(100%, 280px);
  max-width: 280px;
}
.tarot-tool { align-items: start; scroll-margin-top: 90px; }
.tarot-tool > div:last-child { text-align: left; min-width: 0; }
.tarot-tool .tarot-situations { padding: 22px 22px 22px 38px; line-height: 1.7; }
.drawn-card:has(.tarot-art) > .eyebrow,
.drawn-card:has(.tarot-art) > span:last-child { display:none; }
.tarot-art { width:100%; max-width:320px; height:auto; display:block; filter:drop-shadow(0 12px 28px #0005); }
.drawn-card:has(.tarot-art) h2 { color:var(--ink); font-size:24px; font-weight:650; line-height:1.3; margin:0; }
.sky-form-panel { max-width:960px; }
.sky-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:18px; }
.sky-fields > label { min-width:0; }
.sky-fields input[type="date"], .sky-fields input[type="time"] { width:100%; min-width:0; max-width:100%; min-height:52px; appearance:none; -webkit-appearance:none; }
.sky-fields input::-webkit-date-and-time-value { min-width:0; text-align:left; }
.sky-form-panel details { margin:0; }
#zodiac-result { scroll-margin-top:110px; }
.sky-result-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px; align-items:center; margin:40px 0; }
.sky-result-head h2 { font-size:clamp(26px,4vw,42px); line-height:1.15; margin:12px 0; }
.sky-result-head .button { margin-top:20px; }
.sky-wheel { width:100%; max-width:480px; height:auto; }
.placement-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:16px; margin:26px 0; }
.placement { padding:24px; position:relative; }
.placement h3 { margin:12px 0 5px; font-size:21px; }
.placement-glyph { display:block; color:#d6ef78; font-size:32px; margin-bottom:16px; }
.placement .eyebrow { letter-spacing:.07em; }
.placement p { margin-top:16px; font-size:15px; }
.aspect-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; padding:14px 0 0; list-style:none; }
.aspect-list span { color:#d6ef78; padding:0 10px; }
.aspect-list small { color:var(--muted); }
.zodiac-library { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:24px; }
.zodiac-library article { border-top:1px solid var(--line); padding-top:14px; }
.zodiac-library span { color:#d6ef78; font-size:24px; }
.zodiac-library h3 { font-size:17px; }
.zodiac-library p { font-size:14px; }
.result-emblem { border-radius:50%; background:radial-gradient(ellipse,#29203c 0 44%,transparent 46%),repeating-radial-gradient(ellipse at center,transparent 0 20px,#24182f66 21px 22px,transparent 23px 30px); color:#d6ef78; }
@media(max-width:720px) {
  .sky-result-head { grid-template-columns:1fr; gap:20px; }
  .sky-result-head > div:first-child { max-width:400px; margin:auto; }
  .zodiac-library { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tarot-tool:has(.tarot-art) { padding:20px; gap:28px; }
  .tarot-art { max-width:260px; }
  .hero-carousel { max-width:320px; }
}
.tarot-situations {
  margin: 0 0 20px;
  padding: 20px 20px 20px 42px;
  border: 1px solid #e7d9c5;
  border-radius: 15px;
  background: #f3eadc;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
}
.card-back {
  background: radial-gradient(ellipse at 50% 40%, #61428b, #281538);
  color: #e4ceff;
  border: 6px double #bba0dd;
  box-shadow: 8px 12px 0 #32204a12;
  transform: rotate(-4deg);
}
.drawn-card {
  background: linear-gradient(155deg, #d9c8ef, #f7e8c7);
  border: 1px solid #a487bb;
  box-shadow: 7px 9px 0 #37204c14;
}
.site-footer {
  border-top: 1px solid #dbcee4;
  background: #f0eaf3;
  border-radius: 25px 25px 0 0;
  padding: 38px;
}
:lang(zh),
:lang(ja),
:lang(ko) {
  word-break: normal;
  overflow-wrap: anywhere;
}
:lang(hi) {
  letter-spacing: normal !important;
  line-height: 1.75;
}
:lang(hi) h1,
:lang(hi) h2,
:lang(hi) h3 {
  line-height: 1.4;
  letter-spacing: normal;
}
:lang(zh) .cosmic-copy h1,
:lang(ja) .cosmic-copy h1,
:lang(ko) .cosmic-copy h1 {
  font-size: clamp(38px, 4.8vw, 65px);
  letter-spacing: -0.045em;
  line-height: 1.2;
  max-width: 440px;
}
:lang(hi) .cosmic-copy h1 {
  font-size: clamp(36px, 4.7vw, 60px);
  line-height: 1.3;
  max-width: 460px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #9766c9;
  outline-offset: 4px;
}
@media (min-width: 1000px) {
  .cosmic-stage {
    animation: float-in 0.7s ease-out both;
  }
  .floating-persona:hover {
    transform: rotate(3deg) translateY(-4px);
    transition: transform 0.25s;
  }
}
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1050px) {
  .site-header {
    flex-wrap: wrap;
  }
  .site-header nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
  .language-picker {
    margin-left: auto;
  }
  .cosmic-copy {
    padding: 42px 0 42px 30px;
  }
  .cosmic-hero {
    min-height: 520px;
  }
  .floating-persona {
    width: 238px;
    padding: 23px;
  }
  .sticker-a {
    left: -2px;
    top: 12%;
    width: 87px;
    height: 87px;
    font-size: 25px;
  }
  .sticker-b {
    right: 8px;
    bottom: 12%;
  }
  .connection-banner {
    padding: 33px;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  body:has(.cosmic-hero) main {
    padding-top: 15px;
  }
  .cosmic-hero {
    grid-template-columns: 1fr;
    border-radius: 23px;
  }
  .cosmic-copy {
    padding: 34px 27px 0;
  }
  .cosmic-copy h1 {
    font-size: 58px;
    max-width: 390px;
    margin: 18px 0;
  }
  .cosmic-copy > p {
    font-size: 16px;
  }
  .cosmic-stage {
    min-height: 375px;
    padding: 5px 0 25px;
  }
  .orbit-art {
    max-height: 390px;
  }
  .floating-persona {
    width: 210px;
    min-height: 282px;
    margin-top: 0;
    padding: 18px 21px;
    transform: rotate(7deg);
  }
  .persona-glyph {
    font-size: 63px;
  }
  .floating-persona h2 {
    font-size: 25px;
    margin-bottom: 9px;
  }
  .floating-persona p {
    font-size: 12px;
    min-height: 34px;
  }
  .floating-persona .mini-brand {
    margin-top: 15px;
  }
  .sticker-a {
    top: 17%;
    left: calc(50% - 155px);
    width: 82px;
    height: 82px;
  }
  .sticker-b {
    bottom: 14%;
    right: calc(50% - 164px);
    padding: 11px;
    max-width: 140px;
  }
  .sticker-b span {
    font-size: 11px;
    max-width: 94px;
  }
  .interest-ribbon {
    justify-content: flex-start;
    gap: 7px;
    padding-bottom: 28px;
  }
  .interest-ribbon a {
    font-size: 11px;
    padding: 7px 11px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .discovery-section .section-heading {
    display: block;
  }
  .discovery-section .section-heading > a {
    display: inline-block;
    margin-top: 12px;
  }
  .test-card {
    min-height: 300px;
    padding: 22px;
  }
  .test-card h3 {
    font-size: 23px;
  }
  .connection-banner {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 15px;
    margin: 34px 0;
  }
  .connection-art {
    min-height: 130px;
  }
  .connection-art > span {
    height: 122px;
    width: 98px;
    font-size: 65px;
  }
  .connection-art i {
    top: 36px;
  }
  .connection-banner h2 {
    font-size: 27px;
  }
  .universe-invite {
    flex-wrap: wrap;
    padding: 24px;
    gap: 17px;
  }
  .universe-invite > span {
    font-size: 48px;
  }
  .universe-invite > div {
    flex: 1;
  }
  .universe-invite h2 {
    font-size: 25px;
  }
  .universe-invite .button {
    margin-left: 0;
  }
  .focus-reading {
    padding: 21px;
  }
  .focus-reading blockquote {
    font-size: 20px;
  }
  .focus-tabs button {
    font-size: 12px;
    padding: 8px 11px;
  }
  .result-card {
    padding: 23px;
  }
  .result-card .result-emblem {
    width: 76px;
    height: 76px;
    font-size: 53px;
  }
  .site-footer {
    padding: 27px 22px;
  }
  .quiz-intro {
    padding-left: 17px;
  }
  .site-header nav {
    gap: 6px;
    font-size: 13px;
  }
  .site-header nav a {
    padding: 8px;
  }
  .language-picker summary {
    font-size: 12px;
    padding: 8px 11px;
  }
}
@media (max-width: 380px) {
  .cosmic-copy {
    padding: 28px 22px 0;
  }
  .cosmic-copy h1 {
    font-size: 49px;
  }
  .cosmic-stage {
    min-height: 350px;
  }
  .test-card {
    min-height: 0;
  }
  .cosmic-copy .eyebrow {
    font-size: 9px;
  }
  .site-header .brand {
    font-size: 26px;
  }
  .language-picker summary {
    max-width: 145px;
  }
  .sticker-b {
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .test-card:hover,
  .button:hover {
    transform: none;
  }
}

/* fonts.css */
/* Inter, OFL-1.1. License: /fonts/inter-5.3.0-LICENSE.txt. Self-hosted subsets only. */
/* inter-latin-ext-wght-normal */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-5.3.0-latin-ext-wght-normal.woff2)
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-5.3.0-latin-wght-normal.woff2)
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* mobile.css */
/* Dark surfaces are shared by desktop and mobile; type colors carry identity. */
:root {
  --paper: #101018;
  --surface: #1b1927;
  --surface-raised: #252135;
  --ink: #f5f1fc;
  --muted: #c0b8cf;
  --line: #514861;
  --purple: #d6ef78;
  --deep: #29203c;
  --radius: 16px;
  color-scheme: dark;
  font-family:
    "Inter Variable", Inter, "Segoe UI", "Microsoft YaHei", "Yu Gothic",
    "Malgun Gothic", "Nirmala UI", sans-serif;
}
body {
  background: var(--paper);
  color: var(--ink);
}
::selection {
  background: #d6ef78;
  color: #171322;
}
a:hover {
  color: #d6ef78;
}
.site-header {
  border-color: var(--line);
}
.site-header .brand,
.site-footer .brand {
  color: var(--ink);
}
.brand svg {
  color: #d6ef78;
}
.beta,
.small-pill,
.chips span,
.tag {
  background: #302a40;
  color: #e5def0;
}
.site-header nav a[aria-current] {
  background: #302a40;
  color: #d6ef78;
}
.language-picker {
  padding: 0;
  border: 0;
}
.language-picker summary {
  background: var(--surface);
  border-color: var(--line);
  min-height: 44px;
}
.language-picker > div {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 16px;
  max-height: 65dvh;
  overflow-y: auto;
}
.language-picker a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.language-picker a:hover,
.language-picker a[aria-current] {
  background: #302a40;
  color: #d6ef78;
}
.button,
.cosmic-cta {
  background: #d6ef78;
  color: #171322 !important;
  border: 1px solid #d6ef78;
  border-radius: 999px;
  box-shadow: none;
  min-height: 48px;
}
.button:hover {
  background: #e4fa9d;
  box-shadow: none;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink) !important;
  border-color: #80708f;
}
.button.secondary:hover {
  background: #302a40;
}
.text-button,
.text-link {
  color: #d6ef78;
}
button,
summary {
  min-height: 44px;
}
.eyebrow {
  color: #c0b8cf;
}
input,
textarea,
select {
  min-width: 0;
  max-width: 100%;
  background: #15131f;
  border-color: #80708f;
  color: var(--ink);
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: #aaa0b9;
  opacity: 1;
}
.cosmic-hero {
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 75% 20%, #3a2856, transparent 62%), #1b142b;
  box-shadow: none;
}
.cosmic-stage {
  animation: none;
}
.cosmic-copy h1 {
  letter-spacing: -0.055em;
}
.interest-ribbon a {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  min-height: 44px;
}
.interest-ribbon a span {
  color: #d6ef78;
}
.interest-ribbon a:hover {
  background: #302a40;
}
.test-card {
  border-radius: 16px;
  color: #24182f;
  box-shadow: none;
}
.test-card:hover {
  color: #24182f;
  box-shadow: none;
  transform: translateY(-3px);
}
.test-card .card-link {
  color: #24182f;
}
.connection-banner {
  background: #241d32;
  border-color: var(--line);
  border-radius: 20px;
}
.connection-art i {
  border-color: #241d32;
}
.ritual-card {
  border-radius: 16px;
}
.tarot-teaser {
  background: #251c38;
  border-color: var(--line);
}
.zodiac-teaser,
.zodiac-teaser:hover {
  color: #302039;
}
.zodiac-teaser p {
  color: #514035;
}
.universe-invite {
  background: #241d32;
  border-color: var(--line);
  border-radius: 20px;
}
.universe-invite > span {
  color: #bea0ee;
}
.quiz-intro {
  border-color: #d6ef78;
}
.quiz-panel,
.panel,
.offer,
.topic-card,
.member-card,
.chat-panel {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}
.answers label {
  background: #211d2e;
  border-color: #80708f;
  min-height: 52px;
  font-size: 16px;
}
.answers label:hover {
  background: #30283e;
  border-color: #b69bdc;
}
.answers label.selected,
.answers label:has(input:checked) {
  background: #303425;
  border-color: #d6ef78;
  box-shadow: inset 3px 0 #d6ef78;
}
.choice-dot {
  border-color: #a99fb9;
}
.answers label:focus-within {
  outline-color: #d6ef78;
}
progress,
progress::-webkit-progress-bar {
  background: #4e435c;
}
.quiz-panel progress {
  accent-color: #d6ef78;
}
.result-card {
  color: #24182f;
  border-radius: 16px;
}
.result-line {
  color: #42334f;
}
.action-card,
.pair-card,
.notice,
.empty-state,
.tarot-situations,
.symbolic-focus {
  background: #272235;
  border-color: var(--line);
}
.life-report,
.evidence {
  border-color: var(--line);
}
.focus-tabs button {
  background: #211d2e;
  color: var(--ink);
  border-color: #80708f;
  border-radius: 999px;
  min-height: 44px;
}
.focus-tabs button[aria-pressed="true"] {
  background: #d6ef78;
  border-color: #d6ef78;
  color: #171322;
}
.focus-reading {
  background: #251d35;
  border-color: #77628f;
  border-radius: 16px;
}
.focus-reading blockquote,
.focus-reading .preference-line b {
  color: #e2cef8;
}
.focus-reading blockquote {
  border-color: #bca0e0;
}
.dimension-track {
  background: #655773;
}
.result-feedback button:hover {
  background: #302a40;
}
.drawn-card {
  color: #271831;
}
.drawn-card p {
  color: #49344e;
}
.site-footer {
  border-color: var(--line);
  background: #17131f;
  border-radius: 20px 20px 0 0;
}
.site-footer a,
.site-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer .footer-support {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  margin: 0;
  font-size: 14px;
}
dialog {
  background: var(--surface);
  border-radius: 20px;
  border-color: #80708f;
}
dialog::backdrop {
  background: #08060dbb;
}
.modal-close {
  width: 44px;
  height: 44px;
}
.modal-close:hover {
  background: #3b304c;
}
#consent {
  background: #252135;
  border-color: #80708f;
  z-index: 40;
}
#toast {
  background: #e3dcf0;
  color: #21172f;
}
.skip-link {
  background: #d6ef78;
  color: #171322;
  z-index: 50;
}
.poll,
.message,
th {
  background: #272235;
}
.thread-card,
.poll-option {
  background: var(--surface);
  border-color: #80708f;
}
.poll-option i,
.message.mine {
  background: #3a2d4b;
}
.hero-result {
  color: #24182f;
  border-radius: 18px;
}
.hero-result .eyebrow {
  color: #573777;
}
.noscript {
  background: #332a16;
  color: #f6e3af;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline-color: #d6ef78;
}
.share-formats {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.share-formats button {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #80708f;
  border-radius: 999px;
  font-size: 14px;
}
.share-formats [aria-pressed="true"] {
  background: #d6ef78;
  color: #171322;
  border-color: #d6ef78;
}
.share-preview {
  display: grid;
  place-items: center;
  background: #100c18;
  padding: 16px;
  border-radius: 16px;
  min-height: 180px;
}
.share-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 39dvh;
  border-radius: 10px;
}
.share-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
#modal-body .share-sheet-actions .button {
  margin: 0;
  font-size: 14px;
}
#modal-body .share-hint {
  font-size: 13px;
  margin: 8px 0 0;
}
.mobile-nav {
  display: none;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  main {
    padding: 0 16px 32px;
  }
  main > section {
    margin-bottom: 40px;
  }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 24;
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
    min-height: 70px;
    gap: 10px;
    /* Opaque on purpose: the status bar area keeps the header's own colour, so
       scrolled headings can never collide with the system clock. */
    background: var(--paper);
  }
  .site-header nav {
    display: none;
  }
  .site-header .brand {
    font-size: 27px;
  }
  .language-picker summary {
    font-size: 13px;
    max-width: 170px;
    display: flex;
    align-items: center;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    z-index: 25;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #17131f;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    gap: 2px;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
    min-height: 52px;
    color: #c0b8cf;
    border-radius: 12px;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .mobile-nav a > span:first-child {
    font-size: 22px;
    line-height: 1;
  }
  .mobile-nav a[aria-current] {
    color: #d6ef78;
    background: #282330;
  }
  body:has(#quiz-next) .mobile-nav,
  body:has(#share-result) .mobile-nav {
    display: none;
  }
  body:has(#quiz-next) {
    padding-bottom: env(safe-area-inset-bottom);
  }
  body:has(.cosmic-hero) main {
    padding-top: 6px;
  }
  .cosmic-hero {
    border-radius: 18px;
    gap: 0;
    min-height: 0;
  }
  .cosmic-copy {
    padding: 24px 23px 0;
  }
  .cosmic-copy .eyebrow {
    font-size: 10px;
    letter-spacing: 0.7px;
  }
  .cosmic-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1.04;
    margin: 14px 0;
  }
  .cosmic-copy > p {
    font-size: 15px;
    line-height: 1.6;
  }
  .cosmic-cta {
    margin-top: 18px;
    width: 100%;
    min-height: 52px;
  }
  .cosmic-copy .hero-fine {
    font-size: 11px;
    margin-top: 10px;
  }
  .cosmic-stage {
    min-height: 188px;
    padding: 18px 36px 23px;
  }
  .orbit-art {
    opacity: 0.45;
  }
  .floating-persona {
    width: 100%;
    max-width: 294px;
    min-height: 0;
    margin: 0;
    padding: 17px 18px;
    border-radius: 14px;
    transform: rotate(-3deg);
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
  }
  .floating-persona .eyebrow {
    grid-column: 1 / -1;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .persona-glyph {
    grid-row: 2 / 5;
    font-size: 51px;
    align-self: center;
  }
  .floating-persona .type-code {
    justify-self: start;
    margin: 6px 0;
    font-size: 8px;
    padding: 2px 7px;
  }
  .floating-persona h2 {
    font-size: 23px;
    margin: 0 0 5px;
  }
  .floating-persona p {
    font-size: 12px;
    min-height: 0;
    line-height: 1.4;
  }
  .floating-persona .mini-brand,
  .orbit-sticker {
    display: none;
  }
  .hero-carousel {
    max-width: 294px;
    margin: 0;
  }
  .interest-ribbon {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 3px 1px 18px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .interest-ribbon a {
    flex-shrink: 0;
    font-size: 12px;
    scroll-snap-align: start;
  }
  .test-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .test-card {
    min-height: 0;
    padding: 19px;
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 15px;
  }
  .test-card .card-number {
    grid-column: 2;
    font-size: 10px;
  }
  .test-card .card-symbol {
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: start;
    font-size: 43px;
    margin: 13px 0;
  }
  .test-card h3 {
    grid-column: 2;
    margin: 7px 0;
    max-width: 100%;
    font-size: 21px;
    line-height: 1.25;
  }
  .test-card p {
    grid-column: 2;
    font-size: 13px;
    line-height: 1.6;
  }
  .test-card .card-link {
    grid-column: 2;
    margin-top: 12px;
    padding-top: 10px;
  }
  .connection-banner {
    padding: 23px;
  }
  .connection-banner h2 {
    font-size: 26px;
  }
  .tool-head {
    padding-top: 21px;
    display: block;
  }
  .quiz-intro {
    position: static;
    padding-left: 14px;
    margin-bottom: 23px;
  }
  .quiz-intro h1 {
    font-size: 29px;
    line-height: 1.25;
    margin: 8px 0 12px;
  }
  .quiz-intro p {
    font-size: 14px;
    line-height: 1.55;
  }
  body.quiz-in-progress .quiz-intro p {
    display: none;
  }
  .quiz-panel {
    padding: 20px 16px;
    border-radius: 16px;
    scroll-margin-top: 16px;
  }
  .quiz-meta {
    gap: 12px;
    font-size: 12px;
  }
  .quiz-meta > span:last-child {
    text-align: right;
    max-width: 58%;
  }
  .quiz-panel progress {
    margin: 15px 0 23px;
    height: 6px;
  }
  .quiz-panel legend {
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 20px;
  }
  .answers {
    gap: 10px;
  }
  .answers label {
    padding: 14px 12px;
    min-height: 54px;
    font-size: 16px;
  }
  .quiz-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    margin: 22px -8px 12px;
    padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
    background: #1b1927;
    border-top: 1px solid var(--line);
  }
  .quiz-actions .button {
    flex: 1;
    max-width: 78%;
    min-height: 50px;
    justify-content: center;
    font-size: 15px;
  }
  .quiz-actions .text-button {
    padding: 10px;
  }
  .result-card {
    padding: 20px 16px;
    align-items: flex-start;
    gap: 14px;
  }
  .result-card .result-emblem {
    width: 54px;
    height: 54px;
    font-size: 37px;
  }
  .result-card h2 {
    font-size: 29px;
    line-height: 1.2;
  }
  .result-detail {
    font-size: 16px;
    line-height: 1.8;
  }
  .result-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 26;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #17131f;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .result-actions .button {
    font-size: 13px;
    padding: 12px 8px;
    justify-content: center;
    line-height: 1.4;
    min-width: 0;
  }
  .focus-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .focus-tabs button {
    font-size: 12px;
    padding: 9px;
    line-height: 1.4;
  }
  .focus-reading {
    padding: 20px 17px;
  }
  .focus-reading .fine,
  .fine {
    font-size: 13px;
    line-height: 1.6;
  }
  .dimension-title {
    flex-wrap: wrap;
    gap: 3px 12px;
  }
  .dimension-ends {
    font-size: 12px;
    gap: 16px;
  }
  .result-top {
    align-items: start;
  }
  .result-top .eyebrow {
    font-size: 10px;
  }
  .result-feedback button {
    min-height: 44px;
  }
  .page-intro {
    margin-top: 30px;
  }
  .article-page {
    margin-top: 28px;
  }
  dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 18px);
    padding: 44px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    overscroll-behavior: contain;
  }
  #modal-body h2 {
    font-size: 26px;
    padding-right: 20px;
    margin: 0 0 14px;
  }
  .share-preview {
    padding: 12px;
  }
  #toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
  #consent {
    bottom: calc(82px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    max-height: min(240px, 38dvh);
    overflow-y: auto;
  }
  body:has(dialog[open]) {
    overflow: hidden;
  }
  body:has(dialog[open]) .result-actions,
  body:has(dialog[open]) .mobile-nav {
    visibility: hidden;
  }
  :lang(hi) .cosmic-copy h1 {
    font-size: 36px;
  }
  :lang(zh) .cosmic-copy h1,
  :lang(ja) .cosmic-copy h1,
  :lang(ko) .cosmic-copy h1 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .test-card:hover,
  .button:hover {
    transform: none;
  }
}

.locale-compact {
  display: none;
}
@media (max-width: 720px) {
  .locale-full {
    display: none;
  }
  .locale-compact {
    display: inline;
  }
  .language-picker summary {
    gap: 5px;
  }
  body:has(#share-result) {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}

/* atelier.css */
/* Celestial Garden: original painted cards and a quiet, legible reading surface. */
:root {
  --champagne: #e6cbaa;
  --rose: #edc8d6;
}
.quiz-discovery-preview {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 28px;
  border: 1px solid #b395b64d;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 10% 30%, #68436170, transparent 65%), #211b2c;
}
.quiz-discovery-preview img {
  width: 112px;
  height: 140px;
  object-fit: cover;
  flex: 0 0 auto;
}
.quiz-discovery-preview > div {
  padding: 20px 18px 20px 0;
  position: relative;
  z-index: 1;
}
.quiz-discovery-preview p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: #f2e5e9;
}
.quiz-discovery-preview .eyebrow {
  color: #e6cbaa;
}
.preview-spark {
  position: absolute;
  right: 25px;
  font-size: 150px;
  color: #e6cbaa12;
}
.quiz-in-progress .quiz-discovery-preview,
.quiz-has-result .quiz-discovery-preview {
  display: none;
}
.result-highlights {
  margin: 32px 0;
  text-align: left;
}
.result-highlights > h3 {
  font-size: 17px;
  color: #ded0e5;
  margin-bottom: 16px;
}
.result-highlights > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.result-highlights article {
  background: linear-gradient(145deg, #423047, #241d32);
  border: 1px solid #86698a66;
  padding: 20px;
  border-radius: 14px;
}
.result-highlights article:nth-child(2) {
  background: linear-gradient(145deg, #343950, #241d32);
}
.result-highlights article:nth-child(3) {
  background: linear-gradient(145deg, #35443f, #241d32);
}
.result-highlights .eyebrow {
  font-size: 10px;
  color: #e6cbaa;
  line-height: 1.7;
}
.result-highlights p {
  margin: 12px 0 0;
  font-size: 19px;
  color: #fff1e7;
  line-height: 1.4;
}
.ritual-fan {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1 / 1.4;
  margin: 30px auto;
}
.ritual-fan img {
  position: absolute;
  width: 67%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 45px #0008;
}
.ritual-fan img:first-child {
  left: 0;
  top: 10%;
  transform: rotate(-12deg);
}
.ritual-fan img:nth-child(2) {
  left: 30%;
  top: 9%;
  transform: rotate(12deg);
}
.ritual-fan img:last-child {
  left: 17%;
  top: 0;
  transform: rotate(-2deg);
}
.tarot-tool:has(.ritual-fan) {
  align-items: center;
}
.tarot-core-reading {
  margin: 24px 0;
  color: #e8d9e9;
}
.tarot-core-reading h3 {
  font-size: 16px;
  color: #edc8d6;
}
.ritual-action {
  border-left: 2px solid #e6cbaa;
  padding: 12px 0 12px 20px;
  margin-top: 20px;
  background: linear-gradient(90deg, #b38c8020, transparent);
}
.ritual-action .eyebrow {
  color: #e6cbaa;
}
.ritual-action p {
  margin: 8px 0 0;
}
.arcana-library {
  margin: 72px auto;
  max-width: 1180px;
}
.arcana-library header {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.arcana-library header h2 {
  font:
    500 clamp(28px, 4vw, 44px)/1.2 Georgia,
    "Yu Mincho",
    serif;
  color: #f5e4dc;
}
.arcana-library header p {
  color: #cbbcd5;
  line-height: 1.75;
}
.arcana-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 26px;
}
.arcana-entry {
  min-width: 0;
  padding: 14px;
  border: 1px solid #7e628b66;
  border-radius: 16px;
  background: linear-gradient(145deg, #302438, #1b1826);
  scroll-margin-top: 110px;
}
.arcana-entry > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  border-radius: 10px;
  margin-bottom: 18px;
}
.arcana-entry > h3 {
  font:
    500 24px/1.2 Georgia,
    "Yu Mincho",
    serif;
  color: #eed7b1;
  margin: 8px 0 12px;
}
.arcana-entry > p {
  min-height: 4.5em;
  font-size: 14px;
  line-height: 1.6;
  color: #e5d8eb;
}
.arcana-entry details {
  font-size: 14px;
  line-height: 1.7;
  color: #ddd1e5;
  border-top: 1px solid #9d819455;
}
.arcana-entry summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  color: #e8d2af;
}
.arcana-entry ul {
  padding-left: 20px;
}
.arcana-entry .arcana-action {
  color: #f4dfc7;
  border-left: 2px solid #b69a76;
  padding-left: 12px;
}
.sky-trio {
  margin: 30px 0;
}
.sky-trio > h3 {
  font:
    500 clamp(24px, 3vw, 34px)/1.3 Georgia,
    "Yu Mincho",
    serif;
  color: #f1decd;
}
.sky-trio > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sky-trio article {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #bba18060;
  border-radius: 16px;
  background: radial-gradient(ellipse at top, #75516765, #241d30 75%);
}
.trio-glyph {
  display: block;
  font-size: 42px;
  color: #efd1a3;
  margin-bottom: 12px;
}
.sky-trio article:nth-child(2) .trio-glyph {
  color: #e4c7e8;
}
.sky-trio article:nth-child(3) .trio-glyph {
  color: #bcded3;
}
.sky-trio h4 {
  color: #fff1e5;
  font:
    500 28px/1.25 Georgia,
    "Yu Mincho",
    serif;
  margin: 12px 0;
}
.sky-trio p,
.sky-trio small {
  color: #dfd0e6;
  line-height: 1.6;
  font-size: 14px;
}
@media (max-width: 760px) {
  .arcana-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .arcana-entry {
    padding: 10px;
  }
  .arcana-entry > h3 {
    font-size: 21px;
  }
  .arcana-entry > p {
    min-height: 0;
  }
  .result-highlights > div {
    grid-template-columns: 1fr;
  }
  .result-highlights article {
    padding: 16px 20px;
  }
  .result-highlights p {
    margin-top: 6px;
  }
  .sky-trio > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sky-trio article {
    display: grid;
    grid-template-columns: 60px 1fr;
    text-align: left;
    column-gap: 15px;
    padding: 20px;
  }
  .sky-trio .trio-glyph {
    grid-row: 1 / 5;
    align-self: center;
    text-align: center;
    margin: 0;
  }
  .sky-trio h4 {
    margin: 7px 0;
  }
  .sky-trio p {
    margin: 0;
  }
  .quiz-discovery-preview {
    gap: 16px;
  }
  .quiz-discovery-preview img {
    width: 82px;
    height: 125px;
  }
  .quiz-discovery-preview p {
    font-size: 14px;
  }
  .quiz-discovery-preview .eyebrow {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}
.tarot-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 22px 65px #0007;
}
.tarot-tool {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(22px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 5% 0%, #48314b70, transparent 60%), #1d1828;
}
.drawn-card {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  max-width: 320px;
  margin: auto;
  position: relative;
  text-align: center;
  transform: none !important;
  justify-content: flex-start;
}
.drawn-card > .eyebrow {
  display: block;
  color: var(--champagne);
  margin-bottom: 15px;
}
.drawn-card > h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 35px);
  color: var(--champagne);
  margin: 22px 0 8px;
}
.drawn-card > span:not(.eyebrow) {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #c2adc8;
}
.drawn-card .reading-actions {
  justify-content: center;
  margin: 8px 0 0;
}
.drawn-card .reading-actions .button {
  margin: 0;
}
.tarot-tool > .card-back {
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 2/3;
  background: url("/tarot/back.webp") center/cover;
  border: 0;
  border-radius: 12px;
  color: transparent;
  box-shadow: 0 20px 50px #0006;
}
.tarot-tool > .card-back > * {
  visibility: hidden;
}
.tarot-imagery {
  font-size: 0.94rem !important;
  color: #d0c2d6 !important;
  line-height: 1.7;
}
.tarot-situations {
  background: #ffffff05;
  border-color: #76608066 !important;
  font-size: 0.94rem;
  line-height: 1.65;
}
.reading-actions,
.channel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.reading-actions .button,
.channel-actions a {
  min-height: 44px;
}
.channel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #927c9c;
  border-radius: 999px;
  padding: 10px 18px;
  color: #f2e6f3;
  text-decoration: none;
  font-size: 0.9rem;
}
.auto-reading-choice {
  padding: 16px 20px;
  border: 1px solid #6d566b;
  background: #241c2c;
  border-radius: 16px;
  max-width: 900px;
  margin: 20px auto;
  color: #e0d3e5;
  font-size: 0.85rem;
  line-height: 1.55;
}
.auto-reading-choice label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-weight: 400;
}
.auto-reading-choice input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0;
  accent-color: #edc8d6;
}
.auto-reading-choice a {
  display: inline-block;
  margin: 7px 0 0 32px;
  color: #edc8d6;
}
.ai-reading {
  background: linear-gradient(140deg, #3b263c70, #211c30);
  border: 1px solid #a68b7966;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 38px);
  margin: 24px 0;
  line-height: 1.85;
}
.ai-reading .eyebrow {
  color: #e6cbaa;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}
.ai-reading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 35px);
  line-height: 1.25;
  margin: 18px 0;
  color: #fff0e2;
}
.ai-reading h4 {
  color: #edc8d6;
  font-size: 0.92rem;
  margin: 22px 0 8px;
}
.ai-reading blockquote {
  border-left: 2px solid #c8a779;
  padding-left: 18px;
  color: #f2e0cd;
  margin: 24px 0 0;
}
.reading-loading {
  border: 1px solid #776282;
  border-radius: 16px;
  padding: 24px;
  color: #e6cbaa;
  display: flex;
  gap: 14px;
  align-items: center;
  line-height: 1.6;
}
.reading-loading:before {
  content: "✧";
  font-size: 28px;
  animation: reading-glow 1.8s ease-in-out infinite alternate;
}
@keyframes reading-glow {
  to {
    opacity: 0.3;
  }
}
.tarot-teaser {
  overflow: hidden;
  position: relative;
  min-height: 340px;
  gap: 24px !important;
  padding: 28px !important;
  background: linear-gradient(110deg, #35243e, #1b1929) !important;
}
.tarot-teaser-art {
  width: 145px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: contain;
  flex: 0 0 145px;
  border-radius: 8px;
  transform: rotate(-7deg);
  box-shadow: 0 15px 30px #0007;
}
.tarot-teaser h2 {
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 32px) !important;
  color: #f7e6d0 !important;
}
.tarot-teaser p {
  color: #dbcfe0 !important;
}
.journal-panel {
  margin: 24px 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #755e7b;
  border-radius: 18px;
  background: linear-gradient(135deg, #312336, #191724);
}
.journal-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.4vw, 36px);
  color: #f4e3d2;
  font-weight: 400;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 20px 0;
}
.journal-entry {
  border: 1px solid #65536e;
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
  background: #ffffff04;
  overflow-wrap: anywhere;
}
.journal-entry img {
  width: 86px;
  height: 129px;
  object-fit: cover;
  border-radius: 6px;
  float: right;
  margin: 0 0 12px 16px;
}
.journal-entry h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  color: #ecd7c1;
}
.journal-entry time {
  font-size: 0.72rem;
  color: #c5b6cd;
}
.journal-entry button {
  min-height: 44px;
}
.journal-panel textarea,
.guide-form textarea {
  min-height: 110px;
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
}
.journal-panel label.check {
  align-items: flex-start;
  font-size: 0.92rem;
}
.guide-form {
  display: grid;
  gap: 14px;
}
.guide-form label {
  margin: 0;
}
.guide-form textarea {
  font-size: 16px;
}
.login-form input {
  font-size: 18px;
}
.login-form input[autocomplete="one-time-code"] {
  letter-spacing: 0.3em;
  text-align: center;
  font-size: 26px;
}
.share-sheet {
  max-width: 520px;
  margin: auto;
}
.share-preview img {
  max-height: 55vh;
  width: auto;
  max-width: 100%;
  margin: auto;
  display: block;
}
.share-hint {
  font-size: 0.78rem;
  line-height: 1.55;
}
.share-sheet-actions {
  gap: 10px;
}
.share-sheet-actions button {
  min-height: 46px;
  font-size: 0.9rem;
}
.ai-section {
  display: block !important;
}
@media (max-width: 680px) {
  .tarot-tool {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 20px;
  }
  .tarot-tool > div {
    width: 100%;
    min-width: 0;
  }
  .drawn-card {
    width: min(82%, 290px) !important;
  }
  .tarot-tool .drawn-card h2 {
    font-size: 28px;
  }
  .tarot-tool h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.3;
  }
  .tarot-imagery {
    font-size: 14px !important;
  }
  .tarot-situations {
    padding: 20px 20px 20px 34px !important;
  }
  .tarot-situations li {
    margin-bottom: 12px;
  }
  .reading-actions .button {
    flex: 1 1 155px;
    white-space: normal;
    font-size: 14px;
    padding: 13px 18px;
  }
  .tarot-teaser {
    min-height: 280px;
    padding: 24px 20px !important;
    gap: 20px !important;
  }
  .tarot-teaser-art {
    width: 112px;
    flex-basis: 112px;
  }
  .auto-reading-choice {
    padding: 14px;
    font-size: 12px;
    margin: 16px 0;
  }
  .auto-reading-choice a {
    margin-left: 32px;
  }
  .ai-reading {
    padding: 22px 20px;
    line-height: 1.8;
    font-size: 15px;
  }
  .ai-reading h3 {
    font-size: 27px;
  }
  .channel-actions a {
    font-size: 13px;
    flex: 1;
    padding: 10px 12px;
  }
  .share-sheet-actions {
    flex-wrap: wrap;
  }
  .site-footer .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reading-loading:before {
    animation: none;
  }
}

.share-sheet h2 {
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.35;
  text-wrap: balance;
}

.ritual-library-link {
  display: block;
  color: #e6cbaa;
  font-size: 14px;
  margin: 12px 0;
  padding: 8px 0;
}

/* cards.css */
.sbti-guide {
  max-width: 1120px;
  margin: 0 auto;
}
.sbti-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 32px 0;
}
.sbti-guide-hero h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.24;
  letter-spacing: -0.03em;
}
.sbti-guide-hero h1 em {
  color: #dfc4f4;
  font-style: normal;
}
.sbti-guide-hero .lede {
  color: #e9ddec;
}
.sbti-guide-portrait {
  max-width: 370px;
  width: 100%;
  margin: auto;
}
.sbti-guide-portrait .fine {
  text-align: center;
}
.sbti-guide-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 22px 0;
  margin-bottom: 30px;
  border-block: 1px solid #665673;
}
.sbti-guide p {
  line-height: 1.85;
}
.sbti-guide .article-block,
.sbti-guide-results {
  scroll-margin-top: 110px;
}
.sbti-guide-results {
  padding: 30px 0;
}
.sbti-guide-results > p {
  max-width: 760px;
}
.sbti-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.sbti-type-note {
  border: 1px solid #766485;
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(130deg, #30233f, #191724);
}
.sbti-type-note[data-palette="bloom"] {
  background: linear-gradient(130deg, #3b2332, #1e1923);
  border-color: #896271;
}
.sbti-type-note[data-palette="solar"] {
  background: linear-gradient(130deg, #3c3027, #211c25);
  border-color: #8d7557;
}
.sbti-type-note[data-palette="tide"] {
  background: linear-gradient(130deg, #213937, #192127);
  border-color: #557c73;
}
.sbti-type-note h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  color: #fff4e8;
}
.sbti-type-note p {
  margin: 0;
  color: #e0d6e5;
  font-size: 16px;
}
.sbti-type-note .eyebrow {
  color: #e7cefc;
}
.sbti-type-note[data-palette="bloom"] .eyebrow {
  color: #ffc6da;
}
.sbti-type-note[data-palette="solar"] .eyebrow {
  color: #ffdfa8;
}
.sbti-type-note[data-palette="tide"] .eyebrow {
  color: #b6e8db;
}
.sbti-life-notes {
  display: grid;
  gap: 18px;
}
.sbti-life-notes section {
  padding: 8px 0 8px 24px;
  border-left: 2px solid #c5a2de;
}
.sbti-life-notes h3 {
  font-size: 22px;
  line-height: 1.5;
}
.sbti-life-notes span {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #dfc4f4;
}
.sbti-guide-end {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid #796481;
  border-radius: 18px;
  background: #251d32;
}
.sbti-guide-home-link {
  margin: -12px 0 24px;
}
@media (max-width: 760px) {
  .sbti-guide-hero h1 em {
    display: inline-block;
  }
  .sbti-guide-hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }
  .sbti-guide-portrait {
    max-width: 320px;
  }
  .sbti-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sbti-type-note {
    padding: 18px;
  }
}
@media (max-width: 420px) {
  .sbti-type-grid {
    grid-template-columns: 1fr;
  }
  .sbti-guide-jumps {
    gap: 12px 18px;
  }
}
.personality-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid #d8c5a45c;
  border-radius: 16px;
  background: #181421;
  color: #fff7ec;
  box-shadow: 0 18px 45px #09071145;
  text-align: left;
}
.personality-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.personality-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #100d1e80 0%,
    transparent 18%,
    transparent 34%,
    #14111d80 49%,
    #14111df5 72%,
    #14111d 100%
  );
}
.portrait-top {
  position: absolute;
  inset: 18px 20px auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 650;
  text-transform: uppercase;
  text-shadow: 0 1px 5px #000;
}
.portrait-copy {
  position: absolute;
  inset: auto 24px 20px;
}
.portrait-code {
  display: block;
  color: var(--card-tint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.personality-card .portrait-copy h1,
.personality-card .portrait-copy h2,
.personality-card .portrait-copy h3 {
  font:
    600 clamp(24px, 2.7vw, 36px)/1.13 Georgia,
    "Yu Mincho",
    serif;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  color: #fff7ec;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.personality-card .portrait-copy p {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.55;
  color: #f0e8ef;
  margin: 0;
  max-width: 100%;
  text-wrap: pretty;
}
.portrait-signature {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddc5a44a;
  margin-top: 20px;
  padding-top: 12px;
  font-size: 10px;
  color: var(--card-tint);
  letter-spacing: 0.05em;
}
.cosmic-stage.personality-stage {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 4px 0 0;
  overflow: hidden;
}
.cast-companion {
  position: absolute;
  right: 7%;
  top: 33%;
  width: 26%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid #e7cda1;
  border-radius: 50%;
  box-shadow: 0 8px 24px #100a19aa;
}
.cast-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cast-role-grid article {
  min-width: 0;
}
.cast-role-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.cast-line {
  color: #ead4b2;
}
.cast-library {
  margin: 56px 0;
}
.result-value {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.result-value > div {
  padding: 24px;
  border: 1px solid #776584;
  border-radius: 16px;
  background: #211b2b;
}
.ai-next-step {
  padding: 20px;
  border-left: 3px solid #e9c69c;
  background: #272030;
}
.ai-reading details {
  margin-top: 20px;
}
@media (max-width: 700px) {
  .cast-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .result-value {
    grid-template-columns: 1fr;
  }
  .cast-role-grid h3 {
    font-size: 18px;
  }
}
.deck-kicker,
.deck-hint {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: #e3d8eb;
  margin: 0 0 16px;
}
.deck-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #c7bbd5;
}
.portrait-rail {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px max(18px, calc((100% - 326px) / 2)) 26px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline-offset: -2px;
}
.portrait-rail::-webkit-scrollbar {
  display: none;
}
.portrait-slide {
  display: block;
  flex: 0 0 326px;
  max-width: calc(100vw - 96px);
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.35s,
    opacity 0.35s;
  transform: scale(0.95);
  opacity: 0.7;
}
.portrait-slide.is-current,
.portrait-slide:focus-visible {
  transform: scale(1);
  opacity: 1;
}
.portrait-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  padding: 0 6px;
  font-size: 13px;
  color: #f1e6f7;
}
.portrait-start > span {
  color: #d6ef78;
  font-size: 21px;
}
.deck-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.deck-controls button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #756583;
  background: #1b152be0;
  color: #f4eafc;
  border-radius: 50%;
  cursor: pointer;
}
.deck-dots {
  display: flex;
  gap: 0;
}
.deck-dots button {
  border: 0;
  background: none;
  min-width: 28px;
}
.deck-dots span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9d8fac;
  margin: auto;
}
.deck-dots [aria-pressed="true"] span {
  background: #e5ce9f;
  width: 18px;
  border-radius: 4px;
}
.result-card.portrait-result {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: transparent;
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--ink);
  border-radius: 0;
}
.result-card.portrait-result:after {
  display: none;
}
.portrait-result .personality-card {
  max-width: 340px;
}
.portrait-result .result-keepsake h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 20px;
}
.result-keepsake p {
  color: var(--muted);
  line-height: 1.6;
}
.result-keepsake .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.result-keepsake .result-actions .button {
  white-space: normal;
  text-align: center;
}
.test-card.illustrated-test {
  overflow: hidden;
  background: #1b1728;
  color: #fff7ec;
  border-color: #685778;
  min-height: 380px;
  padding-top: 190px;
}
.illustrated-test .test-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 36%;
  mask-image: linear-gradient(#000 58%, transparent);
}
.test-card.illustrated-test:after {
  display: none;
}
.illustrated-test .card-number {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  color: #fff7ec;
  background: #191322d9;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 10px;
}
.illustrated-test h3,
.illustrated-test p,
.illustrated-test .card-link {
  position: relative;
  color: inherit;
}
.test-card.illustrated-test p {
  color: #e1d7e8;
}
.test-card.illustrated-test .card-link {
  color: #e8d4ac;
}
.share-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.share-styles button {
  padding: 10px 14px;
  border: 1px solid #80708f;
  border-radius: 99px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
}
.share-styles [aria-pressed="true"] {
  background: #edd7af;
  color: #211729;
  border-color: #edd7af;
}
.share-link-field {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.shared-page > .personality-card {
  max-width: 400px;
  justify-self: center;
}
@media (min-width: 1100px) {
  .cosmic-hero {
    grid-template-columns: 1fr 1fr;
  }
  .cosmic-copy {
    padding-right: 20px;
  }
}
@media (max-width: 700px) {
  .cosmic-hero {
    padding-bottom: 24px;
  }
  .cosmic-stage.personality-stage {
    margin: 20px -14px 0;
    width: calc(100% + 28px);
  }
  .portrait-rail {
    gap: 16px;
    padding-left: max(24px, calc((100% - 286px) / 2));
    padding-right: max(24px, calc((100% - 286px) / 2));
  }
  .portrait-slide {
    flex-basis: 286px;
  }
  .portrait-copy {
    inset: auto 20px 16px;
  }
  .portrait-signature {
    margin-top: 14px;
    padding-top: 10px;
  }
  .result-card.portrait-result {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portrait-result .personality-card {
    width: min(100%, 340px);
    justify-self: center;
  }
  .personality-card .portrait-copy h1,
  .personality-card .portrait-copy h2,
  .personality-card .portrait-copy h3 {
    font-size: 28px;
  }
  .personality-card .portrait-copy p {
    font-size: 13px;
  }
  .result-keepsake {
    text-align: center;
  }
  .result-keepsake .result-actions {
    justify-content: center;
  }
  .test-card.illustrated-test {
    padding-top: 145px;
    min-height: 340px;
  }
  .illustrated-test .test-art {
    height: 185px;
  }
  .illustrated-test .card-number {
    left: 10px;
    top: 10px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-slide {
    transition: none;
  }
  .portrait-rail {
    scroll-behavior: auto;
  }
}
@media (max-width: 700px) {
  .cosmic-hero {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 26px;
  }
  .cosmic-copy {
    display: contents;
  }
  .cosmic-copy .eyebrow {
    order: 0;
  }
  .cosmic-copy h1 {
    order: 1;
    font-size: clamp(36px, 10vw, 46px);
    margin: 12px 0 8px;
  }
  .cosmic-copy > p:not(.hero-fine) {
    order: 4;
    font-size: 13px;
    margin-top: 14px;
    color: #d2c7dd;
  }
  .cosmic-stage.personality-stage {
    order: 5;
    margin: 4px -20px 0;
    width: calc(100% + 40px);
  }
  .cosmic-copy .cosmic-cta {
    order: 2;
    margin-top: 8px;
  }
  .cosmic-copy .hero-fine {
    order: 3;
    margin-top: 8px;
  }
  .deck-kicker {
    display: none;
  }
  .portrait-rail {
    padding-top: 8px;
    padding-bottom: 12px;
  }
  .deck-hint {
    margin-top: 6px;
  }
  .portrait-start {
    margin-top: 9px;
  }
}

/* commerce.css */
.commerce-heading {
  max-width: 900px;
  margin: 56px auto 36px;
  text-align: center;
}
.commerce-heading h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.commerce-heading > p {
  max-width: 720px;
  margin: 24px auto;
  line-height: 1.75;
}
.commerce-notice {
  font-size: 0.88rem;
  line-height: 1.65 !important;
  color: #d8cfdf;
  background: #211d2c;
  border: 1px solid #51475f;
  border-radius: 12px;
  padding: 16px 20px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.report-product {
  background: #1c1825;
  border: 1px solid #403649;
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
}
.report-cover {
  position: relative;
  margin: 0;
  background: #18131f;
  color: #faf6eb;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4/5;
}
.report-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.86;
}
.report-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, #130e1edd 100%);
  z-index: 0;
}
.report-cover figcaption {
  position: absolute;
  z-index: 1;
  bottom: 0;
  padding: 8%;
  width: 100%;
  box-sizing: border-box;
}
.report-cover figcaption > span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--report-color);
}
.report-cover strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 12px 0;
}
.report-cover p {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}
.report-product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.report-product-body h2,
.report-product-body p {
  margin: 0;
}
.report-product-body h2 {
  font-size: 1.2rem;
}
.report-product-body p {
  color: #d1c7dd;
  line-height: 1.7;
  min-height: 8.5em;
}
.report-product-body > div > span:not(.report-price) {
  display: block;
  font-size: 0.85rem;
  color: #d1c7dd;
  margin-top: 8px;
}
.report-price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.report-product-body .button {
  text-align: center;
  justify-content: center;
}
.report-detail {
  display: grid;
  grid-template-columns: minmax(250px, 420px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1120px;
  margin: 48px auto;
}
.report-detail .report-cover {
  border-radius: 16px;
  box-shadow: 0 20px 60px #0005;
  transform: rotate(-2deg);
}
.report-detail h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.report-policy,
.report-free {
  max-width: 900px;
  margin: 48px auto;
  padding: 32px;
  border: 1px solid #483b52;
  border-radius: 16px;
  background: #1b1724;
}
.report-free {
  background: linear-gradient(120deg, #32243b, #1d2229);
}
.report-policy p,
.report-free p {
  line-height: 1.85;
}
.report-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin: 32px 0;
  border-radius: 16px;
  border: 1px solid #625072;
  background: #27202f;
}
.report-cta img {
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.report-cta h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.report-cta p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.sample-report {
  max-width: 780px;
  margin: 48px auto;
  padding: clamp(24px, 5vw, 64px);
  background: #f3ebde;
  color: #342c3a;
  border-radius: 16px;
  box-shadow: 0 20px 70px #0004;
}
.sample-report header h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}
.sample-report header > p {
  font-size: 0.88rem;
}
.sample-report p {
  color: #514657;
  line-height: 1.95;
}
.sample-report h2 {
  font-size: 1.35rem;
  color: #342c3a;
}
.sample-report .fine {
  color: #62516c;
}
.sample-report .eyebrow {
  color: #675577;
}
.sample-report section {
  position: relative;
  border-top: 1px solid #bcacbf;
  padding: 24px 0;
}
.sample-number {
  color: #796282;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.6rem;
}
.sample-lede {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 32px 0;
}
.sample-lede img {
  max-width: 38%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
}
.sample-lede blockquote {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.3;
  font-style: italic;
}
.sample-report a {
  color: #55366e;
}
.sample-report .button {
  color: #201827;
}
.sample-report .button.secondary {
  background: transparent;
  border-color: #756480;
}
.sample-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.purchase-review {
  max-width: 900px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}
.purchase-review > section {
  padding: 28px;
  background: #211b2a;
  border: 1px solid #51405e;
  border-radius: 16px;
  min-width: 0;
}
.purchase-review select {
  max-width: 100%;
  font-size: 1rem;
}
.purchase-review button:disabled {
  opacity: 1;
  background: #45394f;
  color: #e2d3ee;
  cursor: not-allowed;
  border: 1px solid #82708b;
}
.purchase-review p {
  line-height: 1.8;
}
.purchase-review .report-price {
  display: block;
  margin: 24px 0;
}
.commerce-article p {
  line-height: 1.9;
}
.purchase-review [role="status"] {
  color: #d7c3e8;
  font-size: 0.9rem;
}
.report-cta a {
  overflow-wrap: anywhere;
}
.tarot-tool > .report-cta {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .report-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .report-product-body p {
    min-height: 0;
  }
  .report-cover {
    aspect-ratio: 4/4.3;
  }
  .report-cover strong {
    font-size: 2.4rem;
  }
  .report-detail {
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 32px auto;
  }
  .report-detail .report-cover {
    width: min(80%, 340px);
    justify-self: center;
  }
  .report-detail h1 {
    margin-top: 0;
  }
  .commerce-heading {
    margin: 32px auto;
  }
  .report-policy,
  .report-free {
    padding: 24px 20px;
    margin: 32px auto;
  }
  .purchase-review {
    grid-template-columns: 1fr;
  }
  .sample-report {
    margin: 24px 0;
  }
  .report-cta {
    padding: 18px;
    gap: 14px;
  }
  .report-cta img {
    width: 66px;
    height: 90px;
  }
  .report-cta h3 {
    font-size: 1.12rem;
  }
  .sample-lede {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .report-detail .report-cover {
    transform: none;
  }
}

/* spaces.css */
/* The space uses shared artwork; personal choices are small, editable records. */
.space-intro {
  padding-bottom: 18px;
}
.space-private {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.space-scene {
  --space-glow: #786494;
  --space-accent: #d8c9ef;
  position: relative;
  border: 1px solid #bda3c14d;
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, var(--space-glow), transparent 75%),
    #1a1926;
}
.space-scene[data-space-theme="bloom"] {
  --space-glow: #784b60;
  --space-accent: #f3cfda;
}
.space-scene[data-space-theme="tide"] {
  --space-glow: #35615e;
  --space-accent: #c3e6d8;
}
.space-scene-head {
  text-align: center;
  margin-bottom: 28px;
}
.space-scene-head .eyebrow {
  color: var(--space-accent);
  letter-spacing: 0.16em;
  font-size: 11px;
}
.space-scene-head h1,
.space-scene-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  margin: 12px 0;
}
.space-mood {
  display: inline-block;
  border: 1px solid #d2c4da4d;
  border-radius: 99px;
  padding: 9px 17px;
  color: #f3e9f6;
  font-size: 14px;
  background: #1c192540;
}
.space-display {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.space-display-item {
  flex: 0 1 300px;
  min-width: 0;
}
.space-display-item .personality-card {
  width: 100%;
  min-height: 0;
  aspect-ratio: 3/4;
  box-shadow: 0 18px 35px #09061455;
  border-radius: 14px;
}
.space-display-item .portrait-copy h3 {
  font-size: clamp(20px, 2.5vw, 30px);
}
.space-display-item .portrait-copy p {
  font-size: 13px;
  line-height: 1.5;
}
.space-display-item .portrait-top {
  font-size: 9px;
}
.space-display-item .portrait-signature {
  font-size: 8px;
}
.space-display-item > .button {
  display: flex;
  margin-top: 14px;
  text-align: center;
  white-space: normal;
  justify-content: center;
}
.space-symbol-card {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #201c2c;
}
.space-symbol-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.space-symbol-card > div {
  position: absolute;
  inset: 25% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  background: linear-gradient(transparent, #16111cf5);
}
.space-symbol-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 10px 0;
}
.space-symbol-card p {
  font-size: 13px;
  line-height: 1.5;
}
.space-signature {
  text-align: center;
  color: var(--space-accent);
  font-family: Georgia, serif;
  margin-top: 25px;
  letter-spacing: 0.09em;
}
.space-preferences {
  color: #eddfef;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
}
.space-preferences summary {
  cursor: pointer;
}
.space-preferences dl > div {
  border-top: 1px solid #c5acd333;
  padding: 10px 0;
}
.space-preferences dt {
  font-weight: 600;
}
.space-preferences dd {
  margin: 4px 0 0;
}
.space-preferences strong {
  display: block;
  font-weight: 500;
}
.space-empty {
  text-align: center;
  padding: 22px 12px 36px;
  max-width: 460px;
}
.space-empty > span {
  display: block;
  color: var(--space-accent);
  font-size: 76px;
  font-family: Georgia, serif;
}
.space-empty p {
  margin: 12px 0 24px;
}
.space-editor {
  padding: 28px 0;
}
.space-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.space-editor fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
  margin: 0;
}
.space-editor legend {
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 15px;
}
.space-controls > label {
  display: grid;
  gap: 12px;
  font-size: 15px;
}
.space-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
}
.space-palettes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.space-palettes label {
  flex: 1;
  cursor: pointer;
  border: 1px solid #756281;
  border-radius: 12px;
  padding: 12px 10px;
  background: #352c48;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.space-palettes [data-palette="bloom"] {
  background: #4b2e3e;
}
.space-palettes [data-palette="tide"] {
  background: #254b48;
}
.space-palettes label:has(input:checked) {
  border-color: #f5e8ff;
  box-shadow: 0 0 0 1px #f5e8ff;
}
.space-palettes input,
.space-pick input,
.ritual-option input {
  accent-color: #e3ceef;
  flex-shrink: 0;
}
.space-editor .space-collection {
  margin-top: 28px;
}
.space-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.space-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.space-pick:has(input:checked) {
  border-color: #d9bcdf;
  background: #34263d;
}
.space-pick img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.space-pick b {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}
.space-pick small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.space-actions,
.space-link,
.space-next,
.space-visitor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 14px;
}
.space-actions .button {
  white-space: normal;
}
.space-link:empty {
  display: none;
}
.space-next {
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.space-next a {
  color: #e7d1ec;
  font-size: 15px;
}
.space-account {
  margin: 18px 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.space-account > summary {
  cursor: pointer;
  color: var(--muted);
  padding: 12px 0;
}
.space-visitor {
  justify-content: center;
  text-align: center;
  padding: 24px 0;
}
.space-visitor p {
  flex-basis: 100%;
}
.shared-space {
  max-width: 1080px;
  margin: 26px auto;
}
.universe-intro {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 28px;
  align-items: center;
  max-width: 900px;
  margin: 36px auto 30px;
}
.universe-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  margin: 16px 0;
}
.universe-intro p {
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.universe-intro > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 100px 100px 14px 14px;
  box-shadow: 0 15px 50px #674c7533;
}
.universe-ritual {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid #80698666;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top left, #55395350, transparent 65%), #211c2b;
}
.universe-ritual > .eyebrow {
  color: #e8c9da;
  font-size: 11px;
}
.universe-ritual h2 {
  font-size: clamp(24px, 3vw, 35px);
  line-height: 1.25;
  margin: 12px 0 16px;
}
.ritual-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.ritual-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid #756180;
  border-radius: 15px;
  padding: 24px 16px;
  background: #282035;
  text-align: center;
  cursor: pointer;
}
.ritual-option input {
  position: absolute;
  top: 14px;
  left: 12px;
}
.ritual-symbol {
  color: #ebd0e0;
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
}
.ritual-option b {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.ritual-option:has(input:checked) {
  background: #48304f;
  border-color: #e9c6e1;
  box-shadow: 0 0 0 1px #e9c6e1;
}
.ritual-consent {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
  align-items: start;
}
.ritual-reflection,
.ritual-friend {
  border-left: 2px solid #d2a7c2;
  background: #eac3da0b;
  padding: 22px;
  margin: 25px 0;
}
.ritual-friend {
  margin: 16px 0;
  padding: 14px 18px;
}
.ritual-friend > span {
  font-size: 12px;
  color: var(--muted);
}
.ritual-friend p {
  margin-top: 7px;
}
.ritual-reflection h3 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 12px 0;
}
.ritual-reflection p {
  line-height: 1.7;
  margin: 15px 0;
}
.ritual-together {
  color: #edcfdf;
}
.ritual-totals {
  margin: 30px 0 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ritual-totals h3 {
  font-size: 17px;
  margin-bottom: 20px;
}
.ritual-totals > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 14px 0;
  font-size: 14px;
}
.ritual-totals progress {
  grid-column: 1/-1;
  width: 100%;
  height: 5px;
  accent-color: #d6b8d8;
}
.universe-next {
  max-width: 900px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.universe-next > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.universe-next h2 {
  font-size: 22px;
  margin: 12px 0;
}
.universe-next p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0;
}
#modal .space-display {
  overflow-x: auto;
  justify-content: start;
}
#modal .space-display-item {
  flex: 0 0 210px;
}
@media (max-width: 650px) {
  .space-scene {
    padding: 24px 16px 18px;
    border-radius: 18px;
  }
  .space-scene-head {
    margin-bottom: 20px;
  }
  .space-scene-head h2 {
    font-size: 28px;
  }
  .space-mood {
    font-size: 12px;
    padding: 8px 12px;
  }
  .space-display {
    overflow-x: auto;
    justify-content: start;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    gap: 14px;
  }
  .space-display-item {
    flex: 0 0 min(255px, 90%);
    scroll-snap-align: center;
  }
  .space-display-item:only-child {
    margin: auto;
  }
  .space-controls,
  .space-picker,
  .universe-next {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .space-pick {
    padding: 10px 14px;
  }
  .space-pick b {
    font-size: 14px;
  }
  .space-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .space-next {
    align-items: start;
    flex-direction: column;
  }
  .universe-intro {
    grid-template-columns: 1fr 92px;
    gap: 12px;
    margin: 22px auto;
  }
  .universe-intro > img {
    height: 148px;
    border-radius: 65px 65px 12px 12px;
  }
  .universe-intro h1 {
    font-size: 32px;
    margin: 10px 0;
  }
  .universe-intro p {
    font-size: 13px;
    line-height: 1.6;
  }
  .universe-ritual {
    padding: 22px 18px;
  }
  .ritual-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ritual-option {
    flex-direction: row;
    min-height: 70px;
    padding: 16px 14px 16px 43px;
    text-align: left;
  }
  .ritual-option input {
    top: 26px;
  }
  .ritual-symbol {
    font-size: 29px;
    flex: 0 0 34px;
    text-align: center;
  }
  .ritual-option b {
    font-size: 14px;
  }
  .ritual-reflection {
    padding: 18px;
  }
  .ritual-reflection .button {
    white-space: normal;
  }
}
