.modal.view-deck {
	width: auto !important;
	max-width: none !important;
	max-height: none !important;
	height: 100vh - 24px !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #1a1a1a;
	overflow: hidden !important;
	border-radius: 4px;
}

.modal.view-deck .modal-button,
.modal-overlay .modal-button {
	/* keep close control from overlay */
}

view-deck {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: calc(100vh - 24px);
	background: #1a1a1a;
	color: #eee;
	overflow: hidden;
}

.view-deck-chrome {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.72), rgba(0,0,0,0));
	pointer-events: none;
}

.view-deck-chrome__title {
	font-size: 18px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.view-deck-chrome__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	pointer-events: auto;
	flex-shrink: 1;
	max-width: 70%;
}

.view-deck-chrome__actions .mdl-button {
	min-height: 36px;
	line-height: 36px;
	padding: 0 12px;
	font-size: 13px;
}

.view-deck-stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background:
		radial-gradient(ellipse at center, #2a2a2a 0%, #121212 70%);
}

.view-deck-renderer {
	width: 100%;
	height: 100%;
}

.view-deck-status {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 6;
	color: #ccc;
	font-size: 16px;
	pointer-events: none;
}

.view-deck-card-face {
	background-color: #111;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 6px;
	box-shadow: 0 8px 18px rgba(0,0,0,0.45);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	pointer-events: none;
}

.view-deck-stack-hit {
	background: transparent;
	outline: none;
	cursor: pointer;
}

.view-deck-stack-hit:focus {
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.55);
	border-radius: 6px;
}

.view-deck-qty {
	position: absolute;
	z-index: 8;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 24px;
	background: rgba(20, 20, 20, 0.88);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
	transform: translate(-50%, 0);
	user-select: none;
}

.view-deck-qty.is-visible {
	display: flex;
}

.view-deck-qty__count {
	min-width: 1.5em;
	text-align: center;
	font-size: 18px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
}

.view-deck-qty__btn {
	color: rgba(255, 255, 255, 0.9) !important;
	background: rgba(255, 255, 255, 0.12) !important;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
}

.view-deck-qty__btn .material-icons {
	font-size: 22px;
	line-height: 1;
}

.view-deck-qty__btn:disabled {
	opacity: 0.35;
}

@media (max-width: 640px) {
	.modal.view-deck {
		left: 0 !important;
		right: 0 !important;
		top: 0 !important;
		bottom: 0 !important;
		border-radius: 0;
	}

	view-deck {
		min-height: 100vh;
	}

	.view-deck-chrome__title {
		font-size: 15px;
	}
}
