/* 57e276ff0e */
/*
 * The same ten self-hosted skin fonts as the portal's
 * apps/core/app/assets/css/main.css, copied into fonts/ by
 * scripts/sync-fonts.sh so a shell never talks to Google's font servers at
 * request time. Latin subset only (unicode-range copied from Google's own
 * latin block, identical across every face here) -- a shell never renders
 * latin-ext text.
 *
 * Load this before tokens.css: tokens.css's --font-display/--font-body
 * name these families, so the @font-face rules need to exist first.
 */
@font-face {
	font-family: 'Cinzel';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('/a/f/57e276ff0e-cinzel-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Cinzel';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/a/f/57e276ff0e-cinzel-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Spectral SC';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('/a/f/57e276ff0e-spectral-sc-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Spectral SC';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/a/f/57e276ff0e-spectral-sc-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/a/f/57e276ff0e-roboto-condensed-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/a/f/57e276ff0e-roboto-condensed-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/a/f/57e276ff0e-source-sans-3-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/a/f/57e276ff0e-source-sans-3-600.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/a/f/57e276ff0e-source-sans-3-700.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Rye';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/a/f/57e276ff0e-rye-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * The five custom properties every shell-kit component and every shell's own
 * CSS is written against. These are the RiFT defaults, copied from the RiFT
 * brand palette so a shell looks right even before any brand-specific
 * override runs.
 *
 * A shell overrides them per its own brand two ways: statically, by
 * redeclaring the ones it wants under `:root` in its own stylesheet loaded
 * after this file; or at runtime, by shipping a local `brand.json` with a
 * `theme` object and calling `applyTheme(json)` from js/brand.js, which sets
 * these same properties on `document.documentElement.style`.
 *
 * --font-display and --font-body are the same idea, one level simpler: a
 * shell's own brand.json carries a `fonts` key and
 * apps/brand-rift/scripts/stamp-brand.mjs writes these two values in
 * straight from it, no runtime JS involved. The defaults below are RiFT's
 * own stacks (the portal's ember skin), same reasoning as the colors above:
 * a shell with no `fonts` key in its brand.json still renders with a real
 * typeface rather than a bare system fallback.
 */

:root {
	--portal-primary: #8E3B22;
	--portal-surface: #EAD9B5;
	--portal-text: #2A1D14;
	--portal-muted: #6F5B45;
	--portal-accent: #7A4E14;
	/* Text on top of --portal-primary (buttons). Kept separate from
	   --portal-text and --portal-surface, which describe the page, not the
	   button: a dark page surface on a saturated red made the label unreadable. */
	--portal-on-primary: #F6EBD3;
	--font-display: "Rye", Georgia, serif;
	--font-body: "Source Sans 3", Verdana, sans-serif;
}

/*
 * Base layout and components for a brand shell. Loaded after tokens.css.
 * Every color here is one of the five --portal-* variables -- nothing in
 * this file names a color directly, so a shell can restyle itself entirely
 * by overriding tokens.css.
 */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--portal-surface);
	color: var(--portal-text);
	font-family: var(--font-body);
	line-height: 1.5;
}

a {
	color: var(--portal-accent);
}

h1,
h2,
h3 {
	font-family: var(--font-display);
}

.b57e-shell {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header nav */

/* The frame: header pinned at the top, footer at the bottom, and only the
   middle (banner plus content, or the centred auth card) scrolls. */
body {
	height: 100svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

header,
footer {
	flex: none;
}

.b57e-page-scroll,
.b57e-auth-page .b57e-auth-main {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

header {
	border-bottom: 1px solid color-mix(in oklch, var(--portal-text) 12%, transparent);
}

header .b57e-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
}

header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	width: 100%;
}

/* Links marked side: right in brand.json (Register, Sign in) sit at the far
   edge; the first of them takes the slack after the left group. */
header nav a.b57e-nav-left + a.b57e-nav-right {
	margin-left: auto;
}

header nav a {
	color: var(--portal-text);
	font-family: var(--font-display);
	text-decoration: none;
	opacity: 0.75;
}

header nav a:hover {
	opacity: 1;
}

header nav a[aria-current='page'] {
	opacity: 1;
	color: var(--portal-accent);
	font-weight: 600;
}

/* `hidden` must win over any display rule. brand.js hides a link whose
   brand value is missing (data-brand-hide-if-missing) by setting `hidden`,
   but the browser's own [hidden] { display: none } loses to any author rule
   such as .b57e-btn { display: inline-block }, so the Discord button stayed on
   screen with no link behind it. */
[hidden] {
	display: none !important;
}

/* Buttons */

.b57e-btn {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	border-radius: 0.4rem;
	border: 1px solid color-mix(in oklch, var(--portal-text) 25%, transparent);
	color: var(--portal-text);
	font-family: var(--font-display);
	text-decoration: none;
	font-weight: 600;
}

.b57e-btn-primary {
	background: var(--portal-primary);
	border-color: var(--portal-primary);
	color: var(--portal-on-primary);
}

/* Cards */

.b57e-card {
	background: color-mix(in oklch, var(--portal-text) 6%, var(--portal-surface));
	border: 1px solid color-mix(in oklch, var(--portal-text) 12%, transparent);
	border-radius: 0.5rem;
	padding: 1.25rem;
}

/* Hero */

.b57e-hero-image {
	min-height: 320px;
	padding: 0;
	background: var(--brand-hero, none) center / cover no-repeat;
	border-radius: 6px;
}

/* Image-only banner: no overlay at all. Written with both classes so it
   outranks .b57e-hero::before below, which is declared later. */
.b57e-hero.b57e-hero-image::before {
	content: none;
}

.b57e-hero {
	position: relative;
	overflow: hidden;
	background: var(--brand-hero, none) center / cover no-repeat;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.b57e-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.6));
}

.b57e-hero > * {
	position: relative;
}

/* Auth forms (login/register) */

/* A card that wraps a .b57e-form caps at a comfortable reading width and centers
   in whatever wider column its page puts it in, rather than stretching to
   main.b57e-shell's full width the way a plain .b57e-card does. */
.b57e-card:has(> .b57e-form) {
	max-width: 28rem;
	margin-inline: auto;
}

/* An auth-only page (login, register): the body itself is the whole layout,
   set by templates/<template>/auth.html, no header/nav/hero/footer at all --
   just the one .b57e-card, centred. */
.b57e-auth-page .b57e-auth-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.b57e-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.b57e-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.b57e-field label {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.9rem;
}

.b57e-field input,
.b57e-field select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 0.4rem;
	border: 1px solid color-mix(in oklch, var(--portal-text) 25%, transparent);
	background: var(--portal-surface);
	color: var(--portal-text);
	font-family: var(--font-body);
	font-size: 1rem;
}

.b57e-field input:focus,
.b57e-field select:focus {
	outline: 2px solid var(--portal-accent);
	outline-offset: 1px;
}

.b57e-form button[type='submit'] {
	width: 100%;
}

/* Error slots stay in the DOM empty (no `hidden`, so a screen reader's
   aria-describedby reference always resolves) until auth.js writes a
   message into their textContent; visibility here tracks :not(:empty)
   rather than an attribute auth.js would have to toggle. A fixed red, not
   one of the five --portal-* tokens: an error has to read as a problem
   regardless of a brand's own accent hue (the same reasoning as
   .b57e-hero::before's fixed black overlay above). */
.b57e-field .b57e-error,
.b57e-form .b57e-error-form {
	display: none;
	margin: 0;
	color: oklch(0.65 0.2 25);
	font-size: 0.85rem;
}

.b57e-field .b57e-error:not(:empty),
.b57e-form .b57e-error-form:not(:empty) {
	display: block;
}

.b57e-form .b57e-error-form:not(:empty) {
	font-weight: 600;
}

/* Status */

.b57e-status {
	color: var(--portal-muted);
}

.b57e-status .b57e-is-up {
	color: var(--portal-accent);
}

.b57e-status .b57e-is-down {
	color: var(--portal-muted);
	opacity: 0.7;
}

@media (max-width: 640px) {
	header .b57e-shell {
		flex-direction: column;
		align-items: flex-start;
	}

	header nav {
		gap: 0.75rem;
	}

	.b57e-hero {
		min-height: 220px;
	}
}

/*
 * western template: the onepage layout (hero, rates, registration and
 * sign-in on the home page) dressed as a frontier town at dusk. The auth
 * panel is a wanted poster nailed up beside the brand name, the header is a
 * walnut plank, and interior pages are parchment with ledger-style tables.
 *
 * Built from templates/onepage; the structural fixes documented there (the
 * scrolling body, the .b57e-home-only wrappers, the three-class auth-main rule)
 * are kept, with shorter notes. Read onepage/template.css for the history.
 *
 * Page colours come from the --portal-* tokens (brand.json `theme`). The
 * western materials below are template constants: wood, paper and brass are
 * what the template IS, whatever the brand's accent.
 *
 * Fonts: --font-display is meant to be a wood-type face (Rye). It is used
 * for titles and the poster only. Labels, tabs, nav and buttons use Roboto
 * Condensed caps instead, because a decorative display face at 0.85rem is
 * hard to read on a form.
 */
:root {
	--w-wood: #2B1C13;
	--w-wood-2: #3E2A1C;
	--w-wood-3: #1E130D;
	--w-paper: #F1E3C3;
	--w-paper-2: #E4CFA2;
	--w-paper-edge: #C9AE7A;
	--w-ink: #2A1D14;
	--w-ink-soft: #5C4632;
	--w-brass: #C9A04F;
	--w-brass-ink: #7A4E14;
	--w-rust: var(--portal-primary);
	--w-label: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--t-line: color-mix(in oklch, var(--portal-text) 16%, transparent);
	--t-discord: #5865f2;
	/* Paper grain: a tiny fractal-noise SVG, tinted by the element's own
	   background underneath it. Inline so it costs no request. */
	--w-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.22 0 0 0 0 0.1 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	/* Wood grain for the header plank. */
	--w-plank: repeating-linear-gradient(180deg, rgb(255 255 255 / 0.025) 0 2px, transparent 2px 7px),
		repeating-linear-gradient(90deg, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 260px),
		linear-gradient(180deg, var(--w-wood-2), var(--w-wood) 60%, var(--w-wood-3));
}

/* ---- the frame ---------------------------------------------------------- */
/* The document scrolls (see onepage for why the kit's fixed body is undone). */
.b57e-t-western {
	height: auto;
	min-height: 100svh;
	overflow: visible;
	background: var(--w-grain), var(--portal-surface);
}
/* Never sideways. The tilted posters (rotate) can poke a corner a few pixels
   past the window's right edge at some widths, which gave the home page a
   horizontal scrollbar that no other page had. Decoration must not widen
   the page. On <html>, because that is what scrolls. */
html:has(body.b57e-t-western) { overflow-x: hidden; }

/* ---- header: a walnut plank ------------------------------------------- */
.b57e-t-western header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--w-plank);
	border-bottom: 3px solid var(--w-wood-3);
	box-shadow: 0 1px 0 rgb(201 160 79 / 0.35) inset, 0 6px 18px rgb(0 0 0 / 0.35);
}
.b57e-t-western header nav { justify-content: center; gap: 1.9rem; }
.b57e-t-western header nav a.b57e-nav-left + a.b57e-nav-right { margin-left: 0; }
.b57e-t-western header nav a {
	color: #F1E4C6;
	font-family: var(--w-label);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.8rem;
}
.b57e-t-western header nav a:hover { color: var(--w-brass); }
.b57e-t-western header nav a[aria-current='page'] { color: var(--w-brass); }
.b57e-t-western header nav a[aria-current='page']::before { content: '\2605\00a0'; }

/* ---- hero: sky on the left, poster on the right ------------------------ */
.b57e-op-hero {
	position: relative;
	min-height: 88vh;
	padding: 4.5rem 1rem 3rem;
	isolation: isolate;
	display: grid;
	align-items: center;
	background: var(--brand-hero) center bottom / cover no-repeat, var(--w-wood);
}
/* Scrim: a little darker on the left so the name reads against the sky. */
.b57e-op-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to right, rgb(20 10 18 / 0.45) 0%, rgb(20 10 18 / 0.12) 45%, rgb(20 10 18 / 0.2) 100%);
}
/* Torn-paper edge where the hero meets the parchment below. A mask, so the
   paper colour stays the brand's --portal-surface. */
.b57e-op-hero::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 22px;
	background: var(--portal-surface);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V9l14 4 18-7 16 6 22-5 12 5 20-8 16 7 24-4 18 6 14-5 22 6 16-7 20 5 14-3 24 7 18-6 16 4 22-6 18 7 14-4 22 5 16-6 20 7V22z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V9l14 4 18-7 16 6 22-5 12 5 20-8 16 7 24-4 18 6 14-5 22 6 16-7 20 5 14-3 24 7 18-6 16 4 22-6 18 7 14-4 22 5 16-6 20 7V22z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.b57e-op-hero-grid {
	width: min(72rem, 100%);
	margin-inline: auto;
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr minmax(20rem, 25rem);
	align-items: center;
}
.b57e-op-hero-copy { display: grid; gap: 1.1rem; }

.b57e-op-name {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 6.4vw, 5rem);
	line-height: 1;
	margin: 0;
	color: #F6E7C4;
	letter-spacing: 0.01em;
	/* Letterpress: a hard dark offset plus a warm glow from the sunset. */
	text-shadow: 3px 3px 0 var(--w-wood-3), 0 0 28px rgb(242 155 76 / 0.45);
}
.b57e-op-tag {
	margin: 0;
	font-size: clamp(1.02rem, 1.6vw, 1.2rem);
	color: rgb(255 244 222 / 0.92);
	max-width: 34rem;
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

/* ---- the info card: a hanging wooden sign ------------------------------ */
.b57e-op-info {
	position: relative;
	display: grid;
	gap: 0.9rem;
	padding: 1.1rem 1.2rem 1rem;
	max-width: 31rem;
	background: var(--w-plank);
	border: 2px solid var(--w-wood-3);
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgb(201 160 79 / 0.3) inset, 6px 8px 0 rgb(0 0 0 / 0.35);
}
/* Two nail heads, top corners. */
.b57e-op-info::before,
.b57e-op-info::after {
	content: '';
	position: absolute;
	top: 0.45rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #F1D38E, #8A6A2C 70%);
	box-shadow: 0 1px 1px rgb(0 0 0 / 0.6);
}
.b57e-op-info::before { left: 0.45rem; }
.b57e-op-info::after { right: 0.45rem; }

.b57e-op-rates { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.b57e-op-rate {
	display: grid;
	gap: 0.15rem;
	min-width: 6rem;
	padding: 0.6rem 0.9rem;
	text-align: center;
	background: var(--w-paper);
	background-image: var(--w-grain);
	border: 1px solid var(--w-paper-edge);
	border-radius: 2px;
	box-shadow: 0 0 0 3px var(--w-paper) inset, 0 0 0 4px var(--w-paper-edge) inset, 2px 3px 0 rgb(0 0 0 / 0.35);
}
.b57e-op-rate b { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; color: var(--w-rust); line-height: 1; }
.b57e-op-rate span { font-family: var(--w-label); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--w-ink-soft); }

.b57e-op-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.b57e-op-highlights li {
	display: grid;
	grid-template-columns: 1.6rem auto 1fr;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.92rem;
	color: #F1E4C6;
}
.b57e-op-hl-icon { font-size: 1.05rem; line-height: 1; }
.b57e-op-highlights b { font-family: var(--w-label); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; color: var(--w-brass); }
.b57e-op-hl-val { color: rgb(241 228 198 / 0.78); }

/* ---- buttons -------------------------------------------------------------- */
/* The kit sets .b57e-btn in --font-display; Rye is too heavy for a button label,
   so every button here uses condensed caps. */
.b57e-t-western .b57e-btn {
	font-family: var(--w-label);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.86rem;
	border-radius: 2px;
	padding: 0.7rem 1.3rem;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.b57e-t-western .b57e-btn:hover { transform: translateY(-2px); }
.b57e-t-western .b57e-btn-primary {
	background: var(--w-rust);
	border: 1px solid color-mix(in oklch, var(--w-rust) 70%, black);
	color: var(--portal-on-primary);
	box-shadow: 0 0 0 1px rgb(201 160 79 / 0.55) inset, 0 3px 0 color-mix(in oklch, var(--w-rust) 55%, black);
}
.b57e-t-western .b57e-btn-primary:hover { background: color-mix(in oklch, var(--w-rust) 88%, black); }
.b57e-op-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
/* The hero's call-to-action buttons sit on the sky: dark wood with a brass
   rule. Scoped to .b57e-op-cta, not .b57e-op-hero: the poster's submit buttons are
   inside the hero too, and must stay the rust primary. */
.b57e-op-cta .b57e-btn {
	color: #F6E7C4;
	background: rgb(30 19 13 / 0.78);
	border: 1px solid var(--w-brass);
	box-shadow: 0 3px 0 rgb(0 0 0 / 0.45);
}
.b57e-op-cta .b57e-btn:hover { background: var(--w-wood-2); }
.b57e-op-cta .b57e-btn-discord,
.b57e-btn-discord { background: var(--t-discord); border-color: var(--t-discord); color: #fff; }
.b57e-btn-wide { display: block; width: 100%; text-align: center; }

/* Page-scope switches; every template carries its own copy. */
.b57e-home-only { display: none; }
.b57e-page-home .b57e-home-only { display: revert; }
.b57e-page-home .b57e-not-home { display: none; }

/* ---- status lights --------------------------------------------------------- */
.b57e-op-lights { margin-top: 0.2rem; }
.b57e-status-lights {
	display: inline-flex;
	gap: 1.2rem;
	flex-wrap: wrap;
	font-family: var(--w-label);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.b57e-status-lights [data-status]::before {
	content: '';
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentColor;
	margin-right: 0.35rem;
	vertical-align: middle;
}
/* Fixed green/red, like onepage: a status light means the same on every brand. */
.b57e-op-hero .b57e-status-lights { color: rgb(255 244 222 / 0.78); }
.b57e-op-hero .b57e-status-lights .b57e-is-up { color: #6FE09A; }
.b57e-op-hero .b57e-status-lights .b57e-is-down { color: #FF8A80; opacity: 1; }
.b57e-op-hero .b57e-status-lights .b57e-is-up::before { animation: w-pulse 2.4s ease-in-out infinite; }
@keyframes w-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---- the wanted poster ----------------------------------------------------- */
.b57e-poster {
	position: relative;
	transform: rotate(-1.2deg);
	filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.5)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.35));
}
/* Nail heads, driven through the top corners. */
.b57e-poster::before,
.b57e-poster::after {
	content: '';
	position: absolute;
	top: 0.7rem;
	z-index: 2;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #EACB86, #6B5023 72%);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.7);
}
.b57e-poster::before { left: 0.8rem; }
.b57e-poster::after { right: 0.8rem; }

.b57e-op-panel {
	position: relative;
	padding: 1.6rem 1.6rem 1.3rem;
	color: var(--w-ink);
	/* Stains toward two corners over the grain over the paper. */
	background:
		radial-gradient(ellipse at 12% 6%, rgb(122 78 20 / 0.2), transparent 38%),
		radial-gradient(ellipse at 92% 96%, rgb(122 78 20 / 0.26), transparent 42%),
		radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(122 78 20 / 0.18)),
		var(--w-grain),
		var(--w-paper);
	/* A slightly ragged sheet rather than a perfect rectangle. */
	clip-path: polygon(0.8% 1.2%, 22% 0.4%, 51% 1%, 78% 0%, 99.2% 0.9%, 100% 34%, 99.4% 68%, 99.9% 98.8%, 74% 100%, 48% 99.3%, 21% 100%, 0.3% 99.1%, 0.9% 66%, 0% 31%);
}
/* The printed double rule inside the sheet. */
.b57e-op-panel::before {
	content: '';
	position: absolute;
	inset: 0.55rem;
	border: 2px solid rgb(42 29 20 / 0.75);
	outline: 1px solid rgb(42 29 20 / 0.45);
	outline-offset: 3px;
	pointer-events: none;
}

.b57e-poster-head {
	display: grid;
	justify-items: center;
	gap: 0.1rem;
	margin: 0.2rem 0 1rem;
	text-align: center;
}
.b57e-poster-kicker {
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--w-ink-soft);
}
.b57e-poster-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 5vw, 3.4rem);
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--w-ink);
	text-transform: uppercase;
	/* Worn ink: a faint second impression. */
	text-shadow: 1px 1px 0 rgb(122 78 20 / 0.35);
}
.b57e-poster-head::after {
	content: '';
	width: 70%;
	height: 6px;
	margin-top: 0.5rem;
	border-top: 2px solid var(--w-ink);
	border-bottom: 1px solid var(--w-ink);
}

/* Tabs: two stamped labels. The radios stay before them and the panes. */
.b57e-op-tab-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.b57e-op-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-bottom: 1.1rem;
}
.b57e-op-tab {
	text-align: center;
	padding: 0.5rem 0.4rem;
	cursor: pointer;
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--w-ink-soft);
	border: 1px dashed rgb(42 29 20 / 0.45);
	transition: background 0.15s ease, color 0.15s ease;
}
.b57e-op-tab:hover { color: var(--w-ink); border-style: solid; }
.b57e-op-pane { display: none; }
#op-tab-register:checked ~ .b57e-op-pane-register,
#op-tab-login:checked ~ .b57e-op-pane-login { display: block; }
#op-tab-register:checked ~ .b57e-op-tabs [for='op-tab-register'],
#op-tab-login:checked ~ .b57e-op-tabs [for='op-tab-login'] {
	background: var(--w-rust);
	border: 1px solid var(--w-rust);
	color: var(--portal-on-primary);
}
.b57e-op-tab-input:focus-visible ~ .b57e-op-tabs [for='op-tab-register'],
.b57e-op-tab-input:focus-visible ~ .b57e-op-tabs [for='op-tab-login'] { outline: 2px solid var(--w-rust); outline-offset: 2px; }

/* ---- form fields on paper ---------------------------------------------- */
.b57e-t-western .b57e-field label {
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--w-ink-soft);
}
.b57e-t-western .b57e-field input,
.b57e-t-western .b57e-field select {
	border-radius: 2px;
	border: 1px solid #9C7E4E;
	background: #FBF4E2;
	color: var(--w-ink);
	box-shadow: 0 1px 2px rgb(42 29 20 / 0.15) inset;
}
.b57e-t-western .b57e-field input:focus,
.b57e-t-western .b57e-field select:focus { outline: 2px solid var(--w-rust); outline-offset: 1px; }
/* The kit's error red is tuned for dark grounds; on paper it needs to be deeper. */
.b57e-t-western .b57e-op-panel .b57e-field .b57e-error,
.b57e-t-western .b57e-op-panel .b57e-form .b57e-error-form,
.b57e-t-western.b57e-auth-page .b57e-card .b57e-field .b57e-error,
.b57e-t-western.b57e-auth-page .b57e-card .b57e-form .b57e-error-form { color: #A3261D; }

.b57e-op-panel .b57e-form { gap: 0; }
.b57e-op-panel .b57e-field { margin-bottom: 0.6rem; }
.b57e-op-fine { font-size: 0.8rem; color: var(--w-ink-soft); margin: 0.9rem 0 0; text-align: center; font-style: italic; }
.b57e-op-fine a { color: var(--w-rust); }


/* ---- Most Wanted: a notice board under the hero ----------------------------- */
/* A full-bleed plank band right under the top bar, on which five small
   posters hang, slightly askew. Present only when brand.json enables it
   (layout.html's {{#if wanted.enabled}}). */
.b57e-wanted-band {
	background: var(--w-plank);
	border-bottom: 3px solid var(--w-wood-3);
	box-shadow: 0 -1px 0 rgb(201 160 79 / 0.2) inset;
	padding-block: 1.8rem 2.4rem;
}
.b57e-wanted { display: grid; gap: 1.4rem; }
.b57e-wanted-head {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 0.15rem;
}
.b57e-wanted-kicker,
.b57e-wanted-month {
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--w-brass);
}
.b57e-wanted-month { color: rgb(241 228 198 / 0.72); letter-spacing: 0.2em; }
.b57e-wanted-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	line-height: 1;
	color: #F6E7C4;
	text-shadow: 2px 2px 0 var(--w-wood-3);
}
.b57e-wanted-list {
	list-style: none;
	margin: 0;
	padding: 0.4rem 0 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.1rem;
	align-items: start;
}
/* Each slot is a mini poster: paper, grain, a double rule, a nail, a tilt. */
.b57e-wanted-slot {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.3rem;
	padding: 1.3rem 0.8rem 0.9rem;
	text-align: center;
	color: var(--w-ink);
	background:
		radial-gradient(ellipse at 90% 92%, rgb(122 78 20 / 0.22), transparent 45%),
		var(--w-grain),
		var(--w-paper);
	box-shadow: 0 0 0 3px var(--w-paper) inset, 0 0 0 4px rgb(42 29 20 / 0.6) inset, 0 10px 18px rgb(0 0 0 / 0.45);
	transform: rotate(var(--tilt, 0deg));
}
.b57e-wanted-slot:nth-child(1) { --tilt: -1.4deg; }
.b57e-wanted-slot:nth-child(2) { --tilt: 1deg; }
.b57e-wanted-slot:nth-child(3) { --tilt: -0.5deg; }
.b57e-wanted-slot:nth-child(4) { --tilt: 1.3deg; }
.b57e-wanted-slot:nth-child(5) { --tilt: -1deg; }
.b57e-wanted-slot::before {
	content: '';
	position: absolute;
	top: 0.4rem;
	left: 50%;
	width: 0.6rem;
	height: 0.6rem;
	margin-left: -0.3rem;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #EACB86, #6B5023 72%);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.7);
}
.b57e-wanted-rank {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.15rem 0.45rem;
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--portal-on-primary);
	background: var(--w-rust);
	box-shadow: 0 0 0 1px rgb(201 160 79 / 0.5) inset;
}
/* The first poster is the one people look for: a brass rank badge. */
.b57e-wanted-slot:nth-child(1) .b57e-wanted-rank { background: var(--w-brass); color: var(--w-ink); }
.b57e-wanted-mug {
	position: relative;
	display: grid;
	place-items: center;
	width: 5.2rem;
	height: 5.2rem;
	margin-top: 0.6rem;
	overflow: hidden;
	background: #E0CB9E;
	border: 2px solid rgb(42 29 20 / 0.7);
	box-shadow: 0 0 0 3px var(--w-paper) inset;
	/* Old photograph: a sepia wash over whatever sits inside. */
	filter: sepia(0.35) contrast(1.05);
}
.b57e-wanted-silhouette { width: 70%; height: 70%; color: #6F5B45; fill: currentColor; }
.b57e-wanted-avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-wanted-state='filled'] .b57e-wanted-silhouette:has(+ .b57e-wanted-avatar:not([hidden])) { display: none; }
.b57e-wanted-name {
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.98rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.15;
	max-width: 100%;
	overflow-wrap: anywhere;
}
.b57e-wanted-job { font-size: 0.78rem; font-style: italic; color: var(--w-ink-soft); min-height: 1em; }
.b57e-wanted-bounty { display: grid; line-height: 1; margin-top: 0.2rem; }
.b57e-wanted-bounty b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--w-rust); }
.b57e-wanted-bounty span { font-family: var(--w-label); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--w-ink-soft); }
.b57e-wanted-empty { font-size: 0.78rem; font-style: italic; color: var(--w-ink-soft); }
/* CAPTURED: a red ink stamp across a poster whose outlaw was caught today. */
.b57e-wanted-stamp {
	display: none;
	position: absolute;
	left: 50%;
	top: 44%;
	z-index: 2;
	padding: 0.15rem 0.6rem;
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #A3261D;
	border: 3px double #A3261D;
	border-radius: 3px;
	background: rgb(241 227 195 / 0.55);
	transform: translate(-50%, -50%) rotate(-14deg);
	opacity: 0.85;
	pointer-events: none;
}
[data-wanted-captured] .b57e-wanted-stamp { display: block; }
[data-wanted-captured] .b57e-wanted-mug { filter: sepia(0.35) contrast(1.05) grayscale(0.6); }
/* Behind bars: iron bars over the mugshot of a captured outlaw. Drawn in CSS,
   over the picture and under the stamp. Each bar has a lit edge so it reads
   as round iron, and one cross rail ties them together. Worn grey steel, not
   black: the owner found black too heavy on the paper. */
[data-wanted-captured] .b57e-wanted-mug::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(#8A847C, #625C56) 0 62% / 100% 7% no-repeat,
		repeating-linear-gradient(90deg,
			transparent 0 11%,
			#A8A299 11% 12.5%,
			#7C766F 12.5% 17%,
			#5A5550 17% 18.5%,
			transparent 18.5% 20%);
	opacity: 0.85;
	box-shadow: inset 0 0 0.6rem rgb(0 0 0 / 0.2);
}

/* Empty vs filled: the empty poster shows its note, the filled one its bounty. */
[data-wanted-state='empty'] .b57e-wanted-bounty { display: none; }
[data-wanted-state='filled'] .b57e-wanted-empty { display: none; }
[data-wanted-state='empty'] .b57e-wanted-name { color: var(--w-ink-soft); }
[data-wanted-state='empty'] .b57e-wanted-mug { opacity: 0.7; }

/* ---- interior pages ------------------------------------------------------ */
/* Content-sized, not 32vh: on a tall monitor that was a screen of empty
   desert between the board and the page's first table. */
body:not(.b57e-page-home) .b57e-op-hero {
	min-height: 0;
	padding-block: 2.75rem 2.5rem;
	/* A short band shows a slice of the drawing: aim it at the horizon, where
	   the sun and the town are, rather than the bottom's plain ground. */
	background-position: center 72%;
}
/* The home hero is as tall as its content and no taller. onepage gave it
   88vh so the home page filled the window; with the Most Wanted board above
   it, 88vh plus the board always overran the window, so the home page
   scrolled on a monitor where every other page fit. Name and poster are
   aligned to each other's top. */
/* Content sits halfway between the top and the centre of the hero: the spare
   height is split one part above and three parts below (grid rows 1fr,
   content, 3fr). */
.b57e-page-home .b57e-op-hero { flex: 1; min-height: 0; padding: 1.5rem 1rem 3rem; grid-template-rows: 1fr auto 3fr; align-items: start; }
.b57e-page-home .b57e-op-hero-grid { grid-row: 2; }
/* Nothing follows the hero on the home page, so no torn edge into the
   parchment; it also hung one pixel below the hero, and that one pixel
   put a scrollbar on a window the page otherwise fit. */
.b57e-page-home .b57e-op-hero::after { display: none; }
.b57e-page-home .b57e-op-hero-grid { align-items: start; }
.b57e-page-home .b57e-op-hero-copy { padding-top: 0.5rem; }
body:not(.b57e-page-home) .b57e-op-hero-grid { grid-template-columns: 1fr; }

.b57e-op-main { padding-block: 2.5rem 4.5rem; color: var(--portal-text); }

.b57e-op-main .b57e-dl-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 3.5rem;
	align-items: start;
}
.b57e-op-main .b57e-dl-col > :first-child { margin-top: 0; }
.b57e-op-main .b57e-dl-col .b57e-btn-row { margin-bottom: 2rem; }


.b57e-op-main h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.6rem;
	color: var(--w-ink);
	margin-top: 2.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	break-inside: avoid;
	break-after: avoid;
}
.b57e-op-main h2:first-child { margin-top: 0; }
/* A rope rule trailing each heading. */
.b57e-op-main h2::after {
	content: '';
	flex: 1;
	height: 6px;
	background: repeating-linear-gradient(-55deg, var(--w-brass-ink) 0 3px, color-mix(in oklch, var(--w-brass-ink) 45%, var(--portal-surface)) 3px 6px);
	border-radius: 3px;
	opacity: 0.7;
}
.b57e-op-main p { max-width: 46rem; }
.b57e-op-main a { color: var(--w-rust); font-weight: 600; }
.b57e-op-main ol, .b57e-op-main ul, .b57e-op-main blockquote { break-inside: avoid; }
.b57e-op-main ol, .b57e-op-main ul { max-width: 46rem; line-height: 1.7; }
.b57e-op-main ol li, .b57e-op-main ul li { margin-block: 0.5rem; }
.b57e-op-main ol li::marker { color: var(--w-rust); font-weight: 700; }

/* ---- tables as a ledger --------------------------------------------------- */
.b57e-op-main table {
	width: 100%;
	margin: 1.1rem 0 2rem;
	break-inside: avoid;
	break-before: avoid;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--w-paper-edge);
	border-radius: 2px;
	background: var(--w-grain), var(--w-paper);
	box-shadow: 0 0 0 3px var(--w-paper) inset, 0 0 0 4px var(--w-paper-edge) inset, 3px 4px 0 rgb(42 29 20 / 0.18);
	overflow: hidden;
}
.b57e-op-main thead th {
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: left;
	color: #EFD9A7;
	background: linear-gradient(#5A3A24, #3B2618);
	padding: 0.65rem 1rem;
}
.b57e-op-main thead th:last-child { text-align: right; }
.b57e-op-main tbody td { padding: 0.6rem 1rem; border-top: 1px dotted rgb(42 29 20 / 0.3); }
.b57e-op-main tbody tr:first-child td { border-top: 0; }
.b57e-op-main tbody td:last-child { text-align: right; font-weight: 700; color: var(--w-ink); font-variant-numeric: tabular-nums; }
.b57e-op-main tbody td:first-child { color: var(--w-ink-soft); }

/* ---- callout: a pinned note ------------------------------------------------ */
.b57e-op-main blockquote {
	max-width: 46rem;
	margin: 1.25rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--w-paper-edge);
	border-left: 4px solid var(--w-rust);
	background: var(--w-grain), color-mix(in oklch, var(--w-paper) 70%, white);
	color: var(--w-ink);
}
.b57e-op-main blockquote p { margin: 0; }
.b57e-op-main code { background: rgb(42 29 20 / 0.08); padding: 0.1em 0.4em; border-radius: 2px; font-size: 0.92em; }


/* ---- poster card: a section as a nailed-up notice ------------------------- */
/* Wrap any run of markdown in <div class="poster-card" data-kicker="..."> and
   it renders like the sign-up sheet: parchment with grain and stains, a
   printed double rule, a nail through the top, a small tilt, and the kicker
   line printed above its first heading. Used by content/server-info.md. */
.b57e-poster-card {
	position: relative;
	padding: 2rem 1.6rem 1.4rem;
	color: var(--w-ink);
	background:
		radial-gradient(ellipse at 12% 6%, rgb(122 78 20 / 0.2), transparent 38%),
		radial-gradient(ellipse at 92% 96%, rgb(122 78 20 / 0.26), transparent 42%),
		radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(122 78 20 / 0.16)),
		var(--w-grain),
		var(--w-paper);
	box-shadow:
		0 0 0 1px var(--w-paper-edge),
		0.55rem 0.55rem 0 0 var(--w-paper) inset,
		0 12px 24px rgb(0 0 0 / 0.35);
	transform: rotate(var(--tilt, -0.6deg));
	break-inside: avoid;
}
.b57e-poster-card:nth-child(even) { --tilt: 0.6deg; }
/* the printed double rule */
.b57e-poster-card::after {
	content: '';
	position: absolute;
	inset: 0.55rem;
	border: 2px solid rgb(42 29 20 / 0.75);
	outline: 1px solid rgb(42 29 20 / 0.45);
	outline-offset: 3px;
	pointer-events: none;
}
/* the nail, and the kicker line under it */
.b57e-poster-card::before {
	content: attr(data-kicker);
	display: block;
	padding-top: 1.05rem;
	text-align: center;
	font-family: var(--w-label);
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--w-ink-soft);
	background: radial-gradient(circle at 35% 35%, #EACB86, #6B5023 72%) center 0.1rem / 0.65rem 0.65rem no-repeat;
	/* the nail is the background dot; a shadow under it sells it */
	filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.5));
}
.b57e-poster-card[data-kicker]::before { content: '\2605\00a0\00a0' attr(data-kicker) '\00a0\00a0\2605'; }
.b57e-op-main .b57e-poster-card h2 {
	display: block;
	margin: 0.15rem 0 0.9rem;
	padding-bottom: 0.45rem;
	text-align: center;
	font-size: 1.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-shadow: 1px 1px 0 rgb(122 78 20 / 0.35);
	border-bottom: 2px solid var(--w-ink);
	box-shadow: 0 3px 0 -2px var(--w-ink);
}
.b57e-op-main .b57e-poster-card h2::after { display: none; }
/* inside a poster the table sits on the paper itself */
.b57e-op-main .b57e-poster-card table {
	margin: 0;
	background: none;
	border: 1px solid rgb(42 29 20 / 0.3);
	box-shadow: none;
}
.b57e-op-main .b57e-poster-card > :last-child { margin-bottom: 0; }
.b57e-op-main .b57e-poster-card p { max-width: none; }

/* The server-info page: two columns of posters (content/server-info.md
   wraps them in .b57e-poster-col), split by hand so they are about the same
   height. Each column stacks its posters with no gaps, and its last poster
   grows to fill, so both columns end on the same line. */
.b57e-page-server-info .b57e-op-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.6rem;
	align-items: stretch;
	padding-top: 3rem;
}
.b57e-page-server-info .b57e-poster-col {
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
}
.b57e-page-server-info .b57e-poster-col > .b57e-poster-card:last-child { flex: 1; }

/* ---- auth pages (/login, /register) ------------------------------------- */
.b57e-t-western.b57e-auth-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--brand-hero) center bottom / cover no-repeat fixed, var(--w-wood);
}
.b57e-t-western.b57e-auth-page::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to bottom, rgb(20 10 18 / 0.35), rgb(20 10 18 / 0.55));
}
.b57e-t-western.b57e-auth-page > * { position: relative; z-index: 1; }
/* Three classes: shell.css's .b57e-auth-page .b57e-auth-main is 0,2,0 (see onepage). */
.b57e-t-western.b57e-auth-page .b57e-auth-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: 3rem;
}
/* The standalone card is the same poster as the home-page panel. */
.b57e-t-western.b57e-auth-page .b57e-card {
	position: relative;
	width: min(26rem, 100%);
	padding: 1.8rem 1.7rem 1.5rem;
	border: 0;
	border-radius: 0;
	color: var(--w-ink);
	background:
		radial-gradient(ellipse at 12% 6%, rgb(122 78 20 / 0.2), transparent 38%),
		radial-gradient(ellipse at 92% 96%, rgb(122 78 20 / 0.26), transparent 42%),
		radial-gradient(ellipse at 50% 50%, transparent 55%, rgb(122 78 20 / 0.18)),
		var(--w-grain),
		var(--w-paper);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.5);
	transform: rotate(-0.8deg);
}
.b57e-t-western.b57e-auth-page .b57e-card::before {
	content: '';
	position: absolute;
	inset: 0.55rem;
	border: 2px solid rgb(42 29 20 / 0.75);
	outline: 1px solid rgb(42 29 20 / 0.45);
	outline-offset: 3px;
	pointer-events: none;
}
.b57e-t-western.b57e-auth-page .b57e-card p { color: var(--w-ink-soft); font-size: 0.92rem; }
.b57e-t-western.b57e-auth-page .b57e-card p a { color: var(--w-rust); font-weight: 600; }



/* ---- narrow screens ---------------------------------------------------- */
@media (max-width: 60rem) {
	.b57e-op-hero { min-height: auto; padding-top: 4rem; }
	.b57e-page-server-info .b57e-op-main { grid-template-columns: 1fr; }
	.b57e-op-main .b57e-dl-grid { grid-template-columns: 1fr; gap: 0; }
	.b57e-t-western.b57e-auth-page { background-attachment: scroll; }
	.b57e-op-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.b57e-op-hero-copy { justify-items: center; text-align: center; }
	.b57e-op-rates, .b57e-op-cta { justify-content: center; }
	.b57e-poster { transform: none; }
	.b57e-t-western header nav { gap: 1.1rem; flex-wrap: wrap; }
	.b57e-wanted-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.b57e-wanted-slot { transform: none; }
}
@media (max-width: 30rem) {
	.b57e-wanted-list { grid-template-columns: 1fr; }
}

/* ---- motion off -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.b57e-t-western *,
	.b57e-t-western *::before,
	.b57e-t-western *::after {
		animation: none !important;
		transition: none !important;
	}
	.b57e-t-western .b57e-btn:hover { transform: none; }
}

/* Starter rewards line above the register form (owner, 2026-10-04).
   auth.js fills it from /register/rewards and keeps it hidden when every
   reward is off. */
.b57e-rewards {
	margin: 0 0 1rem;
	color: var(--portal-accent);
	font-weight: 600;
	font-size: 0.95rem;
}

.b57e-rewards[hidden] {
	display: none;
}
