/* Mournhal — stage 1 template. Dark stone + gold. */
:root {
	--bg: #0c0e12;
	--bg-2: #14181f;
	--panel: #181d25;
	--panel-2: #1e242e;
	--line: #2a313d;
	--text: #d8dce3;
	--muted: #8d95a3;
	--gold: #d6a63c;
	--gold-2: #f0c561;
	--green: #4fbf6b;
	--red: #e0554f;
	--discord: #5865f2;
	--radius: 6px;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Cinzel', 'Georgia', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	/* the artwork covers the whole viewport (fixed, cover) so no page ever
	   ends in a flat empty band below the content */
	background: var(--bg) url("images/hero.jpg") no-repeat center center fixed;
	background-size: cover;
	color: var(--text);
	font: 14px/1.55 var(--font-body);
}
body::before {
	content: "";
	position: fixed; inset: 0; z-index: -1;
	/* dim the artwork for readability but never go fully solid */
	background: linear-gradient(180deg, rgba(12,14,18,0.50) 0%, rgba(12,14,18,0.78) 50%, rgba(12,14,18,0.86) 100%);
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---- top bar ------------------------------------------------------------ */
.topbar {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12,14,18,0.85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand {
	font: 700 22px/1 var(--font-display);
	letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--gold-2);
}
.topbar-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.topbar-status a { color: var(--text); }
.topbar-status strong { color: #fff; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-off { background: var(--red); }
.sep { width: 1px; height: 18px; background: var(--line); }
.topbar-account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.login-inline { display: flex; gap: 6px; }
.login-inline input {
	background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
	border-radius: var(--radius); padding: 6px 10px; width: 150px; font: inherit;
}
.login-inline input:focus { outline: none; border-color: var(--gold); }
.topbar-lost { font-size: 12px; color: var(--muted); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
	display: inline-block; border-radius: var(--radius); padding: 7px 14px;
	font: 600 13px/1.2 var(--font-body); cursor: pointer; border: 1px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { display: block; text-align: center; }
.btn-gold { background: var(--gold); color: #17120a; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); color: #17120a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn-outline { background: rgba(0,0,0,0.35); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: #fff; }
.btn-discord { background: var(--discord); color: #fff; border-color: var(--discord); }
.btn-discord:hover { background: #6d78ff; color: #fff; }

/* ---- hero --------------------------------------------------------------- */
.hero {
	position: relative; background-size: cover; background-position: center 30%;
	min-height: 420px; display: flex; align-items: center;
	border-bottom: 1px solid var(--line);
}
.hero-slim { min-height: 140px; }
.hero-shade {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(12,14,18,0.25) 0%, rgba(12,14,18,0.35) 50%, rgba(12,14,18,0.95) 100%);
}
.hero-inner { position: relative; padding-top: 60px; padding-bottom: 60px; max-width: 760px; margin-left: 20px; }
.hero-kicker { color: var(--gold-2); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }
.hero-title {
	font: 700 56px/1.05 var(--font-display); margin: 0 0 14px; color: #fff;
	letter-spacing: 0.06em; text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}
.hero-tagline { font-size: 17px; color: #e6e9ee; max-width: 620px; margin: 0 0 24px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- layout ------------------------------------------------------------- */
.layout {
	display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 22px;
	padding-top: 26px; padding-bottom: 40px; align-items: start;
}
.sidenav, .widgets { position: sticky; top: 72px; }
.sidenav-download { margin-bottom: 14px; }
.nav-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.nav-group-title {
	padding: 8px 12px; font: 700 12px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--gold-2); background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.nav-link { display: block; padding: 7px 12px; color: var(--text); border-left: 2px solid transparent; font-size: 13px; }
.nav-link:hover { background: var(--panel-2); color: #fff; }
.nav-link.active { border-left-color: var(--gold); color: var(--gold-2); background: var(--panel-2); }

.content { min-width: 0; }
.page-title { font: 700 26px/1.2 var(--font-display); color: #fff; margin: 0 0 14px; letter-spacing: 0.04em; }
.content-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.page-news .content-box { background: transparent; border: 0; padding: 0; }

/* ---- news cards --------------------------------------------------------- */
.news-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.news-card-head { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.news-card-icon { width: 20px; height: 20px; }
.news-card-title { font: 700 18px/1.25 var(--font-display); margin: 0; color: #fff; }
.news-card-sub { color: var(--muted); font-size: 12px; display: flex; gap: 12px; margin-top: 2px; }
.news-card-body { padding: 16px 18px; }
.news-card-body p { margin: 0 0 10px; }
.news-card-foot { padding: 10px 18px; border-top: 1px solid var(--line); text-align: right; font-size: 13px; }

/* ---- widgets ------------------------------------------------------------ */
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; padding: 12px 14px; }
.widget-title { font: 700 12px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.widget-more { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.widget-more:hover { color: var(--gold-2); }
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.toplist li:last-child { border-bottom: 0; }
.toplist-rank { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.toplist-name { color: #fff; font-weight: 600; }
.toplist-meta { grid-column: 2; color: var(--muted); font-size: 12px; }
.kv { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); }
.txt-on { color: var(--green); }
.txt-off { color: var(--red); }

/* ---- footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---- MyAAC default page markup, restyled ------------------------------- */
.content-box table { color: var(--text); }
.content-box .TableContainer, .content-box .InnerTableContainer { background: transparent; }
.content-box th, .content-box td { border-color: var(--line) !important; }
.content-box input[type=text], .content-box input[type=password], .content-box select, .content-box textarea {
	background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); padding: 5px 8px; font: inherit;
}
.content-box input[type=submit], .content-box button, .content-box .BigButton {
	background: var(--gold); color: #17120a; border: 0; border-radius: var(--radius); padding: 7px 14px; font: 600 13px var(--font-body); cursor: pointer;
}
.content-box h1, .content-box h2, .content-box h3 { font-family: var(--font-display); color: #fff; }
.content-box .Odd, .content-box .Even, .content-box tr.Odd td, .content-box tr.Even td { background: transparent !important; }
.content-box .LabelH { color: var(--gold-2); }
.NewsTicker, .Ticker { color: var(--muted); font-size: 12px; margin-bottom: 12px; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
	.layout { grid-template-columns: 200px minmax(0, 1fr); }
	.widgets { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
}
@media (max-width: 720px) {
	.topbar-inner { height: auto; flex-wrap: wrap; padding: 8px 0; gap: 10px; }
	.topbar-account { margin-left: 0; flex-wrap: wrap; }
	.layout { grid-template-columns: 1fr; }
	.sidenav { position: static; }
	.hero-title { font-size: 38px; }
}

/* ---- news tickers ------------------------------------------------------- */
.tickers { margin-bottom: 16px; }
.ticker {
	display: flex; align-items: center; gap: 10px; padding: 8px 12px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 6px; font-size: 13px;
}
.ticker-icon { width: 12px; height: 12px; }
.ticker-date { color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticker-body { color: var(--text); }
.ticker-body a { color: var(--gold-2); }

/* ---- account page ------------------------------------------------------- */
.acc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.acc-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	padding: 18px 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--text); text-align: center; transition: border-color .15s, transform .15s;
}
.acc-tile:hover { border-color: var(--gold); color: #fff; transform: translateY(-1px); }
.acc-tile-icon { font-size: 26px; line-height: 1; color: var(--gold-2); }
.acc-tile-label { font: 600 13px/1.25 var(--font-display); letter-spacing: 0.04em; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.acc-panel { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.acc-panel-title {
	padding: 10px 14px; font: 700 13px/1 var(--font-display); letter-spacing: 0.08em; color: #fff;
	background: var(--bg-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
}
.acc-count { font: 600 11px/1 var(--font-body); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px 7px; }
.acc-char { display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.acc-char:last-child { border-bottom: 0; }
.acc-char-deleted { opacity: .6; }
.acc-char-outfit { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.acc-char-outfit img { image-rendering: pixelated; }
.acc-char-name { font: 700 15px/1.2 var(--font-display); color: #fff; }
.acc-char-sub { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.acc-online { color: var(--green); }
.acc-deleted { color: var(--red); }
.acc-hidden { color: var(--muted); font-style: italic; }
.acc-char-action {
	width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--gold-2);
}
.acc-char-action:hover { border-color: var(--gold); color: #fff; }
.acc-empty { padding: 14px; color: var(--muted); }
.acc-links { display: flex; flex-direction: column; }
.acc-links a, .acc-links span { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.acc-links a:last-child, .acc-links span:last-child { border-bottom: 0; }
.acc-links a:hover { background: var(--panel); color: #fff; }
.acc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.acc-kv:last-child { border-bottom: 0; }
.acc-kv span { color: var(--muted); }
.acc-kv strong { color: #fff; font-weight: 500; text-align: right; }
.acc-premium { text-align: center; padding-bottom: 14px; }
.acc-big { font: 700 34px/1 var(--font-display); color: #fff; margin: 14px 0 4px; }
.acc-big small { font: 600 14px var(--font-body); color: var(--gold-2); margin-left: 3px; }
.acc-muted { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.acc-premium .btn { margin: 0 14px; }
.acc-disabled { opacity: .5; cursor: default; }
.acc-log { width: 100%; border-collapse: collapse; font-size: 12px; }
.acc-log td { padding: 6px 14px; border-bottom: 1px solid var(--line); }
.acc-log-ip { color: var(--muted); text-align: right; }
@media (max-width: 720px) { .acc-tiles { grid-template-columns: repeat(2, 1fr); } .acc-grid { grid-template-columns: 1fr; } }

/* account page: coming-later links + secret toggles */
.acc-links .acc-soon { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.acc-secret { display: inline-flex; align-items: center; gap: 8px; }
.acc-eye { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); cursor: pointer; padding: 1px 6px; font-size: 12px; line-height: 1.4; }
.acc-eye:hover { color: #fff; border-color: var(--gold); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ---- commands page ------------------------------------------------------ */
.cmd-intro { color: var(--muted); margin: 0 0 12px; }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmd-table th { text-align: left; padding: 8px 10px; background: var(--panel-2); color: var(--gold-2); font: 700 12px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.cmd-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-name { white-space: nowrap; width: 1%; }
.cmd-table code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: #fff; font-size: 12px; }

/* ---- vertical centering for short pages ---------------------------------- */
/* the page is a flex column: the content grid grows to fill the viewport
   and centers its rows, so short pages (online list, commands) sit in the
   middle of the screen instead of hugging the top; long pages just flow */
body { display: flex; flex-direction: column; min-height: 100vh; }
.layout { flex: 1 1 auto; align-content: center; width: 100%; }
.footer { margin-top: auto; }

/* ---- rules page --------------------------------------------------------- */
.rules-intro, .rules-outro { color: var(--muted); line-height: 1.6; }
.rules-intro { margin: 0 0 18px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); }
.rules-outro { margin-top: 18px; font-style: italic; }
.rules-section { margin: 0 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.rules-section:last-of-type { border-bottom: 0; }
.rules-section h2 { font: 700 17px/1.2 var(--font-display); color: #fff; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.rules-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #17120a; font: 700 13px var(--font-body); }
.rules-section p { margin: 0 0 8px; line-height: 1.6; }
.rules-items { margin: 0; padding-left: 20px; }
.rules-items li { margin: 0 0 7px; line-height: 1.55; }
.rules-items strong { color: var(--gold-2); }

/* ---- brand block (replaces the hero) ------------------------------------ */
.brandbox { padding: 26px 20px 0; max-width: 460px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.brandbox .hero-title { font-size: 40px; margin-bottom: 10px; }
.brandbox .hero-tagline { font-size: 14px; margin-bottom: 16px; }
.brandbox .hero-kicker { margin-bottom: 8px; }
/* wide screens: pin it in the top-left corner beside the centred columns */
/* only when the corner really is free: 1240px columns centred + 400px box + gaps */
@media (min-width: 2120px) {
	.brandbox { position: absolute; top: 72px; left: 24px; margin: 0; max-width: 400px; padding: 20px 0 0; }
}
.page-news .content-box { padding: 0; }
