/* ==========================================
   GLOBAL GAME UI — blocked teaser, tabs, toasts, section-complete
   ========================================== */

/* Blocked section teaser */
.blocked-hook {
	font-style: italic;
	color: var(--accent);
	margin: 4px 0 4px;
}

.blocked-xp {
	margin: 14px 0;
	padding: 12px;
	background: rgba(var(--accent-rgb), 0.05);
	border-radius: var(--radius);
}

.blocked-xp__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: var(--font-note);
}

.blocked-xp__bar {
	margin: 0 0 4px;
}

.blocked-xp__remaining {
	font-size: var(--font-xs);
	text-align: right;
	margin: 0;
}

/* —— Section Tabs —— */
.section-tabs-wrap {
	margin-top: 1.5rem;
}
.section-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--border);
	margin-bottom: 1.5rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
.section-tabs__btn {
	flex-shrink: 0;
	padding: 0.6rem 1.2rem;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-weight: 600;
	font-size: var(--font-text);
	color: var(--muted);
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
}
.section-tabs__btn:hover {
	color: var(--accent);
}
.section-tabs__btn.active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.section-tab-panel {
	display: none;
}
.section-tab-panel.active {
	display: grid;
	gap: var(--gap-3xl);
}
@media (max-width: 900px) {
	.section-tabs__btn {
		padding: 0.5rem 0.8rem;
		font-size: var(--font-small);
	}
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
#toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: var(--z-tooltip);
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.toast {
	padding: 12px 18px;
	border-radius: var(--radius);
	font-size: var(--font-sm);
	font-weight: 500;
	max-width: 340px;
	box-shadow: var(--shadow-toast);
	animation: toast-in 0.25s ease forwards;
	opacity: 1;
	transition: opacity 0.35s ease;
}

.toast--success {
	background: rgba(var(--success-rgb), 0.92);
	color: var(--on-accent);
	border: 1px solid rgba(var(--overlay-white-rgb), 0.15);
}

.toast--info {
	background: rgba(var(--accent-rgb), 0.92);
	color: var(--on-accent);
	border: 1px solid rgba(var(--overlay-white-rgb), 0.15);
}

.toast--hide {
	opacity: 0;
}

@keyframes toast-in {
	from { transform: translateY(16px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/*Dead-end recovery block (shown when section is complete)*/
.section-complete {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 12px;
	padding: 14px 16px;
	background: rgba(var(--accent-rgb), 0.07);
	border: 1px solid rgba(var(--accent-rgb), 0.2);
	border-radius: var(--radius);
}

.section-complete__check {
	font-size: var(--font-160);
	flex-shrink: 0;
}

.section-complete__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.section-complete__msg {
	margin: 0;
	font-size: var(--font-small);
	color: var(--muted);
}

@media (max-width: 900px) {
	#toast-container {
		bottom: 16px;
		right: 12px;
		left: 12px;
		align-items: flex-end;
	}
	.toast {
		max-width: 100%;
	}
}
