﻿/* Ceremonia awansu statusu — moduł wielokrotnego użytku */
body.status-ceremony-open {
	overflow: hidden;
}

.status-ceremony {
	--sc-accent: #d4a017;
	--sc-accent-deep: #8a6a0a;
	--sc-glow: rgba(212, 160, 23, 0.38);
	--sc-overlay: rgba(0, 22, 42, 0.97);
	--sc-text: #fff8e6;
	--sc-muted: rgba(255, 248, 230, 0.78);
	--sc-btn-ink: #1a1204;
	--sc-btn-hover: #e8c547;
	position: fixed;
	inset: 0;
	z-index: 110000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.status-ceremony.is-on {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.status-ceremony--gold {
	--sc-accent: #d4a017;
	--sc-accent-deep: #8a6a0a;
	--sc-glow: rgba(212, 160, 23, 0.38);
	--sc-overlay: rgba(0, 22, 42, 0.97);
	--sc-text: #fff8e6;
	--sc-muted: rgba(255, 248, 230, 0.78);
	--sc-btn-ink: #1a1204;
	--sc-btn-hover: #e8c547;
}

.status-ceremony--platinum {
	--sc-accent: #9ec9e0;
	--sc-accent-deep: #3e738f;
	--sc-glow: rgba(158, 201, 224, 0.48);
	--sc-overlay: rgba(6, 32, 44, 0.96);
	--sc-text: #f3f8fb;
	--sc-muted: rgba(243, 248, 251, 0.8);
	--sc-btn-ink: #143040;
	--sc-btn-hover: #c5e6f4;
}

.status-ceremony-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.status-ceremony-ambient {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse at 50% 28%, var(--sc-glow) 0%, transparent 34%),
		radial-gradient(ellipse at 50% 100%, rgba(0, 78, 134, 0.35) 0%, transparent 55%),
		var(--sc-overlay);
	pointer-events: none;
}

.status-ceremony-flashbang {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.55), transparent 42%);
	opacity: 0;
	pointer-events: none;
}

.status-ceremony-stage {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 640px;
	padding: 8px 0 20px;
	text-align: center;
	color: var(--sc-text);
}

.status-ceremony-kicker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 28px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sc-accent);
	opacity: 0;
}

.status-ceremony-kicker::before,
.status-ceremony-kicker::after {
	content: '';
	display: block;
	width: 72px;
	height: 1px;
	background: var(--sc-accent);
	opacity: 0.75;
}

.status-ceremony-seal-wrap {
	position: relative;
	width: 236px;
	height: 236px;
	margin: 0 auto 40px;
	opacity: 0;
}

.status-ceremony-seal-wrap::before {
	content: '';
	position: absolute;
	inset: -18px;
	border-radius: 50%;
	border: 3px solid var(--sc-accent);
	box-shadow: 0 0 28px var(--sc-glow);
	opacity: 0;
	pointer-events: none;
}

.status-ceremony-rays {
	display: none;
}

.status-ceremony-seal {
	position: relative;
	z-index: 1;
	width: 236px;
	height: 236px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow:
		0 0 0 6px rgba(255, 255, 255, 0.08),
		0 0 36px var(--sc-glow),
		0 18px 40px rgba(0, 0, 0, 0.35);
}

.status-ceremony-seal-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--sc-accent);
	box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
	background:
		conic-gradient(
			from 210deg,
			var(--sc-accent-deep),
			var(--sc-accent),
			#fff6d0,
			var(--sc-accent),
			var(--sc-accent-deep)
		);
}

.status-ceremony-seal-ring::after,
.status-ceremony-seal-core::after {
	content: '';
	position: absolute;
	top: -40%;
	left: -30%;
	z-index: 1;
	width: 50%;
	height: 180%;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
	transform: rotate(18deg);
	animation: status-ceremony-sheen 2.8s ease-in-out 0.6s infinite;
	pointer-events: none;
}

.status-ceremony--platinum .status-ceremony-seal-ring {
	background:
		conic-gradient(
			from 210deg,
			#3e738f,
			#9ec9e0,
			#f7fbfe,
			#c5e3f0,
			#3e738f
		);
}

.status-ceremony-seal-core {
	position: absolute;
	inset: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.28), transparent 46%), var(--sc-accent-deep);
	overflow: hidden;
}

.status-ceremony-medal {
	position: relative;
	z-index: 2;
	width: 110px;
	height: 110px;
	margin: 0;
	color: #fff;
}

.status-ceremony-medal-star,
.status-ceremony-medal-diamond {
	fill: currentColor;
}

.status-ceremony[data-medal="star"] .status-ceremony-medal-diamond,
.status-ceremony[data-medal="diamond"] .status-ceremony-medal-star {
	display: none;
}

.status-ceremony-seal-name {
	display: none;
}

.status-ceremony-title {
	margin: 0 0 18px;
	font-size: 44px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0.02em;
	color: var(--sc-text);
	opacity: 0;
}

.status-ceremony-lead {
	margin: 0 0 36px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sc-accent);
	opacity: 0;
}

.status-ceremony-path {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	opacity: 0;
}

.status-ceremony-path-item {
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.82);
	background: rgba(8, 16, 28, 0.72);
}

.status-ceremony-path-item.is-past {
	color: rgba(255, 255, 255, 0.88);
	border-color: rgba(255, 255, 255, 0.28);
}

.status-ceremony-path-item.is-now {
	position: relative;
	overflow: hidden;
	color: var(--sc-btn-ink);
	border-color: var(--sc-accent);
	background: linear-gradient(180deg, #f6e27a 0%, var(--sc-accent) 100%);
	box-shadow: 0 0 22px var(--sc-glow);
}

.status-ceremony-path-item.is-now::before {
	content: '★';
	margin-right: 6px;
}

.status-ceremony-path-item.is-now::after {
	content: '';
	position: absolute;
	top: -40%;
	left: -30%;
	width: 50%;
	height: 180%;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: rotate(18deg);
	animation: status-ceremony-sheen 2.8s ease-in-out 0.6s infinite;
	pointer-events: none;
}

.status-ceremony-path-sep {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	align-self: center;
	border-right: 2px solid rgba(255, 255, 255, 0.38);
	border-top: 2px solid rgba(255, 255, 255, 0.38);
	transform: rotate(45deg);
	background: none;
}

.status-ceremony-prize {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 8px auto 0;
	padding: 18px 22px;
	max-width: 520px;
	text-align: left;
	border: 1px solid var(--sc-accent);
	border-radius: 10px;
	background: rgba(0, 12, 28, 0.45);
	opacity: 0;
}

.status-ceremony-prize-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	color: var(--sc-accent);
}

.status-ceremony-prize-body {
	min-width: 0;
	flex: 1;
}

.status-ceremony-prize-label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sc-muted);
}

.status-ceremony-prize-name {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--sc-accent);
}

.status-ceremony-prize-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--sc-muted);
}

.status-ceremony-copy {
	margin: 0 auto;
	max-width: 480px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--sc-muted);
	opacity: 0;
}

.status-ceremony-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 36px;
	opacity: 0;
}

.status-ceremony-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(0, 12, 28, 0.55);
	color: #fff;
	cursor: pointer;
}

.status-ceremony-close:hover,
.status-ceremony-close:focus {
	outline: none;
	border-color: var(--sc-accent);
	color: var(--sc-accent);
	background: rgba(0, 12, 28, 0.8);
}

.status-ceremony-close-icon {
	width: 18px;
	height: 18px;
	display: block;
}

.status-ceremony-claim {
	position: relative;
	display: inline-block;
	min-width: 280px;
	padding: 16px 36px;
	border: 2px solid #004e86;
	border-radius: 8px;
	background: #004e86;
	box-shadow: 0 8px 0 #00345a, 0 14px 28px rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.status-ceremony-claim:hover,
.status-ceremony-claim:focus {
	outline: none;
	background: #0a63a8;
	border-color: #0a63a8;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 0 #00345a, 0 12px 24px rgba(0, 0, 0, 0.32);
	transform: translateY(2px);
}

.status-ceremony--platinum .status-ceremony-path-item.is-now {
	background: linear-gradient(180deg, #f2f6fb 0%, #9eb4c9 100%);
}

.status-ceremony-dismiss {
	margin: 0;
	padding: 16px 48px;
	border: 1px solid var(--sc-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--sc-text);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.status-ceremony-dismiss:hover,
.status-ceremony-dismiss:focus {
	outline: none;
	background: transparent;
	border-color: var(--sc-text);
	color: var(--sc-text);
}

.status-ceremony.is-on .status-ceremony-flashbang {
	animation: status-ceremony-flash 0.7s ease-out both;
}

.status-ceremony.is-on .status-ceremony-kicker {
	animation: status-ceremony-rise 0.65s ease 0.15s both;
}

.status-ceremony.is-on .status-ceremony-seal-wrap {
	animation: status-ceremony-stamp 0.9s cubic-bezier(0.18, 1.35, 0.28, 1) 0.12s both;
}

.status-ceremony.is-on .status-ceremony-seal-wrap::before {
	animation: status-ceremony-ring-burst 0.95s ease-out 0.18s both;
}

.status-ceremony.is-on .status-ceremony-medal {
	animation: status-ceremony-star-pop 0.85s cubic-bezier(0.18, 1.4, 0.28, 1) 0.22s both;
}

.status-ceremony.is-on .status-ceremony-title {
	animation: status-ceremony-rise 0.7s ease 0.42s both;
}

.status-ceremony.is-on .status-ceremony-lead {
	animation: status-ceremony-rise 0.7s ease 0.52s both;
}

.status-ceremony.is-on .status-ceremony-path {
	animation: status-ceremony-rise 0.7s ease 0.64s both;
}

.status-ceremony.is-on .status-ceremony-prize,
.status-ceremony.is-on .status-ceremony-copy {
	animation: status-ceremony-rise 0.7s ease 0.74s both;
}

.status-ceremony.is-on .status-ceremony-actions {
	animation: status-ceremony-rise 0.7s ease 0.86s both;
}

.status-ceremony--platinum.is-on .status-ceremony-seal-wrap {
	animation-duration: 1.15s;
}

.account-status-rail-item-2.status-ceremony-flash,
.account-status-step-2.status-ceremony-flash {
	--sc-glow: rgba(212, 160, 23, 0.45);
}

.account-status-rail-item-3.status-ceremony-flash,
.account-status-step-3.status-ceremony-flash {
	--sc-glow: rgba(158, 201, 224, 0.5);
}

.account-status-rail-item.status-ceremony-flash .account-status-rail-dot,
.account-status-step.status-ceremony-flash {
	animation: status-ceremony-rail-pulse 1.1s ease-in-out 2;
}

@keyframes status-ceremony-stamp {
	0% {
		opacity: 0;
		transform: scale(1.55) rotate(-10deg);
	}
	58% {
		opacity: 1;
		transform: scale(0.92) rotate(3deg);
	}
	78% {
		transform: scale(1.06) rotate(-1.5deg);
	}
	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

@keyframes status-ceremony-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes status-ceremony-star-pop {
	0% {
		opacity: 0;
		transform: scale(0.35) rotate(-18deg);
	}
	62% {
		opacity: 1;
		transform: scale(1.18) rotate(8deg);
	}
	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

@keyframes status-ceremony-ring-burst {
	0% {
		opacity: 0.8;
		transform: scale(0.72);
	}
	100% {
		opacity: 0;
		transform: scale(1.7);
	}
}

@keyframes status-ceremony-flash {
	0% {
		opacity: 0.55;
	}
	100% {
		opacity: 0;
	}
}

@keyframes status-ceremony-sheen {
	0%,
	100% {
		transform: translateX(0) rotate(18deg);
		opacity: 0;
	}
	18% {
		opacity: 0.85;
	}
	45% {
		transform: translateX(220%) rotate(18deg);
		opacity: 0;
	}
}

@keyframes status-ceremony-rail-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 transparent;
	}
	50% {
		box-shadow: 0 0 0 6px var(--sc-glow, rgba(184, 134, 11, 0.35));
	}
}

@media (max-width: 767px) {
	.status-ceremony-seal-wrap,
	.status-ceremony-seal {
		width: 200px;
		height: 200px;
	}
	.status-ceremony-seal-core {
		inset: 20px;
	}
	.status-ceremony-medal {
		width: 92px;
		height: 92px;
	}
	.status-ceremony-seal-wrap {
		margin-bottom: 32px;
	}
	.status-ceremony-kicker {
		font-size: 14px;
		gap: 10px;
		margin-bottom: 22px;
	}
	.status-ceremony-kicker::before,
	.status-ceremony-kicker::after {
		width: 36px;
	}
	.status-ceremony-title {
		font-size: 32px;
		margin-bottom: 14px;
	}
	.status-ceremony-lead {
		font-size: 18px;
		margin-bottom: 28px;
	}
	.status-ceremony-path {
		margin-bottom: 26px;
	}
	.status-ceremony-path-item {
		font-size: 14px;
		padding: 10px 18px;
	}
	.status-ceremony-prize {
		padding: 14px 16px;
		gap: 12px;
	}
	.status-ceremony-prize-name {
		font-size: 17px;
	}
	.status-ceremony-prize-text {
		font-size: 14px;
	}
	.status-ceremony-claim {
		padding: 14px 28px;
		font-size: 16px;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.status-ceremony-seal-ring::after,
	.status-ceremony-seal-core::after,
	.status-ceremony-path-item.is-now::after {
		animation: none;
	}
	.status-ceremony.is-on .status-ceremony-flashbang,
	.status-ceremony.is-on .status-ceremony-seal-wrap::before,
	.status-ceremony.is-on .status-ceremony-medal {
		animation: none;
		opacity: 1;
	}
	.status-ceremony.is-on .status-ceremony-kicker,
	.status-ceremony.is-on .status-ceremony-seal-wrap,
	.status-ceremony.is-on .status-ceremony-title,
	.status-ceremony.is-on .status-ceremony-lead,
	.status-ceremony.is-on .status-ceremony-path,
	.status-ceremony.is-on .status-ceremony-prize,
	.status-ceremony.is-on .status-ceremony-copy,
	.status-ceremony.is-on .status-ceremony-actions {
		animation: none;
		opacity: 1;
	}
}
