* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --blood:     #7a1c1c; /* dezenter, dunkler */
  --ember:     #b36b2c;
  --gold:      #d6b35f;
  --gold-pale: #f0d996;
  --ash:       #0b0f14;
  --charcoal:  #05070a;
  --smoke:     #1a1f26;
  --mist:      #2a3038;
  --parchment: #bfae78;
  --bone:      #e3d6a6;
  --dim:       rgba(200,180,140,0.55);
  /* compatibility aliases */
  --ink:       #05070a;
  --void:      #05070a;
  --deep:      #0b0f14;
  --surface:   #1a1f26;
  --raised:    #2a3038;
  --ember2:    #d6b35f;
  --ember3:    #f0d996;
  --rune:      #d6b35f;
  --rune2:     #f0d996;
  --silver:    #e3d6a6;
  --silver2:   #bfae78;
  --silver3:   #7a6a50;
  --border1:   rgba(214,179,95,0.18);
  --border2:   rgba(214,179,95,0.35);
  --glow-r:    rgba(180,90,40,0.4);
  --glow-p:    rgba(214,179,95,0.4);
}

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

html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--gold-pale), var(--gold));
	border-radius: 3px;
	box-shadow: 0 0 6px rgba(214,179,95,0.18);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #fff0b8, var(--gold-pale), var(--gold));
	box-shadow:
		0 0 8px rgba(240,217,150,0.35),
		0 0 14px rgba(214,179,95,0.22);
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-pale); }

#embers {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

@keyframes logoPulse {
    0% { opacity: 0.10; }
    50% { opacity: 0.18; }
    100% { opacity: 0.10; }
}

@keyframes softGoldPulse {
	0% {
		box-shadow: 0 0 10px rgba(214,179,95,0.10);
	}
	50% {
		box-shadow: 0 0 18px rgba(214,179,95,0.50);
	}
	100% {
		box-shadow: 0 0 10px rgba(214,179,95,0.10);
	}
}

.pulse-glow {
	animation: softGoldPulse 3.8s ease-in-out infinite;
	opacity: 0.85;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: url('/images/logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    transform: translate(-50%, -50%) translateY(var(--logo-parallax, 0px));
	transition: transform 0.08s linear;
    pointer-events: none;
    z-index: 0;
	filter: blur(1px) brightness(1.2);
	mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
	animation: logoPulse 5.6s ease-in-out infinite;
}

html,
body {
    min-height: 100vh;
    font-family: 'Cinzel', serif;
    background:
        radial-gradient(circle at top, rgba(212, 177, 106, 0.12), transparent 28%),
        radial-gradient(circle at 20% 15%, rgba(143, 177, 217, 0.08), transparent 22%),
        linear-gradient(180deg, #07090d 0%, #0b0d12 45%, #06070a 100%);
    color: #ebe5d9;
	overflow-x: hidden;
}

body {
	padding-top: 72px;
}

.grid,
.panels,
.features-grid,
.pawn-grid {
    width: 100%;
}

/* ===== Top Navigation Layout ===== */
.topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
	backdrop-filter: none;
	transition: none;
}

.topbar-spacer {
	height: 0px;
}

.topbar-blur {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(6, 8, 12, 0.25);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(214,179,95,0.16);
	box-shadow: 0 8px 24px rgba(0,0,0,0.28);
	pointer-events: none;
	transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.topbar.topbar-scrolled .topbar-blur {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.topbar-inner {
	position: relative;
	z-index: 2;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
}

.topbar-brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.topbar-brand a {
    display: inline-flex;
    align-items: center;
}

.topbar-brand img {
    height: 58px;
    width: auto;
    display: block;
	filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
	margin-right: 40px;
}

.topnav {
	flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
	margin-left: auto;
}

.topnav a {
    display: inline-block;
    padding: 10px 16px;
    color: #cdbb88;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.6px;
    border: 1px solid transparent;
    transition: all 0.22s ease;
}

.topnav a:hover {
    color: #fff4d3;
    background: rgba(255, 200, 100, 0.07);
    border-color: rgba(225,184,95,0.18);
    box-shadow: 0 0 10px rgba(225,184,95,0.06);
}

.topnav a.active {
    color: #fff;
    background: linear-gradient(180deg, rgba(225,184,95,0.16), rgba(159,124,52,0.10));
    border-color: rgba(225,184,95,0.34);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
}

.wrapper {
    display: block;
    min-height: calc(100vh - 95px);
}

.sidebar {
    display: none;
}

.content-main {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 30px 34px 80px;
    position: relative;
}

.content-main .title,
.content-main .subtitle,
.content-main .eyebrow,
.content-main .divider {
    max-width: 100%;
}

.content-main .divider {
    margin-left: 0;
    margin-right: 0;
}

.classes-main {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 50px 34px 80px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.page-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 10px;
	opacity: 0;
}

.page-header.fade-in-up {
	opacity: 1;
	transition: opacity 0.5s ease;
	filter: blur(0px);
}

.page-header.visible-fade-in-up {
	opacity: 1;
	transition: opacity 0.5s ease;
	filter: blur(0px);
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
}

.page-header .title {
	opacity: 0;
	transform: translateY(6px);
}

.page-header.visible-fade-in-up .title {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.5s cubic-bezier(.22,1,.36,1);
}

.page-header .subtitle {
	opacity: 0;
	transform: translateY(10px);
}

.page-header.visible-fade-in-up .subtitle {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.6s cubic-bezier(.22,1,.36,1);
	transition-delay: 0.08s;
}

.page-header .divider {
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 1100px) {
	.topbar-inner {
		height: 72px;
		padding: 0 18px;
	}

	.mobile-nav-toggle {
		display: inline-flex;
		margin-left: auto;
		padding: 10px 14px;
		background: rgba(214,179,95,0.10);
		border: 1px solid rgba(214,179,95,0.32);
		color: #f0d996;
		cursor: pointer;
		transition: all 0.2s ease;
	}

	.topnav {
		opacity: 0;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 18px 18px;
		background: rgba(10,13,19,0.88);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-bottom: 1px solid rgba(214,179,95,0.18);
		transform: translateY(-10px);
		transition: all 0.25s ease;
	}
	
	.topbar.mobile-open .mobile-nav-toggle {
		background: rgba(214,179,95,0.22);
		border-color: rgba(214,179,95,0.6);
		box-shadow: 0 0 10px rgba(214,179,95,0.2);
	}

	.topbar.mobile-open .topnav {
		display: flex;
		opacity: 1;
		transform: translateY(0);
	}

	.topnav a,
	.nav-drop-trigger {
		display: block;
		padding: 13px 14px;
	}

	.nav-dropdown {
		display: block;
	}

	.nav-drop-menu-left,
	.nav-drop-menu-right {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 8px 14px;
		padding: 6px;
		transform: none;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
	}

	.nav-dropdown.open .nav-drop-menu-left,
	.nav-dropdown.open .nav-drop-menu-right {
		display: block;
	}
}

/* ===== Layout ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== Side Menu ===== */
/*
.sidebar {
    width: 290px;
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.97), rgba(7, 9, 13, 0.98));
    border-right: 1px solid rgba(212, 177, 106, 0.18);
    padding: 34px 24px;
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.02);
}

.logo {
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 34px;
    color: #f0d49a;
    text-shadow: 0 0 12px rgba(212, 177, 106, 0.18);
    text-align: center;
}

.logo img {
    width: 100%;
    height: auto;
    padding: 6px;
    display: block;
}

.nav {
    margin-top: 10px;
}

.nav a {
    display: block;
    padding: 14px 14px;
    margin-bottom: 10px;
    color: #bdb5a5;
    text-decoration: none;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.25s ease;
}

.nav a:hover {
    background: rgba(212, 177, 106, 0.08);
    border-color: rgba(212, 177, 106, 0.14);
    border-left: 3px solid #d4b16a;
    color: #fff6df;
}

.nav a.active {
    background: linear-gradient(90deg, rgba(212, 177, 106, 0.14), rgba(212, 177, 106, 0.04));
    border-color: rgba(212, 177, 106, 0.18);
    border-left: 3px solid #f0d49a;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
*/

/* ===== Main Content ===== */
/*.content-main {
    flex: 1;
    padding: 72px 78px;
    position: relative;
}

.classes-main {
    flex: 1;
    padding: 56px 64px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    align-items: start;
}
*/

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.title {
    font-size: 54px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: #f0d49a;
    text-shadow:
        0 0 14px rgba(212, 177, 106, 0.16),
        0 0 34px rgba(0, 0, 0, 0.45);
}

.subtitle {
    font-size: 18px;
    color: #b8b1a2;
    margin-bottom: 30px;
    max-width: 100%;
    line-height: 1.7;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 177, 106, 0.6),
        transparent
    );
    margin: 34px 0;
}

/* ===== Shared Surface Style ===== */
.panel,
.class-list,
.details,
.featured,
.news-card,
.card,
.account-grid .card,
.leaderboard {
    background: linear-gradient(180deg, rgba(16, 20, 27, 0.50), rgba(10, 13, 19, 0.96));
    border: 1px solid rgba(212, 177, 106, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 12px 30px rgba(0, 0, 0, 0.34);
}

/* ===== Info Panels ===== */
.panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.panel {
    padding: 26px 28px;
    border-radius: 18px;
}

.panel h3 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #f0d49a;
}

.panel p {
    font-size: 15px;
    line-height: 1.7;
    color: #cfc7b8;
}

/* ===== Class List ===== */
.class-list {
    padding: 28px;
    border-radius: 18px;
}

.class-list h2 {
    margin-bottom: 20px;
    font-size: 22px;
    letter-spacing: 1px;
    color: #f0d49a;
}

.class-item {
    padding: 11px 14px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #bdb5a5;
    background: rgba(255,255,255,0.01);
}

.class-item:hover,
.class-item.active {
    background: rgba(212, 177, 106, 0.08);
    border-color: rgba(212, 177, 106, 0.15);
    border-left: 3px solid #f0d49a;
    color: #fff;
}

/* ===== Details Panel ===== */
.details {
    padding: 34px;
    border-radius: 18px;
}

.details h1 {
    font-size: 34px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #f0d49a;
}

.details .tagline {
    color: #b8b1a2;
    margin-bottom: 22px;
    font-size: 15px;
}

.details p {
    font-size: 15px;
    line-height: 1.75;
    color: #cfc7b8;
    margin-bottom: 24px;
}

/* ===== Stats ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.stat {
    font-size: 14px;
    color: #bdb5a5;
    padding: 10px 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(212, 177, 106, 0.08);
}

.stat span {
    float: right;
    color: #f0d49a;
}

/* ===== Featured News ===== */
.featured {
    padding: 34px;
    border-radius: 20px;
    margin-bottom: 26px;
}

.featured h2 {
    font-size: 28px;
    color: #f0d49a;
    margin-bottom: 10px;
}

.featured .type {
    border-radius: 4px;
    font-size: 10px;
    padding: 3px 6px;
    display: inline-block;
}

.information {
    background-color: #247CAA;
    color: #ffffff;
    font-weight: bold;
}

.maintenance {
    background-color: #845E14;
    color: #ffffff;
    font-weight: bold;
}

.update {
    background-color: #615D9F;
    color: #ffffff;
    font-weight: bold;
}

.event {
    background-color: #348B3A;
    color: #ffffff;
    font-weight: bold;
}

.featured .date {
    font-size: 13px;
    color: #b8b1a2;
    margin-bottom: 18px;
}

.featured p {
    font-size: 16px;
    line-height: 1.7;
    color: #cfc7b8;
}

.news-excerpt {
	margin-top: 12px;
	margin-bottom: 18px;
	line-height: 1.65;
	color: #d8cfb4;
}

/* ===== Admin News ===== */
.admin-news-list {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.admin-news-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(200,170,100,0.12);
}

.admin-news-title {
	color: #f0d996;
	font-size: 15px;
	margin-bottom: 4px;
}

.admin-news-meta {
	color: var(--dim);
	font-size: 12px;
	letter-spacing: 0.6px;
}

.admin-news-status {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 7px;
	font-size: 10px;
	letter-spacing: 1px;
	border: 1px solid rgba(214,179,95,0.25);
}

.admin-news-status.published {
	color: #8fe0a2;
	background: rgba(80,150,95,0.10);
	border-color: rgba(90,190,115,0.35);
}

.admin-news-status.hidden {
	color: #e89a82;
	background: rgba(150,70,55,0.10);
	border-color: rgba(210,95,75,0.35);
}

.admin-news-status.draft {
	background: rgba(120,120,120,0.18);
	color: #bbb;
	border: 1px solid rgba(180,180,180,0.25);
}

.admin-news-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.admin-news-actions form {
	display: inline-flex;
	margin: 0;
}

.admin-edit-btn {
	display: inline-flex;
	padding: 12px 18px;
	background: rgba(214,179,95,0.10);
	border: 1px solid rgba(214,179,95,0.32);
	color: #f0d996;
	text-decoration: none;
	letter-spacing: 1px;
	font-size: 12px;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.admin-cancel-btn {
	display: inline-flex;
	padding: 12px 18px;
    background: rgba(80, 150, 95, 0.10);
    border-color: rgba(90, 190, 115, 0.32);
	color: #8fe0a2;
	text-decoration: none;
	letter-spacing: 1px;
	font-size: 12px;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.admin-edit-btn:hover {
	background: rgba(214,179,95,0.18);
	border-color: rgba(214,179,95,0.48);
	transform: translateY(-2px);
}

.admin-cancel-btn:hover {
    background: rgba(80, 150, 95, 0.18);
    border-color: rgba(90, 190, 115, 0.48);
	transform: translateY(-2px);
}

.danger-btn {
	display: inline-flex;
	padding: 12px 18px;
    background: rgba(140,45,35,0.18);
    border: 1px solid rgba(190,90,70,0.35);
	color: #e89a82;
	text-decoration: none;
	letter-spacing: 1px;
	font-size: 12px;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.danger-btn:hover {
	background: rgba(160,55,45,0.28);
	border-color: rgba(220,110,90,0.55);
	box-shadow: 0 0 12px rgba(190,90,70,0.16);
}

.admin-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(214,179,95,0.18);
	padding-bottom: 12px;
}

.admin-tab {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid rgba(214,179,95,0.24);
	background: rgba(214,179,95,0.06);
	color: #cdbb88;
	text-decoration: none;
	letter-spacing: 1px;
	font-size: 13px;
}

.admin-tab:hover,
.admin-tab.active {
	color: #f0d996;
	background: rgba(214,179,95,0.14);
	border-color: rgba(214,179,95,0.42);
	box-shadow: 0 0 12px rgba(214,179,95,0.10);
}

.image-preview-wrap {
	display: none;
	margin: 10px 0 20px;
	padding: 10px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(255,255,255,0.018);
}

.image-preview-wrap img {
	display: block;
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
	margin: 0 auto;
	filter: drop-shadow(0 12px 18px rgba(0,0,0,0.35));
}

.admin-editor-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 40%;
	gap: 24px;
	align-items: start;
}

.admin-editor-side {
	display: flex;
	flex-direction: column;
}

.markdown-help-box {
	padding: 18px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(255,255,255,0.018);
}

.markdown-help-box h3 {
	margin-bottom: 10px;
}

.markdown-help-box p,
.markdown-help-note {
	color: var(--dim);
	font-size: 13px;
	line-height: 1.5;
}

.markdown-help-row {
	margin-top: 14px;
	display: grid;
	gap: 6px;
}

.markdown-help-row code {
	display: block;
	padding: 8px 10px;
	background: rgba(0,0,0,0.28);
	border: 1px solid rgba(214,179,95,0.18);
	color: #f0d996;
	font-size: 12px;
	white-space: normal;
	word-break: break-word;
}

.markdown-help-row span {
	font-size: 13px;
	color: #d8cfb4;
}

@media (max-width: 1100px) {
	.admin-editor-layout {
		grid-template-columns: 1fr;
	}
}

.markdown-preview-box {
	margin-top: 20px;
	padding: 18px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(255,255,255,0.018);
}

.markdown-preview-box h3 {
	margin-bottom: 8px;
}

.preview-hint {
	color: var(--dim);
	font-size: 13px;
	margin-bottom: 14px;
}

.markdown-preview-content {
	padding: 14px;
	border: 1px solid rgba(214,179,95,0.12);
	background: rgba(0,0,0,0.16);
	min-height: 140px;
	overflow: hidden;
}

.markdown-preview-content .news-embed-image,
.news-body .news-embed-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 16px auto;
	border: 1px solid rgba(214,179,95,0.18);
}

.video-embed {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	margin: 18px 0;
	overflow: hidden;
	border: 1px solid rgba(214,179,95,0.18);
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.admin-version-box {
	margin-top: 20px;
	padding: 18px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(255,255,255,0.02);
}

.version-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}

.version-list li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid rgba(214,179,95,0.12);
	background: rgba(0,0,0,0.16);
}

.version-list strong {
	color: #f0d996;
	font-size: 13px;
}

.version-list .version-title {
	color: #d8cfb4;
	margin-top: 4px;
}

.version-actions {
	margin-bottom: 12px;
}

.version-actions-inline {
	display: flex;
	gap: 8px;
	align-items: center;
}

.version-actions-inline form {
	margin: 0;
}

.admin-version-box summary {
	cursor: pointer;
	font-size: 22px;
	color: #f0d996;
	letter-spacing: 1px;
	margin-bottom: 14px;
}

.admin-version-box summary::marker {
	color: #d6b35f;
}

/* ===== News Cards ===== */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    padding: 24px;
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
	position: relative;
	overflow: hidden;
	user-select: text;
}

.news-card::before {
	pointer-events: none;
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top, rgba(214,179,95,0.08), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.news-card:hover::before {
	opacity: 1;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 177, 106, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 16px 34px rgba(0, 0, 0, 0.38);
}

.news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.news-card h3 {
    color: #f0d49a;
    margin-bottom: 10px;
    font-size: 19px;
}

.news-card .date {
    font-size: 12px;
    color: #b8b1a2;
    margin-bottom: 12px;
}

.news-card * {
	user-select: text;
}

.news-card p {
    font-size: 14px;
    color: #cfc7b8;
    line-height: 1.6;
}

.news-image {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border: 1px solid rgba(214,179,95,0.22);
	margin-bottom: 18px;
	box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.news-view-image {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border: 1px solid rgba(214,179,95,0.22);
	margin-bottom: 18px;
	box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.message-box {
	margin: 14px 0 22px;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(214,179,95,0.08);
	border: 1px solid rgba(214,179,95,0.28);
	box-shadow: 0 0 14px rgba(0,0,0,0.25);
}

.message-title {
	font-size: 14px;
	letter-spacing: 1px;
	color: #f0d996;
	margin-bottom: 5px;
}

.message-text {
	font-size: 13px;
	line-height: 1.5;
	color: #d8cfb4;
}

.success-box {
	background: rgba(80,150,95,0.10);
	border-color: rgba(90,190,115,0.35);
}

.success-box .message-title {
	color: #8fe0a2;
}

.error-box {
	background: rgba(150,70,55,0.10);
	border-color: rgba(210,95,75,0.35);
}

.error-box .message-title {
	color: #e89a82;
}

.news-link {
	text-decoration: none;
	display: block;
}

.news-link .news-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-link:hover .news-card {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.read-more {
	display: inline-block;
	margin-top: 12px;
	color: var(--gold);
	font-size: 0.9rem;
}

/* ===== News Grid ===== */

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(420px, 560px));
	gap: 24px;
	justify-content: start;
}

.news-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.news-link .news-card {
	height: 100%;
}

.read-more {
	display: inline-block;
	margin-top: 18px;
	color: var(--gold);
	letter-spacing: 1px;
	font-size: 13px;
}

.news-link:hover .read-more {
	color: var(--gold-pale);
}

@media (max-width: 1100px) {
	.news-grid {
		/* grid-template-columns: 1fr; */
		gap: 18px;
	}

	.news-link,
	.news-card {
		width: 100%;
		max-width: 100%;
	}

	.news-card {
		padding: 18px;
	}

	.news-image {
		max-height: 220px;
		object-fit: contain;
	}
}

/* ===== Home News ===== */

.home-news-panel {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 100%;
}

.home-news-panel h3 {
	margin: 0;
	color: #f0d996;
}

.home-news-list {
	display: grid;
	gap: 14px;
}

.home-news-item {
	display: block;
	padding: 14px 16px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(255,255,255,0.018);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-news-item:hover {
	transform: translateY(-2px);
	border-color: rgba(214,179,95,0.42);
	background: rgba(214,179,95,0.055);
	box-shadow: 0 8px 20px rgba(0,0,0,0.28);
	color: var(--gold-pale);
}

.home-news-item-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.home-news-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	font-size: 11px;
	letter-spacing: 1px;
	color: #f0d996;
	background: rgba(214,179,95,0.10);
	border: 1px solid rgba(214,179,95,0.28);
}

.home-news-badge.information {
	color: #9fc5ff;
	background: rgba(120,160,210,0.12);
	border-color: rgba(120,160,210,0.30);
}

.home-news-badge.update {
	color: #f0d996;
	background: rgba(214,179,95,0.12);
	border-color: rgba(214,179,95,0.35);
}

.home-news-badge.event {
	color: #88e0ad;
	background: rgba(95,190,140,0.12);
	border-color: rgba(95,190,140,0.30);
}

.home-news-badge.maintenance {
	color: #e89a82;
	background: rgba(190,90,70,0.12);
	border-color: rgba(190,90,70,0.32);
}

.home-news-date {
	font-size: 12px;
	color: var(--dim);
	white-space: nowrap;
}

.home-news-title {
	color: #f0d996;
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: 0.4px;
	margin-bottom: 8px;
}

.home-news-hint {
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--gold);
	opacity: 0.9;
}

.home-news-more {
	display: inline-block;
	margin-top: auto;
	color: var(--gold);
	text-decoration: none;
	letter-spacing: 1px;
	font-size: 13px;
}

.home-news-more:hover {
	color: var(--gold-pale);
}

.home-news-item + .home-news-item {
	border-top: 1px solid rgba(214,179,95,0.08);
}

.home-news-new {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	font-size: 10px;
	letter-spacing: 1px;
	color: #05070a;
	background: linear-gradient(180deg, var(--gold-pale), var(--gold));
	box-shadow: 0 0 10px rgba(214,179,95,0.24);
}

.home-news-right {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* ===== General Grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    padding: 26px;
    border-radius: 18px;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card h3 {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: #f0d49a;
}

.card p {
    font-size: 14px;
    line-height: 1.7;
    color: #cfc7b8;
}

.section-title {
    font-size: 28px;
    letter-spacing: 2px;
    margin: 46px 0 22px;
    color: #f0d49a;
	text-align: center;
}

.badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 1px;
    background: rgba(212, 177, 106, 0.10);
    border: 1px solid rgba(212, 177, 106, 0.22);
    color: #f0d49a;
}

/* ===== Account Sections ===== */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.account-grid .card {
    padding: 30px;
    border-radius: 18px;
}

.account-grid .card h3 {
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: #f0d49a;
}

.account-grid .info {
    font-size: 15px;
    line-height: 1.75;
    color: #cfc7b8;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #b8b1a2;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 13px;
    margin-bottom: 6px;
    background: rgba(8, 10, 14, 0.95);
    border: 1px solid rgba(212, 177, 106, 0.22);
    color: #ebe5d9;
    font-family: 'Cinzel', serif;
}

input:focus {
    outline: none;
    border-color: #f0d49a;
    box-shadow: 0 0 0 3px rgba(212, 177, 106, 0.08);
}

button {
    padding: 12px 22px;
    background: linear-gradient(180deg, #dcb66f, #9c7630);
    border: 1px solid rgba(255,255,255,0.06);
    color: #0a0b0e;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    filter: brightness(1.05);
}

.download-btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(180deg, #dcb66f, #9c7630);
    border: 1px solid rgba(255,255,255,0.06);
    color: #0a0b0e;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    filter: brightness(1.05);
}

/* ===== Leaderboard ===== */
.leaderboard {
    padding: 28px;
    border-radius: 18px;
}

.leaderboard-title {
    text-align: center;
    font-size: 2rem;
    color: #f0d49a;
    margin-bottom: 6px;
}

.leaderboard-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #b8b1a2;
    margin-bottom: 20px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.leaderboard-table th {
    background: rgba(212, 177, 106, 0.10);
    color: #f0d49a;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 177, 106, 0.20);
}

.leaderboard-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #d8d1c2;
}

.leaderboard-table tr:hover {
    background: rgba(255,255,255,0.03);
}

/* Top 3 Highlights */
.rank-1 { background: rgba(224,181,57,0.10); }
.rank-2 { background: rgba(192,192,192,0.07); }
.rank-3 { background: rgba(176,141,87,0.08); }

.rank-1 td:first-child,
.rank-2 td:first-child,
.rank-3 td:first-child {
    font-weight: bold;
    color: #fff4d2;
}

/* ===== Footer ===== */
.footer {
    width: 100%;
    text-align: right;
    font-size: 13px;
    color: #8f8675;
    padding-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .content-main {
        padding: 42px 22px 64px;
    }

    .classes-main {
        padding: 42px 22px 64px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .topnav a {
        padding: 9px 12px;
        font-size: 14px;
    }

    .content-main .title {
        font-size: 42px;
        line-height: 1.15;
    }

    .content-main .subtitle {
        font-size: 17px;
    }
}

@media (max-width: 1100px) {
    .wrapper {
        flex-direction: column;
    }

	/*
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(212, 177, 106, 0.18);
        padding: 24px 20px;
    }
	*/

    .content-main {
        padding: 42px 24px;
    }

    .panels {
        grid-template-columns: 1fr;
    }

    .news-list,
    .grid,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 40px;
    }
}

.nav-section {
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 177, 106, 0.08);
}

.nav-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: #f0d49a;
    margin-bottom: 10px;
    text-transform: uppercase;
    opacity: 0.85;
    padding-left: 2px;
}

.home-page-header {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-block {
    margin-bottom: 10px;
}

.home-page-header .title {
    margin-bottom: 20px;
}

.home-page-header .subtitle {
    max-width: 1080px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #b8b1a2;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 22px;
}

.secondary-btn {
    background: rgba(255, 200, 100, 0.08);
    border: 1px solid rgba(225,184,95,0.28);
    color: #e3d6a6;
}

.secondary-btn:hover {
    border-color: rgba(225,184,95,0.42);
    box-shadow: 0 0 12px rgba(225,184,95,0.10);
}

.page-focus {
    text-align: center;
    font-size: 14px;
    color: #cfa75a;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.92;
    text-shadow: 0 0 8px rgba(207, 167, 90, 0.25);
}

.home-section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 22px;
}

.home-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 177, 106, 0.10), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.home-feature-card:hover::before {
    opacity: 1;
}

.home-feature-card {
    display: block;
    position: relative;
    padding: 24px 24px 20px;
    text-decoration: none;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 20, 27, 0.50), rgba(10, 13, 19, 0.96));
    border: 1px solid rgba(212, 177, 106, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 10px 26px rgba(0, 0, 0, 0.30);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
    overflow: hidden;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 177, 106, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 16px 34px rgba(0, 0, 0, 0.40),
        0 0 18px rgba(212, 177, 106, 0.10);
}

.home-feature-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.2;
    color: #f0d49a;
    letter-spacing: 1px;
}

.home-feature-card p {
    margin-bottom: 18px;
    color: #cfc7b8;
    line-height: 1.7;
    font-size: 15px;
}

.home-feature-card:hover h3 {
    transform: translateY(-2px);
    color: #f0d48a;
}

.home-welcome-card {
    max-width: 1200px;
    margin: 0 auto;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-welcome-card p {
    max-width: 1000px;
}

@media (max-width: 1100px) {
    .home-page-header .title {
        font-size: 46px;
        line-height: 1.1;
    }

    .home-page-header .subtitle {
        font-size: 17px;
    }

    .hero-actions {
        gap: 12px;
    }
}

.card-wide {
    grid-column: 1 / -1;
}

.feature-list {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-item {
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212, 177, 106, 0.10);
}

.feature-label {
    display: block;
    margin-bottom: 6px;
    color: #f0d49a;
    font-size: 14px;
    letter-spacing: 1px;
}

.feature-text {
    display: block;
    color: #cfc7b8;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.logo {
    margin-bottom: 34px;
    text-align: center;
    position: relative;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* Soft glow background behind logo */
.logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(212, 177, 106, 0.18) 0%,
        rgba(212, 177, 106, 0.08) 35%,
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
}

.nav a {
    display: block;
    padding: 14px 14px;
    margin-bottom: 10px;
    color: #bdb5a5;
    text-decoration: none;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Soft inner glow */
.nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at left,
        rgba(212, 177, 106, 0.12),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav a:hover::before {
    opacity: 1;
}

.nav a.active {
    background: linear-gradient(
        90deg,
        rgba(212, 177, 106, 0.18),
        rgba(212, 177, 106, 0.05)
    );
    border-color: rgba(212, 177, 106, 0.25);
    border-left: 3px solid #f0d49a;
    color: #fff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 12px rgba(212, 177, 106, 0.12);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 34px 0 10px;
}

.home-feature-link {
    display: inline-block;
    color: #8fb1d9;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.home-feature-card:hover .home-feature-link {
    color: #c7dcf5;
}

@media (max-width: 1100px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

.card-icon {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 18px;
    color: rgba(212, 177, 106, 0.6);
    text-shadow: 0 0 8px rgba(212, 177, 106, 0.25);
    transition: all 0.25s ease;
    pointer-events: none;
}

.home-feature-card:hover .card-icon {
    color: rgba(240, 212, 154, 0.95);
    text-shadow: 0 0 14px rgba(212, 177, 106, 0.45);
}

.panel-download {
    position: relative;
    overflow: hidden;
}

.panel-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #f0d49a;
    background: rgba(212, 177, 106, 0.10);
    border: 1px solid rgba(212, 177, 106, 0.22);
}

.download-actions {
    margin: 24px 0 20px;
}

.download-note {
    margin-top: 18px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212, 177, 106, 0.10);
}

.download-note p {
    margin-bottom: 10px;
}

.download-note p:last-child {
    margin-bottom: 0;
}

.download-note a {
    color: #8fb1d9;
    text-decoration: none;
}

.download-note a:hover {
    color: #c7dcf5;
    text-decoration: underline;
}

.requirements-table {
    margin-top: 10px;
    border: 1px solid rgba(212, 177, 106, 0.12);
    background: rgba(255,255,255,0.015);
}

.requirements-header,
.requirements-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
}

.requirements-header {
    background: rgba(212, 177, 106, 0.10);
    color: #f0d49a;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.requirements-header div,
.requirements-row div {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.requirements-row div {
    color: #cfc7b8;
    font-size: 14px;
    line-height: 1.6;
}

.requirements-row:last-child div {
    border-bottom: none;
}

.req-label {
    color: #f0d49a;
    background: rgba(255,255,255,0.015);
}

@media (max-width: 1100px) {
    .requirements-header,
    .requirements-row {
        grid-template-columns: 1fr;
    }

    .requirements-header div:first-child {
        display: none;
    }

    .req-label {
        border-top: 1px solid rgba(212, 177, 106, 0.08);
    }
}

.status-card {
    border: 1px solid rgba(212, 177, 106, 0.18);
    background: linear-gradient(180deg, rgba(16,20,27,0.50), rgba(10,13,19,0.96));
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212, 177, 106, 0.10);
}

.status-label {
    color: #b8b1a2;
    font-size: 13px;
}

.status-value {
    color: #f0d49a;
    font-size: 13px;
}

.status-ok {
    color: #7fdc9a;
}

.status-note {
    margin-top: 12px;
    font-size: 13px;
    color: #cfc7b8;
    line-height: 1.6;
}

.rank-1 {
    background: linear-gradient(
        90deg,
        rgba(212, 177, 106, 0.18),
        rgba(212, 177, 106, 0.05)
    );
    box-shadow:
		inset 0 0 12px rgba(212, 177, 106, 0.2),
		0 0 18px rgba(212, 177, 106, 0.12);
}

.rank-2 {
    background: linear-gradient(
        90deg,
        rgba(180, 180, 180, 0.12),
        rgba(180, 180, 180, 0.04)
    );
}

.rank-3 {
    background: linear-gradient(
        90deg,
        rgba(160, 120, 80, 0.12),
        rgba(160, 120, 80, 0.04)
    );
}

.rank-1:hover {
    box-shadow: inset 0 0 12px rgba(255, 215, 120, 0.15);
}

.rank-2:hover {
    box-shadow: inset 0 0 12px rgba(180, 200, 255, 0.12);
}

.rank-3:hover {
    box-shadow: inset 0 0 12px rgba(200, 160, 120, 0.12);
}

.rank-cell {
    font-weight: bold;
    color: #f0d49a;
}

.leaderboard-table tr {
    transition: background 0.2s ease;
}

.leaderboard-table tr:hover {
    background: rgba(255,255,255,0.04);
}

.leaderboard-table td:nth-child(4) {
    color: #8fb1d9;
    font-weight: 500;
}

.leaderboard-table td:last-child {
    color: #cdbb88;
    font-style: italic;
}

.character-link {
    color: #ebe5d9;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.character-link:hover {
    color: #f0d49a;
    text-shadow: 0 0 8px rgba(212, 177, 106, 0.18);
}

.pawn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.pawn-card {
    background: linear-gradient(180deg, rgba(16, 20, 27, 0.50), rgba(10, 13, 19, 0.96));
    border: 1px solid rgba(212, 177, 106, 0.18);
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 12px 30px rgba(0, 0, 0, 0.34);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.pawn-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 177, 106, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 16px 34px rgba(0, 0, 0, 0.40),
        0 0 18px rgba(212, 177, 106, 0.10);
}

.pawn-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.pawn-name {
    font-size: 28px;
    color: #f0d49a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.pawn-vocation {
    color: #b8b1a2;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.pawn-level {
    color: #8fb1d9;
    font-size: 18px;
    white-space: nowrap;
}

.pawn-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pawn-stat {
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212, 177, 106, 0.10);
}

.pawn-stat-label {
    display: block;
    color: #b8b1a2;
    font-size: 12px;
    margin-bottom: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pawn-stat-value {
    display: block;
    color: #f0d49a;
    font-size: 16px;
}

@media (max-width: 1100px) {
    .pawn-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .pawn-stats-grid {
        grid-template-columns: 1fr;
    }

    .pawn-name {
        font-size: 24px;
    }
}

.job-badge {
    display: inline-block;
	align-items: center;
	gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #ebe5d9;
    line-height: 1;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        background 0.22s ease;
    gap: 6px;
}

.job-badge.fighter {
    background: rgba(184, 78, 72, 0.14);
    border-color: rgba(184, 78, 72, 0.30);
    color: #ffb3ab;
}

.job-badge.seeker {
    background: rgba(122, 194, 120, 0.14);
    border-color: rgba(122, 194, 120, 0.30);
    color: #baf0b8;
}

.job-badge.hunter {
    background: rgba(198, 154, 74, 0.14);
    border-color: rgba(198, 154, 74, 0.30);
    color: #f3d08a;
}

.job-badge.priest {
    background: rgba(186, 162, 224, 0.14);
    border-color: rgba(186, 162, 224, 0.30);
    color: #ddd0ff;
}

.job-badge.shield-sage {
    background: rgba(90, 150, 210, 0.14);
    border-color: rgba(90, 150, 210, 0.30);
    color: #b9daff;
}

.job-badge.sorcerer {
    background: rgba(145, 108, 214, 0.14);
    border-color: rgba(145, 108, 214, 0.30);
    color: #d4c0ff;
}

.job-badge.warrior {
    background: rgba(201, 96, 55, 0.14);
    border-color: rgba(201, 96, 55, 0.30);
    color: #ffc2a7;
}

.job-badge.element-archer {
    background: rgba(79, 183, 183, 0.14);
    border-color: rgba(79, 183, 183, 0.30);
    color: #bdf3f3;
}

.job-badge.alchemist {
    background: rgba(220, 188, 92, 0.14);
    border-color: rgba(220, 188, 92, 0.30);
    color: #ffe7a7;
}

.job-badge.spirit-lancer {
    background: rgba(106, 205, 167, 0.14);
    border-color: rgba(106, 205, 167, 0.30);
    color: #c2ffe8;
}

.job-badge.high-scepter {
    background: rgba(94, 126, 224, 0.14);
    border-color: rgba(94, 126, 224, 0.30);
    color: #c9d5ff;
}

.job-badge.none,
.job-badge.unknown {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
    color: #cfc7b8;
}

.job-badge::before {
    content: none;
}

.job-badge img {
    width: 16px;
    height: 16px;
	object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
	opacity: 0.95;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.6));
	filter: brightness(1.05) drop-shadow(0 0 3px rgba(0,0,0,0.55));
}

/* Soft hover polish */
.job-badge:hover {
    transform: translateY(-1px);
}

/* Vocation-specific glow on hover */
.job-badge.fighter:hover {
    box-shadow: 0 0 10px rgba(184, 78, 72, 0.22);
    border-color: rgba(184, 78, 72, 0.38);
}

.job-badge.seeker:hover {
    box-shadow: 0 0 10px rgba(122, 194, 120, 0.22);
    border-color: rgba(122, 194, 120, 0.38);
}

.job-badge.hunter:hover {
    box-shadow: 0 0 10px rgba(198, 154, 74, 0.22);
    border-color: rgba(198, 154, 74, 0.38);
}

.job-badge.priest:hover {
    box-shadow: 0 0 10px rgba(186, 162, 224, 0.22);
    border-color: rgba(186, 162, 224, 0.38);
}

.job-badge.shield-sage:hover {
    box-shadow: 0 0 10px rgba(90, 150, 210, 0.22);
    border-color: rgba(90, 150, 210, 0.38);
}

.job-badge.sorcerer:hover {
    box-shadow: 0 0 10px rgba(145, 108, 214, 0.22);
    border-color: rgba(145, 108, 214, 0.38);
}

.job-badge.warrior:hover {
    box-shadow: 0 0 10px rgba(201, 96, 55, 0.22);
    border-color: rgba(201, 96, 55, 0.38);
}

.job-badge.element-archer:hover {
    box-shadow: 0 0 10px rgba(79, 183, 183, 0.22);
    border-color: rgba(79, 183, 183, 0.38);
}

.job-badge.alchemist:hover {
    box-shadow: 0 0 10px rgba(220, 188, 92, 0.22);
    border-color: rgba(220, 188, 92, 0.38);
}

.job-badge.spirit-lancer:hover {
    box-shadow: 0 0 10px rgba(106, 205, 167, 0.22);
    border-color: rgba(106, 205, 167, 0.38);
}

.job-badge.high-scepter:hover {
    box-shadow: 0 0 10px rgba(94, 126, 224, 0.22);
    border-color: rgba(94, 126, 224, 0.38);
}

@media (max-width: 1100px) {
	.character-hero {
		flex-direction: column;
		align-items: flex-start;
		display: grid;
		grid-template-columns: 1fr;
		gap: 24px;
		overflow: hidden;
	}

	.character-hero-left,
	.character-hero-right {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.character-hero-right {
		display: grid;
		grid-template-columns: 1fr;
		gap: 24px;
        flex-wrap: wrap;
		word-break: normal;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 1100px) {
	.vocation-badge,
	.job-badge,
	.class-badge {
		min-width: 118px;
		max-width: 150px;
		text-align: center;
		font-size: xx-small;
	}

	.vocation-badge img,
	.job-badge img,
	.class-badge img {
		flex: 0 0 auto;
	}

	.vocation-badge .badge-text,
	.job-badge .badge-text,
	.class-badge .badge-text {
		overflow-wrap: anywhere;
	}
}

@media (max-width: 1100px) {
	.leaderboard {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.leaderboard-table {
		width: 100%;
		min-width: 0;
		/* table-layout: fixed; */
	}

	.leaderboard-table th,
	.leaderboard-table td {
		padding: 10px 8px;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.leaderboard-table th:nth-child(1),
	.leaderboard-table td:nth-child(1) {
		width: 42%;
	}

	.leaderboard-table th:nth-child(2),
	.leaderboard-table td:nth-child(2) {
		width: 15%;
	}

	.leaderboard-table th:nth-child(3),
	.leaderboard-table td:nth-child(3) {
		width: 25%;
	}

	.leaderboard-table th:nth-child(4),
	.leaderboard-table td:nth-child(4) {
		width: 18%;
	}
}

.character-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20,20,30,0.25), rgba(10,10,15,0.75));
    border: 1px solid rgba(200,170,100,0.2);
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.6),
        0 0 25px rgba(0,0,0,0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.character-name {
    font-size: 34px;
    letter-spacing: 2px;
    color: #e6c97a;
    margin-bottom: 10px;
}

.character-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.character-level {
    font-size: 16px;
    color: #bfae78;
}

.character-hero-right {
    display: flex;
    gap: 40px;
}

.character-stat span {
    display: block;
    font-size: 12px;
    color: #8f835c;
    margin-bottom: 4px;
}

.character-stat strong {
    font-size: 16px;
    color: #e6c97a;
}

.character-stat strong {
    font-size: 16px;
    color: #e6c97a;
    line-height: 1.4;
}

.character-subtitle {
    font-size: 13px;
    color: #8f835c;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.character-main-label {
    font-size: 11px;
    color: #6f664d;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 6px;
}

.character-hero:hover {
    border-color: rgba(230, 201, 122, 0.35);
    box-shadow:
        inset 0 0 25px rgba(0,0,0,0.7),
        0 0 30px rgba(230, 201, 122, 0.08);
}

.job-badge.active {
    border-color: rgba(230, 201, 122, 0.7);
    box-shadow: 0 0 14px rgba(230, 201, 122, 0.35);
    background: linear-gradient(
        90deg,
        rgba(230, 201, 122, 0.08),
        rgba(230, 201, 122, 0.02)
    );
}

.job-main-label {
    margin-left: 8px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #e6c97a;
    opacity: 0.7;
}

.exp-bar {
    margin-top: 12px;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #e6c97a, #c6a85a);
    box-shadow: 0 0 10px rgba(230, 201, 122, 0.4);
    transition: width 0.4s ease;
}

.exp-fill.fighter {
    background: linear-gradient(90deg, #c85b5b, #8f2f2f);
    box-shadow: 0 0 10px rgba(200, 91, 91, 0.35);
}

.exp-fill.seeker {
    background: linear-gradient(90deg, #6cbf6c, #3f7f3f);
    box-shadow: 0 0 10px rgba(108, 191, 108, 0.35);
}

.exp-fill.hunter {
    background: linear-gradient(90deg, #d2a64f, #8f6a25);
    box-shadow: 0 0 10px rgba(210, 166, 79, 0.35);
}

.exp-fill.priest {
    background: linear-gradient(90deg, #b9a0e6, #6e59a8);
    box-shadow: 0 0 10px rgba(185, 160, 230, 0.35);
}

.exp-fill.shield-sage {
    background: linear-gradient(90deg, #77b1e5, #3f6f9f);
    box-shadow: 0 0 10px rgba(119, 177, 229, 0.35);
}

.exp-fill.sorcerer {
    background: linear-gradient(90deg, #9f79dc, #5f3c97);
    box-shadow: 0 0 10px rgba(159, 121, 220, 0.35);
}

.exp-fill.warrior {
    background: linear-gradient(90deg, #d07a4d, #8f4622);
    box-shadow: 0 0 10px rgba(208, 122, 77, 0.35);
}

.exp-fill.element-archer {
    background: linear-gradient(90deg, #59c4c4, #287c7c);
    box-shadow: 0 0 10px rgba(89, 196, 196, 0.35);
}

.exp-fill.alchemist {
    background: linear-gradient(90deg, #d9c06a, #8f7a2b);
    box-shadow: 0 0 10px rgba(217, 192, 106, 0.35);
}

.exp-fill.spirit-lancer {
    background: linear-gradient(90deg, #67cfa3, #2d7f62);
    box-shadow: 0 0 10px rgba(103, 207, 163, 0.35);
}

.exp-fill.high-scepter {
    background: linear-gradient(90deg, #6f8fe8, #3450a0);
    box-shadow: 0 0 10px rgba(111, 143, 232, 0.35);
}

.exp-text {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.6;
}

.feature-card {
    padding: 26px;
    border-radius: 18px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
	position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225,184,95,0.42);
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.72),
        0 0 22px rgba(225,184,95,0.10);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 40px rgba(225,184,95,0.08);
    transition: opacity 0.25s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card h3 {
    transition: transform 0.2s ease, color 0.2s ease;
}

.feature-card:hover h3 {
    transform: translateY(-2px);
    color: #f0d48a;
}

.feature-card a {
    transition: all 0.2s ease;
}

.feature-card a:hover {
    border-color: #e1b85f;
    box-shadow: 0 0 10px rgba(225,184,95,0.2);
}

.feature-icon {
    margin-right: 6px;
    color: #e1b85f;
    opacity: 0.9;
}

.cmd {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 4px;
    font-size: 0.9em;
    letter-spacing: 1px;
    background: rgba(225,184,95,0.12);
    border: 1px solid rgba(225,184,95,0.35);
    color: #e6c97a;
    border-radius: 4px;
    font-family: monospace;
    transition: all 0.2s ease;
}

.feature-card:hover .cmd {
    background: rgba(225,184,95,0.18);
    border-color: rgba(225,184,95,0.5);
    box-shadow: 0 0 8px rgba(225,184,95,0.15);
}

.cmd::before {
    content: "›";
    margin-right: 4px;
    opacity: 0.6;
}

.page-focus {
	text-align: center;
	font-size: 14px;
	color: #cfa75a;
	letter-spacing: 1px;
	margin-bottom: 10px;
	opacity: 0.9;
	text-shadow: 0 0 8px rgba(207, 167, 90, 0.25);
}

.content-main > .eyebrow,
.content-main > .title,
.content-main > .subtitle,
.page-focus {
	text-align: center;
}

/* Profile */
.profile-page-header {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-overview-grid {
    max-width: 1100px;
    margin: 0 auto;
}

.profile-overview-card {
    padding: 30px 34px;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.profile-meta-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(200,170,100,0.12);
    padding: 16px 18px;
}

.profile-meta-label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8f835c;
    margin-bottom: 6px;
}

.profile-meta-value {
    display: block;
    font-size: 18px;
    color: #f0d49a;
}

.section-subtitle {
    margin-top: -8px;
    margin-bottom: 22px;
    max-width: 760px;
}

.profile-card-grid {
    gap: 22px;
}

.profile-entry-card {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.profile-entry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225,184,95,0.42);
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.72),
        0 0 22px rgba(225,184,95,0.10);
}

.profile-entry-top {
    margin-bottom: 18px;
}

.profile-entry-top h3 {
    margin-bottom: 0;
}

.profile-entry-stats {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.profile-stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200,170,100,0.10);
}

.profile-stat-label {
    font-size: 13px;
    color: #bfae78;
    letter-spacing: 0.5px;
}

.profile-stat-value {
    font-size: 15px;
    color: #f0d49a;
}

.empty-state-card {
    max-width: 560px;
}

@media (max-width: 1100px) {
    .profile-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Account */
.account-page-header {
    max-width: 1200px;
    margin: 0 auto;
}

.account-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.account-card {
    min-height: 100%;
}

.account-info-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-info-list.compact {
    gap: 10px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200,170,100,0.10);
}

.account-info-label {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #bfae78;
}

.account-info-value {
    font-size: 15px;
    color: #f0d49a;
    text-align: right;
}

.account-subsection {
    margin-top: 28px;
}

.account-subsection h4 {
    margin-bottom: 14px;
    font-size: 16px;
    color: #e6c97a;
    letter-spacing: 1px;
}

.inline-account-action {
    margin-top: 18px;
}

.status-ok {
    color: #4cb267;
}

.status-bad {
    color: #c45a5a;
}

@media (max-width: 1100px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

.account-btn {
    min-width: 170px;
}

.account-btn.secondary-action {
    background: rgba(255, 200, 100, 0.10);
    border: 1px solid rgba(225,184,95,0.28);
    color: #e3d6a6;
}

.account-btn.secondary-action:hover {
    border-color: rgba(225,184,95,0.42);
    box-shadow: 0 0 12px rgba(225,184,95,0.10);
}

.account-btn.primary-action {
    background: linear-gradient(180deg, rgba(225,184,95,0.95), rgba(180,135,55,0.92));
    border: 1px solid rgba(225,184,95,0.46);
    color: #2b1d08;
    font-weight: 600;
}

.account-btn.primary-action:hover {
    box-shadow: 0 0 16px rgba(225,184,95,0.20);
    transform: translateY(-1px);
}

.account-card button.account-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.news-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.news-category {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	letter-spacing: 1px;
	margin-bottom: 10px;
	color: var(--gold);
}

.news-meta {
	font-size: 12px;
	color: var(--dim);
	letter-spacing: 0.5px;
	white-space: nowrap;
	margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.news-body {
	margin-top: 14px;
	line-height: 1;
	color: #d8cfb4;
}

.news-body p {
	margin: 10px 0 14px;
	margin-bottom: 14px;
}

.news-body ul {
	list-style: none;
	padding-left: 18px;
	margin: 8px 0 8px 22px;
	padding: 0;
}

.news-body li::before {
	content: "•";
	color: #d6b35f;
	margin-right: 8px;
}

.news-body li {
	margin-bottom: 6px;
	color: #d8cfb4;
	margin: 3px 0;
}

.news-body h2 {
	margin: 18px 0 10px;
	font-size: 22px;
	color: #f0d996;
}

.news-body hr {
	border: none;
	height: 1px;
	background: rgba(214,179,95,0.3);
	margin: 18px 0;
}

.news-body code {
	background: rgba(0,0,0,0.35);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 15px;
	color: #f0d996;
}

@media (max-width: 1100px) {
	.news-card-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.news-meta {
		white-space: normal;
	}
}

select,
textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 20px;
	background: #05070a;
	border: 1px solid rgba(200,170,100,0.3);
	color: #e3d6a6;
	font-family: inherit;
}

textarea {
	resize: vertical;
	min-height: 180px;
}

select:focus,
textarea:focus {
	outline: none;
	border-color: #e1b85f;
}

.news-category {
	display: inline-block;
	padding: 5px 10px;
	margin-bottom: 14px;
	font-size: 11px;
	letter-spacing: 1px;
	color: #f0d996;
	background: rgba(214,179,95,0.12);
	border: 1px solid rgba(214,179,95,0.32);
	box-shadow: 0 0 10px rgba(214,179,95,0.08);
}

.news-category.update {
	display: inline-block !important;
	background: rgba(214,179,95,0.14) !important;
	border: 1px solid rgba(214,179,95,0.38) !important;
	color: #f0d996 !important;
}

.news-category.information {
	background: rgba(120,160,210,0.12);
	border-color: rgba(120,160,210,0.30);
	color: #9fc5ff;
}

.news-category.event {
	background: rgba(95,190,140,0.12);
	border-color: rgba(95,190,140,0.30);
	color: #88e0ad;
}

.news-category.maintenance {
	background: rgba(190,90,70,0.12);
	border-color: rgba(190,90,70,0.32);
	color: #e89a82;
}

.home-duo-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.0fr) minmax(320px, 1.0fr);
	gap: 24px;
	align-items: stretch;
}

.home-duo-grid .home-welcome-card {
	max-width: none;
	margin: 0;
}

.featured-news {
	overflow: hidden;
}

.featured-news-body {
	margin-top: 10px;
	line-height: 1.7;
	color: #d8cfb4;
}

.featured-image {
	width: 100%;
	max-height: 220px;
	object-fit: contain;
	object-position: center;
	display: block;
	margin-bottom: 18px;
	border: 1px solid rgba(214,179,95,0.22);
	background: rgba(0,0,0,0.25);
}

@media (max-width: 1100px) {
	.home-duo-grid {
		grid-template-columns: 1fr;
	}
}

/* Fade-In Code */

.fade-in-up {
	opacity: 0;
	transform: none;
	filter: blur(10px);
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(.22,1,.36,1),
		filter 0.7s ease;
	will-change: opacity, transform, filter;
}

.visible-fade-in-up {
	opacity: 1;
	transform: none;
	filter: blur(0) !important;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.fade-in-up:hover {
	transform: translateY(-2px) scale(1.01);
}

.page-header.fade-in-up:hover {
	transform: none;
}

.fade-in-left {
	opacity: 0;
	transform: translateX(-40px) scale(0.98);
	filter: blur(4px);
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(.22,1,.36,1),
		filter 0.7s ease;
	will-change: opacity, transform, filter;
}

.fade-in-right {
	opacity: 0;
	transform: translateX(40px) scale(0.98);
	filter: blur(4px);
	transition:
		opacity 0.7s ease,
		transform 0.7s cubic-bezier(.22,1,.36,1),
		filter 0.7s ease;
	will-change: opacity, transform, filter;
}

.visible-fade-in-left,
.visible-fade-in-right {
	opacity: 1 !important;
	transform: translateX(0) !important;
	filter: blur(0) !important;
}

.home-feature-card:hover,
.news-link:hover .news-card,
.home-news-item:hover,
.vocation-item:hover {
	transform: translateY(-2px) scale(1.01) !important;
}

.fade-delay-1 { transition-delay: 0.05s; }
.fade-delay-2 { transition-delay: 0.1s; }
.fade-delay-3 { transition-delay: 0.15s; }
.fade-delay-4 { transition-delay: 0.2s; }
.fade-delay-5 { transition-delay: 0.25s; }

/* BLUR TEST */

.nav-dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.nav-drop-trigger {
	cursor: pointer;
}

.nav-drop-menu-left {
	position: absolute;
	top: calc(100% + 10px);
	left: auto;
	right: 0;
	min-width: 230px;
	padding: 10px;
	/* background: transparent !important; */
	background: rgba(12, 18, 28, 0.55);
	border: 1px solid rgba(214,179,95,0.24);
	box-shadow: 0 14px 32px rgba(0,0,0,0.42);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.nav-dropdown:hover .nav-drop-menu-left {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-drop-menu-left a {
	display: block;
	padding: 10px 12px;
	color: #cdbb88;
	border: 1px solid transparent;
	white-space: nowrap;
}

.nav-drop-menu-left a:hover {
	color: #fff4d3;
	background: rgba(214,179,95,0.08);
	border-color: rgba(214,179,95,0.18);
}

.nav-drop-menu-right {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: auto;
	min-width: 230px;
	padding: 10px;
	/* background: transparent !important; */
	background: rgba(12, 18, 28, 0.55);
	border: 1px solid rgba(214,179,95,0.24);
	box-shadow: 0 14px 32px rgba(0,0,0,0.42);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.nav-dropdown:hover .nav-drop-menu-right {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-drop-menu-right a {
	display: block;
	padding: 10px 12px;
	color: #cdbb88;
	border: 1px solid transparent;
	white-space: nowrap;
}

.nav-drop-menu-right a:hover {
	color: #fff4d3;
	background: rgba(214,179,95,0.08);
	border-color: rgba(214,179,95,0.18);
}

.nav-drop-menu-left,
.nav-drop-menu-right {
	z-index: 5;
}

/* ===== Vocation Guide ===== */

.vocation-layout.fade-in-up:hover {
	transform: none;
}

.vocation-layout {
	display: grid;
	grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.vocation-list {
	padding: 24px;
}

.vocation-list h2 {
	margin-bottom: 20px;
}

.vocation-item:hover,
.vocation-item.active {
	background: rgba(214,179,95,0.09);
	border-color: rgba(214,179,95,0.38);
	box-shadow: 0 0 14px rgba(214,179,95,0.10);
	transform: translateX(3px);
}

.vocation-group-title {
	margin: 18px 0 8px;
	color: #f0d996;
	font-size: 13px;
	letter-spacing: 1px;
}

.vocation-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 8px;
	background: rgba(255,255,255,0.018);
	border: 1px solid rgba(214,179,95,0.10);
	color: #d8cfb4;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vocation-item img {
	width: 22px;
	height: 26px;
	object-fit: contain;
}

.vocation-item:hover,
.vocation-item.active {
	background: rgba(214,179,95,0.09);
	border-color: rgba(214,179,95,0.38);
	box-shadow: 0 0 14px rgba(214,179,95,0.10);
	transform: translateX(3px);
}

.vocation-details {
	padding: 28px;
	min-height: 560px;
	overflow: hidden;
	opacity: 0;
	transform: translateX(30px);
}

.vocation-details.visible-fade-in-up {
	opacity: 1;
	transform: translateX(0);
	transition:
		opacity 0.5s ease,
		transform 0.5s cubic-bezier(.22,1,.36,1);
	transition-delay: 0.08s;
}

.vocation-detail-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
	gap: 28px;
	align-items: start;
}

.vocation-role {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 10px;
	font-size: 11px;
	letter-spacing: 1px;
	color: #f0d996;
	background: rgba(214,179,95,0.10);
	border: 1px solid rgba(214,179,95,0.28);
	border-radius: 4px;
}

.vocation-role.attacker {
	background: rgba(200, 80, 80, 0.15);
	color: #ff9a9a;
}

.vocation-role.tank {
	background: rgba(120, 160, 220, 0.15);
	color: #9fc3ff;
}

.vocation-role.supporter {
	background: rgba(120, 200, 150, 0.15);
	color: #a8ffd1;
}

.vocation-details h1 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.vocation-details h1 img {
	width: 34px;
	height: 40px;
	object-fit: contain;
}

.vocation-tagline {
	color: #cdbb88;
	margin-bottom: 18px;
	letter-spacing: 0.5px;
}

.vocation-best-for {
	margin: 18px 0;
	padding: 14px;
	border: 1px solid rgba(214,179,95,0.14);
	background: rgba(255,255,255,0.018);
	color: #d8cfb4;
}

.vocation-ratings {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.vocation-rating {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 11px 13px;
	border: 1px solid rgba(214,179,95,0.14);
	background: rgba(255,255,255,0.018);
	transition: transform 0.2s ease;
	color: #cdbb88;
}

.vocation-rating:hover {
	transform: translateX(3px);
}

.vocation-rating strong {
	color: #e5e0e0;
	/*color: #f0d996;*/
	letter-spacing: 2px;
}

.vocation-preview-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 460px;
	overflow: hidden;
}

.vocation-preview-wrap::before {
	content: "";
	position: absolute;
	inset: 10%;
	background: radial-gradient(circle, rgba(214,179,95,0.08), transparent 70%);
	filter: blur(12px);
	pointer-events: none;
}

.vocation-preview {
	max-width: 100%;
	max-height: 520px;
	object-fit: contain;
	filter: drop-shadow(0 22px 32px rgba(0,0,0,0.55));
	transform: translateY(-6px);
}

.vocation-swap-in {
	animation: vocationSwap 1.5s cubic-bezier(.22,1,.36,1) both;
}

.vocation-swap-in .vocation-preview {
	animation: vocationPreviewIn 2s cubic-bezier(.22,1,.36,1) both;
}

.vocation-weapons strong {
	color: #f0d996;
	letter-spacing: 0.5px;
}

@keyframes vocationSwap {
	from {
		opacity: 0;
		transform: translateY(0) scale(0.98);
		filter: blur(2px);
		transition:
			opacity 0.7s ease,
			transform 0.7s cubic-bezier(.22,1,.36,1),
			filter 0.7s ease;
		will-change: opacity, transform, filter;
	}
	to {
		opacity: 0.92;
		transform: translateY(0) scale(1);
		filter: blur(0)) drop-shadow(0 22px 32px rgba(0,0,0,0.62)) drop-shadow(0 0 18px rgba(214,179,95,0.08));
	}
}

@keyframes vocationPreviewIn {
	from {
		opacity: 0;
		transform: translateY(0) scale(0.88);
		filter: blur(4px);
		transition:
			opacity 0.7s ease,
			transform 0.7s cubic-bezier(.22,1,.36,1),
			filter 0.7s ease;
		will-change: opacity, transform, filter;
	}
	to {
		opacity: 0.92;
		transform: translateY(0) scale(1);
		filter: blur(0) drop-shadow(0 22px 32px rgba(0,0,0,0.62)) drop-shadow(0 0 18px rgba(214,179,95,0.08));
	}
}

.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-scroll .leaderboard-table {
	min-width: 720px;
}

/* Vocation Layout Mobile */

@media (max-width: 1100px) {
	.vocation-layout {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 22px;
	}

	.vocation-list,
	.vocation-details {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		scroll-margin-top: 96px;
	}

	.vocation-detail-content {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 20px;
	}

	.vocation-detail-main {
		min-width: 0;
	}

	.vocation-preview-wrap {
		order: -1;
		min-height: auto;
		justify-content: center;
		padding-top: 10px;
		margin-bottom: 10px;
	}

	.vocation-preview {
		max-width: 75%;
		max-height: 320px;
	}

	.vocation-ratings {
		grid-template-columns: 1fr !important;
	}

	.vocation-details h1 {
		font-size: 32px;
		line-height: 1.1;
		margin-top: 6px;
	}

	.vocation-details {
		padding: 24px;
	}
	
	.vocation-rating {
		padding: 10px 0;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}
}

/* Map Viewer */

/* !THIS IS A FIX FOR LATER!
.wrapper {
	display: block;
	min-height: calc(100vh - 95px);
}

.layout-flex {
	display: flex;
	min-height: 100vh;
}
*/

.world-map-bar {
	display: flex;
	gap: 8px;
	padding: 10px;
	margin-bottom: 10px;
	overflow-x: auto;
	scroll-behavior: auto;
	scrollbar-width: none; /* Firefox */
	mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
	cursor: grab;
	user-select: none;
	touch-action: pan-x;
}

.world-map-bar.smooth-scroll {
	scroll-behavior: smooth;
}

.world-map-bar::-webkit-scrollbar {
	display: none;
}

.world-map-bar.dragging {
	cursor: grabbing;
}
.world-map-btn {
	background: #2a2a2a;
	color: #fff;
	border: none;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
}

.world-map-bar.dragging .world-map-btn {
	pointer-events: none;
}

.world-map-btn:hover {
	background: #3a3a3a;
}

.world-map-btn.child {
	font-size: 0.85em;
	padding: 4px 8px;
}

.world-map-group {
	position: relative;
}

.world-map-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: #2a2a2a;
	border-radius: 6px;
	padding: 5px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 10;
}

.enemy-named-prefix {
	color: #f0d996;
	font-style: italic;
	text-shadow: 0 0 6px rgba(214,179,95,0.35);
}

.map-page-body .wrapper {
	display: block;
	min-height: calc(100vh - 95px);
}

.map-panel {
	padding: 14px;
	min-width: 0;
}

.map-panel {
	width: 100%;
}

.map-left-overlay {
    background: rgba(6, 10, 18, 0.82);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    padding: 10px;
    overflow: hidden;
    z-index: 40;
    opacity: 0.96;
    transition: width 0.25s ease, opacity 0.2s ease;
    height: 100% !important;
}

.map-right-overlay {
	width: 100% !important;
	height: 100% !important;
	top: 0% !important;
	background: rgba(6, 10, 18, 0.86);
	backdrop-filter: blur(8px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	z-index: 40;
	opacity: 0.96;
	transition: width 0.25s ease, opacity 0.2s ease;
}

.map-overlay-toggle {
	position: absolute;
	top: 20px;
	z-index: 60;
	background: rgba(10, 14, 24, 0.9);
	border: 1px solid rgba(214, 179, 95, 0.4);
	color: #f0d49a;
	padding: 4px 8px;
	cursor: pointer;
	border-radius: 4px;
}

.map-overlay-toggle.left {
	left: 16.2%;
}

.map-overlay-toggle.right {
	right: 16.1%;
}

.map-left-overlay.collapsed {
	width: 0;
	opacity: 0;
}

.map-right-overlay.collapsed {
	width: 0;
	opacity: 0;
}

.map-left-overlay.collapsed + .map-overlay-toggle.left {
	left: 16px;
}

.map-left-wrapper,
.map-right-wrapper {
	position: absolute;
	top: 16px;
	bottom: 16px;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	width: 15%;
	height: 94.5%;
	transition: width 0.25s ease;
	overflow: visible;
}

.map-left-wrapper {
	left: 16px;
}

.map-right-wrapper {
	right: 16px;
}

.map-left-overlay,
.map-right-overlay {
	position: relative;
	width: 100%;
	height: 100%;
}

.map-overlay-toggle.left {
	position: absolute;
	left: 100%;
	top: 20px;
	margin-left: 6px;
	z-index: 60;
}

.map-overlay-toggle.right {
	position: absolute;
	right: 100%;
	top: 20px;
	margin-right: 6px;
	z-index: 60;
}

.map-left-wrapper.collapsed {
	width: 0;
}

.map-right-wrapper.collapsed {
	width: 0;
}

.map-left-wrapper.collapsed .map-left-overlay,
.map-right-wrapper.collapsed .map-right-overlay {
	opacity: 0;
	pointer-events: none;
}

.map-debug {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 8px 12px;
	background: rgba(0,0,0,0.75);
	color: #f0d996;
	font-size: 13px;
	border-bottom: 1px solid rgba(214,179,95,0.25);
}

.map-scroll {
	width: 100%;
	height: 720px;
	overflow: auto;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(0,0,0,0.35);
	scroll-behavior: auto !important;
}

.map-list-entry {
	display: flex;
	align-items: center;
	gap: 6px;
}

.map-list-entry:hover {
	background: rgba(255,255,255,0.08);
}

.map-list-arrow {
	display: inline-block;
	width: 10px;
	transition: transform 0.12s ease;
}

.map-list-entry.open .map-list-arrow {
	transform: rotate(90deg);
}

.map-canvas {
	position: relative;
	min-width: 100%;
	min-height: 100%;
}

.lestania-tile-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(9, 512px);
	grid-auto-rows: 512px;
	width: calc(9 * 512px);
	height: calc(11 * 512px);
	transform-origin: 0 0;
	image-rendering: auto;
	backface-visibility: hidden;
	transition: none;
}

.lestania-tile-grid {
	position: absolute;
	left: 0;
	top: 0;
	transform-origin: top left;
}

.map-page {
	max-width: 1680px;
}

.map-layout {
	display: flex;
	gap: 18px;
	width: 100%;
	align-items: flex-start;
}

/*
.map-list {
	width: 240px;
	flex: 0 0 240px;
	max-height: calc(100vh - 180px);
	overflow-y: auto;
	padding: 14px 10px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(8,12,20,0.55);
	border-radius: 14px;
}
*/

.map-list {
	max-height: none;
	height: calc(100% - 5%);
	overflow-y: auto;
}

.map-list-section {
	margin-bottom: 18px;
}

.map-list-heading {
	margin: 0 0 8px;
	padding: 0 6px;
	color: #d6b35f;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.map-list-entry {
	display: block;
	width: 100%;
	padding: 6px 8px;
	border: 0;
	background: transparent;
	color: #d8cfb4;
	text-align: left;
	font-size: 13px;
	cursor: pointer;
	border-radius: 8px;
}

.map-list-entry:hover {
	background: rgba(214,179,95,0.10);
	color: #f0d996;
}

.map-list-entry.active {
	background: rgba(214,179,95,0.18);
	color: #f0d996;
	box-shadow: inset 3px 0 0 #d6b35f;
}

/*
.map-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 22px;
	flex: 1;
	min-width: 0;
	align-items: start;
}
*/

.map-shell {
	position: relative;
	width: 100%;
	min-height: 760px;
}

.map-tool {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 22px;
	flex: 1;
	min-width: 0;
	align-items: start;
}

.map-control-panel {
    width: 15%;
    padding: 18px;
    position: absolute;
    top: 2%;
    height: calc(100% - 38px);
    border: none;
}

.map-control-panel h3 {
	margin-bottom: 16px;
	color: #f0d996;
}

.map-control-panel label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: #d8cfb4;
	letter-spacing: 0.5px;
}

.map-search-input {
	width: 100%;
	padding: 12px 14px;
	background: rgba(0,0,0,0.25);
	border: 1px solid rgba(214,179,95,0.22);
	color: #f4ead0;
}

.map-filter-note {
	font-size: 13px;
	color: var(--dim);
	line-height: 1.5;
	margin-top: -14px;
}

.map-check-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	color: #d8cfb4;
	cursor: pointer;
}

.map-check-row input {
	width: auto;
	margin: 0;
	accent-color: #d6b35f;
}

.map-check-row span {
	line-height: 1;
	width: auto;
}

.map-zoom-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	margin-bottom: 14px;
}

.map-zoom-label {
	min-width: 48px;
	text-align: center;
	color: #f0d996;
	font-size: 13px;
}

.map-group-chip.hidden-by-filter {
	display: none;
}

.map-scroll {
	cursor: grab;
}

.map-scroll.dragging {
	cursor: grabbing;
}

.map-scroll {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* old Edge */
}

.map-scroll::-webkit-scrollbar {
	display: none; /* Chrome/Brave/Safari */
}

.lestania-tile-grid img {
	width: 520px;
	height: 520px;
	margin-right: -1px;
	margin-bottom: -1px;
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

/*
.lestania-tile-grid img {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	image-rendering: auto;
}
*/

.map-marker {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	z-index: 20;
	transform: translate(-50%, -50%);
	pointer-events: auto;
}

.map-btn {
	background: rgba(20, 20, 20, 0.8);
	border: 1px solid rgba(214, 179, 95, 0.4);
	color: #d6b35f;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.map-btn:hover {
	background: rgba(214, 179, 95, 0.15);
	border-color: rgba(214, 179, 95, 0.8);
}

.map-spawn-point {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #00ffff;
	box-shadow: 0 0 8px rgba(0,255,255,0.6);
	transform: translate(-50%, -50%);
	z-index: 35;
}

.map-group-chip {
	position: absolute;
	z-index: 30;
	transform: translate(-50%, -50%) !important;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(214,179,95,0.65);
	background: rgba(8,12,20,0.88);
	color: #f0d996;
	font-size: 13px;
	letter-spacing: 0.5px;
	cursor: pointer;
	box-shadow: 0 0 10px rgba(0,0,0,0.45);
	z-index: 40;
	transition:
		background 0.16s ease,
		border-color 0.16s ease,
		box-shadow 0.16s ease,
		transform 0.16s ease,
		opacity 0.16s ease;
}

.map-group-chip {
	padding: 0px 4px;
}

.map-group-chip.expanded {
	background: rgba(214,179,95,0.22);
	border-color: rgba(214,179,95,0.85);
	box-shadow: 0 0 14px rgba(214,179,95,0.25);
	transform: translate(-50%, -50%) scale(1.08) !important;
}

.map-group-chip:hover {
	background: rgba(214,179,95,0.18);
	box-shadow: 0 0 14px rgba(214,179,95,0.25);
	transform: translate(-50%, -50%) scale(1.06) !important;
}

.map-group-chip.filtered-out {
	opacity: 0.18;
	filter: grayscale(0.7);
}

.map-group-chip.filtered-match {
	opacity: 1;
	box-shadow: 0 0 16px rgba(214,179,95,0.35);
}

.map-group-popup {
	position: absolute;
	z-index: 60;
	transform: translate(-50%, 8px);
	padding: 12px;
	border: 1px solid rgba(214,179,95,0.35);
	background: rgba(8,12,20,0.70);
	color: #d8cfb4;
	box-shadow: 0 12px 28px rgba(0,0,0,0.45);
	pointer-events: auto;
	animation: mapPopupIn 0.5s ease-out;
	backdrop-filter: blur(3.5px);
	width: max-content;
	min-width: 320px;
	max-width: none;
}

/*
.map-group-popup .map-drop-list {
	max-height: 360px;
	overflow-y: auto;
	overscroll-behavior: contain;
	cursor: default;
}
*/

.map-group-popup h4 {
	margin: 0 0 6px;
	color: #f0d996;
	font-size: 14px;
}

.map-group-popup p {
	margin: 4px 0;
	font-size: 13px;
}

.map-group-popup ul {
	margin: 8px 0 0 18px;
	padding: 0;
	font-size: 13px;
}

.map-group-popup.down {
	transform: translate(-50%, 18px);
}

.map-group-popup.up {
	transform: translate(-50%, calc(-100% - 54px));
}

.map-count-box {
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(0,0,0,0.18);
	color: #d8cfb4;
	font-size: 13px;
}

.map-count-box span {
	color: #f0d996;
	font-weight: bold;
}

.map-legend {
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(214,179,95,0.18);
	background: rgba(0,0,0,0.18);
	font-size: 13px;
	color: #d8cfb4;
	margin-bottom: 14px;
}

.map-legend-title {
	color: #f0d996;
	font-weight: bold;
	margin-bottom: 8px;
}

.map-legend-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

/* Chip Preview */
.legend-chip {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	border: 1px solid rgba(214,179,95,0.4);
	background: rgba(214,179,95,0.12);
}

.legend-chip.active {
	background: rgba(214,179,95,0.3);
	border-color: rgba(214,179,95,0.9);
}

/* Spawn Point */
.legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d6b35f;
	box-shadow: 0 0 6px rgba(214,179,95,0.6);
}

/* Filtered */
.legend-muted {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: rgba(255,255,255,0.08);
	opacity: 0.5;
}

.map-tooltip {
	position: fixed;
	z-index: 99999;
	pointer-events: none;
	padding: 8px 10px;
	min-width: 140px;
	max-width: 280px;
	border: 1px solid rgba(214,179,95,0.35);
	background: rgba(8,12,20,0.70);
	color: #d8cfb4;
	font-size: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.45);
	opacity: 0;
	transition: opacity 0.08s ease;
	backdrop-filter: blur(3.5px);
}

.map-tooltip.visible {
	opacity: 1;
	position: fixed;
	transform: none;
	background: rgba(8,12,20,0.70);
	backdrop-filter: blur(3.5px);
}

.map-tooltip strong {
	display: block;
	color: #f0d996;
	margin-bottom: 4px;
}

.map-popup-header {
	text-align: center;
	margin-bottom: 10px;
}

.map-popup-header h4 {
	margin-bottom: 3px;
}

.map-popup-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

.map-popup-columns h5 {
	text-align: center;
}

.map-popup-columns ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.map-popup-columns li {
	padding: 2px 0;
}

.map-popup-columns li::first-letter {
	/* optional lieber weglassen */
}

.map-enemy-row {
	display: flex;
	gap: 10px;
}

.map-enemy-row .enemy-name {
	color: #d8cfb4;
}

.map-enemy-row .enemy-level {
    margin-left: auto;
    color: rgb(214 179 95);
    font-style: normal;
    /* font-size: 11px; */
    text-shadow: 1px 1px 10px rgb(214 179 95 / 75%), 1px 1px 10px rgb(214 179 95 / 75%);
}

.map-drop-row span {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #d8cfb4;
	flex: 1;
	min-width: 0;
	white-space: normal;
	word-break: break-word;
}

.map-drop-row em.drop-low {
	color: #d98f8f;
	text-shadow: 1px 1px 10px #d98f8f80, 1px 1px 10px #d98f8f80;
}

.map-drop-row em.drop-mid {
	color: #f0d996;
	text-shadow: 1px 1px 10px #f0d9968a, 1px 1px 10px #f0d9968a;
}

.map-drop-row em.drop-high {
	color: #9fd6a3;
	text-shadow: 1px 1px 10px #9fd6a380, 1px 1px 10px #9fd6a380;
}

/* Map Gather */

.map-gather-marker {
	position: absolute;
	z-index: 26;
	width: 30px;
	height: 30px;
	padding: 0;
	cursor: pointer;
	pointer-events: auto;
	filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
	opacity: 0.75;
	transform: translate(-50%, -50%);
}

.map-gather-marker:hover {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.10) !important;
}

.map-gather-marker.wood   { background: #7a5a3a; }
.map-gather-marker.herb   { background: #4fa36a; }
.map-gather-marker.flower { background: #d47fa6; }
.map-gather-marker.ore    { background: #7d8a9c; }
.map-gather-marker.water  { background: #4fa3d4; }
.map-gather-marker.chest  { background: #caa24a; }
.map-gather-marker.rare   { background: #9c6ad4; }
.map-gather-marker.misc   { background: #888; }

.map-popup-columns.single {
	grid-template-columns: 1fr;
}

@keyframes mapPopupIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (max-width: 1100px) {
	.map-scroll {
		height: 70vh;
	}
}

@media (max-width: 1100px) {
	.map-layout {
		grid-template-columns: 1fr;
	}

	.map-control-panel {
		position: static;
	}
}

.world-map-bar {
	position: relative;
	z-index: 50;
	overflow-x: auto;
	overflow-y: visible;
}

.world-map-group {
	position: relative;
	z-index: 60;
}

.world-map-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 9999;
}

.map-container,
.map-layout {
	overflow: visible;
}

.world-map-dropdown.floating {
	position: fixed;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px;
	background: rgba(8, 12, 20, 0.96);
	border: 1px solid rgba(214, 179, 95, 0.25);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.world-map-dropdown.floating .world-map-btn.child {
	text-align: left;
	white-space: nowrap;
}

.map-layer-controls {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 12px;
	background: rgba(10, 14, 22, 0.75);
	backdrop-filter: blur(6px);
	z-index: 20;
	display: none;
}

.map-layer-btn {
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 215, 130, 0.3);
	
	background: rgba(20, 26, 38, 0.8);
	color: #f0d49a;
	
	font-size: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.map-layer-btn:hover {
	background: rgba(255, 215, 130, 0.15);
	border-color: rgba(255, 215, 130, 0.6);
}

.map-list-entry.active,
.world-map-btn.active,
.map-layer-btn.active {
	background: rgba(214, 179, 95, 0.24);
	color: #f0d49a;
	box-shadow: inset 3px 0 0 #d6b35f;
}

.world-map-bar-wrap {
	position: relative;
}

.world-map-bar-wrap::before,
.world-map-bar-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 70px;
	z-index: 20;
	pointer-events: none;
}

.world-map-bar-wrap::before {
	left: -3%;
    top: 10%;
}

.world-map-bar-wrap::after {
	right: -0.3%;
    top: 10%;
}

.world-map-bar-wrap::after {
	content: ">";
	color: #f0d49a;
	font-size: 24px;
	text-align: right;
	padding-right: 10px;
	line-height: 38px;
}

.world-map-bar-wrap::before {
	content: "<";
	color: #f0d49a;
	font-size: 24px;
	text-align: right;
	padding-right: 10px;
	line-height: 38px;
}

.world-map-bar {
	cursor: grab;
	content: ">";
	color: #f0d49a;
	font-size: 24px;
	text-align: right;
	padding-right: 10px;
	line-height: 38px;
}

.world-map-bar.dragging {
	cursor: grabbing;
}

/* Connections */

.map-connection-dot {
	position: absolute;
	width: 13px;
	height: 13px;
	border-radius: 3px;
	background: #ff6b35;
	border: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(45deg);
	box-shadow: 0 0 6px rgba(0,0,0,0.7);
	z-index: 12;
	cursor: pointer;
}

.map-connection-dot:hover {
	transform: translate(-50%, -50%) scale(1.3);
}

.map-back-btn {
	position: absolute;
	top: 24px;
	right: 300px;
	z-index: 9999;
	display: none;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 215, 130, 0.3);
	background: rgba(20, 26, 38, 0.82);
	color: #f0d49a;
	font-size: 12px;
	cursor: pointer;
}

.map-back-btn:hover {
	background: rgba(255, 215, 130, 0.15);
	border-color: rgba(255, 215, 130, 0.6);
	transform: none;
}

.map-npc-shop-marker {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #7ad7ff;
	border: 2px solid #fff;
	box-shadow: 0 0 8px rgba(122, 215, 255, 0.75);
	transform: translate(-50%, -50%);
	z-index: 13;
	cursor: pointer;
}

/* Shop NPC Popup - TIME TO CONTAIN THAT SHIT */

.map-npc-shop-popup {
	max-width: 360px;
	max-height: 100%;
	border: 1px solid rgb(214 179 95 / 75%) !important;
}

.map-npc-shop-popup .map-drop-list {
	max-height: 360px;
	padding-right: 12px;
}

.map-npc-shop-popup .map-drop-list::-webkit-scrollbar {
	width: 12px;
}

.map-npc-shop-popup .map-drop-list::-webkit-scrollbar-thumb {
	background: rgba(214, 179, 95, 0.65);
	border-radius: 999px;
}

.server-status {
	color: #cdbb88;
}

/* Font Test */

.map-enemy-row .enemy-level,
.map-popup-columns,
.map-popup-columns ul,
.map-group-popup,
.map-group-popup h4,
.map-group-popup p,
.map-drop-row,
.map-drop-rown span,
.map-drop-row em.drop-low,
.map-drop-row em.drop-mid,
.map-drop-row em.drop-high,
.map-popup-columns h5 {
	/* font-size: 12px !important; */
	user-select: none;
	column-gap: 10px;
}
.map-popup-scroll {
	max-height: 360px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Shop Category Test */

.map-drop-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.map-drop-row {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 4px 6px;
	border-radius: 4px;
	transition: background 0.15s ease;
}

.map-drop-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	column-gap: 10px;
	align-items: center;
}

.map-drop-row:hover {
	background: rgba(255, 215, 120, 0.08);
}

.map-drop-row em {
	margin-left: auto;
	font-style: normal;
	color: #9fe3b1;
	font-weight: 500;
	min-width: 70px;
	text-align: right;
	white-space: nowrap;
}

.map-drop-row:not(:last-child) {
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.item-icon {
	width: 48px !important;
	height: 48px !important;
	object-fit: contain;
	flex: 0 0 18px;
	filter: drop-shadow(0 1px 1px rgba(0,0,0,0.65));
}

/* Shop Category Test 2 */

.map-shop-top {
	margin-bottom: 6px;
}

.map-shop-detail-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.map-shop-detail-header .item-icon {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
}

.map-shop-detail-header h5 {
	margin: 0;
}

.map-shop-detail-header p {
	margin: 2px 0 0;
	color: #9fe3b1;
}

.map-shop-item-row {
	cursor: pointer;
	transition: background 0.15s ease, transform 0.08s ease;
}

.map-shop-item-row.active {
	background: rgba(214, 179, 95, 0.18);
	transform: scale(0.98);
}

.map-shop-item-row:active {
	transform: scale(0.98);
}

.map-shop-item-detail {
    margin-top: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(214, 179, 95, 0.25);
    border-bottom: 1px solid rgba(214, 179, 95, 0.25);
}

.map-shop-item-detail-empty {
	opacity: 0.65;
	font-size: 0.85rem;
	text-align: center;
}

.map-shop-search {
	width: 100%;
	margin: 4px 0 8px;
	padding: 6px 8px;
	border: 1px solid rgba(214, 179, 95, 0.28);
	background: rgba(4, 7, 12, 0.55);
	color: #f0d49a;
	border-radius: 4px;
	font-size: 0.85rem;
}

.map-shop-search {
	pointer-events: auto;
	user-select: text;
	position: relative;
	z-index: 5;
}

.map-shop-search::placeholder {
	color: rgba(240, 212, 154, 0.45);
}

.map-npc-shop-popup {
	max-width: 520px;
}

.map-npc-shop-popup .map-drop-row span {
	min-width: 0;
}

.map-npc-shop-popup .map-drop-row span {
	white-space: normal;
}

.map-npc-shop-popup.has-appraisals {
	width: 900px;
	max-width: 900px;
}

.map-appraisal-container {
	display: grid;
	grid-template-columns: 230px 320px 1fr;
	gap: 12px;
	height: 460px;
	min-height: 0;
}

.map-appraisal-left {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.map-appraisal-categories,
.map-appraisal-list,
.map-appraisal-detail {
	min-height: 0;
	overflow-y: auto;
}


.map-appraisal-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.map-appraisal-list {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 6px;
}

.map-appraisal-list-wrap {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.map-appraisal-detail {
	overflow-y: auto;
}

.map-appraisal-category-btn {
	width: 100%;
	text-align: left;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid rgba(214, 179, 95, 0.3);
	background: rgba(20, 26, 38, 0.82);
	color: #f0d49a;
	cursor: pointer;
}

.map-appraisal-category-btn.active {
	transform: none;
	background: rgba(214, 179, 95, 0.24);
	border-color: rgba(214, 179, 95, 0.75);
}

.map-appraisal-category-btn:hover{
	transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    filter: brightness(1.05);
}
.map-appraisal-category-btn.active:hover{
}

.map-appraisal-search {
	width: 100%;
	margin-bottom: 8px;
	padding: 6px 8px;
	border: 1px solid rgba(214, 179, 95, 0.28);
	background: rgba(4, 7, 12, 0.55);
	color: #f0d49a;
	border-radius: 4px;
}

.map-appraisal-row.active {
	background: rgba(214, 179, 95, 0.18);
	border-radius: 6px;
}

.map-appraisal-row:hover {
	background: rgba(214, 179, 95, 0.08);
}

.map-appraisal-categories::-webkit-scrollbar {
	width: 6px;
}