/*
Theme Name: Sunwin
Theme URI: https://sunwin22.co/
Author: Sunwin
Description: Giao diện Sunwin — nền tím than, vàng gold và ruy băng đỏ theo logo. Bố cục một cột, mục lục, nút kêu gọi và chân trang nhóm liên kết.
Version: 1.0.0
Text Domain: sunwin
*/

:root {
	--gold: #f5c518;
	--gold-2: #ffe08a;
	--gold-deep: #c8880f;
	--ink: #140910;
	--plum: #2a1233;
	--red: #d0122d;
	--text: #f7f1e8;
	--muted: #d9cbb8;
	--line: rgba(245, 197, 24, 0.28);
	--sheet: rgba(28, 12, 32, 0.88);
	--max: 920px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(900px 420px at 50% -80px, rgba(124, 58, 168, 0.38), transparent 70%),
		radial-gradient(520px 280px at 100% 8%, rgba(208, 18, 45, 0.22), transparent 60%),
		radial-gradient(480px 260px at 0% 18%, rgba(245, 197, 24, 0.08), transparent 55%),
		var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16.5px;
	line-height: 1.75;
}

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

a { color: var(--gold-2); }

.skip-link {
	position: absolute;
	left: 12px;
	top: 0;
	transform: translateY(-150%);
	background: var(--gold);
	color: #2a1604;
	padding: 8px 12px;
	z-index: 100;
}
.skip-link:focus { transform: none; top: 12px; }

.site-header {
	padding: 18px 16px 8px;
	text-align: center;
}

.brand {
	display: inline-block;
	line-height: 0;
}
.brand img {
	width: 118px;
	height: 118px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 860px;
	margin: 14px auto 0;
}
.site-nav a {
	color: var(--text);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 650;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.04);
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
	color: #2a1604;
	background: linear-gradient(180deg, #ffe7a3, var(--gold) 55%, var(--gold-deep));
	border-color: transparent;
}

.hero {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px;
	text-align: center;
}
.play-hero {
	width: min(340px, 78%);
	margin: 0 auto 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.play-poster {
	display: block;
	width: 100%;
	height: auto;
}
.play-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 300px);
	min-height: 54px;
	padding: 0 18px;
	border-radius: 999px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.15;
	text-align: center;
}
.play-web {
	color: #4a2c08;
	background: linear-gradient(180deg, #fff1c2 0%, #f6c845 42%, #d79a16 100%);
	box-shadow: 0 8px 0 #8a5a0a, 0 14px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.play-store {
	display: none;
	color: #ffe7a8;
	background: #12080f;
	border: 1px solid rgba(245, 197, 24, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.play-btn:hover,
.play-btn:focus { transform: translateY(-1px); }

.cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 4px 0 16px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.01em;
	line-height: 1.2;
	border: 0;
}
.btn-gold {
	color: #3a2204;
	background: linear-gradient(180deg, #ffe9ae 0%, #f5c518 46%, #c8880f 100%);
	box-shadow: 0 10px 22px rgba(200, 136, 15, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-red {
	color: #fff;
	background: linear-gradient(180deg, #ff5a5a 0%, #d0122d 52%, #8d0e1c 100%);
	box-shadow: 0 10px 22px rgba(208, 18, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-line {
	color: var(--gold-2);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
}
.btn:hover,
.btn:focus { transform: translateY(-1px); }

.sheet {
	max-width: var(--max);
	margin: 0 auto 36px;
	padding: 8px 22px 36px;
}
.entry-content h1,
.sheet h1 {
	margin: 0.2em 0 0.6em;
	color: var(--gold);
	font-size: clamp(1.55rem, 2.4vw, 2.05rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	text-align: center;
}
.entry-content h1::after {
	content: "";
	display: block;
	width: 84px;
	height: 4px;
	margin: 12px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--red), var(--gold), #7a3ea8);
}
.entry-content h2 {
	margin: 1.45em 0 0.45em;
	color: var(--gold-2);
	font-size: 1.38rem;
	line-height: 1.35;
}
.entry-content h3 {
	margin: 1.15em 0 0.35em;
	padding-left: 12px;
	border-left: 3px solid var(--red);
	color: #fff;
	font-size: 1.08rem;
	line-height: 1.4;
}
.entry-content p,
.entry-content li { color: var(--text); }
.entry-content p { margin: 0 0 1em; }
.entry-content strong { color: #fff; font-weight: 750; }
.entry-content a { color: var(--gold-2); text-underline-offset: 2px; }
.entry-content ul,
.entry-content ol { margin: 0 0 1em; padding-left: 1.25em; }
.entry-content li { margin: 0.28em 0; }

.page-toc {
	margin: 0 0 1.4em;
	padding: 16px 18px 14px;
	border-radius: 18px;
	background: rgba(90, 30, 110, 0.28);
	border: 1px solid var(--line);
}
.page-toc-title {
	margin: 0 0 8px;
	color: var(--gold);
	font-weight: 800;
}
.page-toc ol { margin: 0; padding-left: 1.25em; }
.page-toc a { text-decoration: none; }
.page-toc a:hover { text-decoration: underline; }

.play-guide {
	margin: 0 0 1.25em;
	padding: 13px 16px;
	border-radius: 18px;
	text-align: center;
	font-weight: 750;
	color: var(--gold-2);
	background: linear-gradient(90deg, rgba(208, 18, 45, 0.2), rgba(92, 42, 140, 0.28));
	border: 1px dashed rgba(245, 197, 24, 0.75);
}
.play-guide a { color: #fff3c4; }

.sun-figure {
	margin: 1.15em auto;
	max-width: 760px;
}
.sun-figure img {
	display: block;
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--line);
}
.sun-figure figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.92rem;
	text-align: center;
}

.sun-table-wrap {
	margin: 0 0 1.2em;
	overflow-x: auto;
	border-radius: 14px;
	border: 1px solid var(--line);
}
.sun-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 420px;
}
.sun-table td {
	padding: 10px 14px;
	border-bottom: 1px solid rgba(245, 197, 24, 0.16);
	vertical-align: top;
}
.sun-table tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.03); }
.sun-table td:first-child { font-weight: 700; color: var(--gold-2); width: 42%; }

.rank-math-breadcrumb {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 0.9rem;
}
.rank-math-breadcrumb a { color: var(--gold-2); text-decoration: none; }

.related {
	margin-top: 1.8em;
	padding-top: 1em;
	border-top: 1px solid var(--line);
}
.related p { margin: 0 0 8px; font-weight: 800; color: var(--gold); }
.related ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.related a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid var(--line);
	color: var(--text);
	background: rgba(255, 255, 255, 0.03);
}
.related a:hover { color: #2a1604; background: var(--gold); }

.site-footer {
	margin-top: 10px;
	padding: 28px 16px 18px;
	background: linear-gradient(180deg, rgba(20, 8, 24, 0.2), #0c060e 30%);
	border-top: 1px solid var(--line);
}
.footer-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px 22px;
	max-width: 1000px;
	margin: 0 auto 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-badges img {
	height: 38px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1.4fr 0.9fr;
	gap: 22px;
	max-width: 1080px;
	margin: 0 auto;
}
.footer-brand img { width: 92px; height: 92px; }
.footer-grid h2 {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.footer-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}
.footer-links p {
	margin: 0 0 6px;
	color: var(--gold-2);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.footer-links ul,
.footer-contact ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-links a,
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold); }
.footer-contact li { margin: 0.25em 0; }
.footer-note {
	max-width: 1080px;
	margin: 16px auto 0;
	color: var(--muted);
	font-size: 0.92rem;
}
.copyright {
	max-width: 1080px;
	margin: 14px auto 0;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
}

.error-page {
	max-width: 680px;
	margin: 30px auto 60px;
	padding: 28px 20px;
	text-align: center;
}
.error-page h1 { color: var(--gold); }

@media (max-width: 860px) {
	.footer-grid { grid-template-columns: 1fr; }
	.brand img { width: 86px; height: 86px; }
	.sheet { padding: 4px 14px 28px; }
}

@media (max-width: 849px) {
	.play-ios,
	.play-apk { display: flex; }
}
@media (max-width: 549px) {
	.site-nav a { font-size: 0.84rem; padding: 6px 10px; }
	.btn { min-height: 44px; padding: 0 14px; font-size: 0.95rem; }
	.play-hero { width: min(280px, 86%); gap: 8px; }
	.play-btn { min-height: 48px; font-size: 0.92rem; }
	.footer-badges img { height: 30px; }
}
