/*
 * 幻想小道具ノオト
 * 色はツクリテミライのカラートークン（colors.css）を土台に、夜側へ寄せている。
 *   sky-dark #1E2D68 / sky #7ACEFF / sky-soft #97BAFF / sky-deep #3F60BA
 *   star #EFECA7 / star-pale #FFF8C7 / surface-page #D2BEDE / haze #6E6E8C
 */
:root {
  --night-950: #10153f;
  --night-900: #141a4a;
  --night-800: #1e2d68;
  --night-700: #2c3584;
  --violet-500: #6560c0;
  --violet-300: #a79fe0;
  --lilac: #d2bede;
  --lilac-soft: #ece4f6;
  --sky: #7aceff;
  --sky-soft: #97baff;
  --sky-deep: #3f60ba;
  --star: #efeca7;
  --star-pale: #fff8c7;
  --paper: #fbf8ff;
  --paper-line: rgb(122 128 200 / 0.13);
  --paper-edge: rgb(167 159 224 / 0.55);
  --ink: #2a2e5c;
  --ink-soft: #545985;
  --ink-faint: #6e6e8c;
  --on-night: #e9ebff;
  --on-night-soft: #b9bfee;
  --radius-page: 22px;
  --font-serif: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--night-900);
  color: var(--on-night);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-synthesis: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }

/* ---------- 夜空 ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 85% 8%, rgb(122 206 255 / 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 8% 30%, rgb(167 159 224 / 0.18), transparent 70%),
    linear-gradient(180deg, var(--night-950) 0%, var(--night-800) 38%, #3b3d98 70%, #7d74c6 100%);
}
.sky-stars {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 140px 90px, #fff8c7 50%, transparent 52%),
    radial-gradient(1px 1px at 70px 160px, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 190px 200px, #cfe9ff 50%, transparent 52%),
    radial-gradient(1px 1px at 110px 230px, #fff 50%, transparent 52%);
  background-size: 240px 260px;
  opacity: 0.75;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky-stars--far {
  background-size: 170px 150px;
  background-position: 60px 40px;
  opacity: 0.4;
  animation-duration: 11s;
  animation-delay: -3s;
}
.sky-orbit {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 1100px;
  height: 640px;
  margin-left: -550px;
  border-radius: 50%;
  border: 1px solid rgb(255 248 199 / 0.12);
  transform: rotate(-14deg);
}
.sky-orbit::after {
  content: "";
  position: absolute;
  inset: 70px 140px;
  border-radius: 50%;
  border: 1px dashed rgb(151 186 255 / 0.12);
}
.sky-clouds {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60px;
  height: 260px;
  background:
    radial-gradient(closest-side at 12% 70%, rgb(210 190 222 / 0.55), transparent),
    radial-gradient(closest-side at 32% 82%, rgb(151 186 255 / 0.45), transparent),
    radial-gradient(closest-side at 55% 78%, rgb(236 228 246 / 0.4), transparent),
    radial-gradient(closest-side at 78% 72%, rgb(226 168 238 / 0.32), transparent),
    radial-gradient(closest-side at 95% 85%, rgb(151 186 255 / 0.4), transparent);
  filter: blur(6px);
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.85; } }

/* ---------- 枠 ---------- */
.site-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: rgb(236 240 255 / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / 0.5);
}
.site-logo img { display: block; height: 28px; width: auto; }
.site-pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--night-800);
  color: var(--star-pale);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.stage {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}
.site-foot {
  padding: 28px 16px 32px;
  text-align: center;
  color: var(--on-night);
  font-size: 0.75rem;
  text-shadow: 0 1px 6px rgb(20 26 74 / 0.6);
}
.site-foot p { margin: 0; }
.foot-copy { font-family: var(--font-serif); font-size: 0.9rem; letter-spacing: 0.12em; margin-bottom: 4px !important; }

/* ---------- ノオトの紙 ---------- */
.page {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 24px, rgb(210 190 222 / 0.7) 24px, rgb(210 190 222 / 0.7) 25px, transparent 25px),
    repeating-linear-gradient(180deg, transparent 0 33px, var(--paper-line) 33px 34px),
    var(--paper);
  border-radius: var(--radius-page);
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 0 0 6px rgb(255 248 199 / 0.07),
    0 18px 50px rgb(10 14 50 / 0.45),
    inset 0 0 40px rgb(210 190 222 / 0.35);
  padding: 26px 20px 26px 40px;
}
.page::before {
  /* 角の小さな星 */
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 14px;
  height: 14px;
  background: var(--star);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0.9;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.btn--star {
  color: var(--night-800);
  background: linear-gradient(180deg, #fffbe0, var(--star));
  border-color: #fff8c7;
  box-shadow: 0 0 0 4px rgb(255 248 199 / 0.15), 0 8px 24px rgb(239 236 167 / 0.25);
}
.btn--star > span::before,
.btn--star > span::after {
  content: "✦";
  margin: 0 0.6em;
  color: var(--sky-deep);
  font-size: 0.8em;
}
.btn--star:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px rgb(255 248 199 / 0.22), 0 10px 30px rgb(239 236 167 / 0.35); }
.btn--ghost {
  color: var(--on-night);
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(185 191 238 / 0.55);
  font-weight: 600;
  min-height: 46px;
  padding: 8px 20px;
  font-size: 0.92rem;
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.16); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-text {
  border: 0;
  background: none;
  padding: 8px 4px;
  min-height: 44px;
  color: var(--on-night-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.9rem;
}
.btn-text:hover { color: var(--star-pale); }

/* ---------- 表紙 ---------- */
#intro { text-align: center; }
.hero-seal {
  width: min(250px, 64vw);
  margin: 4px auto 18px;
  filter: drop-shadow(0 0 28px rgb(255 248 199 / 0.28));
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--sky);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}
.title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 22px rgb(255 248 199 / 0.45), 0 2px 0 rgb(20 26 74 / 0.4);
}
.lead {
  margin: 18px auto 26px;
  max-width: 34em;
  color: var(--on-night);
  font-size: 0.95rem;
}
.page--compact {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}
.field-label { display: block; font-weight: 700; font-size: 0.92rem; }
.field-label span {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
}
#char-name {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #b9b3e3;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
}
#char-name::placeholder { color: #8d90b0; }
.field-note { margin: 6px 0 20px; color: var(--ink-soft); font-size: 0.78rem; }
#intro-form .btn { width: 100%; }
.fine {
  margin: 18px auto 0;
  max-width: 30em;
  color: var(--on-night-soft);
  font-size: 0.78rem;
}

/* 表紙の下：用途説明と結果の一例 */
.about {
  max-width: 520px;
  margin: 44px auto 0;
  padding-top: 28px;
  border-top: 1px dashed rgb(255 248 199 / 0.3);
  text-align: left;
}
.about-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--on-night);
}
.about-text { margin: 12px 0 0; color: var(--on-night); font-size: 0.88rem; line-height: 1.9; }
.example {
  margin: 22px 0 0;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgb(185 191 238 / 0.35);
  background: rgb(20 26 74 / 0.5);
}
.example-label {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgb(255 248 199 / 0.14);
  color: var(--star-pale);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.example-head { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.example-seal { flex: none; width: 72px; filter: drop-shadow(0 0 12px rgb(255 248 199 / 0.3)); }
.example-name { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: #fff; }
.example-name span { display: block; font-size: 0.88rem; font-weight: 500; color: var(--star-pale); letter-spacing: 0.06em; }
.example-notes { margin: 14px 0 0; }
.example-notes dt { margin-top: 10px; color: var(--sky); font-size: 0.74rem; letter-spacing: 0.12em; }
.example-notes dd { margin: 2px 0 0; font-family: var(--font-serif); font-size: 0.9rem; line-height: 1.85; color: var(--on-night); }

/* ---------- 問い ---------- */
.constellation {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 340px;
  margin: 0 auto 22px;
  padding: 0;
  list-style: none;
}
.constellation::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  border-top: 1px dashed rgb(255 248 199 / 0.35);
}
.constellation .star { position: relative; }
.constellation button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.constellation svg { width: 18px; height: 18px; fill: rgb(185 191 238 / 0.45); transition: transform 0.2s, fill 0.2s; }
.constellation .is-done svg { fill: var(--star); width: 20px; height: 20px; }
.constellation .is-current svg {
  fill: var(--star-pale);
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgb(255 248 199 / 0.9));
}
.constellation button:disabled { cursor: default; }

.q-count {
  margin: 0 0 6px;
  color: var(--sky-deep);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}
.q-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--night-800);
}
.q-title:focus, .title:focus { outline: none; }
/* 白い紙面の上では、淡い黄色の枠が見えにくいので濃い青にする */
.page :focus-visible, .prop-tag :focus-visible { outline-color: var(--sky-deep); }
.q-title, .title, .lead, .prop-name, .option-label, .echo-a, .review-a { word-break: auto-phrase; text-wrap: pretty; }
.q-hint { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.options { display: grid; gap: 10px; margin-top: 20px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px 10px 12px;
  text-align: left;
  border-radius: 999px;
  border: 1px solid #c9c3ec;
  background: linear-gradient(180deg, #ffffff, #f3efff);
  color: var(--ink);
  box-shadow: 0 2px 0 rgb(167 159 224 / 0.35);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.option:hover { border-color: var(--violet-300); transform: translateY(-1px); }
.option-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lilac-soft);
  border: 1px solid #d9d2f2;
}
.option-mark svg { width: 16px; height: 16px; fill: var(--violet-300); }
.option-key {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.option-label { flex: 1; font-size: 0.98rem; line-height: 1.55; }
.option[aria-pressed="true"] {
  border-color: var(--night-800);
  background: linear-gradient(180deg, #4a63c4, var(--sky-deep));
  color: #fff;
  box-shadow: 0 0 0 3px rgb(255 248 199 / 0.5), 0 6px 18px rgb(63 96 186 / 0.35);
}
.option[aria-pressed="true"] .option-mark { background: var(--night-800); border-color: var(--star); }
.option[aria-pressed="true"] .option-mark svg { fill: var(--star); }
.q-nav { display: flex; justify-content: space-between; margin-top: 14px; }

.turn-next { animation: turn-next 0.42s ease both; }
.turn-prev { animation: turn-prev 0.42s ease both; }
@keyframes turn-next {
  from { opacity: 0; transform: translateX(24px) rotate(0.6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes turn-prev {
  from { opacity: 0; transform: translateX(-24px) rotate(-0.6deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- 探しているあいだ ---------- */
.screen--seeking { text-align: center; padding-top: 40px; }
.seeking-seal {
  width: min(220px, 58vw);
  margin: 0 auto 20px;
  animation: breathe 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgb(255 248 199 / 0.35));
}
.seeking-text { font-family: var(--font-serif); color: var(--on-night); letter-spacing: 0.08em; }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* ---------- 印章 ---------- */
.seal-svg { display: block; width: 100%; height: auto; overflow: visible; }
.seal-orbit { transform-origin: 100px 100px; animation: spin 80s linear infinite; }
.seal-twinkle path { animation: blink 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.seal-twinkle path:nth-child(2) { animation-delay: -0.8s; }
.seal-twinkle path:nth-child(3) { animation-delay: -1.5s; }
.seal-twinkle path:nth-child(4) { animation-delay: -2.1s; }
.seal-glyph { transition: opacity 0.38s ease; }
.seal-glyph.is-fading { opacity: 0; }
.seal-crack { stroke: #c9d6ff; stroke-width: 1.6; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.25; transform: scale(0.6); } }

/* ---------- 結果 ---------- */
.result-grid { display: grid; gap: 22px; }
.result-visual { text-align: center; scroll-margin-top: 70px; }
.kicker {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  color: var(--on-night);
  letter-spacing: 0.06em;
}
.result-seal {
  width: min(260px, 68vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 34px rgb(255 248 199 / 0.32));
}
.prop-tag {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 26px;
  padding: 18px 28px 20px;
  background: linear-gradient(180deg, #fffdf2, #fbf5dc);
  color: var(--night-800);
  border-radius: 10px 10px 16px 16px;
  box-shadow: 0 0 0 1px rgb(239 236 167 / 0.9), 0 10px 30px rgb(10 14 50 / 0.45);
}
.prop-tag::before {
  /* 札をつるす糸 */
  content: "";
  position: absolute;
  left: 50%;
  top: -26px;
  height: 30px;
  border-left: 1px solid rgb(255 248 199 / 0.7);
}
.prop-tag::after {
  /* 糸を通す穴 */
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--night-800);
  box-shadow: 0 0 0 2px rgb(239 236 167 / 0.9);
}
.prop-name { font-family: var(--font-serif); font-weight: 700; line-height: 1.35; }
.prop-name:focus { outline: none; }
.prop-mod { display: block; margin-top: 6px; font-size: clamp(1rem, 4.2vw, 1.2rem); font-weight: 500; color: var(--sky-deep); letter-spacing: 0.06em; }
.prop-obj { display: block; font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: 0.1em; }

.result-notes { padding-top: 24px; }
.note + .note { margin-top: 18px; }
.note-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-deep);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}
.note-title::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--star);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 1px #b9a94a);
}
.note p { margin: 4px 0 0; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.95; }
.echo-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.echo-list li {
  padding: 6px 12px;
  border-radius: 12px;
  background: rgb(210 190 222 / 0.28);
  font-size: 0.86rem;
  line-height: 1.6;
}
.echo-q { display: block; color: var(--ink-faint); font-size: 0.74rem; }
.echo-a { color: var(--ink); }
.leeway {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgb(167 159 224 / 0.6);
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.result-grid.is-swapping .result-seal { animation: pop 0.5s ease both; }
.result-grid.is-swapping .prop-tag,
.result-grid.is-swapping .result-notes { animation: rise 0.5s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(0.9) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.actions { margin-top: 26px; text-align: center; }
.actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.actions-row .btn { padding-inline: 12px; }
/* 2つ並ぶと幅が足りないので、両脇の✦は狭い画面では外す */
@media (max-width: 420px) {
  .actions-row .btn span::before, .actions-row .btn span::after { content: none; }
}
.actions-row a.btn { text-decoration: none; }
.actions-more { margin: 6px 0 0; }
.toast { min-height: 1.6em; margin: 4px 0 0; color: var(--star-pale); font-size: 0.86rem; }

.shelf { margin-top: 26px; }
.shelf-title, .review summary {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--on-night-soft);
}
.shelf-title { text-align: center; font-weight: 500; }
.shelf-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.shelf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgb(185 191 238 / 0.35);
  background: rgb(20 26 74 / 0.45);
  color: var(--on-night);
  font-family: var(--font-serif);
}
.shelf-item:hover { border-color: var(--star); background: rgb(20 26 74 / 0.7); }
.glyph-icon { flex: none; width: 30px; height: 30px; color: var(--star); }

.review {
  margin-top: 26px;
  border-radius: 16px;
  background: rgb(20 26 74 / 0.45);
  border: 1px solid rgb(185 191 238 / 0.3);
}
.review summary { padding: 14px 18px; cursor: pointer; min-height: 48px; }
.review-list { margin: 0; padding: 0 18px 12px; list-style: none; }
.review-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgb(185 191 238 / 0.2);
}
.review-q { display: block; color: var(--on-night-soft); font-size: 0.74rem; }
.review-a { font-size: 0.92rem; }
.review .btn-text { flex: none; }
.restart { text-align: center; margin: 22px 0 0; }

/* ---------- 広い画面 ---------- */
@media (min-width: 600px) {
  .stage { padding-top: 40px; }
  .page { padding: 32px 34px 32px 58px; }
  .page::before { top: 18px; right: 20px; }
  .page { background:
    linear-gradient(90deg, transparent 38px, rgb(210 190 222 / 0.7) 38px, rgb(210 190 222 / 0.7) 39px, transparent 39px),
    repeating-linear-gradient(180deg, transparent 0 35px, var(--paper-line) 35px 36px),
    var(--paper); }
  .options { grid-template-columns: 1fr 1fr; }
  .option { border-radius: 20px; min-height: 64px; }
}
@media (min-width: 960px) {
  .stage { max-width: 1040px; }
  #intro, #question, #seeking { max-width: 720px; margin-inline: auto; }
  .result-grid { grid-template-columns: 400px 1fr; align-items: center; gap: 40px; }
  .result-seal { width: 300px; }
  .actions, .shelf, .review, .restart { max-width: 720px; margin-inline: auto; }
  .actions { margin-top: 34px; }
  .shelf { margin-top: 30px; }
  .review { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- シェアから開いたページ（public/p/） ---------- */
.share-landing { text-align: center; }
.share-landing .result-seal { margin-top: 8px; }
.share-scene { max-width: 520px; margin: 28px auto 0; text-align: left; }
.share-scene p { margin: 4px 0 0; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.95; }
.share-landing .lead { margin: 28px auto 22px; font-size: 0.9rem; }
.share-landing > .btn { width: 100%; max-width: 420px; text-decoration: none; }
.kicker { word-break: auto-phrase; text-wrap: balance; }
@media (max-width: 420px) {
  .share-landing > .btn span::before, .share-landing > .btn span::after { content: none; }
}
/* 改行してよい位置を「、」の後だけにする（狭い画面でも「あなたのキャラクターにも、」は1行に収まる） */
.phrase { display: inline-block; }
.foot-links { margin-top: 10px !important; }
.foot-links a { color: var(--on-night-soft); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--star-pale); }
