/* AAA portal tiles — Gameportal #159 lane card grammar (shared jawdrop + landing) */

.dm-aaa-tile-grid,
.cp-door-strip-grid.dm-aaa-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-door-strip-grid.dm-aaa-tile-grid > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dm-aaa-tile {
	--dm-aaa-gold: #f0d878;
	--dm-aaa-gold-dim: #c8942a;
	--dm-aaa-muted: rgba(200, 214, 228, 0.82);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(148px, 20vh, 196px);
	padding: 0.85rem 0.8rem 0.75rem;
	border: 1px solid rgba(212, 168, 75, 0.28);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #fff7d9;
	background: rgba(4, 10, 18, 0.72);
	box-shadow:
		0 14px 36px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition:
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.22s ease,
		box-shadow 0.28s ease;
}

.dm-aaa-tile-art {
	position: absolute;
	inset: 0;
	background-image: var(--dm-aaa-tile-art);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0.52;
	transform: scale(1.02);
	transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dm-aaa-tile-frame {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(2, 5, 9, 0.15) 0%, rgba(2, 5, 9, 0.55) 42%, rgba(2, 5, 9, 0.94) 100%),
		linear-gradient(135deg, rgba(240, 216, 120, 0.08), transparent 42%);
}

.dm-aaa-tile > *:not(.dm-aaa-tile-art):not(.dm-aaa-tile-frame) {
	position: relative;
	z-index: 1;
}

.dm-aaa-tile-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--dm-aaa-gold);
}

.dm-aaa-tile-title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dm-aaa-tile-copy {
	margin: 0.35rem 0 0.55rem;
	font-size: 0.68rem;
	line-height: 1.45;
	color: var(--dm-aaa-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dm-aaa-tile-foot {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: auto;
	font-size: 0.62rem;
}

.dm-aaa-tile-meter {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.dm-aaa-tile-meter i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--dm-aaa-gold-dim), var(--dm-aaa-gold));
	box-shadow: 0 0 10px rgba(240, 216, 120, 0.45);
}

.dm-aaa-tile-cta {
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dm-aaa-gold);
	white-space: nowrap;
}

.dm-aaa-tile-badge {
	margin-left: auto;
	padding: 0.15rem 0.45rem;
	border: 1px solid rgba(212, 168, 75, 0.35);
	border-radius: 999px;
	font-size: 0.52rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(200, 214, 228, 0.9);
	background: rgba(0, 0, 0, 0.28);
}

.dm-aaa-tile:hover,
.dm-aaa-tile:focus-visible {
	transform: translateY(-6px) scale(1.02);
	border-color: rgba(240, 216, 120, 0.72);
	box-shadow:
		0 18px 44px rgba(0, 0, 0, 0.5),
		0 0 28px rgba(62, 200, 255, 0.12);
	outline: none;
}

.dm-aaa-tile:hover .dm-aaa-tile-art,
.dm-aaa-tile:focus-visible .dm-aaa-tile-art {
	opacity: 0.78;
	transform: scale(1.08);
}

/* Jawdrop orbit nodes — AAA square slots */
.cp-node-icon {
	width: 4.25rem !important;
	height: 4.25rem !important;
	border-radius: 12px !important;
}

.cp-node-icon::before {
	border-radius: 14px !important;
}

@media (max-width: 640px) {
	.dm-aaa-tile-grid,
	.cp-door-strip-grid.dm-aaa-tile-grid {
		grid-template-columns: 1fr;
	}

	.dm-aaa-tile {
		min-height: 132px;
	}
}
