/* ==========================================================================
   DayuPress — main styles
   Style L 天蓝变体: light cool gray + soft sky blue accent (yema8-inspired)
   ========================================================================== */

:root {
	--dp-bg: #f4f7f9;
	--dp-bg-elevated: #ffffff;
	--dp-surface: #ffffff;
	--dp-surface-2: #eef2f6;
	--dp-border: rgba(15, 23, 42, 0.08);
	--dp-border-strong: rgba(95, 164, 245, 0.45);
	--dp-text: #1f2937;
	--dp-text-muted: #6b7280;
	--dp-text-dim: #9ca3af;
	--dp-accent: #5fa4f5;
	--dp-accent-hover: #4a90e8;
	--dp-accent-soft: rgba(95, 164, 245, 0.12);
	--dp-accent-deep: #3b82d6;
	--dp-danger: #ef4444;
	--dp-radius: 12px;
	--dp-radius-sm: 8px;
	--dp-btn-radius: 999px;
	--dp-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	--dp-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
	--dp-header-h: 64px;
	--dp-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
		system-ui, -apple-system, "Segoe UI", sans-serif;
	--dp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--dp-content-max: 1180px;
	--dp-prose: 72ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--dp-font);
	font-size: 15px;
	line-height: 1.7;
	color: var(--dp-text);
	background: var(--dp-bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--dp-accent);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
		box-shadow 0.15s ease, transform 0.15s ease;
}

a:hover,
a:focus-visible {
	color: var(--dp-accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--dp-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.35;
	font-weight: 700;
	color: var(--dp-text);
	margin: 0 0 0.6em;
	word-break: break-word;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

figure {
	margin: 0;
}

/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--dp-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--dp-text);
	display: block;
	font-size: 0.95rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
	border-radius: var(--dp-radius-sm);
	box-shadow: var(--dp-shadow);
}

.skip-link:focus {
	position: absolute;
	z-index: 100000;
}

/* Layout */
.container {
	width: min(100% - 2rem, var(--dp-content-max));
	margin-inline: auto;
}

.site-main {
	padding-block: 1.25rem 3rem;
	min-height: 50vh;
}

.content-area {
	display: grid;
	gap: 1.5rem;
}

.content-area__main {
	min-width: 0;
}

@media (min-width: 960px) {
	.has-sidebar .content-area {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}
}

/* Header — sticky white */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10030;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--dp-border);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--dp-header-h);
	padding-block: 0.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.site-logo img {
	max-height: 40px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.site-title a {
	color: var(--dp-accent);
}

.site-title a:hover {
	color: var(--dp-accent-hover);
}

.site-description {
	margin: 0.1rem 0 0;
	font-size: 0.78rem;
	color: var(--dp-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 28ch;
}

@media (max-width: 640px) {
	.site-description {
		display: none;
	}
}

/* Navigation */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--dp-surface-2);
	color: var(--dp-text);
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	cursor: pointer;
	font: inherit;
	font-size: 0.88rem;
}

.menu-toggle__icon {
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
	display: inline-block;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

.main-navigation {
	display: none;
}

.main-navigation.is-open {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--dp-surface);
	border-bottom: 1px solid var(--dp-border);
	padding: 0.75rem 1rem 1rem;
	box-shadow: var(--dp-shadow-hover);
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.nav-menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	color: var(--dp-text);
	border-radius: var(--dp-radius-sm);
	font-weight: 600;
	font-size: 0.92rem;
}

.nav-menu a:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--dp-accent);
	background: transparent;
	box-shadow: inset 0 -2px 0 var(--dp-accent);
	border-radius: 0;
}

.nav-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.75rem;
}

@media (min-width: 860px) {
	.menu-toggle {
		display: none;
	}

	.main-navigation {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		padding: 0;
		box-shadow: none;
	}

	.nav-menu {
		flex-direction: row;
		align-items: center;
		gap: 0.1rem;
	}

	.nav-menu a {
		padding: 0.45rem 0.7rem;
	}

	.nav-menu .current-menu-item > a,
	.nav-menu .current_page_item > a {
		box-shadow: inset 0 -2px 0 var(--dp-accent);
	}

	.nav-menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 180px;
		background: var(--dp-surface);
		border: 1px solid var(--dp-border);
		border-radius: var(--dp-radius-sm);
		padding: 0.4rem;
		box-shadow: var(--dp-shadow-hover);
		z-index: 20;
	}

	.nav-menu li {
		position: relative;
	}

	.nav-menu li:hover > .sub-menu,
	.nav-menu li:focus-within > .sub-menu {
		display: block;
	}
}

/* Section titles with vertical accent bar (yema8) */
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1rem;
}

.section-heading__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
}

.section-heading__title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 1.05em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex-shrink: 0;
}

.section-heading__more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--dp-text-muted);
	white-space: nowrap;
}

.section-heading__more:hover {
	color: var(--dp-accent);
}

/* Page headers */
.page-header {
	margin-bottom: 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--dp-border);
}

.page-header--home {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.page-title {
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	margin-bottom: 0.3rem;
}

.page-subtitle,
.archive-description {
	color: var(--dp-text-muted);
	margin: 0;
	font-size: 0.92rem;
}

.archive-description {
	margin-top: 0.45rem;
}

.section-heading + .page-subtitle,
.section-heading + .archive-description {
	margin: -0.35rem 0 1.15rem;
}

/* Home hero: slideshow left + numbered list right */
.home-hero {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
	.home-hero {
		grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
		align-items: stretch;
	}
}

.home-hero__slider {
	position: relative;
	border-radius: var(--dp-radius);
	overflow: hidden;
	background: var(--dp-surface);
	box-shadow: var(--dp-shadow);
	min-height: 200px;
	aspect-ratio: 16 / 9;
	outline: none;
	width: 100%;
	max-height: 280px;
}

@media (min-width: 900px) {
	.home-hero__slider {
		aspect-ratio: auto;
		height: 100%;
		min-height: 260px;
		max-height: 360px;
	}
}

.home-hero__slider:focus-visible {
	box-shadow: var(--dp-shadow), 0 0 0 3px color-mix(in srgb, var(--dp-accent) 45%, transparent);
}

.home-hero__track {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.home-hero__slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	color: inherit;
}

.home-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.home-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-hero__slide-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: linear-gradient(135deg, var(--dp-accent-soft), var(--dp-surface-2));
	color: var(--dp-accent);
	font-size: 2rem;
}

.home-hero__slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1rem 1rem;
	background: linear-gradient(transparent, rgba(15, 23, 42, 0.55));
	color: #fff;
	z-index: 2;
}

.home-hero__slide-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
}

.home-hero__prev,
.home-hero__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 2.15rem;
	height: 2.15rem;
	border: 1px solid color-mix(in srgb, var(--dp-accent) 28%, #fff);
	border-radius: 999px;
	background: color-mix(in srgb, #fff 88%, var(--dp-accent-soft));
	color: var(--dp-accent);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 1.35rem;
	line-height: 1;
	padding: 0;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-hero__slider:hover .home-hero__prev,
.home-hero__slider:hover .home-hero__next,
.home-hero__slider:focus-within .home-hero__prev,
.home-hero__slider:focus-within .home-hero__next {
	opacity: 1;
}

.home-hero__prev:hover,
.home-hero__next:hover {
	background: var(--dp-accent);
	color: #fff;
	border-color: var(--dp-accent);
}

.home-hero__prev {
	left: 0.65rem;
}

.home-hero__next {
	right: 0.65rem;
}

.home-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.65rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	pointer-events: none;
}

.home-hero__dot {
	pointer-events: auto;
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.65);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}

.home-hero__dot.is-active {
	width: 1.15rem;
	background: var(--dp-accent);
}

.home-hero__slider.is-single .home-hero__prev,
.home-hero__slider.is-single .home-hero__next,
.home-hero__slider.is-single .home-hero__dots {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__slide {
		transition: none;
	}
}

.home-hero__panel {
	background: var(--dp-surface);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 1rem 1.1rem 0.85rem;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.home-hero__panel-title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.home-hero__panel-title::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--dp-accent);
}

.home-hero__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	overflow: auto;
}

.home-hero__list li {
	border-bottom: 1px solid var(--dp-border);
}

.home-hero__list li:last-child {
	border-bottom: 0;
}

.home-hero__list a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 0.15rem;
	color: var(--dp-text);
	font-weight: 600;
	font-size: 0.9rem;
}

.home-hero__list a:hover {
	color: var(--dp-accent);
}

.home-hero__num {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.25rem;
	border-radius: 6px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-size: 0.78rem;
	font-weight: 800;
}

.home-hero__list li:nth-child(-n+3) .home-hero__num {
	background: var(--dp-accent);
	color: #fff;
}

.home-hero__list-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Post grid cards */
.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

@media (min-width: 560px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.no-sidebar .post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.no-sidebar .post-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.has-sidebar .post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--dp-surface);
	border: 1px solid transparent;
	border-radius: var(--dp-radius);
	overflow: hidden;
	box-shadow: var(--dp-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--dp-shadow-hover);
}

.post-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--dp-surface-2);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--dp-surface-2);
	color: var(--dp-text-dim);
	font-size: 0.85rem;
	font-weight: 600;
}

.post-card__placeholder-icon {
	display: none;
}

.post-card__placeholder::after {
	content: "暂无封面";
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.85rem 0.95rem 1rem;
	flex: 1;
}

.post-card__cat {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
}

.post-card__title {
	font-size: 0.98rem;
	margin: 0;
	font-weight: 700;
}

.post-card__title a {
	color: var(--dp-text);
}

.post-card__title a:hover {
	color: var(--dp-accent);
}

.post-card__excerpt {
	color: var(--dp-text-muted);
	font-size: 0.86rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--dp-text-dim);
	margin-top: 0.15rem;
}

.post-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-weight: 700;
	font-size: 0.7rem;
}

/* Post list (latest articles / posts page) — left thumb, right text */
.post-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.post-list-item {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0.95rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	overflow: hidden;
	box-shadow: var(--dp-shadow);
	padding: 0.75rem;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-list-item:hover {
	border-color: rgba(95, 164, 245, 0.28);
	box-shadow: var(--dp-shadow-hover);
}

.post-list-item__media {
	flex: 0 0 9.5rem;
	width: 9.5rem;
	aspect-ratio: 16 / 9;
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
	background: var(--dp-surface-2);
	align-self: center;
}

.post-list-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-list-item:hover .post-list-item__media img {
	transform: scale(1.03);
}

.post-list-item__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--dp-surface-2);
	color: var(--dp-text-dim);
	font-size: 0.75rem;
	font-weight: 600;
}

.post-list-item__placeholder::after {
	content: "暂无封面";
}

.post-list-item__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
	min-width: 0;
	padding: 0.1rem 0.15rem 0.1rem 0;
}

.post-list-item__cat {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
}

.post-list-item__title {
	font-size: 1.05rem;
	margin: 0;
	font-weight: 700;
	line-height: 1.4;
}

.post-list-item__title a {
	color: var(--dp-text);
}

.post-list-item__title a:hover {
	color: var(--dp-accent);
}

.post-list-item__excerpt {
	color: var(--dp-text-muted);
	font-size: 0.88rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.post-list-item__excerpt p {
	margin: 0;
}

.post-list-item__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--dp-text-dim);
	margin-top: 0.1rem;
}

.post-list-item__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-weight: 700;
	font-size: 0.7rem;
}

@media (min-width: 640px) {
	.post-list-item {
		gap: 1.1rem;
		padding: 0.85rem 1rem;
	}

	.post-list-item__media {
		flex-basis: 12.5rem;
		width: 12.5rem;
	}

	.post-list-item__title {
		font-size: 1.12rem;
	}
}

@media (max-width: 479px) {
	.post-list-item {
		flex-direction: column;
		gap: 0.65rem;
		padding: 0.65rem;
	}

	.post-list-item__media {
		flex: none;
		width: 100%;
		align-self: stretch;
	}
}

/* Single / entry */
.entry {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.25rem 1.15rem 1.4rem;
	box-shadow: var(--dp-shadow);
}

@media (min-width: 720px) {
	.entry {
		padding: 1.6rem 1.65rem 1.85rem;
	}
}

.entry-header {
	margin-bottom: 1rem;
}

.entry-title {
	font-size: clamp(1.45rem, 2.8vw, 2rem);
	margin-bottom: 0.5rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.45rem;
	color: var(--dp-text-muted);
	font-size: 0.88rem;
}

.meta-label {
	color: var(--dp-text-dim);
	margin-right: 0.15rem;
}

.meta-sep {
	color: var(--dp-text-dim);
}

.cat-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.55rem;
}

.cat-links a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.entry-thumbnail {
	margin: 0 0 1.15rem;
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
	border: 1px solid var(--dp-border);
}

.entry-thumbnail img {
	width: 100%;
}

.entry-content {
	/* Fill main column (same width as hero / download box); was 72ch and looked too narrow */
	max-width: none;
	width: 100%;
	min-width: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--dp-text);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.5em;
}

.entry-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content blockquote {
	margin: 1.2em 0;
	padding: 0.8rem 1rem;
	border-left: 3px solid var(--dp-accent);
	background: var(--dp-accent-soft);
	border-radius: 0 var(--dp-radius-sm) var(--dp-radius-sm) 0;
	color: var(--dp-text);
}

.entry-content pre,
.entry-content code {
	font-family: var(--dp-mono);
}

.entry-content pre {
	background: var(--dp-surface-2);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	padding: 1rem;
	overflow-x: auto;
}

.entry-content code {
	font-size: 0.9em;
	background: var(--dp-surface-2);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.entry-content pre code {
	background: transparent;
	padding: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
	font-size: 0.92rem;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--dp-border);
	padding: 0.5rem 0.65rem;
	text-align: left;
}

.entry-content th {
	background: var(--dp-surface-2);
}

.entry-footer {
	margin-top: 1.35rem;
	padding-top: 0.95rem;
	border-top: 1px solid var(--dp-border);
	color: var(--dp-text-muted);
	font-size: 0.88rem;
}

.tags-label {
	color: var(--dp-text-dim);
}

.tags-links a {
	display: inline-block;
	margin: 0.12rem 0.2rem 0.12rem 0;
	padding: 0.12rem 0.45rem;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	color: var(--dp-text-muted);
	font-size: 0.8rem;
	background: var(--dp-bg);
}

.tags-links a:hover {
	border-color: var(--dp-accent);
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
}

/* Download box — light UI */
.download-box {
	margin: 0 0 1.35rem;
	padding: 1.1rem 1.15rem;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border-strong);
	background: linear-gradient(180deg, rgba(95, 164, 245, 0.08), transparent 70%),
		var(--dp-surface);
	box-shadow: var(--dp-shadow);
}

.download-box__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.8rem;
}

.download-box__icon {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
	font-size: 0.95rem;
}

.download-box__title {
	margin: 0;
	font-size: 1.05rem;
}

.download-box__meta {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

@media (min-width: 520px) {
	.download-box__meta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.download-box__meta li {
	background: var(--dp-bg);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	padding: 0.6rem 0.7rem;
}

.download-box__label {
	display: block;
	font-size: 0.7rem;
	color: var(--dp-text-dim);
	margin-bottom: 0.12rem;
	letter-spacing: 0.03em;
}

.download-box__value {
	font-weight: 700;
	color: var(--dp-text);
	word-break: break-word;
}

.download-box__action {
	margin: 0 0 0.55rem;
}

.download-box__note {
	margin: 0;
	font-size: 0.78rem;
	color: var(--dp-text-dim);
}

/* Buttons */
.button,
.button--download,
.search-submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.65rem 1.15rem;
	border-radius: var(--dp-btn-radius);
	border: 1px solid transparent;
	background: var(--dp-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(95, 164, 245, 0.28);
}

.button:hover,
.button--download:hover,
.search-submit:hover {
	color: #fff;
	background: var(--dp-accent-hover);
}

.button--download {
	min-width: 9.5rem;
}

/* Pagination & post nav */
.navigation.pagination,
.post-navigation,
.comments-navigation {
	margin-top: 1.5rem;
}

/* Shared flex row; do NOT space-between here — that stretches page chips. */
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
}

/* Prev/next article (and comments) may sit at opposite ends. */
.post-navigation .nav-links,
.comments-navigation .nav-links {
	justify-content: space-between;
}

/* Posts pagination: tight centered cluster. */
.navigation.pagination .nav-links {
	gap: 0.35rem;
	justify-content: center;
}

/* paginate_links type=list → ul.page-numbers inside .nav-links */
.navigation.pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navigation.pagination ul.page-numbers > li {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.page-numbers,
.comments-navigation a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.8rem;
	border-radius: var(--dp-radius-sm);
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	font-size: 0.88rem;
	box-shadow: var(--dp-shadow);
}

/* Ellipsis separator — not a page chip. */
.page-numbers.dots,
span.page-numbers.dots {
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0.45rem 0.2rem;
	color: var(--dp-text-dim);
	cursor: default;
	pointer-events: none;
}

.page-numbers.current,
a.page-numbers:hover {
	border-color: var(--dp-accent);
	color: var(--dp-accent);
	background: var(--dp-accent-soft);
}

.post-navigation a {
	display: block;
	padding: 0.15rem 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--dp-text);
	text-decoration: none;
}

.post-navigation a:hover {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--dp-accent);
}

.post-navigation {
	padding: 0.95rem 1rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.nav-subtitle {
	display: block;
	font-size: 0.72rem;
	color: var(--dp-text-dim);
	margin-bottom: 0.12rem;
}

.nav-title {
	font-weight: 700;
}

/* Sidebar / widgets */
.widget-area {
	display: grid;
	gap: 1rem;
}

.widget {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 0.95rem 1.05rem 1.05rem;
	box-shadow: var(--dp-shadow);
}

.widget-title {
	font-size: 0.98rem;
	margin: 0 0 0.7rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--dp-border);
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.widget-title::before {
	content: "";
	width: 3px;
	height: 0.9em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex-shrink: 0;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--dp-border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--dp-text);
}

.widget a:hover {
	color: var(--dp-accent);
}

.widget select,
.widget input[type="search"],
.widget input[type="text"] {
	width: 100%;
}

/* Search form */
.search-form {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1.15rem;
	flex-wrap: wrap;
}

.search-field {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	font: inherit;
	box-shadow: var(--dp-shadow);
}

.search-field::placeholder {
	color: var(--dp-text-dim);
}

/* Comments */
.comments-area {
	margin-top: 1.5rem;
	padding: 1.25rem 1.15rem;
}

.comments-area--card {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.comments-title {
	font-size: 1.1rem;
	margin: 0 0 0.95rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	color: var(--dp-text);
}

.comments-title::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex-shrink: 0;
}

.comments-empty {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.95rem 1rem;
	margin: 0 0 1.1rem;
	background: var(--dp-surface-2);
	border-radius: var(--dp-radius-sm);
	color: var(--dp-text-muted);
}

.comments-empty__icon {
	font-size: 1.15rem;
	line-height: 1;
	opacity: 0.85;
}

.comments-empty__text {
	margin: 0;
	font-size: 0.92rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.comment-list .comment-item,
.comment-list .comment {
	margin: 0;
}

/* Nested replies sit flat under the expanded top-level comment (no deeper indent). */
.comment-list .children {
	list-style: none;
	margin: 0.35rem 0 0.15rem;
	padding: 0;
	border-left: 0;
}

.comment-list .comment-item--top > .children,
.comment-list .comment-item--top > .comment-replies-block > .children {
	margin: 0.15rem 0 0.55rem;
	padding: 0.15rem 0 0.15rem 0.35rem;
	border-left: 2px solid rgba(95, 164, 245, 0.28);
	margin-left: 0.35rem;
}

.comment-list .children .children {
	margin: 0;
	padding: 0;
	border-left: 0;
}

.comment-item--top.is-collapsed > .children,
.comment-item--top.is-collapsed > .comment-replies-block {
	display: none;
}

.comment-body,
.comment-card {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.7rem 0.85rem;
	margin: 0 0 0.45rem;
	background: var(--dp-surface-2);
	border-radius: var(--dp-radius-sm);
	border-bottom: 0;
}

.comment-card--top {
	flex-direction: column;
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.comment-card__summary {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	margin: 0;
	padding: 0.7rem 0.85rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.comment-card__summary:hover {
	background: rgba(95, 164, 245, 0.08);
}

.comment-card__summary:focus-visible {
	outline: 2px solid var(--dp-accent);
	outline-offset: -2px;
}

.comment-card__summary-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	line-height: 1.4;
}

.comment-card__excerpt {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--dp-text-muted);
}

.comment-item--top.is-expanded .comment-card__excerpt {
	display: none;
}

.comment-card__chevron {
	flex-shrink: 0;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid var(--dp-text-dim);
	border-bottom: 2px solid var(--dp-text-dim);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-right: 0.15rem;
}

.comment-item--top.is-expanded .comment-card__chevron {
	transform: rotate(225deg);
	margin-top: 0.2rem;
}

.comment-card__expanded {
	display: none;
	padding: 0 0.85rem 0.75rem 3.35rem;
}

.comment-item--top.is-expanded .comment-card__expanded {
	display: block;
}

.comment-card--reply {
	padding: 0.45rem 0.55rem;
	margin: 0 0 0.25rem;
	background: transparent;
	align-items: flex-start;
}

.comment-card__avatar {
	flex-shrink: 0;
}

.comment-card__avatar-img,
.comment-author .avatar,
.comment-card .avatar {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-card--reply .comment-card__avatar-img,
.comment-card--reply .avatar {
	width: 28px;
	height: 28px;
}

.comment-card__main {
	flex: 1 1 auto;
	min-width: 0;
}

.comment-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.65rem;
	margin: 0 0 0.35rem;
	line-height: 1.35;
}

.comment-card__inline {
	display: block;
	line-height: 1.55;
	font-size: 0.9rem;
	color: var(--dp-text);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.comment-card__author,
.comment-card__author a {
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--dp-text);
	text-decoration: none;
}

.comment-card--reply .comment-card__author,
.comment-card--reply .comment-card__author a {
	font-size: 0.88rem;
}

.comment-card__author a:hover {
	color: var(--dp-accent);
}

.comment-card__reply-label {
	margin: 0 0.15rem;
	font-weight: 500;
	font-size: 0.84rem;
	color: var(--dp-text-dim);
}

.comment-card__parent-author {
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--dp-accent-deep);
}

.comment-card__colon {
	font-weight: 600;
	margin-right: 0.1rem;
}

.comment-card__time,
.comment-card__time time,
.comment-card__permalink,
.comment-card__permalink time {
	font-size: 0.78rem;
	color: var(--dp-text-dim);
	text-decoration: none;
	flex-shrink: 0;
	white-space: nowrap;
}

.comment-card__summary > .comment-card__time {
	margin-left: auto;
}

.comment-card__time:hover,
.comment-card__permalink:hover {
	color: var(--dp-accent);
}

.comment-content {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--dp-text);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.comment-content--inline {
	display: inline;
	font-size: inherit;
	line-height: inherit;
}

.comment-content--inline > p {
	display: inline;
	margin: 0;
}

.comment-content--inline > p + p {
	display: block;
	margin-top: 0.35rem;
}

.comment-content p {
	margin: 0 0 0.45rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-awaiting-moderation {
	margin: 0 0 0.4rem;
	font-size: 0.82rem;
	color: var(--dp-accent-deep);
}

.comment-card__actions {
	margin-top: 0.35rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.55rem;
	width: 100%;
}

.comment-card--reply .comment-card__actions {
	margin-top: 0.2rem;
}

/* Nested replies tools: collapse + pager (only when pager exists). */
.comment-replies-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem 0.85rem;
	margin: 0.15rem 0 0.45rem;
	padding: 0.15rem 0.35rem 0.25rem;
}

.comment-replies-collapse {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--dp-accent);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.comment-replies-collapse:hover {
	color: var(--dp-accent-deep);
	text-decoration: underline;
}

.comment-replies-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
}

.comment-replies-pager__btn {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0.28rem 0.65rem;
	border-radius: var(--dp-radius-sm);
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--dp-shadow);
}

.comment-replies-pager__btn:hover:not(:disabled) {
	border-color: rgba(95, 164, 245, 0.55);
	color: var(--dp-accent-deep);
}

.comment-replies-pager__btn:disabled {
	opacity: 0.45;
	cursor: default;
}

.comment-replies-pager__status {
	font-size: 0.78rem;
	color: var(--dp-text-dim);
	min-width: 3.2rem;
	text-align: center;
}

.comment-item--top.is-collapsed > .comment-replies-pager,
.comment-item--top.is-collapsed > .comment-replies-tools {
	display: none;
}

.comment-replies-block {
	margin: 0;
	padding: 0;
}

.comment-form__status {
	margin: 0 0 10px;
	font-size: 0.9rem;
	color: var(--dp-text-muted, #5b6b7c);
}
.comment-form__status.is-error {
	color: #c0392b;
}

.comment-reply-link,
.comment-edit-link {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--dp-accent);
	text-decoration: none;
}

.comment-reply-link:hover,
.comment-edit-link:hover {
	color: var(--dp-accent-hover);
	text-decoration: underline;
}

.comment-edit-link-wrap {
	font-size: 0.82rem;
}

@media (max-width: 640px) {
	.comment-card__expanded {
		padding-left: 0.85rem;
	}

	.comment-list .comment-item--top > .children,
	.comment-list .comment-item--top > .comment-replies-block > .children {
		margin-left: 0;
		padding-left: 0.2rem;
	}

	.comment-card__summary-main {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.15rem;
	}

	.comment-card__excerpt {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

/* Comment form */
.comment-respond {
	margin-top: 0.35rem;
}

.comment-reply-title {
	font-size: 1.05rem;
	margin: 0 0 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
}

.comment-reply-title::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--dp-accent);
	flex-shrink: 0;
}

.comment-reply-title small {
	font-size: 0.82rem;
	font-weight: 600;
}

.comment-reply-title small a {
	color: var(--dp-accent);
}


.comment-form__identity {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
	margin: 0 0 0.75rem;
}

.comment-form__identity > p {
	margin: 0;
}

.comment-form__identity > .comment-form-author label,
.comment-form__identity > .comment-form-email label,
.comment-form__identity > .comment-form-url label {
	display: none;
}

.comment-form__identity > .comment-form-cookies-consent {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin-top: 0.1rem;
}

.comment-form__identity > .comment-form-cookies-consent input {
	width: 1rem;
	margin: 0.15rem 0 0;
	flex-shrink: 0;
}

.comment-form__identity > .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--dp-text-muted);
	line-height: 1.45;
}

@media (max-width: 640px) {
	.comment-form__identity {
		grid-template-columns: 1fr;
	}
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--dp-text-muted);
}

.comment-form .logged-in-as,
.comment-notes {
	margin: 0 0 0.7rem;
	color: var(--dp-text-muted);
	font-size: 0.85rem;
}

.comment-form .logged-in-as a {
	color: var(--dp-accent);
	font-weight: 600;
}

.comment-form p {
	margin: 0 0 0.75rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.3rem 0.7rem;
	border-radius: var(--dp-radius-sm);
	border: 1px solid var(--dp-border);
	background: var(--dp-bg);
	color: var(--dp-text);
	font: inherit;
	margin-bottom: 0;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form textarea {
	min-height: 7.5rem;
	resize: vertical;
	line-height: 1.55;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--dp-border-strong);
	box-shadow: 0 0 0 3px var(--dp-accent-soft);
}

.comment-form .form-submit {
	margin: 0.15rem 0 0;
}

.comment-form .submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 7.5rem;
	padding: 0.65rem 1.35rem;
	border-radius: var(--dp-btn-radius);
	border: 0;
	background: var(--dp-accent);
	color: #fff;
	font-weight: 700;
	font: inherit;
	font-size: 0.92rem;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(95, 164, 245, 0.28);
}

.comment-form .submit:hover {
	background: var(--dp-accent-hover);
}

.no-comments {
	color: var(--dp-text-muted);
	font-size: 0.9rem;
	margin: 0 0 0.85rem;
}

/* 404 / empty *//* 404 / empty */
.error-404,
.no-results {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	padding: 1.4rem;
	box-shadow: var(--dp-shadow);
}

.error-404__actions {
	margin-top: 1rem;
}

/* Footer */
.site-footer {
	margin-top: auto;
	border-top: 1px solid var(--dp-border);
	background: var(--dp-surface);
	padding: 1.85rem 0 1.6rem;
}

.site-footer__inner {
	display: grid;
	gap: 1.15rem;
}

.footer-widgets {
	display: grid;
	gap: 1rem;
}

@media (min-width: 720px) {
	.footer-widgets {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

.widget--footer {
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none;
}

.widget--footer .widget-title::before {
	display: none;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
}

.footer-menu a {
	color: var(--dp-text-muted);
	font-weight: 600;
}

.footer-menu a:hover {
	color: var(--dp-accent);
}

.site-info {
	color: var(--dp-text-dim);
	font-size: 0.85rem;
}

.site-info p {
	margin: 0 0 0.3rem;
}

.site-info a {
	color: var(--dp-text-muted);
}

.powered-by {
	opacity: 0.9;
}

/* Alignments / WP defaults */
.alignleft {
	float: left;
	margin: 0.3rem 1.15rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.15rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide,
.alignfull {
	max-width: none;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.82rem;
	color: var(--dp-text-muted);
	margin-top: 0.35rem;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.7rem;
	margin: 1.15rem 0;
}

/* Admin bar offset for sticky header */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* ==========================================================================
   Game single (1.4.1)
   ========================================================================== */

.game-single {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.game-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
	padding: 1.1rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

@media (min-width: 900px) {
	.game-hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 1.4rem;
		padding: 1.35rem;
	}
}

.content-area--game {
	display: grid;
	gap: 1.5rem;
}

.content-area--game .game-single {
	display: contents;
}

.content-area--game .game-hero {
	grid-column: 1 / -1;
}

@media (min-width: 960px) {
	.has-sidebar .content-area--game {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}

	.has-sidebar .content-area--game .game-tabs {
		grid-column: 1;
		grid-row: 2;
		min-width: 0;
	}

	.has-sidebar .content-area--game .widget-area {
		grid-column: 2;
		grid-row: 2;
	}
}

.game-hero__media {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.game-hero__main {
	aspect-ratio: 4 / 3;
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
	background: var(--dp-surface-2);
}

.game-hero__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-hero__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--dp-text-dim);
	font-weight: 600;
	font-size: 0.9rem;
}

.game-hero__thumbs-wrap {
	position: relative;
	min-width: 0;
}

.game-hero__thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.3rem;
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.game-hero__thumbs::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.game-hero__thumbs-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--dp-border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--dp-surface) 88%, transparent);
	color: var(--dp-text-muted);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease, visibility 0.15s ease;
}

.game-hero__thumbs-nav--prev {
	left: 0;
}

.game-hero__thumbs-nav--next {
	right: 0;
}

.game-hero__thumbs-nav:hover {
	color: var(--dp-accent);
	border-color: var(--dp-border-strong);
	background: var(--dp-accent-soft);
}

/* Keep box in absolute layer so show/hide never shifts thumbs */
.game-hero__thumbs-nav.is-hidden,
.game-hero__thumbs-nav[hidden] {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.game-hero__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 48px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	background: var(--dp-surface-2);
	cursor: pointer;
}

.game-hero__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-hero__thumb.is-active,
.game-hero__thumb:hover {
	border-color: var(--dp-accent);
}

.game-hero__info {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	height: 100%;
}

.game-hero__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.55rem 0.75rem;
}

.game-hero__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.game-hero__edit {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--dp-accent, #1d8cf8);
	text-decoration: none;
	white-space: nowrap;
}

.game-hero__edit:hover,
.game-hero__edit:focus-visible {
	text-decoration: underline;
}

.game-hero__tagline {
	margin: 0;
	color: var(--dp-text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.game-hero__meta {
	list-style: none;
	margin: 0;
	padding: 0.45rem 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	background: var(--dp-bg);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
}

.game-hero__meta li {
	display: grid;
	grid-template-columns: 3em 1fr;
	column-gap: 1.25rem;
	align-items: baseline;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.game-hero__meta-label {
	font-size: 0.82rem;
	color: var(--dp-text-dim);
	letter-spacing: 0.02em;
	text-align: left;
}

.game-hero__meta-value {
	font-weight: 500;
	font-size: 0.82rem;
	color: var(--dp-text);
	word-break: break-word;
	min-width: 0;
	text-align: left;
}

.game-hero__tags {
	min-width: 0;
}

.game-hero__tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.4rem;
	min-width: 0;
}

.game-hero__tag {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.55rem;
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--dp-accent-deep, #1d4f91);
	background: var(--dp-accent-soft, rgba(29, 140, 248, 0.1));
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
}

.game-hero__tag:hover,
.game-hero__tag:focus-visible {
	color: #fff;
	background: var(--dp-accent, #1d8cf8);
}

.game-hero__bar {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
	margin-top: auto;
	padding: 0;
	overflow: hidden;
	background: var(--dp-accent-soft);
	border-radius: var(--dp-radius-sm);
}

.game-hero__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	flex: 1 1 auto;
	min-width: 0;
	margin-top: 0;
	padding: 0.7rem 0.9rem;
	background: transparent;
	border-radius: 0;
}

.game-hero__rating-score {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
}

.game-hero__rating-label {
	display: block;
	width: 100%;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--dp-text-muted);
	letter-spacing: 0.02em;
}

.game-hero__rating-nums {
	display: inline-flex;
	align-items: baseline;
	gap: 0.15rem;
}

.game-hero__stars-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
	min-width: 0;
}

.game-hero__stars-label {
	font-size: 0.75rem;
	color: var(--dp-text-muted);
	line-height: 1.2;
}

.game-hero__rating.is-busy {
	opacity: 0.72;
	pointer-events: none;
}

.dayupress-engage-toast {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%);
	z-index: 100000;
	max-width: min(90vw, 22rem);
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: rgba(29, 35, 39, 0.92);
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.4;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	opacity: 1;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.dayupress-engage-toast.is-error {
	background: rgba(180, 40, 40, 0.95);
}

.dayupress-engage-toast.is-out {
	opacity: 0;
	transform: translateX(-50%) translateY(8px);
}


.game-hero__rating-avg {
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--dp-accent-deep);
	line-height: 1;
}

.game-hero__rating-count {
	font-size: 0.78rem;
	color: var(--dp-text-muted);
}

.game-hero__stars {
	display: inline-flex;
	gap: 0.2rem;
	align-items: center;
}

.game-hero__star {
	position: relative;
	display: inline-block;
	width: 1.35rem;
	height: 1.35rem;
	color: #c5d0dc;
	font-size: 1.25rem;
	line-height: 1;
	user-select: none;
}

.game-hero__star-glyph {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	text-align: center;
	pointer-events: none;
	z-index: 0;
}

.game-hero__star.is-full .game-hero__star-glyph,
.game-hero__star.is-preview-full .game-hero__star-glyph {
	color: var(--dp-accent);
}

.game-hero__star.is-half .game-hero__star-glyph::before,
.game-hero__star.is-preview-half .game-hero__star-glyph::before {
	content: "★";
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	overflow: hidden;
	color: var(--dp-accent);
}

.game-hero__star-hit {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 1;
}

.game-hero__star-hit--left {
	left: 0;
}

.game-hero__star-hit--right {
	right: 0;
}

.game-hero__star-hit:focus-visible {
	outline: 2px solid var(--dp-accent);
	outline-offset: 1px;
}

.game-hero__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	border-left: 1px solid var(--dp-border);
}

.game-hero__actions .game-action {
	flex: 1 1 auto;
	justify-content: center;
	min-width: 4.75rem;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.game-hero__actions .game-action:hover,
.game-hero__actions .game-action:focus-visible {
	background: color-mix(in srgb, var(--dp-accent) 12%, transparent);
	border-color: transparent;
	color: var(--dp-accent-deep);
}

.game-hero__actions .game-action.is-active {
	background: color-mix(in srgb, var(--dp-accent) 18%, transparent);
	border-color: transparent;
}

.game-action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.8rem;
	border-radius: var(--dp-btn-radius);
	border: 1px solid var(--dp-border);
	background: var(--dp-bg);
	color: var(--dp-text);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.game-action:hover {
	border-color: var(--dp-border-strong);
	color: var(--dp-accent-deep);
}

.game-action.is-active {
	background: var(--dp-accent-soft);
	border-color: var(--dp-border-strong);
	color: var(--dp-accent-deep);
}

.game-action__count {
	color: var(--dp-text-muted);
	font-weight: 700;
	font-size: 0.85rem;
}

.game-action.is-active .game-action__count {
	color: var(--dp-accent-deep);
}

.button--ghost {
	background: transparent;
	color: var(--dp-accent-deep);
	border: 1px solid var(--dp-border-strong);
	box-shadow: none;
}

.button--ghost:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
}

.button--sm {
	min-width: 0;
	line-height: 1;
	padding: 0.3rem 0.7rem;
	font-size: 0.85rem;
	box-shadow: none;
}

/* Resource tab (game detail): slightly taller download buttons, slightly shorter vote buttons. */
.game-related-card__download .button--sm,
.game-related-card__downloads .button--sm {
	padding: 0.4rem 0.85rem;
	font-size: 0.88rem;
	min-height: 2.05rem;
	line-height: 1.15;
}

.game-related-card__meta-row .game-action,
.game-related-card__meta-row .game-action--sm {
	padding: 0.25rem 0.7rem;
	font-size: 0.82rem;
	min-height: 0;
	line-height: 1.15;
}

.game-related-card__meta-row .game-action__count {
	font-size: 0.82rem;
}


.game-tabs__panel .game-intro.entry-content {
	margin: 0;
	max-width: none;
	width: 100%;
	font-size: 17px;
	line-height: 1.7;
}

.game-section-title {
	font-size: 1.1rem;
	margin: 0 0 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.game-section-title::before {
	content: "";
	width: 3px;
	height: 0.95em;
	border-radius: 2px;
	background: var(--dp-accent);
}

.game-tabs {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	overflow: hidden;
}

.game-tabs__nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--dp-border);
	background: var(--dp-bg);
}

.game-tabs__tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 0.85rem 1rem;
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--dp-text-muted);
	cursor: pointer;
	position: relative;
}

.game-tabs__tab:hover {
	color: var(--dp-text);
}

.game-tabs__tab.is-active {
	color: var(--dp-accent-deep);
	background: var(--dp-surface);
}

.game-tabs__tab.is-active::after {
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--dp-accent);
}

.game-tabs__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	padding: 0.05rem 0.35rem;
	margin-left: 0.25rem;
	border-radius: 999px;
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
	font-size: 0.72rem;
}

.game-tabs__panel {
	display: none;
	padding: 1.15rem 1.1rem 1.35rem;
}

.game-tabs__panel.is-active {
	display: block;
}

.game-tabs__empty {
	margin: 0;
	color: var(--dp-text-dim);
}

.game-download-block {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--dp-border);
}

.game-download-block:last-of-type {
	border-bottom: 0;
}

.game-download-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem;
	margin-bottom: 0.65rem;
}

.game-download-block__title {
	margin: 0;
	font-size: 1rem;
}

.game-download-block__size {
	font-size: 0.82rem;
	color: var(--dp-text-muted);
	font-weight: 600;
}

.game-download-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.game-download-lines__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.game-download-lines__label {
	font-weight: 600;
	font-size: 0.9rem;
}

.game-install-notes {
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	background: var(--dp-bg);
	border: 1px dashed var(--dp-border-strong);
	border-radius: var(--dp-radius-sm);
}

.game-install-notes__title {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
}

.game-install-notes__body {
	font-size: 0.88rem;
	color: var(--dp-text-muted);
	line-height: 1.65;
}

/* Comments nested in discussion tab: drop outer chrome */
.game-tabs__panel .comments-area {
	margin-top: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.game-tabs__panel .comments-title {
	margin-top: 0;
}

/* —— 1.5.0: related posts + crumb —— */
.game-posts-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 1rem;
}

.game-posts-filter {
	border: 1px solid var(--dp-border);
	background: var(--dp-bg);
	color: var(--dp-text-muted);
	border-radius: var(--dp-btn-radius);
	padding: 0.3rem 0.85rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.game-posts-filter:hover {
	border-color: var(--dp-border-strong);
	color: var(--dp-text);
}

.game-posts-filter.is-active {
	background: var(--dp-accent-soft);
	border-color: var(--dp-accent);
	color: var(--dp-accent-deep);
}

.game-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.game-related-card {
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	background: var(--dp-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-related-card:hover {
	border-color: var(--dp-accent);
	box-shadow: var(--dp-shadow);
}

/* Guide tab still uses full-card link (legacy markup). */
.game-related-card__link {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 10px 0 0 10px;
	background: transparent;
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	transition: none;
}

.game-related-card__link:hover {
	border-color: transparent;
	box-shadow: none;
}

.game-related-card__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem 0.85rem;
}

.game-related-card__main {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
	min-width: 0;
	flex: 1 1 auto;
	text-align: left;
}

.game-related-card__downloads {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex: 0 1 auto;
}

.game-related-card__download {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* DayuPay compact buttons reuse .game-related-card__downloads; legacy full card wrapper unused in list. */

.game-related-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 0.75rem;
	margin-top: 0.4rem;
}

.game-related-card__date {
	margin: 0;
	font-size: 0.78rem;
	color: var(--dp-text-dim);
	text-align: left;
}

.game-related-card__meta-row .post-vote {
	margin-left: auto;
}

.entry-votes {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 1.25rem 0 0;
}
.entry-votes .post-vote {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	justify-content: center;
}
.entry-votes .game-action {
	padding: 0.55rem 1.15rem;
	font-size: 0.95rem;
}
.entry-votes .game-action__count {
	font-size: 0.95rem;
}

.game-related-card__badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	margin: 0;
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
	flex: 0 0 auto;
}

.game-related-card__badge--guide {
	background: #eef6ff;
	color: #1d4f91;
}

.game-related-card__badge--base {
	background: #e8f7ef;
	color: #1b6b3a;
}

.game-related-card__badge--trainer {
	background: #fff4e5;
	color: #8a4b00;
}

.game-related-card__badge--mod {
	background: #f3e8ff;
	color: #6b21a8;
}

.game-related-card__badge--dlc {
	background: #e8f4ff;
	color: #0b5cab;
}

.game-related-card__badge--tongguan {
	background: #eef6ff;
	color: #1d4f91;
}

.game-related-card__badge--tutorial {
	background: #e7f8f5;
	color: #0f6b5c;
}

.game-related-card__title {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	color: var(--dp-text);
	text-decoration: none;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.game-related-card__title:hover {
	color: var(--dp-accent);
}

.game-related-card__link .game-related-card__title {
	display: block;
	margin: 0 0 0.35rem;
}

.game-related-card__link .game-related-card__badge {
	margin-bottom: 0.35rem;
}

.game-related-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 0.88rem;
	color: var(--dp-text-muted);
	line-height: 1.55;
	margin: 0.4rem 0 0;
}

.game-related-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	color: var(--dp-text-dim);
}

.game-related-card__dl {
	font-weight: 700;
	color: var(--dp-accent-deep);
}

.game-fallback-downloads {
	margin-top: 1.25rem;
	padding: 0.75rem 0.9rem;
	border: 1px dashed var(--dp-border-strong);
	border-radius: var(--dp-radius-sm);
	background: var(--dp-surface);
}

.game-fallback-downloads summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--dp-text-muted);
}

.game-fallback-downloads[open] summary {
	margin-bottom: 0.65rem;
	color: var(--dp-text);
}

.game-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.85rem;
	background: var(--dp-accent-soft);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
}

.game-crumb__link {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
	text-decoration: none;
	color: var(--dp-accent-deep);
	font-weight: 700;
}

.game-crumb__link:hover {
	text-decoration: underline;
}

.game-crumb__label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dp-text-muted);
}

.game-crumb__title {
	font-size: 0.95rem;
}

.game-crumb__badge {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: var(--dp-surface);
	color: var(--dp-accent-deep);
	border: 1px solid var(--dp-border);
}

.game-crumb__badge--guide {
	color: #1d4f91;
}

.game-crumb-footer {
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
}

.game-crumb-footer a {
	color: var(--dp-accent-deep);
	font-weight: 600;
}


/* Download lines — link name as button, horizontal; extract-code modal — 1.6.8 */
.download-box__lines {
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.download-box__line {
	margin: 0;
	padding: 0;
	list-style: none;
}

.download-box__code {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.85rem;
	color: var(--dp-text-muted, var(--dp-text-dim));
}

.download-box__code-label {
	color: var(--dp-text-dim);
}

.download-box__code-value {
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	background: rgba(95, 164, 245, 0.12);
	border: 1px solid var(--dp-border);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--dp-text);
	user-select: all;
	word-break: break-all;
}

.download-box__copy {
	padding: 0.25rem 0.55rem;
	border-radius: var(--dp-btn-radius);
	border: 1px solid var(--dp-border-strong);
	background: var(--dp-surface);
	color: var(--dp-accent);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.download-box__copy:hover {
	background: var(--dp-accent-soft);
}


/* Download extract-code modal */
.download-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.download-modal.is-open {
	display: flex;
}

.download-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.48);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.download-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 26rem);
	padding: 1.15rem 1.2rem 1.25rem;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border-strong);
	background: var(--dp-surface);
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.download-modal__title {
	margin: 0 2rem 0.95rem 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--dp-text);
}

.download-modal__close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: var(--dp-bg);
	color: var(--dp-text-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.download-modal__close:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.download-modal__row {
	margin: 0 0 0.85rem;
}

.download-modal__row:last-of-type {
	margin-bottom: 1rem;
}

.download-modal__label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.75rem;
	color: var(--dp-text-dim);
	letter-spacing: 0.03em;
}

.download-modal__value-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

.download-modal__link {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.45rem 0.55rem;
	border-radius: var(--dp-radius-sm);
	border: 1px solid var(--dp-border);
	background: var(--dp-bg);
	color: var(--dp-accent-deep);
	font-size: 0.85rem;
	font-weight: 600;
	word-break: break-all;
	text-decoration: none;
}

.download-modal__link:hover {
	color: var(--dp-accent);
}

.download-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.15rem;
}

.download-modal__actions .button {
	min-width: 0;
}


/* ==========================================================================
   Header actions + auth/search modals (1.8.0)
   ========================================================================== */

.site-header__inner {
	flex-wrap: wrap;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-left: auto;
	flex-shrink: 0;
}

.header-action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid var(--dp-border);
	background: var(--dp-surface-2);
	color: var(--dp-text);
	border-radius: var(--dp-btn-radius);
	padding: 0.35rem 0.75rem;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.header-action:hover {
	border-color: var(--dp-border-strong);
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
}

.header-action--search .header-action__label {
	display: none;
}

@media (min-width: 860px) {
	.header-action--search .header-action__label {
		display: inline;
	}
}

.header-action--login.button--sm {
	border-color: var(--dp-border-strong);
	background: var(--dp-accent);
	color: #fff;
	box-shadow: none;
}

.header-action--login.button--sm:hover {
	background: var(--dp-accent-hover);
	color: #fff;
}

.header-user {
	position: relative;
}

.header-user__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	border-radius: var(--dp-btn-radius);
	padding: 0.2rem 0.65rem 0.2rem 0.2rem;
	cursor: pointer;
	font: inherit;
	color: var(--dp-text);
}

.header-user__toggle:hover {
	border-color: var(--dp-border-strong);
}

.header-user__avatar {
	display: inline-flex;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	overflow: hidden;
}

.header-user__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.header-user__name {
	font-size: 0.85rem;
	font-weight: 600;
	max-width: 8rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.header-user__name {
		display: none;
	}
	.header-user__toggle {
		padding: 0.2rem;
	}
}

.header-user__dropdown {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	min-width: 9rem;
	padding: 0.35rem;
	padding-top: calc(0.35rem + 0.35rem);
	margin: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	z-index: 30;
}

.header-user__dropdown::before {
	content: "";
	display: block;
	position: absolute;
	top: 0.35rem;
	right: 0;
	left: 0;
	bottom: 0;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	box-shadow: var(--dp-shadow-hover);
	z-index: -1;
}

.header-user:hover .header-user__dropdown,
.header-user:focus-within .header-user__dropdown,
.header-user.is-open .header-user__dropdown {
	display: block;
}

.header-user__dropdown a {
	display: block;
	padding: 0.45rem 0.65rem;
	border-radius: 6px;
	color: var(--dp-text);
	font-size: 0.88rem;
}

.header-user__dropdown a:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
}

html.dp-modal-open {
	overflow: hidden;
}

.dp-modal {
	position: fixed;
	inset: 0;
	z-index: 10020;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.dp-modal.is-open {
	display: flex;
}

.dp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.48);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.dp-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 24rem);
	padding: 1.15rem 1.2rem 1.25rem;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border-strong);
	background: var(--dp-surface);
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.dp-modal--search {
	align-items: flex-start;
	justify-content: stretch;
	padding: 0;
	top: 0;
	z-index: 990;
	pointer-events: none;
}

.dp-modal--search .dp-modal__backdrop {
	display: none;
}

.dp-modal__dialog--search {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	min-height: calc(var(--dp-header-h) + 6rem);
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--dp-border);
	padding: var(--dp-header-h) 1.25rem 0;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	pointer-events: auto;
}

.admin-bar .dp-modal__dialog--search {
	min-height: calc(var(--dp-header-h) + 32px + 6rem);
	padding-top: calc(var(--dp-header-h) + 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .dp-modal__dialog--search {
		min-height: calc(var(--dp-header-h) + 46px + 6rem);
		padding-top: calc(var(--dp-header-h) + 46px);
	}
}

.dp-modal__dialog--auth {
	width: min(100%, 22.5rem);
}

.dp-modal__title {
	margin: 0 2rem 0.95rem 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--dp-text);
}

.dp-modal__close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: var(--dp-bg);
	color: var(--dp-text-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.dp-modal__close:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.dp-search-bar {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: min(100%, 760px);
	height: 6rem;
	margin: 0 auto;
}

.dp-search-form {
	display: flex;
	flex: 1;
	min-width: 0;
	align-items: stretch;
	gap: 0;
	border: 0;
	border-radius: 10px;
	overflow: visible;
	background: transparent;
}

.dp-search-form:focus-within {
	box-shadow: none;
}

.dp-search-form__input {
	flex: 1;
	min-width: 0;
	border: 1px solid #c5ccd6;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: var(--dp-bg);
	padding: 0.5rem 1rem;
	font: inherit;
	color: var(--dp-text);
}

.dp-search-form:focus-within .dp-search-form__input {
	border-color: var(--dp-accent);
}

.dp-search-form__input:focus,
.dp-search-form__submit:focus,
.dp-search-form__submit:focus-visible {
	outline: none;
	box-shadow: none;
}

.dp-search-form__submit {
	flex-shrink: 0;
	width: 6.2rem;
	border: 1px solid var(--dp-accent);
	border-left: 0;
	border-radius: 0 10px 10px 0;
	background: var(--dp-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.dp-search-form__submit:hover {
	background: var(--dp-accent-hover);
	color: #fff;
}

.dp-search-form__submit[disabled] {
	opacity: 0.7;
	cursor: default;
}

.dp-search-bar__close {
	flex-shrink: 0;
	width: 2.1rem;
	height: 2.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--dp-bg);
	color: var(--dp-text-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.dp-search-bar__close:hover {
	background: var(--dp-accent-soft);
	color: var(--dp-accent);
}

.dp-search-history,
.dp-search-results-slot {
	width: min(100%, 760px);
	margin-left: auto;
	margin-right: auto;
}

.dp-search-history {
	margin-top: 0.85rem;
}

.dp-search-history__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.45rem;
	color: var(--dp-text-muted);
	font-size: 0.8rem;
}

.dp-search-history__clear {
	border: 0;
	background: transparent;
	color: var(--dp-accent);
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.dp-search-history__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.dp-search-history__item {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border: 1px solid var(--dp-border);
	border-radius: 999px;
	background: var(--dp-bg);
	color: var(--dp-text);
	padding: 0.2rem 0.35rem 0.2rem 0.7rem;
	font-size: 0.82rem;
}

.dp-search-history__term {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	padding: 0;
}

.dp-search-history__remove {
	border: 0;
	background: transparent;
	color: var(--dp-text-muted);
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1;
}

.dp-auth-tabs {
	display: flex;
	gap: 0;
	margin: 0 2.4rem 1rem 0;
	padding: 0;
	background: var(--dp-bg);
	border: 1px solid var(--dp-border);
	border-radius: 10px;
	overflow: hidden;
}

.dp-auth-tabs__btn {
	flex: 1 1 50%;
	min-width: 0;
	border: 0;
	background: transparent;
	border-radius: 0;
	padding: 0.55rem 0.75rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dp-text-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.dp-auth-tabs__btn + .dp-auth-tabs__btn {
	border-left: 1px solid var(--dp-border);
}

.dp-auth-tabs__btn:hover:not(.is-active):not(:disabled) {
	color: var(--dp-accent-deep);
	background: rgba(255, 255, 255, 0.7);
}

.dp-auth-tabs__btn.is-active {
	background: var(--dp-accent);
	color: #fff;
	box-shadow: none;
}

.dp-auth-tabs__btn.is-disabled,
.dp-auth-tabs__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.dp-auth-form__field {
	margin: 0 0 0.75rem;
}

.dp-auth-form__field label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dp-text-dim);
}

.dp-auth-form__field input[type="text"],
.dp-auth-form__field input[type="email"],
.dp-auth-form__field input[type="password"] {
	width: 100%;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	background: var(--dp-bg);
	padding: 0.3rem 0.7rem;
	font: inherit;
	color: var(--dp-text);
}

.dp-auth-form__field input:focus {
	border-color: var(--dp-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--dp-accent-soft);
}

.dp-auth-form__captcha-row {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
}

.dp-auth-form__captcha-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dp-auth-form__captcha-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
	background: var(--dp-surface-2);
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
}

.dp-auth-form__captcha-btn:hover,
.dp-auth-form__captcha-btn:focus-visible {
	border-color: var(--dp-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--dp-accent-soft);
}

.dp-auth-form__captcha-btn img {
	display: block;
	width: 120px;
	height: 36px;
	object-fit: cover;
}

.dp-auth-form__captcha-hint {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.72rem;
	color: var(--dp-text-dim);
}

/* Captcha providers (1.9.2) */
.dp-auth-form__captcha--turnstile .cf-turnstile {
	margin-top: 0.25rem;
}
.dp-auth-form__captcha--tencent {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}
.dp-auth-form__tencent-btn {
	margin: 0;
}
.dp-auth-form__tencent-ok {
	font-size: 0.85rem;
	color: #15803d;
	font-weight: 600;
}


.entry-meta .meta-cats a {
	color: var(--dp-accent-deep);
	font-weight: 600;
}

.entry-meta .meta-game a {
	color: var(--dp-accent-deep);
	font-weight: 600;
}

.entry-meta .meta-type {
	display: inline-block;
	margin-right: 0.25rem;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
	vertical-align: baseline;
}

.entry-meta .meta-type--guide {
	background: rgba(14, 165, 233, 0.12);
}

.dp-auth-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.85rem;
	font-size: 0.82rem;
}

.dp-auth-form__remember {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--dp-text-muted);
	cursor: pointer;
}

/* Custom checkbox / radio (auth + comment cookies) */
.dp-auth-form__remember input[type="checkbox"],
.comment-form-cookies-consent input[type="checkbox"],
.dp-auth-form input[type="radio"],
.comment-form input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1rem;
	height: 1rem;
	margin: 0;
	flex-shrink: 0;
	border: 1.5px solid var(--dp-border);
	background: var(--dp-bg);
	vertical-align: middle;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dp-auth-form__remember input[type="checkbox"],
.comment-form-cookies-consent input[type="checkbox"] {
	border-radius: 0.25rem;
}

.dp-auth-form input[type="radio"],
.comment-form input[type="radio"] {
	border-radius: 50%;
}

.dp-auth-form__remember input[type="checkbox"]:hover,
.comment-form-cookies-consent input[type="checkbox"]:hover,
.dp-auth-form input[type="radio"]:hover,
.comment-form input[type="radio"]:hover {
	border-color: var(--dp-accent);
}

.dp-auth-form__remember input[type="checkbox"]:focus-visible,
.comment-form-cookies-consent input[type="checkbox"]:focus-visible,
.dp-auth-form input[type="radio"]:focus-visible,
.comment-form input[type="radio"]:focus-visible {
	outline: none;
	border-color: var(--dp-accent);
	box-shadow: 0 0 0 3px var(--dp-accent-soft);
}

.dp-auth-form__remember input[type="checkbox"]:checked,
.comment-form-cookies-consent input[type="checkbox"]:checked {
	border-color: var(--dp-accent);
	background: var(--dp-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4 4.6-4.8'/%3E%3C/svg%3E");
	background-size: 0.7rem 0.7rem;
	background-position: center;
	background-repeat: no-repeat;
}

.dp-auth-form input[type="radio"]:checked,
.comment-form input[type="radio"]:checked {
	border-color: var(--dp-accent);
	background: radial-gradient(circle at center, var(--dp-accent) 0 38%, var(--dp-bg) 42% 100%);
}

.dp-auth-form__forgot {
	color: var(--dp-accent-deep);
	font-weight: 600;
}

.dp-auth-form__submit {
	width: 100%;
	justify-content: center;
	min-width: 0;
}

.dp-auth-form__msg {
	margin: 0 0 0.75rem;
	padding: 0.45rem 0.6rem;
	border-radius: var(--dp-radius-sm);
	font-size: 0.82rem;
	background: var(--dp-surface-2);
	color: var(--dp-text);
}

.dp-auth-form__msg.is-error {
	background: rgba(239, 68, 68, 0.1);
	color: var(--dp-danger);
}

.dp-auth-form__msg.is-ok {
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
}

.dp-auth-note {
	margin: 0.5rem 0 0;
	color: var(--dp-text-muted);
	font-size: 0.9rem;
}

.layout--narrow-wrap .content-area__main {
	max-width: 32rem;
	margin-inline: auto;
}

body.page-template-lost-password .content-area,
body.page-template-user-center .content-area {
	display: block;
}

.auth-page__lead {
	color: var(--dp-text-muted);
	margin-top: 0;
}

.auth-page__links {
	margin-top: 1rem;
	font-size: 0.9rem;
}

.dp-auth-form--page {
	max-width: 22rem;
}

.user-center__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.user-center__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 999px;
	object-fit: cover;
}

.user-center__name {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
}

.user-center__email {
	margin: 0 0 0.65rem;
	color: var(--dp-text-muted);
	font-size: 0.9rem;
}

.user-center__actions {
	margin: 0;
}

.user-center__section {
	margin-bottom: 2rem;
}

.user-center__empty {
	padding: 1.25rem;
	background: var(--dp-surface);
	border: 1px dashed var(--dp-border-strong);
	border-radius: var(--dp-radius);
	color: var(--dp-text-muted);
}

.user-center__body.home-tabs-card {
	display: grid;
	grid-template-columns: 10.5rem minmax(0, 1fr);
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.user-center__nav.home-tabs--vertical {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.25rem;
	margin: 0;
	padding: 0.85rem 0.65rem;
	border-bottom: none;
	border-right: 1px solid var(--dp-border);
	background: color-mix(in srgb, var(--dp-surface) 92%, var(--dp-primary) 8%);
}

.user-center__nav.home-tabs--vertical .home-tabs__btn {
	justify-content: flex-start;
	width: 100%;
	text-align: left;
	border-radius: calc(var(--dp-radius) - 2px);
	padding: 0.55rem 0.75rem;
}

.user-center__panels {
	min-width: 0;
	padding: 1rem 1.15rem 1.25rem;
}

.user-center__panel-title {
	display: none;
}

.user-center__form {
	max-width: 26rem;
}

.user-center__form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	background: var(--dp-bg);
	color: var(--dp-text);
	font: inherit;
	resize: vertical;
	min-height: 4.5rem;
}

.user-center__form textarea:focus {
	outline: none;
	border-color: var(--dp-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dp-primary) 25%, transparent);
}

.user-center__hint {
	margin: 0 0 0.85rem;
	color: var(--dp-text-muted);
	font-size: 0.85rem;
}

.user-center__notice {
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.8rem;
	border-radius: var(--dp-radius);
	font-size: 0.9rem;
}

.user-center__notice--ok {
	background: color-mix(in srgb, #16a34a 12%, var(--dp-surface));
	border: 1px solid color-mix(in srgb, #16a34a 35%, var(--dp-border));
	color: #166534;
}

.user-center__notice--err {
	background: color-mix(in srgb, #dc2626 10%, var(--dp-surface));
	border: 1px solid color-mix(in srgb, #dc2626 35%, var(--dp-border));
	color: #991b1b;
}

.user-center__post-list,
.user-center__comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.user-center__post-item,
.user-center__comment-item {
	margin: 0;
	background: var(--dp-bg);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
}

.user-center__post-link,
.user-center__comment-link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.7rem 0.85rem;
	text-decoration: none;
	color: inherit;
}

.user-center__post-link:hover,
.user-center__comment-link:hover {
	background: color-mix(in srgb, var(--dp-primary) 6%, transparent);
}

.user-center__post-title,
.user-center__comment-on {
	font-weight: 600;
	color: var(--dp-text);
}

.user-center__post-meta,
.user-center__comment-meta,
.user-center__comment-excerpt {
	font-size: 0.85rem;
	color: var(--dp-text-muted);
}

@media (max-width: 759px) {
	.user-center__body.home-tabs-card {
		grid-template-columns: 1fr;
	}

	.user-center__nav.home-tabs--vertical {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 0.35rem;
		padding: 0.65rem 0.75rem;
		border-right: none;
		border-bottom: 1px solid var(--dp-border);
		-webkit-overflow-scrolling: touch;
	}

	.user-center__nav.home-tabs--vertical .home-tabs__btn {
		width: auto;
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.user-center__panels {
		padding: 0.9rem 0.85rem 1.1rem;
	}
}

@media (min-width: 860px) {
	.site-header__actions {
		order: 3;
	}
	.main-navigation {
		order: 2;
		flex: 1;
		display: flex;
		justify-content: center;
	}
	.site-branding {
		order: 1;
	}
}


@media (max-width: 859px) {
	.site-header__inner {
		display: grid;
		grid-template-columns: 1fr auto auto;
		align-items: center;
		gap: 0.5rem;
	}
	.site-branding { grid-column: 1; }
	.site-header__actions { grid-column: 2; margin-left: 0; }
	.menu-toggle { grid-column: 3; }
	.main-navigation {
		grid-column: 1 / -1;
	}
	.main-navigation.is-open {
		position: static;
	}
}

/* Home template v2 — tab cards + rank list */
.home-tabs-card {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 0.85rem 1rem 1rem;
	margin-bottom: 1.25rem;
	overflow: visible;
}

.home-tabs-card + .home-tabs-card {
	margin-top: 0;
}

.home-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0;
	border-bottom: 1px solid var(--dp-border);
}

.home-tabs__btn {
	appearance: none;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--dp-text-muted);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.55rem 0.1rem;
	margin-bottom: -1px;
	border-radius: 0;
	cursor: pointer;
	line-height: 1.2;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.home-tabs__btn:hover {
	color: var(--dp-accent);
	background: transparent;
}

.home-tabs__btn.is-active,
.home-tabs__btn[aria-selected="true"] {
	color: var(--dp-text);
	background: transparent;
	border-bottom-color: var(--dp-accent);
}

.home-tabs__panel[hidden] {
	display: none;
}

.home-tabs-card__empty {
	margin: 0.5rem 0 0.25rem;
	color: var(--dp-text-muted);
	font-size: 0.9rem;
	text-align: center;
	padding: 1.25rem 0.5rem;
}

.home-rank {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

@media (min-width: 720px) {
	.home-rank {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 0.85rem;
	}
}

.home-rank__item {
	border-bottom: 1px solid var(--dp-border);
}

.home-rank__item:last-child {
	border-bottom: 0;
}

@media (min-width: 720px) {
	.home-rank__item:nth-child(4n + 1):nth-last-child(-n + 4),
	.home-rank__item:nth-child(4n + 2):nth-last-child(-n + 3),
	.home-rank__item:nth-child(4n + 3):nth-last-child(-n + 2),
	.home-rank__item:nth-child(4n):nth-last-child(-n + 1) {
		border-bottom: 0;
	}
}

.home-rank__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.1rem;
	color: var(--dp-text);
	min-width: 0;
}

.home-rank__link:hover {
	color: var(--dp-accent);
}

.home-rank__num {
	flex-shrink: 0;
}

.home-rank__item:nth-child(-n+3) .home-rank__num {
	background: var(--dp-accent);
	color: #fff;
}

@media (min-width: 720px) {
	/* Top 3 accent only for first column ranks 1–3 (odd positions in 2-col: 1,3,5 = ranks 1,2,3 on left... actually ranks are sequential left-to-right filling.
	   Keep first three list items accented regardless of column. */
	.home-rank__item:nth-child(-n+3) .home-rank__num {
		background: var(--dp-accent);
		color: #fff;
	}
}

.home-rank__cover {
	flex-shrink: 0;
	width: 52px;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	overflow: hidden;
	background: var(--dp-surface-2);
}

.home-rank__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-rank__cover-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--dp-accent-soft), var(--dp-surface-2));
}

.home-rank__meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.home-rank__title {
	font-size: 0.9rem;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-rank__stats {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.75rem;
	color: var(--dp-text-muted);
	font-weight: 600;
}

.home-rank__rating {
	color: var(--dp-accent);
}

.home-rank__likes,
.home-rank__downloads {
	color: var(--dp-text-dim);
	font-weight: 500;
}

/* Hot-rank hover popup (仿 jidiyouxi, desktop only) */
.home-v2-board__main > .home-tabs-card:first-child {
	position: relative;
	z-index: 3;
	overflow: visible;
}

.home-v2-board__main > .home-tabs-card:first-child:hover,
.home-v2-board__main > .home-tabs-card:first-child:focus-within {
	z-index: 80;
}

.home-tabs-card--editorial {
	position: relative;
	z-index: 1;
	margin-bottom: 0;
	overflow: visible;
}

.home-tabs-card--editorial:hover,
.home-tabs-card--editorial:focus-within {
	z-index: 40;
}

.home-rank__item {
	position: relative;
}

.home-rank__item:hover,
.home-rank__item:focus-within {
	z-index: 50;
}

.home-rank__link {
	position: relative;
}

.home-rank__hover {
	display: none;
	position: absolute;
	left: calc(100% + 16px);
	top: 0;
	width: 310px;
	z-index: 90;
	padding: 0;
	border-radius: 14px;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	box-shadow: var(--dp-shadow-hover);
	color: var(--dp-text);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(2px);
	transition: opacity 0.12s ease, visibility 0.12s ease, transform 0.12s ease;
	overflow: hidden;
	text-align: left;
	font-weight: 400;
}

.home-rank__hover-media {
	display: block;
	width: 100%;
	aspect-ratio: 310 / 136;
	background: var(--dp-surface-2);
	overflow: hidden;
}

.home-rank__hover-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-rank__hover-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--dp-accent-soft), var(--dp-surface-2));
}

.home-rank__hover-body {
	display: block;
	padding: 0.7rem 0.85rem 0.85rem;
}

.home-rank__hover-title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.55rem;
	min-width: 0;
	margin-bottom: 0.35rem;
}

.home-rank__hover-title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--dp-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-rank__hover-rating {
	flex: 0 0 auto;
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--dp-accent-deep);
	white-space: nowrap;
	line-height: 1.2;
}

.home-rank__hover-rating .home-rank__rating-star {
	margin-right: 0.1em;
}

.home-rank__hover-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	min-width: 0;
	margin-bottom: 0.3rem;
	font-size: 0.72rem;
	color: var(--dp-text-muted);
	line-height: 1.35;
}

.home-rank__hover-meta-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.35rem;
	min-width: 0;
	overflow: hidden;
}

.home-rank__hover-sep {
	color: var(--dp-text-dim);
	opacity: 0.65;
	flex-shrink: 0;
}

.home-rank__hover-likes {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 600;
	color: var(--dp-text-muted);
}

.home-rank__hover-downloads {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
	font-weight: 600;
	color: var(--dp-text-muted);
	line-height: 1;
}

.home-rank__hover-downloads-icon {
	display: block;
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
	color: #4b5563;
	position: relative;
	top: -1px;
}

.home-rank__hover-dates {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
	font-size: 0.72rem;
	color: var(--dp-text-dim);
	line-height: 1.35;
}

.home-rank__hover-release,
.home-rank__hover-updated {
	min-width: 0;
}

.home-rank__hover-updated {
	flex: 0 0 auto;
	white-space: nowrap;
	text-align: right;
}

.home-rank__hover-blurb {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 8;
	overflow: hidden;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--dp-text-muted);
	font-weight: 400;
}

@media (min-width: 720px) {
	.home-rank__hover {
		display: block;
	}

	.home-rank__item:hover .home-rank__hover,
	.home-rank__item:focus-within .home-rank__hover {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: none;
	}

	/* 右半两列弹层翻到左侧，避免贴边裁切 */
	.home-rank__item:nth-child(4n + 3) .home-rank__hover,
	.home-rank__item:nth-child(4n) .home-rank__hover {
		left: auto;
		right: calc(100% + 16px);
	}

	/* Editorial cards: always open to the right (no flip) */
	.home-editorial__card:hover .home-rank__hover,
	.home-editorial__card:focus-within .home-rank__hover {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: none;
		left: calc(100% + 16px);
		right: auto;
		top: 0;
	}
}

.home-tabs-card__grid {
	margin-top: 0.15rem;
}

@media (min-width: 560px) {
	.home-tabs-card__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.home-tabs-card__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.has-sidebar .home-tabs-card__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.has-sidebar .home-tabs-card__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Editorial channel wide cards (首页模板二) */
.home-editorial {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 0.75rem;
	margin: 0.15rem 0 0;
	overflow: visible;
}

@media (min-width: 720px) {
	.home-editorial {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.home-editorial {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1rem 0.85rem;
	}
}

.has-sidebar .home-editorial {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
	.has-sidebar .home-editorial {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.has-sidebar .home-editorial {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.home-editorial__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	color: var(--dp-text);
	text-decoration: none;
}

.home-editorial__card:hover,
.home-editorial__card:focus-within {
	z-index: 50;
	color: var(--dp-accent);
}

.home-editorial__cover {
	display: block;
	width: 100%;
	aspect-ratio: 212 / 80;
	border-radius: var(--dp-radius);
	overflow: hidden;
	background: var(--dp-surface-2);
}

.home-editorial__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.home-editorial__card:hover .home-editorial__cover img {
	transform: scale(1.03);
}

.home-editorial__cover-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--dp-accent-soft), var(--dp-surface-2));
}

.home-editorial__title {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-editorial__date {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--dp-text-muted);
	line-height: 1.3;
}

/* Game cards — title/rating row, meta rows, floating excerpt (1.8.20) */
.post-card--game {
	position: relative;
	overflow: visible;
	z-index: 1;
}

.post-card--game .post-card__media {
	aspect-ratio: 16 / 9;
	border-radius: var(--dp-radius) var(--dp-radius) 0 0;
	overflow: hidden;
}

.post-card--game .post-card__cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-card--game .post-card__body {
	position: relative;
	gap: 0.35rem;
	padding-bottom: 0.85rem;
}

.post-card__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	min-width: 0;
}

.post-card--game .post-card__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-card--game .post-card__title a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


.post-card__rating-star,
.home-rank__rating-star {
	margin-right: 0.12em;
	font-weight: 700;
	font-size: 1.18em;
	line-height: 1;
}

.post-card__rating {
	flex: 0 0 auto;
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--dp-accent-deep);
	line-height: 1.2;
	white-space: nowrap;
}

.post-card__rating--empty {
	color: var(--dp-text-dim);
	font-weight: 600;
}

.post-card__rating-max,
.home-rank__rating-max,
.game-hero__rating-max {
	font-size: 0.72em;
	font-weight: 700;
	color: var(--dp-text-muted);
	margin-left: 0.05em;
}

.post-card--game .post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem;
	margin-top: 0;
	font-size: 0.72rem;
	color: var(--dp-text-dim);
	line-height: 1.35;
	min-width: 0;
}

.post-card__meta-left {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	min-width: 0;
	overflow: hidden;
	flex: 1 1 auto;
}

.post-card__size,
.post-card__type {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--dp-text-muted);
	font-weight: 600;
}

.post-card__type {
	color: var(--dp-accent);
	text-decoration: none;
}

a.post-card__type:hover {
	color: var(--dp-accent-hover);
}

.post-card__meta-sep {
	flex-shrink: 0;
	color: var(--dp-text-dim);
	opacity: 0.7;
}

.post-card__downloads,
.post-card__updated {
	flex: 0 0 auto;
	white-space: nowrap;
	font-weight: 600;
	color: var(--dp-text-muted);
}

.post-card__downloads {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	line-height: 1;
}

.post-card__downloads-icon {
	display: block;
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
	opacity: 1;
	color: #4b5563;
	position: relative;
	top: -1px;
}

.post-card__release {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

/* Excerpt hidden in flow; floats below card on hover without shifting grid */
.post-card--game .post-card__excerpt {
	display: none;
	position: absolute;
	left: -1px;
	right: -1px;
	/* Overlap 1px so card bottom edge never shows a hairline at the join */
	top: calc(100% - 1px);
	z-index: 40;
	margin: 0;
	padding: 0.55rem 0.95rem 0.9rem;
	padding-top: calc(0.55rem + 1px);
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-top: 0;
	border-radius: 0 0 var(--dp-radius) var(--dp-radius);
	/* Shadow lives on the combined unit via card filter; none here to avoid join line */
	box-shadow: none;
	color: var(--dp-text-muted);
	font-size: 0.78rem;
	line-height: 1.55;
	font-weight: 400;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
	overflow: visible;
	flex: none;
}

.post-card--game .post-card__excerpt p {
	margin: 0;
}

.post-card--game:hover,
.post-card--game:focus-within {
	z-index: 30;
	transform: none;
	border-color: var(--dp-border);
	box-shadow: var(--dp-shadow-hover);
}

/* Kill middle seam: open card into excerpt; move shadow to combined silhouette */
.post-card--game:hover:has(.post-card__excerpt),
.post-card--game:focus-within:has(.post-card__excerpt) {
	border-bottom-color: transparent;
	border-bottom-width: 0;
	border-radius: var(--dp-radius) var(--dp-radius) 0 0;
	/* No card-bottom shadow (that cast the faint join hairline) */
	box-shadow: none;
	/* One drop-shadow around card + overlapping excerpt as a single unit */
	filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}

.post-card--game:hover .post-card__body,
.post-card--game:focus-within .post-card__body {
	border-radius: 0;
	border-bottom: 0;
}

.post-card--game:hover .post-card__excerpt,
.post-card--game:focus-within .post-card__excerpt {
	display: block;
}

.post-grid {
	overflow: visible;
	align-items: start;
}

.home-tabs-card__grid {
	overflow: visible;
	position: relative;
	z-index: 1;
}

.home-tabs-card--genres {
	overflow: visible;
	position: relative;
	z-index: 1;
}

.home-tabs-card--genres:hover,
.home-tabs-card--genres:focus-within {
	z-index: 5;
}

/* Genre grid: keep overflow/z so excerpt can expand below the card */
.home-tabs-card--genres .post-card--game:hover,
.home-tabs-card--genres .post-card--game:focus-within {
	z-index: 40;
}


/* Home template v2 — top row (cards 1–2 + sidebar) / full-width card 3 */
.home-v2-board {
	display: block;
}

.home-v2-board__row {
	min-width: 0;
}

.home-v2-board__main {
	min-width: 0;
}

.home-v2-board__full {
	min-width: 0;
	margin-top: 1.5rem;
}

.widget-area--home-v2 {
	min-width: 0;
}

@media (min-width: 960px) {
	.home-v2-board__row.has-aside {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 1.5rem;
		align-items: stretch;
	}

	/*
	 * Left column alone sets the row height (two cards' natural stack).
	 * Do not stretch/pad the left to match a taller sidebar.
	 */
	.home-v2-board__row.has-aside .home-v2-board__main {
		align-self: start;
		min-width: 0;
	}

	/*
	 * Sidebar must not inflate the grid row (default min-height:auto would).
	 * height:0 + min-height:100% → fill the row sized by the left column;
	 * overflow hidden + flex chain → list scrolls inside.
	 */
	.home-v2-board__row.has-aside .widget-area--home-v2 {
		height: 0;
		min-height: 100%;
		min-width: 0;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-self: stretch;
	}

	.home-v2-board__row.has-aside .widget-area--home-v2 > :last-child {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

	.home-v2-board__row.has-aside .widget-area--home-v2 > .widget_dayupress_fresh:last-child,
	.home-v2-board__row.has-aside .widget-area--home-v2 > .widget_dayupress_fresh {
		height: auto;
		min-height: 0;
		flex: 1 1 auto;
	}
}

/* Homepage v2 — 「新鲜事儿」 latest-comments feed (widget) */
.widget_dayupress_fresh {
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-bottom: 0;
}

.widget_dayupress_fresh .home-fresh,
.widget_dayupress_fresh .home-fresh.home-tabs-card {
	margin: 0;
	margin-bottom: 0;
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.widget_dayupress_fresh li {
	padding: 0;
	border-bottom: 0;
}

.home-fresh {
	padding: 0.75rem 0.85rem 0.85rem;
	overflow: hidden;
}

.home-v2-board__row.has-aside .widget-area--home-v2 .home-fresh.home-tabs-card {
	margin-bottom: 0;
}

.home-fresh__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.55rem;
	padding: 0 0 0.5rem;
	border-bottom: 1px solid var(--dp-border);
	flex: 0 0 auto;
}

.home-fresh__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--dp-text);
}

.home-fresh__all {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--dp-text-muted);
	white-space: nowrap;
	text-decoration: none;
}

.home-fresh__all:hover {
	color: var(--dp-accent);
}

.home-fresh__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.home-fresh__list::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

.home-fresh__item {
	margin: 0;
	padding: 0;
	border-bottom: 0;
	position: relative;
}

.home-fresh__item:not(:last-child)::after {
	content: "";
	display: block;
	width: 50%;
	max-width: 140px;
	margin: 10px auto;
	border-bottom: 1px solid color-mix(in srgb, var(--dp-border) 70%, transparent);
}

.home-fresh__link {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.15rem 0.05rem;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.home-fresh__link:hover {
	color: inherit;
}

.home-fresh__link:hover .home-fresh__excerpt {
	color: var(--dp-accent);
}

.home-fresh__meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1.3;
}

.home-fresh__avatar {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--dp-border);
	opacity: 0.7;
}

.home-fresh__avatar-img,
.home-fresh__avatar img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: cover;
	border-radius: 50%;
}

.home-fresh__author {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	color: var(--dp-text-muted);
}

.home-fresh__time {
	margin-left: auto;
	flex: 0 0 auto;
	color: var(--dp-text-muted);
	font-weight: 500;
	white-space: nowrap;
	opacity: 0.9;
}

.home-fresh__line2 {
	/* One text block: inline game name (max 6 chars via PHP) + wrapping comment.
	   line-clamp 2 + block flow so wrapped lines share the game-name left edge. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-width: 0;
	line-height: 1.45;
	max-height: calc(1.45em * 2);
	overflow-wrap: anywhere;
	word-break: break-all;
}

.home-fresh__post {
	display: inline-block;
	max-width: 7em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.35;
	color: var(--dp-accent-deep);
	background: var(--dp-accent-soft);
	padding: 0.05rem 0.35rem;
	border-radius: 4px;
	margin-right: 0.35rem;
}

.home-fresh__excerpt {
	display: inline;
	vertical-align: middle;
	font-size: 1rem;
	font-weight: 400;
	line-height: inherit;
	color: var(--dp-text);
	overflow-wrap: anywhere;
	word-break: break-all;
	transition: color 0.15s ease;
}

/* Narrower editorial grid when sidebar sits beside cards 1–2 */
.home-v2-board__row.has-aside .home-editorial {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 720px) {
	.home-v2-board__row.has-aside .home-editorial {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.home-v2-board__row.has-aside .home-editorial {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.home-v2-board__row.has-aside .home-editorial {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* —— 1.8.24: game list archive filters —— */
.game-list-filters {
	margin: 0 0 1.15rem;
	padding: 0.75rem 1rem 0.35rem;
	background: var(--dp-surface);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.game-list-filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.35rem 0.85rem;
	margin-bottom: 0.35rem;
}

.game-list-filters__label {
	flex: 0 0 auto;
	margin-top: 0.55rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--dp-text-dim);
	letter-spacing: 0.02em;
	min-width: 2.5rem;
}

.game-list-filters__tabs.home-tabs {
	flex: 1 1 12rem;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--dp-border);
	gap: 0.65rem 0.9rem;
}

.game-list-filters__tab.home-tabs__btn {
	text-decoration: none;
	display: inline-block;
}

.game-list-filters__tab.home-tabs__btn:hover {
	text-decoration: none;
}

.game-list-filters__tab.home-tabs__btn.is-active {
	color: var(--dp-text);
	border-bottom-color: var(--dp-accent);
}


/* --------------------------------------------------------------------------
   Lightbox (content entry + game hero / intro — separate groups)
   -------------------------------------------------------------------------- */
.entry-content img.is-lightboxable,
.game-hero__main img.is-lightboxable,
.game-intro img.is-lightboxable {
	cursor: zoom-in;
}

.dp-lightbox {
	position: fixed;
	/* inset:0 fills the viewport after overflow:hidden removes the classic scrollbar */
	inset: 0;
	width: auto;
	height: auto;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	box-sizing: border-box;
}

.dp-lightbox[hidden] {
	display: none !important;
}

.dp-lightbox__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.82);
}

.dp-lightbox__frame {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: min(94vw, 1440px);
	max-height: 90vh;
	outline: none;
	pointer-events: none;
}

.dp-lightbox__img {
	display: block;
	max-width: min(92vw, 1360px);
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--dp-radius-sm);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	background: #0b1220;
	outline: none;
	cursor: default;
	pointer-events: auto;
}

.dp-lightbox__close,
.dp-lightbox__nav {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--dp-color-text, #1a2332);
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.dp-lightbox__close {
	top: 1.75rem;
	right: 1.75rem;
}

.dp-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
}

.dp-lightbox__nav--prev {
	left: 1.25rem;
}

.dp-lightbox__nav--next {
	right: 1.25rem;
}

.dp-lightbox__close svg,
.dp-lightbox__nav svg {
	display: block;
}

.dp-lightbox__close:hover,
.dp-lightbox__close:focus-visible,
.dp-lightbox__nav:hover,
.dp-lightbox__nav:focus-visible {
	background: #fff;
	outline: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.dp-lightbox__nav[hidden] {
	display: none !important;
}

@media (max-width: 720px) {
	.dp-lightbox {
		padding: 0.5rem;
	}

	.dp-lightbox__nav--prev {
		left: 0.5rem;
	}

	.dp-lightbox__nav--next {
		right: 0.5rem;
	}

	.dp-lightbox__close {
		top: 1rem;
		right: 1rem;
	}

	.dp-lightbox__img {
		max-width: min(94vw, 1360px);
		max-height: 86vh;
	}
}

/* Hide classic scrollbar while open (DOM cannot cover/drag-block it).
   --dp-sbw padding keeps layout width identical so nothing jumps. */
html.dp-lightbox-open {
	overflow: hidden;
}

body.dp-lightbox-open {
	overscroll-behavior: none;
}

/* --------------------------------------------------------------------------
   Blur-up LQIP — 1.8.46
   Wrapper holds a small (or full) preview as background; ::before blurs it.
   Full <img> stays opacity:0 until .is-loaded so progressive JPEG paint is hidden.
   Lightbox .dp-lightbox__img is never wrapped.
   -------------------------------------------------------------------------- */

/* Hide full imgs until .is-loaded so progressive paint never shows (JS adds LQIP wrap). */
.entry-content img:not(.dp-lightbox__img),
.game-intro img:not(.dp-lightbox__img),
.game-hero__main img,
img.post-card__cover,
.home-hero__slide img,
.post-list-item__media img {
	opacity: 0;
}

.entry-content img.is-loaded,
.game-intro img.is-loaded,
.game-hero__main img.is-loaded,
img.post-card__cover.is-loaded,
.home-hero__slide img.is-loaded,
.post-list-item__media img.is-loaded {
	opacity: 1;
	transition: opacity 0.3s ease;
}

.dp-img-blurup {
	position: relative;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	vertical-align: middle;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Soft placeholder tint before LQIP bytes arrive */
	background-color: var(--dp-surface-2, #e8eef5);
}

.dp-img-blurup::before {
	content: "";
	position: absolute;
	inset: -12%;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: blur(28px);
	transform: scale(1.12);
	z-index: 0;
	pointer-events: none;
}

.dp-img-blurup > img {
	position: relative;
	z-index: 1;
	display: block;
	max-width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 0.3s ease;
	/* Alignment lives on the wrapper; neutralize img float/margins inside */
	float: none !important;
	margin: 0 !important;
}

.dp-img-blurup > img.is-loaded {
	opacity: 1;
}

/* WP alignment mirrored onto the wrapper by main.js */
span.dp-img-blurup.alignleft {
	float: left;
	margin: 0.3rem 1.15rem 1rem 0;
}

span.dp-img-blurup.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.15rem;
}

span.dp-img-blurup.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

span.dp-img-blurup.alignwide,
span.dp-img-blurup.alignfull {
	max-width: none;
	display: block;
	width: 100%;
}

/* Fill fixed-aspect parents (hero / cards / list / home slide) */
.game-hero__main > .dp-img-blurup,
.home-hero__slide > .dp-img-blurup,
.post-list-item__media > .dp-img-blurup,
.post-card__media > .dp-img-blurup,
a.post-card__media > .dp-img-blurup {
	display: block;
	width: 100%;
	height: 100%;
}

.game-hero__main > .dp-img-blurup > img,
.home-hero__slide > .dp-img-blurup > img,
.post-list-item__media > .dp-img-blurup > img,
.post-card__media > .dp-img-blurup > img,
a.post-card__media > .dp-img-blurup > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
	.dp-img-blurup::before {
		filter: none;
		transform: none;
		inset: 0;
		/* Still hide progressive paint; no blur animation */
		opacity: 0.35;
	}

	.dp-img-blurup > img {
		transition: none;
	}
}

/* ==========================================================================
   Help center (1.8.73+)
   ========================================================================== */

.help-center__card + .help-center__card {
	margin-top: 1rem;
}


.help-center__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.15rem 0 0.45rem;
}

.help-center__card-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--dp-text);
}

.help-faq-list,
.help-feed-list {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 0.65rem;
}

.help-faq-list__item,
.help-feed-list__item {
	border-top: 1px solid var(--dp-border);
}

.help-faq-list__item:first-child,
.help-feed-list__item:first-child {
	border-top: 0;
}

.help-faq-list__link,
.help-feed-list__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	padding: 0.75rem 0.15rem;
	color: inherit;
	border-radius: var(--dp-radius-sm);
}

.help-faq-list__link:hover,
.help-feed-list__link:hover {
	background: var(--dp-accent-soft);
	color: inherit;
}

.help-faq-list__title,
.help-feed-list__title {
	flex: 1 1 12rem;
	min-width: 0;
	font-weight: 600;
	color: var(--dp-text);
}

.help-faq-list__meta,
.help-feed-list__meta {
	font-size: 0.82rem;
	color: var(--dp-text-muted);
	white-space: nowrap;
}

.help-feed-list__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dp-accent-deep);
	background: var(--dp-accent-soft);
}

.help-feed-list__badge--discuss {
	color: #0f766e;
	background: rgba(15, 118, 110, 0.1);
}

.help-feed-list__game {
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dp-accent-deep);
	background: var(--dp-accent-soft);
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
}

.help-feed-list__excerpt {
	flex: 1 1 100%;
	font-size: 0.88rem;
	color: var(--dp-text-muted);
	line-height: 1.5;
}



.help-discussions .comment-respond {
	margin: .55rem 0 .35rem;
	padding: .75rem .85rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius-sm);
}
.help-discuss-respond-home:not(:has(#respond)) {
	display: none;
}

.help-discussions {
	padding: 0.35rem 0 0.65rem;
}

.help-discuss-thread + .help-discuss-thread {
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--dp-border);
}

.help-discuss-thread__game {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
}

.help-discuss-thread__game a {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	color: var(--dp-accent-deep);
	background: var(--dp-accent-soft);
	text-decoration: none;
}

.help-discuss-thread__game a:hover {
	color: var(--dp-accent-deep);
	filter: brightness(0.97);
}

.help-feed-mixed > .help-feed-list__item--faq {
	border-top: 1px solid var(--dp-border);
}

.help-feed-mixed > .help-feed-list__item--faq:first-child {
	border-top: 0;
}

.help-feed-mixed > .help-discuss-threads + .help-discuss-threads {
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid var(--dp-border);
}

.help-feed-mixed > .help-discuss-threads + .help-feed-list__item--faq,
.help-feed-mixed > .help-feed-list__item--faq + .help-discuss-threads {
	margin-top: 0.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--dp-border);
}

.help-center__aside .help-coin-rank {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
	padding: 1rem 1.05rem 0.85rem;
}

.help-coin-rank__hint {
	margin: 0 0 0.75rem;
	font-size: 0.78rem;
	color: var(--dp-text-dim);
	line-height: 1.45;
}

.help-coin-rank__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.help-coin-rank__item {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.55rem;
	padding: 0.48rem 0;
	border-top: 1px solid var(--dp-border);
	font-size: 0.9rem;
}

.help-coin-rank__item:first-child {
	border-top: 0;
}

.help-coin-rank__num {
	font-weight: 700;
	color: var(--dp-text-muted);
	text-align: center;
}

.help-coin-rank__item:nth-child(-n+3) .help-coin-rank__num {
	color: var(--dp-accent-deep);
}

.help-coin-rank__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--dp-text);
}

.help-coin-rank__coins {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: #c9971a;
}

.help-coin-rank__coins::after {
	content: " 币";
	font-weight: 500;
	font-size: 0.78em;
	color: var(--dp-text-dim);
}

@media (max-width: 959px) {
	.help-center__aside {
		order: 3;
	}
}


/* User center — coins tab (1.8.84) */
.user-center__coins-chip {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #c9971a;
}

.user-center__coins-balance {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	flex-wrap: wrap;
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	background: var(--dp-surface-2, var(--dp-surface));
}

.user-center__coins-label {
	color: var(--dp-text-muted);
	font-size: 0.9rem;
}

.user-center__coins-value {
	font-size: 1.55rem;
	font-variant-numeric: tabular-nums;
	color: #c9971a;
	line-height: 1.1;
}

.user-center__coins-unit {
	color: var(--dp-text-dim);
	font-size: 0.85rem;
}

.user-center__ledger-wrap {
	overflow-x: auto;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
}

.user-center__ledger {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.user-center__ledger th,
.user-center__ledger td {
	padding: 0.55rem 0.7rem;
	text-align: left;
	border-bottom: 1px solid var(--dp-border);
	vertical-align: top;
}

.user-center__ledger th {
	background: rgba(95, 164, 245, 0.08);
	font-weight: 600;
	color: var(--dp-text-muted);
	white-space: nowrap;
}

.user-center__ledger tr:last-child td {
	border-bottom: 0;
}

.user-center__ledger-delta.is-plus {
	color: #1a7f37;
	font-weight: 600;
}

.user-center__ledger-delta.is-minus {
	color: #c62828;
	font-weight: 600;
}


/* Comment form rules (1.8.85) */
.comment-form__rules {
	margin: 0.35rem 0 0.85rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	background: rgba(95, 164, 245, 0.08);
	color: var(--dp-text-muted);
	font-size: 0.86rem;
	line-height: 1.5;
}

/* User center coin rules (1.8.85) */
.user-center__coins-rules {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px dashed var(--dp-border);
	border-radius: var(--dp-radius);
	background: var(--dp-surface-2, var(--dp-surface));
}

.user-center__coins-rules-title {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
}

.user-center__coins-rules-text {
	margin: 0;
	color: var(--dp-text-muted);
	font-size: 0.88rem;
	line-height: 1.55;
}


/* === DayuPress 1.8.98 AJAX front === */
.is-ajax-busy {
	position: relative;
	pointer-events: none;
	opacity: 0.72;
	transition: opacity 0.15s ease;
}

.dp-search-results-slot {
	margin-top: 1rem;
	max-height: min(55vh, 420px);
	overflow: auto;
	border-top: 1px solid rgba(15, 76, 129, 0.12);
	padding-top: 0.75rem;
}

.dp-search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.dp-search-results__link {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.dp-search-results__link:hover {
	background: rgba(56, 152, 236, 0.1);
}

.dp-search-results__type {
	flex: 0 0 auto;
	font-size: 0.75rem;
	color: #2f6fad;
	background: rgba(56, 152, 236, 0.12);
	border-radius: 999px;
	padding: 0.1rem 0.5rem;
}

.dp-search-results__title {
	flex: 1 1 auto;
	font-weight: 600;
	line-height: 1.35;
}

.dp-search-results__empty,
.dp-search-results__loading {
	margin: 0.25rem 0 0;
	color: #5a6f86;
	font-size: 0.95rem;
}

.dp-search-results__more {
	margin: 0.85rem 0 0;
	text-align: center;
}

.dp-search-results__all {
	font-weight: 600;
	color: #1d6fb8;
	text-decoration: none;
}

.dp-search-results__all:hover {
	text-decoration: underline;
}

.user-center__ajax-body.is-ajax-busy,
.dayupress-ajax-list.is-ajax-busy,
.comments-list-wrap.is-ajax-busy {
	min-height: 4rem;
}


/* === DayuPress 1.9.15: blank / full-width page templates === */
body.is-blank-page .site-main {
	padding-block: 1.5rem 2.5rem;
}

.content-area--blank,
.content-area--full {
	display: block;
}

.content-area--blank .entry--blank,
.content-area--full .entry--full {
	background: var(--dp-surface, #fff);
	border: 1px solid var(--dp-border, #e2e8f0);
	border-radius: 12px;
	padding: 1.5rem 1.35rem;
	box-shadow: var(--dp-shadow, none);
}

.content-area--blank .entry-content > :first-child {
	margin-top: 0;
}

.content-area--full .entry-header {
	margin-bottom: 1rem;
}

body.is-full-width-page .container.content-area--full {
	width: min(100% - 2rem, max(var(--dp-content-max), 1100px));
}

body.is-blank-page .site-footer .footer-widgets {
	display: none;
}

/* User center — DayuPay wallet aligned with theme cards / buttons / ledger. */
.user-center__wallet-body {
	overflow-x: auto;
}

.user-center__wallet-body .dayupay-account {
	margin: 0;
}

.user-center__wallet-body .dayupay-account__title {
	display: none;
}

.user-center__wallet-body .dayupay-account__vip {
	background: var(--dp-surface);
	border-color: var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: none;
}

.user-center__wallet-body .dayupay-account__orders {
	width: 100%;
}

.user-center__wallet-body .dayupay-account__orders-wrap {
	margin-top: 0.15rem;
	border-radius: var(--dp-radius);
	border-color: var(--dp-border);
}



/* Coin gain toast overlay (1.9.47) */
.dayupress-coin-toast {
	position: fixed;
	inset: 0;
	z-index: 10040;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.dayupress-coin-toast.is-open {
	opacity: 1;
	pointer-events: auto;
}

.dayupress-coin-toast__mask {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	background: rgba(15, 23, 42, 0.48);
}

.dayupress-coin-toast__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	min-width: min(100%, 16rem);
	padding: 1.4rem 1.6rem 1.35rem;
	border-radius: var(--dp-radius);
	border: 1px solid var(--dp-border-strong);
	background: var(--dp-surface);
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
	text-align: center;
	transform: translateY(8px) scale(0.96);
	transition: transform 0.22s ease;
}

.dayupress-coin-toast.is-open .dayupress-coin-toast__panel {
	transform: translateY(0) scale(1);
}

.dayupress-coin-toast__icon {
	display: block;
	filter: drop-shadow(0 4px 10px rgba(212, 146, 15, 0.35));
}

.dayupress-coin-toast__text {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--dp-text);
	line-height: 1.4;
}

.dayupress-coin-toast__label,
.dayupress-coin-toast__unit {
	font-weight: 600;
}

.dayupress-coin-toast__n {
	display: inline-block;
	margin: 0 0.2em;
	font-size: 1.35rem;
	font-weight: 800;
	color: #c48a12;
	letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
	.dayupress-coin-toast,
	.dayupress-coin-toast__panel {
		transition: none;
	}
}


/* Homepage genre cards pager */
.home-genre-panel__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--dp-border);
}

.home-genre-pager {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.home-genre-pager__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-btn-radius);
	background: var(--dp-bg);
	color: var(--dp-text);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.home-genre-pager__btn:hover:not(:disabled) {
	border-color: var(--dp-accent);
	color: var(--dp-accent-deep);
}

.home-genre-pager__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.home-genre-pager__info {
	min-width: 3.2rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--dp-text-muted);
	font-weight: 600;
}

.home-genre-panel__more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--dp-accent-deep);
	text-decoration: none;
}

.home-genre-panel__more:hover {
	color: var(--dp-accent);
}

.home-genre-panel__body {
	transition: opacity 0.15s ease;
}


/* Hot posts sidebar widget */
.widget_dayupress_hot_posts {
	min-width: 0;
	overflow: hidden;
}

.widget_dayupress_hot_posts .widget-title {
	margin-bottom: 0.55rem;
}

.hot-posts,
.hot-posts__list,
.hot-posts__item {
	min-width: 0;
	max-width: 100%;
}

.hot-posts__tabs {
	display: flex;
	gap: 0.15rem;
	margin: 0 0 0.55rem;
	border-bottom: 1px solid var(--dp-border);
}

.hot-posts__tab {
	flex: 1 1 0;
	min-width: 0;
	appearance: none;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--dp-text-muted);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.4rem 0.15rem 0.45rem;
	margin-bottom: -1px;
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.hot-posts__tab:hover,
.hot-posts__tab.is-active {
	color: var(--dp-accent-deep);
	border-bottom-color: var(--dp-accent);
}

.hot-posts__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hot-posts__item {
	padding: 0;
	border-bottom: 1px solid var(--dp-border);
}

.hot-posts__item:last-child {
	border-bottom: 0;
}

.hot-posts__link {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	padding: 0.42rem 0;
	color: var(--dp-text);
	text-decoration: none;
}

.hot-posts__link:hover {
	color: var(--dp-accent);
}

.hot-posts__num {
	flex: 0 0 1.15rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--dp-text-dim);
	line-height: 1.45;
}

.hot-posts__item:nth-child(-n+3) .hot-posts__num {
	color: var(--dp-accent-deep);
}

.hot-posts__title {
	display: block;
	min-width: 0;
	max-width: 100%;
	font-size: 0.86rem;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hot-posts__empty {
	margin: 0.4rem 0 0.2rem;
	color: var(--dp-text-muted);
	font-size: 0.85rem;
}


.hot-posts__link {
	align-items: center;
}

.hot-posts__cover {
	flex: 0 0 48px;
	width: 48px;
	height: 36px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--dp-surface-2, #eef2f6);
}

.hot-posts__cover img,
.hot-posts__cover-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hot-posts__body {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.hot-posts__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	color: var(--dp-text-dim);
	font-size: 0.72rem;
	line-height: 1.3;
}

.hot-posts__rating {
	color: #c9971a;
	font-weight: 700;
}


/* FC / arcade emulator page */
.emu-shell {
	margin: 0 0 2rem;
}

.emu-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.emu-title {
	margin: 0;
	font-size: 1.35rem;
}

.emu-platforms {
	display: flex;
	gap: 0;
	margin: -0.55rem -0.55rem 0.55rem;
	border-bottom: 1px solid var(--dp-border);
}

.emu-platforms__btn {
	flex: 1 1 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--dp-text-muted);
	border-radius: 0;
	padding: 0.7rem 0.4rem;
	margin-bottom: -1px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
}

.emu-platforms__btn.is-active {
	background: transparent;
	border-bottom-color: var(--dp-accent);
	color: var(--dp-accent-deep);
}

.emu-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16rem;
	gap: 1rem;
	align-items: start;
}

.emu-main {
	min-width: 0;
}

.emu-list,
.emu-stage {
	background: var(--dp-surface);
	border: 1px solid var(--dp-border);
	border-radius: var(--dp-radius);
	box-shadow: var(--dp-shadow);
}

.emu-list {
	max-height: 640px;
	overflow: auto;
	padding: 0.55rem;
}

.emu-list__item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: var(--dp-text);
	font: inherit;
	font-size: 0.9rem;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	cursor: pointer;
}

.emu-list__item:hover,
.emu-list__item.is-active {
	background: var(--dp-accent-soft);
	color: var(--dp-accent-deep);
}

.emu-stage__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid var(--dp-border);
}

.emu-stage__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.emu-stage__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	flex-shrink: 0;
}

.emu-stage__btn,
.emu-stage__full {
	flex-shrink: 0;
	border: 1px solid var(--dp-border);
	background: var(--dp-surface);
	color: var(--dp-text);
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}

.emu-stage__full {
	border-color: var(--dp-accent);
	background: var(--dp-accent);
	color: #fff;
}

.emu-keys {
	margin: 0;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid var(--dp-border);
	background: var(--dp-surface-2, #eef2f6);
	font-size: 0.85rem;
}

.emu-keys p,
.emu-keys ul {
	margin: 0.25rem 0;
}

.emu-keys ul {
	padding-left: 1.1rem;
}

.emu-comments {
	margin-top: 1rem;
}

.emu-stage__player {
	min-height: 420px;
	background: #0f172a;
	border-radius: 0 0 var(--dp-radius) var(--dp-radius);
	overflow: hidden;
}

.emu-stage__placeholder,
.emu-empty {
	margin: 0;
	padding: 1rem;
	color: var(--dp-text-muted);
}

.emu-stage__placeholder {
	color: #cbd5e1;
}

.emu-stage:fullscreen,
.emu-stage:-webkit-full-screen {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border-radius: 0;
	background: #000;
	position: relative;
}

.emu-stage:fullscreen .emu-stage__bar,
.emu-stage:-webkit-full-screen .emu-stage__bar,
.emu-stage:fullscreen .emu-keys,
.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: #ffffff;
	color: #1f2937;
	visibility: hidden;
	pointer-events: none;
}

.emu-stage:fullscreen.is-bar-on .emu-stage__bar,
.emu-stage:-webkit-full-screen.is-bar-on .emu-stage__bar,
.emu-stage:fullscreen.is-bar-on .emu-keys,
.emu-stage:-webkit-full-screen.is-bar-on .emu-keys {
	height: auto;
	padding: 0.7rem 0.85rem;
	overflow: visible;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
	background: #ffffff;
	visibility: visible;
	pointer-events: auto;
}

.emu-stage:fullscreen .emu-stage__bar .emu-stage__btn,
.emu-stage:-webkit-full-screen .emu-stage__bar .emu-stage__btn {
	background: #f4f7f9;
	color: #1f2937;
	border-color: rgba(15, 23, 42, 0.08);
}

.emu-stage:fullscreen .emu-stage__bar .emu-stage__full,
.emu-stage:-webkit-full-screen .emu-stage__bar .emu-stage__full {
	background: #5fa4f5;
	color: #fff;
	border-color: #5fa4f5;
}

.emu-stage:fullscreen .emu-stage__player,
.emu-stage:-webkit-full-screen .emu-stage__player {
	flex: 1;
	min-height: 0;
	height: 100%;
	border-radius: 0;
}

@media (max-width: 860px) {
	.emu-layout {
		grid-template-columns: 1fr;
	}
	.emu-list {
		order: -1;
	}
	.emu-list {
		max-height: 220px;
	}
}


.emu-comments {
	margin-top: 1.25rem;
}


.widget_dayupress_category_posts {
	min-width: 0;
	overflow: hidden;
}

.cat-posts__tabs {
	display: flex;
	gap: 0.15rem;
	margin: 0 0 0.55rem;
	border-bottom: 1px solid var(--dp-border);
}

.cat-posts__tab {
	flex: 1 1 0;
	min-width: 0;
	appearance: none;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--dp-text-muted);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.4rem 0.15rem 0.45rem;
	margin-bottom: -1px;
	cursor: pointer;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cat-posts__tab:hover,
.cat-posts__tab.is-active {
	color: var(--dp-accent-deep);
	border-bottom-color: var(--dp-accent);
}

.cat-posts__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-posts__item {
	border-bottom: 1px solid var(--dp-border);
}

.cat-posts__item:last-child {
	border-bottom: 0;
}

.cat-posts__link {
	display: block;
	padding: 0.45rem 0;
	color: var(--dp-text);
	text-decoration: none;
}

.cat-posts__link:hover {
	color: var(--dp-accent);
}

.cat-posts__title {
	display: block;
	font-size: 0.86rem;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cat-posts__empty {
	margin: 0.4rem 0 0.2rem;
	color: var(--dp-text-muted);
	font-size: 0.85rem;
}

.cat-posts__name {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--dp-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cat-posts__link {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.cat-posts__num {
	flex: 0 0 1.15rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--dp-text-dim);
}

.cat-posts__item:nth-child(-n+3) .cat-posts__num {
	color: var(--dp-accent-deep);
}


.dp-lightbox.is-loading .dp-lightbox__frame::after {
	content: "";
	width: 2rem;
	height: 2rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dp-lightbox-spin 0.7s linear infinite;
}

@keyframes dp-lightbox-spin {
	to { transform: rotate(360deg); }
}

.game-intro.is-collapsed {
	position: relative;
	max-height: 840px;
	overflow: hidden;
}

.game-intro.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	height: 10rem;
	background: linear-gradient(
		to top,
		#fff 0%,
		rgba(255, 255, 255, 0.96) 24%,
		rgba(255, 255, 255, 0.62) 58%,
		rgba(255, 255, 255, 0) 100%
	);
	pointer-events: none;
}

.game-intro__bar {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateX(-50%);
}

.game-intro__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 7.6rem;
	box-sizing: border-box;
	border: 1px solid #c9d8ea;
	background: #fff;
	color: var(--dp-accent-deep, #1d4f91);
	border-radius: 999px;
	padding: 0.48rem 1.15rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(29, 79, 145, 0.12);
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-intro__more::after {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
}

.game-intro__more:hover,
.game-intro__more:focus-visible {
	color: #fff;
	background: var(--dp-accent, #1d8cf8);
	border-color: var(--dp-accent, #1d8cf8);
	box-shadow: 0 6px 16px rgba(29, 140, 248, 0.22);
}

.game-intro:not(.is-collapsed) .game-intro__bar {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 1.15rem;
	transform: none;
}

.game-intro:not(.is-collapsed) .game-intro__more::after {
	transform: rotate(225deg) translateY(1px);
}

.dp-back-top {
	position: fixed;
	right: 18px;
	bottom: 22px;
	z-index: 170;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #d7e2ef;
	border-radius: 50%;
	background: #fff;
	color: var(--dp-accent-deep, #1d4f91);
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dp-back-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.dp-back-top::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg) translateY(1px);
}

.dp-back-top:hover,
.dp-back-top:focus-visible {
	color: #fff;
	background: var(--dp-accent, #1d8cf8);
	border-color: var(--dp-accent, #1d8cf8);
}

@media (max-width: 782px) {
	.dp-back-top {
		right: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 42px;
		height: 42px;
	}
}

@media (max-width: 640px) {
	.game-hero__bar {
		align-items: stretch;
	}
}
