/* Humane Games launcher on /games/ */

.monroe-humane-games {
	--hg-fur: #fef6ea;
	--hg-treat: #ffb347;
	--hg-treat-deep: #ff7a3c;
	--hg-ink: #2c1c19;
	--hg-mint: #6bc4a6;
	--hg-shadow: 0 16px 36px rgba(44, 28, 25, 0.18);
	color: var(--hg-ink);
}

/* Warm play panel (right column of hero) */
.monroe-games-hero__panel.monroe-humane-games {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: clamp(0.65rem, 1.8vw, 0.95rem);
	min-width: 0;
	border-radius: 20px;
	border: 2px solid rgba(255, 179, 71, 0.35);
	background:
		radial-gradient(circle at 15% 10%, rgba(255, 213, 196, 0.55), transparent 50%),
		radial-gradient(circle at 90% 90%, rgba(199, 240, 214, 0.45), transparent 45%),
		linear-gradient(145deg, rgba(255, 250, 243, 0.98), rgba(255, 230, 207, 0.92));
	box-shadow: 0 28px 56px rgba(44, 28, 25, 0.16);
}

/* Inner-page-shell sets large serif h2/p; reset inside play panel */
.monroe-inner-page-shell .monroe-games-hero__panel.monroe-humane-games h2 {
	font-family: inherit;
	font-weight: 800;
	line-height: 1.2;
	color: inherit;
}

.monroe-inner-page-shell .monroe-games-hero__panel.monroe-humane-games p {
	font-family: inherit;
	line-height: 1.45;
	color: inherit;
}

.monroe-games-hero__about {
	margin: 0;
}

.monroe-games-hero__about-link {
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(19, 78, 74, 0.88);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.monroe-games-hero__about-link:hover,
.monroe-games-hero__about-link:focus-visible {
	color: #134e4a;
	outline: none;
}

.monroe-humane-games__games {
	padding: 0.55rem 0.65rem 0.65rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(44, 28, 25, 0.08);
	min-width: 0;
}

.monroe-humane-games__games-heading {
	margin: 0 0 0.4rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	color: #1b5e4a;
}

.monroe-humane-games__top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.4rem;
}

.monroe-humane-games__mini-btn {
	border: 1px solid rgba(44, 28, 25, 0.12);
	background: rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	padding: 0.4rem 0.7rem;
	font: inherit;
	font-size: 0.74rem;
	font-weight: 700;
	color: rgba(44, 28, 25, 0.85);
	cursor: pointer;
}

.monroe-humane-games__mini-btn:hover,
.monroe-humane-games__mini-btn:focus-visible {
	border-color: rgba(107, 196, 166, 0.65);
	outline: none;
}

.monroe-humane-games__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-bottom: 0.4rem;
}

.monroe-humane-games__filter {
	border: 1px solid rgba(44, 28, 25, 0.12);
	background: rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 0.35rem 0.65rem;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
}

.monroe-humane-games__filter.is-active {
	background: rgba(107, 196, 166, 0.25);
	border-color: rgba(107, 196, 166, 0.65);
	color: #1b5e4a;
}

.monroe-humane-games__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.monroe-humane-games__grid-item {
	margin: 0;
	padding: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.monroe-humane-games__mini-btn--ai {
	border-color: rgba(107, 196, 166, 0.55);
	background: rgba(107, 196, 166, 0.14);
	color: #1b5e4a;
}

.monroe-humane-games__bot-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-left: 0.15rem;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(107, 196, 166, 0.55);
	background: rgba(107, 196, 166, 0.12);
	color: #2c5e4a;
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.monroe-humane-games__bot-link:hover,
.monroe-humane-games__bot-link:focus-visible {
	background: rgba(107, 196, 166, 0.22);
	border-color: rgba(74, 173, 146, 0.85);
	outline: none;
}

.monroe-humane-games__card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid rgba(44, 28, 25, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 6px 16px rgba(44, 28, 25, 0.06);
	color: var(--hg-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.monroe-humane-games__card:hover:not(:disabled),
.monroe-humane-games__card:focus-visible:not(:disabled) {
	transform: translateY(-2px);
	border-color: rgba(107, 196, 166, 0.65);
	box-shadow: 0 12px 24px rgba(44, 28, 25, 0.1);
	outline: none;
}

.monroe-humane-games__card:focus-visible {
	outline: 3px solid rgba(107, 196, 166, 0.55);
	outline-offset: 2px;
}

.monroe-humane-games__card:disabled,
.monroe-humane-games__card[aria-disabled="true"] {
	opacity: 0.62;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.monroe-humane-games__card-icon-wrap {
	display: grid;
	place-items: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	flex-shrink: 0;
	background: rgba(107, 196, 166, 0.22);
	border: 1px solid rgba(107, 196, 166, 0.35);
}

.monroe-humane-games__card--roguelike .monroe-humane-games__card-icon-wrap {
	background: rgba(255, 179, 71, 0.28);
	border-color: rgba(255, 179, 71, 0.45);
}

.monroe-humane-games__card--match .monroe-humane-games__card-icon-wrap {
	background: rgba(107, 196, 166, 0.22);
	border-color: rgba(107, 196, 166, 0.4);
}

.monroe-humane-games__card--dex .monroe-humane-games__card-icon-wrap {
	background: rgba(15, 118, 110, 0.14);
	border-color: rgba(15, 118, 110, 0.28);
}

.monroe-humane-games__card--found .monroe-humane-games__card-icon-wrap {
	background: rgba(255, 196, 87, 0.28);
	border-color: rgba(200, 114, 42, 0.4);
}

.monroe-humane-games__card--found .monroe-humane-games__card-badge {
	background: rgba(255, 196, 87, 0.22);
	color: #7c4a12;
}

.monroe-humane-games__card-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.monroe-humane-games__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.monroe-humane-games__card-title {
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.15;
	color: var(--hg-ink);
}

.monroe-humane-games__card-desc {
	font-size: 0.72rem;
	line-height: 1.3;
	color: rgba(44, 28, 25, 0.78);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.monroe-humane-games__card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.15rem;
}

.monroe-humane-games__card-badge,
.monroe-humane-games__card-lock {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
}

.monroe-humane-games__card-badge {
	background: rgba(107, 196, 166, 0.18);
	color: #1b5e4a;
}

.monroe-humane-games__card--roguelike .monroe-humane-games__card-badge {
	background: rgba(255, 179, 71, 0.22);
	color: #7c4a12;
}

.monroe-humane-games__card-lock {
	background: rgba(255, 122, 60, 0.16);
	color: #9a3412;
}

.monroe-humane-games__card.is-needs-nickname {
	opacity: 0.62;
	cursor: not-allowed;
}

.monroe-humane-games__card.is-needs-nickname .monroe-humane-games__card-badge {
	display: none;
}

.monroe-humane-games__card.is-needs-nickname .monroe-humane-games__card-lock {
	display: inline-flex;
}

.monroe-humane-games__card-action {
	flex-shrink: 0;
	font-size: 0.82rem;
	font-weight: 800;
	color: rgba(44, 28, 25, 0.55);
	white-space: nowrap;
	transition: color 150ms ease;
}

.monroe-humane-games__card:hover:not(:disabled) .monroe-humane-games__card-action,
.monroe-humane-games__card:focus-visible:not(:disabled) .monroe-humane-games__card-action {
	color: var(--hg-treat-deep);
}

@keyframes monroeHgPanelFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.monroe-humane-games__preview {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 9.5rem;
	padding: 0.75rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(44, 28, 25, 0.08);
	overflow: hidden;
}

.monroe-humane-games__preview-board {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 3px;
	width: min(100%, 8.5rem);
	aspect-ratio: 1;
}

.monroe-humane-games__preview-cell {
	border-radius: 4px;
	background: rgba(107, 196, 166, 0.35);
}

.monroe-humane-games__preview-cell:nth-child(3n) {
	background: rgba(255, 179, 71, 0.45);
}

.monroe-humane-games__preview-cell:nth-child(7),
.monroe-humane-games__preview-cell:nth-child(8),
.monroe-humane-games__preview-cell:nth-child(13) {
	background: rgba(255, 122, 60, 0.5);
}

.monroe-humane-games__preview-snake {
	position: absolute;
	top: 38%;
	left: 42%;
	font-size: 1.35rem;
	filter: drop-shadow(0 2px 4px rgba(44, 28, 25, 0.2));
	animation: monroeHgSnakeWiggle 2.4s ease-in-out infinite;
}

.monroe-humane-games__preview-treat {
	position: absolute;
	bottom: 22%;
	right: 28%;
	font-size: 1.1rem;
	animation: monroeHgTreatPulse 1.8s ease-in-out infinite;
}

@keyframes monroeHgSnakeWiggle {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(4px, -3px) rotate(8deg); }
}

@keyframes monroeHgTreatPulse {
	0%, 100% { transform: scale(1); opacity: 0.9; }
	50% { transform: scale(1.15); opacity: 1; }
}

.monroe-humane-games__panel-label {
	margin: 0;
	font-weight: 700;
	font-size: 1.05rem;
	text-align: center;
}

.monroe-humane-games__panel-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.monroe-humane-games__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.78rem 1.35rem;
	border-radius: 999px;
	border: none;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.monroe-humane-games__btn--primary {
	background: linear-gradient(140deg, #ffd39f, var(--hg-treat));
	color: var(--hg-ink);
	box-shadow: 0 14px 28px rgba(255, 138, 101, 0.35);
}

.monroe-humane-games__btn--play {
	width: 100%;
	font-size: 1.05rem;
	padding: 0.9rem 1.5rem;
}

.monroe-humane-games__btn--ghost {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(44, 28, 25, 0.12);
	color: var(--hg-ink);
	width: 100%;
}

.monroe-humane-games__btn:hover,
.monroe-humane-games__btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 18px 32px rgba(44, 28, 25, 0.16);
	outline: none;
}

.monroe-humane-games__btn:focus-visible {
	outline: 3px solid rgba(28, 61, 53, 0.55);
	outline-offset: 3px;
}

.monroe-humane-games__hint {
	margin: 0;
	font-size: 0.78rem;
	text-align: center;
	color: rgba(44, 28, 25, 0.65);
	line-height: 1.4;
}

.monroe-humane-games__dex-gate {
	margin-bottom: 0;
	padding: 0.6rem 0.7rem;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(44, 28, 25, 0.08);
}

.monroe-inner-page-shell .monroe-humane-games__dex-gate-title {
	margin: 0 0 0.2rem;
	font-size: 1rem;
	font-weight: 800;
	text-align: left;
	color: #1b5e4a;
}

.monroe-inner-page-shell .monroe-humane-games__dex-gate-hint {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	text-align: left;
	color: rgba(44, 28, 25, 0.72);
	line-height: 1.4;
}

.monroe-humane-games__dex-gate-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.4rem 0.65rem;
	margin-bottom: 0.45rem;
}

.monroe-humane-games__dex-gate-row {
	display: flex;
	flex-direction: column;
	flex: 1 1 12rem;
	gap: 0.35rem;
	margin-bottom: 0;
	min-width: 0;
}

.monroe-humane-games__dex-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(44, 28, 25, 0.75);
}

.monroe-humane-games__dex-input {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border-radius: 10px;
	border: 2px solid rgba(107, 196, 166, 0.45);
	font: inherit;
	font-weight: 600;
	background: #fff;
}

.monroe-humane-games__dex-input:focus-visible {
	outline: 3px solid rgba(107, 196, 166, 0.55);
	outline-offset: 2px;
}

.monroe-humane-games__dex-validation {
	margin: 0.1rem 0 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(44, 28, 25, 0.68);
}

.monroe-humane-games__dex-validation.is-error {
	color: #9a3412;
}

.monroe-humane-games__dex-remember {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(44, 28, 25, 0.78);
	flex: 0 0 auto;
}

.monroe-humane-games__dex-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}

.monroe-humane-games__dex-actions .monroe-humane-games__btn {
	flex: 1 1 calc(50% - 0.25rem);
	min-width: 0;
	width: auto;
	font-size: 0.86rem;
	padding: 0.62rem 0.85rem;
}

.monroe-humane-games__dex-privacy {
	margin: 0;
	font-size: 0.74rem;
	line-height: 1.45;
	color: rgba(44, 28, 25, 0.58);
	text-align: left;
}

.monroe-humane-games__dex-toast {
	margin: 0.45rem 0 0;
	padding: 0.45rem 0.65rem;
	border-radius: 10px;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	color: #1b5e4a;
	background: rgba(107, 196, 166, 0.18);
}

.monroe-humane-games__dex-toast[hidden] {
	display: none;
}

.monroe-humane-games__btn--play:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* About dialog */
.monroe-humane-games-about {
	position: fixed;
	inset: 0;
	z-index: 7500;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(20, 12, 10, 0.35);
	backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.monroe-humane-games-about.is-active {
	opacity: 1;
	pointer-events: auto;
}

.monroe-humane-games-about__panel {
	position: relative;
	width: min(92vw, 520px);
	max-height: min(88vh, 640px);
	overflow: auto;
	padding: clamp(1.25rem, 4vw, 2rem);
	border-radius: 24px;
	background: rgba(255, 250, 243, 0.98);
	border: 1px solid rgba(44, 28, 25, 0.1);
	box-shadow: 0 40px 80px rgba(44, 28, 25, 0.35);
	transform: translateY(12px) scale(0.98);
	transition: transform 210ms ease, opacity 210ms ease;
}

.monroe-humane-games-about.is-active .monroe-humane-games-about__panel {
	transform: translateY(0) scale(1);
}

.monroe-humane-games-about__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.monroe-humane-games-about__eyebrow {
	margin: 0 0 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	color: rgba(44, 28, 25, 0.6);
}

.monroe-humane-games-about__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.monroe-humane-games-about__body {
	margin: 0 0 0.75rem;
	line-height: 1.55;
}

/* AI player game picker */
.monroe-humane-games-ai-player {
	position: fixed;
	inset: 0;
	z-index: 7600;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(20, 12, 10, 0.35);
	backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.monroe-humane-games-ai-player.is-active {
	opacity: 1;
	pointer-events: auto;
}

.monroe-humane-games-ai-player__panel {
	position: relative;
	width: min(92vw, 560px);
	max-height: min(88vh, 680px);
	overflow: auto;
	padding: clamp(1.1rem, 3.5vw, 1.75rem);
	border-radius: 24px;
	background: rgba(255, 250, 243, 0.98);
	border: 1px solid rgba(44, 28, 25, 0.1);
	box-shadow: 0 40px 80px rgba(44, 28, 25, 0.35);
	transform: translateY(12px) scale(0.98);
	transition: transform 210ms ease, opacity 210ms ease;
}

.monroe-humane-games-ai-player.is-active .monroe-humane-games-ai-player__panel {
	transform: translateY(0) scale(1);
}

.monroe-humane-games-ai-player__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.monroe-humane-games-ai-player__eyebrow {
	margin: 0 0 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	color: rgba(44, 28, 25, 0.6);
}

.monroe-humane-games-ai-player__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.monroe-humane-games-ai-player__hint {
	margin: 0 0 0.85rem;
	line-height: 1.45;
	font-size: 0.88rem;
	color: rgba(44, 28, 25, 0.72);
}

.monroe-humane-games-ai-player__list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.monroe-humane-games-ai-player__option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid rgba(44, 28, 25, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hg-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.monroe-humane-games-ai-player__option:hover,
.monroe-humane-games-ai-player__option:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(107, 196, 166, 0.65);
	box-shadow: 0 8px 18px rgba(44, 28, 25, 0.08);
	outline: none;
}

.monroe-humane-games-ai-player__option-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.monroe-humane-games-ai-player__option-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.monroe-humane-games-ai-player__option-title {
	font-weight: 800;
	font-size: 0.92rem;
}

.monroe-humane-games-ai-player__option-desc {
	font-size: 0.74rem;
	line-height: 1.35;
	color: rgba(44, 28, 25, 0.68);
}

.monroe-humane-games-ai-player__option-action {
	font-size: 0.72rem;
	font-weight: 700;
	color: #1b5e4a;
	white-space: nowrap;
}

body.monroe-humane-games-ai-player-open {
	overflow: hidden;
}

/* Game player overlay */
.monroe-humane-games-player {
	position: fixed;
	inset: 0;
	z-index: 8000;
	display: flex;
	flex-direction: column;
	background: rgba(16, 10, 8, 0.58);
	backdrop-filter: blur(10px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 260ms ease;
}

.monroe-humane-games-player.is-opening,
.monroe-humane-games-player.is-active {
	opacity: 1;
	pointer-events: auto;
}

.monroe-humane-games-player__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	padding: calc(0.65rem + env(safe-area-inset-top, 0px)) clamp(0.75rem, 3vw, 1.25rem) 0.65rem;
	background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 237, 218, 0.96));
	border-bottom: 1px solid rgba(44, 28, 25, 0.1);
	box-shadow: 0 6px 18px rgba(44, 28, 25, 0.08);
}

.monroe-humane-games-player__title {
	margin: 0;
	font-size: clamp(0.95rem, 2.5vw, 1.1rem);
	font-weight: 700;
	color: var(--hg-ink, #2c1c19);
}

.monroe-humane-games-player__close {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 0.95rem;
	border: 1px solid rgba(44, 28, 25, 0.12);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.monroe-humane-games-player__close:hover,
.monroe-humane-games-player__close:focus-visible {
	transform: translateY(-1px);
	outline: none;
	box-shadow: 0 8px 16px rgba(44, 28, 25, 0.12);
}

.monroe-humane-games-player__frame-wrap {
	flex: 1;
	min-height: 0;
	position: relative;
	padding: clamp(0.5rem, 2vw, 1rem) clamp(0.5rem, 2vw, 1rem) calc(clamp(0.5rem, 2vw, 1rem) + env(safe-area-inset-bottom, 0px));
	transform: translateY(12px) scale(0.985);
	opacity: 0.92;
	transition: transform 280ms ease, opacity 280ms ease;
}

.monroe-humane-games-player__loading {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1b5e4a;
	background: rgba(255, 250, 243, 0.86);
	border-radius: 18px;
	z-index: 2;
}

.monroe-humane-games-player.is-loading .monroe-humane-games-player__loading {
	display: flex;
}

.monroe-humane-games-player.is-active .monroe-humane-games-player__frame-wrap {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.monroe-humane-games-player__frame {
	display: block;
	width: 100%;
	height: 100%;
	min-height: min(70vh, 720px);
	border: none;
	border-radius: 18px;
	background: #fdf1e3;
	box-shadow:
		0 0 0 3px rgba(255, 179, 71, 0.35),
		0 24px 48px rgba(44, 28, 25, 0.28);
}

@media (min-width: 900px) {
	.monroe-humane-games-player__frame-wrap {
		padding: 0.65rem 1.15rem 0.85rem;
	}

	.monroe-humane-games-player__frame {
		min-height: calc(100dvh - 3.75rem);
		max-height: none;
		border-radius: 20px;
	}
}

body.monroe-humane-games-player-open,
body.monroe-humane-games-about-open {
	overflow: hidden;
}

/* Pet Snake Adventure — mat fills player, minimal chrome */
.monroe-humane-games-player--adventure {
	background: rgba(16, 10, 8, 0.72);
}

.monroe-humane-games-player--adventure .monroe-humane-games-player__toolbar {
	background: #3e2723;
	border-bottom: 1px solid rgba(0, 0, 0, 0.25);
	box-shadow: none;
}

.monroe-humane-games-player--adventure .monroe-humane-games-player__title {
	color: #f5e6d3;
}

.monroe-humane-games-player--adventure .monroe-humane-games-player__close {
	background: rgba(255, 251, 240, 0.12);
	border-color: rgba(245, 230, 211, 0.25);
	color: #f5e6d3;
}

.monroe-humane-games-player--adventure .monroe-humane-games-player__frame-wrap {
	padding: 0;
	background: #3e2723;
	transform: none;
	opacity: 1;
}

.monroe-humane-games-player--adventure .monroe-humane-games-player__frame {
	border-radius: 0;
	background: #3e2723;
	box-shadow: none;
	min-height: calc(100dvh - 3.25rem);
}

@media (min-width: 900px) {
	.monroe-humane-games-player--adventure .monroe-humane-games-player__frame-wrap {
		padding: 0;
	}

	.monroe-humane-games-player--adventure .monroe-humane-games-player__frame {
		min-height: calc(100dvh - 3.5rem);
	}
}

@media (max-width: 640px) {
	.monroe-humane-games-player--adventure .monroe-humane-games-player__frame {
		min-height: calc(100dvh - 2.75rem);
		border-radius: 0;
	}
}

/* Shelter Clicker — maximize iframe on phones */
@media (max-width: 900px) {
	.monroe-humane-games-player--clicker .monroe-humane-games-player__frame-wrap {
		padding: 0.35rem 0.4rem 0.25rem;
	}

	.monroe-humane-games-player--clicker .monroe-humane-games-player__frame {
		min-height: calc(100dvh - 3.25rem);
		border-radius: 12px;
	}
}

@media (max-width: 640px) {
	.monroe-humane-games__grid {
		grid-template-columns: 1fr;
	}

	.monroe-humane-games-player--clicker .monroe-humane-games-player__toolbar {
		padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 0.65rem 0.45rem;
	}

	.monroe-humane-games-player--clicker .monroe-humane-games-player__frame-wrap {
		padding: 0.25rem 0.35rem 0.2rem;
	}

	.monroe-humane-games-player--clicker .monroe-humane-games-player__frame {
		min-height: calc(100dvh - 2.85rem);
		border-radius: 10px;
		box-shadow:
			0 0 0 2px rgba(255, 179, 71, 0.3),
			0 12px 28px rgba(44, 28, 25, 0.22);
	}

	.monroe-humane-games__card {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"icon body"
			"action action";
		row-gap: 0.45rem;
	}

	.monroe-humane-games__card-icon-wrap {
		grid-area: icon;
		align-self: start;
	}

	.monroe-humane-games__card-body {
		grid-area: body;
	}

	.monroe-humane-games__card-action {
		grid-area: action;
		justify-self: end;
	}

	.monroe-humane-games__dex-gate-fields {
		flex-direction: column;
		align-items: stretch;
	}

	.monroe-humane-games-player__frame {
		min-height: calc(100dvh - 4.5rem);
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.monroe-games-hero__panel.monroe-humane-games,
	.monroe-humane-games__preview-snake,
	.monroe-humane-games__preview-treat {
		animation: none;
	}

	.monroe-humane-games-player,
	.monroe-humane-games-player__frame-wrap,
	.monroe-humane-games-about,
	.monroe-humane-games-about__panel {
		transition: none;
	}
}
