/* HangoutRO theme. Same dusk palette as the launcher UI so site + launcher read as one product. */
:root {
	--night: #0C1030;
	--dusk: #16123F;
	--plum: #241A47;
	--horizon: #34213F;
	--gold: #F5B14C;
	--gold-deep: #E7902F;
	--ink: #F3EEE2;
	--muted: #AEB4E0;
	--faint: rgba(174,180,224,.16);
	--panel: rgba(16,18,50,.62);
	--panel-solid: #141640;
	--up: #7EE0A0;
	--down: #FF7BA8;
	--display: Fraunces, Georgia, "Times New Roman", serif;
	--body: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; min-height: 100vh;
	font: 15px/1.55 var(--body); color: var(--ink);
	background: var(--night);
	background-image:
		radial-gradient(90% 60% at 85% -10%, rgba(120,110,220,.22) 0%, rgba(120,110,220,0) 60%),
		linear-gradient(170deg, #0C1030 0%, #131240 55%, #1A1640 100%);
	background-attachment: fixed;
	display: flex; flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #FFC978; text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.up { color: var(--up); font-weight: 600; }
.down { color: var(--down); font-weight: 600; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 5; background: rgba(12,16,48,.72); backdrop-filter: blur(8px); border-bottom: 1px solid var(--faint); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--ink); letter-spacing: .2px; white-space: nowrap; }
.wordmark span, .foot-brand span { color: var(--gold); }
.wordmark:hover { text-decoration: none; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px 20px; flex: 1; flex-wrap: wrap; font-weight: 500; font-size: 14px; }
.site-nav a { color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav .nav-gap { flex: 1; }
.site-nav .btn { border-bottom: 0; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px !important; border-radius: 999px; background: rgba(20,22,58,.7); border: 1px solid var(--faint); color: var(--ink) !important; }
.account-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(126,224,160,.2); }
.nav-toggle { display: none; margin-left: auto; background: none; box-shadow: none; font-weight: 400; border: 1px solid var(--faint); color: var(--ink); font-size: 20px; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.admin-bar { background: rgba(245,177,76,.08); border-top: 1px solid rgba(245,177,76,.2); font-size: 13px; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 7px 0; }
.admin-bar strong { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.admin-bar a { color: var(--muted); }
.admin-bar a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: 10px; padding: 10px 18px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 14px; }
.btn:hover { text-decoration: none; }
.btn-gold { background: linear-gradient(180deg, #FFC266, var(--gold-deep)); color: #2A1A06 !important; box-shadow: 0 6px 18px rgba(231,144,47,.35); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(20,22,58,.55); border-color: rgba(174,180,224,.3); color: var(--ink) !important; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px;
	background:
		radial-gradient(80% 55% at 22% 118%, rgba(245,177,76,.34) 0%, rgba(245,150,80,.10) 34%, rgba(245,177,76,0) 60%),
		radial-gradient(120% 60% at 50% 128%, rgba(255,140,120,.14) 0%, rgba(255,140,120,0) 55%),
		radial-gradient(90% 70% at 85% -10%, rgba(120,110,220,.30) 0%, rgba(120,110,220,0) 55%),
		linear-gradient(160deg, #0C1030 0%, #16123F 44%, #241A47 74%, #34213F 100%);
	border-bottom: 1px solid rgba(245,177,76,.25);
}
.hero .stars { position: absolute; inset: 0 0 auto 0; height: 60%; opacity: .5; pointer-events: none;
	background-image:
		radial-gradient(1px 1px at 8% 30%, #fff, transparent), radial-gradient(1px 1px at 18% 70%, #dfe3ff, transparent),
		radial-gradient(1px 1px at 33% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 52% 55%, #cfe0ff, transparent),
		radial-gradient(1px 1px at 68% 35%, #fff, transparent), radial-gradient(1px 1px at 80% 80%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 91% 25%, #e8ecff, transparent), radial-gradient(1px 1px at 44% 88%, #fff, transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.5fr .9fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.display { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; margin: 0 0 22px; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(245,177,76,.18); }
.lede { font-size: 17px; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status-card { display: block; padding: 22px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--faint); box-shadow: 0 18px 40px rgba(6,7,20,.4); backdrop-filter: blur(4px); color: var(--ink); justify-self: end; width: 100%; max-width: 330px; }
.status-card:hover { text-decoration: none; border-color: rgba(174,180,224,.35); color: var(--ink); }
.status-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.status-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 4px rgba(255,123,168,.22); }
.status-head .dot.up { background: var(--up); box-shadow: 0 0 0 4px rgba(126,224,160,.22); }
.status-big { font-family: var(--display); font-size: 52px; line-height: 1; margin: 18px 0 16px; font-variant-numeric: tabular-nums; }
.status-big small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); margin-top: 6px; }
.status-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--faint); font-size: 13px; }
.status-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--faint); color: var(--muted); }
.status-list li:last-child { border-bottom: 0; }

.home-flash .message, .home-flash #submenu, .home-flash #pagemenu { width: min(1100px, calc(100% - 40px)); margin: 16px auto 0; }
.home-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 28px; margin-bottom: 40px; align-items: start; }
.home-aside { display: grid; gap: 24px; }
.section-title { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 16px; }
.news-item { padding: 18px 0; border-top: 1px solid var(--faint); }
.news-item h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.news-meta { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.news-body p { margin: 0 0 10px; }
.more { margin: 14px 0 0; font-size: 14px; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; padding: 12px 0; border-top: 1px solid var(--faint); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--gold); border: 1px solid rgba(245,177,76,.45); }
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: 14px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- content card (all inner pages) ---------- */
.site-main { flex: 1; }
.is-page .site-main > .wrap { padding: 32px 0 48px; }
.card { background: var(--panel); border: 1px solid var(--faint); border-radius: 16px; padding: 26px 28px; box-shadow: 0 18px 40px rgba(6,7,20,.3); }
.content { overflow-x: auto; }
.content h2, .content h3, .content h4 { font-family: var(--display); font-weight: 600; margin: 0 0 14px; }
.content h2 { font-size: 30px; letter-spacing: -.01em; }
.content h3 { font-size: 20px; margin-top: 26px; color: var(--ink); }
.content h4 { font-size: 17px; }
.content h3:first-letter { color: inherit; }
.content p { margin: 0 0 12px; }
.content ol, .content ul { padding-left: 22px; }
.content li { margin-bottom: 6px; }
.content code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 5px; }
.content small { color: var(--muted); }
.content hr { border: 0; border-top: 1px solid var(--faint); margin: 20px 0; }
.server-pick { margin-bottom: 14px; color: var(--muted); font-size: 13px; }

.message, .notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; }
.message { background: rgba(126,224,160,.12); border-color: rgba(126,224,160,.4); color: #CFF5DC; }
.notice { background: rgba(245,177,76,.12); border-color: rgba(245,177,76,.45); }
.red { color: var(--down); }
.green { color: var(--up); }
#submenu, #pagemenu { font-size: 13px; color: var(--muted); margin: 0 0 18px; padding: 10px 14px; background: rgba(0,0,0,.25); border-radius: 10px; }
#submenu a, #pagemenu a { color: var(--ink); margin: 0 2px; }
#submenu a.current-sub-menu { color: var(--gold); font-weight: 600; }

/* tables (module views use these classes) */
.content table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 16px; }
.content th, .content td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--faint); }
.content th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.content th a { color: var(--muted); }
.content th a:hover { color: var(--ink); }
.horizontal-table tr:hover td { background: rgba(255,255,255,.025); }
.horizontal-table tr.top-ranked td { background: rgba(245,177,76,.1); }
.horizontal-table tr.empty-row td { color: rgba(174,180,224,.35); }
.vertical-table th { width: 1%; white-space: nowrap; background: rgba(0,0,0,.18); }
.generic-form-table th { width: 1%; white-space: nowrap; text-transform: none; font-size: 14px; color: var(--ink); letter-spacing: 0; }
.generic-form-table th, .generic-form-table td { border-bottom: 0; padding: 8px 12px; }
.generic-form-table td p { margin: 0; }
.job-classes td, .job-classes th { border-bottom: 1px solid var(--faint); }
#server_status .status:first-child, #server_status .server { font-weight: 600; text-transform: none; font-size: 14px; color: var(--ink); letter-spacing: 0; }
#server_status tr:first-child td { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.character-stats td { border: 0; padding: 4px 8px; }
.not-applicable { color: rgba(174,180,224,.45); font-style: italic; }
.state-banned, .state-permanently-banned { color: var(--down); }
.online { color: var(--up); } .offline { color: var(--down); }
.info-text, .info-text-total, .info-text-results { color: var(--muted); font-size: 13px; }
.pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; font-size: 13px; }
.pages a { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--faint); color: var(--muted); }
.pages a:hover { color: var(--ink); text-decoration: none; }
.pages .current-page { background: var(--gold); border-color: var(--gold); color: #2A1A06; font-weight: 600; }
.toggler { font-size: 13px; }
.search-form { display: none; } /* opened by the Search... toggler, as in the default theme */
.search-form, .search-form2 { padding: 12px 16px; margin: 0 0 16px; background: rgba(0,0,0,.25); border-radius: 10px; font-size: 13px; }
.search-form p, .search-form2 p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.search-form label, .search-form2 label { color: var(--muted); }
.newsDiv .newsCont { padding: 0 0 18px; border-bottom: 1px solid var(--faint); margin-bottom: 18px; }
.newsDate { color: var(--muted); }
.credit-balance { padding: 10px 14px; background: rgba(245,177,76,.1); border-radius: 10px; margin-bottom: 16px; }
.credit-balance .balance-amount { color: var(--gold); font-weight: 600; }
.shop-table td { vertical-align: top; }
.script-line-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* forms */
input[type=text], input[type=password], input[type=email], input[type=file], textarea, select {
	font: inherit; color: var(--ink); background: rgba(6,7,24,.6); border: 1px solid rgba(174,180,224,.3); border-radius: 8px; padding: 8px 11px; max-width: 100%;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { border-color: var(--gold); outline: none; background: rgba(6,7,24,.85); }
select option { background: var(--panel-solid); color: var(--ink); }
textarea { min-height: 120px; width: 100%; }
input[type=submit], input[type=button], input[type=reset], button, .submit_button {
	font: inherit; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 9px; cursor: pointer; border: 1px solid transparent;
	background: linear-gradient(180deg, #FFC266, var(--gold-deep)); color: #2A1A06; box-shadow: 0 4px 14px rgba(231,144,47,.3);
}
input[type=button], input[type=reset] { background: rgba(20,22,58,.55); border-color: rgba(174,180,224,.3); color: var(--ink); box-shadow: none; }
input[type=submit]:hover, button:hover { filter: brightness(1.06); }
label { cursor: pointer; }
.security-code img { border-radius: 8px; display: block; margin-bottom: 8px; }

/* unitip tooltip override (rank titles etc.) */
.unitip, #unitip { color: #2A1A06; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--faint); background: rgba(6,7,24,.55); padding: 22px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot-brand { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.foot-brand small { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.hero { padding: 56px 0 64px; }
	.hero-inner { grid-template-columns: 1fr; gap: 32px; }
	.status-card { justify-self: stretch; max-width: none; }
	.home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.bar { flex-wrap: wrap; gap: 12px; padding: 12px 0; min-height: 0; }
	.nav-toggle { display: block; }
	.site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 8px; }
	.site-nav.open { display: flex; }
	.site-nav a { padding: 9px 4px; border-bottom: 1px solid var(--faint); }
	.site-nav a.active { border-bottom-color: var(--faint); color: var(--gold); }
	.site-nav .nav-gap { display: none; }
	.site-nav .btn { margin-top: 8px; }
	.card { padding: 20px 18px; border-radius: 12px; }
	.wrap { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
