/**
 * Mobile app-style bottom tab bar (logged-in users).
 */

.wco-mobile-tabbar {
	display: none;
}

@media (max-width: 768px) {
	.wco-mobile-tabbar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10008;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: linear-gradient(180deg, rgba(28, 22, 48, 0.96) 0%, rgba(18, 10, 35, 0.98) 100%);
		border-top: 1px solid rgba(139, 92, 246, 0.22);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	.wco-tabbar-inner {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		align-items: flex-end;
		min-height: 56px;
		max-width: 100%;
		margin: 0 auto;
		padding: 0 2px;
	}

	.wco-tabbar-link {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-end;
		gap: 2px;
		min-height: 52px;
		padding: 6px 2px 8px;
		color: rgba(255, 255, 255, 0.55);
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
		transition: color 0.18s ease;
	}

	.wco-tabbar-link:active {
		opacity: 0.85;
	}

	.wco-tabbar-link.is-active {
		color: #c4b5fd;
	}

	.wco-tabbar-icon-wrap {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 26px;
		height: 26px;
	}

	.wco-tabbar-icon {
		width: 22px;
		height: 22px;
		object-fit: contain;
		opacity: 0.88;
		transition: transform 0.18s ease, opacity 0.18s ease;
	}

	.wco-tabbar-icon--token {
		width: 24px;
		height: 24px;
		border-radius: 50%;
	}

	.wco-tabbar-link.is-active .wco-tabbar-icon {
		opacity: 1;
		transform: scale(1.06);
	}

	.wco-tabbar-label {
		font-size: 9px;
		font-weight: 600;
		line-height: 1.1;
		letter-spacing: 0;
		white-space: nowrap;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.wco-tabbar-link--games {
		justify-content: flex-end;
		padding-bottom: 4px;
	}

	.wco-tabbar-games-fab {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 50px;
		height: 50px;
		margin-top: -20px;
		margin-bottom: 2px;
		border-radius: 50%;
		background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 55%, #5b21b6 100%);
		border: 2px solid rgba(198, 255, 129, 0.35);
		box-shadow:
			0 6px 18px rgba(109, 40, 217, 0.45),
			0 0 0 1px rgba(255, 255, 255, 0.06) inset;
		transition: transform 0.18s ease, box-shadow 0.18s ease;
	}

	.wco-tabbar-link--games.is-active .wco-tabbar-games-fab {
		border-color: rgba(198, 255, 129, 0.65);
		box-shadow:
			0 8px 22px rgba(124, 58, 237, 0.55),
			0 0 20px rgba(198, 255, 129, 0.2);
	}

	.wco-tabbar-link--games:active .wco-tabbar-games-fab {
		transform: scale(0.96);
	}

	.wco-tabbar-games-fab-img {
		width: 26px;
		height: 26px;
		object-fit: contain;
	}

	html.wco-has-tabbar #root {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}

	html.wco-has-tabbar .site-footer {
		margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
	}
}
