@font-face {
	font-family: "Teko";
	src: local("Teko");
}

:root {
	--bg: #0b0704;
	--surface: #16100a;
	--surface-raised: #1f1610;
	--border: #3a2416;
	--text: #f3e6d8;
	--text-dim: #b89a82;
	--orange: #ff8a3d;
	--red: #e2431e;
	--yellow: #ffcf5c;
	--ember: #7a2a12;
	--hero-bg: url("/static/img/fon.png");
	--page-bg: url("/static/img/fon.png");
}

[data-theme="light"] {
	--bg: #f7f0e4;
	--surface: #fffaf0;
	--surface-raised: #fff4de;
	--border: #e6d2ab;
	--text: #3a2a12;
	--text-dim: #8a7250;
	--ember: #f0d9a8;
	--hero-bg: url("/static/img/fon-light.png");
	--page-bg: url("/static/img/fon-light.png");
}

html {
	transition: background-color 0.4s ease;
}

body, .nav, .card, .stat, .price-card, input, textarea, select {
	transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg);
	background-image: var(--page-bg);
	background-size: cover;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--text);
	font-family: "Inter", system-ui, sans-serif;
	line-height: 1.5;
	min-height: 100vh;
}

main {
	position: relative;
}

h1, h2, h3, .display {
	font-family: "Teko", "Inter", sans-serif;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--text);
}

h1 {
	font-size: 3.4rem;
	line-height: 1.05;
}

h2 {
	font-size: 2.1rem;
}

a {
	color: var(--orange);
	text-decoration: none;
}

a:hover {
	color: var(--yellow);
}

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.nav {
	border-bottom: 1px solid var(--border);
	background: rgba(11, 7, 4, 0.85);
	backdrop-filter: blur(6px);
	position: sticky;
	top: 0;
	z-index: 20;
}

[data-theme="light"] .nav {
	background: rgba(247, 240, 228, 0.85);
}

.nav-inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 20px;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Teko", sans-serif;
	font-size: 1.6rem;
	color: var(--text);
}

.nav-brand img {
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
	animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
	0%, 100% { filter: drop-shadow(0 0 2px var(--orange)); transform: scale(1); }
	50% { filter: drop-shadow(0 0 6px var(--red)); transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
	.nav-brand img { animation: none; }
}

.nav-links {
	display: flex;
	gap: 2px;
	flex-wrap: nowrap;
	flex: 0 1 auto;
	justify-content: flex-start;
	min-width: 0;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-dim);
	font-size: 0.87rem;
	padding: 7px 9px;
	border-radius: 6px;
	white-space: nowrap;
	position: relative;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 9px;
	right: 9px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--orange), var(--red));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}

.nav-links a:hover::after {
	transform: scaleX(1);
}

.nav-links a i {
	font-size: 0.82rem;
	opacity: 0.85;
	transition: transform 0.18s ease;
}

.nav-links a:hover i {
	transform: translateY(-1px);
}

.nav-links a:hover {
	color: var(--orange);
	background: var(--surface);
}

.nav-cta {
	background: linear-gradient(135deg, var(--orange), var(--red));
	color: #1a0d05 !important;
	font-weight: 700;
	font-size: 0.87rem;
	padding: 8px 15px !important;
	border-radius: 8px;
	margin-top: 0 !important;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	box-shadow: 0 4px 14px rgba(226, 67, 30, 0.28);
	transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(226, 67, 30, 0.42);
}

.nav-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-dim);
	font-size: 0.87rem;
	padding: 7px 9px;
	border-radius: 6px;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-login:hover {
	color: var(--orange);
	background: var(--surface);
}

.hero {
	position: relative;
	background: var(--hero-bg) center / cover no-repeat, var(--bg);
	padding: 96px 24px 72px;
	overflow: hidden;
	transition: background-color 0.4s ease;
}

.hero-content {
	max-width: 620px;
	animation: rise 0.6s ease-out;
}

.hero-center {
	display: flex;
	justify-content: center;
	text-align: center;
	padding: 120px 24px 90px;
}

.hero-center .hero-content {
	max-width: 680px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-center .server-status {
	justify-content: center;
}

.hero-center .hero-buttons {
	justify-content: center;
}

.hero-title {
	font-size: 4.4rem;
}

@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
	color: var(--orange);
	font-size: 0.95rem;
	margin-bottom: 10px;
}

[data-theme="dark"] .hero-eyebrow {
	color: #cfc6b2;
}

[data-theme="dark"] .hero-eyebrow i {
	color: #b3a586;
}

[data-theme="light"] .hero-eyebrow {
	color: #6f6350;
	font-weight: 600;
}

[data-theme="light"] .hero-eyebrow i {
	color: #8a7a62;
}

.hero-title {
	animation: rise 0.6s ease-out, float 4s ease-in-out 0.6s infinite;
}

.hero-subtitle {
	color: var(--text-dim);
	font-size: 1.15rem;
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
	animation: rise 0.6s ease-out 0.1s backwards;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.server-status {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
	padding: 14px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	animation: rise 0.6s ease-out 0.2s backwards;
}

.status-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--text-dim);
}

.status-indicator.online {
	background: var(--yellow);
	box-shadow: 0 0 8px var(--yellow);
	animation: pulse 1.6s ease-in-out infinite;
}

.status-indicator.offline {
	background: var(--red);
}

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.2); }
}

.status-text.online { color: var(--yellow); }
.status-text.offline { color: var(--red); }

[data-theme="dark"] .status-text.online, [data-theme="dark"] .status-text.offline {
	color: #c7beb0;
}

[data-theme="light"] .status-text.online, [data-theme="light"] .status-text.offline {
	color: #6b6050;
}

.player-count, .server-version {
	color: var(--text-dim);
	font-size: 0.95rem;
}

[data-theme="dark"] .server-status {
	background: rgba(12, 8, 5, 0.88);
	border-color: #2b1b10;
}

[data-theme="dark"] .player-count,
[data-theme="dark"] .server-version {
	color: #a2886b;
}

.hero-buttons {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 32px;
	animation: rise 0.6s ease-out 0.3s backwards;
}

.btn-primary {
	background: linear-gradient(135deg, var(--orange), var(--red));
	color: #1a0d05;
}

.btn-secondary {
	background: transparent;
	border: 1px solid var(--orange);
	color: var(--orange);
}

.btn-secondary:hover {
	background: var(--orange);
	color: #1a0d05;
}

.hero-buttons .btn {
	margin-top: 0;
	padding: 15px 34px;
	font-size: 1rem;
}

.hero-buttons .btn + .btn {
	margin-top: 0;
}

@media (max-width: 640px) {
	.hero-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.hero-buttons .btn {
		width: 100%%;
		justify-content: center;
	}
	.hero-buttons .btn + .btn {
		margin-top: 0;
	}
}

.stat-strip {
	display: flex;
	gap: 28px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.stat {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 14px 20px;
	min-width: 140px;
	transition: border-color 0.15s ease;
}

.stat:hover {
	border-color: var(--orange);
}

.stat-value {
	font-family: "Teko", sans-serif;
	font-size: 2rem;
	color: var(--yellow);
}

.stat-label {
	font-size: 0.85rem;
	color: var(--text-dim);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 28px;
	border-radius: 7px;
	background: linear-gradient(135deg, var(--orange), var(--red));
	color: #1a0d05;
	font-weight: 600;
	margin-top: 28px;
	transition: filter 0.15s ease, transform 0.15s ease;
	position: relative;
	overflow: hidden;
}

.btn i {
	font-size: 0.95em;
}

.btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	transition: left 0.5s ease;
}

.btn:hover::before {
	left: 130%;
}

.btn:hover {
	color: #1a0d05;
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(226, 67, 30, 0.35);
}

.section {
	padding: 56px 24px;
	border-top: 1px solid var(--border);
	background: rgba(11, 7, 4, 0.6);
	backdrop-filter: blur(2px);
}

[data-theme="light"] .section {
	background: rgba(247, 240, 228, 0.66);
}


.section-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.section-center > * {
	max-width: 760px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.section-center form {
	max-width: 420px;
	text-align: left;
}

.section-center table,
.section-center .rules-text {
	text-align: left;
}

.section-center .rules-card,
.section-center .news-item,
.section-center .success-card {
	text-align: left;
}

.section-center h1,
.section-center h2 {
	text-align: center;
}

.section-center .card-grid {
	align-items: stretch;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 24px;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-icon {
	font-size: 1.6rem;
	color: var(--orange);
	margin-bottom: 12px;
	display: block;
}

.card:hover {
	transform: translateY(-3px);
	border-color: var(--orange);
}

.card:hover .card-icon {
	color: var(--yellow);
}

.card h3 {
	margin-top: 0;
	font-size: 1.5rem;
}

.card p {
	color: var(--text-dim);
	font-size: 0.95rem;
}

.price-card {
	background: var(--surface-raised);
	border: 1px solid var(--ember);
	border-radius: 10px;
	padding: 28px;
	text-align: center;
}

.price-card .price {
	font-family: "Teko", sans-serif;
	font-size: 2.6rem;
	color: var(--yellow);
	margin: 10px 0;
}

.news-ticker {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	white-space: nowrap;
	background: var(--surface);
	color: var(--text-dim);
	border-bottom: 1px solid var(--border);
}

.news-ticker-label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	background: rgba(255, 138, 61, 0.12);
	border-right: 1px solid var(--border);
	font-size: 1rem;
	color: var(--orange);
}

.news-ticker-track {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.news-ticker-track > span {
	display: inline-flex;
	align-items: center;
	padding: 9px 0;
	padding-left: 100%;
	animation: ticker 45s linear infinite;
}

.news-ticker:hover .news-ticker-track > span {
	animation-play-state: paused;
}

.news-ticker-item {
	color: var(--text-dim);
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.news-ticker-item:hover {
	color: var(--orange);
	text-decoration: underline;
}

@keyframes ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

th, td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}

th {
	color: var(--text-dim);
	font-weight: 500;
	font-size: 0.9rem;
}

form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
}

label {
	font-size: 0.9rem;
	color: var(--text-dim);
}

input, textarea, select {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 10px 12px;
	color: var(--text);
	font-size: 1rem;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

input:focus, textarea:focus, select:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
}

.footer {
	padding: 42px 24px;
	border-top: 1px solid var(--border);
	background: rgba(11, 7, 4, 0.9);
	color: var(--text-dim);
	font-size: 0.9rem;
	text-align: center;
}

[data-theme="light"] .footer {
	background: rgba(247, 240, 228, 0.9);
}

.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	justify-content: space-between;
	text-align: left;
	margin-bottom: 24px;
}

.footer-col {
	flex: 1 1 220px;
	max-width: 340px;
}

.footer-col p {
	margin: 8px 0 0;
}

.footer-col strong {
	color: var(--text);
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text-dim);
	font-size: 0.85rem;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.footer-links a i {
	font-size: 0.85rem;
	opacity: 0.85;
}

.footer-links a:hover {
	color: var(--orange);
	border-color: var(--orange);
	background: var(--surface);
	transform: translateY(-2px);
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 18px;
	opacity: 0.85;
}

@media (max-width: 720px) {
	.footer {
		padding: 32px 18px;
	}
	.footer-inner {
		flex-direction: column;
		align-items: center;
		gap: 22px;
		text-align: center;
	}
	.footer-col {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
	}
	.footer-links {
		justify-content: center;
	}
	.footer-links a {
		flex: 1 1 calc(50% - 8px);
		justify-content: center;
		padding: 14px 14px;
		font-size: 0.9rem;
	}
}

@media (max-width: 640px) {
	h1 {
		font-size: 2.4rem;
	}
	.hero-title {
		font-size: 2.6rem;
	}
	.nav-links {
		display: none;
	}
	.hero-center {
		padding: 80px 20px 60px;
	}
}

.theme-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 25;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
	flex-shrink: 0;
}

.theme-toggle-track {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 62px;
	height: 30px;
	border-radius: 999px;
	background: var(--surface-raised);
	border: 1px solid var(--border);
	position: relative;
	padding: 0 8px;
	transition: background-color 0.4s ease, border-color 0.4s ease;
}

.theme-icon-sun, .theme-icon-moon {
	font-size: 0.8rem;
	color: var(--text-dim);
	z-index: 1;
	transition: color 0.3s ease, opacity 0.3s ease;
}

.theme-icon-sun {
	color: var(--yellow);
}

.theme-toggle.is-light .theme-icon-moon {
	opacity: 0.35;
}

.theme-toggle:not(.is-light) .theme-icon-sun {
	opacity: 0.35;
}

.theme-toggle-thumb {
	position: absolute;
	top: 50%;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--orange), var(--red));
	box-shadow: 0 0 8px rgba(255, 138, 61, 0.6);
	transform: translateY(-50%);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease;
}

.theme-toggle.is-light .theme-toggle-thumb {
	transform: translate(30px, -50%);
	background: linear-gradient(135deg, var(--yellow), var(--orange));
	box-shadow: 0 0 8px rgba(255, 207, 92, 0.7);
}

.theme-toggle.is-flipping .theme-toggle-thumb {
	transform: translate(15px, -50%) scale(0.7) rotate(180deg);
}

.theme-toggle.is-light.is-flipping .theme-toggle-thumb {
	transform: translate(15px, -50%) scale(0.7) rotate(180deg);
}

@media (max-width: 640px) {
	.hero-buttons {
		flex-direction: column;
	}
}

.cabinet-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 36px;
}

.cabinet-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--orange), var(--red));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	color: #1a0d05;
	flex-shrink: 0;
}

.cabinet-email {
	color: var(--text-dim);
	margin: 4px 0 0;
}

.cabinet h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	font-size: 1.6rem;
}

.cabinet h2 i {
	color: var(--orange);
	font-size: 1.2rem;
}

.account-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.badge {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.badge-active {
	background: rgba(255, 207, 92, 0.15);
	color: var(--yellow);
	border: 1px solid var(--yellow);
}

.badge-banned {
	background: rgba(226, 67, 30, 0.15);
	color: var(--red);
	border: 1px solid var(--red);
}

.badge-none {
	background: var(--surface-raised);
	color: var(--text-dim);
	border: 1px solid var(--border);
}

.account-detail {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-dim);
	font-size: 0.95rem;
	margin: 12px 0;
}

.text-red { color: var(--red); }
.text-dim { color: var(--text-dim); }

.server-ip {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface-raised);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 10px 14px;
	font-family: monospace;
	margin-top: 12px;
}

.server-ip i {
	color: var(--orange);
}

.copy-btn {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--text-dim);
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
	color: var(--orange);
}

.copy-btn.copied {
	color: var(--yellow);
	transform: scale(1.2);
}

.btn-small {
	padding: 8px 16px;
	font-size: 0.85rem;
	margin-top: 12px;
}

.cabinet-narrow {
	max-width: 420px;
}

.cabinet-nick {
	max-width: 420px;
	padding: 16px 18px;
}

.cabinet-password input {
	padding: 8px 12px;
}

.cabinet-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.cabinet-links .btn {
	margin-top: 0;
}

.bind-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-raised);
	font-size: 0.9rem;
	color: var(--text-dim);
}

.bind-chip .btn {
	margin-top: 0;
	padding: 4px 10px;
	font-size: 0.8rem;
}

.join-instructions {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.join-instructions h2,
.join-instructions h3 {
	margin-top: 0;
}

.app-answers {
	margin-top: 12px;
}

.app-answers th {
	text-align: left;
	color: var(--text-dim);
	font-weight: 600;
	width: 40%;
	vertical-align: top;
}

.connection-card {
	display: flex;
	align-items: center;
	gap: 18px;
}

.connection-icon {
	font-size: 2.2rem;
	color: var(--orange);
	flex-shrink: 0;
}


.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 20px;
	flex-shrink: 0;
}

.nav-burger {
	background: none;
	border: 1px solid var(--border);
	color: var(--text-dim);
	border-radius: 6px;
	width: 38px;
	height: 32px;
	cursor: pointer;
	display: none;
	font-size: 0.9rem;
}

.nav-brand-text {
	pointer-events: none;
}

.nav-brand-arrow {
	font-size: 0.8rem;
	color: var(--orange);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.nav-brand:hover .nav-brand-arrow {
	opacity: 1;
	transform: translateX(0);
}

.nav-admin {
	color: var(--yellow) !important;
}

.nav-actions {
	position: relative;
	z-index: 2;
}

.nav-links {
	overflow: hidden;
}

@media (max-width: 1250px) {
	.nav-links a i {
		display: none;
	}
	.nav-links a {
		padding: 7px 7px;
	}
}

@media (max-width: 960px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		padding: 12px 24px;
		gap: 4px;
		z-index: 30;
	}
	.nav-links.open {
		display: flex;
	}
	.nav-burger {
		display: inline-block;
	}
	.nav-actions {
		padding-right: 62px;
	}
}

@media (max-width: 640px) {
	.nav-links {
		display: none;
	}
	.nav-brand-text {
		display: none;
	}
	.nav-inner {
		gap: 8px;
		padding: 10px 14px;
	}
	.nav-login {
		font-size: 0;
	}
	.nav-login i {
		font-size: 1rem;
	}
	.nav-cta {
		padding: 8px 10px !important;
		font-size: 0.82rem;
	}
	.news-ticker-label {
		width: 38px;
	}
}

.hero-ip {
	max-width: fit-content;
	margin: 14px auto 0;
	font-size: 1.05rem;
}

.hero-title-link {
	color: inherit;
}

.hero-title-link:hover {
	color: var(--yellow);
}

.inline-form {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	max-width: none;
	margin: 0;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--orange);
	color: var(--orange);
}

.btn-outline:hover {
	background: var(--orange);
	color: #1a0d05;
	filter: none;
	transform: none;
}

.cabinet-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.auth-page {
	display: flex;
	justify-content: center;
}

.auth-card {
	max-width: 460px;
	width: 100%;
}

.auth-card form {
	max-width: none;
}

.auth-social {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.auth-social .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 380px;
	margin-top: 0;
}

.auth-divider {
	width: 100%;
	text-align: center;
	color: var(--text-dim);
	font-size: 0.85rem;
	margin: 0;
}

.discord-btn {
	margin-top: 0;
	display: inline-flex;
	width: auto;
}

.google-btn {
	margin-top: 0;
	display: inline-flex;
	width: auto;
}

.max-btn {
	margin-top: 0;
	display: inline-flex;
	width: auto;
}

.max-btn.rofl-ing {
	color: var(--yellow);
	border-color: var(--yellow);
}

.common-btn {
	margin-right: 6px;
}

.auth-foot {
	margin-top: 20px;
	text-align: center;
}

.form-error {
	color: var(--red);
	font-weight: 600;
}

.wide-form {
	max-width: 720px;
}

.wide-form textarea {
	width: 100%;
	font-family: inherit;
}

.mono {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.95rem;
	white-space: pre;
	min-height: 140px;
}

.news-list {
	max-width: 820px;
	margin: 0 auto;
}

.news-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 22px 26px;
	margin-bottom: 16px;
}

.news-item-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.news-item h3 {
	margin: 0;
	font-size: 1.5rem;
}

.news-date {
	color: var(--text-dim);
	font-size: 0.82rem;
	white-space: nowrap;
}

.success-card, .notify {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 24px;
}

.success-card i, .notify i {
	font-size: 1.4rem;
	color: var(--yellow);
}

.notify i {
	color: var(--orange);
}

.notify-error {
	border: 1px solid var(--red);
	color: var(--red);
	background: rgba(226, 67, 30, 0.08);
	padding: 14px 20px;
	border-radius: 10px;
}

.notify-error i {
	color: var(--red);
}

.success-card p, .notify span {
	margin: 0;
}

.payment-info {
	max-width: 720px;
	margin-top: 28px;
}

.remaining {
	color: var(--yellow);
	font-size: 0.85em;
}

.fame-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	justify-content: center;
}

.section-center .fame-grid {
	max-width: 1180px;
}

.fame-card {
	text-align: center;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.fame-card h3 {
	margin-bottom: 4px;
}

.truncate-preview {
	line-height: 1.7;
	text-align: left;
	overflow-wrap: anywhere;
	color: var(--text);
}

.fame-card .truncate-preview {
	text-align: center;
}

.truncate-toggle {
	margin-top: 10px;
}

.news-item .truncate-toggle {
	display: block;
}

.fame-card .truncate-toggle {
	margin-left: auto;
	margin-right: auto;
}

.fame-rank {
	width: 52px;
	height: 52px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--orange), var(--red));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	color: #1a0d05;
	box-shadow: 0 0 12px rgba(255, 138, 61, 0.4);
}

.rules-card {
	max-width: 760px;
}

.rules-text {
	white-space: pre-wrap;
	font-family: inherit;
	font-size: 1.02rem;
	line-height: 1.7;
	margin: 0;
}

.submission-card {
	margin-bottom: 16px;
}

.submission-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.submission-q {
	width: 220px;
	vertical-align: top;
	font-weight: 600;
}

.grant-form {
	margin-top: 14px;
}

.grant-form select {
	width: auto;
}

.shop-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}

.shop-grid .price-card {
	flex: 0 0 320px;
	width: 320px;
	max-width: 100%;
}

.shop-grid .price-card form {
	margin-top: 14px;
}

.legal-text {
	max-width: 760px;
	margin: 24px auto 0;
	text-align: left;
}

.section-center .feedback-form {
	max-width: 560px;
	margin: 24px auto 0;
}

.section-center .feedback-contacts {
	max-width: 560px;
	margin: 24px auto 0;
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.feedback-message {
	white-space: pre-wrap;
	max-width: 480px;
}

.price-card-image {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--border);
	margin-bottom: 16px;
}

.product-cell {
	display: flex;
	align-items: center;
	gap: 10px;
}

.product-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--border);
	flex: 0 0 auto;
}

.toggle-form {
	margin: 0;
}

.switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	vertical-align: middle;
	cursor: pointer;
}

.switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.switch-slider {
	position: absolute;
	inset: 0;
	background: var(--border);
	border-radius: 999px;
	transition: background 0.2s ease;
}

.switch-slider::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 50%;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transform: translateY(-50%);
	transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
	background: var(--orange);
}

.switch input:checked + .switch-slider::before {
	transform: translate(20px, -50%);
}

.switch input:focus-visible + .switch-slider {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}

.status-open {
	color: var(--green, #4caf50);
	font-weight: 600;
}

.support-chat {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.support-messages {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 24px 0;
}

.support-msg {
	max-width: 78%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	text-align: left;
}

.support-msg-user {
	align-self: flex-end;
	background: var(--surface-raised);
	border-color: var(--ember);
}

.support-msg-admin {
	align-self: flex-start;
}

.support-msg-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 0.8rem;
	color: var(--text-dim);
}

.support-msg-body {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.support-files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.support-file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.85rem;
}

.support-file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 260px;
}

.support-file-size {
	color: var(--text-dim);
}

.support-form {
	max-width: 100%;
	margin-top: 8px;
}

.support-form small {
	display: block;
	margin: 6px 0 12px;
}

.support-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 18px 0 4px;
}

.support-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--text-dim);
}

.support-live i {
	font-size: 0.55rem;
	color: var(--green, #4caf50);
	animation: supportPulse 2.4s ease-in-out infinite;
}

.support-sound[aria-pressed="false"] {
	opacity: 0.65;
}

.support-hint {
	display: block;
	margin: 4px 0 10px;
}

.support-msg-new {
	animation: supportMsgIn 0.35s ease both;
}

@keyframes supportPulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}

@keyframes supportMsgIn {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.support-live i, .support-msg-new { animation: none !important; }
}

.btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	filter: none;
	color: #1a0d05;
}


.rich-text {
	line-height: 1.7;
	text-align: left;
	overflow-wrap: anywhere;
}

.rich-text > :first-child {
	margin-top: 0;
}

.rich-text > :last-child {
	margin-bottom: 0;
}

.rich-text h1,
.rich-text h2,
.rich-text h3 {
	text-align: left;
	margin: 14px 0 8px;
	font-size: 1.1rem;
}

.rich-text ul,
.rich-text ol {
	padding-left: 22px;
	margin: 8px 0;
}

.rich-text li {
	margin: 4px 0;
}

.rich-text p {
	margin: 8px 0;
	color: inherit;
}

.rich-text a {
	color: var(--orange);
}

.rich-text code {
	background: var(--surface-raised);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

.rich-text blockquote {
	margin: 10px 0;
	padding-left: 14px;
	border-left: 3px solid var(--ember);
	color: var(--text-dim);
}

.rich-text table {
	margin-top: 10px;
}

.rich-text img {
	max-width: 100%;
	border-radius: 8px;
}


.blocks {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.block-image {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 12px;
}

.img-fallback {
	background: var(--surface-raised);
}


.news-image {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 14px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	justify-content: center;
}

.gallery-page .gallery-grid {
	max-width: min(1280px, 100%);
}

.gallery-card {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.gallery-card .gallery-image {
	width: 100%;
	height: 230px;
	object-fit: cover;
	display: block;
	background: var(--surface-raised);
}

.gallery-card h3 {
	padding: 16px 16px 4px;
	margin: 0;
}

.gallery-card .gallery-date {
	padding: 0 16px 16px;
	font-size: 0.85em;
	color: var(--text-dim);
}

@media (max-width: 960px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}

.gallery-card .gallery-image {
	cursor: pointer;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(5, 3, 1, 0.9);
	padding: 24px;
}

.lightbox.open {
	display: flex;
}

.lightbox img {
	max-width: min(88vw, 920px);
	max-height: min(72vh, 560px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	border: 1px solid var(--border);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox figcaption {
	margin: 16px auto 0;
	text-align: center;
	color: #fff;
	font-weight: 600;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 8px 20px;
	max-width: 90%;
	width: fit-content;
}

.lightbox-close {
	position: absolute;
	top: 18px;
	right: 24px;
	background: none;
	border: none;
	color: var(--text);
	font-size: 1.8rem;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.lightbox-close:hover {
	opacity: 1;
	transform: scale(1.1);
}

[data-theme="light"] .lightbox {
	background: rgba(30, 20, 8, 0.92);
}

[data-theme="light"] .lightbox figcaption {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
}


.cat-title {
	margin: 28px 0 14px;
	font-family: "Teko", sans-serif;
	font-size: 1.5rem;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cat-title:first-child {
	margin-top: 0;
}

.mod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.mod-chip {
	padding: 16px;
	display: flex;
	flex-direction: column;
	text-align: left;
	gap: 6px;
}

.mod-chip .mod-name {
	margin: 0;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mod-chip .mod-name a {
	color: var(--orange);
}

.mod-chip .mod-name i {
	color: var(--ember);
}

.mod-chip .mod-desc {
	color: var(--text-dim);
	font-size: 0.9rem;
	line-height: 1.45;
}

@media (max-width: 560px) {
	.mod-grid {
		grid-template-columns: 1fr;
	}
}


.fame-head {
	width: 72px;
	height: 72px;
	image-rendering: pixelated;
	border-radius: 8px;
	margin: 0 auto 10px;
	display: block;
	background: var(--surface-raised);
}

.fame-head-sm {
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
	border-radius: 4px;
	vertical-align: middle;
}

.fame-banner-wrap {
	margin: -24px -24px 18px;
	height: 320px;
}

.fame-banner {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
	background: var(--surface-raised);
}

.fame-head-ring {
	width: 88px;
	height: 88px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--surface);
	border: 3px solid var(--orange);
	box-shadow: 0 0 0 3px var(--surface), 0 0 14px rgba(255, 138, 61, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.fame-head-ring .fame-head,
.fame-head-ring .fame-rank {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 50%;
}


.faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.faq-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	text-align: left;
}

.faq-item summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "\f078";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 0.8rem;
	color: var(--orange);
	transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
	transform: rotate(180deg);
}

.faq-item .rich-text {
	padding: 0 18px 16px;
}


.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 16px 0;
}

.tab {
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 0.9rem;
}

.tab.active {
	background: var(--ember);
	color: var(--text);
	border-color: transparent;
	font-weight: 600;
}


.upload-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 6px 0 14px;
	flex-wrap: wrap;
}

.upload-row input[type=file] {
	width: auto;
	max-width: 100%;
	font-size: 0.85rem;
}

.upload-preview {
	max-width: 120px;
	max-height: 90px;
	border-radius: 8px;
	border: 1px solid var(--border);
	display: none;
}

.upload-preview[src]:not([src=""]),
.upload-preview[src*="/"] {
	display: block;
}

.upload-note {
	font-size: 0.82rem;
	color: var(--text-dim);
}


@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
	0%, 100% { box-shadow: 0 4px 14px rgba(226, 67, 30, 0.28); }
	50% { box-shadow: 0 4px 22px rgba(226, 67, 30, 0.55); }
}

main {
	animation: fadeIn 0.45s ease both;
}

.hero-content {
	animation: fadeUp 0.6s ease both;
}

.section > h1,
.section > h2 {
	animation: fadeUp 0.5s ease both;
}

.card,
.price-card,
.news-item,
.rules-card,
.stat {
	animation: fadeUp 0.45s ease both;
}

.card-grid > *:nth-child(1) { animation-delay: 0.04s; }
.card-grid > *:nth-child(2) { animation-delay: 0.10s; }
.card-grid > *:nth-child(3) { animation-delay: 0.16s; }
.card-grid > *:nth-child(4) { animation-delay: 0.22s; }
.card-grid > *:nth-child(5) { animation-delay: 0.28s; }
.card-grid > *:nth-child(6) { animation-delay: 0.34s; }

.price-card,
.news-item,
.rules-card,
.stat {
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover,
.news-item:hover,
.rules-card:hover,
.stat:hover {
	transform: translateY(-4px);
	border-color: var(--orange);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.card h3,
.card-icon {
	transition: transform 0.2s ease;
}

.card:hover h3,
.card:hover .card-icon {
	transform: translateY(-2px);
}

.btn i {
	transition: transform 0.2s ease;
}

.btn:hover i {
	transform: translateX(3px);
}

.faq-item summary {
	transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-item summary:hover {
	color: var(--orange);
}

.nav-cta {
	animation: glowPulse 3.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	main,
	.hero-content,
	.section > h1,
	.section > h2,
	.card,
	.price-card,
	.news-item,
	.rules-card,
	.stat,
	.nav-cta {
		animation: none !important;
	}
	.btn:hover,
	.card:hover,
	.price-card:hover,
	.news-item:hover,
	.rules-card:hover,
	.stat:hover {
		transform: none !important;
	}
}


/* ===== Auth: иконки входа, подтверждение почты, удаление пользователей ===== */
@keyframes authIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes authPop { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 70% { transform: translateY(-3px) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes authStep { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes authShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes authRing { 0%,100% { transform: rotate(0); } 10%,30% { transform: rotate(-12deg); } 20%,40% { transform: rotate(12deg); } 50% { transform: rotate(0); } }
@keyframes authGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,138,61,.45); } 50% { box-shadow: 0 0 0 14px rgba(255,138,61,0); } }
@keyframes rowOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }

.auth-card { animation: authIn .55s cubic-bezier(.2,.8,.2,1) both; }
.auth-step { animation: authStep .45s cubic-bezier(.2,.8,.2,1) both; }
.form-error[data-shake] { animation: authShake .45s both; }
.form-ok { color: #6fd08c; font-weight: 600; }

.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.auth-social .auth-icons { display: flex; flex-wrap: nowrap; justify-content: center; gap: 14px; width: 100%; }
.auth-social .btn.btn-icon {
	width: 56px; height: 56px; max-width: 56px; padding: 0; margin: 0;
	border-radius: 14px; font-size: 1.45rem; overflow: visible; flex: 0 0 auto;
	animation: authPop .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 80ms + 250ms);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-icon::before { display: none; }
.btn-icon i { font-size: 1em; transition: transform .25s ease; }
.btn-icon:hover { transform: translateY(-5px) scale(1.08); box-shadow: 0 10px 22px rgba(226,67,30,.38); filter: brightness(1.08); }
.btn-icon:hover i { transform: scale(1.15) rotate(-6deg); }
.btn-icon:active { transform: translateY(-1px) scale(.96); }
.btn-icon::after {
	content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%;
	transform: translate(-50%, 6px); opacity: 0; pointer-events: none; white-space: nowrap;
	background: var(--surface-raised); color: var(--text); border: 1px solid var(--border);
	border-radius: 7px; padding: 4px 10px; font-size: .78rem; font-weight: 600;
	transition: opacity .18s ease, transform .18s ease;
}
.btn-icon:hover::after, .btn-icon:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.btn-icon.rofl-ing { animation: authRing .6s ease; }
.btn-icon.rofl-ing::after { content: attr(data-rofl); opacity: 1; transform: translate(-50%, 0); }

.verify-icon {
	width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
	color: #1a0d05; background: linear-gradient(135deg, var(--orange), var(--red)); animation: authGlow 2.2s infinite;
}
.auth-step .verify-icon + h1 { text-align: center; }
.code-boxes { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.code-boxes input {
	width: 48px; height: 58px; padding: 0; text-align: center; font-size: 1.6rem; font-weight: 700;
	border-radius: 11px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
	animation: authPop .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms);
}
.code-boxes input.filled { border-color: var(--orange); transform: scale(1.07); box-shadow: 0 0 14px rgba(255,138,61,.35); }
.code-boxes.shake { animation: authShake .45s both; }
.code-boxes.shake input { border-color: var(--red); }
.code-boxes.ok input { border-color: #6fd08c; box-shadow: 0 0 14px rgba(111,208,140,.4); }
.resend-form { margin-top: 4px; align-items: center; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--orange); font: inherit; cursor: pointer; }
.link-btn:disabled { color: var(--text-dim); cursor: default; }
.link-btn:not(:disabled):hover { text-decoration: underline; }

.row-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-danger-sm {
	background: transparent; color: var(--red); border: 1px solid var(--red); border-radius: 6px;
	padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn-danger-sm:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
tr.row-removing { animation: rowOut .4s ease forwards; }
.flash { padding: 10px 14px; border-radius: 8px; font-weight: 600; animation: authIn .4s both; }
.flash-ok { background: rgba(111,208,140,.15); color: #6fd08c; }
.flash-err { background: rgba(226,67,30,.15); color: var(--red); }
.del-dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-width: 420px; width: calc(100% - 32px); }
.del-dialog[open] { animation: dlgIn .25s ease both; }
.del-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.del-actions { display: flex; gap: 12px; justify-content: flex-end; }
.del-actions .btn { margin-top: 0; padding: 10px 20px; }
.btn.btn-danger { background: linear-gradient(135deg, #e2431e, #a3200a); color: #fff; }

@media (max-width: 380px) { .code-boxes input { width: 40px; height: 52px; } .auth-icons { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .auth-card, .auth-step, .btn-icon, .code-boxes input, .verify-icon, .flash { animation: none !important; } }

/* ===== Огоньки, рефералы и колесо удачи ===== */
body { position: relative; }

.nav-sparks {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px; border-radius: 999px;
	background: rgba(255, 138, 61, .12); border: 1px solid rgba(255, 138, 61, .45);
	color: var(--orange); font-weight: 700; text-decoration: none;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-sparks:hover { transform: translateY(-2px); background: rgba(255, 138, 61, .2); box-shadow: 0 8px 20px rgba(226, 67, 30, .25); }
.nav-sparks span { color: var(--text); }

.spark-layer { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.spark-spot { position: absolute; margin: 0; pointer-events: auto; }
.spark-spot-btn {
	width: 34px; height: 34px; padding: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: .8rem; color: #2a1206; cursor: pointer;
	border: 1px solid rgba(255, 207, 92, .55);
	background: radial-gradient(circle at 35% 30%, rgba(255, 214, 122, .88), rgba(255, 138, 61, .72) 55%, rgba(182, 52, 18, .82));
	box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
	opacity: .62;
	transition: transform .2s ease, opacity .2s ease, filter .2s ease;
}
.spark-spot-btn:hover { opacity: 1; transform: scale(1.2); filter: brightness(1.12); }
.spark-spot-btn:active { transform: scale(.94); }

.spark-toast {
	position: fixed; right: 20px; bottom: 22px; z-index: 60;
	display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
	max-width: min(420px, calc(100% - 40px));
	padding: 13px 18px; border-radius: 12px;
	background: linear-gradient(135deg, #2a150a, #1b0f07);
	border: 1px solid rgba(255, 138, 61, .65); color: var(--text);
	box-shadow: 0 14px 40px rgba(0,0,0,.5);
	animation: sparkToastIn .35s ease both;
}
.spark-toast i { color: var(--orange); }
.spark-toast a { color: var(--orange); font-weight: 700; }
.spark-toast.hide { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
@keyframes sparkToastIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.referral-hint {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px; margin: 0 0 12px; border-radius: 9px;
	background: rgba(255, 138, 61, .12); border: 1px solid rgba(255, 138, 61, .4);
	color: var(--text); font-size: .92rem;
}
.referral-hint i { color: var(--orange); }

.spark-stats { margin-bottom: 22px; }
.spark-stat { position: relative; display: flex; flex-direction: column; gap: 4px; }
.spark-stat strong { font-size: 2rem; color: var(--orange); }
.spark-stat-icon { color: var(--orange); font-size: 1.3rem; }
.spark-cabinet-main { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.spark-balance { display: flex; align-items: baseline; gap: 8px; color: var(--orange); }
.spark-balance i { font-size: 1.4rem; }
.spark-balance strong { font-size: 2.1rem; }
.spark-balance span { color: var(--text-dim); font-size: .95rem; }
.spark-discounts p { margin: 4px 0; display: flex; gap: 12px; align-items: baseline; }
.spark-discounts p span { color: var(--text-dim); }
.spark-discounts p strong { color: var(--orange); }

.referral-link-row { display: flex; gap: 10px; align-items: stretch; margin: 12px 0; }
.referral-link-row input { flex: 1; min-width: 0; }
.referral-link-row .btn { margin: 0; white-space: nowrap; }
.referral-rules ul { margin: 8px 0 0; padding-left: 22px; line-height: 1.7; }
.referral-rules li { margin-bottom: 4px; }

.price-old { color: var(--text-dim); text-decoration: line-through; font-size: .78em; margin-right: 7px; }
.discount-badge {
	display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
	background: rgba(111, 208, 140, .16); border: 1px solid rgba(111, 208, 140, .5);
	color: #6fd08c; font-size: .72em; vertical-align: middle;
}
.text-green { color: #6fd08c; }

.wheel-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.25fr); gap: 24px; align-items: start; }
.wheel-card { text-align: center; }
.wheel-visual { display: flex; justify-content: center; margin: 6px auto 20px; }
.wheel-ring {
	width: min(270px, 70vw); aspect-ratio: 1; border-radius: 50%;
	background:
		conic-gradient(from -90deg, #ff8a3d 0 12%, #2a170d 12% 25%, #e2431e 25% 37%, #2a170d 37% 50%, #ffcf5c 50% 62%, #2a170d 62% 75%, #ff8a3d 75% 87%, #2a170d 87% 100%);
	padding: 12px; box-shadow: 0 0 0 8px rgba(255, 138, 61, .12), 0 16px 40px rgba(0,0,0,.4);
	position: relative;
}
.wheel-ring::after {
	content: ""; position: absolute; inset: 10px; border-radius: 50%;
	border: 2px dashed rgba(255, 207, 92, .45);
}
.wheel-center {
	position: absolute; inset: 22%; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	background: radial-gradient(circle at 50% 30%, #2c1a10, #120b07 70%);
	border: 2px solid rgba(255, 138, 61, .55); color: var(--orange);
	box-shadow: inset 0 0 28px rgba(255, 138, 61, .22);
}
.wheel-center i { font-size: 1.9rem; }
.wheel-center span { font-weight: 800; letter-spacing: .12em; font-size: .8rem; color: var(--text-dim); }
.wheel-visual.spinning .wheel-ring { animation: wheelSpin 1.1s cubic-bezier(.15,.7,.2,1); }
@keyframes wheelSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(1440deg); }
}
.wheel-balance { margin-bottom: 14px; color: var(--text-dim); }
.wheel-balance strong { color: var(--orange); font-size: 1.25rem; }
.wheel-spin-btn { width: 100%; justify-content: center; }
.wheel-win { border-color: rgba(111, 208, 140, .55); background: rgba(111, 208, 140, .1); }
.wheel-prizes table { width: 100%; }
.wheel-prizes td:last-child, .wheel-prizes th:last-child { text-align: right; white-space: nowrap; }

@media (max-width: 760px) {
	.wheel-layout { grid-template-columns: 1fr; }
	.nav-sparks { padding: 6px 9px; }
	.referral-link-row { flex-direction: column; }
	.spark-spot-btn { width: 30px; height: 30px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
	.spark-spot-btn, .wheel-visual.spinning .wheel-ring, .spark-toast { animation: none !important; }
}

/* ===== Седьмая печать ===== */
.nav-login.nav-cabinet-secret { color: #c8b2ff; font-weight: 700; }
.nav-login.nav-cabinet-secret:hover { color: #e4d9ff; background: rgba(190, 160, 255, .12); }
.seal-badge {
	display: inline-flex; align-items: center; gap: 4px;
	vertical-align: middle; margin-left: 8px;
	padding: 3px 8px; border-radius: 999px;
	font-size: .52em; font-weight: 700; letter-spacing: .1em;
	color: #d9c9ff; border: 1px solid rgba(190, 160, 255, .5);
	background: rgba(190, 160, 255, .1);
}
.seal-badge i { font-size: .85em; }

.secret-cabinet {
	display: flex; align-items: center; gap: 16px;
	border-color: rgba(190, 160, 255, .45);
	background: linear-gradient(135deg, rgba(190, 160, 255, .09), transparent 60%);
}
.secret-cabinet p { margin: 4px 0 0; }
.wheel-cabinet {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-color: rgba(255, 138, 61, .4);
	background: linear-gradient(135deg, rgba(255, 138, 61, .08), transparent 60%);
}
.wheel-cabinet p { margin: 4px 0 0; }
@media (max-width: 600px) {
	.wheel-cabinet { align-items: flex-start; }
	.wheel-cabinet .btn { width: 100%; justify-content: center; }
}
.secret-cabinet-mark,
.seven-final-mark {
	width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 1px; color: #d9c9ff;
	border: 1px solid rgba(190, 160, 255, .5);
	background: radial-gradient(circle at 35% 30%, rgba(190, 160, 255, .28), rgba(40, 28, 60, .7));
	font-size: .8rem; letter-spacing: .12em;
}
.secret-cabinet-mark i,
.seven-final-mark i { font-size: .95rem; }

.seven-page { max-width: 720px; }
.seven-intro { color: var(--text-dim); max-width: 560px; margin: 0 auto 22px; }
.seven-seals { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.seven-seal {
	width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: .78rem; font-weight: 700; letter-spacing: .04em;
	border: 1px solid rgba(255, 255, 255, .12); color: var(--text-dim);
	background: rgba(255, 255, 255, .03);
}
.seven-seal.done {
	color: #d9c9ff; border-color: rgba(190, 160, 255, .55);
	background: radial-gradient(circle at 35% 30%, rgba(190, 160, 255, .3), rgba(40, 28, 60, .6));
}
.seven-seal.current {
	color: var(--orange); border-color: rgba(255, 138, 61, .65);
	box-shadow: 0 0 0 4px rgba(255, 138, 61, .1);
}
.seven-card { text-align: center; }
.seven-stage { margin: 0 0 10px; font-weight: 700; letter-spacing: .12em; color: #c8b2ff; text-transform: uppercase; font-size: .8rem; }
.seven-stage span { color: var(--text-dim); letter-spacing: .04em; }
.seven-riddle { font-size: 1.08rem; line-height: 1.6; margin: 0 auto 18px; max-width: 540px; }
.seven-error, .seven-ok { display: flex; align-items: center; justify-content: center; gap: 8px; }
.seven-ok { color: #8fdca4; }
.seven-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; text-align: left; }
.seven-form label { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.seven-form input {
	padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(0, 0, 0, .25); color: var(--text);
	font-family: inherit; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase;
}
.seven-form input:focus { outline: none; border-color: rgba(190, 160, 255, .65); box-shadow: 0 0 0 3px rgba(190, 160, 255, .12); }
.seven-form .btn { justify-content: center; }
.seven-hint { margin-top: 18px; color: var(--text-dim); font-size: .9rem; }
.seven-hint summary { cursor: pointer; color: #c8b2ff; }
.seven-hint p { margin: 10px 0 0; }
.seven-final .seven-final-mark { margin: 0 auto 14px; }
.seven-final h2 { margin: 0 0 10px; }
.seven-final-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.about-hall { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .08); }
.about-hall > h2 { margin-top: 0; }

@media (max-width: 760px) {
	.seal-badge { font-size: .48em; padding: 2px 7px; }
	.seven-seal { width: 38px; height: 38px; font-size: .72rem; }
}

