/*
 * OpenMU Classic - site and editor stylesheet.
 *
 * The look is the Season 6 game interface: every texture below is a file of the MU client
 * (Data/Interface), cut to twice its size by tools/art/assets.py and drawn at the client's own
 * pixel size (sharp on high-density screens). Text colours of item lines are the client's own
 * (TEXT_COLOR_* of the game: excellent green, option blue, notice yellow, requirement red).
 *
 * Sections:
 *   1. Tokens               9. Navigation              17. Plugin: OpenMU WP Connect
 *   2. Page                10. Hero (theme block)       18. Orbs (theme block)
 *   3. Buttons             11. Notice (theme block)     19. Roster (theme block)
 *   4. Form fields         12. Portal layout            20. Footer
 *   5. Game window         13. Posts and lists          21. Editor-only adjustments live in editor.css
 *   6. Inset, tooltip      14. Text blocks              22. Responsive
 *   7. Separators          15. Media blocks             23. Motion and print
 *   8. Top bar             16. Widgets and site blocks
 *
 * General element rules use :where() so they stay weaker than block styles and plugin styles.
 */

/* ===== 1. Tokens ======================================================================== */
:root {
	--cls-gold: var(--wp--preset--color--gold, #e8c56f);
	--cls-gold-hi: #fff0b8;
	--cls-text: var(--wp--preset--color--parchment, #d8d1c3);
	--cls-quiet: var(--wp--preset--color--ash, #a39a8b);
	--cls-silver: var(--wp--preset--color--silver, #b9bec4);
	--cls-abyss: var(--wp--preset--color--abyss, #0b0a09);
	--cls-line: rgb(255 255 255 / 9%);
	--cls-head: var(--wp--preset--font-family--heading, Georgia, serif);
	--cls-body: var(--wp--preset--font-family--body, Tahoma, sans-serif);
	/* Client text colours. */
	--cls-excellent: #1aff80;
	--cls-option: #80b3ff;
	--cls-notice: #ffcc1a;
	--cls-requirement: #ff5a3c;
	--cls-party: #e66b0a;
	--cls-ancient-bg: #0b2f6b;
	/* Window frame: slices of window.webp (image px) and their drawn widths (CSS px). */
	--cls-frame-top: 64px;
	--cls-frame-side: 70px;
	--cls-frame-bottom: 45px;
}

/* ===== 2. Page ========================================================================== */
body {
	/* The client's message-box stone, darkened, behind everything. */
	background:
		linear-gradient(rgb(11 10 9 / 86%), rgb(11 10 9 / 93%)),
		url(../ui/stone.webp) 0 0 / 225px auto var(--cls-abyss);
	/* The game's sword cursor; the system cursor stays as fallback. */
	cursor: url(../ui/cursor.png) 2 2, auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(a, button, [role="button"], summary, label[for], select, input[type="submit"], input[type="checkbox"], input[type="radio"]) {
	cursor: url(../ui/cursor-push.png) 2 2, pointer;
}
:where(a) { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(a:not(:hover)) { text-decoration: none; }
:where(:focus-visible) { outline: 2px solid var(--cls-gold); outline-offset: 2px; }
::selection { background: rgb(232 197 111 / 35%); color: #fff; }
:where(b, strong) { color: #f2ead8; }
:where(small) { color: var(--cls-quiet); }
:where(mark) { background: rgb(255 204 26 / 22%); color: var(--cls-notice); padding: 0 0.15em; }
:where(abbr[title]) { text-decoration: underline dotted; }
:where(kbd) { padding: 0.05em 0.4em; border: 1px solid #555; border-bottom-width: 2px; border-radius: 3px; background: #111; font-size: 0.85em; }
:where(hr:not(.wp-block-separator)) { border: 0; height: 2px; background: url(../ui/sep.webp) center / 100% 100% no-repeat; }
.screen-reader-text:focus { background: #000; color: #fff; padding: 0.5em 1em; z-index: 100000; }
/* Skip link of block themes. */
.skip-link.screen-reader-text:focus { background: #000; color: var(--cls-gold); }

/* ===== 3. Buttons ======================================================================== */
/* The client's empty stone button: one sprite with three rows (normal / hover / pressed). It
 * stretches with the button, so labels of any length fit. */
:where(.wp-element-button, .wp-block-button__link, .wp-block-search__button, .wp-block-file__button,
	.cls-btn, .wp-block-post-comments-form input[type="submit"], .wp-block-comments input[type="submit"],
	.openmu-account button, .openmu-armory__search button, .openmu-minigame-ranking__filter button,
	input[type="submit"], button[type="submit"]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 108px;
	min-height: 29px;
	padding: 0.35em 1.4em;
	border: 0;
	border-radius: 0;
	color: #ece5d3;
	font: 600 0.8125rem/1.2 var(--cls-body);
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 0 #000, 0 0 6px #000;
	background: url(../ui/btn.webp) 0 0 / 100% 300% no-repeat;
	box-shadow: none;
	transition: color 0.15s;
}
:where(.wp-element-button, .wp-block-button__link, .wp-block-search__button, .wp-block-file__button, .cls-btn,
	input[type="submit"], button[type="submit"]):hover {
	color: #fff;
	text-decoration: none;
	background-position: 0 50%;
}
:where(.wp-element-button, .wp-block-button__link, .wp-block-search__button, .wp-block-file__button, .cls-btn,
	input[type="submit"], button[type="submit"]):active { background-position: 0 100%; }
.cls-btn--big { min-width: 180px; min-height: 36px; font-size: 0.875rem; }
/* Buttons the admin coloured themselves keep their colour over the stone. */
.wp-block-button__link.has-background { background-image: none; }

/* Gold: stone with gold lettering for the main call to action. */
.wp-block-button.is-style-gold .wp-block-button__link {
	color: var(--cls-gold-hi);
	text-shadow: 0 1px 0 #000, 0 0 8px rgb(232 197 111 / 45%);
}
/* Outline (core style): no stone, a thin silver edge. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgb(185 190 196 / 55%);
	color: var(--cls-text);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--cls-gold); color: var(--cls-gold-hi); }
.wp-block-buttons { gap: 0.6rem; }

/* ===== 4. Form fields ==================================================================== */
/* Text fields as the game's table frame: a dark field with a thin silver edge (14 px corners). */
:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
	input[type="number"], input[type="tel"], input[type="date"], input:not([type]), textarea, select) {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 34px;
	padding: 0.3em 0.45em;
	border: 7px solid transparent;
	border-image: url(../ui/table.webp) 28 / 14px stretch;
	border-radius: 0;
	background: rgb(0 0 0 / 62%) padding-box;
	color: #fff;
	font: 0.875rem/1.4 var(--cls-body);
	color-scheme: dark;
}
:where(textarea) { min-height: 7em; }
:where(input, textarea, select):focus { outline: 0; background-color: rgb(40 30 10 / 80%); box-shadow: inset 0 0 0 1px rgb(232 197 111 / 40%); }
:where(input, textarea)::placeholder { color: #8a8378; }
:where(label) { color: var(--cls-quiet); font-size: 0.8125rem; }
:where(input[type="checkbox"], input[type="radio"]) { accent-color: var(--cls-gold); width: 1rem; height: 1rem; }
:where(fieldset) { border: 1px solid var(--cls-line); padding: 0.75rem 1rem; }
:where(legend) { color: var(--cls-gold); font-family: var(--cls-head); padding: 0 0.4em; }

/* ===== 5. Game window ==================================================================== */
/* The Season 6 character window: the frame is one 9-slice image (top 128, sides 140, bottom 90
 * image px), drawn at the client's size; the stone sits underneath, inset so it never shows
 * outside the rounded ornaments. Used by the "Game window" group style and by the windows of
 * the OpenMU WP Connect blocks (same class). */
.is-style-mu-window {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	padding: 52px 24px 30px;
	border-style: solid;
	border-width: 0;
	border-image: url(../ui/window.webp) 128 140 90 140 / var(--cls-frame-top) var(--cls-frame-side) var(--cls-frame-bottom) var(--cls-frame-side) / 0 round;
	color: var(--cls-text);
}
.is-style-mu-window::before {
	content: "";
	position: absolute;
	inset: 6px 6px 5px;
	z-index: -1;
	background: linear-gradient(rgb(0 0 0 / 22%), rgb(0 0 0 / 42%)), url(../ui/stone.webp) 0 0 / 225px auto #1d1b19;
}
/* Admin-chosen background colours are painted inside the frame, not over it. */
.is-style-mu-window.has-background { background: none !important; }
.is-style-mu-window.has-background::before { background: inherit; }
/* Window title in the frame's title bar: an explicit .mu-window__title, or the first h2-h4. */
.is-style-mu-window > .mu-window__title,
.is-style-mu-window > :is(h2, h3, h4):first-child {
	position: absolute;
	top: 13px;
	left: 64px;
	right: 64px;
	margin: 0;
	overflow: hidden;
	color: var(--cls-gold);
	font: 700 0.8125rem/20px var(--cls-head);
	letter-spacing: 0.14em;
	text-align: center;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: 0 1px 0 #000, 0 0 10px rgb(232 197 111 / 35%);
}
.is-style-mu-window > :where(:not(.mu-window__title)):first-child,
.is-style-mu-window > :is(h2, h3, h4):first-child + * { margin-top: 0; }
.is-style-mu-window > :last-child { margin-bottom: 0; }
/* A window inside a window (e.g. the plugin's event windows in a sidebar) loses its frame and
 * keeps the title as a small heading. */
.is-style-mu-window .is-style-mu-window { padding: 0; border-image: none; }
.is-style-mu-window .is-style-mu-window::before { content: none; }
.is-style-mu-window .is-style-mu-window > .mu-window__title,
.is-style-mu-window .is-style-mu-window > :is(h2, h3, h4):first-child {
	position: static;
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	text-align: start;
	color: var(--cls-quiet);
	text-shadow: none;
}
/* Stacked windows outside the portal grids (the grids set their own gap). */
:where(.wp-block-post-content) > .is-style-mu-window + .is-style-mu-window { margin-top: 18px; }

/* ===== 6. Inset and item tooltip ========================================================= */
.is-style-mu-inset {
	padding: 0.9rem 1rem;
	border: 7px solid transparent;
	border-image: url(../ui/table.webp) 28 / 14px stretch;
	background: rgb(0 0 0 / 55%) padding-box;
}
.is-style-mu-inset > :first-child { margin-top: 0; }
.is-style-mu-inset > :last-child { margin-bottom: 0; }

/* Item tooltip: black, slightly see-through, centred short lines, like the inventory tooltip. */
.is-style-item-tooltip {
	width: fit-content;
	max-width: min(100%, 340px);
	margin-inline: auto;
	padding: 10px 16px;
	border: 1px solid rgb(255 255 255 / 16%);
	background: rgb(0 0 0 / 86%);
	box-shadow: 0 8px 24px #000;
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
}
.is-style-item-tooltip > * { margin-block: 0.15rem; }
.is-style-item-tooltip > :first-child { margin-top: 0; font-weight: 700; font-size: 0.875rem; }
.is-style-item-tooltip > :last-child { margin-bottom: 0; }

/* Numbered steps: each child group is a step with its number in a round silver-rimmed medallion,
 * like the client's round buttons. A CSS counter, so reordering steps renumbers them. */
.is-style-steps { counter-reset: cls-step; }
.is-style-steps > * {
	counter-increment: cls-step;
	position: relative;
	min-height: 2.5rem;
	padding-left: 3.4rem;
}
.is-style-steps > *::before {
	content: counter(cls-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	box-sizing: border-box;
	border: 2px solid var(--cls-silver);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #3a332a, var(--cls-abyss) 70%);
	box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 0 10px rgb(232 197 111 / 25%);
	color: var(--cls-gold);
	font: 700 1.125rem/1 var(--cls-head);
	text-shadow: 0 1px 0 #000;
}
.is-style-steps > * > :first-child { margin-top: 0.35rem; }
.is-style-steps > * > :last-child { margin-bottom: 0; }

/* Download options pattern: the buttons of all insets in a row sit at the same height. */
.cls-download > .is-style-mu-inset { display: flex; flex-direction: column; }
.cls-download > .is-style-mu-inset > .wp-block-buttons { margin-top: auto; padding-top: 0.6rem; }

/* Notice paragraph: the game's yellow system message. */
p.is-style-notice {
	padding: 0.45em 0.9em;
	background: rgb(0 0 0 / 70%);
	border-block: 1px solid rgb(255 255 255 / 8%);
	color: var(--cls-notice);
	text-shadow: 0 0 6px rgb(255 204 26 / 30%);
	font-size: 0.875rem;
}
p.is-style-notice::before {
	content: "[Notice] ";
	font-weight: 700;
}

/* ===== 7. Separators ===================================================================== */
.wp-block-separator {
	border: 0;
	height: 2px;
	margin-block: 1.5rem;
	background: url(../ui/sep.webp) center / 100% 100% no-repeat;
	opacity: 1;
}
.wp-block-separator.has-background,
.wp-block-separator.has-text-color { background-image: none; height: 1px; }
.wp-block-separator:not(.is-style-wide):not(.is-style-dots):not(.is-style-ornament) { max-width: 260px; margin-inline: auto; }
.wp-block-separator.is-style-dots { background: none; height: auto; text-align: center; color: var(--cls-quiet); }
.wp-block-separator.is-style-dots::before { color: var(--cls-gold); letter-spacing: 1.5em; }
/* Ornament: the client's silver flourish (a corner piece), drawn twice and mirrored into a
 * centred pair by the two pseudo elements (backgrounds cannot be flipped). */
.wp-block-separator.is-style-ornament {
	position: relative;
	height: 82px;
	max-width: 320px;
	margin-inline: auto;
	background: none;
	opacity: 0.85;
}
.wp-block-separator.is-style-ornament::before,
.wp-block-separator.is-style-ornament::after {
	content: "";
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	background: url(../ui/deco.webp) right center / contain no-repeat;
}
.wp-block-separator.is-style-ornament::before { left: 0; }
.wp-block-separator.is-style-ornament::after { right: 0; transform: scaleX(-1); }

/* ===== 8. Top bar ======================================================================== */
.cls-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 6px;
	border-bottom: 2px solid transparent;
	border-image: url(../ui/sep.webp) 0 0 4 0 / 0 0 2px 0 stretch;
}
/* The tinted, blurred backdrop sits on a pseudo-element: backdrop-filter on the bar itself would
 * make it the containing block of position:fixed children, and the phone menu overlay would then
 * be squeezed into the bar instead of covering the screen. */
.cls-topbar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(rgb(27 25 22 / 94%), rgb(13 12 11 / 94%));
	backdrop-filter: blur(6px);
}
.admin-bar .cls-topbar { top: var(--wp-admin--admin-bar--height, 32px); }
.cls-topbar__in { gap: 1.25rem; }
.cls-brand { gap: 0.6rem; flex-shrink: 0; }
.cls-brand__logo { margin: 0; }
.cls-brand__logo img { display: block; height: auto; }
.cls-topbar .wp-block-site-title { margin: 0; line-height: 1; }
.cls-topbar .wp-block-site-title a { color: var(--cls-silver); text-decoration: none; }
.cls-topbar .wp-block-site-title a:hover { color: #fff; }
.cls-topbar__play { flex-shrink: 0; margin: 0; }

/* ===== 9. Navigation ===================================================================== */
.cls-nav { flex: 1; font: 600 0.78rem/1 var(--cls-head); letter-spacing: 0.06em; text-transform: uppercase; }
.cls-nav .wp-block-navigation__container { gap: 0.2rem 1.15rem; }
.cls-nav .wp-block-navigation-item__content,
.cls-nav .wp-block-pages-list__item__link { position: relative; padding: 0.55rem 0; color: #c3bbac; text-decoration: none; }
.cls-nav .wp-block-navigation-item__content:hover,
.cls-nav .current-menu-item > .wp-block-navigation-item__content,
.cls-nav [aria-current="page"] { color: var(--cls-gold-hi); }
/* Current page: a short gold glow under the link, like the selected tab of a game window. */
.cls-nav .current-menu-item > .wp-block-navigation-item__content::after,
.cls-nav [aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 0.1rem;
	height: 2px;
	background: radial-gradient(closest-side, var(--cls-gold), transparent);
}
/* Submenus: a small stone panel with a silver edge. */
.cls-nav .wp-block-navigation__submenu-container {
	min-width: 200px;
	padding: 0.4rem 0;
	border: 1px solid rgb(185 190 196 / 30%) !important;
	background: linear-gradient(rgb(0 0 0 / 35%), rgb(0 0 0 / 55%)), url(../ui/stone.webp) 0 0 / 225px auto #1d1b19 !important;
	box-shadow: 0 10px 24px rgb(0 0 0 / 70%);
	text-transform: none;
	letter-spacing: 0.02em;
}
.cls-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.45rem 0.9rem; }
.cls-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: rgb(232 197 111 / 10%); }
/* Mobile: the menu button and the full-screen menu as a game window. */
.cls-nav .wp-block-navigation__responsive-container-open,
.cls-nav .wp-block-navigation__responsive-container-close { color: var(--cls-gold); }
.cls-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
	background: linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 75%)), url(../ui/stone.webp) 0 0 / 225px auto #111 !important;
	color: var(--cls-text) !important;
}
.cls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
	gap: 0.2rem;
	font-size: 1rem;
}
/* Phone menu items: large enough to hit with a thumb (the bar's small caps would be too tight). */
.cls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0.15rem; }
.cls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.05rem; letter-spacing: 0.1em; }
.cls-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 0.7rem 1rem; }
.cls-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; background: none !important; box-shadow: none; padding-left: 1rem; }

/* ===== 10. Hero (theme block) ============================================================ */
/* The login screen art; the bottom fades into the page so there is no hard edge. */
.cls-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(360px, 44vw, 600px);
	margin-block: 0 !important;
	overflow: hidden;
	text-align: center;
	background: url(../img/login-s5.webp) center 30% / cover no-repeat #000;
}
.cls-hero--knight { background-image: url(../img/login-knight.webp); background-position: 62% 20%; }
.cls-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 50% 40%, transparent 30%, rgb(11 10 9 / 55%) 75%),
		linear-gradient(transparent 55%, var(--cls-abyss));
}
.cls-hero__in { position: relative; z-index: 1; padding: 2rem 1rem 4.5rem; }
.cls-hero__title { display: block; width: min(320px, 70vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 18px #000); animation: cls-rise 0.9s ease-out both; }
.cls-hero__name {
	margin: 0.3rem 0 0;
	font: 800 clamp(1.9rem, 4.4vw, 3.25rem)/1.05 var(--cls-head);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	/* Silver-to-gold metal like the MU logo lettering. */
	color: #e9e2cf;
	background: linear-gradient(#fff 15%, #c9ccd0 45%, #8a8f96 55%, #f3d98c 85%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgb(0 0 0 / 80%));
	animation: cls-rise 0.9s 0.1s ease-out both;
}
.cls-hero__tagline { margin: 0.7rem 0 1.4rem; color: #e4dccb; letter-spacing: 0.08em; text-shadow: 0 1px 2px #000, 0 0 10px #000; animation: cls-rise 0.9s 0.2s ease-out both; }
.cls-hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; animation: cls-rise 0.9s 0.3s ease-out both; }
/* Slim: a short banner over inner pages, logo and site name on the left. */
.cls-hero--slim { min-height: 170px; place-items: end start; background-position: center 26%; }
.cls-hero--slim .cls-hero__in { width: 100%; max-width: 1240px; margin-inline: auto; padding: 0 14px 2.6rem; box-sizing: border-box; text-align: start; }
.cls-hero__home { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.cls-hero__logo { width: 92px; height: auto; filter: drop-shadow(0 3px 8px #000); }
.cls-hero--slim .cls-hero__name { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); animation: none; }
@keyframes cls-rise { from { opacity: 0; transform: translateY(14px); } }

/* ===== 11. Notice (theme block) ========================================================== */
.cls-notice {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
	margin-top: -1.9rem !important;
	padding: 0.45rem 1rem;
	background: rgb(0 0 0 / 74%);
	border-block: 1px solid rgb(255 255 255 / 8%);
	color: var(--cls-notice);
	font-size: 0.8125rem;
	text-shadow: 0 0 6px rgb(255 204 26 / 35%);
}
.cls-notice__tag { flex-shrink: 0; font-weight: 700; }
.cls-notice__list { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.cls-notice__item a { color: inherit; }
.cls-notice__item a:hover { color: #fff; }
/* With the script: one message at a time, fading. Without it: all messages, one per line. */
.cls-js .cls-notice__list { display: grid; }
.cls-js .cls-notice__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls-js .cls-notice__item.is-current { opacity: 1; visibility: visible; }

/* ===== 12. Portal layout ================================================================= */
.cls-page { padding-bottom: 2.5rem; }
.cls-page > * + * { margin-top: 26px; }
.cls-portal { display: grid; gap: 18px; align-items: start; }
.cls-portal--three { grid-template-columns: 250px minmax(0, 1fr) 270px; }
.cls-portal--two { grid-template-columns: 250px minmax(0, 1fr); }
.cls-portal > * { margin: 0 !important; min-width: 0; }
.cls-side, .cls-main { display: grid; gap: 18px; align-content: start; }
.cls-side > *, .cls-main > * { margin: 0 !important; min-width: 0; }
/* Long words and addresses wrap instead of widening a window on small screens. */
.is-style-mu-window { overflow-wrap: break-word; }
.cls-wide { width: 100%; }
.cls-hint { padding: 0.6rem 0.8rem; border: 1px dashed rgb(255 204 26 / 40%); color: var(--cls-notice); font-size: 0.8125rem; }

/* ===== 13. Posts and lists =============================================================== */
.cls-post { padding: 1rem 0.2rem; border-bottom: 2px solid transparent; border-image: url(../ui/sep.webp) 0 0 4 0 / 0 0 2px 0 stretch; }
.wp-block-post:last-child .cls-post, .cls-news__more .wp-block-post:last-child .cls-post { border-bottom: 0; }
.cls-news .wp-block-post-template, .cls-list .wp-block-post-template { margin: 0; }
.cls-post > * { margin-block: 0.35rem 0; }
.cls-post .wp-block-post-title { margin-top: 0.15rem; font-size: 1.0625rem; line-height: 1.3; }
.cls-post .wp-block-post-title a { color: #f0e6cc; text-decoration: none; }
.cls-post .wp-block-post-title a:hover { color: var(--cls-gold-hi); }
.cls-post .wp-block-post-excerpt { color: var(--cls-text); font-size: 0.875rem; }
.cls-post .wp-block-post-excerpt__excerpt { margin: 0; }
.cls-post .wp-block-post-excerpt__more-text { margin: 0.35rem 0 0; font-size: 0.8125rem; }
.cls-post__meta { gap: 0.5rem 0.75rem; align-items: center; font-size: 0.75rem; color: var(--cls-quiet); }
.cls-post__meta > * { margin: 0 !important; }
.cls-post__meta .wp-block-post-date, .cls-post__meta .wp-block-post-author-name { color: var(--cls-quiet); font-size: 0.75rem; }
/* Category labels in the game's chat-tag look: bold colour on black. */
.cls-tag a {
	display: inline-block;
	padding: 0 0.45em;
	border-radius: 2px;
	background: rgb(0 0 0 / 70%);
	color: var(--cls-party);
	font-weight: 700;
	font-size: 0.6875rem;
	text-decoration: none;
}
.cls-tag .wp-block-post-terms__separator { color: transparent; }
/* Lead post and list rows: picture beside the text. */
.cls-post--lead, .cls-post--row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.cls-post--row { grid-template-columns: 170px minmax(0, 1fr); }
.cls-post--lead:not(:has(.wp-block-post-featured-image)), .cls-post--row:not(:has(.wp-block-post-featured-image)) { grid-template-columns: minmax(0, 1fr); }
.cls-post--lead .wp-block-post-title { font-size: 1.3rem; }
.cls-post .wp-block-post-featured-image { margin: 0; }
.cls-news__lead .cls-post { padding-top: 0.2rem; }
.cls-news .wp-block-buttons { margin-top: 0.9rem; }
/* Single post. */
.cls-single .wp-block-post-title { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cls-single .wp-block-post-featured-image { margin-block: 1rem; }
.cls-tags { margin-top: 1.4rem; font-size: 0.8125rem; color: var(--cls-quiet); }
.cls-tags a { display: inline-block; padding: 0.05em 0.5em; border: 1px solid var(--cls-line); color: var(--cls-text); font-size: 0.75rem; }
.cls-tags .wp-block-post-terms__separator { display: none; }
.cls-tags a + a, .cls-tags .wp-block-post-terms__separator + a { margin-left: 0.3rem; }
.cls-postnav { margin: 0.2rem 0; font-size: 0.8125rem; }
.cls-postnav--next { text-align: end; }
/* Pagination: numbers as small stone tiles. */
.wp-block-query-pagination { gap: 0.35rem; margin-top: 1.25rem; font-size: 0.8125rem; }
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next,
.wp-block-comments-pagination .page-numbers,
.wp-block-comments-pagination-previous,
.wp-block-comments-pagination-next {
	display: inline-block;
	min-width: 1.9em;
	padding: 0.25em 0.55em;
	border: 1px solid var(--cls-line);
	background: rgb(0 0 0 / 45%);
	color: var(--cls-text);
	text-align: center;
	text-decoration: none;
}
.wp-block-query-pagination .page-numbers.current, .wp-block-comments-pagination .page-numbers.current { border-color: var(--cls-gold); color: var(--cls-gold-hi); }
.wp-block-query-pagination a:hover, .wp-block-comments-pagination a:hover { border-color: var(--cls-silver); color: #fff; }
.wp-block-query-pagination .page-numbers.dots { border: 0; background: none; }

/* Comments. */
.cls-comments { margin-top: 2rem; }
.cls-comments .wp-block-comments-title { font-size: 1.1rem; }
.cls-comment { padding: 0.8rem 0; border-bottom: 1px solid var(--cls-line); }
.cls-comment .wp-block-comment-author-name { font-weight: 700; color: #f2ead8; }
.cls-comment .wp-block-comment-date { color: var(--cls-quiet); font-size: 0.75rem; }
.cls-comment .wp-block-comment-content { margin: 0.3rem 0; }
.cls-comment .wp-block-comment-reply-link, .cls-comment .wp-block-comment-edit-link { font-size: 0.75rem; }
.wp-block-comment-template ol { padding-left: 1.5rem; }
.wp-block-avatar img { border-radius: 2px; border: 1px solid var(--cls-line); }
.wp-block-post-comments-form .comment-reply-title { font-family: var(--cls-head); font-size: 1.1rem; }
.wp-block-post-comments-form :where(input:not([type="submit"]):not([type="checkbox"]), textarea) { width: 100%; }
.wp-block-post-comments-form .comment-notes, .wp-block-post-comments-form .logged-in-as { color: var(--cls-quiet); font-size: 0.8125rem; }
.wp-block-post-comments-form .form-submit { margin-top: 0.8rem; }

/* ===== 14. Text blocks =================================================================== */
:where(.wp-block-post-content, .is-style-mu-window, .is-style-mu-inset) > :where(h1, h2, h3, h4, h5, h6) { margin-top: 1.6em; margin-bottom: 0.5em; }
:where(.wp-block-heading) { text-wrap: balance; }
/* Lists. */
:where(.wp-block-list, .wp-block-post-content ul, .wp-block-post-content ol) { padding-left: 1.4em; }
:where(.wp-block-list) li::marker { color: var(--cls-gold); }
/* Jewels: list marks as small faceted gems in the game's jewel colours (CSS-drawn). */
.wp-block-list.is-style-jewels { list-style: none; padding-left: 0; counter-reset: cls-jewel; }
.wp-block-list.is-style-jewels > li { position: relative; padding-left: 1.7em; margin-block: 0.45em; }
.wp-block-list.is-style-jewels > li::before {
	content: "";
	position: absolute;
	left: 0.1em;
	top: 0.38em;
	width: 0.75em;
	height: 0.75em;
	transform: rotate(45deg);
	background: linear-gradient(135deg, #fff 0 12%, #8ec5ff 18%, #2d6fd6 55%, #0a2a66 100%);
	box-shadow: 0 0 6px rgb(128 179 255 / 55%), inset 0 0 0 1px rgb(0 0 0 / 50%);
}
.wp-block-list.is-style-jewels > li:nth-child(3n + 2)::before { background: linear-gradient(135deg, #fff 0 12%, #ffb3d1 18%, #d6286b 55%, #5c0a2a 100%); box-shadow: 0 0 6px rgb(255 90 150 / 50%), inset 0 0 0 1px rgb(0 0 0 / 50%); }
.wp-block-list.is-style-jewels > li:nth-child(3n)::before { background: linear-gradient(135deg, #fff 0 12%, #fff0a0 18%, #e0a614 55%, #5c3d00 100%); box-shadow: 0 0 6px rgb(255 204 26 / 50%), inset 0 0 0 1px rgb(0 0 0 / 50%); }
ol.wp-block-list.is-style-jewels > li { counter-increment: cls-jewel; padding-left: 2.3em; }
ol.wp-block-list.is-style-jewels > li::after { content: counter(cls-jewel) "."; position: absolute; left: 1.15em; top: 0; color: var(--cls-gold); font-weight: 700; }
/* Quote and pullquote: the inset frame with a gold rule. */
.wp-block-quote {
	margin-inline: 0;
	padding: 0.9rem 1.1rem 0.9rem 1.3rem;
	border: 0;
	border-left: 3px solid var(--cls-gold);
	background: rgb(0 0 0 / 40%);
	font-style: italic;
}
.wp-block-quote cite, .wp-block-pullquote cite { display: block; margin-top: 0.4rem; color: var(--cls-quiet); font-size: 0.8125rem; font-style: normal; }
.wp-block-quote.is-style-plain { border-left: 0; background: none; padding-left: 0; }
.wp-block-quote.has-text-align-right { border-left: 0; border-right: 3px solid var(--cls-gold); }
.wp-block-pullquote {
	padding: 1.6rem 1.2rem;
	border-block: 2px solid transparent;
	border-image: url(../ui/sep.webp) 4 0 / 2px 0 stretch;
	color: #f2ead8;
	font-family: var(--cls-head);
	font-size: 1.2rem;
	text-align: center;
}
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-pullquote p { margin: 0; }
/* Code, preformatted, verse. */
:where(code) { padding: 0.08em 0.35em; background: rgb(0 0 0 / 55%); border: 1px solid var(--cls-line); color: var(--cls-notice); font-size: 0.875em; }
.wp-block-code, .wp-block-preformatted, :where(pre) {
	overflow-x: auto;
	padding: 0.9rem 1rem;
	border: 7px solid transparent;
	border-image: url(../ui/table.webp) 28 / 14px stretch;
	background: rgb(0 0 0 / 65%) padding-box;
	color: #e9e2d0;
	font-size: 0.8125rem;
	line-height: 1.55;
	white-space: pre;
}
.wp-block-code code, :where(pre) code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.wp-block-preformatted { white-space: pre-wrap; }
/* Verse in the text font, italic (Cinzel has capitals only, too stiff for poems). */
.wp-block-verse { padding: 0.8rem 1rem; background: rgb(0 0 0 / 35%); font-family: var(--cls-body); font-style: italic; font-size: 0.9375rem; white-space: pre-wrap; }
/* Details (accordion): a silver row with a gold arrow. */
.wp-block-details { border: 1px solid var(--cls-line); background: rgb(0 0 0 / 35%); padding: 0 0.9rem; }
.wp-block-details summary { padding: 0.6rem 0; color: #f2ead8; font-weight: 600; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--cls-gold); transition: transform 0.2s; }
.wp-block-details[open] summary::before { transform: rotate(90deg); }
.wp-block-details[open] { padding-bottom: 0.8rem; }
.wp-block-details + .wp-block-details { margin-top: -1px; }
/* Accordion block (WP 6.9+) follows the details look. */
.wp-block-accordion-item { border: 1px solid var(--cls-line); background: rgb(0 0 0 / 35%); }
.wp-block-accordion-heading__toggle { color: #f2ead8; }
/* Tables (class selectors on purpose: they must beat the 1 px cell borders of the core table style). */
.wp-block-table table, .openmu-ranking table, .openmu-minigame-ranking__table table, .openmu-account__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
}
.wp-block-table :is(th, td), .openmu-ranking :where(th, td), .openmu-minigame-ranking__table :where(th, td), .openmu-account__table :where(th, td) {
	padding: 0.45rem 0.6rem;
	border: 0;
	border-bottom: 1px solid var(--cls-line);
	text-align: start;
	vertical-align: top;
}
.wp-block-table thead, .openmu-ranking thead, .openmu-minigame-ranking__table thead, .openmu-account__table thead { border-bottom: 0; }
.wp-block-table th, .openmu-ranking th, .openmu-minigame-ranking__table th, .openmu-account__table th {
	color: var(--cls-gold);
	font: 700 0.6875rem/1.3 var(--cls-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 2px solid transparent;
	border-image: url(../ui/sep.webp) 0 0 4 0 / 0 0 2px 0 stretch;
}
.wp-block-table tfoot { border-top: 1px solid var(--cls-line); }
.wp-block-table tfoot td { color: var(--cls-quiet); }
.wp-block-table figcaption, .wp-block-table .wp-element-caption { color: var(--cls-quiet); }
.wp-block-table.is-style-stripes { border: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgb(255 255 255 / 4%); }
.wp-block-table.is-style-game { overflow-x: auto; }
.wp-block-table.is-style-game table { background: rgb(0 0 0 / 35%); }
.wp-block-table.is-style-game tbody tr:hover { background: rgb(232 197 111 / 6%); }
.wp-block-table.is-style-game td:first-child { color: #f2ead8; }
.wp-block-table :where(td, th).has-text-align-center { text-align: center; }
.wp-block-table :where(td, th).has-text-align-right { text-align: end; }
/* The server rates table in the sidebar: two columns, values right. */
.cls-rates td:last-child { text-align: end; color: #fff; white-space: nowrap; }
.cls-rates :is(td, th) { padding-inline: 0.3rem; }
.cls-rates td:first-child { color: var(--cls-quiet) !important; }
.cls-rates table { background: none !important; }
/* Footnotes. */
.wp-block-footnotes { font-size: 0.8125rem; color: var(--cls-quiet); }
/* Drop cap. */
.has-drop-cap:not(:focus)::first-letter { color: var(--cls-gold); font-family: var(--cls-head); font-weight: 700; }

/* ===== 15. Media blocks ================================================================== */
:where(.wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-audio, .wp-block-embed) figcaption,
.wp-element-caption { color: var(--cls-quiet); font-size: 0.8125rem; text-align: center; }
.wp-block-image.is-style-framed img, .wp-block-post-featured-image.is-style-framed img,
.wp-block-post-featured-image.is-style-framed .wp-block-post-featured-image__placeholder {
	box-sizing: border-box;
	border: 7px solid transparent;
	border-image: url(../ui/table.webp) 28 / 14px stretch;
	background: #000 padding-box;
}
.wp-block-image.is-style-rounded img { border-radius: 9999px; }
.wp-block-post-featured-image a { display: block; }
.wp-block-post-featured-image img { display: block; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { background: linear-gradient(transparent, rgb(0 0 0 / 80%)); color: #fff; }
.wp-block-cover { color: #fff; }
.wp-block-cover .wp-block-cover__inner-container > :first-child { margin-top: 0; }
.wp-block-media-text { gap: 1rem; }
.wp-block-media-text.has-background { padding: 0.5rem; }
.wp-block-audio audio { width: 100%; color-scheme: dark; }
.wp-block-video video { width: 100%; }
.wp-block-embed__wrapper iframe { max-width: 100%; }
/* File: name link plus stone button. */
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: rgb(0 0 0 / 35%); border: 1px solid var(--cls-line); }
.wp-block-file .wp-block-file__button { margin: 0; }
.wp-block-file .wp-block-file__embed { width: 100%; border: 1px solid var(--cls-line); }
/* Columns: the gap of the game windows. */
.wp-block-columns { gap: 18px; }

/* ===== 16. Widgets and site blocks ======================================================= */
/* Search: field and stone button side by side. */
.wp-block-search__inside-wrapper { gap: 0.4rem; border: 0 !important; padding: 0 !important; background: none !important; }
.wp-block-search__input { flex: 1; }
.wp-block-search__label { color: var(--cls-quiet); }
.wp-block-search__button { margin: 0; }
.wp-block-search__button.has-icon svg { fill: currentColor; width: 1.2em; height: 1.2em; }
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper { border: 7px solid transparent !important; border-image: url(../ui/table.webp) 28 / 14px stretch !important; background: rgb(0 0 0 / 62%) padding-box !important; }
.wp-block-search.wp-block-search__button-inside .wp-block-search__input { border: 0; background: none; }
/* Lists of links: archives, categories, pages, latest posts, latest comments, RSS. */
:where(.wp-block-archives, .wp-block-categories, .wp-block-page-list, .wp-block-latest-posts, .wp-block-latest-comments, .wp-block-rss):not(.is-style-mu-window) {
	padding-left: 0;
	list-style: none;
}
:where(.wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-rss) > li,
.wp-block-latest-comments__comment,
:where(.wp-block-page-list:not(.wp-block-navigation__container)) > li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--cls-line);
	margin: 0;
}
.wp-block-categories .children, .wp-block-page-list .submenu-container { padding-left: 1rem; list-style: none; }
.wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author, .wp-block-latest-comments__comment-date, .wp-block-rss__item-publish-date, .wp-block-rss__item-author { color: var(--cls-quiet); font-size: 0.75rem; }
.wp-block-latest-posts__post-excerpt, .wp-block-latest-comments__comment-excerpt p, .wp-block-rss__item-excerpt { margin: 0.2rem 0 0; font-size: 0.8125rem; }
.wp-block-latest-posts.is-grid > li { border: 0; padding: 0.6rem; background: rgb(0 0 0 / 35%); }
.wp-block-latest-posts__featured-image img { border: 1px solid var(--cls-line); }
.wp-block-latest-comments { padding-left: 0; }
.wp-block-latest-comments .avatar { border-radius: 2px; }
.wp-block-categories-dropdown select, .wp-block-archives-dropdown select { width: 100%; }
/* Tag cloud: small tiles. */
.wp-block-tag-cloud a { display: inline-block; margin: 0 0.25rem 0.35rem 0; padding: 0.15em 0.55em; border: 1px solid var(--cls-line); background: rgb(0 0 0 / 40%); color: var(--cls-text); text-decoration: none; }
.wp-block-tag-cloud a:hover { border-color: var(--cls-gold); color: var(--cls-gold-hi); }
.wp-block-tag-cloud.is-style-outline a { background: none; border-color: rgb(185 190 196 / 45%); }
/* Calendar. */
/* Class selectors on purpose: the core calendar style sets dark grey text and 1 px solid borders. */
.wp-block-calendar table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.wp-block-calendar table:not(.has-text-color) { color: var(--cls-text); }
.wp-block-calendar table :is(th, td) { padding: 0.3rem; border: 1px solid var(--cls-line); text-align: center; }
.wp-block-calendar table:not(.has-background) th { color: var(--cls-gold); background: rgb(0 0 0 / 45%); }
.wp-block-calendar caption { color: var(--cls-gold); font-family: var(--cls-head); margin-bottom: 0.3rem; }
.wp-block-calendar a { color: var(--cls-notice); font-weight: 700; }
.wp-block-calendar #today { background: rgb(232 197 111 / 15%); }
.wp-block-calendar .wp-calendar-nav { margin-top: 0.3rem; font-size: 0.8125rem; }
/* Social links: silver circles by default; the brand colour styles of core stay as chosen. */
.wp-block-social-links:not(.has-icon-color):not(.has-icon-background-color):not(.is-style-logos-only) .wp-social-link {
	background: #1b1a18;
	color: var(--cls-silver);
	box-shadow: inset 0 0 0 1px rgb(185 190 196 / 45%);
}
.wp-block-social-links .wp-social-link:hover { transform: none; filter: brightness(1.25); }
/* Site logo, tagline, login/out. */
.wp-block-site-tagline { color: var(--cls-quiet); }
.wp-block-site-logo img { height: auto; }
.wp-block-loginout { font-size: 0.875rem; }
.wp-block-loginout form p { margin: 0 0 0.6rem; }
.wp-block-loginout input:not([type="submit"]):not([type="checkbox"]) { width: 100%; }
/* Read more, post author, post excerpt, terms, post navigation. */
.wp-block-read-more { font-size: 0.8125rem; }
.wp-block-post-author { gap: 0.8rem; }
.wp-block-post-author__name { color: #f2ead8; font-weight: 700; }
.wp-block-post-author__bio { color: var(--cls-quiet); font-size: 0.8125rem; }
.wp-block-post-author-biography { color: var(--cls-quiet); }
.wp-block-post-navigation-link .wp-block-post-navigation-link__label { color: var(--cls-quiet); }
.wp-block-post-terms { font-size: 0.8125rem; }
.wp-block-term-description { color: var(--cls-quiet); }
.wp-block-query-title { margin-top: 0; }
.wp-block-query-no-results { color: var(--cls-quiet); }
.wp-block-more { color: var(--cls-quiet); }
/* Classic editor content (alignments and captions). */
.alignleft { float: left; margin: 0.3rem 1.2rem 0.8rem 0; }
.alignright { float: right; margin: 0.3rem 0 0.8rem 1.2rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--cls-quiet); font-size: 0.8125rem; text-align: center; }
.wp-block-post-content::after { content: ""; display: table; clear: both; }

/* ===== 17. Plugin: OpenMU WP Connect ===================================================== */
/* Game colours of the plugin's lines (the theme sets the plugin's variables in functions.php). */
.openmu-line--muted { color: var(--cls-quiet); }
.openmu-status { font-size: 0.875rem; }
/* Ranking: place numbers in the game's yellow, top three brighter. */
.openmu-ranking__place { width: 2.6em; color: var(--cls-notice); font-weight: 700; text-align: center !important; }
.openmu-ranking tbody tr:nth-child(-n + 3) .openmu-ranking__place { color: #fff0a0; text-shadow: 0 0 8px rgb(255 204 26 / 60%); }
.openmu-ranking__number { text-align: end !important; font-variant-numeric: tabular-nums; }
.openmu-ranking td a { color: #fff; font-weight: 600; }
.openmu-ranking td a:hover { color: var(--cls-gold-hi); }
.openmu-ranking tbody tr:hover, .openmu-minigame-ranking__table tbody tr:hover { background: rgb(232 197 111 / 6%); }
.openmu-ranking, .openmu-minigame-ranking__table { overflow-x: auto; }
/* Compact windows (sidebars): only place, name, resets and level. */
.cls-compact .openmu-ranking table { font-size: 0.78rem; }
.cls-compact .openmu-ranking :is(th, td):nth-child(3),
.cls-compact .openmu-ranking :is(th, td):nth-child(6) { display: none; }
.cls-compact .openmu-ranking :is(th, td) { padding: 0.35rem 0.25rem; }
.cls-compact .openmu-ranking .openmu-line--option { display: block; font-size: 0.6875rem; }
/* Events: name left, time right, "in ..." under the time. */
.openmu-events__list { margin: 0; padding: 0; list-style: none; }
.openmu-events__event { display: grid; grid-template-columns: 1fr auto; gap: 0 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--cls-line); }
.openmu-events__name { color: #fff !important; font-weight: 600; }
.openmu-events__time { color: var(--cls-option); text-align: end; font-variant-numeric: tabular-nums; }
.openmu-events__in { grid-column: 2; text-align: end; font-size: 0.75rem; }
/* The plugin lays the server windows out as a grid (its gap spaces them); no extra margin here,
 * or every window after the first starts lower. Inside the page window (Events page) a server
 * window is drawn as an inset table frame instead of a second full frame. */
.is-style-mu-window .openmu-events__server {
	padding: 1rem 1.1rem 0.7rem;
	border: 7px solid transparent;
	border-image: url(../ui/table.webp) 28 / 14px stretch;
	background: rgb(0 0 0 / 38%) padding-box;
	text-align: start;
}
.is-style-mu-window .openmu-events__server.is-style-mu-window > .openmu-events__server-name {
	margin: 0 0 0.5rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--cls-line);
	color: var(--cls-gold);
	font: 700 0.8125rem/1.4 var(--cls-head);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
}
.openmu-events__server .openmu-events__event:last-child { border-bottom: 0; }
.cls-compact .openmu-events__event { font-size: 0.8125rem; }
/* Sidebar: only the first game server's schedule (the Events page lists them all). */
.cls-compact .openmu-events > :not(:first-child) { display: none; }
.cls-compact .openmu-events__server { padding: 0; border: 0; background: none; }

/* Commands page: one inset per group of commands (command in yellow on its own line, the
 * explanation under it), then the client's hotkeys as key caps in a grid. */
.cls-cmds { gap: 14px; margin-block: 1.2rem; }
.cls-cmds > .is-style-mu-inset { margin: 0; }
.cls-cmds h3 { margin: 0 0 0.6rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--cls-line); color: var(--cls-gold); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cls-cmds__list { margin: 0; padding: 0; list-style: none; }
.cls-cmds__list li { margin: 0; padding: 0.45rem 0; color: var(--cls-quiet); font-size: 0.875rem; line-height: 1.45; }
.cls-cmds__list li + li { border-top: 1px dashed var(--cls-line); }
.cls-cmds__list code { display: table; margin-bottom: 0.2rem; font-size: 0.875rem; }
.cls-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 0.5rem 1rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.cls-keys li { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.9375rem; }
.cls-keys kbd { min-width: 2.4em; padding: 0.2em 0.5em; border-color: #6b6254; background: linear-gradient(#2a2620, #121010); color: var(--cls-gold); font-family: var(--cls-body, inherit); font-weight: 700; text-align: center; box-shadow: 0 2px 0 #000; }

/* Account window (theme block): the player's characters as a short list, then the buttons. */
.cls-account__who { margin: 0 0 0.6rem; }
.cls-account__who strong { color: var(--cls-gold); }
.cls-account__chars { margin: 0 0 0.9rem; padding: 0; list-style: none; }
.cls-account__chars li { padding: 0.35rem 0; border-bottom: 1px solid var(--cls-line); font-size: 0.875rem; line-height: 1.35; }
.cls-account__chars li:last-child { border-bottom: 0; }
.cls-account__chars a { color: #fff; font-weight: 600; text-decoration: none; }
.cls-account__chars a:hover, .cls-account__chars a:focus-visible { color: var(--cls-gold); }
.cls-account__chars span { display: block; color: var(--cls-quiet); font-size: 0.8125rem; }
.cls-account__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; }
.cls-account__logout { margin: 0; }
/* Mini game ranking filter and the armory search: field + button in one row. */
.openmu-minigame-ranking__filter, .openmu-armory__search { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.openmu-minigame-ranking__filter label, .openmu-armory__search label { width: 100%; }
.openmu-armory__search input { flex: 1; min-width: 12rem; }
.openmu-minigame-ranking__empty { color: var(--cls-quiet); }
/* Account: two forms side by side, game windows inside the page window lose their frames. */
.openmu-account__forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.openmu-account__form { display: grid; gap: 0.55rem; }
.openmu-account__form label { display: grid; gap: 0.2rem; }
.openmu-account__form input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; }
.openmu-account__title { margin: 0 0 0.4rem; font-size: 1.05rem; }
.openmu-account__message { padding: 0.5rem 0.8rem; background: rgb(0 0 0 / 55%); border-left: 3px solid var(--cls-notice); }
.openmu-account__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
/* Armory: the plugin draws the inventory window itself (with this theme's client textures);
 * give it the page width and centre it. */
.openmu-armory > * + * { margin-top: 1rem; }
/* Item tooltips of the plugin: the game's black box. */
.openmu-cv-tip { font-family: var(--cls-body); }

/* ===== 18. Orbs (theme block) ============================================================ */
.cls-orbs { display: flex; justify-content: space-around; gap: 0.6rem; margin: 0.2rem 0 0.9rem; }
.cls-orb { margin: 0; text-align: center; font-size: 0.75rem; color: var(--cls-quiet); }
.cls-orb b { display: block; color: #fff; font-size: 0.9375rem; }
/* A round socket with the silver ring of the S6 HUD; the liquid rises to --cls-fill percent. */
.cls-orb__ball {
	position: relative;
	width: 82px;
	height: 82px;
	margin: 0 auto 0.4rem;
	overflow: hidden;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 35%, #1c1a18, #050505 70%);
	box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px #8d9096, 0 0 0 5px #2b2b2b, 0 0 0 7px #5c5f63, 0 4px 14px 6px rgb(0 0 0 / 70%);
}
.cls-orb__liquid {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: calc(var(--cls-fill, 0) * 1%);
	background: radial-gradient(circle at 45% 85%, var(--cls-hi) 0, var(--cls-mid) 45%, var(--cls-lo) 100%);
	box-shadow: inset 0 2px 0 rgb(255 255 255 / 35%), inset 0 6px 10px rgb(255 255 255 / 12%);
	transition: height 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Before the script runs the first fill, the level waits at zero (only with the script). */
.cls-js .cls-orbs:not(.is-filled) .cls-orb__liquid { height: 0; }
.cls-orb--red { --cls-hi: #ff6a3c; --cls-mid: #c4140a; --cls-lo: #3d0302; }
.cls-orb--blue { --cls-hi: #63b6ff; --cls-mid: #1546c9; --cls-lo: #06103d; }
/* Glass highlight over the sphere. */
.cls-orb__ball::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(ellipse 55% 35% at 40% 22%, rgb(255 255 255 / 35%), transparent 70%);
}
.cls-orbs.is-offline .cls-orb--blue b { color: var(--cls-requirement); }

/* ===== 19. Roster (theme block) ========================================================== */
.cls-roster__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; margin: 0; padding: 0.4rem 0 0; list-style: none; }
.cls-roster__class { position: relative; display: grid; justify-items: center; align-content: end; text-align: center; padding-bottom: 0.3rem; }
/* All renders share one height, standing on the same floor line. */
.cls-roster__class img {
	width: 100%;
	height: 210px;
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 10px 8px #000) brightness(0.88);
	transition: transform 0.3s, filter 0.3s;
}
/* Floor light under each character, brighter on hover (the character select pedestal). */
.cls-roster__class::before {
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	top: 170px;
	height: 50px;
	background: radial-gradient(closest-side, rgb(232 197 111 / 0%), transparent);
	transition: background 0.3s;
}
.cls-roster__class:hover img { transform: translateY(-6px); filter: drop-shadow(0 14px 10px #000) brightness(1.08); }
.cls-roster__class:hover::before { background: radial-gradient(closest-side, rgb(232 197 111 / 35%), transparent); }
.cls-roster__class b { margin-top: 0.3rem; color: var(--cls-notice); font-size: 0.8125rem; }
.cls-roster__class small { color: var(--cls-quiet); font-size: 0.72rem; line-height: 1.3; }

/* ===== 20. Footer ======================================================================== */
.cls-footer { padding: 0.5rem 14px 2.5rem; color: var(--cls-quiet); }
.cls-footer .wp-block-separator.is-style-ornament { margin-block: 0.5rem; }
.cls-footer a { color: var(--cls-gold); }

/* ===== 22. Responsive ==================================================================== */
@media (max-width: 1100px) {
	.cls-portal--three { grid-template-columns: 240px minmax(0, 1fr); }
	.cls-portal--three > .cls-portal__right { grid-column: 1 / -1; }
	.cls-portal--three .cls-side--right { grid-template-columns: 1fr 1fr; }
	.cls-roster__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1rem; }
}
@media (max-width: 860px) {
	.cls-portal--two { grid-template-columns: minmax(0, 1fr); }
	/* Content first on narrow screens; the account and server windows follow. */
	.cls-portal--two > .cls-portal__left { order: 2; }
	.cls-topbar__play { display: none; }
}
@media (max-width: 760px) {
	.cls-portal--three { grid-template-columns: minmax(0, 1fr); }
	.cls-portal--three .cls-side--right { grid-template-columns: minmax(0, 1fr); }
	.cls-portal--three > .cls-portal__left { order: 2; }
	.cls-portal--three > .cls-main { order: 1; }
	.cls-portal--three > .cls-portal__right { order: 3; }
	.cls-post--lead, .cls-post--row { grid-template-columns: minmax(0, 1fr); }
	.cls-roster__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cls-roster__class img { height: 170px; }
	.cls-roster__class::before { top: 135px; }
	.is-style-mu-window { padding-inline: 16px; }
	.cls-notice { margin-top: -1.4rem !important; }
	.cls-hero--slim { min-height: 130px; }
	.cls-topbar .wp-block-site-title { font-size: 1rem !important; }
	.alignleft, .alignright { float: none; margin-inline: auto; }
}

/* ===== 23. Motion and print ============================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
	body { background: #fff; color: #000; }
	.cls-topbar, .cls-hero, .cls-notice, .cls-side, .cls-footer { display: none; }
	.is-style-mu-window { border-image: none; padding: 0; color: #000; }
	.is-style-mu-window::before { content: none; }
	.is-style-mu-window > .mu-window__title { position: static; color: #000; }
}
