:root {
	--vd-bg: #070504;
	--vd-panel: rgba(16, 11, 8, 0.92);
	--vd-panel-2: #1c140f;
	--vd-ink: #f6ecdf;
	--vd-muted: #e4d0b4;
	--vd-gold: #f0d78c;
	--vd-gold-deep: #8a6a32;
	--vd-ember: #e07a2f;
	--vd-line: rgba(240, 215, 140, 0.35);
	--vd-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	--vd-gutter: clamp(16px, 2.2vw, 48px);
	--vd-frame-max: 2000px;
	--vd-frame: min(var(--vd-frame-max), calc(100% - (var(--vd-gutter) * 2)));
	color-scheme: dark;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	background-color: var(--vd-bg);
}

body.vd-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: clip;
	color: var(--vd-ink);
	font-family: Verdana, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	background-color: var(--vd-bg);
}

.vd-scene {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background-color: #070504;
	background-image:
		linear-gradient(180deg, rgba(7, 5, 4, 0.32) 0%, rgba(7, 5, 4, 0.05) 12%, rgba(7, 5, 4, 0.08) 78%, rgba(7, 5, 4, 0.2) 100%),
		linear-gradient(90deg, rgba(7, 5, 4, 0.02) 0%, rgba(7, 5, 4, 0.12) 18%, rgba(7, 5, 4, 0.22) 36%, rgba(7, 5, 4, 0.22) 64%, rgba(7, 5, 4, 0.12) 82%, rgba(7, 5, 4, 0.02) 100%),
		url("art/vanyria-header-dragon-castle.jpg");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.vd-scene::before,
.vd-scene::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: max(0px, calc((100% - min(var(--vd-frame-max), 100% - (var(--vd-gutter) * 2))) / 2));
	background-image: url("art/vanyria-header-dragon-castle.jpg");
	background-repeat: no-repeat;
	background-size: auto 220vh;
}

.vd-scene::before {
	left: 0;
	background-position: 18% 0%;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
}

.vd-scene::after {
	right: 0;
	background-position: 56% 100%;
	-webkit-mask-image: linear-gradient(270deg, #000 0%, #000 72%, transparent 100%);
	mask-image: linear-gradient(270deg, #000 0%, #000 72%, transparent 100%);
}

a { color: var(--vd-gold); }
a:hover { color: #fff6e4; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--vd-gold);
	outline-offset: 2px;
}

.vd-preview {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 8px 16px;
	text-align: center;
	background: #3a220f;
	color: #fff6e4;
	border-bottom: 1px solid var(--vd-gold-deep);
	font-size: 14px;
}

.vd-hero {
	position: relative;
	z-index: 1;
	min-height: 0;
	overflow: visible;
	background: transparent;
	border: 0;
}

.vd-hero-art { display: none; }

.vd-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.05) 70%, transparent);
}

.vd-hero-inner {
	position: relative;
	z-index: 1;
	width: var(--vd-frame);
	margin: 0 auto;
	padding: 16px 0 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 14px 22px;
	align-items: end;
}

.vd-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--vd-gold);
	text-decoration: none;
}

.vd-brand img {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e8b15a;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45);
}

.vd-brand-name {
	display: block;
	font-family: Georgia, "Palatino Linotype", Palatino, serif;
	font-size: clamp(30px, 3.4vw, 42px);
	line-height: 0.95;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f8e7b0;
	text-shadow: 0 2px 0 #3a220b, 0 8px 18px rgba(0, 0, 0, 0.8);
}

.vd-brand-sub {
	display: block;
	margin-top: 4px;
	color: var(--vd-muted);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.vd-topnav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	min-width: 0;
}

.vd-topnav a {
	color: #fff8ee;
	text-decoration: none;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(232, 177, 90, 0.55);
	font-size: 14px;
}

.vd-topnav a.is-active,
.vd-topnav a:hover {
	background: rgba(224, 122, 47, 0.85);
	border-color: #f0d78c;
	color: #fff;
}

.vd-hero-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	min-width: min(180px, 100%);
}

.vd-status,
.vd-download,
.vd-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	padding: 9px 12px;
	font-weight: 700;
}

.vd-status {
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid var(--vd-gold-deep);
	color: var(--vd-ink);
}

.vd-status.is-online { color: #d8ffb0; }
.vd-status.is-offline { color: #ffc1b0; }

.vd-download,
.vd-button,
.vd-content input[type="submit"],
.vd-content button,
.vd-content .BigButtonText {
	background: linear-gradient(#d26522, #8d2f0d);
	color: #fff8ee !important;
	border: 1px solid #e8b15a;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
}

.vd-download:hover,
.vd-button:hover { filter: brightness(1.08); }

.vd-nav-toggle { display: none; }

.vd-shell {
	position: relative;
	z-index: 1;
	width: var(--vd-frame);
	margin: 8px auto 0;
	padding: 0 0 32px;
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr) 300px;
	gap: 16px;
	align-items: start;
}

.vd-panel {
	background: linear-gradient(180deg, rgba(42, 28, 18, 0.96), var(--vd-panel));
	border: 1px solid var(--vd-gold-deep);
	box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.12), var(--vd-shadow);
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 14px;
}

.vd-panel h2,
.vd-content h1,
.vd-content h2 {
	margin: 0 0 10px;
	font-family: Georgia, "Palatino Linotype", Palatino, serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--vd-gold);
	letter-spacing: 0.03em;
}

.vd-panel p { margin: 0 0 10px; color: var(--vd-muted); }

.vd-panel label {
	display: block;
	margin: 8px 0 4px;
	color: var(--vd-gold);
	font-size: 13px;
}

.vd-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
	color: var(--vd-ink);
	font-size: 14px;
}

.vd-panel input[type="text"],
.vd-panel input[type="password"],
.vd-panel input[type="email"],
.vd-content input[type="text"],
.vd-content input[type="password"],
.vd-content input[type="email"],
.vd-content input[type="number"],
.vd-content select,
.vd-content textarea {
	width: 100%;
	max-width: 100%;
	background: #120d0a;
	color: #fff8ee;
	border: 1px solid var(--vd-gold-deep);
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 16px;
	font-family: inherit;
}

.vd-panel .vd-button { width: 100%; margin-top: 8px; }

.vd-textlink {
	display: inline-block;
	margin: 8px 12px 0 0;
	color: var(--vd-gold);
}

.vd-error { color: #ffb4a8 !important; }
.vd-muted { color: var(--vd-muted); font-size: 13px; }
.vd-logged { color: #d8ffb0; }

.vd-group-toggle {
	width: 100%;
	text-align: left;
	background: transparent;
	color: var(--vd-gold);
	border: 0;
	border-top: 1px solid var(--vd-line);
	padding: 8px 0 4px;
	font-family: Georgia, "Palatino Linotype", Palatino, serif;
	font-size: 16px;
	cursor: pointer;
}

.vd-group:first-of-type .vd-group-toggle { border-top: 0; }

.vd-group-links a {
	display: block;
	padding: 6px 8px;
	color: var(--vd-ink);
	text-decoration: none;
	border-radius: 4px;
}

.vd-group-links a.is-active,
.vd-group-links a:hover {
	background: rgba(224, 122, 47, 0.22);
	color: #fff;
}

.vd-shell > *,
.vd-hero-inner > *,
.vd-main { min-width: 0; }

.vd-content {
	background: linear-gradient(180deg, rgba(28, 20, 15, 0.96), rgba(12, 9, 7, 0.96));
	border: 1px solid var(--vd-gold-deep);
	box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.12), var(--vd-shadow);
	border-radius: 8px;
	padding: 16px;
	overflow-x: auto;
	color: var(--vd-ink);
}

.vd-footer {
	margin-top: 12px;
	color: var(--vd-muted);
	font-size: 12px;
	text-align: center;
}

.vd-footer a { color: var(--vd-gold); }

.vd-facts { margin: 0; }
.vd-facts div {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 8px;
	padding: 5px 0;
	border-bottom: 1px solid rgba(240, 215, 140, 0.15);
}
.vd-facts dt { color: var(--vd-gold); font-size: 13px; }
.vd-facts dd { margin: 0; color: var(--vd-ink); }

.vd-motd {
	margin-top: 10px;
	color: var(--vd-muted);
	font-size: 13px;
}

.vd-save {
	font-family: Georgia, "Palatino Linotype", Palatino, serif;
	font-size: 28px;
	color: var(--vd-gold);
	margin: 0;
}

.vd-boost,
.vd-ranks li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(240, 215, 140, 0.15);
}

.vd-boost img,
.vd-ranks img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 4px;
	border: 1px solid var(--vd-gold-deep);
}

.vd-kicker {
	display: block;
	color: var(--vd-ember);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vd-ranks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vd-ranks li {
	display: grid;
	grid-template-columns: 1.4em 42px minmax(0, 1fr);
	grid-template-areas:
		"rank outfit name"
		"rank outfit exp"
		"rank outfit meta";
	column-gap: 8px;
	row-gap: 0;
	align-items: center;
	text-align: left;
	padding: 6px 0;
}

.vd-rank {
	grid-area: rank;
	color: var(--vd-muted);
	font-weight: 700;
	font-size: 13px;
}

.vd-ranks li:nth-child(1) .vd-rank { color: #f0d78c; }
.vd-ranks li:nth-child(2) .vd-rank { color: #e6e6e6; }
.vd-ranks li:nth-child(3) .vd-rank { color: #e0a060; }

.vd-rank-name {
	grid-area: name;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
}

.vd-rank-exp {
	grid-area: exp;
	color: var(--vd-gold);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.vd-rank-meta {
	grid-area: meta;
	color: var(--vd-muted);
	font-size: 12px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vd-ranks .vd-outfit {
	grid-area: outfit;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	width: 42px;
	height: 42px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 4px;
	border: 1px solid var(--vd-gold-deep);
}

.vd-ranks .vd-outfit img {
	width: 150%;
	height: 150%;
	max-width: none;
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	image-rendering: pixelated;
}

.vd-legacy-widget .boss-header,
.vd-legacy-widget .boss-content,
.vd-legacy-widget .boss-bottom {
	background-image: none !important;
	background-color: transparent !important;
	width: 100% !important;
	height: auto !important;
	line-height: 1.3 !important;
	color: var(--vd-ink) !important;
}

.vd-legacy-widget .boss-bottom { display: none; }

.vd-legacy-widget .boss-header {
	text-align: left;
	padding: 0;
	font-size: 14px;
}

.vd-validus-link {
	display: flex;
	justify-content: center;
}

.vd-validus-link img {
	width: 120px;
	height: auto;
	border-radius: 10px;
	display: block;
}

.vd-legacy-widget .boss-name { color: #fff8ee; }
.vd-legacy-widget .boss-time,
.vd-legacy-widget .boss-next { color: var(--vd-gold); white-space: normal; }

#CurrentPollBox {
	width: 100% !important;
	min-height: 90px;
	background-size: cover;
	color: #fff8ee;
	position: relative;
}

#CurrentPollText { padding: 16px 12px 48px; }

.vd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 2100px) {
	.vd-scene::before,
	.vd-scene::after { display: none; }
}

@media (max-width: 1280px) {
	.vd-shell { grid-template-columns: 240px minmax(0, 1fr); }
	.vd-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
	.vd-rail .vd-panel { margin-bottom: 0; }
}

@media (max-width: 1100px) {
	.vd-hero-inner { grid-template-columns: minmax(0, 1fr) auto; }
	.vd-topnav { grid-column: 1 / -1; justify-content: flex-start; }
	.vd-hero-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 960px) {
	.vd-hero-inner,
	.vd-shell { grid-template-columns: minmax(0, 1fr); }
	.vd-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
	.vd-rail .vd-panel { margin-bottom: 0; }
}

@media (max-width: 800px) {
	.vd-scene {
		background-image:
			linear-gradient(180deg, rgba(7, 5, 4, 0.46) 0%, rgba(7, 5, 4, 0.22) 30%, rgba(7, 5, 4, 0.4) 100%),
			url("art/vanyria-header-dragon-castle.jpg");
		background-size: cover;
		background-position: center center;
	}
	.vd-scene::before,
	.vd-scene::after { display: none; }
	.vd-hero-inner { padding-top: 12px; }
	.vd-shell { margin-top: 6px; }
	.vd-nav-toggle {
		display: block;
		width: var(--vd-frame);
		margin: 8px auto 0;
		background: #1c140f;
		color: var(--vd-gold);
		border: 1px solid var(--vd-gold-deep);
		border-radius: 5px;
		padding: 8px 12px;
		font-weight: 700;
	}
	.vd-sidebar { display: none; }
	.vd-sidebar.is-open { display: block; }
	.vd-group.is-collapsed .vd-group-links { display: none; }
	.vd-hero-actions,
	.vd-rail { grid-template-columns: 1fr; }
	.vd-hero-actions { flex-direction: column; }
	.vd-content { padding: 12px; }
}

@media (min-width: 801px) {
	.vd-group-toggle { cursor: default; }
}

.vd-board {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 16px;
}

.vd-board section {
	min-width: 0;
	padding: 10px 12px 12px;
	border: 1px solid var(--vd-gold-deep);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.28);
}

.vd-board-bosses { border-color: #8a3a2a; }
.vd-board-boost { border-color: #3d6a3a; }

.vd-board header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.vd-board h2 {
	margin: 0;
	font-size: 18px;
}

.vd-board header p,
.vd-board header a {
	margin: 0;
	color: var(--vd-gold);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.vd-board-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.vd-board-cards.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vd-card {
	min-width: 0;
	padding: 8px 6px;
	text-align: center;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(224, 170, 80, 0.28);
	border-radius: 6px;
}

.vd-card > img,
.vd-card .vd-outfit {
	width: 64px;
	height: 64px;
	margin: 0 auto 4px;
}

.vd-card > img {
	display: block;
	object-fit: contain;
	image-rendering: pixelated;
}

.vd-card .vd-outfit {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vd-card .vd-outfit img {
	width: 64px;
	height: 64px;
	max-width: none;
	margin: 0;
	object-fit: contain;
	object-position: center center;
	image-rendering: pixelated;
	background: transparent;
	border: 0;
}

.vd-card strong,
.vd-card .vd-kicker,
.vd-card span {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vd-card .vd-kicker,
.vd-card span { color: var(--vd-muted); font-size: 12px; }
.vd-card strong { white-space: normal; }

.vd-board-ranks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vd-board-ranks li {
	display: grid;
	grid-template-columns: 1.4em 36px minmax(0, 1fr) auto;
	column-gap: 8px;
	align-items: center;
	padding: 4px 0;
}

.vd-board-ranks .vd-rank {
	grid-area: auto;
	color: var(--vd-gold);
	font-weight: 700;
	font-size: 13px;
}
.vd-board-ranks a {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 700;
}
.vd-board-ranks .vd-board-value {
	color: var(--vd-gold);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.vd-board-ranks .vd-outfit {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	width: 36px;
	height: 36px;
	overflow: hidden;
}
.vd-board-ranks .vd-outfit img {
	width: 150%;
	height: 150%;
	max-width: none;
	image-rendering: pixelated;
}

.vd-board-events { grid-column: 1 / -1; }

.vd-event-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.vd-event-day {
	min-width: 0;
	padding: 10px 12px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(224, 170, 80, 0.28);
	border-radius: 6px;
}

.vd-event-day > .vd-kicker {
	display: block;
	color: var(--vd-gold);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vd-event-day > strong {
	display: block;
	margin: 2px 0 8px;
	color: #fff8ee;
}

.vd-event-day > .vd-muted { margin: 0; }

.vd-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.vd-event-list li {
	min-width: 0;
	padding: 2px 0 2px 10px;
	border-left: 3px solid var(--vd-event, var(--vd-gold));
}

.vd-event-list strong,
.vd-event-list span { display: block; min-width: 0; }

.vd-event-list strong { color: #fff8ee; }

.vd-event-list span {
	color: var(--vd-muted);
	font-size: 13px;
	line-height: 1.35;
}

@media (max-width: 800px) {
	.vd-board,
	.vd-board-cards,
	.vd-board-cards.is-pair,
	.vd-event-cols { grid-template-columns: 1fr; }
}
