/* =========================================================
   WWS V2 — Stage 1: page shell, full background, top nav
   Loaded after style.css / wws-theme.css; homepage only.
   ========================================================= */

:root {
	--wws-v2-max: 1400px;
	--wws-v2-pad: 20px;
	--wws-v2-header-h: 68px;
	--wws-v2-ink: #2a1a0e;
	--wws-v2-gold: #c9a227;
	--wws-v2-gold-soft: #e8c547;
	--wws-v2-parchment: #f3e6c8;
	--wws-v2-parchment-2: #e8d4a8;
	--wws-v2-red: #c62828;
	--wws-v2-red-hot: #e53935;
	--wws-v2-font: "Trebuchet MS", "Segoe UI", sans-serif;
}

/* Kill cream body under V2 homepage */
body.wws-v2 {
	margin: 0;
	min-height: 100%;
	background: transparent !important;
	background-image: none !important;
	color: var(--wws-v2-ink);
	font-family: var(--wws-v2-font);
}

body.wws-v2 .site-footer,
body.wws-v2 .wws-footer {
	display: none !important;
}

.wws-v2-page {
	position: relative;
	min-height: 100vh;
	isolation: isolate;
	background-color: #7ec8f5;
	background-image: url("/assets/wws/v2/background/world_background.png");
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.wws-v2-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: rgba(0, 0, 0, 0.08);
}

.wws-v2-header,
.wws-v2-main,
.wws-v2-footer {
	position: relative;
	z-index: 1;
}

/* ---- Header: left-nav | center-logo | right-nav (transparent) ---- */
.wws-v2-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: block;
	background: transparent;
	border: none;
	box-shadow: none;
}

.wws-v2-header__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0 auto;
	padding: 10px var(--wws-v2-pad) 8px;
	display: block;
	background: transparent;
	border: none;
	box-shadow: none;
}

.wws-v2-nav-toggle {
	display: none;
	appearance: none;
	border: 1px solid var(--wws-v2-gold);
	background: var(--wws-v2-parchment);
	color: var(--wws-v2-ink);
	border-radius: 8px;
	padding: 0.45rem 0.7rem;
	font-size: 1.1rem;
	cursor: pointer;
	box-shadow: 0 2px 0 rgba(90, 61, 34, 0.25);
}

.wws-v2-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 16px;
	width: 100%;
	min-width: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.wws-v2-nav__left,
.wws-v2-nav__right {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.wws-v2-nav__left {
	justify-content: flex-end;
}

.wws-v2-nav__right {
	justify-content: flex-start;
}

.wws-v2-nav__center {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.wws-v2-header-branding {
	display: block;
	line-height: 0;
	background: transparent;
}

.wws-v2-header-branding img {
	display: block;
	width: clamp(240px, 22vw, 340px);
	max-width: min(340px, 34vw);
	height: auto;
}

.wws-v2-nav__account {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	list-style: none;
}

/* ---- Search Character (left of HOME) ---- */
.wws-v2-search-char {
	list-style: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.wws-v2-search-char__trigger {
	appearance: none;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	transition: transform 150ms ease, filter 150ms ease;
}

.wws-v2-search-char__trigger:hover,
.wws-v2-search-char__trigger:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.wws-v2-search-char__trigger:focus-visible {
	outline: 2px solid var(--wws-v2-gold-soft);
	outline-offset: 2px;
}

.wws-v2-search-char__field {
	position: relative;
	display: none;
	line-height: 0;
}

.wws-v2-search-char.is-open .wws-v2-search-char__trigger {
	display: none;
}

.wws-v2-search-char.is-open .wws-v2-search-char__field {
	display: block;
}

.wws-v2-search-char__img {
	display: block;
	height: 58px;
	width: auto;
	max-width: min(260px, 34vw);
	object-fit: contain;
}

.wws-v2-search-char__input {
	position: absolute;
	left: 16%;
	right: 16%;
	top: 50%;
	transform: translateY(-50%);
	width: auto;
	height: 44%;
	margin: 0;
	padding: 0 0.35rem;
	box-sizing: border-box;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #3b2413;
	caret-color: #3b2413;
	font-family: var(--wws-v2-font);
	font-size: clamp(12px, 0.85rem, 15px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
}

.wws-v2-search-char__input::placeholder {
	color: rgba(59, 36, 19, 0.45);
	opacity: 1;
}

.wws-v2-search-char__input:focus,
.wws-v2-search-char__input:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
}

/* ---- Nav links ---- */
.wws-v2-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--wws-v2-ink);
	line-height: 1;
	transition: transform 160ms ease, filter 160ms ease;
}

.wws-v2-nav__link:hover,
.wws-v2-nav__link:focus-visible {
	transform: translateY(-2px) scale(1.03);
	filter: brightness(1.08);
}

.wws-v2-nav__link:focus-visible {
	outline: 2px solid var(--wws-v2-gold-soft);
	outline-offset: 2px;
}

.wws-v2-nav__link--image {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.wws-v2-nav__link--image img {
	display: block;
	height: 58px;
	width: auto;
	max-width: 210px;
	object-fit: contain;
}

.wws-v2-nav__link--text {
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--wws-v2-gold);
	background: linear-gradient(180deg, var(--wws-v2-parchment) 0%, var(--wws-v2-parchment-2) 100%);
	box-shadow:
		0 2px 0 rgba(90, 61, 34, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
	font-family: var(--wws-v2-font);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wws-v2-nav__link--login {
	min-height: 40px;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid #8e1b1b;
	background: linear-gradient(180deg, var(--wws-v2-red-hot) 0%, var(--wws-v2-red) 100%);
	color: #fff;
	box-shadow:
		0 2px 0 rgba(90, 20, 20, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	font-family: var(--wws-v2-font);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wws-v2-nav__link--login.wws-v2-nav__link--image {
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.wws-v2-nav__link--login.wws-v2-nav__link--image img {
	height: 62px;
	max-width: 220px;
	width: auto;
	object-fit: contain;
}

.wws-v2-nav__logout {
	display: inline;
	margin: 0;
}

.wws-v2-nav__logout-btn {
	appearance: none;
	cursor: pointer;
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--wws-v2-gold);
	background: linear-gradient(180deg, var(--wws-v2-parchment) 0%, var(--wws-v2-parchment-2) 100%);
	color: var(--wws-v2-ink);
	font-family: var(--wws-v2-font);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 0 rgba(90, 61, 34, 0.22);
}

.wws-v2-nav__logout-btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

/* ---- Main / placeholders ---- */
.wws-v2-main {
	padding: 0 0 2rem;
}

.wws-v2-container {
	max-width: var(--wws-v2-max);
	margin: 0 auto;
	padding: 0 var(--wws-v2-pad);
}

/* ---- Stage 2 hero ---- */
.wws-v2-hero {
	padding: 24px 0 20px;
	background: transparent;
}

.wws-v2-hero-grid {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) minmax(340px, 370px);
	gap: 24px;
	align-items: start;
	min-height: 0;
	overflow: visible;
}

.wws-v2-hero-left,
.wws-v2-hero-center,
.wws-v2-hero-right {
	min-width: 0;
	overflow: visible;
}

.wws-v2-hero-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0;
}

/* Reserved center space for future parchment — no WWS text here */
.wws-v2-center-reserve {
	width: 100%;
	max-width: 420px;
	min-height: 200px;
	flex-shrink: 0;
}

.wws-v2-play {
	display: inline-flex;
	margin-top: 50px;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.wws-v2-play img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(360px, 100%);
}

.wws-v2-play:hover,
.wws-v2-play:focus-visible {
	transform: scale(1.03);
	filter: brightness(1.08);
}

.wws-v2-play:focus-visible {
	outline: 2px solid var(--wws-v2-gold-soft);
	outline-offset: 4px;
}

/* Login panel */
.wws-v2-login {
	position: relative;
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
}

.wws-v2-login__frame {
	display: block;
	width: 100%;
	height: auto;
	max-width: 300px;
}

/* Inner parchment content box (~measured on 332x393 asset, scaled to 300px). */
.wws-v2-login__form {
	position: absolute;
	left: 14%;
	right: 14%;
	top: 24%;
	bottom: 9%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Username + Password group — shift down clear of baked-in ACCOUNT title */
.wws-v2-login-fields {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-top: 30px;
	flex: 0 0 auto;
}

/*
 * Transparent parchment inputs — beat style.css input[type=…] { background:#0f1419 }.
 * Scoped ONLY to .wws-v2-login (V2 hero). Other forms untouched.
 */
.wws-v2-login input.wws-v2-login__input[type="text"],
.wws-v2-login input.wws-v2-login__input[type="password"] {
	display: block;
	width: 205px;
	max-width: 92%;
	height: 30px;
	box-sizing: border-box;
	margin: 0;
	padding: 0.15rem 0.1rem;
	font-family: var(--wws-v2-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-align: left;
	color: #4b2d17;
	caret-color: #4b2d17;

	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;

	border: 0 !important;
	border-radius: 0 !important;
	border-bottom: 0 !important;

	box-shadow: none !important;
	outline: none;

	-webkit-appearance: none;
	appearance: none;
}

.wws-v2-login input.wws-v2-login__input[type="password"] {
	margin-top: 14px;
}

.wws-v2-login input.wws-v2-login__input[type="text"]::placeholder,
.wws-v2-login input.wws-v2-login__input[type="password"]::placeholder {
	color: #6d4a27;
	opacity: 0.85;
	font-weight: 600;
}

.wws-v2-login input.wws-v2-login__input[type="text"]:hover,
.wws-v2-login input.wws-v2-login__input[type="password"]:hover {
	background: transparent !important;
	box-shadow: none !important;
}

.wws-v2-login input.wws-v2-login__input[type="text"]:focus,
.wws-v2-login input.wws-v2-login__input[type="password"]:focus {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	border-bottom: 1px solid rgba(150, 70, 20, 0.65) !important;
	box-shadow: none !important;
	outline: none !important;
	color: #3d2412;
	caret-color: #3d2412;
}

/* Chrome autofill must NOT paint a yellow/white/blue rectangle on parchment. */
.wws-v2-login input.wws-v2-login__input[type="text"]:-webkit-autofill,
.wws-v2-login input.wws-v2-login__input[type="text"]:-webkit-autofill:hover,
.wws-v2-login input.wws-v2-login__input[type="text"]:-webkit-autofill:focus,
.wws-v2-login input.wws-v2-login__input[type="text"]:-webkit-autofill:active,
.wws-v2-login input.wws-v2-login__input[type="password"]:-webkit-autofill,
.wws-v2-login input.wws-v2-login__input[type="password"]:-webkit-autofill:hover,
.wws-v2-login input.wws-v2-login__input[type="password"]:-webkit-autofill:focus,
.wws-v2-login input.wws-v2-login__input[type="password"]:-webkit-autofill:active {
	-webkit-text-fill-color: #4b2d17 !important;
	caret-color: #4b2d17 !important;
	color: #4b2d17 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	border-bottom: 0 !important;
	/* Transparent inset fill — no visible rectangle */
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	box-shadow: none !important;
	transition: background-color 99999s ease-out 0s;
	filter: none !important;
}

.wws-v2-login__sprite-btn {
	display: block;
	width: 205px;
	max-width: 92%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.wws-v2-login__sprite-btn--login {
	margin-top: 14px;
}

.wws-v2-login__sprite-btn--create {
	margin-top: 8px;
}

.wws-v2-login__sprite-btn:hover,
.wws-v2-login__sprite-btn:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

.wws-v2-login__sprite {
	display: block;
	width: 100%;
	aspect-ratio: 262 / 67;
	background-image: var(--wws-v2-btn-sprite);
	background-repeat: no-repeat;
	background-size: 100% 200%;
	background-position: center top;
}

.wws-v2-login__sprite--create {
	background-position: center bottom;
}

.wws-v2-login__forgot {
	display: block;
	width: 205px;
	max-width: 92%;
	margin-top: 10px;
	line-height: 0;
	text-align: center;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.wws-v2-login__forgot img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.wws-v2-login__forgot:hover,
.wws-v2-login__forgot:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.wws-v2-login__welcome {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6d563c;
	text-align: center;
}

.wws-v2-login__account {
	margin: 0.35rem 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--wws-v2-ink);
	text-align: center;
	word-break: break-word;
}

.wws-v2-login__dashboard {
	display: inline-flex;
	align-self: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: 1px solid #8e1b1b;
	background: linear-gradient(180deg, var(--wws-v2-red-hot), var(--wws-v2-red));
	color: #fff;
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Server status — legacy class kept unused on homepage */
.wws-v2-status {
	position: relative;
	width: 100%;
	max-width: 330px;
	margin: 0 auto;
}

/* ---- Right column final: SERVER STATUS → TOP 10 → TOP 5 ---- */
.wws-v2-right-column {
	--rank-ink: #3d2412;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	width: 100%;
	max-width: 370px;
	margin: 0 auto;
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: visible;
}

.wws-v2-server-status-panel,
.wws-v2-top10-panel,
.wws-v2-top5-guilds-panel {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: visible;
	container-type: inline-size;
}

.wws-v2-server-status-panel__art,
.wws-v2-top10-panel__art,
.wws-v2-top5-guilds-panel__art {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	vertical-align: top;
}

.wws-v2-server-status-panel__offline {
	position: absolute;
	left: 74.5%;
	top: 63%;
	width: 16%;
	height: 28%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #b71c1c;
	font-family: var(--wws-v2-font);
	font-size: clamp(12px, 4.2cqi, 16px);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-shadow:
		0 0 4px rgba(243, 230, 200, 0.95),
		0 0 8px rgba(243, 230, 200, 0.85);
	pointer-events: none;
}

.wws-v2-top10-panel {
	/* Was calc(38.91% - 50px); +20px down */
	--rank-players-start: calc(38.91% - 30px);
	--rank-players-row-h: 6.35%;
}

.wws-v2-top5-guilds-panel {
	/* Measured on 778×645: hlines 206/281/357/429/509/581 → centers 243.5…545 */
	--start-y: 37.752%;
	--row-height: 11.686%;
	--rank-ink: #3b2413;
}

.wws-player-row,
.wws-top5-guild-row {
	position: absolute;
	left: 0;
	width: 100%;
	pointer-events: none;
}

.wws-player-row {
	top: calc(var(--rank-players-start) + (var(--row) * var(--rank-players-row-h)));
	height: 5.2%;
}

.wws-top5-guild-row {
	top: calc(var(--start-y) + (var(--row) * var(--row-height)));
	height: 9.5%;
	transform: translateY(-50%);
}

.wws-player-name,
.wws-player-level,
.wws-top5-guild-name,
.wws-top5-guild-members,
.wws-top5-guild-points {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--rank-ink);
	font-family: var(--wws-v2-font);
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wws-player-name,
.wws-top5-guild-name {
	font-weight: 600;
	font-size: clamp(13px, 4.15cqi, 16px);
	text-align: left;
}

.wws-player-level,
.wws-top5-guild-members,
.wws-top5-guild-points {
	font-weight: 700;
	font-size: clamp(12px, 3.85cqi, 15px);
	text-align: center;
}

.wws-player-name {
	left: calc(21.6% + 10px);
	width: 45.5%;
	text-decoration: none;
	color: var(--rank-ink);
	cursor: pointer;
	transition: color 160ms ease, text-shadow 160ms ease;
}

a.wws-player-name:hover,
a.wws-player-name:focus-visible {
	color: #8f241c;
	text-decoration: none;
	text-shadow: 0 0 1px rgba(143, 36, 28, 0.25);
}

a.wws-player-name:focus-visible {
	outline: 2px solid rgba(201, 162, 39, 0.75);
	outline-offset: 2px;
}

a.wws-player-name:visited {
	color: var(--rank-ink);
}

.wws-player-level {
	left: 71%;
	width: 20.5%;
}

/* Columns from vertical dividers 197 | 451 | 591 | 729 on 778px asset */
.wws-top5-guild-name {
	left: 26.35%;
	width: 30.2%;
}

.wws-top5-guild-members {
	left: 59.0%;
	width: 15.7%;
}

.wws-top5-guild-points {
	left: 77.5%;
	width: 15.4%;
}

.wws-v2-status__frame {
	display: block;
	width: 100%;
	height: auto;
	max-width: 330px;
}

.wws-v2-status__content {
	position: absolute;
	left: 10%;
	right: 10%;
	top: 30%;
	bottom: 8%;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 0;
}

.wws-v2-status__header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 0.15rem;
}

.wws-v2-status__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(90, 61, 34, 0.35);
	background: rgba(247, 236, 210, 0.92);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.wws-v2-status__pill.is-online {
	color: #1b7a32;
	border-color: rgba(27, 122, 50, 0.45);
}

.wws-v2-status__pill.is-offline {
	color: #b71c1c;
	border-color: rgba(183, 28, 28, 0.45);
}

.wws-v2-status__pill.is-unknown {
	color: #6d563c;
}

.wws-v2-status__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	flex: 1 1 auto;
}

.wws-v2-status__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.82rem;
	line-height: 1.25;
	color: #3d2914;
	border-bottom: 1px solid rgba(138, 106, 58, 0.22);
	padding-bottom: 0.2rem;
}

.wws-v2-status__list li span {
	font-weight: 600;
	color: #6d563c;
}

.wws-v2-status__list li strong {
	font-weight: 800;
	text-align: right;
	color: #2a1a0e;
}

.wws-v2-status__fallback {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #8a4b12;
	text-align: center;
}

.wws-v2-status__online {
	display: block;
	margin-top: auto;
	line-height: 0;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.wws-v2-status__online img {
	display: block;
	width: 100%;
	height: auto;
}

.wws-v2-status__online:hover,
.wws-v2-status__online:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

.wws-v2-content-placeholder {
	min-height: 600px;
	margin-top: 24px;
	border-radius: 12px;
	border: 1px dashed rgba(201, 162, 39, 0.28);
	background: rgba(255, 255, 255, 0.05);
}

.wws-v2-flash {
	position: relative;
	z-index: 1;
	max-width: var(--wws-v2-max);
	margin: 12px auto 0;
	padding: 0 var(--wws-v2-pad);
}

/* ---- Footer credits (after all page content) ---- */
.wws-v2-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 40px auto 20px;
	padding: 0 var(--wws-v2-pad);
	background: transparent;
	border: none;
	box-shadow: none;
}

.wws-v2-footer img {
	display: block;
	width: 90%;
	max-width: 1000px;
	height: auto;
}

/* ---- Responsive ---- */
@media (max-width: 1400px) {
	.wws-v2-nav__link--image img {
		height: 54px;
		max-width: 190px;
	}

	.wws-v2-search-char__img {
		height: 54px;
		max-width: min(240px, 32vw);
	}

	.wws-v2-nav__link--login.wws-v2-nav__link--image img {
		height: 58px;
		max-width: 200px;
	}

	.wws-v2-header-branding img {
		width: clamp(220px, 20vw, 300px);
		max-width: min(300px, 32vw);
	}

	.wws-v2-nav__link--text,
	.wws-v2-nav__link--login:not(.wws-v2-nav__link--image),
	.wws-v2-nav__logout-btn {
		font-size: 0.72rem;
		padding: 0.4rem 0.7rem;
	}
}

@media (max-width: 1100px) {
	.wws-v2-nav {
		column-gap: 10px;
	}

	.wws-v2-nav__left,
	.wws-v2-nav__right {
		gap: 6px;
	}

	.wws-v2-nav__link--image img {
		height: 48px;
		max-width: 160px;
	}

	.wws-v2-search-char__img {
		height: 48px;
		max-width: min(220px, 36vw);
	}

	.wws-v2-nav__link--login.wws-v2-nav__link--image img {
		height: 52px;
		max-width: 170px;
	}

	.wws-v2-header-branding img {
		width: clamp(180px, 24vw, 260px);
		max-width: min(260px, 36vw);
	}
}

@media (max-width: 1199px) {
	.wws-v2-hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"left right"
			"center center";
		min-height: 0;
		gap: 24px;
	}

	.wws-v2-hero-left { grid-area: left; }
	.wws-v2-hero-center { grid-area: center; }
	.wws-v2-hero-right { grid-area: right; }
}

@media (max-width: 768px) {
	.wws-v2-header__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"center toggle"
			"left left"
			"right right";
		align-items: center;
		column-gap: 12px;
		row-gap: 8px;
		padding: 8px 12px;
	}

	.wws-v2-nav-toggle {
		display: inline-flex;
		grid-area: toggle;
		justify-self: end;
		align-self: center;
		z-index: 2;
	}

	.wws-v2-nav {
		display: contents;
		width: auto;
		padding: 0;
	}

	.wws-v2-nav__center {
		grid-area: center;
		justify-self: center;
	}

	.wws-v2-nav__left,
	.wws-v2-nav__right {
		display: none;
		flex-direction: column;
		align-items: stretch;
		justify-content: stretch;
		width: 100%;
		gap: 8px;
	}

	.wws-v2-nav.is-open .wws-v2-nav__left,
	.wws-v2-nav.is-open .wws-v2-nav__right {
		display: flex;
	}

	.wws-v2-nav.is-open .wws-v2-nav__left {
		grid-area: left;
	}

	.wws-v2-nav.is-open .wws-v2-nav__right {
		grid-area: right;
	}

	.wws-v2-nav__left > li,
	.wws-v2-nav__right > li,
	.wws-v2-nav__account {
		width: 100%;
		justify-content: center;
	}

	.wws-v2-nav__link,
	.wws-v2-nav__logout-btn {
		width: 100%;
		justify-content: center;
	}

	.wws-v2-nav__link--image img {
		height: 52px;
		max-width: min(280px, 86vw);
	}

	.wws-v2-search-char__img {
		height: 52px;
		max-width: min(280px, 86vw);
	}

	.wws-v2-nav__link--login.wws-v2-nav__link--image img {
		height: 56px;
		max-width: min(280px, 86vw);
	}

	.wws-v2-header-branding img {
		width: clamp(200px, 70vw, 300px);
		max-width: 78vw;
	}

	.wws-v2-nav__account {
		flex-direction: column;
		justify-content: stretch;
	}

	.wws-v2-footer {
		margin: 28px auto 16px;
		padding: 0;
	}

	.wws-v2-footer img {
		width: 94vw;
		max-width: 94vw;
	}

	.wws-v2-center-reserve {
		min-height: 120px;
	}

	.wws-v2-hero-grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"center"
			"left"
			"right";
		gap: 20px;
	}

	.wws-v2-login,
	.wws-v2-status,
	.wws-v2-right-column {
		max-width: 370px;
	}

	.wws-v2-login input.wws-v2-login__input[type="text"],
	.wws-v2-login input.wws-v2-login__input[type="password"],
	.wws-v2-login__sprite-btn,
	.wws-v2-login__forgot {
		width: 92%;
		max-width: 92%;
	}

	.wws-v2-content-placeholder {
		min-height: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wws-v2-nav__link,
	.wws-v2-nav__logout-btn,
	.wws-v2-play,
	.wws-v2-login__sprite-btn,
	.wws-v2-login__forgot,
	.wws-v2-status__online {
		transition: none;
	}

	.wws-v2-play:hover,
	.wws-v2-play:focus-visible {
		transform: none;
	}
}

/* ---- Register V2 modular UI ---- */
.page-register-v2 .wws-v2-flash .alert-error {
	max-width: 720px;
	margin: 0.5rem auto;
	padding: 0.45rem 0.75rem;
	font-size: 0.85rem;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #7a1a12;
	text-align: center;
}

.wws-register-page {
	display: flex;
	justify-content: center;
	padding: 8px 0 32px;
}

.wws-register-page--success {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem 1.75rem;
	align-items: start;
	justify-content: center;
	max-width: 1400px;
	margin-inline: auto;
	width: 100%;
}

.wws-register-login {
	width: 100%;
	max-width: 300px;
	margin: 24px auto 0;
	justify-self: end;
}

.wws-register-page--success .wws-register {
	margin-top: -50px;
	margin-left: 0;
	margin-right: 0;
	justify-self: stretch;
}

.wws-register-success {
	margin: 0.15rem 0 0.2rem;
	padding: 0;
	color: #2f8a3c;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	text-align: center;
	background: none;
	border: none;
}

.wws-register {
	width: 100%;
	max-width: 980px;
	margin: -50px auto 0;
}

.wws-register-panel {
	position: relative;
	width: 100%;
	margin-inline: auto;
	line-height: 0;
}

.wws-register-panel__bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.wws-register-panel__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.55rem;
	line-height: normal;
	padding: 6% 9% 8%;
	overflow: visible;
}

.wws-register-heading {
	display: block;
	width: min(78%, 520px);
	height: auto;
	margin: -2% auto 0.35rem;
}

.wws-register-form {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wws-register-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wws-register-fields {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.wws-register-field {
	display: grid;
	grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
	align-items: center;
	gap: 0.45rem 0.65rem;
}

.wws-register-field__label {
	display: block;
	width: 100%;
	max-width: 250px;
	height: auto;
	justify-self: start;
	margin-left: 20px;
}

.wws-register-field__control {
	/* Shorten 60px from the right; left edge stays put */
	container-type: inline-size;
	position: relative;
	width: calc(100% - 60px);
	justify-self: start;
	line-height: 0;
}

.wws-register-field__frame {
	display: flex;
	align-items: stretch;
	width: 100%;
	/* Height matches previous full-width frame (before -60px) */
	height: calc((100cqw + 60px) * 87 / 583);
	pointer-events: none;
	user-select: none;
}

.wws-register-field__frame-l,
.wws-register-field__frame-r {
	display: block;
	flex: 0 0 auto;
	height: 100%;
	width: auto;
	object-fit: fill;
}

.wws-register-field__frame-c {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	width: 100%;
	object-fit: fill;
}

.wws-register-field__input {
	position: absolute;
	left: 7.5%;
	right: 10%;
	top: 18%;
	bottom: 22%;
	width: auto;
	height: auto;
	box-sizing: border-box;
	margin: 0;
	padding: 0 0.35rem;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	color: #3d2412;
	caret-color: #3d2412;
	font-family: var(--wws-v2-font);
	font-size: clamp(0.72rem, 1.35vw, 1.05rem);
	font-weight: 600;
}

.wws-register-field__input::placeholder {
	color: #6d4a27;
	opacity: 0.78;
	font-weight: 600;
}

.wws-register-field__input:focus {
	outline: none !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(122, 50, 20, 0.45) !important;
	box-shadow: none !important;
	background: transparent !important;
}

.wws-register-field__input:-webkit-autofill,
.wws-register-field__input:-webkit-autofill:hover,
.wws-register-field__input:-webkit-autofill:focus,
.wws-register-field__input:-webkit-autofill:active {
	-webkit-text-fill-color: #3d2412 !important;
	caret-color: #3d2412 !important;
	background: transparent !important;
	background-color: transparent !important;
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	box-shadow: none !important;
	transition: background-color 99999s ease-out 0s;
}

.wws-register-security-block {
	margin-left: 100px;
}

.wws-register-security {
	margin-top: 0.35rem;
}

.wws-register-security__title {
	margin: 0 0 0.35rem;
	font-family: var(--wws-v2-font);
	font-size: clamp(0.78rem, 1.4vw, 1.05rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5c1a12;
	text-align: left;
}

/* Reserved slot above captcha — avoids shifting main fields when errors appear */
.wws-register-errors {
	min-height: 2.6em;
	margin: 0 0 0.3rem;
	padding: 0;
}

.wws-register-errors__item {
	display: block;
	margin: 0;
	padding: 0;
	color: #8f1717;
	font-family: var(--wws-v2-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.wws-register-captcha {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.wws-register-captcha__display,
.wws-register-captcha__input-wrap {
	position: relative;
	line-height: 0;
}

.wws-register-captcha__display {
	flex: 1 1 180px;
	max-width: 280px;
}

.wws-register-captcha__input-wrap {
	flex: 1 1 140px;
	max-width: 200px;
}

.wws-register-captcha__display-bg,
.wws-register-captcha__input-bg {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
}

.wws-register-captcha__code {
	position: absolute;
	left: 14%;
	right: 14%;
	top: 18%;
	bottom: 18%;
	width: auto;
	height: auto;
	object-fit: contain;
	pointer-events: none;
}

.wws-register-captcha__input {
	position: absolute;
	left: 10%;
	right: 10%;
	top: 20%;
	bottom: 22%;
	margin: 0;
	padding: 0 0.25rem;
	background: transparent !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	color: #3d2412;
	caret-color: #3d2412;
	font-family: var(--wws-v2-font);
	font-size: clamp(0.68rem, 1.2vw, 0.95rem);
	font-weight: 600;
	text-transform: uppercase;
}

.wws-register-captcha__input::placeholder {
	color: #6d4a27;
	opacity: 0.75;
	text-transform: none;
}

.wws-register-captcha__input:focus {
	outline: none !important;
	border-bottom: 1px solid rgba(122, 50, 20, 0.45) !important;
	background: transparent !important;
}

.wws-register-refresh {
	display: inline-flex;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	width: clamp(42px, 7vw, 64px);
	flex: 0 0 auto;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.wws-register-refresh img {
	display: block;
	width: 100%;
	height: auto;
}

.wws-register-refresh:hover,
.wws-register-refresh:focus-visible {
	transform: scale(1.02);
	filter: brightness(1.05);
}

.wws-register-noscript {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
}

.wws-register-terms-row {
	margin-top: 0.35rem;
}

.wws-register-check {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
	max-width: 100%;
}

.wws-register-check__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wws-register-check__box {
	display: inline-block;
	width: clamp(22px, 3.2vw, 30px);
	aspect-ratio: 1;
	flex: 0 0 auto;
	background-image: url("../wws/v2/register/checkbox_empty.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.wws-register-check__input:checked + .wws-register-check__box {
	background-image: url("../wws/v2/register/checkbox_checked.png");
}

.wws-register-check__input:focus-visible + .wws-register-check__box {
	outline: 2px solid var(--wws-v2-gold-soft);
	outline-offset: 2px;
}

.wws-register-check__text {
	font-family: var(--wws-v2-font);
	font-size: clamp(0.68rem, 1.15vw, 0.92rem);
	font-weight: 600;
	color: #3d2412;
	line-height: 1.25;
}

.wws-register-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1rem;
	margin-top: 0.55rem;
}

.wws-register-btn {
	display: inline-block;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.wws-register-btn img {
	display: block;
	width: 100%;
	height: auto;
}

.wws-register-btn--create {
	width: min(46%, 280px);
}

.wws-register-btn--login {
	width: min(44%, 260px);
}

.wws-register-btn:hover,
.wws-register-btn:focus-visible {
	transform: scale(1.02);
	filter: brightness(1.05);
}

.wws-register-error {
	display: none;
}

@media (max-width: 900px) {
	.wws-register-page--success {
		grid-template-columns: 1fr;
		justify-items: center;
		max-width: 980px;
	}

	.wws-register-login {
		justify-self: center;
		order: 2;
		margin-top: 0.5rem;
	}

	.wws-register-page--success .wws-register {
		order: 1;
		margin-top: -30px;
	}

	.wws-register {
		max-width: 100%;
	}

	.wws-register-panel__content {
		padding: 5% 7% 7%;
		gap: 0.4rem;
	}

	.wws-register-field {
		grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
		gap: 0.3rem 0.45rem;
	}
}

@media (max-width: 640px) {
	.wws-register-page {
		padding: 4px 0 20px;
	}

	.wws-register-panel__content {
		padding: 5% 5% 6%;
	}

	.wws-register-heading {
		width: min(88%, 420px);
	}

	.wws-register-field {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}

	.wws-register-field__label {
		max-width: 200px;
	}

	.wws-register-captcha {
		gap: 0.4rem;
	}

	.wws-register-actions {
		flex-direction: column;
	}

	.wws-register-btn--create,
	.wws-register-btn--login {
		width: min(92%, 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wws-register-btn,
	.wws-register-refresh {
		transition: none;
	}

	.wws-register-btn:hover,
	.wws-register-btn:focus-visible,
	.wws-register-refresh:hover,
	.wws-register-refresh:focus-visible {
		transform: none;
	}
}

/* ---- Account Recovery V2 (content position fix) ---- */
.wws-recovery-page {
	display: flex;
	justify-content: center;
	padding: 16px 0 40px;
}

.wws-recovery {
	width: 100%;
	max-width: 900px;
	margin: 8px auto 0;
}

.wws-recovery-panel {
	position: relative;
	width: min(900px, 94vw);
	margin: 0 auto;
	line-height: 0;
}

.wws-recovery-panel-bg,
.wws-recovery-panel__bg {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
}

/* Form is absolute overlay on parchment — NOT padding-% (those are width-based) */
.wws-recovery-content {
	position: absolute;
	z-index: 5;
	top: 27%;
	left: 17%;
	right: 12%;
	bottom: 13%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	line-height: normal;
	overflow: visible;
	background: transparent;
	border: 0;
}

.wws-recovery-rows {
	display: flex;
	flex-direction: column;
	row-gap: 14px;
	flex: 0 0 auto;
	min-height: 0;
}

.wws-recovery-row {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	column-gap: 20px;
	align-items: center;
	min-width: 0;
}

.wws-recovery-label {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	justify-self: start;
	pointer-events: none;
	user-select: none;
}

.wws-recovery-input-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
	line-height: 0;
}

.wws-recovery-input-bg,
.wws-recovery-input-wrap__frame {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	user-select: none;
}

/* Override global style.css dark input plate — scoped to recovery page only */
.wws-recovery-page .wws-recovery-input,
.wws-recovery-page input[type="text"].wws-recovery-input,
.wws-recovery-page input[type="password"].wws-recovery-input {
	position: absolute !important;
	left: 24px !important;
	right: 60px !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%);
	width: auto !important;
	max-width: none !important;
	height: 60% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #5a3a20 !important;
	-webkit-text-fill-color: #5a3a20 !important;
	caret-color: #5a3a20 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color-scheme: only light;
	-webkit-appearance: none !important;
	appearance: none !important;
	display: block !important;
}

.wws-recovery-page .wws-recovery-input::placeholder {
	color: rgba(90, 58, 32, 0.55) !important;
	-webkit-text-fill-color: rgba(90, 58, 32, 0.55) !important;
	font-weight: 600 !important;
	opacity: 1 !important;
}

.wws-recovery-page .wws-recovery-input:focus {
	outline: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	background-color: transparent !important;
}

.wws-recovery-page .wws-recovery-input:-webkit-autofill,
.wws-recovery-page .wws-recovery-input:-webkit-autofill:hover,
.wws-recovery-page .wws-recovery-input:-webkit-autofill:focus,
.wws-recovery-page .wws-recovery-input:-webkit-autofill:active {
	-webkit-text-fill-color: #5a3a20 !important;
	caret-color: #5a3a20 !important;
	transition: background-color 99999s ease-out 0s;
	-webkit-box-shadow: 0 0 0 1000px transparent inset !important;
	box-shadow: 0 0 0 1000px transparent inset !important;
	background: transparent !important;
	background-color: transparent !important;
}

.wws-recovery-message {
	flex: 0 0 auto;
	min-height: 1.2rem;
	margin: 12px 0 4px;
	text-align: center;
}

.wws-recovery-message__error {
	margin: 0;
	padding: 0;
	color: #9e2020;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
	background: none;
	border: none;
}

.wws-recovery-message__success {
	margin: 0;
	padding: 0;
	color: #2f8a3c;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
	background: none;
	border: none;
}

.wws-recovery-actions {
	margin-top: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 25px;
	flex: 0 0 auto;
}

.wws-recovery-action {
	display: inline-block;
	line-height: 0;
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none !important;
	border-radius: 0 !important;
	transition: transform 160ms ease, filter 160ms ease;
}

.wws-recovery-action img {
	display: block;
	width: auto;
	height: 56px;
	max-width: 270px;
	object-fit: contain;
}

.wws-recovery-action--reset img {
	max-width: 280px;
}

.wws-recovery-action--login img {
	max-width: 240px;
}

.wws-recovery-action:hover,
.wws-recovery-action:focus-visible {
	transform: scale(1.03);
	filter: brightness(1.05);
}

.wws-recovery-action:active {
	transform: scale(0.98);
}

@media (max-width: 900px) {
	.wws-recovery-content {
		top: 26%;
		left: 14%;
		right: 10%;
		bottom: 12%;
	}

	.wws-recovery-row {
		grid-template-columns: 180px minmax(0, 1fr);
		column-gap: 14px;
	}

	.wws-recovery-rows {
		row-gap: 12px;
	}
}

@media (max-width: 640px) {
	.wws-recovery-page {
		padding: 8px 0 28px;
	}

	.wws-recovery-content {
		top: 24%;
		left: 10%;
		right: 8%;
		bottom: 10%;
	}

	.wws-recovery-row {
		grid-template-columns: 1fr;
		row-gap: 0.2rem;
		column-gap: 0;
	}

	.wws-recovery-label {
		max-width: 220px;
	}

	.wws-recovery-actions {
		flex-direction: column;
		gap: 0.7rem;
		margin-top: 16px;
	}

	.wws-recovery-action img {
		height: 50px;
		max-width: min(92vw, 280px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wws-recovery-action {
		transition: none;
	}

	.wws-recovery-action:hover,
	.wws-recovery-action:focus-visible,
	.wws-recovery-action:active {
		transform: none;
		filter: none;
	}
}
