/* ========================================================================== 
   CM HUB — monochrome operations console
   A flat, low-overhead visual layer shared by every public and admin page.
   Continuous motion, blur stacks and pointer-tracked 3D are intentionally gone.
   ========================================================================== */

:root {
	--bg: #050505;
	--bg-2: #080808;
	--surface: #0b0b0b;
	--surface-2: #0f0f0f;
	--raised: #141414;
	--line: #242424;
	--line-strong: #3b3b3b;
	--line-bright: #707070;
	--text: #f4f4f0;
	--muted: #969696;
	--dim: #686868;
	--faint: #3d3d3d;
	--accent: #f4f4f0;
	--accent-soft: #c7c7c2;
	--good: #f4f4f0;
	--warn: #b9b9b4;
	--bad: #8b8b87;
	--radius: 2px;
	--radius-sm: 2px;
	--lift-1: none;
	--lift-2: none;
	--lift-3: none;
	--glow: none;
	--font: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
	--display: "Bahnschrift Condensed", "Arial Narrow", "Segoe UI", sans-serif;
	--mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
	--ease: cubic-bezier(.2, .75, .25, 1);
}

html { color-scheme: dark; background: var(--bg); }

body,
body.key-studio {
	min-height: 100%;
	perspective: none;
	background:
		linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
		#050505;
	background-size: 72px 72px;
	color: var(--text);
}

.bg-layer { display: none; }

.bg-grid {
	position: fixed;
	inset: 0;
	z-index: -1;
	opacity: .28;
	transform: none;
	animation: none;
	background-image:
		linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: linear-gradient(#000, transparent 86%);
	mask-image: linear-gradient(#000, transparent 86%);
}

.wrap,
.key-studio .wrap,
.home-studio .wrap { width: min(1160px, calc(100% - 48px)); max-width: 1160px; }
.section { padding: 58px 0; }
main { min-height: calc(100vh - 190px); }

h1,
h2,
h3,
.option .hours,
.countdown {
	font-family: var(--display);
	font-stretch: condensed;
}

h1,
.key-studio .key-intro h1,
.home-studio .key-intro h1,
.games-studio .key-intro h1 {
	margin: 22px 0 18px;
	font-size: clamp(48px, 7.4vw, 88px);
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.045em;
	text-transform: uppercase;
	animation: none;
}

h1 span,
.key-studio .key-intro h1 span { color: #8b8b8b; }
h2 { font-weight: 760; letter-spacing: -.02em; }
h3 { font-weight: 680; }

.studio-label,
.eyebrow,
.k,
.cmhub-ad-tag,
.script-language,
.game-status,
.pill,
label {
	font-family: var(--mono);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.studio-label {
	color: #b7b7b2;
	font-size: 10px;
	font-weight: 650;
}

.studio-label::before { content: "// "; color: #5e5e5e; }
.studio-label .studio-dot { display: none; }

/* Header: solid pixels only — no live blur layer. */
.site-header,
.key-studio .site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #050505;
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 84px;
	height: 1px;
	background: #f4f4f0;
}

.site-header .wrap,
.key-studio .site-header .wrap {
	min-height: 72px;
	padding: 12px 0;
	gap: 28px;
}

.brand {
	gap: 11px;
	font: 700 12px var(--mono);
	letter-spacing: .12em;
	white-space: nowrap;
	transition: color .18s ease;
}

.brand::after {
	content: "ONLINE";
	margin-left: 5px;
	padding: 4px 7px;
	border: 1px solid #494949;
	color: #a8a8a4;
	font: 9px var(--mono);
	letter-spacing: .12em;
}

.brand .mark,
.brand:hover .mark {
	width: 34px;
	height: 34px;
	border: 1px solid #f4f4f0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #f4f4f0;
	transform: none;
}

.nav { gap: 0; }
.nav a {
	padding: 9px 12px;
	border-radius: 0;
	color: #818181;
	font: 650 10px var(--mono);
	letter-spacing: .075em;
	text-transform: uppercase;
	transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: #f4f4f0; background: #101010; }
.nav a.active { color: #050505; background: #f4f4f0; }

/* Flat panels and controls. */
.card,
.selection-panel,
.option,
.provider-option,
.game-card,
.stat,
.alert,
.step,
.attempt-console,
details.faq,
.key-box,
.table-wrap,
.provider-funnel {
	border: 1px solid var(--line);
	border-radius: 2px;
	background: #0b0b0b;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	transform: none;
}

.card::before,
.option::before,
.game-card::before { display: none; }

.card,
.selection-panel,
.option,
.provider-option,
.game-card {
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.card:hover,
.feature:hover,
.option:hover:not(:disabled),
.provider-option:hover:not(:disabled),
.game-card:hover,
.game-card:active {
	transform: none;
	box-shadow: none;
	border-color: #5a5a5a;
	background: #0f0f0f;
}

.btn,
.key-studio .btn {
	min-height: 44px;
	padding: 12px 20px;
	border: 1px solid #f4f4f0;
	border-radius: 0;
	background: #f4f4f0;
	box-shadow: none;
	color: #050505;
	font: 720 11px var(--mono);
	letter-spacing: .075em;
	text-transform: uppercase;
	transform: none;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn:hover,
.btn:active {
	transform: none;
	box-shadow: none;
	background: #050505;
	color: #f4f4f0;
}

.btn-ghost {
	border-color: #3e3e3e;
	background: transparent;
	color: #d4d4cf;
}
.btn-ghost:hover { border-color: #f4f4f0; background: #f4f4f0; color: #050505; }
.btn-danger { border-color: #575757; background: #111; color: #d0d0cc; }
.btn-lg { min-height: 50px; padding: 15px 24px; font-size: 12px; }
.btn-sm { min-height: 34px; padding: 8px 12px; font-size: 9px; }
.btn[disabled], .btn.is-loading { opacity: .35; }

input,
select,
textarea {
	min-height: 44px;
	border: 1px solid #2e2e2e;
	border-radius: 0;
	background: #070707;
	box-shadow: none;
	color: #f4f4f0;
	font-family: var(--mono);
	transition: border-color .16s ease;
}
input:focus,
select:focus,
textarea:focus { border-color: #f4f4f0; box-shadow: none; outline: none; }

.pill {
	border-radius: 0;
	box-shadow: none;
	background: #101010;
	color: #a9a9a5;
	font-size: 9px;
}
.pill.good { border-color: #d9d9d5; background: #f4f4f0; color: #050505; }
.pill.neon { border-color: #555; background: #141414; color: #d5d5d0; }

/* Hero: the former 3D card becomes a static system credential. */
.key-main { padding-top: 48px; }
.key-intro,
.home-studio .key-intro,
.games-studio .key-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
	align-items: center;
	gap: clamp(32px, 6vw, 84px);
	margin-bottom: 52px;
}
.key-intro-copy { max-width: 650px; }
.key-intro-copy > p,
.key-intro .lead {
	max-width: 550px;
	color: #969696;
	font-size: 14px;
	line-height: 1.8;
}
.intro-details {
	margin-top: 24px;
	display: flex;
	gap: 24px;
	color: #777;
	font: 9px var(--mono);
	letter-spacing: .11em;
	text-transform: uppercase;
}

.access-scene,
.home-studio .access-scene {
	position: relative;
	display: grid;
	place-items: center;
	height: 300px;
	min-width: 0;
	animation: none;
}
.access-orbit { display: none; }
.access-stack,
.home-studio .access-stack {
	position: relative;
	width: min(100%, 390px);
	height: 220px;
	transform: none !important;
	transform-style: flat;
}
.access-shadow-card { display: none; }
.access-pass,
.home-studio .access-pass {
	position: absolute;
	inset: 0;
	padding: 28px;
	border: 1px solid #3c3c3c;
	border-radius: 2px;
	background:
		linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.045) 50%, transparent 50.2%),
		linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
		#0d0d0d;
	background-size: 100% 100%, 100% 24px, 100% 100%;
	box-shadow: none;
	color: #e8e8e3;
	transform: none;
}
.access-pass::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 58px;
	height: 1px;
	background: #f4f4f0;
}
.access-pass::after { display: none; animation: none; }
.access-pass-top,
.access-pass-bottom { color: #929292; font: 9px var(--mono); letter-spacing: .11em; }
.access-key { width: 96px; height: 48px; margin: 22px 0 25px; color: #f4f4f0; }
.pass-bars { opacity: .52; filter: grayscale(1); }
.access-caption { bottom: 8px; color: #626262; font: 8px var(--mono); letter-spacing: .18em; }

.selection-panel { padding: 30px; }
.selection-panel + .selection-panel { margin-top: 20px; }
.studio-step-heading { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.step-index {
	border-radius: 0;
	background: transparent;
	border: 1px solid #494949;
	color: #cfcfca;
	font-family: var(--mono);
}

.provider-options { gap: 10px; }
.key-studio .provider-option,
.provider-option {
	min-height: 82px;
	border-radius: 2px;
	background: #0b0b0b;
	box-shadow: none;
}
.provider-logo { filter: grayscale(1); }
.linkvertise-logo { border-radius: 0; }
.provider-check { border-radius: 0; }
.provider-option.selected,
.key-studio .provider-option.selected { border-color: #f4f4f0; background: #141414; box-shadow: none; }

.options,
.key-studio .options { gap: 10px; }
.option,
.key-studio .option {
	padding: 22px;
	border-radius: 2px;
	background: #0b0b0b;
	box-shadow: none;
}
.option.selected,
.key-studio .option.selected {
	border-color: #f4f4f0;
	background: #f4f4f0;
	box-shadow: none;
	color: #050505;
	transform: none;
}
.option .hours,
.key-studio .option .hours { font-size: 40px; }

.key-box { border-style: dashed; background: #080808; }
.key-value { letter-spacing: .12em; }
.stat-row { gap: 10px; }
.stat { background: #090909; box-shadow: none; }
.progress-track { height: 4px; border-radius: 0; background: #1a1a1a; }
.progress-fill { border-radius: 0; background: #f4f4f0; box-shadow: none; }
.spinner { border-radius: 50%; animation-duration: 1s; }
.control-beacon,
.step.available .dot,
.live-dot { animation: none; box-shadow: none; }
.key-box::after { display: none; animation: none; }

/* Home catalogue and content rhythm. */
.home-studio .home-hero { padding-top: 48px; }
.home-studio .key-intro .btn-row { margin-top: 26px; }
.home-studio .live-stats,
.home-studio .home-facts { border-color: var(--line); }
.home-studio .home-facts .stat + .stat { border-color: var(--line); }
.home-studio .home-section-head { align-items: end; }
.home-studio .feature,
.home-studio details.faq { border-color: var(--line); }
.home-studio .feature:hover { transform: none; }
.home-step { color: #888; }

/* Games. */
.games-catalog { border-color: var(--line); }
.games-studio .games-grid { gap: 10px; }
.games-studio .game-card {
	padding: 22px 18px;
	border-radius: 2px;
	background: #0b0b0b;
	box-shadow: none;
}
.games-studio .game-icon {
	border-radius: 0;
	background: #141414;
	box-shadow: none;
}
.game-icon img { filter: grayscale(1) contrast(1.05); }
.game-card:hover .game-icon,
.game-card:hover .game-icon img { transform: none; filter: grayscale(1) contrast(1.05); }
.games-studio .is-working .game-status { background: #f4f4f0; color: #050505; }
.games-studio .is-maintenance { background: #080808; }
.games-studio .games-help { border-color: var(--line); }

/* Script panel. */
.script-code {
	border-radius: 0;
	background: #050505;
	border-color: #303030;
	box-shadow: inset 3px 0 #f4f4f0;
}
.script-language { border-radius: 0; }
.script-steps li { border-color: var(--line); }

/* Tables, admin navigation and dense operations UI. */
.admin-shell { gap: 18px; }
.admin-nav {
	position: sticky;
	top: 94px;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: #080808;
	box-shadow: none;
}
.admin-nav button {
	border-radius: 0;
	border-left: 2px solid transparent;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.admin-nav button:hover { background: #101010; }
.admin-nav button.active { border-left-color: #f4f4f0; background: #f4f4f0; color: #050505; }
.table-wrap { background: #080808; }
table { border-collapse: collapse; }
th {
	background: #0d0d0d;
	color: #8c8c88;
	font: 650 9px var(--mono);
	letter-spacing: .09em;
	text-transform: uppercase;
}
td, th { border-color: var(--line); }
tbody tr:hover { background: #111; }
.toolbar { border-radius: 0; }
.provider-funnel,
.analytics-hero,
.signal-chart { box-shadow: none; }

/* Ads become reserved, stable slots rather than floating glass surfaces. */
.cmhub-ads { border-radius: 0; }
.cmhub-ad {
	border: 1px dashed #292929;
	border-radius: 0;
	background: #070707;
	box-shadow: none;
}
.cmhub-ad-tag { color: #5e5e5e; font-size: 8px; }

.site-footer {
	margin-top: 56px;
	border-top: 1px solid var(--line);
	background: #050505;
}
.site-footer .wrap { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }

/* One short arrival animation; nothing loops in the background. */
@keyframes terminal-enter {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
.key-intro-copy,
.access-scene,
.selection-panel,
.games-catalog,
#login-view > .card {
	animation: terminal-enter .42s var(--ease) both;
}
.access-scene { animation-delay: .06s; }

@media (max-width: 900px) {
	.site-header .wrap,
	.key-studio .site-header .wrap { align-items: flex-start; flex-direction: column; gap: 8px; }
	.nav {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.nav::-webkit-scrollbar { display: none; }
	.nav a { flex: 0 0 auto; }
	.key-intro,
	.home-studio .key-intro,
	.games-studio .key-intro { grid-template-columns: 1fr; }
	.access-scene,
	.home-studio .access-scene { height: 255px; }
	.admin-nav { top: 128px; }
}

@media (max-width: 620px) {
	.wrap,
	.key-studio .wrap,
	.home-studio .wrap { width: min(100% - 28px, 1160px); }
	.section { padding: 38px 0; }
	.site-header .wrap,
	.key-studio .site-header .wrap { width: 100%; padding-inline: 14px; }
	.brand { font-size: 10px; }
	.brand::after { display: none; }
	.nav a { padding: 9px 10px; font-size: 9px; }
	h1,
	.key-studio .key-intro h1,
	.home-studio .key-intro h1,
	.games-studio .key-intro h1 { font-size: clamp(44px, 16vw, 64px); }
	.key-intro-copy { text-align: left; }
	.home-studio .key-intro .btn-row,
	.home-studio .intro-details,
	.games-actions { justify-content: flex-start; }
	.access-scene,
	.home-studio .access-scene { height: 220px; }
	.access-stack,
	.home-studio .access-stack { width: 100%; height: 195px; }
	.access-pass,
	.home-studio .access-pass { padding: 22px; }
	.access-caption { display: none; }
	.selection-panel { padding: 20px 16px; }
	.home-studio .home-section-head { display: block; }
	.home-studio .options,
	.home-studio .grid-4,
	.key-studio .options { grid-template-columns: 1fr 1fr; }
	.games-studio .games-grid { grid-template-columns: 1fr 1fr; }
	.admin-shell { grid-template-columns: 1fr; }
	.admin-nav { position: static; display: flex; overflow-x: auto; }
	.admin-nav button { flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; }
	.admin-nav button.active { border-bottom-color: #050505; }
}

@media (max-width: 390px) {
	.home-studio .options,
	.home-studio .grid-4,
	.key-studio .options,
	.games-studio .games-grid { grid-template-columns: 1fr; }
	.btn-row,
	.script-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

