/* ARP 年齢確認の入口。テーマ（SWELL 等）と独立した独自 CSS。名前空間 .arp-age-gate のみを使う。 */

html.arp-age-lock,
html.arp-age-lock body {
	overflow: hidden;
}

.arp-age-gate {
	display: none;
}

/* JS が「未同意」と判定したときだけ表示。head のインライン判定の時点では hidden 属性が残っているので
   [hidden] 付きでも表示し、age-gate.js が hidden を外した後も表示が続くようにする */
html.arp-age-pending .arp-age-gate,
html.arp-age-pending .arp-age-gate[hidden] {
	display: flex;
}

.arp-age-gate {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 16, 24, 0.86);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.arp-age-gate__panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	background: #fff;
	color: #333;
	border-radius: 12px;
	padding: 28px 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	text-align: center;
	font-family: inherit;
}

.arp-age-gate__title {
	margin: 0 0 20px;
	font-size: 1.05rem;
	line-height: 1.7;
	font-weight: 600;
}

.arp-age-gate__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.arp-age-gate__btn {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	min-width: 140px;
	font-family: inherit;
}

.arp-age-gate__btn--yes {
	background: var(--arp-gate-yes, #b8476f);
	color: #fff;
}

.arp-age-gate__btn--no {
	background: #ededed;
	color: #333;
}

.arp-age-gate__btn:focus-visible {
	outline: 3px solid var(--arp-gate-focus, #2f6f8f);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.arp-age-gate__actions {
		flex-direction: column;
	}
	.arp-age-gate__btn {
		width: 100%;
	}
}
