/* LunaTaro — brand design system
   Palette adopted from the brand kit. Backgrounds stay LIGHT (cream/paper),
   indigo + gold used as accents. Mobile-first. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Serif+JP:wght@500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Sampled from the designer's origami comp: the folded paper is wine and
     cream on pale lavender, and there is no gold anywhere in it. The old
     cream-and-gold palette was built for the painted chibi art it replaced. */
  --ink: #4A1020;        /* deep wine — body copy */
  --ink-soft: #7A4255;   /* muted wine for secondary text */
  --lav: #BD9AC4;        /* the lavender accent: rules, glyphs, sparkles */
  --lav-ink: #7F4E92;    /* the same hue, dark enough to read as text */
  --lav-soft: #DCC8E6;   /* borders */
  --lav-tint: #F5EBFA;   /* tinted blocks, quotes */
  --wine: #7E0F32;       /* primary: headings, buttons */
  --wine-deep: #5E0B25;
  --bg: #FDFCFF;         /* page — sampled from the comp's own screen */
  --paper: #FFFFFF;      /* card / surface */
  --on-wine: #F6E2D0;    /* the paper cream — the only thing legible on a wine tile */

  /* five elements (muted, on-palette) */
  --el-wood: #6FB98F;
  --el-fire: #E08A7B;
  --el-earth: #D9B679;
  --el-metal: #B9BEC7;
  --el-water: #7FA6D9;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(88, 56, 104, .10);
  --shadow-sm: 0 3px 12px rgba(88, 56, 104, .08);
  --maxw: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 520px at 80% -10%, rgba(201, 188, 230, .52), transparent 62%),
    radial-gradient(900px 430px at 0% 0%, rgba(189, 154, 196, .34), transparent 58%),
    radial-gradient(2px 2px at 20% 30%, rgba(189,154,196,.6), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(189,154,196,.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(189,154,196,.4), transparent);
  background-attachment: fixed;
}

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(40px, 8vw, 76px); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 14px; }

/* ---------- typography ---------- */
.display { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; letter-spacing: .5px; }
h1, h2, h3 { font-family: 'Noto Serif JP', serif; line-height: 1.4; color: var(--ink); }
.hero-title {
  font-family: 'Noto Serif JP', serif; font-weight: 700;
  font-size: clamp(28px, 6vw, 46px); line-height: 1.3; margin: 0;
}
.hero-title .accent { color: var(--lav-ink); }
.eyebrow {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--wine-deep); font-weight: 700; margin: 0 0 10px;
}
.lead { font-size: clamp(15px, 2.6vw, 18px); color: var(--ink-soft); }

/* ---------- hero brand lockup (brand sits high) ---------- */
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 6px; }
.hero-brand .mascot.sm { width: clamp(172px, 38vw, 244px); }
.logo-lg { font-family: 'Cormorant Garamond', 'Noto Serif JP', serif; font-weight: 700;
  font-size: clamp(36px, 8.5vw, 56px); line-height: 1; color: var(--ink); letter-spacing: .5px; }
.logo-lg b { color: var(--lav-ink); font-weight: 700; }
.brand-tag { font-size: 13px; letter-spacing: 1px; color: var(--ink-soft); margin: 4px 0 0; }
.brand-tag b { color: var(--wine-deep); }
.hero-copy { max-width: 620px; margin: 12px auto 0; }
.hero-form { max-width: 520px; margin: 22px auto 0; }

/* ---------- brand header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 249, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(189, 154, 196, .18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .logo-img { height: 50px; width: auto; }
.wordmark .logo-text {
  font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 26px;
  color: var(--ink); letter-spacing: .5px;
}
.wordmark .logo-text b { color: var(--lav-ink); font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 16px;
  border: 0; border-radius: 999px; padding: 15px 28px; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: var(--wine);
  box-shadow: 0 10px 24px rgba(126, 15, 50, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(126,15,50,.36); background: var(--wine-deep); }
.btn-wine { color: #fff; background: var(--wine); border-radius: 4px;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px),
                     calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: 0 8px 20px rgba(126,15,50,.26); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--lav-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid rgba(189, 154, 196, .40); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}
.card-soft { background: linear-gradient(180deg, var(--paper), var(--lav-tint)); }

/* ---------- price pill ---------- */
.pill-price {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--ink); color: var(--on-wine); font-weight: 700;
  padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pill-price .yen { font-size: 15px; }
.pill-price .amt { font-family: 'Cormorant Garamond', serif; font-size: 26px; letter-spacing: .5px; }

/* ---------- decorative ---------- */
.hairline-gold { height: 17px; border: 0; margin: 26px auto; max-width: 217px;
  background: url("../img/origami/divider.png?v=20261126c") center/contain no-repeat; }
.twinkle::before { content: "✦"; color: var(--lav); margin-inline: 8px; font-size: .8em; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--lav-tint); color: var(--ink-soft);
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* ---------- mascot placeholder ---------- */
.brand-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, var(--lav-soft), var(--lav-tint));
  border-radius: 50%; box-shadow: var(--shadow-sm);
  width: 1.6em; height: 1.6em; line-height: 1; font-size: inherit;
}
.mascot { width: clamp(150px, 40vw, 240px); margin-inline: auto; }
.mascot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(88,56,104,.16)); }
.mascot picture { display: block; }
/* framed illustration cards (for artwork with a filled background) */
.mascot img.illus { border-radius: 18px; border: 1.5px solid var(--wine); box-shadow: 0 14px 30px rgba(88,56,104,.22); filter: none; }

/* ---------- ルナ相談 chat ---------- */
.chat-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.chat-msg.user { align-self: flex-end; background: var(--lav); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.luna { align-self: flex-start; background: var(--lav-tint); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--lav-soft); border-radius: 10px; font-size: 14px; }
.chat-input input:disabled { background: #f2f0f6; }
/* stretch, not flex-start: shrink-to-fit made the three cards wrap onto a
   second row even though the log is wide enough for all of them */
.chat-cards { align-self: stretch; display: flex; flex-wrap: wrap;
  justify-content: flex-start; gap: 8px; margin: 6px 0 4px; }
/* the card art is what people paid for — show it, don't thumbnail it */
.chat-cards .tflip { width: calc(33.333% - 6px); max-width: 128px; }

/* ---------- flip tarot cards (paid ritual + chat) ---------- */
.ritual-deck { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.ritual-deck .tflip { width: clamp(80px, 22vw, 98px); cursor: pointer; }
.tflip { perspective: 1000px; }
/* 167.5% = 603/360, the size every card is now written out at. The sheets
   draw their cards at one height but varying widths, so each card is cropped
   to its own gold frame and then normalised to this one shape. */
.tflip .fin { position: relative; width: 100%; padding-top: 167.5%; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.75,.2,1); }
.tflip.on .fin { transform: rotateY(180deg); }
.tflip .face { position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 8px 20px rgba(88,56,104,.28); }
.tflip .back { background: #4A1020 center/cover no-repeat url('../img/tarocard/cards/back.jpg?v=20261125b');
  border: 2px solid var(--wine); }
.tflip .front { transform: rotateY(180deg); background: linear-gradient(165deg, #FFFDFF, #F2E8FC);
  border: 2px solid var(--wine); padding: 6px; }
/* contain, not cover: every card is 360x630 except swords-page (360x555),
   and cover would shave the gold border off that one. */
.tflip .front .tc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
/* reversed cards stay upright (label shows 逆位置) — rotating flips the printed name/number and looks broken */
.tflip .front .tc-img.rev { transform: none; }
.tflip .front .tc-badge { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(74,16,32,.84); color: var(--on-wine); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.tflip .front .tc-pos { font-size: 10px; color: var(--wine-deep); font-weight: 700; }
.tflip .front .tc-name { font-family: 'Noto Serif JP', serif; font-weight: 700;
  font-size: clamp(13px, 3.4vw, 18px); color: var(--ink); margin: 5px 2px; line-height: 1.25; }
.tflip .front .tc-orient { font-size: 10px; color: var(--ink-soft); }
.tflip .front.rev .tc-name { color: var(--lav-ink); }
.tcard .tface-img { display: block; width: 100%; border-radius: 8px; }
.tcard .tface-img.rev { transform: none; }
.tflip.on .front { animation: cardGlow 1.4s ease .3s; }
@keyframes cardGlow { 0%,100% { box-shadow: 0 8px 20px rgba(88,56,104,.28); }
  45% { box-shadow: 0 0 26px 4px rgba(126,15,50,.45); } }
.reveal-note { margin: 10px 0 0; font-size: 14px; line-height: 1.7; }
.reveal-note b { color: var(--wine-deep); }
.omamori-img { max-width: 240px; height: auto; border-radius: 14px; box-shadow: 0 10px 24px rgba(88,56,104,.25); }
.omamori-label { margin: 14px auto 0; max-width: 340px; }
.omamori-theme {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--lav-ink); background: rgba(189,154,196,.12);
  border: 1px solid rgba(189,154,196,.28); border-radius: 999px; padding: 3px 12px;
}
.omamori-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.omamori-bless { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 6px 0 0; }

/* The comp puts this in the header as an outlined pill with its state spelt
   out. Kept floating so it reaches every page, but given the comp's shape:
   a label beats a lone glyph for something people hunt for. */
.sound-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 50;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px;
  border-radius: 999px; border: 1.5px solid var(--wine); background: rgba(254,254,254,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer;
  color: var(--wine); font-family: 'Noto Sans JP', sans-serif; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(88,56,104,.18); line-height: 1; }
.sound-toggle .st-label { white-space: nowrap; }
.sound-toggle:hover { background: #fff; }
.sound-toggle img { width: 19px; height: 19px; object-fit: contain; display: block; }
.sound-btn2 .sb-ico { width: 34px; height: 34px; object-fit: contain; }
/* Wider than it was: the note's words live in the page now, and between
   two figures 560px left the sentence breaking every few characters. */
.sound-card { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 640px; margin: 20px auto 0; }
.sound-info-img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 26px rgba(88,56,104,.16); }
.sound-btn2 { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0;
  padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px rgba(88,56,104,.14); transition: box-shadow .15s ease, color .15s ease; }
.sound-btn2 img { width: 46px; height: 46px; display: block; }
.sound-btn2:hover { box-shadow: 0 8px 20px rgba(88,56,104,.2); }
.sound-btn2.is-on { color: var(--wine-deep); box-shadow: 0 0 0 2px var(--wine), 0 8px 22px rgba(126,15,50,.28); }

/* ---------- card-drawing ritual ---------- */
.deck-fan { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.deck-card { width: 52px; height: 82px; border-radius: 9px; border: 1.5px solid var(--wine);
  background: linear-gradient(160deg, var(--ink), #6B1A34); color: var(--on-wine); font-size: 22px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.deck-card:hover:not(.used) { transform: translateY(-6px); box-shadow: 0 8px 18px rgba(88,56,104,.3); }
.deck-card.used { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.mascot .brand-ph { width: 100%; aspect-ratio: 1; font-size: clamp(64px, 18vw, 120px); }

/* ---------- feature list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; }
.check-list li::before { content: "✓"; color: var(--wine-deep); font-weight: 700; margin-top: 2px; }

.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--on-wine); font-family: 'Cormorant Garamond', serif; font-weight: 700;
  display: grid; place-items: center; font-size: 18px; }

.reading-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.reading-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--paper); border: 1px solid rgba(189,154,196,.38); border-radius: var(--radius-sm); }
.reading-item .ic { font-size: 22px; }

/* ---------- 命式 table ---------- */
.meishiki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pillar { text-align: center; padding: 12px 6px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--wine); box-shadow: var(--shadow-sm); }
.pillar .plabel { font-size: 12px; color: var(--ink-soft); }
.pillar .pgan, .pillar .pzhi { font-family: 'Noto Serif JP', serif; font-size: clamp(22px, 6vw, 30px); font-weight: 700; line-height: 1.15; }
.pillar .pgan { color: var(--ink); }
.pillar .pzhi { color: var(--lav-ink); }
.pillar.unknown .pgan { color: var(--ink-soft); font-size: 18px; }

/* ---------- 五行 bars ---------- */
/* ---------- 今後12ヶ月の運気 ---------------------------------------- */
.luck { margin-top: 20px; }
.lk-h { margin: 0 0 4px; font-size: 17px; }
.lk-sub { margin: 0 0 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.lk-plot { position: relative; }
.lk-svg { display: block; width: 100%; height: auto; overflow: visible; }

.lk-base { stroke: var(--lav-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.lk-bl   { font-size: 8px; fill: var(--ink-soft); }
.lk-area { fill: var(--lav-tint); }
.lk-line { fill: none; stroke: var(--wine); stroke-width: 2;
           stroke-linejoin: round; stroke-linecap: round; }
.lk-dot  { fill: var(--wine-deep); }
.lk-peak { fill: var(--wine); stroke: var(--paper); stroke-width: 1.5; }
.lk-ml   { font-size: 9.5px; fill: var(--ink-soft); }

/* The locked months. Not a blurred copy of anything — the server never sent
   them. A flat row of identical moons reads as "nothing here yet", which is
   the truth, and cannot be mistaken for a forecast or sharpened back. */
.lk-mist { fill: var(--lav); opacity: .14; }
.lk-moon { font-size: 11px; opacity: .45; }

.lk-edge { stroke: var(--lav); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }

.lk-lock { margin-top: 10px; padding: 14px; text-align: center;
  background: var(--lav-tint); border: 1px solid var(--lav-soft);
  border-radius: var(--radius-sm); }
.lk-lock-h { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--wine); }
.lk-lock-p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }
.lk-lock .btn { font-size: 14px; min-height: 48px; }

.lk-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px;
  background: var(--lav-soft); border: 1px solid var(--lav-soft); border-radius: var(--radius-sm);
  overflow: hidden; }
.lk-notes li { display: grid; grid-template-columns: 2.6em auto 1fr; gap: 4px 8px;
  align-items: baseline; background: var(--paper); padding: 9px 12px; }
.lk-notes b { font-family: 'Noto Serif JP', serif; color: var(--wine); }
.lk-stars { color: var(--wine); letter-spacing: .5px; font-size: 11px; }
.lk-stars i { color: var(--lav-soft); font-style: normal; }
.lk-mood { font-size: 11.5px; color: var(--lav-ink); }
.lk-note { grid-column: 1 / -1; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.lk-foot { margin: 8px 2px 0; font-size: 11px; color: var(--ink-soft); }

@media (min-width: 560px) {
  .lk-notes li { grid-template-columns: 3em auto 6.5em 1fr; }
  .lk-note { grid-column: auto; }
}

.wuxing { display: grid; gap: 8px; }
.wuxing-row { display: grid; grid-template-columns: 24px 1fr 28px; align-items: center; gap: 10px; }
.wuxing-row .wl { font-family: 'Noto Serif JP', serif; font-weight: 700; }
.wuxing-row .wv { text-align: right; font-size: 13px; color: var(--ink-soft); }
.wuxing-bar { height: 12px; border-radius: 999px; background: var(--lav-tint); overflow: hidden; }
.wuxing-bar > span { display: block; height: 100%; border-radius: 999px; }
.w-wood > span { background: var(--el-wood); }
.w-fire > span { background: var(--el-fire); }
.w-earth > span { background: var(--el-earth); }
.w-metal > span { background: var(--el-metal); }
.w-water > span { background: var(--el-water); }

/* ---------- today ribbon ---------- */
.today {
  background: linear-gradient(135deg, var(--ink), #6B1A34); color: var(--paper);
  border-radius: var(--radius); padding: 16px 20px; text-align: center; box-shadow: var(--shadow);
}
.today .t-label { color: var(--on-wine); font-size: 12px; letter-spacing: 2px; }
.today .t-text { font-family: 'Noto Serif JP', serif; font-size: clamp(16px, 3.6vw, 20px); }

/* ---------- paywall ---------- */
.paywall { text-align: center; }
.paywall .veil { position: relative; }
.paywall-list {
  list-style: none; margin: 14px auto 0; padding: 16px 18px; max-width: 440px;
  text-align: left; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(243,239,251,.5));
  border: 1px solid rgba(189,154,196,.22); border-radius: 16px;
}
.paywall-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.55; color: var(--ink); padding: 7px 0;
}
.paywall-list li + li { border-top: 1px dashed rgba(189,154,196,.18); }
.paywall-list .pw-ic { flex: 0 0 auto; font-size: 18px; line-height: 1.4; }
.paywall-list b { color: var(--lav-ink); font-weight: 700; }

/* ---------- premium (paid intro on index) ----------
   The heading and the 13回 pitch stay real text: the artwork sheet only has
   1536px to spend, and spending it on the six cards keeps them legible. */
.premium {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FBF7FF 0%, #F3EEFB 100%);
  border: 1px solid rgba(189,154,196,.18);
  padding-top: 34px;
}
.ribbon {
  display: block; width: max-content; margin: 0 auto 18px;
  font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 15px; letter-spacing: .12em;
  color: var(--wine-deep); background: linear-gradient(180deg,#FEFEFE,#F5EBFA);
  border: 1px solid var(--wine); border-radius: 8px; padding: 8px 26px; position: relative;
  box-shadow: 0 4px 12px rgba(126,15,50,.14);
}
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 50%; width: 20px; height: 2px; background: var(--wine); }
.ribbon::before { left: -20px; } .ribbon::after { right: -20px; }
.prem-title { font-size: clamp(22px,5vw,30px); margin: 0 0 12px; }
.prem-sub { max-width: 560px; margin: 0 auto; font-size: 15px; }
.prem-empathy { max-width: 600px; margin: 18px auto 0; color: var(--lav-ink); font-size: 14.5px; font-weight: 600; line-height: 1.7; }
.value13 {
  margin: 22px auto 4px; max-width: 620px; text-align: center;
  background: linear-gradient(135deg, rgba(189,154,196,.20), rgba(126,15,50,.07));
  border: 1px solid rgba(189,154,196,.55); border-radius: 18px; padding: 18px 20px;
}
.value13-head { font-family:'Noto Serif JP',serif; font-weight:700; font-size:17px; color:var(--ink); display:flex; align-items:center; justify-content:center; gap:10px; }
.v13-badge {
  display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%;
  background:var(--ink); color:var(--on-wine); font-family:'Cormorant Garamond',serif; font-weight:700; font-size:22px;
}
.value13-body { margin: 10px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }
.value13-body b { color: var(--lav-ink); }
.prem-closing { margin: 26px 0 14px; color: var(--wine-deep); font-weight: 700; letter-spacing: .05em; }

/* ---------- menu cards ----------
   The card copy is real text rather than baked into the artwork: on a phone
   the sheets rendered it at 4-6px. Only the icons stay as images, and the
   gold frame / lavender wash follow the sheets they came from. */
/* ── The menus are the designer's cards ────────────────────────────────
   Both sheets arrive as finished cards: frame, moon badge, illustration
   and the title set into the paper. Cutting the illustration out of them
   and setting the title in HTML beside it — which is what this used to
   do — produced a cream rectangle with hard edges sitting inside another
   card. The card is the card. Its own text stays in the markup, hidden,
   so crawlers and screen readers still have it and nothing is drawn
   twice. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.mcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin-top: 22px; }
.mcard { display: block; text-decoration: none; transition: transform .16s ease, filter .16s ease; }
.mcard:hover { transform: translateY(-3px); filter: drop-shadow(0 12px 22px rgba(126,15,50,.20)); }
.mcard-art { display: block; }
.mcard-art img { display: block; width: 100%; height: auto; }
.mcard p { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.75;
  color: var(--ink-soft); text-align: center; }

.pcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 18px 0 6px; }
.pcard { display: block; text-decoration: none; transition: transform .16s ease, filter .16s ease; }
.pcard:hover { transform: translateY(-3px); filter: drop-shadow(0 14px 26px rgba(126,15,50,.20)); }
.pcard-art { display: block; }
.pcard-art img { display: block; width: 100%; height: auto; }

@media (min-width: 560px) { .mcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) {
  .mcards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- illustrated blocks ----------
   Whole sections are single transparent PNGs (命式 intro, consult menu,
   ルナのリンク, premium menu). They sit straight on the page background —
   no card, no frame — because each artwork carries its own. */
.art-block, .art-link { display: block; margin: 0 auto; max-width: 100%; line-height: 0; }
.art-link { text-decoration: none;
  transition: transform .15s ease, filter .15s ease; }
.art-link:hover { transform: translateY(-3px); filter: drop-shadow(0 12px 24px rgba(88,56,104,.18)); }
/* each artwork is a <picture> (webp + png fallback) */
.art-link picture { display: block; }
.art-block img, .art-link img { display: block; width: 100%; height: auto; }
.art-link + .art-link { margin-top: 18px; }
.prem-cta { box-shadow: 0 8px 22px rgba(189,154,196,.35); }

/* ---------- tarot ---------- */
.tarot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tcard { text-align: center; padding: 16px 8px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--paper), var(--lav-tint)); border: 1px solid var(--lav-soft); box-shadow: var(--shadow-sm); }
.tcard .tpos { font-size: 12px; color: var(--wine-deep); font-weight: 700; }
.tcard .tface { font-size: 40px; margin: 6px 0; }
.tcard .tname { font-family: 'Noto Serif JP', serif; font-weight: 700; }
.tcard .torient { font-size: 12px; color: var(--ink-soft); }
.tcard.rev .tface { transform: rotate(180deg); }

/* ---------- reading sections ---------- */
.reading-sec { margin-top: 18px; }
.reading-sec h3 { display: flex; align-items: center; gap: 8px; color: var(--ink);
  border-bottom: 1px solid var(--lav-soft); padding-bottom: 6px; margin-bottom: 8px; }
.reading-sec p { margin: 0; white-space: pre-wrap; }

/* ---------- faq ---------- */
.faq details { background: var(--paper); border: 1px solid rgba(189,154,196,.38); border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋"; color: var(--lav-ink); margin-right: 10px; }
.faq details[open] summary::before { content: "－"; }
.faq details > p { margin: 0 0 14px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--lav-soft); margin-top: 40px; }
.site-footer .container { padding-block: 32px; }
.site-footer a { color: var(--lav-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-wine); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.footer-copy { font-size: 13px; opacity: .7; }

/* ---------- goods teaser (dark luxe) ---------- */
.dark-band {
  background: linear-gradient(160deg, #380C18 0%, var(--ink) 55%, #6B1A34 100%);
  color: var(--paper);
}
.dark-band .eyebrow { color: var(--on-wine); }
.dark-band h1, .dark-band h2, .dark-band h3 { color: var(--paper); }
.dark-band .lead { color: rgba(255, 253, 249, .78); }
.dark-band .muted { color: rgba(255, 253, 249, .6); }
.badge-soon {
  display: inline-block; background: rgba(189, 154, 196, .20); color: var(--wine);
  border: 1px solid var(--wine); border-radius: 999px; padding: 6px 16px;
  font-weight: 700; font-size: 13px; letter-spacing: 2px;
}
.goods-photo { width: 100%; height: auto; border-radius: var(--radius); display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.goods-hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.set-list { list-style: none; padding: 0; margin: 18px 0 0; }
.set-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(254,254,254,.14); }
.set-list li::before { content: "✦"; color: var(--on-wine); }
.interest-card { max-width: 520px; margin: 0 auto; text-align: center; }
.thanks { color: var(--wine-deep); font-weight: 700; }
@media (min-width: 760px) {
  .goods-hero { grid-template-columns: 1.05fr .95fr; gap: 36px; }
  .goods-hero.rev .goods-copy { order: 2; }
}

/* ---------- legal / info pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(24px, 5vw, 32px); }
.legal .updated { color: var(--ink-soft); font-size: 13px; margin-top: -6px; }
.legal h2 { font-size: 18px; margin-top: 30px; border-bottom: 1px solid var(--lav-soft); padding-bottom: 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal dl { margin: 18px 0; }
.legal dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(189,154,196,.2); }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; color: var(--ink-soft); }
.todo { background: #FFF6E6; border: 1px dashed var(--wine-deep); color: #8a6d2f; padding: 1px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.admin-note { background: #FFF6E6; border: 1px dashed var(--wine-deep); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: #8a6d2f; }
@media (min-width: 600px) { .legal dl > div { grid-template-columns: 210px 1fr; gap: 16px; align-items: start; } }

/* ---------- form ---------- */
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--lav-soft); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lav); outline-offset: 1px; border-color: var(--lav); }

/* ---------- reading-scene photo band ---------- */
/* ── The reading scene, folded ──────────────────────────────────────────
   This was a painted picture in purple and orange, which sat on a page
   that had since become wine and cream. Rebuilt from the folded set, as
   an arrangement rather than one flat image: the pieces keep their own
   resolution, scale with the column, and the moon is drawn in CSS. */
.scene-fold {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid rgba(189,154,196,.45);
  box-shadow: var(--shadow);
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(189,154,196,.26), transparent 62%),
    linear-gradient(170deg, #FBF6FF 0%, #F4EBFB 100%);
  padding: clamp(18px, 4vw, 30px) clamp(10px, 3vw, 26px) clamp(14px, 3vw, 22px);
}
/* the full moon the painted version had, without the 480KB */
.scene-fold .sf-moon {
  position: absolute; top: clamp(14px, 4vw, 30px); right: clamp(18px, 7vw, 64px);
  width: clamp(34px, 8vw, 58px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #FFFDF6, #F3E2C6 62%, #E6D0AE);
  box-shadow: 0 0 0 clamp(8px, 2.4vw, 18px) rgba(246,226,208,.30),
              0 0 clamp(20px, 6vw, 46px) rgba(246,226,208,.55);
}
.scene-fold .sf-row {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(4px, 2vw, 22px);
}
.scene-fold picture { display: block; }
.scene-fold img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 10px 18px rgba(88,56,104,.18)); }
.scene-fold .sf-luna  { flex: 0 1 25%; max-width: 168px; }
.scene-fold .sf-cards { flex: 0 1 46%; max-width: 310px; margin-bottom: clamp(2px, 1.4vw, 14px); }
.scene-fold .sf-taro  { flex: 0 1 20%; max-width: 132px; }

.scene-caption { font-family: 'Noto Serif JP', serif; font-size: clamp(15px,3vw,19px); color: var(--ink); margin-top: 16px; }

.premium-note { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--lav-tint); border: 1px solid var(--lav-soft);
  font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.premium-note b { color: var(--lav-ink); }
.premium-note a { color: var(--ink-soft); font-size: 12.5px; }
.form-error { color: #b0453a; font-size: 14px; margin: 8px 0 0; min-height: 1.2em; }
.microcopy { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* spinner */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reading-grid { grid-template-columns: 1fr 1fr; }
  /* on wide screens each artwork is capped so it doesn't dominate the page.
     the caps differ by aspect: the portrait sheets read fine narrow, while
     the landscape consult menu needs width to keep its 10 cards legible. */
  .art-block, .art-link { max-width: 560px; }   /* 命式 intro (portrait) */
  .luna-link    { max-width: 760px; }           /* ルナのリンク (wide banner) */
  .hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 30px; }
  .hero-inner .mascot-wrap { order: 2; }
}
@media (max-width: 380px) {
  .meishiki { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- free emphasis (hero) ---------- */
.free-banner {
  margin: 16px auto 0; max-width: 560px; padding: 12px 16px;
  background: linear-gradient(135deg, #FCF5FF, #F2E8FC);
  border: 1.5px solid var(--wine); border-radius: var(--radius-sm);
  color: var(--ink); font-size: 15px; line-height: 1.7; box-shadow: var(--shadow-sm);
}
.free-badge {
  display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--wine-deep); color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .05em; vertical-align: 1px;
}
.free-hi { color: var(--wine-deep); }
.free-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }

/* ---------- paid-result sample ---------- */
.sample-wrap { margin-top: 28px; }
.sample-h { text-align: center; margin: 0 0 4px; font-size: 19px; color: var(--ink); }
.sample-sub { text-align: center; margin: 0 0 16px; font-size: 12.5px; color: var(--ink-soft); }
.sample-doc {
  position: relative; background: var(--paper); border: 1.5px solid var(--lav-soft);
  border-radius: var(--radius); padding: 26px 20px 20px; box-shadow: var(--shadow);
}
.sample-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--lav); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.sample-sec { margin-top: 18px; }
.sample-sec:first-of-type { margin-top: 4px; }
.sample-sec h4 { margin: 0 0 8px; font-size: 15.5px; color: var(--ink); }
.sample-sec p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ink-soft); }
.sample-theme {
  margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--lav-ink);
  background: var(--lav-tint); padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.sample-meishiki { width: 100%; border-collapse: collapse; font-size: 14px; }
.sample-meishiki th, .sample-meishiki td {
  border: 1px solid var(--lav-soft); padding: 7px 4px; text-align: center;
}
.sample-meishiki th { background: var(--lav-tint); font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.sample-meishiki td { font-size: 17px; font-weight: 700; color: var(--ink); }
.sample-meishiki td.hl { background: #F5EBFA; color: var(--wine-deep); }
.sample-el { margin-top: 8px !important; font-size: 13px !important; text-align: center; }
.sample-tarot { list-style: none; margin: 0; padding: 0; }
.sample-tarot li {
  display: grid; grid-template-columns: 46px 108px 1fr; gap: 8px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dashed var(--lav-soft); font-size: 13.5px;
}
.sample-tarot li:last-child { border-bottom: 0; }
.sample-tarot .pos { color: var(--lav-ink); font-weight: 700; font-size: 12px; }
.sample-tarot .tname { font-weight: 700; color: var(--ink); }
.sample-tarot .txt { color: var(--ink-soft); }
.sample-extra {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1.5px solid var(--lav-soft);
  font-size: 13px; line-height: 1.7; color: var(--ink-soft);
}
.sample-extra b { color: var(--ink); }
.ex-ico { font-size: 18px; }
@media (max-width: 560px) {
  .sample-tarot li { grid-template-columns: 40px 1fr; }
  .sample-tarot .txt { grid-column: 2; }
  .sample-extra { grid-template-columns: 1fr; }
}

/* ---------- ring deck: 40 cards fanned in a circle (paid ritual) ----------
   The whole deck fits one phone screen with no scrolling: a circle uses more
   perimeter than any arc. Cards are picked by the ANGLE of the tap, not by
   hitting a 18px sliver, so one listener on the stage replaces 40 targets. */
.ldeck-stage { position: relative; width: min(336px, 92vw); aspect-ratio: 1;
  margin: 10px auto 0; touch-action: manipulation; }
.ldeck-stage .tflip { position: absolute; left: 50%; top: 50%;
  width: var(--lw); height: calc(var(--lw) * 1.675);
  margin-left: calc(var(--lw) / -2); margin-top: calc(var(--lw) * -0.8375);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
  will-change: transform; cursor: pointer; }
.ldeck-stage .tflip .fin { padding-top: 0; height: 100%; }
.ldeck-stage .tflip .face { border-radius: 5px; border-width: 1px;
  box-shadow: 0 2px 7px rgba(88,56,104,.32); }
.ldeck-stage .tflip.hot .face { box-shadow: 0 0 0 2px var(--wine), 0 6px 18px rgba(88,56,104,.5); }
.ldeck-stage .tflip.taken { opacity: 0; pointer-events: none; }
.ldeck-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 98px; height: 98px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(250,243,255,.96) 42%, rgba(250,243,255,0) 72%);
  display: grid; place-items: center; line-height: 1.45; font-size: 12px;
  color: var(--ink-soft); transition: opacity .35s; }
.ldeck-core b { display: block; font-size: 19px; color: var(--ink); }

/* the cards you picked, lined up under the ring — a chosen card flies out of
   the circle, flips big in the middle, then settles into its slot here */
.ldeck-picked { display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin: 10px 0 6px; }
/* three to a row rather than five in a squint: ~93px wide on a phone
   instead of 58px, which is 2.6x the card area */
.ldeck-picked .pslot { width: calc(33.333% - 8px); max-width: 132px; aspect-ratio: 1 / 1.675; }
.ldeck-picked .pslot img { width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 6px; box-shadow: 0 3px 10px rgba(88,56,104,.25);
  object-position: bottom;   /* the one short card lines up on the row's base */
  opacity: 0; transition: opacity .3s; }
.ldeck-picked .pslot img.set { opacity: 1; }

/* The ring's chosen card is blown up with transform: scale(), so everything
   printed on it scales too. The position badge is sized for a 52px card and a
   label like 「今のあなたの心」 runs off the edge and gets clipped — so inside
   the ring it is set small enough to wrap within the card's own width. */
.ldeck-stage .tflip .front .tc-badge {
  /* left:50% + translateX(-50%) leaves only half the card to wrap in, which
     breaks the label one character per line — span the card instead. */
  left: 7%; right: 7%; transform: none; max-width: none; text-align: center;
  font-size: 6.5px; line-height: 1.4; white-space: normal;
  padding: 2px 4px; border-radius: 5px; top: 4px;
}

/* ---------- the purse page (me.html) ----------
   Two balances that are never interchangeable: 月のしずく are bought and buy
   readings; 星のかけら are earned and buy neither a reading nor a charm. The
   two cards are coloured apart so that never has to be re-explained. */
.purses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.purse { text-align: center; border-radius: var(--radius); padding: 15px 10px 13px;
  box-shadow: var(--shadow); color: #fff; }
.purse.moon { background: linear-gradient(160deg, #6B1A34, #380C18);
  border: 1.5px solid rgba(189,154,196,.6); }
.purse.star { background: linear-gradient(160deg, #1d2a46, #121a2e);
  border: 1.5px solid rgba(160,190,240,.4); }
.purse .tag { font-size: 10px; letter-spacing: .1em; opacity: .65; }
.purse .amt { font-family: 'Cormorant Garamond', serif; font-size: 42px; line-height: 1;
  margin: 4px 0 2px; transition: transform .25s; }
.purse.moon .amt { color: #F6E2D0; }   /* the paper cream, against the wine tile */
.purse.star .amt { color: #AFC9F2; }
.purse .amt.bump { transform: scale(1.2); }
.purse .unit { font-size: 12.5px; }
.purse .sub { font-size: 11px; opacity: .78; margin-top: 5px; min-height: 28px; line-height: 1.45; }

h2.wsec { font-size: 16px; margin: 26px 0 9px; text-align: center; }
.wnote { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: -5px 0 12px; line-height: 1.7; }

.act { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: var(--paper); border: 1.5px solid var(--lav-soft); border-radius: var(--radius-sm);
  padding: 12px 13px; font: inherit; color: var(--ink); text-decoration: none; }
.act.off { opacity: .45; pointer-events: none; }
.act .ico { font-size: 21px; width: 26px; text-align: center; }
.act .t { flex: 1; }
.act .t b { display: block; font-size: 14px; }
.act .t span { font-size: 11.5px; color: var(--ink-soft); }
.act .cost { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cost.moon { color: var(--wine-deep); }

.tier { position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
  text-align: left; background: var(--paper); border: 1.5px solid var(--lav-soft);
  border-radius: var(--radius-sm); padding: 13px; cursor: pointer; font: inherit;
  color: var(--ink); margin-bottom: 9px; }
.tier[disabled] { opacity: .5; cursor: default; }
.tier.best { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(126,15,50,.14); }
/* The first-timer plan carries its own badge and a lighter frame: two
   competing primary markers in one list is noise, so おすすめ keeps the
   strong one. */
.tier.first { border-color: var(--lav); background: var(--lav-tint); }
.tier.first .badge { background: var(--lav-ink); }
.tier .yen { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 700;
  width: 78px; flex: 0 0 78px; }
.tier .mid { flex: 1; }
.tier .mid b { display: block; font-size: 14.5px; color: var(--wine-deep); }
.tier .mid b s { opacity: .5; font-weight: 400; }
.tier .mid span { font-size: 11.5px; color: var(--ink-soft); }
.tier .per { font-size: 11px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.tier .badge { position: absolute; top: -9px; right: 12px; background: var(--wine-deep);
  color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }

.bonus { display: flex; gap: 10px; align-items: flex-start; background: #EDF3FC;
  border: 1.5px solid #9FB9E0; border-radius: var(--radius-sm); padding: 11px 13px;
  margin-bottom: 11px; font-size: 13px; cursor: pointer; }
.bonus.off { opacity: .5; cursor: not-allowed; }
.bonus input { margin-top: 2px; width: 17px; height: 17px; flex: 0 0 17px; }
.bonus b { display: block; color: #28558F; }
/* only the sub-line is a block. `.bonus span span` also caught the
   number inside the headline, which is why it sat on a line of its own. */
.bonus > span > span { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

/* the collection — locked charms stay visible, so the set you are missing is
   something you can see rather than guess at */
.collbar { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--ink-soft); margin-bottom: 9px; }
.collbar b { color: var(--wine-deep); font-size: 14px; }
.coll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.om { position: relative; border: none; background: none; padding: 0; cursor: pointer; font: inherit; }
.om img { width: 100%; aspect-ratio: 1 / 1.69; object-fit: cover; border-radius: 8px;
  display: block; border: 1.5px solid var(--lav-soft); transition: .25s; }
.om.locked img { filter: grayscale(1) brightness(.34) contrast(.85); }
.om.locked:not([disabled]):hover img { filter: grayscale(.55) brightness(.6); }
.om.got img { border-color: var(--wine); box-shadow: 0 3px 12px rgba(126,15,50,.26); }
.om .nm { display: block; font-size: 9.5px; line-height: 1.35; margin-top: 4px; color: var(--ink-soft); }
.om.got .nm { color: var(--ink); font-weight: 700; }
.om .lk { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px;
  color: #AFC9F2; font-weight: 700; text-shadow: 0 1px 6px #000; pointer-events: none; }
.om[disabled] { cursor: default; }
.om[disabled] .lk { opacity: .45; }
.om.new img { animation: omPop .5s; }
@keyframes omPop { 0% { transform: scale(.8); opacity: .4 } 60% { transform: scale(1.07) } 100% { transform: scale(1) } }

.lot { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--paper); border: 1.5px solid var(--lav-soft); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 7px; font-size: 13px; }
.lot.dead { opacity: .48; border-style: dashed; }
.lot .n { font-weight: 700; color: var(--wine-deep); white-space: nowrap; }
.lot .exp { font-size: 11px; color: var(--ink-soft); }
.lot .exp.soon { color: #A4453B; font-weight: 700; }

.ledger .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px;
  border-bottom: 1px dashed var(--lav-soft); font-size: 12.5px; }
.ledger .row:last-child { border-bottom: 0; }
.ledger .d { font-weight: 700; white-space: nowrap; }
.ledger .when { color: var(--ink-soft); font-size: 11px; }
.ledger .empty, .coll ~ .empty { color: var(--ink-soft); font-size: 13px; text-align: center; padding: 13px 0; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 24px); opacity: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13.5px;
  transition: .3s; pointer-events: none; z-index: 99; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── The link that is the account ───────────────────────────────────────────
   There are no passwords here: the URL in these blocks is the only way back
   to a purse or a 鑑定書. It used to be a bare <code> in a grey box, which
   read like a debug note rather than the one thing worth keeping — so it is
   set as something to be kept: gold rule, real letterforms, room to breathe,
   and the URL itself selectable rather than hidden behind link text. */
.keepcard {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--paper) 0%, #F8F1FD 100%);
  border: 1px solid rgba(189,154,196,.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 17px 17px 15px;
  margin-top: 16px;
}
.keepcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--wine-deep), var(--wine), var(--lav-soft));
}
.keepcard-top { margin: 0 0 16px; }

.keep-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink); margin: 2px 0 6px;
}
.keep-p { font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 11px; }
.keep-p b { color: var(--ink); }

/* The URL, plainly. word-break keeps a long token inside the card instead of
   widening the page, and the monospace stack makes a hand-copied character
   unambiguous. */
.keep-url {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.65; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  background: rgba(245,235,250,.8);
  border: 1px dashed rgba(189,154,196,.42);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  word-break: break-all; overflow-wrap: anywhere;
  transition: border-color .18s, background .18s;
}
.keep-url:hover { border-color: var(--lav); background: rgba(245,235,250,1); }

.keep-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.keep-acts .btn { flex: 1 1 auto; padding: 9px 14px; font-size: 13px; min-width: 120px; }

/* ── Result page: a way out at the top, not only after three screens ────── */
.rbar { display: flex; gap: 8px; margin: 0 0 14px; }
.rbar-b {
  flex: 1; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid rgba(189,154,196,.30);
  border-radius: 999px;
  padding: 9px 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, color .18s, transform .18s;
}
.rbar-b:hover { border-color: var(--lav); color: var(--ink); transform: translateY(-1px); }
.rbar-b.gold {
  color: #fff; border-color: var(--wine); background: var(--wine);
}
.rbar-b.gold:hover { border-color: var(--wine-deep); background: var(--wine-deep); color: #fff; }

/* the charm picker's own one-line feedback, in place of me.html's toast */
.charm-msg {
  min-height: 1.2em; margin: 8px 0 0;
  font-size: 12.5px; font-weight: 600; color: var(--wine-deep);
}

/* the folded deck, waiting, above the breath the ritual asks for */
.ritual-cards { display: block; width: 100%; max-width: 220px; height: auto;
  margin: -4px auto 2px; filter: drop-shadow(0 8px 16px rgba(88,56,104,.14)); }

/* ── Past readings, listed in the purse ─────────────────────────────────
   The purse used to end here: it could sell a reading and show the charms
   one had been given, but led nowhere back. Each 鑑定書 keeps its own
   unspent questions, and that page is the only place they can be asked. */
.past { display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--paper); border: 1px solid rgba(189,154,196,.55);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.past:hover { border-color: var(--wine); transform: translateY(-1px); }
.past .pt { flex: 1; min-width: 0; }
.past .pt b { display: block; font-size: 14px; color: var(--ink); }
.past .when { font-size: 11.5px; color: var(--ink-soft); }
.past .qleft { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--wine); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.past .qdone { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.past .go { flex: 0 0 auto; color: var(--lav-ink); font-size: 19px; line-height: 1; }

/* ── Back from Stripe ───────────────────────────────────────────────────
   The buyer arrives here the instant they pay, which may be a beat before
   the webhook credits anything. This card carries that beat: it shows the
   letter arriving, and says what it actually knows. */
.paidcard { overflow: hidden; border-radius: var(--radius); margin: 0 0 16px;
  background: var(--paper); border: 1.5px solid var(--wine);
  box-shadow: 0 14px 34px rgba(126,15,50,.16); }
.paidcard .paid-art { display: block; width: 100%; height: auto; }
/* the tray is cut to its own edges, so it needs the margin the
   letter photograph already carries inside its frame. */
.paidcard .paid-tray { width: 88%; margin: 18px auto 2px; }
.paid-txt { padding: 16px 18px 18px; text-align: center; }
.paid-eyebrow { font-size: 11.5px; letter-spacing: .16em; color: var(--lav-ink);
  margin: 0 0 4px; font-weight: 700; }
.paid-h { font-family: 'Noto Serif JP', serif; font-size: 18px; line-height: 1.5;
  color: var(--wine); margin: 0 0 8px; }
.paid-h b { color: var(--wine); font-size: 1.18em; }
.paid-h .spin { margin-left: 8px; vertical-align: -2px;
  border-color: rgba(189,154,196,.45); border-top-color: var(--wine); }
.paid-sub { font-size: 13px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 12px; }
.paid-sub b { color: var(--ink); }
.paidcard .btn { width: 100%; }

/* ── The poster ────────────────────────────────────────────────────────
   The designer's first panel: the pair, two lines, and one way in. It
   opens the page; everything that used to stand here still follows below,
   because the poster sells the feeling and the copy under it answers the
   questions the feeling raises. */
.poster { max-width: 460px; margin: 0 auto 30px; }
.poster .hairline-gold { margin: 18px auto; }
.poster-art { display: block; width: 100%; max-width: 330px; height: auto;
  margin: 2px auto 10px; filter: drop-shadow(0 12px 22px rgba(88,56,104,.16)); }
.poster-title {
  font-family: 'Noto Serif JP', serif; font-weight: 700;
  font-size: clamp(38px, 11vw, 58px); line-height: 1.22; letter-spacing: .02em;
  color: var(--wine); margin: 0;
}
.poster-sub {
  font-family: 'Noto Serif JP', serif; font-weight: 500;
  font-size: clamp(16px, 4.2vw, 21px); line-height: 1.75;
  color: var(--wine-deep); margin: 14px 0 0;
}
/* The comp's button runs the full width of the card and carries a chevron
   rather than an icon; .btn-wine already cuts the corners. */
.poster-cta { width: 100%; font-size: clamp(17px, 4.6vw, 21px);
  padding: 17px 24px; letter-spacing: .04em; gap: 14px; }
.poster-cta .chev { font-size: 1.15em; line-height: 1; margin-top: -.1em; }
.poster + .hero-brand { margin-top: 4px; }

/* ── The guide-voice note ───────────────────────────────────────────────
   Was a 1120px JPEG with the Japanese baked into it: soft on a retina
   screen, unselectable, untranslatable, and painted in the old purple.
   The words are words now, between the two of them. */
.sound-note {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end;
  grid-template-areas: "luna txt taro";
  gap: clamp(2px, 2vw, 18px);
  width: 100%; padding: clamp(14px, 3.4vw, 22px) clamp(10px, 3vw, 20px);
  border-radius: var(--radius);
  background: linear-gradient(170deg, #FFFFFF 0%, var(--lav-tint) 100%);
  border: 1px solid rgba(189,154,196,.45);
  box-shadow: var(--shadow-sm);
}
.sound-note picture { display: block; }
.sound-note img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 7px 13px rgba(88,56,104,.16)); }
.sound-note .sn-luna { grid-area: luna; width: clamp(52px, 15vw, 86px); }
.sound-note .sn-taro { grid-area: taro; width: clamp(44px, 12vw, 72px); }
.sound-note .sn-txt  { grid-area: txt; }

/* On a phone the three columns squeeze the sentence into four ragged
   lines. Give it the full width and sit the two of them underneath. */
@media (max-width: 560px) {
  .sound-note {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "txt txt" "luna taro";
    row-gap: 10px; align-items: end;
  }
  .sound-note .sn-luna { width: 78px; justify-self: end;   margin-right: 6px; }
  .sound-note .sn-taro { width: 64px; justify-self: start; margin-left: 6px; }
}
.sn-txt { align-self: center; text-align: center; padding: 0 2px;
  max-width: 30em; margin-inline: auto; }
.sn-txt p { margin: 0 0 .7em; font-size: clamp(12px, 3.1vw, 14.5px);
  line-height: 1.85; color: var(--ink-soft);
  /* Japanese breaks almost anywhere, so a nearly-full line leaves one
     orphaned clause. Let the browser even the lines out instead. */
  text-wrap: balance; }
.sn-txt p:last-child { margin-bottom: 0; }
/* No hand-placed breaks: they fought the natural wrap at every width but
   the one they were measured at. The column is capped instead. */

/* ── Free or paid, asked plainly ────────────────────────────────────────
   The form had one button and one meaning, and the only way to a paid
   reading ran through a free one first — which reads as a toll rather
   than a choice. Both are offered here, before anything is typed. */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 12px; }
.pick-opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 10px; cursor: pointer; text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--paper); color: var(--ink-soft);
  border: 1.5px solid rgba(189,154,196,.5); border-radius: var(--radius-sm);
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.pick-opt:hover { border-color: var(--lav-ink); }
.pick-opt .po-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.pick-opt .po-s { font-size: 11px; line-height: 1.5; }
.pick-opt .po-bal { font-size: 10.5px; font-weight: 700; color: var(--wine);
  background: var(--lav-tint); border-radius: 999px; padding: 2px 8px; margin-top: 3px; }
.pick-opt.is-on {
  border-color: var(--wine); background: var(--lav-tint); color: var(--wine-deep);
  box-shadow: 0 0 0 2px rgba(126,15,50,.10);
}
.pick-opt.is-on .po-t { color: var(--wine); }
.pick-opt.is-on .po-bal { background: var(--paper); }

/* the line that says the form filled itself in, and how to undo that */
.recalled { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 9px 13px; border-radius: var(--radius-sm);
  background: var(--lav-tint); border: 1px solid rgba(189,154,196,.45);
  font-size: 12.5px; color: var(--ink-soft); }
.recalled button { border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--wine);
  text-decoration: underline; text-underline-offset: 2px; }
.recalled button:hover { color: var(--wine-deep); }

/* ── Card meaning pages ─────────────────────────────────────────────────
   Written for someone who does not read tarot, so the picture leads and
   every term that could stop them carries its gloss where it appears. */
.crumb { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; }
.crumb a { color: var(--lav-ink); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.cardpage { background: var(--paper); border: 1px solid rgba(189,154,196,.40);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px); }

.cp-head { display: flex; gap: clamp(14px, 3vw, 24px); align-items: flex-start; }
/* width-driven, height auto: a deck re-cut at another ratio just drops in */
.cp-art { flex: 0 0 clamp(108px, 30%, 180px); width: clamp(108px, 30%, 180px); height: auto;
  border-radius: 8px; box-shadow: 0 8px 20px rgba(88,56,104,.22); }
.cp-id { min-width: 0; }
.cp-id h1 { font-family: 'Noto Serif JP', serif; font-size: clamp(26px, 6.5vw, 38px);
  line-height: 1.3; margin: 0 0 2px; color: var(--wine); }
.cp-en { display: block; font-family: 'Cormorant Garamond', serif; font-size: .46em;
  font-weight: 400; letter-spacing: .04em; color: var(--lav-ink); margin-top: 2px; }
.cp-meta { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 10px; letter-spacing: .04em; }
.cp-lead { font-size: 14.5px; line-height: 1.9; margin: 0; }

.cp-sec { margin-top: 26px; }
.cp-sec h2 { font-family: 'Noto Serif JP', serif; font-size: clamp(17px, 4.4vw, 21px);
  color: var(--wine); margin: 0 0 6px; }
.cp-sec > p { font-size: 14.5px; line-height: 1.95; margin: 0; }
.cp-note { font-size: 12px; color: var(--ink-soft); background: var(--lav-tint);
  border-radius: var(--radius-sm); padding: 7px 11px; margin: 0 0 12px; line-height: 1.7; }

.tks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tk { font-size: 12.5px; font-weight: 700; color: var(--wine);
  background: var(--lav-tint); border: 1px solid rgba(189,154,196,.5);
  border-radius: 999px; padding: 4px 13px; }

.tthg { display: grid; gap: 10px; grid-template-columns: 1fr; }
.tth { border-left: 3px solid var(--lav); padding: 2px 0 2px 13px; }
.tth h4 { font-size: 13.5px; color: var(--ink); margin: 0 0 3px; }
.tth p { font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin: 0; }

.tslots { display: grid; gap: 9px; grid-template-columns: 1fr; }
.tslot { background: var(--lav-tint); border-radius: var(--radius-sm); padding: 11px 14px; }
.tslot b { display: block; font-size: 13px; color: var(--wine); margin-bottom: 2px; }
.tslot p { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); margin: 0; }

.cp-advice { background: var(--lav-tint); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 28px; }
.cp-advice h2 { margin-top: 0; }

.cp-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 20px; font-size: 13px; }
.cp-nav a { color: var(--lav-ink); text-decoration: none; }
.cp-nav a:hover { color: var(--wine); text-decoration: underline; }

@media (min-width: 620px) {
  .tthg { grid-template-columns: 1fr 1fr; }
  .tslots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 460px) {
  .cp-head { flex-direction: column; align-items: center; text-align: center; }
  .cp-art { flex: 0 0 auto; width: 160px; }
  .cp-lead { text-align: left; }
}

/* ── /tarot/ — the hub ──────────────────────────────────────────────── */
.tx-lead { font-size: 14px; line-height: 1.95; color: var(--ink-soft); margin: 10px 0 0; }
.tx-jumps { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.tx-jump { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--wine);
  background: var(--paper); border: 1.5px solid rgba(189,154,196,.5);
  border-radius: 999px; padding: 6px 15px; transition: border-color .15s, background .15s; }
.tx-jump:hover { border-color: var(--wine); background: var(--lav-tint); }

.tx-sec { margin-top: 32px; }
.tx-sec h2 { font-family: 'Noto Serif JP', serif; font-size: clamp(18px, 4.6vw, 23px);
  color: var(--wine); margin: 0 0 2px; display: flex; align-items: baseline; gap: 10px; }
.tx-count { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.tx-blurb { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; }

/* 104px + gaps came to 336 against a 335px phone column, so three cards
   fell to two. 92 leaves room. */
.tx-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.tx-card { display: block; text-decoration: none; text-align: center; }
.tx-card img { display: block; width: 100%; height: auto; border-radius: 7px;
  box-shadow: 0 4px 12px rgba(88,56,104,.20); transition: transform .15s, box-shadow .15s; }
.tx-card:hover img { transform: translateY(-3px); box-shadow: 0 9px 20px rgba(88,56,104,.28); }
.tx-n { display: block; font-family: 'Cormorant Garamond', serif; font-size: 11.5px;
  color: var(--lav-ink); margin-top: 5px; letter-spacing: .06em; }
.tx-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.tx-kw { display: block; font-size: 11px; color: var(--ink-soft); }

.tx-coming { text-align: center; font-size: 13px; color: var(--ink-soft);
  background: var(--lav-tint); border-radius: var(--radius-sm); padding: 12px; margin-top: 26px; }

/* The premium header used to be a 1024px JPEG with its selling copy baked
   in — readable only as alt text, which is not where sentences belong.
   The banner is now just the banner, and this is the copy. */
/* ---------- ribbon buttons (the designer's folded-paper CTAs) ----------
   The label is part of the artwork, so the link carries no text of its
   own — only an aria-label, which is what a screen reader announces and
   what survives when the image does not load. Sized by width so a
   re-cut ribbon at another ratio drops in without touching a page. */
.btn-art { display: block; width: 100%; max-width: 420px; margin: 0 auto;
  transition: transform .16s ease, filter .16s ease; }
.btn-art img { display: block; width: 100%; height: auto; }
.btn-art:hover { transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(126,15,50,.22)); }
.btn-art:active { transform: translateY(0); }
.btn-art-wide { max-width: 520px; }

/* The charm-collection panels: one artwork, no frame of our own. */
.gift-panel { display: block; max-width: 560px; margin: 22px auto 0; }
.gift-panel img { display: block; width: 100%; height: auto; }

/* 星のかけら beside the line that explains what they are for. */
.bonus-art { flex: 0 0 40px; width: 40px; align-self: flex-start; margin-top: -2px; }
.bonus-art img { display: block; width: 100%; height: auto; }

/* The premium banner is 1200px wide artwork inside a card that is not.
   .premium clips its overflow, so without this it loses its right edge. */
/* The first-timer line: a quiet note above the ¥980 CTA, not a rival to it. */
.first-offer { max-width: 420px; margin: 0 auto 12px; padding: 10px 14px;
  background: var(--lav-tint); border: 1px dashed var(--lav); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.8; color: var(--ink-soft); text-align: center; }
.first-offer b { color: var(--wine); font-size: 15px; }
.first-offer a { color: var(--lav-ink); white-space: nowrap; }

.prem-head { display: block; max-width: 820px; margin: 0 auto 4px; }
.prem-head img { display: block; width: 100%; height: auto; }

.prem-intro { max-width: 620px; margin: 14px auto 22px; text-align: center; }
.prem-intro p { font-size: clamp(13.5px, 3.4vw, 15.5px); line-height: 2;
  color: var(--ink-soft); margin: 0 0 10px; }
.prem-intro p:last-child { margin-bottom: 0; }
.prem-intro b { color: var(--wine); font-weight: 700; }
