:root {
	color-scheme: dark;
	--realm-bg: #080b08;
	--realm-gold-strong: #f1c86c;
	--realm-text: #fff6dd;
	--realm-muted: #d7ccb5;
	--realm-border: rgba(255, 239, 194, 0.2);
}

* {
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
}

html {
	min-width: 320px;
	height: 100%;
	-webkit-touch-callout: none;
	overflow: hidden;
	overscroll-behavior: none;
	scroll-behavior: smooth;
	background: var(--realm-bg);
}

img,
a {
	-webkit-user-drag: none;
}

body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
	background: var(--realm-bg);
	color: var(--realm-text);
	font-family:
		Inter,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
}

[hidden] {
	display: none !important;
}

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

.account-control {
	position: fixed;
	z-index: 20;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 0.5rem;
	text-align: left;
}

.account-launch-button {
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid var(--realm-gold-strong);
	border-radius: 6px;
	background: rgba(8, 11, 8, 0.94);
	color: var(--realm-text);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

.account-launch-button:hover,
.account-launch-button:focus-visible,
.account-launch-button.is-open {
	background: var(--realm-gold-strong);
	color: #080b08;
	outline: none;
}

.account-popover {
	display: grid;
	width: min(22rem, calc(100vw - 2rem));
	gap: 0.75rem;
	padding: 0.8rem;
	border: 1px solid var(--realm-border);
	border-radius: 8px;
	background: rgba(8, 11, 8, 0.94);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

.account-mode-tabs,
.dashboard-tabs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 0.35rem;
	padding: 0.25rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.74);
}

.account-mode-tabs button,
.dashboard-tabs button {
	min-height: 2.2rem;
	padding: 0 0.65rem;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--realm-muted);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	cursor: pointer;
}

.account-mode-tabs button:hover,
.account-mode-tabs button:focus-visible,
.account-mode-tabs button.is-active,
.dashboard-tabs button:hover,
.dashboard-tabs button:focus-visible,
.dashboard-tabs button.is-active {
	background: var(--realm-gold-strong);
	color: #080b08;
	outline: none;
}

.account-form {
	display: grid;
	gap: 0.45rem;
}

.account-form label,
.log-toolbar label {
	color: var(--realm-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.account-form input,
.log-toolbar select,
.ticket-reply-form textarea,
.ticket-create-form select,
.ticket-create-form textarea,
.account-service-panel select,
.rename-form input,
.staff-toolbar select,
.staff-search-form input,
.staff-action-form input,
.staff-duration-action select,
.staff-ticket-create textarea {
	width: 100%;
	min-width: 0;
	height: 2.4rem;
	padding: 0 0.7rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.96);
	color: #fff;
	font: inherit;
	font-size: 0.85rem;
	letter-spacing: 0;
	outline: none;
	-webkit-user-select: text;
	user-select: text;
}

.account-form input:focus,
.log-toolbar select:focus,
.ticket-reply-form textarea:focus,
.ticket-create-form select:focus,
.ticket-create-form textarea:focus,
.account-service-panel select:focus,
.rename-form input:focus,
.staff-toolbar select:focus,
.staff-search-form input:focus,
.staff-action-form input:focus,
.staff-duration-action select:focus,
.staff-ticket-create textarea:focus {
	border-color: var(--realm-gold-strong);
	box-shadow: 0 0 0 2px rgba(241, 200, 108, 0.14);
}

.account-primary-button,
.account-secondary-button,
.staff-danger-button {
	min-height: 2.4rem;
	padding: 0 0.8rem;
	border: 1px solid var(--realm-gold-strong);
	border-radius: 6px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}

.account-primary-button {
	background: var(--realm-gold-strong);
	color: #080b08;
}

.account-secondary-button {
	background: transparent;
	color: var(--realm-text);
}

.staff-danger-button {
	border-color: #db6262;
	background: #db6262;
	color: #080b08;
}

.account-primary-button:hover,
.account-primary-button:focus-visible,
.account-secondary-button:hover,
.account-secondary-button:focus-visible,
.staff-danger-button:hover,
.staff-danger-button:focus-visible {
	border-color: #fff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.account-primary-button:disabled,
.account-secondary-button:disabled,
.staff-danger-button:disabled,
.account-form input:disabled,
.ticket-reply-form textarea:disabled {
	opacity: 0.55;
	cursor: wait;
}

.account-session {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	color: var(--realm-muted);
	font-size: 0.85rem;
}

.account-session p {
	grid-column: 1 / -1;
	margin: 0;
}

.account-session strong {
	color: var(--realm-gold-strong);
}

.account-message {
	min-height: 1rem;
	margin: 0;
	color: #9ee6ad;
	font-size: 0.72rem;
	line-height: 1.35;
}

.account-message.is-error,
.dashboard-message.is-error {
	color: #ff9c9c;
}

.player-dashboard {
	width: min(96vw, 82rem);
	max-width: none;
	height: min(92vh, 58rem);
	max-height: none;
	padding: 0;
	border: 1px solid var(--realm-gold-strong);
	border-radius: 8px;
	background: #080b08;
	color: var(--realm-text);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.player-dashboard::backdrop {
	background: rgba(0, 0, 0, 0.84);
}

.dashboard-shell {
	display: grid;
	height: 100%;
	grid-template-rows: auto auto auto minmax(0, 1fr);
	gap: 0.75rem;
	padding: 1rem;
}

.dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.dashboard-header .realm-kicker {
	margin-bottom: 0.25rem;
}

.dashboard-header h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.65rem;
	letter-spacing: 0;
}

.dashboard-close {
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	place-items: center;
	padding: 0;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: transparent;
	color: var(--realm-text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.dashboard-close:hover,
.dashboard-close:focus-visible {
	border-color: var(--realm-gold-strong);
	color: var(--realm-gold-strong);
	outline: none;
}

.dashboard-tabs {
	display: flex;
	width: fit-content;
	max-width: 100%;
}

.dashboard-tabs button {
	min-width: 7.5rem;
}

.dashboard-message {
	min-height: 1.1rem;
	margin: 0;
	color: #9ee6ad;
	font-size: 0.78rem;
}

.dashboard-view {
	min-height: 0;
	overflow: auto;
	scrollbar-color: var(--realm-gold-strong) rgba(17, 23, 15, 0.8);
}

.character-layout {
	display: grid;
	min-height: 100%;
	grid-template-columns: 15rem minmax(0, 1fr);
	gap: 1rem;
}

.character-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-right: 0.5rem;
	border-right: 1px solid var(--realm-border);
}

.character-list-button {
	display: grid;
	gap: 0.2rem;
	padding: 0.75rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.82);
	color: var(--realm-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.character-list-button:hover,
.character-list-button:focus-visible,
.character-list-button.is-active {
	border-color: var(--realm-gold-strong);
	outline: none;
}

.character-list-button strong {
	color: #fff;
	font-size: 0.95rem;
}

.character-list-button span {
	color: var(--realm-muted);
	font-size: 0.72rem;
}

.character-detail {
	min-width: 0;
}

.character-summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--realm-border);
}

.character-summary h3,
.staff-panel h3 {
	margin: 0;
	color: #fff;
	font-size: 1.05rem;
	letter-spacing: 0;
}

.character-summary p {
	margin: 0.25rem 0 0;
	color: var(--realm-muted);
	font-size: 0.82rem;
}

.character-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.character-facts span {
	padding: 0.35rem 0.55rem;
	border: 1px solid var(--realm-border);
	border-radius: 5px;
	background: rgba(17, 23, 15, 0.82);
	color: var(--realm-muted);
	font-size: 0.72rem;
}

.inventory-section {
	margin-top: 1rem;
}

.inventory-section h4 {
	margin: 0 0 0.55rem;
	color: var(--realm-gold-strong);
	font-size: 0.78rem;
	text-transform: uppercase;
}

.equipment-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
}

.equipment-slot,
.inventory-item {
	display: grid;
	min-height: 3.3rem;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.72);
}

.equipment-slot:has(.inventory-item-copy:only-child),
.inventory-item:has(.inventory-item-copy:only-child) {
	grid-template-columns: 1fr;
}

.item-icon {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--realm-border);
	border-radius: 4px;
	background: #050705;
	object-fit: cover;
}

.inventory-item-copy {
	min-width: 0;
}

.equipment-slot small,
.inventory-item small {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--realm-muted);
	font-size: 0.66rem;
	text-transform: uppercase;
}

.equipment-slot strong,
.inventory-item strong {
	display: block;
	color: #fff;
	font-size: 0.78rem;
	overflow-wrap: anywhere;
}

.equipment-slot span,
.inventory-item span {
	display: block;
	margin-top: 0.2rem;
	color: var(--realm-muted);
	font-size: 0.68rem;
}

.inventory-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.45rem;
}

.item-quality-2 strong {
	color: #66d36e;
}

.item-quality-3 strong {
	color: #5fa8ff;
}

.item-quality-4 strong {
	color: #c57cff;
}

.item-quality-5 strong {
	color: #ff9f43;
}

.ticket-list {
	display: grid;
	gap: 0.65rem;
}

.ticket-create-form {
	display: grid;
	grid-template-columns: minmax(10rem, 0.35fr) minmax(16rem, 1fr) auto;
	align-items: end;
	gap: 0.65rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--realm-border);
}

.ticket-create-form > div {
	display: grid;
	gap: 0.35rem;
}

.ticket-create-form label,
.account-service-panel label,
.rename-form label {
	color: var(--realm-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.ticket-create-form textarea {
	height: 4.5rem;
	padding-block: 0.55rem;
	resize: vertical;
}

.ticket-entry {
	padding: 0.8rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.72);
}

.ticket-entry-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ticket-entry h3 {
	margin: 0;
	color: #fff;
	font-size: 0.92rem;
}

.ticket-status {
	padding: 0.25rem 0.45rem;
	border: 1px solid var(--realm-border);
	border-radius: 4px;
	color: var(--realm-gold-strong);
	font-size: 0.66rem;
	font-weight: 900;
	text-transform: uppercase;
}

.ticket-entry-text {
	margin: 0.65rem 0 0;
	color: var(--realm-muted);
	font-size: 0.8rem;
	line-height: 1.55;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	-webkit-user-select: text;
	user-select: text;
}

.ticket-response {
	margin-top: 0.65rem;
	padding: 0.65rem;
	border-left: 3px solid var(--realm-gold-strong);
	background: rgba(241, 200, 108, 0.07);
}

.ticket-reply-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.ticket-reply-form textarea {
	height: 4rem;
	padding-block: 0.55rem;
	resize: vertical;
}

.account-changes-layout {
	display: grid;
	grid-template-columns: minmax(18rem, 0.75fr) minmax(22rem, 1.25fr);
	gap: 1rem;
}

.account-service-panel {
	min-width: 0;
}

.account-service-panel h3 {
	margin: 0 0 0.75rem;
	color: #fff;
	font-size: 1rem;
}

.account-service-panel > label {
	display: block;
	margin-bottom: 0.35rem;
}

.account-service-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 0.65rem;
}

.rename-form {
	display: grid;
	gap: 0.35rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--realm-border);
}

.rename-form > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem;
}

.recovery-list {
	display: grid;
	gap: 0.5rem;
}

.recovery-item {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.72);
}

.recovery-item-copy {
	display: grid;
	min-width: 0;
	gap: 0.2rem;
}

.recovery-item-copy strong {
	color: #fff;
	font-size: 0.82rem;
	overflow-wrap: anywhere;
}

.recovery-item-copy span {
	color: var(--realm-muted);
	font-size: 0.68rem;
}

.staff-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.staff-stat {
	padding: 0.7rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.72);
}

.staff-stat span {
	display: block;
	color: var(--realm-muted);
	font-size: 0.68rem;
	text-transform: uppercase;
}

.staff-stat strong {
	display: block;
	margin-top: 0.2rem;
	color: #fff;
	font-size: 1.1rem;
}

.staff-toolbar {
	display: grid;
	grid-template-columns: auto minmax(12rem, 20rem) auto;
	align-items: end;
	justify-content: start;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.staff-toolbar label {
	grid-column: 1 / -1;
	color: var(--realm-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.staff-operations {
	display: grid;
	grid-template-columns: minmax(24rem, 1fr) minmax(24rem, 1fr);
	gap: 1rem;
}

.staff-panel {
	min-width: 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--realm-border);
}

.staff-panel h3 {
	margin-bottom: 0.55rem;
}

.staff-ticket-entry {
	display: grid;
	gap: 0.65rem;
}

.staff-ticket-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	color: var(--realm-muted);
	font-size: 0.7rem;
}

.staff-ticket-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.staff-ticket-response-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem;
}

.staff-ticket-response-form textarea,
.staff-ticket-create textarea {
	width: 100%;
	min-height: 4.5rem;
	padding: 0.55rem 0.7rem;
	resize: vertical;
}

.staff-search-form,
.staff-action-form,
.staff-ticket-create {
	display: grid;
	gap: 0.35rem;
}

.staff-search-form label,
.staff-action-form label,
.staff-ticket-create label {
	color: var(--realm-muted);
	font-size: 0.72rem;
	font-weight: 800;
}

.staff-search-form > div,
.staff-action-form > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.45rem;
}

.staff-player-results {
	display: grid;
	gap: 0.4rem;
	margin-top: 0.65rem;
}

.staff-player-result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(17, 23, 15, 0.72);
}

.staff-player-result strong,
.staff-selected-player strong {
	display: block;
	color: #fff;
	font-size: 0.82rem;
}

.staff-player-result span,
.staff-selected-player span {
	display: block;
	margin-top: 0.15rem;
	color: var(--realm-muted);
	font-size: 0.68rem;
}

.staff-selected-player {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--realm-border);
}

.staff-selected-player[hidden] {
	display: none;
}

.staff-player-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.staff-duration-action {
	grid-template-columns: 7rem minmax(0, 1fr) auto auto !important;
}

.staff-danger-form {
	padding-top: 0.7rem;
	border-top: 1px solid rgba(219, 98, 98, 0.34);
}

.staff-ticket-create {
	padding-top: 0.75rem;
	border-top: 1px solid var(--realm-border);
}

.staff-review-layout {
	display: grid;
	grid-template-columns: minmax(20rem, 0.75fr) minmax(24rem, 1.25fr);
	gap: 1rem;
	margin-top: 1rem;
}

.staff-audit-list {
	display: grid;
	max-height: 30rem;
	gap: 0.4rem;
	overflow: auto;
}

.staff-audit-entry {
	padding: 0.55rem;
	border-left: 2px solid var(--realm-gold-strong);
	background: rgba(17, 23, 15, 0.62);
}

.staff-audit-entry strong {
	display: block;
	color: #fff;
	font-size: 0.75rem;
}

.staff-audit-entry span {
	display: block;
	margin-top: 0.2rem;
	color: var(--realm-muted);
	font-size: 0.66rem;
	overflow-wrap: anywhere;
}

.log-viewer {
	min-width: 0;
}

.log-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}

.log-toolbar label {
	grid-column: 1 / -1;
}

.log-viewer pre {
	height: 30rem;
	margin: 0;
	padding: 0.75rem;
	overflow: auto;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: #050705;
	color: #d7e2d3;
	font: 0.72rem/1.5 Consolas, "Courier New", monospace;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	-webkit-user-select: text;
	user-select: text;
}

.hero {
	display: grid;
	height: 100vh;
	height: 100svh;
	min-height: 100vh;
	min-height: 100svh;
	place-items: center;
	padding: 3rem 1.25rem;
	background-image:
		linear-gradient(
			90deg,
			rgba(8, 11, 8, 0.94) 0%,
			rgba(8, 11, 8, 0.62) 50%,
			rgba(8, 11, 8, 0.94) 100%
		),
		linear-gradient(180deg, rgba(8, 11, 8, 0.08), var(--realm-bg)),
		url("/assets/realm-hero.jpg");
	background-position: center;
	background-size: cover;
	text-align: center;
}

.hero-content {
	width: 100%;
	max-width: 980px;
	min-width: 0;
}

.realm-kicker {
	margin: 0 0 1rem;
	color: var(--realm-gold-strong);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 6.5rem;
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: 0;
}

.hero-copy {
	max-width: 650px;
	margin: 1.5rem auto 0;
	color: var(--realm-muted);
	font-size: 1.2rem;
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.download-button,
.install-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	border: 2px solid #fff;
	border-radius: 8px;
	background: #fff;
	color: #080b08;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		background-color 180ms ease,
		color 180ms ease;
}

.install-button {
	border-color: var(--realm-border);
	background: rgba(17, 23, 15, 0.86);
	color: var(--realm-text);
}

.download-button:hover,
.install-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.install-button:hover {
	border-color: var(--realm-gold-strong);
	background: var(--realm-gold-strong);
	color: #080b08;
}

.download-button:focus-visible,
.install-button:focus-visible,
.install-section a:focus-visible {
	outline: 3px solid var(--realm-gold-strong);
	outline-offset: 4px;
}

.hero-stats {
	display: grid;
	max-width: 980px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 2.25rem auto 0;
}

.stat-box {
	min-height: 86px;
	padding: 1rem;
	border: 1px solid var(--realm-border);
	border-radius: 8px;
	background: rgba(17, 23, 15, 0.9);
}

.stat-label {
	margin: 0 0 0.35rem;
	color: var(--realm-muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.stat-value {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin: 0;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 900;
	overflow-wrap: anywhere;
	text-align: center;
}

.status-dot {
	width: 0.65rem;
	height: 0.65rem;
	flex: 0 0 auto;
	border-radius: 50%;
}

.status-dot--checking {
	background: #f1c86c;
	box-shadow: 0 0 0 3px rgba(241, 200, 108, 0.16);
}

.status-dot--online {
	background: #3dcc68 !important;
	box-shadow: 0 0 0 3px rgba(61, 204, 104, 0.16) !important;
}

.status-dot--offline {
	background: #dc5a5a !important;
	box-shadow: 0 0 0 3px rgba(220, 90, 90, 0.16) !important;
}

.status-dot--unavailable {
	background: #a59d8e;
	box-shadow: 0 0 0 3px rgba(165, 157, 142, 0.16);
}

.phase-value {
	font-size: 0.92rem;
	line-height: 1.3;
}

.realm-disclaimer {
	max-width: 760px;
	margin: 1.25rem auto 0;
	color: rgba(215, 204, 181, 0.72);
	font-size: 0.75rem;
	line-height: 1.5;
}

.install-section {
	display: grid;
	height: 100vh;
	height: 100svh;
	scroll-margin-top: 1rem;
	place-items: center;
	padding: 2rem 1.25rem;
	background:
		radial-gradient(circle at top, rgba(241, 200, 108, 0.08), transparent 35rem),
		#0c100c;
}

.install-content {
	width: 100%;
	max-width: 780px;
	min-width: 0;
	margin: 0 auto;
	text-align: center;
}

.install-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.5rem, 7vw, 4rem);
	line-height: 1;
}

.install-intro {
	margin: 1rem 0 2rem;
	color: var(--realm-muted);
	font-size: 1.05rem;
}

.install-steps {
	display: grid;
	width: 100%;
	min-width: 0;
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	text-align: left;
	counter-reset: install-step;
}

.install-steps li {
	display: grid;
	width: 100%;
	min-width: 0;
	grid-template-columns: 3rem minmax(0, 1fr) 2.75rem;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--realm-border);
	border-radius: 10px;
	background: rgba(17, 23, 15, 0.9);
	counter-increment: install-step;
}

.install-steps li[hidden] {
	display: none;
}

.install-steps li::before {
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	border-radius: 50%;
	background: var(--realm-gold-strong);
	color: #080b08;
	font-size: 1.1rem;
	font-weight: 900;
	content: counter(install-step);
}

.install-steps h3 {
	margin: 0 0 0.4rem;
	color: #fff;
	font-size: 1.05rem;
	overflow-wrap: anywhere;
}

.install-steps p {
	margin: 0;
	color: var(--realm-muted);
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.install-steps li > div {
	min-width: 0;
}

.step-image-button {
	position: relative;
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	padding: 0;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: rgba(8, 11, 8, 0.7);
	color: var(--realm-gold-strong);
	cursor: pointer;
}

.step-image-button:hover,
.step-image-button:focus-visible {
	border-color: var(--realm-gold-strong);
	background: rgba(241, 200, 108, 0.12);
	outline: none;
}

.picture-icon {
	position: relative;
	width: 1.15rem;
	height: 0.95rem;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.picture-icon::before {
	position: absolute;
	top: 0.14rem;
	right: 0.16rem;
	width: 0.2rem;
	height: 0.2rem;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.picture-icon::after {
	position: absolute;
	right: 0.1rem;
	bottom: 0.08rem;
	left: 0.1rem;
	height: 0.42rem;
	background: currentColor;
	clip-path: polygon(0 100%, 32% 28%, 50% 65%, 70% 18%, 100% 100%);
	content: "";
}

.step-image-preview {
	position: absolute;
	z-index: 10;
	right: -0.5rem;
	bottom: calc(100% + 0.75rem);
	display: none;
	width: min(28rem, 55vw);
	aspect-ratio: 16 / 9;
	padding: 0.35rem;
	border: 1px solid var(--realm-gold-strong);
	border-radius: 6px;
	background: #080b08;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

.step-image-preview::after {
	position: absolute;
	right: 1.15rem;
	bottom: -0.45rem;
	width: 0.75rem;
	height: 0.75rem;
	border-right: 1px solid var(--realm-gold-strong);
	border-bottom: 1px solid var(--realm-gold-strong);
	background: #080b08;
	content: "";
	transform: rotate(45deg);
}

.step-image-preview img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 3px;
	object-fit: cover;
}

@media (hover: hover) {
	.step-image-button:hover .step-image-preview,
	.step-image-button:focus-visible .step-image-preview {
		display: block;
	}
}

.image-modal {
	width: min(94vw, 78rem);
	max-width: none;
	max-height: 92vh;
	padding: 0;
	border: 1px solid var(--realm-gold-strong);
	border-radius: 8px;
	background: #080b08;
	color: var(--realm-text);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.image-modal::backdrop {
	background: rgba(0, 0, 0, 0.88);
}

.image-modal-header {
	display: flex;
	min-height: 3rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0.75rem 0.5rem 1rem;
	border-bottom: 1px solid var(--realm-border);
}

.image-modal-header p {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
}

.image-modal-close {
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	place-items: center;
	padding: 0;
	border: 1px solid var(--realm-border);
	border-radius: 6px;
	background: transparent;
	color: var(--realm-text);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
	border-color: var(--realm-gold-strong);
	color: var(--realm-gold-strong);
	outline: none;
}

.image-modal > img {
	display: block;
	width: 100%;
	max-height: calc(92vh - 3rem);
	object-fit: contain;
}

.install-steps a {
	color: var(--realm-gold-strong);
	font-weight: 700;
}

.install-steps code {
	padding: 0.15rem 0.35rem;
	border: 1px solid rgba(241, 200, 108, 0.18);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.3);
	color: var(--realm-text);
	font-size: 0.9em;
	overflow-wrap: anywhere;
}

.install-pagination {
	display: grid;
	grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr);
	align-items: center;
	gap: 1rem;
	margin: 0 0 1rem;
}

.install-pagination p {
	min-width: 8.5rem;
	margin: 0;
	color: var(--realm-muted);
	font-size: 0.9rem;
	font-weight: 800;
}

.install-page-button {
	min-height: 44px;
	padding: 0.65rem 1rem;
	border: 1px solid var(--realm-border);
	border-radius: 8px;
	background: rgba(17, 23, 15, 0.9);
	color: var(--realm-text);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.install-page-button:hover:not(:disabled),
.install-page-button:focus-visible {
	border-color: var(--realm-gold-strong);
	color: var(--realm-gold-strong);
}

.install-page-button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.back-to-top {
	min-height: 44px;
}

@media (max-width: 760px) {
	.account-control {
		top: 0.75rem;
		right: 0.75rem;
	}

	.player-dashboard {
		width: 100vw;
		height: 100vh;
		height: 100svh;
		border: 0;
		border-radius: 0;
	}

	.character-layout {
		grid-template-columns: 1fr;
	}

	.character-list {
		flex-direction: row;
		overflow-x: auto;
		padding: 0 0 0.5rem;
		border-right: 0;
		border-bottom: 1px solid var(--realm-border);
	}

	.character-list-button {
		min-width: 11rem;
	}

	.equipment-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.inventory-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.staff-operations,
	.staff-review-layout {
		grid-template-columns: 1fr;
	}

	.account-changes-layout {
		grid-template-columns: 1fr;
	}

	.ticket-create-form {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 4.5rem 1.25rem 2.5rem;
	}

	.hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-title {
		font-size: 4.5rem;
	}

	.hero-copy {
		font-size: 1.05rem;
	}
}

@media (max-width: 520px) {
	.hero {
		padding: 4.5rem 1rem 2rem;
	}

	.dashboard-shell {
		padding: 0.75rem;
	}

	.dashboard-tabs {
		width: 100%;
		overflow: hidden;
	}

	.dashboard-tabs button {
		min-width: 0;
		flex: 1 1 0;
		padding-inline: 0.25rem;
		font-size: 0.68rem;
		white-space: normal;
	}

	.inventory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ticket-reply-form {
		grid-template-columns: 1fr;
	}

	.staff-toolbar,
	.staff-search-form > div,
	.staff-action-form > div,
	.staff-ticket-response-form,
	.staff-duration-action {
		grid-template-columns: 1fr !important;
	}

	.staff-toolbar label {
		grid-column: auto;
	}

	.rename-form > div,
	.account-service-actions {
		grid-template-columns: 1fr;
	}

	.recovery-item {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}

	.recovery-item .account-primary-button {
		grid-column: 1 / -1;
	}

	.staff-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-title {
		font-size: 2.8rem;
	}

	.hero-copy {
		font-size: 1rem;
	}

	.download-button {
		width: 100%;
		max-width: 20rem;
	}

	.install-button {
		width: 100%;
		max-width: 20rem;
	}

	.hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
		margin-top: 1.5rem;
	}

	.stat-box {
		min-height: 74px;
		padding: 0.75rem 0.5rem;
	}

	.stat-label {
		font-size: 0.68rem;
	}

	.stat-value {
		font-size: 0.92rem;
	}

	.phase-value {
		font-size: 0.82rem;
	}

	.install-section {
		padding: 1.5rem 1rem;
	}

	.install-steps li {
		position: relative;
		grid-template-columns: 2.5rem minmax(0, 1fr);
		gap: 0.75rem;
		padding: 1rem 4rem 1rem 1rem;
	}

	.install-steps li::before {
		width: 2.5rem;
		height: 2.5rem;
	}

	.step-image-button {
		position: absolute;
		top: 50%;
		right: 0.75rem;
		width: 2.5rem;
		height: 2.5rem;
		transform: translateY(-50%);
	}

	.install-title {
		font-size: 2.25rem;
	}

	.install-intro {
		margin: 0.75rem 0 1.25rem;
	}

	.install-pagination {
		grid-template-columns: 1fr 1fr;
		gap: 0.65rem;
	}

	.install-pagination p {
		grid-column: 1 / -1;
		grid-row: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.download-button,
	.install-button {
		transition: none;
	}
}

.error-page {
	display: grid;
	min-height: 100vh;
	min-height: 100svh;
	place-items: center;
	padding: 2rem 1rem;
	background-image:
		linear-gradient(rgba(8, 11, 8, 0.82), rgba(8, 11, 8, 0.95)),
		url("/assets/realm-hero.jpg");
	background-position: center;
	background-size: cover;
	text-align: center;
}

.error-code {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 8rem;
	line-height: 0.9;
	letter-spacing: 0;
}

.error-copy {
	max-width: 35rem;
	margin: 1.5rem auto;
	color: var(--realm-muted);
	font-size: 1.1rem;
	line-height: 1.7;
}

@media (max-width: 520px) {
	.error-code {
		font-size: 5rem;
	}

	.error-copy {
		font-size: 1rem;
	}
}
