.cjo-checker {
	--cjo-bg: #0b1020;
	--cjo-card: rgba(20, 28, 52, 0.94);
	--cjo-card-soft: rgba(255, 255, 255, 0.055);
	--cjo-text: #f7f9ff;
	--cjo-muted: #aeb8d0;
	--cjo-accent: #ffb000;
	--cjo-accent-strong: #ff7a00;
	--cjo-success: #43d17d;
	--cjo-danger: #ff6278;
	--cjo-unknown: #a7b1c9;
	font-family: inherit;
	margin: 2rem auto;
	max-width: 820px;
}

.cjo-checker * {
	box-sizing: border-box;
}

.cjo-shell {
	background:
		radial-gradient(circle at 90% 5%, rgba(255, 176, 0, 0.18), transparent 34%),
		linear-gradient(145deg, var(--cjo-bg), #111a33 65%, #17213f);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(3, 7, 18, 0.34);
	color: var(--cjo-text);
	overflow: hidden;
	padding: clamp(1.25rem, 4vw, 2.4rem);
	position: relative;
}

.cjo-heading {
	max-width: 640px;
}

.cjo-kicker {
	color: var(--cjo-accent);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin-bottom: 0.5rem;
}

.cjo-heading h2 {
	color: var(--cjo-text);
	font-size: clamp(1.55rem, 4vw, 2.35rem);
	line-height: 1.12;
	margin: 0;
}

.cjo-heading p,
.cjo-privacy-note,
.cjo-progress-message {
	color: var(--cjo-muted);
}

.cjo-heading p {
	font-size: 1rem;
	margin: 0.65rem 0 0;
}

.cjo-form {
	margin-top: 1.5rem;
}

.cjo-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 750;
	margin-bottom: 0.55rem;
}

.cjo-input-row {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: minmax(0, 1fr) auto;
}

.cjo-input {
	appearance: none;
	background: rgba(255, 255, 255, 0.075);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	color: var(--cjo-text);
	font: inherit;
	font-size: 1.08rem;
	min-height: 52px;
	outline: none;
	padding: 0 1rem;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
	width: 100%;
}

.cjo-input::placeholder {
	color: #7985a1;
}

.cjo-input:focus {
	background: rgba(255, 255, 255, 0.095);
	border-color: var(--cjo-accent);
	box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.14);
}

.cjo-input:disabled {
	cursor: wait;
	opacity: 0.7;
}

.cjo-submit {
	align-items: center;
	background: linear-gradient(135deg, var(--cjo-accent), var(--cjo-accent-strong));
	border: 0;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(255, 122, 0, 0.24);
	color: #211300;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 850;
	gap: 0.65rem;
	justify-content: center;
	min-height: 52px;
	padding: 0 1.35rem;
	transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.cjo-submit:hover:not(:disabled) {
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.cjo-submit:disabled {
	cursor: wait;
	opacity: 0.72;
}

.cjo-submit-loader {
	animation: cjo-spin 0.75s linear infinite;
	border: 2px solid rgba(33, 19, 0, 0.25);
	border-radius: 50%;
	border-top-color: #211300;
	display: none;
	height: 18px;
	width: 18px;
}

.cjo-submit.is-loading .cjo-submit-loader {
	display: block;
}

.cjo-privacy-note {
	font-size: 0.78rem;
	margin: 0.7rem 0 0;
}

.cjo-progress {
	background: var(--cjo-card-soft);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	margin-top: 1.25rem;
	padding: 0.9rem 1rem;
}

.cjo-progress[hidden] {
	display: none;
}

.cjo-progress-bar {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	height: 7px;
	overflow: hidden;
}

.cjo-progress-bar span {
	background: linear-gradient(90deg, var(--cjo-accent), #ffd567);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 400ms ease;
	width: 5%;
}

.cjo-progress-message {
	font-size: 0.88rem;
	margin: 0.65rem 0 0;
}

.cjo-result {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.cjo-result:empty {
	display: none;
}

.cjo-profile,
.cjo-online-card,
.cjo-error {
	background: var(--cjo-card);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	box-shadow: 0 16px 38px rgba(3, 8, 22, 0.24);
	padding: 1.1rem;
}

.cjo-profile-top {
	align-items: center;
	display: flex;
	gap: 1rem;
}

.cjo-avatar {
	background: rgba(255, 255, 255, 0.07);
	border: 2px solid rgba(255, 176, 0, 0.55);
	border-radius: 18px;
	height: 86px;
	object-fit: contain;
	padding: 0.2rem;
	width: 86px;
}

.cjo-nickname,
.cjo-online-title {
	color: var(--cjo-text);
	margin: 0;
}

.cjo-nickname {
	font-size: 1.35rem;
	word-break: break-word;
}

.cjo-player-code {
	color: var(--cjo-muted);
	font-size: 0.84rem;
	margin: 0.35rem 0 0;
}

.cjo-details,
.cjo-online-details {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1rem;
}

.cjo-detail {
	background: var(--cjo-card-soft);
	border-radius: 12px;
	min-width: 0;
	padding: 0.7rem 0.8rem;
}

.cjo-detail-label {
	color: var(--cjo-muted);
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.cjo-detail-value {
	color: var(--cjo-text);
	display: block;
	font-size: 0.92rem;
	margin-top: 0.2rem;
	overflow-wrap: anywhere;
}

.cjo-online-card {
	border-left: 5px solid var(--cjo-unknown);
}

.cjo-online-card.is-online {
	border-left-color: var(--cjo-success);
}

.cjo-online-card.is-offline {
	border-left-color: var(--cjo-danger);
}

.cjo-online-header {
	align-items: center;
	display: flex;
	gap: 0.65rem;
}

.cjo-status-dot {
	background: var(--cjo-unknown);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(167, 177, 201, 0.12);
	height: 11px;
	width: 11px;
}

.is-online .cjo-status-dot {
	background: var(--cjo-success);
	box-shadow: 0 0 0 5px rgba(67, 209, 125, 0.13);
}

.is-offline .cjo-status-dot {
	background: var(--cjo-danger);
	box-shadow: 0 0 0 5px rgba(255, 98, 120, 0.13);
}

.cjo-online-summary {
	color: var(--cjo-muted);
	margin: 0.75rem 0 0;
}

.cjo-error {
	background: rgba(255, 98, 120, 0.1);
	border-color: rgba(255, 98, 120, 0.35);
	color: #ffd8de;
	font-weight: 700;
}

@keyframes cjo-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
	.cjo-input-row {
		grid-template-columns: 1fr;
	}

	.cjo-submit {
		width: 100%;
	}

	.cjo-details,
	.cjo-online-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 430px) {
	.cjo-shell {
		border-radius: 18px;
		padding: 1rem;
	}

	.cjo-profile-top {
		align-items: flex-start;
	}

	.cjo-avatar {
		height: 72px;
		width: 72px;
	}

	.cjo-details,
	.cjo-online-details {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cjo-checker *,
	.cjo-checker *::before,
	.cjo-checker *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
