/* =========================================================
   TXL XPERIENCE — main stylesheet
   Design language: dark "lens/HUD" aesthetic grounded in the
   studio's teal + bronze mark. Syne for display type (angular,
   futuristic), Inter for body copy, IBM Plex Mono for HUD/spec
   readouts (playtime, platforms, dates).
   ========================================================= */

:root {
	--txl-void: #0A0D10;
	--txl-surface: #12171B;
	--txl-surface-2: #1B2227;
	--txl-teal: #1C9BAE;
	--txl-teal-glow: #2FD8E8;
	--txl-bronze: #A47C3B;
	--txl-gray: #9AA0A6;
	--txl-white: #F2F4F5;

	--txl-border: rgba(154, 160, 166, 0.16);
	--txl-radius: 2px;

	--font-display: "Syne", "Arial Black", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

/* -----------------------------------------------------------
   Reset-ish basics
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--txl-void);
	color: var(--txl-white);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--txl-teal-glow); text-decoration: none; }
a:hover { color: var(--txl-teal); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--txl-gray); }

ul, ol { padding-left: 1.2em; }

::selection { background: var(--txl-teal); color: var(--txl-void); }

:focus-visible {
	outline: 2px solid var(--txl-teal-glow);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.txl-skip-link {
	position: fixed;
	top: -100px;
	left: 1rem;
	z-index: 9999;
	background: var(--txl-teal);
	color: var(--txl-void);
	padding: 0.75em 1.25em;
	transition: top 0.2s ease;
}
.txl-skip-link:focus { top: 1rem; width: auto; height: auto; clip: auto; overflow: visible; }

.txl-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* -----------------------------------------------------------
   HUD scanline ambient overlay (decorative, disables with motion pref)
   ----------------------------------------------------------- */
.txl-scanline {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background: repeating-linear-gradient(
		to bottom,
		rgba(47, 216, 232, 0.025) 0px,
		rgba(47, 216, 232, 0.025) 1px,
		transparent 1px,
		transparent 3px
	);
	mix-blend-mode: screen;
	opacity: 0.5;
}
.txl-reduced-motion .txl-scanline { display: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.txl-scanline { display: none; }
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* -----------------------------------------------------------
   Eyebrow label (uses the logo's vertical teal divider as motif)
   ----------------------------------------------------------- */
.txl-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--txl-bronze);
	margin: 0 0 14px;
}
.txl-eyebrow-bar {
	width: 3px;
	height: 16px;
	background: var(--txl-teal);
	display: inline-block;
	flex-shrink: 0;
}

/* -----------------------------------------------------------
   Header / masthead
   ----------------------------------------------------------- */
.txl-masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 13, 16, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--txl-border);
}

.txl-masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 84px;
}

.txl-logo img { max-height: 44px; width: auto; }

.txl-site-title-link { display: inline-block; }
.txl-site-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--txl-white);
	letter-spacing: 0.02em;
}

.txl-primary-nav .txl-nav-menu {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.txl-nav-menu a {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--txl-white);
	position: relative;
	padding: 6px 0;
}
.txl-nav-menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--txl-teal);
	transition: right 0.25s ease;
}
.txl-nav-menu a:hover::after,
.txl-nav-menu li.current-menu-item a::after { right: 0; }
.txl-nav-menu a:hover { color: var(--txl-teal-glow); }

.txl-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 1px solid var(--txl-border);
	padding: 10px 12px;
	cursor: pointer;
}
.txl-nav-toggle-bar { width: 20px; height: 2px; background: var(--txl-white); }

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.txl-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: var(--txl-radius);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.txl-btn-primary {
	background: var(--txl-teal);
	color: var(--txl-void);
}
.txl-btn-primary:hover {
	background: var(--txl-teal-glow);
	color: var(--txl-void);
	box-shadow: 0 0 24px rgba(47, 216, 232, 0.35);
	transform: translateY(-1px);
}
.txl-btn-ghost {
	background: transparent;
	color: var(--txl-white);
	border-color: var(--txl-border);
}
.txl-btn-ghost:hover { border-color: var(--txl-teal); color: var(--txl-teal-glow); }
.txl-btn-outline {
	background: transparent;
	color: var(--txl-teal-glow);
	border-color: var(--txl-teal);
}
.txl-btn-outline:hover { background: var(--txl-teal); color: var(--txl-void); }

.txl-play-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--txl-bronze);
	display: inline-block;
}

/* -----------------------------------------------------------
   Hero + Lens motif (signature element)
   ----------------------------------------------------------- */
.txl-hero { padding: 100px 0 80px; overflow: hidden; }
.txl-hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}
.txl-hero-heading {
	font-size: clamp(2.5rem, 5vw, 4rem);
	color: var(--txl-white);
	margin-bottom: 0.4em;
}
.txl-hero-sub {
	font-size: 18px;
	max-width: 46ch;
	margin-bottom: 2em;
}
.txl-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.txl-hero-lens { display: flex; justify-content: center; }
.txl-lens-frame {
	position: relative;
	width: min(420px, 100%);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: radial-gradient(circle at 35% 30%, var(--txl-surface-2), var(--txl-void) 75%);
	box-shadow:
		0 0 0 1px var(--txl-border),
		0 30px 80px -20px rgba(28, 155, 174, 0.35);
}
.txl-lens-image, .txl-lens-frame img {
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.txl-lens-placeholder {
	width: 100%; height: 100%;
	background:
		radial-gradient(circle at 40% 35%, rgba(28, 155, 174, 0.35), transparent 55%),
		radial-gradient(circle at 65% 70%, rgba(164, 124, 59, 0.28), transparent 55%),
		var(--txl-surface);
}
.txl-lens-placeholder-small { border-radius: 0; }

.txl-lens-ring {
	position: absolute;
	inset: 10px;
	border-radius: 50%;
	border: 1px solid rgba(47, 216, 232, 0.45);
	pointer-events: none;
}
.txl-lens-ring::before {
	content: "";
	position: absolute;
	inset: 14px;
	border-radius: 50%;
	border: 1px dashed rgba(154, 160, 166, 0.25);
}
.txl-lens-ring-small { inset: 0; border-radius: 0; border: none; }

.txl-lens-tick {
	position: absolute;
	background: var(--txl-bronze);
}
.txl-lens-tick-top { top: -2px; left: 50%; width: 2px; height: 18px; transform: translateX(-50%); }
.txl-lens-tick-bottom { bottom: -2px; left: 50%; width: 2px; height: 18px; transform: translateX(-50%); }
.txl-lens-tick-left { left: -2px; top: 50%; width: 18px; height: 2px; transform: translateY(-50%); }
.txl-lens-tick-right { right: -2px; top: 50%; width: 18px; height: 2px; transform: translateY(-50%); }

.txl-reduced-motion .txl-lens-frame,
.txl-lens-frame { animation: none; }

/* -----------------------------------------------------------
   Sections / grids
   ----------------------------------------------------------- */
.txl-section { padding: 80px 0; }
.txl-section-head { margin-bottom: 40px; max-width: 640px; }
.txl-section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--txl-white); }
.txl-section-cta { text-align: center; margin-top: 48px; }

.txl-games-grid { display: grid; gap: 28px; }
.txl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.txl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.txl-cols-4 { grid-template-columns: repeat(4, 1fr); }

.txl-game-card {
	background: var(--txl-surface);
	border: 1px solid var(--txl-border);
	border-radius: var(--txl-radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.txl-game-card:hover { transform: translateY(-4px); border-color: var(--txl-teal); }
.txl-game-card-link { color: inherit; display: block; }
.txl-game-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.txl-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.txl-status-pill {
	position: absolute; top: 12px; left: 12px;
	background: rgba(10, 13, 16, 0.75);
	border: 1px solid var(--txl-teal);
	color: var(--txl-teal-glow);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 10px;
}
.txl-game-body { padding: 22px; }
.txl-game-title { font-size: 20px; margin-bottom: 0.3em; color: var(--txl-white); }
.txl-game-genre {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--txl-bronze);
	margin-bottom: 0.8em;
}
.txl-game-excerpt { font-size: 14px; margin-bottom: 1em; }
.txl-game-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.txl-meta-chip {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--txl-gray);
	border: 1px solid var(--txl-border);
	padding: 4px 8px;
}

.txl-empty-state {
	text-align: center;
	padding: 60px 20px;
	border: 1px dashed var(--txl-border);
}

/* Stat strip */
.txl-strip { background: var(--txl-surface); border-top: 1px solid var(--txl-border); border-bottom: 1px solid var(--txl-border); padding: 56px 0; }
.txl-strip-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.txl-strip-stat { text-align: center; flex: 1; min-width: 160px; }
.txl-strip-number { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--txl-teal-glow); }
.txl-strip-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txl-gray); }

/* Journal / blog grid */
.txl-journal-grid, .txl-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.txl-blog-grid { grid-template-columns: repeat(2, 1fr); }
.txl-journal-card a { color: inherit; display: block; }
.txl-journal-thumb { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--txl-border); }
.txl-journal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.txl-journal-title { font-size: 18px; color: var(--txl-white); margin-bottom: 0.3em; }
.txl-journal-excerpt { font-size: 14px; }

/* -----------------------------------------------------------
   Single game page
   ----------------------------------------------------------- */
.txl-game-hero { padding: 70px 0 60px; border-bottom: 1px solid var(--txl-border); }
.txl-game-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.txl-spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; padding: 0; }
.txl-spec { border-top: 1px solid var(--txl-border); padding-top: 10px; }
.txl-spec dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txl-bronze); margin: 0; }
.txl-spec dd { margin: 4px 0 0; color: var(--txl-white); font-weight: 600; }

/* -----------------------------------------------------------
   Generic single / page
   ----------------------------------------------------------- */
.txl-page-container { padding: 64px 24px 96px; }
.txl-single-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--txl-white); }
.txl-single-thumb { margin: 32px 0; border: 1px solid var(--txl-border); }
.txl-entry-content { max-width: 76ch; font-size: 17px; }
.txl-entry-content h2, .txl-entry-content h3 { color: var(--txl-white); margin-top: 1.6em; }
.txl-entry-content a { text-decoration: underline; }
.txl-archive-header { margin-bottom: 40px; }
.txl-archive-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--txl-white); }

.txl-404 { text-align: center; padding-top: 60px; }
.txl-lens-404 { width: 160px; height: 160px; margin: 0 auto 24px; border-radius: 50%; background: var(--txl-surface); }

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.txl-footer { background: var(--txl-surface); border-top: 1px solid var(--txl-border); padding: 72px 0 32px; margin-top: 60px; }
.txl-footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 56px; }
.txl-footer-tagline { margin: 14px 0 20px; font-size: 15px; }
.txl-logo-footer img { max-height: 36px; }
.txl-footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.txl-widget-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txl-bronze); margin-bottom: 14px; }
.txl-footer-menu, .txl-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.txl-footer-menu a { color: var(--txl-gray); font-size: 14px; }
.txl-footer-menu a:hover { color: var(--txl-teal-glow); }

.txl-social-list { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.txl-social-link {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--txl-border);
	color: var(--txl-white);
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
}
.txl-social-link::before { content: attr(data-network); }
.txl-social-link:hover { border-color: var(--txl-teal); color: var(--txl-teal-glow); }

.txl-footer-bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding-top: 24px; border-top: 1px solid var(--txl-border);
	font-family: var(--font-mono); font-size: 12px; color: var(--txl-gray);
}

/* -----------------------------------------------------------
   Comments
   ----------------------------------------------------------- */
.txl-comments { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--txl-border); max-width: 76ch; }
.txl-comment-list { list-style: none; padding: 0; }
.txl-comments-title { color: var(--txl-white); font-size: 22px; }

/* -----------------------------------------------------------
   Search form
   ----------------------------------------------------------- */
.txl-search-form { display: flex; gap: 10px; margin-top: 20px; }
.txl-search-field {
	flex: 1;
	background: var(--txl-surface);
	border: 1px solid var(--txl-border);
	color: var(--txl-white);
	padding: 12px 14px;
	font-family: var(--font-body);
}
.txl-search-submit {
	background: var(--txl-teal); color: var(--txl-void);
	border: none; padding: 0 20px;
	font-family: var(--font-mono); text-transform: uppercase; font-size: 13px;
	cursor: pointer;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 960px) {
	.txl-hero-inner, .txl-game-hero-inner { grid-template-columns: 1fr; }
	.txl-hero-lens { order: -1; }
	.txl-cols-3, .txl-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.txl-journal-grid { grid-template-columns: repeat(2, 1fr); }
	.txl-footer-top { grid-template-columns: 1fr; }
	.txl-footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.txl-primary-nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--txl-void); border-bottom: 1px solid var(--txl-border); display: none; }
	.txl-primary-nav.is-open { display: block; }
	.txl-nav-menu { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 24px; }
	.txl-nav-menu li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--txl-border); }
	.txl-nav-toggle { display: flex; }
	.txl-cols-2, .txl-cols-3, .txl-cols-4 { grid-template-columns: 1fr; }
	.txl-journal-grid, .txl-blog-grid { grid-template-columns: 1fr; }
	.txl-spec-list { grid-template-columns: 1fr; }
	.txl-footer-columns { grid-template-columns: 1fr; }
	.txl-strip-inner { flex-direction: column; }
}
