:root {
	--aps-primary: #000000;
	--aps-secondary: #ffffff;
	--aps-accent: #ffffff;
	--aps-text-on-primary: #ffffff;
	--aps-text-on-secondary: #000000;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
	margin: 0; padding: 0; height: 100%; width: 100%;
	overflow: hidden;
	background: var(--aps-primary);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	user-select: none;
}

.aps-app { height: 100vh; width: 100vw; }

.aps-screen {
	height: 100vh; width: 100vw;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background-color: var(--aps-primary);
	color: var(--aps-text-on-primary);
	text-align: center;
	padding: 40px;
	position: relative;
	overflow: hidden;
}

.aps-logo { max-width: 180px; max-height: 80px; margin-bottom: 30px; object-fit: contain; }
.aps-logo-text { font-weight: 900; letter-spacing: 6px; font-size: 28px; color: var(--aps-text-on-primary); }

.aps-title { font-size: 56px; font-weight: 900; letter-spacing: 2px; margin: 0 0 10px; text-transform: uppercase; }
.aps-title-sm { font-size: 34px; font-weight: 800; letter-spacing: 1px; margin: 0 0 14px; text-transform: uppercase; }
.aps-subtitle { font-size: 22px; opacity: .85; margin: 0 0 50px; }
.aps-instructions { font-size: 18px; opacity: .85; max-width: 520px; margin: 0 0 26px; line-height: 1.4; }

.aps-btn {
	border: 3px solid var(--aps-accent);
	background: transparent;
	color: var(--aps-text-on-primary);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 18px 40px;
	border-radius: 60px;
	cursor: pointer;
	text-transform: uppercase;
	transition: transform .15s ease, background .15s ease;
}
.aps-btn:active { transform: scale(0.96); }
.aps-btn-huge { font-size: 30px; padding: 26px 60px; background: var(--aps-accent); color: var(--aps-text-on-secondary); }
.aps-btn-ghost { margin-top: 30px; background: transparent; opacity: .7; }

#aps-qr-reader { width: min(80vw, 420px); margin: 0 auto 20px; border-radius: 16px; overflow: hidden; border: 4px solid var(--aps-accent); }
#aps-qr-reader video { width: 100% !important; }
.aps-scan-status { min-height: 24px; font-size: 16px; opacity: .8; }

.aps-wheel {
	width: 220px; height: 220px; border-radius: 50%;
	border: 10px solid rgba(255,255,255,0.15);
	border-top-color: var(--aps-accent);
	animation: aps-spin 1s linear infinite;
	margin-bottom: 40px;
}
@keyframes aps-spin { to { transform: rotate(360deg); } }
.aps-waiting-msg { font-size: 26px; font-weight: 700; }

.aps-message-text { font-size: 28px; max-width: 640px; line-height: 1.5; margin-bottom: 50px; }

#aps-confetti { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.aps-reveal-stars { font-size: 40px; color: gold; letter-spacing: 12px; margin-bottom: 10px; text-shadow: 0 0 12px rgba(255,215,0,.8); }
.aps-prize-name { font-size: 48px; font-weight: 900; text-transform: uppercase; margin: 0 0 16px; z-index: 2; }
.aps-prize-desc { font-size: 20px; max-width: 600px; margin: 0 0 20px; opacity: .9; z-index: 2; }
.aps-prize-image { max-width: 280px; max-height: 280px; object-fit: contain; margin-bottom: 20px; border-radius: 12px; z-index: 2; background: rgba(255,255,255,0.05); }
.aps-store-message { font-size: 24px; max-width: 560px; margin: 10px 0 40px; z-index: 2; }

.aps-winner-form { display: flex; flex-direction: column; align-items: center; z-index: 2; width: min(90vw, 420px); }
.aps-form-intro { font-size: 18px; max-width: 520px; margin-bottom: 20px; }
.aps-winner-form input {
	width: 100%; font-size: 20px; padding: 16px 18px; margin-bottom: 14px;
	border-radius: 10px; border: none; background: var(--aps-secondary); color: var(--aps-text-on-secondary);
}
