
:root {
  --bg-0: #070612;
  --bg-1: #0d0b20;
  --bg-2: #1a1440;
  --bg-3: #2b1e55;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4f0ff;
  --sub: #b9acdd;
  --gold: #f0c96b;
  --gold-deep: #d9a83f;
  --accent: #b388ff;
  --pink: #ff9ec7;
  --danger: #ff8a8a;
  --radius: 16px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.8;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 70% 10%, rgba(255, 255, 255, 0.4) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(255, 255, 255, 0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 35% 60%, rgba(255, 255, 255, 0.3) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 85%, rgba(255, 255, 255, 0.35) 0, transparent 100%),
    radial-gradient(circle at 50% -20%, var(--bg-2) 0, var(--bg-1) 42%, var(--bg-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 95vmax;
  height: 95vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  left: -32vmax;
  top: -38vmax;
  background: radial-gradient(circle at 42% 42%,
    rgba(92, 48, 168, 0.5) 0,
    rgba(34, 40, 110, 0.25) 52%,
    transparent 70%);
  animation: aurora-a 48s ease-in-out infinite alternate;
}
body::after {
  right: -38vmax;
  bottom: -42vmax;
  background: radial-gradient(circle at 58% 58%,
    rgba(158, 62, 112, 0.32) 0,
    rgba(46, 24, 92, 0.22) 52%,
    transparent 70%);
  animation: aurora-b 62s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  to { transform: translate(11vmax, 8vmax) scale(1.14); }
}
@keyframes aurora-b {
  to { transform: translate(-10vmax, -8vmax) scale(1.1); }
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-head { text-align: center; padding: 8px 0 20px; }
.brand {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.35em;
  margin: 0;
  color: var(--gold);
  background: linear-gradient(100deg,
    #e6c06a 0%, #fff3cf 22%, #e6c06a 45%, #b8873e 70%, #e6c06a 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(240, 201, 107, 0.3));
  animation: brand-shine 8s linear infinite;
}
@keyframes brand-shine {
  to { background-position: 300% 0; }
}
.brand a { color: inherit; text-decoration: none; }
.brand-mark {
  display: block;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 10px rgba(240, 201, 107, 0.35));
}
@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: brand-glow-pulse 7s ease-in-out infinite; }
}
@keyframes brand-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(240, 201, 107, 0.35)); }
  50% { filter: drop-shadow(0 0 16px rgba(240, 201, 107, 0.6)); }
}
.brand-mark-sm {
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 6px;
}
.tagline {
  font-family: var(--serif);
  color: var(--sub);
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  margin: 6px 0 0;
}
.lead {
  font-size: 0.9rem;
  color: var(--sub);
  margin: 16px 0 0;
}
.card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(240, 201, 107, 0.13);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 16px 0;
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow:
    0 18px 44px rgba(3, 2, 12, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 107, 0.55), transparent);
  pointer-events: none;
}
.card h2 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepnum {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-1);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hint { font-size: 0.78rem; color: var(--sub); margin: 0 0 14px; }
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.type-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s, background 0.15s;
}
.type-btn .code {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.type-btn .name {
  display: block;
  font-size: 0.68rem;
  color: var(--sub);
  margin-top: 2px;
}
.type-btn:hover {
  border-color: rgba(240, 201, 107, 0.4);
  background: rgba(240, 201, 107, 0.06);
}
.type-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(240, 201, 107, 0.14);
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(240, 201, 107, 0.25);
}
.type-btn[aria-pressed="true"] .name { color: var(--gold); }
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seg-btn {
  appearance: none;
  flex: 1 1 auto;
  min-width: 72px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.15s, background 0.15s;
}
.seg-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(240, 201, 107, 0.14);
  color: var(--gold);
  font-weight: 700;
}
.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--sub);
  margin: 14px 0 6px;
}
input[type="date"],
input[type="time"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--sans);
  color-scheme: dark;
}
textarea { resize: vertical; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.optional summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}
.optional[open] summary { margin-bottom: 8px; }
.note { font-size: 0.72rem; color: var(--sub); margin: 6px 0 0; }
.overseas-note { margin-top: 12px; }
ul.note { padding-left: 1.2em; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 0.82rem; color: var(--text); cursor: pointer; }
.consent input { width: auto; margin-top: 3px; flex: none; }
.cta-bar {
  position: sticky;
  bottom: 12px;
  margin-top: 20px;
  z-index: 5;
}
.btn-primary {
  appearance: none;
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--sans);
  text-align: center;
  text-decoration: none;
  color: #241505;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 130%);
  box-shadow: 0 8px 24px rgba(240, 201, 107, 0.35);
  cursor: pointer;
  transition: transform 0.12s, opacity 0.15s;
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: sheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 55% { left: -70%; }
  100% { left: 140%; }
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(240, 201, 107, 0.5); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  color: rgba(244, 240, 255, 0.5);
  background: #231c45;
  box-shadow: inset 0 0 0 1px rgba(240, 201, 107, 0.28), 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: not-allowed;
}
.btn-primary:disabled::after { display: none; }
.btn-ghost {
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(240, 201, 107, 0.45);
  background: rgba(240, 201, 107, 0.07);
}
.btn-ghost:active { transform: scale(0.98); }
.btn-ghost {
  appearance: none;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-family: var(--sans);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.err {
  color: var(--danger);
  font-size: 0.82rem;
  text-align: center;
  margin: 10px 0 0;
}
.shared-banner {
  border: 1px solid var(--accent);
  background: rgba(179, 136, 255, 0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin: 16px 0;
  text-align: center;
}
.profile-head { text-align: center; }
.type-code {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 4px 0 0;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.type-label {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  margin: 2px 0 14px;
  letter-spacing: 0.12em;
}
.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: center;
}
.attr {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
}
.attr .k { display: block; font-size: 0.68rem; color: var(--sub); }
.attr .v { display: block; font-size: 0.95rem; font-weight: 700; margin-top: 2px; }
.attr.ura {
  border-color: var(--gold);
  background: rgba(240, 201, 107, 0.12);
}
.attr.ura .k { color: var(--gold); }
.cross-box {
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, rgba(240, 201, 107, 0.10), rgba(179, 136, 255, 0.08));
}
.cross-box h2 { color: var(--gold); }
.match-list { list-style: none; padding: 0; margin: 12px 0 0; }
.match-list li {
  border-top: 1px dashed var(--line);
  padding: 10px 2px;
  font-size: 0.88rem;
}
.match-tag { font-weight: 800; color: var(--gold); margin-right: 8px; }
.match-sys { font-size: 0.75rem; color: var(--sub); display: block; }
.ai-reading {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.ai-badge {
  display: inline-block;
  font-size: 0.65rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0 8px;
  margin-bottom: 6px;
}
.section p { font-size: 0.92rem; margin: 14px 0; line-height: 1.9; }
.section-text { font-size: 0.92rem; margin: 10px 0; }
.section-text strong { color: var(--gold); font-weight: 700; }
.chips-label { font-size: 0.75rem; color: var(--sub); margin: 14px 0 6px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chips.stars li {
  border-color: rgba(240, 201, 107, 0.55);
  color: var(--gold);
  background: rgba(240, 201, 107, 0.08);
  font-weight: 700;
}
.chips li {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.82rem;
}
.foot-note {
  font-size: 0.72rem;
  color: var(--sub);
  border-top: 1px dashed var(--line);
  margin-top: 14px;
  padding-top: 10px;
}
.card > .btn-primary + .btn-primary,
.card > .btn-primary + .btn-ghost,
.card > .btn-ghost + .btn-primary,
.card > .btn-ghost + .btn-ghost {
  margin-top: 10px;
}
.share-row { display: grid; gap: 10px; margin-top: 12px; }
.line-cta { text-align: center; }
.line-btn {
  appearance: none;
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--sans);
  color: #fff;
  background: #06c755;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.share-canvas { display: none; }
.pair-head { text-align: center; }
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px;
}
.pair-person {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px;
  background: rgba(255, 255, 255, 0.04);
}
.pair-person .k { display: block; font-size: 0.68rem; color: var(--sub); }
.pair-person .code {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pair-person .sub { display: block; font-size: 0.75rem; color: var(--sub); margin-top: 2px; }
.pair-x {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}
.kasanari { margin-top: 4px; }
.kasanari .pct {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kasanari-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  margin: 8px 0 10px;
  overflow: hidden;
}
.kasanari-bar span {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  overflow: hidden;
}
.kasanari-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: bar-shine 2.8s ease-in-out infinite;
}
@keyframes bar-shine {
  60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.kasanari .band-label {
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.kasanari .band-text { font-size: 0.85rem; margin: 0 0 8px; }
.attr .s {
  display: block;
  font-size: 0.68rem;
  color: var(--gold);
  margin-top: 2px;
}
.nisshu-head {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  margin: 10px 0;
}
.gogyo-list { display: grid; gap: 8px; margin: 12px 0; }
.gogyo-row {
  display: grid;
  grid-template-columns: 4.2em 1fr 3em;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.gogyo-key { white-space: nowrap; }
.gogyo-count { text-align: right; color: var(--sub); font-size: 0.75rem; }
.gogyo-bar {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gogyo-bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold), #b9aef0);
}
.daiun-list { list-style: none; padding: 0; margin: 12px 0; }
.daiun-list li {
  display: grid;
  grid-template-columns: 6.5em 3.5em 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.daiun-list li.current {
  background: rgba(240, 201, 107, 0.12);
  border: 1px solid rgba(240, 201, 107, 0.4);
}
.daiun-list .d-range { color: var(--sub); font-size: 0.75rem; }
.daiun-list .d-label { font-weight: 700; }
.daiun-list .d-theme { color: var(--sub); font-size: 0.78rem; }
.daiun-list li.current .d-theme { color: var(--gold); }
.stroke-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.stroke-cell {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.stroke-cell .ch { font-size: 1.2rem; font-weight: 700; }
.stroke-cell input {
  width: 3.2em;
  text-align: center;
  font-size: 0.9rem;
  padding: 4px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--sans);
  color-scheme: dark;
}
.stroke-cell .unit { font-size: 0.65rem; color: var(--sub); }
.stroke-cell.unknown {
  border-color: rgba(240, 201, 107, 0.6);
  background: rgba(240, 201, 107, 0.08);
}
.m-list { list-style: none; padding: 0; margin: 12px 0; }
.m-list li {
  display: grid;
  grid-template-columns: 4.5em 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 10px;
  font-size: 0.88rem;
  border-radius: 8px;
}
.m-list .m-k { color: var(--sub); font-size: 0.78rem; }
.m-list .m-t { color: var(--sub); font-size: 0.78rem; }
.m-list li.same {
  background: rgba(240, 201, 107, 0.12);
  border: 1px solid rgba(240, 201, 107, 0.4);
}
.m-list li.same .m-v { color: var(--gold); font-weight: 700; }
.tarot-board { text-align: center; }
.tarot-stage {
  --card-w: min(240px, 68vw);
  position: relative;
  isolation: isolate;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  margin: 26px 0 14px;
}
.tarot-stage .tilt-holo { position: relative; z-index: 1; }
.tarot-card3d {
  position: relative;
  width: var(--card-w);
  aspect-ratio: 3 / 5;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.tarot-card3d.is-flipped {
  transform: rotateY(180deg);
  cursor: default;
  transition: none;
  animation: tarot-flip 1.3s both;
}
.tarot-face {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.tarot-face svg { display: block; width: 100%; height: 100%; }
.tarot-pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 5; overflow: hidden; }
.tarot-face .tarot-pic { height: 100%; }
.tarot-pic .tarot-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tarot-pic .tarot-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tarot-front { transform: rotateY(180deg); }
.tarot-card3d:not(.is-flipped):hover { transform: translateY(-4px) rotateY(6deg); }
.tarot-tap-note { text-align: center; }
.tarot-no {
  text-align: center;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--sub);
}
.tarot-name {
  text-align: center;
  margin: 4px 0 0;
  font-size: 1.5rem;
  color: var(--gold);
}
.tarot-essence {
  text-align: center;
  margin: 6px 0 14px;
  font-size: 0.85rem;
  color: var(--sub);
}
.tarot-step { color: var(--gold); }
@keyframes tarot-flip {
  0% { transform: translateY(0) scale(1) rotateY(0deg) rotateZ(0deg); animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1); }
  9% { transform: translateY(3px) scale(0.955) rotateY(0deg) rotateZ(0deg); animation-timing-function: cubic-bezier(0.35, 0, 0.3, 1); }
  30% { transform: translateY(-10px) scale(1.055) rotateY(-14deg) rotateZ(1.2deg); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  50% { transform: translateY(-14px) scale(1.09) rotateY(90deg) rotateZ(-1.5deg); animation-timing-function: cubic-bezier(0.15, 0.6, 0.35, 1); }
  72% { transform: translateY(-6px) scale(1.04) rotateY(196deg) rotateZ(0.8deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  87% { transform: translateY(-2px) scale(1.01) rotateY(177deg) rotateZ(0deg); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  100% { transform: translateY(0) scale(1) rotateY(180deg) rotateZ(0deg); }
}
.tarot-stage.is-flipping .tilt3d .tilt-glare { opacity: 0; transition: none; }
.tarot-back::after,
.tarot-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #07051a;
  opacity: 0;
  pointer-events: none;
}
.tarot-card3d.is-flipped .tarot-back::after { animation: tarot-shade-out 1.3s linear both; }
.tarot-card3d.is-flipped .tarot-front::before { animation: tarot-shade-in 1.3s linear both; }
@keyframes tarot-shade-out {
  0%, 30% { opacity: 0; }
  50%, 100% { opacity: 0.62; }
}
@keyframes tarot-shade-in {
  0%, 50% { opacity: 0.62; }
  72%, 100% { opacity: 0; }
}
.tarot-front::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  right: -100%;
  z-index: 3;
  background: linear-gradient(105deg, rgba(255, 226, 160, 0) 45%, rgba(255, 226, 160, 0.26) 48.6%, rgba(255, 240, 205, 0.5) 50%, rgba(255, 226, 160, 0.26) 51.4%, rgba(255, 226, 160, 0) 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-27%);
  pointer-events: none;
}
.tarot-card3d.is-flipped .tarot-front::after { animation: tarot-sheen 0.95s cubic-bezier(0.45, 0, 0.3, 1) 1.05s both; }
@keyframes tarot-sheen {
  0% { opacity: 1; transform: translateX(-27%); }
  100% { opacity: 1; transform: translateX(27%); }
}
.tarot-aura,
.tarot-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.tarot-aura {
  width: calc(var(--card-w) * 1.75);
  height: calc(var(--card-w) * 2.15);
  background: radial-gradient(closest-side, rgba(255, 222, 150, 0.46), rgba(240, 201, 107, 0.2) 48%, rgba(138, 123, 216, 0.13) 72%, rgba(138, 123, 216, 0) 100%);
  transform: translate(-50%, -50%);
  animation: tarot-breathe 3.6s ease-in-out infinite alternate;
}
.tarot-stage.is-revealed .tarot-aura { animation: tarot-aura-burst 2.5s ease-out both; }
@keyframes tarot-breathe {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 0.85; transform: translate(-50%, -50%) scale(1.02); }
}
@keyframes tarot-aura-burst {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  24% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.88); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
  31% { opacity: 1; transform: translate(-50%, -50%) scale(1.22); animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1); }
  100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.04); }
}
.tarot-rays {
  width: calc(var(--card-w) * 2.4);
  height: calc(var(--card-w) * 2.6);
  background: repeating-conic-gradient(from 4deg, rgba(255, 228, 165, 0) 0deg, rgba(255, 228, 165, 0.5) 2.5deg, rgba(255, 228, 165, 0) 5deg, rgba(255, 228, 165, 0) 15deg);
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0) 30%, #000 52%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0) 30%, #000 52%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
}
.tarot-stage.is-revealed .tarot-rays { animation: tarot-rays 2.1s cubic-bezier(0.2, 0.6, 0.3, 1) 0.62s both; }
@keyframes tarot-rays {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15) rotate(24deg); }
}
.tarot-sparks {
  position: absolute;
  left: 0;
  top: -72px;
  z-index: 2;
  width: 100%;
  height: calc(100% + 144px);
  pointer-events: none;
}
.tarot-under { display: grid; justify-items: center; align-items: start; }
.tarot-under > * { grid-area: 1 / 1; }
.tarot-reveal { visibility: hidden; text-align: center; margin: 2px 0 4px; }
.tarot-reveal.is-shown { visibility: visible; }
.tarot-reveal-no {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--sub);
}
.tarot-reveal-name {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(240, 201, 107, 0.45);
}
.tarot-reveal-name .ch { display: inline-block; }
.tarot-reveal-essence {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--sub);
}
.tarot-reveal.is-shown .tarot-reveal-no { animation: tarot-fade-up 0.6s ease-out both; }
.tarot-reveal.is-shown .ch { animation: tarot-ch 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.tarot-reveal.is-shown .ch:nth-child(2) { animation-delay: 0.07s; }
.tarot-reveal.is-shown .ch:nth-child(3) { animation-delay: 0.14s; }
.tarot-reveal.is-shown .ch:nth-child(4) { animation-delay: 0.21s; }
.tarot-reveal.is-shown .ch:nth-child(5) { animation-delay: 0.28s; }
.tarot-reveal.is-shown .ch:nth-child(6) { animation-delay: 0.35s; }
.tarot-reveal.is-shown .ch:nth-child(7) { animation-delay: 0.42s; }
.tarot-reveal.is-shown .ch:nth-child(n+8) { animation-delay: 0.49s; }
.tarot-reveal.is-shown .tarot-reveal-essence { animation: tarot-fade-up 0.7s ease-out 0.5s both; }
@keyframes tarot-ch {
  from { opacity: 0; transform: translateY(10px) scale(0.9); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes tarot-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tarot-card3d.is-flipped { transform: none; }
  .tarot-card3d.is-flipped .tarot-back { visibility: hidden; }
  .tarot-card3d.is-flipped .tarot-front { transform: none; }
}
.ura-box { text-align: center; }
.ura-lock {
  display: grid;
  place-items: center;
  height: 110px;
  margin-top: 10px;
  border: 1px dashed rgba(240, 201, 107, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.8rem;
}
.ura-art {
  width: min(200px, 56vw);
  margin: 12px auto 0;
}
.ura-art > svg,
.ura-art .tarot-pic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.ura-box .tarot-name { font-size: 1.3rem; margin-top: 2px; }
.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.deck-cell { display: grid; gap: 4px; justify-items: center; }
.deck-cell .deck-art { display: block; width: 100%; border-radius: 8px; overflow: hidden; }
.deck-cell .deck-art > svg { display: block; width: 100%; height: auto; }
.deck-cell .deck-name { font-size: 0.68rem; color: var(--sub); text-align: center; }
@media (min-width: 480px) {
  .deck-grid { grid-template-columns: repeat(4, 1fr); }
}
.site-foot {
  margin-top: 32px;
  font-size: 0.7rem;
  color: var(--sub);
  text-align: center;
}
.site-foot p { margin: 6px 0; }
.site-foot a { color: var(--sub); text-decoration: underline; }
main a:not([class]), main a:not([class]):visited { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
html.fx .card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}
html.fx .card.fx-in {
  opacity: 1;
  transform: none;
}
.chara-card { text-align: center; }
.chara-figure {
  position: relative;
  width: min(58vw, 210px);
  margin: 8px auto 0;
}
.dex-cell.is-own .dex-art { position: relative; }
.ca-img { display: block; width: 100%; height: auto; }
.chara-figure .ca-img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 14px rgba(240, 201, 107, 0.22));
}
.chara-you {
  color: var(--sub);
  font-size: 0.85rem;
  margin: 6px 0 0;
}
.chara-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0;
}
.chara-code {
  color: var(--sub);
  font-size: 0.82rem;
  margin: 4px 0 10px;
}
.chara-catch {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 14px;
}
.chara-card .chara-body { text-align: left; }
.aisho-box {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.aisho-duo-wrap { margin-top: 12px; }
.aisho-label {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.aisho-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.aisho-mini {
  display: block;
  width: 72px;
  flex: none;
}
.aisho-info { text-align: left; }
.aisho-name {
  font-weight: 600;
  margin: 0;
}
.aisho-pct {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 2px 0 0;
}
.aisho-pct.center { text-align: center; margin-top: 8px; }
.aisho-text {
  text-align: left;
  font-size: 0.92rem;
  margin: 8px 0 0;
}
.aisho-table {
  margin-top: 14px;
  text-align: left;
}
.aisho-table summary {
  cursor: pointer;
  color: var(--sub);
  font-size: 0.85rem;
}
.aisho-rows {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.aisho-rows li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.aisho-rows .pct {
  color: var(--gold);
  font-weight: 600;
  flex: none;
}
.chara-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.chara-vs-person { width: 96px; }
.chara-vs-person .aisho-mini { width: 100%; }
.chara-vs-person .aisho-name {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 2px;
}
.dex-progress { margin: 0 0 18px; }
.dex-count {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-align: center;
}
.dex-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.dex-bar-fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  box-shadow: 0 0 12px rgba(240, 201, 107, 0.55);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.dex-done {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--sub);
}
.dex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
@media (min-width: 560px) {
  .dex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dex-cell {
  margin: 0;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.dex-cell.is-found {
  border-color: rgba(240, 201, 107, 0.4);
  box-shadow: 0 0 18px rgba(240, 201, 107, 0.12) inset;
}
.dex-cell.is-locked { opacity: 0.55; }
.dex-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 8px;
}
.dex-art .ca-img { width: 100%; }
.dex-cell.is-locked .dex-art {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: rgba(185, 172, 221, 0.45);
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.07), transparent 68%);
  border-radius: 50%;
}
.dex-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.dex-cell.is-locked .dex-name { color: var(--sub); font-size: 0.82rem; }
.dex-code {
  margin: 2px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--sub);
}
.dex-catch {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--sub);
}
.dex-cell.is-own {
  border-color: rgba(240, 201, 107, 0.75);
  box-shadow: 0 0 26px rgba(240, 201, 107, 0.22);
}
.dex-own {
  margin: 4px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.chara-dex {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--sub);
  text-align: center;
}
.chara-dex-link { color: var(--gold); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  body::before,
  body::after { display: none; }
  html.fx .card { opacity: 1; transform: none; }
}
@media (min-width: 480px) {
  .type-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .type-btn { text-align: center; }
  .attr-grid { grid-template-columns: repeat(4, 1fr); }
}
html.gl body::before,
html.gl body::after { display: none; }
.tilt3d {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(190px 190px at var(--gx, 50%) var(--gy, 30%),
    rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 45%, transparent 70%);
  mix-blend-mode: screen;
}
.tilt3d.tilt-on .tilt-glare { opacity: 1; }
.tilt-holo {
  display: grid;
  border-radius: 18px;
}
.tilt-holo .tarot-card3d {
  padding: 2px;
  border-radius: 18px;
  background: conic-gradient(from var(--holo, 40deg),
    rgba(240, 201, 107, 0.85), rgba(255, 158, 199, 0.7), rgba(179, 136, 255, 0.8),
    rgba(110, 231, 255, 0.6), rgba(240, 201, 107, 0.85));
}
.tilt3d .tarot-card3d:not(.is-flipped):hover { transform: none; }
.tilt-holo .tarot-face { inset: 2px; background: var(--bg-1); }
.tilt-holo .tarot-back { transform: translateZ(0.4px); }
.tilt-holo .tarot-front { transform: rotateY(180deg) translateZ(0.4px); }
@keyframes chip-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chips li {
      animation: chip-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
.crossfx {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-0);
  overflow: hidden;
}
.crossfx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.crossfx-systems {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: min(300px, 78vw);
}
.crossfx-system {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(185, 172, 221, 0.4);
  text-align: center;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.crossfx-system.is-lit {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(240, 201, 107, 0.6);
}
.crossfx.is-flash .crossfx-systems { opacity: 0; transition: opacity 0.3s ease; }
.seiza-strip {
  display: flex;
  justify-content: center;
  margin: 6px 0 0;
}
.seiza-strip svg {
  height: 92px;
  width: auto;
}
.seiza-note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--sub);
  letter-spacing: 0.18em;
  margin: 0 0 6px;
}
.seiza-3d {
  display: flex;
  justify-content: center;
  margin: 2px 0 0;
}
.seiza-3d canvas {
  width: min(100%, 360px);
  height: 240px;
  display: block;
}
.seiza-3d-static svg {
  height: 92px;
  width: auto;
}
.pr-box {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 14px 12px;
  margin: 16px 0 2px;
  background: rgba(255, 255, 255, 0.04);
}
.pr-badge {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1c1206;
  background: var(--gold);
  border-radius: 6px;
  padding: 1px 8px;
}
.pr-box .pr-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.pr-box .pr-text {
  font-size: 0.8rem;
  color: var(--sub);
  margin: 0 0 10px;
}
.hub-home {
  display: block;
  text-align: center;
  font-family: var(--serif);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  padding: 10px 0 2px;
}
.hub-h1 {
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 4px 0 12px;
  text-wrap: balance;
}
.stat-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.stat-list .pct {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}
.hub-links {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 0.82rem;
}
.hub-links a { color: var(--sub); }
.hub-figure {
  width: min(46vw, 170px);
  margin: 8px auto 0;
}
.hub-figure .ca-img {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45))
          drop-shadow(0 0 12px rgba(240, 201, 107, 0.2));
}
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
.kinou-peek {
  display: inline-block;
  margin: -6px 0 14px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sub);
  text-decoration: none;
}
.kinou-arrow { white-space: nowrap; }
.kinou-peek:hover,
.kinou-peek:focus-visible {
  color: var(--gold);
  border-color: rgba(240, 201, 107, 0.55);
}
.kinou-grid { margin-top: 4px; }
.kinou-grid .attr .v { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.04em; color: var(--gold); }
.kinou-grid .attr .s { color: var(--sub); }
.kinou-grid .attr.dom { border-color: var(--gold); background: rgba(240, 201, 107, 0.12); }
.kinou-grid .attr.dom .k { color: var(--gold); }
.kinou-grid .attr.inf { border-style: dashed; opacity: 0.85; }
.kinou-more { margin-top: 14px; }
.kinou-more summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
}
.kinou-more[open] summary { margin-bottom: 6px; }
.kinou-more h3 {
  font-size: 0.92rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 20px 0 6px;
}
.kinou-prose { font-size: 0.92rem; line-height: 1.9; margin: 12px 0; }
.kinou-fn-title { font-weight: 700; font-size: 0.9rem; margin: 14px 0 2px; }
.kinou-fn-role { font-size: 0.75rem; color: var(--sub); margin: 0 0 4px; }
.kinou-fn-text { font-size: 0.9rem; margin: 0; }
.h-icon { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -0.32em; margin-right: 0.3em; }
.btn-primary .h-icon, .btn-ghost .h-icon, .line-btn .h-icon { width: 1.25em; height: 1.25em; vertical-align: -0.28em; }
.type-code-ja { letter-spacing: 0.08em; }
.type-none { display: block; width: 100%; margin-top: 12px; }
