/* 2027年の運勢（/uranai/2027/）だけで使う */
:root { --y7-night: #221d45; --y7-night2: #3b2f6e; --y7-gold: #e9b95c; --y7-gold-soft: #fff3d8; --y7-seiza: #5264a8; --y7-kyusei: #b0446a; --y7-suhi: #3f8a73; --y7-card: #8a5a2b; }

/* ---------- 入口 ---------- */
.y27-top { position: relative; margin: 6px -16px 0; padding: 26px 18px 22px; color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 12%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 62% 38%, #ffe9b8 50%, transparent 51%), radial-gradient(1px 1px at 30% 62%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 88% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 84%, #ffe9b8 50%, transparent 51%), radial-gradient(1px 1px at 46% 8%, #fff 50%, transparent 51%),
  radial-gradient(120% 80% at 50% 0%, #4b3c86 0%, var(--y7-night) 62%, #17132f 100%); }
@media (min-width: 792px) { .y27-top { margin: 6px 0 0; border-radius: 20px; } }
.y27-kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: .14em; color: var(--y7-gold); }
.y27-top h1 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: .04em; }
.y27-top h1 small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: #e8e3fb; }
.y27-lead { max-width: 560px; margin: 14px auto 18px; font-size: 15px; line-height: 1.8; color: #ece8fb; text-align: left; }
.y27-form { max-width: 520px; margin: 0 auto; padding: 16px; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.y27-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: #f3eff8; }
.y27-modes button { padding: 9px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.y27-modes button[aria-selected=true] { background: #fff; color: var(--y7-night2); box-shadow: 0 1px 4px rgba(60, 40, 110, .18); }
.y27-form .zk-birth { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.y27-form .zk-birth legend { font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.y27-form select { font: inherit; font-size: 16px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.y27-sel { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.y27-sel select { width: 100%; }
.y27-note { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--sub); }
.y27-motion { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--sub); }
.y27-go { display: block; width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .06em; color: #2a2150; cursor: pointer;
  background: linear-gradient(135deg, #ffe3a3, var(--y7-gold) 55%, #f0a96b); box-shadow: 0 4px 14px rgba(233, 185, 92, .45); }
.y27-go:disabled { opacity: .6; cursor: wait; }

/* ---------- 下の読みもの ---------- */
.y27-sec { margin: 40px 0; }
.y27-sec > h2 { font-size: 22px; line-height: 1.5; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.y27-sec > h3 { font-size: 18px; margin-top: 28px; }
.y27-four { display: grid; gap: 10px; }
@media (min-width: 640px) { .y27-four { grid-template-columns: 1fr 1fr; } }
.y27-four > div { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.y27-four h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.55; color: var(--y7-night2); }
.y27-four p { margin: 0; font-size: 15px; line-height: 1.85; }
.y27-sky { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e5dcf3; }
.y27-sky li { position: relative; display: flex; gap: 12px; padding: 7px 0 7px 16px; font-size: 15px; line-height: 1.75; }
.y27-sky li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--y7-gold); }
.y27-sky b { flex: none; width: 2.6em; color: var(--y7-night2); }
.y27-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.y27-pick { display: flex; flex-direction: column; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.y27-pick button { flex: 1; display: block; padding: 12px 14px 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.y27-pick button:hover { background: #faf7fd; }
.y27-pick strong { display: block; font-size: 17px; }
.y27-pick small { display: block; font-size: 12px; color: var(--sub); }
.y27-pick span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.7; }
.y27-pick em { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-style: normal; }
.y27-pick em i, .y7-key i { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f3eff8; color: var(--y7-night2); }
.y27-pick b { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); }
.y27-pick b::after { content: " ›"; }
.y27-pick > a { display: block; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; text-decoration: none; background: #fcfaf7; }
.y27-table { overflow-x: auto; }
.y27-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.y27-table th, .y27-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.y27-faq { margin: 8px 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.y27-faq summary { padding: 12px 40px 12px 14px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.y27-faq summary::-webkit-details-marker { display: none; }
.y27-faq summary::after { content: "＋"; position: absolute; right: 14px; top: 12px; color: var(--sub); }
.y27-faq[open] summary::after { content: "－"; }
.y27-faq p { margin: 0; padding: 0 14px 14px; font-size: 15px; }

/* ---------- 結果 ---------- */
#y27-result:empty { display: none; }
.y7-res { margin: 22px 0 10px; scroll-margin-top: 8px; }
.y7-head { padding: 18px 16px 14px; border-radius: 18px; background: linear-gradient(160deg, #fff8ea, #f7f0fd 60%, #edf1fc); border: 1px solid #efe5d6; text-align: center; }
.y7-for { margin: 0; font-size: 13px; color: var(--sub); }
.y7-head h2 { margin: 2px 0 12px; font-size: 24px; letter-spacing: .04em; }
.y7-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; text-align: left; }
.y7-chips .ch { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.y7-chips img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.y7-chips img.tc { width: 24px; height: 40px; border-radius: 3px; margin: 0 8px; }
.y7-chips span { font-size: 15px; font-weight: 700; line-height: 1.35; }
.y7-chips small { display: block; font-size: 11px; font-weight: 400; color: var(--sub); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(135deg, #63b49a, var(--y7-suhi)); }
.y7-key { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; }
.y7-key span { width: 100%; color: var(--sub); }
.y7-key i { font-size: 14px; padding: 3px 12px; background: var(--y7-night2); color: #fff; }
.y7-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; margin: 14px -16px 0; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; background: rgba(255, 250, 245, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.y7-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 792px) { .y7-tabs { margin: 14px 0 0; padding: 8px 0; justify-content: center; } }
.y7-tabs button { flex: none; position: relative; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--sub); cursor: pointer; }
.y7-tabs button.read:not([aria-selected=true])::after { content: ""; position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--y7-gold); }
.y7-tabs button[aria-selected=true] { background: var(--y7-night2); border-color: var(--y7-night2); color: #fff; }
.y7-p { padding-top: 14px; }
.y7-p.fade { animation: y7fade .35s ease-out; }
@keyframes y7fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.y7-lead { margin: 4px 0 12px; font-size: 14px; color: var(--sub); }
.y7-b { margin: 0 0 14px; padding: 14px 16px 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--line)); scroll-margin-top: 64px; }
.y7-b.k-seiza { --c: var(--y7-seiza); } .y7-b.k-kyusei { --c: var(--y7-kyusei); } .y7-b.k-suhi { --c: var(--y7-suhi); } .y7-b.k-card { --c: var(--y7-card); }
.y7-b h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.y7-b h3 img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.y7-b h3 img.tc { width: 30px; height: 50px; border-radius: 4px; margin: 0 7px; }
.y7-b h3 small { display: block; font-size: 12px; font-weight: 400; color: var(--c); }
.y7-b p { margin: 0 0 12px; font-size: 16px; line-height: 1.95; }
.y7-b h4 { margin: 14px 0 4px; font-size: 15px; }
.y7-sum { font-weight: 700; padding: 10px 12px; border-radius: 10px; background: #faf6ef; line-height: 1.8 !important; }
.y7-mini { font-size: 13px !important; color: var(--sub); line-height: 1.7 !important; }
.y7-sub { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #fbf2f5; }
.y7-sub h4 { margin: 0 0 4px; color: var(--y7-kyusei); }
.y7-sub p { margin: 0 0 6px; font-size: 15px; }
.y7-word { padding-left: 12px; border-left: 3px solid #f0d5df; font-size: 15px !important; }
.y7-why { margin: 0 0 12px; border-radius: 10px; background: #f8f6fb; }
.y7-why summary { padding: 9px 12px; font-size: 14px; font-weight: 700; color: var(--y7-night2); cursor: pointer; }
.y7-why[open] { padding: 0 12px 4px; }
.y7-why[open] summary { padding: 9px 0; }
.y7-why p { font-size: 15px; }
.y7-cardrow { display: flex; gap: 14px; align-items: flex-start; }
.y7-cardrow > img { width: 96px; flex: none; border-radius: 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
@media (max-width: 420px) { .y7-cardrow > img { width: 72px; } }
.y7-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed #d9cfe8; font-size: 14px; color: var(--sub); }
.y7-invite button, .y7-again button { padding: 7px 14px; border: 0; border-radius: 999px; background: var(--y7-night2); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.y7-next { display: block; width: 100%; margin: 6px 0 0; padding: 13px; border: 1.5px solid var(--y7-night2); border-radius: 999px; background: #fff; color: var(--y7-night2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.y7-next:hover { background: #f5f1fc; }
.y7-months { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.y7-months::-webkit-scrollbar { display: none; }
.y7-months button { flex: none; width: 48px; padding: 6px 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--ink); cursor: pointer; }
.y7-months button small { display: block; font-size: 10px; font-weight: 400; color: var(--sub); }
.y7-months button[aria-selected=true] { background: var(--y7-gold-soft); border-color: var(--y7-gold); }
.y7-mh { margin: 6px 0 8px; font-size: 20px; scroll-margin-top: 64px; }
.y7-month { scroll-margin-top: 64px; }
.y7-skyline { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--y7-night); color: #f1eefc; font-size: 15px; line-height: 1.8; }
.y7-skyline b { display: block; font-size: 12px; letter-spacing: .1em; color: var(--y7-gold); }
.y7-ask { margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff8e8; font-size: 15px; }
.y7-ask b { display: block; font-size: 12px; color: #9a6b12; }
.y7-mnav { display: flex; justify-content: space-between; gap: 8px; }
.y7-mnav button { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink); }
.y7-time { list-style: none; margin: 0; padding: 0; }
.y7-time li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.y7-time li > b { flex: none; width: 5.6em; font-size: 14px; color: var(--y7-night2); }
.y7-time strong { display: block; font-size: 14px; }
.y7-time p { margin: 2px 0 0; font-size: 15px; line-height: 1.8; }
.y7-time .k-sky strong { color: #9a6b12; } .y7-time .k-seiza strong { color: var(--y7-seiza); } .y7-time .k-kyusei strong { color: var(--y7-kyusei); } .y7-time .k-suhi strong { color: var(--y7-suhi); }
.y7-more { margin-top: 26px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.y7-more h3 { margin: 0 0 8px; font-size: 16px; }
.y7-more div { display: flex; flex-direction: column; gap: 6px; }
.y7-again { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.y7-err { padding: 14px; border-radius: 12px; background: #fff1f1; }

/* ---------- 演出 ---------- */
html.y7-lock, html.y7-lock body { overflow: hidden; }
.y7-show { position: fixed; inset: 0; z-index: 1000; background: #120f2b; color: #fff; display: flex; align-items: center; justify-content: center; animation: y7in .5s ease-out; }
.y7-show.out { animation: y7out .45s ease-in forwards; }
@keyframes y7in { from { opacity: 0; } to { opacity: 1; } }
@keyframes y7out { to { opacity: 0; } }
.y7-show canvas { position: absolute; inset: 0; }
.y7-stage { position: relative; width: min(88vw, 52vh, 440px); aspect-ratio: 1; display: grid; place-items: center; margin-top: -6vh; }
.y7-cap { position: absolute; left: 0; right: 0; bottom: calc(14vh + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 30em; padding: 0 20px; text-align: center; font-size: 17px; line-height: 1.7; letter-spacing: .04em; opacity: 0; color: #f2eefc; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.y7-cap b { color: var(--y7-gold); font-size: 1.15em; }
.y7-cap.in { animation: y7cap .7s ease-out forwards; }
@keyframes y7cap { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.y7-dots { position: absolute; bottom: calc(8vh + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.y7-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s, transform .3s; }
.y7-dots i.on { background: var(--y7-gold); transform: scale(1.3); } .y7-dots i.done { background: rgba(233, 185, 92, .55); }
.y7-skip { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }

/* 星座の輪 */
.y7-wheel { position: relative; width: 100%; height: 100%; opacity: 0; transform: scale(.7); transition: opacity .8s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.y7-wheel.in { opacity: 1; transform: none; }
.y7-wheel svg { width: 100%; height: 100%; overflow: visible; }
.y7-wheel .rot { transform-origin: 200px 200px; }
.y7-wheel .ring { fill: none; stroke: rgba(255, 233, 184, .55); stroke-width: 1.2; }
.y7-wheel .sg { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 233, 184, .28); stroke-width: 1; transition: fill 1s; }
.y7-wheel.pick .sg.me { fill: rgba(233, 185, 92, .5); }
.y7-wheel text { fill: #efe8ff; font-size: 15px; text-anchor: middle; dominant-baseline: middle; font-weight: 700; }
.y7-wheel text.me { transition: fill 1s; } .y7-wheel.pick text.me { fill: #2a2150; }
.y7-wheel .pl circle { fill: #2a2150; stroke-width: 2; }
.y7-wheel .jup circle { stroke: #ffc86b; filter: drop-shadow(0 0 6px #ffc86b); } .y7-wheel .sat circle { stroke: #b9c4ff; filter: drop-shadow(0 0 6px #b9c4ff); }
.y7-wheel .pl text { font-size: 13px; fill: #fff; }
.y7-wheel .ecl circle { fill: #ffd77a; } .y7-wheel .ecl circle.m { fill: #120f2b; }
.y7-wheel .ecl { transform-box: fill-box; transform-origin: center; animation: y7pulse 1.6s ease-in-out infinite; }
@keyframes y7pulse { 50% { transform: scale(1.3); opacity: .7; } }
.y7-wheel .yr { fill: var(--y7-gold); font-size: 30px; letter-spacing: .06em; }
.y7-wheel .beam { position: absolute; left: 50%; top: -8%; width: 34%; height: 50%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 220, 140, .55), rgba(255, 220, 140, 0)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity 1s; pointer-events: none; }
.y7-wheel.pick .beam { opacity: 1; }

/* 九星の年盤 */
.y7-ban { position: relative; width: 82%; opacity: 0; transform: rotate(-8deg) scale(.8); transition: opacity .7s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.y7-ban.in { opacity: 1; transform: none; }
.y7-ban .g { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; aspect-ratio: 1; }
.y7-ban svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.y7-ban polyline { fill: none; stroke: rgba(255, 210, 120, .7); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 4px #ffcf70); }
.y7-ban .c { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(255, 233, 184, .3); background: rgba(255, 255, 255, .04); transition: background .5s, transform .5s, opacity .6s, box-shadow .6s; line-height: 1.2; }
.y7-ban .c b { font-size: 28px; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .4s cubic-bezier(.3, 1.6, .5, 1); color: #fff; }
.y7-ban .c small { font-size: 11px; color: rgba(255, 233, 184, .8); margin-top: 2px; }
.y7-ban .c em { font-style: normal; font-size: 10px; opacity: 0; color: #e8e1ff; transition: opacity .4s; }
.y7-ban .c.on { background: rgba(255, 255, 255, .1); }
.y7-ban .c.on b, .y7-ban .c.on em { opacity: 1; transform: none; }
.y7-ban.pick .c:not(.me) { opacity: .35; }
.y7-ban.pick .c.me { z-index: 3; background: linear-gradient(135deg, #ffe3a3, var(--y7-gold)); transform: scale(1.12); box-shadow: 0 0 30px rgba(255, 200, 100, .8); }
.y7-ban.pick .c.me b, .y7-ban.pick .c.me em { color: #2a2150; } .y7-ban.pick .c.me small { color: #5a4300; }
.y7-ban .dir { position: absolute; margin: 0; font-size: 12px; color: rgba(255, 233, 184, .7); }
.y7-ban .dir.n { top: -24px; left: 50%; transform: translateX(-50%); } .y7-ban .dir.s { bottom: -24px; left: 50%; transform: translateX(-50%); }
.y7-ban .dir.e { left: -22px; top: 50%; transform: translateY(-50%); } .y7-ban .dir.w { right: -22px; top: 50%; transform: translateY(-50%); }

/* 数秘 */
.y7-num { text-align: center; width: 100%; }
.y7-num .ds { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 0; font-size: 30px; font-weight: 700; }
.y7-num .ds span { display: inline-block; opacity: 0; transform: translateY(-30px) scale(.6); transition: opacity .5s, transform .6s cubic-bezier(.3, 1.5, .5, 1); color: #fff; }
.y7-num .ds i { font-style: normal; font-size: 18px; color: rgba(255, 233, 184, .6); }
.y7-num.in .ds span { opacity: 1; transform: none; }
.y7-num .eq { margin: 14px 0 0; font-size: 18px; color: #ffe1a0; opacity: 0; transition: opacity .6s; }
.y7-num.eq .eq { opacity: 1; }
.y7-num .big { margin: 18px 0 0; height: 140px; display: grid; place-items: center; }
.y7-num .big b { display: grid; place-items: center; width: 130px; height: 130px; border-radius: 50%; font-size: 72px; color: #2a2150; background: radial-gradient(circle at 35% 30%, #fff3cf, var(--y7-gold)); box-shadow: 0 0 50px rgba(255, 200, 100, .7); opacity: 0; transform: scale(.2) rotate(-40deg); transition: opacity .6s, transform .9s cubic-bezier(.3, 1.5, .5, 1); }
.y7-num.pick .big b { opacity: 1; transform: none; }
.y7-num.pick .ds span { opacity: .35; }

/* タロット */
.y7-card { perspective: 900px; opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.y7-card.show { opacity: 1; transform: none; }
.y7-card .in { position: relative; width: min(40vw, 30vh, 170px); aspect-ratio: 3 / 5; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, .1, .2, 1); }
.y7-card.flip .in { transform: rotateY(180deg); }
.y7-card img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.y7-card .front { transform: rotateY(180deg); }
.y7-card.flip .front { box-shadow: 0 0 40px rgba(255, 210, 120, .75); }
.y7-card.show:not(.flip) .in { animation: y7float 2s ease-in-out infinite; }
@keyframes y7float { 50% { transform: translateY(-8px) rotateY(10deg); } }

/* まとめ */
.y7-end { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.y7-end span { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 233, 184, .5); font-size: 18px; font-weight: 700; opacity: 0; animation: y7chip .6s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes y7chip { from { opacity: 0; transform: translateY(16px) scale(.8); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .y27-top h1 { font-size: 28px; }
  .y7-head h2 { font-size: 20px; }
  .y7-cap { font-size: 15px; }
  .y7-num .ds { font-size: 24px; }
  .y7-ban .c b { font-size: 22px; } .y7-ban .c em { display: none; }
  .y7-wheel text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .y7-p.fade { animation: none; } }
.y27-table td:first-child, .y27-table th:first-child { white-space: nowrap; }
@media (max-width: 560px) {
  .y27-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .y27-pick button { padding: 10px 11px 8px; }
  .y27-pick strong { font-size: 16px; }
  .y27-pick span { font-size: 13px; line-height: 1.65; }
  .y27-pick em { display: none; }
  .y27-pick b { margin-top: 6px; font-size: 12px; }
  .y27-pick > a { padding: 7px 11px; font-size: 12px; line-height: 1.5; }
}
