.cloora-raffle {
	border: 1px solid #ddd;
	border-radius: 8px;
	margin: 24px 0;
	max-width: 680px;
	padding: 22px;
}

.cloora-raffle-header h2 {
	margin: 0 0 6px;
}

.cloora-raffle-date {
	color: #555;
	font-size: 0.95rem;
	margin-bottom: 14px;
}

.cloora-raffle-form {
	display: grid;
	gap: 16px;
}

.cloora-raffle-form p {
	margin: 0;
}

.cloora-raffle-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.cloora-raffle-form input[type="email"],
.cloora-raffle-form input[type="password"],
.cloora-raffle-form input[type="text"] {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

.cloora-raffle-form button,
.cloora-raffle-camera-actions button {
	align-self: start;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	padding: 10px 18px;
}

.cloora-raffle-form [data-raffle-submit] {
	background: #0878d8;
	color: #fff;
	font-weight: 700;
	width: 100%;
}

.cloora-raffle-auth .cloora-raffle-form button[type="submit"] {
	background: #0878d8;
	color: #fff;
	font-weight: 700;
	width: 100%;
}

.cloora-raffle-form [data-raffle-submit]:not(:disabled):hover {
	background: #075fa9;
}

.cloora-raffle-auth .cloora-raffle-form button[type="submit"]:hover {
	background: #075fa9;
}

.cloora-raffle-form button:disabled,
.cloora-raffle-camera-actions button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.cloora-raffle-camera label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.cloora-raffle-camera-preview {
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.cloora-raffle-camera-preview::before {
	content: "";
	display: block;
	padding-top: 66.6667%;
}

.cloora-raffle-camera-preview video,
.cloora-raffle-camera-preview img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.cloora-raffle-camera-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.cloora-raffle-camera-status {
	color: #555;
	font-size: 0.95rem;
	margin-top: 8px;
	min-height: 1.4em;
}

.cloora-raffle-message {
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
	margin: 16px 0;
	padding: 12px 14px;
}

.cloora-raffle-success {
	border-left-color: #008a20;
}

.cloora-raffle-error {
	border-left-color: #d63638;
}

.cloora-raffle-auth-link {
	display: inline-block;
	justify-self: start;
}

.cloora-raffle-auth-modal {
	align-items: center;
	background: rgba(15, 23, 42, 0.54);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 9999;
}

.cloora-raffle-auth-prompt {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
	box-sizing: border-box;
	max-width: 420px;
	padding: 24px;
	width: 100%;
}

.cloora-raffle-auth-prompt-head h3 {
	font-size: 1.35rem;
	margin: 0 0 6px;
}

.cloora-raffle-auth-prompt-head p {
	color: #5f6b7a;
	margin: 0;
	overflow-wrap: anywhere;
}

.cloora-raffle-auth-prompt .cloora-raffle-auth-link {
	justify-self: center;
}

.cloora-raffle-auth-instruction {
	font-weight: 600;
	margin: 0 0 16px;
}

.cloora-raffle-auth-name-row {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
	.cloora-raffle {
		padding: 16px;
	}

	.cloora-raffle-auth-name-row {
		grid-template-columns: 1fr;
	}
}

.cloora-raffle-run {
	background: #03111f;
	border-color: #103a56;
	box-shadow: 0 18px 50px rgba(0, 8, 18, 0.3);
	color: #c9f7ff;
	max-width: 1100px;
}

.cloora-raffle-run .cloora-raffle-header h2,
.cloora-raffle-run .cloora-raffle-header p {
	color: #e4fbff;
}

.cloora-raffle-run .cloora-raffle-date {
	color: #77d8ff;
}

.cloora-matrix-stage {
	background:
		radial-gradient(circle at 20% 20%, rgba(0, 180, 255, 0.2), transparent 32%),
		linear-gradient(180deg, #03101c 0%, #020710 100%);
	border: 1px solid rgba(74, 197, 255, 0.32);
	border-radius: 8px;
	box-shadow: inset 0 0 42px rgba(0, 187, 255, 0.14);
	height: 560px;
	margin-top: 18px;
	overflow: hidden;
	position: relative;
}

.cloora-matrix-rain,
.cloora-matrix-scan,
.cloora-matrix-terminal,
.cloora-matrix-ticket-cloud {
	inset: 0;
	position: absolute;
}

.cloora-matrix-rain span {
	animation: clooraMatrixRain linear infinite;
	color: rgba(93, 229, 255, 0.62);
	font-family: Consolas, "Courier New", monospace;
	font-size: 18px;
	line-height: 1;
	position: absolute;
	text-shadow: 0 0 10px rgba(70, 228, 255, 0.75);
	top: -45%;
	white-space: pre;
}

.cloora-matrix-scan {
	background: linear-gradient(180deg, transparent, rgba(88, 223, 255, 0.12), transparent);
	height: 34%;
	top: -34%;
	animation: clooraMatrixScan 5.5s linear infinite;
}

.cloora-matrix-terminal {
	background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
	z-index: 2;
}

.cloora-matrix-status {
	color: #8ff4ff;
	font-family: Consolas, "Courier New", monospace;
	font-size: clamp(1.1rem, 2.7vw, 2rem);
	font-weight: 700;
	left: 28px;
	letter-spacing: 0.08em;
	position: absolute;
	text-shadow: 0 0 18px rgba(89, 232, 255, 0.9);
	top: 26px;
}

.cloora-matrix-matches {
	bottom: 28px;
	color: #5cff9d;
	font-family: Consolas, "Courier New", monospace;
	font-size: clamp(0.95rem, 2.1vw, 1.25rem);
	left: 28px;
	line-height: 1.6;
	position: absolute;
	text-shadow: 0 0 12px rgba(92, 255, 157, 0.8);
	white-space: pre-line;
}

.cloora-matrix-winner {
	align-items: center;
	background: rgba(1, 8, 16, 0.82);
	backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: absolute;
	text-align: center;
	z-index: 6;
}

.cloora-matrix-winner[hidden] {
	display: none;
}

.cloora-matrix-winner-label {
	color: #5cff9d;
	font-family: Consolas, "Courier New", monospace;
	font-size: clamp(1rem, 2.4vw, 1.8rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	margin-bottom: 22px;
	text-shadow: 0 0 18px rgba(92, 255, 157, 0.85);
}

.cloora-matrix-winner-ticket {
	color: #fff;
	font-family: Consolas, "Courier New", monospace;
	font-size: clamp(3rem, 12vw, 8rem);
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
	min-height: 1.05em;
	overflow-wrap: anywhere;
	text-shadow: 0 0 24px #6eefff, 0 0 54px #0db7ff;
}

.cloora-matrix-winner-member {
	color: #8ff4ff;
	font-size: clamp(1rem, 2.6vw, 1.6rem);
	font-weight: 700;
	margin-top: 18px;
}

.cloora-race-controls {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 16px;
}

.cloora-race-controls button {
	background: #56e6ff;
	border: 0;
	border-radius: 4px;
	color: #03111f;
	cursor: pointer;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 10px 18px;
	text-transform: uppercase;
}

.cloora-race-controls button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.cloora-race-countdown {
	align-items: center;
	background: #020710;
	border: 1px solid rgba(86, 230, 255, 0.55);
	border-radius: 50%;
	color: #56e6ff;
	display: inline-flex;
	font-size: 1.1rem;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	width: 44px;
}

@media (max-width: 700px) {
	.cloora-matrix-stage {
		height: 500px;
	}

	.cloora-matrix-status,
	.cloora-matrix-matches {
		left: 16px;
		right: 16px;
	}
}

@keyframes clooraMatrixRain {
	from {
		transform: translateY(-20%);
	}

	to {
		transform: translateY(190%);
	}
}

@keyframes clooraMatrixScan {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(390%);
	}
}
