/* Quick guide — navy card, centered, unit page like blacksmith. */
div.popup3.popup3-guide {
	background:#0e1a2c !important;
	background-image:none !important;
	border:1px solid rgba(212,175,55,.55);
	border-radius:16px;
	box-shadow:0 16px 40px rgba(10,18,32,.42), inset 0 1px 0 rgba(255,255,255,.06);
	width:560px !important;
	max-height:calc(100vh - 24px);
	height:auto;
	padding:0 !important;
	overflow:hidden;
	box-sizing:border-box;
	position:fixed !important;
	top:50% !important;
	left:50% !important;
	right:auto !important;
	transform:translate(-50%,-50%);
}
div.popup3.popup3-guide::before {
	content:attr(data-title);
	display:block;
	background:linear-gradient(165deg,#1e2f4a 0%,#121f35 45%,#0a1220 100%);
	color:#f6d77a;
	text-align:center;
	font-weight:bold;
	font-size:16px;
	line-height:1.35;
	padding:12px 42px;
	border-bottom:1px solid rgba(212,175,55,.45);
	letter-spacing:.2px;
}
div.popup3.popup3-guide div#drag {
	right:0;
	left:40px;
	top:0;
	width:auto;
	height:44px;
	background:transparent;
}
div.popup3.popup3-guide a.popup-close-hit {
	left:8px;
	top:8px;
	width:28px;
	height:28px;
	border-radius:50%;
	background:rgba(255,255,255,.08);
}
div.popup3.popup3-guide a.popup-close-hit::before,
div.popup3.popup3-guide a.popup-close-hit::after {
	content:"";
	position:absolute;
	left:50%;
	top:50%;
	width:14px;
	height:2px;
	background:#f6d77a;
}
div.popup3.popup3-guide a.popup-close-hit::before {
	transform:translate(-50%,-50%) rotate(45deg);
}
div.popup3.popup3-guide a.popup-close-hit::after {
	transform:translate(-50%,-50%) rotate(-45deg);
}
div.popup3.popup3-guide a.popup-close-hit:hover {
	background:rgba(255,255,255,.16);
}
div.popup3.popup3-guide iframe#Frame,
div#ce div.popup3.popup3-guide iframe#Frame {
	display:block;
	width:100% !important;
	max-width:none;
	height:560px;
	max-height:calc(100vh - 80px);
	border:0;
	background:#0e1a2c;
}
div#ce div.popup3.popup3-guide {
	height:auto !important;
	padding:0 !important;
}

body.manual.help-overview,
body.manual.help-unit,
body.manual.help-page {
	margin:0;
	padding:0;
	background:#0e1a2c;
	color:#e6eefc;
	direction:rtl;
	text-align:right;
}

body.manual.help-overview .help-overview-card {
	position:relative;
	box-sizing:border-box;
	min-height:500px;
	padding:12px 20px 42px 168px;
}
body.manual.help-overview h1 {
	margin:0 0 8px;
	padding:0 0 8px;
	border-bottom:1px dashed rgba(212,175,55,.30);
	color:#f6d77a;
	font-size:16px;
	font-weight:bold;
}
body.manual.help-overview h1 img.point {
	display:none;
}
body.manual.help-overview h1::before {
	content:"";
	display:inline-block;
	width:13px;
	height:15px;
	margin-left:8px;
	vertical-align:-2px;
	box-sizing:border-box;
	border:1.5px solid #f6d77a;
	border-radius:2px;
	background:
		linear-gradient(#f6d77a,#f6d77a) 50% 5px / 7px 1.5px no-repeat,
		linear-gradient(#f6d77a,#f6d77a) 50% 8px / 7px 1.5px no-repeat;
}
body.manual.help-overview p:empty {
	display:none;
}
body.manual.help-overview .help-overview-card > br,
body.manual.help-overview ul + br,
body.manual.help-overview p br {
	display:none;
}
body.manual.help-overview p {
	margin:0 0 10px;
	line-height:1.55;
	color:#c5d0e0;
}
body.manual.help-overview ul {
	margin:4px 0 8px;
	padding:0 4px 0 0;
}
body.manual.help-overview li {
	margin:3px 0;
	line-height:1.45;
}
body.manual.help-overview li:not(:has(a)) {
	color:#f6d77a;
	font-weight:bold;
	margin-top:8px;
	list-style:none;
}
body.manual.help-overview a,
body.manual.help-unit a,
body.manual.help-page a {
	color:#71D000;
	font-weight:bold;
	text-decoration:none;
}
body.manual.help-overview a:hover,
body.manual.help-unit a:hover,
body.manual.help-page a:hover {
	color:#f6d77a;
}
body.manual.help-overview img.troops,
body.manual.help-overview img.buildings {
	position:absolute;
	left:16px;
	z-index:1;
	width:140px;
	height:89px;
	background-color:transparent;
	background-repeat:no-repeat;
	background-size:contain;
}
body.manual.help-overview img.troops {
	top:78px;
	background-image:url(../../img/a/troops.png);
}
body.manual.help-overview img.buildings {
	top:176px;
	background-image:url(../../img/a/buildings.png);
}
body.manual.help-overview .help-overview-card > p:last-of-type {
	position:absolute;
	left:14px;
	right:14px;
	bottom:10px;
	margin:0;
	padding-top:8px;
	border-top:1px solid rgba(212,175,55,.22);
	color:#a8b6cf;
	font-size:11px;
	text-align:center;
}

body.manual.help-page {
	padding:12px 16px 40px;
	box-sizing:border-box;
	min-height:100%;
}
body.manual.help-page h1 {
	color:#f6d77a;
	border-bottom:1px dashed rgba(212,175,55,.30);
	padding-bottom:8px;
	margin-bottom:10px;
}
body.manual.help-page ul {
	color:#e6eefc;
}
body.manual.help-page img.navi,
body.manual.help-unit img.navi,
body.manual img.navi {
	position:fixed !important;
	left:50% !important;
	right:auto !important;
	bottom:12px !important;
	top:auto !important;
	transform:translateX(-50%);
	display:block;
	margin:0;
	z-index:20;
}

/* Unit page — blacksmith-like card, same fields kept */
body.manual.help-unit {
	padding:6px 10px 40px;
	overflow:hidden;
	box-sizing:border-box;
	min-height:100%;
}
body.manual.help-unit .help-unit-card {
	display:flex;
	flex-direction:column;
	align-items:center;
	box-sizing:border-box;
	padding:8px 12px 6px;
	border-radius:14px;
	border:1px solid rgba(255,255,255,.06);
	background:radial-gradient(circle at 50% 0%,rgba(212,175,55,.10),transparent 60%),
		linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.01));
	box-shadow:0 8px 24px rgba(0,0,0,.35);
}
body.manual.help-unit img#big_unit {
	order:1;
	position:relative !important;
	right:auto !important;
	left:auto !important;
	top:auto !important;
	width:100px;
	height:100px;
	margin:0 auto 6px;
	border-radius:50%;
	background:#0a1424 none !important;
	object-fit:contain;
	object-position:center;
	box-shadow:0 0 0 3px #d4af37, 0 0 0 7px rgba(212,175,55,.14), 0 8px 24px rgba(0,0,0,.45);
}
body.manual.help-unit h1 {
	order:2;
	width:100%;
	margin:0 0 8px;
	padding:0;
	text-align:center;
	color:#fff;
	font-size:17px;
	font-weight:bold;
	text-shadow:0 1px 2px rgba(0,0,0,.6);
}
body.manual.help-unit h1 span.tribe {
	display:block;
	margin-top:2px;
	color:#a8b6cf;
	font-size:13px;
	font-weight:normal;
}
body.manual.help-unit table#troop_info {
	order:3;
	width:100% !important;
	margin:4px 0 8px !important;
	background:rgba(0,0,0,.28);
	border-radius:10px;
	border-collapse:collapse;
}
body.manual.help-unit table#troop_info th,
body.manual.help-unit table#troop_info td {
	color:#e6eefc;
	text-align:center;
	padding:5px 2px;
	border:none;
	background:transparent;
	width:auto;
}
body.manual.help-unit table#troop_details {
	order:4;
	width:100% !important;
	margin:0 0 8px;
	background:transparent !important;
	background-color:transparent !important;
}
body.manual.help-unit table#troop_details th,
body.manual.help-unit table#troop_details td {
	color:#c5d0e0;
	padding:3px 6px;
	border:none;
	background:transparent;
}
body.manual.help-unit table#troop_details th {
	color:#f6d77a;
	font-weight:bold;
	text-align:right;
	white-space:nowrap;
}
body.manual.help-unit table#troop_details td {
	text-align:right;
}
body.manual.help-unit #t_desc {
	order:5;
	width:100%;
	margin:4px 0 6px;
	color:#c5d0e0;
	font-size:12px;
	line-height:1.55;
	text-align:center;
}
body.manual.help-unit #prereqs {
	order:6;
	width:100%;
	margin:0;
	color:#a8b6cf;
	font-size:12px;
	text-align:center;
}
body.manual.help-unit #prereqs b {
	color:#f6d77a;
}

/* Village/game overlay — centered navy card */
#Screen.help-guide-card {
	position:fixed !important;
	inset:0 !important;
	left:0 !important;
	top:0 !important;
	right:0 !important;
	bottom:0 !important;
	width:auto !important;
	height:auto !important;
	margin:0 !important;
	transform:none !important;
}
#Screen.help-guide-card .overlay_content {
	position:fixed !important;
	top:50% !important;
	left:50% !important;
	right:auto !important;
	width:560px !important;
	max-height:calc(100vh - 24px);
	margin:0 !important;
	transform:translate(-50%,-50%) !important;
	border:1px solid rgba(212,175,55,.55);
	border-radius:16px;
	background:#0e1a2c;
	box-shadow:0 16px 40px rgba(10,18,32,.42), inset 0 1px 0 rgba(255,255,255,.06);
	overflow:hidden;
	box-sizing:border-box;
}
#Screen.help-guide-card h2,
#Screen.help-guide-card #caption {
	margin:0;
	padding:12px 42px;
	line-height:1.35;
	font-size:16px;
	font-weight:bold;
	color:#f6d77a;
	background:linear-gradient(165deg,#1e2f4a 0%,#121f35 45%,#0a1220 100%);
	border-bottom:1px solid rgba(212,175,55,.45);
	text-align:center;
}
#Screen.help-guide-card .Screen-content {
	padding:0;
	background:#0e1a2c;
}
#Screen.help-guide-card .Screen-content iframe {
	display:block;
	width:100% !important;
	height:560px;
	max-height:calc(100vh - 80px);
	border:0;
	background:#0e1a2c;
	overflow:hidden;
}
#Screen.help-guide-card .overlay_content > a.closer {
	position:absolute;
	left:8px;
	top:8px;
	z-index:2;
	width:28px;
	height:28px;
	border-radius:50%;
	background:rgba(255,255,255,.08);
}
#Screen.help-guide-card .overlay_content .closer img {
	display:none;
}
#Screen.help-guide-card .overlay_content > a.closer::before,
#Screen.help-guide-card .overlay_content > a.closer::after {
	content:"";
	position:absolute;
	left:50%;
	top:50%;
	width:14px;
	height:2px;
	background:#f6d77a;
}
#Screen.help-guide-card .overlay_content > a.closer::before {
	transform:translate(-50%,-50%) rotate(45deg);
}
#Screen.help-guide-card .overlay_content > a.closer::after {
	transform:translate(-50%,-50%) rotate(-45deg);
}
#Screen.help-guide-card .overlay_content > a.closer:hover {
	background:rgba(255,255,255,.16);
}
