/* ==========================================================================
   App shell — sidebar (desktop), top bar + tab bar (mobile), slim footer
   ========================================================================== */
:root {
	--ns-sidebar-w: 232px;
	--ns-bg: #ffffff;
	--ns-side-bg: #f2f2f4;
	--ns-line: #e3e3e8;
	--ns-text: #1d1d1f;
	--ns-muted: #6e6e73;
	--ns-hover: rgba(0, 0, 0, .05);
	--ns-active-bg: #e1e1e6;
	--ns-accent: #e60012;
	--ns-radius: 10px;
	--ns-topbar-h: 56px;
	--ns-tabbar-h: 62px;
}

body { background: var(--ns-bg); }

/* ---------- Layout ---------- */
.ns-shell {
	padding-left: var(--ns-sidebar-w);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.ns-shell > main {
	flex: 1 0 auto;
	padding: 0 32px 48px !important;
	min-height: 0;
}

/* ---------- Sidebar ---------- */
.ns-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: var(--ns-sidebar-w);
	background: var(--ns-side-bg);
	border-right: 1px solid var(--ns-line);
	display: flex;
	flex-direction: column;
	padding: 20px 12px 16px;
	overflow-y: auto;
	z-index: 1000;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
.ns-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px 16px;
}
.ns-sidebar .ns-sidebar__close { display: none; }

.ns-brand, .ns-brand:hover { text-decoration: none; color: var(--ns-text); }
.ns-brand__text {
	display: block;
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ns-text);
}
.ns-brand__text img { max-height: 32px; width: auto; display: block; }

/* Search */
.ns-search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0 0 16px;
}
.ns-search svg {
	position: absolute;
	left: 11px;
	width: 16px;
	height: 16px;
	color: var(--ns-muted);
	pointer-events: none;
}
.ns-search input {
	width: 100%;
	height: 34px;
	padding: 0 12px 0 34px;
	border: 1px solid var(--ns-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ns-text);
	font-size: 14px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
}
.ns-search input::placeholder { color: var(--ns-muted); }
.ns-search input:focus { border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }

/* Nav */
.ns-nav { display: flex; flex-direction: column; gap: 2px; }
.ns-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: flex-start;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: var(--ns-radius);
	background: transparent;
	color: var(--ns-text) !important;
	font-size: 14.5px;
	font-weight: 500;
	text-align: left;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .12s;
}
.ns-nav__link:hover { background: var(--ns-hover); }
.ns-nav__link.is-active { background: var(--ns-active-bg); font-weight: 600; }
.ns-nav__icon {
	flex: none;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ns-muted);
}
.ns-nav__link.is-active .ns-nav__icon { color: var(--ns-accent); }
.ns-nav__icon svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.ns-footer {
	margin: 0 32px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--ns-line);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
.ns-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
	font-size: 12.5px;
	color: var(--ns-muted);
}
.ns-footer__inner a { color: var(--ns-muted); text-decoration: none; }
.ns-footer__inner a:hover { color: var(--ns-text); }

/* ---------- Mobile pieces (hidden on desktop) ---------- */
.ns-topbar, .ns-tabbar, .ns-scrim { display: none; }

.ns-iconbtn {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--ns-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ns-text);
	cursor: pointer;
}
.ns-iconbtn svg { width: 18px; height: 18px; }

/* WordPress admin bar (logged-in users) */
.admin-bar .ns-sidebar { top: 32px; }
.admin-bar .ns-topbar { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .ns-topbar { top: 46px; }
	.admin-bar .ns-shell { padding-top: calc(var(--ns-topbar-h) + 46px); }
	
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 991px) {
	.ns-shell { padding-left: 0; padding-top: var(--ns-topbar-h); padding-bottom: calc(var(--ns-tabbar-h) + env(safe-area-inset-bottom, 0px)); }
	.ns-shell > main { padding: 0 16px 32px !important; }
	.ns-footer { margin: 0 16px; }

	.ns-topbar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		position: fixed;
		inset: 0 0 auto 0;
		min-height: var(--ns-topbar-h);
		padding: 9px 16px;
		background: rgba(255, 255, 255, .92);
		-webkit-backdrop-filter: saturate(180%) blur(16px);
		backdrop-filter: saturate(180%) blur(16px);
		border-bottom: 1px solid var(--ns-line);
		z-index: 1001;
	}
	.ns-topbar__actions { display: flex; gap: 8px; }
	.ns-topbar__search { display: none; width: 100%; margin: 10px 0 2px; }
	body.ns-search-open .ns-topbar__search { display: flex; }

	.ns-tabbar {
		display: flex;
		position: fixed;
		inset: auto 0 0 0;
		height: calc(var(--ns-tabbar-h) + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: rgba(255, 255, 255, .94);
		-webkit-backdrop-filter: saturate(180%) blur(16px);
		backdrop-filter: saturate(180%) blur(16px);
		border-top: 1px solid var(--ns-line);
		z-index: 1001;
	}
	.ns-tab {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 0 2px;
		border: 0;
		background: transparent;
		color: var(--ns-muted) !important;
		font-size: 10.5px;
		font-weight: 500;
		text-decoration: none !important;
		cursor: pointer;
	}
	.ns-tab__icon svg { width: 22px; height: 22px; display: block; }
	.ns-tab__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ns-tab.is-active { color: var(--ns-accent) !important; }

	/* Sidebar becomes a slide-in drawer */
	.ns-sidebar {
		width: min(300px, 86vw);
		transform: translateX(-100%);
		transition: transform .25s ease;
		z-index: 1003;
		box-shadow: none;
	}
	.ns-sidebar .ns-sidebar__close { display: inline-flex; }
	body.ns-drawer-open .ns-sidebar { transform: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); }
	.ns-scrim {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .35);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s;
		z-index: 1002;
	}
	body.ns-drawer-open .ns-scrim { opacity: 1; pointer-events: auto; }
	body.ns-drawer-open { overflow: hidden; }
}

/* ==========================================================================
   Game card (template-parts/soft-item.php)
   ========================================================================== */
.ns-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: box-shadow .18s, transform .18s;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
.ns-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .10); transform: translateY(-2px); }

.ns-card__media {
	display: block;
	aspect-ratio: 5 / 8;
	background: #ececf0;
	overflow: hidden;
}
.ns-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.ns-card:hover .ns-card__media img { transform: scale(1.03); }

/* Badges (top-right of the cover) */
.ns-card__badges {
	position: absolute;
	top: 8px;
	right: 8px;
	left: 8px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	pointer-events: none;
}
.ns-badge {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 6px;
	background: rgba(17, 17, 20, .86);
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ns-badge::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}
.ns-badge--teal { color: #3ee0c5 !important; }
.ns-badge--red { color: #ff6b7a !important; }
.ns-badge--green { color: #5ee08a !important; }
.ns-badge--blue { color: #6cb6ff !important; }
.ns-badge--gray { color: #d0d0d6 !important; }

/* Body */
.ns-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 10px 12px 12px;
	text-align: left;
}
.ns-card__title {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ns-card__title a { color: #1d1d1f !important; text-decoration: none !important; }
.ns-card__title a:hover { color: var(--ns-accent) !important; }

.ns-card__by {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
	font-size: 13px;
	color: #6e6e73;
	min-width: 0;
}
.ns-card__by svg { flex: none; width: 14px; height: 14px; }
.ns-card__by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Rating · Size · Version */
.ns-card__meta {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}
.ns-card__rating { color: #e0a100; flex: 0 0 auto; }
.ns-card__size {
	flex: 0 1 auto;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #7c5cff;
}
.ns-card__size svg { width: 13px; height: 13px; }
.ns-card__ver { flex: 0 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.ns-ver {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-width: 0;
	max-width: 100%;
	color: #6e6e73;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ns-ver::before {
	content: "";
	flex: none;
	width: 11px;
	height: 11px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M2 2h6l6 6-6 6-6-6V2Z'/%3E%3Ccircle cx='5.5' cy='5.5' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M2 2h6l6 6-6 6-6-6V2Z'/%3E%3Ccircle cx='5.5' cy='5.5' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* List view on category pages */
.page-list #dle-content .ns-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	grid-template-rows: auto 1fr;
}
.page-list #dle-content .ns-card__media { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 140px; }
.page-list #dle-content .ns-card__badges {
	position: static;
	grid-column: 2;
	grid-row: 1;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	padding: 12px 14px 0;
}
.page-list #dle-content .ns-card__body { grid-column: 2; grid-row: 2; padding: 8px 14px 12px; }
.page-list #dle-content .ns-card__badges + .ns-card__body { padding-top: 6px; }
.page-list #dle-content .ns-card:not(:has(.ns-card__badges)) .ns-card__body { grid-row: 1 / 3; padding-top: 12px; }
.page-list #dle-content .ns-card__meta { justify-content: flex-start; gap: 18px; }

@media (max-width: 575px) {
	.ns-card { border-radius: 12px; }
	.ns-card__body { padding: 8px 9px 10px; }
	.ns-card__title { font-size: 14px; }
	.ns-card__by { font-size: 12px; margin-bottom: 8px; }
	.ns-card__meta { font-size: 11.5px; gap: 4px; }
	.ns-card__size svg { display: none; }
	.ns-badge { font-size: 10px; padding: 2px 6px; }
}

/* ==========================================================================
   Game information block (single.php)
   ========================================================================== */
.ns-info {
	margin: 0 0 20px;
	padding: 18px 22px 8px;
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
.ns-info__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
	color: #1d1d1f;
}
.ns-info__head svg { flex: none; width: 16px; height: 16px; color: #6e6e73; }
.ns-info__title { margin: 0; font: inherit; color: inherit; }

.ns-info__list {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
}
.ns-info__row.is-wide { grid-column: 1 / -1; }
.ns-info__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding: 11px 0;
	border-top: 1px solid #efeff2;
	font-size: 14px;
	line-height: 1.5;
}
.ns-info__row dt {
	flex: none;
	margin: 0;
	font-weight: 400;
	color: #6e6e73;
}
.ns-info__row dd {
	margin: 0;
	min-width: 0;
	text-align: right;
	color: #1d1d1f;
	overflow-wrap: anywhere;
}
.ns-info__row dd a { color: var(--ns-accent); text-decoration: none; }
.ns-info__row dd a:hover { text-decoration: underline; }
.ns-info__row dd.is-accent { color: var(--ns-accent); }
.ns-info__row dd.is-version { color: #1f9d55; font-weight: 600; }
.ns-info__row dd.is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .02em; }

@media (max-width: 767px) {
	.ns-info__list { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.ns-info { padding: 14px 14px 4px; border-radius: 12px; }
	.ns-info__row { gap: 14px; padding: 10px 0; font-size: 13.5px; }
}

/* ==========================================================================
   Related games carousels (template-parts/related-games.php)
   ========================================================================== */
.ns-related {
	margin: 0 0 20px;
	padding: 16px 0 16px 18px;
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
.ns-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-right: 18px;
	margin-bottom: 14px;
}
.ns-related__title {
	margin: 0;
	padding-left: 10px;
	border-left: 3px solid var(--ns-accent);
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #1d1d1f;
}
.ns-related__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.ns-related__nav {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #e3e3e8;
	border-radius: 8px;
	background: #fff;
	color: #1d1d1f;
	cursor: pointer;
}
.ns-related__nav:hover { background: #f2f2f4; }
.ns-related__nav svg { width: 14px; height: 14px; }

.ns-related__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 190px;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding: 2px 18px 6px 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ns-related__track::-webkit-scrollbar { display: none; }
.ns-related__track > .ns-card { scroll-snap-align: start; }
.ns-related__track > .ns-card:hover { transform: none; }
.ns-related__track .ns-card__meta, .ns-coll-grid:not(.page-list) .ns-card__meta { font-size: 12px; gap: 4px; }
.ns-related__track .ns-card__size svg, .ns-coll-grid:not(.page-list) .ns-card__size svg { width: 11px; height: 11px; }
.ns-coll-grid:not(.page-list) .ns-card__body { padding: 9px 10px 11px; }

@media (max-width: 575px) {
	.ns-related { padding: 14px 0 14px 14px; border-radius: 12px; }
	.ns-related__head { padding-right: 14px; }
	.ns-related__title { font-size: 15.5px; }
	.ns-related__nav { display: none; }
	.ns-related__track { grid-auto-columns: 160px; gap: 10px; padding-right: 14px; }
}

/* ==========================================================================
   Game description (single.php) — readable post content
   ========================================================================== */
.ns-desc { padding-bottom: 18px; }
.ns-desc .ns-info__head {
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid #efeff2;
}

.ns-content {
	font-size: 15px;
	line-height: 1.7;
	color: #2c2c30;
	overflow-wrap: break-word;
}
.ns-content > :first-child { margin-top: 0; }
.ns-content > :last-child { margin-bottom: 0; }
.ns-content p { margin: 0 0 14px; }
.ns-content strong, .ns-content b { font-weight: 700; color: #1d1d1f; }
.ns-content a { color: var(--ns-accent); text-decoration: underline; text-underline-offset: 2px; }

.ns-content h2, .ns-content h3, .ns-content h4 {
	margin: 22px 0 10px;
	line-height: 1.35;
	font-weight: 700;
	color: #1d1d1f;
}
.ns-content h2 { font-size: 19px; }
.ns-content h3 { font-size: 17px; }
.ns-content h4 { font-size: 15.5px; }

/* Lists: the theme resets ul/ol globally, so bring markers back here */
.ns-content ul, .ns-content ol {
	margin: 0 0 16px;
	padding-left: 22px;
}
.ns-content ul { list-style: disc; }
.ns-content ol { list-style: decimal; }
.ns-content ul ul { list-style: circle; margin: 6px 0 0; }
.ns-content li {
	display: list-item;
	margin: 0 0 8px;
	padding-left: 4px;
	line-height: 1.65;
}
.ns-content li:last-child { margin-bottom: 0; }
.ns-content li::marker { color: var(--ns-accent); }

.ns-content img { max-width: 100%; height: auto; border-radius: 10px; }
.ns-content blockquote {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 3px solid var(--ns-accent);
	background: #f7f7f9;
	border-radius: 0 8px 8px 0;
}

@media (max-width: 575px) {
	.ns-content { font-size: 14.5px; }
	.ns-content ul, .ns-content ol { padding-left: 18px; }
}

/* ==========================================================================
   In-game screenshots carousel (single.php)
   ========================================================================== */
.ns-shots__track {
	grid-auto-columns: calc((100% - 24px) / 3.08);
}
.ns-shot {
	display: block;
	aspect-ratio: 16 / 9;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
	overflow: hidden;
	background: #ececf0;
	scroll-snap-align: start;
}
.ns-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.ns-shot:hover img { transform: scale(1.04); }

@media (max-width: 991px) {
	.ns-shots__track { grid-auto-columns: calc((100% - 12px) / 2.1); }
}
@media (max-width: 575px) {
	.ns-shots__track { grid-auto-columns: 82%; }
}

/* ==========================================================================
   Generic white panel + collection archive (taxonomy-collection.php)
   ========================================================================== */
.ns-panel {
	margin: 0 0 20px;
	padding: 18px 20px 20px;
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
.ns-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 14px;
}
.ns-panel__title {
	margin: 0;
	padding-left: 12px;
	border-left: 4px solid var(--ns-accent);
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	color: #1d1d1f;
}
.ns-panel__subtitle {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #1d1d1f;
}
.ns-panel__meta { font-size: 13px; color: #6e6e73; }
.ns-panel__meta b { color: #1d1d1f; font-weight: 600; }
.ns-panel__empty { margin: 0; color: #6e6e73; }

/* Grid / list switch */

.ns-coll-intro__desc { color: #3a3a3e; }

.ns-coll-grid:not(.page-list) #dle-content {
	display: grid;
}
.ns-coll-grid.page-list #dle-content { display: grid; grid-template-columns: 1fr !important; gap: 12px; }
.ns-coll-games .pagination, .ns-coll-games nav { margin-top: 18px; }

@media (max-width: 575px) {
	.ns-panel { padding: 14px 14px 16px; border-radius: 12px; }
	.ns-panel__title { font-size: 19px; }
	.ns-panel__subtitle { font-size: 15.5px; }
	.ns-coll-grid:not(.page-list) #dle-content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
}

/* ==========================================================================
   Other terms chips (template-parts/term-chips.php)
   ========================================================================== */
.ns-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ns-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 7px 6px 14px;
	border: 1px solid #e3e3e8;
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f !important;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none !important;
	transition: border-color .15s, background .15s;
}
.ns-chip:hover { border-color: #c9c9d0; background: #f7f7f9; }
.ns-chip__count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #f0f0f3;
	color: #6e6e73;
	font-size: 12px;
	font-weight: 600;
}
.ns-chip.is-current { border-color: var(--ns-accent); background: #fdecee; }
.ns-chip.is-current .ns-chip__count { background: var(--ns-accent); color: #fff; }

@media (max-width: 575px) {
	.ns-chip { font-size: 13px; padding: 5px 6px 5px 12px; }
}

/* Sort pills (term archives) */
.ns-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 16px;
}
.ns-sort__item {
	padding: 5px 12px;
	border: 1px solid #e3e3e8;
	border-radius: 999px;
	background: #fff;
	color: #3a3a3e !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none !important;
}
.ns-sort__item:hover { background: #f7f7f9; border-color: #c9c9d0; }
.ns-sort__item.is-active { border-color: var(--ns-accent); background: #fdecee; color: var(--ns-accent) !important; }

/* ==========================================================================
   Game page header (template-parts/game-hero.php)
   ========================================================================== */
.ns-hero {
	margin: 8px 0 20px;
	background: #fff;
	border: 1px solid #e6e6ea;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
	color: #1d1d1f;
}
.ns-hero__cover { flex: none; width: 150px; }
.ns-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 8;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.ns-hero__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ns-hero__by { font-size: 13px; color: #6e6e73; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; } /* publisher • all categories: wraps on phones */
.ns-hero__by a { color: inherit !important; text-decoration: none !important; font-weight: 500; }
.ns-hero__by a:hover { color: var(--ns-accent) !important; }
.ns-dot { margin: 0 7px; opacity: .6; }
.ns-hero__title {
	margin: 0 0 12px;
	font-size: 25px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.01em;
	color: inherit;
}
.ns-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ns-tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid #e3e3e8;
	border-radius: 999px;
	background: #f7f7f9;
	color: #3a3a3e !important;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
}
.ns-tag--teal { background: #e6faf5; border-color: #b6eadc; color: #0f8a6c !important; }
.ns-tag--red { background: #fdecee; border-color: #f6c4ca; color: var(--ns-accent) !important; }
.ns-tag--blue { background: #eef4ff; border-color: #c9dbfb; color: #1a5fd0 !important; }

.ns-hero__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.ns-hero__rating { display: flex; align-items: center; gap: 8px; }
.ns-hero__rating .rating { padding: 0 !important; }
.ns-hero__score { font-size: 13px; color: #6e6e73; }
.ns-hero__score b { color: #1d1d1f; }
.ns-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--ns-accent);
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(230, 0, 18, .28);
	transition: transform .15s, box-shadow .15s;
}
.ns-hero__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230, 0, 18, .34); }
.ns-hero__cta svg { width: 16px; height: 16px; }

/* B — white banner; the cover floats on a soft glow made from its own colours + stats strip */
.ns-hero--b .ns-hero__banner {
	display: flex;
	gap: 26px;
	padding: 24px;
	background: #fff;
}
.ns-hero--b .ns-hero__cover { position: relative; isolation: isolate; align-self: flex-start; }
.ns-hero--b .ns-hero__cover::before {
	content: "";
	position: absolute;
	inset: 14% 6% -4%;
	z-index: -1;
	border-radius: 16px;
	background: var(--ns-hero-bg) center / cover no-repeat;
	filter: blur(22px) saturate(1.6);
	opacity: .75;
}
.ns-hero--b .ns-hero__img {
	border-radius: 12px;
	outline: 1px solid rgba(0, 0, 0, .06);
	outline-offset: -1px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 14px 28px -8px rgba(0, 0, 0, .35);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ns-hero--b .ns-hero__cover:hover .ns-hero__img { transform: translateY(-3px) scale(1.015); box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 20px 36px -10px rgba(0, 0, 0, .4); }
.ns-hero--b .ns-hero__by { color: #6e6e73; }
.ns-hero--b .ns-hero__title { color: #1d1d1f; }
.ns-hero--b .ns-hero__stats { border-top: 1px solid #efeff2; }
.ns-hero__stats {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	margin: 0;
}
.ns-hero__stats:empty { display: none; }
.ns-hero__stats > div { padding: 12px 16px; text-align: center; border-left: 1px solid #efeff2; }
.ns-hero__stats > div:first-child { border-left: 0; }
.ns-hero__stats dt { margin: 0 0 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #8e8e93; }
.ns-hero__stats dd { margin: 0; font-size: 15px; font-weight: 700; }
.ns-hero__stats dd.is-ver { color: #b7791f; }

@media (max-width: 767px) {
	.ns-hero__cover { width: 112px; }
	.ns-hero__title { font-size: 20px; }
	.ns-hero--b .ns-hero__banner { gap: 16px; padding: 16px; }
	.ns-hero__stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ns-hero__stats > div:nth-child(odd) { border-left: 0; }
	.ns-hero__stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.ns-hero__stats > div:nth-child(n+3) { border-top: 1px solid #efeff2; }
	.ns-hero__foot { flex-direction: column; align-items: flex-start; }
}

/* Header "Download" button target: keep it clear of the fixed bars */
#ns-download { scroll-margin-top: 48px; }
@media (max-width: 991px) {
	#ns-download { scroll-margin-top: calc(var(--ns-topbar-h) + 60px); }
}

/* ==========================================================================
   DLC on eShop (template-parts/game-dlc.php)
   ========================================================================== */
.ns-dlc__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ns-dlc__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #efeff2;
	border-radius: 10px;
	background: #fafafb;
	font-size: 14px;
	line-height: 1.35;
	color: #1d1d1f;
}
.ns-dlc__item svg { flex: none; width: 16px; height: 16px; color: var(--ns-accent); }
.ns-dlc__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-dlc__item.is-extra { display: none; }
.ns-dlc.is-open .ns-dlc__item.is-extra { display: flex; }
.ns-dlc__more {
	margin-top: 12px;
	padding: 7px 16px;
	border: 1px solid #e3e3e8;
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ns-dlc__more:hover { background: #f7f7f9; }
@media (max-width: 575px) {
	.ns-dlc__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons: every action button on the site is red
   (UI toggles like the layout switch, carousel arrows and filter pills keep their own look)
   ========================================================================== */
:root { --ns-btn: #e60012; --ns-btn-hover: #c4000f; }

.btn-primary, .btn-success, .btn-dark, .btn.green, button.green, .button.green, .report-btn, .comment-submit, #download-link, .social-button, .ns-dlc__more, input[type="submit"], button[type="submit"]:not(.q_search_btn) {
	background: var(--ns-btn) !important;
	background-image: none !important;
	border: 1px solid var(--ns-btn) !important;
	color: #fff !important;
	box-shadow: none;
	transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary:hover, .btn-success:hover, .btn-dark:hover, .btn.green:hover, button.green:hover, .button.green:hover, .report-btn:hover, .comment-submit:hover, #download-link:hover, .social-button:hover, .ns-dlc__more:hover, input[type="submit"]:hover, button[type="submit"]:not(.q_search_btn):hover {
	background: var(--ns-btn-hover) !important;
	border-color: var(--ns-btn-hover) !important;
	color: #fff !important;
}
.btn-primary:focus-visible, .btn-success:focus-visible, .btn-dark:focus-visible, .report-btn:focus-visible, .comment-submit:focus-visible, #download-link:focus-visible, .social-button:focus-visible, .ns-dlc__more:focus-visible, input[type="submit"]:focus-visible, button[type="submit"]:focus-visible {
	outline: 2px solid rgba(230, 0, 18, .35);
	outline-offset: 2px;
}
.social-button .ns-ico, #download-link svg { color: #fff !important; }
.social-button .ns-ico { flex: none; margin-right: 8px; }

/* Big "Download for Free" button: rounded like the rest of the new design */
.btn-block .btn.green { border-radius: 12px; font-weight: 700; }

/* Download page tables (styles come from the add-on plugin in green) -> red */

/* ==========================================================================
   Game grids: same number of columns everywhere (home, category, type, collection, search),
   decided by the screen width only — so a grid inside a panel never drops a column.
   ========================================================================== */
.card-grid:has(> .ns-card), .page-grid:not(.page-list) #dle-content:has(> .ns-card), .ns-coll-grid:not(.page-list) #dle-content {
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 14px !important;
}
@media (min-width: 1440px) { .card-grid:has(> .ns-card), .page-grid:not(.page-list) #dle-content:has(> .ns-card), .ns-coll-grid:not(.page-list) #dle-content { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
@media (max-width: 1199px) { .card-grid:has(> .ns-card), .page-grid:not(.page-list) #dle-content:has(> .ns-card), .ns-coll-grid:not(.page-list) #dle-content { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 767px)  { .card-grid:has(> .ns-card), .page-grid:not(.page-list) #dle-content:has(> .ns-card), .ns-coll-grid:not(.page-list) #dle-content { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.ns-card { border-radius: 12px; }
.ns-card__body { padding: 9px 10px 11px; }
.ns-card__title { font-size: 14px; }
.ns-card__by { font-size: 12px; margin-bottom: 8px; }
.ns-card__meta { font-size: 12px; gap: 4px; }
.ns-badge { font-size: 10px; padding: 2px 7px; }

@media (max-width: 575px) {
	.card-grid:has(> .ns-card), .page-grid:not(.page-list) #dle-content:has(> .ns-card), .ns-coll-grid:not(.page-list) #dle-content {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}
}

/* ==========================================================================
   Tutorials / tips archive (taxonomy-tip_cat.php)
   ========================================================================== */
.ns-tips__desc { margin-bottom: 16px; }
.ns-tips__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.ns-tip {
	display: flex;
	flex-direction: column;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	transition: box-shadow .18s, transform .18s;
}
.ns-tip:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .10); transform: translateY(-2px); }
.ns-tip__img { display: block; aspect-ratio: 16 / 9; background: #ececf0; overflow: hidden; }
.ns-tip__img picture { display: block; height: 100%; }
.ns-tip__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns-tip__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.ns-tip__date { font-size: 12px; color: #8e8e93; }
.ns-tip__title {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.35;
	font-weight: 700;
	color: #1d1d1f;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ns-tip:hover .ns-tip__title { color: var(--ns-accent); }
.ns-tip__excerpt {
	font-size: 13.5px;
	line-height: 1.5;
	color: #6e6e73;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   Single article (single-tip.php)
   ========================================================================== */
.ns-article { padding: 28px 32px 32px; }
.ns-article__head, .ns-article__body { max-width: 760px; margin-left: auto; margin-right: auto; }
.ns-article__cat {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ns-accent) !important;
	text-decoration: none !important;
}
.ns-article__title {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #1d1d1f;
}
.ns-article__meta { display: flex; gap: 6px; font-size: 13px; color: #8e8e93; }
.ns-article__cover { max-width: 860px; margin: 22px auto 26px; }
.ns-article__cover img { display: block; width: 100%; height: auto; border-radius: 14px; }
.ns-article__body { font-size: 16.5px; line-height: 1.75; }
.ns-article__body p { margin-bottom: 16px; }
.ns-article__body h2 { font-size: 22px; margin-top: 30px; }
.ns-article__body h3 { font-size: 19px; margin-top: 26px; }
.ns-tip__title { font-size: 15px; }

@media (max-width: 575px) {
	.ns-article { padding: 18px 16px 22px; }
	.ns-article__title { font-size: 23px; }
	.ns-article__cover { margin: 16px -16px 20px; }
	.ns-article__cover img { border-radius: 0; }
	.ns-article__body { font-size: 15.5px; }
}
/* Headings that are links inside article/description text: keep them looking like headings */
.ns-content h2 a, .ns-content h3 a, .ns-content h4 a { color: inherit !important; text-decoration: none !important; }
.ns-content h2 a:hover, .ns-content h3 a:hover, .ns-content h4 a:hover { color: var(--ns-accent) !important; }

/* Home: articles as a one-row slider (compact: no excerpt) */
.ns-home-tips .ns-related__track { grid-auto-columns: 250px; }
.ns-home-tips .ns-tip { scroll-snap-align: start; }
.ns-home-tips .ns-tip:hover { transform: none; }
.ns-home-tips .ns-tip__excerpt { display: none; }
.ns-home-tips .ns-tip__body { padding: 10px 12px 12px; gap: 4px; }
.ns-home-tips .ns-tip__title { font-size: 14px; }
@media (max-width: 575px) {
	.ns-home-tips .ns-related__track { grid-auto-columns: 78%; }
}

/* "See all" pill: home game sections + sliders (.ns-related__all) */
section.main-page > .title > a[href], .ns-related__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 4px;
	padding: 6px 14px;
	border: 1px solid #f6c4ca;
	border-radius: 999px;
	background: #fdecee;
	color: var(--ns-accent) !important;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
section.main-page > .title > a[href]::after { content: "→"; transition: transform .15s; }
.ns-related__all span { transition: transform .15s; }
section.main-page > .title > a[href]:hover, .ns-related__all:hover { background: var(--ns-accent); border-color: var(--ns-accent); color: #fff !important; text-decoration: none !important; }
section.main-page > .title > a[href]:hover::after, .ns-related__all:hover span { transform: translateX(2px); }

/* Home: game section titles — same red-bar heading as the sliders */
section.main-page > .title { align-items: center !important; margin-bottom: 14px !important; }
section.main-page > .title > h2 {
	margin: 0;
	padding-left: 10px;
	border-left: 3px solid var(--ns-accent);
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #1d1d1f;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 575px) {
	section.main-page > .title > h2 { font-size: 15.5px; }
}

/* ==========================================================================
   Download page (download.php)
   ========================================================================== */
.ns-dl-head { display: flex; gap: 18px; align-items: center; padding: 18px; }
.ns-dl-head__cover { flex: none; width: 92px; }
.ns-dl-head__cover img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.ns-dl-head__main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ns-dl-head__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ns-accent); }
.ns-dl-head__title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; color: #1d1d1f; }
.ns-dl-head__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ns-dl-head .ns-hero__rating .rating { padding: 0 !important; }

.versions-block > h2, .ns-dl-subtitle { margin: 6px 0 12px; font-size: 17px; font-weight: 700; color: #1d1d1f; }

/* file list */
.ns-dl-files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ns-dl-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 12px;
	border: 1px solid #efeff2;
	border-radius: 12px;
	background: #fafafb;
	transition: border-color .15s, background .15s;
}
.ns-dl-file:hover { border-color: #f6c4ca; background: #fff; }
.ns-dl-file__icon {
	flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 9px; background: #fdecee; color: var(--ns-accent);
}
.ns-dl-file__icon svg { width: 17px; height: 17px; }
.ns-dl-file__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ns-dl-file__name { font-size: 14.5px; font-weight: 600; color: #1d1d1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-dl-file__meta { font-size: 12.5px; color: #8e8e93; }
.ns-dl-file__btn {
	flex: none; display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: 999px;
	background: var(--ns-btn); color: #fff !important; font-size: 13.5px; font-weight: 700;
	text-decoration: none !important; transition: background .15s;
}
.ns-dl-file__btn:hover { background: var(--ns-btn-hover); }
.ns-dl-file__btn svg { width: 14px; height: 14px; }

/* "link is almost ready" step */
.ns-dl-ready { text-align: center; padding: 22px 20px; }
.ns-dl-ready p { margin: 0 0 12px; color: #3a3a3e; }
.ns-dl-ready .progress { height: 8px; border-radius: 999px; background: #f0f0f3; max-width: 420px; margin: 0 auto; }
.ns-dl-ready .progress-bar { background: var(--ns-accent) !important; border-radius: 999px; }
.ns-dl-ready #download-link { border-radius: 999px !important; padding: 10px 24px !important; font-size: 15px; }

/* Telegram / socials */
.ns-dl-social .ns-related__title { margin-bottom: 12px; }
.ns-dl-social .social-buttons-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ns-dl-social .social-button { border-radius: 999px !important; padding: 8px 18px !important; font-weight: 600; }

/* FAQ */
.ns-dl-faq .ns-related__title { margin-bottom: 6px; }
.ns-dl-faq .faq-item { border-top: 1px solid #efeff2; margin: 0 !important; padding: 0 !important; background: none !important; }
.ns-dl-faq .faq-item:first-child { border-top: 0; }
.ns-dl-faq .faq-title a {
	display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
	padding: 13px 0 !important; font-size: 14.5px; font-weight: 600; color: #1d1d1f !important; text-decoration: none !important;
}
.ns-dl-faq .faq-title a:hover { color: var(--ns-accent) !important; }
.ns-dl-faq .faq-title svg { flex: none; width: 20px; height: 20px; color: #8e8e93; transition: transform .2s; }
.ns-dl-faq .faq-title a[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--ns-accent); }
.ns-dl-faq .faq-content > div { font-size: 14px; line-height: 1.65; color: #3a3a3e; padding-bottom: 12px; margin: 0 !important; }

@media (max-width: 575px) {
	.ns-dl-head { padding: 14px; gap: 14px; }
	.ns-dl-head__cover { width: 72px; }
	.ns-dl-head__title { font-size: 18px; }
	.ns-dl-file { flex-wrap: wrap; }
	.ns-dl-file__btn { width: 100%; justify-content: center; }
}
.ns-coll-intro .ns-panel__head:last-child { margin-bottom: 0; }

/* Site name: identical on every page (it is an H1 on the home page, a span elsewhere,
   and the theme's global h1 rules made it look lighter there) */
.ns-brand .ns-brand__text {
	margin: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif !important;
	font-size: 20px !important;
	line-height: 1.2 !important;
	font-weight: 800 !important;
	letter-spacing: -.02em !important;
	color: #1d1d1f !important;
	text-transform: none !important;
}

/* ==========================================================================
   Collections page (page-collections.php)
   ========================================================================== */
.ns-colls__intro { margin-bottom: 16px; }
.ns-colls__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.ns-coll {
	display: flex;
	flex-direction: column;
	border: 1px solid #e6e6ea;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	transition: box-shadow .18s, transform .18s, border-color .18s;
}
.ns-coll:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .10); border-color: #f6c4ca; }
/* three covers fanned side by side */
.ns-coll__covers {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 0;
	height: 150px;
	padding: 16px 12px 0;
	background: linear-gradient(180deg, #f7f7f9, #eeeef2);
	overflow: hidden;
}
.ns-coll__covers img {
	width: 31%;
	aspect-ratio: 5 / 8;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	transition: transform .25s;
}
.ns-coll__covers img:nth-child(1) { transform: translateX(10%) rotate(-6deg); z-index: 1; }
.ns-coll__covers img:nth-child(2) { transform: translateY(-6px); z-index: 2; }
.ns-coll__covers img:nth-child(3) { transform: translateX(-10%) rotate(6deg); z-index: 1; }
.ns-coll:hover .ns-coll__covers img:nth-child(1) { transform: translateX(4%) rotate(-9deg); }
.ns-coll:hover .ns-coll__covers img:nth-child(3) { transform: translateX(-4%) rotate(9deg); }
.ns-coll__covers img:only-child { transform: translateY(-6px); }
.ns-coll__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.ns-coll__name { min-width: 0; font-size: 15px; line-height: 1.3; font-weight: 700; color: #1d1d1f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ns-coll:hover .ns-coll__name { color: var(--ns-accent); }
.ns-coll__count {
	flex: none; padding: 2px 9px; border-radius: 999px;
	background: #f0f0f3; color: #6e6e73; font-size: 12px; font-weight: 600;
}
@media (max-width: 575px) {
	.ns-colls__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ns-coll__covers { height: 110px; padding: 12px 8px 0; }
	.ns-coll__body { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 11px; }
	.ns-coll__name { font-size: 14px; max-width: 100%; }
}

/* Moved from an inline <style> in header.php (kept last, as before) */
main, .home_custom, .single_game { padding: 0; }
.single_game .help-block { display: flex; align-items: center; padding: 16px 24px; border: 1px solid #e7e7e7; border-radius: 8px; margin-bottom: 32px; }

/* Installation Instruction (single game): same card as the other sections; a red notice line becomes a soft alert */
.ns-install li:has(> strong[style*="color"]) { list-style: none; margin: 12px 0 0 -20px; padding: 10px 14px; background: #fdf0f0; border-left: 3px solid var(--ns-accent); border-radius: 8px; }
.ns-install li > strong[style*="color"] { color: #c62828 !important; font-weight: 600; }


/* Help box + comments (single game): plain panels like the rest of the page */
.ns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.ns-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; }
.ns-help__text { font-size: 15px; color: #3a3a3e; }
.ns-comments__count { margin-left: 4px; color: #8e8e93; font-weight: 500; }
.ns-comment-form { display: grid; gap: 10px; }
.ns-comment-form .form-control { width: 100%; height: auto; padding: 10px 14px; border: 1px solid #e3e3e8; border-radius: 10px; background: #fafafb; font-size: 15px; box-shadow: none; resize: vertical; }
.ns-comment-form .form-control:focus { border-color: var(--ns-accent); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(230, 0, 18, .1); }
.ns-comment-form__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.ns-comment-form .alert { margin: 0; }
.ns-cmt-list { margin-top: 18px; border-top: 1px solid #efeff2; }
.ns-cmt-thread { padding: 14px 0; border-bottom: 1px solid #efeff2; }
.ns-cmt-thread:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-cmt-children { margin: 12px 0 0 42px; padding-left: 14px; border-left: 2px solid #efeff2; display: grid; gap: 12px; }
.ns-cmt__head { display: flex; align-items: center; gap: 10px; }
.ns-cmt__avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fdecee; color: var(--ns-accent); font-size: 14px; font-weight: 700; }
.ns-cmt__name { font-weight: 600; color: #1d1d1f; overflow-wrap: anywhere; }
.ns-cmt__date { font-size: 12.5px; color: #8e8e93; }
.ns-cmt__reply { margin-left: auto; font-size: 13px; color: #6e6e73 !important; text-decoration: none !important; }
.ns-cmt__reply:hover { color: var(--ns-accent) !important; }
.ns-cmt__text { margin: 6px 0 0 42px; font-size: 15px; line-height: 1.6; color: #3a3a3e; overflow-wrap: anywhere; }
@media (max-width: 575px) {
	.ns-help { flex-direction: column; align-items: stretch; text-align: center; }
	.ns-comment-form__row { grid-template-columns: 1fr; }
}

/* Breadcrumb: small grey trail, links turn red on hover, current page dark */
.bread-crumbs { margin: 4px 0 12px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0 !important; background: none !important; font-size: 13.5px; font-weight: 500; line-height: 1.5; list-style: none; }
.breadcrumb-item { display: inline-flex; align-items: center; min-width: 0; color: #1d1d1f; }
.breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; float: none; padding: 0 8px; color: #c7c7cc; font-weight: 400; }
.breadcrumb-item a { color: #6e6e73 !important; text-decoration: none !important; transition: color .15s; }
.breadcrumb-item a:hover { color: var(--ns-accent) !important; }
.breadcrumb-item.active { color: #1d1d1f; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ROMs index (page-posts.php): plain list, red on hover */
.page-template-page-posts .list-item a { color: #1d1d1f; font-weight: 500; }
.page-template-page-posts .list-item a:hover { color: var(--ns-accent); }

/* One-line summary under the game title (field: short_description) */
.ns-hero__short { margin: 0 0 14px; max-width: 560px; font-size: 15px; line-height: 1.5; color: #3a3a3e; }
@media (max-width: 575px) { .ns-hero__short { font-size: 14px; margin-bottom: 10px; } }

/* "Coming soon" notice on games in the Up Coming badge */
.ns-upcoming { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px 18px; background: #fff8e6; border: 1px solid #f5dfa3; border-left: 4px solid #f0a500; border-radius: 14px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif; }
.ns-upcoming__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fdecc0; color: #b26b00; }
.ns-upcoming__icon svg { width: 20px; height: 20px; }
.ns-upcoming__text { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.45; color: #6b4a00; }
.ns-upcoming__text strong { font-size: 15.5px; font-weight: 700; color: #4a3300; }
.ns-upcoming__text b { color: #4a3300; }


/* 404 page */
.ns-404 { padding: 40px 20px 36px; text-align: center; }
.ns-404__code { font-size: 96px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #1d1d1f; }
.ns-404__code span { color: var(--ns-accent); }
.ns-404__title { margin: 14px 0 8px; font-size: 24px; font-weight: 700; color: #1d1d1f; }
.ns-404__text { margin: 0 auto 22px; max-width: 460px; font-size: 15px; line-height: 1.6; color: #6e6e73; }
.ns-404__search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 16px; }
.ns-404__search input { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid #e3e3e8; border-radius: 999px; background: #fafafb; font-size: 15px; outline: none; }
.ns-404__search input:focus { border-color: var(--ns-accent); background: #fff; box-shadow: 0 0 0 3px rgba(230, 0, 18, .1); }
.ns-404__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.ns-404__link { color: #6e6e73 !important; font-weight: 600; text-decoration: none !important; }
.ns-404__link:hover { color: var(--ns-accent) !important; }
@media (max-width: 575px) { .ns-404__code { font-size: 72px; } .ns-404__title { font-size: 20px; } }
.ns-404 .ns-404__title, .ns-404 .ns-404__text { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Store link in the Information table (field: offsite) */
.ns-info__ext { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ns-info__ext svg { width: 11px; height: 11px; }

/* Switch emulators page (page-emulators.php) */
.ns-emu { display: grid; gap: 14px; }
.ns-emu__head { display: flex; align-items: center; gap: 12px; }
.ns-emu__rank { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fdecee; color: var(--ns-accent); font-weight: 800; font-size: 15px; }
.ns-emu__title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ns-emu__name { margin: 0; font-size: 20px; font-weight: 800; color: #1d1d1f; }
.ns-emu__status { padding: 2px 9px; border-radius: 999px; background: #e6faf5; color: #0f8a6c; font-size: 12px; font-weight: 600; }
.ns-emu__status.is-off { background: #f2f2f5; color: #6e6e73; }
.ns-emu__score { flex: none; text-align: right; line-height: 1; }
.ns-emu__score b { font-size: 26px; font-weight: 800; color: var(--ns-accent); }
.ns-emu__score small { margin-left: 2px; font-size: 13px; color: #8e8e93; }
.ns-emu__pf { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ns-emu__pf li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #e6e6ea; border-radius: 999px; font-size: 13px; font-weight: 500; color: #3a3a3e; }
.ns-emu__pf svg { width: 15px; height: 15px; color: #1d1d1f; }
.ns-emu__desc { margin: 0; font-size: 15px; line-height: 1.6; color: #3a3a3e; }
.ns-emu h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8e8e93; }
.ns-emu__req { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; margin: 0; }
.ns-emu__req div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f0f3; font-size: 14px; }
.ns-emu__req dt { flex: none; min-width: 70px; font-weight: 600; color: #1d1d1f; }
.ns-emu__req dd { margin: 0; color: #3a3a3e; }
.ns-emu__pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ns-emu__pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ns-emu__pc li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: #3a3a3e; }
.ns-emu__pc li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.ns-emu__pc .is-pro li::before { content: "+"; color: #0f8a6c; }
.ns-emu__pc .is-con li::before { content: "\2212"; color: var(--ns-accent); }
.ns-emu__btn { justify-self: start; color: #fff !important; background: var(--ns-accent); text-decoration: none !important; }
.ns-emu__btn:hover { background: #c4000f; }
@media (max-width: 575px) { .ns-emu__pc { grid-template-columns: 1fr; } .ns-emu__name { font-size: 18px; } .ns-emu__btn { justify-self: stretch; } }

/* Switch firmware page (page-firmware.php) */
.ns-fw-intro .ns-panel__head:last-child { margin-bottom: 0; }
.ns-fw { padding: 0; overflow: hidden; }
.ns-fw__sum { display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; user-select: none; }
.ns-fw__sum::-webkit-details-marker { display: none; }
.ns-fw__major { font-size: 17px; font-weight: 800; color: #1d1d1f; }
.ns-fw__count { font-size: 13px; color: #8e8e93; }
.ns-fw__chev { width: 16px; height: 16px; margin-left: auto; color: #8e8e93; transition: transform .2s; }
.ns-fw[open] .ns-fw__chev { transform: rotate(180deg); }
.ns-fw__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #f0f0f3; }
.ns-fw__row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 6px 18px; padding: 12px 20px; border-bottom: 1px solid #f0f0f3; }
.ns-fw__row:last-child { border-bottom: 0; }
.ns-fw__ver { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ns-fw__ver b { font: 700 16px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1d1d1f; }
.ns-fw__ver time { flex-basis: 100%; font-size: 12px; color: #8e8e93; }
.ns-fw__new { padding: 1px 7px; border-radius: 999px; background: #fdecee; color: var(--ns-accent); font-size: 11px; font-weight: 700; }
.ns-fw__log { min-width: 0; font-size: 14px; line-height: 1.5; color: #3a3a3e; }
.ns-fw__log p, .ns-fw__log ul { margin: 0; }
.ns-fw__log ul { padding-left: 18px; }
.ns-fw__dl { display: flex; gap: 6px; }
.ns-fw__btn { padding: 6px 12px; border: 1px solid #e3e3e8; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; color: #1d1d1f !important; text-decoration: none !important; }
.ns-fw__btn:hover { border-color: var(--ns-accent); color: var(--ns-accent) !important; }
.ns-fw__btn.is-off { color: #b0b0b5 !important; background: #fafafb; border-color: #f0f0f3; cursor: default; }
@media (max-width: 767px) { .ns-fw__row { grid-template-columns: 1fr; padding: 12px 16px; } .ns-fw__sum { padding: 14px 16px; } .ns-fw__ver time { flex-basis: auto; } }

/* MIG collection page (page-mig.php) */
.ns-mig__intro { margin-bottom: 14px; }
.ns-mig__find { width: 100%; max-width: 320px; margin-bottom: 12px; padding: 8px 14px; border: 1px solid #e3e3e8; border-radius: 999px; background: #fafafb; font-size: 14px; outline: none; }
.ns-mig__find:focus { border-color: var(--ns-accent); background: #fff; }
.ns-mig__wrap { overflow-x: auto; }
.ns-mig__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ns-mig__table th { padding: 8px 10px; border-bottom: 1px solid #e6e6ea; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8e8e93; white-space: nowrap; }
.ns-mig__table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f3; color: #3a3a3e; vertical-align: middle; }
.ns-mig__table tbody tr:hover { background: #fafafb; }
.ns-mig__name { font-weight: 600; color: #1d1d1f !important; }
.ns-mig__version, .ns-mig__title-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: nowrap; }
.ns-mig__st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #e6faf5; color: #0f8a6c; }
.ns-mig__st.is-dl, .ns-mig__st.is-online { background: #e8f1ff; color: #1a5fd0; }
.ns-mig__st.is-ufd, .ns-mig__st.is-md { background: #fff4e0; color: #9a6200; }
.ns-mig__title-id { color: #8e8e93 !important; font-size: 12px !important; }
.ns-mig__languages, .ns-mig__notes { font-size: 13px; color: #6e6e73 !important; white-space: nowrap; }
.ns-mig__dl { text-align: right; }
.ns-mig__btn { display: inline-block; padding: 6px 14px; border-radius: 8px; background: var(--ns-accent); color: #fff !important; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.ns-mig__btn:hover { background: #c4000f; }
.ns-mig__btn.is-off { background: #f2f2f5; color: #b0b0b5 !important; cursor: default; }
@media (max-width: 767px) {
	.ns-mig__table thead { display: none; }
	.ns-mig__table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f3; }
	.ns-mig__table td { padding: 0; border: 0; }
	.ns-mig__table td[data-label] { grid-column: 1; font-size: 12px; color: #8e8e93; }
	.ns-mig__table td[data-label]::before { content: attr(data-label) ": "; }
	.ns-mig__name { grid-column: 1; }
	.ns-mig__dl { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
.ns-mig-guide__item { border-top: 1px solid #f0f0f3; }
.ns-mig-guide__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: #1d1d1f; }
.ns-mig-guide__item summary::-webkit-details-marker { display: none; }
.ns-mig-guide__item summary:hover { color: var(--ns-accent); }
.ns-mig-guide__item summary svg { flex: none; width: 16px; height: 16px; color: #8e8e93; transition: transform .2s; }
.ns-mig-guide__item[open] summary svg { transform: rotate(180deg); }
.ns-mig-guide__body { padding: 0 2px 16px; font-size: 14.5px; line-height: 1.65; color: #3a3a3e; }
.ns-mig-guide__body > :last-child { margin-bottom: 0; }
.ns-mig-guide__body ul, .ns-mig-guide__body ol { padding-left: 20px; }

/* Update history (template-parts/game-changelog.php) + hero line */
.ns-hero__upd { display: inline-flex; align-items: center; gap: 7px; margin: -4px 0 12px; font-size: 13px; font-weight: 600; color: #0f8a6c !important; text-decoration: none !important; }
.ns-hero__upd:hover { color: #0b6e56 !important; }
.ns-hero__upd-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ec4a0; box-shadow: 0 0 0 3px rgba(46, 196, 160, .2); }
.ns-cl__list { position: relative; margin: 0; padding: 4px 0 0 18px; list-style: none; }
.ns-cl__list::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; background: #ececf0; }
.ns-cl__item { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; font-size: 14px; }
.ns-cl__item.is-extra { display: none; }
.ns-cl.is-open .ns-cl__item.is-extra { display: flex; }
.ns-cl__dot { position: absolute; left: -18px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #c7c7cc; }
.ns-cl__item:first-child .ns-cl__dot { border-color: #2ec4a0; background: #2ec4a0; }
.ns-cl__date { min-width: 92px; font-size: 13px; color: #8e8e93; font-variant-numeric: tabular-nums; }
.ns-cl__type { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f2f2f5; color: #6e6e73; }
.ns-cl__item.is-update .ns-cl__type { background: #e6faf5; color: #0f8a6c; }
.ns-cl__item.is-dlc .ns-cl__type { background: #f1ebff; color: #6a3fd0; }
.ns-cl__item.is-release .ns-cl__type { background: #fdecee; color: var(--ns-accent); }
.ns-cl__item.is-links .ns-cl__type { background: #eef4ff; color: #1a5fd0; }
.ns-cl__text { flex: 1 1 200px; color: #1d1d1f; }
.ns-cl__more { margin-top: 6px; padding: 6px 14px; border: 1px solid #e3e3e8; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #3a3a3e; cursor: pointer; }
.ns-cl__more:hover { border-color: var(--ns-accent); color: var(--ns-accent); }

/* "Report" next to download links (download.php) + link under the game page Download button */
.ns-dl-file__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.ns-dl-file__report { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid #e3e3e8; border-radius: 8px; background: #fff; color: #8e8e93; font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; }
.ns-dl-file__report svg { width: 13px; height: 13px; }
.ns-dl-file__report:hover { border-color: var(--ns-accent); color: var(--ns-accent); }
.ns-dl-report-link { display: block; margin: 8px auto 0; padding: 2px 4px; border: 0; background: none; color: #8e8e93; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ns-dl-report-link:hover { color: var(--ns-accent); }
@media (max-width: 575px) { .ns-dl-file__report span { display: none; } .ns-dl-file__report { padding: 8px; } }

/* Recently Updated page (page-updates.php) */
.ns-upd-intro .ns-panel__head:last-child { margin-bottom: 0; }
.ns-upd-rss { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #f3d3b5; border-radius: 999px; background: #fff6ec; color: #c25e00 !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.ns-upd-rss svg { width: 14px; height: 14px; }
.ns-upd-rss:hover { background: #ffecd6; }
.ns-upd-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ns-upd-chip { padding: 6px 12px; border: 1px solid #e3e3e8; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #3a3a3e; cursor: pointer; }
.ns-upd-chip b { margin-left: 3px; color: #8e8e93; font-weight: 600; }
.ns-upd-chip.is-active { border-color: var(--ns-accent); background: #fdecee; color: var(--ns-accent); }
.ns-upd-chip.is-active b { color: var(--ns-accent); }
.ns-upd-day__title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #1d1d1f; }
.ns-upd-day__title small { margin-left: 6px; font-size: 13px; font-weight: 600; color: #8e8e93; }
.ns-upd-list { margin: 0; padding: 0; list-style: none; }
.ns-upd-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f0f3; }
.ns-upd-item:first-child { border-top: 0; }
.ns-upd-item__cover { flex: none; width: 48px; height: 78px; border-radius: 6px; overflow: hidden; background: #f2f2f5; }
.ns-upd-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-upd-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ns-upd-item__name { font-size: 15px; font-weight: 700; color: #1d1d1f !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-upd-item__name:hover { color: var(--ns-accent) !important; }
.ns-upd-item__text { font-size: 13.5px; color: #3a3a3e; }
.ns-upd-item__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ns-upd-item__type { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e6faf5; color: #0f8a6c; }
.ns-upd-item.is-dlc .ns-upd-item__type { background: #f1ebff; color: #6a3fd0; }
.ns-upd-item.is-release .ns-upd-item__type { background: #fdecee; color: var(--ns-accent); }
.ns-upd-item.is-links .ns-upd-item__type { background: #eef4ff; color: #1a5fd0; }
.ns-upd-item__ver { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8e8e93; }

/* Built-in logo (template-parts/app-shell.php): mark + wordmark */
.ns-brand .ns-brand__text { display: inline-flex !important; align-items: center; gap: 9px; }
.ns-brand__mark { width: 32px; height: 32px; flex: none; border-radius: 9px; box-shadow: 0 4px 10px -3px rgba(230, 0, 18, .45); transition: transform .2s; }
.ns-brand:hover .ns-brand__mark { transform: rotate(-6deg) scale(1.05); }
.ns-brand__word { font-size: 21px; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #1d1d1f; }
.ns-brand__word em { font-style: normal; color: var(--ns-accent); }
.ns-brand__word small { margin-left: 1px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: #a1a1a6; }

/* ==========================================================================
   Home: Upcoming Games (compact list, data from IGDB cached daily)
   ========================================================================== */
.ns-up__list { list-style: none; margin: 0; padding: 0 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.ns-up__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #efeff2; min-width: 0; }
.ns-up__item img { flex: none; width: 45px; height: 60px; object-fit: cover; border-radius: 6px; background: #f2f2f4; }
.ns-up__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ns-up__name { font-weight: 600; font-size: 14.5px; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-up__date { font-size: 12.5px; color: #86868b; }
.ns-up__in { flex: none; font-size: 12px; font-weight: 600; color: #e60012; background: #fff0f1; border-radius: 999px; padding: 3px 9px; }
@media (max-width: 767px) {
	.ns-up__list { grid-template-columns: 1fr; padding-right: 14px; }
	.ns-up__name { font-size: 14px; }
}
@media (max-width: 767px) { .ns-up__item:nth-child(n+7) { display: none; } }

/* Instant search suggestions (js/instant-search.js) */
.ns-is { position: fixed; z-index: 1100; overflow-y: auto; background: #fff; border: 1px solid var(--ns-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; font-size: 14px; }
.ns-is[hidden] { display: none; }
.ns-is__item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--ns-text); text-decoration: none; }
.ns-is__item:hover, .ns-is__item.is-sel { background: var(--ns-hover); color: var(--ns-text); text-decoration: none; }
.ns-is__item img, .ns-is__ph { flex: none; width: 36px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--ns-side-bg); }
.ns-is__txt { min-width: 0; display: flex; flex-direction: column; }
.ns-is__title { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-is__title mark { padding: 0; background: none; color: var(--ns-accent); }
.ns-is__meta { color: var(--ns-muted); font-size: 12px; }
.ns-is__empty { padding: 10px 8px; color: var(--ns-muted); }
.ns-is__all { display: block; width: 100%; margin-top: 4px; padding: 9px 8px; border: 0; border-top: 1px solid var(--ns-line); background: none; color: var(--ns-text); font-weight: 600; text-align: left; cursor: pointer; }
.ns-is__all:hover { color: var(--ns-accent); }

/* Follow a game (inc/follow.php, js/follow.js) */
.ns-hero__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ns-follow { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--ns-line); border-radius: 999px; background: #fff; color: var(--ns-text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.ns-follow:hover { border-color: #a1a1aa; }
.ns-follow svg { width: 16px; height: 16px; }
.ns-follow__on { display: none; }
.ns-follow.is-on { background: #fdecee; border-color: #f6c4ca; color: var(--ns-accent); }
.ns-follow.is-on svg { fill: currentColor; }
.ns-follow.is-on .ns-follow__on { display: inline; }
.ns-follow.is-on .ns-follow__off { display: none; }
.ns-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1200; width: max-content; max-width: min(420px, calc(100vw - 32px)); padding: 12px 40px 12px 16px; border-radius: 14px; background: #1d1d1f; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.ns-toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ns-toast a { display: block; margin-top: 4px; color: #fff; text-decoration: none; }
.ns-toast a:hover { text-decoration: underline; }
.ns-toast__head { font-weight: 700; }
.ns-toast__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #a1a1aa; font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) { .ns-toast { bottom: calc(var(--ns-tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); } }

/* Game votes (inc/game-votes.php): links work? + Eden / Ryujinx */
.ns-gv { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--ns-line); border-radius: 14px; background: #fff; font-size: 14px; }
.ns-gv__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.ns-gv__q { font-weight: 700; color: var(--ns-text); }
.ns-gv__btns { display: flex; gap: 8px; }
.ns-gv__btn, .ns-gv__opt { border: 1px solid var(--ns-line); background: #fff; color: var(--ns-text); font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.ns-gv__btn { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; }
.ns-gv__btn b { margin-left: 2px; color: var(--ns-muted); font-weight: 700; }
.ns-gv__btn:hover, .ns-gv__opt:hover { border-color: #a1a1aa; }
.ns-gv__btn.is-ok.is-on { background: #e6faf5; border-color: #b6eadc; color: #0f8a6c; }
.ns-gv__btn.is-bad.is-on { background: #fdecee; border-color: #f6c4ca; color: var(--ns-accent); }
.ns-gv__btn.is-on b { color: inherit; }
.ns-gv__sum { margin: 8px 0 0; color: var(--ns-muted); font-size: 13px; }
.ns-gv__sum.is-warn { color: var(--ns-accent); font-weight: 600; }
.ns-gv__thanks { margin: 6px 0 0; font-size: 13px; color: var(--ns-text); }
.ns-gv__more { padding: 0; border: 0; background: none; color: var(--ns-accent); font-weight: 600; cursor: pointer; }
.ns-gv__emu { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f0f3; display: flex; flex-direction: column; gap: 10px; }
.ns-gv__erow { display: grid; grid-template-columns: 70px auto 1fr auto; align-items: center; gap: 10px; }
.ns-gv__ename { font-weight: 700; }
.ns-gv__seg { display: inline-flex; }
.ns-gv__opt { padding: 5px 10px; font-size: 12.5px; margin-left: -1px; }
.ns-gv__opt:first-child { border-radius: 999px 0 0 999px; margin-left: 0; }
.ns-gv__opt:last-child { border-radius: 0 999px 999px 0; }
.ns-gv__opt.is-on[data-val="2"] { background: #e6faf5; border-color: #b6eadc; color: #0f8a6c; position: relative; }
.ns-gv__opt.is-on[data-val="1"] { background: #fff6ec; border-color: #f3d3b5; color: #c25e00; position: relative; }
.ns-gv__opt.is-on[data-val="0"] { background: #fdecee; border-color: #f6c4ca; color: var(--ns-accent); position: relative; }
.ns-gv__bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #f0f0f3; min-width: 60px; }
.ns-gv__bar i { display: block; height: 100%; transition: width .3s; }
.ns-gv__bar .s2 { background: #22b38a; } .ns-gv__bar .s1 { background: #f0a040; } .ns-gv__bar .s0 { background: #e5484d; }
.ns-gv__esum { font-size: 12.5px; color: var(--ns-muted); white-space: nowrap; }
@media (max-width: 575px) {
	.ns-gv__erow { grid-template-columns: 62px 1fr; }
	.ns-gv__bar { grid-column: 1 / -1; }
	.ns-gv__esum { grid-column: 1 / -1; margin-top: -6px; }
}
