:root {
	--bg-main: #030712;
	--bg-panel: #020617;
	--bg-card: #020817;
	--accent: #22d3ee;
	--accent-soft: rgba(34, 211, 238, 0.3);
	--accent-strong: rgba(56, 189, 248, 0.9);
	--accent-warn: #facc15;
	--accent-bad: #fb7185;
	--text-main: #e5e7eb;
	--text-soft: #9ca3af;
	--border-soft: #1f2937;
	--shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
	--radius-card: 1.125rem;
	--transition-fast: 0.18s ease-out;
	--font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	--font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
		Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	--scale: 1;
}

@media (min-width: 1200px) {
	:root {
		--scale: 1.5;
	}
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-main);
	font-size: calc(16px * var(--scale));
	background: radial-gradient(circle at top, #0b1120 0, #020617 40%, #020617 100%);
	color: var(--text-main);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
	-webkit-tap-highlight-color: transparent;
}

/* Subtle grid / starfield background */
.background-grid::before,
.background-grid::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: -2;
}

.background-grid::before {
	background-image: linear-gradient(
			rgba(15, 23, 42, 0.28) 1px,
			transparent 1px
		),
		linear-gradient(90deg, rgba(15, 23, 42, 0.28) 1px, transparent 1px);
	background-size: 60px 60px;
	mix-blend-mode: soft-light;
	opacity: 0.35;
}

.background-grid::after {
	background-image: radial-gradient(
		circle at 50% 0,
		rgba(34, 211, 238, 0.15),
		transparent 55%
	);
	opacity: 0.8;
}

header {
	padding: 1.75rem 1.375rem 0.625rem;
}

.shell {
	max-width: 1320px;
	margin: 0 auto;
	padding-inline: 0.25rem;
}

.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.brand-badge {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: radial-gradient(circle at 30% 30%, #22d3ee, #0ea5e9 45%, #020617 80%);
	box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
	position: relative;
	overflow: hidden;
}

.brand-badge::after {
	content: "";
	position: absolute;
	inset: 0.125rem;
	border-radius: inherit;
	border: 1px solid rgba(15, 23, 42, 0.9);
	box-shadow: inset 0 0 12px rgba(15, 23, 42, 0.9);
}

.brand-text h1 {
	font-size: 1.6rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #f9fafb;
}

.brand-text span {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--text-soft);
}

.top-meta {
	text-align: right;
	font-size: 0.9rem;
	color: var(--text-soft);
	font-family: var(--font-mono);
}

.top-meta span.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	border: 1px solid rgba(34, 211, 238, 0.4);
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.35), transparent);
	box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

.top-meta span.status-pill i {
	font-size: 0.55rem;
	color: #bbf7d0;
}

main {
	padding: 0.875rem 1.375rem 2.25rem;
}

.grid-main {
	display: grid;
	/* single-column layout: right-side panel will stack under the services */
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.panel {
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.12), transparent 55%),
		linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
	border-radius: 1.25rem;
	border: 1px solid rgba(15, 23, 42, 0.95);
	box-shadow: var(--shadow-soft);
	padding: 1.25rem 1.25rem 1.125rem;
	position: relative;
	overflow: hidden;
}

.panel::before {
	content: "";
	position: absolute;
	inset: 0.0625rem;
	border-radius: inherit;
	border: 1px solid rgba(34, 211, 238, 0.25);
	opacity: 0.26;
	pointer-events: none;
}

.panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.625rem;
}

.panel-title {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.85rem;
	color: var(--text-soft);
	display: flex;
	align-items: center;
	gap: 8px;
}

.panel-title i {
	color: var(--accent);
	font-size: 0.9rem;
}

.panel-subtitle {
	font-size: 0.85rem;
	color: var(--text-soft);
	font-family: var(--font-mono);
}

.hero-copy {
	margin-top: 0.375rem;
	margin-bottom: 0.75rem;
}

.hero-copy h2 {
	font-size: 1.35rem;
	margin-bottom: 0.25rem;
}

.hero-copy p {
	font-size: 1rem;
	color: var(--text-soft);
}

.hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	margin-top: 0.375rem;
}

.hero-tag {
	border-radius: 999px;
	padding: 0.375rem 0.75rem;
	font-size: 0.8rem;
	border: 1px solid rgba(148, 163, 184, 0.5);
	color: #e5e7eb;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.status-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
	margin-top: 0.25rem;
	font-size: 0.9rem;
	font-family: var(--font-mono);
	color: var(--text-soft);
}

.status-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.5625rem;
	border-radius: 999px;
	border: 1px solid rgba(51, 65, 85, 0.9);
	background: rgba(15, 23, 42, 0.9);
}

/* Distinct overall status banner so it doesn't look like group chips */
#status-chip-all {
	width: 100%;
	justify-content: flex-start;
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.22), transparent 70%), rgba(15, 23, 42, 0.9);
	border-color: rgba(34, 211, 238, 0.6);
	box-shadow: inset 0 0 16px rgba(34, 211, 238, 0.12), 0 6px 18px rgba(2, 6, 23, 0.6);
	padding: 0.75rem 1rem;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	border-radius: 0.75rem;
}

#status-chip-all .group-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.status-chip span.dot {
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.status-chip.offline span.dot {
	background: #fb7185;
	box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

.status-chip.degraded span.dot {
	background: #facc15;
	box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}

.status-chip.online span.dot {
	background: #22c55e !important;
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.9) !important;
}

.status-chip strong {
	color: #e5e7eb;
	font-weight: 500;
}

.status-summary {
	margin-top: 2px;
	font-size: 0.8rem;
	color: var(--text-soft);
}

.status-summary span {
	color: var(--accent);
}

.starship-meta {
	margin-top: 0.625rem;
	border-top: 1px solid rgba(30, 64, 175, 0.65);
	padding-top: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	font-size: 0.78rem;
	color: var(--text-soft);
	justify-content: space-between;
	font-family: var(--font-mono);
}

.starship-meta span.label {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #9ca3af;
	font-size: 0.7rem;
}

.starship-meta span.value {
	color: #e5e7eb;
}

.starship-meta-block {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

/* Service cards */

.service-grid {
	display: grid;
	gap: 0.875rem;
	margin-top: 0.5rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.service-card {
	position: relative;
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.18), transparent 55%),
		linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
	border-radius: var(--radius-card);
	padding: 0.875rem 0.875rem 0.75rem;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(30, 64, 175, 0.7);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
	cursor: pointer;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast),
		border-color var(--transition-fast), background var(--transition-fast);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	touch-action: manipulation;
}

.service-card::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	border: 1px solid rgba(56, 189, 248, 0.25);
	opacity: 0;
	transition: opacity var(--transition-fast);
	pointer-events: none;
	z-index: 0;
}

.service-card:hover {
	transform: translateY(-3px) translateZ(0);
	box-shadow: 0 20px 40px rgba(15, 23, 42, 1),
		0 0 25px rgba(56, 189, 248, 0.4);
	border-color: rgba(56, 189, 248, 0.9);
	background: radial-gradient(circle at 80% 0, rgba(59, 130, 246, 0.4), transparent 55%),
		radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.32), transparent 60%),
		linear-gradient(140deg, #020617, #020617);
}

.service-card:hover::before {
	opacity: 0.5;
}

.service-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.375rem;
	/* keep header content above the decorative border */
	position: relative;
	z-index: 2;
	/* small right padding so status pill never touches rounded corner */
	padding-right: 0.375rem;
}

.service-main {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.service-icon {
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 999px;
	border: 1px solid rgba(56, 189, 248, 0.65);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	color: var(--accent-strong);
	background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.8), #020617 65%);
	box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.service-text h3 {
	font-size: 1.05rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.service-text span {
	font-size: 0.8rem;
	color: var(--text-soft);
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.service-state {
	font-size: 0.8rem;
	font-family: var(--font-mono);
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.5625rem;
	border-radius: 999px;
	border: 1px solid rgba(30, 64, 175, 0.9);
	background: rgba(15, 23, 42, 0.9);
	color: var(--text-soft);
}

/* Prevent the state pill from growing past the header or pushing outside the card */
.service-state {
	/* don't let the pill shrink the title, and keep it on one line */
	flex: 0 0 auto;
	max-width: 46%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
}

.service-state span.dot {
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 999px;
	background: #64748b;
}

.service-state.online span.dot {
	background: #22c55e;
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.service-state.offline span.dot {
	background: #fb7185;
	box-shadow: 0 0 8px rgba(248, 113, 113, 0.9);
}

.service-body {
	font-size: 0.9rem;
	color: var(--text-soft);
	margin-top: 0.125rem;
	/* Make the body grow so the meta/address can be pushed to the bottom */
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.service-body p {
	margin-bottom: 0.25rem;
}

.service-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	/* push to bottom of the .service-body */
	margin-top: auto;
	font-size: 0.85rem;
	font-family: var(--font-mono);
}

.service-meta span.badge {
	padding: 0.1875rem 0.4375rem;
	border-radius: 999px;
	border: 1px solid rgba(55, 65, 81, 0.9);
	color: #9ca3af;
}

.service-meta span.address {
	color: var(--accent);
}

.instructions-panel {
	margin-top: 0.75rem;
	padding: 0.875rem 0.875rem 0.75rem;
	border-radius: 1rem;
	border: 1px solid rgba(31, 41, 55, 0.9);
	background: radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.25), transparent 55%),
		rgba(15, 23, 42, 0.98);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 1);
}

.log-guidelines {
	margin-top: 0.5rem;
}

.log-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0;
}

.log-entry {
	position: relative;
	padding:  1rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(37, 99, 235, 0.45);
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.18), transparent 55%),
		linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
	overflow: hidden;
}

.log-entry::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	border: 1px solid rgba(56, 189, 248, 0.22);
	opacity: 0.6;
	pointer-events: none;
}

.log-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	padding: 0;
}

.log-entry-meta time {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--accent);
}

.log-entry-author {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--text-soft);
}

.log-entry p {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--text-main);
}

.table-wrapper {
	margin-top: 0.75rem;
	border-radius: 1rem;
	border: 1px solid rgba(30, 58, 138, 0.65);
	background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.95);
	overflow: hidden;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	color: var(--text-main);
}

.data-table thead {
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.2), transparent 65%);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--text-soft);
}

.data-table th,
.data-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba(30, 64, 175, 0.35);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
	border-bottom: none;
}

.data-table tbody tr:hover {
	background: radial-gradient(circle at 80% 0, rgba(56, 189, 248, 0.12), transparent 65%);
}

.data-table tbody th {
	font-family: var(--font-mono);
	color: var(--accent);
	font-weight: 500;
	text-align: left;
}

.data-table tbody td {
	color: var(--text-soft);
	line-height: 1.5;
}

.player-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.player-dot {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 999px;
	background: #475569;
	box-shadow: 0 0 0 rgba(71, 85, 105, 0.4);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

[data-player-handle].player-online .player-dot {
	background: #22c55e;
	box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

[data-player-handle].player-offline .player-dot {
	background: #64748b;
	box-shadow: 0 0 0 rgba(15, 23, 42, 0.2);
}

[data-player-handle] .player-label {
	color: inherit;
}

@media (max-width: 640px) {
	.data-table .col-note {
		display: none;
	}

	.data-table th,
	.data-table td {
		padding: 0.625rem 0.75rem;
	}
}

.instructions-panel h3 {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--text-soft);
	margin-bottom: 0.25rem;
}

.instructions-panel p {
	font-size: 0.9rem;
	color: #d1d5db;
	margin-bottom: 0.1875rem;
}

.instructions-panel ul {
	list-style: none;
	margin-top: 0.25rem;
	margin-left: 0;
	display: grid;
	gap: 0.25rem;
}

.instructions-panel li {
	font-size: 0.88rem;
	color: var(--text-soft);
	display: flex;
	gap: 0.375rem;
	align-items: flex-start;
}

.instructions-panel li::before {
	content: "▸";
	color: var(--accent);
	font-size: 0.7rem;
	margin-top: 0.0625rem;
}

footer {
	padding: 0.75rem 1.375rem 1.25rem;
	font-size: 0.85rem;
	color: var(--text-soft);
	text-align: center;
	border-top: 1px solid rgba(15, 23, 42, 0.95);
	background: radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.18), transparent 50%);
}

footer span {
	font-family: var(--font-mono);
	color: var(--accent);
}

/* Responsive */

@media (max-width: 1024px) {
	.grid-main {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 880px) {
	.panel {
		padding: 1.125rem 1rem 1rem;
	}

	.top-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.top-meta {
		text-align: left;
	}

	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.brand-text h1 {
		font-size: 1.5rem;
	}

	.brand-text span {
		font-size: 0.9rem;
	}
}

@media (max-width: 720px) {
	.service-grid {
		grid-template-columns: 1fr;
	}
}

@keyframes pulseSoft {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-1px);
	}
}

