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

:root {
	--bg: #080506;
	--surface: #100a0b;
	--surface2: #160d0e;
	--border: rgba(255, 255, 255, 0.06);
	--border-red: rgba(185, 28, 28, 0.3);
	--accent: #991b1b;
	--accent2: #ef4444;
	--accent3: #fca5a5;
	--text: #f5f0f0;
	--muted: rgba(245, 240, 240, 0.38);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	background: var(--bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	color: var(--text);
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(153, 27, 27, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(153, 27, 27, 0.04) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
	z-index: 0;
}

body::after {
	content: '';
	position: fixed;
	bottom: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: 500px;
	height: 300px;
	background: radial-gradient(ellipse, rgba(153, 27, 27, 0.12) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.container {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 40px 20px;
	max-width: 420px;
	width: 100%;
}

.logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 10px;
	margin-bottom: 28px;
}

.logo-icon {
	width: 56px;
	height: 56px;
	position: relative;
	background: transparent;
}

.logo-icon svg {
	width: 100%;
	height: 100%;
}

.logo-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: transparent;
	filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.4));
}

.logo-text {
	color: #ffffff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--muted);
}

.tagline {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.18);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	margin-bottom: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.tagline::before,
.tagline::after {
	content: '';
	display: block;
	width: 28px;
	height: 1px;
	background: rgba(153, 27, 27, 0.4);
}

.button-group {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 22px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--accent);
	color: white;
	border: 1px solid rgba(185, 28, 28, 0.5);
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
}

.btn-primary:hover {
	background: #b91c1c;
	border-color: rgba(239, 68, 68, 0.5);
	box-shadow: 0 0 20px rgba(153, 27, 27, 0.4);
	transform: translateY(-1px);
}

.btn-ghost {
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--surface2);
	color: var(--muted);
	border: 1px solid var(--border);
	border-radius: 6px;
}

.btn-ghost:hover {
	background: rgba(153, 27, 27, 0.1);
	color: var(--accent3);
	transform: translateY(-1px);
	border-color: var(--border-red);
}

.btn-ghost svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(6px);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.modal-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.modal {
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 1px solid rgba(153, 27, 27, 0.35);
	border-radius: 8px;
	padding: 24px;
	max-width: 460px;
	width: 100%;
	transform: translateY(10px);
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.modal-overlay.active .modal {
	transform: translateY(0);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.modal-title {
	font-size: 10px;
	font-weight: 600;
	color: var(--accent2);
	letter-spacing: 2px;
	font-family: 'Inter', sans-serif;
	text-transform: uppercase;
}

.modal-close {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 5px;
	cursor: pointer;
	color: var(--muted);
	transition: all 0.15s;
}

.modal-close:hover {
	color: var(--accent3);
	background: rgba(153, 27, 27, 0.1);
	border-color: var(--border-red);
}

.script-terminal {
	background: #060305;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 7px;
	overflow: hidden;
	margin-bottom: 10px;
}

.script-terminal-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.script-terminal-dots {
	display: flex;
	gap: 5px;
}

.script-terminal-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.script-terminal-label {
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	color: rgba(255, 255, 255, 0.18);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.script-terminal-copy {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	background: rgba(153, 27, 27, 0.12);
	border: 1px solid rgba(153, 27, 27, 0.25);
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: rgba(252, 165, 165, 0.8);
	cursor: pointer;
	transition: all 0.2s;
}

.script-terminal-copy:hover {
	background: rgba(153, 27, 27, 0.2);
	border-color: rgba(185, 28, 28, 0.4);
	color: var(--accent3);
}

.script-terminal-copy.copied {
	background: rgba(22, 163, 74, 0.1);
	border-color: rgba(22, 163, 74, 0.25);
	color: #4ade80;
}

.script-box {
	padding: 14px 16px;
	font-family: 'SF Mono', 'Monaco', 'Fira Code', 'Fira Mono', monospace;
	font-size: 11px;
	color: var(--accent3);
	line-height: 1.7;
	word-break: break-all;
	user-select: all;
	cursor: text;
}

.script-hint {
	text-align: center;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.13);
	letter-spacing: 0.3px;
	padding-top: 2px;
}

.share-link-box {
	display: flex;
	gap: 8px;
	align-items: center;
}

.share-link-input {
	flex: 1;
	background: #060305;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 11px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: var(--muted);
	outline: none;
	cursor: text;
}

.share-copy-btn {
	padding: 11px 16px;
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	font-size: 12px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}

.share-copy-btn:hover {
	background: rgba(153, 27, 27, 0.1);
	border-color: var(--border-red);
	color: var(--accent3);
}

.share-copy-btn.copied {
	background: #16a34a;
	border-color: #16a34a;
	color: white;
}

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 18px 24px;
	text-align: center;
	z-index: 10;
}

.footer-text {
	color: rgba(255, 255, 255, 0.18);
	font-size: 11px;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.5px;
	line-height: 1.9;
}

.footer-text a {
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-text a:hover {
	color: var(--accent3);
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.container > * {
	animation: fadeUp 0.55s ease-out forwards;
	opacity: 0;
}

.container > *:nth-child(1) { animation-delay: 0.08s; }
.container > *:nth-child(2) { animation-delay: 0.18s; }
.container > *:nth-child(3) { animation-delay: 0.28s; }
.container > *:nth-child(4) { animation-delay: 0.38s; }

@media (max-width: 480px) {
	.logo-text {
		font-size: 11px;
	}
}

.modal-games {
	max-height: 85vh;
	overflow-y: auto;
	scrollbar-width: none;
}

.modal-games::-webkit-scrollbar {
	display: none;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 20px;
}

@media (max-width: 400px) {
	.games-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.game-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	cursor: default;
}

.game-thumb-wrap {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--surface2);
	position: relative;
}

.game-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.game-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--surface2), rgba(153, 27, 27, 0.08));
	animation: shimmer 1.5s infinite;
}

.game-status-badge {
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1.5px solid rgba(0, 0, 0, 0.5);
}

@keyframes shimmer {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.game-name {
	font-size: 10px;
	color: var(--muted);
	font-family: 'Inter', sans-serif;
	text-align: center;
	letter-spacing: 0.1px;
}

.games-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 14px;
}

.games-divider::before,
.games-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}

.games-divider span {
	font-size: 9px;
	color: rgba(255, 255, 255, 0.18);
	font-family: 'Inter', sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
	font-weight: 600;
}

.game-status-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.2px;
}

.game-status-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	flex-shrink: 0;
}

.why-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 7px;
}

.why-card {
	background: var(--surface2);
	border: 1px solid var(--border);
	border-radius: 7px;
	padding: 13px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.why-icon {
	color: var(--accent2);
	opacity: 0.55;
}

.why-stat {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.why-num {
	font-size: 19px;
	font-weight: 700;
	color: var(--text);
	font-family: 'Inter', sans-serif;
	letter-spacing: -0.5px;
	line-height: 1;
}

.why-live {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 9px;
	color: rgba(74, 222, 128, 0.7);
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.live-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #4ade80;
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.7); }
}

.why-label {
	font-size: 10px;
	color: var(--muted);
	font-family: 'Inter', sans-serif;
	letter-spacing: 0.2px;
}
