/* Lightweight Christmas UI. Loaded last so it wins over the old scene. */

:root {
	--sb-night: #071422;
	--sb-pine: #123524;
	--sb-red: #d7263d;
	--sb-gold: #f2c14e;
	--sb-cream: #fff8ee;
	--sb-ink: #1b2430;
	--sb-snow: rgba(255, 255, 255, 0.92);
}

body.sb-app {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	font-family: "Nunito", "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: var(--sb-cream);
	background:
		radial-gradient(1200px 500px at 50% -10%, rgba(242, 193, 78, 0.18), transparent 55%),
		radial-gradient(800px 420px at 100% 20%, rgba(215, 38, 61, 0.16), transparent 50%),
		linear-gradient(180deg, #10243f 0%, #0c1c33 42%, #123524 100%);
	overflow-x: hidden;
}

body.sb-app.sb-dash {
	padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

#loader {
	background: #071422 !important;
}

#loader::after {
	content: "🎁";
	background: none !important;
	width: auto;
	height: auto;
	font-size: 46px;
	margin-left: 0;
	animation: sb-pop 0.9s ease-in-out infinite !important;
}

#container.parallax-container {
	display: none !important;
}

.sb-sky {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.sb-sky::before {
	content: "";
	position: absolute;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #fff;
	box-shadow:
		8vw 12vh 0 #fff, 18vw 28vh 0 #fff, 30vw 8vh 0 #fff,
		46vw 18vh 0 #fff, 62vw 10vh 0 #fff, 74vw 24vh 0 #fff,
		88vw 14vh 0 #fff, 12vw 48vh 0 #fff, 40vw 40vh 0 #fff,
		70vw 46vh 0 #fff, 92vw 36vh 0 #fff, 24vw 62vh 0 #fff;
	opacity: 0.75;
	animation: sb-twinkle 2.8s ease-in-out infinite;
}

.sb-lights {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	padding: 0 4vw;
	z-index: 2;
}

.sb-lights::before {
	content: "";
	position: absolute;
	left: 2%;
	right: 2%;
	top: 0;
	height: 18px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 0 0 50% 50%;
}

.sb-lights span {
	width: 12px;
	height: 16px;
	margin-top: 10px;
	border-radius: 0 0 8px 8px;
	transform-origin: top center;
	animation: sb-bulb 1.6s ease-in-out infinite;
}

.sb-lights span:nth-child(4n + 1) { background: #e63946; }
.sb-lights span:nth-child(4n + 2) { background: #f2c14e; animation-delay: 0.3s; }
.sb-lights span:nth-child(4n + 3) { background: #4cc9f0; animation-delay: 0.6s; }
.sb-lights span:nth-child(4n) { background: #80ed99; animation-delay: 0.9s; }

.sb-snow i {
	position: absolute;
	top: -12px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	opacity: 0.85;
	animation: sb-fall linear infinite;
}

.sb-snow i:nth-child(1) { left: 4%; animation-duration: 11s; animation-delay: -2s; }
.sb-snow i:nth-child(2) { left: 12%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: -7s; }
.sb-snow i:nth-child(3) { left: 19%; animation-duration: 9s; animation-delay: -4s; }
.sb-snow i:nth-child(4) { left: 27%; width: 4px; height: 4px; animation-duration: 16s; }
.sb-snow i:nth-child(5) { left: 34%; animation-duration: 12s; animation-delay: -9s; }
.sb-snow i:nth-child(6) { left: 41%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: -1s; }
.sb-snow i:nth-child(7) { left: 48%; animation-duration: 15s; animation-delay: -6s; }
.sb-snow i:nth-child(8) { left: 55%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: -3s; }
.sb-snow i:nth-child(9) { left: 62%; animation-duration: 9.5s; animation-delay: -8s; }
.sb-snow i:nth-child(10) { left: 69%; width: 8px; height: 8px; animation-duration: 17s; }
.sb-snow i:nth-child(11) { left: 75%; animation-duration: 11s; animation-delay: -5s; }
.sb-snow i:nth-child(12) { left: 82%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: -11s; }
.sb-snow i:nth-child(13) { left: 88%; animation-duration: 10s; animation-delay: -2s; }
.sb-snow i:nth-child(14) { left: 93%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: -7s; }
.sb-snow i:nth-child(15) { left: 8%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: -12s; }
.sb-snow i:nth-child(16) { left: 58%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: -4s; }
.sb-snow i:nth-child(17) { left: 36%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: -10s; }
.sb-snow i:nth-child(18) { left: 97%; animation-duration: 11s; animation-delay: -6s; }

.sb-stage,
.sb-home {
	position: relative;
	z-index: 1;
	width: min(920px, calc(100% - 32px));
	margin: 0 auto;
	padding: 54px 0 28px;
}

.sb-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Mountains of Christmas", cursive;
	font-size: 28px;
	letter-spacing: 0.02em;
}

.sb-brand svg {
	width: 36px;
	height: 36px;
	animation: sb-sway 3.2s ease-in-out infinite;
	transform-origin: 50% 100%;
}

.sb-kicker {
	display: inline-block;
	margin: 18px 0 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(242, 193, 78, 0.45);
	color: var(--sb-gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sb-stage h1,
.sb-home h1 {
	margin: 0 0 8px;
	font-family: "Mountains of Christmas", cursive;
	font-size: clamp(40px, 8vw, 68px);
	line-height: 0.95;
	font-weight: 700;
	text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.sb-lead {
	max-width: 34rem;
	margin: 0 0 18px;
	color: rgba(255, 248, 238, 0.88);
	font-size: 17px;
}

.sb-hero {
	display: block;
}

#countdown_container {
	display: flex;
	gap: 8px;
	width: 100% !important;
	max-width: 420px;
	position: static !important;
	margin: 0 0 18px !important;
	left: auto !important;
	top: auto !important;
	font-size: 22px !important;
	color: #fff;
}

.countdown-globe {
	flex: 1;
	height: auto !important;
	padding: 10px 4px 8px !important;
	text-align: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 16px;
	backdrop-filter: blur(8px);
	line-height: 1.1 !important;
	animation: sb-rise 0.7s ease both;
}

.countdown-globe:nth-child(2) { animation-delay: 0.08s; }
.countdown-globe:nth-child(3) { animation-delay: 0.16s; }
.countdown-globe:nth-child(4) { animation-delay: 0.24s; }

.countdown-globe b,
.countdown-globe {
	font-weight: 800;
}

.countdown-globe div,
.countdown-globe span {
	display: block;
	margin-top: 2px;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.8;
}

.countdown-globe::after {
	display: none !important;
}

.sb-cta,
body.sb-app .santa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: auto;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #ef4155 0%, #c1121f 100%);
	color: #fff !important;
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(193, 18, 31, 0.35);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.sb-cta {
	position: relative;
	overflow: hidden;
}

.sb-cta::after {
	content: "";
	position: absolute;
	top: 0;
	left: -40%;
	width: 30%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	animation: sb-shine 2.8s ease-in-out infinite;
}

.sb-cta:hover,
.sb-cta:focus,
body.sb-app .santa-btn:hover,
body.sb-app .santa-btn:focus {
	color: #fff !important;
	background: linear-gradient(180deg, #ff5a6a 0%, #d7263d 100%);
	border: 0;
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.sb-cta:active,
body.sb-app .santa-btn:active {
	transform: translateY(1px) scale(0.98);
}

.sb-present {
	justify-self: center;
	display: grid;
	justify-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.sb-present input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sb-gift {
	position: relative;
	width: 120px;
	height: 96px;
	transform-origin: 50% 100%;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sb-present:hover .sb-gift,
.sb-present input:focus-visible + .sb-gift {
	transform: translateY(-4px);
}

.sb-present input:checked + .sb-gift {
	animation: sb-shake 0.55s ease;
}

.sb-gift-body {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 0;
	height: 68px;
	border-radius: 10px;
	background: linear-gradient(180deg, #ef4155, #9b1020);
	box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.12);
}

.sb-gift-body::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 16px;
	margin-left: -8px;
	background: var(--sb-gold);
}

.sb-lid,
.sb-bow {
	z-index: 2;
}

.sb-lid {
	position: absolute;
	left: 0;
	right: 0;
	top: 10px;
	height: 24px;
	border-radius: 8px;
	background: linear-gradient(180deg, #ff6b78, #c1121f);
	transition: transform 0.35s ease;
}

.sb-lid::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 16px;
	margin-left: -8px;
	background: #ffe08a;
}

.sb-bow {
	position: absolute;
	left: 50%;
	top: -2px;
	width: 28px;
	height: 18px;
	margin-left: -14px;
	background: var(--sb-gold);
	border-radius: 40% 40% 40% 40%;
}

.sb-bow::before,
.sb-bow::after {
	content: "";
	position: absolute;
	top: 2px;
	width: 22px;
	height: 16px;
	background: #ffe08a;
	border-radius: 50%;
}

.sb-bow::before { left: -16px; }
.sb-bow::after { right: -16px; }

.sb-present input:checked + .sb-gift .sb-lid {
	transform: translateY(-14px) rotate(-6deg);
}

.sb-present em {
	font-style: normal;
	font-size: 13px;
	font-weight: 800;
	color: rgba(255, 248, 238, 0.8);
}

.sb-steps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 22px;
}

.sb-steps input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sb-steps label {
	display: block;
	min-height: 108px;
	margin: 0;
	padding: 14px 14px 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sb-steps label strong {
	display: block;
	font-size: 16px;
}

.sb-steps label span {
	display: block;
	margin-top: 4px;
	color: rgba(255, 248, 238, 0.78);
	font-size: 14px;
	font-weight: 600;
}

.sb-steps label i {
	display: block;
	margin-bottom: 6px;
	font-style: normal;
	font-size: 20px;
}

.sb-steps label:hover,
.sb-steps input:focus-visible + label {
	transform: translateY(-3px);
	border-color: rgba(242, 193, 78, 0.7);
}

.sb-steps input:checked + label {
	background: rgba(255, 248, 238, 0.95);
	color: var(--sb-ink);
	border-color: var(--sb-gold);
	transform: translateY(-3px);
}

.sb-steps input:checked + label span {
	color: #3d4a3a;
}

.sb-foot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	margin-top: 22px;
	color: rgba(255, 248, 238, 0.7);
	font-size: 13px;
}

.sb-foot a {
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.sb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sb-avatar {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--sb-gold);
	border-radius: 50%;
	background: #123524;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	cursor: pointer;
	transition: transform 0.18s ease;
}

.sb-avatar:hover,
.sb-avatar:focus {
	transform: scale(1.06);
}

.sb-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sb-hello {
	margin: 22px 0 0;
	color: var(--sb-gold);
	font-weight: 800;
}

.sb-dock {
	position: fixed;
	z-index: 30;
	left: 50%;
	bottom: calc(10px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	width: min(520px, calc(100% - 16px));
	padding: 8px;
	border-radius: 22px;
	background: rgba(10, 18, 32, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(12px);
}

.sb-dock .menu-open {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sb-dock button {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 58px;
	padding: 6px 2px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

.sb-dock button .fa {
	font-size: 16px;
	color: var(--sb-gold);
}

.sb-dock button:hover,
.sb-dock button:focus {
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.sb-dock button:active {
	transform: scale(0.94);
}

#menu-open:checked ~ button {
	animation: sb-pop 0.55s ease;
}

#menu-open:checked ~ button:nth-of-type(2) { animation-delay: 0.05s; }
#menu-open:checked ~ button:nth-of-type(3) { animation-delay: 0.1s; }
#menu-open:checked ~ button:nth-of-type(4) { animation-delay: 0.15s; }
#menu-open:checked ~ button:nth-of-type(5) { animation-delay: 0.2s; }

body.sb-app .balloon-center {
	position: fixed;
	right: 14px;
	bottom: 18px;
	z-index: 25;
	margin: 0;
}

body.sb-app.sb-dash .balloon-center {
	bottom: calc(96px + env(safe-area-inset-bottom));
}

body.sb-app .balloon {
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 248, 238, 0.95);
	color: var(--sb-red);
	font-size: 13px;
	line-height: 1.1;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	animation: sb-bob 3.4s ease-in-out infinite;
}

body.sb-app .balloon::before,
body.sb-app .balloon::after {
	display: none;
}

#basicModal .modal-dialog {
	width: min(420px, calc(100% - 20px));
}

#basicModal .modal-content {
	border: 1px solid rgba(242, 193, 78, 0.9);
	border-radius: 22px;
	background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 12px 16px 18px;
}

#basicModal .social-login {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: stretch;
	margin: 14px 0 4px;
}

#basicModal .social-login .btn {
	width: 100%;
	border-radius: 999px;
	font-weight: 800;
}

.santa-modal {
	background: rgba(7, 16, 30, 0.62) !important;
}

.santa-modal .modal-dialog {
	width: min(460px, calc(100% - 20px));
	margin: 24px auto;
}

.santa-modal .modal-lg,
#infoModal .modal-dialog,
#guideModal .modal-dialog {
	width: min(860px, calc(100% - 16px)) !important;
	margin: 12px auto !important;
}

.modal.fade .modal-dialog {
	transform: translateY(28px) scale(0.96);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.in .modal-dialog {
	transform: none;
}

.santa-modal-in,
.cookiesContent {
	background: linear-gradient(180deg, #fffaf3 0%, #ffffff 55%, #f4fff6 100%) !important;
	color: var(--sb-ink);
	border: 1px solid rgba(242, 193, 78, 0.85);
	border-radius: 22px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.cookiesContent img.cookiesContentImg,
.cookiesContent > img {
	width: 88px !important;
	height: 88px;
	margin: 0 auto 8px !important;
	object-fit: contain;
}

.mb-20 {
	color: #7a1020;
	font-family: "Mountains of Christmas", cursive;
	font-size: 30px;
}

.santa-field,
.santa-txt,
#editor,
#join-code,
#box-name {
	font-family: "Nunito", sans-serif;
}

#join-code {
	letter-spacing: 0.35em;
	font-size: 20px;
	font-weight: 800;
}

.santa-modal .card {
	width: calc(100% - 8px);
	min-width: 0;
	margin: 8px 4px;
	border-radius: 16px;
	transition: transform 0.18s ease;
}

.santa-modal .card:hover {
	transform: translateY(-2px);
}

#end-grp-btn,
#btn-grp-action {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.santa-field-dt button,
#btn-join,
#btn-invite,
#btn-create,
#logout {
	width: auto !important;
	min-width: 120px;
	height: auto !important;
	line-height: 1.2 !important;
	padding: 10px 16px !important;
}

table.dataTable,
.dataTables_wrapper {
	font-size: 14px;
	color: var(--sb-ink);
}

.alertify-notifier,
.jconfirm {
	font-family: "Nunito", sans-serif;
}

@keyframes sb-fall {
	0% { transform: translate3d(0, -10px, 0); }
	100% { transform: translate3d(12px, 105vh, 0); }
}

@keyframes sb-bulb {
	0%, 100% { opacity: 0.45; filter: saturate(0.7); }
	50% { opacity: 1; filter: saturate(1.3); }
}

@keyframes sb-twinkle {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 0.95; }
}

@keyframes sb-sway {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(4deg); }
}

@keyframes sb-shine {
	0%, 55% { left: -40%; }
	100% { left: 130%; }
}

@keyframes sb-shake {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(-8deg); }
	40% { transform: rotate(7deg); }
	60% { transform: rotate(-4deg); }
	80% { transform: rotate(3deg); }
}

@keyframes sb-pop {
	0% { transform: scale(0.86); }
	60% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

@keyframes sb-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@keyframes sb-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@media (max-width: 720px) {
	.sb-hero {
		grid-template-columns: 1fr;
	}

	.sb-present {
		order: -1;
	}

	.sb-steps {
		grid-template-columns: 1fr;
	}

	.sb-steps label {
		min-height: 0;
	}

	.sb-foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.sb-stage h1,
	.sb-home h1 {
		font-size: 46px;
	}

	#countdown_container {
		max-width: none;
	}

	.santa-modal .modal-dialog,
	.modal-dialog {
		width: calc(100% - 16px) !important;
		margin: 8px auto !important;
	}

	.cookiesContent p {
		font-size: 15px;
	}

	body.sb-app .santa-btn {
		width: 100%;
		max-width: 100%;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	#resultModal #secret_santa_result {
		position: relative !important;
		left: auto !important;
		bottom: auto !important;
		margin: 16px auto !important;
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	#resultModal .sb-lid,
	#resultModal .sb-burst,
	#resultModal .sb-surprise,
	#resultModal .sb-reveal-hint {
		display: none !important;
	}

	#resultModal .res_name b,
	#resultModal .res_icon,
	#resultModal .res_mail {
		opacity: 1 !important;
		transform: none !important;
	}

	.sb-flight {
		left: 8%;
	}
}

/* Boxes list, member table, and secret-santa reveal */
.sb-box-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	width: 100%;
	margin: 4px 0 10px;
}

#box-find {
	flex: 1 1 180px;
	min-width: 0;
	height: 46px;
	border: 1px solid #e6d3a1;
	border-radius: 999px;
	padding: 0 16px;
	background: #fff;
	color: #1b2430;
	font: 700 15px/1 "Nunito", sans-serif;
}

#box-find:focus {
	outline: 2px solid #f2c14e;
	border-color: #f2c14e;
}

.sb-box-pages {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sb-box-pages button {
	min-width: 64px;
	min-height: 40px;
	border: 0;
	border-radius: 999px;
	background: #7a1020;
	color: #fff;
	font: 800 14px/1 "Nunito", sans-serif;
	cursor: pointer;
}

.sb-box-pages button:disabled {
	opacity: 0.35;
	cursor: default;
}

#box-page-label {
	min-width: 48px;
	text-align: center;
	font-weight: 800;
	color: #7a1020;
}

.sb-box-empty {
	margin: 12px 0;
	color: #7a1020;
	font-weight: 800;
}

#cooker {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-height: none;
	overflow: auto;
	padding: 2px;
}

#manageModal .sb-box-card[hidden],
#box-pages[hidden],
#box-empty[hidden] {
	display: none !important;
}

#manageModal .sb-box-card {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 10px 12px;
	text-align: left;
	border: 1px solid rgba(242, 193, 78, 0.8);
	background: linear-gradient(180deg, #fff, #fff8ee);
}

#manageModal .sb-box-card .box-icon {
	width: 56px !important;
	height: 56px;
	object-fit: cover;
	flex: none;
	float: none !important;
	margin: 0 !important;
}

#manageModal .sb-box-card .card-content {
	min-width: 0;
	flex: 1;
	text-align: left;
}

#manageModal .sb-box-card .box-title,
#manageModal .sb-box-card .box-role {
	text-align: left;
}

#manageModal .sb-box-card .sanc {
	position: static;
	float: none;
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 8px;
	border-radius: 999px;
	background: #1f8a4c;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}

#boxModal .modal-dialog {
	width: min(720px, calc(100% - 16px)) !important;
}

#box_name .sb-count,
.sb-wait {
	display: block;
	margin-top: 4px;
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: #3d4a3a;
}

#boxModal .sb-dt-top,
#boxModal .sb-dt-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 8px 0;
}

#boxModal .dataTables_length,
#boxModal .dataTables_filter,
#boxModal .dataTables_info,
#boxModal .dataTables_paginate {
	float: none !important;
	display: block;
	margin: 0;
	text-align: left;
	color: #1b2430;
	font-size: 14px;
	font-weight: 800;
}

#boxModal .dataTables_filter,
#boxModal .dataTables_filter label,
#boxModal .dataTables_length label {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
}

#boxModal .dataTables_filter {
	flex: 1 1 200px;
}

#boxModal .dataTables_filter input,
#boxModal .dataTables_length select {
	height: 44px;
	border: 1px solid #e6d3a1;
	border-radius: 999px;
	background: #fff;
	color: #1b2430;
	padding: 0 14px;
	font: 700 15px/1 "Nunito", sans-serif;
}

#boxModal .dataTables_filter input {
	width: 100% !important;
	margin: 0 !important;
}

#boxModal .dataTables_filter input:focus,
#boxModal .dataTables_length select:focus {
	outline: 2px solid #f2c14e;
}

#boxModal .dataTables_paginate {
	display: flex !important;
	flex-wrap: wrap;
	gap: 6px;
}

#boxModal .dataTables_paginate .paginate_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: #7a1020 !important;
	box-shadow: inset 0 0 0 1px #e6d3a1;
}

#boxModal .dataTables_paginate .paginate_button.current,
#boxModal .dataTables_paginate .paginate_button.current:hover {
	background: #7a1020 !important;
	color: #fff !important;
	box-shadow: none;
}

#boxModal .dataTables_paginate .paginate_button:hover {
	background: #fff4d6 !important;
	color: #7a1020 !important;
}

#boxModal .dataTables_paginate .paginate_button.disabled,
#boxModal .dataTables_paginate .paginate_button.disabled:hover {
	opacity: 0.4;
	background: #f6f1e8 !important;
	color: #8a8175 !important;
}

#dt_userlist thead {
	visibility: visible;
}

#boxModal table.dataTable thead th {
	border-bottom: 0;
	color: #7a1020;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

#dt_userlist tbody td {
	max-width: none;
	white-space: normal;
	vertical-align: middle;
	padding: 10px 8px;
	border-bottom: 1px solid #f3e7d2;
}

#dt_userlist tbody td:last-child {
	white-space: nowrap;
}

.sb-who {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-align: left;
}

.sb-who span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sb-who b,
.sb-who small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: left;
}

.sb-who small {
	color: #667065;
	font-weight: 700;
}

#dt_userlist .dt-img {
	width: 42px !important;
	height: 42px;
	object-fit: cover;
	float: none !important;
	margin: 0 !important;
	flex: none;
}

.sb-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.sb-on {
	background: #e5f7ea;
	color: #1b7a3a;
}

.sb-off {
	background: #fde8ea;
	color: #a31621;
}

.sb-act {
	width: 40px !important;
	height: 40px;
	margin: 0 3px;
	border: 0;
	border-radius: 50%;
	background: #fff8ee;
	box-shadow: inset 0 0 0 1px #e6d3a1;
	cursor: pointer;
}

#resultModal .modal-dialog {
	width: min(420px, calc(100% - 16px));
}

#resultModal .res-mod-content {
	margin-top: 0;
	padding: 18px 16px 22px;
	overflow: visible;
	background:
		radial-gradient(circle at 50% 30%, rgba(242, 193, 78, 0.35), transparent 42%),
		linear-gradient(180deg, #1a2744 0%, #123524 100%) !important;
	color: #fff8ee;
}

#resultModal .close {
	color: #fff !important;
}

.sb-reveal-kicker {
	margin: 8px 0 0;
	font-family: "Mountains of Christmas", cursive;
	font-size: 34px;
	color: #f2c14e;
}

.sb-member-status {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 8px 0;
	padding: 8px 12px;
	border-radius: 12px;
	background: #fff8ee;
	color: #1f8a4c;
	font-size: 14px;
	font-weight: 800;
}

.sb-member-status.is-busy {
	color: #7a1020;
}

.sb-member-status.is-err {
	color: #a31621;
	background: #fde8ea;
}

.sb-member-spin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid transparent;
}

.sb-member-status.is-busy .sb-member-spin {
	border-color: #e6d3a1;
	border-top-color: #7a1020;
	animation: sb-spin 0.7s linear infinite;
}

.sb-approve-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	width: 100%;
	margin: 4px 0 10px;
}

.sb-approve-bar button,
.sb-pick-all {
	min-height: 40px;
	border: 0;
	border-radius: 999px;
	background: #1f8a4c;
	color: #fff;
	font: 800 14px/1 "Nunito", sans-serif;
	padding: 0 14px;
	cursor: pointer;
}

#btn-approve-all {
	background: #7a1020;
}

.sb-pick-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: #7a1020;
	box-shadow: inset 0 0 0 1px #e6d3a1;
}

.sb-pick-one {
	width: 18px;
	height: 18px;
	margin-right: 4px;
	accent-color: #7a1020;
}

.sb-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.sb-row-busy {
	opacity: 0.55;
	pointer-events: none;
}

.sb-reveal {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 460px;
	padding-top: 4px;
	cursor: pointer;
}

.sb-surprise {
	position: absolute;
	top: 0;
	z-index: 6;
	margin: 0;
	opacity: 0;
	font-family: "Mountains of Christmas", cursive;
	font-size: 32px;
	color: #fff8ee;
	text-shadow: 0 0 16px #f2c14e;
}

.sb-gift {
	position: relative;
	width: 168px;
	height: 150px;
	z-index: 1;
	margin-top: 248px;
}

.sb-box {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 0;
	height: 130px;
	border-radius: 14px;
	background: linear-gradient(180deg, #ff4d5a 0%, #9d1020 100%);
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35), inset 0 -10px 0 rgba(0, 0, 0, 0.12);
}

.sb-box::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 22px;
	margin-left: -11px;
	background: linear-gradient(#ffe08a, #f2c14e);
}

.sb-lid {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 36px;
	border-radius: 12px;
	background: linear-gradient(180deg, #ff7380, #c1121f);
	box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
	z-index: 3;
}

.sb-lid::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 22px;
	margin-left: -11px;
	background: #ffe7a3;
}

.sb-bow {
	position: absolute;
	left: 50%;
	top: -18px;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	background: #f2c14e;
	border-radius: 50%;
}

.sb-bow::before,
.sb-bow::after {
	content: "";
	position: absolute;
	top: 2px;
	width: 28px;
	height: 18px;
	background: #ffe08a;
	border-radius: 50%;
}

.sb-bow::before { left: -22px; }
.sb-bow::after { right: -22px; }

.sb-burst {
	position: absolute;
	left: 50%;
	top: 46%;
	width: 0;
	height: 0;
	z-index: 4;
	pointer-events: none;
}

.sb-burst i {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -5px;
	border-radius: 2px;
	opacity: 0;
	background: #f2c14e;
}

.sb-burst i:nth-child(3n) { background: #fff; border-radius: 50%; }
.sb-burst i:nth-child(3n + 1) { background: #ff5a6a; }
.sb-burst i:nth-child(1) { --x: -70px; --y: -90px; }
.sb-burst i:nth-child(2) { --x: 80px; --y: -70px; }
.sb-burst i:nth-child(3) { --x: -100px; --y: -20px; }
.sb-burst i:nth-child(4) { --x: 110px; --y: -10px; }
.sb-burst i:nth-child(5) { --x: -40px; --y: -120px; }
.sb-burst i:nth-child(6) { --x: 30px; --y: -130px; }
.sb-burst i:nth-child(7) { --x: -120px; --y: -80px; }
.sb-burst i:nth-child(8) { --x: 120px; --y: -90px; }
.sb-burst i:nth-child(9) { --x: -20px; --y: -70px; }
.sb-burst i:nth-child(10) { --x: 16px; --y: -100px; }
.sb-burst i:nth-child(11) { --x: -80px; --y: 10px; }
.sb-burst i:nth-child(12) { --x: 90px; --y: 16px; }
.sb-burst i:nth-child(13) { --x: -10px; --y: -140px; }
.sb-burst i:nth-child(14) { --x: 50px; --y: -40px; }

#santa-gift.is-open .sb-gift {
	animation: sb-gift-shake 0.55s ease;
}

#santa-gift.is-open .sb-lid {
	animation: sb-lid-pop 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#santa-gift.is-open .sb-burst i {
	animation: sb-burst 0.9s ease-out forwards;
	animation-delay: 0.72s;
}

#santa-gift.is-open .sb-surprise {
	animation: sb-surprise 0.7s ease 1s forwards;
}

#santa-gift.is-open .res-img {
	animation: sb-card-in 0.45s ease 0.55s forwards;
}

#santa-gift.is-open .res_icon {
	animation: sb-photo 0.6s cubic-bezier(0.16, 1.4, 0.3, 1) 0.75s both;
}

#santa-gift.is-open .res_name b {
	animation: sb-letter 0.55s cubic-bezier(0.16, 1.25, 0.3, 1) forwards;
	animation-delay: calc(0.95s + var(--d));
}

#santa-gift.is-open .res_mail {
	animation: sb-surprise 0.4s ease 1.7s forwards;
}

.sb-reveal-hint {
	margin: 8px 0 0;
	color: rgba(255, 248, 238, 0.8);
	font-size: 13px;
	font-weight: 800;
}

#resultModal .res-img {
	position: absolute;
	top: 34px;
	left: 0;
	right: 0;
	bottom: auto;
	width: auto;
	max-width: 260px;
	margin: 0 auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	opacity: 0;
	z-index: 6;
	text-align: center;
}

#resultModal .res_icon {
	display: block;
	width: 84px !important;
	height: 84px;
	margin: 0 auto 6px !important;
	object-fit: cover;
	border: 3px solid #f2c14e;
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.2);
}

#resultModal .res_name {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1px;
	margin-top: 6px;
	font-family: "Mountains of Christmas", cursive;
	font-size: 28px;
	line-height: 0.95;
	color: #fff8ee;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

#resultModal .res_name b {
	display: inline-block;
	opacity: 0;
	transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.4);
}

.sb-letter-gap {
	display: inline-block;
	width: 0.35em;
}

#resultModal .res_mail {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 800;
	color: rgba(255, 248, 238, 0.82);
	word-break: break-word;
	opacity: 0;
}

@keyframes sb-spin {
	to { transform: rotate(360deg); }
}

@keyframes sb-gift-shake {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(-6deg); }
	40% { transform: rotate(6deg); }
	60% { transform: rotate(-3deg); }
	80% { transform: rotate(3deg); }
}

@keyframes sb-lid-pop {
	0%, 18% { transform: translateY(0) rotate(0); }
	42% { transform: translateY(-24px) rotate(-8deg); }
	70% { opacity: 1; }
	100% { transform: translate(130px, -170px) rotate(42deg); opacity: 0; }
}

@keyframes sb-card-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sb-photo {
	0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
	100% { opacity: 1; transform: none; }
}

@keyframes sb-letter {
	0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.45); }
	100% { opacity: 1; transform: none; }
}

@keyframes sb-burst {
	0% { opacity: 1; transform: translate(0, 0) scale(1); }
	100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.4) rotate(50deg); }
}

@keyframes sb-surprise {
	0% { opacity: 0; transform: translateY(8px) scale(0.8); }
	40% { opacity: 1; transform: translateY(0) scale(1.08); }
	100% { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
	#boxModal .dataTables_filter,
	#boxModal .sb-dt-top,
	#boxModal .sb-dt-bottom {
		width: 100%;
	}

	#boxModal .dataTables_paginate {
		width: 100%;
		justify-content: center;
	}

	#boxModal table.dataTable,
	#boxModal table.dataTable tbody {
		display: block;
		width: 100% !important;
	}

	#boxModal table.dataTable tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 8px;
		width: 100% !important;
		margin: 0 0 6px;
		padding: 7px 10px;
		border: 1px solid #f3e7d2;
		border-radius: 14px;
		background: #fff;
		box-sizing: border-box;
	}

	#boxModal table.dataTable td {
		display: block;
		width: auto !important;
		padding: 0 !important;
		box-sizing: border-box;
	}

	#boxModal table.dataTable td:nth-child(2) {
		grid-column: 1;
	}

	#boxModal table.dataTable td:nth-child(3) {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: center;
	}

	#boxModal table.dataTable thead {
		display: none;
	}

	#boxModal .dt-img,
	#dt_userlist .dt-img {
		width: 34px !important;
		height: 34px;
	}

	#boxModal .sb-pill {
		min-height: 22px;
		margin-top: 2px;
	}

	#boxModal .sb-who small {
		white-space: normal;
	}

	#dt_userlist tbody td,
	#dt_userlist tbody td:last-child {
		border: 0;
		white-space: normal;
		text-align: left;
	}

	#manageModal .modal-dialog,
	#boxModal .modal-dialog,
	#resultModal .modal-dialog {
		width: calc(100% - 16px) !important;
	}

	#boxModal table.dataTable tr {
		margin-bottom: 6px;
	}
}

#countdown_container .countdown-globe {
	animation: none;
}

#countdown_container .countdown-globe.is-tick {
	animation: sb-unit-tick 0.42s ease;
}

@keyframes sb-unit-tick {
	0% { transform: translateY(7px) scale(0.94); }
	60% { transform: translateY(-2px) scale(1.03); }
	100% { transform: none; }
}

#sb-approve-bar[hidden],
.sb-member-status[hidden],
.sb-inline-loader[hidden],
#join-scan[hidden] {
	display: none !important;
}

.sb-inline-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 22px 8px;
	color: #7a1020;
	font-weight: 800;
}

.sb-inline-loader i {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 3px solid #e6d3a1;
	border-top-color: #c1121f;
	animation: sb-spin 0.7s linear infinite;
}

.sb-iconbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 4px 0;
}

.sb-iconbar .sb-wait {
	width: 100%;
	margin: 0;
}

.sb-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px !important;
	min-width: 46px !important;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #7a1020;
	box-shadow: inset 0 0 0 1px #e6d3a1;
	font-size: 18px;
	cursor: pointer;
}

.sb-ico-yes,
#btn-approve-selected,
#btn-lock,
#btn-draw,
#btn-result {
	background: #1f8a4c;
	color: #fff;
	box-shadow: none;
}

#btn-approve-all,
#btn-addUser {
	background: #c1121f;
	color: #fff;
	box-shadow: none;
}

#btn-delete,
#btn-leave {
	background: #fff;
	color: #a31621;
}

.sb-pick-all {
	width: 46px !important;
	min-width: 46px !important;
	height: 46px;
	margin: 0;
	padding: 0;
	border-radius: 16px;
	justify-content: center;
	gap: 0;
}

.sb-pick-all input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.sb-icon-pick {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: #7a1020;
	font-weight: 800;
	cursor: pointer;
}

.sb-icon-pick img,
#createModal #box-img {
	width: 84px !important;
	height: 84px !important;
	border-radius: 50%;
	object-fit: cover;
	background: #fff4d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a31621' d='M12 2l2.4 6.8H22l-6 4.4 2.3 6.8L12 16.8 5.7 20l2.3-6.8-6-4.4h7.6z'/%3E%3C/svg%3E") center/46px no-repeat;
}

#croppieModal { z-index: 2000; }

#qr-box {
	display: flex;
	justify-content: center;
	margin: 8px 0;
}

#qr-box img,
#qr-box canvas {
	width: 200px !important;
	height: 200px !important;
	margin: 0 !important;
}

.sb-qr-code {
	letter-spacing: 0.28em;
	font-weight: 800;
	color: #7a1020;
	text-align: center;
}

#join-scan {
	width: 100%;
	max-height: 220px;
	margin-top: 10px;
	border-radius: 16px;
	background: #111;
	object-fit: cover;
}

.santa-modal.modal {
	overflow-y: auto !important;
}

#boxModal .mb-20 { margin-bottom: 6px; }
#boxModal .santa-field { margin-bottom: 6px; }
#boxModal hr { margin: 8px 0; }

.sb-iconbar .santa-btn {
	width: auto !important;
	flex: 1;
	min-width: 120px;
}

.sb-home {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - 108px);
}

.sb-scene {
	position: relative;
	height: 150px;
	margin: 6px 0 18px;
	overflow: hidden;
}

.sb-home .sb-scene {
	flex: 1;
	height: auto;
	min-height: 190px;
	margin-bottom: 92px;
}

.sb-flight {
	position: absolute;
	left: -280px;
	top: 8%;
	width: min(260px, 70vw);
	animation: sb-fly 12s linear -4s infinite;
}

.sb-moon {
	position: absolute;
	right: 16%;
	top: 8px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff6d8;
	box-shadow: 0 0 22px rgba(242, 193, 78, 0.85);
}

.sb-bob {
	animation: sb-bob 1.5s ease-in-out infinite;
}

.sb-sleigh {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.28));
}

.sb-hill {
	position: absolute;
	left: -12%;
	right: -12%;
	bottom: 0;
	height: 72px;
	border-radius: 50% 50% 0 0;
	background: linear-gradient(180deg, #e7fff4 0%, #f7fffb 100%);
}

.sb-tree {
	position: absolute;
	left: 10%;
	bottom: 34px;
	width: 0;
	height: 0;
	border-left: 18px solid transparent;
	border-right: 18px solid transparent;
	border-bottom: 48px solid #1f8a4c;
	filter: drop-shadow(0 0 6px rgba(242, 193, 78, 0.45));
}

.sb-tree::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 16px;
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-bottom: 22px solid #176b3b;
}

.sb-tree::after {
	content: "";
	position: absolute;
	left: -4px;
	top: 42px;
	width: 8px;
	height: 12px;
	background: #6b3a1f;
}

.sb-tree-right {
	left: auto;
	right: 14%;
	transform: scale(0.78);
}

@keyframes sb-fly {
	from { transform: translateX(0); }
	to { transform: translateX(calc(100vw + 300px)); }
}

.sb-reveal-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #e23b48, #9b1220);
	color: #fff;
	flex: 1 1 100%;
	font: 800 18px/1 "Nunito", sans-serif;
	box-shadow: 0 10px 24px rgba(193, 18, 31, 0.35);
	cursor: pointer;
}

#boxModal.is-drawn #btn-grp-action {
	width: 100%;
}

#btn-members.is-on {
	background: #7a1020;
	color: #fff;
	box-shadow: none;
}
