/**
 * 読めないユーザーネームメーカー（[picolabo_username]）。共通部品は base.css。
 */

/* 設定
   -------------------------------------------------------------------------- */
.unm-setup {
	display: grid;
	gap: 22px;
}

.unm .unm-field {
	display: grid;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.unm-field__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.unm .unm-length {
	font-size: 1.3rem;
}

.unm-length output {
	margin-right: 2px;
	font: 600 2.4rem/1 var(--font-en);
}

.unm-scale {
	display: flex;
	justify-content: space-between;
	margin-top: -4px;
	color: var(--c-ink-3);
	font: 500 1.2rem/1 var(--font-en);
}

.unm-field legend {
	margin-bottom: 8px;
	padding: 0;
}

.unm-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--c-line-2);
	border-radius: var(--radius-s);
	font-size: 1.4rem;
	cursor: pointer;
}

.unm-check + .unm-check {
	margin-top: 8px;
}

.unm-check:has(input:checked) {
	border-color: var(--c-ink);
}

.unm-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--c-ink);
}

.unm-check__key {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: var(--c-tint);
	font: 700 1.6rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* 結果
   -------------------------------------------------------------------------- */
.unm-result {
	display: grid;
	gap: 14px;
}

.unm-stage {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 52px;
	align-items: center;
	gap: 8px;
	min-height: 170px;
	padding: 12px 8px;
	border-radius: var(--radius-s);
	background: var(--c-tint);
}

.unm .unm-id {
	overflow: hidden;
	color: var(--c-ink);
	font: 700 48px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	letter-spacing: 0.04em;
	text-align: center;
	white-space: nowrap;
}

.unm-id.is-new {
	animation: unm-in 0.3s var(--ease);
}

@keyframes unm-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.unm-id.is-new {
		animation: none;
	}
}

.unm-nav {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--c-line-2);
	border-radius: 50%;
	background: #fff;
	color: var(--c-ink);
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.unm-nav svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.unm-nav:hover:not(:disabled) {
	border-color: var(--c-ink);
}

.unm-nav[data-action="next"] {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: #fff;
}

.unm-nav[data-action="next"]:hover {
	border-color: var(--c-blue-ink);
	background: var(--c-blue-ink);
}

.unm-nav:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.unm .unm-history {
	color: var(--c-ink-3);
	font: 500 1.3rem/1 var(--font-en);
	text-align: center;
}

.unm-actions {
	justify-content: center;
}

.unm .unm-actions .pt-btn {
	min-width: 220px;
	min-height: 46px;
	font-size: 1.4rem;
}

.unm .unm-note {
	text-align: center;
}

@media (max-width: 599px) {
	.unm-stage {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 4px;
		min-height: 130px;
		padding: 10px 6px;
	}

	.unm-nav {
		width: 44px;
		height: 44px;
	}

	.unm .unm-actions .pt-btn {
		width: 100%;
	}
}
