/* SKOOTY'S 3-POINT DOOMSDAY -- 1996 space jam energy */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: #000;
	/* tiled starfield, no image assets needed */
	background-image:
		radial-gradient(1px 1px at 20px 30px, #fff, transparent),
		radial-gradient(1px 1px at 90px 70px, #ffd, transparent),
		radial-gradient(2px 2px at 160px 20px, #fff, transparent),
		radial-gradient(1px 1px at 230px 110px, #adf, transparent),
		radial-gradient(1px 1px at 300px 60px, #fff, transparent),
		radial-gradient(2px 2px at 350px 130px, #fda, transparent),
		radial-gradient(1px 1px at 60px 160px, #fff, transparent),
		radial-gradient(1px 1px at 190px 180px, #fff, transparent);
	background-size: 400px 200px;
	color: #fff;
	font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
	text-align: center;
}

/* slow twinkle overlay */
.stars-layer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(2px 2px at 120px 40px, #fff, transparent),
		radial-gradient(2px 2px at 280px 150px, #fff, transparent),
		radial-gradient(1px 1px at 40px 120px, #fff, transparent);
	background-size: 400px 200px;
	animation: twinkle 3s steps(2) infinite;
}

@keyframes twinkle {
	50% { opacity: 0.2; }
}

.page {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 10px 40px;
	position: relative;
}

/* ======================= marquee ======================= */

.top-marquee {
	background: #000080;
	color: #ffff00;
	font-weight: bold;
	padding: 4px 0;
	border-bottom: 3px ridge #c0c0c0;
	width: 100%;
}

/* ======================= header ======================= */

.site-header {
	padding: 10px 0 0;
}

.orbit-row {
	font-size: 24px;
	letter-spacing: 14px;
}

.spin {
	display: inline-block;
	animation: spin 4s linear infinite;
}

.spin-rev {
	display: inline-block;
	animation: spin 3s linear infinite reverse;
}

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

.chrome-title {
	font-family: Impact, "Arial Black", sans-serif;
	font-size: clamp(34px, 6vw, 58px);
	line-height: 0.95;
	margin: 8px 0 2px;
	letter-spacing: 2px;
	color: #ffd700;
	background: linear-gradient(180deg, #fffbe6 0%, #ffd700 35%, #ff8c00 60%, #ff4500 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter:
		drop-shadow(3px 3px 0 #8b0000)
		drop-shadow(6px 6px 0 #2e0854);
	transform: rotate(-2deg);
}

.subtitle {
	font-size: 17px;
	font-weight: bold;
	color: #ff2222;
	text-shadow: 2px 2px 0 #550000;
}

/* ======================= boxes ======================= */

.box {
	border: 6px ridge #c0c0c0;
	background: rgba(0, 0, 40, 0.85);
	margin: 26px 0;
	padding: 14px 18px 22px;
}

.section-title {
	font-family: Impact, "Arial Black", sans-serif;
	font-size: 30px;
	letter-spacing: 1px;
	margin: 4px 0 12px;
}

.rainbow-text {
	background: linear-gradient(90deg, #ff0000, #ff9900, #ffff00, #33ff33, #33ccff, #cc66ff, #ff0000);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rainbow-slide 3s linear infinite;
	background-size: 200% 100%;
}

@keyframes rainbow-slide {
	to { background-position: 200% 0; }
}

.big-copy {
	font-size: 19px;
}

.lime {
	color: #33ff33;
}

.danger-copy {
	color: #ff3333;
	font-weight: bold;
	font-size: 18px;
	text-shadow: 1px 1px 0 #400;
}

.danger-title {
	color: #ff2222;
	text-shadow: 2px 2px 0 #550000;
}

.blink {
	animation: blink 1s steps(1) infinite;
}

@keyframes blink {
	50% { opacity: 0; }
}

/* ======================= scoreboard ======================= */

.scoreboard-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 16px 0 10px;
}

.scoreboard-row .box {
	flex: 1 1 340px;
	margin: 0;
	padding: 8px 12px 14px;
}

.scoreboard-row .section-title {
	font-size: 24px;
	margin: 2px 0 8px;
}

.led-display {
	font-family: "Courier New", monospace;
	font-weight: bold;
	font-size: clamp(30px, 4vw, 44px);
	color: #33ff33;
	background: #000;
	border: 5px inset #444;
	display: inline-block;
	padding: 4px 16px;
	letter-spacing: 3px;
	text-shadow: 0 0 12px #33ff33, 0 0 30px #33ff3388;
}

.led-red {
	color: #ff3333;
	text-shadow: 0 0 12px #ff3333, 0 0 30px #ff333388;
}

.led-goal {
	font-family: "Courier New", monospace;
	font-weight: bold;
	font-size: 15px;
	color: #cccccc;
	margin-top: 5px;
}

.timer-status {
	font-weight: bold;
	font-size: 17px;
	color: #ffff00;
	min-height: 22px;
	margin-top: 5px;
}

.timer-status.times-up {
	color: #ff2222;
	font-size: 28px;
	animation: blink 0.5s steps(1) infinite;
}

.progress-shell {
	border: 4px ridge #c0c0c0;
	background: #111;
	height: 24px;
	margin: 10px auto 0;
	max-width: 380px;
}

.progress-fill {
	height: 100%;
	width: 0%;
	background: repeating-linear-gradient(90deg, #33ff33 0 14px, #009900 14px 18px);
	transition: width 0.8s;
}

.powered-by {
	font-size: 11px;
	color: #8888aa;
	margin-top: 8px;
}

/* ======================= tattoo ======================= */

.tattoo-box {
	border-color: #ff4444;
	background: rgba(40, 0, 0, 0.85);
}

.tattoo-frame {
	display: inline-block;
	border: 8px ridge #ffd700;
	background: #fff;
	padding: 6px;
	transform: rotate(2deg);
	margin: 10px 0;
}

.tattoo-frame img {
	max-width: min(420px, 80vw);
	display: block;
}

/* ======================= merch ======================= */

.merch-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin-top: 14px;
}

.merch-item {
	display: block;
	text-decoration: none;
	color: #ffff00;
	border: 5px outset #c0c0c0;
	background: #222;
	padding: 8px;
	transition: transform 0.15s;
}

.merch-item:hover {
	transform: scale(1.05) rotate(-2deg);
	border-style: inset;
}

.merch-item img {
	max-width: min(280px, 70vw);
	display: block;
}

.merch-label {
	display: block;
	font-weight: bold;
	font-size: 20px;
	margin-top: 6px;
}

