

#home-view {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 24px 90px;
	overflow-y: auto;
}

.home-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 390px;
	animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.home-wordmark {
	margin-bottom: 26px;
}

@property --ring-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

.search-form {
	position: relative;
	width: 100%;
}

.search-input {
	width: 100%;
	padding: 14px 20px;
	font-family: inherit;
	font-size: 0.92rem;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 99px;
	outline: none;
	transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.search-input::placeholder {
	color: var(--text-faint);
}

.search-input:focus {
	background: var(--surface-2);
}


.search-form::before,
.search-wrap::before {
	content: "";
	position: absolute;
	inset: -2px;
	padding: 1.5px;
	
	background: conic-gradient(
		from var(--ring-angle),
		var(--accent-strong) 0deg,
		var(--accent) 12deg,
		var(--accent-line) 38deg,
		transparent 70deg,
		transparent 360deg
	);
	border-radius: 99px;
	opacity: 0.45;
	transition: opacity 0.3s ease, filter 0.3s ease;
	pointer-events: none;
	animation: ringSpin 3.4s linear infinite;
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}


.search-form:focus-within::before,
.search-wrap:focus-within::before {
	opacity: 1;
	filter: drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 14px var(--accent));
}


body.no-stars .search-form::before,
body.no-stars .search-wrap::before {
	animation: none;
}

@keyframes ringSpin {
	to {
		--ring-angle: 360deg;
	}
}


@supports not (background: conic-gradient(from var(--ring-angle), red, blue)) {
	.search-form::before,
	.search-wrap::before {
		background: var(--accent);
		animation: none;
	}
}

.search-hint {
	margin-top: 10px;
	font-size: 0.74rem;
	color: var(--text-faint);
	text-align: center;
}

.search-hint kbd {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	padding: 1px 5px;
	color: var(--text-dim);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 4px;
}

.quick-apps {
	width: 100%;
	margin-top: 34px;
}

.quick-apps-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}


.quick-apps-head h2 {
	display: flex;
	gap: 9px;
	align-items: center;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text);
}

.quick-apps-head h2::before {
	content: "";
	width: 3px;
	height: 13px;
	background: var(--accent);
	border-radius: 2px;
}

.quick-apps-edit {
	padding: 4px 11px;
	font-family: inherit;
	font-size: 0.75rem;
	color: var(--text-dim);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-xs);
	cursor: pointer;
	transition: all var(--ease);
}

.quick-apps-edit:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

.quick-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.quick-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 15px 6px 12px;
	background: var(--surface);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.quick-tile:hover {
	background: var(--surface-2);
	border-color: var(--border-strong);
	transform: translateY(-2px);
}

.quick-tile:focus-visible {
	outline: none;
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px var(--accent-soft);
}


.quick-tile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--text);
	background: var(--surface-2);
	border-radius: 11px;
	box-shadow: inset 0 1px 0 var(--border-strong);
	transition: background var(--ease), color var(--ease);
}

.quick-tile:hover .quick-tile-icon {
	color: var(--accent);
	background: var(--accent-soft);
}

.quick-tile-icon svg {
	width: 19px;
	height: 19px;
}

.quick-tile-icon img,
.quick-tile-icon .site-fallback {
	width: 20px;
	height: 20px;
	font-size: 0.7rem;
	background: none;
	border-radius: 5px;
	object-fit: cover;
}

.quick-tile-label {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.72rem;
	color: var(--text-dim);
	text-overflow: ellipsis;
	white-space: nowrap;
}


.quick-tile-key {
	position: absolute;
	top: 6px;
	left: 8px;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	color: var(--text-faint);
	opacity: 0;
	transition: opacity var(--ease), color var(--ease);
	pointer-events: none;
}

.quick-grid.hint .quick-tile-key,
.quick-tile:hover .quick-tile-key {
	opacity: 1;
}

.quick-tile:hover .quick-tile-key {
	color: var(--accent);
}

.quick-tile-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 19px;
	color: var(--text);
	background: var(--surface-3);
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	cursor: pointer;
}

.quick-grid.editing .quick-tile-remove {
	display: flex;
}

.quick-grid.editing .quick-tile {
	animation: jiggle 0.4s ease-in-out infinite alternate;
}

@keyframes jiggle {
	from {
		transform: rotate(-0.6deg);
	}
	to {
		transform: rotate(0.6deg);
	}
}



.site-footer {
	position: fixed;
	right: 22px;
	bottom: 16px;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	font-size: 0.76rem;
}

.site-footer button,
.site-footer a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: inherit;
	font-size: 0.76rem;
	color: var(--text-faint);
	background: none;
	border: none;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--ease);
}

.site-footer button:hover,
.site-footer a:hover {
	color: var(--text);
}

.site-footer .dot {
	color: var(--text-faint);
	opacity: 0.5;
}

.conn-status {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	font-size: 0.76rem;
	color: var(--text-faint);
}

.conn-status i {
	width: 6px;
	height: 6px;
	background: var(--text-faint);
	border-radius: 50%;
	transition: background var(--ease), box-shadow var(--ease);
}

.conn-status.live i {
	background: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.conn-status.live {
	color: var(--text-dim);
}

.site-footer svg {
	width: 13px;
	height: 13px;
}



.page {
	max-width: 1180px;
	height: 100vh;
	padding: 46px 34px 80px;
	margin: 0 auto;
	overflow-y: auto;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 12px;
	font-family: inherit;
	font-size: 0.82rem;
	color: var(--accent);
	background: none;
	border: none;
	cursor: pointer;
	transition: opacity var(--ease);
}

.back-link:hover {
	opacity: 0.75;
}

.page-sub {
	margin-top: 8px;
	font-size: 0.86rem;
	color: var(--text-dim);
}



.toolbar {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 26px 0 22px;
}

.toolbar .search-input {
	flex: 1;
}

.search-wrap {
	position: relative;
	flex: 1;
}

.search-wrap svg {
	position: absolute;
	top: 50%;
	left: 17px;
	z-index: 1;
	width: 15px;
	height: 15px;
	color: var(--text-faint);
	transform: translateY(-50%);
	pointer-events: none;
}

.search-wrap .search-input {
	padding-left: 43px;
}

.chip-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.84rem;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--ease);
}

.chip-toggle:hover {
	color: var(--text);
	border-color: var(--border-strong);
}

.chip-toggle.active {
	color: var(--accent);
	background: var(--accent-soft);
	border-color: var(--accent-line);
}

.chip-toggle svg {
	width: 15px;
	height: 15px;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 14px;
	padding-bottom: 40px;
}

.game-tile {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: transform var(--ease), border-color var(--ease);
}

.game-tile:hover {
	border-color: var(--accent-line);
	transform: translateY(-3px);
}

.game-tile:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.game-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 8px;
	background: linear-gradient(150deg, var(--surface-2), var(--surface));
}

.game-fallback span {
	font-family: var(--font-script);
	font-size: 2rem;
	color: var(--accent);
}

.game-fallback small {
	font-size: 0.68rem;
	color: var(--text-faint);
	text-align: center;
	line-height: 1.25;
}

.game-title {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 16px 8px 7px;
	font-size: 0.72rem;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
	opacity: 0;
	transition: opacity var(--ease);
}

.game-tile:hover .game-title {
	opacity: 1;
}

.game-fav {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	opacity: 0;
	cursor: pointer;
	transition: opacity var(--ease), color var(--ease);
}

.game-tile:hover .game-fav,
.game-fav.on {
	opacity: 1;
}

.game-fav.on {
	color: var(--accent);
}

.game-fav svg {
	width: 14px;
	height: 14px;
}

.empty-state {
	padding: 60px 20px;
	font-size: 0.88rem;
	color: var(--text-faint);
	text-align: center;
}

.site-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 12px;
	padding-bottom: 40px;
}

.site-card {
	display: flex;
	gap: 13px;
	align-items: center;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--ease);
}

.site-card:hover {
	background: var(--surface-2);
	border-color: var(--accent-line);
	transform: translateY(-2px);
}

.site-card:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-icon,
.site-fallback {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 8px;
}

.site-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--surface-3);
}

.site-info {
	min-width: 0;
}

.site-name {
	overflow: hidden;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-desc {
	overflow: hidden;
	font-size: 0.76rem;
	color: var(--text-faint);
	text-overflow: ellipsis;
	white-space: nowrap;
}

