:root {
	--public-shell-text: #edf8ff;
	--public-shell-text-soft: rgba(223, 241, 255, 0.8);
	--public-shell-cyan: #7fe3ff;
	--public-shell-accent: #ffb364;
	--public-shell-accent-strong: #ff7e53;
}

html,
body {
	width: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.light,
body.normal,
body.full {
	overflow-x: hidden;
}

body.light #page,
body.normal #page,
body.full #page {
	min-height: 100vh;
}

header#main-header {
	top: 0;
	left: 0;
	width: 100%;
	height: auto !important;
	padding: 12px 0 !important;
	background: linear-gradient(180deg, rgba(4, 10, 22, 0.94), rgba(4, 10, 22, 0.56)) !important;
	border-bottom: 1px solid rgba(114, 224, 255, 0.1);
	backdrop-filter: blur(16px);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
	z-index: 120;
}

.header-inner {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto auto !important;
	align-items: center !important;
	gap: 24px;
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
	padding: 0 !important;
	height: auto !important;
}

.header-left,
.header-center,
.header-right,
.header-nav-left {
	display: flex !important;
	align-items: center !important;
}

.header-center {
	justify-content: center !important;
}

.header-right {
	justify-content: flex-end !important;
}

.header-nav-left {
	gap: 18px !important;
}

.header-logo img {
	display: block !important;
	height: 78px !important;
	width: auto !important;
}

.header-logo a:hover img {
	transform: translateY(-1px) scale(1.03);
	filter: drop-shadow(0 0 26px rgba(255, 179, 100, 0.4));
}

#menu {
	display: flex !important;
	align-items: center !important;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
}

#menu li {
	list-style: none !important;
	padding: 0 !important;
}

#menu a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	padding: 11px 16px !important;
	border-radius: 999px;
	border: 1px solid rgba(114, 224, 255, 0.12) !important;
	background: rgba(255, 255, 255, 0.02);
	color: var(--public-shell-text-soft) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

#menu a:hover {
	color: var(--public-shell-text) !important;
	border-color: rgba(255, 179, 100, 0.26) !important;
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-1px);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn-login,
.btn-register {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 144px;
	padding: 13px 20px !important;
	border-radius: 999px;
	border: 1px solid rgba(114, 224, 255, 0.14) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn-login {
	background: rgba(255, 255, 255, 0.03);
	color: var(--public-shell-text) !important;
}

.btn-register {
	background: linear-gradient(135deg, var(--public-shell-accent), var(--public-shell-accent-strong));
	border-color: transparent !important;
	color: #1d120b !important;
	box-shadow: 0 16px 34px rgba(255, 126, 83, 0.24);
}

.btn-login:hover,
.btn-register:hover {
	transform: translateY(-2px);
}

.btn-login:hover {
	color: var(--public-shell-accent) !important;
	border-color: rgba(255, 179, 100, 0.26) !important;
}

.btn-register:hover {
	box-shadow: 0 20px 42px rgba(255, 126, 83, 0.32);
}

.lang-switcher {
	position: relative !important;
}

#language {
	display: flex !important;
	align-items: center !important;
	gap: 10px;
	margin: 0 !important;
	padding: 8px 12px !important;
	list-style: none !important;
	border: 1px solid rgba(114, 224, 255, 0.14) !important;
	border-radius: 999px !important;
	background: rgba(8, 18, 36, 0.72) !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	cursor: pointer !important;
}

.lang-switcher .lang-item {
	opacity: 0;
	transform: translateX(-8px) scale(0.9);
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
	padding: 0 !important;
}

.lang-switcher .lang-item.active,
.lang-switcher.open .lang-item {
	opacity: 1;
	transform: translateX(0) scale(1);
	pointer-events: auto;
}

#language .flags {
	display: block !important;
	width: 18px;
	height: 12px;
}

body.normal #content,
body.full #content {
	width: min(1110px, calc(100% - 24px));
	max-width: none !important;
	margin: 136px auto 0 !important;
}

body.normal .box-out,
body.normal .box-inner,
body.full .box-out,
body.full .box-inner {
	width: 100%;
}

body.normal .box-inner,
body.full .box-inner {
	margin: 16px auto;
}

body.normal .box-inner-content-center,
body.full .box-inner-content-center {
	padding: 12px;
	word-break: break-word;
}

body.normal #content h1,
body.full #content h1 {
	color: var(--public-shell-text) !important;
}

body.light .modal,
body.normal .modal,
body.full .modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
	z-index: 9999;
}

body.light .modal.open,
body.normal .modal.open,
body.full .modal.open {
	opacity: 1;
	pointer-events: auto;
}

body.light .modal-overlay,
body.normal .modal-overlay,
body.full .modal-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 40%, rgba(24, 72, 140, 0.22), transparent 28%),
		rgba(3, 7, 16, 0.82);
	backdrop-filter: blur(12px);
}

body.light .modal-box,
body.normal .modal-box,
body.full .modal-box {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 32px;
	border: 1px solid rgba(114, 224, 255, 0.16);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
		rgba(4, 10, 20, 0.94);
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
	transform: translateY(18px) scale(0.98);
	transition: transform 220ms ease;
}

body.light .modal.open .modal-box,
body.normal .modal.open .modal-box,
body.full .modal.open .modal-box {
	transform: translateY(0) scale(1);
}

body.light .modal-box h2,
body.normal .modal-box h2,
body.full .modal-box h2 {
	margin: 0 0 26px;
	color: var(--public-shell-text);
	font-size: 30px;
	line-height: 1.1;
}

body.light .modal-close,
body.normal .modal-close,
body.full .modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: 1px solid rgba(114, 224, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.03);
	color: var(--public-shell-text);
	font-size: 18px;
	line-height: 1;
}

body.light .modal-close:hover,
body.normal .modal-close:hover,
body.full .modal-close:hover {
	border-color: rgba(255, 179, 100, 0.28);
	color: var(--public-shell-accent);
}

body.light .rowForm,
body.normal .rowForm,
body.full .rowForm {
	margin-bottom: 16px;
	text-align: left;
}

body.light .rowForm label,
body.normal .rowForm label,
body.full .rowForm label {
	display: block;
	width: auto;
	margin-bottom: 8px;
	color: var(--public-shell-text-soft);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	float: none;
	padding: 0;
	height: auto;
}

body.light .rowForm input,
body.light .rowForm select,
body.normal .rowForm input,
body.normal .rowForm select,
body.full .rowForm input,
body.full .rowForm select {
	width: 100%;
	margin: 0;
	padding: 15px 16px !important;
	border: 1px solid rgba(114, 224, 255, 0.14);
	border-radius: 16px;
	background: rgba(8, 18, 36, 0.82);
	color: var(--public-shell-text);
	font-family: 'Source Sans 3', Tahoma, sans-serif;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.light .rowForm input:focus,
body.light .rowForm select:focus,
body.normal .rowForm input:focus,
body.normal .rowForm select:focus,
body.full .rowForm input:focus,
body.full .rowForm select:focus {
	outline: none;
	border-color: rgba(127, 227, 255, 0.36);
	box-shadow: 0 0 0 3px rgba(127, 227, 255, 0.08);
}

body.light .rules label,
body.normal .rules label,
body.full .rules label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 0;
}

body.light .rules input[type="checkbox"],
body.normal .rules input[type="checkbox"],
body.full .rules input[type="checkbox"] {
	width: 18px;
	min-width: 18px;
	height: 18px;
	margin-top: 2px;
	padding: 0 !important;
}

body.light .rules a,
body.normal .rules a,
body.full .rules a {
	color: var(--public-shell-accent) !important;
	text-decoration: none !important;
}

body.light .rules a:hover,
body.normal .rules a:hover,
body.full .rules a:hover {
	color: var(--public-shell-cyan) !important;
}

body.light .rowForm.submit,
body.normal .rowForm.submit,
body.full .rowForm.submit {
	margin-top: 24px;
}

body.light .rowForm.submit input[type="submit"],
body.normal .rowForm.submit input[type="submit"],
body.full .rowForm.submit input[type="submit"] {
	width: 100% !important;
	padding: 15px 20px !important;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--public-shell-accent), var(--public-shell-accent-strong));
	color: #1d120b;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	box-shadow: 0 18px 36px rgba(255, 126, 83, 0.24);
}

body.light .login-links,
body.normal .login-links,
body.full .login-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 20px;
}

body.light .login-links a,
body.normal .login-links a,
body.full .login-links a {
	color: var(--public-shell-cyan) !important;
	font-size: 14px;
	font-weight: 600;
}

body.light .login-links a:hover,
body.normal .login-links a:hover,
body.full .login-links a:hover {
	color: var(--public-shell-accent) !important;
}

body#privacy::before,
body#rules::before,
body#cgu::before {
	content: none !important;
	display: none !important;
	background: none !important;
}

body#privacy,
body#rules,
body#cgu {
	background: #0d1014 !important;
}

.legal-theme-shell {
	width: min(950px, calc(100% - 24px));
	margin: 136px auto 40px;
	padding-bottom: 40px;
}

.legal-theme-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.legal-theme-copy {
	padding: 20px 24px !important;
	text-align: left;
	word-break: break-word;
	line-height: 1.7;
}

.legal-theme-copy h1,
.legal-theme-copy h2,
.legal-theme-copy h3 {
	text-align: left;
	margin: 0 0 12px;
	line-height: 1.25;
}

.legal-theme-copy p,
.legal-theme-copy ul,
.legal-theme-copy ol {
	margin: 0 0 16px;
}

.legal-theme-copy ul,
.legal-theme-copy ol {
	padding-left: 22px;
}

.legal-theme-copy a {
	color: #7fe3ff !important;
	text-decoration: none !important;
}

.legal-theme-copy a:hover {
	color: #ffd600 !important;
}

.legal-theme-copy #rules {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.legal-theme-copy #rules > li + li {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-theme-copy #rules h1 {
	margin-top: 0;
}

.legal-game-page {
	width: min(1110px, calc(100% - 24px));
	margin: 136px auto 40px;
	padding-bottom: 40px;
}

.legal-game-card {
	margin: 0;
}

.legal-game-card .title h1 {
	margin: 0;
}

.legal-game-card__content {
	padding: 22px 24px;
	text-align: left;
	word-break: break-word;
}

.legal-game-card__content h1,
.legal-game-card__content h2 {
	text-align: left;
}

.legal-game-card__content p,
.legal-game-card__content ul,
.legal-game-card__content ol {
	margin: 0 0 16px;
	line-height: 1.7;
}

.legal-game-card__content ul,
.legal-game-card__content ol {
	padding-left: 22px;
}

.legal-game-card__content #rules {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.legal-game-card__content #rules > li + li {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-legal-page {
	width: min(1110px, calc(100% - 24px));
	margin: 136px auto 40px;
	padding-bottom: 40px;
}

.public-legal-card {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid rgba(114, 224, 255, 0.16);
	border-radius: 28px;
	background:
		radial-gradient(circle at top right, rgba(127, 227, 255, 0.12), transparent 32%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
		rgba(4, 10, 20, 0.94);
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.public-legal-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(255, 179, 100, 0.08), transparent 42%),
		radial-gradient(circle at bottom left, rgba(127, 227, 255, 0.09), transparent 30%);
	pointer-events: none;
}

.public-legal-header,
.public-legal-kicker,
.public-legal-prose {
	position: relative;
	z-index: 1;
}

.public-legal-header {
	margin-bottom: 28px;
}

.public-legal-kicker {
	margin: 0 0 16px;
	color: var(--public-shell-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.public-legal-header h1,
.public-legal-prose > h1:first-child {
	margin: 0 0 12px;
	color: var(--public-shell-text);
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.05;
}

.public-legal-prose {
	color: var(--public-shell-text-soft);
	font-size: 16px;
	line-height: 1.75;
}

.public-legal-prose h1,
.public-legal-prose h2 {
	color: var(--public-shell-text);
}

.public-legal-prose h1 {
	margin: 32px 0 14px;
	font-size: clamp(24px, 2.8vw, 32px);
	line-height: 1.15;
}

.public-legal-prose h2 {
	margin: 28px 0 12px;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.2;
}

.public-legal-prose p,
.public-legal-prose ul,
.public-legal-prose ol {
	margin: 0 0 18px;
}

.public-legal-prose ul,
.public-legal-prose ol {
	padding-left: 22px;
}

.public-legal-prose li + li {
	margin-top: 10px;
}

.public-legal-prose a {
	color: var(--public-shell-accent) !important;
	text-decoration: none !important;
}

.public-legal-prose a:hover {
	color: var(--public-shell-cyan) !important;
}

.public-legal-prose #rules {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 20px;
}

.public-legal-prose #rules > li {
	padding: 24px;
	border: 1px solid rgba(114, 224, 255, 0.12);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.public-legal-prose #rules > li h1 {
	margin-top: 0;
}

@media (max-width: 1180px) {
	.header-inner {
		grid-template-columns: minmax(0, 1fr) !important;
		justify-items: stretch;
		gap: 16px;
		width: min(100%, calc(100% - 24px));
	}

	.header-left,
	.header-center,
	.header-right {
		width: 100%;
		justify-content: center !important;
	}

	/*.header-nav-left,
	.header-actions {
		width: 100%;
		flex-wrap: wrap;
		justify-content: center;
	}*/

	#menu {
		flex-wrap: wrap;
		justify-content: center;
	}

	body.normal #content,
	body.full #content {
		margin-top: 188px !important;
	}

	.legal-theme-shell,
	.legal-game-page,
	.public-legal-page {
		margin-top: 188px;
	}
}

@media (max-width: 720px) {
	header#main-header {
		padding: 12px 0 16px !important;
	}

	.header-nav-left {
		flex-direction: column;
	}

	.header-logo img {
		height: 64px !important;
	}

	/*.header-actions {
		flex-direction: column;
		align-items: stretch;
	}*/

	.btn-login,
	.btn-register {
		min-width: 0;
		width: min(100%, 340px);
	}

	.legal-theme-shell,
	.legal-game-page,
	.public-legal-page {
		width: min(100%, calc(100% - 16px));
		margin-bottom: 28px;
	}

	.legal-theme-copy,
	.legal-game-card__content,
	.public-legal-card {
		padding: 22px 16px;
		border-radius: 22px;
	}

	.legal-theme-copy #rules > li,
	.legal-game-card__content #rules > li,
	.public-legal-prose #rules > li {
		padding: 18px;
		border-radius: 18px;
	}

	#language {
		justify-content: center;
	}

	body.normal #content,
	body.full #content {
		width: min(100%, calc(100% - 20px));
		margin-top: 274px !important;
	}

	body.normal .box-inner-content-center,
	body.full .box-inner-content-center {
		padding: 10px;
	}

	body.normal #disclamerTable,
	body.full #disclamerTable {
		width: 100%;
	}

	body.light .modal-box,
	body.normal .modal-box,
	body.full .modal-box {
		padding: 22px;
		border-radius: 22px;
	}

	body.light .modal,
	body.normal .modal,
	body.full .modal {
		padding: 12px;
	}
}

@media (max-width: 420px) {
	.header-inner {
		width: min(100%, calc(100% - 16px));
	}

	#menu {
		gap: 8px;
	}

	#menu a {
		padding: 10px 12px !important;
		font-size: 11px !important;
	}

	.btn-login,
	.btn-register {
		width: 100%;
	}

	body.normal #content,
	body.full #content {
		width: min(100%, calc(100% - 16px));
		margin-top: 288px !important;
	}
}
