/* =============================================================================
   IX Age Control — Front-end Gate Styles
   ============================================================================= */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Page shell ─────────────────────────────────────────────────────────────── */

body.ix-gate-body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--ix-bg, #1a1a2e);
	color: var(--ix-text, #ffffff);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ix-gate {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	position: relative;
}

/* ── Language switcher ───────────────────────────────────────────────────────── */

.ix-gate__langs {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ix-lang-btn {
	display: inline-block;
	padding: 0.325rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	color: var(--ix-text, #fff);
	text-decoration: none;
	font-size: 0.975rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.65;
	transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}

.ix-lang-btn:hover,
.ix-lang-btn--active {
	opacity: 1;
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.1);
}

/* ── Card ────────────────────────────────────────────────────────────────────── */

.ix-gate__card {
	background: var(--ix-card-bg, rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	padding: 2.75rem 3rem;
	max-width: 520px;
	width: 100%;
	text-align: center;
	backdrop-filter: blur(var(--ix-card-blur, 12px));
	-webkit-backdrop-filter: blur(var(--ix-card-blur, 12px));
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	color: var(--ix-card-text, var(--ix-text, #ffffff));
}

.ix-gate__logo img {
	width: 100%;
	max-width: var(--ix-logo-size, 270px);
	height: auto;
	margin-bottom: 1.5rem;
}

.ix-gate__icon {
	font-size: 3rem;
	line-height: 1;
	margin-bottom: 1rem;
}

.ix-gate__heading {
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 0.85rem;
	color: var(--ix-card-text, var(--ix-text, #fff));
}

.ix-gate__message {
	font-size: 1rem;
	line-height: 1.65;
	opacity: 0.85;
	margin-bottom: 1.75rem;
	color: var(--ix-card-text, var(--ix-text, #fff));
}

/* ── T&C checkbox ────────────────────────────────────────────────────────────── */

.ix-gate__tc {
	margin-bottom: 1.5rem;
	text-align: left;
}

.ix-tc__label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
}

.ix-tc__checkbox {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	cursor: pointer;
	accent-color: #e8b86d;
}

.ix-tc__text {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--ix-card-text, var(--ix-text, #fff));
	opacity: 0.9;
}

.ix-tc__text a {
	color: #e8b86d;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ix-tc__text a:hover {
	opacity: 0.8;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.ix-gate__buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.ix-btn {
	display: block;
	width: 100%;
	padding: 0.875rem 1.5rem;
	border: none;
	border-radius: 9px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ix-btn--enter {
	background: linear-gradient(135deg, #c9a227 0%, #e8c06d 100%);
	color: #1a1a2e;
}

.ix-btn--enter:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(200, 160, 39, 0.45);
}

.ix-btn--enter:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.ix-btn--exit {
	background: transparent;
	color: var(--ix-text, #fff);
	border: 1px solid rgba(255, 255, 255, 0.3);
	opacity: 0.75;
}

.ix-btn--exit:hover {
	background: rgba(255, 255, 255, 0.06);
	opacity: 1;
}

/* ── Legal note ──────────────────────────────────────────────────────────────── */

.ix-gate__legal {
	font-size: 0.72rem;
	opacity: 0.45;
	line-height: 1.55;
	color: var(--ix-card-text, var(--ix-text, #fff));
	text-wrap: balance;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
	.ix-gate__card {
		padding: 2rem 1.25rem;
		border-radius: 12px;
	}

	.ix-gate__heading {
		font-size: 1.35rem;
	}

	.ix-gate__langs {
		position: relative;
		top: auto;
		right: auto;
		justify-content: center;
		margin-bottom: 1.25rem;
	}

	.ix-gate {
		justify-content: flex-start;
		padding-top: 2rem;
	}
}
