﻿    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:       #F8F6F2;
      --bg-alt:   #F0EBE2;
      --bg-deep:  #E8E0D4;
      --text:     #282724;
      --muted:    #686260;
      --faint:    #B0A898;
      --accent:   #8C7B65;
      --border:   #DDD8CF;
      --white:    #FDFCFA;
      --sage:     #8A9E88;
      --mauve:      #B89098;
      --near-black: #1A1815;

      /* I Ching palette */
      --ic-ink:          #0F0B07;
      --ic-parchment:    #EEE5C8;
      --ic-parchment-alt:#EDE4C5;
      --ic-gold:         #C0A060;
      --ic-warm-gold:    #C8B890;
      --ic-brown:        #8A6840;
      --ic-deep:         #2A2018;
      --ic-label:        #6B4E2A;
      --ic-number:       #7A5C30;
      --ic-chinese:      #8A7050;
      --ic-trigrams:     #7A6848;

      /* Runes palette */
      --rn-stone:        #5c5650;

      --serif:    'Cormorant Garamond', Georgia, serif;
      --sans:     'DM Sans', system-ui, sans-serif;

      --max:      1180px;
      --gap:      2rem;
    }

    html { font-size: 16px; scroll-behavior: smooth; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* Keyboard focus indicator — applies only during keyboard navigation, not mouse clicks */
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 2px;
    }

    /* Inputs and textareas use border-colour change on focus instead of an outline ring */
    input:focus-visible,
    textarea:focus-visible {
      outline: none;
    }

    /* Newsletter bar signals focus via the container border, not the input itself */
    .newsletter-form:focus-within {
      border-color: var(--accent);
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-weight: 300;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

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

    /* ─── UTILITY ─── */

    /* Credible citation links — underline only, tooltip shows source on hover */
    .cite-link {
      color: inherit;
      text-decoration: underline;
      text-decoration-color: var(--faint);
      text-underline-offset: 3px;
      position: relative;
    }
    .cite-link::after {
      content: attr(data-source);
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: var(--near-black);
      color: var(--white);
      font-family: var(--sans);
      font-size: 0.68rem;
      font-weight: 400;
      letter-spacing: 0.02em;
      padding: 4px 10px;
      border-radius: 3px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s ease;
      z-index: 20;
    }
    .cite-link:hover::after { opacity: 1; }

    .container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
    .divider { width: 40px; height: 1px; background: var(--accent); margin: 1.5rem 0; }
    .divider--center { margin: 1.5rem auto; }
    .label {
      font-family: var(--sans);
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
    }

    /* ─── HEADER ─── */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 0 2rem;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      font-family: var(--serif);
      font-size: 1.55rem;
      font-weight: 400;
      letter-spacing: 0.08em;
      color: var(--text);
    }

    nav { display: flex; align-items: center; gap: 2.4rem; }

    nav a {
      font-size: 0.72rem;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      transition: color 0.2s;
    }
    nav a:hover { color: var(--text); }

    .nav-search {
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      color: var(--muted);
      transition: color 0.2s;
      display: flex;
      align-items: center;
    }
    .nav-search:hover { color: var(--text); }

    /* ─── HERO ─── */
    .hero {
      min-height: 92vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: stretch;
    }

    .hero-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 6rem 4rem 6rem 2rem;
      max-width: 560px;
      margin-left: auto;
    }

    .hero-text .label { margin-bottom: 2.5rem; }

    .hero-title {
      font-family: var(--serif);
      font-size: clamp(2.8rem, 4.5vw, 4.2rem);
      font-weight: 300;
      line-height: 1.15;
      color: var(--text);
      margin-bottom: 2rem;
    }

    .hero-title em {
      font-style: italic;
      color: var(--accent);
    }

    .hero-body {
      font-size: 0.95rem;
      color: var(--muted);
      max-width: 380px;
      line-height: 1.8;
      margin-bottom: 3rem;
    }

    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--text);
      border-bottom: 1px solid var(--accent);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
      width: fit-content;
    }
    .hero-cta:hover { color: var(--accent); }
    .hero-cta svg { transition: transform 0.2s; }
    .hero-cta:hover svg { transform: translateX(4px); }

    .hero-image {
      background: var(--bg-deep);
      position: relative;
      overflow: hidden;
    }

    .hero-image-inner {
      width: 100%;
      height: 100%;
      background-image: url('assets/images/in-use/20260205_062305.jpg');
      background-size: cover;
      background-position: center top;
      position: relative;
    }

    /* Decorative texture overlay */
    .hero-image-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 80% at 70% 30%, rgba(255,252,245,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 30% 80%, rgba(160,140,110,0.3) 0%, transparent 60%);
    }

    .hero-caption {
      position: absolute;
      bottom: 2.5rem;
      left: 2.5rem;
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.6);
    }

    /* ─── SECTION HEADER ─── */
    .section-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 3rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }

    .section-title {
      font-family: var(--serif);
      font-size: 1.9rem;
      font-weight: 300;
      line-height: 1.2;
    }

    .section-link {
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: gap 0.2s;
    }
    .section-link:hover { gap: 0.75rem; }

    /* ─── EDITORIAL STRIP ─── */
    .editorial {
      padding: 3.5rem 0 6rem;
    }

    .editorial-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2.5rem;
    }

    .article-card { display: flex; flex-direction: column; }

    .article-image {
      aspect-ratio: 4/5;
      margin-bottom: 1.5rem;
      overflow: hidden;
    }

    .article-image .placeholder {
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease;
    }
    .article-card:hover .placeholder { transform: scale(1.03); }

    .img-a { background: linear-gradient(135deg, #c8b89a 0%, #a89070 100%); }
    .img-b { background: linear-gradient(135deg, #9aaab8 0%, #6a8090 100%); }
    .img-c { background: linear-gradient(135deg, #b8a89a 0%, #907060 100%); }
    .img-d { background: linear-gradient(135deg, #a8b8a0 0%, #708060 100%); }
    .img-e { background: linear-gradient(135deg, #b8b0a0 0%, #908070 100%); }
    .img-f { background: linear-gradient(135deg, #a09898 0%, #706868 100%); }

    .article-section {
      font-size: 0.65rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 0.75rem;
    }

    .article-title {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 400;
      line-height: 1.3;
      margin-bottom: 0.75rem;
      color: var(--text);
    }

    .article-excerpt {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.75;
      flex-grow: 1;
    }

    .article-meta {
      margin-top: 1.25rem;
      font-size: 0.68rem;
      color: var(--faint);
      letter-spacing: 0.06em;
    }

    /* ─── DIVINATION TOOLS ─── */
    .tools {
      background: var(--bg-alt);
      padding: 6rem 0;
    }

    .tools-intro {
      max-width: 540px;
      margin-bottom: 3.5rem;
    }

    .tools-intro p {
      font-size: 0.9rem;
      color: var(--muted);
      margin-top: 1rem;
      line-height: 1.8;
    }

    .tools-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }

    .tool-card {
      background: var(--white);
      padding: 2.5rem 2rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: border-color 0.2s, transform 0.2s;
    }
    .tool-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    .tool-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    .tool-name {
      font-family: var(--serif);
      font-size: 1.05rem;
      font-weight: 400;
      line-height: 1.3;
      color: var(--text);
    }

    .tool-desc {
      font-size: 0.8rem;
      color: var(--muted);
      line-height: 1.7;
    }

    .tool-action {
      font-size: 0.68rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-top: auto;
    }


    /* ─── TOOLS ENTRY PROMPT ─── */
    .tools-entry {
      margin-bottom: 2.5rem;
    }

    .tools-entry-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      font-family: var(--sans);
      font-size: 0.85rem;
      font-weight: 400;
      letter-spacing: 0.04em;
      color: var(--accent);
      background: var(--white);
      border: 1px solid var(--accent);
      padding: 0.85rem 1.6rem;
      border-radius: 2px;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .tools-entry-btn:hover {
      background: var(--accent);
      color: var(--white);
      box-shadow: 0 2px 12px rgba(140,123,101,0.15);
    }

    /* ─── JOURNALING WIDE CARD ─── */
    .tool-card--wide {
      flex-direction: row;
      align-items: flex-start;
      gap: 2rem;
      margin-top: 1.5rem;
      padding: 2.5rem 2.5rem;
    }
    .tool-card--wide .tool-wide-content {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      flex: 1;
    }
    .tool-card--wide .tool-wide-right {
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }

    /* ─── PHILOSOPHY ─── */
    .philosophy {
      padding: 7rem 0;
      text-align: center;
    }

    .philosophy-quote {
      font-family: var(--serif);
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.5;
      max-width: 760px;
      margin: 0 auto;
      color: var(--text);
    }

    .philosophy-quote em {
      font-style: normal;
      color: var(--accent);
    }

    .philosophy-sub {
      margin-top: 2.5rem;
      font-size: 0.85rem;
      color: var(--muted);
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.85;
    }

    .philosophy-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 2.5rem;
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
    }

    /* ─── SHOP ─── */
    .shop {
      background: var(--bg-alt);
      padding: 6rem 0;
    }

    .shop-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }

    .product-card { cursor: pointer; }

    .product-image {
      aspect-ratio: 3/4;
      margin-bottom: 1.25rem;
      overflow: hidden;
    }

    .product-image .placeholder {
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease;
    }
    .product-card:hover .placeholder { transform: scale(1.03); }

    .product-category {
      font-size: 0.65rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--faint);
      margin-bottom: 0.4rem;
    }

    .product-name {
      font-family: var(--serif);
      font-size: 1.1rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 0.35rem;
    }

    .product-price {
      font-size: 0.82rem;
      color: var(--muted);
    }

    .product-tag {
      display: inline-block;
      margin-top: 0.75rem;
      font-size: 0.62rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--sage);
      border: 1px solid var(--sage);
      padding: 3px 8px;
      border-radius: 2px;
    }

    /* ─── NEWSLETTER ─── */
    .newsletter {
      padding: 7rem 0;
      text-align: center;
    }

    .newsletter-inner { max-width: 560px; margin: 0 auto; }

    .newsletter h2 {
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 300;
      margin-bottom: 1rem;
    }

    .newsletter p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 2.5rem;
    }

    .newsletter-form {
      display: flex;
      gap: 0;
      border: 1px solid var(--border);
      background: var(--white);
      max-width: 420px;
      margin: 0 auto;
    }

    .newsletter-input {
      flex: 1;
      border: none;
      background: none;
      padding: 1rem 1.25rem;
      font-family: var(--sans);
      font-size: 0.85rem;
      color: var(--text);
      outline: none;
    }
    .newsletter-input::placeholder { color: var(--faint); }

    .newsletter-btn {
      background: var(--text);
      color: var(--white);
      border: none;
      padding: 1rem 1.5rem;
      font-family: var(--sans);
      font-size: 0.68rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s;
      white-space: nowrap;
    }
    .newsletter-btn:hover { background: var(--accent); }

    .newsletter-note {
      margin-top: 1.25rem;
      font-size: 0.72rem;
      color: var(--faint);
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--text);
      color: rgba(255,255,255,0.7);
      padding: 4rem 0 2.5rem;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 3rem;
      padding-bottom: 3rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      margin-bottom: 2rem;
    }

    .footer-brand .logo {
      color: rgba(255,255,255,0.9);
      display: block;
      margin-bottom: 1.25rem;
    }

    .footer-brand p {
      font-size: 0.82rem;
      line-height: 1.8;
      color: rgba(255,255,255,0.45);
      max-width: 240px;
    }

    .footer-col-title {
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      margin-bottom: 1.25rem;
    }

    .footer-links { display: flex; flex-direction: column; gap: 0.65rem; }

    .footer-links a {
      font-size: 0.82rem;
      color: rgba(255,255,255,0.6);
      transition: color 0.2s;
    }
    .footer-links a:hover { color: rgba(255,255,255,0.9); }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .footer-copy {
      font-size: 0.72rem;
      color: rgba(255,255,255,0.3);
    }

    .footer-policy {
      display: flex;
      gap: 2rem;
    }

    .footer-policy a {
      font-size: 0.7rem;
      color: rgba(255,255,255,0.3);
      letter-spacing: 0.06em;
      transition: color 0.2s;
    }
    .footer-policy a:hover { color: rgba(255,255,255,0.6); }

    /* ─── SECONDARY PAGES (hidden, shown via JS) ─── */
    .page { display: none; }
    .page.active { display: block; }

    /* ─── ABOUT PAGE ─── */
    .about-hero {
      padding: 5rem 0 2.5rem;
      max-width: 720px;
    }

    .about-hero h1 {
      font-family: var(--serif);
      font-size: clamp(2.4rem, 4vw, 3.5rem);
      font-weight: 300;
      line-height: 1.2;
      margin-bottom: 2rem;
    }

    .about-hero p {
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.9;
      margin-bottom: 1.25rem;
    }

    .about-split {
      max-width: 720px;
      padding: 2.5rem 0 5rem;
      border-top: 1px solid var(--border);
    }

    .about-split h3 {
      font-family: var(--serif);
      font-size: 1.5rem;
      font-weight: 300;
      margin-bottom: 1.5rem;
    }

    .about-split p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.9;
      margin-bottom: 1rem;
    }

    /* ─── CONTACT PAGE ─── */
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 6rem;
      padding: 6rem 0;
    }

    .contact-layout form { padding-top: 5rem; }

    .contact-info h1 {
      font-family: var(--serif);
      font-size: 2.5rem;
      font-weight: 300;
      margin-bottom: 1.5rem;
    }

    .contact-info p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.85;
      margin-bottom: 2rem;
    }

    .contact-detail {
      margin-bottom: 1rem;
    }

    .contact-detail .label { margin-bottom: 0.25rem; }

    .contact-detail span {
      font-size: 0.88rem;
      color: var(--muted);
    }

    .form-group { margin-bottom: 1.5rem; }

    .form-label {
      display: block;
      font-size: 0.68rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.6rem;
    }

    .form-input,
    .form-textarea {
      width: 100%;
      background: var(--white);
      border: 1px solid var(--border);
      padding: 0.9rem 1rem;
      font-family: var(--sans);
      font-size: 0.88rem;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
      resize: none;
    }
    .form-input:focus,
    .form-textarea:focus { border-color: var(--accent); }

    .form-textarea { min-height: 140px; }

    .form-submit {
      background: var(--text);
      color: var(--white);
      border: none;
      padding: 1rem 2rem;
      font-family: var(--sans);
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s;
    }
    .form-submit:hover { background: var(--accent); }

    /* ─── ETHOS PAGE ─── */
    .ethos-hero {
      padding: 7rem 0 5rem;
      max-width: 680px;
    }

    .ethos-hero h1 {
      font-family: var(--serif);
      font-size: clamp(2.2rem, 3.5vw, 3.2rem);
      font-weight: 300;
      line-height: 1.2;
      margin-bottom: 2rem;
    }

    .ethos-hero p {
      font-size: 0.95rem;
      color: var(--muted);
      line-height: 1.9;
    }

    .ethos-pillars {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      padding: 5rem 0;
      border-top: 1px solid var(--border);
    }

    .pillar { padding-top: 2rem; border-top: 1px solid var(--accent); }

    .pillar h3 {
      font-family: var(--serif);
      font-size: 1.3rem;
      font-weight: 400;
      margin: 1rem 0;
    }

    .pillar p {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.85;
    }

    /* ─── POLICY PAGE ─── */
    .policy-layout {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 5rem;
      padding: 5rem 0;
    }

    .policy-nav { position: sticky; top: 80px; align-self: start; }

    .policy-nav a {
      display: block;
      font-size: 0.78rem;
      color: var(--muted);
      padding: 0.5rem 0;
      border-left: 2px solid var(--border);
      padding-left: 1rem;
      transition: color 0.2s, border-color 0.2s;
    }
    .policy-nav a:hover,
    .policy-nav a.active {
      color: var(--text);
      border-left-color: var(--accent);
    }

    .policy-content h2 {
      font-family: var(--serif);
      font-size: 1.8rem;
      font-weight: 300;
      margin-bottom: 1.5rem;
      margin-top: 3.5rem;
    }
    .policy-content h2:first-child { margin-top: 0; }

    .policy-content h3 {
      font-family: var(--serif);
      font-size: 1.15rem;
      font-weight: 400;
      margin: 2rem 0 0.75rem;
      color: var(--text);
    }

    .policy-content p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.9;
      margin-bottom: 1rem;
    }

    /* ─── PAGE NAV ─── */
    .page-hero-bg {
      background: var(--bg-alt);
      padding: 5rem 0 4rem;
      border-bottom: 1px solid var(--border);
    }

    .page-hero-bg h1 {
      font-family: var(--serif);
      font-size: clamp(2rem, 3.5vw, 3rem);
      font-weight: 300;
    }

    .page-hero-bg .label { margin-bottom: 1rem; }

    /* ─── BACK BUTTON ─── */
    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 2rem;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      transition: color 0.2s;
    }
    .back-btn:hover { color: var(--text); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 960px) {
      .hero { grid-template-columns: 1fr; min-height: auto; }
      .hero-image { display: none; }
      .hero-text { padding: 5rem 0 4rem; max-width: 100%; margin: 0; }
      .editorial-grid { grid-template-columns: 1fr 1fr; }
      .tools-grid { grid-template-columns: 1fr 1fr; }
      .shop-grid { grid-template-columns: 1fr 1fr; }
      .footer-top { grid-template-columns: 1fr 1fr 1fr; }
      nav { gap: 1.5rem; }
      .about-hero { padding: 4rem 0 2rem; }
      .about-split { padding: 2rem 0 4rem; }
      .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0; }
      .contact-layout form { padding-top: 0; }
      .policy-layout { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
      .policy-nav { position: static; margin-bottom: 2rem; }
    }

    @media (max-width: 640px) {
      .editorial-grid,
      .shop-grid { grid-template-columns: 1fr; }
      .tools-grid { grid-template-columns: 1fr 1fr; }
      nav a { display: none; }
      .footer-top { grid-template-columns: 1fr; }
      .about-hero { padding: 3rem 0 1.5rem; }
      .about-split { padding: 1.5rem 0 3rem; }
      .contact-layout { padding: 3rem 0; gap: 2rem; }
      .policy-layout { padding: 3rem 0; }
    }

    /* ─── TOOL LANDING PAGES ─── */
    .tool-lp-header {
      padding: 5rem 0 4rem;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }

    .tool-lp-title {
      font-family: var(--serif);
      font-size: clamp(2.2rem, 4.5vw, 3.8rem);
      font-weight: 300;
      line-height: 1.15;
      margin-top: 1rem;
      max-width: 720px;
    }

    .tool-lp-intro {
      font-size: 0.9rem;
      color: var(--muted);
      max-width: 560px;
      line-height: 1.9;
      margin-top: 1.25rem;
    }

    .tool-lp-body {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 6rem;
      padding: 5rem 0 7rem;
      align-items: start;
    }

    .tool-history h2 {
      font-family: var(--serif);
      font-size: 1.3rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 1.5rem;
    }

    .tool-history p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.95;
      margin-bottom: 1.25rem;
    }

    .tool-history-note {
      font-size: 0.9rem !important;
      color: var(--text) !important;
      font-style: italic;
    }

    .jl-skip-link {
      display: inline-block;
      margin-top: 1.8rem;
      font-family: var(--serif);
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      color: var(--muted);
      text-decoration: none;
      border-bottom: 1px solid rgba(160,120,60,0.3);
      padding-bottom: 1px;
      transition: color 0.2s, border-color 0.2s;
    }
    .jl-skip-link:hover {
      color: var(--text);
      border-color: rgba(160,120,60,0.7);
    }

    .tool-practice {
      position: sticky;
      top: 5rem;
    }

    .practice-type-selector {
      display: flex;
      gap: 0.6rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .practice-type-btn {
      font-family: var(--sans);
      font-size: 0.68rem;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0.5rem 1rem;
      border: 1px solid var(--border);
      background: none;
      cursor: pointer;
      color: var(--muted);
      transition: all 0.2s;
    }

    .practice-type-btn.active {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--white);
    }

    .practice-type-btn:hover { border-color: var(--accent); color: var(--text); }

    .practice-card-area {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 3rem 2.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.75rem;
    }

    /* Tarot card back */
    .card-back-visual {
      width: 130px;
      height: 220px;
      border-radius: 5px;
      background-image: url('assets/tarot/tarot-card-back.png');
      background-size: 100% 100%;
    }

    /* I Ching hexagram */
    .hex-visual {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 1.5rem auto;
      width: fit-content;
    }
    .hex-line-solid {
      width: 80px;
      height: 4px;
      background: var(--accent);
      display: block;
    }
    .hex-line-broken {
      display: flex;
      gap: 14px;
      width: 80px;
    }
    .hex-line-broken span {
      width: 33px;
      height: 4px;
      background: var(--accent);
      display: block;
    }

    /* Rune stone */
    .rune-stone-visual {
      width: 110px;
      height: 118px;
      border-radius: 50% 48% 52% 48% / 55% 50% 50% 45%;
      background: var(--bg-deep);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 1rem auto 1.5rem;
      color: var(--faint);
      font-family: var(--serif);
      font-size: 2.2rem;
      letter-spacing: -0.02em;
    }

    /* Journal survey */
    .jl-survey { width: 100%; border-top: 1px solid var(--border); padding-top: 2.5rem; }
    .jl-question { margin-bottom: 2.5rem; }
    .jl-q-text {
      font-family: var(--serif);
      font-size: 1.1rem;
      font-weight: 300;
      color: var(--text);
      margin-bottom: 0.4rem;
      line-height: 1.4;
    }
    .jl-q-note {
      font-size: 0.78rem;
      color: var(--faint);
      margin-bottom: 1rem;
      font-style: italic;
    }
    .jl-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .jl-option {
      background: none;
      border: 1px solid var(--border);
      padding: 0.6rem 1rem;
      font-family: var(--sans);
      font-size: 0.82rem;
      font-weight: 300;
      color: var(--muted);
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s, color 0.15s;
      line-height: 1.4;
      text-align: left;
    }
    .jl-option:hover { border-color: var(--accent); color: var(--text); }
    .jl-option.selected { background: var(--text); border-color: var(--text); color: var(--white); }
    .jl-submit {
      width: 100%;
      padding: 1rem 1.5rem;
      background: var(--text);
      color: var(--white);
      border: none;
      font-family: var(--sans);
      font-size: 0.85rem;
      font-weight: 400;
      letter-spacing: 0.06em;
      cursor: pointer;
      margin-top: 0.5rem;
      transition: opacity 0.2s;
    }
    .jl-submit:hover { opacity: 0.8; }
    .jl-submit:disabled { opacity: 0.35; cursor: default; }
    .jl-results { width: 100%; }
    .jl-results-label {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      display: block;
      margin-bottom: 1.5rem;
    }
    .jl-prompt-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
    .jl-prompt {
      font-family: var(--serif);
      font-size: 1rem;
      font-weight: 300;
      color: var(--text);
      line-height: 1.6;
      padding-left: 1.25rem;
      border-left: 1px solid var(--border);
    }
    .jl-note { font-size: 0.78rem; color: var(--faint); font-style: italic; margin-bottom: 1.5rem; }
    .jl-restart {
      background: none;
      border: 1px solid var(--border);
      padding: 0.65rem 1.25rem;
      font-family: var(--sans);
      font-size: 0.8rem;
      color: var(--muted);
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s;
    }
    .jl-restart:hover { border-color: var(--accent); color: var(--text); }
    .jl-section-head { font-size: 0.75rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 1.25rem 0 0.5rem; }
    .jl-caveat { font-size: 0.82rem; color: var(--muted); font-style: italic; margin: 1rem 0 1.25rem; padding: 0.75rem 1rem; border-left: 2px solid var(--border); }


    /* Journal input */
    .journal-input-area {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .journal-textarea {
      width: 100%;
      min-height: 140px;
      border: 1px solid var(--border);
      background: var(--bg);
      padding: 1.25rem;
      font-family: var(--sans);
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.7;
      resize: vertical;
      outline: none;
      transition: border-color 0.2s;
    }
    .journal-textarea:focus { border-color: var(--accent); }
    .journal-textarea::placeholder { color: var(--faint); }

    .practice-cta-btn {
      width: 100%;
      padding: 1rem 1.5rem;
      background: var(--text);
      color: var(--white);
      border: none;
      font-family: var(--sans);
      font-size: 0.72rem;
      font-weight: 400;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s;
    }
    .practice-cta-btn:hover { background: var(--accent); }

    .practice-note {
      font-size: 0.75rem;
      color: var(--faint);
      text-align: center;
      line-height: 1.75;
      max-width: 280px;
    }

    @media (max-width: 960px) {
      .tool-lp-body { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 5rem; }
      .tool-practice { position: static; }
    }


    /* ─── TOOL LANDING PAGES ─── */
    .tool-lp-header {
      padding: 5rem 0 4rem;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }

    .tool-lp-title {
      font-family: var(--serif);
      font-size: clamp(2.2rem, 4.5vw, 3.8rem);
      font-weight: 300;
      line-height: 1.15;
      margin-top: 1rem;
      max-width: 720px;
    }

    .tool-lp-intro {
      font-size: 0.9rem;
      color: var(--muted);
      max-width: 560px;
      line-height: 1.9;
      margin-top: 1.25rem;
    }

    .tool-lp-body {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 6rem;
      padding: 5rem 0 7rem;
      align-items: start;
    }

    .tool-history h2 {
      font-family: var(--serif);
      font-size: 1.3rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 1.5rem;
    }

    .tool-history p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.95;
      margin-bottom: 1.25rem;
    }

    .tool-history-note {
      font-size: 0.9rem !important;
      color: var(--text) !important;
      font-style: italic;
    }

    .tool-practice {
      position: sticky;
      top: 5rem;
    }

    .practice-type-selector {
      display: flex;
      gap: 0.6rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .practice-type-btn {
      font-family: var(--sans);
      font-size: 0.68rem;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0.5rem 1rem;
      border: 1px solid var(--border);
      background: none;
      cursor: pointer;
      color: var(--muted);
      transition: all 0.2s;
    }

    .practice-type-btn.active {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--white);
    }

    .practice-type-btn:hover { border-color: var(--accent); color: var(--text); }

    .practice-card-area {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 3rem 2.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.75rem;
    }

    /* Tarot card back */
    .card-back-visual {
      width: 130px;
      height: 220px;
      border-radius: 5px;
      background-image: url('assets/tarot/tarot-card-back.png');
      background-size: 100% 100%;
    }

    /* I Ching hexagram */
    .hex-visual {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 1.5rem auto;
      width: fit-content;
    }
    .hex-line-solid {
      width: 80px;
      height: 4px;
      background: var(--accent);
      display: block;
    }
    .hex-line-broken {
      display: flex;
      gap: 14px;
      width: 80px;
    }
    .hex-line-broken span {
      width: 33px;
      height: 4px;
      background: var(--accent);
      display: block;
    }

    /* Rune stone */
    .rune-stone-visual {
      width: 110px;
      height: 118px;
      border-radius: 50% 48% 52% 48% / 55% 50% 50% 45%;
      background: var(--bg-deep);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 1rem auto 1.5rem;
      color: var(--faint);
      font-family: var(--serif);
      font-size: 2.2rem;
      letter-spacing: -0.02em;
    }

    /* Journal input */
    .journal-input-area {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .journal-textarea {
      width: 100%;
      min-height: 140px;
      border: 1px solid var(--border);
      background: var(--bg);
      padding: 1.25rem;
      font-family: var(--sans);
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.7;
      resize: vertical;
      outline: none;
      transition: border-color 0.2s;
    }
    .journal-textarea:focus { border-color: var(--accent); }
    .journal-textarea::placeholder { color: var(--faint); }

    .practice-cta-btn {
      width: 100%;
      padding: 1rem 1.5rem;
      background: var(--text);
      color: var(--white);
      border: none;
      font-family: var(--sans);
      font-size: 0.72rem;
      font-weight: 400;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s;
    }
    .practice-cta-btn:hover { background: var(--accent); }

    .practice-note {
      font-size: 0.75rem;
      color: var(--faint);
      text-align: center;
      line-height: 1.75;
      max-width: 280px;
    }

    @media (max-width: 960px) {
      .tool-lp-body { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 5rem; }
      .tool-practice { position: static; }
    }


    /* ─── TAROT DRAW EXPERIENCE ─── */
    #page-tarot-draw .draw-header {
      padding: 2.5rem 0 2rem;
      border-bottom: 1px solid var(--border);
    }
    .draw-stage { display: none; }
    .draw-stage.active { display: block; }

    /* Stage 1: Shuffle */
    .shuffle-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 5rem 0 6rem;
      min-height: 60vh;
    }
    .shuffle-label {
      font-family: var(--sans);
      font-size: 0.82rem;
      color: var(--muted);
      letter-spacing: 0.03em;
      margin-bottom: 3rem;
      text-align: center;
    }
    .infinity-field {
      position: relative;
      width: 520px;
      height: 260px;
    }
    .s-card {
      position: absolute;
      width: 30px;
      height: 50px;
      background: var(--text);
      border-radius: 3px;
      border: 1px solid var(--accent);
      transform: translate(-50%, -50%);
      pointer-events: none;
    }
    .s-card::after {
      content: '✶';
      color: var(--accent);
      font-size: 0.55rem;
      opacity: 0.45;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
    }
    .shuffle-btn-row { margin-top: 3.5rem; text-align: center; }
    .shuffle-stop-btn, .shuffle-continue-btn {
      font-family: var(--sans);
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0.9rem 2.5rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .shuffle-stop-btn {
      background: transparent;
      border: 1px solid var(--text);
      color: var(--text);
    }
    .shuffle-stop-btn:hover { background: var(--text); color: var(--white); }
    .shuffle-stop-btn:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--text); }
    .shuffle-continue-btn {
      background: var(--text);
      border: 1px solid var(--text);
      color: var(--white);
      display: none;
    }
    .shuffle-continue-btn:hover { background: var(--accent); border-color: var(--accent); }

    /* Stage 2: Select */
    .select-wrap { padding: 3rem 0 5rem; }
    .select-header-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 3rem;
    }
    .card-descriptor-box {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 1.5rem 2rem;
      min-height: 110px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .desc-hint { font-size: 0.82rem; color: var(--faint); font-style: italic; }
    .desc-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; line-height: 1.2; }
    .desc-keyword { font-size: 0.8rem; color: var(--accent); margin-top: 0.4rem; letter-spacing: 0.03em; }
    .spread-box {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 1.5rem 2rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .spread-box-label {
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
      margin-bottom: 0.75rem;
    }
    .spread-positions-row { display: flex; gap: 0.75rem; }
    .spread-pos-slot {
      flex: 1;
      border: 1px dashed var(--border);
      padding: 0.6rem 0.4rem;
      text-align: center;
      font-family: var(--sans);
      font-size: 0.63rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--faint);
      transition: all 0.3s;
    }
    .spread-pos-slot.filled {
      border-color: var(--accent);
      color: var(--accent);
      border-style: solid;
      font-size: 0.62rem;
      letter-spacing: 0.04em;
      text-transform: none;
    }

    /* Fan spread */
    .semicircle-area {
      position: relative;
      width: 100%;
      height: 300px;
      overflow: hidden;
    }
    .fc {
      position: absolute;
      width: 20px;
      height: 34px;
      background: var(--text);
      border-top: 1px solid rgba(140,123,101,0.7);
      border-left: 1px solid rgba(140,123,101,0.3);
      border-right: 1px solid rgba(140,123,101,0.3);
      border-bottom: none;
      border-radius: 2px 2px 0 0;
      cursor: pointer;
      will-change: transform;
    }
    .fc.selected-card { background: var(--accent); z-index: 30; }

    /* Stage 3: Reading */
    .reading-wrap {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 4rem;
      padding: 4rem 0 6rem;
      align-items: start;
    }
    .reading-new-btn {
      font-family: var(--sans);
      font-size: 0.68rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0.75rem 1.6rem;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted);
      cursor: pointer;
      transition: all 0.2s;
      margin-bottom: 2.5rem;
      display: inline-block;
    }
    .reading-new-btn:hover { border-color: var(--text); color: var(--text); }
    .reading-card-block { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; }
    .reading-card-visual {
      width: 96px;
      min-width: 96px;
      height: 160px;
      background: var(--white);
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      padding: 0.75rem;
      text-align: center;
    }
    .reading-card-visual .card-glyph { color: var(--accent); font-size: 1.3rem; opacity: 0.55; }
    .reading-card-visual .card-name-sm {
      font-family: var(--serif);
      font-size: 0.68rem;
      line-height: 1.3;
      color: var(--muted);
    }
    .reading-pos-label {
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
      display: block;
      margin-bottom: 0.5rem;
    }
    .reading-card-title {
      font-family: var(--serif);
      font-size: 1.9rem;
      font-weight: 300;
      margin-bottom: 0.4rem;
      line-height: 1.15;
    }
    .reading-card-kw {
      font-size: 0.78rem;
      color: var(--accent);
      letter-spacing: 0.05em;
      margin-bottom: 1rem;
    }
    .reading-card-meaning {
      font-size: 0.9rem;
      line-height: 1.95;
      color: var(--text);
    }
    .reading-block-divider { height: 1px; background: var(--border); margin: 0.5rem 0 2.5rem; }
    .reading-sidebar-inner { position: sticky; top: 5rem; }

    @media (max-width: 960px) {
      .infinity-field { width: 300px; height: 160px; }
      .select-header-grid { grid-template-columns: 1fr; }
      .reading-wrap { grid-template-columns: 1fr; }
      .reading-sidebar-inner { position: static; margin-top: 2rem; }
      .reading-card-block { flex-direction: column; }
      .reading-card-visual { width: 100%; height: auto; flex-direction: row; min-height: 70px; padding: 1rem; }
    }


    /* ─── TAROT DRAW PAGE ─── */
    .draw-page-header {
      padding: 2.5rem 0 2rem;
      border-bottom: 1px solid var(--border);
    }

    /* Tool embed panel */
    .tool-embed-panel {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      min-height: 420px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .tool-embed-placeholder {
      text-align: center;
      color: var(--faint);
    }
    .tool-embed-placeholder .placeholder-icon {
      font-size: 1.8rem;
      opacity: 0.3;
      display: block;
      margin-bottom: 1rem;
    }
    .tool-embed-placeholder p {
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--faint);
    }

    /* Reading area */
    .draw-reading-wrap {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 4rem;
      padding: 4rem 0 6rem;
      align-items: start;
    }
    .draw-reading-content {}
    .draw-reading-sidebar { position: sticky; top: 5rem; }

    /* Card analysis blocks */
    .reading-intro {
      font-size: 0.88rem;
      color: var(--faint);
      font-style: italic;
      margin-bottom: 2.5rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--border);
    }
    .card-analysis-block {
      display: grid;
      grid-template-columns: 96px 1fr;
      gap: 2rem;
      margin-bottom: 3rem;
      padding-bottom: 3rem;
      border-bottom: 1px solid var(--border);
    }
    .card-analysis-block:last-of-type { border-bottom: none; }
    .card-face-placeholder {
      width: 96px;
      height: 160px;
      background: var(--bg-deep);
      border: 1px dashed var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--faint);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .card-analysis-text {}
    .card-position-label {
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
      display: block;
      margin-bottom: 0.5rem;
    }
    .card-name-placeholder {
      font-family: var(--serif);
      font-size: 1.8rem;
      font-weight: 300;
      color: var(--bg-deep);
      margin-bottom: 0.5rem;
      background: var(--bg-deep);
      border-radius: 2px;
      height: 2.4rem;
      width: 60%;
    }
    .card-keyword-placeholder {
      height: 0.8rem;
      width: 45%;
      background: var(--bg-alt);
      border-radius: 2px;
      margin-bottom: 1.25rem;
    }
    .card-meaning-placeholder {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .card-meaning-placeholder span {
      display: block;
      height: 0.75rem;
      background: var(--bg-alt);
      border-radius: 2px;
    }
    .card-meaning-placeholder span:nth-child(2) { width: 92%; }
    .card-meaning-placeholder span:nth-child(3) { width: 85%; }
    .card-meaning-placeholder span:nth-child(4) { width: 78%; }

    /* Interpretation section */
    .interpretation-section {
      margin-top: 3rem;
      padding-top: 3rem;
      border-top: 2px solid var(--border);
    }
    .interpretation-label {
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
      margin-bottom: 1rem;
      display: block;
    }
    .interpretation-placeholder {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 2rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }
    .interpretation-placeholder span {
      display: block;
      height: 0.75rem;
      background: var(--bg-alt);
      border-radius: 2px;
    }
    .interpretation-placeholder span:nth-child(2) { width: 95%; }
    .interpretation-placeholder span:nth-child(3) { width: 88%; }
    .interpretation-placeholder span:nth-child(4) { width: 72%; }

    /* ─── JOURNAL PAGE LAYOUT ─── */
    #page-tool-journal .tool-lp-body {
      grid-template-columns: 1fr;
      max-width: 760px;
      margin: 0 auto;
    }
    .journal-main { display: flex; flex-direction: column; gap: 3rem; }
    #page-tool-journal .tool-practice { position: sticky; top: 5rem; }
    @media (max-width: 960px) {
      #page-tool-journal .tool-lp-body { grid-template-columns: 1fr; gap: 3rem; }
      #page-tool-journal .tool-practice { display: none; }
    }

    /* ─── HOROSCOPE PAGE LAYOUT ─── */
    #page-tool-horoscope .tool-lp-body {
      grid-template-columns: 1fr;
    }
    #page-tool-horoscope .tool-practice { display: none; }
    #page-tool-horoscope .tool-history {
      border-top: 1px solid var(--border);
      padding-top: 4rem;
      margin-top: 2rem;
    }

    /* Horoscope sign grid */
    .hs-sign-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 0.65rem;
      margin-bottom: 3rem;
    }
    .hs-sign-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.3rem;
      padding: 0.85rem 0.4rem;
      border: 1px solid var(--border);
      background: none;
      cursor: pointer;
      border-radius: 6px;
      font-family: var(--sans);
      transition: border-color 0.15s, background 0.15s;
    }
    .hs-sign-btn:hover { border-color: var(--text); }
    .hs-sign-btn.active { border-color: var(--text); background: var(--surface); }

    .hs-profile-tagline { font-size: 0.95rem; line-height: 1.85; color: var(--text); margin-bottom: 0.75rem; font-style: italic; }
    .hs-read-more-btn { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; margin: 0.5rem 0 0; display: none; }
    .hs-read-more-btn:hover { color: var(--text); }
    .hs-long-desc { display: block; margin-top: 1.25rem; margin-bottom: 1.5rem; }
    .hs-long-desc p { font-size: 0.9rem; line-height: 1.9; color: var(--text); margin-bottom: 1rem; }



    .hs-sign-glyph { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
    .hs-sign-glyph svg { width: 40px; height: 40px; }
    .hs-sign-name { font-size: 0.68rem; font-weight: 500; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase; }
    .hs-sign-dates { font-size: 0.6rem; color: var(--faint); line-height: 1.4; text-align: center; }

    /* Horoscope reading area */
    .hs-reading { display: none; }
    .hs-reading.visible {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-bottom: 3rem;
    }
    .hs-profile {
      padding-right: 2.5rem;
      border-right: 1px solid var(--border);
      padding-top: 0.25rem;
    }
    .hs-reading-right {
      padding-left: 2.5rem;
    }
    .hs-profile-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; margin-bottom: 0.5rem; }
    .hs-profile-meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1.1rem; }
    .hs-profile-text { font-size: 0.9rem; line-height: 1.9; color: var(--text); }

    /* Horoscope tabs */
    .hs-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 2rem;
      gap: 0;
    }
    .hs-tab-btn {
      padding: 0.65rem 1.25rem;
      font-family: var(--sans);
      font-size: 0.78rem;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      border: none;
      background: none;
      cursor: pointer;
      color: var(--muted);
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: color 0.15s, border-color 0.15s;
    }
    .hs-tab-btn:hover { color: var(--text); }
    .hs-tab-btn.active { color: var(--text); border-bottom-color: var(--text); }
    .hs-horoscope-text {
      font-size: 0.92rem;
      line-height: 1.9;
      color: var(--text);
      margin-bottom: 1.25rem;
    }
    .hs-updated {
      font-size: 0.68rem;
      color: var(--faint);
      margin-top: 1.75rem;
      text-transform: uppercase;
      letter-spacing: 0.09em;
    }
    /* Horoscope graphics */
    .hs-graphics {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2.5rem;
    }
    .hs-graphic-svg {
      width: 100%;
      height: auto;
      display: block;
      color: var(--text);
    }
    .hs-graphic-label {
      font-size: 0.72rem;
      color: var(--muted);
      text-align: center;
      margin-top: 0.85rem;
      line-height: 1.65;
      font-style: italic;
    }
    @media (max-width: 768px) {
      .hs-sign-grid { grid-template-columns: repeat(4, 1fr); }
      .hs-graphics { grid-template-columns: 1fr; gap: 2rem; }
      .hs-reading.visible {
        grid-template-columns: 1fr;
      }
      .hs-profile {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        padding-top: 0;
      }
      .hs-reading-right {
        padding-left: 0;
      }
      .hs-read-more-btn { display: block; }
      .hs-long-desc { display: none; }
      .hs-long-desc.expanded { display: block; }
    }
    @media (max-width: 480px) {
      .hs-sign-grid { grid-template-columns: repeat(3, 1fr); }
      .hs-tab-btn { padding: 0.65rem 0.85rem; font-size: 0.72rem; }
    }

    @media (max-width: 960px) {
      .draw-reading-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 5rem;
      }
      .draw-reading-sidebar { display: none; }
      .card-analysis-block {
        grid-template-columns: 72px 1fr;
        gap: 1.25rem;
      }
      .card-face-placeholder { width: 72px; height: 120px; }
    }


    /* ─── PRACTICE FINDER ─── */
    .pf-wrap {
      max-width: 840px;
      margin: 0 auto;
      padding: 5rem 0 7rem;
    }
    .pf-q-label {
      font-family: var(--sans);
      font-size: 0.63rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent);
      display: block;
      margin-bottom: 1rem;
    }
    .pf-q-text {
      font-family: var(--serif);
      font-size: 1.6rem;
      font-weight: 300;
      color: var(--text);
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }
    .pf-q-note {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 1.75rem;
      font-style: italic;
    }
    .pf-options {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .pf-option {
      text-align: left;
      background: none;
      border: 1px solid var(--border);
      padding: 1rem 1.25rem;
      font-family: var(--sans);
      font-size: 0.88rem;
      font-weight: 300;
      color: var(--muted);
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
      line-height: 1.5;
    }
    .pf-option:hover {
      border-color: var(--accent);
      color: var(--text);
      background: var(--bg-alt);
    }
    .pf-option-unsure {
      opacity: 0.65;
      margin-top: 0.5rem;
    }
    .pf-option-unsure:hover {
      opacity: 1;
    }
    .pf-result-name {
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 300;
      color: var(--text);
      margin-bottom: 1rem;
    }
    .pf-result-desc {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.9;
      margin-bottom: 2rem;
      max-width: 480px;
    }
    .pf-result-actions {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }
    .pf-result-cta {
      display: inline-block;
      font-family: var(--sans);
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--white);
      background: var(--text);
      padding: 0.85rem 1.75rem;
      transition: opacity 0.2s;
    }
    .pf-result-cta:hover { opacity: 0.8; }
    .pf-restart-btn {
      background: none;
      border: none;
      font-family: var(--sans);
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .pf-restart-btn:hover { color: var(--text); }
    .pf-email-capture {
      margin-top: 2.5rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      max-width: 420px;
    }
    .pf-email-label {
      font-family: var(--sans);
      font-size: 0.85rem;
      color: var(--muted);
      margin-bottom: 1rem;
    }
    .pf-email-form {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .pf-email-input {
      flex: 1;
      min-width: 180px;
      padding: 0.6rem 0.9rem;
      font-family: var(--sans);
      font-size: 0.85rem;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text);
      border-radius: 2px;
      outline: none;
    }
    .pf-email-input:focus { border-color: var(--muted); }
    .pf-email-btn {
      padding: 0.6rem 1.2rem;
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      background: var(--text);
      color: var(--bg);
      border: none;
      border-radius: 2px;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .pf-email-btn:hover { opacity: 0.75; }
    @media (max-width: 760px) {
      .pf-wrap { padding: 3rem 0 5rem; }
      .pf-q-text { font-size: 1.3rem; }
    }

    /* ─── SPREAD TYPE SELECTOR ─── */
    .spread-selector-label {
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
      display: block;
      margin-bottom: 1.25rem;
    }
    .spread-type-cards {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .spread-type-card {
      background: var(--white);
      border: 1px solid var(--border);
      padding: 1.25rem 1.5rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      transition: border-color 0.2s, background 0.2s;
      text-align: left;
      width: 100%;
      font-family: inherit;
    }
    .spread-type-card:hover {
      border-color: var(--accent);
      background: var(--bg);
    }
    .spread-type-card.coming-soon {
      opacity: 0.45;
      cursor: default;
      pointer-events: none;
    }
    .spread-type-card-text {}
    .spread-type-card-name {
      font-family: var(--serif);
      font-size: 1.05rem;
      font-weight: 400;
      display: block;
      margin-bottom: 0.2rem;
      color: var(--text);
    }
    .spread-type-card-desc {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.5;
      display: block;
    }
    .spread-type-card-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.4rem;
      flex-shrink: 0;
    }
    .spread-type-card-count {
      font-size: 0.63rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--faint);
      white-space: nowrap;
    }
    .spread-type-card-arrow {
      color: var(--accent);
      font-size: 0.9rem;
    }
    .spread-type-card-soon {
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--faint);
    }


    /* Full card clickable — stretched link */
    .tool-card { position: relative; }
    .tool-action::after {
      content: '';
      position: absolute;
      inset: 0;
    }

    /* Mobile: spread selector above history on tarot landing page */
    @media (max-width: 960px) {
      .tool-lp-body { display: flex; flex-direction: column; }
      .tool-practice { order: -1; }
    }


    /* ─── DRAW PAGE DESCRIPTOR ─── */
    .draw-descriptor-wrap {
      overflow: hidden;
      max-height: 1400px;
      opacity: 1;
      transition: max-height 0.55s ease, opacity 0.4s ease;
    }
    .draw-descriptor-wrap.collapsed {
      max-height: 0;
      opacity: 0;
      pointer-events: none;
    }
    .draw-descriptor {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 4rem;
      padding: 4rem 0 4rem;
      border-bottom: 1px solid var(--border);
      align-items: start;
    }
    .draw-descriptor-content {}
    .draw-descriptor-content h2 {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 400;
      margin-bottom: 1rem;
    }
    .draw-descriptor-content p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.95;
      margin-bottom: 1rem;
    }
    .draw-descriptor-content p:last-child { margin-bottom: 0; }
    .draw-descriptor-aside {
      padding-top: 0.25rem;
    }
    .draw-descriptor-aside-label {
      font-size: 0.63rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--faint);
      display: block;
      margin-bottom: 0.75rem;
    }
    .draw-descriptor-aside-item {
      display: flex;
      align-items: baseline;
      gap: 0.75rem;
      padding: 0.6rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.82rem;
      color: var(--muted);
    }
    .draw-descriptor-aside-item:last-child { border-bottom: none; }
    .draw-descriptor-aside-item span:first-child {
      color: var(--accent);
      font-size: 0.6rem;
      flex-shrink: 0;
    }

    /* Reading area — hidden until card drawn */
    .draw-reading-wrap {
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
      pointer-events: none;
    }
    .draw-reading-wrap.revealed {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    @media (max-width: 960px) {
      .draw-descriptor {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
      }
    }



/* ─── I CHING TOOL ────────────────────────────────────────────────── */
.ic-tool-outer {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.ic-stage { display: none; }
.ic-stage.ic-active { display: block; }

/* Welcome stage */
.ic-welcome-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.ic-question-glyph {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 2rem;
  letter-spacing: 0.3em;
}

.ic-welcome-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

.ic-welcome-inner p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.ic-method-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.ic-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  width: 160px;
}

.ic-method-btn:hover,
.ic-method-btn.selected {
  border-color: var(--accent);
  background: var(--white);
  color: var(--text);
}

.ic-method-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.ic-method-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: inherit;
}

.ic-method-desc {
  font-size: 0.76rem;
  color: var(--faint);
  line-height: 1.5;
  text-align: center;
}

.ic-begin-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ic-begin-btn:hover { opacity: 0.8; }
.ic-begin-btn:disabled { opacity: 0.35; cursor: default; }

/* Casting stage */
.ic-cast-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
  padding: 2rem 0;
}

@media (max-width: 700px) {
  .ic-cast-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* Parchment */
.ic-parchment-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ic-parchment {
  position: relative;
  background-color: var(--ic-parchment);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 22px,
      rgba(140,100,50,0.022) 22px, rgba(140,100,50,0.022) 23px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 30px,
      rgba(140,100,50,0.018) 30px, rgba(140,100,50,0.018) 31px
    ),
    radial-gradient(ellipse 90% 85% at 8% 8%,  rgba(180,140,70,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 92% 92%, rgba(120,80,30,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 85% 12%, rgba(160,120,60,0.07) 0%, transparent 45%);
  border: 1.5px solid var(--ic-gold);
  border-radius: 2px 3px 3px 2px / 3px 2px 2px 3px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 340px;
  box-shadow:
    4px 5px 14px rgba(0,0,0,0.18),
    1px 1px 4px  rgba(0,0,0,0.10),
    inset 0 0 55px rgba(140,100,40,0.07),
    inset 0 0 0   8px rgba(140,100,40,0.03);
  overflow: hidden;
}

/* Aged-edge vignette */
.ic-parchment::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 20% at 0% 0%,   rgba(100,70,20,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 25% 20% at 100% 0%,  rgba(100,70,20,0.09) 0%, transparent 100%),
    radial-gradient(ellipse 25% 20% at 0% 100%,  rgba(100,70,20,0.09) 0%, transparent 100%),
    radial-gradient(ellipse 30% 20% at 100% 100%,rgba(100,70,20,0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* 易 watermark */
.ic-parchment::after {
  content: '易';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(140,100,40,0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Inner frame */
.ic-parchment-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(140,100,50,0.14);
  pointer-events: none;
  z-index: 2;
}

.ic-parchment-title {
  font-family: var(--serif);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.4rem;
  opacity: 0.6;
}

.ic-parchment-linenum {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--faint);
  text-align: center;
  margin-bottom: 2rem;
}

.ic-hex-build {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  min-height: 140px;
}

/* Ghost slot — faint parchment placeholder for uncast lines */
.ic-hex-slot {
  width: 120px;
  height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.5s;
}

/* Ghost line — faint placeholder before line is cast */
.ic-hex-slot::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: rgba(100,70,30,0.13);
  border-radius: 2px;
}

.ic-hex-slot.filled::before { display: none; }
.ic-hex-slot.filled { opacity: 1; }

/* Parchment annotation — faint gloss to the right of each cast line */
.ic-parch-annot {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 0.6rem;
  font-style: italic;
  color: var(--faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
  pointer-events: none;
  letter-spacing: 0.01em;
}
.ic-hex-slot.filled .ic-parch-annot { opacity: 0.75; }

/* Brush-stroke draw-in animation — applies to SVG stroke elements */
.ic-hex-slot.new-line .ic-line-yang {
  animation: ic-brush-yang 0.65s cubic-bezier(0.12,0,0.22,1) both;
}
.ic-hex-slot.new-line .ic-line-yin-stroke:first-child {
  animation: ic-brush-yang 0.55s cubic-bezier(0.12,0,0.22,1) both;
}
.ic-hex-slot.new-line .ic-line-yin-stroke:last-child {
  animation: ic-brush-yang 0.55s cubic-bezier(0.12,0,0.22,1) 0.08s both;
}

@keyframes ic-brush-yang {
  from { clip-path: inset(0 100% 0 0); opacity: 0.4; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}

/* Yang line — SVG woodblock rect (set via JS) */
.ic-line-yang {
  display: block;
  width: 120px;
  height: 11px;
  overflow: visible;
  flex-shrink: 0;
}

/* Yin line — two broken strokes */
.ic-line-yin {
  display: flex;
  gap: 14px;
  width: 120px;
  align-items: center;
}

/* Individual yin SVG stroke */
.ic-line-yin-stroke {
  display: block;
  height: 11px;
  width: 53px;
  height: 14px;
  overflow: visible;
  flex-shrink: 0;
}

/* Changing line label — left side, annotation stays right */
.ic-changing-dot {
  position: absolute;
  left: -72px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: 9.5px;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--ic-label);
  white-space: nowrap;
  opacity: 0;
  animation: ic-changing-label-in 0.5s ease-out 0.3s forwards;
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
  pointer-events: none;
}

@keyframes ic-changing-label-in {
  from { opacity: 0; transform: translateY(-50%) translateX(4px); }
  to   { opacity: 0.88; transform: translateY(-50%) translateX(0); }
}

.ic-parchment-label {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.05em;
  min-height: 1.8rem;
  transition: all 0.4s;
}

.ic-parchment-sublabel {
  text-align: center;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  min-height: 1rem;
}

/* Cast area */
.ic-cast-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.ic-line-counter {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Coin animation */
.ic-coins-wrap {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: flex-start;
}

.ic-coin-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ic-coin {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.15s;
  background: none;
  border: none;
  padding: 0;
  perspective: 600px;
}

.ic-coin {
  filter: drop-shadow(1px 3px 7px rgba(0,0,0,0.52));
}

.ic-coin svg {
  width: 72px;
  height: 72px;
  display: block;
}

/* Three distinct toss animations — each coin gets its own spin direction */
.ic-coin.tossing-1 {
  animation: ic-coin-toss-1 1.45s cubic-bezier(0.22, 0.1, 0.3, 1) forwards;
  transform-origin: center center;
}
.ic-coin.tossing-2 {
  animation: ic-coin-toss-2 1.45s cubic-bezier(0.22, 0.1, 0.3, 1) forwards;
  transform-origin: center center;
}
.ic-coin.tossing-3 {
  animation: ic-coin-toss-3 1.52s cubic-bezier(0.20, 0.1, 0.32, 1) forwards;
  transform-origin: center center;
}

/* Tiny bounce-settle after landing */
.ic-coin.landing {
  animation: ic-coin-land 0.30s ease-out forwards;
}

/* Coin 1 — rotateY clockwise */
@keyframes ic-coin-toss-1 {
  0%  { transform: perspective(420px) translateY(0)     rotateY(0deg)    scale(1.00);
        filter: drop-shadow(1px 4px 7px rgba(0,0,0,0.52)); }
  10% { transform: perspective(420px) translateY(-26px) rotateY(68deg)   scale(1.04);
        filter: drop-shadow(1px 8px 10px rgba(0,0,0,0.36)); }
  30% { transform: perspective(420px) translateY(-70px) rotateY(285deg)  scale(0.96);
        filter: drop-shadow(0 13px 15px rgba(0,0,0,0.20)) blur(0.7px); }
  52% { transform: perspective(420px) translateY(-86px) rotateY(630deg)  scale(0.92);
        filter: drop-shadow(0 15px 18px rgba(0,0,0,0.16)) blur(1.5px); }
  65% { transform: perspective(420px) translateY(-60px) rotateY(800deg)  scale(0.95);
        filter: drop-shadow(0 10px 12px rgba(0,0,0,0.24)) blur(0.5px); }
  80% { transform: perspective(420px) translateY(-22px) rotateY(980deg)  scale(0.98);
        filter: drop-shadow(1px 6px 8px rgba(0,0,0,0.40)); }
  91% { transform: perspective(420px) translateY(-5px)  rotateY(1055deg) scale(1.02);
        filter: drop-shadow(1px 4px 7px rgba(0,0,0,0.48)); }
  100%{ transform: perspective(420px) translateY(0)     rotateY(1080deg) scale(1.00);
        filter: drop-shadow(1px 3px 7px rgba(0,0,0,0.52)); }
}

/* Coin 2 — rotateY counter-clockwise, slightly lower arc */
@keyframes ic-coin-toss-2 {
  0%  { transform: perspective(420px) translateY(0)     rotateY(0deg)     scale(1.00);
        filter: drop-shadow(1px 4px 7px rgba(0,0,0,0.52)); }
  10% { transform: perspective(420px) translateY(-20px) rotateY(-62deg)   scale(1.03);
        filter: drop-shadow(1px 7px 9px rgba(0,0,0,0.36)); }
  30% { transform: perspective(420px) translateY(-60px) rotateY(-265deg)  scale(0.97);
        filter: drop-shadow(0 11px 13px rgba(0,0,0,0.20)) blur(0.6px); }
  52% { transform: perspective(420px) translateY(-76px) rotateY(-630deg)  scale(0.93);
        filter: drop-shadow(0 13px 16px rgba(0,0,0,0.16)) blur(1.3px); }
  65% { transform: perspective(420px) translateY(-52px) rotateY(-800deg)  scale(0.96);
        filter: drop-shadow(0 9px 11px rgba(0,0,0,0.24)) blur(0.4px); }
  80% { transform: perspective(420px) translateY(-18px) rotateY(-970deg)  scale(0.99);
        filter: drop-shadow(1px 5px 7px rgba(0,0,0,0.40)); }
  91% { transform: perspective(420px) translateY(-4px)  rotateY(-1040deg) scale(1.01);
        filter: drop-shadow(1px 4px 7px rgba(0,0,0,0.48)); }
  100%{ transform: perspective(420px) translateY(0)     rotateY(-1080deg) scale(1.00);
        filter: drop-shadow(1px 3px 7px rgba(0,0,0,0.52)); }
}

/* Coin 3 — rotateX end-over-end (true toss feel), tallest arc */
@keyframes ic-coin-toss-3 {
  0%  { transform: perspective(420px) translateY(0)     rotateX(0deg)    scale(1.00);
        filter: drop-shadow(1px 4px 7px rgba(0,0,0,0.52)); }
  10% { transform: perspective(420px) translateY(-34px) rotateX(75deg)   scale(1.05);
        filter: drop-shadow(1px 10px 12px rgba(0,0,0,0.34)); }
  30% { transform: perspective(420px) translateY(-82px) rotateX(288deg)  scale(0.95);
        filter: drop-shadow(0 14px 17px rgba(0,0,0,0.19)) blur(0.9px); }
  52% { transform: perspective(420px) translateY(-98px) rotateX(630deg)  scale(0.90);
        filter: drop-shadow(0 17px 20px rgba(0,0,0,0.14)) blur(1.8px); }
  65% { transform: perspective(420px) translateY(-70px) rotateX(800deg)  scale(0.94);
        filter: drop-shadow(0 12px 14px rgba(0,0,0,0.22)) blur(0.6px); }
  80% { transform: perspective(420px) translateY(-28px) rotateX(988deg)  scale(0.97);
        filter: drop-shadow(1px 7px 9px rgba(0,0,0,0.38)); }
  91% { transform: perspective(420px) translateY(-6px)  rotateX(1058deg) scale(1.03);
        filter: drop-shadow(1px 4px 7px rgba(0,0,0,0.48)); }
  100%{ transform: perspective(420px) translateY(0)     rotateX(1080deg) scale(1.00);
        filter: drop-shadow(1px 3px 7px rgba(0,0,0,0.52)); }
}

@keyframes ic-coin-land {
  0%   { transform: perspective(420px) translateY(0)    scale(1.00); }
  40%  { transform: perspective(420px) translateY(-4px) scale(1.03); }
  100% { transform: perspective(420px) translateY(0)    scale(1.00); }
}

.ic-ht {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-height: 2.6em;  /* reserved — prevents button shift */
  transition: opacity 0.4s;
}
.ic-ht-val {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1;
}
.ic-ht-face {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0.7;
}

.ic-line-value {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 200px;
}

.ic-line-value .ic-value-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.ic-line-value .ic-value-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text);
}

.ic-line-value .ic-value-note {
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 0.3rem;
  font-style: italic;
  min-height: 1.2em;  /* reserves space before text is populated */
}


/* Cast button */
.ic-cast-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  min-width: 200px;
}

.ic-cast-btn:hover { opacity: 0.8; }
.ic-cast-btn.ic-secondary {
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
}
.ic-cast-btn.ic-secondary:hover { border-color: var(--accent); color: var(--text); }

/* Next-line progress label — sits above button, reserved height prevents shift */
.ic-cast-next-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.4s;
}
.ic-cast-next-label.visible { opacity: 1; }

.ic-cast-instruction {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  max-width: 240px;
  font-style: italic;
  min-height: 2.8em;  /* holds two lines — prevents button shift when text changes */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reading stage */
.ic-reading-outer {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

/* Reading parchment-like top band */
.ic-reading-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background-color: var(--ic-parchment);
  background-image:
    radial-gradient(ellipse 90% 85% at 8% 8%,  rgba(180,140,70,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 92% 92%, rgba(120,80,30,0.08) 0%, transparent 50%);
  border: 1.5px solid var(--ic-gold);
  box-shadow: 3px 4px 12px rgba(0,0,0,0.14), 1px 1px 3px rgba(0,0,0,0.08);
}

@media (max-width: 640px) {
  .ic-reading-header { grid-template-columns: 1fr; gap: 2rem; }
}

.ic-reading-hex-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2rem 1.5rem;
  background: rgba(255,248,230,0.55);
  border: 1px solid rgba(140,100,40,0.28);
  min-width: 116px;
}

.ic-reading-hex-display .ic-r-line-yang {
  width: 80px; height: 9px;
  background: var(--ic-ink);
  border-radius: 1.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
}

.ic-reading-hex-display .ic-r-line-yin {
  display: flex; gap: 12px; width: 80px;
}

.ic-reading-hex-display .ic-r-line-yin span {
  width: 34px; height: 9px;
  background: var(--ic-ink);
  border-radius: 1.5px; display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22);
}

.ic-reading-hex-display .ic-r-changing-dot {
  position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: none;
  border: 1.5px solid var(--ic-brown);
  opacity: 0.75;
}

.ic-r-line-wrap { position: relative; display: flex; align-items: center; }

.ic-reading-meta {}

.ic-reading-number {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ic-number);
  margin-bottom: 0.5rem;
}

.ic-reading-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ic-deep);
  margin-bottom: 0.4rem;
}

.ic-reading-chinese {
  font-size: 1.35rem;
  color: var(--ic-chinese);
  font-weight: 300;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.ic-reading-trigrams {
  font-size: 0.74rem;
  color: var(--ic-trigrams);
  letter-spacing: 0.05em;
  font-style: italic;
}

/* Reading body — warm off-white to match parchment feel */
.ic-reading-body {
  padding: 0 0.5rem;
}

.ic-reading-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.ic-reading-section:last-of-type { border-bottom: none; }

.ic-section-label {
  font-size: 0.60rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.ic-reading-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  max-width: 640px;
}

.ic-image-text {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.95;
  border-left: 2px solid var(--ic-warm-gold);
  padding-left: 1.25rem;
  font-style: italic;
  max-width: 560px;
}

.ic-commentary-text {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2.0;
  max-width: 640px;
}

.ic-commentary-commentator {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.ic-changing-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.ic-changing-intro {
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 560px;
  font-style: italic;
}

/* Changing line texts */
#ic-line-texts-section {
  margin-bottom: 2.5rem;
}

.ic-line-text-item {
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(160,120,60,0.15);
  max-width: 620px;
}

.ic-line-text-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ic-line-text-pos {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ic-brown);
  opacity: 0.85;
  margin-bottom: 0.55rem;
}

.ic-line-text-body {
  font-family: var(--serif);
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
}

.ic-second-hex {
  background-color: var(--ic-parchment-alt);
  background-image: radial-gradient(ellipse 70% 70% at 15% 15%, rgba(180,140,70,0.08) 0%, transparent 55%);
  border: 1px solid var(--ic-gold);
  padding: 2.5rem;
  max-width: 680px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.10);
}

.ic-second-hex-header {
  display: flex;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.ic-second-hex-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255,248,230,0.6);
  border: 1px solid rgba(160,110,50,0.25);
  min-width: 90px;
}

.ic-reading-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.ic-again-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ic-again-btn:hover { opacity: 0.8; }

.ic-second-hex-mini {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  padding: 1rem;
  background: rgba(255,248,230,0.6);
  border: 1px solid rgba(160,110,50,0.25);
}

.ic-second-hex-mini .ic-r-line-yang { width: 60px; height: 7px; background: var(--ic-ink); border-radius: 1px; box-shadow: 0 1px 2px rgba(0,0,0,0.20); }
.ic-second-hex-mini .ic-r-line-yin { display: flex; gap: 9px; width: 60px; }
.ic-second-hex-mini .ic-r-line-yin span { width: 25.5px; height: 7px; background: #0F0B07; border-radius: 1px; display: block; box-shadow: 0 1px 2px rgba(0,0,0,0.20); }

/* Below fold layout */
.ic-below-fold {
  display: grid;
  grid-template-columns: 1fr;
  padding: 5rem 0 7rem;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .ic-below-fold { grid-template-columns: 1fr; gap: 3rem; }
}


/* How-casting-works explainer */
.ic-how-works {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--white);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ic-how-works summary {
  padding: 0.9rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s;
}
.ic-how-works summary::-webkit-details-marker { display: none; }
.ic-how-works summary:hover { color: var(--text); }
.ic-how-works[open] summary { color: var(--text); border-bottom: 1px solid var(--border); }
.ic-how-works summary .ic-hw-arrow { transition: transform 0.2s; font-size: 0.9rem; }
.ic-how-works[open] summary .ic-hw-arrow { transform: rotate(45deg); }

.ic-hw-body {
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 560px) { .ic-hw-body { grid-template-columns: 1fr; } }

.ic-hw-col h4 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.ic-hw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.ic-hw-table th {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.ic-hw-table td {
  padding: 0.4rem 0.5rem 0.4rem 0;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
  font-size: 0.78rem;
}

.ic-hw-table td:first-child {
  color: var(--text);
  font-weight: 400;
  white-space: nowrap;
}

.ic-line-yang-sm {
  display: inline-block;
  width: 38px; height: 6px;
  background: var(--ic-ink);
  border-radius: 1px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.20);
}

.ic-line-yin-sm {
  display: inline-flex;
  gap: 5px;
  vertical-align: middle;
}
.ic-line-yin-sm span {
  width: 16px; height: 6px;
  background: var(--ic-ink);
  border-radius: 1px;
  display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.20);
}

.ic-hw-changing-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0.7;
}

.ic-hw-note {
  font-size: 0.76rem;
  color: var(--faint);
  line-height: 1.7;
  font-style: italic;
}

.ic-hw-footer {
  padding: 0 1.25rem 1.25rem;
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: -0.5rem;
}

/* Fade in animation */
.ic-fade-in {
  animation: icFadeIn 0.5s ease-out;
}

@keyframes icFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RUNES TOOL ──────────────────────────────────────────────────── */

/* Stage system */
.rn-stage { display: none; }
.rn-stage.rn-active { display: block; }

/* Tool outer wrapper */
.rn-tool-outer {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Welcome stage ───────────────────────────────────────────────── */
.rn-welcome-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}
.rn-welcome-symbol {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 2rem;
  letter-spacing: 0.4em;
}
.rn-welcome-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.rn-welcome-inner p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 440px;
  margin: 0 auto 2.5rem;
}
.rn-cast-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rn-cast-btn:hover { opacity: 0.8; }

/* ── Cloth stage ─────────────────────────────────────────────────── */
.rn-cloth-prompt {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1.8rem;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.rn-cloth-prompt.rn-prompt-visible { opacity: 1; }

.rn-cloth {
  position: relative;
  width: 100%;
  height: 340px;
  /* No surface drawn — stones rest on the page itself.
     A faint radial warmth implies ground beneath the cluster. */
  background: radial-gradient(ellipse 78% 68% at 50% 52%,
    rgba(38,26,8,0.05) 0%, transparent 72%);
  overflow: hidden;
}

/* ── Stones ──────────────────────────────────────────────────────── */
@keyframes rnScatter {
  0%   { opacity: 0; transform: rotate(var(--rn-rot, 0deg)) scale(0.2) translateY(-60px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(var(--rn-rot, 0deg)) scale(1); }
}

/*
  River stone realism — five stone tones cycle through (set via --rn-base in JS).
  Layered gradients simulate:
    1. Specular highlight top-left  (light catching the smooth surface)
    2. Secondary soft sheen         (ambient scatter)
    3. Deep shadow lower-right      (occlusion / underside)
    4. Edge darkening rim           (the slightly darker outer edge of a wet stone)
  box-shadow gives ground contact shadow + subtle top-edge rim light.
*/
.rn-stone {
  position: absolute;
  width: 68px;
  height: 72px;
  background-color: var(--rn-stone);
  background-image:
    /* Specular highlight — top-left, elliptical, bright */
    radial-gradient(ellipse 42% 32% at 30% 24%, rgba(230,218,200,0.52) 0%, rgba(210,198,178,0.18) 45%, transparent 70%),
    /* Secondary soft sheen — upper centre */
    radial-gradient(ellipse 28% 18% at 58% 16%, rgba(215,205,188,0.22) 0%, transparent 55%),
    /* Deep shadow — lower right */
    radial-gradient(ellipse 48% 44% at 74% 78%, rgba(12,10,7,0.55) 0%, transparent 58%),
    /* Edge rim darkening */
    radial-gradient(ellipse 96% 92% at 50% 50%, transparent 52%, rgba(10,8,5,0.38) 100%);
  border: 1px solid rgba(30,26,20,0.45);
  box-shadow:
    /* Inset highlight — top edge rim-light */
    inset 0 1px 2px rgba(230,218,200,0.28),
    /* Inset bottom shadow — underside depth */
    inset 0 -2px 5px rgba(0,0,0,0.38),
    /* Ground contact shadow — warm-tinted for linen cloth */
    0 5px 14px rgba(70,52,28,0.28),
    0 2px 4px rgba(70,52,28,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rnScatter 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  transform: rotate(var(--rn-rot, 0deg));
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.4s ease;
  user-select: none;
}
.rn-stone:hover {
  transform: rotate(var(--rn-rot, 0deg)) translateY(-6px) scale(1.1);
  box-shadow:
    inset 0 1px 3px rgba(230,218,200,0.32),
    inset 0 -2px 5px rgba(0,0,0,0.38),
    0 10px 22px rgba(70,52,28,0.34),
    0 3px 7px rgba(70,52,28,0.22);
  z-index: 10;
}

/* Stone flip animation */
@keyframes rnFlip {
  0%   { transform: rotate(var(--rn-rot, 0deg)) scale(1); }
  38%  { transform: rotate(var(--rn-rot, 0deg)) scaleX(0) scale(1.1); }
  55%  { transform: rotate(var(--rn-rot, 0deg)) scaleX(0) scale(1.1); }
  100% { transform: rotate(var(--rn-rot, 0deg)) scale(1); }
}
.rn-stone.rn-selected {
  animation: rnFlip 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 20;
  cursor: default;
}

/* Fade other stones */
.rn-stone.rn-fading {
  opacity: 0;
  transform: rotate(var(--rn-rot, 0deg)) scale(0.82) !important;
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

/* Rune face (revealed after flip) */
.rn-stone-face {
  width: 52px;
  height: 52px;
  /*
    True carved-groove illusion:
    The stroke IS the groove interior — dark because it's in shadow.
    drop-shadow 1 (up-left, warm stone): the chipped rim catching light — the
      tool cut upward and left, exposing a fresh stone edge that catches ambient.
    drop-shadow 2 (down-right, near-black): the far groove wall in deep shadow,
      pushing the mark INTO the surface rather than sitting on top.
  */
  color: rgba(16, 12, 7, 0.88);
  filter:
    drop-shadow(-0.8px -1.4px 0.3px rgba(168,148,112,0.78))
    drop-shadow(0.6px 1.2px 0.4px rgba(0,0,0,0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.rn-stone-face svg { width: 100%; height: 100%; }

/* ── Reading stage ───────────────────────────────────────────────── */
@keyframes rnFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rn-fade-in { animation: rnFadeIn 1.1s ease forwards; }

.rn-stage.rn-fading {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.rn-reading-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0 2rem;
}
.rn-result-stone {
  width: 148px;
  height: 158px;
  background-color: var(--rn-stone);
  background-image:
    radial-gradient(ellipse 42% 32% at 30% 24%, rgba(230,218,200,0.52) 0%, rgba(210,198,178,0.18) 45%, transparent 70%),
    radial-gradient(ellipse 28% 18% at 58% 16%, rgba(215,205,188,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 48% 44% at 74% 78%, rgba(12,10,7,0.55) 0%, transparent 58%),
    radial-gradient(ellipse 96% 92% at 50% 50%, transparent 52%, rgba(10,8,5,0.38) 100%);
  border-radius: 52% 48% 56% 44% / 48% 54% 46% 52%;
  border: 1px solid rgba(30,26,20,0.45);
  box-shadow:
    inset 0 2px 4px rgba(230,218,200,0.28),
    inset 0 -3px 8px rgba(0,0,0,0.38),
    0 8px 24px rgba(0,0,0,0.32),
    0 3px 6px rgba(0,0,0,0.22);
  margin: 0 auto 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-result-glyph {
  width: 110px;
  height: 110px;
  color: rgba(16, 12, 7, 0.88);
  filter:
    drop-shadow(-1.1px -1.8px 0.4px rgba(168,148,112,0.80))
    drop-shadow(0.8px 1.6px 0.5px rgba(0,0,0,0.96));
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn-result-glyph svg { width: 100%; height: 100%; }

.rn-merkstave-badge,
.rn-upright-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.4rem;
}
.rn-no-invert-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}
.rn-result-phoneme {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.rn-result-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.rn-result-meaning-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  font-style: italic;
}
.rn-result-meaning {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.95;
  text-align: left;
  margin-bottom: 1.5rem;
}
.rn-result-divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
  opacity: 0.55;
}
.rn-result-question {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.rn-cast-again-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}
.rn-cast-again-btn:hover { border-color: var(--accent); color: var(--text); }

/* ── Below-tool layout ───────────────────────────────────────────── */
.rn-below-tool {
  display: grid;
  grid-template-columns: 1fr;
  padding: 5rem 0 7rem;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}
.rn-how-to-sidebar { position: sticky; top: 5rem; }

@media (max-width: 860px) {
  .rn-below-tool { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 5rem; }
  .rn-how-to-sidebar { display: none; }
  .rn-cloth { height: 300px; }
  .rn-stone { width: 58px; height: 62px; }
  .rn-stone-face { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .rn-cloth { height: 280px; }
  .rn-tool-outer { padding: 3rem 1.25rem 4rem; }
}

/* ── Norns spread (3-rune) ─────────────────────────────────────────── */
.rn3-reading-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.rn3-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.rn3-tab {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 0.5rem 0.7rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.rn3-tab:hover { color: var(--text); }
.rn3-tab.rn3-tab-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.rn3-tab-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.7;
}

.rn3-panels { }

.rn3-panel {
  display: none;
  text-align: center;
}
.rn3-panel.rn3-panel-active { display: block; }

.rn3-bridge {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 2.2rem;
  opacity: 0.78;
}

.rn3-next-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.rn3-next-btn:hover { border-color: var(--accent); color: var(--text); }

.rn3-cast-again-sec {
  display: block;
  margin: 0.9rem auto 0;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.rn3-cast-again-sec:hover { color: var(--muted); }

/* ── Cloth header (prompt + start-over) ───────────────────────────── */
.rn3-cloth-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.6rem;
}
.rn3-cloth-header .rn-cloth-prompt {
  flex: 1;
  margin-bottom: 0;
  text-align: center;
}
.rn3-header-spacer { min-width: 80px; }

.rn3-restart-btn {
  min-width: 80px;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}
.rn3-restart-btn:hover { color: var(--muted); }

.rn3-step-counter {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-top: 0.4rem;
}

/* ── Three-rune summary ───────────────────────────────────────────── */
.rn3-summary {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.rn3-sum-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.rn3-sum-card:hover { opacity: 0.78; }
.rn3-sum-card.rn3-sum-card-active {
  opacity: 1;
  cursor: default;
}
.rn3-sum-card.rn3-sum-card-active .rn3-sum-pos { color: var(--accent); }
.rn3-sum-stone {
  width: 78px;
  height: 86px;
  background-color: var(--rn-stone);
  background-image:
    radial-gradient(ellipse 42% 32% at 30% 24%, rgba(230,218,200,0.52) 0%, rgba(210,198,178,0.18) 45%, transparent 70%),
    radial-gradient(ellipse 28% 18% at 58% 16%, rgba(215,205,188,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 48% 44% at 74% 78%, rgba(12,10,7,0.55) 0%, transparent 58%),
    radial-gradient(ellipse 96% 92% at 50% 50%, transparent 52%, rgba(10,8,5,0.38) 100%);
  border-radius: 52% 48% 56% 44% / 48% 54% 46% 52%;
  border: 1px solid rgba(30,26,20,0.45);
  box-shadow:
    inset 0 2px 4px rgba(230,218,200,0.28),
    inset 0 -3px 8px rgba(0,0,0,0.38),
    0 6px 18px rgba(0,0,0,0.28),
    0 2px 4px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn3-sum-glyph {
  width: 54px;
  height: 54px;
  color: rgba(16, 12, 7, 0.88);
  filter:
    drop-shadow(-0.9px -1.5px 0.35px rgba(168,148,112,0.78))
    drop-shadow(0.7px 1.3px 0.4px rgba(0,0,0,0.96));
  display: flex;
  align-items: center;
  justify-content: center;
}
.rn3-sum-glyph svg { width: 100%; height: 100%; }
.rn3-sum-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
}
.rn3-sum-pos {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.rn3-sum-orient {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-style: italic;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 560px) {
  .rn3-summary { gap: 1.2rem; }
  .rn3-sum-stone { width: 62px; height: 68px; }
  .rn3-sum-glyph { width: 42px; height: 42px; }
  .rn3-cloth-header { flex-wrap: wrap; gap: 0.5rem; }
  .rn3-header-spacer { display: none; }
}

/* ─── TAROT TOOL ──────────────────────────────────────────────────── */

.tr-stage { display: none; }
.tr-stage.tr-active { display: block; }

.tr-tool-outer {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ── Welcome stage ───────────────────────────────────────────────── */
.tr-welcome-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.tr-reversals-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}
.tr-reversals-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tr-toggle-btn {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 2.8rem;
}
.tr-toggle-btn.tr-toggle-off {
  background: none;
  border-color: var(--border);
  color: var(--muted);
}

/* ── Shuffle canvas ──────────────────────────────────────────────── */
.tr-shuffle-canvas {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: visible;
  margin-bottom: 2.5rem;
}

.tr-deck-card {
  position: absolute;
  width: 52px;
  height: 91px;
  top: calc(50% - 45px);
  left: calc(50% - 26px);
  border-radius: 4px;
  background-image: url('assets/tarot/tarot-card-back.png');
  background-size: 100% 100%;
  border: 1px solid rgba(192,160,96,0.45);
  will-change: transform;
}
.tr-deck-card:last-child {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.07);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.tr-btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.tr-shuffle-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tr-shuffle-btn:hover:not(:disabled) { opacity: 0.8; }
.tr-shuffle-btn:disabled { opacity: 0.38; cursor: default; }

.tr-push-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, color 0.2s;
}
.tr-push-btn.tr-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.tr-push-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.tr-push-btn:disabled { opacity: 0.38; cursor: default; }

/* ── Fan stage ───────────────────────────────────────────────────── */
.tr-fan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.tr-restart-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.tr-restart-btn:hover { color: var(--text); }

.tr-fan-prompt {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  flex: 1;
}
.tr-fan-prompt.tr-prompt-visible { opacity: 1; }
.tr-header-spacer { width: 72px; }

.tr-fan-container {
  position: relative;
  width: calc(100% + 4rem);
  margin-left: -2rem;
  height: 200px;
  overflow: visible;
}

/* ── Fan cards — translate-based flat fan ────────────────────────── */
/* Cards start stacked at centre; fan-out moves each to its --fan-x   */
/* position and rotates it. No long arm — all cards stay at the same  */
/* baseline, giving a flat fan shape rather than a rainbow arch.       */
.tr-fan-card {
  position: absolute;
  bottom: 20px;
  left: calc(50% - 40px);     /* initial: all stacked at centre */
  width: 80px;
  height: 140px;
  transform-origin: bottom center;
  transform: rotate(0deg);
  transition:
    transform 0.65s cubic-bezier(0.34, 1.15, 0.64, 1) var(--fan-delay, 0ms),
    left      0.65s cubic-bezier(0.34, 1.15, 0.64, 1) var(--fan-delay, 0ms);
  cursor: pointer;
  perspective: 600px;
}
.tr-fan-card.tr-fan-out {
  left: calc(var(--fan-x) - 40px);
  transform: rotate(var(--fan-angle));
}
.tr-fan-card.tr-hover:not(.tr-fading):not(.tr-selected) .tr-fan-card-inner {
  transform: translateY(-14px);
}

/* 3D flip */
.tr-fan-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}
.tr-fan-card.tr-flipped .tr-fan-card-inner {
  transform: rotateY(180deg);
  transition: transform 0.65s ease;
}

.tr-fan-card-back,
.tr-fan-card-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 4px;
}
.tr-fan-card-back {
  background-image: url('assets/tarot/tarot-card-back.png');
  background-size: 100% 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid rgba(192,160,96,0.45);
}
.tr-fan-card-front {
  transform: rotateY(180deg);
  background: var(--bg-alt);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tr-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tr-fan-card-front.tr-reversed .tr-face-img {
  transform: rotate(180deg);
}
.tr-card-fallback-name {
  font-family: var(--serif);
  font-size: 0.6rem;
  color: var(--muted);
  text-align: center;
  padding: 0.4rem;
  line-height: 1.5;
}

/* Selected card lifts straight up; no z-index change — other cards fade */
.tr-fan-card.tr-selected {
  transform: translateY(-45px) rotate(var(--fan-angle)) !important;
  transition: transform 0.4s ease, left 0s !important;
  cursor: default;
}

/* Fade other cards in place */
.tr-fan-card.tr-fading {
  opacity: 0;
  transform: rotate(var(--fan-angle)) scale(0.88) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
  pointer-events: none;
}

.tr-stage.tr-fading {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* ── Reading stage ───────────────────────────────────────────────── */
@keyframes trFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tr-fade-in { animation: trFadeIn 1.1s ease forwards; }

.tr-reading-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0 2rem;
}

.tr-result-card-wrap { margin: 0 auto 2rem; width: fit-content; }
.tr-result-card {
  width: 148px;
  height: 258px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.26), 0 2px 6px rgba(0,0,0,0.16);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tr-result-card.tr-img-fallback {
  border: 1px solid var(--border);
}
.tr-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tr-result-img-reversed { transform: rotate(180deg); }
.tr-result-card-fallback {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}

.tr-orientation-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.4rem;
}
.tr-result-arcana {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.tr-result-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1rem;
}
.tr-result-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}
.tr-keyword {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.22rem 0.6rem;
}
.tr-result-meaning {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.95;
  text-align: left;
  margin-bottom: 1.5rem;
}
.tr-stub-meaning { opacity: 0.45; font-style: italic; }

.tr-result-description {
  margin-bottom: 1.5rem;
}
.tr-result-description p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.9;
  text-align: left;
  opacity: 0.7;
  margin-bottom: 0.85rem;
}
.tr-result-description p:last-child { margin-bottom: 0; }

.tr-result-divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem auto;
  opacity: 0.55;
}
.tr-result-question {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.tr-draw-again-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}
.tr-draw-again-btn:hover { border-color: var(--accent); color: var(--text); }

/* ── Below-tool layout ───────────────────────────────────────────── */
.tr-below-tool {
  display: grid;
  grid-template-columns: 1fr;
  padding: 5rem 0 7rem;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}
.tr-below-sidebar { position: sticky; top: 5rem; }

@media (max-width: 860px) {
  .tr-below-tool { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 0 5rem; }
  .tr-below-sidebar { display: none; }
  .tr-fan-container { height: 185px; }
  .tr-fan-card { width: 66px; height: 115px; left: calc(50% - 33px); }
  .tr-fan-card.tr-fan-out { left: calc(var(--fan-x) - 33px); }
  .tr-fan-container { height: 165px; }
  .tr-shuffle-canvas { height: 240px; }
}
@media (max-width: 560px) {
  .tr-tool-outer { padding: 3rem 1.25rem 4rem; }
  .tr-fan-container { height: 165px; }
  .tr-fan-card { width: 52px; height: 90px; left: calc(50% - 26px); }
  .tr-fan-card.tr-fan-out { left: calc(var(--fan-x) - 26px); }
  .tr-fan-container { height: 125px; }
  .tr-shuffle-canvas { height: 200px; }
}

/* ─── THREE-CARD TAROT SPREAD ────────────────────────────────────── */
.tr3-stage { display: none; }
.tr3-stage.tr3-active { display: block; }

.tr3-tool-outer {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

/* Position strip */
.tr3-positions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.tr3-pos-slot {
  flex: 1;
  max-width: 130px;
  aspect-ratio: 2 / 3;
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.tr3-pos-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1;
}
.tr3-pos-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.tr3-slot-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: var(--bg);
  overflow: hidden;
}
.tr3-slot-card.tr3-slot-card-revealed { animation: tr3SlotReveal 0.35s ease forwards; }
@keyframes tr3SlotReveal { from { opacity: 0; } to { opacity: 1; } }
.tr3-slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.tr3-slot-img.tr-result-img-reversed { transform: rotate(180deg); }
.tr3-slot-card-name {
  position: relative;
  font-family: var(--serif);
  font-size: 0.65rem;
  color: var(--text);
  text-align: center;
  background: rgba(248,245,240,0.9);
  width: 100%;
  padding: 0.2rem 0.25rem;
  line-height: 1.2;
}
.tr3-slot-orient-badge {
  position: relative;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(248,245,240,0.9);
  width: 100%;
  text-align: center;
  padding-bottom: 0.25rem;
}
.tr3-slot-card.tr-img-fallback .tr3-slot-img { display: none; }

/* Fan footer (start over button below fan) */
.tr3-fan-footer {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

/* Question input */
.tr3-question-wrap {
  max-width: 460px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.tr3-question-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.tr3-question-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0;
  outline: none;
  text-align: center;
  transition: border-color 0.2s;
}
.tr3-question-input:focus { border-bottom-color: var(--accent); }
.tr3-question-input::placeholder { color: var(--faint); }

/* Summary row card images */
.tr3-sum-card-img {
  width: 36px;
  height: 54px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
  position: relative;
}
.tr3-sum-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.tr3-sum-img.tr-result-img-reversed { transform: rotate(180deg); }
.tr3-sum-fallback {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Question shown during reading */
.tr3-reading-question {
  text-align: center;
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  .tr3-positions { gap: 0.75rem; padding: 1.5rem 1rem 1rem; }
}
@media (max-width: 560px) {
  .tr3-tool-outer { padding: 3rem 1.25rem 4rem; }
  .tr3-positions { gap: 0.5rem; }
  .tr3-pos-slot { max-width: 100px; }
}

/* ═══════════════ TOOL: CELTIC CROSS ═══════════════ */
.cc-stage { display: none; }
.cc-stage.cc-active { display: block; }

.cc-tool-outer {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* Formation layout */
.cc-formation-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1.5rem;
  overflow: visible;
}
.cc-formation {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  overflow: visible;
}

/* Cross: 3×3 named-area grid */
.cc-cross {
  display: grid;
  grid-template-columns: 64px 64px 64px;
  grid-template-rows: 92px 92px 92px;
  grid-template-areas:
    ".    crown      ."
    "past center future"
    ".    foundation .";
  gap: 4px;
  overflow: visible;
}
.cc-cell-crown      { grid-area: crown;      display: flex; align-items: center; justify-content: center; }
.cc-cell-past       { grid-area: past;       display: flex; align-items: center; justify-content: center; }
.cc-cell-center     { grid-area: center;     display: flex; align-items: center; justify-content: center; position: relative; overflow: visible; }
.cc-cell-future     { grid-area: future;     display: flex; align-items: center; justify-content: center; }
.cc-cell-foundation { grid-area: foundation; display: flex; align-items: center; justify-content: center; }

/* Staff: 4 slots top (10) → bottom (7) */
.cc-staff {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Slot placeholders */
.cc-pos-slot {
  width: 52px;
  height: 80px;
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
}
.cc-pos-slot:has(.cc-slot-card) { border-color: transparent; }
.cc-slot-num {
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--faint);
  pointer-events: none;
}

/* Crossing card slot: absolutely centered on center cell */
.cc-slot-crosses {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: transparent;
}

/* Card content inside slot */
.cc-slot-card {
  width: 52px;
  height: 80px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.cc-slot-img.tr-result-img-reversed { transform: rotate(180deg); }
.cc-slot-fallback {
  font-family: var(--serif);
  font-size: 0.65rem;
  color: var(--muted);
}
/* Crossing revealed card rotated 90° */
.cc-slot-crossing-card { transform: rotate(90deg); }

/* Summary row — scrollable for 10 cards */
.cc-summary {
  overflow-x: auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.cc-sum-card-img {
  width: 36px;
  height: 54px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}
.cc-sum-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.cc-sum-img.tr-result-img-reversed { transform: rotate(180deg); }
.cc-sum-fallback {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Tab bar — scrollable for 10 items */
.cc-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.cc-tabs .rn3-tab {
  flex: 0 0 auto;
  min-width: 7.5rem;
}

/* Reading question */
.cc-reading-question {
  text-align: center;
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Reading layout: formation left, panel right ──────────────────── */
.cc-reading-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.cc-reading-formation {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: sticky;
  top: 5rem;
}

/* Clickable slots in the reading formation */
.cc-reading-slot {
  width: 52px;
  height: 80px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.2s;
}
.cc-reading-slot:hover { outline-color: var(--border); }
.cc-rslot-active { outline-color: var(--accent) !important; }
.cc-reading-slot.cc-slot-crosses { position: absolute; }

.cc-reading-panel-wrap { min-width: 0; }

/* Position header inside reading panel */
.cc-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cc-panel-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
  text-align: right;
}
.cc-panel-pos {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cc-panel-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}
.cc-panel-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Scroll-to-top button in panel header */
.cc-top-btn {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  transition: color 0.2s, border-color 0.2s;
}
.cc-top-btn:hover { color: var(--muted); border-color: var(--muted); }

@media (max-width: 700px) {
  .cc-reading-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cc-reading-formation {
    position: static;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .cc-formation { gap: 1.25rem; }
  .cc-cross {
    grid-template-columns: 56px 56px 56px;
    grid-template-rows: 84px 84px 84px;
    gap: 3px;
  }
  .cc-staff { gap: 3px; }
  .cc-pos-slot, .cc-reading-slot { width: 48px; height: 74px; }
  .cc-slot-card { width: 48px; height: 74px; }
}
@media (max-width: 420px) {
  .cc-tool-outer { padding: 2rem 1rem 4rem; }
  .cc-cross {
    grid-template-columns: 44px 44px 44px;
    grid-template-rows: 72px 72px 72px;
    gap: 2px;
  }
  .cc-pos-slot, .cc-reading-slot { width: 40px; height: 62px; }
  .cc-slot-card { width: 40px; height: 62px; }
}

