/* CSS for Gamepad Tier List Builder — styled to match Compare page */

.tier-builder-container {
	max-width: 100%;
	margin: 0 auto;
	padding: 10px 0 20px 0;
	font-family: inherit;
	color: #ffffff;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

/* Header & Title Input */
.tier-header-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.tier-title-input {
	width: 100%;
	max-width: 700px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 2.2em;
	font-weight: 700;
	font-family: Pedanto, system-ui, -apple-system, sans-serif;
	color: #ffffff;
	text-align: left;
	padding: 8px 5px;
	outline: none;
	transition: border-bottom-color 0.2s ease, text-shadow 0.2s ease;
}

.tier-brand-badge {
	display: none;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 14px;
	font-weight: 600;
	font-family: system-ui, -apple-system, sans-serif;
	white-space: nowrap;
	flex-shrink: 0;
	user-select: none;
}
.tier-brand-badge img {
	height: 18px;
	width: auto;
	opacity: 0.85;
	vertical-align: middle;
	transition: opacity 0.15s ease;
}
.tier-brand-badge a:hover img {
	opacity: 1;
}
.tier-builder-container.is-fullscreen .tier-brand-badge,
.saving-screenshot .tier-brand-badge {
	display: flex;
}

.tier-title-input:hover {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.tier-title-input:focus {
	border-bottom-color: var(--link002);
	text-shadow: 0 0 10px rgba(94, 176, 213, 0.3);
}

.tier-title-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.tier-title-input:read-only,
.tier-title-input:disabled {
	pointer-events: none;
	border-bottom-color: transparent !important;
	user-select: none;
}


/* ─── Controls Bar ─── */
.tier-controls-row {
	display: grid;
	grid-template-columns: 280px auto auto auto auto;
	gap: 10px;
	align-items: center;
	overflow: visible !important;
}

/* ─── SumoSelect Overrides (matching Compare page) ─── */
.tier-controls-row .padSelection {
	min-width: 0;
	overflow: visible !important;
}
.tier-controls-row .padSelection .SumoSelect {
	width: 100%;
	font-size: 13px;
}
.tier-controls-row .padSelection .SumoSelect > .CaptionCont,
.tier-controls-row .padSelection .SumoSelect.open .search-txt {
	height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(113, 154, 255, 0.16);
	background: rgba(255, 255, 255, 0.04);
	color: #dce7f2;
	box-shadow: none;
}
.tier-controls-row .padSelection .SumoSelect > .CaptionCont {
	padding: 0 36px 0 12px;
	display: flex;
	align-items: center;
}
.tier-controls-row .padSelection .SumoSelect > .CaptionCont > span {
	color: #dce7f2;
	line-height: 1.2;
}
.tier-controls-row .padSelection .SumoSelect > .CaptionCont > span.placeholder {
	color: #8da2b9;
	font-style: normal;
}
.tier-controls-row .padSelection .SumoSelect > .CaptionCont > label {
	width: 34px;
}
.tier-controls-row .padSelection .SumoSelect > .CaptionCont > label > i {
	background-image: none;
	border: solid #8da2b9;
	border-width: 0 1.5px 1.5px 0;
	display: inline-block;
	width: 7px;
	height: 7px;
	padding: 0;
	transform: rotate(45deg);
	margin-top: -5px;
	right: 12px;
	top: 50%;
}
.tier-controls-row .padSelection .SumoSelect:hover > .CaptionCont,
.tier-controls-row .padSelection .SumoSelect:focus > .CaptionCont,
.tier-controls-row .padSelection .SumoSelect.open > .CaptionCont {
	border-color: rgba(113, 154, 255, 0.45);
	background: rgba(255, 255, 255, 0.055);
	box-shadow: 0 0 0 3px rgba(113, 154, 255, 0.1);
}
.tier-controls-row .padSelection .SumoSelect.open > .CaptionCont > label > i {
	transform: rotate(225deg);
	margin-top: -1px;
}
.tier-controls-row .padSelection .SumoSelect.open > .optWrapper {
	bottom: calc(100% + 8px) !important;
	top: auto !important;
	margin-bottom: 0 !important;
	border-radius: 12px;
	border: 1px solid rgba(113, 154, 255, 0.18);
	background: rgba(10, 18, 29, 0.98);
	box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.42);
	overflow: hidden;
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options {
	max-height: 340px;
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt {
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: #dce7f2;
	background: transparent;
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt:last-child {
	border-bottom: 0;
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt:hover,
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt.selected {
	background: rgba(93, 140, 255, 0.16);
	color: #ffffff;
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt.disabled {
	background: transparent;
	opacity: 0.45;
}
.tier-controls-row .padSelection .SumoSelect .search-txt {
	height: 36px;
	padding: 0 12px;
	color: #ffffff;
	background: rgba(12, 21, 33, 0.98);
	border: 0;
}
.tier-controls-row .padSelection .SumoSelect .search-txt::placeholder {
	color: #8da2b9;
}
.tier-controls-row .padSelection .SumoSelect .no-match {
	padding: 12px;
	color: #8da2b9;
}

/* ─── Icon Buttons (36×36, matching Compare page) ─── */
.tier-icon-btn {
	height: 36px;
	width: 36px;
	border: 0;
	border-radius: 10px;
	padding: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(113, 154, 255, 0.18);
	color: #dce7f2;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tier-icon-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(113, 154, 255, 0.35);
	color: #ffffff;
}
.tier-icon-btn.is-active {
	background: rgba(93, 140, 255, 0.18);
	border-color: rgba(113, 154, 255, 0.45);
	color: #ffffff;
}
.tier-icon-btn-danger {
	color: #ff9a9a;
}
.tier-icon-btn-danger:hover {
	color: #ffffff;
	background: rgba(255, 91, 91, 0.15);
	border-color: rgba(255, 91, 91, 0.3);
}

/* ─── Toggles row (for checkboxes if needed) ─── */
.tier-controls-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 4px 2px 0;
}

/* ─── Tier List Board ─── */
.tier-list-board {
	display: flex;
	flex-direction: column;
	background: rgba(14, 22, 31, 0.94);
	border: 1px solid rgba(113, 154, 255, 0.16);
	border-radius: 18px;
	overflow: visible;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tier-row {
	display: flex;
	min-height: 96px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Round first and last row corners since overflow is visible */
.tier-row:first-child .tier-label {
	border-top-left-radius: 17px;
}
.tier-row:first-child .tier-dropzone {
	border-top-right-radius: 17px;
}
.tier-row:last-child .tier-label {
	border-bottom-left-radius: 17px;
}
.tier-row:last-child .tier-dropzone {
	border-bottom-right-radius: 17px;
}

.tier-row:last-child {
	border-bottom: none;
}

/* Row Headers */
.tier-label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	min-width: 90px;
	font-size: 26px;
	font-weight: 800;
	color: #1a1a1a;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
	user-select: none;
}

.tier-label-s { background-color: #5af18c; }
.tier-label-a { background-color: #9bf274; }
.tier-label-b { background-color: #d2f26f; }
.tier-label-c { background-color: #f8ec68; }
.tier-label-d { background-color: #f5ba63; }
.tier-label-e { background-color: #f08b5e; }
.tier-label-f { background-color: #ea5858; }

/* Dropzones */
.tier-dropzone {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	gap: 8px;
	padding: 10px 15px;
	background: rgba(255, 255, 255, 0.01);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	min-width: 0;
}

.tier-dropzone.dragover {
	background: rgba(93, 140, 255, 0.06);
	box-shadow: inset 0 0 12px rgba(93, 140, 255, 0.15);
}

/* ─── Gamepad Tiles ─── */
.gamepad-card {
	width: 80px;
	height: 80px;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 1.5px solid transparent;
	border-radius: 20px;
	cursor: grab;
	position: relative;
	user-select: none;
	box-sizing: border-box;
	flex-shrink: 0;
	transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.15s ease, border-color 0.15s ease;
	backface-visibility: hidden;
	transform-style: preserve-3d;
	will-change: transform;
}

.gamepad-card:hover {
	transform: scale(1.15);
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.15);
	z-index: 10;
}

.gamepad-card:active {
	cursor: grabbing;
}

.gamepad-card img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	pointer-events: none;
}

/* Selected state (touch / mobile) */
.gamepad-card.is-selected {
	border-color: rgba(113, 154, 255, 0.45);
	background: rgba(113, 154, 255, 0.12);
	box-shadow: 0 0 15px rgba(113, 154, 255, 0.25);
	transform: scale(1.08);
	animation: gamepadPulse 1.6s infinite alternate ease-in-out;
}

@keyframes gamepadPulse {
	0% {
		background: rgba(113, 154, 255, 0.08);
		box-shadow: 0 0 8px rgba(113, 154, 255, 0.15);
	}
	100% {
		background: rgba(113, 154, 255, 0.22);
		box-shadow: 0 0 18px rgba(113, 154, 255, 0.4);
	}
}

/* Global Floating Tooltip (prevents overflow/clipping issues) */
.tier-global-tooltip {
	position: fixed;
	background: #000000;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
	box-shadow: 0 3px 8px rgba(0,0,0,0.5);
	border: 1px solid rgba(255,255,255,0.1);
	z-index: 10000000;
}

/* Tooltip positioned above the card */
.tier-global-tooltip.pos-above {
	transform: translateY(-100%) translateY(-6px) scale(0.85);
	transform-origin: bottom center;
}
.tier-global-tooltip.pos-above.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(-100%) translateY(-6px) scale(1);
}

/* Tooltip positioned below the card */
.tier-global-tooltip.pos-below {
	transform: translateY(6px) scale(0.85);
	transform-origin: top center;
}
.tier-global-tooltip.pos-below.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(6px) scale(1);
}

/* Gamepad Info/Link Button */
.gamepad-card-link {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0d1622;
	border: 1px solid rgba(113, 154, 255, 0.25);
	color: #aebfd1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 20;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gamepad-card-link svg {
	width: 10px;
	height: 10px;
	stroke: currentColor;
	stroke-width: 2.5;
}

.gamepad-card-link:hover {
	background: #5d8cff;
	border-color: #5d8cff;
	color: #ffffff;
	transform: scale(1.12);
}

/* Show link button on hover or when card is selected */
.gamepad-card:hover .gamepad-card-link,
.gamepad-card.is-selected .gamepad-card-link {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Hide link button during dragging or in screenshots */
.gamepad-card.dragging .gamepad-card-link,
.saving-screenshot .gamepad-card-link {
	display: none !important;
}

/* Mobile size adjustment */
@media (max-width: 720px) {
	.gamepad-card-link {
		width: 16px;
		height: 16px;
		top: -4px;
		right: -4px;
	}
	.gamepad-card-link svg {
		width: 8px;
		height: 8px;
	}
}

/* ─── Pool Section ─── */
.tier-pool-section {
	background: rgba(14, 22, 31, 0.94);
	border: 1px solid rgba(113, 154, 255, 0.16);
	border-radius: 18px;
	padding: 14px 16px;
	overflow: visible !important;
}

.tier-pool-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 15px;
	overflow: visible !important;
}

.tier-pool-header h2 {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	color: #aebfd1;
}

.tier-pool-dropzone {
	height: 108px;
	background: rgba(0, 0, 0, 0.15);
	border: 1px dashed rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	padding: 10px 15px;
	overflow-x: auto;
	overflow-y: hidden;
	transition: all 0.2s ease;
	scrollbar-width: thin;
	scrollbar-color: rgba(113, 154, 255, 0.45) transparent;
}
.tier-pool-dropzone::-webkit-scrollbar {
	height: 6px;
}
.tier-pool-dropzone::-webkit-scrollbar-track {
	background: transparent;
	margin: 5px 0;
}
.tier-pool-dropzone::-webkit-scrollbar-thumb {
	background: rgba(113, 154, 255, 0.45);
	border-radius: 999px;
}

.tier-pool-dropzone.dragover {
	border-color: rgba(93, 140, 255, 0.4);
	background: rgba(93, 140, 255, 0.04);
}

.tier-pool-dropzone:empty::after {
	content: attr(data-placeholder);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 70px;
	color: rgba(255, 255, 255, 0.25);
	font-size: 14px;
	font-style: italic;
}

/* ─── Toast Notifications ─── */
.tier-toast {
	position: fixed;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: rgba(17, 22, 34, 0.95);
	border: 1px solid var(--link002);
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 10px 25px rgba(94, 176, 213, 0.25);
	z-index: 9999999;
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.tier-toast.is-show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* ─── Floating Webcam Overlay ─── */
.webcam-container {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 260px;
	aspect-ratio: 16/9;
	background: #000000;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
	z-index: 10000000;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	cursor: move;
}

.webcam-container:hover {
	border-color: var(--link002);
	box-shadow: 0 12px 35px rgba(94, 176, 213, 0.3);
}

.webcam-container video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

/* Webcam Hover controls */
.webcam-handle {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 28px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
	opacity: 0;
	transition: opacity 0.2s ease;
	display: flex;
	justify-content: flex-end;
	padding: 4px 8px;
	box-sizing: border-box;
}

.webcam-container:hover .webcam-handle {
	opacity: 1;
}

.webcam-close-btn {
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.webcam-close-btn:hover {
	color: #ea5858;
}

/* Webcam maximized state */
.webcam-container.webcam-maximized {
	position: fixed;
	top: 50%;
	left: 50%;
	bottom: auto;
	right: auto;
	width: 60vw;
	max-width: 800px;
	aspect-ratio: 16/9;
	transform: translate(-50%, -50%);
	border: 4px solid #ffffff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
	z-index: 10000001;
	cursor: pointer;
}

/* ─── Fullscreen Mode ─── */
.tier-builder-container.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 9000;
	background: #0a121d;
	padding: 16px 20px;
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 12px;
	border-radius: 0;
	margin: 0;
	max-width: none;
}
html:has(body.gpdl-tier-fs) {
	scrollbar-gutter: auto !important;
	overflow: hidden !important;
}
body.gpdl-tier-fs {
	overflow: hidden !important;
}
/* In fullscreen the board should scroll internally */
.tier-builder-container.is-fullscreen .tier-list-board {
	min-height: 0;
	flex: 1;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(113, 154, 255, 0.45) transparent;
}
.tier-builder-container.is-fullscreen .tier-list-board::-webkit-scrollbar {
	width: 6px;
}
.tier-builder-container.is-fullscreen .tier-list-board::-webkit-scrollbar-track {
	background: transparent;
	margin: 10px 0;
}
.tier-builder-container.is-fullscreen .tier-list-board::-webkit-scrollbar-thumb {
	background: rgba(113, 154, 255, 0.45);
	border-radius: 999px;
}
/* Pool gets a fixed area in fullscreen */
.tier-builder-container.is-fullscreen .tier-pool-section {
	max-height: 180px;
	overflow: visible !important;
}
.tier-builder-container.is-fullscreen .tier-pool-dropzone {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scrollbar-width: thin;
	scrollbar-color: rgba(113, 154, 255, 0.45) transparent;
}
.tier-builder-container.is-fullscreen .tier-pool-dropzone::-webkit-scrollbar {
	height: 6px;
}
.tier-builder-container.is-fullscreen .tier-pool-dropzone::-webkit-scrollbar-track {
	background: transparent;
	margin: 5px 0;
}
.tier-builder-container.is-fullscreen .tier-pool-dropzone::-webkit-scrollbar-thumb {
	background: rgba(113, 154, 255, 0.45);
	border-radius: 999px;
}
/* Hide breadcrumbs inside tier container in fullscreen */
.tier-builder-container.is-fullscreen .breadcrumbs2 {
	display: none;
}

/* Fullscreen element scaling overrides to avoid scrollbars on most displays */
.tier-builder-container.is-fullscreen {
	padding: 12px 16px;
	gap: 10px;
}
.tier-builder-container.is-fullscreen .tier-row {
	flex: 1 0 auto;
	min-height: 88px;
}
.tier-builder-container.is-fullscreen .tier-dropzone {
	padding: 4px 12px;
}
.tier-builder-container.is-fullscreen .tier-pool-section {
	padding: 10px 14px;
}
.tier-builder-container.is-fullscreen .tier-pool-header {
	margin-bottom: 8px;
}
.tier-builder-container.is-fullscreen .tier-pool-dropzone {
	height: 106px !important;
	min-height: 106px !important;
	max-height: 106px !important;
	padding: 8px 12px !important;
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
	/* Hide brand logo on mobile completely (both fullscreen and screenshot) */
	.tier-builder-container.is-fullscreen .tier-brand-badge,
	.saving-screenshot .tier-brand-badge,
	.tier-brand-badge {
		display: none !important;
	}

	/* Title input styling */
	.tier-title-input {
		font-size: 1.4em !important;
		padding: 4px 0 !important;
	}

	/* Make navigation controls row fit in a single line */
	.tier-controls-row {
		display: flex !important;
		flex-direction: row !important;
		gap: 6px !important;
		align-items: center !important;
		width: 100% !important;
		grid-template-columns: none !important;
	}

	.tier-controls-row .padSelection {
		flex: 1 !important;
		min-width: 0 !important;
		grid-column: auto !important;
	}

	.tier-controls-row .tier-icon-btn {
		width: 34px !important;
		height: 34px !important;
		flex-shrink: 0 !important;
		margin: 0 !important;
		grid-row: auto !important;
		grid-column: auto !important;
	}

	/* SumoSelect height adjustments for mobile single-line controls */
	.tier-controls-row .padSelection .SumoSelect > .CaptionCont,
	.tier-controls-row .padSelection .SumoSelect.open .search-txt {
		height: 34px !important;
		border-radius: 8px !important;
	}

	.tier-list-board {
		border-radius: 14px;
	}
	.tier-pool-section {
		border-radius: 14px;
		padding: 12px;
	}
	.tier-label {
		width: 52px !important;
		min-width: 52px !important;
		font-size: 18px !important;
	}
	.gamepad-card {
		width: 52px !important;
		height: 52px !important;
	}
	.tier-row {
		min-height: 56px !important;
	}

	/* Mobile fullscreen optimizations */
	.tier-builder-container.is-fullscreen {
		padding: 8px 10px !important;
		gap: 8px !important;
	}
	.tier-builder-container.is-fullscreen .tier-row {
		flex: 1 0 auto !important;
		min-height: 56px !important;
	}
	.tier-builder-container.is-fullscreen .tier-dropzone {
		padding: 2px 4px !important;
	}
	.tier-builder-container.is-fullscreen .tier-pool-section {
		padding: 8px 10px !important;
		max-height: 156px !important;
	}
	.tier-builder-container.is-fullscreen .tier-pool-header {
		margin-bottom: 6px !important;
	}
	.tier-builder-container.is-fullscreen .tier-pool-dropzone {
		height: 68px !important;
		min-height: 68px !important;
		max-height: 68px !important;
		padding: 6px 8px !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
	}
}

/* ─── Screenshot rendering overrides (fixes html2canvas border transparency bugs) ─── */
.tier-builder-container.saving-screenshot {
	position: relative !important;
	height: auto !important;
	min-height: auto !important;
	overflow: visible !important;
	display: flex !important;
	flex-direction: column !important;
	background: #0a121d !important;
	border: none !important;
	box-shadow: none !important;
}
.tier-builder-container.saving-screenshot .tier-list-board {
	overflow: visible !important;
	overflow-y: visible !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	border: 1px solid #232a35 !important;
	background: #0e161f !important;
	box-shadow: none !important;
}
.saving-screenshot .tier-row {
	border-bottom: 1px solid #1a2330 !important;
}
.saving-screenshot .tier-row:last-child {
	border-bottom: none !important;
}
.saving-screenshot .gamepad-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
.saving-screenshot .gamepad-card img {
	filter: none !important;
}

/* ─── Request Gamepad Modal ─── */
.tier-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(4, 7, 12, 0.75);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tier-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.tier-modal-content {
	background: #0e161f;
	border: 1px solid rgba(113, 154, 255, 0.2);
	border-radius: 16px;
	width: 420px;
	max-width: 90%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	transform: scale(0.95);
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tier-modal-overlay.is-open .tier-modal-content {
	transform: scale(1);
}

.tier-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-modal-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
}

.tier-modal-close-btn {
	background: transparent;
	border: 0;
	color: #8da2b9;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.15s ease;
}

.tier-modal-close-btn:hover {
	color: #ffffff;
}

.tier-modal-body {
	padding: 20px;
}

.tier-modal-input {
	width: 100%;
	height: 38px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(113, 154, 255, 0.16);
	border-radius: 10px;
	color: #ffffff;
	padding: 0 12px;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tier-modal-input:focus {
	border-color: rgba(113, 154, 255, 0.45);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 3px rgba(113, 154, 255, 0.1);
}

.tier-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 20px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.1);
}

.tier-modal-btn {
	height: 36px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease;
}

.tier-modal-btn-cancel {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(113, 154, 255, 0.15);
	color: #dce7f2;
}

.tier-modal-btn-cancel:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(113, 154, 255, 0.25);
	color: #ffffff;
}

.tier-modal-btn-submit {
	background: rgba(93, 140, 255, 0.18);
	border-color: rgba(113, 154, 255, 0.45);
	color: #ffffff;
}

.tier-modal-btn-submit:hover {
	background: rgba(93, 140, 255, 0.25);
	border-color: rgba(113, 154, 255, 0.6);
}

/* ─── Highlights for the Request Option in SumoSelect ─── */
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt.request-new-gamepad-option {
	border-top: 1px solid rgba(113, 154, 255, 0.15);
	background: rgba(93, 140, 255, 0.06);
	font-weight: 600;
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt.request-new-gamepad-option:hover {
	background: rgba(93, 140, 255, 0.18);
}
.tier-controls-row .padSelection .SumoSelect > .optWrapper > .options li.opt.request-new-gamepad-option.hidden {
	display: block !important;
}

/* ─── Latency Mode Switcher ─── */
.tier-latency-switcher {
	display: inline-flex;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(113, 154, 255, 0.16);
	border-radius: 12px;
	padding: 3px;
	gap: 2px;
	align-items: center;
	margin-left: 15px;
	flex-shrink: 0;
}

.tier-latency-btn {
	background: transparent;
	border: none;
	color: #aebfd1;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 9px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.tier-latency-btn.active {
	background: #5d8cff;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(93, 140, 255, 0.35);
}

.tier-latency-btn:hover:not(.active) {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.05);
}

