html,
body {
	background: #0e0a20;
	overscroll-behavior: none;
}

.luna-starbalance {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	min-height: 100dvh;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 0%, #221a44 0%, #0e0a20 70%);
	color: #f4f0e6;
	font-family: "Zen Kaku Gothic New", sans-serif;
}

.luna-starbalance::before {
	content: "";
	position: absolute;
	inset: 0;
	max-width: 430px;
	margin: 0 auto;
	background: #120d2a;
	box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.luna-starbalance__bg,
.luna-starbalance__stars,
.luna-starbalance__screen,
.luna-starbalance__head {
	position: absolute;
	left: 50%;
	width: min(100%, 430px);
	transform: translateX(-50%);
}

.luna-starbalance__bg {
	inset-block: 0;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.luna-starbalance__stars {
	inset-block: -20%;
	width: min(140%, 602px);
	background-image: var(--luna-starbalance-stars);
	background-repeat: repeat;
	background-size: 540px;
	mix-blend-mode: screen;
	opacity: 0.5;
	pointer-events: none;
}

.luna-starbalance__stars.is-moving {
	animation: lunaStarbalanceStarDrift 60s linear infinite;
}

.luna-starbalance__head {
	top: 14px;
	z-index: 60;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 20px;
	background: linear-gradient(to bottom, rgba(10, 7, 22, 0.55), transparent);
}

.luna-starbalance__head .luna-fortune-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border: 0;
	background: transparent;
	padding: 0;
	text-decoration: none;
	cursor: pointer;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.luna-starbalance__head .luna-fortune-brand__jp {
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-size: 22px;
	letter-spacing: 0.16em;
	color: #d4b46a;
}

.luna-starbalance__head .luna-fortune-brand__en {
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
	font-size: 18px;
	letter-spacing: 0.16em;
	color: #d4b46a;
}

.luna-starbalance__head .luna-fortune-brand:hover,
.luna-starbalance__head .luna-fortune-back:hover {
	color: #f0dcae;
	text-shadow: 0 0 16px rgba(217, 189, 140, 0.5);
}

.luna-starbalance__head .luna-fortune-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border: 1px solid rgba(203, 162, 78, 0.7);
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: 0.12em;
	color: #ecdfba;
	text-decoration: none;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
	white-space: nowrap;
}

.luna-starbalance__screen {
	inset-block: 0;
	z-index: 15;
	display: none;
	height: 100%;
	box-sizing: border-box;
}

.luna-starbalance__screen.is-active {
	display: flex;
}

.luna-starbalance h1,
.luna-starbalance h2,
.luna-starbalance h3 {
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-weight: 600;
}

.luna-starbalance button,
.luna-starbalance input {
	font: inherit;
}

.luna-starbalance button {
	appearance: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.luna-starbalance__badge {
	position: absolute;
	top: 10px;
	left: calc(50% - min(50%, 215px) + 10px);
	z-index: 80;
	padding: 4px 8px;
	border: 1px solid rgba(217, 189, 140, 0.45);
	border-radius: 999px;
	background: rgba(20, 14, 40, 0.75);
	color: #d9bd8c;
	font-size: 10px;
	letter-spacing: 0.06em;
}

.luna-starbalance__intro {
	flex-direction: column;
	align-items: center;
}

.luna-starbalance__twinkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.luna-starbalance__twinkles span {
	position: absolute;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: #f4f0e6;
	animation: lunaStarbalanceTwinkle 3.2s ease-in-out infinite;
}

.luna-starbalance__twinkles span:nth-child(1) { top: 18%; left: 12%; width: 3px; height: 3px; }
.luna-starbalance__twinkles span:nth-child(2) { top: 26%; left: 82%; background: #e8d9ae; animation-duration: 4.1s; animation-delay: 0.7s; }
.luna-starbalance__twinkles span:nth-child(3) { top: 34%; left: 24%; background: #c9c2ea; animation-duration: 3.7s; animation-delay: 1.3s; }
.luna-starbalance__twinkles span:nth-child(4) { top: 30%; left: 64%; width: 3px; height: 3px; animation-duration: 4.6s; animation-delay: 0.4s; }
.luna-starbalance__twinkles span:nth-child(5) { top: 42%; left: 44%; background: #e8a0b8; animation-duration: 5s; animation-delay: 1.8s; }

.luna-starbalance__intro-copy {
	margin-top: 26dvh;
	padding: 0 24px;
	text-align: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
	animation: lunaStarbalanceFadeUp 1.2s ease both;
}

.luna-starbalance__intro-copy p {
	margin: 0 0 14px;
	color: #a986a8;
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-size: 13px;
	letter-spacing: 0.5em;
}

.luna-starbalance h1 {
	margin: 0;
	color: #f0dcae;
	font-size: 40px;
	letter-spacing: 0.14em;
	text-shadow: 0 0 24px rgba(217, 189, 140, 0.45), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.luna-starbalance__intro-copy span {
	display: block;
	margin-top: 18px;
	color: #e6ddf2;
	font-size: 14px;
	line-height: 2;
	letter-spacing: 0.18em;
}

.luna-starbalance__intro-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	width: 100%;
	margin-top: auto;
	padding: 28px 32px 40px;
	background: linear-gradient(to top, rgba(10, 7, 22, 0.85) 30%, transparent);
}

.luna-starbalance__primary,
.luna-starbalance__secondary,
.luna-starbalance__actions button {
	min-height: 52px;
	border-radius: 999px;
	letter-spacing: 0.16em;
}

.luna-starbalance__primary {
	width: 100%;
	max-width: 300px;
	border: 1px solid rgba(217, 189, 140, 0.7);
	background: linear-gradient(180deg, #4a3760, #33244a);
	box-shadow: 0 0 22px rgba(169, 134, 168, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
	color: #f0dcae;
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-size: 17px;
	letter-spacing: 0.3em;
}

.luna-starbalance__primary:hover {
	background: linear-gradient(180deg, #5a4574, #3d2c58);
	box-shadow: 0 0 30px rgba(217, 189, 140, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.luna-starbalance__secondary {
	width: 100%;
	border: 1px solid rgba(169, 134, 168, 0.55);
	background: transparent;
	color: #e6ddf2;
}

.luna-starbalance__link {
	border: 0;
	background: transparent;
	color: #d9bd8c;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-decoration: underline;
	text-decoration-color: rgba(217, 189, 140, 0.4);
	text-underline-offset: 4px;
}

.luna-starbalance__intro-actions p,
.luna-starbalance__privacy,
.luna-starbalance__hint,
.luna-starbalance__notice {
	margin: 0;
	color: #b8aec9;
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.06em;
}

.luna-starbalance__scroll {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	padding: 56px 22px 40px;
	background: rgba(16, 11, 32, 0.86);
	backdrop-filter: blur(3px);
	animation: lunaStarbalanceFadeUp 0.6s ease both;
}

.luna-starbalance__main .luna-starbalance__scroll {
	padding-inline: 14px;
	background: rgba(17, 12, 34, 0.84);
}

.luna-starbalance__screen-head {
	text-align: center;
}

.luna-starbalance__screen-head h2 {
	margin: 0;
	color: #f0dcae;
	font-size: 20px;
	letter-spacing: 0.14em;
}

.luna-starbalance__screen-head p {
	margin: 10px 0 0;
	color: #b8aec9;
	font-size: 12px;
	letter-spacing: 0.06em;
}

.luna-starbalance__flow-list,
.luna-starbalance__panel,
.luna-starbalance__measure {
	margin-top: 16px;
}

.luna-starbalance__flow-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-bottom: 22px;
}

.luna-starbalance__flow-list div {
	display: grid;
	grid-template-columns: 68px 1fr;
	gap: 16px;
}

.luna-starbalance__flow-list span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border: 1px solid rgba(217, 189, 140, 0.4);
	border-radius: 16px;
	background: rgba(30, 21, 52, 0.7);
	color: #f0dcae;
	font-size: 30px;
	box-shadow: 0 0 16px rgba(169, 134, 168, 0.2);
}

.luna-starbalance__flow-list p {
	margin: 6px 0 0;
	color: #cfc6e0;
	font-size: 12.5px;
	line-height: 1.9;
}

.luna-starbalance__flow-list b {
	display: block;
	margin-bottom: 8px;
	color: #f0dcae;
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-size: 17px;
}

.luna-starbalance__panel {
	border: 1px solid rgba(169, 134, 168, 0.35);
	border-radius: 16px;
	background: rgba(30, 21, 52, 0.88);
	padding: 18px;
}

.luna-starbalance__panel label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.luna-starbalance__panel label:last-child {
	margin-bottom: 0;
}

.luna-starbalance__panel label span,
.luna-starbalance__field-title {
	color: #c9c2ea;
	font-size: 12px;
	letter-spacing: 0.1em;
}

.luna-starbalance__panel input {
	box-sizing: border-box;
	min-height: 46px;
	border: 1px solid rgba(169, 134, 168, 0.4);
	border-radius: 10px;
	background: rgba(14, 10, 30, 0.8);
	color: #f4f0e6;
	padding: 0 12px;
	color-scheme: dark;
	font-size: 15px;
}

.luna-starbalance__panel .luna-starbalance__check {
	flex-direction: row;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(217, 189, 140, 0.3);
	border-radius: 10px;
	background: rgba(217, 189, 140, 0.06);
	cursor: pointer;
}

.luna-starbalance__check input {
	min-height: 0;
	width: 18px;
	height: 18px;
	padding: 0;
	accent-color: #a986a8;
}

.luna-starbalance__time-disabled {
	opacity: 0.45;
}

.luna-starbalance__note {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(169, 134, 168, 0.12);
	color: #b8aec9;
	font-size: 11.5px;
	line-height: 1.8;
}

.luna-starbalance__themes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.luna-starbalance__themes--tabs {
	justify-content: center;
	margin-top: 14px;
}

.luna-starbalance__theme {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid rgba(169, 134, 168, 0.4);
	border-radius: 999px;
	background: transparent;
	color: #b8aec9;
	font-size: 13px;
	letter-spacing: 0.08em;
}

.luna-starbalance__theme.is-active {
	border-color: rgba(217, 189, 140, 0.85);
	background: rgba(217, 189, 140, 0.16);
	color: #f0dcae;
}

.luna-starbalance__calc {
	align-items: center;
	justify-content: center;
	padding: 0 32px;
	background: rgba(14, 10, 28, 0.78);
	text-align: center;
}

.luna-starbalance__rings {
	position: relative;
	width: 180px;
	height: 180px;
	margin: 0 auto 30px;
}

.luna-starbalance__rings span,
.luna-starbalance__rings i {
	position: absolute;
	border-radius: 50%;
}

.luna-starbalance__rings span:nth-child(1) {
	inset: 0;
	border: 1px dashed rgba(217, 189, 140, 0.5);
	animation: lunaStarbalanceSpin 14s linear infinite;
}

.luna-starbalance__rings span:nth-child(2) {
	inset: 16px;
	border: 1px solid rgba(169, 134, 168, 0.4);
	animation: lunaStarbalanceSpinR 22s linear infinite;
}

.luna-starbalance__rings span:nth-child(3) {
	inset: 34px;
	border: 1px dashed rgba(201, 194, 234, 0.35);
	animation: lunaStarbalanceSpin 30s linear infinite;
}

.luna-starbalance__rings i {
	inset: 83px;
	background: #f0dcae;
	box-shadow: 0 0 24px 8px rgba(240, 220, 174, 0.5);
	animation: lunaStarbalanceGlow 2.4s ease-in-out infinite;
}

.luna-starbalance__calc h2 {
	margin: 0;
	color: #f0dcae;
	font-size: 19px;
	letter-spacing: 0.2em;
}

.luna-starbalance__calc p {
	color: #b8aec9;
	font-size: 12.5px;
	line-height: 2;
}

.luna-starbalance__calc-error {
	border: 1px solid rgba(216, 138, 138, 0.5);
	border-radius: 16px;
	background: rgba(40, 20, 30, 0.9);
	padding: 22px;
}

.luna-starbalance__measure {
	display: grid;
	grid-template-columns: 64px 1fr 64px;
	gap: 6px;
	align-items: stretch;
}

.luna-starbalance__chips {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.luna-starbalance__chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-height: 58px;
	border: 1px solid rgba(169, 134, 168, 0.35);
	border-radius: 14px;
	background: rgba(30, 21, 52, 0.85);
	color: #f4f0e6;
	padding: 6px 2px;
}

.luna-starbalance__chip.is-selected {
	border-color: rgba(217, 189, 140, 0.85);
	background: rgba(217, 189, 140, 0.14);
}

.luna-starbalance__chip span:first-child {
	font-size: 18px;
}

.luna-starbalance__chip small {
	color: #b8aec9;
	font-size: 10px;
}

.luna-starbalance__scale {
	min-width: 0;
	border: 1px solid rgba(169, 134, 168, 0.32);
	border-radius: 16px;
	background: radial-gradient(circle at 50% 38%, rgba(76, 55, 122, 0.55), rgba(18, 12, 38, 0.88));
	padding: 8px;
	text-align: center;
}

.luna-starbalance__scale svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.luna-starbalance__beam {
	transform-origin: 170px 82px;
	transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.22, 1);
	animation: lunaStarbalanceSway 8s ease-in-out infinite;
}

.luna-starbalance__beam line,
.luna-starbalance__beam ellipse,
.luna-starbalance__beam circle,
.luna-starbalance__pillar,
.luna-starbalance__base {
	fill: none;
	stroke: #d9bd8c;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 7px rgba(217, 189, 140, 0.35));
}

.luna-starbalance__beam circle {
	fill: #f0dcae;
}

.luna-starbalance__orb {
	filter: drop-shadow(0 0 8px currentColor);
}

.luna-starbalance__score-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: #c9c2ea;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.luna-starbalance__score-row > span:nth-child(2) {
	color: #f0dcae;
	font-size: 24px;
}

.luna-starbalance__scale p {
	margin: 8px 0 0;
	color: #b8aec9;
	font-size: 11.5px;
	line-height: 1.6;
}

.luna-starbalance__selected {
	display: flex;
	align-items: center;
	gap: 12px;
}

.luna-starbalance__selected > span,
.luna-starbalance__planet-mark span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(217, 189, 140, 0.5);
	border-radius: 50%;
	background: rgba(217, 189, 140, 0.08);
}

.luna-starbalance__selected > span {
	width: 46px;
	height: 46px;
	font-size: 25px;
}

.luna-starbalance__selected p {
	margin: 0;
	color: #f0dcae;
}

.luna-starbalance__selected small {
	display: block;
	margin-top: 3px;
	color: #b8aec9;
	font-size: 12px;
}

.luna-starbalance__bars {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}

.luna-starbalance__bar-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	color: #e6ddf2;
	font-size: 12px;
}

.luna-starbalance__bar-track {
	height: 6px;
	margin-top: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(169, 134, 168, 0.22);
}

.luna-starbalance__bar-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
}

.luna-starbalance__bar-reason {
	margin: 4px 0 0;
	color: #b8aec9;
	font-size: 11px;
	line-height: 1.5;
}

.luna-starbalance__ranking {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.luna-starbalance__rank {
	display: grid;
	grid-template-columns: 28px 24px 1fr auto;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	border: 1px solid rgba(169, 134, 168, 0.26);
	border-radius: 10px;
	background: rgba(14, 10, 30, 0.5);
	padding: 0 10px;
	color: #e6ddf2;
}

.luna-starbalance__rank.is-selected {
	border-color: rgba(217, 189, 140, 0.75);
	background: rgba(217, 189, 140, 0.1);
}

.luna-starbalance__message {
	text-align: center;
}

.luna-starbalance__eyebrow,
.luna-starbalance__pair {
	margin: 0;
	color: #c9c2ea;
	font-size: 12.5px;
	letter-spacing: 0.1em;
}

.luna-starbalance__planet-mark span {
	width: 68px;
	height: 68px;
	margin: 16px auto 4px;
	font-size: 38px;
}

.luna-starbalance__message h2 {
	margin: 16px 0 0;
	color: #f0dcae;
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.04em;
}

.luna-starbalance__message > p:not(.luna-starbalance__eyebrow):not(.luna-starbalance__pair):not(.luna-starbalance__copy-note) {
	margin: 16px 0 0;
	color: #e6ddf2;
	font-size: 13.5px;
	line-height: 2.1;
	text-align: left;
}

.luna-starbalance__keywords {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.luna-starbalance__keywords span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 16px;
	border: 1px solid rgba(217, 189, 140, 0.5);
	border-radius: 999px;
	background: rgba(217, 189, 140, 0.08);
	color: #f0dcae;
	font-size: 12.5px;
	letter-spacing: 0.08em;
}

.luna-starbalance__advice {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(169, 134, 168, 0.3);
	text-align: left;
}

.luna-starbalance__advice div {
	display: grid;
	grid-template-columns: 78px 1fr;
	gap: 10px;
}

.luna-starbalance__advice b {
	color: #d9bd8c;
	font-size: 12.5px;
	white-space: nowrap;
}

.luna-starbalance__advice span {
	color: #e6ddf2;
	font-size: 12.5px;
	line-height: 1.8;
}

.luna-starbalance__copy-note {
	margin: 16px 0 0;
	color: #8f85a3;
	font-size: 10px;
	line-height: 1.7;
	text-align: left;
}

.luna-starbalance__details-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 0;
	background: transparent;
	color: #c9c2ea;
	padding: 0;
	text-align: left;
}

.luna-starbalance__details-toggle span {
	font-size: 12px;
	letter-spacing: 0.14em;
}

.luna-starbalance__details-toggle b {
	color: #d9bd8c;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.luna-starbalance__details {
	margin-top: 14px;
	animation: lunaStarbalanceFadeUp 0.35s ease both;
}

.luna-starbalance__facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 7px 14px;
	font-size: 12.5px;
	line-height: 1.7;
}

.luna-starbalance__facts span:nth-child(odd) {
	color: #8f85a3;
}

.luna-starbalance__facts span:nth-child(even) {
	color: #e6ddf2;
}

.luna-starbalance__reasons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(169, 134, 168, 0.25);
}

.luna-starbalance__reason {
	display: grid;
	grid-template-columns: 1fr 44px;
	gap: 8px;
}

.luna-starbalance__reason span:first-child {
	color: #c9c2ea;
	font-size: 11.5px;
	line-height: 1.7;
}

.luna-starbalance__reason span:last-child {
	color: #f0dcae;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.luna-starbalance__actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.luna-starbalance__actions button {
	flex: 1;
	border: 1px solid rgba(169, 134, 168, 0.6);
	background: transparent;
	color: #e6ddf2;
	font-size: 14px;
}

.luna-starbalance__actions button:last-child {
	border-color: rgba(217, 189, 140, 0.7);
	background: linear-gradient(180deg, #4a3760, #33244a);
	color: #f0dcae;
}

.luna-starbalance__notice {
	margin-top: 16px;
	color: #8f85a3;
}

.luna-starbalance__toast {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 80;
	max-width: calc(100% - 36px);
	padding: 10px 20px;
	border: 1px solid rgba(217, 189, 140, 0.5);
	border-radius: 999px;
	background: rgba(20, 14, 40, 0.95);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	color: #f0dcae;
	font-size: 12.5px;
	letter-spacing: 0.06em;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	white-space: nowrap;
}

.luna-starbalance__toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@keyframes lunaStarbalanceStarDrift {
	from { background-position: 0 0; }
	to { background-position: -540px 320px; }
}

@keyframes lunaStarbalanceSway {
	0%, 100% { rotate: -0.6deg; }
	50% { rotate: 0.6deg; }
}

@keyframes lunaStarbalanceTwinkle {
	0%, 100% { opacity: 0.15; }
	50% { opacity: 0.9; }
}

@keyframes lunaStarbalanceSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes lunaStarbalanceSpinR {
	from { transform: rotate(360deg); }
	to { transform: rotate(0deg); }
}

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

@keyframes lunaStarbalanceGlow {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.luna-starbalance *,
	.luna-starbalance *::before,
	.luna-starbalance *::after {
		animation-duration: 0.01s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.15s !important;
	}
}

@media (max-width: 375px) {
	.luna-starbalance__head {
		padding-inline: 14px;
	}

	.luna-starbalance__head .luna-fortune-brand__jp {
		font-size: 20px;
	}

	.luna-starbalance__head .luna-fortune-back {
		padding: 6px 12px;
		font-size: 12px;
	}

	.luna-starbalance h1 {
		font-size: 36px;
	}

	.luna-starbalance__measure {
		grid-template-columns: 58px 1fr 58px;
	}

	.luna-starbalance__chip {
		min-height: 54px;
	}
}

/* ── 共通UI標準化（占いの説明モーダル・シェアポップ・候補選択・⑥次の問い）───── */

/* 「占いの説明」開始前リンク（intro） */
.luna-starbalance__about-open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: fit-content;
	min-height: 44px;
	margin: 2px auto 0;
	border: 0;
	background: none;
	color: #cfc4ea;
	cursor: pointer;
	font-size: 12.5px;
	letter-spacing: 0.14em;
}

.luna-starbalance__about-open em {
	font-style: normal;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: rgba(217, 189, 140, 0.65);
}

.luna-starbalance__about-open span {
	color: #d9bd8c;
	font-size: 10px;
}

.luna-starbalance__about-open:hover em {
	color: #f0e8fb;
	text-decoration-color: #d9bd8c;
}

/* 入力エラー（UNKNOWN／computeChart 失敗の安全メッセージ） */
.luna-starbalance__error {
	margin: 4px 0 0;
	color: #f0c0d0;
	font-size: 12px;
	line-height: 1.7;
	text-align: center;
}

/* 候補選択（AMBIGUOUS・自動選択しない・名称のみ表示・§16） */
.luna-starbalance__cands {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	border: 1px solid rgba(169, 134, 168, 0.3);
	border-radius: 12px;
	background: rgba(36, 26, 62, 0.75);
}

.luna-starbalance__cands-label {
	margin: 0;
	color: #cdbfe4;
	font-size: 11.5px;
	line-height: 1.7;
	text-align: center;
}

.luna-starbalance__cands button {
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid rgba(217, 189, 140, 0.5);
	border-radius: 999px;
	background: rgba(20, 14, 36, 0.8);
	color: #f5f1e8;
	font-size: 13px;
	letter-spacing: 0.06em;
}

/* ⑥ 次の問い（結果末尾・自問・非断定） */
.luna-starbalance__nextq {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(169, 134, 168, 0.25);
}

.luna-starbalance__nextq-label {
	margin: 0;
	color: #f0dcae;
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-size: 13px;
	letter-spacing: 0.1em;
}

.luna-starbalance__nextq p[data-nextq] {
	margin: 0;
	color: #e8dff5;
	font-size: 12.5px;
	line-height: 1.85;
}

/* 結果アクション：他の占いへ（anchor）をボタンと同型に整える＋シェアを強調 */
.luna-starbalance__actions a {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border: 1px solid rgba(169, 134, 168, 0.6);
	border-radius: 999px;
	color: #e6ddf2;
	font-size: 14px;
	letter-spacing: 0.16em;
	text-decoration: none;
}

.luna-starbalance__actions [data-share] {
	border-color: rgba(217, 189, 140, 0.7);
	background: linear-gradient(180deg, #4a3760, #33244a);
	color: #f0dcae;
}

/* 占いの説明モーダル（fortune-about-modal・self-contained） */
.luna-about {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: none;
}

.luna-about.is-active {
	display: block;
}

.luna-about__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 5, 18, 0.72);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.luna-about__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	box-sizing: border-box;
	width: min(92vw, 430px);
	max-height: 80vh;
	overflow: auto;
	padding: 30px 24px 24px;
	border: 1px solid rgba(199, 154, 78, 0.4);
	border-radius: 16px;
	background: #171232;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
	transform: translate(-50%, -50%);
}

.luna-about__close {
	position: absolute;
	top: 10px;
	right: 12px;
	padding: 6px;
	border: none;
	background: transparent;
	color: rgba(240, 236, 248, 0.7);
	cursor: pointer;
	font-size: 22px;
}

.luna-about__title {
	margin: 2px 0 18px;
	color: #f3ecff;
	font-family: "Shippori Mincho", "Shippori Mincho B1", serif;
	font-size: 19px;
	letter-spacing: 0.14em;
	text-align: center;
}

.luna-about__flow {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 14px;
}

.luna-about__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.luna-about__step span {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(226, 198, 126, 0.6);
	border-radius: 50%;
	color: #eccf8b;
	font-size: 14px;
}

.luna-about__step p {
	margin: 2px 0 0;
	color: rgba(240, 236, 248, 0.88);
	font-size: 13.5px;
	line-height: 1.9;
	letter-spacing: 0.03em;
}

.luna-about__step b {
	display: block;
	margin-bottom: 3px;
	color: #d4b46a;
	font-size: 13px;
	letter-spacing: 0.1em;
}

.luna-about__note {
	margin: 0;
	color: rgba(240, 236, 248, 0.6);
	font-size: 12px;
	line-height: 1.8;
	letter-spacing: 0.03em;
}

/* シェアポップ（正直コピー結果＋X導線） */
.luna-starbalance__sharepop {
	position: fixed;
	inset: 0;
	z-index: 85;
	display: none;
}

.luna-starbalance__sharepop.is-active {
	display: block;
}

.luna-starbalance__sharepop-ov {
	position: absolute;
	inset: 0;
	background: rgba(8, 5, 18, 0.72);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.luna-starbalance__sharepop-panel {
	position: absolute;
	left: 50%;
	top: 50%;
	box-sizing: border-box;
	width: min(88vw, 360px);
	padding: 28px 22px 22px;
	border: 1px solid rgba(199, 154, 78, 0.4);
	border-radius: 16px;
	background: #171232;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
	text-align: center;
	transform: translate(-50%, -50%);
}

.luna-starbalance__sharepop-close {
	position: absolute;
	top: 8px;
	right: 10px;
	padding: 6px;
	border: none;
	background: transparent;
	color: rgba(240, 236, 248, 0.7);
	cursor: pointer;
	font-size: 20px;
}

.luna-starbalance__sharepop-msg {
	min-height: 18px;
	margin: 4px 0 6px;
	color: #f0dcae;
	font-size: 13px;
	line-height: 1.7;
}

.luna-starbalance__sharepop-sub {
	margin: 0 0 16px;
	color: #a898c0;
	font-size: 11px;
	line-height: 1.7;
}

.luna-starbalance__sharepop-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	border: 1px solid rgba(217, 189, 140, 0.7);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(142, 111, 168, 0.9), rgba(90, 62, 120, 0.95));
	color: #f5f1e8;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-decoration: none;
}
