/* Soviet / constructivist shell — shared by charts + paper + feed */
:root {
	--bg0: #140303;
	--bg1: #1f0606;
	--bg: #140303;
	--ink: #f2e6c9;
	--muted: #b89a72;
	--line: rgba(201, 162, 39, 0.28);
	--accent: #d4af37;
	/* Warm USSR scarlet — no blue/magenta undertone */
	--accent-2: #cc0000;
	--soviet-red: #7a0000;
	--soviet-red-hot: #cc0000;
	--soviet-gold: #d4af37;
	--good: #d4af37;
	--win: #e8c547;
	--loss: #ff3d2e;
	--font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
	--font-sans: "Source Serif 4", "Times New Roman", Georgia, serif;
	--font-mono: "Special Elite", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	min-height: 100%;
	background: var(--bg0);
	color: var(--ink);
	font-family: var(--font-sans);
}

.atmosphere {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		repeating-linear-gradient(
			-28deg,
			transparent 0 18px,
			rgba(204, 0, 0, 0.045) 18px 19px
		),
		radial-gradient(900px 420px at 0% -10%, rgba(204, 0, 0, 0.32), transparent 55%),
		radial-gradient(700px 380px at 100% 0%, rgba(212, 175, 55, 0.18), transparent 50%),
		linear-gradient(180deg, #2a0808 0%, #140303 55%, #0c0202 100%);
}

/* Arrival splash — dirty soviet wordmark */
.combot-splash {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #050101;
	opacity: 0;
	pointer-events: auto;
	cursor: pointer;
	transition: opacity 0.85s ease;
}
.combot-splash.is-in { opacity: 1; }
.combot-splash.is-out { opacity: 0; pointer-events: none; }

.combot-splash-vignette {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.75) 70%, #000 100%),
		linear-gradient(180deg, rgba(40, 0, 0, 0.35), transparent 40%, rgba(0, 0, 0, 0.55));
	pointer-events: none;
}

.combot-splash-grain {
	position: absolute;
	inset: -20%;
	opacity: 0.45;
	pointer-events: none;
	mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
	animation: splash-grain 0.35s steps(2) infinite;
}
@keyframes splash-grain {
	0% { transform: translate(0, 0); }
	50% { transform: translate(-1.5%, 1%); }
	100% { transform: translate(1%, -1%); }
}

.combot-splash-scratches {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.35;
	background:
		linear-gradient(105deg, transparent 40%, rgba(255, 220, 150, 0.04) 41%, transparent 42%),
		linear-gradient(12deg, transparent 60%, rgba(255, 255, 255, 0.03) 61%, transparent 62%),
		linear-gradient(-20deg, transparent 30%, rgba(0, 0, 0, 0.35) 31%, transparent 33%);
}

.combot-splash-mark {
	position: relative;
	z-index: 1;
	text-align: center;
	filter:
		contrast(1.15)
		brightness(0.82)
		sepia(0.35)
		saturate(0.7);
	transform: scale(0.96);
	opacity: 0;
	animation: splash-mark 2.4s ease forwards;
}
.combot-splash.is-out .combot-splash-mark {
	animation: none;
	opacity: 0;
	transition: opacity 0.7s ease;
}
@keyframes splash-mark {
	0% { opacity: 0; transform: scale(0.92) translateY(8px); }
	18% { opacity: 1; transform: scale(1) translateY(0); }
	72% { opacity: 1; transform: scale(1); }
	100% { opacity: 0.15; transform: scale(1.02); }
}

.combot-splash-emblem {
	width: min(28vw, 140px);
	height: auto;
	margin: 0 auto 0.85rem;
	display: block;
	opacity: 0.88;
	filter: drop-shadow(0 2px 0 #2a0000) drop-shadow(0 0 18px rgba(139, 0, 0, 0.45));
}

.combot-splash-word {
	font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
	font-weight: 700;
	font-size: clamp(2.8rem, 12vw, 5.5rem);
	letter-spacing: 0.18em;
	line-height: 1;
	color: #c9a227;
	text-shadow:
		0 1px 0 #3a2200,
		0 3px 0 #1a0a00,
		0 0 24px rgba(139, 0, 0, 0.65);
	margin-left: 0.18em; /* optical center with tracking */
}

.combot-splash-sub {
	margin-top: 0.55rem;
	font-family: "Special Elite", "Courier New", monospace;
	font-size: clamp(0.7rem, 2.4vw, 0.95rem);
	letter-spacing: 0.55em;
	color: rgba(242, 230, 201, 0.55);
	text-transform: uppercase;
}

.combot-splash-year {
	margin-top: 1.1rem;
	font-family: "Oswald", sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: rgba(204, 0, 0, 0.9);
}

.win { color: var(--win) !important; }
.loss { color: var(--loss) !important; }

/* Shared mobile safety — desktop unchanged */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body.combot-dash,
body.combot-paper {
	overflow-x: clip;
}
