@font-face {
	font-family: "LA2BR Font";
	src: url("/fonts/starcraft.ttf") format("truetype");
	font-weight: 400 700;
	font-style: normal;
	font-display: block;
}

:root {
	--gold: #e8c36a;
	--orange: #ff8a1a;
	--orange-hot: #ffb347;
	--muted: #b7b0a4;
	--line: rgba(232, 195, 106, 0.28);
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	--font-display: "LA2BR Font", "Cinzel", "Times New Roman", serif;
}

.left-docks {
	position: fixed;
	top: 132px;
	left: 0;
	z-index: 10050;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
}
.left-docks .music-popup,
.left-docks .legal-popup {
	position: relative;
	top: auto;
	left: auto;
	z-index: 1;
	pointer-events: auto;
}

.legal-popup {
	position: relative;
	font-family: var(--font-display);
}

.legal-popup__tab {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	overflow: hidden;
	isolation: isolate;
	min-width: 38px;
	margin: 0;
	padding: 14px 8px 12px;
	border: 1px solid rgba(232, 195, 106, 0.55);
	border-left: 0;
	background:
		linear-gradient(180deg, rgba(255, 210, 130, 0.16) 0%, transparent 22%, transparent 78%, rgba(255, 140, 40, 0.12) 100%),
		linear-gradient(90deg, #241038 0%, #120a1c 100%);
	color: #e8c36a;
	font-family: "LA2BR Font", "Cinzel", serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.06em;
	text-shadow: 0 0 12px rgba(255, 180, 60, 0.45);
	box-shadow:
		0 0 0 1px rgba(255, 220, 150, 0.14) inset,
		4px 8px 22px rgba(0, 0, 0, 0.5),
		0 0 18px rgba(255, 140, 40, 0.22);
	cursor: pointer;
}

.legal-popup__icon {
	width: 13px;
	height: 13px;
	margin-bottom: 7px;
	position: relative;
	z-index: 2;
	opacity: 0.95;
	filter: drop-shadow(0 0 6px rgba(255, 180, 60, 0.55));
}

.legal-popup__tab span {
	display: block;
	position: relative;
	z-index: 2;
}

.legal-popup__tab::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	right: 0;
	width: 2px;
	z-index: 3;
	background: linear-gradient(180deg, transparent, #ffb347 20%, #ffe29a 50%, #ffb347 80%, transparent);
	box-shadow: 0 0 10px rgba(255, 180, 60, 0.7);
}

.legal-popup__tab::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		180deg,
		transparent 15%,
		rgba(255, 220, 160, 0.1) 45%,
		rgba(255, 245, 210, 0.22) 50%,
		rgba(255, 220, 160, 0.1) 55%,
		transparent 85%
	);
	background-size: 100% 220%;
	animation: music-tab-shine 2.4s ease-in-out infinite;
}

.legal-popup__tab:hover,
.legal-popup.is-open .legal-popup__tab {
	color: #ffe29a;
	border-color: rgba(255, 210, 120, 0.85);
	background:
		linear-gradient(180deg, rgba(255, 210, 130, 0.28) 0%, transparent 24%, transparent 76%, rgba(255, 150, 40, 0.2) 100%),
		linear-gradient(90deg, #2e1648 0%, #1a0b2e 100%);
	box-shadow:
		0 0 0 1px rgba(255, 230, 170, 0.22) inset,
		4px 10px 24px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 0 28px rgba(255, 140, 40, 0.4);
}

.legal-popup__panel {
	position: absolute;
	top: 0;
	left: 100%;
	width: 276px;
	max-width: calc(100vw - 52px);
	padding: 16px 16px 15px;
	background:
		linear-gradient(180deg, rgba(255, 210, 130, 0.1) 0%, transparent 22%),
		linear-gradient(180deg, #1c1028 0%, #0e0816 55%, #120a1c 100%);
	border: 1px solid rgba(232, 195, 106, 0.42);
	border-left: 0;
	box-shadow:
		0 0 0 1px rgba(255, 220, 150, 0.08) inset,
		0 0 0 1px rgba(255, 170, 60, 0.28),
		0 16px 36px rgba(0, 0, 0, 0.62),
		0 0 32px rgba(255, 140, 40, 0.22);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
}

.legal-popup__panel::before {
	content: "";
	position: absolute;
	inset: 1px;
	pointer-events: none;
	z-index: 0;
	border: 1px solid rgba(232, 195, 106, 0.12);
}

.legal-popup__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.08) 48%,
		rgba(255, 230, 180, 0.16) 50%,
		rgba(255, 200, 120, 0.08) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 2.2s ease-in-out infinite;
}

.legal-popup.is-open .legal-popup__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.legal-popup__corner {
	position: absolute;
	z-index: 3;
	width: 10px;
	height: 10px;
	pointer-events: none;
	border-color: #e8c36a;
	border-style: solid;
	opacity: 0.85;
}
.legal-popup__corner--tl { top: 5px; left: 5px; border-width: 1px 0 0 1px; }
.legal-popup__corner--tr { top: 5px; right: 5px; border-width: 1px 1px 0 0; }
.legal-popup__corner--bl { bottom: 5px; left: 5px; border-width: 0 0 1px 1px; }
.legal-popup__corner--br { bottom: 5px; right: 5px; border-width: 0 1px 1px 0; }

.legal-popup__kicker,
.legal-popup__title,
.legal-popup__line,
.legal-popup__text,
.legal-popup__actions {
	position: relative;
	z-index: 2;
}

.legal-popup__kicker {
	margin: 0 0 6px;
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--orange);
}

.legal-popup__title {
	margin: 0 0 8px;
	font-size: 14px;
	letter-spacing: 0.07em;
	color: #ffe29a;
	line-height: 1.2;
	text-shadow:
		0 0 10px rgba(255, 180, 60, 0.35),
		0 1px 0 rgba(0, 0, 0, 0.55);
}

.legal-popup__line {
	display: block;
	width: 72px;
	height: 1px;
	margin: 0 0 10px;
	background: linear-gradient(90deg, #ffb347, transparent);
	box-shadow: 0 0 8px rgba(255, 180, 60, 0.45);
}

.legal-popup__text {
	margin: 0 0 14px;
	font-family: Inter, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #cfc6b8;
}

.legal-popup__actions {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 8px;
}

.legal-popup__btn {
	position: relative;
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	isolation: isolate;
	min-height: 34px;
	padding: 8px 6px;
	border: 1px solid rgba(232, 195, 106, 0.55);
	background:
		linear-gradient(180deg, rgba(255, 210, 130, 0.18) 0%, transparent 42%, rgba(255, 140, 40, 0.14) 100%),
		linear-gradient(180deg, #241038, #120a1c);
	color: #ffe29a;
	font-family: var(--font-display);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	text-shadow: 0 0 10px rgba(255, 180, 60, 0.35);
	box-shadow:
		0 0 0 1px rgba(255, 220, 150, 0.1) inset,
		0 6px 14px rgba(0, 0, 0, 0.35);
}

.legal-popup__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		180deg,
		transparent 15%,
		rgba(255, 220, 160, 0.08) 45%,
		rgba(255, 245, 210, 0.2) 50%,
		rgba(255, 220, 160, 0.08) 55%,
		transparent 85%
	);
	background-size: 100% 220%;
	animation: music-tab-shine 2.8s ease-in-out infinite;
}

.legal-popup__btn:hover {
	border-color: rgba(255, 210, 120, 0.9);
	color: #fff6d8;
	box-shadow:
		0 0 0 1px rgba(255, 230, 170, 0.18) inset,
		0 0 18px rgba(255, 140, 40, 0.38);
}

.legal-popup__link {
	font-family: Inter, sans-serif;
	font-size: 11px;
	color: var(--gold);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.legal-popup__link:hover {
	color: #ffe29a;
}

.music-popup {
	position: fixed;
	top: 132px;
	left: 0;
	z-index: 10000;
	font-family: var(--font-display);
}

.music-popup__tab {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	overflow: hidden;
	isolation: isolate;
	min-width: 38px;
	margin: 0;
	padding: 16px 8px 14px;
	border: 1px solid rgba(232, 195, 106, 0.55);
	border-left: 0;
	background:
		linear-gradient(180deg, rgba(255, 210, 130, 0.16) 0%, transparent 22%, transparent 78%, rgba(255, 140, 40, 0.12) 100%),
		linear-gradient(90deg, #241038 0%, #120a1c 100%);
	color: #e8c36a;
	font-family: "LA2BR Font", "Cinzel", serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.06em;
	text-shadow: 0 0 12px rgba(255, 180, 60, 0.45);
	box-shadow:
		0 0 0 1px rgba(255, 220, 150, 0.14) inset,
		4px 8px 22px rgba(0, 0, 0, 0.5),
		0 0 18px rgba(255, 140, 40, 0.22);
	cursor: pointer;
}

.music-popup__icon {
	width: 14px;
	height: 14px;
	margin-bottom: 8px;
	position: relative;
	z-index: 2;
	opacity: 0.95;
	filter: drop-shadow(0 0 6px rgba(255, 180, 60, 0.55));
}

.music-popup__tab span {
	display: block;
	position: relative;
	z-index: 2;
}

.music-popup__tab::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	right: 0;
	width: 2px;
	z-index: 3;
	background: linear-gradient(180deg, transparent, #ffb347 20%, #ffe29a 50%, #ffb347 80%, transparent);
	box-shadow: 0 0 10px rgba(255, 180, 60, 0.7);
}

.music-popup__tab::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		180deg,
		transparent 15%,
		rgba(255, 220, 160, 0.1) 45%,
		rgba(255, 245, 210, 0.22) 50%,
		rgba(255, 220, 160, 0.1) 55%,
		transparent 85%
	);
	background-size: 100% 220%;
	animation: music-tab-shine 2.4s ease-in-out infinite;
}

.music-popup__tab:hover,
.music-popup.is-open .music-popup__tab,
.music-popup.is-on .music-popup__tab {
	color: #ffe29a;
	border-color: rgba(255, 210, 120, 0.85);
	background:
		linear-gradient(180deg, rgba(255, 210, 130, 0.28) 0%, transparent 24%, transparent 76%, rgba(255, 150, 40, 0.2) 100%),
		linear-gradient(90deg, #2e1648 0%, #1a0b2e 100%);
	box-shadow:
		0 0 0 1px rgba(255, 230, 170, 0.22) inset,
		4px 10px 24px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 0 28px rgba(255, 140, 40, 0.4);
}

.music-popup.is-on .music-popup__tab {
	animation: music-tab-glow 2.2s ease-in-out infinite;
}

@keyframes music-tab-shine {
	0% { background-position: 0 -80%; }
	50% { background-position: 0 180%; }
	100% { background-position: 0 -80%; }
}

@keyframes music-tab-glow {
	0%, 100% { box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.18) inset, 4px 8px 22px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 140, 40, 0.28); }
	50% { box-shadow: 0 0 0 1px rgba(255, 240, 190, 0.28) inset, 4px 10px 24px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 170, 60, 0.55); }
}

.music-popup__panel {
	position: absolute;
	top: 0;
	left: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	width: 340px;
	max-width: calc(100vw - 48px);
	padding: 10px 12px;
	background: #120a1c;
	border: 1px solid rgba(255, 180, 80, 0.45);
	border-left: 0;
	box-shadow:
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 12px 28px rgba(0, 0, 0, 0.55),
		0 0 28px rgba(255, 140, 40, 0.28);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.music-popup__panel > * {
	position: relative;
	z-index: 2;
}

.music-popup__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		120deg,
		transparent 30%,
		rgba(255, 200, 120, 0.1) 48%,
		rgba(255, 220, 160, 0.18) 50%,
		rgba(255, 200, 120, 0.1) 52%,
		transparent 70%
	);
	background-size: 220% 100%;
	animation: card-shine 1.6s ease-in-out infinite;
}

.music-popup.is-open .music-popup__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@keyframes card-shine {
	0% { background-position: 120% 0; opacity: 0.2; }
	50% { background-position: -20% 0; opacity: 0.85; }
	100% { background-position: 120% 0; opacity: 0.2; }
}

.music-player-play,
.music-player-skip {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 180, 80, 0.28);
	background: rgba(18, 10, 24, 0.9);
	color: var(--gold);
	line-height: 0;
	cursor: pointer;
}

.music-player-play { width: 40px; height: 40px; border-radius: 50%; }
.music-player-skip { width: 28px; height: 28px; opacity: 0.82; }

.music-player-play svg,
.music-player-skip svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	display: block;
}

.music-player-play .icon-pause { display: none; }
.music-popup.is-on .icon-play { display: none; }
.music-popup.is-on .icon-pause { display: block; }

.music-player-info {
	display: grid;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
	padding: 0 4px;
}

.music-player-kicker {
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--orange);
}

.music-player-title {
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--gold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.music-player-eq {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
	width: 16px;
	flex: 0 0 16px;
	opacity: 0.35;
}

.music-player-eq span {
	width: 2px;
	height: 4px;
	background: var(--gold);
	transform-origin: bottom;
}

.music-popup.is-on .music-player-eq { opacity: 1; }
.music-popup.is-on .music-player-eq span:nth-child(1) { animation: music-eq 0.7s ease-in-out infinite; }
.music-popup.is-on .music-player-eq span:nth-child(2) { animation: music-eq 0.55s ease-in-out infinite 0.1s; }
.music-popup.is-on .music-player-eq span:nth-child(3) { animation: music-eq 0.8s ease-in-out infinite 0.05s; }
.music-popup.is-on .music-player-eq span:nth-child(4) { animation: music-eq 0.6s ease-in-out infinite 0.18s; }

@keyframes music-eq {
	0%, 100% { height: 4px; }
	50% { height: 14px; }
}

.music-player-vol {
	width: 64px;
	height: 4px;
	margin: 0;
	accent-color: #ff8a1a;
	flex: 0 0 64px;
}

@media (max-width: 640px) {
	.music-popup__panel { width: 260px; }
	.music-player-vol { display: none; }
}

.tips-popup {
	position: fixed;
	right: 12px;
	bottom: 18px;
	z-index: 10050;
	font-family: var(--font-display);
	transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.tips-popup.is-away {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px);
}
.tips-popup__tab {
	position: relative;
	z-index: 2;
	display: block;
	width: 228px;
	height: 228px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	overflow: visible;
	appearance: none;
	-webkit-appearance: none;
}
.tips-popup__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: transparent;
	pointer-events: none;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
.tips-popup__tab:hover .tips-popup__img,
.tips-popup.is-open .tips-popup__img {
	filter: drop-shadow(0 10px 22px rgba(255, 140, 40, 0.45));
}
.tips-popup__panel {
	position: absolute;
	right: 18px;
	left: auto;
	bottom: calc(100% + 8px);
	width: 240px;
	padding: 12px 14px;
	background: #120a1c;
	border: 1px solid rgba(255, 180, 80, 0.45);
	box-shadow:
		0 0 0 1px rgba(255, 170, 60, 0.35),
		0 12px 28px rgba(0, 0, 0, 0.55),
		0 0 28px rgba(255, 140, 40, 0.28);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
}
.tips-popup.is-open .tips-popup__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.tips-popup__kicker {
	margin: 0 0 4px;
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--orange);
}
.tips-popup__hint {
	margin: 0 0 8px;
	color: #ffe29a;
	font-size: 13px;
	letter-spacing: 0.06em;
	line-height: 1.35;
}
.tips-popup__cta {
	margin: 0;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

body.info-modal-open { overflow: hidden; }
.info-modal[hidden] { display: none !important; }
.info-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}
.info-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 2, 8, 0.82);
}
.info-modal-box {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: 86vh;
	overflow: auto;
	padding: 36px 40px 32px;
	background: linear-gradient(180deg, #1a1024 0%, #0c0712 100%);
	border: 1px solid rgba(232, 195, 106, 0.35);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 140, 40, 0.08);
}
.info-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--gold);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}
.info-modal-kicker {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--orange);
}
.info-modal-title {
	margin: 0 0 18px;
	font-family: var(--font-display);
	font-size: 28px;
	letter-spacing: 0.06em;
	color: var(--gold);
}
.info-modal-body {
	font-size: 15px;
	line-height: 1.55;
	color: #e8e2d6;
}
.info-modal-body h3 {
	margin: 18px 0 8px;
	font-family: var(--font-display);
	font-size: 16px;
	color: var(--orange-hot);
}
.info-modal-body p { margin: 0 0 12px; }

@media (max-width: 760px) {
	.tips-popup { right: 6px; bottom: 10px; }
	.tips-popup__tab { width: 140px; height: 140px; }
	.info-modal-box { padding: 28px 18px 22px; }
	.info-modal-title { font-size: 22px; }
}
