/* Dragon Raja One look on top of WebEngine's default template (setup-local.ps1 builds templates\dragonraja). */
:root {
	--webenginebg1: #0b0907;
	--webenginebg2: rgba(250, 247, 241, 0.95);
	--webenginebg3: rgba(236, 230, 219, 0.95);
	--webenginecolor1: #8a5a12;
	--webenginecolor7: #b07a22;
	--webenginecolor11: #8a5a12;
	--webenginecolor13: #e2c48a;
	--webenginecolor34: rgba(8, 6, 4, 0.85);
}

/* --dr-bg is set per page in index.php. !important beats the template's 2000 px media rule. */
body {
	background: #0b0907 var(--dr-bg) center top / cover no-repeat fixed !important;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.8));
	pointer-events: none;
}

#header {
	padding: 70px 0 30px;
}

/* The login art carries its own title: start it under the navbar and leave out the text logo. */
body.dr-home {
	background-position: center 96px !important;
}

body.dr-home #header {
	padding: 330px 0 150px;
}

body.dr-home .dr-logo {
	visibility: hidden;
}

.dr-logo {
	font-family: 'Cinzel', serif;
	font-size: 64px;
	color: #f3dfae;
	letter-spacing: 2px;
	text-shadow: 0 2px 4px #000, 0 0 24px rgba(0, 0, 0, 0.9);
}

#container {
	border-radius: 4px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.header-info-container {
	position: relative;
}

/* "Join now" banner (modules\home.php): picture with translated text on a dark fade at the left. */
.dr-banner {
	position: relative;
	display: block;
	width: 300px;
	height: 100px;
	overflow: hidden;
	border-radius: 3px;
}

.dr-banner img {
	width: 300px;
	height: 100px;
	display: block;
	transition: transform .3s ease;
}

.dr-banner:hover img {
	transform: scale(1.04);
}

.dr-banner-text {
	position: absolute;
	inset: 0;
	padding: 28px 0 0 14px;
	background: linear-gradient(90deg, rgba(5, 8, 14, 0.85), rgba(5, 8, 14, 0.4) 45%, rgba(5, 8, 14, 0) 65%);
	color: #f2f2f2;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-shadow: 0 1px 3px #000;
	line-height: 1.2;
}

.dr-banner-text b {
	display: block;
	font-family: 'Cinzel', serif;
	font-size: 22px;
	color: #f3c86a;
}

/* The menu stays readable on bright illustrations. */
#navbar {
	background: rgba(8, 6, 4, 0.78);
}

/* ------- Home ------- */
.dr-small-link {
	line-height: 34px;
	font-size: 12px;
}

.dr-status .panel-body {
	font-size: 15px;
}

.dr-cards {
	margin-top: 25px;
}

.dr-card {
	display: block;
	min-height: 110px;
	padding: 20px;
	border-radius: 4px;
	background: linear-gradient(135deg, #2b2218, #120e0a);
	color: #e8dcc4;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.dr-card:hover {
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, #3b2e1f, #1a140e);
}

.dr-card b {
	display: block;
	font-family: 'Cinzel', serif;
	font-size: 20px;
	color: #f3c86a;
	margin-bottom: 6px;
}

.dr-section-title {
	font-family: 'Cinzel', serif;
	margin: 30px 0 15px;
}

/* ------- Screenshots ------- */
.dr-shots-top {
	text-align: right;
	margin-bottom: 15px;
}

.dr-shots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.dr-shots-4 {
	grid-template-columns: repeat(4, 1fr);
}

.dr-shots-item {
	display: block;
	background: #1a140e;
	border-radius: 4px;
	overflow: hidden;
	color: #e8dcc4;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dr-shots-item:hover {
	color: #fff;
	text-decoration: none;
}

.dr-shots-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.dr-shots-title {
	display: block;
	padding: 8px 10px 0;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dr-shots-user {
	display: block;
	padding: 0 10px 8px;
	font-size: 12px;
	color: #a89a80;
}

.dr-shot-image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dr-shot-meta {
	color: var(--webenginecolor14);
}

.dr-shot-body {
	margin-top: 15px;
	font-size: 15px;
}

.dr-shot-actions {
	margin-top: 15px;
}

/* ------- Guide and download ------- */
.dr-guide-nav > li.active > a,
.dr-guide-nav > li.active > a:hover {
	background: var(--webenginecolor1);
}

.dr-guide-body {
	font-size: 15px;
	line-height: 1.6;
}

.dr-guide-body h3 {
	margin-top: 0;
	font-family: 'Cinzel', serif;
}

.dr-dl-soon {
	font-size: 15px;
	padding: 10px 0;
}

/* ------- In-game help (includes\dr\help) ------- */
.dr-guide-nav-title {
	margin: 20px 0 8px 15px;
	text-transform: uppercase;
	color: var(--webenginecolor14);
	font-size: 12px;
	letter-spacing: 1px;
}

.dr-guide-nav-help > li > a {
	padding: 5px 15px;
}

.dr-help-blue { color: #1d5fa8; font-weight: bold; }
.dr-help-green { color: #1d7a3a; font-weight: bold; }
.dr-help-gold { color: #9a6b00; font-weight: bold; }
.dr-help-red { color: #b00000; font-weight: bold; }
.dr-help-mark { font-weight: bold; }

.dr-help-table {
	width: auto;
	min-width: 40%;
	display: inline-table;
	margin: 0 20px 15px 0;
	vertical-align: top;
}

.dr-help-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 10px 0 15px;
	border-radius: 4px;
	background: #1a140e;
	padding: 6px;
}

.dr-guide-source {
	margin-top: 25px;
	font-size: 12px;
	color: var(--webenginecolor14);
}

.dr-help-pager {
	margin-top: 30px;
}

.dr-help-pager-current {
	background: var(--webenginecolor1) !important;
	color: #fff !important;
}

/* ------- Shop (modules\shop.php) ------- */
.dr-shop-intro {
	text-align: center;
	font-size: 15px;
	margin-bottom: 20px;
}

.dr-shop-packages {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.dr-shop-package {
	position: relative;
	display: block;
	padding: 22px 10px 16px;
	text-align: center;
	border: 2px solid #d8ccb4;
	border-radius: 6px;
	background: #fffaf0;
	cursor: pointer;
	font-weight: normal;
	transition: border-color .15s ease, transform .15s ease;
}

.dr-shop-package:hover {
	transform: translateY(-2px);
}

.dr-shop-package input {
	position: absolute;
	opacity: 0;
}

.dr-shop-package:has(input:checked) {
	border-color: var(--webenginecolor1);
	box-shadow: 0 0 0 3px rgba(138, 90, 18, 0.25);
}

.dr-shop-popular,
.dr-shop-best {
	border-color: #c9a25a;
}

.dr-shop-badge {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 12px;
	border-radius: 10px;
	background: var(--webenginecolor1);
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
}

.dr-shop-best .dr-shop-badge {
	background: #2c6e2f;
}

.dr-shop-coins {
	display: block;
	font-family: 'Cinzel', serif;
	font-size: 28px;
	color: #3a2a12;
}

.dr-shop-unit {
	display: block;
	color: var(--webenginecolor14);
	margin-bottom: 8px;
}

.dr-shop-price {
	display: block;
	font-size: 22px;
	font-weight: bold;
}

.dr-shop-saving {
	display: block;
	color: #2c6e2f;
	font-weight: bold;
}

.dr-shop-pay {
	max-width: 420px;
	margin: 30px auto 0;
	text-align: center;
}

.dr-shop-note {
	font-size: 12px;
	color: var(--webenginecolor14);
}

.dr-shop-card {
	margin-bottom: 6px;
}

.dr-shop-or {
	margin: 8px 0;
	color: var(--webenginecolor14);
}

.dr-shop-withdrawal {
	font-size: 13px;
	background: #fff6dd;
	border: 1px solid #ecd9a4;
	border-radius: 4px;
	padding: 8px 10px;
}

/* ------- Legal pages (modules\legal.php) ------- */
.dr-legal {
	max-width: 820px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.65;
}

.dr-legal h4 {
	margin-top: 25px;
	font-weight: bold;
}
