/* 9MinGames game design system. Plugin templates provide semantics and data. */

body.nmg-theme .nmg-icon,
body.nmg-theme .nmg-inline-icon,
body.nmg-theme .nmg-action-button__icon,
body.nmg-theme .nmg-section-icon svg,
body.nmg-theme .nmg-player-start svg,
body.nmg-theme .nmg-toolbar-button svg {
	display: block;
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
}

body.nmg-theme.nmg-game-home .site-content,
body.nmg-theme .nmg-front-page .site-content {
	width: min(100% - clamp(28px, 4vw, 56px), var(--nmg-container));
}

body.nmg-theme .nmg-home { width: 100%; min-width: 0; }
body.nmg-theme .nmg-home-intro {
	max-width: 780px;
	margin: 0 0 30px;
}
body.nmg-theme .nmg-home-intro h1 { margin-bottom: 10px; font-size: clamp(1.75rem, 3vw, 2.6rem); }
body.nmg-theme .nmg-home-intro p { color: var(--nmg-text-soft); }
body.nmg-theme .nmg-home-intro--compact { margin-bottom: 22px; }
body.nmg-theme .nmg-home-seo-content {
	max-width: 900px;
	margin: 38px auto 0;
	border-top: 1px solid var(--nmg-border);
	padding-top: 28px;
	color: var(--nmg-text-soft);
}

body.nmg-theme .nmg-game-section { margin: 0 0 34px; }
body.nmg-theme .nmg-game-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}
body.nmg-theme .nmg-game-section__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: clamp(1.1rem, 1.6vw, 1.38rem);
	letter-spacing: -.02em;
}
body.nmg-theme .nmg-section-icon {
	display: inline-grid;
	place-items: center;
	width: 25px;
	height: 25px;
	color: var(--nmg-warning);
}
body.nmg-theme .nmg-section-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 34px;
	border: 1px solid var(--nmg-border);
	border-radius: 9px;
	background: var(--nmg-surface);
	padding: 5px 10px;
	color: var(--nmg-text-soft);
	font-size: .75rem;
	font-weight: 700;
	text-decoration: none;
}
body.nmg-theme .nmg-section-link:hover { border-color: var(--nmg-border-strong); background: var(--nmg-surface-2); color: #fff; }

body.nmg-theme .nmg-game-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}
body.nmg-theme .nmg-game-card {
	overflow: hidden;
	min-width: 0;
	border: 1px solid var(--nmg-border);
	border-radius: 11px;
	background: var(--nmg-surface);
	transition: transform var(--nmg-transition), border-color var(--nmg-transition), background-color var(--nmg-transition);
}
body.nmg-theme .nmg-game-card:hover { border-color: var(--nmg-border-strong); background: var(--nmg-surface-2); transform: translateY(-2px); }
body.nmg-theme .nmg-game-card__link { display: block; color: inherit; text-decoration: none; }
body.nmg-theme .nmg-game-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--nmg-surface-2); }
body.nmg-theme .nmg-game-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
body.nmg-theme .nmg-game-card:hover .nmg-game-card__image { transform: scale(1.025); }
body.nmg-theme .nmg-game-card__body { padding: 9px 10px 11px; }
body.nmg-theme .nmg-game-card__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.35em;
	margin: 0 0 6px;
	color: var(--nmg-text);
	font-size: .84rem;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
body.nmg-theme .nmg-game-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--nmg-muted); font-size: .7rem; }

body.nmg-theme .nmg-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
body.nmg-theme .nmg-category-card {
	--nmg-category-color: #8b7cff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	min-height: 112px;
	border: 1px solid var(--nmg-border);
	border-radius: 13px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--nmg-category-color) 7%, var(--nmg-surface)), var(--nmg-surface));
	padding: 14px 10px;
	color: var(--nmg-text);
	text-align: center;
	text-decoration: none;
}
body.nmg-theme .nmg-category-card:hover { border-color: color-mix(in srgb, var(--nmg-category-color) 46%, var(--nmg-border)); background: color-mix(in srgb, var(--nmg-category-color) 9%, var(--nmg-surface-2)); }
body.nmg-theme .nmg-category-card__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid color-mix(in srgb, var(--nmg-category-color) 55%, var(--nmg-border));
	border-radius: 12px;
	background: color-mix(in srgb, var(--nmg-category-color) 16%, transparent);
	color: var(--nmg-category-color);
}
body.nmg-theme .nmg-category-card__icon svg { width: 23px; height: 23px; }
body.nmg-theme .nmg-category-card strong { font-size: .86rem; }
body.nmg-theme .nmg-category-card > span:last-child { color: var(--nmg-muted); font-size: .7rem; }
body.nmg-theme .nmg-category-card--racing,
body.nmg-theme .nmg-category-card--car { --nmg-category-color: #ff5fb7; }
body.nmg-theme .nmg-category-card--action { --nmg-category-color: #ff6d6d; }
body.nmg-theme .nmg-category-card--puzzle,
body.nmg-theme .nmg-category-card--brain { --nmg-category-color: #54dfa1; }
body.nmg-theme .nmg-category-card--adventure { --nmg-category-color: #ffb843; }
body.nmg-theme .nmg-category-card--sports,
body.nmg-theme .nmg-category-card--football { --nmg-category-color: #4ea1ff; }
body.nmg-theme .nmg-category-card--shooting { --nmg-category-color: #b568ff; }
body.nmg-theme .nmg-category-card--arcade { --nmg-category-color: #ef55c7; }
body.nmg-theme .nmg-category-card--hypercasual { --nmg-category-color: #5bd4e8; }
body.nmg-theme .nmg-category-card--girls { --nmg-category-color: #ff85b9; }

/* Single game */
body.nmg-theme.nmg-game-view .site-content {
	width: min(100% - clamp(28px, 4vw, 56px), var(--nmg-game-container));
	padding-top: 14px;
}
body.nmg-theme.nmg-game-view .nmg-breadcrumbs-wrap { margin-bottom: 11px; }
body.nmg-theme .nmg-game-entry { min-width: 0; }
body.nmg-theme .nmg-game-header {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr) auto;
	align-items: center;
	gap: 13px;
	margin-bottom: 13px;
}
body.nmg-theme .nmg-game-header__thumb { display: block; width: 78px; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; }
body.nmg-theme .nmg-game-header__title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.45rem); }
body.nmg-theme .nmg-game-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 5px; color: var(--nmg-muted); font-size: .83rem; }
body.nmg-theme .nmg-rating-summary { display: inline-flex; align-items: center; gap: 5px; }
body.nmg-theme .nmg-rating-summary svg { color: #ffc42f; fill: #ffc42f; }
body.nmg-theme .nmg-rating-summary strong { color: #fff; }
body.nmg-theme .nmg-category-pill { display: inline-flex; align-items: center; min-height: 27px; border-radius: 999px; background: var(--nmg-surface-2); padding: 4px 10px; color: var(--nmg-text-soft); text-decoration: none; }
body.nmg-theme .nmg-game-header__actions { display: flex; align-items: center; gap: 8px; }
body.nmg-theme .nmg-action-button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	border: 1px solid var(--nmg-border-strong);
	border-radius: 9px;
	background: transparent;
	padding: 8px 12px;
	color: var(--nmg-text-soft);
	font-size: .78rem;
	font-weight: 700;
}
body.nmg-theme .nmg-action-button small { color: var(--nmg-muted); font-size: .68rem; }
body.nmg-theme .nmg-action-button--square { width: 40px; padding: 0; }
body.nmg-theme .nmg-action-button:hover,
body.nmg-theme .nmg-action-button.is-active { border-color: color-mix(in srgb, var(--nmg-accent) 55%, var(--nmg-border)); background: var(--nmg-accent-soft); color: #fff; transform: none; }
body.nmg-theme [data-nmg-favorite].is-active svg { color: #ff647c; fill: #ff647c; }

body.nmg-theme .nmg-game-player-shell {
	width: min(100%, var(--nmg-player-native-width, 1120px), var(--nmg-player-vh-width, 138.667vh));
	margin: 0 auto;
	overflow: visible;
	background: transparent;
}
body.nmg-theme .nmg-game-player {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	aspect-ratio: var(--nmg-game-ratio, 16 / 9);
	border: 1px solid var(--nmg-border);
	border-radius: 13px 13px 0 0;
	background: #02050a;
}
body.nmg-theme .nmg-game-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
body.nmg-theme .nmg-player-cover,
body.nmg-theme .nmg-player-loading { position: absolute; inset: 0; display: grid; place-items: center; }
body.nmg-theme .nmg-player-cover {
	z-index: 2;
	background: linear-gradient(rgba(3, 8, 15, .22), rgba(3, 8, 15, .42)), var(--nmg-game-backdrop, #050b14) center / cover no-repeat;
}
body.nmg-theme .nmg-game-player.is-loaded .nmg-player-cover { display: none; }
body.nmg-theme .nmg-player-loading { z-index: 1; background: #02050a; color: var(--nmg-text-soft); font-size: .9rem; }
body.nmg-theme .nmg-player-loading[hidden] { display: none; }
body.nmg-theme button.nmg-player-start {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	min-width: 104px;
	min-height: 88px;
	border: 0;
	background: transparent;
	padding: 0;
	color: #fff;
	font-size: .82rem;
	font-weight: 750;
	text-shadow: 0 2px 8px rgba(0,0,0,.72);
	box-shadow: none;
}
body.nmg-theme button.nmg-player-start:hover { border: 0; background: transparent; transform: scale(1.04); }
body.nmg-theme .nmg-player-start__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 2px solid rgba(255,255,255,.9);
	border-radius: 50%;
	background: rgba(0,0,0,.08);
	backdrop-filter: blur(2px);
}
body.nmg-theme .nmg-player-start__icon svg { width: 27px; height: 27px; margin-left: 3px; fill: currentColor; }

body.nmg-theme .nmg-game-toolbar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 58px;
	border: 1px solid var(--nmg-border);
	border-top: 0;
	border-radius: 0 0 13px 13px;
	background: var(--nmg-surface);
	padding: 9px 12px;
}
body.nmg-theme .nmg-toolbar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	border: 1px solid var(--nmg-border);
	border-radius: 8px;
	background: transparent;
	padding: 7px 11px;
	color: var(--nmg-text-soft);
	font-size: .76rem;
	font-weight: 700;
}
body.nmg-theme .nmg-toolbar-button:hover,
body.nmg-theme .nmg-toolbar-button.is-active { border-color: var(--nmg-border-strong); background: var(--nmg-surface-2); color: #fff; transform: none; }
body.nmg-theme .nmg-toolbar-button--primary { border-color: transparent; background: var(--nmg-accent); color: #fff; }
body.nmg-theme .nmg-toolbar-button--primary:hover { background: var(--nmg-accent-hover); }
body.nmg-theme .nmg-toolbar-button--secondary { margin-left: auto; }
body.nmg-theme .nmg-toolbar-button--secondary + .nmg-toolbar-button--secondary { margin-left: 0; }
body.nmg-theme [data-nmg-reaction="1"].is-active svg { color: var(--nmg-success); }
body.nmg-theme [data-nmg-reaction="-1"].is-active svg { color: var(--nmg-danger); }
body.nmg-theme .nmg-rating-picker { position: relative; }
body.nmg-theme .nmg-rating-picker__panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	z-index: 20;
	display: flex;
	gap: 3px;
	border: 1px solid var(--nmg-border-strong);
	border-radius: 10px;
	background: var(--nmg-surface-2);
	padding: 7px;
	box-shadow: var(--nmg-shadow);
}
body.nmg-theme .nmg-rating-picker__panel[hidden] { display: none; }
body.nmg-theme .nmg-rating-picker__panel button { min-width: 32px; min-height: 32px; border: 0; background: transparent; padding: 4px; color: #718096; }
body.nmg-theme .nmg-rating-picker__panel button:hover,
body.nmg-theme .nmg-rating-picker__panel button.is-active { background: transparent; color: #ffc42f; transform: none; }
body.nmg-theme .nmg-rating-picker__panel button.is-active svg { fill: currentColor; }
body.nmg-theme .nmg-game-player:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; background: #000; }

body.nmg-theme .nmg-game-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	align-items: start;
	gap: 18px;
	margin-top: 18px;
}
body.nmg-theme .nmg-game-content,
body.nmg-theme .nmg-game-sidebar-section {
	border: 1px solid var(--nmg-border);
	border-radius: 13px;
	background: var(--nmg-surface);
}
body.nmg-theme .nmg-game-content { overflow: hidden; }
body.nmg-theme .nmg-game-tabs { display: none; align-items: center; gap: 4px; border-bottom: 1px solid var(--nmg-border); padding: 0 14px; }
body.nmg-theme .nmg-game-tab { position: relative; min-height: 48px; border: 0; border-radius: 0; background: transparent; padding: 0 12px; color: var(--nmg-muted); font-size: .86rem; }
body.nmg-theme .nmg-game-tab:hover { background: transparent; color: #fff; transform: none; }
body.nmg-theme .nmg-game-tab[aria-selected="true"] { color: #fff; }
body.nmg-theme .nmg-game-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--nmg-accent); }
body.nmg-theme .nmg-game-panel { padding: 20px 22px; }
body.nmg-theme .nmg-game-panel + .nmg-game-panel { border-top: 1px solid var(--nmg-border); }
body.nmg-theme .nmg-game-panel h2,
body.nmg-theme .nmg-game-tags h2 { margin: 0 0 12px; font-size: 1.02rem; }
body.nmg-theme .nmg-game-panel__body { position: relative; color: var(--nmg-text-soft); font-size: .89rem; line-height: 1.65; }
body.nmg-theme .nmg-game-panel__body > :last-child { margin-bottom: 0; }
body.nmg-theme .nmg-game-panel__body.is-collapsible:not(.is-expanded) { max-height: 8em; overflow: hidden; }
body.nmg-theme .nmg-game-panel__body.is-collapsible:not(.is-expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(transparent, var(--nmg-surface)); pointer-events: none; }
body.nmg-theme .nmg-show-more { min-height: 28px; border: 0; background: transparent; padding: 4px 0 0; color: #9d8eff; font-size: .79rem; }
body.nmg-theme .nmg-show-more:hover { border: 0; background: transparent; color: #c9c1ff; transform: none; }
body.nmg-theme .nmg-game-tags { border-top: 1px solid var(--nmg-border); padding: 18px 22px 20px; }
body.nmg-theme .nmg-game-tags__list { display: flex; flex-wrap: wrap; gap: 8px; }
body.nmg-theme .nmg-game-tags__list span { display: inline-flex; min-height: 29px; align-items: center; border-radius: 8px; background: var(--nmg-surface-2); padding: 5px 10px; color: var(--nmg-text-soft); font-size: .75rem; }

body.nmg-theme .nmg-game-sidebar { display: grid; gap: 16px; min-width: 0; }
body.nmg-theme .nmg-game-sidebar-section { overflow: hidden; padding: 13px; }
body.nmg-theme .nmg-game-sidebar-section .nmg-game-section__header { margin-bottom: 11px; }
body.nmg-theme .nmg-game-sidebar-section .nmg-game-section__title { font-size: .98rem; }
body.nmg-theme .nmg-related-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.nmg-theme .nmg-related-game-grid .nmg-game-card__body { padding: 7px 7px 9px; }
body.nmg-theme .nmg-related-game-grid .nmg-game-card__title { min-height: 2.25em; font-size: .69rem; }
body.nmg-theme .nmg-related-game-grid .nmg-game-card__meta { display: none; }

body.nmg-theme .nmg-interaction-status { position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: 320px; border-radius: 9px; background: var(--nmg-surface-3); color: #fff; font-size: .8rem; }
body.nmg-theme .nmg-interaction-status:not(:empty) { border: 1px solid var(--nmg-border-strong); padding: 9px 12px; box-shadow: var(--nmg-shadow); }
body.nmg-theme .nmg-report-dialog { width: min(92vw, 480px); border: 1px solid var(--nmg-border-strong); border-radius: 14px; background: var(--nmg-surface); padding: 0; color: var(--nmg-text); }
body.nmg-theme .nmg-report-dialog::backdrop { background: rgba(1,5,11,.72); backdrop-filter: blur(3px); }
body.nmg-theme .nmg-report-dialog__surface { display: grid; gap: 12px; padding: 20px; }
body.nmg-theme .nmg-report-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.nmg-theme .nmg-report-dialog__header h2 { margin: 0; font-size: 1.18rem; }
body.nmg-theme .nmg-report-dialog__header button { width: 34px; min-height: 34px; border: 0; background: transparent; padding: 0; font-size: 1.5rem; }
body.nmg-theme .nmg-report-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

body.nmg-theme .nmg-game-archive-header { margin-bottom: 18px; }
body.nmg-theme .nmg-game-archive-description { max-width: 760px; color: var(--nmg-text-soft); }
body.nmg-theme .nmg-game-archive-page .navigation.pagination { grid-column: 1 / -1; margin-top: 28px; }
body.nmg-theme .nmg-mobile-nav { display: none; }

@media (max-width: 1180px) {
	body.nmg-theme .nmg-game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	body.nmg-theme .nmg-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	body.nmg-theme .nmg-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.nmg-theme .nmg-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.nmg-theme .nmg-game-layout { grid-template-columns: 1fr; }
	body.nmg-theme .nmg-game-sidebar { grid-template-columns: 1fr 1fr; }
	body.nmg-theme .nmg-related-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	body.nmg-theme .nmg-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.nmg-theme.nmg-game-view .site-content { padding-top: 10px; }
	body.nmg-theme .nmg-game-header { grid-template-columns: 72px minmax(0, 1fr); }
	body.nmg-theme .nmg-game-header__thumb { width: 72px; }
	body.nmg-theme .nmg-game-header__title { font-size: clamp(1.55rem, 7vw, 2rem); }
	body.nmg-theme .nmg-game-header__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 48px; }
	body.nmg-theme .nmg-action-button { justify-content: center; }
	body.nmg-theme .nmg-game-toolbar { flex-wrap: wrap; }
	body.nmg-theme .nmg-game-sidebar { grid-template-columns: 1fr; }
	body.nmg-theme .site-footer { padding-bottom: 72px; }
	body.nmg-theme { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	body.nmg-theme .nmg-mobile-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 80;
		display: grid;
		grid-template-columns: repeat(var(--nmg-mobile-nav-items, 4), minmax(0, 1fr));
		border-top: 1px solid var(--nmg-border);
		background: rgba(7, 17, 31, .96);
		backdrop-filter: blur(18px);
		padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
	}
	body.nmg-theme .nmg-mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; min-height: 50px; border-radius: 10px; color: var(--nmg-muted); font-size: .67rem; text-decoration: none; }
	body.nmg-theme .nmg-mobile-nav a[aria-current="page"],
	body.nmg-theme .nmg-mobile-nav a:hover { background: var(--nmg-accent-soft); color: #fff; }
	body.nmg-theme .nmg-mobile-nav svg { width: 21px; height: 21px; }
}

@media (max-width: 640px) {
	body.nmg-theme .nmg-game-section { margin-bottom: 30px; }
	body.nmg-theme .nmg-game-grid {
		grid-auto-flow: column;
		grid-auto-columns: minmax(148px, 44vw);
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		padding-bottom: 7px;
	}
	body.nmg-theme .nmg-game-grid .nmg-game-card { scroll-snap-align: start; }
	body.nmg-theme .nmg-game-archive-page .nmg-game-grid,
	body.nmg-theme .nmg-search-results .nmg-game-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
	body.nmg-theme .nmg-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.nmg-theme .nmg-category-card { min-height: 104px; }
	body.nmg-theme .nmg-game-player { border-radius: 10px 10px 0 0; }
	body.nmg-theme .nmg-game-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; border-radius: 0 0 10px 10px; }
	body.nmg-theme .nmg-toolbar-button { min-width: 0; padding-inline: 7px; }
	body.nmg-theme .nmg-toolbar-button--primary { grid-column: 1 / -1; min-height: 48px; font-size: .88rem; }
	body.nmg-theme .nmg-toolbar-button--secondary { margin-left: 0; }
	body.nmg-theme .nmg-rating-picker { position: static; }
	body.nmg-theme .nmg-rating-picker__panel { left: 8px; right: 8px; bottom: calc(100% + 8px); justify-content: center; }
	body.nmg-theme .nmg-game-tabs { display: flex; overflow-x: auto; }
	body.nmg-theme.js .nmg-game-panel:not(.is-active) { display: none; }
	body.nmg-theme .nmg-game-panel { padding: 18px; }
	body.nmg-theme .nmg-game-tags { padding: 17px 18px; }
	body.nmg-theme .nmg-related-game-grid { grid-auto-flow: column; grid-auto-columns: minmax(140px, 42vw); grid-template-columns: none; overflow-x: auto; scroll-snap-type: inline mandatory; }
	body.nmg-theme .nmg-related-game-grid .nmg-game-card { scroll-snap-align: start; }
	body.nmg-theme .nmg-report-dialog { width: calc(100% - 24px); }
}

body.nmg-theme .nmg-game-content,
body.nmg-theme .nmg-game-sidebar,
body.nmg-theme .nmg-game-sidebar-section,
body.nmg-theme .nmg-related-game-grid { min-width: 0; max-width: 100%; }
body.nmg-theme .nmg-home-page__title { max-width: 880px; margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
body.nmg-theme .nmg-home-page__content > p:first-child { max-width: 880px; color: var(--nmg-text-soft); }
