/* World of Wars portal skin. Selectors stay scoped so game UI styles do not leak in. */
:root {
	--woa-ink: #eaf3ff;
	--woa-muted: #aabbd1;
	--woa-dim: #7186a1;
	--woa-line: rgba(151, 185, 222, .19);
	--woa-panel: rgba(8, 19, 36, .82);
	--woa-panel-strong: rgba(9, 23, 43, .94);
	--woa-blue: #62c8ff;
	--woa-blue-strong: #239fe4;
	--woa-gold: #f0c879;
}

html,
body.woa-portal {
	min-height: 100%;
	width: 100%;
}

body.woa-portal {
	min-width: 320px;
	margin: 0;
	background: #050b16 url("../../images/login/background.jpg") center top / cover fixed no-repeat;
	color: var(--woa-ink);
	font: 15px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}

body.woa-portal::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, rgba(3, 8, 18, .94) 0%, rgba(4, 11, 24, .78) 48%, rgba(4, 9, 19, .58) 100%);
	content: "";
}

body.woa-portal *,
body.woa-portal *::before,
body.woa-portal *::after {
	box-sizing: border-box;
}

body.woa-portal a {
	color: inherit;
	text-decoration: none;
}

body.woa-portal button,
body.woa-portal input,
body.woa-portal select {
	font: inherit;
}

body.woa-portal .woa-skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	padding: 10px 14px;
	background: #fff;
	color: #061122;
}

body.woa-portal .woa-skip-link:focus {
	left: 12px;
}

body.woa-portal .woa-topbar {
	position: relative;
	z-index: 5;
	width: 100%;
	border-bottom: 1px solid var(--woa-line);
	background: rgba(4, 12, 25, .84);
	box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
	backdrop-filter: blur(16px);
}

body.woa-portal .woa-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: min(1380px, calc(100% - 56px));
	min-height: 82px;
	margin: 0 auto;
}

body.woa-portal .woa-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 220px;
}

body.woa-portal .woa-brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(98, 200, 255, .7);
	border-radius: 13px 4px 13px 4px;
	background: linear-gradient(145deg, rgba(40, 139, 194, .45), rgba(5, 19, 37, .8));
	box-shadow: 0 0 24px rgba(44, 166, 226, .2), inset 0 0 14px rgba(137, 218, 255, .1);
	color: #dff6ff;
	font-size: 22px;
	font-weight: 800;
}

body.woa-portal .woa-brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

body.woa-portal .woa-brand-copy strong {
	color: #f4f8ff;
	font-size: 15px;
	letter-spacing: .14em;
}

body.woa-portal .woa-brand-copy small {
	margin-top: 5px;
	color: var(--woa-dim);
	font-size: 11px;
	letter-spacing: .025em;
}

body.woa-portal .woa-main-nav,
body.woa-portal .woa-account-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

body.woa-portal .woa-main-nav a,
body.woa-portal .woa-nav-text {
	color: #b8c9dd;
	font-size: 13px;
	transition: color .18s ease;
}

body.woa-portal .woa-main-nav a:hover,
body.woa-portal .woa-nav-text:hover {
	color: var(--woa-blue);
}

body.woa-portal .woa-user-chip {
	max-width: 150px;
	overflow: hidden;
	color: #d6e6f7;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.woa-portal .woa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid rgba(139, 222, 255, .45);
	border-radius: 7px;
	background: linear-gradient(135deg, #49b9ee, #187fc0);
	box-shadow: 0 9px 26px rgba(14, 129, 193, .22), inset 0 1px rgba(255, 255, 255, .25);
	color: #061728 !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 750;
	transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

body.woa-portal .woa-button:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 12px 30px rgba(14, 129, 193, .32), inset 0 1px rgba(255, 255, 255, .3);
}

body.woa-portal .woa-button-small {
	min-height: 39px;
	padding: 0 15px;
	font-size: 12px;
}

body.woa-portal .woa-button-quiet {
	border-color: var(--woa-line);
	background: rgba(7, 17, 33, .6);
	box-shadow: none;
	color: var(--woa-ink) !important;
}

body.woa-portal .woa-button-wide {
	width: 100%;
}

body.woa-portal .woa-layout-main {
	min-height: calc(100vh - 220px);
}

body.woa-portal .woa-page {
	width: min(1380px, calc(100% - 56px));
	margin: 0 auto;
	padding: 48px 0 64px;
}

body.woa-portal .woa-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
	align-items: center;
	gap: clamp(38px, 7vw, 110px);
	min-height: 630px;
	padding: 48px clamp(28px, 5vw, 78px);
	border: 1px solid rgba(149, 188, 228, .2);
	border-radius: 22px;
	background: linear-gradient(115deg, rgba(5, 14, 28, .85), rgba(7, 19, 35, .55));
	box-shadow: 0 30px 90px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .055);
	backdrop-filter: blur(8px);
}

body.woa-portal .woa-hero-copy {
	max-width: 690px;
}

body.woa-portal .woa-eyebrow {
	margin: 0 0 14px;
	color: #8bb6d8;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .18em;
}

body.woa-portal .woa-live-dot,
body.woa-portal .woa-status i {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 9px;
	border-radius: 50%;
	background: #43e0a0;
	box-shadow: 0 0 13px rgba(67, 224, 160, .65);
	vertical-align: 1px;
}

body.woa-portal .woa-hero h1,
body.woa-portal .woa-register-intro h1 {
	margin: 0;
	color: #f1f7ff;
	font-size: clamp(38px, 5.1vw, 70px);
	font-weight: 720;
	letter-spacing: -.045em;
	line-height: 1.04;
}

body.woa-portal .woa-hero h1 span {
	color: var(--woa-blue);
	text-shadow: 0 0 32px rgba(51, 169, 229, .22);
}

body.woa-portal .woa-hero-intro {
	max-width: 540px;
	margin: 22px 0 26px;
	color: #bac9db;
	font-size: 16px;
}

body.woa-portal .woa-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 29px;
}

body.woa-portal .woa-login-card,
body.woa-portal .woa-realm-panel,
body.woa-portal .woa-news-panel,
body.woa-portal .woa-media-panel,
body.woa-portal .woa-register-card {
	border: 1px solid var(--woa-line);
	border-radius: 13px;
	background: var(--woa-panel);
	box-shadow: 0 18px 48px rgba(0, 0, 0, .19), inset 0 1px rgba(255, 255, 255, .04);
	backdrop-filter: blur(13px);
}

body.woa-portal .woa-login-card {
	max-width: 520px;
	padding: 22px 24px 24px;
}

body.woa-portal .woa-card-heading,
body.woa-portal .woa-panel-topline,
body.woa-portal .woa-section-heading,
body.woa-portal .woa-register-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

body.woa-portal .woa-card-heading .woa-eyebrow,
body.woa-portal .woa-section-heading .woa-eyebrow {
	margin-bottom: 4px;
}

body.woa-portal .woa-card-heading h2,
body.woa-portal .woa-realm-panel h2,
body.woa-portal .woa-section-heading h2,
body.woa-portal .woa-register-card h2 {
	margin: 0;
	color: #f0f6ff;
	font-size: 20px;
	font-weight: 680;
}

body.woa-portal .woa-lock-icon {
	color: #7cb7df;
	font-size: 25px;
}

body.woa-portal .woa-form {
	margin-top: 20px;
}

body.woa-portal .woa-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	color: #b8c8dc;
	font-size: 12px;
	font-weight: 600;
}

body.woa-portal .woa-field input,
body.woa-portal .woa-field select,
body.woa-portal .woa-universe-select select {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid rgba(141, 175, 214, .24);
	border-radius: 6px;
	outline: 0;
	background: rgba(3, 11, 23, .62);
	box-shadow: inset 0 1px 5px rgba(0, 0, 0, .18);
	color: #eff6ff;
	font-size: 14px;
}

body.woa-portal .woa-field input:focus,
body.woa-portal .woa-field select:focus,
body.woa-portal .woa-universe-select select:focus {
	border-color: rgba(98, 200, 255, .8);
	box-shadow: 0 0 0 3px rgba(51, 169, 229, .12);
}

body.woa-portal .woa-field input::placeholder {
	color: #7588a0;
}

body.woa-portal .woa-login-card .woa-field + .woa-field {
	margin-top: 13px;
}

body.woa-portal .woa-login-options {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 13px 0 18px;
	color: var(--woa-dim);
	font-size: 11px;
}

body.woa-portal .woa-login-options a,
body.woa-portal .woa-section-heading > a,
body.woa-portal .woa-realm-link,
body.woa-portal .woa-media-link {
	color: var(--woa-blue);
}

body.woa-portal .woa-alert {
	margin: 16px 0 0;
	padding: 10px 12px;
	border: 1px solid rgba(255, 133, 133, .38);
	border-radius: 6px;
	background: rgba(119, 28, 45, .25);
	color: #ffd2d6;
	font-size: 13px;
}

body.woa-portal .woa-realm-panel {
	padding: 27px;
	background: linear-gradient(160deg, rgba(10, 27, 49, .94), rgba(6, 16, 31, .85));
}

body.woa-portal .woa-panel-topline {
	margin-bottom: 20px;
}

body.woa-portal .woa-panel-topline .woa-eyebrow {
	margin: 0;
}

body.woa-portal .woa-status {
	color: #ff9a9e;
	font-size: 11px;
	font-weight: 700;
}

body.woa-portal .woa-status.is-offline i {
	background: #ff6873;
	box-shadow: 0 0 12px rgba(255, 104, 115, .5);
}

body.woa-portal .woa-status.is-online {
	color: #91efc4;
}

body.woa-portal .woa-panel-intro {
	margin: 7px 0 20px;
	color: var(--woa-muted);
	font-size: 13px;
}

body.woa-portal .woa-universe-select label {
	display: block;
	margin-bottom: 7px;
	color: #8da2bb;
	font-size: 11px;
	font-weight: 650;
}

body.woa-portal .woa-universe-select select {
	appearance: auto;
}

body.woa-portal .woa-realm-card {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 19px;
	padding: 16px 14px;
	border: 1px solid rgba(123, 170, 211, .22);
	border-radius: 9px;
	background: linear-gradient(100deg, rgba(20, 47, 72, .74), rgba(6, 20, 37, .45));
}

body.woa-portal .woa-planet-art {
	position: relative;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(144, 218, 255, .42);
	border-radius: 50%;
	background: radial-gradient(circle at 33% 28%, #a2e3f5 0, #4c9ac1 18%, #17466d 52%, #071526 74%);
	box-shadow: inset -9px -9px 16px rgba(0, 0, 0, .55), 0 0 18px rgba(79, 185, 228, .19);
}

body.woa-portal .woa-planet-art::after {
	position: absolute;
	left: -7px;
	top: 25px;
	width: 70px;
	height: 12px;
	transform: rotate(-19deg);
	border: 1px solid rgba(132, 211, 248, .42);
	border-radius: 50%;
	content: "";
}

body.woa-portal .woa-realm-copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

body.woa-portal .woa-realm-label {
	color: #86a3c2;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .15em;
}

body.woa-portal .woa-realm-copy strong {
	overflow: hidden;
	margin: 2px 0;
	color: #edf6ff;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.woa-portal .woa-online-count {
	color: #91c7e9;
	font-size: 11px;
}

body.woa-portal .woa-realm-index {
	align-self: flex-start;
	padding: 4px 7px;
	border: 1px solid rgba(240, 200, 121, .22);
	border-radius: 4px;
	color: var(--woa-gold);
	font-size: 10px;
	font-weight: 700;
}

body.woa-portal .woa-panel-divider {
	height: 1px;
	margin: 20px 0 14px;
	background: var(--woa-line);
}

body.woa-portal .woa-realm-link,
body.woa-portal .woa-media-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 700;
}

body.woa-portal .woa-panel-footnote {
	margin: 16px 0 0;
	color: #7489a3;
	font-size: 10px;
}

body.woa-portal .woa-feature-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 20px 0 46px;
}

body.woa-portal .woa-feature-row article {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 98px;
	padding: 18px 22px;
	border: 1px solid var(--woa-line);
	border-radius: 10px;
	background: rgba(6, 17, 32, .72);
}

body.woa-portal .woa-feature-icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(98, 200, 255, .24);
	border-radius: 9px;
	background: rgba(38, 125, 174, .12);
	color: var(--woa-blue);
	font-size: 21px;
}

body.woa-portal .woa-feature-row strong {
	color: #e7f1fc;
	font-size: 13px;
}

body.woa-portal .woa-feature-row p {
	margin: 3px 0 0;
	color: #91a4bb;
	font-size: 11px;
}

body.woa-portal .woa-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
	gap: 20px;
}

body.woa-portal .woa-news-panel,
body.woa-portal .woa-media-panel {
	padding: 25px;
}

body.woa-portal .woa-section-heading {
	margin-bottom: 18px;
}

body.woa-portal .woa-section-heading > a {
	font-size: 11px;
}

body.woa-portal .woa-news-list {
	display: grid;
	gap: 10px;
}

body.woa-portal .woa-news-card {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 12px;
	padding: 15px 0;
	border-top: 1px solid rgba(151, 185, 222, .12);
}

body.woa-portal .woa-news-marker {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid rgba(98, 200, 255, .18);
	border-radius: 8px;
	background: rgba(41, 119, 162, .13);
	color: var(--woa-blue);
}

body.woa-portal .woa-news-card h3 {
	margin: 0 0 3px;
	color: #e8f3ff;
	font-size: 14px;
}

body.woa-portal .woa-news-card h3 a:hover {
	color: var(--woa-blue);
}

body.woa-portal .woa-news-meta {
	margin: 0 0 6px;
	color: #7f95af;
	font-size: 10px;
}

body.woa-portal .woa-news-excerpt {
	display: -webkit-box;
	max-height: 4.5em;
	margin: 0;
	overflow: hidden;
	color: #a9bbd0;
	font-size: 12px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.woa-portal .woa-empty-state {
	padding: 26px 0;
	color: var(--woa-muted);
}

body.woa-portal .woa-media-preview,
body.woa-portal .woa-media-empty {
	display: flex;
	min-height: 205px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	border: 1px solid rgba(151, 185, 222, .15);
	border-radius: 9px;
	background-color: #09182b;
	background-position: center;
	background-size: cover;
	text-align: center;
}

body.woa-portal .woa-play-icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: rgba(5, 12, 22, .58);
	color: #fff;
	font-size: 14px;
}

body.woa-portal .woa-media-title {
	color: #f2f8ff;
	font-weight: 700;
}

body.woa-portal .woa-media-empty {
	color: #91b8d5;
}

body.woa-portal .woa-media-empty span {
	font-size: 32px;
}

body.woa-portal .woa-media-empty p {
	max-width: 220px;
	margin: 0;
	font-size: 12px;
}

body.woa-portal .woa-media-link {
	margin-top: 15px;
}

body.woa-portal .woa-register-page {
	max-width: 1020px;
}

body.woa-portal .woa-register-intro {
	margin: 15px 0 28px;
	text-align: center;
}

body.woa-portal .woa-register-intro h1 {
	font-size: clamp(34px, 4.8vw, 56px);
}

body.woa-portal .woa-register-intro > p:last-child {
	margin: 13px 0 0;
	color: var(--woa-muted);
}

body.woa-portal .woa-register-card {
	padding: clamp(22px, 4vw, 42px);
	background: rgba(6, 17, 33, .9);
}

body.woa-portal .woa-register-card .woa-section-heading {
	margin-bottom: 24px;
}

body.woa-portal .woa-back-link {
	color: var(--woa-blue);
	font-size: 12px;
}

body.woa-portal .woa-register-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

body.woa-portal .woa-birthday-fields {
	display: grid;
	grid-template-columns: .8fr .55fr 1.2fr;
	gap: 8px;
}

body.woa-portal .woa-register-note {
	margin: 19px 0;
	color: #91a5bc;
	font-size: 11px;
}

body.woa-portal .woa-register-actions {
	padding-top: 20px;
	border-top: 1px solid var(--woa-line);
}

body.woa-portal .woa-legacy-login {
	display: none !important;
}

body.woa-portal .woa-footer {
	border-top: 1px solid rgba(151, 185, 222, .16);
	background: rgba(3, 9, 19, .84);
}

body.woa-portal .woa-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 17px 28px;
	width: min(1380px, calc(100% - 56px));
	margin: 0 auto;
	padding: 24px 0;
}

body.woa-portal .woa-footer-brand {
	color: #e3efff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
}

body.woa-portal .woa-footer nav,
body.woa-portal .woa-language-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

body.woa-portal .woa-footer nav a,
body.woa-portal .woa-language-list a,
body.woa-portal .woa-footer-inner > p {
	margin: 0;
	color: #8194aa;
	font-size: 10px;
}

body.woa-portal .woa-footer nav a:hover,
body.woa-portal .woa-language-list a:hover {
	color: var(--woa-blue);
}

@media (max-width: 980px) {
	body.woa-portal .woa-main-nav { gap: 14px; }
	body.woa-portal .woa-brand { min-width: auto; }
	body.woa-portal .woa-hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 30px; padding: 36px; }
	body.woa-portal .woa-content-grid { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
}

@media (max-width: 760px) {
	body.woa-portal .woa-topbar-inner { width: min(100% - 32px, 600px); min-height: 72px; flex-wrap: wrap; gap: 10px 16px; padding: 12px 0; }
	body.woa-portal .woa-main-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; padding: 8px 0 2px; }
	body.woa-portal .woa-main-nav a { font-size: 11px; }
	body.woa-portal .woa-account-nav { gap: 10px; }
	body.woa-portal .woa-page { width: min(100% - 32px, 600px); padding: 24px 0 40px; }
	body.woa-portal .woa-hero { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 30px 22px; border-radius: 15px; }
	body.woa-portal .woa-hero h1 { font-size: clamp(36px, 10vw, 54px); }
	body.woa-portal .woa-hero-intro { font-size: 14px; }
	body.woa-portal .woa-login-card { padding: 19px; }
	body.woa-portal .woa-realm-panel { padding: 22px; }
	body.woa-portal .woa-feature-row { grid-template-columns: 1fr; gap: 9px; margin: 14px 0 30px; }
	body.woa-portal .woa-feature-row article { min-height: 76px; }
	body.woa-portal .woa-content-grid { grid-template-columns: 1fr; }
	body.woa-portal .woa-news-panel, body.woa-portal .woa-media-panel { padding: 20px; }
	body.woa-portal .woa-register-grid { grid-template-columns: 1fr; }
	body.woa-portal .woa-register-page { padding-top: 20px; }
	body.woa-portal .woa-register-intro { margin: 10px 0 22px; }
	body.woa-portal .woa-footer-inner { width: min(100% - 32px, 600px); align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
	body.woa-portal .woa-brand-copy small { display: none; }
	body.woa-portal .woa-account-nav .woa-nav-text { display: none; }
	body.woa-portal .woa-account-nav .woa-button-small { min-height: 35px; padding: 0 10px; }
	body.woa-portal .woa-hero-actions { display: grid; grid-template-columns: 1fr; }
	body.woa-portal .woa-register-actions { align-items: stretch; flex-direction: column; }
	body.woa-portal .woa-birthday-fields { grid-template-columns: .8fr .55fr 1.2fr; gap: 5px; }
}
