/* DayuPress 2.3.2 front restyle — light / dark tokens, shared chrome, page layouts. */

html {
	--dp-bg: #f5f6fb;
	--dp-surface: #ffffff;
	--dp-surface-2: #eef0f6;
	--dp-bg-elevated: #ffffff;
	--dp-text: #12141a;
	--dp-text-muted: #6b7280;
	--dp-text-dim: #9aa0a6;
	--dp-border: #e6e8ef;
	--dp-border-strong: rgba(21, 25, 36, 0.16);
	--dp-accent: #2563eb;
	--dp-accent-hover: #1d4ed8;
	--dp-accent-soft: rgba(37, 99, 235, 0.12);
	--dp-accent-deep: #1e40af;
	--dp-primary: #151924;
	--dp-primary-hover: #0c0f16;
	--dp-vip: #f26b21;
	--dp-vip-hover: #e05e16;
	--dp-vip-soft: rgba(242, 107, 33, 0.14);
	--dp-free: #22a86b;
	--dp-free-soft: rgba(34, 168, 107, 0.14);
	--dp-wait: #3b82f6;
	--dp-wait-soft: rgba(59, 130, 246, 0.14);
	--dp-danger: #ef4444;
	--dp-radius: 10px;
	--dp-radius-sm: 8px;
	--dp-btn-radius: 10px;
	--dp-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
	--dp-shadow-hover: 0 1px 3px rgba(17, 24, 39, 0.07);
	--dp-header-h: 64px;
	--dp-content-max: 1280px;
	--dp-header-bg: #ffffff;
	color-scheme: light;
}

html[data-dg-theme="dark"] {
	--dp-bg: #101218;
	--dp-surface: #1a1d26;
	--dp-surface-2: #222632;
	--dp-bg-elevated: #1e222c;
	--dp-text: #e8eaed;
	--dp-text-muted: #9aa0a6;
	--dp-text-dim: #7b818a;
	--dp-border: rgba(255, 255, 255, 0.08);
	--dp-border-strong: rgba(255, 255, 255, 0.16);
	--dp-accent: #3b82f6;
	--dp-accent-hover: #60a5fa;
	--dp-accent-soft: rgba(59, 130, 246, 0.18);
	--dp-primary: #e8eaed;
	--dp-primary-hover: #ffffff;
	--dp-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
	--dp-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.28);
	--dp-header-bg: #161920;
	color-scheme: dark;
}

/* Do not invert cover images in dark mode. */
html[data-dg-theme="dark"] img {
	filter: none;
}

body.dg-front {
	background: var(--dp-bg);
	color: var(--dp-text);
	font-family: "Microsoft Yahei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei UI", "Source Han Sans CN", sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

body.dg-front .dg-home-main,
body.dg-front .site-main {
	padding: 0 0 64px;
	min-height: 50vh;
	margin-top: var(--dp-header-h);
}

.dg-wrap {
	width: min(var(--dp-content-max), 100%);
	margin: 0 auto;
	padding: 24px 20px 0;
}

.dg-icon {
	display: inline-block;
	vertical-align: -0.15em;
	flex: none;
}

/* Buttons */
.dg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border-radius: var(--dp-btn-radius);
	border: 1px solid transparent;
	background: var(--dp-surface-2);
	color: var(--dp-text);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}
.dg-btn:hover,
.dg-btn:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
}
.dg-btn:disabled,
.dg-btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	filter: grayscale(0.15);
}
.dg-btn--primary {
	background: var(--dp-primary);
	color: #fff;
}
html[data-dg-theme="dark"] .dg-btn--primary {
	background: #e8eaed;
	color: #12141a;
}
.dg-btn--primary:hover,
.dg-btn--primary:focus-visible {
	background: var(--dp-primary-hover);
	color: #fff;
}
html[data-dg-theme="dark"] .dg-btn--primary:hover {
	color: #12141a;
}
.dg-btn--vip {
	background: var(--dp-vip);
	color: #fff;
}
.dg-btn--vip:hover,
.dg-btn--vip:focus-visible {
	background: var(--dp-vip-hover);
	color: #fff;
}
.dg-btn--blue {
	background: var(--dp-accent);
	color: #fff;
}
.dg-btn--blue:hover,
.dg-btn--blue:focus-visible {
	background: var(--dp-accent-hover);
	color: #fff;
}
.dg-btn--green {
	background: var(--dp-free);
	color: #fff;
	white-space: nowrap;
	flex-shrink: 0;
}
.dg-btn--green:hover,
.dg-btn--green:focus-visible {
	background: #1c915c;
	color: #fff;
}
.dg-btn--ghost {
	background: var(--dp-surface);
	border-color: var(--dp-border);
	color: var(--dp-text);
}

/* Badges / chips */
.dg-badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
}
.dg-badge--vip {
	background: var(--dp-vip);
	color: #fff;
}
.dg-badge--free {
	background: var(--dp-free);
	color: #fff;
}
.dg-badge--paid {
	background: #8b5cf6;
	color: #fff;
}
.dg-badge--wait {
	background: var(--dp-wait-soft);
	color: var(--dp-wait);
}
.dg-badge--ok {
	background: var(--dp-free-soft);
	color: var(--dp-free);
}
.dg-chip {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--dp-surface-2);
	color: var(--dp-text-muted);
	font-size: 13px;
	text-decoration: none;
}
.dg-chip.is-active,
a.dg-chip:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}
.dg-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Panels, typography */
.dg-panel {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 15px;
}
.dg-panel__title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: var(--dp-text);
}
.dg-panel__lead,
.dg-panel__body {
	color: var(--dp-text-muted);
	margin: 0;
}
.dg-empty,
.dg-home-empty {
	color: var(--dp-text-muted);
	margin: 0;
	padding: 8px 0;
}
.dg-page-head {
	margin: 0 0 20px;
}
.dg-page-head__title {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.dg-page-head__sub {
	margin: 0;
	color: var(--dp-text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}
.dg-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--dp-text-muted);
}
.dg-breadcrumb__link {
	color: var(--dp-text-muted);
	text-decoration: none;
}
.dg-breadcrumb__link:hover {
	color: var(--dp-text);
}
.dg-breadcrumb__sep {
	opacity: 0.6;
}
.dg-breadcrumb__current {
	color: var(--dp-text);
}
.dg-mono {
	font-family: var(--dp-mono);
	font-weight: 600;
}

/* ===== Header ===== */
.dg-home-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--dp-header-h);
	background: var(--dp-header-bg);
	border-bottom: 1px solid var(--dp-border);
	z-index: 10030;
}
.dg-home-header__inner {
	width: min(var(--dp-content-max), 100%);
	height: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo nav actions";
	align-items: center;
	gap: 16px;
	padding: 0 20px;
}
.dg-home-header__inner > .dg-home-logo {
	grid-area: logo;
	order: 0;
}
.dg-home-header__inner > .menu-toggle {
	grid-area: toggle;
}
.dg-home-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.08em;
	color: var(--dp-text);
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
}
.dg-home-logo:hover,
.dg-home-logo:focus-visible {
	color: var(--dp-text);
}
.dg-home-logo__mark {
	color: var(--dp-text);
}
.dg-home-nav,
.dg-home-header .main-navigation {
	grid-area: nav;
	order: 0;
	flex: 0 0 auto;
	justify-self: center;
	width: auto;
	max-width: 100%;
	min-width: 0;
}
.dg-home-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dg-home-menu > li > a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 12px;
	color: var(--dp-text);
	text-decoration: none;
	font-weight: 600;
	position: relative;
}
.dg-home-menu > li.current-menu-item > a,
.dg-home-menu > li.current_page_item > a {
	color: var(--dp-text);
}
/* Kill the legacy main.css inset underline so the current item has only one bar. */
.dg-home-header .nav-menu .current-menu-item > a,
.dg-home-header .nav-menu .current_page_item > a,
.dg-home-header .nav-menu .current-menu-ancestor > a,
.dg-home-header .nav-menu .current-menu-parent > a,
.dg-home-header .nav-menu .current_page_ancestor > a,
.dg-home-header .nav-menu .current_page_parent > a {
	box-shadow: none;
	background: #fff;
	color: var(--dp-text);
}
.dg-home-menu > li.current-menu-item > a::after,
.dg-home-menu > li.current_page_item > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 2px;
	height: 2px;
	background: var(--dp-text);
	border-radius: 1px;
}
.dg-home-header__actions {
	grid-area: actions;
	order: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-self: end;
	margin-left: 0;
	flex-shrink: 0;
}
.dg-home-search-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	background: var(--dp-surface-2);
	color: var(--dp-text-muted);
	cursor: pointer;
}
.dg-home-search {
	display: flex;
	align-items: center;
	width: 240px;
	height: 36px;
	background: var(--dp-surface-2);
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	padding: 0 4px 0 12px;
	gap: 6px;
	margin: 0;
	color: var(--dp-text-muted);
}
.dg-home-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--dp-text);
	height: 32px;
	font-size: 14px;
	outline: none;
	box-shadow: none;
}
.dg-home-search__submit {
	height: 28px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--dp-text-muted);
	font-weight: 600;
	cursor: pointer;
}
.dg-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	cursor: pointer;
}
.dg-theme-toggle__moon { display: none; }
html[data-dg-theme="dark"] .dg-theme-toggle__sun { display: none; }
html[data-dg-theme="dark"] .dg-theme-toggle__moon { display: inline-flex; }
.dg-home-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: #151924;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.dg-home-login .dg-icon { color: #f6c04d; }
html[data-dg-theme="dark"] .dg-home-login {
	background: #e8eaed;
	color: #12141a;
}
html[data-dg-theme="dark"] .dg-home-login .dg-icon { color: var(--dp-vip); }

body.dg-front .header-user__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 8px 0 4px;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	background: var(--dp-surface);
	color: var(--dp-text);
	cursor: pointer;
}
body.dg-front .header-user__avatar img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: block;
}
body.dg-front .header-user__dropdown {
	background: transparent;
	border: 0;
	box-shadow: none;
}
body.dg-front .header-user__dropdown a {
	color: var(--dp-text);
}

@media (max-width: 900px) {
	.dg-home-header__inner {
		grid-template-columns: auto 1fr auto;
	}
	.dg-home-search { display: none; }
	.dg-home-search-toggle { display: inline-flex; }
	.dg-home-nav {
		display: none;
	}
	.dg-home-header .menu-toggle {
		display: inline-flex;
	}
	.dg-home-header.menu-open .dg-home-nav,
	body.nav-open .dg-home-nav,
	.dg-home-header .main-navigation.is-open,
	.main-navigation.is-toggled {
		display: block;
	}
}

/* ===== Footer ===== */
body.dg-front .site-footer,
.dg-footer {
	background: #fff;
	border-top: 1px solid var(--dp-border);
	color: var(--dp-text-dim);
	margin-top: 32px;
}
body.dg-front .site-footer a {
	color: var(--dp-text-muted);
}
body.dg-front .site-info {
	opacity: 0.85;
	font-size: 13px;
}

/* ===== Cards / grids ===== */
.dg-card-grid,
.dg-home-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.dg-card {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	overflow: visible;
	display: flex;
	flex-direction: column;
}
.dg-card__cover { border-radius: var(--dp-radius) var(--dp-radius) 0 0; }
.dg-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--dp-surface-2);
	overflow: hidden;
}
.dg-card__cover img,
.dg-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dg-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
}
.dg-card__body {
	padding: 12px 12px 14px;
	min-width: 0;
}
.dg-card__title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	min-width: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.dg-card__title a {
	color: var(--dp-text);
	text-decoration: none;
}
.dg-card__title a:hover { color: var(--dp-text); }
.dg-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	color: var(--dp-text-muted);
	font-size: 13px;
}
.dg-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--dp-vip);
}

@media (max-width: 1024px) {
	.dg-card-grid,
	.dg-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.dg-card-grid,
	.dg-home-grid { grid-template-columns: 1fr; }
}

/* ===== Home ===== */
.dg-home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
body.is-home-dayupress.has-home-dayupress-sidebar .dg-home-layout {
	grid-template-columns: minmax(0, 1fr) 300px;
}
.dg-home-section { margin-bottom: 28px; }
.dg-home-section__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
}
.dg-comments-feed {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 16px;
	position: sticky;
	top: calc(var(--dp-header-h) + 16px);
}
.dg-comments-feed__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: -16px -16px 12px;
	padding: 12px 16px;
	background: var(--dp-surface);
	position: sticky;
	top: 0;
	z-index: 2;
	border-bottom: 1px solid var(--dp-border);
}
.dg-comments-feed__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.dg-comments-feed__all {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 15px;
	line-height: 1;
	color: var(--dp-text-dim);
	text-decoration: none;
}
.dg-comments-feed__all svg { display: block; width: 17px; height: 17px; }
.dg-comments-feed__all:hover { color: var(--dp-text-muted); }
.dg-comments-feed__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}
.dg-comments-feed__live {
	font-size: 11px;
	color: var(--dp-free);
	background: var(--dp-free-soft);
	border-radius: 999px;
	padding: 2px 8px;
	font-weight: 600;
}
.dg-comments-feed__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.dg-comments-feed__item {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--dp-border);
}
.dg-comments-feed__item:last-child { border-bottom: 0; }
.dg-comments-feed__row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 1;
}
.dg-comments-feed__avatar { flex: 0 0 auto; display: flex; align-items: center; opacity: 0.55; }
.dg-comments-feed__avatar img {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: block;
}
.dg-comments-feed__name { color: var(--dp-text-muted); font-weight: 500; }
.dg-comments-feed__vip {
	font-size: 10px;
	line-height: 1;
	font-weight: 700;
	color: #b45309;
	background: #fef3c7;
	border-radius: 3px;
	padding: 2px 4px;
}
.dg-comments-feed__time { margin-left: auto; color: var(--dp-text-dim); white-space: nowrap; }
.dg-comments-feed__text {
	margin: 2px 0;
	font-size: 15px;
	line-height: 1.6;
}
.dg-comments-feed__text a { color: var(--dp-text); text-decoration: none; }
.dg-comments-feed__game {
	display: inline-block;
	font-size: 11px;
	color: var(--dp-text-muted);
	background: var(--dp-surface-2);
	border-radius: 999px;
	padding: 1px 8px;
	text-decoration: none;
}
.dg-comments-feed__more {
	display: block;
	margin-top: 14px;
	text-align: center;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	padding: 8px;
	color: var(--dp-text-muted);
	text-decoration: none;
}
/* DayuPress首页 sidebar (front.css is the loaded sheet; home-dayupress.css is dequeued since 2.3.0). */
body.is-home-dayupress .dg-home-side {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}
body.is-home-dayupress .dg-home-side .dg-comments-feed {
	position: static;
}
body.admin-bar.is-home-dayupress .dg-home-side {
	top: calc(var(--dp-header-h) + 32px + 16px);
}
.dg-home-side.widget-area--home-dayupress .widget {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 20px;
	margin-bottom: 16px;
}
.dg-home-side.widget-area--home-dayupress .widget:last-child {
	margin-bottom: 0;
}
.dg-home-side.widget-area--home-dayupress .widget-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--dp-text);
}
.dg-home-side.widget-area--home-dayupress .widget-title::before {
	content: none;
}
.dg-home-side.widget-area--home-dayupress .widget_dayupress_fresh {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}
.dg-home-side.widget-area--home-dayupress .dg-comments-feed ul,
.dg-home-side.widget-area--home-dayupress .dg-comments-feed li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.dg-home-side.widget-area--home-dayupress .dg-comments-feed li.dg-comments-feed__item {
	padding: 12px 0;
	border-bottom: 1px solid var(--dp-border);
}
.dg-home-side.widget-area--home-dayupress .dg-comments-feed li.dg-comments-feed__item:last-child {
	border-bottom: 0;
}

@media (max-width: 1024px) {
	.dg-home-layout { grid-template-columns: 1fr; }
	.dg-comments-feed { position: static; }
	body.is-home-dayupress .dg-home-side { position: static; }
}

/* ===== Find games ===== */
.dg-find__layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.dg-filters {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 16px 18px 14px;
	width: 100%;
}
.dg-filters__heading {
	margin: 7px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--dp-text-muted);
	line-height: 1.4;
}
.dg-filters__group {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 4px 16px;
	align-items: start;
	margin-bottom: 6px;
}
.dg-filters__group:last-of-type { margin-bottom: 0; }
.dg-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2px 0;
}
.dg-filters__list--tabs { gap: 6px; }
.dg-filters__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--dp-surface-2);
	color: var(--dp-text-muted);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	gap: 0;
}
.dg-filters__tab:hover {
	background: var(--dp-surface-2);
	color: var(--dp-text);
}
.dg-filters__tab.is-active {
	background: var(--dp-accent);
	color: #fff;
	font-weight: 700;
}
.dg-filters__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	color: var(--dp-text);
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
}
.dg-filters__option:hover { background: var(--dp-surface-2); color: var(--dp-text); }
.dg-filters__option.is-active { font-weight: 700; }
.dg-filters__check {
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--dp-border-strong);
	border-radius: 4px;
	background: var(--dp-surface);
	flex: none;
}
.dg-filters__option.is-active .dg-filters__check {
	background: var(--dp-accent);
	border-color: var(--dp-accent);
	box-shadow: inset 0 0 0 2px var(--dp-surface);
}
.dg-filters__sort {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 4px 16px;
	align-items: center;
	justify-content: flex-start;
	margin: 10px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--dp-border);
}
.dg-filters__sort .dg-sortbar__label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--dp-text-muted);
}
.dg-sortbar__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-sortbar__tab {
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	color: var(--dp-text-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.dg-sortbar__tab.is-active {
	background: var(--dp-primary);
	color: #fff;
}
html[data-dg-theme="dark"] .dg-sortbar__tab.is-active {
	background: #e8eaed;
	color: #12141a;
}
.dg-filters .dg-sortbar__tab.is-active,
.dg-find .dg-sortbar__tab.is-active,
html[data-dg-theme="dark"] .dg-filters .dg-sortbar__tab.is-active,
html[data-dg-theme="dark"] .dg-find .dg-sortbar__tab.is-active {
	background: var(--dp-accent);
	color: #fff;
}
.dg-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 24px 0 8px;
	list-style: none;
	padding: 0;
}
.dg-pagination a,
.dg-pagination span,
.navigation.pagination a,
.navigation.pagination span,
.navigation.pagination li a,
.navigation.pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	color: var(--dp-text);
	text-decoration: none;
}
.navigation.pagination .current,
.dg-pagination .current {
	background: var(--dp-primary);
	border-color: var(--dp-primary);
	color: #fff;
}
.dg-find .dg-pagination .current,
.dg-find .navigation.pagination .current {
	background: var(--dp-accent);
	border-color: var(--dp-accent);
	color: #fff;
}
@media (max-width: 640px) {
	.dg-filters { padding: 14px 14px 12px; }
	.dg-filters__group,
	.dg-filters__sort {
		grid-template-columns: 1fr;
	}
	.dg-filters__group {
		gap: 6px;
		margin-bottom: 12px;
	}
	.dg-filters__heading { margin: 0; }
	.dg-filters__sort { gap: 8px; }
}

/* ===== Game detail ===== */
.dg-game__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}
.dg-game__hero,
body.dg-front .dg-game .dg-game__hero {
	display: block;
	grid-template-columns: none;
	gap: 0;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}
.dg-game__media,
body.dg-front .dg-game .game-hero__media.dg-game__media {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
}
.dg-game__cover,
body.dg-front .dg-game .dg-game__cover.game-hero__main {
	position: relative;
	width: 100%;
	max-width: none;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: var(--dp-radius);
	overflow: hidden;
	background: var(--dp-surface-2);
	box-shadow: var(--dp-shadow);
}
.dg-game__cover img,
body.dg-front .dg-game .dg-game__cover img,
body.dg-front .dg-game .dg-game__cover > .dg-img-blurup,
body.dg-front .dg-game .dg-game__cover > .dg-img-blurup > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: none;
}
/* Corner ribbon, clipped by cover overflow so it reads as a corner fold. */
body.dg-front .dg-game .dg-game__cover .dg-game__cover-badge,
.dg-game__cover .dg-game__cover-badge {
	position: absolute;
	top: 18px;
	right: -32px;
	left: auto;
	z-index: 4;
	width: 130px;
	height: 26px;
	padding: 0;
	border-radius: 0;
	background: var(--dp-vip);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	transform: rotate(45deg);
	transform-origin: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}
body.dg-front .dg-game .dg-game__cover .dg-badge--free.dg-game__cover-badge,
.dg-game__cover .dg-badge--free.dg-game__cover-badge {
	background: var(--dp-free);
}
/* Screenshot strip overlays the bottom of the 16:9 cover. */
.dg-game__cover .dg-game__thumbs-wrap,
body.dg-front .dg-game .dg-game__cover .game-hero__thumbs-wrap.dg-game__thumbs-wrap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	min-width: 0;
	padding: 28px 0 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0) 100%);
}
.dg-game__thumbs,
body.dg-front .dg-game .dg-game__thumbs.game-hero__thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 44px 4px;
	scroll-padding-inline: 44px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.dg-game__thumbs::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}
.dg-game__thumbs .game-hero__thumb {
	flex: 0 0 104px;
	aspect-ratio: 16 / 9;
	height: auto;
	width: 104px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.28);
	padding: 0;
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	scroll-snap-align: center;
}
.dg-game__thumbs .game-hero__thumb.is-active,
.dg-game__thumbs .game-hero__thumb:hover {
	border-color: var(--dp-vip);
}
.dg-game__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; }
body.dg-front .dg-game .dg-game__thumbs-wrap .game-hero__thumbs-nav {
	top: auto;
	bottom: 16px;
	transform: none;
	width: 32px;
	height: calc(104px * 9 / 16);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: #fff;
	color: #12141a;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}
body.dg-front .dg-game .dg-game__cover:hover .game-hero__thumbs-nav:not(.is-hidden),
body.dg-front .dg-game .dg-game__cover:focus-within .game-hero__thumbs-nav:not(.is-hidden) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
body.dg-front .dg-game .dg-game__thumbs-wrap .game-hero__thumbs-nav:hover {
	background: #fff;
	color: #12141a;
	border-color: rgba(0, 0, 0, 0.28);
}
body.dg-front .dg-game .dg-game__thumbs-wrap .game-hero__thumbs-nav--prev { left: 6px; }
body.dg-front .dg-game .dg-game__thumbs-wrap .game-hero__thumbs-nav--next { right: 6px; }
.dg-game__info { padding: 18px 2px 14px; }
.dg-game__headline {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.dg-game__title-group {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	min-width: 0;
	width: 100%;
}
.dg-game__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--dp-text);
}
.dg-game__edit {
	font-size: 13px;
	color: var(--dp-text-muted);
	text-decoration: none;
}
.dg-game__edit:hover { color: var(--dp-accent); }
.dg-game__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
}
.dg-game__tags .dg-chip {
	height: 26px;
	padding: 0 10px;
	border-radius: 6px;
	background: #2a2e38;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
}
.dg-game__tags .dg-chip:hover,
.dg-game__tags .dg-chip.is-active {
	background: #1f232c;
	color: #fff;
}
html[data-dg-theme="dark"] .dg-game__tags .dg-chip {
	background: var(--dp-surface-2);
	color: var(--dp-text);
	border: 1px solid var(--dp-border);
}
html[data-dg-theme="dark"] .dg-game__tags .dg-chip:hover {
	background: var(--dp-surface);
	color: var(--dp-text);
}
.dg-game__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--dp-text-muted);
	font-size: 14px;
}
.dg-game__meta li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dg-game__meta-rating { flex: 0 0 100%; }
.dg-game__meta-rating .dg-icon,
.dg-game__meta-rating svg {
	color: #f5b942;
}
.dg-game__meta-score {
	color: var(--dp-text);
	font-weight: 700;
}
.dg-game__meta-extra {
	color: var(--dp-text-dim);
	font-size: 13px;
}

.dg-game__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 20px;
	margin: 12px 0 0;
	padding: 12px 14px;
	background: var(--dp-surface-2, #eef2f6);
	border-radius: var(--dp-radius-sm, 8px);
}
.dg-game__spec { display: flex; gap: 8px; min-width: 0; margin: 0; }
.dg-game__spec dt { flex: 0 0 3.5em; margin: 0; color: var(--dp-text-muted, #6b7280); font-weight: 600; }
.dg-game__spec dd { margin: 0; min-width: 0; word-break: break-all; }
.dg-game__spec a { color: var(--dp-accent, #2563eb); }
@media (max-width: 640px) {
	.dg-game__specs { grid-template-columns: 1fr; }
}

body.dg-front .dg-game .game-hero__bar.dg-game__engage,
.dg-game__engage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 14px;
	margin: 10px 0 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}
body.dg-front .dg-game .dg-game__engage .game-hero__rating {
	flex: 0 1 auto;
	padding: 0;
	margin: 0;
	background: transparent;
}
body.dg-front .dg-game .dg-game__engage .game-hero__stars-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
body.dg-front .dg-game .dg-game__engage .game-hero__stars-label {
	font-size: 13px;
	color: var(--dp-text-muted);
	font-weight: 500;
}
body.dg-front .dg-game .dg-game__engage .game-hero__actions {
	display: flex;
	align-items: center;
	flex: none;
	border-left: 0;
	padding: 0;
}
body.dg-front .dg-game .dg-game__engage .game-hero__actions .game-action {
	min-height: 28px;
	min-width: 0;
	padding: 0 8px;
	border: 0;
	border-radius: var(--dp-radius-sm);
	background: transparent;
	box-shadow: none;
	color: var(--dp-text-muted);
	font-size: 13px;
}
body.dg-front .dg-game .dg-game__engage .game-hero__actions .game-action:hover,
body.dg-front .dg-game .dg-game__engage .game-hero__actions .game-action:focus-visible {
	background: var(--dp-surface-2);
	color: var(--dp-text);
}
body.dg-front .dg-game .dg-game__engage .game-hero__actions .game-action.is-active {
	background: transparent;
	color: var(--dp-vip);
}

/* Tab card */
.dg-game__tabs {
	padding: 0 22px 24px;
	overflow: hidden;
}
.dg-game__tablist {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 -22px 20px;
	padding: 0 22px;
	border-bottom: 1px solid var(--dp-border);
}
.dg-game__tab {
	appearance: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dp-text-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.dg-game__tab:hover,
.dg-game__tab:focus-visible {
	color: var(--dp-text);
	background: transparent;
}
.dg-game__tab.is-active,
.dg-game__tab[aria-selected="true"] {
	color: var(--dp-text);
	font-weight: 700;
}
.dg-game__tab.is-active::after,
.dg-game__tab[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: 32px;
	height: 3px;
	margin-left: -16px;
	background: var(--dp-vip);
	border-radius: 3px 3px 0 0;
}
.dg-game__panel[hidden] { display: none; }
.dg-game__section { margin: 0 0 22px; }
.dg-game__section:last-child { margin-bottom: 0; }
.dg-game__section-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--dp-text);
	line-height: 1.4;
}
.dg-game__section-body {
	margin: 0;
	color: var(--dp-text);
	font-size: 15px;
	line-height: 1.75;
}
.dg-game__section-body p { margin: 0 0 0.4em; }
.dg-game__section-body p:last-child { margin: 0; }
.dg-game__section-body ul,
.dg-game__section-body ol { margin: 0; padding-left: 1.15em; }
.dg-game__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.7;
	color: var(--dp-text);
}
.dg-game__specs-label { font-weight: 600; }
.dg-game__specs-label::after { content: "："; font-weight: 600; }
.dg-game__specs-value { font-weight: 400; }
.dg-game__intro {
	color: var(--dp-text-muted);
	font-size: 17px;
	line-height: 1.7;
}
.dg-game__longdesc {
	color: var(--dp-text-muted);
	font-size: 17px;
	line-height: 1.7;
}
.dg-game__longdesc > *:first-child { margin-top: 0; }
.dg-game__longdesc > *:last-child { margin-bottom: 0; }
.dg-game__jump {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: 36em;
	padding: 8px 0 4px;
}
.dg-game__jump-lead {
	margin: 0;
	color: var(--dp-text-muted);
	font-size: 15px;
	line-height: 1.75;
}
.dg-game__jump-btn { min-width: 180px; }
.dg-game__jump-extra {
	font-size: 14px;
	color: var(--dp-text-muted);
	text-decoration: none;
}
.dg-game__jump-extra:hover { color: var(--dp-accent); }
.dg-game__jump-note {
	margin: 0;
	font-size: 13px;
	color: var(--dp-text-dim);
}
.dg-game__main .dg-panel { margin-bottom: 16px; }
.dg-plain-list { margin: 0; padding-left: 18px; }
.dg-plain-list a { color: var(--dp-text); }
.dg-game__side { display: flex; flex-direction: column; gap: 16px; }
.dg-game__side .dg-panel { margin: 0; }
.dg-related {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.dg-related__item { min-width: 0; }
.dg-related__link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--dp-text);
	text-decoration: none;
	min-width: 0;
}
.dg-related__thumb {
	width: 48px;
	height: 48px;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: var(--dp-surface-2);
	flex: none;
}
.dg-related__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; }
.dg-related__name {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dg-related__flag { flex: none; }
.dg-related__meta { display: none; }
.dg-game__side-lead {
	margin: 0 0 14px;
	color: var(--dp-text-muted);
	font-size: 14px;
	line-height: 1.7;
}
.dg-game__side-cta .dg-btn { width: 100%; }
.dg-game__side-note {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--dp-text-dim);
}
body.dg-front .game-hero__stars { color: #f5b942; }
@media (max-width: 1024px) {
	.dg-game__layout,
	.dg-game__hero,
	body.dg-front .dg-game .dg-game__hero {
		grid-template-columns: 1fr;
	}
	.dg-game__cover,
	body.dg-front .dg-game .dg-game__cover.game-hero__main {
		aspect-ratio: 16 / 9;
		width: 100%;
	}
	.dg-game__title { font-size: 22px; }
	.dg-game__thumbs .game-hero__thumb {
		flex-basis: 84px;
		width: 84px;
	}
}

/* ===== Versions ===== */
.dg-versions__head { margin-bottom: 16px; }
.dg-versions__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 28px; }
.dg-versions__suffix { font-weight: 600; color: var(--dp-text-muted); font-size: 0.7em; }
.dg-versions__lead { margin: 0; color: var(--dp-text-muted); }
.dg-versions__notice {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	margin-bottom: 16px;
}
.dg-versions__notice p { margin: 0; display: flex; align-items: center; gap: 8px; }
.dg-version-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}
.dg-version-card { display: flex; flex-direction: column; gap: 10px; }
.dg-version-card__title { margin: 8px 0 0; font-size: 18px; }
.dg-version-card__excerpt { margin: 0; color: var(--dp-text-muted); min-height: 2.8em; }
.dg-version-card__meta { display: flex; gap: 12px; color: var(--dp-text-muted); font-size: 13px; }
.dg-version-card__cta { margin-top: auto; width: 100%; }
.dg-versions__foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.dg-versions__foot h2 { margin: 0 0 6px; font-size: 16px; }
.dg-versions__foot p { margin: 0; color: var(--dp-text-muted); }
.dg-version__head {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.dg-version__title { margin: 0 0 6px; font-size: 28px; }
.dg-version__sub { margin: 0 0 8px; color: var(--dp-text-muted); }
.dg-version__facts { list-style: none; margin: 0; padding: 0; color: var(--dp-text-muted); }
.dg-version__facts li { display: flex; gap: 12px; justify-content: space-between; min-width: 200px; }
.dg-version__facts strong { color: var(--dp-text); }
.dg-version__foot {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.dg-version__help { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dg-dl-zone { margin: 16px 0; padding: 20px; background: var(--dp-vip-soft); border: 1px solid rgba(242, 107, 33, 0.2); border-radius: var(--dp-radius); }
.dg-dl-zone--pay { padding: 0; background: transparent; border: 0; border-radius: 0; }
.dg-dl-zone__title { margin: 0 0 12px; }
.dg-dl-zone__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-dl-zone__hint { margin: 12px 0 0; color: var(--dp-text-muted); font-size: 14px; }
@media (max-width: 900px) {
	.dg-version-grid { grid-template-columns: 1fr; }
}

/* ===== User center ===== */
.dg-uc__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}
.dg-uc__side { padding: 20px 16px; }
.dg-uc__profile { text-align: center; margin-bottom: 16px; }
.dg-uc__avatar img { width: 88px; height: 88px; border-radius: 50%; }
.dg-uc__name { font-weight: 700; font-size: 16px; margin-top: 8px; }
.dg-uc__id { color: var(--dp-text-muted); font-size: 13px; }
.dg-uc__badges { margin: 8px 0; }
.dg-uc__stats { display: flex; justify-content: center; gap: 16px; list-style: none; padding: 0; margin: 10px 0 0; }
.dg-uc__stats li { text-align: center; color: var(--dp-text-muted); font-size: 13px; }
.dg-uc__stats strong { display: block; color: var(--dp-text); font-size: 16px; }
.dg-uc__nav { display: flex; flex-direction: column; gap: 4px; }
.dg-uc__nav-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--dp-text);
	text-decoration: none;
}
.dg-uc__nav-link.is-active {
	background: var(--dp-surface-2);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--dp-primary);
}
.dg-uc__nav-arrow { margin-left: auto; color: var(--dp-text-dim); }
.dg-uc__logout {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 8px 10px;
	color: var(--dp-text-muted);
	text-decoration: none;
}
.dg-uc__status {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	margin-bottom: 16px;
}
.dg-uc__status-row { display: flex; gap: 12px; margin-bottom: 4px; color: var(--dp-text-muted); }
.dg-uc__status-row strong { color: var(--dp-text); }
body.dg-front .user-center__form input,
body.dg-front .user-center__form textarea,
body.dg-front .dg-auth-form input,
body.dg-front .dg-auth-form textarea,
body.dg-front select,
body.dg-front .search-form input[type="search"] {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: 8px;
	color: var(--dp-text);
}
@media (max-width: 900px) {
	.dg-uc__layout { grid-template-columns: 1fr; }
}

/* ===== Help / forum ===== */
.dg-help-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding: 10px 12px;
}
.dg-help-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	color: var(--dp-text);
	min-height: 36px;
	outline: none;
	box-shadow: none;
}
.dg-help-search__scope {
	min-height: 36px;
	border-radius: 8px;
	padding: 0 8px;
}
.dg-help-newbie__head { display: flex; align-items: center; gap: 10px; }
.dg-help-newbie__head .dg-panel__title { margin: 0; }
.dg-help-newbie__grid,
.dg-help-group__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 12px;
}
.dg-mini-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	color: var(--dp-text);
	text-decoration: none;
	background: var(--dp-surface);
}
.dg-mini-card:hover { color: var(--dp-text); box-shadow: var(--dp-shadow); }
.dg-mini-card__icon { color: var(--dp-accent); }
.dg-mini-card__title { font-weight: 700; }
.dg-mini-card__excerpt { color: var(--dp-text-muted); font-size: 13px; }
.dg-mini-card__meta { color: var(--dp-text-dim); font-size: 13px; }
.dg-help-tabs { margin-top: 16px; }
.dg-help-tabs__bar {
	display: flex;
	gap: 0;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--dp-border);
}
.dg-help-tabs__btn {
	flex: 0 0 auto;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dp-text-muted);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
}
.dg-help-tabs__btn.is-active {
	color: var(--dp-text);
}
.dg-help-tabs__btn.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: var(--dp-text);
}
.dg-help-tabs__panel[hidden] { display: none; }
.dg-help-group { margin-top: 16px; }
.dg-help-group:first-child { margin-top: 0; }
.dg-help-group__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
}
.dg-help-group__title img { width: 28px; height: 16px; object-fit: cover; border-radius: 4px; }
.dg-help-group__title a { color: var(--dp-text); text-decoration: none; }
.dg-help-forum-preview__head { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 4px; }
.dg-forum-preview { list-style: none; margin: 0; padding: 0; }
.dg-forum-preview li + li { border-top: 1px solid var(--dp-border); }
.dg-forum-preview a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; color: var(--dp-text); text-decoration: none; }
.dg-forum-preview__meta { color: var(--dp-text-muted); font-size: 13px; white-space: nowrap; }
/* ===== Discuss page 2.4.52 (scoped under .dg-forum / .dg-forum-search) ===== */
.dg-forum-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
}
.dg-forum-search__field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--dp-border);
	border-radius: 10px;
	color: var(--dp-text-dim);
	min-width: 0;
}
.dg-forum-search__field .dg-icon { flex: none; }
.dg-forum-search__input,
.dg-forum-search__field input[type="search"] {
	flex: 1;
	border: 0;
	background: transparent;
	outline: none;
	box-shadow: none;
	color: var(--dp-text);
	min-width: 0;
	font-size: 16px;
	padding: 0;
}
.dg-forum-search__input::placeholder { color: var(--dp-text-dim); }
.dg-forum-search .dg-btn {
	min-height: 44px;
	min-width: 72px;
	padding: 0 18px;
	white-space: nowrap;
	flex-shrink: 0;
}

.dg-forum__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 16px;
	text-align: left;
}
.dg-forum .dg-page-head__title { margin-bottom: 6px; }

.dg-forum__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}
.dg-forum__chips .dg-chip {
	height: 28px;
	padding: 0 10px;
	border: 0;
	background: var(--dp-surface-2);
	color: var(--dp-text-muted);
	font-size: 13px;
}
.dg-forum__chips .dg-chip.is-active {
	background: var(--dp-text);
	color: #fff;
	font-weight: 700;
}
@media (min-width: 901px) {
	.dg-forum__chips { display: none; }
}

.dg-forum__layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.dg-forum__boards { padding: 16px; }
.dg-forum__boards .dg-panel__title { margin: 0 0 10px; font-size: 16px; }
.dg-forum__board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dg-forum__board-list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 10px;
	border-radius: 8px;
	color: var(--dp-text-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.dg-forum__board-list a.is-active {
	background: var(--dp-surface-2);
	color: var(--dp-text);
	font-weight: 700;
}

.dg-forum__list .dg-forum__sort {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 14px;
	padding: 0;
	border-bottom: 1px solid var(--dp-border);
}
.dg-forum .dg-sortbar__tab {
	height: 38px;
	padding: 0 12px;
	border-radius: 0;
	background: transparent;
	color: var(--dp-text-muted);
	font-weight: 600;
	font-size: 14px;
	position: relative;
	text-decoration: none;
}
.dg-forum .dg-sortbar__tab:hover,
.dg-forum .dg-sortbar__tab:focus-visible {
	color: var(--dp-text);
	background: transparent;
}
.dg-forum .dg-sortbar__tab.is-active {
	background: transparent;
	color: var(--dp-text);
}
.dg-forum .dg-sortbar__tab.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -1px;
	height: 2px;
	background: var(--dp-text);
	border-radius: 1px;
}

.dg-forum .dg-thread {
	padding: 16px;
	box-shadow: var(--dp-shadow);
}
.dg-forum .dg-thread + .dg-thread { margin-top: 10px; }
.dg-forum .dg-thread__author { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.dg-forum .dg-thread__author img { width: 36px; height: 36px; border-radius: 50%; }
.dg-forum .dg-thread__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.dg-forum .dg-thread__when { color: var(--dp-text-dim); font-size: 12px; margin-top: 2px; }
.dg-forum .dg-thread__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.01em;
}
.dg-forum .dg-thread__title a { color: var(--dp-text); text-decoration: none; }
.dg-forum .dg-thread__title a:hover { color: var(--dp-text); }
.dg-forum .dg-thread__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dg-forum .dg-thread__tags .dg-chip {
	height: 22px;
	padding: 0 8px;
	background: var(--dp-surface-2);
	color: var(--dp-text-muted);
	font-size: 12px;
	border-radius: 6px;
}
.dg-forum .dg-thread__excerpt {
	margin: 0 0 10px;
	color: var(--dp-text-muted);
	font-size: 14px;
	line-height: 1.65;
}
.dg-forum .dg-thread__excerpt:empty { display: none; }
.dg-forum .dg-thread__meta {
	color: var(--dp-text-dim);
	font-size: 13px;
	display: flex;
	gap: 12px;
	align-items: center;
}
.dg-forum .dg-thread__meta .dg-icon { margin-right: 4px; }

@media (max-width: 900px) {
	.dg-help-newbie__grid,
	.dg-help-group__cards { grid-template-columns: repeat(2, 1fr); }
	.dg-forum__layout { grid-template-columns: 1fr; }
	.dg-forum__boards { display: none; }
	.dg-forum__head {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}
	.dg-forum .dg-page-head__title,
	.dg-forum .dg-page-head__sub { text-align: left; }
	.dg-forum__head .dg-btn { width: 100%; }
	.dg-forum-search .dg-btn { min-width: 72px; padding: 0 14px; }
}
@media (max-width: 640px) {
	.dg-help-newbie__grid,
	.dg-help-group__cards { grid-template-columns: 1fr; }
}


/* ===== Help center 2.4.51 (scoped under .dg-help / .is-help-center) ===== */
.dg-help .dg-help-search {
	display: block;
	padding: 16px 16px 14px;
	margin-bottom: 16px;
}
.dg-help .dg-help-search__row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.dg-help .dg-help-search__field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--dp-border);
	border-radius: 10px;
	color: var(--dp-text-dim);
	min-width: 0;
}
.dg-help .dg-help-search__field .dg-help-search__input,
.dg-help .dg-help-search__field input[type="search"] {
	flex: 1;
	border: 0;
	background: transparent;
	outline: none;
	box-shadow: none;
	color: var(--dp-text);
	min-width: 0;
	min-height: 0;
	font-size: 16px;
	padding: 0;
}
.dg-help .dg-help-search__field input::placeholder {
	color: var(--dp-text-dim);
}
.dg-help .dg-help-search .dg-btn {
	white-space: nowrap;
	flex-shrink: 0;
}
.dg-help .dg-help-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}
.dg-help-chip {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--dp-surface-2);
	color: var(--dp-text-muted);
	font-size: 13px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
}
.dg-help-chip:hover,
.dg-help-chip:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
}
.dg-help-chip.is-active {
	color: var(--dp-text);
	font-weight: 600;
}
.dg-help-search__empty {
	display: none;
	margin: 0 0 16px;
	padding: 14px 16px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	color: var(--dp-text-muted);
	font-size: 14px;
}
.dg-help-search__empty.is-visible {
	display: block;
}

.dg-help-must {
	padding: 16px;
	margin-bottom: 16px;
}
.dg-help-must .dg-help-sec-head {
	margin-bottom: 12px;
	align-items: flex-start;
}
.dg-help-must__intro { min-width: 0; }
.dg-help-must__title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.dg-help-must__title-row .dg-panel__title { margin: 0; }
.dg-help-must__badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 6px;
	background: var(--dp-free);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}
.dg-help-must__sub {
	margin: 6px 0 0;
	color: var(--dp-text-muted);
	font-size: 13px;
	line-height: 1.6;
}
.dg-help-must__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.dg-help-must__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 14px 16px;
	background: #fff;
	border: 1px solid var(--dp-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--dp-text);
	min-height: 148px;
	min-width: 0;
}
.dg-help-must__item:hover,
.dg-help-must__item:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
	border-color: var(--dp-border);
}
.dg-help-must__no {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--dp-vip);
	border: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
}
.dg-help-must__name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}
.dg-help-must__desc {
	color: var(--dp-text-muted);
	font-size: 13px;
	line-height: 1.55;
}
.dg-help-must__go {
	margin-top: auto;
	color: var(--dp-text);
	font-size: 13px;
	font-weight: 650;
}

.dg-help-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
	gap: 16px;
	align-items: start;
	margin-bottom: 16px;
}
.dg-help-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.dg-help-sec-head .dg-panel__title { margin: 0; }
.dg-help-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.dg-help-faq { padding: 16px; }
.dg-help-faq__head { margin-bottom: 8px; }
.dg-help-faq__all {
	min-height: 32px;
	padding: 0 10px;
	font-size: 13px;
}
.dg-help-faq__empty {
	margin: 8px 0 0;
	color: var(--dp-text-muted);
	font-size: 14px;
}
.dg-help-faq-list { list-style: none; margin: 0; padding: 0; }
.dg-help-faq-list li + li { border-top: 1px solid var(--dp-border); }
.dg-help-faq-list a {
	display: grid;
	grid-template-columns: 1fr auto auto;
	grid-template-areas: "main meta go";
	align-items: center;
	gap: 8px 12px;
	padding: 14px 0;
	text-decoration: none;
	color: var(--dp-text);
	min-width: 0;
}
.dg-help-faq-list a:hover,
.dg-help-faq-list a:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
}
.dg-help-faq-list__main {
	grid-area: main;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.dg-help-faq-list__title { font-weight: 700; font-size: 15px; line-height: 1.45; }
.dg-help-faq-list__excerpt { color: var(--dp-text-muted); font-size: 13px; line-height: 1.55; }
.dg-help-faq-list__meta {
	grid-area: meta;
	color: var(--dp-text-dim);
	font-size: 13px;
	white-space: nowrap;
}
.dg-help-faq-list__go {
	grid-area: go;
	color: var(--dp-text-dim);
	flex: none;
	display: inline-flex;
	align-self: center;
}
.dg-help .dg-help-article__body a {
	color: var(--dp-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.dg-help-ask { padding: 16px; }
.dg-help-ask p {
	margin: 8px 0 14px;
	color: var(--dp-text-muted);
	font-size: 14px;
}
.dg-help-ask .dg-btn { width: 100%; }

.dg-help-recent { padding: 16px; }
.dg-help-recent__all {
	min-height: 32px;
	padding: 0 10px;
	font-size: 13px;
}
.dg-help-recent__empty {
	margin: 8px 0 0;
	color: var(--dp-text-muted);
	font-size: 14px;
}
.dg-help-threads {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dg-help-threads li + li { border-top: 1px solid var(--dp-border); }
.dg-help-threads a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 12px;
	padding: 12px 0;
	text-decoration: none;
	color: var(--dp-text);
}
.dg-help-threads a:hover { color: var(--dp-text); text-decoration: none; }
.dg-help-threads__title { font-weight: 650; font-size: 15px; line-height: 1.45; }
.dg-help-threads__meta {
	color: var(--dp-text-dim);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.dg-help-threads__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	grid-row: 1 / span 2;
	grid-column: 2;
}

.dg-help-games { padding: 16px; }
.dg-help-games__empty {
	margin: 14px 0 0;
	padding: 18px 16px;
	background: var(--dp-surface-2);
	border-radius: 10px;
	color: var(--dp-text-muted);
	font-size: 14px;
}
.dg-help-games__empty strong {
	color: var(--dp-text);
	font-weight: 700;
}
.dg-help-games__links {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dg-help-game-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 10px 0 6px;
	border-radius: 999px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	color: var(--dp-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.dg-help-game-chip:hover,
.dg-help-game-chip:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
}
.dg-help-game-chip__mark {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--dp-surface-2);
	color: var(--dp-text);
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.dg-help .dg-help-group { margin-top: 16px; }
.dg-help .dg-help-group:first-of-type { margin-top: 8px; }
.dg-help .dg-help-group__title a { color: var(--dp-text); text-decoration: none; }
.dg-help-guide-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	background: var(--dp-surface-2);
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--dp-text);
	text-decoration: none;
	min-width: 0;
}
.dg-help-guide-card:hover,
.dg-help-guide-card:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
	border-color: var(--dp-border);
}
.dg-help-guide-card__title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.dg-help-guide-card__excerpt { color: var(--dp-text-muted); font-size: 13px; line-height: 1.55; }
.dg-help .dg-help-group__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.dg-help-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	color: var(--dp-text-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.dg-help-back:hover,
.dg-help-back:focus-visible {
	color: var(--dp-text);
	text-decoration: none;
}
.dg-help-article { padding: 24px 28px 28px; margin-bottom: 16px; }
.dg-help-article__kicker {
	margin: 0 0 8px;
	color: var(--dp-text-muted);
	font-size: 13px;
	font-weight: 600;
}
.dg-help-article__title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.dg-help-article__body {
	color: var(--dp-text);
	font-size: 16px;
	line-height: 1.75;
}
.dg-help-article__body h2 {
	margin: 1.4em 0 0.6em;
	font-size: 18px;
}
.dg-help-article__body p { margin: 0 0 1em; }
.dg-help-article__body p:last-child { margin-bottom: 0; }
.dg-help-article__more {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--dp-border);
}
.dg-help-article__more .dg-panel__title { margin: 0 0 10px; }
.dg-help-article__more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dg-help-article__more a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--dp-text);
	text-decoration: none;
	font-weight: 600;
}
.dg-help-article__more a:hover { text-decoration: none; }
.dg-help-article__more a span {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--dp-surface-2);
	border: 1px solid var(--dp-border);
	font-size: 12px;
	font-weight: 800;
}

.dg-help [data-help-item][hidden],
.dg-help [data-help-section][hidden] {
	display: none !important;
}

@media (max-width: 900px) {
	.dg-help-must__grid { grid-template-columns: 1fr 1fr; }
	.dg-help-must__item { min-height: 0; }
	.dg-help-grid { grid-template-columns: 1fr; }
	.dg-help .dg-help-search .dg-btn {
		min-width: 72px;
		padding: 0 14px;
		white-space: nowrap;
		flex-shrink: 0;
	}
	.dg-help .dg-help-search__field { min-height: 44px; }
	.dg-help-faq-list a {
		grid-template-columns: 1fr auto;
		grid-template-areas: "main go" "meta go";
	}
	.dg-help-faq-list__meta { white-space: normal; }
	.dg-help .dg-help-group__cards { grid-template-columns: 1fr 1fr; }
	.dg-help-article { padding: 18px 16px 20px; }
	.dg-help-article__title { font-size: 24px; }
}

@media (max-width: 640px) {
	.dg-help .dg-help-group__cards { grid-template-columns: 1fr; }
}

/* ===== Guide / article ===== */
.dg-guide__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 20px;
	align-items: start;
}
.dg-guide__layout .dg-toc:not(.dg-toc--side) { display: none; }
.dg-guide__title { margin: 0 0 10px; font-size: 28px; }
.dg-guide__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--dp-text-muted); font-size: 14px; }
.dg-guide__content { margin-top: 16px; }
.dg-guide__pager { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0; }
.dg-toc { position: sticky; top: calc(var(--dp-header-h) + 16px); }
.dg-toc__list { list-style: none; margin: 0; padding: 0; }
.dg-toc__item a { color: var(--dp-text-muted); text-decoration: none; display: block; padding: 6px 0; border-left: 2px solid transparent; padding-left: 10px; }
.dg-toc__item--3 a { padding-left: 20px; font-size: 14px; }
.dg-toc__item.is-active a,
.dg-toc__item a:hover { color: var(--dp-text); border-left-color: var(--dp-vip); }
.dg-related-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dg-related-guides a { color: var(--dp-text); text-decoration: none; }
.dg-article-comments { margin-top: 20px; }
@media (max-width: 900px) {
	.dg-guide__layout { grid-template-columns: 1fr; }
	.dg-guide__layout .dg-toc:not(.dg-toc--side) { display: block; position: static; }
	.dg-toc--side { display: none; }
}

/* ===== Comments / search / 404 / legacy bits ===== */
body.dg-front .comments-area,
body.dg-front .comment-form,
body.dg-front .comment-list .comment-body {
	background: transparent;
	color: var(--dp-text);
}
body.dg-front .comment-reply-title,
body.dg-front .comments-title { color: var(--dp-text); }
body.dg-front .comment-form textarea,
body.dg-front .comment-form input[type="text"],
body.dg-front .comment-form input[type="email"] {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	color: var(--dp-text);
	border-radius: 8px;
}
body.dg-front .submit,
body.dg-front .comment-form .form-submit input,
body.dg-front .button,
body.dg-front .wp-block-button__link {
	border-radius: var(--dp-btn-radius);
}
body.dg-front .error-404 .button,
body.dg-front .error-404__actions .button {
	background: var(--dp-primary);
	color: #fff;
	border: 0;
	padding: 10px 18px;
}
body.dg-front .widget {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 16px;
}
body.dg-front .widget-title { color: var(--dp-text); }
body.dg-front .post-grid .entry,
body.dg-front .content-card,
body.dg-front .entry.card {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}
body.dg-front .entry-title a { color: var(--dp-text); }
body.dg-front .site-header { display: none; } /* unified header replaces legacy */

/* Auth modal */
body.dg-front .dg-auth-modal,
body.dg-front .dg-search-modal {
	color: var(--dp-text);
}

/* Back-top stays usable */
body.dg-front .dg-back-top {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	color: var(--dp-text);
}

/* Hide default theme sidebar on restyled game / article / help pages */
body.is-game-detail .widget-area,
body.is-article-detail .widget-area,
body.is-help-center .help-center__aside { display: none; }

/* Token aliases + typography extras */
:root,
html {
	--dp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.dg-card {
	border-color: transparent;
}
.dg-card:hover {
	box-shadow: var(--dp-shadow-hover);
}

/* Desktop nav must stay in a row even when main.css sets column direction. */
@media (min-width: 860px) {
	.dg-home-header .menu-toggle {
		display: none;
	}
	.dg-home-header__inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "logo nav actions";
	}
	.dg-home-nav.main-navigation,
	.dg-home-nav,
	.dg-home-header .main-navigation {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		padding: 0;
		box-shadow: none;
		grid-area: nav;
		order: 0;
		flex: 0 0 auto;
		justify-self: center;
		width: auto;
		max-width: 100%;
	}
	.dg-home-header__actions {
		grid-area: actions;
		order: 0;
		justify-self: end;
	}
	.dg-home-menu.nav-menu,
	.dg-home-menu {
		flex-direction: row;
		align-items: center;
	}
	.dg-home-header .nav-menu .current-menu-item > a,
	.dg-home-header .nav-menu .current_page_item > a,
	.dg-home-header .nav-menu .current-menu-ancestor > a,
	.dg-home-header .nav-menu .current-menu-parent > a,
	.dg-home-header .nav-menu .current_page_ancestor > a,
	.dg-home-header .nav-menu .current_page_parent > a {
		box-shadow: none;
	}
}

@media (max-width: 859px) {
	.dg-home-header__inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "logo actions toggle";
		gap: 8px;
	}
	.dg-home-logo { margin-right: 0; }
	.dg-home-header__actions {
		grid-area: actions;
		justify-self: end;
	}
	.dg-home-header .menu-toggle {
		display: inline-flex;
		grid-area: toggle;
		order: 0;
	}
	.dg-home-nav {
		display: none;
	}
	.dg-home-nav.main-navigation.is-open {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--dp-header-bg);
		border-bottom: 1px solid var(--dp-border);
		padding: 12px 20px 16px;
		box-shadow: var(--dp-shadow-hover);
	}
	.dg-home-nav.is-open .dg-home-menu {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Admin bar offset for the fixed header */
body.admin-bar .dg-home-header { top: 32px; }
body.admin-bar.dg-front .dg-home-main,
body.admin-bar.dg-front .site-main { margin-top: calc(var(--dp-header-h) + 32px); }
body.admin-bar .dg-comments-feed,
body.admin-bar .dg-toc {
	top: calc(var(--dp-header-h) + 32px + 16px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .dg-home-header { top: 46px; }
	body.admin-bar.dg-front .dg-home-main,
	body.admin-bar.dg-front .site-main { margin-top: calc(var(--dp-header-h) + 46px); }
}

/* Auth / search / DayuPay surfaces inherit the front tokens */
body.dg-front .dg-modal__dialog,
body.dg-front .dg-modal__dialog--search,
body.dg-front .dg-modal__dialog--auth {
	background: var(--dp-surface);
	color: var(--dp-text);
	border-color: var(--dp-border);
}
body.dg-front .dg-auth-tabs__btn {
	color: var(--dp-text-muted);
	background: transparent;
	border: 0;
}
body.dg-front .dg-auth-tabs__btn.is-active {
	color: var(--dp-text);
	box-shadow: inset 0 -2px 0 var(--dp-primary);
}
body.dg-front .dg-auth-form__submit,
body.dg-front .button--download {
	background: var(--dp-primary);
	color: #fff;
	border: 0;
	border-radius: var(--dp-btn-radius);
}
html[data-dg-theme="dark"] body.dg-front .dg-auth-form__submit,
html[data-dg-theme="dark"] body.dg-front .button--download {
	background: #e8eaed;
	color: #12141a;
}



/* Guide / post typography */
.dg-guide__content,
body.dg-front .entry-content {
	color: var(--dp-text);
	line-height: 1.75;
}
.dg-guide__content h2,
.dg-guide__content h3,
body.dg-front .entry-content h2,
body.dg-front .entry-content h3 {
	margin: 1.4em 0 0.6em;
}
.dg-guide__content img,
body.dg-front .entry-content img {
	border-radius: var(--dp-radius);
	max-width: 100%;
	height: auto;
}

/* Kefu / back-top remain readable in both themes */
body.dg-front .dg-kefu__btn {
	background: var(--dp-surface);
	color: var(--dp-text);
	border: 1px solid var(--dp-border);
	box-shadow: var(--dp-shadow);
}

/* Search results page */
.dg-search-page .page-title,
.dg-error-page .page-title {
	margin: 0 0 16px;
	font-size: 24px;
}

/* Hide leftover home-template chrome if a cache still prints it */
body.dg-front .site-branding { display: none; }


/* ===== Game-detail comment tab + restyled list (2.3.3) ===== */
.dg-game__panel[data-dg-panel="comments"] .comments-area,
.dg-game__panel[data-dg-panel="comments"] .dg-comments--embed {
	margin: 0;
	padding: 4px 0 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}
.dg-game__panel[data-dg-panel="comments"] .comment-respond,
body.dg-front .dg-comments--embed .comment-respond,
body.dg-front .comments-area .comment-respond {
	margin-top: 16px;
	padding: 16px 18px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: 10px;
	box-shadow: var(--dp-shadow);
}
body.dg-front .comment-reply-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}
body.dg-front .comment-reply-title::before {
	display: none;
}
body.dg-front .comment-form textarea,
body.dg-front .comment-form input[type="text"],
body.dg-front .comment-form input[type="email"],
body.dg-front .comment-form input[type="url"] {
	background: var(--dp-bg, var(--dp-surface-2));
	border: 1px solid var(--dp-border);
	border-radius: 8px;
	color: var(--dp-text);
	box-shadow: none;
}
body.dg-front .comment-form .form-submit input,
body.dg-front .comment-form .submit {
	background: var(--dp-vip, #f59e0b);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 700;
	box-shadow: none;
}
body.dg-front .comment-form .form-submit input:hover,
body.dg-front .comment-form .submit:hover {
	filter: brightness(1.05);
}
body.dg-front .comment-form__rules,
body.dg-front .comment-notes {
	color: var(--dp-text-dim);
	font-size: 13px;
}
body.dg-front .help-discuss-thread .comment-list {
	margin: 0;
}
body.dg-front .help-discuss-thread .comment-item--top {
	margin: 0;
}
html[data-dg-theme="dark"] body.dg-front .comment-card__avatar-img,
html[data-dg-theme="dark"] body.dg-front .comment-card .avatar {
	filter: none;
}


/* 红白街机 — 2.3 interior restyle (overrides assets/css/main.css .emu-* rules) */
body.dg-front .dg-emu {
	--dp-emu-well: #0f172a;
	--dp-emu-well-text: #cbd5e1;
}
body.dg-front .dg-emu .emu-shell {
	margin: 0;
}
body.dg-front .dg-emu .emu-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16rem;
	gap: 16px;
	align-items: start;
}
body.dg-front .dg-emu .emu-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
body.dg-front .dg-emu .emu-stage.dg-panel,
body.dg-front .dg-emu .emu-list.dg-panel {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}
body.dg-front .dg-emu .emu-stage.dg-panel {
	padding: 0;
	overflow: hidden;
}
body.dg-front .dg-emu .emu-list.dg-panel {
	padding: 12px;
	max-height: 640px;
	overflow: auto;
	position: sticky;
	top: calc(var(--dp-header-h) + 16px);
}
body.dg-front .dg-emu .emu-stage__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
}
body.dg-front .dg-emu .emu-stage__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
	color: var(--dp-text);
}
body.dg-front .dg-emu .emu-stage__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}
body.dg-front .dg-emu .emu-stage__btn,
body.dg-front .dg-emu .emu-stage__full,
body.dg-front .dg-emu .emu-stage__bar .dg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex-shrink: 0;
	min-height: 36px;
	padding: 0 14px;
	border-radius: var(--dp-btn-radius);
	font-size: 14px;
}
body.dg-front .dg-emu .emu-stage__bar .dg-btn--ghost {
	background: var(--dp-surface);
	border-color: var(--dp-border);
	color: var(--dp-text);
}
body.dg-front .dg-emu .emu-stage__bar .dg-btn--primary {
	background: var(--dp-primary);
	border-color: transparent;
	color: #fff;
}
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage__bar .dg-btn--primary {
	background: var(--dp-primary);
	color: var(--dp-bg);
}
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage__bar .dg-btn--primary:hover,
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage__bar .dg-btn--primary:focus-visible {
	background: var(--dp-primary-hover);
	color: var(--dp-bg);
}
body.dg-front .dg-emu .emu-keys {
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid var(--dp-border);
	background: var(--dp-surface-2);
	color: var(--dp-text);
	font-size: 14px;
}
body.dg-front .dg-emu .emu-keys p,
body.dg-front .dg-emu .emu-keys ul {
	margin: 0.25rem 0;
}
body.dg-front .dg-emu .emu-keys ul {
	padding-left: 1.1rem;
}
body.dg-front .dg-emu .emu-stage__player {
	min-height: 420px;
	background: var(--dp-emu-well);
	border-radius: 0 0 var(--dp-radius) var(--dp-radius);
	overflow: hidden;
}
body.dg-front .dg-emu .emu-stage__placeholder {
	margin: 0;
	padding: 16px;
	color: var(--dp-emu-well-text);
}
body.dg-front .dg-emu .emu-empty {
	margin: 0;
	padding: 8px 4px;
	color: var(--dp-text-muted);
}
body.dg-front .dg-emu .emu-platforms {
	display: flex;
	gap: 0;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--dp-border);
	border-radius: 0;
	background: transparent;
}
body.dg-front .dg-emu .emu-platforms__btn {
	flex: 1 1 0;
	height: 40px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dp-text-muted);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
}
body.dg-front .dg-emu .emu-platforms__btn.is-active {
	background: transparent;
	color: var(--dp-text);
}
body.dg-front .dg-emu .emu-platforms__btn.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: var(--dp-text);
}
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-platforms__btn.is-active {
	background: transparent;
	color: var(--dp-text);
}
body.dg-front .dg-emu .emu-list__item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: var(--dp-text);
	font: inherit;
	font-size: 15px;
	padding: 8px 10px;
	border-radius: var(--dp-radius);
	cursor: pointer;
}
body.dg-front .dg-emu .emu-list__item:hover,
body.dg-front .dg-emu .emu-list__item.is-active {
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
}
body.dg-front .dg-emu .emu-comments {
	margin-top: 0;
}
body.dg-front .dg-emu .emu-stage:fullscreen,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border-radius: 0;
	background: var(--dp-emu-well);
	position: relative;
}
body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar,
body.dg-front .dg-emu .emu-stage:fullscreen .emu-keys,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-keys {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	height: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
	border: 0;
	box-shadow: none;
	background: var(--dp-surface);
	color: var(--dp-text);
	visibility: hidden;
	pointer-events: none;
}
body.dg-front .dg-emu .emu-stage:fullscreen.is-bar-on .emu-stage__bar,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen.is-bar-on .emu-stage__bar,
body.dg-front .dg-emu .emu-stage:fullscreen.is-bar-on .emu-keys,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen.is-bar-on .emu-keys {
	height: auto;
	padding: 12px 16px;
	overflow: visible;
	border-bottom: 1px solid var(--dp-border);
	box-shadow: var(--dp-shadow);
	background: var(--dp-surface);
	color: var(--dp-text);
	visibility: visible;
	pointer-events: auto;
}
body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar .emu-stage__btn,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar .emu-stage__btn,
body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar .dg-btn--ghost,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar .dg-btn--ghost {
	background: var(--dp-surface);
	color: var(--dp-text);
	border-color: var(--dp-border);
}
body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar .emu-stage__full,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar .emu-stage__full,
body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar .dg-btn--primary,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar .dg-btn--primary {
	background: var(--dp-primary);
	color: #fff;
	border-color: transparent;
}
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar .emu-stage__full,
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar .emu-stage__full,
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__bar .dg-btn--primary,
html[data-dg-theme="dark"] body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__bar .dg-btn--primary {
	background: var(--dp-primary);
	color: var(--dp-bg);
}
body.dg-front .dg-emu .emu-stage:fullscreen .emu-stage__player,
body.dg-front .dg-emu .emu-stage:-webkit-full-screen .emu-stage__player {
	flex: 1;
	min-height: 0;
	height: 100%;
	border-radius: 0;
}
@media (max-width: 860px) {
	body.dg-front .dg-emu .emu-layout {
		grid-template-columns: 1fr;
	}
	body.dg-front .dg-emu .emu-list.dg-panel {
		order: -1;
		max-height: 220px;
		position: static;
	}
}

.dg-game__req { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dg-game__req-col h3 { margin: 0 0 8px; font-size: 15px; }
.dg-game__req-body { margin: 0; color: var(--dp-text, #12141a); line-height: 1.6; }
.dg-game__req-body p { margin: 0 0 0.4em; }
@media (max-width: 640px) { .dg-game__req { grid-template-columns: 1fr; } }

/* Game page: head card, engage card, body + sidebar */
.dg-game__titlebar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
}
.dg-game__titlebar .dg-game__title { margin: 0; flex: 1; }
.dg-game__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: stretch;
	margin: 0 0 16px;
	padding: 0;
	overflow: visible;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}
.dg-game__head .dg-game__info {
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: auto;
}
.dg-game__head .dg-game__info { padding: 16px 16px 16px 0; }
.dg-game__head .dg-game__media,
.dg-game__head .dg-game__info {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.dg-game__head .dg-game__media { padding: 0; overflow: visible; min-width: 0; }
.dg-game__head .dg-game__info { /* padding: 16px 18px; */ }
.dg-game__head .dg-game__cover,
body.dg-front .dg-game .dg-game__head .dg-game__cover.game-hero__main {
	aspect-ratio: 16 / 9;
	border-radius: var(--dp-radius) 0 0 var(--dp-radius);
	box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 4px 10px rgba(17, 24, 39, 0.06);
	overflow: hidden;
}

.dg-game__engage-card {
	display: grid;
	grid-template-columns: 1fr 88px;
	align-items: center;
	position: relative;
	margin: 0 0 16px;
	padding: 0;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	overflow: hidden;
}
.dg-game__engage-card::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 16px;
	bottom: 16px;
	width: 1px;
	background: var(--dp-border);
	transform: translateX(-50%);
}
.dg-game__engage-side {
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
	min-width: 0;
	min-height: 72px;
	padding: 14px 18px;
}
.dg-game__engage-spacer { flex: 1; }
.dg-game__engage-note {
	position: absolute;
	right: calc(50% - 44px + 14px);
	color: var(--dp-text-muted);
	font-size: 14px;
	white-space: nowrap;
}
.dg-game__engage-side--fav {
	justify-content: center;
	position: relative;
	padding: 0;
}
.dg-game__engage-side--fav::before {
	content: "";
	position: absolute;
	left: 0;
	top: 16px;
	bottom: 16px;
	width: 1px;
	background: var(--dp-border);
}
.dg-game__heart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dp-text-muted);
	cursor: pointer;
}
.dg-game__heart:hover,
.dg-game__heart.is-active { color: #e11d48; }
.dg-game__heart.is-active svg { fill: currentColor; }
.dg-game__score { display: inline-flex; align-items: baseline; gap: 2px; line-height: 1; }
.dg-game__score small { font-size: 13px; font-weight: 500; color: var(--dp-text-muted); }
.dg-game__engage-card .dg-game__engage {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
}
.dg-game__head .dg-game__specs {
	grid-template-columns: 1fr;
	margin-top: 12px;
	background: transparent;
	padding: 0;
}
@media (max-width: 860px) {
	.dg-game__head { grid-template-columns: 1fr; }
	.dg-game__engage-card { grid-template-columns: 1fr; }
	.dg-game__engage-side { flex-wrap: wrap; justify-content: flex-start; }
	.dg-game__engage-side--fav::before { top: 0; bottom: auto; left: 22px; right: 22px; width: auto; height: 1px; }
}

.dg-game__score { font-size: 22px; font-weight: 700; color: var(--dp-accent); }


.dg-game__thumbs-wrap .game-hero__thumbs-nav.is-hidden { display: none; }

.dg-game__namecard-title { margin: 0; font-size: 16px; }
.dg-game__namecard-en { margin: 6px 0 0; color: var(--dp-text-muted); font-size: 13px; }
.dg-game__side .dg-game__namecard { margin-bottom: 16px; }

.dg-game__side-widgets { display: grid; gap: 16px; margin: 0 0 16px; }
.dg-game__side-widgets .widget { margin: 0; }

.dg-game__downloads { margin: 0 0 16px; }
.dg-game__download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dg-game__download-item { display: flex; align-items: center; gap: 12px; padding: 12px 0 0; border-top: 1px solid var(--dp-border); }
.dg-game__download-item:first-child { padding-top: 0; border-top: 0; }
.dg-game__download-thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--dp-surface-2); }
.dg-game__download-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-game__download-body { min-width: 0; flex: 1; }
.dg-game__download-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dg-game__download-info { min-width: 0; }
.dg-game__download-titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dg-game__download-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 6px; color: var(--dp-text-muted); font-size: 13px; line-height: 1.4; }
.dg-game__download-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--dp-text-dim); }
.dg-game__download-meta-type { font-weight: 600; color: var(--dp-text); }
.dg-game__download-meta-size { color: var(--dp-text); }
.dg-game__download-btn { min-height: 32px; padding: 0 12px; font-size: 13px; color: #fff; border: 0; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.dg-game__download-btn:hover,
.dg-game__download-btn:focus-visible { color: #fff; transform: translateY(-1px); }
.dg-game__download-btn--free { background: var(--dp-free); }
.dg-game__download-btn--free:hover,
.dg-game__download-btn--free:focus-visible { background: color-mix(in srgb, var(--dp-free) 85%, #000); box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.dg-game__download-btn--vip { background: var(--dp-vip); }
.dg-game__download-btn--vip:hover,
.dg-game__download-btn--vip:focus-visible { background: color-mix(in srgb, var(--dp-vip) 85%, #000); box-shadow: 0 2px 6px rgba(242,107,33,0.3); }
.dg-game__download-btn--paid { background: #8b5cf6; }
.dg-game__download-btn--paid:hover,
.dg-game__download-btn--paid:focus-visible { background: #7c4fe0; box-shadow: 0 2px 6px rgba(139,92,246,0.3); }
.dg-game__download-title { color: var(--dp-text); font-weight: 600; text-decoration: none; }
.dg-game__download-size, .dg-game__download-code { color: var(--dp-text-muted); font-size: 13px; }
.dg-game__download-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dg-game__comments { margin-top: 16px; }

.dg-game__card-head {
	margin: -15px -15px 15px;
	padding: 0 15px;
	border-bottom: 1px solid var(--dp-border);
}
.dg-game__card-head h2 {
	display: inline-block;
	margin: 0;
	padding: 12px 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	border-bottom: 3px solid var(--dp-vip);
}
.dg-game__requirements { margin-top: 16px; }
.dg-game__intro .dg-game__section-body + .dg-game__section-body,
.dg-game__intro .dg-game__section-body + .dg-game__longdesc { margin-top: 12px; }

.dg-game__comments .dg-comments-sort {
	display: flex;
	gap: 8px;
	margin: 0 0 14px;
}
.dg-game__comments .dg-comments-sort__btn {
	padding: 6px 12px;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	background: var(--dp-surface);
	color: var(--dp-text-muted);
	font-size: 13px;
	font-weight: 600;
}
.dg-game__comments .dg-comments-sort__btn.is-active,
.dg-game__comments .dg-comments-sort__btn[aria-selected="true"] {
	background: var(--dp-primary);
	border-color: var(--dp-primary);
	color: #fff;
}
.dg-game__comments .dg-comments-sort__btn.is-active::after,
.dg-game__comments .dg-comments-sort__btn[aria-selected="true"]::after { display: none; }
.dg-game__comments .comment-list { list-style: none; margin: 0; padding: 0; }
.dg-game__comments .comment-card,
.dg-game__comments .comment-card--top,
.dg-game__comments .comment-card--reply {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--dp-border);
	background: transparent;
	box-shadow: none;
	overflow: visible;
}
.dg-game__comments .comment-list > li:first-child .comment-card { border-top: 0; padding-top: 0; }
.dg-game__comments .comment-card__avatar { flex: 0 0 36px; width: 36px; margin: 0; }
.dg-game__comments .comment-card__avatar-img,
.dg-game__comments .comment-card .avatar { width: 36px; height: 36px; border-radius: 50%; display: block; }
.dg-game__comments .comment-card__main { flex: 1; min-width: 0; }
.dg-game__comments .comment-card__main { display: flex; flex-direction: column; gap: 6px; }
.dg-game__comments .comment-card__meta { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 0; }
.dg-game__comments .comment-card__author { font-weight: 700; line-height: 1.2; }
.dg-game__comments .comment-card__time { color: var(--dp-text-muted); font-size: 13px; }
.dg-game__comments .comment-content { margin: 0; color: var(--dp-text); }
.dg-game__comments .comment-card__actions { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.dg-game__comments .comment-reply-link,
.dg-game__comments .comment-card__like {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 4px 10px;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	background: var(--dp-surface);
	color: var(--dp-text-muted);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.dg-game__comments .comment-card__like.is-active,
.dg-game__comments .comment-card__like[aria-pressed="true"] {
	background: var(--dp-vip);
	border-color: var(--dp-vip);
	color: #fff;
}
.dg-game__comments .comment-card__like--down.is-active,
.dg-game__comments .comment-card__like--down[aria-pressed="true"] {
	background: #64748b;
	border-color: #64748b;
	color: #fff;
}
.dg-game__comments .comment-list .comment-item--top > .children,
.dg-game__comments .comment-list .comment-item--top > .comment-replies-block > .children {
	margin-left: 36px;
}
.dg-game__comments .comment-card__like:active { transform: scale(0.96); }
.dg-game__comments .comment-form { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--dp-border); }
.dg-game__comments .comment-form .form-submit { display: flex; justify-content: flex-end; }
.dg-game__comments .comment-form .submit { background: var(--dp-primary); }

.dg-game__tagline { margin: 0 0 12px; color: var(--dp-text); font-size: 15px; line-height: 1.6; }

/* DayuPress 首页：今日热门大卡片 */
.dg-home-hotcard {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	margin-bottom: 28px;
	padding: 0 16px 16px;
}
.dg-home-hotcard__head {
	margin: 0 -16px 16px;
	padding: 0 16px;
	border-bottom: 1px solid var(--dp-border);
}
.dg-home-hotcard__head h1,
.dg-home-hotcard__head h2 {
	display: inline-block;
	margin: 0;
	padding: 12px 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	border-bottom: 3px solid var(--dp-vip);
}
.dg-home-hotcard__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.dg-home-hotcard__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}
.dg-home-hotcard__cover {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--dp-surface-2);
}
.dg-home-hotcard__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.dg-home-hotcard__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dg-home-hotcard__meta {
	font-size: 12px;
	color: var(--dp-text-muted);
}
@media (max-width: 900px) {
	.dg-home-hotcard__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sidebar bottom aligns with 最新发布 card */
body.is-home-dayupress.has-home-dayupress-sidebar .dg-home-layout {
	align-items: stretch;
}
body.is-home-dayupress .dg-home-content > .dg-home-hotcard:last-child {
	margin-bottom: 0;
}
.dg-home-rated { margin-top: 28px; }

.dg-home-genres { margin-top: 28px; }
.dg-home-genres__head { border-bottom: 1px solid var(--dp-border); }
.dg-home-genres__tabs {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.dg-home-genres__tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.dg-home-genres__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	padding: 12px 0 8px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.4;
	color: var(--dp-text-muted);
	cursor: pointer;
	white-space: nowrap;
}
.dg-home-genres__tab.is-active {
	color: var(--dp-text);
	border-bottom-color: var(--dp-vip);
}
.dg-home-genres__panel { padding-top: 0; }

body.is-home-dayupress .dg-home-side .dg-comments-feed {
	position: static;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 0 16px 16px;
}
body.is-home-dayupress .dg-home-side .dg-comments-feed__head {
	flex: 0 0 auto;
	margin: 0 -16px 12px;
}
body.is-home-dayupress .dg-home-side .dg-comments-feed__list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
body.is-home-dayupress .dg-home-side .dg-comments-feed__list::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.dg-home-hotcard__cover { position: relative; }
.dg-home-hotcard__cover .dg-card__badge { position: absolute; top: 8px; left: 8px; }

/* Plugin shortcode pages: theme only supplies the frame. */
body.is-plugin-page .content-area--plugin {
	display: block;
	width: min(calc(100% - 40px), var(--dp-content-max));
	margin: 28px auto 0;
}
body.is-plugin-page .entry--plugin {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
}

/* Normal pages: align with header, keep a gap under the fixed bar. */
body.dg-front .site-main {
	padding: 28px 0 64px;
}
body.dg-front .container {
	width: min(var(--dp-content-max), 100%);
	margin-inline: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}
body.dg-front .content-area--page {
	display: block;
}
@media (min-width: 960px) {
	body.dg-front.has-sidebar .content-area--page {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 24px;
		align-items: start;
	}
}
body.dg-front .widget_block .wp-block-group,
body.dg-front .widget_block .wp-block-group__inner-container {
	margin: 0;
	padding: 0;
}
body.dg-front .widget_block .wp-block-heading {
	margin: 0 0 12px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--dp-border);
	font-size: 16px;
	font-weight: 700;
	color: var(--dp-text);
	display: flex;
	align-items: center;
	gap: 8px;
}
body.dg-front .widget_block .wp-block-heading::before {
	content: "";
	width: 3px;
	height: 0.9em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex: none;
}
body.dg-front .widget_block ul,
body.dg-front .widget_block ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
body.dg-front .widget_block li {
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid var(--dp-border);
}
body.dg-front .widget_block li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

body.dg-front .comment-form textarea::placeholder,
body.dg-front .comment-form input[type="text"]::placeholder,
body.dg-front .comment-form input[type="email"]::placeholder,
body.dg-front .comment-form input[type="url"]::placeholder,
body.dg-front .dg-auth-form__captcha-input::placeholder {
	font-size: 13px;
}
